/* School Election Portal : single stylesheet for kiosk, dashboard, board, print.
   Light only, deliberately: lab machines, projectors and printouts. */

:root {
  color-scheme: light;
  --bg: #f4f6f0;
  --surface: #ffffff;
  --surface-2: #fafbf7;
  --ink: #1a1c18;
  --ink-2: #4b4f46;
  --muted: #6f7469;
  --border: #e1e4da;
  --border-strong: #c4c9bb;

  --brand: #8dc63f;        /* Oneiro green */
  --brand-ink: #14200a;    /* text on brand */
  --brand-deep: #4f8a1f;
  --brand-text: #3d6d15;
  --brand-soft: #eef6e2;
  --brand-soft-2: #dcedc3;
  --sky: #3fa9f5;
  --focus: #2f7ed8;

  --good: #0ca30c;
  --good-text: #006300;
  --good-soft: #e6f6e6;
  --warn: #fab219;
  --warn-text: #7a5200;
  --warn-soft: #fff4d6;
  --danger: #d03b3b;
  --danger-text: #a12727;
  --danger-soft: #fdecec;

  --series: #4f8a1f;
  --series-soft: #dcedc3;
  --grid: #e1e0d9;
  --axis: #c3c2b7;

  --r-1: 8px;
  --r-2: 12px;
  --r-3: 20px;
  --sh-1: 0 1px 2px rgba(20, 32, 10, .06);
  --sh-2: 0 10px 30px -14px rgba(20, 32, 10, .28);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
a { color: var(--brand-text); }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
hr.rule { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--r-1); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover:not(:disabled) { background: #9bd050; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-danger { background: var(--surface); color: var(--danger-text); border-color: #e9b4b4; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.btn-xl { min-height: 60px; padding: 12px 30px; font-size: 19px; border-radius: var(--r-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------------ forms */
.input {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-1);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.input:focus { border-color: var(--focus); outline: 3px solid rgba(47, 126, 216, .25); outline-offset: 0; }
.input-sm { min-height: 34px; padding: 4px 10px; font-size: 14px; width: auto; }
.input-lg { min-height: 52px; font-size: 20px; }
.input-xl { min-height: 76px; font-size: 34px; text-align: center; letter-spacing: .08em; font-weight: 600; border-width: 2px; border-radius: var(--r-2); }
.input-file { padding: 7px 10px; }
textarea.input { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 14px; }
select.input { appearance: auto; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.field > span { font-weight: 600; }
.field-label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin: 10px 0 6px; text-align: left; }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { margin-top: 4px; width: 18px; height: 18px; }
.field-end { justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.fieldset { border: 1px solid var(--border); border-radius: var(--r-1); padding: 12px 16px; margin: 0; }
.fieldset legend { font-weight: 600; padding: 0 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.radio input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-error { color: var(--danger-text); font-weight: 600; margin: 10px 0 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-forms { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.inline-details summary { cursor: pointer; list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.reset-form { padding-top: 6px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }
.pill-sm { padding: 1px 8px; font-size: 12px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pill-good { background: var(--good-soft); border-color: #bfe5bf; color: var(--good-text); }
.pill-good .pill-dot { background: var(--good); }
.pill-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-dark .pill-dot { background: #fff; }
.pill-neutral .pill-dot { background: var(--border-strong); }
.pill-lead { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--brand-text); }

/* --------------------------------------------------------------- notices */
.flash, .notice { padding: 12px 16px; border-radius: var(--r-1); border: 1px solid var(--border); background: var(--surface); margin-bottom: 16px; font-size: 15px; }
.flash-ok { border-color: #bfe5bf; background: var(--good-soft); color: var(--good-text); }
.flash-error { border-color: #e9b4b4; background: var(--danger-soft); color: var(--danger-text); }
.notice-warn { border-color: #f1d48a; background: var(--warn-soft); color: var(--warn-text); }

/* ================================================================== AUTH */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 36px; box-shadow: var(--sh-2); text-align: center; }
.auth-wide { max-width: 640px; text-align: left; }
.auth-logo { height: 64px; margin-bottom: 16px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card form { margin-top: 20px; text-align: left; }
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ================================================================= ADMIN */
.admin-body { background: var(--bg); }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.side-brand img { height: 40px; width: auto; }
.side-school { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-election { font-size: 14px; font-weight: 700; line-height: 1.25; }
.side-nav { display: flex; flex-direction: column; padding: 12px; gap: 2px; }
.side-link { display: block; padding: 9px 12px; border-radius: var(--r-1); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.is-active { background: var(--brand-soft); color: var(--brand-text); }
.side-foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-user-name { font-weight: 700; font-size: 14px; }
.side-user-role { font-size: 12px; color: var(--muted); }
.content { padding: 24px 32px 48px; max-width: 1240px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.topbar h1 { font-size: 26px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(12, 163, 12, .5); animation: pulse 2s infinite; }
.live.is-stale .live-dot { background: var(--warn); animation: none; }
.live.is-off .live-dot { background: var(--border-strong); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12, 163, 12, .45); } 70% { box-shadow: 0 0 0 8px rgba(12, 163, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0); } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--sh-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-head h3 { font-size: 15px; font-weight: 700; }
.panel-tools { display: flex; align-items: center; gap: 10px; }
.panel-danger { border-color: #e9b4b4; }
.panel-status p { font-size: 15px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.two-col > .panel { margin-bottom: 18px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); padding: 16px 18px; box-shadow: var(--sh-1); }
.tile-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-value { font-size: 32px; font-weight: 650; line-height: 1.1; margin: 6px 0 2px; }
.tile-hero .tile-value { font-size: 48px; }
.tile-sub { font-size: 12px; color: var(--muted); min-height: 16px; }
.tile-of { font-size: 16px; font-weight: 500; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: var(--series-soft); margin-top: 10px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--series); border-radius: 3px; transition: width .4s ease; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.grid-positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 18px; }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lb-row { display: grid; grid-template-columns: 36px 40px minmax(0, 1fr) 64px; align-items: center; gap: 10px; }
.lb-rank { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--brand-soft-2); color: var(--brand-text); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.lb-main { min-width: 0; }
.lb-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-class { font-size: 12px; color: var(--muted); }
.lb-track { height: 20px; border-radius: 0 4px 4px 0; background: transparent; position: relative; margin-top: 4px; }
.lb-fill { height: 100%; width: 0; min-width: 0; background: var(--series); border-radius: 0 4px 4px 0; transition: width .4s ease; }
.lb-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 16px; }
.lb-pct { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.lb-empty { color: var(--muted); font-size: 14px; }
.lb-total { font-size: 13px; color: var(--muted); margin-top: 12px; }

.chart { position: relative; height: 220px; margin: 8px 0 4px; }
.chart-grid { position: absolute; inset: 0 0 24px 40px; }
.chart-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--grid); }
.chart-gridline span { position: absolute; left: -40px; top: -9px; width: 34px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-gridline.is-base { border-top-color: var(--axis); }
.chart-cols { position: absolute; inset: 0 0 24px 40px; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { flex: 1 1 0; max-width: 24px; height: 0; background: var(--series); border-radius: 4px 4px 0 0; position: relative; transition: height .4s ease; cursor: default; }
.chart-col:hover, .chart-col:focus-visible { background: var(--brand-deep); filter: brightness(.9); }
.chart-col-wrap { flex: 1 1 0; display: flex; justify-content: center; align-items: flex-end; height: 100%; min-width: 0; }
.chart-x { position: absolute; left: 40px; right: 0; bottom: 0; height: 20px; display: flex; gap: 2px; }
.chart-x span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; }
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; box-shadow: var(--sh-2); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.tip[hidden] { display: none; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.table tbody tr:hover { background: var(--surface-2); }
.table-compact th, .table-compact td { padding: 6px 8px; }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pager-link { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 13px; }
.pager-link.is-active { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--brand-text); font-weight: 700; }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.activity li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
.activity time { color: var(--muted); font-variant-numeric: tabular-nums; }
.activity .act { font-weight: 600; }
.activity .det { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nominee-list { list-style: none; margin: 0; padding: 0; }
.nominee-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.nominee-row:first-child { border-top: 0; }
.nominee-name { font-weight: 600; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-initials { background: var(--brand-soft-2); color: var(--brand-text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.section-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.section-name { font-weight: 600; }

.checklist { margin: 8px 0 16px; padding-left: 20px; font-size: 14px; }
.checklist .is-block { color: var(--danger-text); }
.checklist .is-warn { color: var(--warn-text); }
.code-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); border-radius: var(--r-1); padding: 12px 16px; margin-bottom: 14px; }
.code-box-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-text); }
.code-box-code { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .12em; }
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dl-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-1); }
.check-state { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; text-align: center; border-radius: 6px; }
.check-ok { border-color: #bfe5bf; } .check-ok .check-state { background: var(--good-soft); color: var(--good-text); }
.check-fail { border-color: #e9b4b4; } .check-fail .check-state { background: var(--danger-soft); color: var(--danger-text); }
.check-info .check-state { background: var(--warn-soft); color: var(--warn-text); }
.check-label { font-weight: 600; font-size: 14px; }
.plain-list { padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.plain-list li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .content { padding: 16px; }
}

/* ================================================================= BOARD */
.board-body { background: var(--bg); }
.board { min-height: 100vh; display: flex; flex-direction: column; }
.board-empty { align-items: center; justify-content: center; text-align: center; padding: 40px; }
.board-empty h1 { font-size: 28px; margin: 16px 0 8px; }
.board-head { display: flex; align-items: center; gap: 20px; padding: 22px 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.board-logo { height: 64px; }
.board-school { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.board-title { font-size: 30px; font-weight: 700; }
.board-status { margin-left: auto; }
.board-main { flex: 1; padding: 32px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; align-content: start; }
.board-pos { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 26px 28px; box-shadow: var(--sh-1); }
.board-pos h2 { font-size: 24px; margin-bottom: 18px; }
.board .lb-row { grid-template-columns: 44px 56px minmax(0, 1fr) 90px; gap: 14px; }
.board .lb-avatar { width: 56px; height: 56px; font-size: 20px; }
.board .lb-name { font-size: 20px; }
.board .lb-class { font-size: 14px; }
.board .lb-track { height: 24px; }
.board .lb-value { font-size: 24px; }
.board .lb-pct { font-size: 14px; }
.board-foot { display: flex; justify-content: space-between; padding: 14px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.board-winner { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-text); }
@media (max-width: 720px) { .board-main { grid-template-columns: 1fr; padding: 20px; } .board-head { padding: 16px 20px; } .board-title { font-size: 22px; } }

/* ================================================================= PRINT */
.print-body { background: #fff; color: #000; }
.sheet { max-width: 860px; margin: 0 auto; padding: 32px 40px; }
.sheet-head { display: flex; align-items: center; gap: 20px; border-bottom: 2px solid #000; padding-bottom: 16px; margin-bottom: 20px; }
.sheet-logo { height: 64px; }
.sheet-school { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #444; }
.sheet-title { font-size: 26px; }
.sheet-sub { font-size: 13px; color: #444; margin-top: 4px; }
.sheet-totals { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; }
.sheet-totals div { display: flex; flex-direction: column; }
.sheet-totals span { font-size: 12px; color: #444; text-transform: uppercase; letter-spacing: .06em; }
.sheet-totals strong { font-size: 22px; }
.sheet-section { margin-bottom: 24px; break-inside: avoid; }
.sheet-section h2 { font-size: 18px; margin-bottom: 8px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet-table th, .sheet-table td { border: 1px solid #999; padding: 6px 10px; text-align: left; }
.sheet-table th { background: #f0f0f0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sheet-table tr.is-top td { font-weight: 700; background: #f4f9ec; }
.sheet-table tfoot td { font-weight: 600; background: #fafafa; }
.sheet-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; font-size: 13px; color: #333; }
.sheet-sign .line { border-top: 1px solid #000; margin-bottom: 6px; height: 40px; }
.sheet-actions { display: flex; gap: 12px; margin-top: 32px; }

.slips-actions { display: flex; gap: 12px; align-items: center; padding: 16px 24px; flex-wrap: wrap; }
.slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 24px 24px; }
.slip { border: 1px dashed #888; padding: 12px 14px; break-inside: avoid; }
.slip-school { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.slip-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.slip-code { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .14em; }
.slip-meta { font-size: 12px; margin-top: 4px; }
.slip-note { font-size: 10px; color: #555; margin-top: 6px; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .no-print, .slips-actions, .sheet-actions { display: none !important; }
  .sheet { padding: 0; max-width: none; }
  .slips { padding: 0; }
}
