:root {
  --ink: #171c1f;
  --ink-soft: #263137;
  --paper: #f4f1eb;
  --white: #fff;
  --orange: #f05b2a;
  --orange-dark: #cb4116;
  --lime: #c8f171;
  --teal: #0d7770;
  --muted: #687177;
  --line: #d9d6ce;
  --shadow: 0 22px 70px rgba(15, 23, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 300; left: 10px; top: -50px; padding: 10px 14px; background: white; border-radius: 4px; }
.skip-link:focus { top: 10px; }
.pilot-bar { height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.73); background: #0d1214; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pilot-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

.site-header { position: sticky; z-index: 100; top: 0; height: 78px; display: flex; align-items: center; gap: 34px; padding: 0 clamp(20px, 5vw, 74px); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(23,28,31,.09); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: white; background: var(--orange); border-radius: 50%; font-size: 11px; font-weight: 900; letter-spacing: -.06em; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 14px; letter-spacing: .08em; }
.brand strong i { color: var(--orange); font-style: normal; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .3em; }
.main-nav { display: flex; align-items: center; gap: clamp(15px, 2.1vw, 31px); margin-left: auto; }
.main-nav a { color: #4b555a; font-size: 12px; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--orange); }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-name { color: var(--muted); font-size: 11px; font-weight: 700; }
.menu-button { display: none; margin-left: auto; border: 0; background: transparent; font-size: 22px; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 19px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-orange { color: white; background: var(--orange); }
.button-orange:hover { background: var(--orange-dark); }
.button-dark { color: white; background: var(--ink); }
.button-quiet { min-height: 38px; color: var(--ink); background: transparent; border-color: var(--line); }
.button-outline { color: white; background: transparent; border-color: rgba(255,255,255,.35); }

.hero { position: relative; min-height: 680px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr); align-items: center; gap: clamp(45px, 7vw, 110px); padding: 82px clamp(24px, 7vw, 112px) 105px; overflow: hidden; color: white; background: radial-gradient(circle at 10% 18%, #314046 0, transparent 27%), linear-gradient(135deg, #161c1f 0%, #202a2e 55%, #101416 100%); }
.contours { position: absolute; inset: 0; opacity: .28; background-image: repeating-radial-gradient(ellipse at 80% 25%, transparent 0 26px, rgba(255,255,255,.07) 27px 28px); transform: scale(1.5); }
.hero-copy, .mission-console { position: relative; z-index: 1; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--lime); }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .93; letter-spacing: -.066em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 700; }
.trust-row span::first-letter { color: var(--lime); }
.mission-console { border: 1px solid rgba(255,255,255,.18); background: rgba(8,13,15,.48); box-shadow: 0 35px 90px rgba(0,0,0,.34); transform: perspective(1100px) rotateY(-4deg) rotateX(2deg); }
.console-head, .console-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.console-head b { color: var(--lime); }
.mission-map { position: relative; height: 340px; }
.mission-map svg { width: 100%; height: 100%; }
.terrain { fill: none; stroke: rgba(255,255,255,.24); stroke-width: 2; }
.terrain.faint { opacity: .45; }
.route { fill: none; stroke: var(--orange); stroke-width: 4; stroke-dasharray: 8 8; }
.point { fill: var(--lime); stroke: rgba(200,241,113,.28); stroke-width: 18; }
.mission-map > span { position: absolute; padding: 5px 7px; color: white; background: rgba(8,12,14,.82); border-left: 2px solid var(--orange); font-size: 8px; letter-spacing: .1em; }
.map-a { left: 9%; bottom: 17%; }.map-b { left: 48%; top: 28%; }.map-c { right: 6%; top: 39%; }
.console-foot { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
.console-foot div { display: grid; gap: 5px; }
.console-foot strong { color: white; font-size: 11px; letter-spacing: 0; }

.portal-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: -38px clamp(20px, 7vw, 112px) 0; position: relative; z-index: 2; background: white; box-shadow: var(--shadow); }
.portal-strip div { min-height: 114px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 14px; padding: 24px 30px; border-right: 1px solid var(--line); }
.portal-strip div:last-child { border-right: 0; }
.portal-strip span { grid-row: 1 / 3; color: var(--orange); font-size: 11px; font-weight: 900; }
.portal-strip strong { font-size: 14px; }.portal-strip small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.section { padding: 120px clamp(22px, 7vw, 112px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: end; gap: 60px; margin-bottom: 50px; }
.section-heading h2, .support-copy h2 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.section-heading > p, .support-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.ask-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: 24px; }
.ask-form, .answer-card, .checklist-card, .admin-card, .source-table-card { padding: 34px; background: white; border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(22,29,32,.06); }
label { display: grid; gap: 7px; color: #4e595e; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
input, textarea, select { width: 100%; padding: 13px 14px; color: var(--ink); background: #fbfaf7; border: 1px solid #d6d5cf; border-radius: 3px; outline: none; font-size: 13px; text-transform: none; letter-spacing: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,91,42,.12); }
textarea { resize: vertical; line-height: 1.55; }
.context-grid, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.question-label { margin-top: 16px; }
.ask-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.ask-actions > span { max-width: 220px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.answer-card { position: relative; min-height: 410px; color: white; background: var(--ink); border-color: var(--ink); overflow: auto; }
.answer-empty { min-height: 340px; display: grid; place-content: center; justify-items: center; text-align: center; }
.answer-empty > span, .answer-avatar { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; font-weight: 900; }
.answer-empty h3 { margin: 18px 0 6px; font-size: 24px; }.answer-empty p { max-width: 350px; margin: 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.6; }
.answer-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }.answer-head h3 { margin: 0; font-size: 18px; }.answer-head small { display: block; margin-top: 3px; color: var(--lime); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.answer-text { white-space: pre-wrap; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.75; }
.sources { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }.sources > strong { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.source-chip { display: block; margin-top: 10px; padding: 12px; color: white; background: rgba(255,255,255,.06); border-left: 2px solid var(--orange); text-decoration: none; }.source-chip strong { display: block; font-size: 11px; }.source-chip small { color: rgba(255,255,255,.55); font-size: 9px; }

.library-section { color: white; background: var(--ink-soft); }
.section-heading.light .kicker { color: var(--lime); }.section-heading.light > p { color: rgba(255,255,255,.6); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.search-field { position: relative; width: min(540px, 100%); }.search-field span { position: absolute; left: 14px; top: 11px; color: var(--orange); font-size: 19px; }.search-field input { padding-left: 42px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: white; }.search-field input::placeholder { color: rgba(255,255,255,.42); }
.library-count { color: rgba(255,255,255,.48); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.document-card { min-height: 225px; display: flex; flex-direction: column; padding: 23px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.document-card .badge { align-self: flex-start; padding: 5px 7px; color: var(--lime); background: rgba(200,241,113,.09); border-radius: 2px; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.document-card h3 { margin: 27px 0 7px; font-size: 17px; }.document-card p { margin: 0; color: rgba(255,255,255,.53); font-size: 11px; line-height: 1.55; }
.document-card a { margin-top: auto; padding-top: 18px; color: var(--orange); font-size: 10px; font-weight: 800; text-decoration: none; }
.empty-library { grid-column: 1 / -1; padding: 42px; text-align: center; border: 1px dashed rgba(255,255,255,.25); color: rgba(255,255,255,.6); }

.field-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; }
.guide-nav { display: grid; gap: 8px; align-content: start; }.guide-nav button { display: grid; grid-template-columns: 32px 1fr; gap: 7px 12px; padding: 19px; text-align: left; background: transparent; border: 1px solid var(--line); cursor: pointer; }.guide-nav button.active { background: white; border-left: 4px solid var(--orange); box-shadow: 0 9px 25px rgba(22,29,32,.06); }.guide-nav span { grid-row: 1 / 3; color: var(--orange); font-size: 10px; font-weight: 900; }.guide-nav strong { font-size: 13px; }.guide-nav small { color: var(--muted); font-size: 10px; }
.checklist-head, .card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }.checklist-head small { color: var(--orange); font-size: 8px; font-weight: 900; letter-spacing: .12em; }.checklist-head h3, .card-heading h3 { margin: 5px 0 0; font-size: 24px; }.checklist-head button { color: var(--muted); background: transparent; border: 0; font-size: 10px; cursor: pointer; }
.check-row { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; text-transform: none; letter-spacing: 0; }.check-row input { position: absolute; opacity: 0; pointer-events: none; }.check-box { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid #b9bbb7; color: transparent; }.check-row input:checked + .check-box { color: white; background: var(--teal); border-color: var(--teal); }.check-copy { color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; }.check-row input:checked ~ .check-copy { color: var(--muted); text-decoration: line-through; }
.progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; margin-top: 20px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.progress > div { height: 4px; background: #e4e2dd; }.progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s ease; }

.support-section { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 130px); color: white; background: linear-gradient(135deg, #0b726c, #0f4747); }
.light-kicker { color: var(--lime); }.support-copy > p { margin-top: 25px; color: rgba(255,255,255,.65); }.text-link { display: inline-block; margin-top: 25px; color: var(--lime); font-size: 11px; font-weight: 800; text-decoration: none; }
.support-form { min-height: 420px; padding: 34px; background: white; color: var(--ink); box-shadow: var(--shadow); }.locked-form { min-height: 350px; display: grid; place-content: center; justify-items: center; text-align: center; }.locked-form > span { font-size: 28px; }.locked-form strong { margin-top: 13px; font-size: 20px; }.locked-form p { max-width: 300px; margin: 8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }.support-fields, .admin-card { display: grid; gap: 13px; }
.form-result { min-height: 18px; margin: 0; color: var(--teal); font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; }.form-result.error { color: #b42318; }

.admin-section { background: #ebe7de; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.admin-card { align-content: start; }.card-heading { justify-content: flex-start; }.card-heading > span { min-width: 34px; color: var(--orange); font-size: 10px; font-weight: 900; }.card-heading h3 { font-size: 20px; }.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.file-field { padding: 18px; background: #f5f2eb; border: 1px dashed #bbb7ad; }.file-field input { padding: 0; border: 0; background: transparent; }
.source-table-card { margin-top: 20px; }.source-table { overflow-x: auto; }.source-row { min-width: 760px; display: grid; grid-template-columns: 2fr .7fr .8fr .7fr 1.2fr; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 11px; }.source-row strong { display: block; }.source-row small { color: var(--muted); }.status-pill { justify-self: start; padding: 5px 7px; background: #efede7; border-radius: 12px; font-size: 8px; font-weight: 900; text-transform: uppercase; }.status-pill.approved { color: #186a42; background: #dff3e7; }.status-pill.retired { color: #8a3830; background: #f5e2df; }.row-actions { display: flex; gap: 6px; }.row-actions button { padding: 7px 9px; background: white; border: 1px solid var(--line); font-size: 9px; cursor: pointer; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 34px; padding: 46px clamp(22px, 7vw, 112px); color: rgba(255,255,255,.55); background: #0d1214; }.footer-brand strong { color: white; }.footer-brand small { color: rgba(255,255,255,.45); }footer p { margin: 0; font-size: 11px; line-height: 1.5; }footer > div:last-child { display: flex; gap: 20px; }footer a { font-size: 10px; font-weight: 700; text-decoration: none; }

dialog { width: min(440px, calc(100% - 28px)); padding: 38px; border: 0; box-shadow: var(--shadow); }dialog::backdrop { background: rgba(10,14,16,.68); backdrop-filter: blur(5px); }.dialog-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }dialog h2 { margin: 0; font-size: 40px; letter-spacing: -.05em; }dialog > p:not(.kicker) { color: var(--muted); font-size: 12px; }dialog form { display: grid; gap: 14px; margin-top: 22px; }
.toast { position: fixed; z-index: 300; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 11px; min-width: 290px; padding: 14px 17px; color: white; background: var(--ink); box-shadow: var(--shadow); transform: translateY(140%); opacity: 0; transition: .25s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast > span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; font-weight: 900; }.toast strong, .toast small { display: block; }.toast strong { font-size: 11px; }.toast small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 9px; }

@media (max-width: 1050px) {
  .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 70px; padding: 22px; flex-direction: column; align-items: flex-start; background: white; box-shadow: var(--shadow); }.main-nav.open { display: flex; }.menu-button { display: block; }.account-actions { margin-left: 0; }
  .hero { grid-template-columns: 1fr; }.mission-console { width: min(720px, 100%); justify-self: center; transform: none; }.portal-strip { grid-template-columns: 1fr; }.portal-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ask-shell, .support-section { grid-template-columns: 1fr; }.document-grid { grid-template-columns: repeat(2, 1fr); }.admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 68px; padding: 0 16px; gap: 10px; }.brand strong { font-size: 12px; }.brand-mark { width: 34px; height: 34px; }.account-name { display: none !important; }.account-actions .button { padding: 0 11px; font-size: 9px; }.menu-button { order: 2; }.account-actions { order: 3; }
  .hero { min-height: auto; padding: 70px 20px 82px; }.hero h1 { font-size: 54px; }.mission-map { height: 250px; }.portal-strip { margin: -30px 14px 0; }
  .section { padding: 90px 18px; }.section-heading { grid-template-columns: 1fr; gap: 18px; }.section-heading h2, .support-copy h2 { font-size: 44px; }.context-grid, .two-col { grid-template-columns: 1fr; }.ask-actions { align-items: stretch; flex-direction: column; }.answer-card, .ask-form, .support-form, .admin-card, .source-table-card, .checklist-card { padding: 23px; }
  .document-grid { grid-template-columns: 1fr; }.library-toolbar { align-items: stretch; flex-direction: column; }.field-layout { grid-template-columns: 1fr; }.support-section { gap: 42px; }
  footer { grid-template-columns: 1fr; }footer > div:last-child { flex-wrap: wrap; }
  .toast { left: 13px; right: 13px; bottom: 13px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }*, *::before, *::after { transition: none !important; } }
