:root {
  --navy-950: #071c34;
  --navy-800: #14314f;
  --slate-700: #41546a;
  --slate-600: #5a6b7f;
  --slate-300: #cbd5df;
  --slate-200: #dde4eb;
  --slate-100: #edf2f6;
  --surface: #f7f9fb;
  --white: #ffffff;
  --teal-800: #075f63;
  --teal-700: #087379;
  --teal-100: #e3f3f3;
  --amber-800: #774d00;
  --amber-100: #fff3cf;
  --red-700: #a82d34;
  --focus: #137f9b;
  --shadow: 0 10px 30px rgb(7 28 52 / 8%);
  --radius: 10px;
  --header-height: 70px;
  --footer-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy-950);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--navy-950);
  font-size: 15px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgb(19 127 155 / 35%);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--navy-950);
  color: var(--white);
  border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }

.app-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--slate-300);
  background: rgb(255 255 255 / 96%);
}

.brand { display: flex; align-items: center; gap: 16px; font-size: 21px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { position: relative; width: 24px; height: 31px; border: 2px solid var(--navy-950); border-radius: 2px; }
.brand-mark::before { content: ""; position: absolute; top: -2px; right: -2px; border-style: solid; border-width: 0 0 9px 9px; border-color: transparent transparent var(--navy-950) transparent; }
.brand-mark span, .brand-mark span::before, .brand-mark span::after { position: absolute; left: 5px; width: 11px; height: 2px; background: var(--navy-950); content: ""; }
.brand-mark span { top: 13px; }
.brand-mark span::before { left: 0; top: 5px; }
.brand-mark span::after { left: 0; top: 10px; width: 7px; }

.header-actions { display: flex; align-items: center; gap: 28px; }
.offline-status { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--navy-800); }
.offline-status > .offline-indicator { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-700); box-shadow: 0 0 0 4px var(--teal-100); }

.app-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 288px;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.step-nav {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: auto;
  padding: 24px 0 18px;
  border-right: 1px solid var(--slate-300);
  background: var(--white);
}
.step-nav ol { margin: 0; padding: 0; list-style: none; }
.step-nav button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  text-align: left;
  color: var(--navy-800);
}
.step-nav button:hover { background: var(--surface); }
.step-nav button[aria-current="step"] { color: var(--navy-950); background: linear-gradient(90deg, var(--teal-100), #f8fbfb); border-left-color: var(--teal-700); font-weight: 700; }
.step-nav button span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--slate-300); border-radius: 50%; background: var(--white); }
.step-nav button[aria-current="step"] span { border-color: var(--teal-700); background: var(--teal-700); color: var(--white); }
.step-nav button[data-complete="true"] span { border-color: var(--teal-700); color: var(--teal-800); }
.progress-block { margin: 24px 22px 0; padding-top: 20px; border-top: 1px solid var(--slate-300); }
.progress-block p { margin: 0 0 9px; font-weight: 650; }
.progress-block progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; background: var(--slate-200); }
.progress-block progress::-webkit-progress-bar { background: var(--slate-200); }
.progress-block progress::-webkit-progress-value { background: var(--teal-700); border-radius: 99px; }
.progress-block progress::-moz-progress-bar { background: var(--teal-700); }

.workspace { min-width: 0; padding: 34px 30px 56px; background: var(--white); }
.step-panel { max-width: 1020px; margin: 0 auto; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { margin: 0 0 7px; max-width: 760px; font-size: clamp(27px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.page-heading > p:not(.step-kicker) { max-width: 800px; margin: 0; color: var(--slate-700); font-size: 16px; }
.step-kicker { margin: 0 0 7px; color: var(--teal-800); font-size: 13px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }

h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.015em; }
h3 { margin: 20px 0 6px; font-size: 15px; }
p { color: var(--slate-700); }

.entry-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  gap: 20px 28px;
  align-items: start;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #b8d6d7;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0fafa 0%, #f8fafc 62%, #fff8e8 100%);
  box-shadow: var(--shadow);
}
.entry-choice h2 { margin: 5px 0 9px; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; }
.entry-choice-copy > p { margin: 0; }
.entry-choice-copy > p + p { margin-top: 11px; }
.entry-badge { color: var(--teal-800) !important; font-size: 12px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.creator-note { max-width: 720px; color: var(--slate-600) !important; font-size: 14px; }
.entry-choice-actions { display: grid; gap: 10px; }
.entry-choice-actions .button { width: 100%; min-height: 48px; padding: 10px 14px; text-align: center; white-space: normal; }
.entry-choice .project-support-link { text-decoration: none; }
.support-boundary { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid rgb(7 95 99 / 18%); color: var(--slate-600); font-size: 12px; }
#start-workbook { scroll-margin-top: calc(var(--header-height) + 18px); }

.overview-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.overview-intro > div { padding: 24px; border: 1px solid var(--slate-300); border-radius: var(--radius); }
.overview-intro p { margin: 0; }
.check-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--teal-700); font-weight: 800; }
.boundary-box { border-left: 4px solid var(--navy-800) !important; }

.privacy-banner { display: flex; align-items: flex-start; gap: 15px; padding: 18px 20px; border: 1px solid #e5c875; border-radius: var(--radius); background: var(--amber-100); color: var(--amber-800); }
.privacy-banner h2, .privacy-banner p { margin: 0; color: inherit; }
.privacy-banner p { margin-top: 3px; }
.sensitive-locations { margin: 8px 0 0; padding-left: 20px; }
.sensitive-limit { margin-top: 8px !important; font-size: 13px; }
.privacy-icon { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 800; }
.privacy-banner.warning { margin-bottom: 22px; }
.acknowledgment, .declaration-editor { margin-top: 24px; padding: 20px; border: 1px solid var(--slate-300); border-radius: var(--radius); }
.acknowledgment legend { padding: 0 8px; font-weight: 740; }

.data-form, .entry-form { margin: 0; }
.entry-form { padding: 18px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.field-grid { display: grid; gap: 17px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline-grid { grid-template-columns: 1fr .8fr 1.1fr 1.8fr; }
.transaction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-two { grid-column: span 2; }
.span-three { grid-column: span 3; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; font-weight: 670; color: var(--navy-800); }
.field small, .supporting-text { font-weight: 400; color: var(--slate-600); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #aebbc8;
  border-radius: 7px;
  background: var(--white);
  font-weight: 400;
  color: var(--navy-950);
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-700); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 3px solid rgb(19 127 155 / 16%); }
.checkbox-field { align-self: end; min-height: 44px; display: flex; align-items: center; grid-auto-flow: column; justify-content: start; gap: 9px; }
.checkbox-field input, .checkbox-row input { width: 19px; height: 19px; accent-color: var(--teal-700); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.form-buttons { display: flex; align-items: end; gap: 8px; }
.field-wide { grid-column: span 1; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; background: var(--white); font-weight: 720; text-decoration: none; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { border-color: var(--teal-800); background: var(--teal-800); color: var(--white); box-shadow: 0 5px 14px rgb(7 95 99 / 18%); }
.button-primary:hover { background: #064e52; }
.button-secondary { border-color: #9caec0; color: var(--navy-800); }
.button-secondary:hover { border-color: var(--navy-800); background: var(--surface); }
.button-quiet { min-height: 38px; padding: 6px 9px; border: 0; background: transparent; color: var(--teal-800); }
.button-danger { min-height: 38px; padding: 6px 0; border: 0; background: transparent; color: var(--red-700); justify-content: flex-start; }
.button-small { min-height: 40px; padding: 7px 13px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--slate-300); border-radius: 7px; background: var(--white); font-size: 23px; line-height: 1; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions .button { min-height: 34px; padding: 4px 8px; font-size: 13px; }

.table-wrap { position: relative; overflow-x: auto; margin-top: 20px; border: 1px solid var(--slate-300); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: top; }
th { background: var(--surface); color: var(--navy-800); font-weight: 760; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }
.empty-state { margin: 0; padding: 24px; color: var(--slate-600); text-align: center; }
.timeline-report-preview { margin-top: 22px; padding: 18px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--surface); }
.timeline-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.timeline-preview-heading h2, .timeline-preview-heading p { margin: 0; }
.timeline-preview-heading p { margin-top: 2px; }
.mini-report { width: min(610px, 88%); margin: 14px auto 0; padding: 20px 26px; border: 1px solid var(--slate-300); background: var(--white); box-shadow: var(--shadow); }
.mini-report h3 { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy-950); font-size: 15px; }
.mini-report > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.mini-report section { display: grid; gap: 4px; padding-top: 7px; border-top: 1px solid var(--slate-300); }
.mini-report span { color: var(--slate-600); font-size: 12px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 -4px; }
.section-toolbar > div { font-weight: 740; }

.utility-rail { padding: 32px 26px; border-left: 1px solid var(--slate-300); background: #fbfcfd; }
.utility-rail section + section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--slate-300); }
.utility-rail p { margin: 0 0 14px; font-size: 14px; }
.compact-checks { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.compact-checks li { position: relative; padding-left: 26px; }
.compact-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--teal-700); border-radius: 50%; color: var(--teal-800); font-size: 11px; font-weight: 900; }
.rail-actions { display: grid; gap: 9px; }
.readiness-list { margin: 0; }
.readiness-list div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--slate-200); }
.readiness-list dt, .readiness-list dd { margin: 0; }
.readiness-list dd { color: var(--teal-800); font-weight: 700; text-align: right; }
.readiness-list dd.has-issue { color: var(--red-700); }
.review-utility { display: none; }
.is-review .utility-rail > section { display: none; }
.is-review .utility-rail > .review-utility { display: block; }
.final-review-list { margin: 0; }
.final-review-list div { padding: 14px 0; border-bottom: 1px solid var(--slate-200); }
.final-review-list dt { position: relative; padding-left: 28px; font-weight: 760; }
.final-review-list dt::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-700); color: var(--white); font-size: 11px; }
.final-review-list div.has-issue dt::before { content: "!"; background: #d99000; }
.final-review-list dd { margin: 5px 0 0 28px; color: var(--slate-600); font-size: 13px; }
.final-review-note { margin-top: 26px !important; padding-top: 24px; border-top: 1px solid var(--slate-300); }

.subsection + .subsection { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--slate-300); }
.subsection > p { margin: -4px 0 15px; }
.table-wrap + .subsection { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--slate-300); }
.record-list { display: grid; gap: 10px; margin-top: 16px; }
.record-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 15px 16px; border: 1px solid var(--slate-300); border-radius: 8px; background: var(--white); }
.record-item h3 { margin: 0 0 4px; }
.record-item p { margin: 0; white-space: pre-wrap; }
.record-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; color: var(--slate-600); font-size: 13px; }
.record-meta span { overflow-wrap: anywhere; }

.review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.declaration-editor { margin: 24px 0 0; background: var(--surface); }
.report-shell { overflow: hidden; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--surface); }
.report-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 14px; border-bottom: 1px solid var(--slate-300); background: var(--white); color: var(--navy-800); }
.report-toolbar > div { display: flex; align-items: center; gap: 7px; }
.report-toolbar .button { min-height: 38px; }
.report-preview { width: min(calc(100% - 42px), 8.5in); min-height: 11in; margin: 18px auto 24px; padding: .55in; border: 1px solid var(--slate-300); background: var(--white); box-shadow: 0 7px 20px rgb(7 28 52 / 12%); color: #111; font-family: Arial, sans-serif; }
.report-preview h1 { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid #111; font-size: 22px; }
.report-preview h2 { margin: 20px 0 7px; padding-bottom: 4px; border-bottom: 1px solid #777; font-size: 15px; }
.report-preview h3 { margin: 12px 0 4px; font-size: 13px; }
.report-preview p, .report-preview li, .report-preview td, .report-preview th, .report-preview dd, .report-preview dt { color: #111; font-size: 11px; line-height: 1.4; }
.report-preview p { margin: 4px 0; white-space: pre-wrap; }
.report-preview table { margin-top: 6px; font-size: 11px; }
.report-preview th, .report-preview td { padding: 5px 6px; border-color: #bbb; }
.report-preview th { background: #f2f2f2; }
.report-preview dl { display: grid; grid-template-columns: 145px 1fr; margin: 7px 0; }
.report-preview dt { font-weight: 700; }
.report-preview dd { margin: 0; white-space: pre-wrap; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.report-section { break-inside: avoid; }
.report-section.full { grid-column: 1 / -1; }
.report-disclaimer { margin-top: 18px !important; padding: 9px; border: 1px solid #777; }
.signature-lines { display: grid; grid-template-columns: 1fr 180px; gap: 34px; margin-top: 36px; }
.signature-lines > div { padding-top: 5px; border-top: 1px solid #111; font-size: 10px; }

.notice { max-width: 1020px; margin: 0 auto 20px; padding: 12px 15px; border: 1px solid var(--teal-700); border-radius: 7px; background: var(--teal-100); color: var(--navy-950); }
.notice.error { border-color: var(--red-700); background: #fff0f0; color: #7f1f27; }
.mobile-step-nav { display: none; }
.quick-start, .helper-mode, .preparation-controls { margin-top: 24px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--slate-300); }
.quick-start h2, .quick-start p, .preparation-controls h2, .preparation-controls p { margin-top: 0; }
.quick-start-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.project-support { margin: 18px 0 0; color: var(--slate-600); font-size: 13px; }
.project-support-link { color: var(--teal-800); font-weight: 700; text-underline-offset: 3px; }
.project-support-link:hover { text-decoration-thickness: 2px; }
.project-support-link:focus-visible { border-radius: 3px; outline: 3px solid rgb(19 127 155 / 24%); outline-offset: 3px; }
.inline-guidance { margin-top: 24px; padding: 20px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--surface); }
.inline-guidance > h2, .inline-guidance > p { margin-top: 0; }
.inline-guidance > p { margin-bottom: 16px; }
.guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guidance-grid details { overflow: hidden; border: 1px solid var(--slate-300); border-radius: 8px; background: var(--white); }
.guidance-grid summary { padding: 14px 16px; color: var(--navy-800); font-weight: 760; cursor: pointer; }
.guidance-grid details[open] summary { border-bottom: 1px solid var(--slate-200); background: #fbfcfd; color: var(--teal-800); }
.guidance-grid ol, .guidance-grid ul { display: grid; gap: 9px; margin: 0; padding: 15px 20px 17px 36px; color: var(--slate-700); font-size: 14px; }
.guidance-grid strong { color: var(--navy-800); }
.completion-support { margin-top: 24px; padding: 20px; border: 1px solid #b8d6d7; border-left: 4px solid var(--teal-700); border-radius: var(--radius); background: #f3fbfb; font-size: 14px; }
.completion-support h2, .completion-support p { margin-top: 0; }
.completion-support .support-boundary { margin-top: 12px; padding-top: 12px; }
.helper-mode legend { padding-right: 10px; font-size: 18px; font-weight: 760; }
.helper-mode .field-grid { margin-top: 16px; }
.preparation-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); gap: 18px 28px; margin-bottom: 24px; }
.preparation-guidance { grid-column: 1 / -1; padding: 16px; border-left: 4px solid var(--teal-700); background: var(--surface); }
.preparation-guidance h3 { margin: 0 0 8px; }
.missing-information { display: grid; gap: 7px; margin: 10px 0; padding-left: 20px; }
.button-link { padding: 0; border: 0; background: transparent; color: var(--teal-800); font: inherit; font-weight: 700; text-align: left; text-decoration: underline; }
.button-link:hover { text-decoration-thickness: 2px; }
.direct-entry-note { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--slate-300); }
.direct-entry-note ul { margin: 8px 0; }
.field-error { display: block; color: var(--red-700); font-weight: 700; }
.field [aria-invalid="true"] { border-color: var(--red-700); }
.save-state { display: grid; gap: 3px; padding: 10px 0; }
.save-state strong { color: var(--navy-950); }
.save-state span { color: var(--slate-600); font-size: 13px; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
.storage-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.storage-choice { display: grid; align-content: start; gap: 10px; padding: 18px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--surface); }
.storage-choice h3, .storage-choice p { margin: 0; }
.storage-choice .button { width: 100%; margin-top: 4px; white-space: normal; }

.action-bar {
  min-height: var(--footer-height);
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 245px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  border-top: 1px solid var(--slate-300);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -8px 24px rgb(7 28 52 / 6%);
}
.action-bar > p { margin: 0; font-size: 13px; }
.action-bar > div { display: flex; gap: 12px; }

dialog { width: min(620px, calc(100% - 28px)); padding: 0; border: 1px solid var(--slate-300); border-radius: 12px; box-shadow: 0 24px 70px rgb(7 28 52 / 26%); }
dialog::backdrop { background: rgb(7 28 52 / 48%); }
.dialog-content { padding: 24px; }
.dialog-content p { margin: 10px 0; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 0; font-size: 23px; }
.install-instructions { margin: 18px 0; font-size: 17px; line-height: 1.6; }
.install-note { padding: 16px; border: 1px solid var(--slate-300); border-left: 4px solid var(--teal-700); border-radius: 8px; background: var(--surface); }
.install-note p { margin: 6px 0 0; color: var(--slate-700); }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .app-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .utility-rail { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--slate-300); border-left: 0; }
  .utility-rail section + section { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--slate-300); }
  .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-bar { grid-template-columns: 192px 1fr auto; }
}

@media (max-width: 820px) {
  :root { --header-height: auto; --footer-height: auto; }
  .app-header { position: relative; height: auto; min-height: 68px; padding: 13px 16px; }
  .offline-status { display: none; }
  .app-grid { display: block; }
  .step-nav { display: none; }
  .workspace { padding: 26px 18px 42px; }
  .mobile-step-nav { display: grid; gap: 6px; max-width: 420px; margin: 0 0 24px; font-weight: 760; }
  .mobile-step-nav select { min-height: 44px; padding: 9px 38px 9px 12px; border: 1px solid #aebbc8; border-radius: 7px; background: var(--white); color: var(--navy-950); font: inherit; }
  .entry-choice, .overview-intro, .guidance-grid, .utility-rail, .two-columns, .three-columns, .timeline-grid, .transaction-grid, .report-grid { grid-template-columns: 1fr; }
  .span-two, .span-three, .field-wide, .report-section.full { grid-column: auto; }
  .utility-rail { display: grid; gap: 26px; padding: 26px 18px; }
  .utility-rail section + section { padding: 24px 0 0; border-top: 1px solid var(--slate-300); border-left: 0; }
  .action-bar { position: static; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px; }
  .action-bar > p { grid-column: 1 / -1; grid-row: 1; }
  .action-bar > div { justify-content: flex-end; }
  .review-heading { display: block; }
  .review-heading .button { margin-top: 16px; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .report-toolbar > div { flex-wrap: wrap; }
  .report-preview { min-height: 0; padding: 24px; }
  .report-preview dl { grid-template-columns: 1fr; gap: 2px; }
  .signature-lines { grid-template-columns: 1fr; gap: 34px; }
  .preparation-controls { grid-template-columns: 1fr; }
  .preparation-guidance { grid-column: auto; }
}

@media (max-width: 620px) {
  .brand { gap: 10px; font-size: 18px; }
  .brand-mark { transform: scale(.86); }
  .button { white-space: normal; }
  .storage-choice-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 8px; }
  #pwa-install { max-width: 126px; }
  .page-heading h1 { font-size: 28px; }
  .entry-choice { padding: 18px; }
  .entry-form { padding: 14px; }
  .section-toolbar { align-items: stretch; flex-direction: column; }
  .timeline-preview-heading { display: grid; }
  .mini-report { width: 100%; padding: 16px; }
  .action-bar { grid-template-columns: 1fr; }
  .action-bar > p, .action-bar > div { grid-column: 1; }
  .action-bar > div, .action-bar > button { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .action-bar > button { display: inline-flex; }
  .record-item { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
  .table-wrap { border: 0; overflow: visible; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table-wrap tr { margin-bottom: 12px; padding: 11px; border: 1px solid var(--slate-300); border-radius: 8px; }
  .table-wrap td { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px; border-bottom: 1px solid var(--slate-200); }
  .table-wrap td::before { content: attr(data-label); font-weight: 750; color: var(--navy-800); }
  .table-wrap td:last-child { border: 0; }
}

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

@page { size: Letter; margin: .55in; }

@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .app-header, .step-nav, .mobile-step-nav, .utility-rail, .action-bar, .notice, .page-heading, .declaration-editor, .privacy-banner, .preparation-controls, .project-support { display: none !important; }
  .app-grid, .workspace, .step-panel { display: block !important; width: auto; max-width: none; margin: 0; padding: 0; }
  .step-panel:not([data-step="7"]) { display: none !important; }
  .report-shell { overflow: visible; border: 0; }
  .report-toolbar { display: none !important; }
  .report-preview { display: block; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .report-preview h2 { break-after: avoid; }
  .report-section, .report-preview table, .signature-lines { break-inside: avoid; }
  .report-grid { gap: 0 18px; }
}
