/* BH Tutoring app · staff and family pages. Tokens live in tokens.css (loaded first).
   Look: Apple-style surfaces (white cards on a warm paper background, soft shadows instead of borders,
   pill controls, grouped lists), with the brand color for emphasis only. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--fg); background: var(--paper);
       -webkit-font-smoothing: antialiased; }
a { color: var(--maroon); text-underline-offset: 3px; }
h1 { font: 700 28px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font: 650 20px/1.3 var(--display); letter-spacing: -.01em; margin: 32px 0 10px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.small { font-size: 13px; }
.pre { white-space: pre-line; }
.num { text-align: right; }
.right { text-align: right; }

/* ---------- Shell ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px;
          padding: 10px var(--gutter); background: var(--maroon); color: var(--cream); }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--cream);
                 font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.mono { width: 30px; height: 30px; border-radius: 9px; background: var(--cream); color: var(--maroon);
        display: grid; place-items: center; font-weight: 750; font-size: 13px; flex: none; }
.account { position: relative; }
.account summary { cursor: pointer; list-style: none; padding: 6px 14px; font-size: 14px;
                   border: 1px solid rgba(248,239,230,.35); border-radius: 999px; }
.account summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; right: 0; top: 42px; z-index: 20; min-width: 230px;
                background: var(--card); color: var(--fg); border-radius: var(--radius); padding: 12px 14px;
                display: grid; gap: 10px; box-shadow: var(--shadow-lift); }

/* Main navigation: a row of pills; sections with pages of their own get a second row (.subnav). */
.mainnav { display: flex; gap: 4px; padding: 8px var(--gutter); background: var(--card);
           border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mainnav a { padding: 7px 14px; color: var(--fg-soft); text-decoration: none; white-space: nowrap;
             border-radius: 999px; font-size: 15px; font-weight: 500; }
.mainnav a:hover { background: var(--paper); }
.mainnav a[aria-current="page"] { background: var(--tint); color: var(--maroon); font-weight: 650; }
.subnav-wrap { background: var(--card); border-bottom: 1px solid var(--line); }
.subnav { display: flex; gap: 22px; padding: 0 var(--gutter); max-width: 1072px; margin: 0 auto; overflow-x: auto;
          scrollbar-width: none; }
.subnav a { padding: 12px 2px 10px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 14.5px;
            border-bottom: 2px solid transparent; }
.subnav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--maroon); font-weight: 600; }
main { max-width: 1072px; margin: 0 auto; padding: 24px var(--gutter) 56px; }

.messages { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.messages li { padding: 11px 15px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.messages li.success { background: var(--ok-bg); color: var(--green); box-shadow: none; }
.messages li.error { background: var(--alert-bg); box-shadow: none; }
.messages li.info { background: var(--tint); box-shadow: none; }

/* ---------- Page header: title + subtitle on the left, actions on the right ---------- */
.page-head, .home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
                         flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1, .home-head h1 { margin: 0; }
.page-head p, .home-head p { margin: 4px 0 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.back { display: inline-block; margin-bottom: 10px; font-size: 14.5px; text-decoration: none; }

/* ---------- Buttons ---------- */
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 15px/1 var(--sans); padding: 0 18px; height: 40px; border-radius: 999px;
  border: 0; background: var(--maroon); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s; }
button:hover, a.button:hover { background: var(--maroon-deep); }
button:active, a.button:active { transform: scale(.98); }
button.link { height: auto; padding: 0; border: 0; background: none; color: var(--maroon);
              font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { background: none; color: var(--maroon-deep); }
button.link.muted { color: var(--muted); }
.btn-secondary, a.button.btn-secondary, button.btn-secondary { background: var(--tint); color: var(--maroon); }
.btn-secondary:hover, a.button.btn-secondary:hover { background: color-mix(in srgb, var(--maroon) 14%, white); }
.btn-danger, button.btn-danger { background: var(--danger); color: #fff; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--maroon) 35%, white); outline-offset: 2px; }

/* ---------- Forms ---------- */
input, select, textarea { font: 15px/1.4 var(--sans); color: var(--fg); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; width: 100%; max-width: 420px; }
input:focus, select:focus, textarea:focus { border-color: var(--maroon); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--maroon) 15%, white); }
textarea { max-width: 560px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; max-width: none;
  accent-color: var(--maroon); margin: 0; flex: none; box-shadow: none; }
.stack { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 5px; }
.field-label, .stack label > span:first-child { font-weight: 600; font-size: 14px; }
.field label { display: grid; gap: 5px; }
.field small { max-width: 56ch; }
label.check { display: flex; align-items: center; gap: 9px; font-size: 15px; }
label.check span { font-weight: 500; }
.field ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.field ul label { display: flex; align-items: center; gap: 9px; font-size: 15px; }
form { margin: 0; }

/* ---------- Cards, tiles, grouped lists, tables ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
details.card > summary { cursor: pointer; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 14px 16px; display: grid; gap: 2px; color: var(--fg); text-decoration: none; }
.tile strong { font: 700 26px/1.2 var(--display); letter-spacing: -.02em; }
.tile .muted { font-size: 13px; }
a.tile:hover { box-shadow: var(--shadow-lift); }
.tile-alert { background: var(--alert-bg); box-shadow: none; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--alert-bg); }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.stats > div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
               padding: 12px 18px; display: grid; min-width: 165px; }
.stats strong { font-size: 22px; }
.flag { display: inline-block; background: var(--warn-bg); color: var(--warn); border-radius: 6px;
        padding: 2px 8px; font-size: 13px; margin: 1px 2px 1px 0; text-decoration: none; }

/* Grouped list, like iOS Settings: rows inside one rounded card. */
.list { list-style: none; margin: 8px 0; padding: 0; background: var(--card); border-radius: var(--radius);
        box-shadow: var(--shadow); overflow: hidden; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
             border-bottom: 1px solid var(--paper-2); }
.list > li:last-child { border-bottom: 0; }
.list > li > a.row-link { flex: 1; color: inherit; text-decoration: none; display: flex; justify-content: space-between;
                          gap: 12px; align-items: center; }
.list > li > a.row-link::after { content: "›"; color: var(--line-strong); font-size: 22px; line-height: 1; }
.list .sub { color: var(--muted); font-size: 13.5px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--paper-2);
                       vertical-align: middle; }
.table thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--card);
                  text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFBF9; }
.table td form { display: inline-flex; align-items: center; }
ul.plain { list-style: none; padding: 0; margin: 8px 0; }
ul.plain li { padding: 9px 2px; border-bottom: 1px solid var(--paper-2); }
ul.plain li:last-child { border-bottom: 0; }
ul.plain.card li { padding: 9px 0; }
.consents { list-style: none; padding: 0; }
.consents li { padding: 5px 0; }
.small-links { margin-top: 26px; font-size: 14px; }

/* Tabs inside a page (e.g. the student page). */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 12px; margin: 16px 0 20px;
        overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--fg-soft); text-decoration: none; white-space: nowrap;
          font-size: 14.5px; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--card); color: var(--fg); font-weight: 650; box-shadow: var(--shadow); }
.tabs a .count { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* Empty state */
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }

/* ---------- Statement (print) ---------- */
.statement { background: #fff; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.statement header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.statement .right { text-align: right; }
@media print {
  .topbar, .mainnav, .subnav, .no-print, .messages, .site-foot { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .statement { border: 0; padding: 0; }
}

/* ---------- Steps / misc ---------- */
.steps { counter-reset: s; }
@media (max-width: 760px) {
  main { padding: 18px 12px 48px; }
  h1 { font-size: 22px; }
  .table th, .table td { padding: 8px; font-size: 14px; }
  input, select, textarea { max-width: none; }
  .home-head a.button { width: 100%; }
}

/* Test score entry */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 980px; }
.score-grid fieldset { margin: 0; display: grid; gap: 10px; }
.score-grid legend { font-weight: 700; padding: 0 4px; }
.score-grid input { max-width: 140px; }
.stack:has(.score-grid) { max-width: 980px; }

/* Scheduling */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.repeat-options { display: none; gap: 14px; }
form:has(.reveal-toggle:checked) .repeat-options { display: grid; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* Radio and checkbox groups (Django renders <div><div><label><input> Text</label></div>...</div>) */
.choice-group > div { display: grid; gap: 8px; }
.choice-group label { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
/* Segmented control (outcome, weekdays, scope): a soft well with the chosen option raised. */
.choice-group.chips > div { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper-2);
                            border-radius: 12px; }
.choice-group.chips label { border-radius: 9px; padding: 7px 14px; font-weight: 500; color: var(--fg-soft); }
.choice-group.chips label:has(input:checked) { background: var(--card); color: var(--fg); font-weight: 650;
                                               box-shadow: var(--shadow); }
.choice-group.chips input { position: absolute; opacity: 0; pointer-events: none; }

/* Answer entry for grading a practice test */
.answer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px 12px; }
.answer-grid label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.answer-grid label span { width: 22px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.answer-grid input { width: 100%; min-width: 0; padding: 6px 8px; text-transform: uppercase; }
.misses { columns: 2 220px; padding-left: 0; list-style: none; font-size: 14px; }
.misses li { break-inside: avoid; padding: 2px 0; }

/* "Report a problem" footer on every staff and family page */
.site-foot { max-width: 1040px; margin: 0 auto 24px; padding: 0 16px; font-size: 14px; }
.report-box summary { cursor: pointer; color: var(--muted); }
.report-box form { margin-top: 12px; max-width: 520px; }

/* Sign-in pages */
.entrance { max-width: 440px; margin: 24px auto 0; }

/* Question bank */
.question-card .stem p { margin: 0 0 10px; }
.choices-list { padding-left: 22px; }
.choices-list li { padding: 3px 0; }
.choices-list li.correct { color: var(--green, #1F4D3B); }
.passage summary { cursor: pointer; font-weight: 600; }
.passage-text { max-height: 340px; overflow-y: auto; padding: 8px 12px; background: var(--paper-2); border-radius: 8px; margin: 8px 0 12px; }
.rate.low { color: #9b1c1c; font-weight: 600; }
.rate.high { color: #1F4D3B; font-weight: 600; }
.assign-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.assign-form label.inline { display: flex; gap: 6px; align-items: center; padding-bottom: 10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row .chip { border: 1px solid var(--paper-2); background: var(--card); border-radius: 999px; padding: 4px 12px;
                   font-size: 14px; text-decoration: none; color: inherit; }
.chips-row .chip.on { border-color: var(--maroon); color: var(--maroon); font-weight: 600; }
.q-table { border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.q-table th, .q-table td { border: 1px solid #d9cfc4; padding: 5px 10px; text-align: left; }
.q-table th { background: var(--paper-2); }
.q-fig { margin: 10px 0 14px; }
.q-figure { max-width: 100%; height: auto; display: block; }
.q-fig-missing { font-style: italic; color: var(--muted); border: 1px dashed #d9cfc4; padding: 8px 12px; border-radius: 8px; }
.q-legend { display: flex; gap: 14px; font-size: 13px; }
.q-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.pictograph .pict { letter-spacing: 3px; color: #b8860b; }
.pictograph .half { display: inline-block; width: .5em; overflow: hidden; vertical-align: bottom; }
.numbered-lines { padding-left: 34px; line-height: 1.7; }
.numbered-lines li::marker { color: var(--muted); font-size: 12px; }
blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--rose, #E8B4B8); }

/* "For the student portal" on the lesson log */
.portal-box summary { cursor: pointer; }
.hw-rows { display: grid; gap: 10px; }
.hw-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.hw-row[hidden] { display: none; }
#hw-more { justify-self: start; }
.hw-row label { display: grid; gap: 4px; }
.hw-row label.grow { flex: 1 1 240px; }
.hw-rows > label { display: grid; gap: 4px; }
.portal-box label.inline { display: flex; gap: 8px; align-items: center; }

/* Settings page: one card per topic */
.settings-form { display: grid; gap: 16px; max-width: 720px; }
.settings-card h2 { margin: 0 0 2px; font-size: 18px; }
.settings-card .field { margin-top: 12px; }
.settings-card .field label { display: grid; gap: 4px; }
.settings-card .field.check label { display: flex; gap: 10px; align-items: center; }
.settings-card input[type=color] { width: 64px; height: 36px; padding: 2px; }
.brand-preview { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.brand-chip { display: inline-flex; gap: 8px; align-items: center; color: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 600; }
.brand-chip img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.topbar .brand img.logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; margin-right: 10px; }
.payers-card summary { cursor: pointer; }
.move-form { display: inline-flex; gap: 6px; margin-top: 4px; }
.move-form select { padding: 2px 4px; font-size: 13px; }

/* Question bank review screen */
.keys kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font: 12px var(--sans); background: var(--card); }
.review-card { margin: 14px 0; scroll-margin-top: 16px; }
.review-card:focus { outline: 3px solid var(--rose); outline-offset: 2px; }
.review-card.decided { opacity: .55; }
.review-card.approved { border-color: #cfe3d8; background: var(--ok-bg); opacity: .8; }
.review-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review-choices { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.review-choices li { padding: 4px 10px; border-radius: 8px; }
.review-choices li.is-answer { background: var(--ok-bg); color: var(--green); font-weight: 600; }
.review-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.review-done { color: var(--green); font-weight: 600; }
.review-why p { display: inline; margin: 0; }

/* Line the bars up with the centered page content on wide screens. */
.topbar, .mainnav { padding-left: max(var(--gutter), calc((100% - 1040px) / 2)); padding-right: max(var(--gutter), calc((100% - 1040px) / 2)); }
.mainnav:has(+ .subnav-wrap) { border-bottom: 0; padding-bottom: 4px; }

/* Student page */
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.overview .card + .card { margin-top: 0; }
.overview p { margin: 4px 0; }
.big-number { font: 700 26px/1.2 var(--display); letter-spacing: -.02em; display: flex; gap: 10px; align-items: baseline; }
.big-number .rate { font-size: 15px; }
ul.plain.compact li { padding: 5px 0; }
.inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ok-text { color: var(--green); font-weight: 600; }
.flag.ok { background: var(--ok-bg); color: var(--green); }

/* Assign panel: one card, a segmented choice, and only the chosen form showing. */
.assign-panel { margin-top: 18px; scroll-margin-top: 16px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 12px; margin: 4px 0 16px; }
.segmented label { padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; color: var(--fg-soft); font-size: 14.5px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--card); color: var(--fg); font-weight: 650; box-shadow: var(--shadow); }
.assign-panel form[class*="assign-form-"] { display: none; }
.assign-panel:has(input[value="homework"]:checked) .assign-form-homework,
.assign-panel:has(input[value="set"]:checked) .assign-form-set,
.assign-panel:has(input[value="worksheet"]:checked) .assign-form-worksheet,
.assign-panel:has(input[value="other"]:checked) .assign-form-other { display: grid; }
.stack > button, .stack > a.button { justify-self: start; }
@media (max-width: 560px) { .stack > button, .stack > a.button { justify-self: stretch; } }

/* Assign card on the lesson log: tabs switch what's showing; everything filled in is still saved. */
.lesson-assign { margin-top: 4px; }
.lesson-assign .panel { display: none; }
.lesson-assign:has(input[value="homework"]:checked) .panel-homework,
.lesson-assign:has(input[value="set"]:checked) .panel-set,
.lesson-assign:has(input[value="game"]:checked) .panel-game,
.lesson-assign:has(input[value="link"]:checked) .panel-link { display: grid; gap: 8px; }
.lesson-assign .panel > label { display: grid; gap: 5px; }
.segmented .has { color: var(--maroon); font-weight: 800; margin-left: 2px; }

/* Family portal: "This week" */
.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.week-grid .card + .card { margin-top: 0; }
.week-grid p { margin: 4px 0; }
.week-grid details summary { cursor: pointer; color: var(--maroon); }

/* Search box above a grouped list */
.list-search { max-width: 360px; margin: 12px 0 4px; border-radius: 999px; padding-left: 16px; }

/* Billing family: one action card, the chosen form showing */
.billing-actions form[class*="act-"] { display: none; }
.billing-actions:has(input[value="payment"]:checked) .act-payment,
.billing-actions:has(input[value="invoice"]:checked) .act-invoice,
.billing-actions:has(input[value="adjustment"]:checked) .act-adjustment,
.billing-actions:has(input[value="package"]:checked) .act-package { display: grid; }

/* A card inside a card (e.g. the Assign card inside the lesson form) gets a quiet outline instead of a shadow. */
.card .card { box-shadow: none; border: 1px solid var(--line); }
form.stack.card { max-width: 640px; }
.list > li > a.row-link > span:first-child { flex: 1; }

/* Consent rows on the student page: status, how they told us, record/withdraw on one line. */
.consent-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.consent-form .compact-select { width: auto; padding: 4px 8px; font-size: .85rem; }

/* Refer a friend (family portal) */
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copy-row input { flex: 1 1 220px; min-width: 0; font-size: .9rem; }
.tutor-notes { margin-top: 8px; max-width: 520px; }
.tutor-notes summary { cursor: pointer; }
.tutor-notes textarea { width: 100%; }

/* Autopay setup: two big choices, then the terms for the chosen one. */
.choice-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line);
          border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--maroon); box-shadow: 0 0 0 1px var(--maroon); }
.choice input { margin-top: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 99px;
        background: var(--paper-2); color: var(--maroon); vertical-align: 1px; }
.terms { background: var(--paper-2); border-radius: 10px; padding: 4px 14px; }
.welcome-strip { border-left: 4px solid var(--maroon); margin-bottom: 16px; }
.welcome-strip ul { margin: 0 0 12px; }

/* Office: change a parent's email, tucked under their row. */
.list > li:has(.change-email) { flex-wrap: wrap; }
.change-email { flex-basis: 100%; margin-top: -4px; }
.change-email summary { list-style: none; cursor: pointer; display: inline; }
.change-email summary::-webkit-details-marker { display: none; }
.change-email-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.change-email-form input { flex: 1 1 200px; max-width: 280px; }
.change-email-form small { flex-basis: 100%; }
.change-email summary { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }

/* Home: "Needs your attention" */
.attention > li { align-items: center; gap: 12px; }
.attention .button { white-space: nowrap; flex-shrink: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 99px;
       background: var(--paper-2); color: var(--fg-soft); margin-right: 4px; vertical-align: 1px; }
.tag-urgent { background: var(--alert-bg); color: var(--maroon); }
.count-badge { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--maroon);
               color: #fff; font-size: 13px; text-align: center; vertical-align: 3px; }

/* Error pages (404, 403, expired form, 500) */
.error-page { max-width: 560px; margin: 48px auto; text-align: left; }
.error-page h1 { margin: 0; }
.error-page p { margin: 0; }
.error-code { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--maroon); }

/* One-click "Paid by Zelle" */
.mark-paid { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mark-paid input { width: 200px; max-width: 100%; padding: 6px 10px; font-size: 14px; }
.mark-paid button { padding: 6px 12px; font-size: 14px; white-space: nowrap; }
td .mark-paid { margin-top: 6px; }
.unpaid-list > li { flex-wrap: wrap; gap: 8px; }

/* Word lists */
.word-pick { display: grid; gap: 4px; max-height: 360px; overflow: auto; padding: 4px 2px; }
details.wl summary { cursor: pointer; }
