html { min-width: 0; background: var(--bg-base); }
button, a { -webkit-tap-highlight-color: transparent; }
.calyvro-nav { position: sticky; top: 0; height: 58px; min-height: 58px; padding-block: 10px; gap: 20px; }
.brand-lockup { border: 0; background: transparent; color: var(--text-main); text-decoration: none;
  white-space: nowrap; cursor: pointer; }
.logo .brand-name { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; }
.logo .product-name { color: var(--text-secondary); font: 400 13px/1 var(--font-sans); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-link { min-height: 34px; padding: 0 9px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-secondary); font: 500 13px/1 var(--font-sans);
  white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--surface-floor); color: var(--text-main); }
.nav-link.active, .nav-link[aria-current="page"] { background: var(--surface-solid); color: var(--text-main);
  box-shadow: inset 0 0 0 1px var(--hairline); }
.nav-link .nav-badge { margin-left: 3px; padding-inline: 6px; }
.new-campaign-button { height: 34px; }
.session-state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.session-state .status-dot { top: 0; }
.signout-button { padding-inline: 10px; }
.account-menu { position: relative; flex-shrink: 0; }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-trigger { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px 2px 3px;
  border: 1px solid var(--hairline); border-radius: 100px; background: var(--surface-solid);
  color: var(--text-secondary); font: 500 12px/1 var(--font-sans); cursor: pointer; }
.account-trigger:hover, .account-menu[open] .account-trigger { border-color: var(--hairline-strong);
  color: var(--text-main); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--text-main); color: #fff;
  font: 500 10px/1 var(--font-mono); letter-spacing: .04em; }
.menu-pop { position: absolute; z-index: 160; top: calc(100% + 8px); right: 0; width: 220px;
  padding: 7px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface-solid);
  box-shadow: 0 18px 40px -18px rgba(20,20,25,.2); }
.account-context { display: grid; gap: 2px; padding: 10px 11px 11px; border-bottom: 1px solid var(--hairline); }
.account-context strong { overflow: hidden; color: var(--text-main); font-size: 13px;
  font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-context span { color: var(--text-secondary); font-size: 11px; }
.menu-pop .mi { width: 100%; min-height: 36px; display: flex; align-items: center; padding: 0 11px;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-main);
  font: 500 12px/1 var(--font-sans); text-align: left; cursor: pointer; }
.menu-pop .mi:hover { background: var(--bg-base); }
.menu-pop .sep { height: 1px; margin: 6px 8px; background: var(--hairline); }
.menu-pop .mi.quiet { color: var(--text-secondary); font-weight: 400; }
.calyvro-main { width: min(1600px, 100%); margin: 0 auto; padding: 16px; display: grid;
  grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; }
.signed-out .calyvro-main { grid-template-columns: minmax(0, 700px); justify-content: center; }
.signed-out .team-strip { display: none; }
.signed-out .calyvro-stage { min-height: 0; }
.signed-out .view { min-height: 0; }
.calyvro-stage, .team-strip, .canvas-area, .team-panel, .activity-panel { min-width: 0; }
.calyvro-stage { overflow: visible; }
.stage-header { flex-shrink: 0; }
.stage-body { padding: 0; }
.view { min-height: 240px; }
.view-shell { width: min(1040px, 100%); margin: 0 auto; padding: 24px 28px 32px; }
.view-shell.gate-shell { width: min(1040px, 100%); padding: 20px 28px 0; }
.team-strip-summary { flex-wrap: wrap; row-gap: 6px; }
.team-strip-summary .data-point { white-space: nowrap; }
.team-strip-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto;
  gap: 16px; padding: 16px; }
.canvas-area { grid-row: 1; min-height: 520px; }
.activity-panel { grid-column: 2; grid-row: 1; min-height: 0; max-height: 520px; display: flex; flex-direction: column; }
.activity-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; }
.team-panel { grid-column: 1 / -1; grid-row: 2; }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.team-list .credit-explainer { grid-column: 1 / -1; }
.canvas-stage { left: 50%; top: 52%; width: 800px; height: 560px; transform: translate(-50%, -50%) scale(.8); }
.canvas-key { position: absolute; bottom: 14px; left: 18px; right: 18px; text-align: center; }
.workspace-empty { margin: 10px; grid-column: 1 / -1; }
.view-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  color: var(--text-secondary); font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase; }
.view-kicker .status-dot { top: 0; }
.view-heading { max-width: 680px; color: var(--text-main); font-size: 22px;
  font-weight: 600; line-height: 1.24; letter-spacing: -.022em; }
.view-heading:focus { outline: none; }
.view-intro { max-width: 650px; margin-top: 9px; color: var(--text-secondary);
  font-size: 14px; line-height: 1.65; }
.view-intro b { color: var(--text-main); font-weight: 600; }
.section-block { margin-top: 28px; }
.section-block > .wd-section-label { margin-bottom: 11px; }
.plan-stamp { display: block; margin: 10px 0 12px; }
.field-grid { display: grid; gap: 13px; margin-top: 24px; }
.field { display: grid; gap: 6px; color: var(--text-secondary); font-size: 12px; }
.field > span { color: var(--text-secondary); font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase; }
.field-control { width: 100%; min-height: 40px; border: 1px solid var(--hairline-strong);
  border-radius: 8px; padding: 10px 12px; background: var(--surface-solid); color: var(--text-main);
  font: 400 13px/1.5 var(--font-sans); }
textarea.field-control { min-height: 82px; resize: vertical; }
.field-note { color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.fact-stack { display: grid; gap: 8px; }
.fact-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start;
  gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--hairline); }
.fact-row:last-child { border-bottom: 0; }
.fact-row .status-dot { top: 6px; }
.fact-copy { min-width: 0; color: var(--text-main); font-size: 13px; line-height: 1.55; }
.fact-copy small { display: block; margin-top: 3px; color: var(--text-secondary);
  font: 400 10px/1.5 var(--font-mono); letter-spacing: .04em; }
.verified-word { color: var(--text-secondary); font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase; }
.request-card { border-color: rgba(122,107,219,.2); box-shadow: 0 12px 30px -20px rgba(122,107,219,.28); }
.request-card .when { color: var(--violet); }
.request-claim { margin-top: 8px; color: var(--text-main); font-size: 15px;
  font-weight: 600; letter-spacing: -.01em; }
.preparing-card { margin-top: 26px; }
.preparing-summary { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px;
  padding: 12px 13px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface-floor); color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.preparing-summary .status-dot { top: 6px; }
.gate-card { margin-top: 16px; padding: 15px 20px 0; border-color: rgba(122,107,219,.28);
  overflow: visible; box-shadow: 0 18px 42px -24px rgba(122,107,219,.25); }
.gate-scroll { padding-bottom: 12px; }
.gate-decision-bar { position: sticky; bottom: 0; z-index: 5; margin-inline: -20px; padding: 10px 20px 14px;
  border-top: 1px solid var(--hairline); border-radius: 0 0 10px 10px; background: var(--surface-solid); }
.gate-decision-bar .call-actions { margin-top: 0; }
.gate-card .wd-section-label { margin: 12px 0 7px; }
.gate-card .wd-section-label:first-child { margin-top: 0; }
.artifact-copy { padding: 9px 12px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--bg-base); color: var(--text-main); font-size: 13px; line-height: 1.5; }
.asset-brief { margin-top: 6px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.check-line { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--hairline); }
.check-line:last-child { border-bottom: 0; }
.check-line .status-dot { top: 6px; }
.check-copy { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.check-copy b { color: var(--text-main); font-weight: 600; }
.scope-box { overflow: hidden; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface-floor); }
.scope-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px;
  padding: 6px 12px; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.scope-row:last-child { border-bottom: 0; }
.scope-label { color: var(--text-secondary); font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase; }
.scope-value { min-width: 0; color: var(--text-main); font-size: 13px; line-height: 1.5; }
.forbidden-list { margin: 0; padding-left: 17px; }
.forbidden-list li + li { margin-top: 2px; }
.decision-effects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.decision-effect { padding: 6px 9px; border: 1px solid var(--hairline); border-radius: 6px;
  color: var(--text-secondary); font: 400 10px/1.5 var(--font-mono); letter-spacing: .04em; }
.neutral-error { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(122,107,219,.22);
  border-radius: 8px; background: var(--surface-floor); color: var(--text-secondary); font-size: 12px; }
.receipt-card { margin-top: 25px; padding: 20px; }
.receipt-topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.receipt-time { margin-left: auto; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.receipt-field { min-width: 0; padding: 12px 13px; border: 1px solid var(--hairline);
  border-radius: 8px; background: var(--surface-floor); }
.receipt-field.wide { grid-column: 1 / -1; }
.receipt-field .data-point { display: block; margin-bottom: 5px; text-transform: uppercase; }
.receipt-field p { overflow-wrap: anywhere; color: var(--text-main); font-size: 13px; line-height: 1.55; }
.receipt-field p.mono-value { font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; }
.receipt-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.evidence-block { padding: 13px 14px; border-left: 2px solid var(--hairline-strong); background: var(--bg-base); }
.evidence-block p { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.evidence-block b { color: var(--text-main); font-weight: 600; }
.receipt-actions { margin-top: 18px; }
/* Outcome window cell (S2-06): extends .receipt-field. State is carried by structure and
   words, never by colour: pending = dashed ghost border, unavailable = ruled block on the
   page ground with the stored reason, observed = solid cell with a tabular numeral. */
.outcome-card .deliverable-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.outcome-card .deliverable-head h2 { margin: 0; font-size: 15px; line-height: 1.35; }
.outcome-card .scope-box { margin-bottom: 16px; }
.outcome-card .wd-section-label { margin-bottom: 8px; }
.outcome-windows { margin-top: 0; }
.outcome-window { display: grid; gap: 5px; align-content: start; }
.outcome-window .data-point { margin-bottom: 0; }
.outcome-window .campaign-status { margin-top: 0; }
.outcome-window .verified-word { margin-top: 4px; }
.outcome-value { color: var(--text-main); font: 600 24px/1.15 var(--font-sans); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.outcome-window.pending { border-style: dashed; border-color: var(--hairline-strong); background: transparent; }
.outcome-window.pending .campaign-status { color: var(--text-secondary); font-weight: 500; }
.outcome-window.unavailable { border-left: 2px solid var(--hairline-strong); background: var(--bg-base); }
.outcome-learning { margin-top: 16px; }
.strategy-field.wide { grid-column: 1 / -1; }
.strategy-field .wd-section-label { margin: 12px 0 4px; }
.strategy-field .wd-section-label:first-child { margin-top: 0; }
.strategy-field ul { margin: 0; padding-left: 18px; }
.strategy-field li + li { margin-top: 2px; }
.strategy-field p + p { margin-top: 6px; }
.noscript-note { margin: 24px; color: var(--text-secondary); }
.calyvro-main .data-point, .calyvro-nav .data-point, .view .wd-section-label {
  color: var(--text-secondary);
}
