:root{font-family:Manrope,Arial,sans-serif;color:#292b2c;background:#f7f5f1;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;background:#fff;border-right:1px solid #eae8e2;padding:28px 16px 22px;display:flex;flex-direction:column;flex:none}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 39px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:#23675e;color:#fff;border-radius:11px;font-size:25px;font-weight:800}.brand strong,.brand small{display:block}.brand strong{font-size:16px;letter-spacing:-.04em}.brand small{font-size:10px;color:#999b98;margin-top:2px}.nav-label,.eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:#aaa9a2}.nav-label{padding:0 14px 12px}.sidebar nav{display:grid;gap:4px}.nav-item{border:0;background:transparent;color:#646968;border-radius:10px;display:flex;align-items:center;text-align:left;gap:12px;padding:12px 14px;font-size:12px;font-weight:700;width:100%}.nav-item:hover,.nav-item.active{background:#e8f3ef;color:#21665b}.nav-icon{font-size:19px;line-height:12px;width:18px;text-align:center}.nav-count{margin-left:auto;background:#d1e8df;padding:2px 7px;border-radius:6px;font-size:10px}.sidebar-bottom{display:flex;gap:10px;border-top:1px solid #efeee9;padding:20px 10px 0;margin-top:auto;color:#5f6965}.sidebar-bottom strong{font-size:11px}.sidebar-bottom p{font-size:10px;line-height:1.6;margin:5px 0 0;color:#a3a6a0}.help-dot{width:20px;height:20px;border:1px solid #cddad3;border-radius:50%;display:grid;place-items:center;font-size:11px;flex:none;color:#4b897a}.main{min-width:0;flex:1}.topbar{height:70px;background:#fff;border-bottom:1px solid #eae8e2;padding:0 42px;display:flex;align-items:center;justify-content:space-between}.crumbs{font-size:11px;color:#949994;font-weight:700}.crumbs span{margin:0 10px;color:#d0d2cc}.top-actions{display:flex;align-items:center;gap:9px;color:#929a95;font-size:10px;font-weight:700}.live-dot{width:6px;height:6px;background:#52af8c;border-radius:50%;box-shadow:0 0 0 3px #e4f4eb}.avatar{margin-left:18px;width:30px;height:30px;display:grid;place-items:center;color:#5b765d;background:#dce8dc;border-radius:50%;font-weight:800}.content{padding:42px;max-width:1520px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}.eyebrow{color:#71a193}h1{font-size:30px;letter-spacing:-.055em;margin:8px 0 7px;line-height:1.2}.heading p{margin:0;color:#929790;font-size:12px}.heading-actions{display:flex;align-items:center;gap:10px;padding-bottom:3px}.demo-pill{border-radius:30px;background:#fff2d8;color:#a8782e;font-size:10px;font-weight:800;padding:8px 12px;white-space:nowrap}.secondary{border:1px solid #e0e4de;background:#fff;border-radius:8px;padding:9px 13px;font-size:11px;font-weight:800;color:#4a6257}.secondary:hover{border-color:#8db7a9}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:30px 0 28px}.stat{text-align:left;min-height:150px;background:#fff;border:1px solid #ecebe6;border-radius:13px;padding:19px 21px;box-shadow:0 3px 16px #2e3c3510;transition:transform .2s,border-color .2s}.stat:hover{transform:translateY(-2px);border-color:#bed8ca}.stat-top{display:flex;align-items:center;gap:10px;color:#5d6561;font-size:11px;font-weight:800}.stat-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;font-size:18px;line-height:1}.stat-new .stat-icon{background:#fceae5;color:#e46c55}.stat-work .stat-icon{background:#fff1d8;color:#d89a36}.stat-waiting .stat-icon{background:#e9efff;color:#758fd3}.stat-stale .stat-icon{background:#fae8e6;color:#dc746e;font-weight:800;font-size:13px}.stat strong{display:block;font-size:33px;letter-spacing:-.06em;margin:12px 0 2px}.stat small{font-size:10px;color:#a5aaa4}.queue{background:#fff;border:1px solid #ecebe6;border-radius:14px;box-shadow:0 4px 20px #2e3c350b;overflow:hidden}.queue-head{display:flex;justify-content:space-between;align-items:center;padding:23px 24px 19px;gap:18px}.queue h2{font-size:15px;letter-spacing:-.035em;margin:0 0 4px}.queue-head p{margin:0;color:#a2a7a0;font-size:10px}.queue-tools{display:flex;gap:8px}.search{width:240px;display:flex;gap:9px;align-items:center;border:1px solid #e6e9e4;border-radius:8px;padding:0 11px;color:#9ba49e}.search span{font-size:22px;line-height:25px}.search input{min-width:0;width:100%;outline:0;border:0;font-size:10px;background:transparent}.queue select{border:1px solid #e6e9e4;background:#fff;border-radius:8px;padding:0 12px;color:#66716a;font-size:10px;font-weight:700;outline:0}.queue-meta{background:#fbfbf9;border-top:1px solid #f0f0ec;border-bottom:1px solid #f0f0ec;padding:10px 24px;display:flex;justify-content:space-between;color:#a3aaa2;font-size:10px;font-weight:700}.question-row{width:100%;border:0;border-bottom:1px solid #f0f1ec;background:#fff;text-align:left;display:flex;align-items:center;gap:15px;padding:18px 24px;min-height:92px}.question-row:hover{background:#fbfdfb}.question-row:last-child{border-bottom:0}.person-avatar{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:50%;font-weight:800;color:#69806d;background:#e5ecdf}.question-row:nth-child(3n) .person-avatar{background:#ede3e9;color:#9d7c89}.question-row:nth-child(3n + 2) .person-avatar{background:#e0eaf0;color:#6b8799}.row-main{min-width:0;flex:1}.row-line{display:flex;gap:8px;align-items:center}.row-name{font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{padding:4px 7px;border-radius:5px;font-size:9px;font-weight:800;white-space:nowrap}.badge.payslip{background:#eaf3ee;color:#39806a}.badge.general{background:#edf0fb;color:#7282b3}.preview{font-size:11px;color:#929b94;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:700px}.row-side{width:150px;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex:none}.row-time{font-size:10px;color:#a0a7a1}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800}.status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.status.new{color:#dd745c}.status.work{color:#cf9b43}.status.waiting{color:#7991cd}.status.archive{color:#9ca39e}.empty{padding:70px 20px;text-align:center;color:#9ca49e}.empty strong{display:block;color:#515e56;font-size:15px;margin-bottom:6px}.scrim{position:fixed;inset:0;background:#152e2d55;z-index:5}.detail{position:fixed;right:0;top:0;bottom:0;width:min(530px,100vw);background:#fff;box-shadow:-15px 0 45px #162b2528;z-index:6;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .25s}.detail.open{transform:translateX(0)}.detail-head{padding:24px 28px 20px;border-bottom:1px solid #edf0eb}.detail-top{display:flex;align-items:center;justify-content:space-between}.detail-kicker{font-size:10px;letter-spacing:.12em;color:#93a59a;font-weight:800}.icon-button{border:0;background:#f3f5f2;width:30px;height:30px;border-radius:8px;font-size:21px;line-height:20px;color:#718078}.detail-title{display:flex;gap:13px;align-items:center;margin:16px 0 12px}.detail-title .person-avatar{width:45px;height:45px}.detail-title h2{margin:0;font-size:18px;letter-spacing:-.04em}.detail-title small{color:#9aa49c;font-size:10px}.detail-meta{display:flex;gap:7px;flex-wrap:wrap}.meta-chip{font-size:10px;color:#63716a;background:#f4f7f3;padding:6px 9px;border-radius:6px;font-weight:700}.detail-body{overflow:auto;flex:1;padding:22px 28px;background:#fcfcfa}.section-caption{font-size:10px;letter-spacing:.1em;color:#9fa9a0;font-weight:800;margin:0 0 15px}.file-box{border:1px solid #e7ebe5;border-radius:9px;padding:11px 12px;background:#fff;display:flex;align-items:center;gap:10px;font-size:11px;color:#5d6b61;margin-bottom:24px}.file-icon{background:#fcebe7;color:#d57868;border-radius:6px;width:30px;height:30px;display:grid;place-items:center;font-weight:800}.file-box small{display:block;font-size:9px;color:#9aa59a;margin-top:3px}.timeline{display:grid;gap:17px}.message{max-width:88%}.message.admin{justify-self:end}.message-label{font-size:10px;color:#9aa39b;margin-bottom:5px}.message.admin .message-label{text-align:right}.bubble{border-radius:3px 11px 11px 11px;background:#fff;border:1px solid #edf0ea;padding:11px 13px;font-size:11px;line-height:1.65;color:#4d5a52;white-space:pre-wrap;overflow-wrap:anywhere}.message.admin .bubble{background:#e7f3ed;border-color:#e7f3ed;border-radius:11px 3px 11px 11px}.detail-footer{padding:18px 28px;border-top:1px solid #edf0eb;display:grid;gap:10px}.detail-footer textarea{width:100%;resize:vertical;min-height:64px;max-height:150px;border:1px solid #dfe7df;border-radius:8px;padding:10px 12px;outline:0;font-size:11px}.detail-footer textarea:focus{border-color:#73a990}.footer-actions{display:flex;gap:8px;flex-wrap:wrap}.primary,.action{border-radius:8px;border:1px solid #dfe7df;background:#fff;color:#4c6759;font-size:10px;font-weight:800;padding:10px 13px}.primary{background:#246b5f;border-color:#246b5f;color:#fff}.primary:hover{background:#185c50}.action:hover{background:#f2f8f4}.action.danger{color:#b56761}.action:disabled,.primary:disabled{opacity:.5;cursor:not-allowed}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#293b35;color:#fff;padding:11px 17px;border-radius:8px;font-size:11px;z-index:20;box-shadow:0 8px 24px #182c2660}
@media(max-width:1100px){.sidebar{width:210px}.content{padding:32px}.topbar{padding:0 32px}.stats{gap:8px}.stat{padding:16px}.search{width:185px}}@media(max-width:780px){.sidebar{width:62px;padding:19px 8px}.brand{padding:0 4px 25px}.brand>span:last-child{display:none}.brand-mark{width:34px;height:34px}.nav-label,.nav-item{font-size:0}.nav-item{justify-content:center;padding:13px 4px}.nav-icon{font-size:20px}.nav-count,.sidebar-bottom{display:none}.topbar{height:56px;padding:0 18px}.content{padding:25px 18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.heading{align-items:start}.heading-actions{flex-direction:column;align-items:flex-end}h1{font-size:25px}.queue-head{align-items:stretch;flex-direction:column}.queue-tools{width:100%}.search{width:100%;flex:1}.queue select{max-width:140px}.row-side{width:95px}.question-row{padding:15px}.queue-meta{padding:10px 15px}}@media(max-width:480px){.sidebar{display:none}.content{padding:22px 12px}.topbar{padding:0 13px}.heading p{max-width:240px}.heading-actions .secondary span{display:none}.stats{gap:7px}.stat{min-height:128px;padding:12px}.stat strong{font-size:27px}.stat small{font-size:9px}.stat-top{font-size:10px}.queue-head{padding:18px 15px}.row-side{width:68px}.row-time{font-size:9px}.preview{max-width:210px}.detail-head,.detail-body,.detail-footer{padding-left:19px;padding-right:19px}}
.file-link{margin-left:auto;flex:none;border:0;background:#edf5ef;color:#347966;border-radius:6px;padding:7px 9px;text-decoration:none;font-size:9px;font-weight:800}.file-link:hover{background:#dceee2}.file-link:disabled{opacity:.5}

/* Replies from curators must stand out in the shared queue. */
.row-line{flex-wrap:wrap}
.question-row.has-new-message{background:#fff9f5;border-left:3px solid #e7775f;padding-left:21px}
.question-row.has-new-message:hover{background:#fff3ec}
.question-row.has-new-message .row-name{color:#a84937}
.unread-badge{display:inline-flex;align-items:center;border-radius:5px;background:#ffe5dc;color:#ab4c36;padding:4px 7px;font-size:9px;font-weight:800;white-space:nowrap}

.offline-banner{padding:13px 42px;background:#fff1e9;color:#9f4938;border-bottom:1px solid #f2d2c6;font-size:12px;font-weight:700}
.offline-banner[hidden]{display:none}
.live-dot.offline{background:#d96d59;box-shadow:0 0 0 3px #fae6df}

/* Curator directory and complete appeal history. */
#stats[hidden],#queue[hidden],#curator-directory[hidden]{display:none!important}
.curator-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;padding:20px}
.curator-card{display:flex;align-items:center;gap:13px;min-width:0;padding:19px;background:#fff;border:1px solid #e9eae4;border-radius:11px;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.curator-card:hover{background:#f6faf7;border-color:#bdd9c9;transform:translateY(-2px)}
.curator-card .person-avatar{flex:none}
.curator-card-main{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.curator-card-main strong{font-size:13px;color:#263b32;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.curator-card-main small{font-size:10px;color:#8a978d;line-height:1.4}
.curator-card-counts{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap}
.curator-card-counts b{font-size:10px;color:#417b5e}
.curator-card-counts small{font-size:9px;color:#8a978d}
.curator-card-arrow{font-size:17px;color:#8fa896}
.curator-history{padding-top:26px}
.history-appeal{position:relative;margin:0 0 19px;padding:19px;background:#fff;border:1px solid #e8ebe4;border-radius:11px;box-shadow:0 2px 12px #253b2d08}
.history-appeal:before{content:'';position:absolute;left:-15px;top:26px;width:7px;height:7px;background:#8fbaa0;border:3px solid #e8f2ea;border-radius:50%}
.history-appeal-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.history-number{color:#477e63;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.history-appeal-title{margin:10px 0 4px;font-size:14px;font-weight:800;color:#263b32}
.history-appeal-meta{font-size:10px;color:#88958b}
.history-messages{display:flex;flex-direction:column;gap:8px;margin:15px 0;padding:12px;background:#f7f8f4;border-radius:7px}
.history-message{border-left:2px solid #d3e5d8;padding-left:10px}
.history-message span,.history-empty{font-size:9px;color:#8c9a8d}
.history-message p{margin:4px 0 0;color:#41534a;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.history-open{width:100%;justify-content:center}
@media(max-width:780px){.curator-list{grid-template-columns:1fr;padding:12px}.curator-card{padding:14px}}

/* A drawer keeps the familiar icons available on narrow screens. */
.topbar-leading { display:flex; align-items:center; gap:10px; min-width:0; }
.nav-toggle,.nav-close,.nav-scrim { display:none; }
@media (max-width:780px) {
  body.nav-open { overflow:hidden; }
  .nav-toggle { display:grid; place-items:center; flex:none; width:44px; height:44px; color:#23675e; }
  .topbar .crumbs { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .top-actions { flex:none; }
  .sidebar {
    display:flex;
    width:min(280px,calc(100vw - 48px));
    position:fixed;
    inset:0 auto 0 0;
    z-index:8;
    padding:26px 16px 22px;
    border-right:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    transform:translateX(-100%);
    visibility:hidden;
    transition:transform .2s ease,visibility .2s;
    box-shadow:12px 0 40px #162b2528;
  }
  .sidebar.mobile-open { transform:translateX(0); visibility:visible; }
  .sidebar .brand { padding:0 40px 32px 8px; }
  .sidebar .brand>span:last-child { display:block; }
  .sidebar .brand-mark { flex:none; }
  .sidebar .nav-label { font-size:10px; }
  .sidebar .nav-item { min-height:48px; padding:14px; font-size:13px; justify-content:flex-start; }
  .sidebar .nav-icon { display:inline-block; font-size:20px; }
  .sidebar .nav-count { display:inline-block; }
  .sidebar .sidebar-bottom { display:flex; padding-top:18px; margin-top:24px; }
  .nav-close { display:grid; place-items:center; position:absolute; top:20px; right:10px; width:40px; height:40px; }
  .nav-scrim:not([hidden]) { display:block; position:fixed; inset:0; width:100%; height:100%; border:0; padding:0; background:#152e2d55; z-index:7; }
  .nav-item:focus-visible,.nav-toggle:focus-visible,.nav-close:focus-visible { outline:2px solid #23675e; outline-offset:2px; }
}
@media (prefers-reduced-motion:reduce) {
  .sidebar { transition:none; }
}
