:root {
  --ink: #f5f8ff;
  --muted: #8898ad;
  --line: rgba(96,155,229,.18);
  --panel: rgba(5,16,32,.84);
  --accent: #168cff;
  --green: #70dca5;
  --amber: #efbf66;
  --red: #ff776d;
  --cyan: #39b8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #020817;
}
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 74% -12%,rgba(24,118,238,.2),transparent 34%),radial-gradient(circle at -8% 58%,rgba(0,115,255,.13),transparent 31%),linear-gradient(155deg,#020713,#041022 55%,#020817); }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.25; background-image:linear-gradient(rgba(69,143,235,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(69,143,235,.035) 1px,transparent 1px); background-size:38px 38px; mask-image:linear-gradient(to bottom,black,transparent 78%); }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
.shell { position:relative; max-width:1580px; margin:auto; padding:0 28px 60px; }
.masthead { height:88px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:12px; align-items:center; color:inherit; text-decoration:none; }
.brand-mark { display:grid; place-items:center; width:50px; height:50px; border:1px solid rgba(41,151,255,.9); background:linear-gradient(145deg,rgba(16,75,154,.26),rgba(3,17,39,.88)); color:var(--ink); box-shadow:0 0 24px rgba(22,140,255,.22),inset 0 0 18px rgba(22,140,255,.08); font-size:17px; font-weight:800; letter-spacing:-.04em; }
.brand strong,.brand small { display:block; }
.brand small { margin-top:2px; color:var(--muted); font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.header-state { display:flex; align-items:center; gap:14px; }
.pill { border:1px solid currentColor; padding:7px 10px; font-size:12px; letter-spacing:.1em; }
.pill.amber { color:var(--accent); background:rgba(22,140,255,.07); box-shadow:inset 0 0 18px rgba(22,140,255,.04); }
.hidden { display:none !important; }
.client-update-notice { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px; margin:16px 0; border:1px solid #e4b65c; border-radius:12px; background:#182333; color:var(--ink); }
.client-update-notice span { flex:1 1 280px; }
.client-update-notice button { flex:0 0 auto; }
.auth-wrap { min-height:calc(100vh - 150px); display:grid; place-items:center; }
.auth-card { width:min(440px,100%); padding:42px; background:linear-gradient(145deg,rgba(7,24,49,.97),rgba(2,10,24,.98)); border:1px solid var(--line); box-shadow:0 30px 90px rgba(0,0,0,.38); }
.eyebrow { margin:0 0 12px; color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
h1 { margin:0; font-size:clamp(34px,4vw,60px); line-height:.98; letter-spacing:-.05em; }
.auth-card h1 { font-size:42px; }
.muted { color:var(--muted); line-height:1.6; }
label { display:grid; gap:8px; margin:20px 0; color:var(--ink); font-size:12px; font-weight:650; letter-spacing:.04em; }
input,select,textarea { width:100%; border:1px solid rgba(99,151,216,.22); background:#030b18; color:var(--ink); padding:13px 14px; outline:none; transition:border .2s,box-shadow .2s; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(22,140,255,.11),0 0 24px rgba(22,140,255,.08); }
textarea { resize:vertical; }
button { border:0; padding:12px 16px; font-weight:750; }
.primary { background:linear-gradient(135deg,var(--accent),#0867f2); color:#fff; box-shadow:0 10px 30px rgba(5,104,242,.17); }
.quiet { color:var(--ink); background:transparent; border:1px solid var(--line); }
.danger { color:var(--red); background:rgba(255,119,109,.08); border:1px solid rgba(255,119,109,.35); }
.auth-card .primary { width:100%; margin-top:8px; }
.error { min-height:20px; color:var(--red); font-size:13px; }
.dashboard { padding-top:48px; }
.hero { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; margin-bottom:42px; }
.hero .muted { margin-bottom:0; }
.live-lock { display:flex; gap:13px; align-items:center; padding:17px 20px; border:1px solid rgba(255,119,109,.25); background:rgba(255,119,109,.04); }
.live-lock strong,.live-lock small { display:block; }
.live-lock strong { font-size:13px; }
.live-lock small { color:var(--muted); margin-top:4px; font-size:12px; }
.lock-icon { color:var(--red); font-size:12px; letter-spacing:.1em; border:1px solid currentColor; padding:7px; }
.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); margin-bottom:18px; }
.metric-grid article { min-width:0; padding:22px; border-right:1px solid var(--line); background:rgba(5,15,30,.74); }
.metric-grid article:last-child { border-right:0; }
.metric-grid span,.metric-grid small { display:block; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.metric-grid strong { display:block; overflow:hidden; margin:12px 0 7px; font-size:18px; white-space:nowrap; text-overflow:ellipsis; }
.content-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:18px; }
.panel { grid-column:span 4; padding:24px; background:var(--panel); border:1px solid var(--line); backdrop-filter:blur(18px); }
.panel.wide { grid-column:span 8; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.panel h2 { margin:0; font-size:21px; letter-spacing:-.03em; }
.panel .eyebrow { margin-bottom:7px; }
.status-dot { width:10px; height:10px; border-radius:50%; background:var(--muted); box-shadow:0 0 18px currentColor; }
.status-dot.healthy { color:var(--green); background:var(--green); }
dl { margin:0; }
dl div { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:11px 0; border-bottom:1px solid var(--line); }
dt { color:var(--muted); font-size:12px; }
dd { margin:0; font-size:12px; font-weight:750; text-align:right; }
.score { display:grid; place-items:center; width:54px; height:54px; border:1px solid rgba(57,184,255,.42); color:var(--cyan); box-shadow:inset 0 0 18px rgba(22,140,255,.05); font-size:20px; }
.gauge { height:6px; margin:34px 0 28px; background:#030b18; overflow:hidden; }
.gauge span { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--red),var(--amber),var(--green)); transition:width .5s ease; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.split span { color:var(--muted); font-size:12px; }
.split strong { display:block; color:var(--ink); margin-top:8px; font-size:16px; }
.actions { display:flex; gap:10px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:700px; }
.decisions-table { min-width:920px; }
.evidence-created time { display:grid; gap:3px; white-space:nowrap; }
.evidence-created time span { color:var(--ink); font-weight:750; }
.evidence-created time small { color:var(--muted); font-size:12px; letter-spacing:.03em; }
th { color:var(--muted); font-size:12px; letter-spacing:.1em; text-align:left; text-transform:uppercase; }
td,th { padding:12px 10px; border-bottom:1px solid var(--line); }
td { color:var(--ink); font-size:12px; }
.empty { color:var(--muted); text-align:center; padding:32px 10px 10px; }
.evidence-bars { display:grid; gap:12px; margin-bottom:20px; }
.evidence-bars span { display:grid; grid-template-columns:90px 1fr; align-items:center; gap:10px; color:var(--muted); font-size:12px; }
.evidence-bars i { order:2; height:4px; background:linear-gradient(90deg,var(--amber) 0 12%,rgba(255,255,255,.06) 12%); }
.evidence-bars .locked i { background:rgba(255,119,109,.18); }
@media (max-width:1000px) {
  .metric-grid { grid-template-columns:repeat(2,1fr); }
  .metric-grid article:nth-child(2) { border-right:0; }
  .metric-grid article:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .panel,.panel.wide { grid-column:span 6; }
  .decisions { grid-column:span 12 !important; }
}
@media (max-width:680px) {
  .shell { padding:0 16px 40px; }
  .masthead { height:72px; }
  .hero { align-items:flex-start; flex-direction:column; }
  .auth-card { padding:28px 22px; }
  .auth-card h1 { font-size:34px; }
  .metric-grid { grid-template-columns:1fr; }
  .metric-grid article { border-right:0; border-bottom:1px solid var(--line); }
  .panel,.panel.wide { grid-column:span 12; }
  .actions { flex-direction:column; }
  .header-state .pill { display:none; }
}

/* Secure access experience */
body { overflow-x:hidden; }
.auth-wrap {
  position:relative;
  min-height:calc(100vh - 88px);
  padding:48px 0 64px;
  isolation:isolate;
}
.auth-wrap::before,
.auth-wrap::after {
  content:"";
  position:absolute;
  z-index:-1;
  width:420px;
  height:420px;
  border-radius:50%;
  pointer-events:none;
  filter:blur(10px);
  opacity:.34;
}
.auth-wrap::before {
  top:3%;
  left:-18%;
  background:radial-gradient(circle,rgba(24,146,255,.22),transparent 67%);
  animation:ambientFloat 9s ease-in-out infinite;
}
.auth-wrap::after {
  right:-14%;
  bottom:-6%;
  background:radial-gradient(circle,rgba(0,99,255,.19),transparent 68%);
  animation:ambientFloat 11s ease-in-out -4s infinite reverse;
}
.auth-stage {
  width:min(1380px,100%);
  min-height:660px;
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(440px,.7fr);
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:visible; gap:72px; align-items:center;
}
.auth-story {
  position:relative;
  display:flex;
  min-width:0;
  flex-direction:column;
  justify-content:space-between;
  padding:36px 0;
  overflow:hidden;
  background:
    radial-gradient(circle at 64% 42%,rgba(0,112,255,.14),transparent 34%),
    linear-gradient(145deg,rgba(4,17,37,.18),rgba(2,8,20,.08));
}
.auth-story::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg,transparent 0 54%,rgba(32,144,255,.08) 54% 54.2%,transparent 54.2%),
    repeating-linear-gradient(90deg,transparent 0 74px,rgba(45,129,231,.035) 75px);
}
.auth-story-copy {
  position:relative;
  z-index:1;
  max-width:510px;
}
.auth-display {
  margin:0 0 24px;
  font-size:clamp(48px,5.3vw,78px);
  font-weight:720;
  line-height:.92;
  letter-spacing:-.065em;
}
.accent-period { color:var(--accent); text-shadow:0 0 22px rgba(22,140,255,.72); }
.auth-story-copy .muted {
  max-width:470px;
  margin:0;
  font-size:15px;
}
.signal-board {
  position:relative;
  z-index:1;
  border:1px solid rgba(73,141,226,.36);
  background:linear-gradient(155deg,rgba(5,20,43,.82),rgba(2,10,24,.78));
  backdrop-filter:blur(14px);
}
.signal-head,
.signal-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 16px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.signal-head { border-bottom:1px solid var(--line); }
.signal-head span { display:flex; align-items:center; gap:8px; }
.signal-head i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 12px var(--accent);
  animation:statusPulse 2.2s ease-in-out infinite;
}
.signal-head strong { color:var(--accent); font-size:12px; }
.signal-chart {
  position:relative;
  height:160px;
  overflow:hidden;
  background-image:
    linear-gradient(rgba(42,127,231,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(42,127,231,.08) 1px,transparent 1px);
  background-size:36px 32px;
}
.signal-chart::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,117,255,.22),transparent 58%);
  clip-path:polygon(0 86%,8% 77%,16% 82%,24% 57%,32% 66%,40% 38%,48% 52%,56% 42%,64% 51%,72% 27%,80% 38%,88% 19%,100% 25%,100% 100%,0 100%);
}
.signal-bars {
  position:absolute;
  inset:28px 20px 24px;
  z-index:1;
  display:flex;
  align-items:flex-end;
  gap:clamp(5px,1vw,11px);
}
.signal-bars i {
  flex:1;
  min-width:3px;
  height:35%;
  background:linear-gradient(to top,rgba(2,66,179,.3),rgba(25,173,255,.96));
  transform-origin:bottom;
  animation:signalPulse 3.8s ease-in-out infinite;
}
.signal-bars i:nth-child(2) { height:58%; animation-delay:-1.8s; }
.signal-bars i:nth-child(3) { height:43%; animation-delay:-.7s; }
.signal-bars i:nth-child(4) { height:75%; animation-delay:-2.4s; }
.signal-bars i:nth-child(5) { height:52%; animation-delay:-1.1s; }
.signal-bars i:nth-child(6) { height:82%; animation-delay:-3s; }
.signal-bars i:nth-child(7) { height:64%; animation-delay:-.3s; }
.signal-bars i:nth-child(8) { height:92%; animation-delay:-2.1s; }
.signal-bars i:nth-child(9) { height:61%; animation-delay:-1.4s; }
.signal-bars i:nth-child(10) { height:73%; animation-delay:-2.8s; }
.signal-bars i:nth-child(11) { height:55%; animation-delay:-.9s; }
.signal-bars i:nth-child(12) { height:88%; animation-delay:-1.7s; }
.signal-bars i:nth-child(13) { height:69%; animation-delay:-2.5s; }
.signal-bars i:nth-child(14) { height:96%; animation-delay:-.5s; }
.signal-sweep {
  position:absolute;
  z-index:2;
  inset:0 auto 0 -32%;
  width:32%;
  background:linear-gradient(90deg,transparent,rgba(22,140,255,.12),rgba(57,184,255,.34),transparent);
  transform:skewX(-10deg);
  animation:signalSweep 5.8s linear infinite;
}
.signal-node {
  position:absolute;
  z-index:3;
  width:7px;
  height:7px;
  border:1px solid var(--cyan);
  border-radius:50%;
  background:#06152c;
  box-shadow:0 0 0 5px rgba(57,184,255,.08),0 0 16px rgba(57,184,255,.72);
  animation:nodePulse 2.8s ease-out infinite;
}
.node-one { left:39%; top:57%; }
.node-two { left:71%; top:28%; animation-delay:-1.4s; }
.node-three { right:6%; top:22%; animation-delay:-2.1s; }
.signal-foot { align-items:flex-start; border-top:1px solid var(--line); }
.signal-foot span { display:grid; gap:5px; }
.signal-foot strong { color:var(--ink); font-size:12px; }
.signal-foot span:last-child strong { color:var(--red); }
.auth-card {
  position:relative;
  width:min(460px,100%);
  padding:54px 48px 42px;
  overflow:hidden;
  background:linear-gradient(155deg,rgba(8,28,57,.98),rgba(2,10,25,.99));
  border:1px solid rgba(73,151,255,.46);
  box-shadow:0 32px 100px rgba(0,0,0,.48),0 0 42px rgba(17,116,255,.13),inset 0 1px rgba(103,180,255,.2);
}
.auth-stage > .auth-card {
  width:auto;
  border-width:1px;
  box-shadow:0 32px 100px rgba(0,0,0,.48),0 0 42px rgba(17,116,255,.13),inset 0 1px rgba(103,180,255,.2);
}
.auth-card-glow {
  position:absolute;
  top:-160px;
  right:-150px;
  width:330px;
  height:330px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(22,140,255,.28),transparent 67%);
  pointer-events:none;
  animation:cardGlow 7s ease-in-out infinite;
}
.secure-kicker {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:54px;
  color:var(--accent);
  font-size:12px;
  font-weight:750;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.secure-kicker span {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 14px rgba(22,140,255,.82);
  animation:statusPulse 2.2s ease-in-out infinite;
}
.auth-card h1 { position:relative; font-size:clamp(40px,4vw,54px); }
.auth-card .auth-intro { margin:22px 0 31px; font-size:13px; }
.auth-card .field { margin:18px 0; }
.auth-card .field > label {
  display:block;
  margin:0 0 9px;
  color:var(--ink);
  font-size:12px;
  letter-spacing:.07em;
}
.auth-card input {
  min-height:50px;
  padding:14px 15px;
  border-color:rgba(91,145,211,.28);
  background:rgba(1,8,20,.82);
}
.auth-card input::placeholder { color:var(--muted); }
.auth-card input:hover { border-color:rgba(73,151,255,.52); }
.auth-card input:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(22,140,255,.12),0 0 26px rgba(22,140,255,.1);
}
.auth-card input:-webkit-autofill {
  -webkit-text-fill-color:var(--ink);
  box-shadow:0 0 0 1000px #030b18 inset;
  transition:background-color 9999s ease-out;
}
.password-field { position:relative; }
.password-field input { padding-right:72px; }
.password-toggle {
  position:absolute;
  top:50%;
  right:7px;
  padding:8px 9px;
  color:var(--accent);
  background:transparent;
  font-size:12px;
  letter-spacing:.07em;
  transform:translateY(-50%);
}
.password-toggle:hover { background:rgba(22,140,255,.1); }
.password-toggle:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:1px;
}
.auth-submit {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  margin-top:26px !important;
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.auth-submit::before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.34) 48%,transparent 76%);
  transform:translateX(-120%);
  transition:transform .55s ease;
}
.auth-submit:hover {
  background:linear-gradient(135deg,#25a2ff,#0867f2);
  box-shadow:0 12px 36px rgba(8,103,242,.3),0 0 28px rgba(22,140,255,.14);
  transform:translateY(-1px);
}
.auth-submit:hover::before { transform:translateX(120%); }
.auth-submit:active { transform:translateY(1px); }
.auth-submit:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.auth-submit:disabled { cursor:wait; opacity:.76; transform:none; }
.button-arrow { font-size:17px; transition:transform .2s ease; }
.auth-submit:hover .button-arrow { transform:translateX(3px); }
.button-spinner {
  display:none;
  width:16px;
  height:16px;
  border:2px solid rgba(255,255,255,.32);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .65s linear infinite;
}
.is-busy .button-arrow { display:none; }
.is-busy .button-spinner { display:block; }
.auth-card .error { margin:12px 0 0; min-height:20px; }
.auth-assurance {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.auth-assurance span::before {
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin-right:7px;
  border-radius:50%;
  background:var(--accent);
  vertical-align:2px;
}
.auth-assurance span:last-child::before { background:var(--red); }
.auth-wrap:not(.hidden) .auth-story { animation:storyIn .75s cubic-bezier(.2,.7,.2,1) both; }
.auth-wrap:not(.hidden) .auth-card { animation:cardIn .72s .12s cubic-bezier(.2,.75,.2,1) both; }
.auth-card.has-error { animation:formShake .36s ease both; }

@keyframes storyIn {
  from { opacity:0; transform:translateX(-20px); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes cardIn {
  from { opacity:0; transform:translateY(18px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes ambientFloat {
  0%,100% { transform:translate3d(0,0,0) scale(1); }
  50% { transform:translate3d(28px,-18px,0) scale(1.06); }
}
@keyframes cardGlow {
  0%,100% { transform:translate3d(0,0,0); opacity:.8; }
  50% { transform:translate3d(-18px,20px,0); opacity:1; }
}
@keyframes statusPulse {
  0%,100% { opacity:.55; transform:scale(.85); }
  50% { opacity:1; transform:scale(1.12); }
}
@keyframes signalPulse {
  0%,100% { transform:scaleY(.72); opacity:.52; }
  50% { transform:scaleY(1); opacity:1; }
}
@keyframes signalSweep {
  from { transform:translateX(0) skewX(-10deg); }
  to { transform:translateX(430%) skewX(-10deg); }
}
@keyframes nodePulse {
  0%,100% { box-shadow:0 0 0 3px rgba(57,184,255,.05),0 0 10px rgba(57,184,255,.4); }
  50% { box-shadow:0 0 0 8px rgba(57,184,255,.1),0 0 20px rgba(57,184,255,.8); }
}
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes formShake {
  0%,100% { transform:translateX(0); }
  25% { transform:translateX(-5px); }
  75% { transform:translateX(5px); }
}

@media (max-width:900px) {
  .auth-stage { grid-template-columns:1fr; gap:28px; }
  .auth-story { min-height:380px; padding:44px; }
  .auth-display { font-size:58px; }
  .signal-board { margin-top:44px; }
  .auth-stage > .auth-card {
    width:100%;
    border-width:1px;
  }
}
@media (max-width:680px) {
  .auth-wrap { min-height:calc(100vh - 72px); padding:24px 0 40px; }
  .auth-stage { min-height:0; }
  .auth-story { min-height:0; padding:30px 24px 28px; }
  .auth-display { margin-bottom:16px; font-size:44px; }
  .auth-story-copy .muted { font-size:13px; }
  .signal-board { display:none; }
  .auth-card,
  .auth-stage > .auth-card { padding:32px 24px 28px; }
  .secure-kicker { margin-bottom:38px; }
  .auth-card h1 { font-size:40px; }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

/* Authenticated operating workspaces */
.app-nav { display:flex; align-items:center; gap:4px; padding:4px; border:1px solid var(--line); background:rgba(3,12,27,.72); }
.nav-tab { padding:9px 13px; color:var(--muted); background:transparent; font-size:12px; letter-spacing:.05em; }
.nav-tab:hover,.nav-tab.active { color:var(--ink); background:rgba(22,140,255,.11); }
.nav-tab.active { box-shadow:inset 0 -2px var(--accent); }
.workspace { padding-top:48px; animation:workspaceIn .35s ease both; }
.workspace-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:36px; }
.workspace-head h1 { font-size:clamp(40px,5vw,68px); }
.workspace-head .muted { max-width:760px; margin-bottom:0; }
.dashboard-secondary { margin-top:18px; }
.panel.full { grid-column:span 12; }
.definition-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
.definition-grid div { min-width:0; }
.definition-grid dd { overflow-wrap:anywhere; }
.regime-components { margin-top:24px; }
.regime-components dt,.regime-components dd { max-width:50%; }
.regime-components dd { color:var(--ink); font-size:12px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.funnel-lanes { display:grid; gap:14px; }
.funnel-lane { min-width:0; padding:14px; border:1px solid var(--line); background:rgba(2,12,26,.42); }
.funnel-lane.validation-lane { border-color:rgba(77,190,255,.25); background:rgba(10,36,64,.28); }
.funnel-lane-head { display:flex; align-items:baseline; justify-content:space-between; gap:18px; margin-bottom:12px; }
.funnel-lane-head h3 { margin:0; color:var(--ink); font-size:12px; }
.funnel-lane-head p { max-width:760px; margin:0; color:var(--muted); font-size:12px; line-height:1.5; text-align:right; }
@media (max-width:760px) {
  .funnel-lane-head { align-items:flex-start; flex-direction:column; }
  .funnel-lane-head p { text-align:left; }
}
.funnel-stage-row { display:flex; align-items:stretch; gap:7px; overflow-x:auto; padding:2px 0 8px; scrollbar-color:rgba(22,140,255,.36) transparent; }
.funnel-stage { display:grid; flex:1 0 94px; min-width:94px; place-items:start; gap:7px; padding:14px 12px; color:var(--ink); border:1px solid var(--line); background:#030c1c; text-align:left; transition:border-color .2s,transform .2s,background .2s; }
.funnel-stage:hover { border-color:rgba(22,140,255,.58); background:rgba(22,140,255,.09); transform:translateY(-2px); }
.funnel-stage:disabled { cursor:not-allowed; opacity:.5; transform:none; }
.validation-lane .funnel-stage strong { color:var(--cyan); }
.funnel-stage strong { color:var(--accent); font-size:22px; line-height:1; }
.funnel-stage span { color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.funnel-stage-row > i { align-self:center; color:var(--muted); font-style:normal; }
.sector-exposure { display:grid; gap:9px; margin-top:24px; }
.sector-exposure div { display:grid; grid-template-columns:minmax(100px,160px) 1fr 100px; align-items:center; gap:12px; }
.sector-exposure span,.sector-exposure strong { font-size:12px; }
.sector-exposure span { color:var(--muted); }
.sector-exposure strong { text-align:right; }
.sector-exposure i { display:block; height:4px; background:linear-gradient(90deg,#075dda,var(--cyan)); box-shadow:0 0 12px rgba(22,140,255,.16); }
.toolbar { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:20px; }
.toolbar label { width:min(420px,100%); margin:0; }
.lifecycle-table { min-width:1500px; }
.lifecycle-table thead th { padding:0; }
.table-sort {
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:100%;
  min-height:44px;
  padding:12px 10px;
  color:var(--muted);
  border:0;
  background:transparent;
  box-shadow:none;
  font:inherit;
  font-size:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  text-align:left;
  text-transform:inherit;
  white-space:nowrap;
}
.table-sort:hover,.table-sort:focus-visible { color:var(--ink); background:rgba(22,140,255,.08); outline:none; }
.sort-indicator { color:var(--muted); font-size:13px; line-height:1; }
.lifecycle-table th[aria-sort="ascending"] .sort-indicator,
.lifecycle-table th[aria-sort="descending"] .sort-indicator { color:var(--accent); }
.lifecycle-table tbody tr { cursor:pointer; transition:background .15s; }
.lifecycle-table tbody tr:hover,.lifecycle-table tbody tr:focus { background:rgba(22,140,255,.07); outline:none; }
.trade-modal {
  width:min(1120px,calc(100vw - 32px));
  max-width:none;
  max-height:min(900px,calc(100vh - 32px));
  margin:auto;
  padding:0;
  overflow:auto;
  color:var(--ink);
  border:1px solid rgba(68,168,255,.38);
  border-radius:20px;
  background:linear-gradient(145deg,#07182f 0%,#030c1d 58%,#06152a 100%);
  box-shadow:0 30px 90px rgba(0,0,0,.68),0 0 56px rgba(22,140,255,.12);
}
.trade-modal::backdrop { background:rgba(0,7,18,.78); backdrop-filter:blur(8px); }
.trade-modal[open] { animation:tradeModalIn .2s ease both; }
.trade-modal-card { padding:28px; }
.trade-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.trade-title-line { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:5px; }
.trade-title-line h2 { margin:0; font-size:clamp(24px,3vw,36px); }
.trade-detail-summary { margin:8px 0 0; color:var(--muted); font-size:12px; }
.trade-modal-close { flex:0 0 auto; padding:10px 14px; }
.trade-gate-path { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:7px; margin:22px 0; overflow-x:auto; }
.trade-gate-step { display:grid; min-width:90px; gap:5px; padding:11px 9px; border:1px solid var(--line); border-radius:10px; background:rgba(3,11,25,.74); }
.trade-gate-step i { width:8px; height:8px; border-radius:50%; background:#53627a; box-shadow:0 0 12px rgba(83,98,122,.28); }
.trade-gate-step b { color:var(--ink); font-size:12px; }
.trade-gate-step small { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.trade-gate-step.passed { border-color:rgba(105,231,177,.28); }
.trade-gate-step.passed i { background:var(--green); box-shadow:0 0 14px rgba(105,231,177,.5); }
.trade-gate-step.stopped { border-color:rgba(255,119,109,.5); background:rgba(255,119,109,.08); }
.trade-gate-step.stopped i { background:var(--red); box-shadow:0 0 14px rgba(255,119,109,.55); }
.trade-gate-step.not-reached { opacity:.55; }
.trade-decision-card { margin-bottom:20px; padding:18px 20px; border:1px solid rgba(255,119,109,.3); border-left:3px solid var(--red); border-radius:12px; background:rgba(255,119,109,.055); }
.trade-decision-card.advanced { border-color:rgba(22,140,255,.32); border-left-color:var(--accent); background:rgba(22,140,255,.06); }
.trade-decision-card.rejected { border-color:rgba(255,119,109,.3); border-left-color:var(--red); background:rgba(255,119,109,.055); }
.trade-decision-card h3 { margin:3px 0 8px; font-size:20px; }
.trade-decision-card > p:not(.eyebrow) { margin:0; color:var(--ink); font-size:12px; }
.trade-reason-list { display:grid; gap:7px; margin:13px 0 0; padding:0; list-style:none; }
.trade-reason-list li { position:relative; padding-left:17px; color:var(--ink); font-size:12px; }
.trade-reason-list li::before { position:absolute; left:0; color:var(--red); content:"×"; font-weight:800; }
.trade-next-condition { margin-top:15px !important; padding:11px 13px; border-left:2px solid var(--accent); background:rgba(22,140,255,.08); }
.trade-next-condition::before { color:var(--accent); content:"Next pass condition · "; font-weight:800; }
.trade-detail-columns { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:18px; }
.trade-evidence-section { min-width:0; padding:20px; border:1px solid var(--line); border-radius:14px; background:rgba(2,10,24,.56); }
.trade-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:15px; }
.trade-section-head h3 { margin:3px 0 0; font-size:18px; }
.trade-evidence-time { color:var(--muted); font-size:12px; text-align:right; }
.trade-signal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.trade-signal-card { display:grid; min-width:0; gap:5px; padding:12px; border:1px solid var(--line); border-radius:9px; background:#030b19; }
.trade-signal-card span { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.trade-signal-card strong { color:var(--ink); font-size:14px; overflow-wrap:anywhere; }
.trade-signal-card small { color:var(--muted); font-size:12px; line-height:1.45; }
.trade-signal-card.healthy { border-color:rgba(105,231,177,.25); }
.trade-signal-card.warning { border-color:rgba(239,191,102,.3); }
.trade-order-empty { display:grid; place-items:start; gap:8px; min-height:150px; padding:22px; border:1px dashed rgba(143,160,184,.28); border-radius:10px; background:rgba(255,255,255,.018); }
.trade-order-empty strong { font-size:18px; }
.trade-order-empty p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.trade-provenance { margin-top:18px; border-radius:12px; }
.trade-provenance > summary { color:var(--ink); }
.trade-provenance > .definition-grid { padding:0 18px 18px; }
.trade-provenance details { margin:0 18px 18px; }
.step-up-modal { width:min(520px,calc(100vw - 32px)); }
.step-up-card h2 { margin:5px 0 0; font-size:clamp(24px,4vw,32px); }
.step-up-copy { margin:20px 0 0; color:var(--ink); font-size:12px; line-height:1.7; }
.step-up-form { display:grid; gap:10px; margin-top:20px; }
.step-up-form label { margin:0; color:var(--ink); font-size:12px; font-weight:750; }
.step-up-form input {
  width:100%;
  padding:15px 16px;
  color:var(--ink);
  border:1px solid rgba(96,155,229,.3);
  border-radius:10px;
  background:#020b1a;
  font:700 22px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.28em;
}
.step-up-form input:focus { border-color:var(--accent); outline:2px solid rgba(22,140,255,.2); }
.step-up-form.has-error input { border-color:var(--red); }
.form-error { min-height:18px; margin:0; color:var(--red); font-size:12px; }
.step-up-actions { justify-content:flex-start; margin-top:4px; }
.step-up-actions .primary { min-width:190px; }
@keyframes tradeModalIn { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:none; } }

@media (max-width:900px) {
  .trade-detail-columns { grid-template-columns:1fr; }
  .trade-gate-path { grid-template-columns:repeat(8,100px); }
}
@media (max-width:620px) {
  .trade-modal { width:calc(100vw - 16px); max-height:calc(100vh - 16px); }
  .trade-modal-card { padding:18px; }
  .trade-modal-head { gap:12px; }
  .trade-modal-close { padding:8px 10px; }
  .trade-signal-grid { grid-template-columns:1fr; }
  .trade-evidence-section { padding:15px; }
}
details { margin-top:18px; border:1px solid var(--line); background:#030b19; }
summary { cursor:pointer; padding:14px 16px; color:var(--ink); font-size:12px; font-weight:750; }
pre { max-height:520px; margin:0; overflow:auto; padding:18px; color:var(--ink); background:#020713; font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.reports-list { grid-column:span 4; }
.report-list { display:grid; gap:8px; }
.report-list button { display:grid; grid-template-columns:1fr auto; gap:5px 14px; padding:14px; color:var(--ink); border:1px solid var(--line); background:#030b19; text-align:left; }
.report-list button:hover,.report-list button.active { border-color:rgba(22,140,255,.52); background:rgba(22,140,255,.08); }
.report-list span { color:var(--amber); font-size:12px; }
.report-list small { grid-column:1/-1; color:var(--muted); font:9px ui-monospace,monospace; }
.report-content .definition-grid { margin-bottom:22px; }
.admin-create { grid-column:span 4; }
.users-panel { grid-column:span 8; }
#new-user-roles { min-height:132px; }
.enrollment-result { margin-top:22px; padding:16px; border:1px solid rgba(239,191,102,.35); background:rgba(239,191,102,.06); }
.warning { color:var(--amber); font-size:12px; font-weight:700; }
.users-panel td:first-child strong,.users-panel td:first-child small { display:block; }
.users-panel td:first-child small { margin-top:5px; color:var(--muted); }
.mini { margin:2px 4px 2px 0; padding:7px 9px; font-size:12px; }
.evidence-bars i { background:linear-gradient(90deg,var(--amber) 0 var(--evidence-progress,0%),rgba(255,255,255,.06) var(--evidence-progress,0%)); }
.evidence-bars .locked i { background:rgba(255,119,109,.18); }
.status-chip { display:inline-flex; padding:4px 7px; border:1px solid currentColor; font-size:12px; letter-spacing:.05em; }
@keyframes workspaceIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

@media (max-width:1000px) {
  .masthead { flex-wrap:wrap; height:auto; min-height:88px; padding:14px 0; }
  .app-nav { order:3; width:100%; overflow-x:auto; }
  .nav-tab { flex:1 0 auto; }
  .definition-grid { grid-template-columns:1fr; }
  .reports-list,.report-detail,.admin-create,.users-panel { grid-column:span 12 !important; }
}
@media (max-width:680px) {
  .workspace,.dashboard { padding-top:30px; }
  .workspace-head { align-items:flex-start; flex-direction:column; margin-bottom:24px; }
  .toolbar { align-items:stretch; flex-direction:column; }
  .toolbar label { width:100%; }
  .sector-exposure div { grid-template-columns:90px 1fr; }
  .sector-exposure strong { grid-column:2; }
  .dashboard-secondary { margin-top:14px; }
}
.enrollment-qr {
  display:block;
  width:min(280px,100%);
  height:auto;
  margin:14px auto 18px;
  border:10px solid #fff;
  background:#fff;
}

/* Action-first PAPER operations dashboard */
.dashboard { padding-top:34px; }
.content-grid { align-items:start; }
.panel { align-self:start; }
.ops-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin-bottom:24px;
}
.ops-heading h1 {
  max-width:880px;
  font-size:clamp(36px,4.2vw,58px);
  line-height:1;
}
.ops-heading .muted { max-width:800px; margin:13px 0 0; }
.operator-line { font-size:12px; }
.ops-toolbar {
  display:flex;
  align-items:center;
  gap:16px;
  flex:0 0 auto;
}
.ops-toolbar > span {
  display:grid;
  gap:4px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.09em;
  text-align:right;
  text-transform:uppercase;
}
.ops-toolbar strong { color:var(--ink); font-size:12px; letter-spacing:0; text-transform:none; }

.readiness-banner {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  min-height:112px;
  margin-bottom:16px;
  padding:22px 26px;
  border:1px solid;
  background:rgba(255,119,109,.045);
}
.readiness-banner.blocked { border-color:rgba(255,119,109,.36); }
.readiness-banner.waiting { border-color:rgba(239,191,102,.36); background:rgba(239,191,102,.045); }
.readiness-banner.ready { border-color:rgba(112,220,165,.38); background:rgba(112,220,165,.045); }
.readiness-banner.active { border-color:rgba(57,184,255,.5); background:rgba(22,140,255,.075); box-shadow:inset 3px 0 var(--accent); }
.readiness-symbol {
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  color:var(--red);
  border:1px solid currentColor;
  font-size:21px;
  font-weight:800;
}
.ready .readiness-symbol,.active .readiness-symbol { color:var(--green); }
.readiness-banner.waiting .readiness-symbol { color:var(--amber); }
.readiness-copy p { margin:0; }
.readiness-copy > p:first-child { color:var(--red); font-size:12px; font-weight:800; letter-spacing:.14em; }
.ready .readiness-copy > p:first-child,.active .readiness-copy > p:first-child { color:var(--green); }
.readiness-banner.waiting .readiness-copy > p:first-child { color:var(--amber); }
.readiness-copy h2 { margin:5px 0; font-size:22px; letter-spacing:-.03em; }
.readiness-copy > p:last-child { color:var(--muted); font-size:12px; }
.readiness-tally { min-width:102px; text-align:right; }
.readiness-tally strong,.readiness-tally span { display:block; }
.readiness-tally strong { color:var(--accent); font-size:28px; letter-spacing:-.05em; }
.readiness-tally span { color:var(--muted); font-size:12px; letter-spacing:.1em; text-transform:uppercase; }

.operations-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); margin-bottom:16px; }
.operations-metrics article { padding:18px; }
.operations-metrics strong { font-size:16px; }
.operations-metrics small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

.dashboard-primary { margin-bottom:16px; }
.dashboard-secondary { padding-top:22px; border-top:1px solid rgba(96,155,229,.12); }
.session-progress { min-height:330px; }
.pipeline-progress { margin:2px 0 24px; }
.pipeline-progress-head { display:flex; justify-content:space-between; gap:16px; color:var(--ink); font-size:12px; }
.pipeline-progress-head strong { color:var(--accent); font-size:18px; }
.progress-track { height:8px; margin:11px 0; overflow:hidden; background:#020817; border:1px solid rgba(96,155,229,.13); }
.progress-track i { display:block; width:0; height:100%; background:linear-gradient(90deg,#0768e8,var(--cyan)); box-shadow:0 0 18px rgba(22,140,255,.3); transition:width .45s ease; }
.pipeline-progress .muted { margin:0; font-size:12px; }
.pipeline-steps {
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr) auto minmax(120px,1fr) auto minmax(120px,1fr);
  align-items:center;
  gap:8px;
}
.pipeline-steps > i { color:var(--muted); font-style:normal; }
.pipeline-steps > div {
  position:relative;
  display:grid;
  min-height:88px;
  align-content:center;
  gap:4px;
  padding:14px 14px 14px 48px;
  border:1px solid var(--line);
  background:#030b19;
}
.pipeline-steps > div > span {
  position:absolute;
  top:15px;
  left:14px;
  display:grid;
  width:24px;
  height:24px;
  place-items:center;
  color:var(--muted);
  border:1px solid currentColor;
  font-size:12px;
}
.pipeline-steps strong { font-size:12px; }
.pipeline-steps small { color:var(--muted); font-size:12px; }
.pipeline-steps .complete { border-color:rgba(112,220,165,.35); background:rgba(112,220,165,.045); }
.pipeline-steps .complete > span { color:var(--green); }
.pipeline-steps .active { border-color:rgba(22,140,255,.56); background:rgba(22,140,255,.075); box-shadow:inset 0 -2px var(--accent); }
.pipeline-steps .active > span { color:var(--accent); }
.pipeline-steps .blocked { border-color:rgba(255,119,109,.3); }
.pipeline-steps .blocked > span { color:var(--red); }
.next-action {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  margin-top:22px;
  padding:14px 16px;
  border-left:2px solid var(--amber);
  background:rgba(239,191,102,.055);
}
.next-action span { color:var(--amber); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.next-action strong { font-size:12px; line-height:1.5; }

.score.compact { width:42px; height:42px; font-size:17px; }
.blocker-list { display:grid; gap:1px; }
.blocker-item {
  display:grid;
  grid-template-columns:28px 1fr;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.blocker-item:last-child { border-bottom:0; }
.blocker-priority {
  display:grid;
  width:26px;
  height:26px;
  place-items:center;
  color:var(--red);
  border:1px solid rgba(255,119,109,.38);
  font:9px ui-monospace,monospace;
}
.blocker-item.expected .blocker-priority { color:var(--amber); border-color:rgba(239,191,102,.38); }
.blocker-item.expected strong { color:var(--amber); }
.blocker-item > div { display:grid; gap:4px; }
.blocker-item strong { font-size:12px; line-height:1.4; }
.blocker-item span:not(.blocker-priority) { color:var(--muted); font-size:12px; line-height:1.5; }
.blocker-item.clear { grid-template-columns:1fr; padding:18px; border:1px solid rgba(112,220,165,.3); background:rgba(112,220,165,.04); }
.blocker-item.clear strong { color:var(--green); }

.portfolio-kpis {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);
  margin-bottom:20px;
}
.portfolio-kpis > div { min-width:0; padding:18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(2,9,22,.42); }
.portfolio-kpis > div:nth-child(3n) { border-right:0; }
.portfolio-kpis > div:nth-last-child(-n+3) { border-bottom:0; }
.portfolio-kpis span,.portfolio-kpis strong { display:block; }
.portfolio-kpis span { color:var(--muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.portfolio-kpis strong { margin-top:8px; overflow:hidden; font-size:18px; white-space:nowrap; text-overflow:ellipsis; }
.portfolio-kpis .positive strong { color:var(--green); }
.portfolio-kpis .negative strong { color:var(--red); }
#portfolio-freshness { font-size:12px; }
.supporting-data { margin-top:20px; }
.supporting-data div { padding:9px 0; }

.worker-list { display:grid; }
.worker-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.worker-row:last-child { border-bottom:0; }
.worker-row > i { width:8px; height:8px; border-radius:50%; background:var(--muted); box-shadow:0 0 12px currentColor; }
.worker-row > i.healthy { color:var(--green); background:var(--green); }
.worker-row > i.warning { color:var(--amber); background:var(--amber); }
.worker-row > i.blocked { color:var(--red); background:var(--red); }
.worker-row > div { min-width:0; }
.worker-row > div:nth-child(2) { display:grid; gap:4px; }
.worker-row > div:nth-child(2) strong { font-size:12px; }
.worker-row > div:nth-child(2) span { overflow:hidden; color:var(--muted); font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.worker-row > div:last-child { display:grid; gap:3px; text-align:right; }
.worker-row > div:last-child strong { font-size:12px; }
.worker-row > div:last-child span { color:var(--muted); font-size:12px; }
.compact-empty { padding:10px; }

.status-chip.healthy { color:var(--green); }
.status-chip.warning { color:var(--amber); }
.status-chip.blocked { color:var(--red); }
.status-chip.unknown { color:var(--muted); }
.gate-pass { color:var(--green); }
.gate-healthy { color:var(--green); }
.gate-warning { color:var(--amber); }
.gate-blocked { color:var(--red); }
.gate-unknown { color:var(--muted); }
.status-dot.warning { color:var(--amber); background:var(--amber); }
.status-dot.blocked { color:var(--red); background:var(--red); }
.regime-components dd { max-width:62%; }
.view-trading { align-self:center; }

.incident-selection-tools { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 16px; padding:14px 16px; border:1px solid rgba(96,155,229,.2); border-radius:10px; background:rgba(22,140,255,.055); }
.incident-select-label { display:flex; align-items:center; gap:10px; cursor:pointer; margin:0; }
.incident-select-label input,.incident-select { width:18px; height:18px; margin:0; padding:0; accent-color:#168cff; cursor:pointer; }
.incident-select-column { width:42px; text-align:center; }
.incident-select-column .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
#incidents-body tr:has(.incident-select:checked) { background:rgba(22,140,255,.075); }
#incident-action-status { overflow-wrap:anywhere; }
#incident-resolution { width:min(600px,calc(100vw - 32px)); }
#incident-resolution-reason { resize:vertical; border-radius:8px; }
@media (max-width:680px) {
  .incident-selection-tools { gap:12px; }
  #incident-resolve-selected { width:100%; }
}
.table-pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:8px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.pagination-summary,.pagination-buttons { display:flex; align-items:center; gap:10px; }
.pagination-summary > span,.pagination-buttons > span { color:var(--muted); font-size:12px; }
.pagination-summary label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pagination-summary select { width:auto; min-width:64px; padding:8px 26px 8px 10px; }
.pagination-buttons button { min-width:38px; padding:8px 10px; }
.pagination-buttons button:disabled { cursor:not-allowed; opacity:.32; }
.page-summary,.page-navigation,.page-numbers { display:flex; align-items:center; gap:10px; }
.page-summary { color:var(--muted); font-size:12px; }
.page-summary strong { color:var(--ink); font-variant-numeric:tabular-nums; }
.page-summary label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.page-summary select { width:auto; min-width:64px; padding:8px 26px 8px 10px; }
.page-navigation button { min-width:38px; padding:8px 10px; }
.page-navigation button:disabled { cursor:not-allowed; opacity:.32; }
.page-number {
  width:38px;
  height:36px;
  padding:0 !important;
  color:var(--muted);
  border:1px solid var(--line);
  background:#030d1e;
}
.page-number:hover,.page-number:focus-visible,.page-number.active {
  color:#fff;
  border-color:var(--accent);
  background:rgba(22,140,255,.18);
}
.page-ellipsis { padding:0 2px; color:var(--muted); }

.scan-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:-4px 0 18px;
  border:1px solid var(--line);
  background:rgba(3,12,28,.68);
}
.scan-summary > div {
  display:grid;
  gap:7px;
  min-width:0;
  padding:14px 15px;
  border-right:1px solid var(--line);
}
.scan-summary > div:last-child { border-right:0; }
.scan-summary span {
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.scan-summary strong { color:var(--ink); font-size:21px; }
.scan-summary .scan-watch-total small {
  color:var(--muted);
  font-size:12px;
  font-weight:650;
  line-height:1.4;
}
.scan-statuses { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.scan-context { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.scan-context > p { margin:0; font-size:12px; }
.decision-scope { display:flex; gap:5px; padding:3px; border:1px solid var(--line); background:#030b19; }
.decision-scope-button {
  padding:8px 10px;
  color:var(--muted);
  background:transparent;
  font-size:12px;
  letter-spacing:.04em;
}
.decision-scope-button.active { color:var(--ink); background:rgba(22,140,255,.15); box-shadow:inset 0 -2px var(--accent); }
.scan-note { margin:12px 0 8px; color:var(--muted); font-size:12px; line-height:1.55; }
.decisions-table { min-width:1460px; }
.decisions-table th:nth-child(1) { width:70px; }
.decisions-table th:nth-child(2) { width:130px; }
.decisions-table th:nth-child(3) { width:190px; }
.decisions-table th:nth-child(4) { width:105px; }
.decisions-table th:nth-child(5) { width:120px; }
.decisions-table th:nth-child(6) { width:115px; }
.decisions-table th:nth-child(7) { width:100px; }
.decisions-table th:nth-child(8) { width:155px; }
.decisions-table th:nth-child(9) { width:420px; }
.scan-outcome { font-size:12px; font-weight:800; letter-spacing:.06em; white-space:nowrap; }
.scan-outcome.selected { color:var(--green); }
.scan-outcome.watch { color:var(--cyan); }
.scan-outcome.not-ready { color:var(--amber); }
.scan-outcome.excluded { color:var(--muted); }
.evidence-bars > span {
  grid-template-columns:minmax(120px,.8fr) minmax(150px,1.2fr);
  gap:5px 12px;
}
.evidence-bars > span strong { color:var(--ink); font-size:12px; }
.evidence-bars > span small { color:var(--muted); font-size:12px; text-align:right; }
.evidence-bars > span i { grid-column:1/-1; width:100%; }
.evidence-bars > span.empty-evidence i { background:rgba(255,255,255,.05); }

@media (max-width:1200px) {
  .operations-metrics { grid-template-columns:repeat(3,1fr); }
  .operations-metrics article:nth-child(3) { border-right:0; }
  .operations-metrics article:nth-child(-n+3) { border-bottom:1px solid var(--line); }
  .pipeline-steps { grid-template-columns:repeat(4,1fr); }
  .pipeline-steps > i { display:none; }
}
@media (max-width:1000px) {
  .ops-heading { align-items:flex-start; }
  .session-progress,.portfolio-snapshot,.blockers,.workers { grid-column:span 12 !important; }
}
@media (max-width:680px) {
  .ops-heading { flex-direction:column; }
  .ops-toolbar { width:100%; justify-content:space-between; }
  .ops-toolbar > span { text-align:left; }
  .readiness-banner { grid-template-columns:auto 1fr; padding:18px; }
  .readiness-tally { grid-column:2; text-align:left; }
  .operations-metrics { grid-template-columns:1fr; }
  .operations-metrics article { border-right:0; border-bottom:1px solid var(--line); }
  .pipeline-steps { grid-template-columns:1fr 1fr; }
  .portfolio-kpis { grid-template-columns:1fr 1fr; }
  .portfolio-kpis > div,.portfolio-kpis > div:nth-child(3n) { border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
  .portfolio-kpis > div:nth-child(2n) { border-right:0; }
  .portfolio-kpis > div:nth-last-child(-n+2) { border-bottom:0; }
  .next-action { grid-template-columns:1fr; gap:7px; }
  .table-pagination { align-items:stretch; flex-direction:column; }
  .pagination-summary,.pagination-buttons { justify-content:space-between; }
  .page-summary,.page-navigation { justify-content:space-between; }
  .page-navigation { overflow-x:auto; padding-bottom:4px; }
  .scan-summary { grid-template-columns:1fr 1fr; }
  .scan-summary > div:nth-child(2) { border-right:0; }
  .scan-summary > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .scan-context { align-items:stretch; flex-direction:column; }
  .decision-scope { align-self:stretch; }
  .decision-scope-button { flex:1; }
}


/* Live market context */
.live-connection { display:flex; align-items:center; gap:8px; min-width:150px; padding-left:14px; border-left:1px solid var(--line); }
.live-connection > span { display:grid; gap:4px; color:var(--muted); font-size:12px; letter-spacing:.09em; text-transform:uppercase; }
.live-connection strong { color:var(--ink); font-size:12px; letter-spacing:0; text-transform:none; }
.market-tape { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:16px; border:1px solid var(--line); background:rgba(3,11,25,.74); }
.market-tape article { display:grid; gap:5px; min-width:0; padding:16px 20px; border-right:1px solid var(--line); }
.market-tape article:last-child { border-right:0; }
.market-tape span { color:var(--accent); font-size:12px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.market-tape strong { color:var(--ink); font-size:22px; letter-spacing:-.03em; }
.market-tape strong.warning { color:var(--amber); }
.market-tape strong.blocked { color:var(--red); }
.market-tape small { overflow:hidden; color:var(--muted); font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.market-intelligence { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr); gap:16px; margin-bottom:16px; }
.market-intelligence .panel { min-height:300px; }
.headline-list { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.headline-item { display:grid; grid-template-columns:36px minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.headline-item:last-child { border-bottom:0; }
.headline-rank { color:var(--accent); font-size:18px; font-weight:800; }
.headline-copy { display:grid; gap:5px; min-width:0; }
.headline-copy a,.headline-copy strong { color:var(--ink); font-size:12px; font-weight:700; line-height:1.45; text-decoration:none; }
.headline-copy a:hover { color:var(--accent); }
.headline-meta { color:var(--muted); font-size:12px; letter-spacing:.05em; text-transform:uppercase; }
.economic-event-list { display:grid; gap:0; }
.economic-event { display:grid; grid-template-columns:76px minmax(0,1fr); gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.economic-event:last-child { border-bottom:0; }
.economic-event time { color:var(--accent); font-size:12px; font-weight:800; }
.economic-event div { display:grid; gap:4px; }
.economic-event strong { color:var(--ink); font-size:12px; }
.economic-event small { color:var(--muted); font-size:12px; }
@media (max-width:900px) { .market-tape { grid-template-columns:1fr 1fr; } .market-tape article:nth-child(2) { border-right:0; } .market-tape article:nth-child(-n+2) { border-bottom:1px solid var(--line); } .market-intelligence { grid-template-columns:1fr; } }
@media (max-width:680px) { .live-connection { padding-left:0; border-left:0; } .market-tape { grid-template-columns:1fr; } .market-tape article,.market-tape article:nth-child(2) { border-right:0; border-bottom:1px solid var(--line); } .market-tape article:last-child { border-bottom:0; } }


/* Premium operations workspace */
:root {
  --surface:rgba(6,18,37,.9);
  --surface-raised:rgba(9,25,48,.94);
  --surface-soft:rgba(10,29,55,.62);
  --line-strong:rgba(93,164,255,.28);
  --shadow-panel:0 18px 55px rgba(0,5,18,.26);
  --radius-lg:18px;
  --radius-md:13px;
  --radius-sm:9px;
}
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.ui-icon,.quote-icon,.metric-icon {
  width:18px;
  height:18px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body {
  background:
    radial-gradient(circle at 72% -8%,rgba(22,140,255,.2),transparent 30%),
    radial-gradient(circle at 8% 46%,rgba(0,89,209,.12),transparent 32%),
    linear-gradient(145deg,#020713 0%,#061328 48%,#020817 100%);
}
body::before { opacity:.16; background-size:48px 48px; }
.shell { max-width:1660px; padding-inline:34px; }
.masthead {
  position:sticky;
  top:0;
  z-index:50;
  height:82px;
  padding:0 10px;
  background:rgba(2,9,23,.78);
  border-color:rgba(96,155,229,.14);
  backdrop-filter:blur(24px) saturate(130%);
}
.brand-mark { border-radius:12px; }
.app-nav { gap:5px; padding:5px; border-color:rgba(92,160,248,.17); border-radius:13px; background:rgba(2,10,23,.72); }
.nav-tab { display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:8px; transition:color .2s,background .2s,box-shadow .2s; }
.nav-tab .ui-icon { width:15px; height:15px; }
.nav-tab:hover { color:var(--ink); background:rgba(22,140,255,.08); }
.nav-tab.active { color:#fff; background:linear-gradient(180deg,rgba(22,140,255,.22),rgba(22,140,255,.09)); box-shadow:inset 0 -2px var(--accent),0 8px 24px rgba(0,72,164,.1); }
.pill { border-radius:999px; padding:8px 13px; }
#sign-out { display:flex; align-items:center; gap:8px; border-radius:10px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--cyan);
  outline-offset:3px;
}

.dashboard { padding-top:28px; animation:workspaceIn .35s ease both; }
.dashboard .eyebrow { margin-bottom:7px; font-size:12px; letter-spacing:.17em; }
.ops-heading {
  align-items:center;
  margin-bottom:14px;
  padding:24px 26px;
  border:1px solid rgba(96,155,229,.14);
  border-radius:var(--radius-lg);
  background:linear-gradient(120deg,rgba(7,24,48,.9),rgba(5,16,33,.7));
  box-shadow:var(--shadow-panel);
}
.ops-heading h1 { max-width:880px; font-size:clamp(30px,3.25vw,48px); line-height:1.02; }
.ops-heading .muted { margin-top:10px; font-size:12px; }
.operator-line { margin-top:12px !important; font-size:12px !important; }
.ops-toolbar {
  min-width:248px;
  padding:12px 14px;
  border:1px solid rgba(96,155,229,.15);
  border-radius:var(--radius-md);
  background:rgba(2,10,23,.54);
}
.ops-toolbar > span { text-align:left; }
.live-connection { min-width:0; }
.live-connection .status-dot { width:8px; height:8px; }

.market-tape-context {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 2px 8px;
  color:var(--muted);
  font-size:12px;
}
.market-tape-context span { color:var(--accent); font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.market-tape-context small { text-align:right; }
.market-tape {
  gap:10px;
  margin-bottom:14px;
  border:0;
  background:transparent;
}
.market-tape article {
  position:relative;
  gap:8px;
  min-height:112px;
  padding:17px 18px;
  overflow:hidden;
  border:1px solid rgba(96,155,229,.16);
  border-radius:var(--radius-md);
  background:linear-gradient(145deg,rgba(8,25,49,.9),rgba(3,13,29,.9));
  box-shadow:0 12px 34px rgba(0,5,18,.2);
}
.market-tape article::after {
  content:"";
  position:absolute;
  right:-32px;
  bottom:-44px;
  width:108px;
  height:108px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(22,140,255,.15),transparent 68%);
  pointer-events:none;
}
.market-tape .quote-label { display:flex; align-items:center; gap:8px; color:var(--accent); }
.quote-icon { width:15px; height:15px; }
.market-tape strong { margin-top:1px; font-size:24px; font-variant-numeric:tabular-nums; }
.market-tape small { letter-spacing:.025em; text-transform:none; }
.market-tape time,.market-tape small { white-space:normal; overflow:visible; text-overflow:clip; line-height:1.45; }
.market-tape .quote-change {
  width:max-content;
  max-width:100%;
  padding:4px 7px;
  border:1px solid rgba(131,160,197,.18);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.025);
  font-size:12px;
  font-weight:800;
  letter-spacing:.025em;
  line-height:1;
  text-transform:none;
}
.market-tape .quote-change.positive { border-color:rgba(112,220,165,.25); color:var(--green); background:rgba(112,220,165,.07); }
.market-tape .quote-change.negative { border-color:rgba(255,119,109,.25); color:var(--red); background:rgba(255,119,109,.07); }
.market-tape .quote-change { line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
.market-tape .quote-comparison { font-size:12px; }
.market-tape time { overflow:hidden; color:var(--ink); font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.market-tape small { color:var(--muted); }

.readiness-banner {
  min-height:104px;
  margin-bottom:14px;
  padding:20px 24px;
  border-radius:var(--radius-lg);
  background:linear-gradient(105deg,rgba(255,119,109,.09),rgba(8,21,40,.86) 62%);
  box-shadow:var(--shadow-panel);
}
.readiness-banner.ready { background:linear-gradient(105deg,rgba(112,220,165,.1),rgba(8,21,40,.86) 62%); }
.readiness-banner.active { background:linear-gradient(105deg,rgba(22,140,255,.14),rgba(8,21,40,.86) 62%); }
.readiness-symbol { width:44px; height:44px; border-radius:13px; background:rgba(255,119,109,.07); }
.ready .readiness-symbol,.active .readiness-symbol { background:rgba(112,220,165,.07); }
.readiness-copy h2 { font-size:20px; }
.readiness-copy > p:last-child { font-size:12px; }
.readiness-tally { padding-left:22px; border-left:1px solid rgba(96,155,229,.15); }

.operations-metrics {
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
  border:0;
}
.operations-metrics article {
  position:relative;
  min-height:128px;
  padding:18px;
  overflow:hidden;
  border:1px solid rgba(96,155,229,.15);
  border-radius:var(--radius-md);
  background:linear-gradient(145deg,rgba(7,22,43,.9),rgba(3,13,28,.9));
}
.operations-metrics article:last-child { border-right:1px solid rgba(96,155,229,.15); }
.operations-metrics .metric-icon {
  position:absolute;
  top:16px;
  right:16px;
  width:19px;
  height:19px;
  color:rgba(82,179,255,.62);
}
.operations-metrics article > span { max-width:calc(100% - 28px); font-size:12px; }
.operations-metrics strong { margin-top:18px; font-size:17px; }
.operations-metrics small { font-size:12px; letter-spacing:.04em; text-transform:none; }

.panel {
  padding:22px;
  overflow:hidden;
  border-color:rgba(96,155,229,.16);
  border-radius:var(--radius-lg);
  background:linear-gradient(145deg,var(--surface-raised),var(--surface));
  box-shadow:var(--shadow-panel);
}
.panel-head { align-items:center; margin-bottom:20px; }
.panel-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.panel-heading > div { min-width:0; }
.section-icon {
  display:grid;
  width:38px;
  height:38px;
  flex:0 0 auto;
  place-items:center;
  color:var(--accent);
  border:1px solid rgba(57,184,255,.24);
  border-radius:11px;
  background:rgba(22,140,255,.08);
  box-shadow:inset 0 0 18px rgba(22,140,255,.04);
}
.section-icon .ui-icon { width:18px; height:18px; }
.panel h2 { font-size:19px; line-height:1.15; }
.panel-head > .muted { flex:0 0 auto; font-size:12px; text-align:right; }
.status-chip { border-radius:999px; padding:5px 9px; background:rgba(255,255,255,.025); }
.score { border-radius:12px; background:rgba(22,140,255,.045); }

.market-intelligence {
  grid-template-areas:"headlines catalysts";
  grid-template-columns:minmax(0,1.55fr) minmax(360px,.85fr);
  align-items:stretch;
  gap:14px;
  margin-bottom:14px;
}
.headlines-panel { grid-area:headlines; }
.calendar-panel { grid-area:catalysts; }
.market-intelligence .panel { min-height:0; }
.headline-list,.economic-event-list { max-height:330px; overflow:auto; padding-right:5px; scrollbar-width:thin; scrollbar-color:rgba(61,147,255,.35) transparent; }
.headline-item { grid-template-columns:32px minmax(0,1fr); gap:12px; padding:13px 2px; }
.headline-rank { padding-top:1px; color:var(--accent); font-size:15px; font-variant-numeric:tabular-nums; }
.headline-copy a,.headline-copy strong { font-size:12px; line-height:1.45; }
.headline-meta { font-size:12px; }
.economic-event {
  grid-template-columns:100px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:11px 2px;
}
.economic-event time { font-size:12px; line-height:1.35; }
.economic-event strong { font-size:12px; line-height:1.4; }
.economic-event small { font-size:12px; line-height:1.4; text-transform:uppercase; }
.event-importance {
  justify-self:end;
  padding:4px 7px;
  color:var(--amber);
  border:1px solid rgba(239,191,102,.25);
  border-radius:999px;
  background:rgba(239,191,102,.055);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.dashboard-primary { gap:14px; margin-bottom:14px; }
.dashboard-secondary { gap:14px; margin-top:0; padding-top:0; border-top:0; }
.session-progress { min-height:0; }
.pipeline-progress { margin-bottom:18px; }
.progress-track { height:7px; border-radius:999px; }
.progress-track i { border-radius:999px; }
.pipeline-steps { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.pipeline-steps > i { display:none; }
.pipeline-steps > div {
  min-height:86px;
  padding:14px 12px 14px 48px;
  border-radius:var(--radius-sm);
  background:rgba(2,12,26,.62);
}
.pipeline-steps > div > span { border-radius:8px; }
.next-action { margin-top:18px; border-radius:0 10px 10px 0; }
.blocker-list { max-height:310px; overflow:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:rgba(61,147,255,.35) transparent; }
.blocker-item { grid-template-columns:32px 1fr; gap:11px; padding:12px 2px; }
.blocker-priority { width:28px; height:28px; border-radius:9px; background:rgba(255,119,109,.055); }
.blocker-item strong { font-size:12px; }
.blocker-item span:not(.blocker-priority) { font-size:12px; }
.blocker-item span:not(.blocker-priority)::before { content:"Next step - "; color:var(--ink); font-weight:750; }

.portfolio-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:16px; border:0; }
.portfolio-kpis > div,
.portfolio-kpis > div:nth-child(3n),
.portfolio-kpis > div:nth-last-child(-n+3) {
  padding:15px;
  border:1px solid rgba(96,155,229,.14);
  border-radius:10px;
  background:rgba(2,12,26,.52);
}
.portfolio-kpis strong { margin-top:6px; font-size:17px; }
.supporting-data { margin-top:14px; }
.supporting-data div { padding:10px 0; }
.worker-list { display:grid; gap:8px; }
.worker-row {
  grid-template-columns:auto minmax(0,1fr) auto;
  padding:12px;
  border:1px solid rgba(96,155,229,.13);
  border-radius:10px;
  background:rgba(2,12,26,.48);
}
.worker-row:last-child { border-bottom:1px solid rgba(96,155,229,.13); }
.worker-row > div:nth-child(2) span { font-size:12px; }
.worker-row > div:last-child strong { padding:3px 6px; border-radius:999px; background:rgba(255,255,255,.035); }

.dashboard-secondary .panel { min-height:0; }
.dashboard-secondary .readiness dl div,
#operations-list div { padding:10px 0; }
.dashboard-secondary dt { font-size:12px; }
.dashboard-secondary dd { font-size:12px; }

.regime {
  overflow:hidden;
  --regime-accent:#4cbcff;
}
.regime[data-classification="RISK_ON"] { --regime-accent:#68ddb0; }
.regime[data-classification="NEUTRAL"] { --regime-accent:#f6c85f; }
.regime[data-classification="RISK_OFF"] { --regime-accent:#ff7770; }
.regime-head { margin-bottom:10px; }
.regime-score {
  display:grid;
  grid-template-columns:auto auto;
  align-items:baseline;
  min-width:76px;
  padding:9px 11px;
  border:1px solid color-mix(in srgb, var(--regime-accent) 45%, transparent);
  border-radius:12px;
  background:rgba(2,12,26,.5);
  line-height:1;
}
.regime-score strong { color:var(--regime-accent); font-size:25px; font-weight:750; }
.regime-score > span { margin-left:2px; color:var(--muted); font-size:12px; }
.regime-score small {
  grid-column:1 / -1;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.regime-summary {
  min-height:32px;
  margin:0;
  color:var(--ink);
  font-size:12px;
  line-height:1.55;
}
.regime-meter { margin:16px 0 13px; }
.regime .gauge {
  position:relative;
  height:8px;
  margin:0;
  overflow:visible;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(255,119,112,.25) 0 40%,
    rgba(246,200,95,.23) 40% 70%,
    rgba(104,221,176,.22) 70% 100%
  );
}
.regime .gauge::before,
.regime .gauge::after {
  position:absolute;
  z-index:2;
  top:-3px;
  width:1px;
  height:14px;
  background:rgba(199,218,242,.24);
  content:"";
}
.regime .gauge::before { left:40%; }
.regime .gauge::after { left:70%; }
.regime .gauge span {
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#ff7770 0%,#f6c85f 55%,#68ddb0 100%);
}
.regime .gauge i {
  position:absolute;
  z-index:3;
  top:50%;
  width:12px;
  height:12px;
  border:2px solid #051325;
  border-radius:50%;
  background:var(--regime-accent);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--regime-accent) 30%, transparent);
  transform:translate(-50%,-50%);
}
.regime-thresholds {
  display:grid;
  grid-template-columns:40fr 30fr 30fr;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.regime-thresholds span { display:flex; gap:4px; }
.regime-thresholds span:nth-child(2) { justify-content:center; }
.regime-thresholds span:last-child { justify-content:flex-end; }
.regime-thresholds small { color:var(--muted); font:inherit; }
.regime-controls {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.regime-controls > div {
  display:grid;
  gap:4px;
  padding:11px;
  border:1px solid rgba(96,155,229,.13);
  border-radius:10px;
  background:rgba(2,12,26,.48);
}
.regime-controls span {
  color:var(--muted);
  font-size:12px;
}
.regime-controls strong {
  color:var(--ink);
  font-size:15px;
}
.regime-controls small {
  color:var(--muted);
  font-size:12px;
}
.regime-components {
  display:grid;
  gap:8px;
  margin-top:12px;
}
.regime-component {
  padding:10px;
  border:1px solid rgba(96,155,229,.13);
  border-radius:10px;
  background:rgba(2,12,26,.42);
}
.regime-component.unavailable { opacity:.68; }
.regime-component header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.regime-component header > span { display:flex; align-items:baseline; gap:7px; min-width:0; }
.regime-component header strong { color:var(--ink); font-size:12px; }
.regime-component header small { overflow:hidden; color:var(--muted); font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.regime-component header b {
  flex:none;
  color:var(--regime-accent);
  font-size:12px;
  font-weight:700;
}
.regime-rules {
  display:grid;
  gap:5px;
  margin-top:8px;
}
.regime-rule {
  display:grid;
  grid-template-columns:16px minmax(0,1fr);
  align-items:start;
  gap:6px;
}
.regime-rule i {
  display:grid;
  place-items:center;
  width:15px;
  height:15px;
  border-radius:50%;
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.regime-rule span { display:grid; min-width:0; }
.regime-rule strong { color:var(--ink); font-size:12px; line-height:1.3; }
.regime-rule small {
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.regime-rule.pass i { color:var(--green); background:rgba(104,221,176,.12); }
.regime-rule.fail i { color:var(--amber); background:rgba(246,200,95,.12); }
.regime-rule.unknown i { color:var(--muted); background:rgba(132,152,177,.1); }
.regime-evidence {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 14px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(96,155,229,.13);
}
.regime-evidence > span:not(.regime-evidence-chip) { display:grid; gap:3px; min-width:0; }
.regime-evidence small {
  color:var(--muted);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.regime-evidence strong {
  overflow:hidden;
  color:var(--ink);
  font-size:12px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.regime-evidence-chip {
  grid-column:1 / -1;
  justify-self:start;
  padding:4px 7px;
  border:1px solid rgba(104,221,176,.22);
  border-radius:999px;
  color:var(--green);
  background:rgba(104,221,176,.07);
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.control form label { margin:14px 0; }
.control textarea { min-height:84px; }
.actions button { border-radius:10px; }
.funnel-panel { margin-top:0; }
.funnel-stage-row { gap:8px; }
.funnel-stage { min-width:102px; border-radius:10px; background:rgba(2,12,26,.56); }
.funnel-stage:hover { transform:translateY(-1px); }
.view-trading { border-radius:10px; }
.definition-grid { column-gap:24px; }
.empty { margin:0; padding:30px 12px; font-size:12px; }

.session-state {
  --session-state-color:#8498b1;
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(220px,auto);
  align-items:center;
  gap:18px;
  min-height:116px;
  margin-bottom:14px;
  padding:20px 22px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--session-state-color) 35%,transparent);
  border-radius:var(--radius);
  background:linear-gradient(110deg,color-mix(in srgb,var(--session-state-color) 8%,transparent),rgba(2,12,26,.8) 48%);
  box-shadow:inset 3px 0 var(--session-state-color);
}
.session-state.expected,.session-state.warning { --session-state-color:var(--amber); }
.session-state.running,.session-state.active { --session-state-color:var(--cyan); }
.session-state.ready,.session-state.complete { --session-state-color:var(--green); }
.session-state.blocked { --session-state-color:var(--red); }
.session-state.unknown { --session-state-color:#8498b1; }
.session-state-marker {
  width:14px;
  height:14px;
  border:3px solid color-mix(in srgb,var(--session-state-color) 24%,transparent);
  border-radius:50%;
  background:var(--session-state-color);
  box-shadow:0 0 0 1px var(--session-state-color),0 0 20px color-mix(in srgb,var(--session-state-color) 35%,transparent);
}
.session-state.running .session-state-marker { animation:session-state-pulse 1.6s ease-in-out infinite; }
@keyframes session-state-pulse {
  50% { transform:scale(1.18); box-shadow:0 0 0 5px transparent,0 0 26px var(--session-state-color); }
}
.session-state-live { min-width:0; }
.session-state-live p { margin:0; }
.session-state-live > p:first-child {
  color:var(--session-state-color);
  font-size:12px;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.session-state-live h2 {
  margin:5px 0 6px;
  color:var(--ink);
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.025em;
}
.session-state-live > p:last-child { max-width:980px; color:var(--muted); font-size:12px; line-height:1.55; }
.session-state-next {
  display:grid;
  min-width:0;
  gap:4px;
  padding-left:20px;
  border-left:1px solid color-mix(in srgb,var(--session-state-color) 25%,transparent);
  text-align:right;
}
.session-state-next span { color:var(--session-state-color); font-size:12px; font-weight:850; letter-spacing:.13em; }
.session-state-next strong { color:var(--ink); font-size:18px; font-variant-numeric:tabular-nums; }
.session-state-next time { color:var(--muted); font-size:12px; line-height:1.45; }

@media (max-width:760px) {
  .session-state { grid-template-columns:auto minmax(0,1fr); padding:18px; }
  .session-state-next { grid-column:2; padding-top:12px; padding-left:0; border-top:1px solid color-mix(in srgb,var(--session-state-color) 25%,transparent); border-left:0; text-align:left; }
}
@media (max-width:480px) {
  .session-state { grid-template-columns:1fr; gap:12px; }
  .session-state-marker { display:none; }
  .session-state-next { grid-column:1; }
  .session-state-live h2 { font-size:17px; }
}

@media (max-width:1280px) {
  .shell { padding-inline:24px; }
  .operations-metrics { grid-template-columns:repeat(3,1fr); }
  .operations-metrics article { min-height:116px; }
  .market-intelligence { grid-template-columns:1fr 1fr; }
}
@media (max-width:1000px) {
  .masthead { padding-inline:0; }
  .ops-heading { align-items:flex-start; }
  .ops-toolbar { min-width:220px; }
  .market-intelligence {
    grid-template-areas:"headlines" "catalysts";
    grid-template-columns:1fr;
  }
  .headline-list,.economic-event-list { max-height:300px; }
}
@media (max-width:760px) {
  .shell { padding-inline:14px; }
  .masthead { gap:10px; }
  .brand small { display:none; }
  .app-nav { order:3; }
  .nav-tab { padding:9px 11px; }
  .nav-tab span { display:inline; font-size:12px; }
  .nav-tab { flex-direction:column; gap:4px; min-width:58px; }
  .nav-tab .ui-icon { width:18px; height:18px; }
  .ops-heading { flex-direction:column; padding:20px; }
  .ops-toolbar { width:100%; min-width:0; justify-content:space-between; }
  .market-tape { grid-template-columns:1fr 1fr; }
  .market-tape article,.market-tape article:nth-child(2) { min-height:104px; border:1px solid rgba(96,155,229,.16); }
  .readiness-banner { grid-template-columns:auto 1fr; padding:18px; }
  .readiness-tally { grid-column:2; padding-left:0; border-left:0; text-align:left; }
  .operations-metrics { grid-template-columns:1fr 1fr; }
  .operations-metrics article { border:1px solid rgba(96,155,229,.15); }
  .pipeline-steps { grid-template-columns:1fr 1fr; }
  .portfolio-kpis { grid-template-columns:1fr 1fr; }
  .portfolio-kpis > div,.portfolio-kpis > div:nth-child(3n),.portfolio-kpis > div:nth-last-child(-n+3) { border:1px solid rgba(96,155,229,.14); }
  .economic-event { grid-template-columns:82px minmax(0,1fr); }
  .event-importance { grid-column:2; justify-self:start; }
  .panel { padding:18px; }
  .panel-head { align-items:flex-start; }
  .section-icon { width:34px; height:34px; }
}
@media (max-width:480px) {
  .market-tape,.operations-metrics,.pipeline-steps,.portfolio-kpis { grid-template-columns:1fr; }
  .market-tape article,.market-tape article:nth-child(2) { border:1px solid rgba(96,155,229,.16); }
  .ops-toolbar { align-items:flex-start; flex-direction:column; }
  .live-connection { padding-left:0; border-left:0; }
  .readiness-symbol { display:none; }
  .readiness-banner { grid-template-columns:1fr; }
  .readiness-tally { grid-column:1; }
  .panel-heading { gap:9px; }
  .panel-head > .muted { display:none; }
}


/* Broker access controls */
.broker-access-card {
  display:grid;
  grid-template-columns:auto minmax(220px,1fr) auto;
  align-items:center;
  gap:13px;
  margin:-4px 0 16px;
  padding:14px;
  border:1px solid rgba(71,173,255,.2);
  border-radius:12px;
  background:linear-gradient(110deg,rgba(22,140,255,.09),rgba(2,12,26,.5));
}
.broker-access-icon {
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  color:var(--accent);
  border:1px solid rgba(71,173,255,.24);
  border-radius:11px;
  background:rgba(22,140,255,.08);
}
.broker-access-copy { display:grid; gap:4px; min-width:0; }
.broker-access-copy strong { font-size:12px; }
.broker-access-copy span { color:var(--muted); font-size:12px; line-height:1.45; }
.broker-access-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.broker-access-actions a {
  display:inline-flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid rgba(71,173,255,.24);
  border-radius:9px;
  color:var(--ink);
  background:rgba(3,17,36,.68);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.broker-access-actions a.primary { border-color:#168cff; color:#fff; background:#168cff; box-shadow:0 8px 24px rgba(22,140,255,.2); }
.broker-access-actions a:hover,.broker-access-actions a:focus-visible { border-color:#62bdff; transform:translateY(-1px); }
.broker-access-actions .launcher-install { padding-inline:7px; color:var(--muted); border-color:transparent; background:transparent; text-decoration:underline; text-underline-offset:3px; }
.broker-runtime-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:7px 10px;
  border:1px solid rgba(92,220,171,.3);
  border-radius:999px;
  color:var(--green);
  background:rgba(46,190,135,.08);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
}
@media (max-width:900px) {
  .broker-access-card { grid-template-columns:auto minmax(0,1fr); }
  .broker-access-actions { grid-column:2; justify-content:flex-start; }
  .broker-runtime-badge { grid-column:2; justify-self:start; }
}
@media (max-width:560px) {
  .broker-access-card { grid-template-columns:1fr; }
  .broker-access-icon { display:none; }
  .broker-access-actions { grid-column:1; justify-content:stretch; }
  .broker-access-actions a { flex:1 1 auto; }
  .broker-runtime-badge { grid-column:1; justify-self:start; }
}

/* Versioned strategy and portfolio policy */
.strategy-workspace { padding-bottom:70px; }
.strategy-hero { align-items:flex-end; }
.strategy-version-card {
  display:grid;
  min-width:190px;
  gap:5px;
  padding:18px 20px;
  border:1px solid rgba(71,173,255,.22);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(14,48,88,.52),rgba(2,12,26,.72));
  box-shadow:0 18px 40px rgba(0,23,62,.22);
}
.strategy-version-card span,.strategy-version-card small { color:var(--muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.strategy-version-card strong { color:var(--accent); font-size:24px; }
.policy-notice {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
  padding:15px 18px;
  border:1px solid rgba(239,191,102,.23);
  border-radius:13px;
  background:linear-gradient(100deg,rgba(239,191,102,.09),rgba(3,15,32,.62));
}
.policy-notice .ui-icon { width:21px; height:21px; flex:0 0 auto; color:var(--amber); }
.policy-notice div { display:grid; gap:4px; }
.policy-notice strong { color:var(--amber); font-size:12px; }
.policy-notice span { color:var(--muted); font-size:12px; line-height:1.5; }
.allocation-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.allocation-overview article {
  display:grid;
  min-height:112px;
  align-content:center;
  gap:7px;
  padding:18px;
  border:1px solid rgba(96,155,229,.16);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(8,29,57,.8),rgba(2,12,26,.88));
}
.allocation-overview span { color:var(--muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.allocation-overview strong { color:var(--ink); font-size:22px; }
.allocation-overview small { color:var(--accent); font-size:12px; }
.allocation-bar { display:flex; height:10px; margin:14px 2px 8px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.04); }
.allocation-bar i { display:block; background:linear-gradient(90deg,#168cff,#40c4ff); box-shadow:0 0 20px rgba(22,140,255,.36); transition:width .25s ease; }
.allocation-bar b { display:block; background:linear-gradient(90deg,rgba(104,226,170,.78),rgba(104,226,170,.32)); transition:width .25s ease; }
.allocation-legend { display:flex; align-items:center; gap:18px; margin:0 2px 22px; color:var(--muted); font-size:12px; }
.allocation-legend span { display:flex; align-items:center; gap:6px; }
.allocation-legend span:last-child { margin-left:auto; color:var(--ink); }
.allocation-legend i { width:7px; height:7px; border-radius:50%; background:#168cff; }
.allocation-legend span:nth-child(2) i { background:#68dcaa; }
.strategy-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr); gap:14px; margin-bottom:14px; }
.strategy-side { display:grid; align-content:start; gap:14px; }
.policy-editor fieldset { margin:0 0 20px; padding:0; border:0; }
.policy-editor legend { width:100%; margin-bottom:12px; padding-bottom:9px; color:var(--ink); border-bottom:1px solid rgba(96,155,229,.14); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.policy-editor legend span { float:right; padding:3px 7px; color:var(--amber); border:1px solid rgba(239,191,102,.25); border-radius:999px; font-size:12px; }
.policy-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.policy-fields label { display:grid; gap:7px; margin:0; color:var(--ink); font-size:12px; }
.field-with-help { position:relative; min-width:0; }
.field-with-help > label { margin:0; }
.field-with-help .field-help-label { display:flex; align-items:center; min-height:44px; padding-right:48px; line-height:1.4; }
.field-with-help > .feature-help { position:absolute; top:0; right:0; margin:0; }
.policy-fields .field-with-help > label { align-content:start; }
.policy-draft-notice,.panel-read-state { border:1px solid var(--line); border-radius:8px; padding:12px; margin:12px 0; font-size:13px; line-height:1.5; }
.policy-draft-notice p,.panel-read-state p { margin:0 0 8px; }
.policy-draft-notice p:last-child,.panel-read-state p:last-child { margin-bottom:0; }
.policy-draft-notice [data-activity=error],.panel-read-state[data-activity=error],#report-read-state[data-activity=error] { color:var(--amber); }
#policy-draft-values dd { overflow-wrap:anywhere; }
.policy-fields label small { color:var(--muted); font-size:12px; line-height:1.4; }
.policy-editor input,.policy-editor textarea { border-radius:9px; background:rgba(1,9,21,.72); }
.policy-editor input:focus,.policy-editor textarea:focus { border-color:rgba(57,184,255,.72); box-shadow:0 0 0 3px rgba(22,140,255,.1); }
.policy-editor input[readonly] { color:var(--green); cursor:not-allowed; }
.policy-editor input:disabled,.policy-editor textarea:disabled { opacity:.64; cursor:not-allowed; }
.monitor-fieldset { padding:16px !important; border:1px solid rgba(239,191,102,.18) !important; border-radius:12px; background:rgba(239,191,102,.035); }
.monitor-fieldset > p { margin:12px 0 0; color:var(--amber); font-size:12px; line-height:1.55; }
.policy-submit { display:flex; align-items:center; gap:14px; margin-top:14px; }
.policy-submit button { flex:0 0 auto; }
.policy-submit p { margin:0; font-size:12px; line-height:1.45; }
.policy-evidence-list { display:grid; gap:8px; }
.policy-evidence-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px; border:1px solid rgba(96,155,229,.13); border-radius:10px; background:rgba(2,12,26,.48); }
.policy-evidence-item > i { width:8px; height:8px; border-radius:50%; background:var(--muted); box-shadow:0 0 12px currentColor; }
.policy-evidence-item > i.healthy { color:var(--green); background:#68dcaa; }
.policy-evidence-item > i.warning { color:var(--amber); background:var(--amber); }
.policy-evidence-item > i.blocked { color:var(--red); background:#ff776d; }
.policy-evidence-item > div { display:grid; gap:4px; min-width:0; }
.policy-evidence-item strong { font-size:12px; }
.policy-evidence-item span { color:var(--muted); font-size:12px; line-height:1.45; }
.policy-evidence-item > b { padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.035); font-size:12px; }
.policy-evidence-item > b.healthy { color:var(--green); }
.policy-evidence-item > b.warning { color:var(--amber); }
.policy-evidence-item > b.blocked { color:var(--red); }
.policy-limitations ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; counter-reset:limitation; }
.policy-limitations li { position:relative; padding:0 0 10px 28px; color:var(--ink); border-bottom:1px solid rgba(96,155,229,.11); font-size:12px; line-height:1.55; counter-increment:limitation; }
.policy-limitations li::before { content:counter(limitation,decimal-leading-zero); position:absolute; left:0; top:0; color:var(--red); font-size:12px; font-weight:800; }
.condition-panel { margin-top:0; }
.condition-legend { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.condition-legend span,.condition-group article > b { padding:4px 7px; border-radius:999px; font-size:12px; letter-spacing:.04em; }
.condition-legend .active,.condition-group article > b.active { color:var(--green); background:rgba(104,220,170,.08); border:1px solid rgba(104,220,170,.2); }
.condition-legend .monitor,.condition-group article > b.monitor_only { color:var(--amber); background:rgba(239,191,102,.08); border:1px solid rgba(239,191,102,.2); }
.condition-legend .prohibited,.condition-group article > b.prohibited { color:var(--red); background:rgba(255,119,109,.08); border:1px solid rgba(255,119,109,.2); }
.condition-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.condition-group { padding:15px; border:1px solid rgba(96,155,229,.13); border-radius:11px; background:rgba(2,12,26,.45); }
.condition-group h3 { margin:0 0 9px; color:var(--accent); font-size:12px; letter-spacing:.13em; }
.condition-group article { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:10px; padding:10px 0; border-top:1px solid rgba(96,155,229,.1); }
.condition-group article > div { display:grid; gap:4px; }
.condition-group article strong { color:var(--ink); font-size:12px; }
.condition-group article span { color:var(--muted); font-size:12px; line-height:1.5; }
@media (max-width:1100px) {
  .strategy-layout { grid-template-columns:1fr; }
  .strategy-side { grid-template-columns:1fr 1fr; }
  .condition-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .strategy-hero { align-items:stretch; }
  .strategy-version-card { min-width:0; }
  .allocation-overview { grid-template-columns:1fr 1fr; }
  .strategy-side,.condition-groups { grid-template-columns:1fr; }
  .policy-fields { grid-template-columns:1fr; }
  .condition-legend { justify-content:flex-start; }
}
@media (max-width:480px) {
  .allocation-overview { grid-template-columns:1fr; }
  .allocation-legend { align-items:flex-start; flex-direction:column; gap:7px; }
  .allocation-legend span:last-child { margin-left:0; }
  .policy-submit { align-items:stretch; flex-direction:column; }
}

/* Audited model promotion workflow */
.model-review-panel {
  margin-bottom:16px;
  background:
    radial-gradient(circle at 88% 0,rgba(22,140,255,.1),transparent 30%),
    linear-gradient(145deg,rgba(8,29,57,.9),rgba(2,12,26,.94));
}
.model-review-path { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:18px 0 12px; }
.model-review-path > div {
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:3px 10px;
  align-items:center;
  min-height:76px;
  padding:14px;
  border:1px solid rgba(96,155,229,.14);
  border-radius:11px;
  background:rgba(1,9,21,.55);
}
.model-review-path > div:not(:last-child)::after {
  content:"";
  position:absolute;
  z-index:2;
  right:-11px;
  width:12px;
  height:1px;
  background:rgba(96,155,229,.35);
}
.model-review-path i {
  display:grid;
  grid-row:1/3;
  width:30px;
  height:30px;
  place-items:center;
  border:1px solid rgba(96,155,229,.25);
  border-radius:9px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.model-review-path strong { overflow:hidden; color:var(--ink); font-size:12px; text-overflow:ellipsis; }
.model-review-path span { color:var(--muted); font-size:12px; }
.model-review-path .complete { border-color:rgba(104,220,170,.28); background:rgba(39,151,112,.07); }
.model-review-path .complete i { color:var(--green); border-color:rgba(104,220,170,.3); }
.model-review-path .current { border-color:rgba(71,173,255,.48); background:rgba(22,140,255,.1); box-shadow:inset 0 -2px #168cff; }
.model-review-path .current i { color:var(--accent); border-color:rgba(71,173,255,.45); }
.model-review-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; border:1px solid rgba(96,155,229,.14); border-radius:11px; }
.model-review-summary > div { display:grid; gap:5px; min-height:76px; align-content:center; padding:14px; border-left:1px solid rgba(96,155,229,.12); }
.model-review-summary > div:first-child { border-left:0; }
.model-review-summary span { color:var(--muted); font-size:12px; letter-spacing:.06em; text-transform:uppercase; }
.model-review-summary strong { color:var(--ink); font-size:12px; }
.model-review-blockers { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 16px; }
.model-review-blockers span,.model-review-blockers p {
  margin:0;
  padding:7px 9px;
  border:1px solid rgba(255,119,109,.24);
  border-radius:8px;
  color:var(--red);
  background:rgba(255,119,109,.05);
  font-size:12px;
  line-height:1.4;
}
.model-review-blockers p.eligible { color:var(--green); border-color:rgba(104,220,170,.25); background:rgba(104,220,170,.06); }
.model-review-actions { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); gap:12px; }
.model-review-form {
  display:grid;
  align-content:start;
  gap:14px;
  padding:16px;
  border:1px solid rgba(96,155,229,.14);
  border-radius:12px;
  background:rgba(1,9,21,.48);
}
.review-form-head { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.review-form-head h3,.review-history h3 { margin:2px 0 0; color:var(--ink); font-size:13px; }
.review-form-head > span {
  padding:5px 8px;
  border:1px solid rgba(71,173,255,.24);
  border-radius:999px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
}
.review-form-head > span.healthy { color:var(--green); border-color:rgba(104,220,170,.28); }
.review-form-head > span.blocked { color:var(--red); border-color:rgba(255,119,109,.26); }
.review-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.review-fields label,.model-review-form > label { display:grid; gap:6px; margin:0; color:var(--ink); font-size:12px; }
.review-field-wide { grid-column:1/-1; }
.model-review-form input,.model-review-form select,.model-review-form textarea { border-radius:9px; background:rgba(1,9,21,.78); }
.model-review-form textarea { min-height:82px; }
.model-review-form fieldset { margin:0; padding:0; border:0; }
.model-review-form legend { width:100%; margin-bottom:9px; padding-bottom:8px; color:var(--ink); border-bottom:1px solid rgba(96,155,229,.13); font-size:12px; font-weight:800; text-transform:uppercase; }
.review-checklist { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.review-checklist label {
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-height:38px;
  margin:0;
  padding:9px;
  border:1px solid rgba(96,155,229,.12);
  border-radius:8px;
  color:var(--ink);
  background:rgba(5,22,44,.44);
  font-size:12px;
  line-height:1.4;
}
.review-checklist input { width:14px; height:14px; margin:0; accent-color:#168cff; }
.review-checklist label:has(input:checked) { color:var(--ink); border-color:rgba(104,220,170,.25); background:rgba(104,220,170,.055); }
.promotion-approval { position:sticky; top:102px; }
.review-history { display:grid; gap:8px; padding-top:12px; border-top:1px solid rgba(96,155,229,.13); }
.review-history > div { display:grid; gap:7px; }
.review-history article { display:grid; gap:4px; padding:10px; border:1px solid rgba(96,155,229,.12); border-radius:8px; }
.review-history article strong { color:var(--green); font-size:12px; }
.review-history article span { color:var(--muted); font-size:12px; }
.review-history article p { margin:2px 0 0; color:var(--ink); font-size:12px; line-height:1.45; }
@media (max-width:1000px) {
  .model-review-actions { grid-template-columns:1fr; }
  .promotion-approval { position:static; }
}
@media (max-width:680px) {
  .model-review-path,.model-review-summary { grid-template-columns:1fr; }
  .model-review-path > div:not(:last-child)::after { display:none; }
  .model-review-summary > div { border-top:1px solid rgba(96,155,229,.12); border-left:0; }
  .model-review-summary > div:first-child { border-top:0; }
  .review-fields,.review-checklist { grid-template-columns:1fr; }
}

/* Isolated strategy parameter what-if lab */
.parameter-lab { padding-bottom:70px; }
.parameter-lab-hero { align-items:flex-end; }
.parameter-test-notice {
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid rgba(104,220,170,.25);
  border-radius:12px;
  background:linear-gradient(100deg,rgba(38,143,106,.1),rgba(7,27,52,.45));
}
.parameter-test-notice .ui-icon { width:21px; height:21px; flex:0 0 auto; color:var(--green); }
.parameter-test-notice div { display:grid; gap:4px; }
.parameter-test-notice strong { color:var(--ink); font-size:12px; }
.parameter-test-notice span { color:var(--muted); font-size:12px; line-height:1.5; }
.parameter-lab-overview {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-bottom:14px;
  overflow:hidden;
  border:1px solid rgba(96,155,229,.14);
  border-radius:12px;
  background:rgba(2,12,27,.72);
}
.parameter-lab-overview article {
  display:grid;
  gap:5px;
  min-height:92px;
  align-content:center;
  padding:15px;
  border-left:1px solid rgba(96,155,229,.12);
}
.parameter-lab-overview article:first-child { border-left:0; }
.parameter-lab-overview span,.parameter-lab-overview small {
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.06em;
  text-overflow:ellipsis;
  text-transform:uppercase;
}
.parameter-lab-overview strong { overflow:hidden; color:var(--accent); font-size:15px; text-overflow:ellipsis; }
.parameter-lab-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr); gap:14px; margin-bottom:14px; }
.parameter-lab-side { display:grid; align-content:start; gap:14px; }
.parameter-editor fieldset { margin:0 0 20px; padding:0; border:0; }
.parameter-editor legend {
  width:100%;
  margin-bottom:12px;
  padding-bottom:9px;
  color:var(--ink);
  border-bottom:1px solid rgba(96,155,229,.14);
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.parameter-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.parameter-scope-note { margin:0 0 12px; color:var(--muted); font-size:12px; line-height:1.55; }
.parameter-fields label,.parameter-version-fields > label {
  display:grid;
  gap:7px;
  margin:0;
  color:var(--ink);
  font-size:12px;
}
.parameter-fields label small { color:var(--muted); font-size:12px; line-height:1.4; }
.parameter-editor input,.parameter-editor select,.parameter-editor textarea {
  border-radius:9px;
  background:rgba(1,9,21,.72);
  font-size:14px;
}
.parameter-editor input:focus,.parameter-editor select:focus,.parameter-editor textarea:focus {
  border-color:rgba(57,184,255,.72);
  box-shadow:0 0 0 3px rgba(22,140,255,.1);
}
.parameter-editor textarea { min-height:88px; }
.parameter-toggles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.parameter-toggles > label {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
  padding:11px;
  border:1px solid rgba(96,155,229,.13);
  border-radius:9px;
  background:rgba(4,18,37,.5);
}
.parameter-toggles input { width:15px; height:15px; margin:1px 0 0; accent-color:#168cff; }
.parameter-toggles span { display:grid; gap:4px; }
.parameter-toggles strong { color:var(--ink); font-size:12px; }
.parameter-toggles small { color:var(--muted); font-size:12px; line-height:1.4; }
.parameter-toggles label:has(input:checked) { border-color:rgba(71,173,255,.32); background:rgba(22,140,255,.06); }
.parameter-version-fields { display:grid; gap:12px; }
.parameter-actions { display:flex; flex-wrap:wrap; gap:10px; }
.parameter-actions button { min-width:180px; }
.parameter-safeguards ul { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.parameter-safeguards li {
  position:relative;
  padding:0 0 9px 23px;
  color:var(--ink);
  border-bottom:1px solid rgba(96,155,229,.1);
  font-size:12px;
  line-height:1.5;
}
.parameter-safeguards li::before { content:"✓"; position:absolute; left:0; color:var(--green); font-weight:900; }
.parameter-source .definition-grid { grid-template-columns:1fr; }
.parameter-summary-cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-bottom:14px;
  overflow:hidden;
  border:1px solid rgba(96,155,229,.13);
  border-radius:11px;
}
.parameter-summary-cards article { display:grid; gap:5px; min-height:88px; align-content:center; padding:14px; border-left:1px solid rgba(96,155,229,.12); }
.parameter-summary-cards article:first-child { border-left:0; }
.parameter-summary-cards span,.parameter-summary-cards small { color:var(--muted); font-size:12px; letter-spacing:.05em; text-transform:uppercase; }
.parameter-summary-cards strong { display:flex; align-items:center; gap:7px; color:var(--ink); font-size:18px; }
.parameter-summary-cards strong i { color:var(--accent); font-style:normal; }
.parameter-summary-cards strong b { color:var(--muted); font-size:12px; }
.parameter-summary-cards article:last-child strong { overflow:hidden; display:block; font-size:13px; text-overflow:ellipsis; }
.parameter-change-table td:nth-child(3),.parameter-change-table td:nth-child(4),
.parameter-change-table td:nth-child(5),.parameter-change-table td:nth-child(6) { font-weight:800; }
.parameter-history { margin-top:14px; }

/* Session evidence report and multi-session replay */
.evidence-workspace { position:relative; }
.evidence-filter-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,280px));
  align-items:end;
  justify-content:start;
  gap:10px;
  margin:16px 0 12px;
}
.rejection-diagnostics .evidence-filter-grid { grid-template-columns:minmax(220px,320px) auto; }
.evidence-filter-grid label { display:grid; gap:6px; margin:0; color:var(--ink); font-size:12px; }
.evidence-filter-grid input,.evidence-filter-grid select {
  min-height:42px;
  border-radius:9px;
  background:rgba(1,9,21,.72);
}
.evidence-filter-grid button { min-height:42px; white-space:nowrap; }
.evidence-filter-grid button:disabled { cursor:not-allowed; opacity:.42; }
.evidence-shell-state {
  position:relative;
  margin-top:12px;
  padding:13px 15px 13px 38px;
  color:var(--muted);
  border:1px dashed rgba(96,155,229,.22);
  border-radius:10px;
  background:rgba(2,12,27,.48);
  font-size:12px;
  line-height:1.55;
}
.evidence-shell-state::before {
  position:absolute;
  top:13px;
  left:15px;
  color:var(--accent);
  content:"○";
  font-size:14px;
  line-height:1;
}
.evidence-shell-state.is-loading::before { content:"↻"; animation:evidenceStateSpin 1s linear infinite; }
.evidence-shell-state.is-error { color:var(--red); border-color:rgba(255,119,109,.3); background:rgba(255,119,109,.05); }
.evidence-shell-state.is-error::before { color:var(--red); content:"!"; }
.evidence-shell-state.is-warning { color:var(--amber); border-style:solid; border-color:rgba(255,192,92,.28); background:rgba(255,192,92,.05); }
.evidence-shell-state.is-warning::before { color:var(--amber); content:"!"; }
.evidence-shell-state.is-ready { color:var(--ink); border-style:solid; border-color:rgba(112,220,165,.25); background:rgba(112,220,165,.05); }
.evidence-shell-state.is-ready::before { color:var(--green); content:"✓"; }
.evidence-statuses { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.evidence-shell-content { display:grid; gap:14px; margin-top:14px; }
.evidence-summary-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  overflow:hidden;
  border:1px solid rgba(96,155,229,.14);
  border-radius:11px;
  background:rgba(2,12,27,.58);
}
.evidence-summary-cards article {
  display:grid;
  min-width:0;
  min-height:92px;
  align-content:center;
  gap:5px;
  padding:14px;
  border-right:1px solid rgba(96,155,229,.12);
}
.evidence-summary-cards article:last-child { border-right:0; }
.evidence-summary-cards span,.evidence-summary-cards small {
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.05em;
  text-overflow:ellipsis;
  text-transform:uppercase;
}
.evidence-summary-cards strong { overflow-wrap:anywhere; color:var(--ink); font-size:19px; }
.evidence-summary-cards .tone-healthy strong { color:var(--green); }
.evidence-summary-cards .tone-warning strong { color:var(--amber); }
.evidence-summary-cards .tone-blocked strong { color:var(--red); }
.evidence-funnel-section,.evidence-table-grid > section,.evidence-stack > section,
.evidence-note-grid > section {
  min-width:0;
  padding:15px;
  border:1px solid rgba(96,155,229,.13);
  border-radius:11px;
  background:rgba(2,12,27,.46);
}
.evidence-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:12px; }
.evidence-section-head h3,.evidence-table-grid h3,.evidence-stack h3,
.evidence-note-grid h3 { margin:2px 0 12px; color:var(--ink); font-size:14px; }
.evidence-section-head > small { color:var(--muted); font-size:12px; }
.evidence-funnel {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.evidence-funnel li {
  display:grid;
  min-width:0;
  gap:5px;
  padding:12px;
  border:1px solid rgba(96,155,229,.14);
  border-radius:9px;
  background:#030b19;
}
.evidence-funnel span,.evidence-funnel small { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; }
.evidence-funnel strong { color:var(--ink); font-size:17px; }
.evidence-funnel .tone-healthy strong { color:var(--green); }
.evidence-funnel .tone-warning strong { color:var(--amber); }
.evidence-funnel .tone-blocked strong { color:var(--red); }
.evidence-table-grid { display:grid; grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr); gap:14px; }
.evidence-table-grid h3 { margin-bottom:12px; }
.evidence-table-grid .empty { padding:18px 8px 4px; font-size:12px; }
.evidence-stack { display:grid; gap:14px; }
.evidence-stack .empty,.evidence-note-grid .empty { padding:12px 0 2px; font-size:12px; }
.evidence-note-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.evidence-code-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.evidence-code-list li {
  position:relative;
  padding:0 0 8px 18px;
  color:var(--ink);
  border-bottom:1px solid rgba(96,155,229,.1);
  font-size:12px;
  line-height:1.5;
}
.evidence-code-list li:last-child { padding-bottom:0; border-bottom:0; }
.evidence-code-list li::before { position:absolute; left:0; color:var(--accent); content:"›"; font-weight:900; }
.evidence-limit-list li::before { color:var(--amber); content:"i"; }
.evidence-session-table { min-width:900px; }
.evidence-scenario-table { min-width:1050px; }
.evidence-provenance {
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  padding:2px 15px 12px;
  border:1px solid rgba(96,155,229,.12);
  border-radius:11px;
  background:rgba(2,12,27,.42);
}
.evidence-provenance div { min-width:0; }
.evidence-provenance dd { overflow:hidden; text-overflow:ellipsis; }
.parameter-replay { margin-top:14px; }
@keyframes evidenceStateSpin { to { transform:rotate(360deg); } }

@media (max-width:1100px) {
  .parameter-lab-layout { grid-template-columns:1fr; }
  .parameter-lab-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .parameter-lab-overview,.parameter-summary-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .parameter-lab-overview article:nth-child(3),.parameter-summary-cards article:nth-child(3) { border-top:1px solid rgba(96,155,229,.12); border-left:0; }
  .parameter-lab-overview article:nth-child(4),.parameter-summary-cards article:nth-child(4) { border-top:1px solid rgba(96,155,229,.12); }
  .evidence-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rejection-diagnostics .evidence-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .evidence-filter-grid button { width:100%; }
  .evidence-table-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .parameter-lab-hero { align-items:stretch; }
  .parameter-lab-overview,.parameter-summary-cards,.parameter-lab-side,
  .parameter-fields,.parameter-toggles,.evidence-filter-grid { grid-template-columns:1fr; }
  .parameter-lab-overview article,.parameter-summary-cards article { border-top:1px solid rgba(96,155,229,.12); border-left:0; }
  .parameter-lab-overview article:first-child,.parameter-summary-cards article:first-child { border-top:0; }
  .parameter-actions { flex-direction:column; }
  .parameter-actions button { width:100%; }
  .evidence-summary-cards { grid-template-columns:1fr 1fr; }
  .evidence-summary-cards article { border-bottom:1px solid rgba(96,155,229,.12); }
  .evidence-summary-cards article:nth-child(2n) { border-right:0; }
  .evidence-summary-cards article:nth-last-child(-n+2) { border-bottom:0; }
  .evidence-section-head { align-items:flex-start; flex-direction:column; }
  .evidence-note-grid { grid-template-columns:1fr; }
}
@media (max-width:430px) {
  .evidence-summary-cards { grid-template-columns:1fr; }
  .evidence-summary-cards article { border-right:0; }
  .evidence-summary-cards article:nth-last-child(-n+2) { border-bottom:1px solid rgba(96,155,229,.12); }
  .evidence-summary-cards article:last-child { border-bottom:0; }
}

.setup-check-counts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:12px 0; }
.setup-check-counts > div { display:grid; gap:8px; padding:14px; border:1px solid var(--line); border-radius:12px; }
.setup-check-counts span { color:var(--muted); font-size:12px; }
.setup-check-counts strong { color:var(--ink); font-size:16px; }
.setup-diagnostics summary { cursor:pointer; padding:10px 0; }
.setup-reason-list { display:grid; gap:10px; }
.setup-reason-list > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; }
.setup-reason-list dd { margin:0; text-align:right; }
@media(max-width:700px) { .setup-check-counts { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.company-fundamentals .fundamentals-snapshots { max-height:32rem; overflow:auto; }
.company-fundamentals details > label { display:block; margin:1rem 0; max-width:28rem; }

/* Status and Research are independent workspaces sharing one evidence snapshot. */
.workspace-switch { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; padding:.75rem 0; }
.workspace-switch strong { color:var(--cyan, #31b5ff); font-size:1.2rem; }
.workspace-switch span { color:var(--muted, #94a3b8); flex:1; }
.status-grid, .research-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.status-grid > .panel, .research-grid > .panel { grid-column:auto !important; }
.status-grid > .wide, .research-grid > .wide, .research-grid > .full { grid-column:1 / -1 !important; }
.research-grid > .session-progress { grid-column:auto !important; }
.research-jump-links { display:flex; gap:.75rem; flex-wrap:wrap; margin:0 0 1.5rem; }
.research-jump-links a { padding:.6rem .9rem; border:1px solid #1d3955; border-radius:.6rem; color:var(--muted); text-decoration:none; }
.research-workspace [id^="research-"] { scroll-margin-top:9rem; }
.capacity-summary { max-width:75ch; line-height:1.7; }
@media (max-width:900px) { .status-grid, .research-grid { grid-template-columns:minmax(0,1fr); } .status-grid > .panel, .research-grid > .panel { grid-column:1 / -1 !important; } }

.research-workspace h1 { font-size:clamp(1.8rem,3vw,2.8rem); max-width:30ch; }
.readiness > summary { cursor:pointer; list-style-position:inside; }

/* Company workspace */
.company-browser{display:grid;grid-template-columns:minmax(240px,290px) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:24px}
.company-browser .panel{min-width:0}.company-directory-list{display:grid;gap:6px;max-height:690px;overflow:auto;margin:16px 0}
.company-directory-item{display:grid;text-align:left;gap:4px;width:100%;padding:12px;color:var(--ink);border:1px solid #18364b;background:#061423;border-radius:10px}
.company-directory-item[aria-pressed="true"]{border-color:#24a5ff;background:#0b2940}
.company-directory-item span{font-size:13px;overflow-wrap:anywhere}.company-directory-item small,.headline-list small{display:block;color:var(--ink);font-size:12px}
.company-section-tabs,.chart-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0}
.company-section-tabs .active{border-color:#25a8ff;color:var(--accent)}.chart-toolbar select{min-width:130px}
.chart-toggle{display:flex;align-items:center;gap:8px}.chart-toggle input{width:auto}
.company-chart{width:100%;min-height:180px}.company-chart svg{display:block;max-width:100%;background:#051220;border-radius:12px;touch-action:pan-y}
.chart-axis-label{fill:#9cafc5;font:11px system-ui,sans-serif}.chart-grid-line{stroke:#183040;stroke-width:1}
.chart-reference-line{stroke:#7c718f;stroke-dasharray:4 4}.chart-cursor{stroke:#acc0d5;stroke-dasharray:3 3;pointer-events:none}
.chart-readout{min-height:3.8em;font-size:13px;line-height:1.6;padding:10px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.company-chart input[type=range]{width:100%}.company-earnings-flag{margin:20px 0;padding:12px;border-left:3px solid #ffbd59;background:#142033}
.company-financial-dataset{border-bottom:1px solid #1e354a;padding:18px 0}
.company-detail dl>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #142c3f}
.company-detail dt{color:var(--ink)}.company-detail dd{margin:0;text-align:right;overflow-wrap:anywhere}
.company-symbol-link{border:0;padding:0;color:var(--accent);background:transparent;text-decoration:underline}
.headline-list{padding-left:20px}.headline-list li{padding:12px 0}
#collection-issues-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}#collection-issues-filters label{flex:1 1 145px}
#research-collection{margin:22px 0}#collection-issues-body td{vertical-align:top;max-width:320px;overflow-wrap:anywhere}
.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 24px}
.workspace-head h1{font-size:30px;margin:4px 0 10px}
@media(max-width:900px){.company-browser{grid-template-columns:1fr}.company-directory-list{max-height:250px;grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-head{align-items:start;flex-direction:column}}
@media(max-width:520px){.company-directory-list{grid-template-columns:1fr;max-height:225px}.company-section-tabs{gap:5px}.company-section-tabs button{font-size:12px;padding:10px}.company-detail dl>div{flex-direction:column;gap:5px}.company-detail dd{text-align:left}.company-browser{gap:12px}}

.company-browser > .panel { grid-column:auto; }
.chart-legend {display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--ink)}.chart-legend .ema20 {color:var(--accent)}.chart-legend .ema50 {color:var(--amber)}

.company-detail-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap}.company-detail-actions button {font-size:12px;padding:8px 12px}
.bottoming-scan,.bottoming-model{grid-column:1/-1;margin-bottom:20px}
.bottoming-controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:20px 0}
.bottoming-controls label{flex:1;min-width:180px}.bottoming-controls button{min-height:44px}
.bottoming-scan td small{display:block;color:var(--muted);margin-top:5px;max-width:260px}
.company-bottoming{border:1px solid var(--line);border-left:3px solid var(--accent);padding:18px;margin:12px 0;background:var(--panel);border-radius:8px}
#company-topping{border-left-color:#986c12}
.chart-signal-marker{cursor:pointer}
.chart-signal-marker:focus-visible .chart-signal-dot{stroke:var(--text);stroke-width:2.5}
.chart-signal-list{margin:10px 0;border-top:1px solid var(--border);padding-top:10px}
.chart-signal-list summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.chart-signal-list ul{list-style:none;padding:0;margin:0;max-height:280px;overflow:auto}
.chart-signal-list button{min-height:44px;width:100%;text-align:left;margin:4px 0;white-space:normal;line-height:1.5}
.bottoming-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.company-bottoming li{margin:5px 0}.company-bottoming .muted{font-size:13px;line-height:1.6}
@media(max-width:650px){.bottoming-facts{grid-template-columns:1fr}.bottoming-controls{align-items:stretch}.bottoming-controls button{width:100%}}

[hidden]{display:none!important}
.blocker-item{grid-template-columns:minmax(0,1fr);gap:8px}
.blocker-priority{width:fit-content;height:auto;padding:5px 9px;max-width:100%;font-size:.75rem;white-space:normal}
.blocker-item>div{min-width:0}
.blocker-item strong{font-size:.875rem}
.blocker-item span:not(.blocker-priority),.blocker-item details p{font-size:.8rem;line-height:1.5}
.workspace-loading{padding:1rem;border:1px solid var(--border);border-radius:.75rem}

/* Explicit recovery ownership and compact company/policy navigation. */
.recovery-group-start{border-top:2px solid var(--border);margin-top:16px;padding-top:16px}
.evaluation-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}
.evaluation-actions label{flex:1 1 180px}.evaluation-actions button{min-height:44px}
.policy-edit-details>summary{cursor:pointer;padding:12px 0;color:var(--muted);font-weight:700}
.policy-edit-details[open]>summary{margin-bottom:16px}
@media(min-width:901px){.company-directory{position:sticky;top:110px}.company-detail>.panel-head{position:static;background:#08192b;padding-block:12px;border-bottom:1px solid #1d3955}}
@media(max-width:600px){.evaluation-actions{display:grid;grid-template-columns:1fr}.evaluation-actions button{width:100%}.company-detail>.panel-head{align-items:flex-start}.company-detail-actions{width:100%}.company-detail h2{font-size:1.35rem}}

.recovery-totals{font-size:.8rem;line-height:1.6;color:var(--muted);max-width:24ch;text-align:right}.blockers>.panel-head{flex-wrap:wrap}

/* Keep company section controls in normal flow: a sticky heading obscured them. */
.company-section-tabs{position:relative;z-index:1;min-height:44px;overflow:visible}
.company-section-tabs button{min-height:44px;color:var(--ink);line-height:1.4;white-space:normal}
.company-section-tabs button:focus-visible{outline:2px solid #8dd8ff;outline-offset:3px}
@media(max-width:600px){.company-section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.company-section-tabs button{padding:10px 6px}.workspace-switch{align-items:flex-start}.workspace-switch span{flex-basis:100%}.workspace-switch button{width:100%}}

.study-details{max-height:28rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem} #study-design{display:grid;grid-template-columns:minmax(8rem,1fr) minmax(0,3fr);gap:.5rem} #study-design dd{margin:0;overflow-wrap:anywhere}

/* Keep all workspace destinations visible in narrow authenticated panels. */
@media (max-width: 760px) {
  .app-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:visible; }
  .app-nav .nav-tab { min-width:0; justify-content:center; padding:8px 3px; white-space:normal; min-height:44px; }
}

/* A wrapped primary navigation must reserve its full height in normal flow. */
@media(max-width:1100px){.masthead{height:auto;min-height:88px;flex-wrap:wrap;padding-block:12px;gap:12px}.app-nav{order:3;width:100%}}
@media(max-width:760px){.masthead{align-content:flex-start}.workspace,.dashboard{padding-top:24px}}

/* Tap and keyboard help: visible controls, native modal focus containment. */
.feature-help{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:44px;min-width:44px;min-height:44px;padding:4px;margin:2px 6px;border:1px solid #3987ac;border-radius:50%;background:#0b2940;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;}
.feature-help:focus-visible{outline:3px solid #7dd3fc;outline-offset:3px;}
h1:has(+.feature-help),h2:has(+.feature-help),h3:has(+.feature-help){display:inline;}
.feature-help-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #3987ac;border-radius:16px;background:#071829;color:var(--ink);}
.feature-help-dialog::backdrop{background:rgba(0,0,0,.7);}
.feature-help-dialog h2{font-size:24px;margin:0 0 16px;}
.feature-help-dialog dt{font-weight:700;color:var(--accent);margin-top:16px;}
.feature-help-dialog dd{margin:6px 0 16px;line-height:1.6;color:var(--ink);}
.research-controls-notice{padding:14px 18px;border:1px solid #27618b;border-radius:10px;background:#092238;color:var(--ink);line-height:1.6}
.research-gate-dialog{width:min(740px,calc(100vw - 24px));max-height:90vh;overflow:auto;box-sizing:border-box;padding:26px;border:1px solid #33749d;border-radius:18px;background:#081b2e;color:var(--ink);box-shadow:0 24px 100px #0009}
.research-gate-dialog::backdrop{background:#010813c9}
.research-gate-dialog h2{margin:4px 0;font-size:26px}
#research-gate-fields{border:0;padding:0;margin:20px 0}
.gate-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;border:0;padding:18px 0}
.gate-fields-grid legend{padding-top:20px;color:var(--ink)}
.gate-fields-grid label{display:flex;flex-direction:column;gap:8px;font-size:14px;margin:0}
.gate-fields-grid input,.gate-fields-grid select{width:100%;min-height:44px;box-sizing:border-box}
.gate-fields-grid input[type=checkbox]{width:22px;min-height:22px;align-self:flex-start;accent-color:#1599ff}
.gate-fields-grid:disabled{opacity:.45}
.gate-switch{display:flex;align-items:center;gap:12px;font-weight:600;min-height:44px;margin:0}
.gate-switch input[type=checkbox]{width:22px;height:22px;accent-color:#1599ff}
.gate-preview{padding:16px;border:1px solid #246990;border-radius:10px;background:#0a2a43;color:var(--accent);line-height:1.8}
.gate-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.gate-actions button{min-height:44px}
.funnel-stage.gate-disabled{border-style:dashed;background:#182433}
.gate-state{font-size:12px;color:var(--accent);text-transform:none;margin-top:6px;display:block}
.watchlist-toolbar{display:grid;grid-template-columns:1fr 2fr 1.4fr;gap:16px;align-items:end}
.watchlist-toolbar label{display:flex;flex-direction:column;gap:8px}.watchlist-toolbar .gate-switch{flex-direction:row;align-items:center}
.watchlist-toolbar input{min-height:44px}.watchlist-toolbar input[type=checkbox]{min-height:22px}
.watchlist-search-results{padding:0;list-style:none;max-height:340px;overflow:auto}
.watchlist-search-results li{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid #223c51}
#trading-watchlists{margin-bottom:28px}#watchlist-rows td{vertical-align:middle}
@media(max-width:640px){.gate-fields-grid,.watchlist-toolbar{grid-template-columns:1fr}.research-gate-dialog{padding:18px}.gate-actions button{flex:1 1 auto}}

/* Operator console: shared hierarchy, explicit status and accessible density. */
:root { --muted:#a4b3c6; --border:var(--line); --surface:#0b1729; }
body { background:#070f1d; }
body::before { display:none; }
.shell { max-width:1760px; padding:0 28px 40px; }
.skip-link { position:fixed; top:8px; left:12px; z-index:200; padding:12px 18px; color:#fff; background:#0c4fb0; transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.app-chrome { position:sticky; top:0; z-index:50; background:#070f1d; border-bottom:1px solid var(--line); }
.app-chrome .masthead { position:static; background:#070f1d; border:0; padding-inline:0; box-shadow:none; }
.brand small { letter-spacing:.1em; }
.nav-tab { min-height:44px; padding:10px 12px; font-size:13px; }
.system-ribbon { display:flex; align-items:center; gap:24px; min-height:64px; padding:8px 0 12px; color:var(--muted); font-size:12px; }
.ribbon-mode { display:grid; gap:4px; text-align:left; background:#102238; border:1px solid #28425d; border-radius:8px; padding:8px 12px; min-width:144px; box-shadow:none; }
.ribbon-mode strong,.ribbon-session strong { color:var(--ink); font-size:13px; font-weight:600; }
.ribbon-label { display:block; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.ribbon-session { display:grid; gap:6px; flex:1; }
.ribbon-connection { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.console-badge { display:inline-flex; gap:7px; align-items:center; padding:5px 9px; border-radius:6px; border:1px solid #2b435c; font-size:12px; color:var(--ink); white-space:nowrap; }
.console-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
[data-tone=healthy] { --status-color:#76dfb2; }
[data-tone=warning] { --status-color:#f0c475; }
[data-tone=neutral] { --status-color:#a8c7ea; }
.console-badge[data-tone],#ribbon-check-time[data-tone=warning] { color:var(--status-color); }
#refresh-system-status { min-height:40px; padding:8px 12px; font-size:12px; white-space:nowrap; }
.dashboard { padding-top:20px; animation:none; }
.workspace-switch { padding:12px 0 18px; border:0; background:none; }
.workspace-switch>strong { font-size:15px; }.workspace-switch>span { font-size:13px; }
.ops-heading { border:0; padding:10px 0 20px; background:none; box-shadow:none; align-items:flex-start; }
.ops-heading h1 { font-size:clamp(25px,2.4vw,34px); line-height:1.2; letter-spacing:-.025em; max-width:920px; }
.ops-heading .muted { font-size:13px; line-height:1.65; max-width:900px; }
.ops-toolbar { min-width:210px; font-size:12px; }
.ops-toolbar strong { font-variant-numeric:tabular-nums; font-size:12px; }
.ops-toolbar .live-connection { display:none; } /* Connection is always visible in the global ribbon. */
.console-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 20px; }
button.console-card { display:flex; flex-direction:column; gap:12px; align-items:stretch; text-align:left; white-space:normal; padding:20px; min-width:0; min-height:205px; color:var(--ink); background:linear-gradient(135deg,#11243b,#0c192b); border:1px solid #233d57; border-radius:12px; box-shadow:none; transition:border-color .15s,background .15s; }
button.console-card:hover { background:#122940; border-color:#477399; transform:none; }
.console-card-label { display:flex; align-items:center; gap:9px; color:var(--ink); font-size:13px; font-weight:600; }
.console-card-label>span { margin-left:auto; color:var(--muted); }
button.console-card>strong { color:var(--status-color,#d1e0ef); font-size:clamp(20px,1.7vw,26px); letter-spacing:-.025em; line-height:1.15; }
button.console-card>span:not(.console-card-label) { color:var(--ink); font-size:13px; line-height:1.6; font-weight:400; }
button.console-card>small { margin-top:auto; padding-top:4px; color:var(--accent); font-size:12px; font-weight:500; }
.session-state { border-radius:12px; padding:20px; margin-bottom:14px; box-shadow:none; }
.session-state h2 { font-size:21px; line-height:1.3; }.session-state p { line-height:1.6; }
.readiness-banner { border-radius:10px; padding:16px 20px; margin-bottom:16px; box-shadow:none; }
.readiness-banner.waiting { border-color:#30445d; background:#0e1c2e; }
.readiness-copy h2 { font-size:18px; }.readiness-copy p:last-child { font-size:13px; line-height:1.6; }
.readiness-symbol { width:32px; height:32px; min-width:32px; font-size:18px; }
.readiness-tally strong { font-size:23px; }.readiness-tally span { font-size:12px; }
.runtime-summary { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; border-top:1px solid var(--border); padding-top:18px; margin-top:8px; }
.runtime-summary > div { display:flex; flex-direction:column; gap:7px; }
.runtime-summary span,.runtime-summary small,.runtime-summary > p { color:var(--muted); font-size:12px; line-height:1.6; }
.runtime-summary strong { font-size:16px; }
.runtime-summary > p { grid-column:1 / -1; margin:0; }
.runtime-summary.runtime-overview { border:1px solid var(--border); padding:20px; margin:0 0 20px; background:var(--surface); border-radius:10px; }
.runtime-summary .healthy { color:var(--green); }
.runtime-summary .warning { color:var(--amber); }
.runtime-summary .blocked { color:var(--red); }
.panel.readiness { container-type:inline-size; }
@container(max-width:600px) {
 .readiness-banner { grid-template-columns:28px minmax(0,1fr); }
 .readiness-symbol { align-self:start; }
 .readiness-tally { grid-column:2; padding:0; border:0; text-align:left; }
 .runtime-summary { grid-template-columns:1fr; gap:18px; }
 .runtime-summary > div { border-bottom:1px solid var(--border); padding-bottom:14px; }
}
@media(max-width:800px) { .runtime-summary { grid-template-columns:1fr; } }
.account-summary { padding:0 0 18px; margin-bottom:4px; border-bottom:1px solid var(--line); }
.account-summary>summary { cursor:pointer; min-height:44px; padding:12px 2px; font-size:14px; color:var(--ink); }
.account-summary>summary>span { font-size:12px; color:var(--muted); margin-left:16px; }
.account-summary .operations-metrics { margin:8px 0 0; }
.panel { border-radius:12px; padding:22px; background:#0b1729; box-shadow:none; }
.panel-head { margin-bottom:18px; gap:12px; flex-wrap:wrap; }
.panel-heading { gap:12px; min-width:0; }.panel-head h2 { font-size:20px; line-height:1.3; }
.section-icon { width:36px; height:36px; border-radius:9px; }
.dashboard .eyebrow { font-size:12px; letter-spacing:.13em; }
.blocker-list { gap:10px; }.blocker-item { padding:14px; border:1px solid #324256; border-left:3px solid #efbd68; border-radius:8px; background:#0f2034; }
.blocker-item[data-recovery-category="Scheduled wait"],.blocker-item[data-recovery-category="Before PAPER"],.blocker-item[data-recovery-category="Model validation"] { border-left-color:#547594; background:#0c1a2b; }
.blocker-item[data-recovery-category="In progress"],.blocker-item[data-recovery-category="Automatic retry"] { border-left-color:#54a9ee; }
.blocker-item strong { font-size:14px; line-height:1.45; }.blocker-item span:not(.blocker-priority) { font-size:13px; line-height:1.6; }
.blocker-priority { font-size:12px; line-height:1.5; color:var(--amber); }
.recovery-link { margin-top:10px; padding:6px 0; min-height:40px; border:0; background:none; color:var(--accent); font-size:12px; }
.blocker-item[data-recovery-category="Scheduled wait"] .blocker-priority,.blocker-item[data-recovery-category="Before PAPER"] .blocker-priority,.blocker-item[data-recovery-category="Model validation"] .blocker-priority { color:var(--muted); }
.worker-row { padding:14px 0; gap:12px; }.worker-row strong { font-size:13px; }.worker-row span { font-size:12px; line-height:1.6; }
.worker-row>div:last-child { font-variant-numeric:tabular-nums; }
.worker-row>div:last-child strong { font-size:12px; }
.feature-help { font-size:13px; background:transparent; border-color:transparent; box-shadow:none; width:32px; height:32px; min-width:44px; min-height:44px; }
.feature-help:hover { background:#16324e; border-color:#355878; }
.workspace-head h1 { font-size:32px; letter-spacing:-.025em; }.workspace-head .muted { font-size:14px; }
.workspace-jump-nav { gap:8px; }.workspace-jump-nav button { font-size:13px; min-height:40px; }
.market-tape article,.funnel-section { border-radius:10px; }.market-tape article { background:#0c1b2d; }
.market-tape small { line-height:1.6; }.market-tape strong { font-variant-numeric:tabular-nums; }
input,select,textarea { border-radius:7px; }.definition-grid dt,.definition-grid dd { line-height:1.55; }
[data-section],#service-health-panel,#broker-status-panel,#order-readiness-panel,.workspace-head,[id$="-panel"] { scroll-margin-top:172px; }
@media(min-width:1200px) { .status-grid { grid-template-columns:1.12fr 1fr; gap:18px; } }
@media(max-width:1450px) {
  .app-chrome .masthead { height:auto; min-height:78px; flex-wrap:wrap; gap:10px; padding-block:12px; }
  .app-nav { order:3; width:100%; justify-content:space-between; }.nav-tab { flex:1; justify-content:center; padding-inline:8px; }
  [data-section],#service-health-panel,#broker-status-panel,#order-readiness-panel,[id$="-panel"] { scroll-margin-top:225px; }
}
@media(max-width:1200px) {
  .shell { padding-inline:18px; }.app-chrome .masthead { height:auto; min-height:78px; flex-wrap:wrap; gap:10px; padding-block:12px; }
  .app-nav { order:3; width:100%; justify-content:space-between; }.nav-tab { flex:1; justify-content:center; padding-inline:8px; }
  .system-ribbon { gap:12px; }.ribbon-connection { display:grid; gap:4px; }
  .console-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .shell { padding-inline:14px; }.app-chrome { position:static; }.masthead .brand small { display:none; }
  .nav-tab { font-size:12px; }.system-ribbon { flex-wrap:wrap; align-items:center; }.ribbon-mode { min-width:130px; }
  .ribbon-session { min-width:140px; }.ribbon-connection { display:flex; flex:1; font-size:12px; }
  .console-overview { gap:10px; }.console-card-label { font-size:12px; }button.console-card { padding:16px; min-height:212px; gap:10px; }
  .ops-toolbar { display:none; }.ops-heading h1 { font-size:26px; }.panel { padding:17px; }.panel-head h2 { font-size:19px; }
  .account-summary>summary>span { display:block; margin:6px 0 0; }.readiness-copy h2 { font-size:16px; }
  .workspace-switch { display:flex; flex-wrap:wrap; gap:8px; padding-block:10px; }.workspace-switch>strong { width:100%; }.workspace-switch>span { display:none; }
  .workspace-switch .workspace-link { width:auto; flex:1 1 140px; font-size:12px; padding:8px; min-height:40px; }
  .ops-heading { padding-bottom:14px; }.ops-heading .operator-line { display:none; }
  [data-section],#service-health-panel,#broker-status-panel,#order-readiness-panel,[id$="-panel"] { scroll-margin-top:14px; }
}
@media(max-width:420px) { .console-overview { grid-template-columns:1fr; }button.console-card { min-height:165px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Keep headline evidence independent; detailed checks remain available on demand. */
body.workspace-authenticated .ribbon-headline-states { display:flex; flex:1; flex-wrap:wrap; gap:12px 22px; }
.ribbon-headline-states > span { display:grid; gap:5px; }
.overview-evidence > summary { min-height:44px; cursor:pointer; padding:12px 0; font-size:14px; }
.overview-evidence .console-overview { margin-top:12px; }
.overview-next-action { font-size:13px; line-height:1.5; }
.overview-action-link { min-height:44px; }
.research-workbench { margin-bottom:16px; }
.research-workbench h2 { margin:6px 0 10px; }
.research-workbench-actions { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.research-workbench-actions button { min-height:44px; }
.research-workbench-authority { font-size:12px; line-height:1.5; }
.sign-out-confirmation { padding:14px; margin:18px 0; border:1px solid var(--line,#d8e2ed); border-radius:10px; }
.sign-out-confirmation p { margin:0 0 12px; line-height:1.5; }
@media(max-width:780px) {
  .research-workbench-actions { display:grid; grid-template-columns:1fr; }
  body.workspace-authenticated .system-ribbon .ribbon-headline-states { flex-basis:100%; gap:10px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.workspace-authenticated .ribbon-headline-states .ribbon-label { font-size:10px; letter-spacing:.035em; }
  body.workspace-authenticated .ribbon-headline-states strong { font-size:12px; overflow-wrap:anywhere; }
  body.workspace-authenticated .overview-evidence .console-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  body.workspace-authenticated .overview-evidence button.console-card { min-height:0; padding:12px; gap:8px; }
  body.workspace-authenticated .overview-evidence button.console-card > strong { font-size:19px; }
  body.workspace-authenticated .overview-evidence .console-card-label { font-size:12px; gap:5px; }
  body.workspace-authenticated .overview-evidence .console-card-label .ui-icon { display:none; }
  body.workspace-authenticated .overview-evidence button.console-card > span:not(.console-card-label) { font-size:12px; line-height:1.45; }
  body.workspace-authenticated #session-state { padding:16px; }
  body.workspace-authenticated #ops-summary { display:none; }
  body.workspace-authenticated .overview-next-action { margin-bottom:6px; }
  body:not(.workspace-authenticated) #login-view .auth-stage { gap:18px; }
  body:not(.workspace-authenticated) #login-view .auth-card { order:-1; padding:24px 20px; }
  body:not(.workspace-authenticated) #login-view .secure-kicker { margin-bottom:16px; }
  body:not(.workspace-authenticated) #login-view .auth-card h1 { font-size:32px; }
  body:not(.workspace-authenticated) #login-view .auth-intro { margin:12px 0 18px; }
  body:not(.workspace-authenticated) #login-view .field { margin:14px 0; }
  body:not(.workspace-authenticated) #login-view .auth-story { padding:20px; }
  body:not(.workspace-authenticated) #login-view .auth-display { font-size:28px; margin-bottom:12px; }
}
