/* Automated Underwriting demo. Tokens follow the product screens on
   automateduwreports.com (website/screens/screen.css in
   jimmydenero/insurance-underwriting-software): dark green rail, pale grey
   workspace, white panels, one green accent, Inter Tight. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-tight-latin.woff2") format("woff2"); }

:root {
  --rail: #0e2a22; --rail-2: #29473c; --rail-text: #c7d6cf; --rail-muted: #9fb8ac;
  --accent: #19c37d; --accent-ink: #136744; --accent-soft: #d9f7e8; --accent-deep: #14513a;
  --bg: #f3f4f2; --card: #fff; --ink: #0b0c0c; --text: #3d4641; --muted: #66716c;
  --line: #e0e5df; --line-2: #e9ece7; --neutral: #eef0ed; --neutral-ink: #55605a;
  --warn-bg: #fff3dc; --warn-ink: #70542b; --warn: #c98a1c;
  --info-bg: #e6f0ff; --info-ink: #24497f;
  --bad-bg: #fde8e4; --bad-ink: #8c2f1f;
  --r-panel: 14px; --r-small: 8px;
  --shadow: 0 1px 2px rgba(14, 42, 34, .04), 0 6px 18px rgba(14, 42, 34, .05);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1 { font-size: 30px; font-weight: 500; letter-spacing: -1px; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 500; letter-spacing: -.4px; line-height: 1.25; }
h3 { font-size: 15px; font-weight: 600; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sub { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--rail); color: #fff; padding: 26px 18px 22px; display: flex; flex-direction: column; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.2px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; }
.org { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.45; color: var(--rail-text); }
.org small { font-size: 12.5px; color: var(--rail-muted); }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-nav span { display: block; padding: 11px 12px; border-radius: 8px; font-size: 14px; color: var(--rail-text); text-decoration: none; }
.side-nav a.active { background: var(--rail-2); color: #fff; }
.side-nav a:hover { color: #fff; }
.side-nav .soon { color: #7f978b; cursor: default; }
.side-foot { margin-top: auto; display: grid; gap: 18px; }
.reset { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; background: transparent; color: var(--rail-text); font-size: 13px; cursor: pointer; }
.reset:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.who { display: flex; flex-direction: column; font-size: 13px; color: #dfe9e4; line-height: 1.5; }
.who small { color: var(--rail-muted); font-size: 12.5px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0 36px; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }
.crumbs .sep { color: #b4bdb7; }
.top-right { display: flex; align-items: center; gap: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #e5ece7; color: var(--rail); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.content { padding: 30px 36px 64px; max-width: 1480px; width: 100%; outline: none; }

/* ---------- shared pieces ---------- */
.heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 4px 0 20px; }
.heading .sub { margin-top: 7px; font-size: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; box-shadow: var(--shadow); }
.panel.flush { padding: 0; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 6px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutral); color: var(--neutral-ink); }
.chip.good { background: var(--accent-soft); color: var(--accent-deep); }
.chip.info { background: var(--info-bg); color: var(--info-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.small { padding: 3px 8px; font-size: 11px; }
.chip.on-dark { background: rgba(255, 255, 255, .1); color: #dff3e8; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: #f7f8f6; }
.btn.primary { background: var(--rail); border-color: var(--rail); color: #fff; box-shadow: 0 1px 2px rgba(14, 42, 34, .2), 0 4px 12px rgba(14, 42, 34, .14); }
.btn.primary:hover { background: #163a2f; transform: translateY(-1px); }
.btn.primary svg { color: var(--accent); }
.btn.primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.big { min-height: 50px; padding: 0 26px; font-size: 15px; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); background: var(--bg); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--rail); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.tag.hazard { background: #b4441f; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.footnote { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.notice { padding: 13px 16px; background: var(--warn-bg); border-radius: 9px; font-size: 13px; line-height: 1.5; color: var(--warn-ink); margin-top: 18px; }
.empty-state { display: grid; gap: 10px; justify-items: start; padding: 34px; }
.empty-state a:not(.btn) { color: var(--accent-ink); }

/* ---------- requests ---------- */
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #6a786f; font-weight: 500; background: #f6f7f4; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 17px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:hover { background: #f7faf8; }
.row-link { text-decoration: none; }
.row-link strong { font-weight: 600; }
.pill-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.go { color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; }
.go span { margin-right: 4px; }
.go svg { display: inline; vertical-align: -3px; }
tr:hover .go { color: var(--accent-ink); }

/* ---------- request ---------- */
.trail { display: flex; gap: 6px; border-bottom: 1px solid #dce2dc; margin-bottom: 22px; }
.trail a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 13px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; color: #6d7973; text-decoration: none; }
.trail a:hover { color: var(--ink); }
.trail a.active { color: var(--accent-ink); border-bottom-color: var(--accent-ink); font-weight: 600; }
.trail .step { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--neutral); color: var(--neutral-ink); font-weight: 600; }
.trail a.active .step { background: var(--accent-ink); color: #fff; }
.trail small { font-size: 11.5px; color: var(--muted); font-weight: 500; background: var(--neutral); padding: 2px 7px; border-radius: 10px; }
.trail small.ok { background: var(--accent-soft); color: var(--accent-deep); }

/* photos */
.analyze { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; margin-bottom: 26px; }
.analyze .sub { margin-top: 6px; font-size: 14px; max-width: 62em; }
.analyze.is-done { border-color: #bfe9d3; background: linear-gradient(180deg, #f4fcf8, #fff); }
.progress { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 6px; }
.bar { height: 6px; border-radius: 6px; background: #e8ece8; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .45s ease; }
.progress-text { font-size: 13px; color: var(--text); }
.photo-group { margin-bottom: 26px; }
.photo-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.photo-group h3 small { font-weight: 500; margin-left: 4px; }
.photo-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #dfe3df; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.02); }
.photo-card figcaption { padding: 11px 13px 13px; }
.photo-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.caption { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-mark { display: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); place-items: center; flex: none; }
.done-mark svg { width: 14px; height: 14px; }
.desc { display: none; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.photo-card.reviewed .done-mark { display: grid; animation: pop .3s ease; }
.photo-card.reviewed .desc { display: block; }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.photo-card.scanning { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 195, 125, .25), var(--shadow); }
.photo-card.scanning .scan { opacity: 1; background: linear-gradient(180deg, transparent 0%, rgba(25, 195, 125, .0) 40%, rgba(25, 195, 125, .55) 50%, rgba(25, 195, 125, 0) 60%, transparent 100%); background-size: 100% 250%; animation: scan .56s linear; }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- the form ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
.form-col { display: grid; gap: 18px; min-width: 0; }
.notice-panel { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-color: #f0dcb4; background: #fffaf0; }
.form-summary { padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; }
.sum-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.sum-stats div { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sum-stats b { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.4px; }
.sum-stats .bad b { color: #b4441f; }
.sum-stats .ok b { color: var(--accent-ink); }
.sum-action { display: flex; align-items: center; gap: 10px; justify-self: end; }
.jump { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { padding: 5px 10px; border-radius: 20px; background: var(--neutral); color: var(--neutral-ink); font-size: 12px; text-decoration: none; }
.jump a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.sec { padding: 22px 24px 8px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-num { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 7px; border-radius: 6px; }
.fields { display: grid; gap: 14px; padding-bottom: 16px; }
.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 12.5px; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; border: 1px solid #d5dcd6; border-radius: 8px; padding: 9px 11px; background: #fff; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 195, 125, .18); }

.q { padding: 16px 12px; margin: 0 -12px; border-top: 1px solid var(--line-2); border-radius: 10px; scroll-margin-top: 90px; transition: background .15s, box-shadow .15s; }
.sec-head + .q { border-top: 0; }
.q.is-selected, .g-row.is-selected { background: #f3fbf7; box-shadow: inset 3px 0 0 var(--accent); }
.q.has-error { box-shadow: inset 3px 0 0 #d9663a; }
.q-head { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.q-num { font-size: 12px; color: #8a958f; padding-top: 2px; font-variant-numeric: tabular-nums; width: 20px; flex: none; }
.q-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.q-text strong { font-weight: 600; }
.q-text span { color: var(--text); }
.seg { display: inline-flex; flex: none; border: 1px solid #d0d8d2; border-radius: 9px; overflow: hidden; background: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; min-width: 52px; text-align: center; padding: 7px 12px; font-size: 13px; border-left: 1px solid #d0d8d2; cursor: pointer; color: var(--text); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--rail); color: #fff; font-weight: 600; }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--accent); }
.seg label:hover span { background: #f2f5f3; }
.seg input:checked + span:hover { background: var(--rail); }
.q-meta, .g-meta { display: flex; align-items: center; gap: 7px; margin: 10px 0 0 34px; flex-wrap: wrap; }
.g-meta { margin: 7px 0 0; }
.ev-thumb { width: 46px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: #ddd; flex: none; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumb:hover, .ev-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(25, 195, 125, .3); }
.basis { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: var(--neutral); color: var(--neutral-ink); white-space: nowrap; }
.basis.good { background: var(--accent-soft); color: var(--accent-deep); }
.basis.info { background: var(--info-bg); color: var(--info-ink); }
.basis.warn { background: var(--warn-bg); color: var(--warn-ink); }
.why { border: 0; background: none; padding: 3px 4px; font-size: 12px; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(19, 103, 68, .35); }
.edited { display: none; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: #efe9fb; color: #4f3b8a; }
.is-edited .edited { display: inline-block; }
.sub-block { margin: 12px 0 0 34px; display: grid; gap: 8px; }
.sub-block .lbl { font-size: 12px; }
.narrative textarea { min-height: 70px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border: 1px solid #d5dcd6; border-radius: 20px; font-size: 13px; cursor: pointer; background: #fff; }
.check input { accent-color: var(--rail); margin: 0; width: 15px; height: 15px; }
.check:has(input:checked) { border-color: var(--rail); background: #f0f6f3; }
.pct-wrap { margin: 12px 0 0 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pct-wrap > .pct { min-width: 210px; }
.pct-more { flex-basis: 100%; }
.pct-more summary { display: inline-block; cursor: pointer; font-size: 12.5px; color: var(--accent-ink); list-style: none; padding: 2px 0; }
.pct-more summary::-webkit-details-marker { display: none; }
.pct-more summary::before { content: "+ "; }
.pct-more[open] summary::before { content: "− "; }
.pct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 8px; }
.pct { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.pct-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct.on { border-color: #a9dcc3; background: #f3fbf7; color: var(--ink); font-weight: 600; }
.pct-in { display: inline-flex; align-items: center; gap: 2px; }
.pct-in input { width: 46px !important; padding: 4px 6px !important; text-align: right; font-size: 13px !important; }
.pct-in i { font-style: normal; font-size: 12px; }
.bldg { display: grid; gap: 8px; }
.bldg-row { display: grid; grid-template-columns: 26px 1fr 1.6fr .8fr .8fr 32px; gap: 10px; align-items: end; }
.bldg-n { font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.bldg .btn { justify-self: start; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; padding-bottom: 14px; }
.g-row { padding: 10px; margin: 0 -10px; border-radius: 10px; scroll-margin-top: 90px; transition: background .15s; }
.g-row.has-error { box-shadow: inset 3px 0 0 #d9663a; }
.ratings { display: grid; gap: 2px; padding-bottom: 14px; }
.rating-group { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
.rating { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.rating .lbl { font-size: 14px; color: var(--ink); }
.ratings .g-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ratings .g-meta { margin: 0 0 0 16px; }
#sec-narrative .g-row { padding-bottom: 18px; }
#sec-narrative textarea { min-height: 150px; }

/* evidence pane */
.pane { position: sticky; top: 76px; }
.pane-inner { padding: 18px; display: grid; gap: 12px; max-height: calc(100vh - 96px); overflow: auto; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pane h2 { font-size: 19px; }
.pane h3 { font-size: 13px; margin-top: 4px; }
.pane-text { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.pane-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pane-photos img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.confirm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.confirm-list button { width: 100%; text-align: left; border: 1px solid #f0dcb4; background: #fffaf0; border-radius: 8px; padding: 9px 11px; font-size: 13px; color: var(--warn-ink); cursor: pointer; }
.confirm-list button:hover { border-color: var(--warn); }
.hint { font-size: 12.5px; color: var(--muted); }
.answer-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.answer { font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.edit-line { font-size: 12.5px; color: #4f3b8a; background: #f4f0fc; border-radius: 8px; padding: 8px 10px; }
.ev-photo { display: grid; gap: 8px; }
.ev-zoom { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #ddd; }
.ev-zoom img { width: 100%; height: auto; }
.ev-box { position: absolute; border: 3px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(11, 12, 12, .28); animation: boxin .35s ease; }
@keyframes boxin { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.ev-photo figcaption { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.ev-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-thumbs .ev-thumb { width: 64px; height: 48px; }
.no-photo { padding: 22px; border: 1px dashed #cfd6d0; border-radius: 10px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- review ---------- */
.banner { display: flex; align-items: center; gap: 17px; border-radius: var(--r-panel); padding: 22px 24px; margin-bottom: 18px; }
.banner p { font-size: 13.5px; margin-top: 4px; }
.banner.dark { background: var(--rail); color: #fff; }
.banner > div:nth-child(2) { flex: 1; min-width: 0; }
.banner-btn { flex: none; }
.btn.on-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .16); }
.arrow { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.banner.dark h2 { font-size: 24px; letter-spacing: -.6px; }
.banner.dark p { color: #c4d9cc; }
.banner.light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.banner.light p { color: var(--muted); }
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #f0dcb4; }
.check-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; font-weight: 700; font-size: 20px; }
.check-dot svg { width: 24px; height: 24px; }
.check-dot.warn { background: var(--warn); color: #fff; }
.check-dot.light { background: var(--info-bg); color: var(--info-ink); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.split .panel { padding: 24px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 0; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.ticks .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.ticks .dot svg { width: 15px; height: 15px; }
.ticks .bad .dot { background: var(--bad-bg); color: var(--bad-ink); }
.errors { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-ink); font-size: 13.5px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.list-h { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.plain-list a { text-decoration: none; color: var(--text); }
.plain-list a:hover { color: var(--accent-ink); text-decoration: underline; }
.plain-list li.done a { color: var(--muted); text-decoration: line-through; }
.change { font-size: 13px; color: var(--muted); white-space: nowrap; }
.change b { color: #4f3b8a; }
.approval-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 9px; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 150px 1fr; margin-top: 14px; font-size: 13.5px; }
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.facts dt { color: var(--muted); }
.ready { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); }
.ready h3 { color: var(--accent-deep); }
.ready .sub { color: var(--accent-deep); margin-top: 3px; }
.history { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--text); display: grid; gap: 6px; }

/* ---------- the report document ---------- */
.report-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.report-bar > div:first-child { display: flex; align-items: center; gap: 12px; }
.report-actions { display: flex; gap: 10px; }
.doc { display: grid; gap: 22px; justify-content: center; counter-reset: page; }
.doc-page { position: relative; width: 816px; min-height: 1056px; background: #fff; color: #111; padding: 44px 48px 40px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 10px 30px rgba(0, 0, 0, .07); border-radius: 4px; font-size: 11.5px; line-height: 1.4; display: flex; flex-direction: column; }
.draft-mark .doc-page::before { content: "NOT APPROVED"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 86px; font-weight: 600; letter-spacing: 6px; color: rgba(180, 68, 31, .09); pointer-events: none; white-space: nowrap; }
.k { display: block; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #555; }
.v { display: block; font-size: 12.5px; min-height: 17px; border-bottom: 1px solid #bbb; padding: 2px 0; }
.doc-top { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start; }
.doc-id { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.doc-id .wide { grid-column: 1 / -1; }
.doc-title { text-align: right; }
.doc-title h2 { font-size: 17px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; line-height: 1.2; }
.doc-title span { font-size: 9px; color: #666; }
.doc-who { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 18px; margin-top: 12px; }
.doc-loc { display: grid; grid-template-columns: 70px 1fr; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid #222; }
.k-side { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.loc-grid { display: grid; grid-template-columns: 2fr .6fr 1.2fr 1.2fr; gap: 8px 14px; }
.loc-grid .wide { grid-column: span 3; }
.loc-grid .wide:first-child { grid-column: 1 / -1; }
.doc-q { width: 100%; border-collapse: collapse; margin-top: 12px; }
.doc-q th { font-size: 9.5px; font-weight: 600; text-align: left; padding: 4px; border-bottom: 1.5px solid #222; }
.doc-q th.yn, .doc-q td.yn { width: 30px; text-align: center; }
.doc-q td { padding: 4px 4px; border-bottom: 1px solid #ddd; vertical-align: top; }
.doc-q td.qn { width: 24px; color: #444; }
.doc-q .doc-sec td { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; padding: 6px; background: #f3f3f1; }
.mat { display: inline-flex; align-items: center; gap: 3px; margin: 0 7px 0 0; white-space: nowrap; }
.mat b { font-weight: 700; }
.box { display: inline-block; width: 10px; height: 10px; border: 1px solid #222; vertical-align: -1px; flex: none; }
.box.on { background: linear-gradient(45deg, transparent 42%, #111 42%, #111 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #111 42%, #111 58%, transparent 58%); }
.doc-b { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 10.5px; }
.doc-b th, .doc-b td { border: 1px solid #ccc; padding: 2px 5px; text-align: left; font-weight: 400; }
.doc-b th { background: #f6f6f4; font-weight: 600; font-size: 9.5px; }
.small { font-size: 10.5px; color: #333; }
.doc-gen { margin-top: 12px; border-top: 1.5px solid #222; padding-top: 8px; }
.doc-gen.first { margin-top: 0; }
.doc-disclaimer { margin: 14px 0 22px; padding: 8px 10px; background: #f6f6f4; font-size: 8.5px; line-height: 1.45; color: #555; }
.doc-gen h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.doc-gen h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.gen-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.gen-grid .k { width: 100%; }
.gen-grid .v { flex: 1; }
.grade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 10px; }
.grade { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.grade .k { width: 100px; }
.doc-foot { margin-top: auto; padding-top: 12px; font-size: 8.5px; color: #555; }
.doc-foot .stamp { margin-top: 6px; font-size: 10px; font-weight: 600; color: #111; }
.draft-mark .doc-foot .stamp { color: #b4441f; }
.doc-run { display: flex; justify-content: space-between; font-size: 9.5px; color: #666; border-bottom: 1px solid #ccc; padding-bottom: 6px; margin-bottom: 16px; }
.doc-h { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.narr { margin-bottom: 14px; }
.narr h3 { font-size: 11.5px; margin-bottom: 3px; }
.narr p { font-size: 12px; line-height: 1.55; }
.doc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.doc-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #ccc; }
.doc-photos figcaption { font-size: 10px; line-height: 1.45; margin-top: 5px; color: #333; }

/* ---------- lightbox, toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(8, 20, 16, .78); display: grid; place-items: center; padding: 36px; }
.lb-inner { position: relative; max-width: min(1200px, 92vw); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lb-img { position: relative; }
.lb-img img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; }
.lb-cap { padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.lb-cap p { width: 100%; font-size: 13.5px; color: var(--text); }
.lb-close { position: absolute; top: 12px; right: 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: 560px; padding: 13px 18px; border-radius: 12px; background: var(--rail); color: #e9f5ef; font-size: 14px; box-shadow: 0 12px 30px rgba(14, 42, 34, .3); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast strong { color: #fff; }
.toast.good { border-left: 4px solid var(--accent); }
.toast.warn { background: #5b4318; color: #fff3dc; border-left: 4px solid #f0b545; }

@media (max-width: 1280px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-foot { margin: 0 0 0 auto; }
  .form-layout, .split { grid-template-columns: 1fr; }
  .pane { position: static; }
  .doc-page { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- print: only the report document ---------- */
@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; }
  .side, .topbar, .heading, .trail, .report-bar, .toast, .lightbox { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .doc { display: block; }
  .doc-page { width: 8.5in; height: 11in; min-height: 0; box-shadow: none; border-radius: 0; padding: .5in .55in .45in; break-after: page; overflow: hidden; }
  .doc-page:last-child { break-after: auto; }
  .draft-mark .doc-page::before { color: rgba(180, 68, 31, .12); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
