/* BUILT Staff — Support workspace v2 (overview, inbox desk, triage, closed).
   Everything is scoped under .ssx so the legacy support styles never apply. */
html.staff-v3 body .v3-main>.v3-support-x{width:100%;max-width:1760px;margin:0 auto;container-type:inline-size;container-name:ssx}
html.staff-v3 body #app .ssx{
  --x-bg:#060608;--x-panel:#0e0e12;--x-panel2:#131318;--x-raised:#17171d;--x-hover:#1b1b22;
  --x-line:rgba(255,255,255,.07);--x-line2:rgba(255,255,255,.12);--x-line3:rgba(255,255,255,.18);
  --x-text:#f4f4f5;--x-dim:#b3b3bb;--x-mute:#7d7d87;
  --x-or:#ff6b24;--x-or2:#ff8a4c;--x-or-soft:rgba(255,107,36,.12);--x-or-line:rgba(255,107,36,.38);
  --x-good:#34d399;--x-warn:#fbbf24;--x-bad:#f87171;--x-blue:#7cb4ff;--x-violet:#b49cff;
  --x-r:14px;--x-r-sm:9px;
  --x-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--x-text);font:500 13px/1.45 var(--x-font);-webkit-font-smoothing:antialiased
}
html.staff-v3 body #app .ssx *{box-sizing:border-box}
html.staff-v3 body #app .ssx :is(h1,h2,h3,p){margin:0;font-family:var(--x-font);text-transform:none;letter-spacing:0}
html.staff-v3 body #app .ssx button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;text-transform:none;letter-spacing:0;box-shadow:none;min-height:0;min-width:0;width:auto}
html.staff-v3 body #app .ssx button:disabled{cursor:default;opacity:.45}
html.staff-v3 body #app .ssx button:focus-visible,html.staff-v3 body #app .ssx :is(select,input,textarea):focus-visible{outline:2px solid var(--x-or2)!important;outline-offset:2px}
html.staff-v3 body #app .ssx svg.ssx-i{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;max-width:none}
html.staff-v3 body #app .ssx .ssx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- header */
html.staff-v3 body #app .ssx .ssx-head{display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;min-width:0}
html.staff-v3 body #app .ssx .ssx-title{min-width:0;margin-right:4px}
html.staff-v3 body #app .ssx .ssx-title h1{font:700 24px/1.15 var(--x-font);letter-spacing:-.02em;color:#fff}
html.staff-v3 body #app .ssx .ssx-title p{display:flex;align-items:center;gap:7px;color:var(--x-mute);font-size:12.5px;margin-top:3px;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-live{width:7px;height:7px;border-radius:50%;background:var(--x-good);box-shadow:0 0 0 3px rgba(52,211,153,.15);flex:none}
html.staff-v3 body #app .ssx .ssx-seg{display:flex;gap:2px;padding:3px;border:1px solid var(--x-line2);border-radius:11px;background:var(--x-panel);min-width:0;overflow-x:auto;scrollbar-width:none}
html.staff-v3 body #app .ssx .ssx-seg::-webkit-scrollbar{display:none}
html.staff-v3 body #app .ssx .ssx-seg button{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 13px;border:0;border-radius:8px;background:transparent;color:var(--x-dim);font-weight:600;font-size:13px;white-space:nowrap;transition:background .15s,color .15s}
html.staff-v3 body #app .ssx .ssx-seg button:hover{color:#fff}
html.staff-v3 body #app .ssx .ssx-seg button[aria-current="page"]{background:var(--x-raised);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.4)}
html.staff-v3 body #app .ssx .ssx-seg button[aria-current="page"] svg{color:var(--x-or2)}
html.staff-v3 body #app .ssx .ssx-seg em{font-style:normal;font-size:11px;font-weight:700;color:var(--x-mute);font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-seg button[aria-current="page"] em{color:var(--x-or2)}
html.staff-v3 body #app .ssx .ssx-search{margin-left:auto;display:flex;align-items:center;gap:8px;width:min(340px,100%);height:38px;padding:0 12px;border:1px solid var(--x-line2);border-radius:10px;background:var(--x-panel);color:var(--x-mute);transition:border-color .15s}
html.staff-v3 body #app .ssx .ssx-search:focus-within{border-color:var(--x-or-line)}
html.staff-v3 body #app .ssx .ssx-search input{flex:1;min-width:0;height:100%!important;min-height:0!important;border:0!important;background:transparent!important;color:var(--x-text)!important;font:500 13px/1 var(--x-font)!important;padding:0!important;outline:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
html.staff-v3 body #app .ssx .ssx-search input::placeholder{color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-error{padding:11px 14px;border:1px solid rgba(248,113,113,.35);border-radius:10px;background:rgba(248,113,113,.08);color:#fecaca}

/* ---------- shared atoms */
html.staff-v3 body #app .ssx .ssx-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 12px;border:1px solid var(--x-line2);border-radius:var(--x-r-sm);background:var(--x-raised);color:var(--x-text);font-weight:600;font-size:12.5px;white-space:nowrap;transition:border-color .15s,background .15s}
html.staff-v3 body #app .ssx .ssx-btn:hover:not(:disabled){border-color:var(--x-line3);background:var(--x-hover)}
html.staff-v3 body #app .ssx .ssx-btn-sm{height:30px;padding:0 10px;font-size:12px}
html.staff-v3 body #app .ssx .ssx-btn-icon{width:34px;padding:0}
html.staff-v3 body #app .ssx .ssx-btn-primary{background:var(--x-or);border-color:var(--x-or);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
html.staff-v3 body #app .ssx .ssx-btn-primary:hover:not(:disabled){background:#ff7a3a;border-color:#ff7a3a}
html.staff-v3 body #app .ssx .ssx-btn.is-busy{opacity:.6;pointer-events:none}
html.staff-v3 body #app .ssx .ssx-pill{display:inline-flex;align-items:center;gap:6px;height:21px;padding:0 8px 0 7px;border:1px solid;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap;line-height:1}
html.staff-v3 body #app .ssx .ssx-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
html.staff-v3 body #app .ssx .ssx-st-new{color:var(--x-or2);border-color:rgba(255,107,36,.35);background:rgba(255,107,36,.09)}
html.staff-v3 body #app .ssx :is(.ssx-st-needs_reply,.ssx-st-open){color:var(--x-blue);border-color:rgba(124,180,255,.32);background:rgba(124,180,255,.08)}
html.staff-v3 body #app .ssx .ssx-st-waiting{color:var(--x-warn);border-color:rgba(251,191,36,.32);background:rgba(251,191,36,.08)}
html.staff-v3 body #app .ssx .ssx-st-resolved{color:var(--x-good);border-color:rgba(52,211,153,.32);background:rgba(52,211,153,.08)}
html.staff-v3 body #app .ssx :is(.ssx-st-unresolved,.ssx-st-closed){color:#fca5a5;border-color:rgba(248,113,113,.3);background:rgba(248,113,113,.07)}
html.staff-v3 body #app .ssx .ssx-prio{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--x-dim);white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-prio b{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
html.staff-v3 body #app .ssx .ssx-prio b i{display:block;width:3px;border-radius:1px;background:#34343c}
html.staff-v3 body #app .ssx .ssx-prio b i:nth-child(1){height:5px}html.staff-v3 body #app .ssx .ssx-prio b i:nth-child(2){height:8px}html.staff-v3 body #app .ssx .ssx-prio b i:nth-child(3){height:12px}
html.staff-v3 body #app .ssx .ssx-p-low b i:nth-child(1),html.staff-v3 body #app .ssx .ssx-p-normal b i:nth-child(-n+2){background:var(--x-dim)}
html.staff-v3 body #app .ssx .ssx-p-high b i{background:var(--x-or)}
html.staff-v3 body #app .ssx .ssx-p-urgent{color:var(--x-bad)}html.staff-v3 body #app .ssx .ssx-p-urgent b i{background:var(--x-bad)}
html.staff-v3 body #app .ssx .ssx-tag{display:inline-flex;align-items:center;height:18px;padding:0 6px;border:1px solid var(--x-line2);border-radius:5px;font-size:10.5px;font-weight:600;color:var(--x-dim);white-space:nowrap;flex:none}
html.staff-v3 body #app .ssx .ssx-tag.is-biz{color:#cbbcff;border-color:rgba(180,156,255,.32)}
html.staff-v3 body #app .ssx .ssx-owner{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#26262e;color:var(--x-dim);font-size:9.5px;font-weight:750;letter-spacing:.02em;flex:none}
html.staff-v3 body #app .ssx .ssx-owner.is-me{background:var(--x-or);color:#fff}
html.staff-v3 body #app .ssx .ssx-owner.is-none{background:transparent;border:1px dashed var(--x-line3)}
html.staff-v3 body #app .ssx .ssx-due{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;color:var(--x-mute);white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-due svg.ssx-i{width:12px;height:12px}
html.staff-v3 body #app .ssx .ssx-due.is-ok svg{color:var(--x-good)}
html.staff-v3 body #app .ssx .ssx-due.is-warn{color:var(--x-warn)}html.staff-v3 body #app .ssx .ssx-due.is-bad{color:var(--x-bad)}
html.staff-v3 body #app .ssx .ssx-swatch{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none}
html.staff-v3 body #app .ssx .ssx-empty-line{color:var(--x-mute);font-size:12.5px;padding:10px 0}
html.staff-v3 body #app .ssx select{-webkit-appearance:none!important;appearance:none!important;height:32px!important;min-height:0!important;padding:0 28px 0 10px!important;border:1px solid var(--x-line2)!important;border-radius:8px!important;background:var(--x-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d7d87' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center/13px!important;color:var(--x-text)!important;font:600 12.5px/1 var(--x-font)!important;box-shadow:none!important;width:auto!important;max-width:100%;cursor:pointer}
html.staff-v3 body #app .ssx select:disabled{opacity:.5;cursor:default}

/* ---------- inbox desk */
html.staff-v3 body #app .ssx .ssx-desk{--ssx-mode:quad;position:relative;display:grid;grid-template-columns:208px 336px minmax(0,1fr) 316px;grid-template-rows:minmax(0,1fr);height:calc(100dvh - 190px);min-height:520px;border:1px solid var(--x-line);border-radius:var(--x-r);background:var(--x-panel);overflow:hidden}
html.staff-v3 body #app .ssx .ssx-desk:not(.has-active){grid-template-columns:208px 336px minmax(0,1fr)}
html.staff-v3 body #app .ssx .ssx-rail{display:flex;flex-direction:column;gap:1px;padding:12px 10px;border-right:1px solid var(--x-line);overflow-y:auto;min-height:0;background:rgba(0,0,0,.18);scrollbar-width:thin}
html.staff-v3 body #app .ssx .ssx-rail-label{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--x-mute);padding:12px 10px 6px}
html.staff-v3 body #app .ssx .ssx-rail-label:first-child{padding-top:2px}
html.staff-v3 body #app .ssx .ssx-rail-item{display:flex;align-items:center;gap:9px;width:100%;min-height:32px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--x-dim);font-weight:550;font-size:12.5px;text-align:left;transition:background .12s,color .12s}
html.staff-v3 body #app .ssx .ssx-rail-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-rail-item svg{color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-rail-item em{font-style:normal;font-size:11.5px;color:var(--x-mute);font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-rail-item em.is-hot{color:var(--x-bad);font-weight:700}
html.staff-v3 body #app .ssx .ssx-rail-item:hover{background:rgba(255,255,255,.035);color:#fff}
html.staff-v3 body #app .ssx .ssx-rail-item[aria-pressed="true"]{background:var(--x-raised);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
html.staff-v3 body #app .ssx .ssx-rail-item[aria-pressed="true"] svg{color:var(--x-or2)}
html.staff-v3 body #app .ssx .ssx-rail-item[aria-pressed="true"] em{color:#fff}

html.staff-v3 body #app .ssx .ssx-list{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--x-line)}
html.staff-v3 body #app .ssx .ssx-list-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--x-line);min-height:58px}
html.staff-v3 body #app .ssx .ssx-list-head>div{flex:1;min-width:0}
html.staff-v3 body #app .ssx .ssx-list-head h2{font:700 14.5px/1.2 var(--x-font);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-list-head span{display:block;color:var(--x-mute);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-list-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
html.staff-v3 body #app .ssx .ssx-tk{position:relative;display:grid;gap:3px;width:100%;padding:12px 14px 12px 17px;border:0;border-bottom:1px solid var(--x-line);border-radius:0;background:transparent;text-align:left;transition:background .12s}
html.staff-v3 body #app .ssx .ssx-tk::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:transparent}
html.staff-v3 body #app .ssx .ssx-tk-urgent::before{background:var(--x-bad)}html.staff-v3 body #app .ssx .ssx-tk-high::before{background:rgba(255,107,36,.75)}
html.staff-v3 body #app .ssx .ssx-tk:hover{background:rgba(255,255,255,.025)}
html.staff-v3 body #app .ssx .ssx-tk[aria-current="true"]{background:linear-gradient(90deg,rgba(255,107,36,.1),rgba(255,107,36,.02) 70%,transparent)}
html.staff-v3 body #app .ssx .ssx-tk[aria-current="true"]::before{background:var(--x-or);top:0;bottom:0}
html.staff-v3 body #app .ssx .ssx-tk-l1{display:flex;align-items:center;gap:7px;min-width:0}
html.staff-v3 body #app .ssx .ssx-tk-l1 b{font-size:12px;font-weight:600;color:var(--x-dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-tk-l1 time{margin-left:auto;font-size:11px;color:var(--x-mute);white-space:nowrap;font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-tk-l1 time.is-late{color:var(--x-bad);font-weight:650}
html.staff-v3 body #app .ssx .ssx-tk-subj{font-size:13.5px;font-weight:650;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px}
html.staff-v3 body #app .ssx .ssx-tk-pre{font-size:12.5px;color:var(--x-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-tk-l3{display:flex;align-items:center;gap:9px;margin-top:5px;min-width:0}
html.staff-v3 body #app .ssx .ssx-tk-l3 .ssx-owner{margin-left:auto}
html.staff-v3 body #app .ssx .ssx-list-empty{display:grid;justify-items:center;gap:6px;padding:48px 20px;text-align:center;color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-list-empty svg.ssx-i{width:26px;height:26px;color:var(--x-good);margin-bottom:4px}
html.staff-v3 body #app .ssx .ssx-list-empty b{color:#fff;font-size:14px}
html.staff-v3 body #app .ssx .ssx-skel{display:grid;gap:1px}
html.staff-v3 body #app .ssx .ssx-skel i{display:block;height:92px;background:linear-gradient(90deg,rgba(255,255,255,.02),rgba(255,255,255,.05),rgba(255,255,255,.02));background-size:200% 100%;animation:ssx-shimmer 1.3s infinite linear}
@keyframes ssx-shimmer{to{background-position:-200% 0}}

/* conversation */
html.staff-v3 body #app .ssx .ssx-conv{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--x-bg)}
html.staff-v3 body #app .ssx .ssx-conv-empty{display:grid;place-items:center;text-align:center;color:var(--x-mute);background:radial-gradient(600px 300px at 50% 40%,rgba(255,107,36,.05),transparent 70%),var(--x-bg)}
html.staff-v3 body #app .ssx .ssx-conv-empty>div{display:grid;justify-items:center;gap:6px;padding:24px;max-width:300px}
html.staff-v3 body #app .ssx .ssx-conv-empty svg.ssx-i{width:30px;height:30px;color:var(--x-line3);margin-bottom:6px}
html.staff-v3 body #app .ssx .ssx-conv-empty b{color:#fff;font-size:15px}
html.staff-v3 body #app .ssx .ssx-conv-head{padding:14px 20px 12px;border-bottom:1px solid var(--x-line);background:var(--x-panel)}
html.staff-v3 body #app .ssx .ssx-conv-top{display:flex;align-items:center;gap:10px;min-height:34px}
html.staff-v3 body #app .ssx .ssx-back{display:none;align-items:center;gap:4px;height:32px;padding:0 10px 0 6px;border:1px solid var(--x-line2);border-radius:8px;background:var(--x-raised);font-weight:600;font-size:12.5px;flex:none}
html.staff-v3 body #app .ssx .ssx-crumbs{display:flex;align-items:center;gap:8px;min-width:0;color:var(--x-mute);font-size:11.5px;font-weight:550;white-space:nowrap;overflow:hidden}
html.staff-v3 body #app .ssx .ssx-crumbs span{overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-crumbs i,html.staff-v3 body #app .ssx .ssx-conv-sub>i{width:3px;height:3px;border-radius:50%;background:var(--x-line3);flex:none}
html.staff-v3 body #app .ssx .ssx-ref{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:var(--x-dim);flex:none}
html.staff-v3 body #app .ssx .ssx-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
html.staff-v3 body #app .ssx .ssx-actions .rsc-launch{display:inline-flex!important;align-items:center!important;gap:7px!important;height:34px!important;min-height:0!important;padding:0 12px!important;border:1px solid rgba(52,211,153,.32)!important;border-radius:9px!important;background:rgba(52,211,153,.07)!important;color:#7ee2b8!important;font:600 12.5px/1 var(--x-font)!important;white-space:nowrap!important;width:auto!important;margin:0!important}
html.staff-v3 body #app .ssx .ssx-actions .rsc-launch svg{width:15px!important;height:15px!important}
html.staff-v3 body #app .ssx .ssx-side-toggle{display:none}
html.staff-v3 body #app .ssx .ssx-conv-head h2{font:700 18px/1.3 var(--x-font);letter-spacing:-.015em;color:#fff;margin-top:8px;overflow-wrap:anywhere}
html.staff-v3 body #app .ssx .ssx-conv-sub{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;margin-top:4px;color:var(--x-mute);font-size:12px;min-width:0}
html.staff-v3 body #app .ssx .ssx-conv-sub>span:first-child{overflow-wrap:anywhere}
html.staff-v3 body #app .ssx .ssx-props{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:10px 20px;border-bottom:1px solid var(--x-line);background:rgba(0,0,0,.25)}
html.staff-v3 body #app .ssx .ssx-prop{display:inline-flex;align-items:center;gap:8px;margin:0;min-width:0}
html.staff-v3 body #app .ssx .ssx-prop>span:first-child{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-prop b{font-size:12.5px;font-weight:600}
html.staff-v3 body #app .ssx .ssx-prop b.is-dim{color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-closed-bar{display:flex;align-items:baseline;gap:10px;padding:11px 20px;border-bottom:1px solid var(--x-line);background:rgba(52,211,153,.05);color:var(--x-dim);font-size:12.5px}
html.staff-v3 body #app .ssx .ssx-closed-bar b{color:var(--x-good);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;flex:none}
html.staff-v3 body #app .ssx .ssx-stream{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 22px;display:flex;flex-direction:column;gap:16px;scrollbar-width:thin}
html.staff-v3 body #app .ssx .ssx-day{display:flex;align-items:center;gap:12px;color:var(--x-mute);font-size:11.5px;font-weight:600}
html.staff-v3 body #app .ssx .ssx-day::before,html.staff-v3 body #app .ssx .ssx-day::after{content:"";flex:1;height:1px;background:var(--x-line)}
html.staff-v3 body #app .ssx .ssx-sys{display:flex;align-items:center;gap:8px;color:var(--x-mute);font-size:12px;padding-left:44px;overflow-wrap:anywhere}
html.staff-v3 body #app .ssx .ssx-sys svg.ssx-i{width:13px;height:13px;flex:none}
html.staff-v3 body #app .ssx .ssx-sys.is-closed{color:var(--x-dim)}html.staff-v3 body #app .ssx .ssx-sys.is-closed svg{color:var(--x-good)}
html.staff-v3 body #app .ssx .ssx-msg{display:flex;gap:12px;max-width:760px}
html.staff-v3 body #app .ssx .ssx-msg>div{min-width:0;flex:1}
html.staff-v3 body #app .ssx .ssx-av{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#24202f;color:#d9ccff;font-size:11.5px;font-weight:750;flex:none}
html.staff-v3 body #app .ssx .ssx-msg.is-staff .ssx-av{background:var(--x-or);color:#fff}
html.staff-v3 body #app .ssx .ssx-msg-h{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
html.staff-v3 body #app .ssx .ssx-msg-h b{font-size:13px;font-weight:700}
html.staff-v3 body #app .ssx .ssx-msg-h em{font-style:normal;font-size:9.5px;font-weight:750;letter-spacing:.1em;text-transform:uppercase;color:var(--x-or2);border:1px solid var(--x-or-line);border-radius:4px;padding:1px 5px}
html.staff-v3 body #app .ssx .ssx-msg-h time{color:var(--x-mute);font-size:11.5px}
html.staff-v3 body #app .ssx .ssx-msg p{margin-top:4px;color:#d9d9dc;font-size:13.5px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
html.staff-v3 body #app .ssx .ssx-msg.is-staff p{color:#ececee}
html.staff-v3 body #app .ssx .ssx-readonly{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px;border-top:1px solid var(--x-line);color:var(--x-mute);font-size:12.5px}
html.staff-v3 body #app .ssx .ssx-composer{margin:0 16px 16px;border:1px solid var(--x-line2);border-radius:12px;background:var(--x-panel);position:relative;transition:border-color .15s}
html.staff-v3 body #app .ssx .ssx-composer:focus-within{border-color:var(--x-or-line);box-shadow:0 0 0 4px rgba(255,107,36,.07)}
html.staff-v3 body #app .ssx .ssx-comp-top{display:flex;align-items:center;gap:8px;padding:8px 8px 6px 14px;border-bottom:1px solid var(--x-line)}
html.staff-v3 body #app .ssx .ssx-comp-top>span{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:650;color:#fff;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
html.staff-v3 body #app .ssx .ssx-comp-top>span svg{color:var(--x-or2)}
html.staff-v3 body #app .ssx .ssx-composer textarea{display:block;width:100%!important;min-height:84px!important;max-height:40vh;resize:vertical;padding:12px 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--x-text)!important;font:500 13.5px/1.55 var(--x-font)!important;box-shadow:none!important;outline:0!important}
html.staff-v3 body #app .ssx .ssx-composer textarea::placeholder{color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-comp-foot{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-top:1px solid var(--x-line);flex-wrap:wrap}
html.staff-v3 body #app .ssx .ssx-hint{color:var(--x-mute);font-size:11.5px;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-after{margin-left:auto!important}
html.staff-v3 body #app .ssx .ssx-after{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--x-mute);font-size:11.5px;min-width:0}
html.staff-v3 body #app .ssx .ssx-saved{position:absolute;left:8px;right:8px;bottom:calc(100% + 6px);z-index:5;display:grid;gap:2px;max-height:min(300px,46vh);overflow-y:auto;padding:6px;border:1px solid var(--x-line2);border-radius:12px;background:#121217;box-shadow:0 24px 60px -12px rgba(0,0,0,.8)}
html.staff-v3 body #app .ssx .ssx-saved button{display:grid;gap:2px;padding:9px 10px;border:0;border-radius:8px;background:transparent;text-align:left}
html.staff-v3 body #app .ssx .ssx-saved button:hover{background:var(--x-hover)}
html.staff-v3 body #app .ssx .ssx-saved b{font-size:12.5px;color:#fff}
html.staff-v3 body #app .ssx .ssx-saved span{font-size:12px;color:var(--x-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* side rail (customer context + case workspace) */
html.staff-v3 body #app .ssx .ssx-side{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;border-left:1px solid var(--x-line);background:var(--x-panel);scrollbar-width:thin}
html.staff-v3 body #app .ssx .ssx-side-head{display:none;align-items:center;justify-content:space-between;padding:2px 2px 4px}
html.staff-v3 body #app .ssx .ssx-side-head b{font-size:13px}
html.staff-v3 body #app .ssx .ssx-ctx-host:empty,html.staff-v3 body #app .ssx .ssx-case-host:empty{display:none}
html.staff-v3 body #app .ssx .ssx-ctx-host .v3-ctx{position:static!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column;gap:12px}
html.staff-v3 body #app .ssx .ssx-case-host .st44-case{margin:0!important;padding:14px!important;border:1px solid var(--x-line)!important;border-radius:12px!important;background:var(--x-panel2)!important;font-size:13px}
html.staff-v3 body #app .ssx .ssx-case-host .st44-case h3{font-size:14px!important}
html.staff-v3 body #app .ssx .ssx-case-host .st44-case button{min-height:34px!important;padding:6px 12px!important;border-radius:9px!important;font-size:12.5px!important}
html.staff-v3 body #app .ssx .ssx-case-host .st44-case :is(select,textarea){min-height:38px!important;border-radius:9px!important;font-size:13px!important}

/* close dialog */
html.staff-v3 body #app .ssx .ssx-scrim{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.66);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:ssx-fade .14s ease-out}
html.staff-v3 body #app .ssx .ssx-modal{width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--x-line2);border-radius:16px;background:var(--x-panel);box-shadow:0 40px 120px -20px #000;animation:ssx-rise .18s ease-out}
@keyframes ssx-fade{from{opacity:0}}@keyframes ssx-rise{from{opacity:0;transform:translateY(8px) scale(.99)}}
html.staff-v3 body #app .ssx .ssx-modal>header{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid var(--x-line)}
html.staff-v3 body #app .ssx .ssx-modal>header>div{flex:1;min-width:0}
html.staff-v3 body #app .ssx .ssx-modal h2{font:700 17px/1.3 var(--x-font);color:#fff}
html.staff-v3 body #app .ssx .ssx-modal>header p{color:var(--x-mute);font-size:12.5px;margin-top:3px;overflow-wrap:anywhere}
html.staff-v3 body #app .ssx .ssx-modal-body{display:grid;gap:10px;padding:18px 20px}
html.staff-v3 body #app .ssx .ssx-field-label{display:block;font-size:12px;font-weight:650;color:var(--x-dim);margin:4px 0 0}
html.staff-v3 body #app .ssx .ssx-field-label span{color:var(--x-mute);font-weight:500}
html.staff-v3 body #app .ssx .ssx-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html.staff-v3 body #app .ssx .ssx-outcomes button{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 8px;padding:11px 12px;border:1px solid var(--x-line2);border-radius:10px;background:transparent;text-align:left}
html.staff-v3 body #app .ssx .ssx-outcomes button b{font-size:13px}
html.staff-v3 body #app .ssx .ssx-outcomes button span{grid-column:1/-1;font-size:11.5px;color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-outcomes button[aria-pressed="true"]{border-color:var(--x-good);background:rgba(52,211,153,.06);box-shadow:0 0 0 3px rgba(52,211,153,.1)}
html.staff-v3 body #app .ssx .ssx-outcomes button[aria-pressed="true"] svg{color:var(--x-good)}
html.staff-v3 body #app .ssx .ssx-outcomes button[data-staff-support-close-outcome="unresolved"][aria-pressed="true"]{border-color:var(--x-bad);background:rgba(248,113,113,.06);box-shadow:0 0 0 3px rgba(248,113,113,.1)}
html.staff-v3 body #app .ssx .ssx-outcomes button[data-staff-support-close-outcome="unresolved"][aria-pressed="true"] svg{color:var(--x-bad)}
html.staff-v3 body #app .ssx .ssx-modal textarea{width:100%!important;min-height:104px!important;padding:11px 12px!important;border:1px solid var(--x-line2)!important;border-radius:10px!important;background:var(--x-bg)!important;color:var(--x-text)!important;font:500 13.5px/1.55 var(--x-font)!important;resize:vertical;box-shadow:none!important}
html.staff-v3 body #app .ssx .ssx-modal textarea:focus{border-color:var(--x-or-line)!important;outline:0!important}
html.staff-v3 body #app .ssx .ssx-fine{display:flex;align-items:center;gap:7px;color:var(--x-mute);font-size:11.5px}
html.staff-v3 body #app .ssx .ssx-fine svg.ssx-i{width:13px;height:13px}
html.staff-v3 body #app .ssx .ssx-modal>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--x-line)}

/* ---------- overview */
html.staff-v3 body #app .ssx .ssx-ov{display:grid;gap:14px}
html.staff-v3 body #app .ssx .ssx-ov-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
html.staff-v3 body #app .ssx .ssx-ov-head>div:first-child{flex:1;min-width:220px}
html.staff-v3 body #app .ssx .ssx-ov-head h2{font:700 18px/1.25 var(--x-font);color:#fff;letter-spacing:-.01em}
html.staff-v3 body #app .ssx .ssx-ov-head p{color:var(--x-mute);font-size:12.5px;margin-top:2px}
html.staff-v3 body #app .ssx .ssx-range{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--x-line2);border-radius:10px;background:var(--x-panel)}
html.staff-v3 body #app .ssx .ssx-range button{height:28px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:var(--x-dim);font-weight:600;font-size:12px;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-range button[aria-pressed="true"]{background:var(--x-raised);color:#fff}
html.staff-v3 body #app .ssx .ssx-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
html.staff-v3 body #app .ssx .ssx-kpi{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:14px 16px 12px;border:1px solid var(--x-line);border-radius:var(--x-r);background:linear-gradient(180deg,var(--x-panel2),var(--x-panel));text-align:left;overflow:hidden}
html.staff-v3 body #app .ssx button.ssx-kpi:hover{border-color:var(--x-line2)}
html.staff-v3 body #app .ssx .ssx-kpi.is-warn{border-color:rgba(251,191,36,.28)}
html.staff-v3 body #app .ssx .ssx-kpi-label{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--x-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-kpi-value{display:flex;align-items:baseline;gap:3px;margin:8px 0 2px;font:700 27px/1.05 var(--x-font);letter-spacing:-.03em;color:#fff;font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-kpi-value small{font-size:13px;font-weight:600;letter-spacing:0;color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-kpi-foot{display:flex;align-items:center;gap:6px;min-height:18px;font-size:11.5px;white-space:nowrap;overflow:hidden}
html.staff-v3 body #app .ssx .ssx-kpi-note{color:var(--x-mute);overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-delta{font-weight:650;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-delta.is-good{color:var(--x-good)}html.staff-v3 body #app .ssx .ssx-delta.is-bad{color:var(--x-bad)}html.staff-v3 body #app .ssx .ssx-delta.is-flat{color:var(--x-mute);font-weight:550}
html.staff-v3 body #app .ssx .ssx-spark{display:block;width:100%;height:30px;margin-top:10px}
html.staff-v3 body #app .ssx .ssx-spark-empty{height:30px;margin-top:10px;border-bottom:1px dashed var(--x-line2)}
html.staff-v3 body #app .ssx .ssx-kpi-cta{display:flex;align-items:center;gap:6px;height:30px;margin-top:10px;color:var(--x-or2);font-size:12px;font-weight:650}
html.staff-v3 body #app .ssx .ssx-kpi-cta svg.ssx-i{width:13px;height:13px}
html.staff-v3 body #app .ssx .ssx-ov-row{display:grid;gap:12px;min-width:0}
html.staff-v3 body #app .ssx .ssx-ov-row-a{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
html.staff-v3 body #app .ssx .ssx-ov-row-b{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)}
html.staff-v3 body #app .ssx .ssx-card{min-width:0;padding:16px 18px;border:1px solid var(--x-line);border-radius:var(--x-r);background:var(--x-panel)}
html.staff-v3 body #app .ssx .ssx-card>header{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-bottom:12px}
html.staff-v3 body #app .ssx .ssx-card h3{font:700 13.5px/1.3 var(--x-font);color:#fff}
html.staff-v3 body #app .ssx .ssx-card>header small{color:var(--x-mute);font-size:12px}
html.staff-v3 body #app .ssx .ssx-legend{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--x-dim);font-size:11.5px}
html.staff-v3 body #app .ssx .ssx-legend i{width:8px;height:8px;border-radius:2px;margin-left:8px}
html.staff-v3 body #app .ssx .ssx-legend i.is-created{background:var(--x-or)}html.staff-v3 body #app .ssx .ssx-legend i.is-resolved{background:var(--x-good)}
html.staff-v3 body #app .ssx .ssx-chart{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px}
html.staff-v3 body #app .ssx .ssx-chart-y{position:relative;height:180px}
html.staff-v3 body #app .ssx .ssx-chart-y span{position:absolute;right:0;transform:translateY(50%);font-size:10px;color:var(--x-mute);font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-chart-plot{min-width:0}
html.staff-v3 body #app .ssx .ssx-chart-plot svg{display:block;width:100%;height:180px;max-width:none}
html.staff-v3 body #app .ssx .ssx-grid{stroke:rgba(255,255,255,.06);stroke-width:1;vector-effect:non-scaling-stroke}
html.staff-v3 body #app .ssx .ssx-bar{fill:rgba(255,107,36,.38)}html.staff-v3 body #app .ssx .ssx-bar.is-today{fill:var(--x-or)}
html.staff-v3 body #app .ssx .ssx-line{fill:none;stroke:var(--x-good);stroke-width:2;stroke-linejoin:round}
html.staff-v3 body #app .ssx .ssx-chart-x{position:relative;height:18px;margin-top:6px}
html.staff-v3 body #app .ssx .ssx-chart-x span{position:absolute;transform:translateX(-50%);font-size:10.5px;color:var(--x-mute);white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-ring-wrap{display:flex;align-items:center;gap:16px}
html.staff-v3 body #app .ssx .ssx-ring{width:84px;height:84px;flex:none;max-width:none}
html.staff-v3 body #app .ssx .ssx-ring-track{fill:none;stroke:#1d1d24;stroke-width:3.4}
html.staff-v3 body #app .ssx .ssx-ring-fill{fill:none;stroke:var(--x-good);stroke-width:3.4;stroke-linecap:round}
html.staff-v3 body #app .ssx .ssx-ring-fill.is-low{stroke:var(--x-warn)}
html.staff-v3 body #app .ssx .ssx-ring-wrap strong{display:block;font:700 24px/1.1 var(--x-font);letter-spacing:-.02em}
html.staff-v3 body #app .ssx .ssx-ring-wrap p{color:var(--x-mute);font-size:12px;margin-top:3px}
html.staff-v3 body #app .ssx .ssx-qbars{display:grid;gap:4px;margin:14px 0 10px}
html.staff-v3 body #app .ssx .ssx-qbar{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr) 42px;align-items:center;gap:12px;padding:6px 0;border:0;background:transparent;text-align:left;font-size:12.5px}
html.staff-v3 body #app .ssx .ssx-qbar>span:first-child{display:flex;align-items:center;gap:8px;color:var(--x-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-qbar>span:first-child i{width:8px;height:8px;border-radius:2px;flex:none}
html.staff-v3 body #app .ssx .ssx-qbar>b{text-align:right;font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-qbar:hover>span:first-child{color:#fff}
html.staff-v3 body #app .ssx .ssx-meter{display:block;height:7px;border-radius:5px;background:#1d1d24;overflow:hidden}
html.staff-v3 body #app .ssx .ssx-meter b{display:block;height:100%;border-radius:5px}
html.staff-v3 body #app .ssx .ssx-team{display:grid}
html.staff-v3 body #app .ssx .ssx-team-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1.1fr) 70px 54px;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--x-line);font-size:12.5px;color:var(--x-dim);font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-team-row:last-child{border-bottom:0}
html.staff-v3 body #app .ssx .ssx-team-row.is-head{padding-top:0;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--x-mute)}
html.staff-v3 body #app .ssx .ssx-team-who{display:flex;align-items:center;gap:9px;min-width:0}
html.staff-v3 body #app .ssx .ssx-team-who b{color:#fff;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-team-who em{font-style:normal;font-size:10px;color:var(--x-or2);border:1px solid var(--x-or-line);border-radius:4px;padding:0 4px}
html.staff-v3 body #app .ssx .ssx-team-load{display:flex;align-items:center;gap:8px}
html.staff-v3 body #app .ssx .ssx-team-load i{flex:1;max-width:80px;height:6px;border-radius:4px;background:#1d1d24;overflow:hidden}
html.staff-v3 body #app .ssx .ssx-team-load i b{display:block;height:100%;background:var(--x-or);border-radius:4px}
html.staff-v3 body #app .ssx .ssx-risk{display:grid}
html.staff-v3 body #app .ssx .ssx-risk-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 0;border:0;border-bottom:1px solid var(--x-line);background:transparent;text-align:left}
html.staff-v3 body #app .ssx .ssx-risk-row:last-child{border-bottom:0}
html.staff-v3 body #app .ssx .ssx-risk-main{display:grid;min-width:0;flex:1}
html.staff-v3 body #app .ssx .ssx-risk-main b{font-size:12.5px;font-weight:600;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-risk-main small{font-size:11.5px;color:var(--x-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-risk-row:hover b{color:var(--x-or2)}
html.staff-v3 body #app .ssx .ssx-risk-t{font-weight:700;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--x-dim)}
html.staff-v3 body #app .ssx .ssx-risk-t.is-bad{color:var(--x-bad)}html.staff-v3 body #app .ssx .ssx-risk-t.is-warn{color:var(--x-warn)}
html.staff-v3 body #app .ssx .ssx-drivers{display:grid;gap:12px}
html.staff-v3 body #app .ssx .ssx-driver{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;font-size:12.5px;color:var(--x-dim)}
html.staff-v3 body #app .ssx .ssx-driver>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-driver>b{color:#fff;font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-driver>i{grid-column:1/-1;display:block;height:5px;border-radius:4px;background:#1d1d24;overflow:hidden}
html.staff-v3 body #app .ssx .ssx-driver>i b{display:block;height:100%;border-radius:4px}

/* ---------- triage + closed tables */
html.staff-v3 body #app .ssx .ssx-triage,html.staff-v3 body #app .ssx .ssx-closed{display:grid;gap:14px;min-width:0}
html.staff-v3 body #app .ssx .ssx-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
html.staff-v3 body #app .ssx .ssx-tile{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--x-line);border-radius:12px;background:var(--x-panel);text-align:left;min-width:0}
html.staff-v3 body #app .ssx .ssx-tile span{font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--x-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-tile b{font:700 22px/1 var(--x-font);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-tile.is-warn b{color:var(--x-warn)}html.staff-v3 body #app .ssx .ssx-tile.is-bad b{color:var(--x-bad)}
html.staff-v3 body #app .ssx .ssx-tile:hover{border-color:var(--x-line2)}
html.staff-v3 body #app .ssx .ssx-tile[aria-pressed="true"]{border-color:var(--x-or-line);background:linear-gradient(180deg,rgba(255,107,36,.08),var(--x-panel));box-shadow:inset 0 0 0 1px rgba(255,107,36,.12)}
html.staff-v3 body #app .ssx .ssx-table-card{min-width:0;border:1px solid var(--x-line);border-radius:var(--x-r);background:var(--x-panel);overflow:hidden}
html.staff-v3 body #app .ssx .ssx-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:52px;padding:9px 14px;border-bottom:1px solid var(--x-line);background:rgba(0,0,0,.2)}
html.staff-v3 body #app .ssx .ssx-bulk.is-on{background:rgba(255,107,36,.06);border-bottom-color:rgba(255,107,36,.22)}
html.staff-v3 body #app .ssx .ssx-bulk>b{font-size:12.5px;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-bulk.is-on>b{color:var(--x-or2)}
html.staff-v3 body #app .ssx .ssx-bulk-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
html.staff-v3 body #app .ssx .ssx-bulk-prio{margin:0}
html.staff-v3 body #app .ssx .ssx-check{position:relative;display:inline-grid;place-items:center;width:20px;height:20px;margin:0;cursor:pointer;flex:none}
html.staff-v3 body #app .ssx .ssx-check input{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;opacity:0;cursor:pointer}
html.staff-v3 body #app .ssx .ssx-check i{width:16px;height:16px;border:1.5px solid var(--x-line3);border-radius:4px;background:transparent;pointer-events:none;transition:background .12s,border-color .12s}
html.staff-v3 body #app .ssx .ssx-check input:checked+i{background:var(--x-or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;border-color:var(--x-or)}
html.staff-v3 body #app .ssx .ssx-check input:focus-visible+i{outline:2px solid var(--x-or2);outline-offset:2px}
html.staff-v3 body #app .ssx .ssx-table{display:grid;min-width:0;overflow-x:auto}
html.staff-v3 body #app .ssx .ssx-tr{display:grid;grid-template-columns:34px minmax(220px,2.2fr) minmax(180px,1.5fr) minmax(130px,1fr) 150px 92px minmax(120px,1fr) 96px;align-items:center;gap:12px;min-width:1080px;padding:10px 14px;border-bottom:1px solid var(--x-line);font-size:12.5px;color:var(--x-dim)}
html.staff-v3 body #app .ssx .ssx-table.is-closed .ssx-tr{grid-template-columns:minmax(220px,2fr) minmax(180px,1.4fr) 120px minmax(200px,2fr) 140px;min-width:900px}
html.staff-v3 body #app .ssx .ssx-tr:last-child{border-bottom:0}
html.staff-v3 body #app .ssx .ssx-tr.is-head{padding-top:9px;padding-bottom:9px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--x-mute);background:rgba(0,0,0,.25)}
html.staff-v3 body #app .ssx .ssx-tr:not(.is-head):hover{background:rgba(255,255,255,.02)}
html.staff-v3 body #app .ssx .ssx-tr.is-selected{background:rgba(255,107,36,.05)}
html.staff-v3 body #app .ssx .ssx-td-main{display:grid;gap:2px;min-width:0;padding:0;border:0;background:transparent;text-align:left}
html.staff-v3 body #app .ssx .ssx-td-main b{color:#fff;font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-td-main span{font-size:11.5px;color:var(--x-mute);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
html.staff-v3 body #app .ssx .ssx-td-main:hover b{color:var(--x-or2)}
html.staff-v3 body #app .ssx :is(.ssx-td-req,.ssx-td-q,.ssx-td-owner){display:flex;align-items:center;gap:8px;min-width:0}
html.staff-v3 body #app .ssx :is(.ssx-td-req,.ssx-td-owner)>span:not(.ssx-tag):not(.ssx-owner){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-td-due{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-td-due.is-bad{color:var(--x-bad)}html.staff-v3 body #app .ssx .ssx-td-due.is-warn{color:var(--x-warn)}html.staff-v3 body #app .ssx .ssx-td-due.is-ok{color:var(--x-text)}
html.staff-v3 body #app .ssx .ssx-td-reason{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.staff-v3 body #app .ssx .ssx-td-date{white-space:nowrap;font-variant-numeric:tabular-nums}
html.staff-v3 body #app .ssx .ssx-closed-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--x-mute);font-size:12.5px}

/* ---------- responsive: wide (rail on top, three panes) */
@container ssx (max-width:1559px){
  html.staff-v3 body #app .ssx .ssx-desk,html.staff-v3 body #app .ssx .ssx-desk:not(.has-active){--ssx-mode:triple;grid-template-columns:330px minmax(0,1fr) 300px;grid-template-rows:auto minmax(0,1fr)}
  html.staff-v3 body #app .ssx .ssx-desk:not(.has-active){grid-template-columns:330px minmax(0,1fr)}
  html.staff-v3 body #app .ssx .ssx-rail{grid-column:1/-1;flex-direction:row;align-items:center;gap:6px;padding:9px 12px;border-right:0;border-bottom:1px solid var(--x-line);overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  html.staff-v3 body #app .ssx .ssx-rail::-webkit-scrollbar{display:none}
  html.staff-v3 body #app .ssx .ssx-rail-label{display:none}
  html.staff-v3 body #app .ssx .ssx-rail-label:not(:first-child){display:block;width:1px;height:20px;padding:0;margin:0 4px;background:var(--x-line2);font-size:0;flex:none}
  html.staff-v3 body #app .ssx .ssx-rail-item{width:auto;flex:none;min-height:30px;padding:5px 10px;border:1px solid var(--x-line);border-radius:999px}
  html.staff-v3 body #app .ssx .ssx-rail-item span{overflow:visible}
  html.staff-v3 body #app .ssx .ssx-rail-item[aria-pressed="true"]{border-color:var(--x-or-line);background:var(--x-or-soft)}
  html.staff-v3 body #app .ssx .ssx-rail{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);padding-right:40px}
  html.staff-v3 body #app .ssx .ssx-actions .rsc-launch{font-size:0!important;gap:0!important;width:34px!important;padding:0!important;justify-content:center!important}
  html.staff-v3 body #app .ssx .ssx-hint{display:none}
  html.staff-v3 body #app .ssx .ssx-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  html.staff-v3 body #app .ssx .ssx-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* medium (two panes; details open as a drawer) */
@container ssx (max-width:1079px){
  html.staff-v3 body #app .ssx .ssx-desk,html.staff-v3 body #app .ssx .ssx-desk:not(.has-active){--ssx-mode:double;grid-template-columns:minmax(260px,320px) minmax(0,1fr)}
  html.staff-v3 body #app .ssx .ssx-side-toggle{display:inline-flex}
  html.staff-v3 body #app .ssx .ssx-side{position:absolute;top:0;right:0;bottom:0;z-index:4;width:min(360px,92%);border-left:1px solid var(--x-line2);box-shadow:-30px 0 60px -20px rgba(0,0,0,.8);transform:translateX(104%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
  html.staff-v3 body #app .ssx .ssx-desk.is-side-open .ssx-side{transform:none;visibility:visible;transition:transform .2s ease}
  html.staff-v3 body #app .ssx .ssx-side-head{display:flex}
  html.staff-v3 body #app .ssx .ssx-ov-row-a,html.staff-v3 body #app .ssx .ssx-ov-row-b{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  html.staff-v3 body #app .ssx .ssx-ov-row-a>:first-child,html.staff-v3 body #app .ssx .ssx-ov-row-b>:first-child{grid-column:1/-1}
  html.staff-v3 body #app .ssx .ssx-search{margin-left:0;flex:1 1 260px;width:auto}
  html.staff-v3 body #app .ssx .ssx-table:not(.is-closed) .ssx-tr{grid-template-columns:30px minmax(0,2fr) minmax(0,1.5fr) 132px 78px minmax(0,1fr) 78px;min-width:0;gap:10px}
  html.staff-v3 body #app .ssx .ssx-table:not(.is-closed) .ssx-tr>:nth-child(4){display:none}
  html.staff-v3 body #app .ssx .ssx-table.is-closed .ssx-tr{grid-template-columns:minmax(0,1.6fr) minmax(0,1.3fr) 110px minmax(0,1.6fr) 118px;min-width:0;gap:10px}
}
/* small (single column: list or ticket) */
@container ssx (max-width:679px){
  html.staff-v3 body #app .ssx .ssx-desk,html.staff-v3 body #app .ssx .ssx-desk:not(.has-active){--ssx-mode:single;display:block;height:auto!important;min-height:0;overflow:visible;border:0;border-radius:0;background:transparent}
  html.staff-v3 body #app .ssx .ssx-rail{position:sticky;top:-1px;z-index:3;margin:0 -2px 10px;padding:8px 2px;border:0;background:linear-gradient(var(--x-bg) 85%,transparent);flex-direction:row;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden}
  html.staff-v3 body #app .ssx .ssx-list{border:1px solid var(--x-line);border-radius:var(--x-r);background:var(--x-panel);overflow:hidden}
  html.staff-v3 body #app .ssx .ssx-list-body{overflow:visible}
  html.staff-v3 body #app .ssx .ssx-desk:not(.has-active) .ssx-conv-empty{display:none}
  html.staff-v3 body #app .ssx .ssx-desk.has-active :is(.ssx-rail,.ssx-list){display:none}
  html.staff-v3 body #app .ssx .ssx-desk.has-active .ssx-conv{border:1px solid var(--x-line);border-radius:var(--x-r);overflow:hidden}
  html.staff-v3 body #app .ssx .ssx-back{display:inline-flex}
  html.staff-v3 body #app .ssx .ssx-side-toggle{display:none}
  html.staff-v3 body #app .ssx .ssx-conv-head{padding:12px 14px}
  html.staff-v3 body #app .ssx .ssx-conv-top{flex-wrap:wrap}
  html.staff-v3 body #app .ssx .ssx-crumbs{order:3;flex-basis:100%;margin-top:6px}
  html.staff-v3 body #app .ssx .ssx-actions{gap:6px}
  html.staff-v3 body #app .ssx .ssx-actions .ssx-btn span{display:none}
  html.staff-v3 body #app .ssx .ssx-actions .ssx-btn{width:36px;padding:0}
  html.staff-v3 body #app .ssx .ssx-actions .rsc-launch{font-size:0!important;gap:0!important;width:36px!important;padding:0!important;justify-content:center!important}
  html.staff-v3 body #app .ssx .ssx-props{padding:10px 14px;gap:8px 14px}
  html.staff-v3 body #app .ssx .ssx-stream{overflow:visible;padding:16px 14px}
  html.staff-v3 body #app .ssx .ssx-sys{padding-left:0}
  html.staff-v3 body #app .ssx .ssx-composer{margin:0 10px 10px}
  html.staff-v3 body #app .ssx .ssx-hint{display:none}
  html.staff-v3 body #app .ssx .ssx-comp-foot .ssx-btn-primary{margin-left:auto}
  html.staff-v3 body #app .ssx .ssx-side{position:static;width:auto;transform:none;visibility:visible;box-shadow:none;margin-top:12px;padding:0;border:0;background:transparent;overflow:visible}
  html.staff-v3 body #app .ssx .ssx-side-head{display:none}
  html.staff-v3 body #app .ssx .ssx-ctx-host .v3-ctx{display:flex!important}
  html.staff-v3 body #app .ssx .ssx-outcomes{grid-template-columns:1fr}
  html.staff-v3 body #app .ssx .ssx-head{gap:12px}
  html.staff-v3 body #app .ssx .ssx-title h1{font-size:21px}
  html.staff-v3 body #app .ssx .ssx-seg{width:100%;order:2}
  html.staff-v3 body #app .ssx .ssx-seg button{flex:1 0 auto;justify-content:center;padding:0 10px}
  html.staff-v3 body #app .ssx .ssx-search{order:3;flex:1 1 100%;width:100%}
  html.staff-v3 body #app .ssx .ssx-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html.staff-v3 body #app .ssx .ssx-kpi{padding:12px 13px 10px}
  html.staff-v3 body #app .ssx .ssx-kpi-value{font-size:23px}
  html.staff-v3 body #app .ssx .ssx-ov-row-a,html.staff-v3 body #app .ssx .ssx-ov-row-b{grid-template-columns:minmax(0,1fr)}
  html.staff-v3 body #app .ssx .ssx-card{padding:14px}
  html.staff-v3 body #app .ssx .ssx-legend{margin-left:0;flex-basis:100%}
  html.staff-v3 body #app .ssx .ssx-team-row{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 54px 44px;gap:8px}
  html.staff-v3 body #app .ssx .ssx-qbar{grid-template-columns:minmax(0,120px) minmax(0,1fr) 40px}
  html.staff-v3 body #app .ssx .ssx-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.staff-v3 body #app .ssx .ssx-table{overflow:visible}
  html.staff-v3 body #app .ssx .ssx-tr.is-head{display:none}
  html.staff-v3 body #app .ssx .ssx-tr,html.staff-v3 body #app .ssx .ssx-table.is-closed .ssx-tr{grid-template-columns:auto minmax(0,1fr) auto;min-width:0;gap:6px 10px;padding:12px 14px}
  html.staff-v3 body #app .ssx .ssx-tr>*{grid-column:2}
  html.staff-v3 body #app .ssx .ssx-tr>.ssx-check{grid-column:1;grid-row:1/span 2;align-self:start;margin-top:2px}
  html.staff-v3 body #app .ssx .ssx-tr>.ssx-td-due{grid-column:3;grid-row:1;align-self:start}
  html.staff-v3 body #app .ssx .ssx-table.is-closed .ssx-tr>*{grid-column:1/-1}
  html.staff-v3 body #app .ssx .ssx-tr>:is(.ssx-td-q,.ssx-td-owner){display:none}
  html.staff-v3 body #app .ssx .ssx-tr>[role=cell]:nth-child(5),html.staff-v3 body #app .ssx .ssx-tr>[role=cell]:nth-child(6){display:inline-flex;grid-column:2}
  html.staff-v3 body #app .ssx .ssx-bulk-actions{margin-left:0;width:100%}
  html.staff-v3 body #app .ssx .ssx-modal-body,html.staff-v3 body #app .ssx .ssx-modal>header,html.staff-v3 body #app .ssx .ssx-modal>footer{padding-left:16px;padding-right:16px}
}
/* short landscape screens (phones on their side) use the same single column */
@media (max-height:540px){
  html.staff-v3 body #app .ssx .ssx-desk,html.staff-v3 body #app .ssx .ssx-desk:not(.has-active){--ssx-mode:single;display:block;height:auto!important;min-height:0;overflow:visible;border:0;border-radius:0;background:transparent}
  html.staff-v3 body #app .ssx .ssx-rail{position:sticky;top:-1px;z-index:3;margin:0 -2px 10px;padding:8px 2px;border:0;background:linear-gradient(var(--x-bg) 85%,transparent);flex-direction:row;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden}
  html.staff-v3 body #app .ssx .ssx-list{border:1px solid var(--x-line);border-radius:var(--x-r);background:var(--x-panel);overflow:hidden}
  html.staff-v3 body #app .ssx .ssx-list-body{overflow:visible}
  html.staff-v3 body #app .ssx .ssx-desk:not(.has-active) .ssx-conv-empty{display:none}
  html.staff-v3 body #app .ssx .ssx-desk.has-active :is(.ssx-rail,.ssx-list){display:none}
  html.staff-v3 body #app .ssx .ssx-desk.has-active .ssx-conv{border:1px solid var(--x-line);border-radius:var(--x-r);overflow:hidden}
  html.staff-v3 body #app .ssx .ssx-back{display:inline-flex}
  html.staff-v3 body #app .ssx .ssx-side-toggle{display:none}
  html.staff-v3 body #app .ssx .ssx-conv-head{padding:12px 14px}
  html.staff-v3 body #app .ssx .ssx-conv-top{flex-wrap:wrap}
  html.staff-v3 body #app .ssx .ssx-crumbs{order:3;flex-basis:100%;margin-top:6px}
  html.staff-v3 body #app .ssx .ssx-actions{gap:6px}
  html.staff-v3 body #app .ssx .ssx-actions .ssx-btn span{display:none}
  html.staff-v3 body #app .ssx .ssx-actions .ssx-btn{width:36px;padding:0}
  html.staff-v3 body #app .ssx .ssx-actions .rsc-launch{font-size:0!important;gap:0!important;width:36px!important;padding:0!important;justify-content:center!important}
  html.staff-v3 body #app .ssx .ssx-props{padding:10px 14px;gap:8px 14px}
  html.staff-v3 body #app .ssx .ssx-stream{overflow:visible;padding:16px 14px}
  html.staff-v3 body #app .ssx .ssx-sys{padding-left:0}
  html.staff-v3 body #app .ssx .ssx-composer{margin:0 10px 10px}
  html.staff-v3 body #app .ssx .ssx-hint{display:none}
  html.staff-v3 body #app .ssx .ssx-comp-foot .ssx-btn-primary{margin-left:auto}
  html.staff-v3 body #app .ssx .ssx-side{position:static;width:auto;transform:none;visibility:visible;box-shadow:none;margin-top:12px;padding:0;border:0;background:transparent;overflow:visible}
  html.staff-v3 body #app .ssx .ssx-side-head{display:none}
  html.staff-v3 body #app .ssx .ssx-ctx-host .v3-ctx{display:flex!important}
  html.staff-v3 body #app .ssx .ssx-outcomes{grid-template-columns:1fr}
}


/* reduced motion */
@media (prefers-reduced-motion:reduce){html.staff-v3 body #app .ssx *{animation:none!important;transition:none!important}}
html.staff-v3 body #app .ssx :is(.ssx-spark,.ssx-chart-plot svg){stroke:none;fill:none;stroke-width:1}
html.staff-v3 body #app .ssx .ssx-ring{width:84px;height:84px;stroke:none}
/* narrow phones: view tabs fit on one row */
@container ssx (max-width:430px){
  html.staff-v3 body #app .ssx .ssx-seg button{padding:0 6px;gap:5px}
  html.staff-v3 body #app .ssx .ssx-seg button>svg{display:none}
}
/* details panel: Staff notes, follow-ups and hand-offs stay inside the panel width */
html.staff-v3 body #app .ssx .ssx-side{overflow-x:hidden}
html.staff-v3 body #app .ssx .ssx-side :is(.v3-ctx,.v3-card,.v3-compose,.v3-handoff-form,.v3-fu,.v3-notes,.v3-handoffs){min-width:0;max-width:100%;box-sizing:border-box}
html.staff-v3 body #app .ssx .ssx-side .v3-compose{grid-template-columns:minmax(0,1fr)}
html.staff-v3 body #app .ssx .ssx-side .v3-compose :is(input:not([type=checkbox]),textarea){width:100%;min-width:0;box-sizing:border-box}
html.staff-v3 body #app .ssx .ssx-side .v3-compose-row{flex-wrap:wrap;min-width:0}
html.staff-v3 body #app .ssx .ssx-side .v3-compose-row>.v3-btn{margin-left:auto}
html.staff-v3 body #app .ssx .ssx-side .v3-compose-row select{flex:1 1 calc(50% - 4px);width:0;min-width:0;box-sizing:border-box;text-overflow:ellipsis}
html.staff-v3 body #app .ssx .ssx-side .v3-checkbox input{-webkit-appearance:checkbox!important;appearance:auto!important;flex:none;width:16px!important;height:16px!important;margin:0;accent-color:#ff6b24}
html.staff-v3 body #app .ssx .ssx-side .v3-compose textarea{min-height:76px}
