:root {
  color-scheme: light;
  --sim-yellow: #fad02c;
  --sim-blue: #061bb0;
  --sim-black: #000000;
  --ink: #111318;
  --muted: #5d6575;
  --line: #dfe3ee;
  --panel: #ffffff;
  --subtle: #f5f6fb;
  --nav: #000000;
  --nav-2: #061bb0;
  --teal: #061bb0;
  --teal-dark: #03106f;
  --gold: #997300;
  --red: #b42318;
  --green: #18794e;
  --blue: #061bb0;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f3f5fa; color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--sim-blue); font-weight: 700; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.sidebar { background: var(--sim-black); color: #f8fbff; padding: 20px 16px; position: sticky; top: 0; min-height: 100vh; height: 100vh; overflow-y: auto; border-right: 6px solid var(--sim-yellow); }
.brand { display: grid; gap: 12px; align-items: center; padding: 4px 8px 20px; margin-bottom: 12px; border-bottom: 1px solid rgba(250, 208, 44, 0.28); }
.brand-logo-wrap { display: flex; align-items: center; min-height: 72px; }
.brand-logo { display: block; width: 184px; max-width: 100%; height: auto; }
.brand-copy { border-left: 3px solid var(--sim-yellow); padding-left: 10px; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--sim-yellow); color: var(--sim-black); font-weight: 800; }
.brand h1 { margin: 0; font-size: 19px; line-height: 1.1; letter-spacing: 0; }
.brand p { margin: 5px 0 0; color: #d8def8; font-size: 12px; line-height: 1.3; }
.nav { display: grid; gap: 6px; }
.nav button { width: 100%; border: 1px solid transparent; border-left: 3px solid transparent; background: transparent; color: #e7eaf8; border-radius: 8px; padding: 11px 12px; text-align: left; display: flex; gap: 10px; align-items: center; min-height: 46px; }
.nav button:hover, .nav button.active { background: rgba(6, 27, 176, 0.42); border-color: rgba(250, 208, 44, 0.35); border-left-color: var(--sim-yellow); color: #ffffff; }
.nav-icon { width: 26px; height: 26px; border-radius: 6px; background: var(--sim-blue); color: var(--sim-yellow); display: grid; place-items: center; font-size: 11px; font-weight: 850; }
.nav button.active .nav-icon { background: var(--sim-yellow); color: var(--sim-black); }
.sidebar-footer { margin-top: 22px; padding: 14px; border: 1px solid rgba(250, 208, 44, 0.28); border-radius: 8px; color: #d8def8; font-size: 12px; line-height: 1.45; background: rgba(255, 255, 255, 0.04); }
.sidebar-footer strong { color: var(--sim-yellow); }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); border-top: 4px solid var(--sim-blue); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
.topbar-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.menu-toggle { width: 42px; height: 42px; border: 1px solid rgba(6, 27, 176, 0.22); border-radius: 8px; background: var(--sim-black); display: grid; place-content: center; gap: 5px; flex: 0 0 auto; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12); }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 999px; background: var(--sim-yellow); }
.menu-toggle:hover { border-color: var(--sim-yellow); background: var(--sim-blue); }
.topbar-product { display: inline-flex; align-items: center; gap: 8px; color: var(--sim-blue); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.topbar-product::before { content: ""; width: 22px; height: 4px; border-radius: 999px; background: var(--sim-yellow); display: inline-block; }
.topbar h2 { margin: 0; font-size: 21px; letter-spacing: 0; color: var(--sim-black); }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.role-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.role-switch label { font-size: 12px; color: var(--muted); }
.role-switch select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ink); min-width: 180px; font-weight: 700; }
.role-switch select:focus { outline: 3px solid rgba(250, 208, 44, 0.35); border-color: var(--sim-blue); }
.role-context { max-width: 340px; padding: 9px 11px; border: 1px solid rgba(6, 27, 176, 0.18); border-left: 5px solid var(--sim-yellow); border-radius: 8px; background: #f7f8ff; }
.role-context span { display: block; color: var(--sim-blue); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.role-context strong { display: block; font-size: 13px; color: var(--sim-black); margin-top: 2px; }
.role-context small { display: block; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.back-btn { border-color: rgba(6, 27, 176, 0.28); }
.content { padding: 24px 24px 116px; max-width: 1380px; margin: 0 auto; }

.app-menu-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(0, 380px) 1fr; }
.menu-scrim { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.38); cursor: default; }
.app-menu-panel { position: relative; z-index: 1; width: min(380px, calc(100vw - 28px)); height: 100vh; overflow-y: auto; background: var(--sim-black); color: #f8fbff; border-right: 6px solid var(--sim-yellow); padding: 16px; box-shadow: 24px 0 48px rgba(0, 0, 0, 0.3); }
.app-menu-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(250, 208, 44, 0.25); }
.menu-brand { border-bottom: 0; margin: 0; padding: 0; flex: 1 1 auto; }
.menu-brand .brand-logo { width: 164px; }
.menu-brand .brand-logo-wrap { min-height: 58px; }
.menu-close { background: #ffffff; color: var(--sim-black); flex: 0 0 auto; }
.menu-list { display: grid; gap: 8px; margin-top: 14px; }
.menu-link { width: 100%; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 5px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: #ffffff; padding: 12px 13px; text-align: left; display: grid; gap: 4px; }
.menu-link:hover, .menu-link.active { background: rgba(6, 27, 176, 0.48); border-color: rgba(250, 208, 44, 0.45); border-left-color: var(--sim-yellow); }
.menu-link-title { color: #ffffff; font-weight: 850; font-size: 14px; }
.menu-link small { color: #d8def8; line-height: 1.35; }
.menu-link.active .menu-link-title { color: var(--sim-yellow); }
.menu-footer { margin-top: 16px; padding: 13px; border: 1px solid rgba(250, 208, 44, 0.28); border-radius: 8px; color: #d8def8; font-size: 12px; line-height: 1.45; background: rgba(255, 255, 255, 0.04); }
.menu-footer strong { color: var(--sim-yellow); }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px; }
.panel,
.item,
.notice,
.privacy-shield,
.privacy-consent,
.triage-panel,
.decision-card,
.return-card,
.branding-preview,
.document-view,
.contact-panel,
.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.panel *,
.item *,
.notice *,
.privacy-shield *,
.privacy-consent *,
.triage-panel *,
.branding-preview * {
  min-width: 0;
}
.panel.flat { box-shadow: none; }
.panel h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: 0; }
.panel h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0; }
.panel p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.plain-intro { max-width: 780px; }
.small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.kicker { text-transform: uppercase; font-weight: 850; font-size: 11px; letter-spacing: 0.08em; color: var(--sim-blue); margin-bottom: 8px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 18px; height: 4px; border-radius: 999px; background: var(--sim-yellow); display: inline-block; }
.stat { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat strong { font-size: 30px; letter-spacing: 0; color: var(--sim-black); }
.stat span { color: var(--muted); font-size: 12px; }
.status-pill, .risk-pill, .source-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); padding: 5px 9px; font-size: 12px; font-weight: 750; background: #fff; white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.risk-low { color: var(--green); border-color: rgba(24, 121, 78, 0.3); background: #f0fbf6; }
.risk-medium { color: var(--gold); border-color: rgba(183, 121, 31, 0.35); background: #fff8eb; }
.risk-high { color: var(--red); border-color: rgba(180, 35, 24, 0.35); background: #fff1ef; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 10px 13px; font-weight: 800; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { border-color: var(--sim-blue); color: var(--sim-blue); }
.btn.primary { background: var(--sim-yellow); color: var(--sim-black); border-color: var(--sim-yellow); box-shadow: 0 10px 20px rgba(250, 208, 44, 0.22); }
.btn.primary:hover { background: #eec321; border-color: #eec321; color: var(--sim-black); }
.btn.danger { color: var(--red); border-color: rgba(180, 35, 24, 0.3); }
.btn.ghost { background: transparent; }
.btn.small-btn { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: 0.52; box-shadow: none; }
.btn:disabled:hover { color: var(--ink); border-color: var(--line); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 850; color: #252b36; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 12px; min-height: 42px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(250, 208, 44, 0.35); border-color: var(--sim-blue); }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.field.full { grid-column: 1 / -1; }
.required-note { margin: 10px 0 12px; }
.required-tag { display: inline-flex; align-items: center; min-height: 18px; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(250, 208, 44, 0.28); color: var(--sim-black); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; vertical-align: middle; }
.password-input-shell { position: relative; display: flex; align-items: stretch; }
.password-input-shell input { padding-right: 82px; }
.password-toggle-btn { position: absolute; right: 6px; top: 6px; bottom: 6px; min-width: 64px; border: 1px solid rgba(6, 27, 176, 0.22); border-radius: 8px; background: #f7f8ff; color: var(--sim-blue); font-size: 12px; font-weight: 850; }
.password-toggle-btn:hover { border-color: var(--sim-blue); background: #ffffff; }
.forgot-password-panel code { display: inline-block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(6, 27, 176, 0.2); background: #f7f8ff; color: var(--sim-black); font-weight: 850; overflow-wrap: anywhere; }
.ask-composer { gap: 8px; }
.ask-input-shell { position: relative; }
.ask-input-shell textarea { padding-right: 64px; min-height: 126px; }
.voice-icon-btn { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--sim-blue); color: #fff; display: inline-grid; place-items: center; box-shadow: 0 8px 18px rgba(6, 27, 176, 0.22); cursor: pointer; }
.voice-icon-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(6, 27, 176, 0.28); }
.voice-icon-btn:focus-visible { outline: 3px solid rgba(250, 208, 44, 0.7); outline-offset: 2px; }
.voice-icon-btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.mic-icon { position: relative; display: inline-block; width: 13px; height: 19px; border: 2px solid #fff; border-radius: 999px; }
.mic-icon::before { content: ""; position: absolute; left: 50%; bottom: -8px; width: 2px; height: 7px; background: #fff; transform: translateX(-50%); border-radius: 999px; }
.mic-icon::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 16px; height: 8px; border: 2px solid #fff; border-top: 0; border-radius: 0 0 999px 999px; transform: translateX(-50%); }
.ask-action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.ask-action-row .answer-style { flex: 1 1 280px; margin-top: 0; }
.ask-action-row .btn { min-height: 38px; padding: 9px 11px; }
.compact-plain-btn { min-width: 78px; }
.voice-mini-help { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 18px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.voice-controls { margin-top: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voice-btn { border-color: rgba(6, 27, 176, 0.24); }
.voice-btn::before { content: ""; width: 9px; height: 14px; border-radius: 999px; background: var(--sim-blue); display: inline-block; margin-right: 7px; box-shadow: inset 0 -3px 0 rgba(250, 208, 44, 0.7); }
.voice-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.voice-status { color: var(--muted); font-size: 12px; line-height: 1.35; flex: 1 1 220px; }
.voice-permission { color: var(--muted); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.voice-permission a { color: var(--sim-blue); font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.voice-tip { color: var(--muted); }
.voice-mobile-note { color: var(--muted); font-size: 11.5px; }
.voice-mobile-panel { margin-top: 8px; border: 1px solid rgba(6, 27, 176, 0.18); border-left: 4px solid var(--sim-blue); background: #fff; border-radius: 8px; padding: 10px; color: #303746; font-size: 12px; line-height: 1.4; }
.voice-mobile-panel p { margin: 5px 0 8px; color: var(--muted); }
.voice-mobile-panel code { font-size: 11px; overflow-wrap: anywhere; }
.voice-mobile-panel details { margin-top: 8px; color: var(--muted); }
.voice-mobile-panel summary { cursor: pointer; color: var(--sim-blue); font-weight: 850; }
.voice-steps { display: grid; gap: 5px; margin: 8px 0; }
.voice-steps span { display: block; padding: 6px 7px; background: rgba(6, 27, 176, 0.05); border-radius: 6px; }
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented button { border: 1px solid var(--line); background: #fff; padding: 9px 11px; border-radius: 8px; font-weight: 750; }
.segmented button:hover { border-color: var(--sim-blue); color: var(--sim-blue); }
.segmented button.active { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; box-shadow: inset 0 -4px 0 var(--sim-yellow); }

.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.item h4 { margin: 0; font-size: 14px; }
.item p { margin: 6px 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }

.answer { border-left: 4px solid var(--sim-yellow); padding-left: 14px; }
.answer h4 { margin: 0 0 8px; font-size: 16px; }
.answer ul, .answer ol, .document-view ul { margin: 8px 0 0 18px; padding: 0; }
.answer li, .document-view li { margin: 5px 0; line-height: 1.45; }
.ai-answer { border-left-color: var(--sim-blue); }
.ai-section { margin-top: 16px; }
.ai-section p { margin: 0 0 10px; line-height: 1.55; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.direct-answer { margin: 14px 0 4px; border: 1px solid rgba(6, 27, 176, 0.22); border-left: 6px solid var(--sim-blue); border-radius: 8px; padding: 14px; background: #f7f8ff; }
.direct-answer strong { display: block; color: var(--sim-blue); font-size: 15px; margin-bottom: 7px; }
.direct-answer p { margin: 0; color: var(--ink); line-height: 1.55; }
.answer-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.answer-focus {
  border: 1px solid rgba(6, 27, 176, 0.16);
  border-left: 5px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.answer-focus.primary-focus {
  border-left-color: var(--sim-blue);
  background: #f7f8ff;
}
.answer-focus span {
  color: var(--sim-blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.answer-focus p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-size: 13px;
}
.answer-focus .risk-pill {
  justify-self: start;
}
.high-risk-support {
  border-left-color: var(--red);
}
.outcome-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 15px;
  border: 1px solid rgba(6, 27, 176, 0.22);
  border-left: 7px solid var(--sim-blue);
  border-radius: 8px;
  background: #f7f8ff;
}
.outcome-panel span {
  display: block;
  color: var(--sim-blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.outcome-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}
.outcome-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.outcome-grid div {
  min-height: 82px;
  padding: 11px;
  border: 1px solid rgba(6, 27, 176, 0.14);
  border-top: 4px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
}
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.decision-card { border: 1px solid var(--line); border-top: 4px solid var(--sim-yellow); border-radius: 8px; background: #fff; padding: 11px; display: grid; gap: 4px; min-height: 102px; }
.decision-card span { color: var(--sim-blue); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.decision-card strong { color: var(--ink); font-size: 13px; line-height: 1.25; }
.decision-card small { color: var(--muted); line-height: 1.3; }
.answer-style { margin-top: 2px; }
.ask-bank { margin-top: 14px; border: 1px solid var(--line); border-left: 5px solid var(--sim-blue); border-radius: 8px; padding: 12px; background: #f7f8ff; }
.ask-bank .item-head { margin-bottom: 10px; }
.ask-bank h4 { margin: 0; font-size: 14px; }
.ask-bank p { margin: 4px 0 0; font-size: 12px; line-height: 1.35; }
.quick-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding-right: 4px; }
.quick-question { border: 1px solid rgba(6, 27, 176, 0.16); background: #fff; border-radius: 8px; color: var(--ink); padding: 9px 10px; text-align: left; font-weight: 700; font-size: 12px; line-height: 1.3; min-height: 46px; }
.quick-question:hover { border-color: var(--sim-blue); color: var(--sim-blue); box-shadow: inset 0 -3px 0 var(--sim-yellow); }
.research-source-grid, .assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.research-source, .assessment-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; display: grid; gap: 6px; }
.research-source span, .assessment-card span { color: var(--sim-blue); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.research-source h4, .assessment-card h4 { margin: 0; font-size: 14px; }
.research-source p, .assessment-card p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 12px; }
.question-list li { margin: 7px 0; line-height: 1.45; }
.privacy-shield,
.triage-panel,
.privacy-consent,
.case-summary-only {
  margin: 14px 0;
  border: 1px solid rgba(6, 27, 176, 0.18);
  border-left: 6px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
}
.privacy-shield {
  background: #fffdf2;
}
.privacy-shield-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.privacy-shield-head span {
  display: block;
  color: var(--sim-blue);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.privacy-shield-head strong {
  display: block;
  color: var(--sim-black);
  font-size: 14px;
  margin-top: 2px;
}
.privacy-shield p {
  margin: 9px 0 0;
  color: #4e3d00;
  font-size: 13px;
  line-height: 1.45;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.privacy-grid > div {
  border: 1px solid rgba(6, 27, 176, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
  display: grid;
  gap: 6px;
}
.privacy-grid strong {
  color: var(--sim-black);
  font-size: 12px;
}
.sensitive-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.triage-panel {
  border-left-color: var(--sim-blue);
  background: #f7f8ff;
}
.privacy-consent {
  background: #fffdf2;
  display: grid;
  gap: 8px;
}
.privacy-consent strong {
  color: var(--sim-black);
  font-size: 14px;
}
.privacy-consent p {
  margin: 4px 0 0;
  color: #4e3d00;
  font-size: 13px;
  line-height: 1.45;
}
.privacy-consent ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4e3d00;
  font-size: 12px;
  line-height: 1.45;
}
.compact-consent {
  padding: 10px;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(6, 27, 176, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.consent-check span { flex: 1 1 auto; min-width: 0; }
.consent-check a { font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--sim-blue);
  flex: 0 0 auto;
}
.case-summary-only {
  border-left-color: var(--sim-blue);
  background: #f7f8ff;
}
.privacy-audit-card {
  border-left: 5px solid var(--sim-yellow);
}
.privacy-audit-list .timeline-event strong {
  color: var(--sim-blue);
}
.terms-panel {
  max-width: 860px;
}
.terms-gate-shell {
  align-items: start;
  overflow: auto;
}
.terms-gate-panel {
  width: min(100%, 960px);
}
.terms-scroll {
  max-height: min(48vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-top: 12px;
}
.terms-scroll > p {
  margin: 0 0 12px;
  color: #333949;
  line-height: 1.5;
}
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.terms-grid .item {
  box-shadow: none;
  border-left: 4px solid var(--sim-yellow);
}
.terms-grid .terms-critical {
  border-left-color: #b91c1c;
  background: #fff7f7;
}
.terms-grid h4 {
  margin: 0 0 5px;
  font-size: 13px;
}
.terms-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.mandatory-terms-check {
  margin-top: 12px;
  border-color: rgba(185, 28, 28, 0.28);
  background: #fff;
}
.action-guide {
  margin: 14px 0;
  border: 1px solid rgba(6, 27, 176, 0.16);
  border-left: 6px solid var(--sim-blue);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}
.action-guide h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--sim-black);
}
.action-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.action-steps li {
  border: 1px solid var(--line);
  border-top: 4px solid var(--sim-yellow);
  border-radius: 8px;
  padding: 11px;
  background: #f9faff;
}
.action-step-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.action-step-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--sim-black);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.action-step-title strong {
  color: var(--sim-black);
  font-size: 14px;
  line-height: 1.25;
}
.action-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.action-steps .action-step-why {
  border-left: 4px solid var(--sim-yellow);
  background: #fffdf2;
  color: #4e3d00;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
}
.action-step-why strong {
  color: var(--sim-black);
}
.action-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.action-step-meta span {
  border: 1px solid rgba(6, 27, 176, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sim-blue);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}
.muted-line { color: var(--muted); }
.notice { border: 1px solid rgba(250, 208, 44, 0.65); background: #fff9df; color: #4e3d00; border-radius: 8px; padding: 12px; line-height: 1.45; }
.notice.critical { border-color: rgba(180,35,24,0.25); background: #fff2f0; color: #7a2118; }
.notice.good { border-color: rgba(24,121,78,0.25); background: #f1fbf6; color: #115a3b; }
.access-alert { margin-bottom: 16px; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #f7f8ff 0%, #ffffff 52%, #fff8d7 100%);
}
.login-panel {
  width: min(860px, 100%);
  border: 1px solid var(--line);
  border-top: 8px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow);
}
.login-brand {
  background: var(--sim-black);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.login-copy h2 {
  margin: 4px 0 6px;
  font-size: 26px;
}
.login-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}
.login-users {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.login-user {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sim-blue);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}
.login-user strong { font-size: 14px; }
.login-user span,
.login-user small {
  color: var(--muted);
  line-height: 1.35;
}
.login-user:hover {
  border-color: var(--sim-blue);
  box-shadow: inset 0 -3px 0 var(--sim-yellow);
}
.login-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.login-help {
  margin-top: 10px;
}
.registration-panel {
  max-width: 820px;
}
.registration-check {
  margin-top: 14px;
}
.payment-wall { max-width: 760px; }

.support-footer {
  position: fixed;
  left: 316px;
  right: 24px;
  bottom: 16px;
  z-index: 45;
  border: 1px solid rgba(6, 27, 176, 0.18);
  border-left: 6px solid var(--sim-yellow);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}
.support-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.support-copy strong {
  color: var(--sim-black);
  font-size: 13px;
}
.support-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.support-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.support-assist,
.support-feedback {
  border: 1px solid var(--sim-black);
  border-radius: 8px;
  background: var(--sim-black);
  color: #ffffff;
  padding: 8px 11px;
  min-height: 34px;
  text-align: left;
  display: grid;
  gap: 1px;
}
.support-feedback {
  background: var(--sim-yellow);
  color: var(--sim-black);
}
.support-assist span,
.support-feedback span {
  color: var(--sim-yellow);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.support-feedback span { color: var(--sim-blue); }
.support-assist strong,
.support-feedback strong {
  font-size: 12px;
  line-height: 1.15;
}
.support-assist:hover,
.support-feedback:hover {
  border-color: var(--sim-blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.52);
}
.contact-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 8px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}
.feedback-panel { width: min(940px, 100%); }
.contact-panel h3 { margin: 0 0 8px; font-size: 22px; }
.contact-panel p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 800;
}
.modal-close:hover { border-color: var(--sim-blue); color: var(--sim-blue); }

.access-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 8px solid var(--sim-yellow);
  border-left: 8px solid var(--sim-blue);
}
.access-hero h3 { font-size: 22px; margin-bottom: 6px; }
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.access-role-card {
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}
.access-role-card.active-access-role {
  border-left-color: var(--sim-yellow);
  background: #fffdf2;
}
.access-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sim-black); font-size: 12px; color: #ffffff; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 4px solid var(--sim-yellow); }
tr:last-child td { border-bottom: 0; }
.price { font-size: 24px; font-weight: 850; color: var(--sim-blue); }

.document-view { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--sim-yellow); border-radius: 8px; padding: 22px; min-height: 420px; line-height: 1.55; box-shadow: inset 0 0 0 1px rgba(6, 27, 176, 0.06); }
.document-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--sim-blue); color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; }
.document-brand img { width: 132px; max-width: 42%; height: auto; display: block; }
.company-logo-fallback {
  border: 1px solid var(--line);
  border-left: 6px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  min-width: 180px;
  max-width: 100%;
  text-transform: none;
  letter-spacing: 0;
}
.company-logo-fallback strong {
  display: block;
  color: var(--sim-black);
  font-size: 15px;
  line-height: 1.2;
}
.company-logo-fallback span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.document-view h1 { font-size: 22px; margin: 0 0 14px; letter-spacing: 0; color: var(--sim-black); }
.document-view h2 { font-size: 16px; margin: 18px 0 8px; letter-spacing: 0; color: var(--sim-blue); }
.document-view p { color: var(--ink); margin: 0 0 12px; }
.document-view .muted-line { color: var(--muted); }
.document-footer-note { margin-top: 24px !important; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 12px; }
.document-sim-credit {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--sim-black);
  font-size: 11px;
  font-weight: 850;
}
.branding-preview { border: 1px solid var(--line); border-top: 8px solid var(--sim-yellow); border-radius: 8px; background: #fff; padding: 18px; min-height: 230px; }
.branding-preview,
.document-view {
  overflow: hidden;
}
.branding-preview h1 { margin: 0 0 10px; font-size: 22px; color: var(--sim-black); }
.policy-context .item { box-shadow: none; }
.doc-engine-panel { margin: 16px 0; }
.quality-box { margin-top: 10px; }
.quality-box .decision-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quality-box .decision-card { min-height: 92px; }
.policy-editor textarea { min-height: 320px; font-family: Consolas, Menlo, monospace; font-size: 13px; }
.policy-basis {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(6, 27, 176, 0.16);
  border-left: 6px solid var(--sim-blue);
  border-radius: 8px;
  background: #f7f8ff;
}
.policy-basis p {
  margin: 10px 0 0;
}
.policy-bank-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.policy-status-board {
  align-items: start;
}
.policy-bank-group {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}
.policy-bank-group h4 {
  margin: 0;
  color: var(--sim-blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.policy-bank-group p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.policy-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.policy-status-heading span {
  border-radius: 999px;
  background: #f7f8ff;
  border: 1px solid rgba(6, 27, 176, 0.16);
  color: var(--sim-blue);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
}
.bank-policy {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}
.bank-policy-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--muted);
  background: #fafbff;
  font-size: 12px;
}
.bank-policy strong {
  font-size: 13px;
}
.bank-policy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.bank-policy:hover,
.bank-policy.active-bank-policy {
  border-color: rgba(6, 27, 176, 0.24);
  border-left-color: var(--sim-yellow);
  box-shadow: inset 0 -3px 0 var(--sim-yellow);
}
.bank-policy.policy-status-live { border-left-color: var(--green); }
.bank-policy.policy-status-review { border-left-color: var(--gold); }
.bank-policy.policy-status-draft { border-left-color: var(--sim-blue); }
.bank-policy.policy-status-declined { border-left-color: var(--red); opacity: 0.86; }
.timeline { display: grid; gap: 12px; }
.phase { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.phase-label { font-weight: 850; color: var(--sim-blue); border-left: 4px solid var(--sim-yellow); padding-left: 10px; }
.case-timeline {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.timeline-event {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
}
.timeline-event span {
  color: var(--sim-blue);
  font-size: 11px;
  font-weight: 850;
}
.timeline-event strong {
  color: var(--ink);
  font-size: 13px;
}
.timeline-event p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.audit { max-height: 310px; overflow: auto; }
.audit .item { box-shadow: none; }
.hidden { display: none !important; }

@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; }
  .grid.four, .grid.three, .grid.two { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .content { padding-bottom: 124px; }
  .support-footer { left: 16px; right: 16px; bottom: 12px; }
}

@media (max-width: 680px) {
  .topbar { align-items: stretch; flex-direction: column; gap: 7px; padding: 8px 12px; border-top-width: 3px; }
  .topbar-left { align-items: center; gap: 9px; }
  .menu-toggle { width: 34px; height: 34px; gap: 4px; border-radius: 7px; }
  .menu-toggle span { width: 17px; }
  .topbar-product { display: none; }
  .topbar-product::before { width: 14px; height: 3px; }
  .topbar h2 { font-size: 16px; line-height: 1.15; }
  .topbar p { display: none; }
  .role-switch { justify-content: flex-start; flex-wrap: nowrap; gap: 6px; }
  .role-context { flex: 1 1 auto; min-width: 0; max-width: none; width: auto; padding: 4px 6px; border-left-width: 3px; border-radius: 6px; }
  .role-context span { display: none; }
  .role-context strong { font-size: 11px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .role-context small { font-size: 9px; line-height: 1.1; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .role-switch .btn,
  .role-switch .btn.small-btn { width: auto; min-height: 28px; padding: 5px 8px; font-size: 11px; border-radius: 6px; flex: 0 0 auto; }
  .role-switch select { width: 100%; }
  .content { padding: 16px 16px 132px; }
  .panel { padding: 14px; }
  .app-menu-backdrop { display: block; }
  .app-menu-panel { width: min(340px, calc(100vw - 20px)); padding: 12px; }
  .app-menu-header { gap: 8px; }
  .menu-brand .brand-logo { width: 138px; }
  .menu-brand .brand-logo-wrap { min-height: 46px; }
  .menu-link { padding: 11px; }
  .menu-close,
  .btn.menu-close { width: auto; min-height: 30px; padding: 5px 8px; font-size: 11px; }
  .brand { padding-bottom: 14px; }
  .item-head { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn.small-btn { width: auto; }
  .ask-input-shell textarea { min-height: 118px; padding-right: 58px; }
  .voice-icon-btn { width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .ask-action-row { gap: 6px; align-items: stretch; }
  .ask-action-row .answer-style { flex: 1 1 100%; }
  .ask-action-row .answer-style button { flex: 1 1 auto; min-height: 34px; padding: 8px; font-size: 11.5px; }
  .ask-action-row .btn { width: auto; flex: 1 1 auto; min-height: 36px; font-size: 12px; }
  .ask-action-row .compact-plain-btn { flex: 0 0 auto; min-width: 64px; }
  .voice-mini-help { font-size: 11px; }
  .voice-controls { align-items: stretch; }
  .voice-controls .btn { width: auto; }
  .voice-status { flex-basis: 100%; }
  .voice-permission { font-size: 11.5px; }
  .decision-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .research-source-grid, .assessment-grid { grid-template-columns: 1fr; }
  .answer-focus-grid { grid-template-columns: 1fr; }
  .privacy-shield-head { flex-direction: column; }
  .privacy-grid { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .terms-panel { max-height: calc(100vh - 28px); overflow: auto; }
  .terms-scroll { max-height: 42vh; padding: 11px; }
  .terms-gate-panel { padding: 14px; }
  .consent-check { align-items: flex-start; }
  .document-brand { align-items: flex-start; flex-direction: column; gap: 10px; }
  .document-brand img { max-width: 100%; }
  .action-guide { padding: 12px; }
  .action-step-title { flex-direction: column; gap: 6px; }
  .action-step-meta { display: grid; grid-template-columns: 1fr; }
  .action-step-meta span { border-radius: 8px; }
  .quick-question-grid { grid-template-columns: 1fr; max-height: 260px; }
  .login-shell { padding: 14px; align-items: start; }
  .login-panel { padding: 16px; }
  .login-actions { flex-direction: column; align-items: stretch; }
  .login-actions .btn { width: 100%; justify-content: center; }
  .login-users { grid-template-columns: 1fr; }
  .support-footer { align-items: stretch; flex-direction: column; gap: 8px; left: 10px; right: 10px; bottom: 10px; padding: 9px; }
  .support-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .support-assist, .support-feedback { min-height: 32px; padding: 7px 9px; text-align: center; }
  .contact-panel { padding: 18px; }
  .modal-close { position: static; margin-left: auto; display: block; margin-bottom: 10px; }
  .access-hero { align-items: stretch; flex-direction: column; }
}


.demo-banner, .workspace-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--sim-black);
  border-top: 8px solid var(--sim-yellow);
  border-radius: 8px;
  background: var(--sim-black);
  color: #ffffff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.demo-banner::after, .workspace-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 12px;
  background: var(--sim-blue);
}
.demo-banner h3, .workspace-hero h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: 0; }
.demo-banner p, .workspace-hero p { margin: 0; color: #d8def8; line-height: 1.45; max-width: 760px; }
.demo-banner .kicker, .workspace-hero .kicker { color: var(--sim-yellow); }
.demo-banner .kicker::before, .workspace-hero .kicker::before { background: #ffffff; }
.demo-banner .btn:not(.primary), .workspace-hero .btn:not(.primary) { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #ffffff; }
.demo-banner .btn:not(.primary):hover, .workspace-hero .btn:not(.primary):hover { border-color: var(--sim-yellow); color: var(--sim-yellow); }
.return-pack { margin-top: 14px; display: grid; gap: 12px; }
.return-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-left: 6px solid var(--sim-blue); border-radius: 8px; padding: 14px; background: #f7f8ff; }
.return-header h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.return-header p { margin: 0; }
.score-ring { width: 104px; min-width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--sim-yellow) 0 72%, #dfe3f3 72% 100%); color: var(--sim-black); border: 6px solid var(--sim-black); }
.score-ring strong { display: block; font-size: 22px; line-height: 1; }
.score-ring span { display: block; max-width: 70px; font-size: 11px; color: #272727; font-weight: 800; }
.grid.compact { gap: 10px; }
.return-card { border: 1px solid var(--line); border-top: 4px solid var(--sim-yellow); border-radius: 8px; background: #fff; padding: 13px; display: grid; gap: 5px; min-height: 110px; }
.return-card span { color: var(--sim-blue); font-size: 12px; font-weight: 850; }
.return-card strong { font-size: 15px; line-height: 1.25; }
.return-card small { color: var(--muted); line-height: 1.35; }
.stepper { display: grid; gap: 9px; }
.step-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: start; }
.step-row span { font-weight: 850; color: var(--sim-blue); font-size: 12px; }
.step-row p { margin: 0; color: var(--ink); }
.task-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.task-row h4 { margin: 0 0 4px; font-size: 14px; }
.task-row p { margin: 0; color: var(--muted); font-size: 12px; }
.task-row.done { opacity: 0.68; background: #f5f6fb; }
.task-row.done h4 { text-decoration: line-through; }
.completion {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(6, 27, 176, 0.18);
  border-radius: 8px;
  background: #f7f8ff;
}
.completion strong {
  display: block;
  font-size: 28px;
  color: var(--sim-blue);
  line-height: 1;
}
.completion span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.completion-track {
  height: 12px;
  border-radius: 999px;
  background: #dde3f4;
  overflow: hidden;
}
.completion-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sim-blue), var(--sim-yellow));
}
.compact-form {
  grid-template-columns: 170px 1fr;
}
.compact-form textarea {
  min-height: 74px;
}
.person-profile h3 {
  margin: 0 0 6px;
}
.admin-json {
  min-height: 260px;
  font-family: Consolas, Menlo, monospace;
  font-size: 12px;
}
.file-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.file-link:hover {
  border-color: var(--sim-blue);
  box-shadow: inset 0 -4px 0 var(--sim-yellow);
}
.launch-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--sim-black);
  border-top: 8px solid var(--sim-yellow);
  border-radius: 8px;
  background: var(--sim-black);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.launch-hero h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #ffffff;
}
.launch-hero p {
  margin: 0;
  color: #d8def8;
  line-height: 1.45;
  max-width: 820px;
}
.launch-hero .kicker {
  color: var(--sim-yellow);
}
.launch-hero .kicker::before {
  background: #ffffff;
}
.launch-hero .btn:not(.primary) {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

@media (max-width: 760px) {
  .demo-banner, .workspace-hero, .return-header, .task-row { align-items: stretch; flex-direction: column; }
  .score-ring { width: 92px; min-width: 92px; height: 92px; }
  .step-row { grid-template-columns: 1fr; }
  .completion, .compact-form { grid-template-columns: 1fr; }
  .launch-hero { align-items: stretch; flex-direction: column; }
}


.document-editor textarea {
  min-height: 420px;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  line-height: 1.48;
  border-top: 4px solid var(--sim-yellow);
}
.document-view br { display: block; content: ""; margin: 8px 0; }
.document-view h2 + br { display: none; }

.warning-builder {
  margin-bottom: 16px;
  border-top: 8px solid var(--sim-yellow);
}
.warning-builder h3 {
  font-size: 22px;
}
.plain-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f8ff;
  border-left: 6px solid var(--sim-blue);
}
.plain-guide div {
  display: grid;
  gap: 5px;
}
.plain-guide strong {
  color: var(--sim-black);
  font-size: 14px;
}
.plain-guide span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}
.warning-summary {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(6, 27, 176, 0.2);
  border-left: 6px solid var(--sim-yellow);
  border-radius: 8px;
  background: #ffffff;
}
.warning-summary strong {
  color: var(--sim-blue);
}
.warning-summary span,
.warning-summary small {
  color: var(--muted);
  line-height: 1.4;
}
.document-workspace {
  align-items: start;
}
.mobile-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 8px solid var(--sim-blue);
}
.mobile-download-card h3 {
  font-size: 20px;
}
.billing-layout {
  display: grid;
  gap: 16px;
}
.billing-status-panel {
  border-top: 8px solid var(--sim-yellow);
}
.billing-plan-list {
  display: grid;
  gap: 12px;
}
.billing-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(6, 27, 176, 0.16);
  border-radius: 8px;
  background: #ffffff;
}
.billing-plan h4 {
  margin: 8px 0 6px;
  color: var(--sim-blue);
}
.billing-plan p {
  margin: 0 0 6px;
  color: var(--text);
}
.billing-plan small {
  color: var(--muted);
}
.billing-plan .small-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.billing-plan-action {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 140px;
}
.billing-plan-action strong {
  color: var(--sim-black);
  font-size: 20px;
}

@media (max-width: 760px) {
  .plain-guide {
    grid-template-columns: 1fr;
  }
  .mobile-download-card {
    align-items: stretch;
    flex-direction: column;
  }
  .billing-plan {
    align-items: stretch;
    flex-direction: column;
  }
  .billing-plan-action {
    justify-items: stretch;
    min-width: 0;
  }
}

@media print {
  body {
    background: #ffffff;
  }
  .sidebar,
  .topbar,
  .app-menu-backdrop,
  .menu-toggle,
  .warning-builder,
  .doc-engine-panel,
  .document-editor,
  .mobile-download-card,
  .support-footer,
  .modal-backdrop,
  .btn-row,
  .kicker {
    display: none !important;
  }
  .shell,
  .main,
  .content,
  .grid.two.document-workspace {
    display: block !important;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .document-workspace > .panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .document-view {
    border: 0;
    border-top: 8px solid var(--sim-yellow);
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    padding: 20px 26px;
  }
}
