:root {
  --navy-950: #0a1e2b;
  --navy-900: #102d3d;
  --navy-800: #173d50;
  --blue-100: #e7f0f4;
  --green: #8fc63f;
  --green-dark: #5c8f2b;
  --green-soft: #e8f3dc;
  --paper: #fbfcfa;
  --canvas: #eef2f3;
  --line: #d9e1e5;
  --line-dark: #c2cfd5;
  --ink: #18303d;
  --muted: #6f818b;
  --muted-dark: #4c626d;
  --warning: #a8781e;
  --warning-soft: #fff5dd;
  --danger: #a34e4e;
  --shadow: 0 18px 50px rgba(14, 43, 58, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 270px;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 20px 20px;
  color: #dce8ec;
  background: var(--navy-950);
  background-image: radial-gradient(circle at 30% 10%, rgba(42, 107, 119, 0.24), transparent 34%), linear-gradient(165deg, #0c2635, #091a26 70%);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; color: var(--navy-950); background: var(--green); font-size: 22px; font-weight: 800; line-height: 1; border-radius: 50%; }
.brand-kicker { margin: 0; color: #a8c8d1; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.brand-name { margin: 1px 0 0; color: #f2f7f5; font-size: 13px; font-weight: 600; }

.sidebar-title { display: flex; align-items: center; gap: 8px; margin: 62px 8px 16px; color: #7eabb8; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.sidebar-title-line { width: 18px; height: 2px; background: var(--green); }

.main-nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; width: 100%; gap: 11px; padding: 12px 10px; color: #93abb4; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; transition: .2s ease; }
.nav-item:hover { color: #f6fbfa; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: #f7fcfb; background: rgba(143,198,63,.12); border-color: rgba(143,198,63,.23); }
.nav-index { flex: 0 0 27px; color: #668b98; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.nav-item.is-active .nav-index { color: var(--green); }
.nav-copy { display: grid; gap: 1px; }
.nav-copy strong { font-size: 13px; font-weight: 650; }
.nav-copy small { color: #708c96; font-size: 11px; }
.nav-count { display: grid; min-width: 22px; height: 22px; margin-left: auto; place-items: center; color: #b8d1d4; background: rgba(255,255,255,.08); border-radius: 6px; font-size: 11px; }

.sidebar-spacer { flex: 1; }
.sidebar-note { display: flex; gap: 10px; margin: 20px 3px 18px; padding: 13px 11px; color: #a9c5ca; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; }
.sidebar-note-icon { flex: 0 0 24px; color: var(--green); font-size: 20px; line-height: 1.1; }
.sidebar-note strong { display: block; color: #e4f2ef; font-size: 12px; }
.sidebar-note p { margin: 3px 0 0; color: #78959e; font-size: 11px; line-height: 1.4; }
.sidebar-footer { display: flex; align-items: center; gap: 7px; padding: 0 4px; color: #55747f; font-size: 10px; }
.footer-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.main-content { min-width: 0; flex: 1; padding: 0 46px 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; border-bottom: 1px solid var(--line); }
.topbar-path { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.topbar-context { color: var(--muted-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.topbar-separator { color: #b6c4ca; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.connection-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(143,198,63,.14); }

.view { max-width: 1170px; margin: 0 auto; padding-top: 48px; }
.page-heading, .review-page-heading, .collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.eyebrow { margin: 0 0 9px; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; color: var(--navy-900); font-size: clamp(32px, 4vw, 48px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
h2 { margin-bottom: 6px; color: var(--navy-900); font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
h3 { margin-bottom: 4px; color: var(--navy-900); font-size: 16px; font-weight: 650; }
.page-lede { max-width: 625px; margin-bottom: 0; color: var(--muted-dark); font-size: 15px; line-height: 1.65; }
.heading-aside { display: grid; flex: 0 0 auto; gap: 2px; padding: 9px 0 4px 20px; border-left: 1px solid var(--line-dark); text-align: right; }
.heading-aside-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.heading-aside-value { color: var(--green-dark); font-size: 12px; }

.stepper { display: flex; align-items: center; margin: 38px 0 18px; padding: 13px 17px; background: rgba(255,255,255,.56); border: 1px solid var(--line); border-radius: 11px; }
.step { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 0; color: var(--muted); text-align: left; background: none; border: 0; }
.step-number { display: grid; width: 28px; height: 28px; place-items: center; color: var(--muted-dark); background: #e3eaed; border-radius: 50%; font-size: 11px; font-weight: 800; }
.step-text { display: grid; gap: 0; }
.step-text strong { color: var(--muted-dark); font-size: 12px; font-weight: 700; }
.step-text small { color: var(--muted); font-size: 10px; }
.step.is-active .step-number, .step.is-complete .step-number { color: var(--navy-950); background: var(--green); }
.step.is-active .step-text strong, .step.is-complete .step-text strong { color: var(--navy-900); }
.step-line { flex: 1; height: 1px; margin: 0 18px; background: var(--line-dark); }
.client-context-strip { display: flex; align-items: center; gap: 9px; min-height: 38px; margin: 0 0 15px; padding: 8px 13px; color: var(--muted-dark); background: #f5f8f6; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.client-context-label { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.client-context-strip strong { color: var(--navy-900); font-size: 12px; }
.client-context-separator { color: var(--line-dark); }

.form-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-step-panel { display: none; padding: 32px 36px 25px; }
.form-step-panel.is-active { display: block; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.required-note { padding-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.required-note span, em { color: var(--green-dark); font-style: normal; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 20px; }
.field { display: grid; align-content: start; gap: 7px; }
.field-span-2 { grid-column: span 2; }
.field > span { color: var(--muted-dark); font-size: 12px; font-weight: 700; }
.field > small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.field-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-heading-row > span { color: var(--muted-dark); font-size: 12px; font-weight: 700; }
.field-heading-row .button { flex: 0 0 auto; }
.client-identity-card { margin-bottom: 24px; padding: 17px 18px 19px; background: #f4f8f5; border: 1px solid #cfe0d2; border-radius: 11px; }
.client-identity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.client-identity-heading .eyebrow { margin-bottom: 5px; }
.client-identity-heading h3 { margin-bottom: 3px; }
.client-identity-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.client-context-badge { flex: 0 0 auto; padding: 6px 9px; color: var(--green-dark); background: var(--green-soft); border: 1px solid #c7dfb0; border-radius: 6px; font-size: 10px; font-weight: 750; }
.client-identity-grid { gap: 14px 16px; }
.participants-field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.participants-field-heading > div:first-child { display: grid; gap: 3px; }
.participants-field-heading > div:first-child > span { color: var(--muted-dark); font-size: 12px; font-weight: 700; }
.participants-field-heading > div:first-child > small { color: var(--muted); font-size: 11px; }
.participants-field-actions { display: flex; align-items: center; gap: 12px; }
.participant-count { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.participants-table-wrap { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 9px; }
.participants-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.participants-table th { padding: 8px 10px; color: #fff; background: var(--navy-900); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: left; }
.participants-table th:nth-child(1), .participants-table td:nth-child(1) { width: 44%; }
.participants-table th:nth-child(2), .participants-table td:nth-child(2) { width: 44%; }
.participants-table th:nth-child(3), .participants-table td:nth-child(3) { width: 12%; }
.participants-table th input { width: min(100%, 180px); height: 25px; padding: 0 7px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.38); border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.participants-table th input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(143,198,63,.22); }
.participants-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
.participants-table tbody tr:nth-child(even) { background: #f7f9f8; }
.participants-table tbody tr:hover { background: #f2f7ef; }
.participants-inputs { display: grid; gap: 6px; }
.participants-inputs input { height: 34px; padding: 0 9px; font-size: 11px; }
.participant-row-action { text-align: center; }
.participant-row-action .icon-button { height: 34px; }
.participant-empty { padding: 15px; color: var(--muted); background: #f7f9f8; font-size: 11px; text-align: center; }
.topics-field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.topics-field-heading > div { display: grid; gap: 3px; }
.topics-field-heading > div > span { color: var(--muted-dark); font-size: 12px; font-weight: 700; }
.topics-field-heading > div > small { color: var(--muted); font-size: 11px; }
.topics-table-wrap { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 9px; }
.topics-table-header, .topic-row { display: grid; grid-template-columns: 40px minmax(150px, .9fr) minmax(220px, 1.65fr) 31px; align-items: center; gap: 9px; }
.topics-table-header { padding: 8px 10px; color: var(--muted); background: #edf3f1; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.topic-row { padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); }
.topic-row:nth-child(even) { background: #f8faf9; }
.topic-row-number { color: var(--green-dark); font-size: 11px; font-weight: 800; }
.topic-row input { height: 38px; padding: 0 9px; font-size: 12px; }
.topic-row textarea { height: 58px; min-height: 58px; padding: 8px 9px; font-size: 11px; }
.topic-row .icon-button { align-self: center; }
.topic-empty { padding: 15px; color: var(--muted); background: #f7f9f8; font-size: 11px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line-dark); border-radius: 8px; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
input, select { height: 42px; padding: 0 12px; }
textarea { min-height: 86px; padding: 11px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a3b0b5; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(143,198,63,.16); }
select { appearance: auto; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 31px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions-right { display: flex; align-items: center; gap: 10px; }
.action-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.hint-icon { display: grid; width: 17px; height: 17px; place-items: center; color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 50%; font-size: 10px; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; color: var(--navy-900); font-size: 12px; font-weight: 750; letter-spacing: .01em; border: 1px solid transparent; border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #122a36; background: var(--green); box-shadow: 0 5px 15px rgba(109,151,49,.16); }
.button-primary:hover { background: #a1d455; box-shadow: 0 7px 18px rgba(109,151,49,.23); }
.button-secondary { color: var(--navy-900); background: #fff; border-color: var(--line-dark); }
.button-secondary:hover, .button-ghost:hover { border-color: #8fa7af; background: #f3f7f7; }
.button-ghost { color: var(--muted-dark); background: transparent; border-color: transparent; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 11px; }
.button-full { width: 100%; }

.subsection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 13px; }
.subsection-heading .eyebrow { margin-bottom: 6px; }
.task-list { display: grid; gap: 9px; }
.task-row { display: grid; grid-template-columns: minmax(145px, 1.15fr) minmax(175px, 1.4fr) minmax(145px, 1.05fr) minmax(150px, 1fr) 120px 96px 30px; align-items: end; gap: 9px; padding: 12px; background: #f4f7f6; border: 1px solid var(--line); border-radius: 9px; }
.task-row .field { gap: 5px; }
.task-row .field > span { color: var(--muted); font-size: 10px; }
.task-row input, .task-row select { height: 36px; padding: 0 9px; font-size: 12px; }
.task-row textarea { height: 36px; min-height: 36px; padding: 8px 9px; font-size: 11px; resize: vertical; }
.responsible-toggle { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; height: 36px; border: 1px solid var(--line-dark); border-radius: 7px; background: #fff; }
.responsible-toggle label { position: relative; min-width: 0; }
.responsible-toggle label + label { border-left: 1px solid var(--line); }
.responsible-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.responsible-toggle span { display: grid; height: 34px; place-items: center; padding: 0 7px; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.responsible-toggle input:checked + span { color: var(--navy-950); background: var(--green); }
.responsible-toggle input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--navy-800); }
.icon-button { display: grid; width: 30px; height: 36px; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 18px; }
.icon-button:hover { color: var(--danger); background: #fff; border-color: #e7cfcf; }
.task-empty { padding: 18px; color: var(--muted); background: #f7f9f8; border: 1px dashed var(--line-dark); border-radius: 9px; font-size: 12px; text-align: center; }
.form-grid-bottom { margin-top: 24px; }
.delivery-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 720px; margin-top: 28px; }
.check-card { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 16px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.check-card:hover, .check-card.is-checked { background: #f5faef; border-color: #a8c98a; }
.check-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-visual { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; color: transparent; background: #fff; border: 1px solid var(--line-dark); border-radius: 5px; font-size: 12px; font-weight: 800; }
.check-card.is-checked .check-visual { color: var(--navy-950); background: var(--green); border-color: var(--green); }
.check-card strong { display: block; margin-bottom: 3px; color: var(--navy-900); font-size: 12px; }
.check-card small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.review-snapshot { margin-top: 28px; padding: 19px 20px; background: var(--navy-900); border-radius: 11px; }
.snapshot-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.snapshot-header .eyebrow { color: #9fca6a; margin-bottom: 6px; }
.snapshot-header h3 { color: #f0f7f3; }
.snapshot-badge { padding: 4px 8px; color: #b7d8b0; background: rgba(143,198,63,.14); border: 1px solid rgba(143,198,63,.25); border-radius: 5px; font-size: 10px; font-weight: 700; }
.snapshot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr .7fr; gap: 18px; }
.snapshot-grid div { min-width: 0; }
.snapshot-grid span { display: block; margin-bottom: 4px; color: #8eabb4; font-size: 10px; }
.snapshot-grid strong { display: block; overflow: hidden; color: #ecf5f0; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.form-error { min-height: 0; margin: 15px 0 0; color: var(--danger); font-size: 12px; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 11px; }

.ai-mode-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: var(--green-dark); background: var(--green-soft); border: 1px solid #c9dfb4; border-radius: 7px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 24px; margin-top: 36px; }
.document-card { min-height: 580px; padding: 37px 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.document-kicker { margin: 0 0 12px; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.document-title { margin: 0 0 19px; color: var(--navy-900); font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
.document-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 14px 0 20px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.document-meta strong { color: var(--muted-dark); font-weight: 700; }
.document-section { margin-top: 26px; }
.document-section h3 { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.document-section h3::before { display: block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; content: ""; }
.document-section p, .document-section li { color: var(--muted-dark); font-size: 13px; line-height: 1.65; }
.document-section p { margin-bottom: 0; }
.document-section ul { margin: 8px 0 0; padding-left: 18px; }
.document-section li + li { margin-top: 5px; }
.document-table { width: 100%; margin-top: 11px; border-collapse: collapse; font-size: 11px; }
.document-table th { padding: 8px 9px; color: var(--muted); background: #f3f6f5; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.document-table td { padding: 9px; color: var(--muted-dark); border-bottom: 1px solid var(--line); vertical-align: top; }
.document-table td strong { color: var(--navy-900); font-weight: 700; }
.document-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.topics-document-table th:first-child, .topics-document-table td:first-child { width: 42px; }
.document-empty { color: var(--muted); font-size: 12px; font-style: italic; }
.document-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 40px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }

.review-sidebar { display: grid; gap: 13px; }
.side-card { padding: 17px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 11px; }
.side-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.side-card-heading .eyebrow { margin: 0; }
.status-pill { padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 750; }
.status-review { color: var(--warning); background: var(--warning-soft); }
.status-sent, .status-confirmed { color: var(--green-dark); background: var(--green-soft); }
.pipeline { display: grid; gap: 17px; }
.pipeline-step { position: relative; display: flex; gap: 9px; color: var(--muted); }
.pipeline-step:not(:last-child)::after { position: absolute; top: 23px; left: 10px; width: 1px; height: calc(100% + 10px); background: var(--line); content: ""; }
.pipeline-step > span { z-index: 1; display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; color: #92a4aa; background: #e7edef; border-radius: 50%; font-size: 9px; font-weight: 800; }
.pipeline-step.is-done > span, .pipeline-step.is-active > span { color: var(--navy-950); background: var(--green); }
.pipeline-step strong { display: block; color: var(--muted-dark); font-size: 11px; font-weight: 700; }
.pipeline-step small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.distribution-card p { margin-bottom: 7px; color: var(--muted-dark); font-size: 12px; line-height: 1.5; word-break: break-word; }
.distribution-card small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.delivery-facts, .share-facts { display: grid; gap: 8px; margin: 12px 0; padding: 10px; background: #f3f7f5; border: 1px solid var(--line); border-radius: 7px; }
.delivery-facts div, .share-facts div { min-width: 0; }
.delivery-facts span, .share-facts span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.delivery-facts strong, .share-facts strong { display: block; overflow: hidden; color: var(--muted-dark); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.mini-icon { color: var(--green-dark); font-size: 18px; }
.review-actions { display: grid; gap: 8px; margin-top: 5px; }
.review-note { margin: 2px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.collection-heading { align-items: flex-start; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 33px; padding-bottom: 11px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.collection-toolbar span:first-child { color: var(--muted-dark); font-weight: 700; }
.record-list { display: grid; gap: 9px; margin-top: 12px; }
.record-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 19px; padding: 17px 19px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 10px; }
.record-card:hover { background: #fff; border-color: var(--line-dark); }
.record-title { overflow: hidden; margin: 0 0 4px; color: var(--navy-900); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.record-meta { margin: 0; color: var(--muted); font-size: 11px; }
.record-meta strong { color: var(--muted-dark); font-weight: 650; }
.record-status { padding: 5px 8px; color: var(--warning); background: var(--warning-soft); border-radius: 5px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.record-status.sent { color: var(--green-dark); background: var(--green-soft); }
.record-actions { display: flex; gap: 3px; }
.empty-state { padding: 50px 30px; color: var(--muted); background: rgba(255,255,255,.5); border: 1px dashed var(--line-dark); border-radius: 12px; text-align: center; }
.empty-state-icon { display: grid; width: 43px; height: 43px; margin: 0 auto 13px; place-items: center; color: var(--green-dark); background: var(--green-soft); border-radius: 50%; font-size: 19px; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--navy-900); font-size: 14px; }
.empty-state p { max-width: 370px; margin: 0 auto; font-size: 12px; line-height: 1.55; }
.history-banner { display: flex; align-items: flex-start; gap: 14px; margin-top: 34px; padding: 17px 19px; color: var(--muted-dark); background: var(--blue-100); border: 1px solid #c8dce3; border-radius: 10px; }
.history-banner-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; color: var(--navy-900); background: #c6dee5; border-radius: 50%; }
.history-banner strong { display: block; margin-bottom: 3px; color: var(--navy-900); font-size: 12px; }
.history-banner p { margin: 0; color: var(--muted-dark); font-size: 11px; }

.toast { position: fixed; right: 25px; bottom: 24px; z-index: 20; max-width: 340px; padding: 12px 15px; color: #f3fbf8; background: var(--navy-900); border: 1px solid rgba(143,198,63,.45); border-radius: 8px; box-shadow: 0 12px 28px rgba(10,30,43,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.processing-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(10,30,43,.52); backdrop-filter: blur(4px); }
.processing-card { width: min(380px, 100%); padding: 35px; background: var(--paper); border-radius: 15px; box-shadow: 0 25px 60px rgba(4,18,26,.25); text-align: center; }
.processing-card h2 { margin-bottom: 8px; }
.processing-card p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.processing-orbit { position: relative; width: 52px; height: 52px; margin: 0 auto 23px; border: 2px solid #dce9df; border-radius: 50%; animation: orbit-spin 2.1s linear infinite; }
.processing-orbit span { position: absolute; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.processing-orbit span:nth-child(1) { top: -5px; left: 20px; }
.processing-orbit span:nth-child(2) { right: -3px; bottom: 9px; background: var(--navy-800); }
.processing-orbit span:nth-child(3) { bottom: 1px; left: 5px; width: 6px; height: 6px; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 1300px) {
  .task-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .task-title-field, .task-details-field, .task-responsible-field, .task-owner-field { grid-column: span 2; }
  .task-row .icon-button { grid-column: 4; justify-self: end; }
}

@media (max-width: 1050px) {
  .main-content { padding-right: 28px; padding-left: 28px; }
  .sidebar { flex-basis: 230px; }
  .review-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .document-card { padding: 30px; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: static; min-height: 0; padding: 15px 18px; }
  .sidebar-title, .sidebar-spacer, .sidebar-note, .sidebar-footer { display: none; }
  .brand-lockup { padding: 0; }
  .main-nav { display: flex; margin-top: 16px; overflow-x: auto; gap: 6px; }
  .nav-item { min-width: 150px; padding: 9px; }
  .nav-copy small { display: none; }
  .main-content { padding: 0 20px 45px; }
  .topbar { min-height: 62px; }
  .topbar-context { display: none; }
  .topbar-actions { gap: 8px; }
  .view { padding-top: 35px; }
  .page-heading, .review-page-heading, .collection-heading { display: block; }
  .heading-aside { display: inline-grid; margin-top: 20px; padding: 7px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .stepper { overflow-x: auto; }
  .step-line { min-width: 22px; margin: 0 8px; }
  .form-step-panel { padding: 26px 20px 21px; }
  .review-page-heading .ai-mode-badge { display: inline-flex; margin-top: 18px; }
  .review-layout { grid-template-columns: 1fr; }
  .review-sidebar { grid-row: 1; }
  .document-card { grid-row: 2; }
  .snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-title-field, .task-details-field, .task-responsible-field, .task-owner-field { grid-column: span 2; }
  .task-row .icon-button { grid-column: 2; }
}

@media (max-width: 600px) {
  h1 { font-size: 35px; }
  .topbar-path { font-size: 11px; }
  .connection-status { display: none; }
  .form-grid, .delivery-options { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .section-heading { display: block; }
  .required-note { display: block; margin-top: 12px; }
  .participants-field-heading { align-items: flex-start; flex-direction: column; }
  .participants-field-actions { width: 100%; justify-content: space-between; }
  .participants-table { min-width: 560px; }
  .participants-table-wrap { overflow-x: auto; }
  .topics-field-heading { align-items: flex-start; flex-direction: column; }
  .topics-table-wrap { overflow-x: auto; }
  .topics-table-header, .topic-row { min-width: 620px; }
  .client-identity-heading { align-items: flex-start; flex-direction: column; }
  .client-context-strip { align-items: flex-start; flex-wrap: wrap; }
  .task-row .icon-button { align-self: center; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions-right { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button, .form-actions-right .button { width: 100%; }
  .action-hint { order: 3; }
  .document-card { padding: 25px 20px; }
  .document-title { font-size: 25px; }
  .document-table { display: block; overflow-x: auto; }
  .record-card { grid-template-columns: 1fr; gap: 10px; }
  .record-actions { justify-content: flex-start; }
  .record-status { justify-self: start; }
  .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .privacy-note { align-items: flex-start; }
}
