.support-widget{position:fixed;z-index:20;right:clamp(12px,3vw,32px);bottom:clamp(12px,3vw,32px);width:max-content;max-width:calc(100vw - 24px);color:#073e2f}
.support-widget summary{list-style:none;width:max-content;margin-left:auto;padding:11px 16px;border-radius:24px;background:#073e2f;color:#fff9ee;font-weight:650;cursor:pointer;box-shadow:0 8px 24px #073e2f30}
.support-widget summary::-webkit-details-marker{display:none}.support-widget[open]{width:min(350px,calc(100vw - 24px))}
.support-content{padding:17px;margin-top:8px;background:#fffdf8;border:1px solid #ded1c7;border-radius:12px;box-shadow:0 10px 28px #073e2f22;max-height:55vh;overflow:auto}
.support-content h2,.staff-inbox h2{margin:0 0 8px;font:400 28px Georgia,serif}.support-content p{font-size:14px;margin:0 0 12px}
.support-content textarea,.staff-inbox textarea{display:block;width:100%;box-sizing:border-box;padding:8px;margin:4px 0;border:1px solid #d8d6ca;border-radius:6px;font:inherit}
#support-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin-top:8px}
.staff-inbox{padding:clamp(17px,3vw,28px);margin:18px 0;border:1px solid #ded1c7;border-radius:13px;background:#fffdf8;color:#073e2f;scroll-margin-top:18px}
.staff-inbox select,.staff-inbox button{font:inherit;border:1px solid #d5d7cb;border-radius:6px;padding:7px 10px;background:#fffdf8;color:#073e2f}
.staff-inbox details{border-top:1px solid #e5d9d0;padding:12px 0}.staff-inbox summary{cursor:pointer;font-weight:650}.staff-inbox details p{white-space:pre-wrap;overflow-wrap:anywhere}
.staff-inbox button{background:#073e2f;color:#fff9ee;cursor:pointer}

.staff-inbox .chat-message{max-width:min(100%,680px);padding:12px 15px;border-radius:12px;background:#f2efe6}.staff-inbox .chat-message-staff{margin-left:auto;background:#e8eddf}.staff-inbox .chat-message strong{display:block;margin-bottom:4px;font-size:13px}.staff-inbox form{margin-top:16px}.staff-inbox textarea{min-height:84px}

/* Admin client inbox: full-height ticket workspace */
.admin-dashboard #staff-inbox{box-sizing:border-box;display:flex;flex-direction:column;gap:14px;width:100%;min-height:calc(100vh - 148px);padding:clamp(20px,2.2vw,32px);background:#fffdf8;border:1px solid #e6dac8;border-radius:16px}
.admin-dashboard #staff-inbox>h2{margin:0;color:#102a3a;font:500 clamp(25px,2.1vw,32px)/1.15 Georgia,serif}
.admin-dashboard #staff-inbox .inbox-controls{grid-template-columns:minmax(220px,1.35fr) repeat(2,minmax(170px,.9fr));gap:12px;margin:0}
.admin-dashboard #staff-inbox .inbox-controls label{color:#34495a;font-size:14px;font-weight:700}
.admin-dashboard #staff-inbox .inbox-controls :is(input,select){min-height:46px;border-color:#d9d1c4;border-radius:9px;background:#fff;color:#102a3a}
.admin-dashboard #inbox-count{margin:0;color:#5c6c78;font-size:14px}
.admin-dashboard #inbox-status:empty{display:none}
.admin-dashboard #staff-inbox .inbox-split{display:grid;grid-template-columns:minmax(290px,.78fr) minmax(0,1.7fr);flex:1;min-height:420px;gap:18px;margin:0;align-items:stretch}
.admin-dashboard #inbox-list{display:flex;flex-direction:column;gap:10px;max-height:none;min-height:0;padding:0 6px 0 0;overflow:auto;background:transparent;border:0}
.admin-dashboard #inbox-list .inbox-row{display:grid;gap:7px;width:100%;min-width:0;padding:15px 16px;color:#102a3a;text-align:left;background:#fff;border:1px solid #e4ddd2;border-radius:12px;box-shadow:0 2px 9px rgba(16,42,58,.04);transition:background-color .16s,border-color .16s,box-shadow .16s}
.admin-dashboard #inbox-list .inbox-row:hover{background:#f6f7f2;border-color:#9eac9d}
.admin-dashboard #inbox-list .inbox-row[aria-pressed="true"]{color:#fffdf7;background:#0b4033;border-color:#c7a05d;box-shadow:0 5px 18px rgba(7,62,47,.16),inset 4px 0 #d8b46a}
.inbox-row-topline,.inbox-ticket-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.inbox-row-title{min-width:0;overflow:hidden;color:inherit;font-size:16px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.inbox-row-state{flex:none;padding:4px 8px;color:#375343;background:#e9f0e7;border:1px solid #d5e2d2;border-radius:999px;font-size:12px;font-weight:700}
.inbox-row[aria-pressed="true"] .inbox-row-state{color:#fff8e9;background:#ffffff1c;border-color:#ffffff40}
.inbox-row-code,.inbox-ticket-kicker{color:#9b733a;font-size:12px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.inbox-row[aria-pressed="true"] .inbox-row-code,.inbox-row[aria-pressed="true"] .inbox-message-meta{color:#e0e8e0}
.admin-dashboard #inbox-list .inbox-message-meta{margin:0;color:#667783;font-size:13px;line-height:1.45}
.admin-dashboard #inbox-list .inbox-message-preview{margin:0;color:#34495a;font-size:14px;line-height:1.45}
.admin-dashboard #inbox-list .inbox-row[aria-pressed="true"] .inbox-message-preview{color:#fffdf7}
.admin-dashboard #inbox-reader{box-sizing:border-box;min-width:0;min-height:100%;padding:clamp(20px,2.6vw,34px);background:#fff;border-color:#e4ddd2;border-radius:14px}
.inbox-reader-card{display:grid;gap:20px;min-width:0}
.inbox-ticket-heading{display:grid;gap:8px;padding-bottom:18px;border-bottom:1px solid #e7dfd2}
.inbox-ticket-title-row h3{min-width:0;overflow-wrap:anywhere;font:500 clamp(25px,2.3vw,34px)/1.15 Georgia,serif}
.inbox-ticket-state{flex:none;padding:7px 11px;color:#75521f;background:#fff2d8;border:1px solid #ebd2a5;border-radius:999px;font-size:13px;font-weight:750}
.inbox-ticket-state.is-done{color:#28563d;background:#eaf3eb;border-color:#cfe1d0}
.inbox-ticket-state.is-waiting{color:#694f25;background:#fff4df;border-color:#ecd9b5}
.admin-dashboard #inbox-reader .inbox-message-meta{margin:0;color:#667783;font-size:14px;line-height:1.5}
.inbox-ticket-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.inbox-ticket-field{display:grid;gap:5px;min-width:0;padding:12px 14px;background:#f8f7f2;border:1px solid #ece7dc;border-radius:10px}
.inbox-ticket-field span{color:#65737b;font-size:12px;font-weight:750;letter-spacing:.055em;text-transform:uppercase}
.inbox-ticket-field strong{color:#173247;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.inbox-ticket-notice{margin:0;padding:12px 14px;color:#4e422b;background:#fff7e8;border:1px solid #eedbb8;border-left:4px solid #bd9452;border-radius:8px;font-size:14px;font-weight:650}
.inbox-ticket-message{display:grid;gap:10px;min-width:0;padding:16px 18px;background:#fbfaf7;border:1px solid #e9e3d8;border-radius:12px}
.inbox-ticket-message-label{color:#173247;font-size:15px}
.admin-dashboard #inbox-reader .inbox-ticket-message>p{margin:0;color:#243c4a;font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-ticket-message .chat-message{background:#f1f3ed}
.admin-dashboard #inbox-reader .inbox-email-action{justify-self:start;min-height:42px;display:inline-flex;align-items:center;margin:0;padding:8px 15px;color:#fffdf7;background:#0b4033;border:1px solid #0b4033;border-radius:9px}
.admin-dashboard #inbox-reader .inbox-email-action:hover{background:#145543}
@media(max-width:900px){.admin-dashboard #staff-inbox{min-height:calc(100vh - 120px)}.admin-dashboard #staff-inbox .inbox-split{grid-template-columns:minmax(260px,.85fr) minmax(0,1.4fr)}}
@media(max-width:700px){.admin-dashboard #staff-inbox{min-height:0;padding:18px 14px}.admin-dashboard #staff-inbox .inbox-controls{grid-template-columns:1fr}.admin-dashboard #staff-inbox .inbox-split{grid-template-columns:minmax(0,1fr);min-height:0;gap:14px}.admin-dashboard #inbox-list{max-height:34vh}.admin-dashboard #inbox-reader{min-height:0;padding:18px 15px}.inbox-ticket-fields{grid-template-columns:1fr}.inbox-ticket-title-row{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.admin-dashboard #inbox-list .inbox-row{transition:none}}

/* Client enquiry overview cards and one-click ticket queues */
.admin-dashboard #staff-inbox .inbox-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-dashboard #staff-inbox .inbox-summary-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;min-width:0;min-height:92px;padding:14px 16px;text-align:left;color:#173247;background:#fff;border:1px solid #e4ddd2;border-radius:12px;box-shadow:0 2px 9px rgba(16,42,58,.035);cursor:pointer;transition:background-color .16s,border-color .16s,box-shadow .16s}
.admin-dashboard #staff-inbox .inbox-summary-card:hover{background:#f7f8f4;border-color:#9eac9d}
.admin-dashboard #staff-inbox .inbox-summary-card[aria-pressed="true"]{color:#fffdf7;background:#0b4033;border-color:#c7a05d;box-shadow:0 5px 16px rgba(7,62,47,.12)}
.inbox-summary-card>span{font-size:14px;font-weight:750;line-height:1.3}
.inbox-summary-card>strong{grid-column:2;grid-row:1/3;color:#996f36;font:600 30px/1 Georgia,serif}
.inbox-summary-card[aria-pressed="true"]>strong{color:#f3d38d}
.inbox-summary-card>small{grid-column:1;color:#687985;font-size:12px;line-height:1.35}
.inbox-summary-card[aria-pressed="true"]>small{color:#e0e8e0}
.admin-dashboard #staff-inbox .inbox-summary-card:focus-visible{outline:2px solid #a3733e;outline-offset:3px}
@media(max-width:950px){.admin-dashboard #staff-inbox .inbox-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.admin-dashboard #staff-inbox .inbox-summary-cards{gap:8px}.admin-dashboard #staff-inbox .inbox-summary-card{min-height:82px;padding:11px}.inbox-summary-card>span{font-size:13px}.inbox-summary-card>strong{font-size:25px}.inbox-summary-card>small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.admin-dashboard #staff-inbox .inbox-summary-card{transition:none}}

/* Client Messages: remove duplicate page title and use the available workspace */
.admin-dashboard[data-view="inbox"] .dashboard-main{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:10px clamp(12px,1.5vw,24px) 18px}
.admin-dashboard[data-view="inbox"] .dashboard-header{justify-content:flex-end;min-height:0;margin:0 0 6px;padding:0;border:0}
.admin-dashboard[data-view="inbox"] .dashboard-heading{display:none}
.admin-dashboard[data-view="inbox"] .staff-header-tools{justify-content:flex-end;margin-left:auto;gap:8px}
.admin-dashboard[data-view="inbox"] .staff-sydney-clock{padding:6px 10px;box-shadow:none}
.admin-dashboard[data-view="inbox"] .staff-sydney-clock span{font-size:12px}
.admin-dashboard[data-view="inbox"] .staff-sydney-clock time{font-size:14px}
.admin-dashboard[data-view="inbox"] #staff-inbox{min-height:calc(100vh - 88px);padding:clamp(16px,1.8vw,26px)}
@media(max-width:760px){
 .admin-dashboard[data-view="inbox"] .dashboard-main{padding:8px 10px 14px}
 .admin-dashboard[data-view="inbox"] .dashboard-header{margin-bottom:4px}
 .admin-dashboard[data-view="inbox"] #staff-inbox{min-height:0;padding:14px 10px}
 .admin-dashboard[data-view="inbox"] .staff-header-tools{width:100%}
}

/* Lock the Client Messages view to the viewport; scroll the ticket panes only. */
.admin-dashboard[data-view="inbox"]{
  box-sizing:border-box;
  height:100dvh;
  min-height:0;
  overflow:hidden;
}
.admin-dashboard[data-view="inbox"] .dashboard-sidebar{
  box-sizing:border-box;
  height:100dvh;
  min-height:0;
  overflow:auto;
}
.admin-dashboard[data-view="inbox"] .dashboard-main{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  height:100dvh;
  min-height:0;
  overflow:hidden;
}
.admin-dashboard[data-view="inbox"] .dashboard-header{
  flex:none;
}
.admin-dashboard[data-view="inbox"] #staff-inbox{
  flex:1 1 auto;
  height:auto;
  min-height:0;
  margin:0;
  overflow:hidden;
}
.admin-dashboard[data-view="inbox"] #staff-inbox>h2,
.admin-dashboard[data-view="inbox"] #staff-inbox .inbox-summary-cards,
.admin-dashboard[data-view="inbox"] #staff-inbox .inbox-controls,
.admin-dashboard[data-view="inbox"] #inbox-count,
.admin-dashboard[data-view="inbox"] #inbox-status,
.admin-dashboard[data-view="inbox"] #inbox-retry{
  flex:none;
}
.admin-dashboard[data-view="inbox"] #staff-inbox .inbox-split{
  flex:1 1 0;
  min-height:0;
  overflow:hidden;
}
.admin-dashboard[data-view="inbox"] #inbox-list,
.admin-dashboard[data-view="inbox"] #inbox-reader{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.admin-dashboard[data-view="inbox"] #inbox-list{
  max-height:none;
}
@media(max-width:760px){
  .admin-dashboard[data-view="inbox"]{
    grid-template-rows:auto minmax(0,1fr);
  }
  .admin-dashboard[data-view="inbox"] .dashboard-sidebar{
    height:auto;
    max-height:145px;
    overflow:hidden;
  }
  .admin-dashboard[data-view="inbox"] .dashboard-main{
    height:auto;
    min-height:0;
    padding:8px 10px 10px;
  }
  .admin-dashboard[data-view="inbox"] #staff-inbox{
    padding:12px 10px;
  }
}
@media(max-width:700px){
  .admin-dashboard[data-view="inbox"] #staff-inbox .inbox-split{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(110px,.8fr) minmax(130px,1.2fr);
  }
  .admin-dashboard[data-view="inbox"] #inbox-list{
    max-height:none;
  }
  .admin-dashboard[data-view="inbox"] #inbox-reader{
    min-height:0;
  }
}

/* Prevent document-level scrolling while the inbox is the active workspace. */
html:has(.admin-dashboard[data-view="inbox"]),
body:has(.admin-dashboard[data-view="inbox"]){
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden;
}
.admin-dashboard[data-view="inbox"] #staff-sample-banner{
  display:none;
}
.admin-dashboard[data-view="inbox"] #staff-inbox .inbox-split{
  margin-top:0;
}
.admin-dashboard .inbox-row-state.is-waiting{color:#76521f;background:#fff2d8;border-color:#ebd2a5}
.admin-dashboard .inbox-row-state.is-done{color:#28563d;background:#eaf3eb;border-color:#cfe1d0}
.admin-dashboard .inbox-row-state.is-declined{color:#70424b;background:#f6e9ec;border-color:#e9cbd2}
.admin-dashboard .inbox-ticket-state.is-declined{color:#70424b;background:#f6e9ec;border-color:#e9cbd2}


/* Contact-profile tabs inside the client enquiry reader. */
.inbox-contact-tabs{display:flex;align-items:center;gap:3px;margin:0 0 14px;padding:0 2px;border-bottom:1px solid #e3d9ca;overflow-x:auto}
.inbox-contact-tabs button{flex:0 0 auto;min-height:39px;padding:8px 12px;border:0;border-bottom:3px solid transparent;border-radius:7px 7px 0 0;background:transparent;color:#516075;font:700 12px system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.inbox-contact-tabs button:hover{background:#f8f2e6;color:#23364b}
.inbox-contact-tabs button[aria-selected="true"]{border-bottom-color:#aa8038;background:#fbf5e9;color:#162a40}
.inbox-contact-tabs button:focus-visible{outline:3px solid rgba(190,151,77,.35);outline-offset:1px}
.inbox-contact-tab-panel{min-height:130px;margin:0 0 12px;padding:14px;border:1px solid #e6ddcf;border-radius:10px;background:#fffdfa}
.inbox-contact-tab-panel p{margin:10px 0 0;color:#34485e;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.inbox-contact-tab-panel .inbox-ticket-message-label{color:#17304a;font-size:13px}
