:root { --navy: #002E5D; --ink: #0B1F3A; --muted: #5A6578; --line: #E3E6EE; --row: #EEF0F5; --ground: #FBFBFD; --panel: #FFFFFF; --side: #F4F5F9; --red: #A31A24; --gold: #C99A2E; --green: #1F6B45; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Mulish, Arial, sans-serif; font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--ground); font-variant-numeric: tabular-nums; }

/* ---- frame: a light gray sidebar and the page */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: var(--side); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
/* The logo is the official file from the Brand Hub's logo bank, shown as is. */
.brand { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.brand img { display: block; width: 100%; max-width: 172px; height: auto; }
.brand span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.paper-head { display: none; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { display: block; padding: 7px 10px; border-radius: 7px; color: #33415A; font-weight: 600; text-decoration: none; }
nav a:hover { background: #E9ECF3; }
nav a[aria-current="page"] { background: var(--panel); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--line); }
.who { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px; font-size: 13px; color: var(--muted); }
.who b { color: var(--ink); }
main { width: 100%; max-width: 1080px; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 18px; }
.signed-out .shell { grid-template-columns: 1fr; }
.signed-out .side { display: none; }
.signed-out main { margin: 0 auto; }
main > * { min-width: 0; }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .amount { margin-left: auto; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; order: 3; }
  .who { margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 0; }
  .brand { padding: 0; gap: 4px; }
  .brand img { max-width: 136px; }
  main { padding: 18px 16px 40px; }
}

/* ---- type */
/* Headings are Lora, as the brand spec asks. Everything else stays Mulish. */
h1, h2, h3 { font-family: Lora, Georgia, serif; font-weight: 600; }
h1 { margin: 0; font-size: 24px; letter-spacing: -.005em; }
h2 { margin: 0; font-size: 15px; }
p { margin: 0; }
a { color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
.error { color: var(--red); font-weight: 600; }
.good { color: var(--green); font-weight: 700; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.head > div { display: flex; flex-direction: column; gap: 2px; }
.note { padding: 9px 14px; border: 1px solid var(--gold); border-radius: 8px; background: var(--panel); font-weight: 600; }

/* ---- cards and rows */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(11,31,58,.04), 0 4px 12px rgba(11,31,58,.03); }
.card > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.signin { max-width: 420px; margin: 48px auto 0; }
.signin .mark { display: block; width: 240px; max-width: 100%; height: auto; margin: 4px auto 6px; }
.signin h1 { text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile small { font-size: 12px; color: var(--muted); }
.tile b { font-size: 21px; letter-spacing: -.02em; }
.tile.quiet b { color: var(--muted); font-weight: 600; }
.rows > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid var(--row); }
.rows > div:first-child { border-top: 0; }
.grow { flex: 1 1 200px; min-width: 0; }
.name { font-weight: 700; }
.when { flex: 0 0 96px; font-size: 12px; color: var(--muted); }
.when.wide { flex-basis: 150px; }
.amount { flex: 0 0 96px; text-align: right; font-weight: 700; }
.tag { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: #33415A; white-space: nowrap; }
.tag.flag { border-color: var(--gold); }
.tag.stop { border-color: var(--red); color: var(--red); }
ul.plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.facts div { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid var(--row); border-radius: 8px; }
.facts b { font-size: 18px; }
.facts small { font-size: 12px; color: var(--muted); }

/* ---- the reconciliation table */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 14px; text-align: right; white-space: nowrap; border-top: 1px solid var(--row); }
th { font-size: 12px; font-weight: 700; color: var(--muted); border-top: 0; }
th:first-child, td:first-child { text-align: left; }
td.quiet { color: var(--muted); }
tfoot td { font-weight: 700; border-top: 1px solid #C9CFDC; }
.foot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }

/* ---- controls */
button, input, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid #D5DAE5; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
button.primary { border-color: var(--navy); background: var(--navy); color: #fff; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, input.file:focus-visible + .button { outline: 2px solid #2A5078; outline-offset: 2px; }
input, select { height: 32px; border: 1px solid #D5DAE5; border-radius: 7px; padding: 0 10px; font-size: 13px; color: var(--ink); background: #fff; }
input.money { width: 150px; text-align: right; }
input.file { position: absolute; width: 1px; height: 1px; opacity: 0; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
form.inline input { flex: 1 1 160px; }
label.sr { position: absolute; left: -9999px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---- the Today queue */
.tasks > .task { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-top: 1px solid var(--row); }
.tasks > .task:first-child { border-top: 0; }
a.name { color: var(--ink); text-decoration: none; }
a.name:hover { text-decoration: underline; }
details summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); }
details[open] summary { margin-bottom: 6px; }
pre.note-text { margin: 6px 0 0; padding: 12px 14px; font: inherit; white-space: pre-wrap; background: var(--ground); border: 1px solid var(--row); border-radius: 8px; max-width: 640px; }

/* ---- campaigns */
.note.stop { border-color: var(--red); color: var(--red); }
details.more { border-top: 1px solid var(--line); }
details.more > summary { padding: 10px 14px; }
details.more[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--row); }
input[type="date"] { min-width: 150px; }
.card > header + form.inline, .card > header + form.stack { border-top: 0; }

/* ---- stories and alumni */
textarea { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid #D5DAE5; border-radius: 7px; padding: 8px 10px; flex: 1 1 100%; resize: vertical; }
textarea:focus-visible { outline: 2px solid #2A5078; outline-offset: 2px; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
label.check input { height: auto; }
.card > details.more:first-of-type { border-top: 0; }
.card > .rows + form.inline { border-top: 1px solid var(--line); }
form.inline label.check input { flex: 0 0 auto; }
label.check { white-space: nowrap; }

/* ---- reports */
h3 { margin: 0; padding: 14px 14px 6px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.card .pad .tiles .tile { box-shadow: none; }
td a.name { font-weight: 700; }
tfoot td:first-child { text-align: left; }

/* ---- paper: the page without the menu and the controls */
@media print {
  body { background: #fff; font-size: 11px; }
  .shell { display: block; }
  .side, button, .button, select, form, .note, details.more { display: none !important; }
  main { max-width: none; padding: 0; gap: 12px; }
  .card { box-shadow: none; break-inside: avoid; }
  .paper-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
  .paper-head img { width: 200px; height: auto; }
  .paper-head span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  a { color: inherit; text-decoration: none; }
}

/* The message an approver approves, and the fields that make it up. */
form.stack { display: grid; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); max-width: 720px; }
form.stack label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
form.stack input, form.stack select, form.stack textarea { font-weight: 400; }
form.stack .pair { display: flex; flex-wrap: wrap; gap: 8px; }
form.stack .pair > label { flex: 1 1 180px; }
dl.approved { margin: 0; padding: 12px 14px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
dl.approved dt { color: var(--muted); font-size: 12px; font-weight: 600; }
dl.approved dd { margin: 0; overflow-wrap: anywhere; }
.tag.stop { border-color: var(--red); color: var(--red); }
