/*
  Consool interface.
  Look: a school register. Ink-blue headings, ruled lines, and the red margin line of an
  exercise book on every list of pupils. One bright colour, highlighter yellow, marks the
  main action on each screen. System fonts only, so pages load fast on slow connections.
*/

:root {
  --ink: #1e3a64;
  --ink-soft: #3d5a86;
  --text: #1b2433;
  --muted: #5a6577;
  --desk: #eef2f6;
  --paper: #ffffff;
  --rule: #d3deeb;
  --rule-strong: #b7c6d8;
  --margin: #e0565b;
  --highlight: #ffd34e;
  --highlight-edge: #e2b21c;
  --highlight-hover: #f7c736;
  --chalk: #2d6a4f;
  --chalk-bg: #e7f3ec;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --warn-bg: #fff4d6;
  --focus: 0 0 0 3px rgba(30, 58, 100, 0.35);
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--desk);
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--ink-soft); }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 0.75rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Top bar and navigation ---------- */

.topbar {
  background: var(--ink);
  color: #fff;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  min-height: 60px;
}
.school-mark {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; min-width: 0; flex: 1;
}
.school-mark:hover { color: #fff; }
.school-mark img, .school-initial {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: #fff; object-fit: contain;
}
.school-initial {
  display: grid; place-items: center;
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
}
.school-name {
  font-weight: 650; font-size: 1.02rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-menu { position: relative; }
.user-menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  min-height: 40px;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--highlight); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.user-menu .who { font-size: 0.92rem; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu .menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--rule); border-radius: var(--radius);
  min-width: 220px; padding: 6px;
  box-shadow: 0 10px 30px rgba(20, 35, 60, 0.18);
}
.menu .menu-role { padding: 8px 10px 6px; font-size: 0.85rem; color: var(--muted); }
.menu a, .menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px; border-radius: 8px;
  font: inherit; color: var(--text); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--desk); }

.mainnav { background: var(--paper); border-bottom: 1px solid var(--rule); }
.mainnav ul {
  max-width: 1080px; margin: 0 auto; padding: 0 8px;
  display: flex; gap: 4px; list-style: none;
}
.mainnav a {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px 12px;
  color: var(--muted); text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.notice-bar {
  font-size: 0.92rem; text-align: center;
  padding: 8px 16px; background: var(--warn-bg); color: #5c4400;
  border-bottom: 1px solid #f0dc9c;
}
.notice-bar.ended { background: var(--danger-bg); color: var(--danger); border-color: #f5c2bd; }

/* ---------- Page ---------- */

.page {
  max-width: 1080px; margin: 0 auto;
  padding: 24px 16px 48px;
}
.page-narrow { max-width: 640px; }
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.page-head h1 { margin: 0; }
.page-head .lede { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }

.backlink {
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 12px; font-weight: 600; text-decoration: none;
  color: var(--ink-soft);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.grid-2 { display: grid; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 3fr 2fr; align-items: start; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  font: inherit; font-weight: 650; line-height: 1.2;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--highlight); border-color: var(--highlight-edge); color: var(--ink); }
.btn-primary:hover { background: var(--highlight-hover); color: var(--ink); }
.btn-secondary { background: var(--paper); border-color: var(--rule-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-danger { background: var(--paper); border-color: #e7a59f; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #197a42; color: #fff; }
.btn-block { width: 100%; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.btn-link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 0;
}

.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }

/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }
.field > label, .field > .label, fieldset > legend {
  display: block; font-weight: 650; margin-bottom: 6px; color: var(--text);
}
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: -2px 0 8px; font-size: 0.9rem; color: var(--muted); }

input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px;
  padding: 10px 12px;
  font: inherit; color: var(--text);
  background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 8px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
input[type="file"] { font: inherit; padding: 10px 0; }

.field-error {
  margin: 6px 0 0; padding-left: 10px;
  border-left: 3px solid var(--danger);
  color: var(--danger); font-size: 0.92rem; font-weight: 600;
}

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }

.choice {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 52px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; margin-bottom: 8px;
}
.choice:has(input:checked) { border-color: var(--ink); background: #f3f7fc; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.choice .choice-text { flex: 1; }
.choice .choice-sub { display: block; font-size: 0.88rem; color: var(--muted); }
.choices-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-inline .choice { margin: 0; flex: 1 1 140px; }

.input-addon { display: flex; align-items: stretch; }
.input-addon .addon {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--desk); border: 1px solid var(--rule-strong);
  color: var(--muted); font-size: 0.95rem; white-space: nowrap;
}
.input-addon .addon:first-child { border-right: 0; border-radius: 8px 0 0 8px; }
.input-addon .addon:last-child { border-left: 0; border-radius: 0 8px 8px 0; }
.input-addon input { border-radius: 0; flex: 1; min-width: 0; }
.input-addon input:first-child { border-radius: 8px 0 0 8px; }
.input-addon input:last-child { border-radius: 0 8px 8px 0; }
.slug-status { font-size: 0.9rem; margin-top: 6px; min-height: 1.4em; }
.slug-status.ok { color: var(--chalk); }
.slug-status.bad { color: var(--danger); }

.two-cols { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .two-cols { grid-template-columns: 1fr 1fr; } }

details.more {
  border-top: 1px solid var(--rule);
  margin: 8px 0 18px; padding-top: 4px;
}
details.more > summary {
  cursor: pointer; font-weight: 650; color: var(--ink);
  padding: 12px 0; list-style-position: inside;
}
details.more[open] > summary { margin-bottom: 8px; }

/* ---------- Messages ---------- */

.flash {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--chalk-bg); color: #1d4d38;
  border-left: 4px solid var(--chalk);
}
.flash.error { background: var(--danger-bg); color: var(--danger); border-left-color: var(--danger); }
.flash .icon { margin-top: 2px; }
.callout {
  padding: 14px 16px; border-radius: var(--radius);
  background: #f3f7fc; border: 1px solid var(--rule);
  margin-bottom: 18px;
}
.callout.warn { background: var(--warn-bg); border-color: #f0dc9c; }

/* ---------- The register: the list style for pupils ---------- */

.register {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 20px; padding: 0; list-style: none;
  position: relative;
}
.register::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 48px;
  width: 0; border-left: 2px solid var(--margin); opacity: 0.55;
  pointer-events: none;
}
.register li { border-bottom: 1px solid var(--rule); }
.register li:last-child { border-bottom: 0; }
.register-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 0; min-height: 60px;
  color: var(--text); text-decoration: none;
}
a.register-row:hover { background: #f7f9fc; color: var(--text); }
.register-no {
  width: 48px; flex: none; text-align: center;
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem;
}
.register-main { flex: 1; min-width: 0; }
.register-name { font-weight: 650; display: block; }
.register-sub { display: block; font-size: 0.88rem; color: var(--muted); }
.register-side { font-size: 0.9rem; color: var(--muted); text-align: right; }
.register-head {
  display: flex; gap: 14px; padding: 10px 16px 10px 0;
  font-size: 0.85rem; color: var(--muted); background: #f7f9fc;
  border-bottom: 1px solid var(--rule-strong);
}
.register-empty { padding: 28px 16px 28px 64px; color: var(--muted); }

.photo {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  object-fit: cover; background: #e9eff7; border: 1px solid var(--rule);
  display: grid; place-items: center; font-weight: 700; color: var(--ink-soft); font-size: 0.85rem;
}
.photo-lg { width: 96px; height: 96px; font-size: 1.6rem; border-radius: 16px; }

/* ---------- Home: what to do next ---------- */

.hello { margin-bottom: 20px; }
.hello h1 { margin-bottom: 2px; }
.hello p { color: var(--muted); margin: 0; }

.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li + li { border-top: 1px solid var(--rule); }
.task {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; min-height: 64px;
  text-decoration: none; color: var(--text);
}
.task:hover { color: var(--text); }
.task:hover .task-title { text-decoration: underline; }
.task-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: #e9eff7; color: var(--ink);
}
.task-icon .icon { width: 22px; height: 22px; }
.task.main .task-icon { background: var(--highlight); }
.task-title { display: block; font-weight: 650; color: var(--ink); }
.task-sub { display: block; font-size: 0.9rem; color: var(--muted); }
.task .icon.chev { color: var(--rule-strong); margin-left: auto; }

.figures { display: flex; flex-wrap: wrap; gap: 0; margin: 0; }
.figure { flex: 1 1 120px; padding: 4px 16px 4px 0; }
.figure + .figure { border-left: 1px solid var(--rule); padding-left: 16px; }
.figure dt { font-size: 0.88rem; color: var(--muted); }
.figure dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.todo { list-style: none; padding: 0; margin: 0; }
.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.todo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--highlight-edge); margin-top: 7px; flex: none; }

/* ---------- Setup steps ---------- */

.steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; }
.steps .bar { height: 6px; border-radius: 3px; background: var(--rule); }
.steps .done .bar, .steps .now .bar { background: var(--ink); }
.steps .now .bar { background: var(--highlight-edge); }
.steps .step-name { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.steps .now .step-name { color: var(--ink); font-weight: 650; }
@media (max-width: 520px) { .steps .step-name { display: none; } .steps .now .step-name { display: block; } }

.class-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.class-row label.tick { display: flex; align-items: center; gap: 12px; font-weight: 600; min-height: 44px; cursor: pointer; }
.class-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); }
.class-row select { width: auto; min-width: 132px; }
.section-title { margin: 22px 0 4px; font-size: 1rem; color: var(--ink-soft); }

.subject-grid { display: grid; gap: 8px; }
@media (min-width: 600px) { .subject-grid { grid-template-columns: 1fr 1fr; } }
.subject-grid .choice { margin: 0; }

/* ---------- Tables (staff, terms, platform) ---------- */

.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.85rem; padding: 10px 12px; border-bottom: 1px solid var(--rule-strong); }
table.list td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: #e9eff7; color: var(--ink-soft); white-space: nowrap;
}
.badge.good { background: var(--chalk-bg); color: var(--chalk); }
.badge.warn { background: var(--warn-bg); color: #7a5a00; }
.badge.off { background: #f1f1f1; color: #666; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.share-box {
  background: #f7f9fc; border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  padding: 14px; font-size: 0.93rem; word-break: break-word; margin-bottom: 14px;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters .search { flex: 2 1 220px; position: relative; }
.filters .search .icon { position: absolute; left: 12px; top: 14px; color: var(--muted); }
.filters .search input { padding-left: 40px; }
.filters select { flex: 1 1 160px; width: auto; }

.import-table td.bad { color: var(--danger); }
.row-bad td { background: #fff7f6; }
.problem { color: var(--danger); font-weight: 600; font-size: 0.88rem; }
.note { color: #7a5a00; font-size: 0.88rem; }

/* ---------- Public pages (sign in, signup) ---------- */

.public-top { padding: 18px 16px; }
.public-top .brand {
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--highlight);
  display: grid; place-items: center; font-weight: 800;
}
.auth-card {
  max-width: 460px; margin: 8px auto 48px; padding: 28px 24px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.auth-card.wide { max-width: 640px; }
.auth-school { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-school img, .auth-school .school-initial { width: 48px; height: 48px; border: 1px solid var(--rule); }

.landing { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.landing-hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 40px; }
@media (min-width: 860px) { .landing-hero { grid-template-columns: 1.1fr 1fr; } }
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
.landing-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.landing-points { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 760px) { .landing-points { grid-template-columns: repeat(3, 1fr); } }
.landing-points h2 { font-size: 1.05rem; }
.landing-points p { color: var(--muted); }

/* The sample register on the landing page */
.sample-register .register-row { min-height: 52px; }
.sample-register .paid { color: var(--chalk); font-weight: 650; }
.sample-register .owing { color: var(--danger); font-weight: 650; }

/* ---------- Phones ---------- */

@media (max-width: 759px) {
  .mainnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    border-top: 1px solid var(--rule); border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mainnav ul { padding: 0; gap: 0; }
  .mainnav li { flex: 1; }
  .mainnav a {
    flex-direction: column; gap: 2px; justify-content: center;
    padding: 8px 4px; min-height: 60px; font-size: 0.78rem;
    border-bottom: 0; border-top: 3px solid transparent;
  }
  .mainnav a[aria-current="page"] { border-top-color: var(--ink); border-bottom-color: transparent; }
  .mainnav .icon { width: 24px; height: 24px; }
  body.has-nav .page { padding-bottom: 100px; }
  .user-menu .who { display: none; }
  .page { padding-top: 18px; }
  h1 { font-size: 1.4rem; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .figure { flex-basis: 33%; }
  .figure dd { font-size: 1.35rem; }
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; }
  table.stack td.no-label::before { content: none; }
}

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

@media print {
  .topbar, .mainnav, .notice-bar, .page-head .actions, .button-row, .filters { display: none !important; }
  body { background: #fff; }
  .panel, .register { border-color: #999; }
}

/* Spacing helpers (inline styles are blocked by the security policy) */
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.tasks .task > form.inline-form { margin-left: auto; }

/* Fees */
.amount-input { width: 180px; }
.amount-input input { text-align: right; font-variant-numeric: tabular-nums; }
a.callout.task { display: flex; color: var(--text); text-decoration: none; }
.balance-due { color: var(--danger); }
.balance-clear { color: var(--chalk); }
.ledger td.money, .ledger th.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tr.subtotal td { font-weight: 650; border-top: 1px solid var(--rule-strong); }
.ledger tr.cancelled td { color: var(--muted); text-decoration: line-through; }
.big-balance { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.receipt-paper {
  max-width: 560px; margin: 0 auto 20px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px;
  position: relative; overflow: hidden;
}
.receipt-paper::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 28px;
  border-left: 2px solid var(--margin); opacity: 0.45;
}
.receipt-paper > * { position: relative; margin-left: 24px; }
.receipt-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.receipt-head img, .receipt-head .school-initial { width: 52px; height: 52px; border: 1px solid var(--rule); }
.receipt-amount { font-size: 2.2rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; margin-bottom: 12px; }
.receipt-paper .kv dd { overflow-wrap: anywhere; }
.stamp {
  display: inline-block; padding: 4px 12px; border: 2px solid var(--chalk); color: var(--chalk);
  border-radius: 8px; font-weight: 700; transform: rotate(-3deg);
}
.stamp.cancelled { border-color: var(--danger); color: var(--danger); }
@media print {
  .receipt-paper { border: 0; max-width: none; }
  .no-print { display: none !important; }
}

/* Segmented tabs (claims) */
.seg { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.seg a { padding: 10px 14px; color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; }
.seg a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--highlight-edge); }
.claim-actions { display: grid; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.proof { display: block; max-width: 100%; max-height: 420px; margin-top: 8px; border: 1px solid var(--rule); border-radius: 8px; }
.pay-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.pay-steps > li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.pay-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--highlight); color: var(--ink); font-weight: 700; display: grid; place-items: center; }
.bank-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; font-variant-numeric: tabular-nums; }
.bank-card .acct { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; }
a.register-main { text-decoration: none; color: inherit; }
a.register-main .register-name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
