:root {
  --ink: #17231f;
  --muted: #69736e;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --line: #d8d4ca;
  --accent: #013220;
  --accent-dark: #075137;
  --success: #2c6c4f;
  --warning: #9a641b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(90deg, rgba(23,35,31,.035) 1px, transparent 1px) 0 0 / 48px 48px, var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,241,233,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 1.02rem; font-weight: 850; letter-spacing: -.02em; }
.wordmark span { color: var(--accent); font-weight: 650; }
.topbar-actions { display: flex; gap: 22px; align-items: center; }
.topbar-actions a, .text-button { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: none; cursor: pointer; font-weight: 650; }
.topbar-actions a:hover, .text-button:hover { color: var(--ink); }
main { width: min(1180px, 90vw); margin: 0 auto; }
.state-page { min-height: calc(100vh - 72px); padding: 14vh 0 8vh; max-width: 760px; animation: enter .45s ease both; }
.state-page h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.055em; margin: 16px 0 24px; }
.state-page > p:not(.eyebrow) { color: var(--muted); max-width: 560px; font-size: 1.13rem; line-height: 1.6; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 850; color: var(--accent); margin: 0; }
.primary-action, .secondary-action, form button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 19px; border-radius: 3px; border: 1px solid var(--ink); background: var(--ink); color: white; text-decoration: none; font-weight: 760; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.primary-action:hover, form button:hover { transform: translateY(-1px); background: #263b34; }
.secondary-action { background: transparent; color: var(--ink); }
.workspace-heading { padding: 72px 0 42px; display: flex; align-items: end; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); animation: enter .45s ease both; }
.workspace-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.8rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; margin: 12px 0 14px; }
.workspace-heading p:last-child { margin: 0; color: var(--muted); }
.organization-switcher { display: grid; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 750; min-width: 220px; }
.workflow-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.workflow-nav button { padding: 22px 6px 18px; border: 0; border-bottom: 3px solid transparent; background: none; text-align: left; color: var(--muted); cursor: pointer; font-weight: 750; }
.workflow-nav button span { display: block; margin-bottom: 7px; font-size: .68rem; letter-spacing: .12em; }
.workflow-nav button.active { color: var(--ink); border-color: var(--accent); }
.workspace-section { display: none; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.75fr); gap: 8vw; padding: 70px 0 110px; animation: enter .32s ease both; }
.workspace-section.active { display: grid; }
.section-intro h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2.25rem; font-weight: 500; letter-spacing: -.035em; margin: 12px 0; }
.section-intro p:last-child { color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.form-grid label, .inline-form label { display: grid; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.form-grid .wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #aaa79f; border-radius: 0; color: var(--ink); background: transparent; outline: 0; transition: border-color .16s ease, box-shadow .16s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
textarea { resize: vertical; }
.form-grid button { justify-self: start; }
.form-message { min-height: 1.2em; margin: 0; color: var(--accent-dark); font-size: .85rem; }
.readout { border-top: 1px solid var(--ink); }
.readout dl { margin: 0; }
.readout div { display: grid; grid-template-columns: 150px 1fr; padding: 17px 0; border-bottom: 1px solid var(--line); }
.readout dt { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.readout dd { margin: 0; }
.status { color: var(--success); font-weight: 800; }
.requirement-list { border-top: 1px solid var(--ink); }
.requirement-list article { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.requirement-list article > div { position: relative; padding-left: 48px; }
.step-index { position: absolute; left: 0; top: 3px; color: var(--accent); font-size: .72rem; font-weight: 850; }
.requirement-list h3 { margin: 0 0 7px; font-size: 1.05rem; }
.requirement-list p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.inline-form { display: grid; grid-template-columns: .6fr 1.4fr auto; gap: 16px; align-items: end; }
.inline-form button, .compact button { min-height: 40px; padding: 0 14px; }
.compact { margin-top: 22px; }
.check { grid-template-columns: 18px 1fr; align-items: center; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.verification-decision { display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.verification-decision > div { flex: 1; }
.workspace-message { margin-top: 24px; padding: 14px 18px; background: #fff7e6; border-left: 3px solid var(--warning); }
.submissions-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; grid-column: 2; }
.submission-list { grid-column: 2; border-top: 1px solid var(--ink); }
.submission-row { width: 100%; display: grid; grid-template-columns: 1.5fr .7fr .6fr; gap: 20px; align-items: center; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.submission-row:hover { color: var(--accent-dark); }
.submission-row strong, .submission-row span { display: block; }
.submission-row small { color: var(--muted); }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.event-list li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event-list time { color: var(--muted); font-size: .8rem; }
.event-list strong { display: block; margin-bottom: 5px; }
dialog { width: min(720px, 92vw); max-height: 84vh; padding: 42px; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(23,35,31,.28); }
dialog::backdrop { background: rgba(23,35,31,.62); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; color: var(--muted); font-size: 2rem; cursor: pointer; }
.finding { padding: 18px 0; border-top: 1px solid var(--line); }
.finding form { display: grid; gap: 12px; margin-top: 14px; }
[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  main { width: min(92vw, 680px); }
  .workspace-heading { align-items: start; flex-direction: column; padding-top: 46px; }
  .organization-switcher { width: 100%; }
  .workflow-nav { overflow-x: auto; grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .workspace-section, .workspace-section.active { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .form-grid, .inline-form { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .submissions-heading, .submission-list { grid-column: 1; }
  .verification-decision { align-items: stretch; flex-direction: column; }
  .submission-row { grid-template-columns: 1fr auto; }
  .submission-row > :last-child { display: none; }
  .event-list li { grid-template-columns: 1fr; gap: 8px; }
}
