:root {
  --ink: #14213D;
  --ink-2: #4A5875;
  --ink-3: #7B879E;
  --paper: #F4F6FA;
  --surface: #FFFFFF;
  --line: #DCE1EA;
  --line-2: #EDF0F5;
  --royal: #1F4FBF;
  --royal-2: #E7EEFC;
  --royal-ink: #163A8F;
  --flame: #C9711F;
  --flame-2: #FCF0E3;
  --leaf: #2E7D5B;
  --leaf-2: #E5F3EC;
  --stop: #B42318;
  --stop-2: #FDECEA;
  --radius: 10px;
  --serif: 'Bree Serif', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75em; }
a { color: var(--royal); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #8FB0F5; outline-offset: 2px; }
.num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.boot { padding: 3rem; text-align: center; color: var(--ink-3); }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--royal); color: #fff; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top)); }
.topbar .brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; }
.topbar .brand img { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 2px; }
.topbar .brand span { font-family: var(--serif); font-size: 1.1rem; display: none; }
.workspace { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .45rem .9rem; color: #fff; text-align: left; cursor: pointer; }
.workspace b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace small { opacity: .8; font-size: .75rem; display: block; line-height: 1.1; }
.workspace .chev { margin-left: auto; opacity: .85; }
.main { padding: 1rem; padding-bottom: 6rem; width: 100%; max-width: 1100px; margin: 0 auto; }
.main:focus { outline: none; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem .25rem .45rem; color: var(--ink-2); text-decoration: none; font-size: .72rem; font-weight: 500; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--royal); }
.nav a.on::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--royal); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--flame); color: #fff; font-size: .72rem; font-weight: 700; }
.nav .badge { position: absolute; top: 4px; left: calc(50% + 6px); }

@media (min-width: 900px) {
  .shell { grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; padding: .7rem 1.25rem; }
  .topbar .brand span { display: inline; }
  .workspace { flex: 0 1 420px; margin-left: 1.5rem; }
  .nav { position: sticky; top: 58px; align-self: start; height: calc(100vh - 58px); display: flex; flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 1rem .75rem; gap: 2px; background: transparent; }
  .nav a { flex-direction: row; gap: .75rem; font-size: .95rem; padding: .65rem .8rem; border-radius: 8px; }
  .nav a.on { background: var(--royal-2); }
  .nav a.on::before { display: none; }
  .nav .badge { position: static; margin-left: auto; }
  .main { padding: 1.75rem 2rem 3rem; }
}

/* ---------- building blocks ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--royal); border-color: var(--royal); color: #fff; }
.btn.primary:hover { background: var(--royal-ink); }
.btn.go { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.btn.warn { color: var(--flame); border-color: #EBC9A5; background: var(--flame-2); }
.btn.danger { color: var(--stop); border-color: #F2C3BE; }
.btn.link { border: 0; background: none; color: var(--royal); padding: .25rem .4rem; min-height: 0; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.small { min-height: 34px; padding: .3rem .7rem; font-size: .875rem; }

label.field { display: block; margin-bottom: .9rem; }
label.field > span { display: block; font-weight: 600; margin-bottom: .3rem; }
label.field > em { display: block; font-style: normal; color: var(--ink-3); font-size: .85rem; margin-top: .25rem; }
input[type=text], input[type=password], input[type=date], input[type=month], input[type=search], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid #C6CEDB; border-radius: 8px; background: #fff; font-size: 16px;
}
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--royal); outline: 2px solid #B9CCF5; outline-offset: 0; }
.amount-input { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .75rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; }

.notice { border-radius: 8px; padding: .75rem .9rem; margin-bottom: 1rem; background: var(--royal-2); color: var(--royal-ink); }
.notice.warn { background: var(--flame-2); color: #7A3E06; }
.notice.bad { background: var(--stop-2); color: var(--stop); }
.notice.good { background: var(--leaf-2); color: #1D5A40; }

.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.draft { background: #EEF0F4; color: var(--ink-2); }
.pill.for_review, .pill.for_approval { background: var(--flame-2); color: #8A4A0C; }
.pill.posted { background: var(--leaf-2); color: #1D5A40; }
.pill.returned { background: var(--stop-2); color: var(--stop); }

/* ---------- home ---------- */
.cash-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; margin-bottom: 1rem; }
.cash-hero .label { color: var(--ink-2); font-weight: 500; }
.cash-hero .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; margin: .2rem 0 .6rem; font-variant-numeric: tabular-nums; }
.cash-hero .split { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; }
.cash-hero .split b { color: var(--ink); font-weight: 600; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flow .panel { margin: 0; }
.flow .v { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow .in .v { color: var(--leaf); }
.flow .out .v { color: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; height: 140px; margin-top: .5rem; }
.bars .m { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .pair { display: flex; gap: 3px; align-items: flex-end; height: 110px; }
.bars .pair i { display: block; width: 12px; border-radius: 3px 3px 0 0; }
.bars .pair i.r { background: var(--leaf); }
.bars .pair i.d { background: #9AA8C4; }
.bars span { font-size: .75rem; color: var(--ink-3); }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.todo-strip a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1px solid #EBC9A5; background: var(--flame-2); color: #6F3A08; border-radius: var(--radius); text-decoration: none; font-weight: 600; margin-bottom: .6rem; }

/* ---------- record ---------- */
.choices { display: grid; gap: .75rem; }
@media (min-width: 700px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: .9rem; align-items: flex-start; text-align: left; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--royal); }
.choice .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--royal-2); color: var(--royal); }
.choice.in .ico { background: var(--leaf-2); color: var(--leaf); }
.choice.out .ico { background: var(--flame-2); color: var(--flame); }
.choice b { display: block; font-size: 1.05rem; }
.choice span { color: var(--ink-2); font-size: .9rem; }
.choice.minor { padding: .8rem 1rem; }
.choice.minor .ico { width: 36px; height: 36px; }

.items { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.item { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: "acct rm" "help help" "amt amt" "memo memo"; gap: .5rem; padding: .75rem; border-bottom: 1px solid var(--line-2); background: #FBFCFE; }
.item > select { grid-area: acct; }
.item > [name=memo] { grid-area: memo; }
.item > [name=amount] { grid-area: amt; }
.item > .rm { grid-area: rm; }
.item > .item-help { grid-area: help; }
.item.je, .item.je > * { grid-area: auto; }
.item.je { grid-template-areas: none; grid-template-columns: 1fr 1fr; }
.item.je > select, .item.je > [name=memo] { grid-column: 1 / -1; }
@media (min-width: 700px) { .item.je { grid-template-columns: minmax(200px, 2fr) 1.4fr 120px 120px 40px; } .item.je > select, .item.je > [name=memo] { grid-column: auto; } }
.item:last-child { border-bottom: 0; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files > div { padding: .35rem 0; }
.item-help { margin: -.15rem 0 0; font-size: .85rem; color: var(--ink-3); }
@media (min-width: 700px) { .item { grid-template-columns: minmax(200px, 2fr) 2fr 150px 40px; grid-template-areas: "acct memo amt rm" "help help help help"; align-items: start; } }
.item .rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 1.4rem; line-height: 1; min-height: 44px; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; padding: .75rem 0; border-top: 2px solid var(--ink); margin-top: .5rem; font-weight: 700; font-size: 1.1rem; }
.effect { background: var(--royal-2); color: var(--royal-ink); border-radius: 8px; padding: .75rem .9rem; margin: .75rem 0; }
.effect.bad { background: var(--stop-2); color: var(--stop); }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.form-actions .btn { flex: 1 1 auto; }
@media (min-width: 700px) { .form-actions .btn { flex: 0 0 auto; } }
.files { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .5rem; }
.files div { display: flex; align-items: center; gap: .5rem; }
.combo { position: relative; }
.combo ul { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; max-height: 240px; overflow: auto; box-shadow: 0 6px 18px rgba(20,33,61,.12); }
.combo li { padding: .55rem .6rem; border-radius: 6px; cursor: pointer; }
.combo li:hover, .combo li.on { background: var(--royal-2); }

/* ---------- lists & tables ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list a.li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.list a.li:last-child { border-bottom: 0; }
.list a.li:hover { background: #FAFBFD; }
.list .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .s { color: var(--ink-2); font-size: .85rem; }
.list .a { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--ink-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .5rem .6rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.data th { font-weight: 600; color: var(--ink-2); background: #F8F9FC; position: sticky; top: 0; }
table.data td.m, table.data th.m { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.group td { font-weight: 700; background: #F3F6FC; }
/* Wide reports (e.g. All-Funds Church Summary) fit the page instead of running off it. */
table.data.wide { font-size: .78rem; }
table.data.wide th, table.data.wide td { padding: .4rem .35rem; }
table.data.wide th.m { white-space: normal; vertical-align: bottom; min-width: 5.5rem; }
table.data.wide td:first-child { min-width: 9rem; }
table.data tr.subtotal td, table.data tfoot td { font-weight: 700; border-top: 1px solid var(--ink-3); }
table.data tr.muted td { color: var(--ink-2); font-style: italic; }

.filters { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.filters > :first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .filters > :first-child { grid-column: auto; } }

.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin: .5rem 0 1rem; }
.steps div { text-align: center; font-size: .78rem; color: var(--ink-3); padding-top: .55rem; border-top: 4px solid var(--line); }
.steps div.done { border-color: var(--leaf); color: var(--ink); }
.steps div.now { border-color: var(--flame); color: var(--ink); font-weight: 600; }
details.acct summary { cursor: pointer; color: var(--royal); font-weight: 600; padding: .4rem 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { padding: .4rem 0 .4rem 1rem; border-left: 2px solid var(--line); }

/* ---------- reports ---------- */
.report-list { display: grid; gap: .6rem; }
@media (min-width: 800px) { .report-list { grid-template-columns: 1fr 1fr; } }
.report-list a { display: block; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.report-list a:hover { border-color: var(--royal); }
.report-list a b { display: block; }
.report-list a span { color: var(--ink-2); font-size: .9rem; }
.report-list a.primary { border-color: var(--royal); background: linear-gradient(var(--royal-2), var(--royal-2)) left/5px 100% no-repeat, var(--surface); padding-left: 1.3rem; }
.report-controls { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 1rem; }
.report-controls .wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .report-controls { grid-template-columns: 2fr 1fr 1fr auto auto; } .report-controls .wide { grid-column: auto; } }

.sheet { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem 1.25rem 2rem; max-width: 860px; margin: 0 auto; }
.sheet.wide { max-width: none; }
.letterhead { display: grid; grid-template-columns: 76px 1fr; gap: .9rem; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1rem; }
.letterhead img { width: 76px; height: auto; }
.letterhead .name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.letterhead .reg { font-size: .78rem; letter-spacing: .02em; color: var(--ink-2); }
.letterhead .tag { font-family: var(--serif); font-style: italic; color: var(--royal); font-size: .9rem; }
@media (min-width: 700px) { .letterhead { grid-template-columns: 96px 1fr; } .letterhead img { width: 96px; } .letterhead .name { font-size: 1.7rem; } }
.report-title { text-align: center; margin-bottom: 1.1rem; }
.report-title .bar { background: #6D9EEB; color: #fff; font-weight: 700; padding: .35rem; font-size: 1.05rem; }
.report-title .bar2 { background: #C9DAF8; font-weight: 600; font-style: italic; padding: .25rem; }
.report-title .scope { font-weight: 700; margin-top: .4rem; }
.report-title .sub { font-size: .82rem; color: var(--ink-2); font-style: italic; }
table.stmt { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.stmt td { padding: .28rem .4rem; vertical-align: top; }
table.stmt td.m { text-align: right; width: 8.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.stmt td.ref { width: 6.5rem; color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
table.stmt tr.heading td { font-weight: 700; padding-top: .75rem; }
table.stmt tr.group td { font-weight: 600; }
table.stmt tr.subtotal td { font-weight: 600; }
table.stmt tr.subtotal td.m.t { border-top: 1px solid var(--ink-3); }
table.stmt tr.total td { font-weight: 700; background: #F3F6FC; }
table.stmt tr.total td.m.t { border-top: 1px solid var(--ink); }
table.stmt tr.grand td { font-weight: 700; font-size: 1rem; }
table.stmt tr.grand td.m.t { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
table.stmt tr.muted td, table.stmt tr.note td { color: var(--ink-2); font-style: italic; font-size: .86rem; }
table.stmt td.l1 { padding-left: 1.4rem; }
table.stmt td.l2 { padding-left: 2.6rem; font-size: .88rem; }
@media (max-width: 600px) { table.stmt td.ref { display: none; } table.stmt td.m { width: 6.5rem; font-size: .86rem; } }
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; font-size: .88rem; text-align: center; }
.signatures .who { margin-top: 2.2rem; font-weight: 700; border-top: 1px solid var(--ink); padding-top: .25rem; }
.signatures .noted { grid-column: 1 / -1; width: 60%; margin: .5rem auto 0; }
@media (max-width: 600px) { .signatures { grid-template-columns: 1fr; } .signatures .noted { width: 100%; } }
.report-notes { margin-top: 1rem; font-size: .82rem; color: var(--ink-2); }

/* ---------- dialogs, toast, login ---------- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); color: var(--ink); }
dialog::backdrop { background: rgba(20,33,61,.45); }
dialog .dlg { padding: 1.1rem 1.1rem 1rem; }
dialog .dlg-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.pick-list .grp { font-weight: 700; color: var(--ink-2); font-size: .85rem; padding: .7rem .5rem .2rem; }
.pick-list button { width: 100%; text-align: left; border: 0; background: none; padding: .7rem .6rem; border-radius: 8px; cursor: pointer; }
.pick-list button:hover, .pick-list button.on { background: var(--royal-2); }
.pick-list button small { display: block; color: var(--ink-3); }
#toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(480px, calc(100vw - 2rem)); pointer-events: none; }
#toast div { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(20,33,61,.25); }
#toast div.bad { background: var(--stop); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--royal); }
.login .box { background: #fff; border-radius: 16px; padding: 1.75rem 1.5rem; width: min(400px, 100%); }
.login .box img { width: 92px; display: block; margin: 0 auto .5rem; }
.login h1 { text-align: center; font-size: 1.4rem; margin-bottom: .2rem; }
.login .who { text-align: center; color: var(--ink-2); margin-bottom: 1.25rem; font-size: .9rem; }

.pick-list li.sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: .5rem .9rem .2rem; }
.progress { height: .6rem; background: var(--line-2, #e7ebf2); border-radius: 99px; overflow: hidden; margin: .5rem 0 .35rem; }
.progress > i { display: block; height: 100%; background: var(--leaf, #2f7d55); border-radius: 99px; }
.assign { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .5rem; background: #FBFCFE; }
@media (min-width: 640px) { .assign { grid-template-columns: 2fr 1.2fr 40px; align-items: center; } }
.assign .rm { border: 0; background: none; color: var(--ink-3); font-size: 1.4rem; cursor: pointer; min-height: 40px; }

/* Guide */
.guide h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.guide p { margin: .4rem 0; }
.steps { margin: .2rem 0 .6rem; padding-left: 1.4rem; }
.steps li { margin: .35rem 0; padding-left: .2rem; }
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: .8rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: .2rem 0 0; color: var(--ink-2, inherit); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- print: the report only ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .nav, .no-print, #toast, .page-head, .report-controls { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .sheet { border: 0; padding: 0; max-width: none; }
  .report-title .bar, .report-title .bar2, table.stmt tr.total td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.data th { position: static; }
  table.data.wide { font-size: 7.5pt; }
  table.stmt tr, table.data tr { break-inside: avoid; }
  .signatures { break-inside: avoid; }
}
