.studio-page {
  min-height: 100vh;
  background: #fffdfb;
  color: #284d6a;
  font-family: 'Manrope', sans-serif;
}

.studio-header {
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e7edf2;
  background: rgb(255 253 251 / 94%);
}

.studio-brand { display: flex; align-items: center; gap: 11px; color: #284d6a; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.studio-brand > span:last-child { font-size: 17px; }
.studio-brand small { margin-left: 5px; color: #56758d; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.studio-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: #f5ceda; color: #284d6a; font-family: Bricolage, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.08em; }
.studio-preview-link { color: #365e7e; font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.studio-preview-link span { margin-left: 4px; }

.studio-main { width: min(1320px, 100%); margin: 0 auto; padding: 52px clamp(20px, 5vw, 76px) 80px; }
.studio-intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.studio-intro h1 { margin: 0; color: #284d6a; font-family: Bricolage, sans-serif; font-size: clamp(36px, 5vw, 54px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.studio-intro p { margin: 10px 0 0; color: #56758d; font-size: 14px; }
.draft-note { max-width: 430px; margin: 0 !important; border-radius: 12px; background: #dfeaf5; padding: 12px 15px; color: #284d6a !important; font-size: 12px !important; font-weight: 650; line-height: 1.5; }

.studio-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #e5ebf0; border-bottom: 1px solid #e5ebf0; padding: 16px 0; }
.studio-count { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; color: #526777; font-size: 12px; }
.studio-count strong { color: #284d6a; font-family: Bricolage, sans-serif; font-size: 21px; }
.studio-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.button { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 13px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button:focus-visible, .studio-input:focus-visible, .product-option:focus-within, .visibility-toggle:focus-within { outline: 3px solid #7ca5c4; outline-offset: 2px; }
.button-primary { background: #284d6a; color: white; }
.button-primary:hover { background: #1d405c; }
.button-secondary { border-color: #ccdae5; background: #fff; color: #365e7e; }
.button-secondary:hover { border-color: #89a9c2; background: #f4f8fb; }
.button-quiet { background: transparent; color: #526777; }
.button-quiet:hover { background: #f1f6fa; color: #284d6a; }
.studio-status { min-height: 21px; margin: 14px 0; color: #58748b; font-size: 12px; }
.studio-status[data-kind="error"] { color: #a13e56; }
.studio-status[data-kind="success"] { color: #2b6d58; }

.studio-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: start; gap: 30px; }
.artwork-list-panel, .edit-panel { min-width: 0; }
.panel-heading { min-height: 42px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-heading h2 { margin: 0; color: #284d6a; font-family: Bricolage, sans-serif; font-size: 20px; letter-spacing: -.02em; }
.panel-heading > span { color: #526777; font-size:12px; }
.artwork-list { display: flex; flex-direction: column; }
.artwork-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 100px; padding: 11px 0; border-top: 1px solid #e8edf1; }
.artwork-row:last-child { border-bottom: 1px solid #e8edf1; }
.artwork-thumb { width: 82px; height: 76px; display: block; border-radius: 10px; background: #dfeaf5; object-fit: cover; }
.artwork-copy { min-width: 0; }
.artwork-copy h3 { margin: 0; overflow: hidden; color: #284d6a; font-family: Bricolage, sans-serif; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.artwork-copy p { margin: 5px 0 0; overflow: hidden; color: #526777; font-size:12px; text-overflow: ellipsis; white-space: nowrap; }
.artwork-copy .row-state { color: #a75870; font-weight: 700; }
.edit-row { min-width: 66px; border: 1px solid #d8e3ec; border-radius: 9px; background: #fff; padding: 8px 11px; color: #365e7e; font: inherit; font-size:12px; font-weight: 800; cursor: pointer; }
.edit-row:hover, .edit-row[aria-current="true"] { border-color: #9fb9ce; background: #dfeaf5; }
.empty-list { padding: 20px 0; color: #526777; font-size: 13px; }

.edit-panel { border: 1px solid #e2e9ef; border-radius: 16px; background: #fff; padding: 21px 22px; }
.edit-heading { display: block; min-height: 0; margin-bottom: 20px; }
.edit-heading > span { display: block; margin-top: 5px; color: #526777; font-size:12px; }
#artwork-form { display: flex; flex-direction: column; }
#artwork-form[hidden] { display: none; }
.field-label { margin: 17px 0 7px; color: #345b79; font-size: 12px; font-weight: 800; }
.field-label:first-child { margin-top: 0; }
.field-label > span { color: #526777; font-size:12px; font-weight: 500; }
.studio-input { width: 100%; min-height: 42px; border: 1px solid #d9e3eb; border-radius: 9px; background: #fffdfb; padding: 10px 11px; color: #284d6a; font: inherit; font-size: 13px; }
.studio-input:focus { border-color: #82a5c0; outline: none; box-shadow: 0 0 0 3px #dfeaf5; }
.studio-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.image-picker-row { display: flex; align-items: center; gap: 12px; }
.editor-preview { width: 90px; height: 78px; border-radius: 10px; background: #dfeaf5; object-fit: cover; }
.image-select { flex: 1; }
.product-fieldset { margin: 22px 0 0; border: 0; border-top: 1px solid #e7edf2; padding: 15px 0 0; }
.product-fieldset legend { padding: 0 7px 0 0; color: #345b79; font-size: 12px; font-weight: 800; }
.product-fieldset > p { margin: 1px 0 11px; color: #526777; font-size:12px; }
.product-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-option { display: flex; align-items: center; gap: 8px; min-height: 39px; border: 1px solid #e1e8ee; border-radius: 9px; padding: 8px 10px; color: #446781; font-size:12px; font-weight: 650; }
.product-option input { width: 16px; height: 16px; margin: 0; accent-color: #527d9c; }
.visibility-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; border-radius: 10px; background: #fff5f7; padding: 12px; color: #6d4855; cursor: pointer; }
.visibility-toggle input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #bb7287; }
.visibility-toggle strong, .visibility-toggle small { display: block; }
.visibility-toggle strong { font-size:12px; }
.visibility-toggle small { margin-top: 3px; color: #73505d; font-size:12px; }
.editor-actions { display: flex; gap: 8px; margin-top: 22px; }
.editor-actions .button-primary { min-width: 128px; }
.editor-empty { min-height: 242px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.editor-empty[hidden] { display: none; }
.empty-spark { margin-bottom: 6px; color: #b26d83; font-size: 26px; }
.editor-empty p { margin: 0; color: #345b79; font-family: Bricolage, sans-serif; font-size: 17px; font-weight: 700; }
.editor-empty small { margin-top: 6px; color: #526777; font-size:12px; }

@media (max-width: 820px) {
  .studio-main { padding-top: 38px; }
  .studio-intro { align-items: flex-start; flex-direction: column; gap: 17px; }
  .draft-note { max-width: none; }
  .studio-workspace { grid-template-columns: 1fr; gap: 27px; }
  .studio-workspace > .edit-panel { grid-row: 1; }
}

@media (max-width: 540px) {
  .studio-header { min-height: 64px; padding: 0 17px; }
  .studio-brand > span:last-child { font-size: 15px; }
  .studio-brand small { font-size:12px; }
  .studio-preview-link { font-size:12px; }
  .studio-main { padding: 31px 17px 50px; }
  .studio-intro h1 { font-size: 39px; }
  .studio-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .studio-actions { justify-content: flex-start; gap: 7px; }
  .button { min-height: 38px; padding: 8px 10px; font-size:12px; }
  .button-quiet { padding-left: 3px; }
  .studio-status { margin: 12px 0; }
  .studio-workspace { gap: 23px; }
  .panel-heading > span { font-size:12px; text-align: right; }
  .artwork-row { grid-template-columns: 67px minmax(0, 1fr) auto; gap: 10px; min-height: 88px; }
  .artwork-thumb { width: 67px; height: 65px; }
  .artwork-copy h3 { font-size: 14px; }
  .artwork-copy p { font-size:12px; }
  .edit-row { min-width: 57px; padding: 7px 8px; font-size:12px; }
  .edit-panel { padding: 17px 15px; }
  .image-picker-row { gap: 9px; }
  .editor-preview { width: 76px; height: 70px; }
  .product-options { gap: 6px; }
  .product-option { padding: 7px; font-size:12px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

.studio-brand-mark{border-radius:10px}.studio-input:focus{outline:3px solid #9a2757;outline-offset:3px;box-shadow:none}.button:focus-visible{outline-color:#9a2757}.empty-spark svg{width:27px;height:27px}.import-button{font-family:inherit}.studio-skip{display:block}.artwork-thumb,.editor-preview{object-fit:contain}
.staff-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:86px;padding:18px max(24px,calc((100vw - 1300px)/2));border-bottom:1px solid var(--rule);background:var(--paper)}.staff-header .wordmark small{font-family:var(--body);font-size:12px;letter-spacing:0;font-weight:600;margin-left:14px;color:var(--muted)}.staff-header-actions{display:flex;align-items:center;gap:24px}.staff-header .inline-link{margin:0;font-size:12px}.staff-header .button{font-size:12px}.staff-main{width:calc(100% - 64px);max-width:1300px;margin:auto;padding:45px 0 70px}.staff-welcome{display:flex;align-items:center;justify-content:space-between;gap:25px}.staff-welcome h1{font-size:42px;letter-spacing:-.035em}.staff-welcome p{font-size:14px;color:var(--muted);margin-top:10px}.staff-identity{text-align:right;overflow-wrap:anywhere;font-size:13px}.role-label{display:block;color:var(--muted);font-size:12px}.staff-tabs{display:flex;justify-content:flex-start;gap:8px;border-bottom:1px solid var(--rule);margin-top:30px;padding-bottom:12px}.staff-tab{background:transparent;color:var(--ink);border-radius:8px;font-size:13px;padding:10px 18px;min-height:44px;font-weight:600}.staff-tab:hover{background:var(--blue)}.staff-tab.active{background:var(--ink);color:var(--paper)}.status-row{margin:15px 0}.status-row .studio-status{margin:0;min-height:22px}.status-row .inline-link{margin-top:8px}.studio-toolbar{gap:20px}.studio-count{flex-wrap:wrap;max-width:350px}.save-note{font-size:12px;flex-basis:100%;max-width:310px;color:var(--muted);line-height:1.6}.studio-toolbar .studio-actions{max-width:650px}.studio-workspace{margin-top:30px}.studio-workspace .edit-panel{position:sticky;top:25px}.studio-status[data-kind=error]{color:var(--error)}.studio-status[data-kind=success]{color:#286044}.section-intro{font-size:14px;color:var(--muted);margin:16px 0 25px;max-width:55ch}.field-hint{font-size:12px;color:var(--muted);line-height:1.65;margin-top:8px}.editor-empty{gap:12px}.editor-empty svg{width:28px;height:28px;color:var(--pink-deep)}.editor-empty h3{font-size:19px}.editor-empty p{font-family:var(--body);font-size:13px;font-weight:400}.studio-input{font-size:14px}.field-label{font-size:13px}.edit-panel input:not([type=checkbox]):not([type=radio]),.edit-panel select,.edit-panel textarea{font-size:14px}.import-review{background:var(--blue);border-radius:10px;padding:20px;margin-top:20px}.import-review p{font-size:14px}.import-review>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.access-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;margin-top:30px}.access-grid h2,.account-panel h2{font-size:27px}.invite-panel>p{font-size:14px;color:var(--muted);margin-top:15px}.invite-panel form{margin-top:25px}.member-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--rule);padding:20px 0}.member-details{min-width:0;overflow-wrap:anywhere}.member-details strong{display:block;font-size:14px;font-weight:600}.member-details small{font-size:12px;color:var(--muted)}.member-row .button{font-size:12px;white-space:normal;flex-shrink:0;max-width:130px}.member-row[data-inactive=true]{opacity:.75}.account-panel{max-width:530px;margin-top:30px}.account-panel form{margin-top:25px}.staff-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid var(--rule);padding:25px 32px;font-size:12px;color:var(--muted)}.login-layout{display:grid;grid-template-columns:1fr 1.1fr;max-width:1000px;width:calc(100% - 64px);margin:70px auto 90px;gap:90px;align-items:center;min-height:530px}.login-art{background:var(--pink);padding:35px 45px 25px;transform:rotate(-2deg)}.login-art img{width:100%;height:auto;aspect-ratio:1/1.414;object-fit:contain;border:9px solid var(--paper);box-shadow:0 12px 25px #0000001c}.login-art p{font-size:12px;margin-top:22px;line-height:1.6}.login-panel h1,.enroll-panel h1{font-size:43px;letter-spacing:-.035em}.login-panel>p:first-of-type,.enroll-panel>p:first-of-type{margin-top:17px;font-size:14px;color:var(--muted)}#login-form{margin-top:30px}#login-form .button{width:100%;font-size:14px;min-height:47px}#login-form .field label{font-size:13px}.login-help{font-size:12px;color:var(--muted);line-height:1.8;margin-top:25px}.password-field{position:relative}.password-field input[type=password],.password-field input[type=text]{padding-right:65px}.password-field button{position:absolute;top:0;right:4px;height:100%;padding:10px;background:transparent;font-size:12px;font-weight:600;color:var(--ink)}.enroll-main{display:grid;grid-template-columns:.85fr 1fr;gap:85px;align-items:center;max-width:930px;width:calc(100% - 64px);margin:65px auto 90px}.enroll-art{padding:30px;background:var(--blue);transform:rotate(2deg)}.enroll-art img{width:100%;height:auto;aspect-ratio:1/1.414;object-fit:contain;border:8px solid var(--paper)}#enroll-form{margin-top:25px}#enroll-form .field label{font-size:13px}#enroll-form .button{width:100%;font-size:14px}.studio-page .studio-input:focus,.studio-page input:focus-visible,.studio-page select:focus-visible,.studio-page textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.studio-page button:disabled{cursor:wait;opacity:.6}.studio-page button.edit-row{min-height:40px}.studio-page #invitation-url{margin-top:8px;word-break:break-all}.studio-page #copy-invitation{margin-top:15px}.studio-page .button-primary{background:var(--ink)}.studio-page .button-secondary{background:var(--paper)}
@media(max-width:1000px){.staff-header{padding-inline:28px}.staff-main{width:calc(100% - 48px)}.login-layout{gap:50px}.login-art{padding:25px}.access-grid{gap:30px}.enroll-main{gap:50px}}
@media(max-width:820px){.studio-workspace .edit-panel{position:static}.studio-workspace:not(.editing) .edit-panel{display:none}.staff-welcome h1{font-size:35px}.staff-welcome{align-items:flex-start}.studio-toolbar{align-items:flex-start;flex-direction:column}.studio-toolbar .studio-actions{justify-content:flex-start}.access-grid{grid-template-columns:1fr}.login-layout{gap:35px;width:calc(100% - 48px)}.login-panel h1,.enroll-panel h1{font-size:36px}.login-art{padding:22px}.enroll-main{gap:35px}}
@media(max-width:540px){.staff-header{padding:18px 20px;min-height:75px;gap:15px}.staff-header .wordmark{font-size:26px}.staff-header .wordmark small{display:block;margin:3px 0 0;font-size:11px}.staff-header .inline-link{font-size:12px;gap:7px}.staff-header-actions{gap:12px}.staff-header-actions .button{font-size:12px;padding:8px 11px}.staff-main{width:calc(100% - 36px);padding-top:30px}.staff-welcome{flex-direction:column;gap:16px}.staff-identity{text-align:left;font-size:12px}.role-label{display:inline;margin-left:8px;font-size:12px}.staff-welcome h1{font-size:34px}.staff-tabs{margin-top:25px;gap:3px;justify-content:flex-start}.staff-tab{font-size:12px;padding:10px 12px}.save-note{max-width:none}.studio-workspace{margin-top:25px}.studio-page .button{font-size:12px;min-height:42px}.staff-footer{padding:23px 20px;flex-wrap:wrap;gap:12px}.login-layout{display:flex;flex-direction:column-reverse;align-items:stretch;width:calc(100% - 40px);margin:40px auto 55px;gap:40px;min-height:0}.login-panel h1{font-size:39px}.login-panel>p:first-of-type{font-size:14px}.login-art{max-width:250px;margin:auto;padding:25px}.login-art p{font-size:12px}.login-help{font-size:12px}#login-form input{font-size:16px}#login-form .button{min-height:48px}.studio-page .edit-panel{padding:20px 16px}.studio-page .panel-heading>span{font-size:12px}.studio-page .artwork-copy h3{font-size:15px}.studio-page .artwork-copy p{font-size:12px}.studio-page .product-option{font-size:13px;min-height:44px;padding:8px}.studio-page .visibility-toggle strong,.studio-page .visibility-toggle small{font-size:12px}.studio-page .field-label>span{font-size:12px;display:block;margin-top:3px}.studio-page .editor-preview{width:75px}.member-row{gap:12px}.member-row .button{max-width:112px}.access-grid{gap:25px}.enroll-main{display:flex;flex-direction:column-reverse;width:calc(100% - 40px);margin:40px auto 60px;gap:40px}.enroll-panel{width:100%}.enroll-panel h1{font-size:38px}.enroll-art{max-width:235px;padding:25px}#enroll-form input{font-size:16px}.studio-page .save-note{font-size:12px}.studio-page .panel-heading h2{font-size:20px}}

.invited-email{overflow-wrap:anywhere;word-break:normal;border:1px solid #9faebb;border-radius:7px;background:var(--paper);padding:11px 12px;min-height:46px;font-size:14px;line-height:1.7}.enroll-panel .field>span.field-label{margin:0;font-size:13px}.enroll-panel .field>input.sr-only{width:1px;min-height:1px;height:1px;padding:0;border:0}
.upload-photo-label{width:max-content;max-width:100%;margin-top:3px}.image-select{min-width:0}.studio-page #photo-upload-status{min-height:20px;margin-bottom:0;overflow-wrap:anywhere}

.staff-tabs { flex-wrap: wrap; }

.staff-tab[data-section="bookings"] { display: inline-flex; align-items: center; gap: 8px; }
.booking-pending-badge { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; padding-inline: 6px; border-radius: 999px; background: var(--pink); color: var(--ink-dark); font-size: 11px; line-height: 1; font-weight: 700; }
.booking-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 15px 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--blue); }
.booking-notice p { margin: 0; font-size: 14px; font-weight: 600; }
.booking-notice .button { min-height: 42px; flex: 0 0 auto; }

.booking-inbox { max-width: 920px; padding-top: 14px; }
.booking-inbox-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.booking-inbox-toolbar h2 { font-size: 28px; }
.booking-inbox-toolbar p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.booking-inbox-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.booking-inbox-controls label { font-size: 13px; font-weight: 700; }
.booking-inbox-controls select { width: auto; min-height: 44px; }
.booking-inbox-controls .button { min-height: 44px; }
.booking-status { margin-block: 12px; }
.booking-status:empty { display: none; }
.booking-empty { padding-block: 28px; color: var(--muted); }
.booking-request { padding: 20px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.booking-request-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.booking-request-heading h3 { font-size: 22px; }
.booking-dates { margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 14px; }
.booking-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--blue);
  color: var(--ink-dark);
  font-size: 12px;
  font-weight: 700;
}
.booking-badge[data-state="pending"] { background: var(--pink); }
.booking-badge[data-state="confirmed"] { background: #e6f1e9; color: #286044; }
.booking-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  margin-block: 14px;
  font-size: 13px;
}
.booking-details dt { color: var(--muted); font-weight: 700; }
.booking-details dd { margin: 0; }
.booking-message { max-width: 72ch; white-space: pre-wrap; font-size: 14px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.booking-actions .button { min-height: 44px; font-size: 13px; }

@media (max-width: 650px) {
  .booking-inbox-toolbar { flex-direction: column; align-items: stretch; }
  .booking-notice { align-items: stretch; flex-direction: column; }
}

.staff-message-inbox { max-width: 1100px; padding-top: 14px; }
.staff-message-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.staff-message-toolbar h2 { font-size: 28px; }
.staff-message-toolbar .button, #staff-reply-submit { min-height: 44px; }
.staff-message-status { margin-block: 10px; }
.staff-message-status:empty { display: none; }
.staff-message-workspace {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 26px;
  padding-top: 16px;
}
.staff-message-list {
  min-width: 0;
  max-height: 420px;
  overflow: auto;
}
.staff-message-empty { color: var(--muted); padding: 12px 0; font-size: 14px; }
.staff-message-row {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}
.staff-message-row:hover, .staff-message-row[aria-current="true"] { background: var(--blue); }
.staff-message-row:focus-visible { outline-offset: -3px; }
.staff-message-row:disabled { opacity: .75; }
.staff-message-row-title, .staff-message-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  overflow-wrap: anywhere;
}
.staff-message-row time, .staff-message-byline time { font-size: 11px; color: var(--muted); }
.staff-message-row-topic, .staff-conversation-topic {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.staff-message-preview {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-conversation { min-width: 0; }
.staff-conversation h3 { font-size: 22px; overflow-wrap: anywhere; }
.staff-message-transcript {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 380px;
  overflow: auto;
  padding-block: 4px;
  margin: 12px 0 16px;
  list-style: none;
}
.staff-message { width: min(90%, 58ch); border-radius: 10px; padding: 12px 14px; background: var(--blue); font-size: 13px; }
.staff-message[data-sender="staff"] { align-self: end; background: #f8e8ee; }
.staff-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
#staff-reply:read-only { opacity: .7; }

@media (max-width: 690px) {
  .staff-message-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .staff-message-list { max-height: 218px; }
}
.booking-conversation { margin-top: 16px; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fffafc; }
.booking-conversation-toggle { min-height: 42px; }
.booking-thread-panel { margin-top: 12px; }
.booking-thread-transcript { max-height: 320px; }
.booking-thread-status { min-height: 20px; margin-block: 8px; color: var(--muted); font-size: 12px; }
.booking-thread-reply label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.booking-thread-reply textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; font: inherit; }
.booking-thread-reply .button { margin-top: 9px; }
