/* Smile operator instrument deck. This section navigation is a working
   instrument selector, not another global destination rail. */
html{scrollbar-gutter:stable}
[data-workspace-shell]{
  --ops-ink:#e8ebf8;--ops-soft:#9eacc3;--ops-accent:#c7b8fb;
  min-height:calc(100dvh - 74px);
  background:radial-gradient(ellipse 66% 40% at 87% -13%,#776cba22,transparent 74%),linear-gradient(155deg,#071420,#102133 56%,#101a2a);
}
[data-workspace-shell] .workspace-frame{width:min(1560px,calc(100% - clamp(26px,5vw,84px)));max-width:none}
[data-workspace-shell] .workspace-title{
  display:flex;align-items:end;justify-content:space-between;gap:24px;
  padding:clamp(20px,3.4vw,52px) 0 clamp(18px,2.4vw,32px);
  margin:0;
}
[data-workspace-shell] .workspace-title .eyebrow{color:#bdb2eb;letter-spacing:.19em;font-size:.68rem}
[data-workspace-shell] .workspace-title h1{
  font-size:clamp(2.5rem,4.4vw,4.9rem);line-height:1.04;letter-spacing:-.068em;
  font-weight:660;margin:.35rem 0 0;color:var(--ops-ink)
}
[data-workspace-shell] .workspace-title p{font-size:.94rem;line-height:1.65;color:var(--ops-soft);margin-top:.6rem}
[data-workspace-shell] .workspace-back{
  flex:none;display:inline-flex;gap:15px;align-items:center;text-decoration:none;
  min-height:42px;padding:10px 16px;border:1px solid #9194c65e;border-radius:999px;
  color:#e7ddff;background:#282e48a8;font-size:.8rem;font-weight:660;
  transition:background .2s,border-color .2s,transform .2s;
}
[data-workspace-shell] .workspace-back:hover{border-color:#bdb2f7;background:#383956;transform:translateY(-1px)}
[data-workspace-shell] .workspace-back:focus-visible,[data-workspace-shell] .rail a:focus-visible{
  outline:2px solid #c8c2ff;outline-offset:3px
}
[data-workspace-shell] .workspace-layout{display:flex;flex-direction:column;gap:clamp(15px,2vw,24px)}
[data-workspace-shell] .rail{
  display:flex;flex-direction:row;position:relative;top:auto;z-index:2;
  align-self:stretch;align-items:center;gap:4px;overflow-x:auto;flex-wrap:nowrap;
  padding:6px;border:1px solid #96a4bd3b;border-radius:15px;
  background:#0b1828d9;box-shadow:inset 0 1px #ceddff12,0 14px 35px #02071632;
  scrollbar-width:thin;scrollbar-color:#7d85a9 transparent;
}
[data-workspace-shell] .rail a{
  flex:none;justify-content:center;white-space:nowrap;min-height:41px;
  padding:10px clamp(11px,1.15vw,18px);font-size:.79rem;font-weight:640;
  color:#a3b5cc;letter-spacing:.002em;background:transparent;border:1px solid transparent;
  border-radius:10px;transition:color .18s,background .18s;
}
[data-workspace-shell] .rail a:hover{background:#828cc021;color:#f3efff}
[data-workspace-shell] .rail a[aria-current=page]{
  color:#f8f3ff;border-color:#b9a5ee77;background:linear-gradient(120deg,#514b7799,#292e4bb2);
  box-shadow:inset 0 1px #f0e6ff2f,0 2px 8px #050a1c75;
}
[data-workspace-shell] .work-content,#workspace-panel{min-width:0;width:100%}
[data-workspace-shell] .work-content{padding-bottom:clamp(35px,6vw,90px)}
#workspace-error:empty{display:none}
#workspace-panel .workspace-section{margin:0;padding:0;max-width:none;min-height:0;width:100%;background:none}
#workspace-panel .workspace-section .heading{margin-bottom:23px;max-width:none;padding:0}
#workspace-panel .workspace-section .heading h2{font-size:clamp(1.6rem,2.6vw,2.5rem);letter-spacing:-.045em;margin:0}
#workspace-panel .workspace-section .heading p{margin-top:7px;font-size:.9rem;color:var(--muted)}
#workspace-panel .voice-panel,#workspace-panel .trial-panel,#workspace-panel .delivery .panel{
  border-radius:22px;border-color:var(--smile-edge);padding:clamp(18px,2vw,28px);
  background:var(--smile-glass);box-shadow:var(--smile-depth)
}
#workspace-panel .workspace-section .button{min-height:40px}
.execution-overview{display:flex;gap:24px;align-items:flex-start;justify-content:space-between}
.execution-overview h3{margin:10px 0}
.execution-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.execution-metrics>div{display:grid;gap:6px;padding:18px;background:var(--smile-inset);border:1px solid var(--smile-edge);border-radius:14px}
.execution-metrics small{color:var(--muted)}
.execution-metrics strong{font-size:1.6rem;font-weight:600;font-variant-numeric:tabular-nums}
.execution-lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin-top:18px}
.execution-lanes article{padding:16px;border:1px solid var(--smile-edge);background:var(--smile-inset);border-radius:14px;min-width:0}
.execution-lanes dl{display:grid;gap:9px;margin:14px 0 0}
.execution-lanes dl div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.execution-lanes dt{color:var(--muted);font-size:.82rem}
.execution-lanes dd{margin:0;font-variant-numeric:tabular-nums}
.execution-org-scroll{overflow-x:auto;margin-top:16px}
.execution-org-table{border-collapse:collapse;width:100%;font-size:.84rem;text-align:right;white-space:nowrap}
.execution-org-table th,.execution-org-table td{padding:12px 10px;border-bottom:1px solid var(--smile-edge);font-variant-numeric:tabular-nums}
.execution-org-table th:first-child{text-align:left}
.execution-org-table thead th{color:var(--muted);font-size:.73rem;font-weight:500}
.execution-org-table tbody th{font-weight:600}
@media(max-width:720px){
 [data-workspace-shell]{padding-top:0}
 [data-workspace-shell] .workspace-frame{width:calc(100% - 24px)}
 [data-workspace-shell] .workspace-title{align-items:start;flex-direction:column;gap:12px;padding:20px 0 18px}
 [data-workspace-shell] .workspace-title h1{font-size:clamp(2.1rem,10vw,3.1rem)}
 [data-workspace-shell] .workspace-back{min-height:36px;padding:8px 13px}
 [data-workspace-shell] .rail{gap:3px;padding:5px;border-radius:12px}
 [data-workspace-shell] .rail a{padding:9px 12px;min-height:38px}
 #workspace-panel .workspace-section .heading h2{font-size:1.65rem}
 #workspace-panel .voice-panel,#workspace-panel .trial-panel,#workspace-panel .delivery .panel{padding:17px}
 .execution-metrics{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 [data-workspace-shell] .rail a,[data-workspace-shell] .workspace-back{transition:none}
 [data-workspace-shell] .workspace-back:hover{transform:none}
}

/* Research is an operator instrument within the existing Smile workspace. */
.nw-research{container-type:inline-size;display:grid;gap:16px;min-width:0;color:var(--nw-fg)}
.nw-research-intro,.nw-research-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.nw-research-intro h2{font-size:clamp(21px,3vw,32px);letter-spacing:-.035em;margin:3px 0 6px}
.nw-research-intro p:not(.nw-research-kicker),.nw-research-muted{font-size:13px;line-height:1.55;color:var(--nw-muted)}
.nw-research-kicker{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#81d3ff;font-weight:650}
.nw-research-actions{display:flex;gap:7px;flex-wrap:wrap}
.nw-research-action{display:inline-flex;align-items:center;min-height:35px;padding:7px 11px;border:1px solid #42677e;background:#163147;border-radius:9px;color:#cde8fb;text-decoration:none;font-size:12px}
.nw-research-action:hover{border-color:#81d3ff;background:#25455e}
.nw-research-status:empty{display:none}
.nw-research-status,.nw-research-warning,.nw-research-error{padding:9px 11px;border:1px solid #896d43;border-radius:9px;background:#42341e44;color:#f0c991;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.nw-research-error,.nw-research-status[data-error=true]{border-color:#a45d66;color:#ffb4b4;background:#4b273544}
.nw-research-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.nw-research-catalog,.nw-research-detail{min-width:0;border:1px solid var(--nw-stroke);border-radius:15px;padding:14px;background:var(--nw-optical-fill,linear-gradient(148deg,#20384d,#101d2a));box-shadow:inset 0 1px #d4f0ff18}
.nw-research-detail{border-color:var(--nw-optical-edge);box-shadow:var(--nw-optical-depth);transform-origin:top left}
.nw-research-catalog h3,.nw-research-record-head h3{font-size:16px;margin:0 0 10px;overflow-wrap:anywhere}
.nw-research-list{display:grid;gap:6px}
.nw-research-row{display:grid;gap:5px;text-align:left;padding:10px 12px;border:1px solid #36546b;border-radius:10px;background:#142a3c;color:var(--nw-fg);min-width:0;transition:border-color 140ms,background-color 140ms}
.nw-research-row strong,.nw-research-row small{overflow-wrap:anywhere}
.nw-research-row small{font-size:11px;color:var(--nw-muted)}
.nw-research-row[data-selected=true]{background:#25455f;border-color:#75b7d8;box-shadow:inset 3px 0 #81d3ff}
.nw-research-state{justify-self:start;align-self:flex-start;font-size:11px;color:#b7cbdb;text-transform:capitalize;border:1px solid #42627a;border-radius:5px;padding:3px 6px;white-space:nowrap}
.nw-research-state[data-state=completed]{color:#a3e7cd;border-color:#457e74}
.nw-research-state:is([data-state=failed],[data-state=interrupted]){color:#ffb5b5;border-color:#a45d66}
.nw-research-state:is([data-state=running],[data-state=starting],[data-state=queued]){color:#f0c991;border-color:#896d43}
.nw-research-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}
.nw-research-counters>div{display:grid;gap:5px;min-width:0;padding:10px 8px;background:#0e2032;border:1px solid #335268;border-radius:9px}
.nw-research-counters strong{font-size:23px;font-variant-numeric:tabular-nums;font-weight:600;color:#d5f2ff}
.nw-research-counters span{font-size:10px;line-height:1.3;color:var(--nw-muted)}
.nw-research-evidence-grid{display:grid;gap:14px;margin:14px 0;min-width:0}
.nw-research-evidence,.nw-research-analysis{display:grid;align-content:start;gap:8px;min-width:0}
.nw-research-evidence h4,.nw-research-analysis h4{font-size:13px;margin:0;color:#cce4f5}
.nw-research-receipt{border:1px solid #36546b;border-radius:9px;background:#102638;min-width:0}
.nw-research-receipt summary{padding:10px;cursor:pointer;overflow-wrap:anywhere;font-size:12px;color:#d4ebfa}
.nw-research-receipt summary .nw-research-state{margin-inline-start:8px}
.nw-research-receipt-body{display:grid;gap:8px;padding:0 10px 10px;overflow-wrap:anywhere;font-size:12px}
.nw-research-receipt-body a{color:#8bd4ff}
.nw-research-receipt-body code{font-size:10px;overflow-wrap:anywhere}
.nw-research-receipt-body blockquote{margin:0;padding:8px 10px;border-left:2px solid #72aed0;background:#091d2d;white-space:pre-wrap}
.nw-research-answer{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.nw-research-events{display:grid;gap:8px;margin:0;padding:0 25px 12px;color:var(--nw-muted);font-size:12px}
.nw-research-events li small{display:block}
@container(min-width:720px){.nw-research-layout{grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr)}}
@container(min-width:1080px){.nw-research-evidence-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.nw-research-row{transition:none}}
