/* SCG Portal. Warm paper, hairline rules, serif display type; amber is an accent, never a fill. */
:root {
  --navy: #0f2439;
  --navy-2: #24405e;
  --amber: #e2a03f;
  --amber-dark: #c9862a;
  --amber-wash: #fbf3e4;
  --amber-ink: #8a5713;
  --bg: #f5f3ee;
  --card: #ffffff;
  --sunk: #faf8f4;
  --text: #16222e;
  --ink-2: #44515e;
  --muted: #7a838c;
  --line: #e5e0d6;
  --line-2: #efebe4;
  --ok: #2f7a4f;
  --ok-wash: #ecf5ef;
  --warn: #b5651d;
  --err: #b23a30;
  --err-wash: #fbeeec;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.55 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* ---------- header ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner {
  max-width: 820px; margin: 0 auto; padding: 0 1.25rem; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.topbar-inner.wide { max-width: 1160px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--amber-dark); }
.topbar nav { display: flex; align-items: center; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a, .topbar nav .linklike {
  color: var(--ink-2); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 0.45rem 0.7rem; border-radius: 6px; white-space: nowrap;
}
.topbar nav a:hover, .topbar nav .linklike:hover { color: var(--navy); background: var(--sunk); }
.topbar nav a.active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav-user { margin-left: 0.6rem; padding-left: 0.9rem !important; border-left: 1px solid var(--line); border-radius: 0 !important; color: var(--muted) !important; }
.linklike { background: none; border: none; cursor: pointer; font: inherit; padding: 0; color: var(--navy-2); }
.inline { display: inline; }

main { max-width: 820px; margin: 2rem auto 3rem; padding: 0 1.25rem; }
main.wide { max-width: 1160px; }
footer { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 2rem 1rem 2.5rem; letter-spacing: 0.02em; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: 1.85rem; line-height: 1.15; margin: 0 0 0.35rem; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.75rem; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--navy); }
.eyebrow a::before { content: "← "; }
.muted { color: var(--muted); font-size: 0.92em; }
.center { text-align: center; }

/* ---------- surfaces ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; margin-bottom: 1.25rem;
}
.card > h2:first-child { margin-top: -0.1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.card-head h2 { margin: 0; }
.card.narrow { max-width: 420px; margin: 4rem auto; }
.card.locked { opacity: 0.7; }
.card.done-card { border-left: 3px solid var(--ok); }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.page-head h1 { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.page-head p { margin: 0.2rem 0 0; }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.8rem 0; }
.btn-row form { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 7px; border: 1px solid var(--line);
  background: var(--card); color: var(--navy); font: 600 0.88rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--navy-2); color: var(--navy); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-danger { background: var(--err-wash); border-color: var(--err); color: var(--err); }
.btn-sm { padding: 0.32rem 0.7rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 0.98rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- forms ---------- */
label { display: block; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.84rem; color: var(--ink-2); }
input, select, textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--line); border-radius: 7px; font: 400 0.95rem/1.3 var(--sans);
  color: var(--text); background: var(--card); transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36, 64, 94, 0.12); }
input::placeholder { color: #a8afb5; }
input[type="radio"], input[type="checkbox"] { display: inline; width: auto; margin-right: 0.4rem; }
input[type="file"] { border: none; padding: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1rem; padding: 1rem 1.15rem 0.3rem; min-width: 0; }
legend { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 0.4rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid2 > div, .grid2 > fieldset:last-of-type { grid-column: 1 / -1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
@media (max-width: 700px) { .grid2, .row3, .row2 { grid-template-columns: 1fr; gap: 0; } }

/* ---------- new deal ---------- */
.deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .deal-layout { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem 0.55rem; margin-bottom: 1rem; }
.step-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.step-num {
  font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--amber-ink);
  width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid #ecd3a8; background: var(--amber-wash);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transform: translateY(-1px);
}
.step-head h2 { margin: 0; }
.step-head p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.86rem; }

.price-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .price-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-card {
  position: relative; margin: 0; padding: 1rem 0.5rem 0.85rem; text-align: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.price-card:hover { border-color: #cbc3b4; background: var(--sunk); }
.price-card input { position: absolute; opacity: 0; pointer-events: none; }
.price-card:has(input:checked) { border-color: var(--amber-dark); background: var(--amber-wash); box-shadow: 0 0 0 1px var(--amber-dark); }
.price-card:has(input:focus-visible) { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.price-amt { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.price-tier { display: block; margin-top: 0.15rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

details.more { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1rem; }
details.more > summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.5rem; display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-weight: 400; font-size: 1.3rem; color: var(--muted); }
details.more[open] > summary::after { content: "–"; }
details.more > summary .muted { font-family: var(--sans); font-weight: 400; font-size: 0.84rem; }
details.more .more-body { padding: 0 1.5rem 0.6rem; }
details.more fieldset { border: none; border-top: 1px solid var(--line-2); border-radius: 0; padding: 1rem 0 0.2rem; margin: 0; }
details.more legend { padding: 0 0.5rem 0 0; }

.summary { position: sticky; top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem; }
.summary h2 { margin-bottom: 1rem; }
.summary dl { margin: 0 0 1.1rem; display: grid; gap: 0.75rem; }
.summary dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0.1rem 0 0; font-size: 0.93rem; color: var(--text); overflow-wrap: anywhere; }
.summary dd.empty { color: #a8afb5; }
.summary .sum-price { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.summary .sum-docs { list-style: none; padding: 0; margin: 0.2rem 0 0; }
.summary .sum-docs li { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.15rem 0; font-size: 0.9rem; }
.summary .sum-docs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; transform: translateY(-2px); }
.summary .fine { font-size: 0.78rem; color: var(--muted); margin: 0.75rem 0 0; }
@media (max-width: 900px) { .summary { position: static; } }

.send-summary { margin: 0 0 1rem; color: var(--muted); font-size: 0.88rem; }
.send-summary.ready { color: var(--text); background: var(--ok-wash); border: 1px solid #cfe3d6; border-radius: 8px; padding: 0.65rem 0.85rem; }

/* ---------- deal page ---------- */
.deal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .deal-grid { grid-template-columns: 1fr; } }
.deal-side .card { padding: 1.15rem 1.25rem; }
.deal-side h2 { font-size: 1.02rem; }
.signlist { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.signlist li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-2); font-size: 0.92rem; }
.signlist li:last-child { border-bottom: none; }
.signlist .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #c3bcae; margin-top: 0.42rem; flex-shrink: 0; }
.signlist .dot.done { background: var(--ok); border-color: var(--ok); }
.signlist small { display: block; color: var(--muted); font-size: 0.8rem; }
.stack { display: grid; gap: 0.5rem; }
.stack form { margin: 0; }
.stack .btn { width: 100%; }
.meta-line { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.meta-line strong { color: var(--ink-2); font-weight: 600; }

/* ---------- DC submit ---------- */
.contract-form { border-top: 1px solid var(--line-2); padding-top: 1rem; margin-bottom: 1rem; }
.contract-form:first-of-type { border-top: none; padding-top: 0; }
.docrow { border-top: 1px solid var(--line-2); padding: 1rem 0; }
.docrow-head { display: flex; align-items: flex-start; gap: 0.7rem; }
.docrow-head > div { flex: 1; min-width: 0; }
.docrow-head strong { color: var(--navy); font-weight: 600; }
.docrow.is-done .doc-num { background: var(--ok); }
.docfiles { list-style: none; margin: 0.6rem 0 0 2.35rem; padding: 0; font-size: 0.86rem; }
.docfiles li { padding: 0.15rem 0; }
.reason { margin: 0.6rem 0 0 2.35rem; font-size: 0.86rem; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 7px; padding: 0.5rem 0.7rem; }
.docrow-actions { margin: 0.6rem 0 0 2.35rem; }
.docrow-actions .upload-form { margin: 0 0 0.4rem; }
.docrow-actions .filebox { flex: 0 1 auto; min-width: 0; padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.docrow-actions .filebox input { font-size: 0.78rem; }
.cant summary { cursor: pointer; font-size: 0.84rem; color: var(--navy-2); font-weight: 600; }
.cant form { margin-top: 0.5rem; }
.plain { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.plain li { padding: 0.25rem 0; }
.summary-card { position: sticky; top: 80px; }
@media (max-width: 960px) { .summary-card { position: static; } .docfiles, .reason, .docrow-actions { margin-left: 0; } }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0 0.8rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: none; }
.table.clickable tbody tr { cursor: pointer; transition: background 0.12s; }
.table.clickable tbody tr:hover { background: var(--sunk); }
.table td strong { color: var(--navy); font-weight: 600; }
.table-card { padding: 1.1rem 0.7rem 0.4rem; overflow-x: auto; }

.tabs { display: flex; gap: 0.15rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }
.tab {
  padding: 0.5rem 0.8rem; text-decoration: none; color: var(--muted);
  font-size: 0.86rem; font-weight: 500; margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--amber); }

/* ---------- rep home ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.tile p { margin: 0; }
.tile-main { background: var(--navy); border-color: var(--navy); }
.tile-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile-num { font-family: var(--display); font-size: 1.75rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; margin: 0.2rem 0 0.1rem !important; }
.tile-sub { font-size: 0.8rem; color: var(--muted); }
.tile-main .tile-label, .tile-main .tile-sub { color: #b9c6d3; }
.tile-main .tile-num { color: #f3c47e; }
.cell-sub { display: block; font-size: 0.78rem; margin-top: 0.15rem; }
.yn { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.yn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.yn-yes { color: var(--ok); }
.yn-yes::before { background: var(--ok); }
.yn-no { color: var(--muted); font-weight: 500; }
.yn-no::before { border: 1.5px solid #c3bcae; width: 5px; height: 5px; }

/* ---------- owner view ---------- */
.filterbar { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0.5rem 0 0.9rem; }
.filter-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.3rem; }
.chip-link {
  padding: 0.32rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font-size: 0.84rem; font-weight: 500; text-decoration: none;
}
.chip-link:hover { border-color: #cbc3b4; color: var(--navy); }
.chip-link.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-n { display: inline-block; min-width: 1.3rem; padding: 0 0.35rem; margin-left: 0.2rem; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: 0.72rem; text-align: center; }
.tab.active .tab-n { background: var(--amber-wash); color: var(--amber-ink); }
.table tr.is-selected td { background: var(--amber-wash); }

/* ---------- status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.01em; vertical-align: middle; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge-new { background: #eeece6; color: #5d6670; }
.badge-proposal_sent { background: #e8eef5; color: #2c5480; }
.badge-signed { background: #efeaf6; color: #5e3f8c; }
.badge-collecting { background: var(--amber-wash); color: var(--amber-ink); }
.badge-ready { background: var(--ok-wash); color: var(--ok); }
.badge-submitted { background: #e6f2f3; color: #22686f; }
.badge-kicked_back { background: var(--err-wash); color: var(--err); }
.badge-accepted { background: var(--ok); color: #fff; }

.prog { background: var(--line-2); border-radius: 999px; height: 5px; overflow: hidden; min-width: 80px; margin-bottom: 0.25rem; }
.prog.big { height: 8px; margin: 0.4rem 0 1rem; }
.prog-bar { background: var(--ok); height: 100%; border-radius: 999px; transition: width 0.3s; }

.flash { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem; border: 1px solid; }
.flash-ok { background: var(--ok-wash); color: #24603e; border-color: #cfe3d6; }
.flash-err { background: var(--err-wash); color: #8f2c24; border-color: #f0cfca; }
.flash-neutral { background: var(--sunk); color: var(--ink-2); border-color: var(--line); }

.copybox {
  display: flex; align-items: center; gap: 0.6rem; background: var(--sunk);
  border: 1px solid var(--line); border-radius: 7px; padding: 0.45rem 0.5rem 0.45rem 0.8rem; overflow: hidden;
}
.copybox code { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; color: var(--ink-2); }

.note { border-top: 1px solid var(--line-2); padding: 0.75rem 0; font-size: 0.9rem; }
.note-head { font-weight: 600; font-size: 0.82rem; margin-bottom: 0.15rem; color: var(--navy); }
.note-kickback { background: var(--err-wash); margin: 0 -0.6rem; padding: 0.75rem 0.6rem; border-radius: 6px; }
.note-system { color: var(--muted); }
.note-form { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.note-form input { margin-top: 0; }

.inline-upload { display: flex; gap: 0.4rem; align-items: center; }
.inline-upload input { margin: 0; font-size: 0.78rem; width: auto; max-width: 190px; }
.filerow { display: inline-block; margin-bottom: 0.2rem; }

/* ---------- client portal ---------- */
.portal-head { text-align: center; margin: 0.5rem 0 1.75rem; }
.portal-head h1 { font-size: 2.1rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin: 0.9rem 0; }
.stat { background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; padding: 0.9rem 1.05rem; }
.stat.highlight { background: var(--navy); border-color: var(--navy); }
.stat.highlight .stat-label { color: #b9c6d3; }
.stat.highlight .stat-num { color: #f3c47e; }
.stat-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.stat-num { font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }

.disclaimer { font-size: 0.76rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 0.75rem; margin-top: 0.9rem; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 0.6rem; }
@media (max-width: 700px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs label { font-weight: 600; font-size: 0.84rem; }
.calc-inputs input[type="range"] { width: 100%; padding: 0; border: none; box-shadow: none; accent-color: var(--navy); }
.calc-results { background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; padding: 0.9rem 1.1rem; align-self: start; }
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line-2); font-size: 0.9rem;
}
.calc-row:last-child { border-bottom: none; }
.calc-row span { color: var(--muted); }
.calc-big { font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.calc-fee strong { color: var(--err); }

.roadmap { padding-left: 1.4rem; margin: 0; }
.roadmap li { margin-bottom: 0.8rem; }
.roadmap li.current { background: var(--amber-wash); margin-left: -1.4rem; padding: 0.55rem 0.6rem 0.55rem 1.4rem; border-radius: 8px; border-left: 3px solid var(--amber); list-style-position: inside; }

.doc { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 0.6rem; background: var(--card); }
.doc > summary { cursor: pointer; padding: 0.8rem 1rem; font-size: 0.96rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.doc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 0.78rem; font-weight: 600; flex-shrink: 0;
}
.doc-body { padding: 0.25rem 1rem 1rem; border-top: 1px solid var(--line-2); }

.chip { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: #eeece6; color: #5d6670; }
.chip-ok { background: var(--ok-wash); color: var(--ok); }
.chip-wait { background: #e8eef5; color: #2c5480; }
.chip-warn { background: var(--err-wash); color: var(--err); }

.upload-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.6rem 0; }
.filebox {
  border: 1.5px dashed #d4cdbf; border-radius: 8px; padding: 0.6rem 0.9rem; background: var(--sunk);
  cursor: pointer; font-weight: 600; font-size: 0.88rem; margin: 0; flex: 1; min-width: 220px;
}
.filebox input { margin-top: 0.3rem; }
.filelist { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; font-size: 0.86rem; }

.howto, .alt { margin-top: 0.5rem; font-size: 0.88rem; }
.howto summary, .alt summary { cursor: pointer; color: var(--navy-2); font-weight: 600; }
.howto ul { padding-left: 1.2rem; }
.howto li { margin-bottom: 0.35rem; }
.alt-form label { font-weight: 500; }
.alt-form input[type="date"], .alt-form input[type="text"], .alt-form input:not([type]) { display: inline-block; width: auto; min-width: 200px; }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.5rem; }
  main { margin-top: 1.25rem; padding: 0 1rem; }
  .topbar-inner { padding: 0 1rem; gap: 0.75rem; }
  .card, .step { padding-left: 1.1rem; padding-right: 1.1rem; }
  details.more > summary, details.more .more-body { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (max-width: 1100px) { .has-nav .brand-name { display: none; } }

@media print { .topbar, footer, .noprint { display: none !important; } body { background: #fff; } }
