:root{--brand:#005a87;--brand-deep:#003f5f;--brand-hi:#1f6e95;--brand-soft:#dbe8ee;--brand-soft-dark:#0a2932;--brand-text-dark:#8cb5c9;--mark:#ff9e7a;--mark-soft:#ffe4da;--mark-soft-dark:#42352b;--mark-edge:#e08b6b}
/*
 * Styles every site shares: one file, which the build writes into each site's assets/ after the program's colors.
 * Site-only styles live in schedule.css and portal.css.
 *
 * Design: the header is a pager. A case in the program's color holds a backlit LCD screen.
 * The program's two colors (--brand, --mark) come from its identity: the build puts them first in this file
 * (scripts/build.ts brandCss), and the pages set them again from GET /api/identity (identity.ts applyIdentity).
 * The screen lights up on page load. No other animation plays on its own.
 * The rest stays quiet: pale scrub-green paper, a faint perforated texture, plain sheets and pressable keys.
 * Weekends get OR-style hatching.
 *
 * Fonts (self-hosted in assets/fonts, SIL Open Font License):
 *   Doto                       — dot-matrix, pager screen only
 *   Atkinson Hyperlegible Next — everything else. The Braille Institute designed it for legibility
 *
 * Colors live in the variables below. The dark ("night call") theme follows them.
 */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(fonts/atkinson-hyperlegible-next.woff2) format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Doto';
  src: url(fonts/doto.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --scrub: #e0e9e5;          /* page: pale scrub green */
  --scrub-dot: #c5d4ce;      /* the perforated-tray dots */
  --sheet: #fafcfb;          /* panels */
  --sheet-sunk: #eef3f1;     /* wells inside a panel */
  --ink: #142b26;
  --muted: #4f655d;
  --line: #cbd8d3;
  --line-strong: #9fb4ad;
  --hatch: rgba(20, 43, 38, .075);
  --fill: var(--brand, #2f4f6f);            /* the program's main color: fills */
  --fill-deep: var(--brand-deep, #21374e);
  --accent: var(--brand, #2f4f6f);              /* …for text and outlines (lighter in the dark theme) */
  --fill-soft: var(--brand-soft, #e3e8ed);
  --mark-ink: #2a2100;
  --mark-tint: var(--mark-soft, #f8eac0);
  --lcd: #c3ce9c;
  --lcd-dim: #8f9a74;
  --lcd-ink: #232c17;
  --lcd-glow: transparent;
  --ok: #1b6b43;
  --ok-soft: #dcefe4;
  --err: #b0241c;
  --err-deep: #7d140f;
  --err-soft: #fbe3e0;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --scrub: #0d1815;
    --scrub-dot: #1a2c27;
    --sheet: #13221e;
    --sheet-sunk: #0f1b18;
    --ink: #e1ebe7;
    --muted: #94aaa3;
    --line: #23392f;
    --line-strong: #3b5a51;
    --hatch: rgba(225, 235, 231, .06);
    --fill: var(--brand, #2f4f6f);
    --fill-deep: var(--brand-deep, #21374e);
    --accent: var(--brand-text-dark, #9fb3c7);
    --fill-soft: var(--brand-soft-dark, #1a2a33);
    --mark-tint: var(--mark-soft-dark, #3a3113);
    --lcd: #a5c24c;
    --lcd-dim: #4b5a22;
    --lcd-ink: #132006;
    --lcd-glow: rgba(165, 194, 76, .28);
    --ok: #82d6a6;
    --ok-soft: #173126;
    --err: #ff8f82;
    --err-deep: #7d140f;
    --err-soft: #3a1c1a;
  }
}

/* ── page ── */
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden always wins over a display set below */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--scrub);
  background-image: radial-gradient(circle, var(--scrub-dot) 1.1px, transparent 1.6px);
  background-size: 14px 14px;
  font: 16px/1.5 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
button { -webkit-tap-highlight-color: transparent; }

/* ── the pager (header) ── */
.top {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-hi, var(--fill)) 0%, var(--fill) 38%, var(--fill-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .3);
  border-bottom: 3px solid var(--mark);
  padding: 16px 16px 14px;
}
/* max-width: lines up with the panels below (main is 1120 minus its padding) */
.top-inner { max-width: 1072px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lcd {
  position: relative;
  max-width: 460px;
  color: var(--lcd-ink);
  background-color: var(--lcd);
  background-image:
    linear-gradient(rgba(35, 44, 23, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 44, 23, .055) 1px, transparent 1px),
    linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 55%);
  background-size: 3px 3px, 3px 3px, 100% 100%;
  border-radius: 10px;
  padding: 10px 14px 12px;
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, .38),
    inset 0 0 0 2px rgba(0, 0, 0, .28),
    0 1px 0 rgba(255, 255, 255, .18),
    0 0 26px var(--lcd-glow);
  animation: lcd-wake .7s ease-out both;
}
.eyebrow { font: 800 14px/1.2 'Doto', monospace; letter-spacing: .01em; opacity: .9; animation: lcd-flicker .45s steps(3) .15s both; }
/* The dates the sites cover (from the server, after sign-in), shown once here instead of in every section title. */
.lcd-range { display: block; margin-top: 6px; font: 800 15px/1.2 'Doto', monospace; letter-spacing: .01em; }
/* May–July: a switch between this academic year and the next, in the same display. */
.lcd-years { display: flex; flex-wrap: wrap; gap: 6px; }
.lcd-year {
  font: 800 15px/1.2 'Doto', monospace; letter-spacing: .01em; color: var(--lcd-ink); background: transparent;
  border: 2px solid var(--lcd-ink); border-radius: 6px; padding: 3px 8px; cursor: pointer; min-height: 32px; opacity: .65;
}
.lcd-year[aria-pressed="true"] { background: var(--lcd-ink); color: var(--lcd); opacity: 1; }
.lcd-year:hover, .lcd-year:focus-visible { opacity: 1; }
.lcd-year:focus-visible { outline: 3px solid var(--lcd-ink); outline-offset: 2px; }
h1 {
  display: inline-block;
  margin: 4px 0 0;
  font: 850 34px/1 'Doto', monospace;
  letter-spacing: .01em;
  text-shadow: 1.5px 1.5px 0 rgba(35, 44, 23, .16); /* LCD ghosting */
  animation: lcd-type .8s steps(14, end) .35s both;
}
h1::after { /* the pager's cursor: blinks three times, then goes away */
  content: ''; display: inline-block; width: .42em; height: .78em; margin-left: .14em; vertical-align: -.04em;
  background: currentColor; opacity: 0;
  animation: lcd-cursor 1.8s steps(1, end) 1.15s 1 both;
}
@keyframes lcd-wake { from { background-color: var(--lcd-dim); } to { background-color: var(--lcd); } }
@keyframes lcd-flicker { from { opacity: 0; } to { opacity: .9; } }
@keyframes lcd-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -1em 0 0); } }
@keyframes lcd-cursor { 0%, 33%, 66% { opacity: 1; } 16%, 50%, 83%, 100% { opacity: 0; } }

/* who's signed in, and the pager's rubber buttons */
.who {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .92);
}
.who:empty { display: none; }
.who-name { overflow-wrap: anywhere; }
.who-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.who .toplink, .who .linkbtn {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; color: #fff; text-decoration: none; cursor: pointer;
  background: rgba(0, 0, 0, .24); border: 0; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 rgba(0, 0, 0, .28);
}
.who .toplink:hover, .who .linkbtn:hover { background: rgba(0, 0, 0, .34); }
.who .toplink:active, .who .linkbtn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(0, 0, 0, .28); }
.top :focus-visible { outline-color: var(--mark); }

/* ── the top bar: the same on every page (nav.ts renderHeader) ── */
.top-inner > .lcd { flex: 0 1 auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 380px; align-items: center; }
.nav:empty { display: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav a:hover { background: rgba(0, 0, 0, .18); }
.nav a.on { background: rgba(0, 0, 0, .3); box-shadow: inset 0 -3px 0 var(--mark); }
.top .who { margin-top: 0; flex: 0 1 auto; }
@media (max-width: 720px) {
  .nav { flex-basis: 100%; order: 3; overflow-x: auto; flex-wrap: nowrap; margin: 0 -4px; padding-bottom: 2px; }
  .nav a { flex: 0 0 auto; }
}

/* ── the admin menu (nav.ts renderAdminMenu): beside the page on wide screens, folded above it on phones ── */
.admin-layout { max-width: 1340px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 4px; align-items: flex-start; padding: 0 0 0 16px; }
.admin-layout > main { flex: 999 1 640px; min-width: 0; margin: 0; }
.admin-menu { flex: 1 1 220px; max-width: 250px; margin-top: 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.admin-menu summary { cursor: pointer; font-weight: 800; padding: 10px 12px; min-height: 44px; display: flex; align-items: center; list-style: none; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.admin-menu[open] summary::after { content: '▴'; }
.admin-menu nav { display: flex; flex-direction: column; gap: 1px; padding-bottom: 4px; }
.admin-menu .group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 12px 12px 4px; }
.admin-menu a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 7px; font-weight: 600; font-size: 15px; min-height: 40px; display: flex; align-items: center; }
.admin-menu a:hover { background: var(--sheet-sunk); }
.admin-menu a.on { background: var(--fill-soft); color: var(--accent); font-weight: 800; }
@media (min-width: 960px) {
  .admin-menu { position: sticky; top: 12px; }
  .admin-menu summary { display: none; }
}
@media (max-width: 959px) {
  .admin-layout { padding: 0 16px; display: block; }
  .admin-menu { max-width: none; margin: 12px 0 0; }
  .admin-layout > main { padding-left: 0; padding-right: 0; }
}

/* ── layout ── */
main { max-width: 1120px; margin: 0 auto; padding: 4px 16px 48px; }
#auth { max-width: 520px; margin: 0 auto; padding: 8px 16px 0; }
.col { min-width: 0; }
/* Time-off admin page on phones: one column in this order (month, rule check, totals, who's off, changes, people). */
@media (max-width: 959px) {
  main.admin:not([hidden]) { display: flex; flex-direction: column; }
  main.admin > .col { display: contents; }
  /* Scoped to that page: Today has its own #monthCard and the portal and schedule admin their own #logCard. */
  main.admin #monthCard { order: 1; } main.admin #checkCard { order: 2; } main.admin #totalsCard { order: 3; }
  main.admin #offCard { order: 4; } main.admin #makeCard { order: 5; } main.admin #logCard { order: 6; }
}

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px 18px;
  margin-top: 14px;
}
h2 {
  font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.005em;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px dotted var(--line-strong); /* tear-off perforation */
}
.label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.hint.small { font-size: 13px; margin: 10px 0 0; }
.loading { color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); margin: 0; }

select, input[type="text"], input[type="email"], input[type="date"], input[type="tel"], input[type="number"], input[type="month"], input:not([type]) {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px: iPhones don't zoom in when it's tapped */
  color: var(--ink); background-color: var(--sheet);
  border: 1.5px solid var(--line-strong); border-radius: 8px;
  padding: 10px 12px; min-height: 46px;
}
/* Text areas and color pickers look the same on every site. A page that needs another height says so with a class. */
textarea {
  width: 100%; min-height: 84px; font: inherit; font-size: 16px; color: var(--ink); background-color: var(--sheet);
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; resize: vertical;
}
input[type="color"] {
  width: 56px; min-height: 46px; padding: 4px; cursor: pointer;
  background-color: var(--sheet); border: 1.5px solid var(--line-strong); border-radius: 8px;
}
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select:hover, input:hover { border-color: var(--muted); }
/* iPhone date fields keep their own minimum width and spill out of narrow columns. Let them shrink and fill. */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 24px; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* ── vacation tally ── */
.tally-head { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--sheet-sunk); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px 9px; }
.stat b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.remaining { border-color: var(--accent); }
.stat.remaining b { color: var(--accent); }

/* ── who is off ── */
.offlist { list-style: none; margin: 0; padding: 0; }
.offlist li { padding: 10px 0; border-top: 1px solid var(--line); }
.offlist li:first-child { border-top: 0; padding-top: 0; }
.offlist li:last-child { padding-bottom: 0; }
.offlist .when { display: block; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.offlist .cover { display: block; font-size: 14px; margin-top: 2px; }
.offlist .cover.missing { color: var(--err); font-weight: 700; }
.offlist .you, .chip-you {
  font-size: 12px; font-weight: 800; color: var(--mark-ink); background: var(--mark);
  padding: 1px 7px; border-radius: 3px; margin-left: 6px; vertical-align: 1px;
}

/* ── keys (mode tabs) ── */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.tab {
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--line-strong); border-radius: 8px;
  padding: 10px 6px; min-height: 46px; cursor: pointer;
  box-shadow: 0 2px 0 var(--line-strong);
}
.tab:hover { border-color: var(--muted); }
.tab:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line-strong); }
.tab[aria-checked="true"], .tab[aria-pressed="true"] { /* keys that work like radio buttons, or toggle on and off */
  color: #fff; background: var(--fill); border-color: var(--fill-deep);
  box-shadow: 0 2px 0 var(--fill-deep), inset 0 -3px 0 var(--mark);
}
.tab small { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
/* a group of keys, choose one: <div class="keys" style="--n:3" role="radiogroup"> */
.keys { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.keys .tab { font-size: 15px; }
.tabs5 { margin-top: 14px; }
.tabs4 { grid-template-columns: repeat(2, 1fr); }

/* ── weekend options ── */
.options { display: grid; gap: 8px; margin-bottom: 14px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  font: inherit; color: var(--ink); background: var(--sheet); cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 11px 12px;
  box-shadow: 0 2px 0 var(--line);
}
.option b, .option > span:not(.dot) { font-variant-numeric: tabular-nums; }
.option .dot { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); margin-top: 1px; background: var(--sheet); }
.option:hover:not(:disabled) { border-color: var(--accent); }
.option[aria-checked="true"] { border-color: var(--accent); background: var(--fill-soft); box-shadow: 0 2px 0 var(--accent); }
.option[aria-checked="true"] .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 42%, var(--sheet) 47%); }
.option:disabled {
  cursor: not-allowed; box-shadow: none; border-color: var(--line); color: var(--muted);
  background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 8px);
}
.option:disabled .dot { border-color: var(--line-strong); }
.option small { display: block; color: var(--muted); font-size: 13px; }

/* ── month grid ── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.dow { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cell {
  font: inherit; color: var(--ink);
  min-height: 54px; padding: 5px 2px; border-radius: 6px;
  border: 1px solid var(--line); background-color: var(--sheet);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  min-width: 0;
}
.cell .num { font-size: 14px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cell .tag {
  font-size: 11px; font-weight: 800; line-height: 1.25; letter-spacing: .02em;
  padding: 1px 4px; border-radius: 3px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--accent); background: var(--fill-soft);
}
.cell.mine .tag { color: var(--mark-ink); background: var(--mark); }
/* Holidays, blackouts, required and protected days: the day's name, edged in the colour of its kind. */
.cell .dated { font-size: 10px; line-height: 1.2; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid; padding-left: 3px; }
.dated-holiday { border-color: var(--ok); }
.dated-required { border-color: var(--accent); }
.dated-blackout, .dated-protected { border-color: var(--err); }
.swatch.dated-holiday, .swatch.dated-required, .swatch.dated-blackout, .swatch.dated-protected { border-left-width: 5px; }
.legend .dated-key { white-space: nowrap; }
.cell.weekendday { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px); }
.cell.out, .cell.past:not(.ok):not(.sel), .cell.muted { opacity: .4; }
button.cell.ok.past:not(.sel) { opacity: .72; border-style: dashed; } /* past days still open for picking */
button.cell { cursor: pointer; }
button.cell.ok { border-color: var(--line-strong); box-shadow: 0 2px 0 var(--line-strong); } /* raised keys mark pickable days */
button.cell.ok:hover { border-color: var(--accent); }
button.cell:active { transform: translateY(2px); box-shadow: none; }
.cell.sel {
  color: #fff; background-color: var(--fill); border-color: var(--fill-deep);
  box-shadow: 0 2px 0 var(--fill-deep), inset 0 -3px 0 var(--mark);
}
button.cell.ok.sel { border-color: var(--fill-deep); box-shadow: 0 2px 0 var(--fill-deep), inset 0 -3px 0 var(--mark); }
.cell.sel .tag { background: rgba(255, 255, 255, .22); color: #fff; }
.cell.removing, button.cell.ok.removing {
  background-color: var(--err-deep);
  background-image: repeating-linear-gradient(135deg, #b0241c 0 6px, transparent 6px 12px);
  border-color: var(--err-deep); box-shadow: 0 2px 0 var(--err-deep);
  text-decoration: line-through;
}

/* calendar key */
.legend { list-style: none; margin: -2px 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 18px; padding: 0 3px; border-radius: 3px;
  font-size: 11px; font-weight: 800; border: 1px solid var(--line-strong); background: var(--sheet);
}
.swatch.tag-other { color: var(--accent); background: var(--fill-soft); border-color: transparent; }
.swatch.tag-mine { color: var(--mark-ink); background: var(--mark); border-color: transparent; }
.swatch.sel { background: var(--fill); border-color: var(--fill-deep); box-shadow: inset 0 -3px 0 var(--mark); }
.swatch.wkd { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 5px); }
.swatch.removing { background: repeating-linear-gradient(135deg, #b0241c 0 4px, var(--err-deep) 4px 8px); border-color: var(--err-deep); }

/* ── selection, submit, results ── */
.selection { font-size: 15px; font-weight: 700; margin-bottom: 12px; min-height: 1.5em; }
.primary {
  display: block; width: 100%;
  font: inherit; font-size: 17px; font-weight: 800; color: #fff;
  background: var(--fill); border: 0; border-radius: 8px; padding: 14px 14px 17px; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--mark), 0 2px 0 var(--fill-deep);
}
.primary:hover:not(:disabled) { background: var(--fill-deep); }
.primary:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -4px 0 var(--mark); }
.primary.danger { background: var(--err); box-shadow: inset 0 -4px 0 var(--err-deep), 0 2px 0 var(--err-deep); }
.primary:disabled {
  cursor: not-allowed; color: var(--muted); background-color: var(--sheet-sunk);
  background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 8px);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.primary.small { padding: 10px 12px 12px; font-size: 15px; margin-top: 4px; box-shadow: inset 0 -3px 0 var(--mark); }

.status { margin-top: 12px; }
.status:empty { display: none; }
.status .box { border-radius: 6px; padding: 11px 13px; font-size: 15px; border-left: 5px solid; animation: slip-in .22s ease-out; }
.status .box.ok { background: var(--ok-soft); color: var(--ink); border-color: var(--ok); }
.status .box.error { background: var(--err-soft); color: var(--ink); border-color: var(--err); }
.status .box.note { background: var(--sheet-sunk); color: var(--ink); border-color: var(--line-strong); }
.status .box b, .status .box strong { color: inherit; }
/* A warning that stands on its own in a card (the portal's "Admin tools need a sign-in with Google or a passkey"). */
.box.warn {
  background: var(--mark-tint); color: var(--ink); border-left: 5px solid var(--mark-edge);
  border-radius: 6px; padding: 11px 13px; font-size: 15px; margin: 0 0 12px;
}
/* The tick box and button for saving over a rule (ui.ts overrideBox). */
.ack-box { margin-top: 8px; }
/* A passkey that did not work says so under its button, read from the left like every other message. */
.auth-card .passkey-btn { margin-bottom: 4px; }
.auth-card .passkey-status { text-align: left; }
/* A person's other pots of days: a line under the yearly days, and rows under their name in the admin's totals. */
.pot-line { margin: 8px 0 0; }
/* The minimums a person is still short of (time-off page). */
.minimums { margin: 0; padding-left: 18px; }
.minimums li { margin: 4px 0; }
.pot-row td { color: var(--muted); font-size: 14px; }
.pot-row td:first-child { padding-left: 18px; }
/* The reason typed beside "Mark as intended" (time-off admin, Check rules). */
.issues .fix .fix-reason { flex: 1 1 200px; min-width: 0; min-height: 38px; padding: 6px 10px; }
.status ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes slip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* The page is also inert while busy (ui.ts busy), so neither the mouse nor the keyboard reaches its controls. */
body.busy main { opacity: .6; transition: opacity .15s; }

/* What the server is doing (UI.busy / UI.busyStep): a card in the middle of the dimmed page. */
.busy-overlay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--scrub) 55%, transparent); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.busy-overlay.show { opacity: 1; visibility: visible; }
.busy-card {
  width: min(420px, 100%); background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18); padding: 22px 22px 18px; text-align: center;
}
.busy-spinner {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  border: 4px solid var(--fill-soft); border-top-color: var(--fill); animation: busy-spin .8s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
.busy-done { list-style: none; margin: 0 0 6px; padding: 0; text-align: left; }
.busy-done li { font-size: 13px; color: var(--muted); padding: 2px 0 2px 22px; position: relative; }
.busy-done li::before { content: '✓'; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.busy-now { margin: 0; font-weight: 600; color: var(--ink); text-align: left; padding-left: 22px; position: relative; min-height: 1.4em; }
.busy-now::before { content: ''; position: absolute; left: 6px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--fill); animation: busy-pulse 1s ease-in-out infinite; }
.busy-now.fresh { animation: busy-in .25s ease; }
@keyframes busy-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes busy-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .busy-spinner, .busy-now::before, .busy-now.fresh { animation: none; } }

/* ── admin page ── */
.toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.secondary {
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--accent);
  background: var(--sheet); border: 1.5px solid var(--accent); border-radius: 8px;
  padding: 10px 12px; min-height: 44px; cursor: pointer;
  box-shadow: 0 2px 0 var(--fill-soft);
}
.secondary:hover { background: var(--fill-soft); }
.secondary:active { transform: translateY(2px); box-shadow: none; }
.secondary.small { padding: 7px 11px; min-height: 36px; font-size: 14px; }
.secondary.strong { color: #fff; background: var(--fill); border-color: var(--fill-deep); box-shadow: inset 0 -3px 0 var(--mark); }
/* The program's details did not arrive (identity.ts showIdentityError): a notice above the page, with Try again. */
.identity-error { max-width: 560px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.identity-error button { width: auto; }
/* A list that could not be loaded, in the list's own place. */
.load-failed button { width: auto; margin-left: 6px; }
/* Read out, not shown: what a confirm button is doing (ui.ts say). */
.say { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.linkbtn.armed { color: var(--err); text-decoration: underline; }
.secondary.armed, .issues .secondary.armed { color: #fff; background: var(--err); border-color: var(--err-deep); box-shadow: 0 2px 0 var(--err-deep); }
.syncinfo { font-size: 13px; color: var(--muted); margin-top: 10px; }
.syncinfo:empty { display: none; }

.issues { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.issues > li { padding: 12px 0; border-top: 1px solid var(--line); }
.issues > li:first-child { border-top: 0; padding-top: 0; }
.issues .when { display: block; font-size: 13px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.issues .secondary.small { text-align: left; }
.issues .fixes { display: grid; gap: 8px; margin-top: 10px; }
.issues .fix { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.issues .fixlabel { font-size: 14px; font-weight: 700; flex-basis: 100%; }
.issues .fix select { width: auto; flex: 1 1 160px; min-width: 0; max-width: 100%; min-height: 38px; padding: 6px 34px 6px 10px; font-size: 16px; }
.issues .fixdetails { flex-basis: 100%; margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.issues .fixdetails li { padding: 1px 0; border-top: 0; }
.issues .fixhint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
main.admin #checkStatus { margin: 0 0 12px; }

.totals { width: 100%; border-collapse: collapse; font-size: 15px; }
.totals th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 0 0 6px; }
.totals td { padding: 7px 0; border-top: 1px solid var(--line); }
.totals th:not(:first-child), .totals td.num { text-align: right; font-variant-numeric: tabular-nums; width: 64px; }
.totals td.low { color: var(--err); font-weight: 800; }

.override { margin-top: 8px; font-size: 14px; }
.override summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.override[open] { background: var(--sheet-sunk); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; }
.override select { margin-bottom: 8px; }
.override .label { margin-top: 8px; }
.override-toggle {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer;
  background: var(--mark-tint); border: 1.5px solid var(--mark-edge); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.override-toggle b { color: var(--ink); }
.customform .override-toggle { margin-top: 2px; }
.ack-note { margin-top: 6px; color: var(--err); font-weight: 700; font-size: 14px; }
/* What the engine warns about though it allows it: on a weekend option, under a picked day, and after saving. */
.warn-note { margin-top: 6px; font-size: 14px; background: var(--mark-tint); border-left: 4px solid var(--mark-edge); border-radius: 4px; padding: 4px 8px; }
.option small.warn-why { color: var(--ink); background: var(--mark-tint); border-left: 3px solid var(--mark-edge); border-radius: 4px; padding: 1px 6px; margin: 2px 0; display: inline-block; }
.status .box.warn { margin: 8px 0 0; }
.override-toggle#ackRow { margin: 10px 0 12px; }
.ack-why { display: block; margin: 4px 0 6px; }
.ack-why > span { display: block; color: var(--ink); padding-left: 14px; position: relative; }
.ack-why > span::before { content: '•'; position: absolute; left: 2px; color: var(--fill); }
/* Allowed only with an override: a gold corner on the day, a gold note on the weekend. */
.cell.needs-override { position: relative; }
.cell.needs-override::after { content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 1.5px var(--mark-edge); }
.option.needs-override { border-style: dashed; }
.option small.override-why { color: var(--ink); background: var(--mark-tint); border-radius: 4px; padding: 1px 6px; margin: 2px 0; display: inline-block; }
.swatch.needs-override { position: relative; }
.swatch.needs-override::after { content: ''; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 1.5px var(--mark-edge); }
.override-toggle input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--fill); flex: 0 0 auto; }
.customform { margin-bottom: 14px; }
.customform input { margin-bottom: 10px; }
.daterow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.daterow > *, .pick > * { min-width: 0; } /* grid columns may shrink below their content's width */

/* ── a control under its label (UI.field); fields side by side in a .row, which wraps, or in a grid of .fields ── */
.field { display: block; min-width: 0; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 8px 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.row > .field, .fields > .field, .daterow > .field, .override .field { margin-bottom: 0; }
.row > .field .label { margin-bottom: 4px; }
.row > label:not(.field) { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; font-size: 14px; font-weight: 700; color: var(--muted); }
.row button { width: auto; }
/* People ticked by name (components/people.ts). */
.people-picker { display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 40em; }
.people-picker label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ── tables (components/table.ts): one that is wider than the screen scrolls in its own box ── */
.table-wrap { overflow-x: auto; margin: 6px 0 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 10px 6px 0; border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th:last-child, .table td:last-child { padding-right: 0; }

/* ── recent changes (both admin pages) ── */
/* Long change logs scroll inside their card after about ten entries. */
.log { list-style: none; margin: 0; padding: 0 6px 0 0; font-size: 14px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.log:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.log li { padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log .when { display: block; font-size: 13px; color: var(--muted); }
.log .log-more { text-align: center; }
.feed-use { margin: 8px 0 0; }

/* ── sign-in ── */
.auth-card { text-align: center; padding: 26px 20px 22px; }
.auth-card h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; font-size: 22px; }
.auth-card p { margin: 0 0 10px; }
.auth-card .gsi-button { min-height: 44px; margin: 14px 0 12px; display: flex; justify-content: center; }
/* Google's button frame is light. In dark mode a mismatched frame paints a white box around the pill. */
iframe[src*="accounts.google.com"] { color-scheme: light; }
.linkbtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.auth-card .linkbtn { color: var(--accent); font-weight: 700; text-decoration: none; min-height: 40px; }
.auth-card .hint.small { margin-top: 6px; }
.auth-card .or { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.auth-card .or::before, .auth-card .or::after { content: ''; flex: 1; border-top: 1.5px dotted var(--line-strong); }
.code-form { display: grid; gap: 8px; text-align: left; }
.code-form .label { margin: 0; }
.code-form .code-step { display: grid; gap: 8px; }
.code-form .code-step .hint { margin: 2px 0 0; }
.code-form .primary.small { margin: 0; }
.code-form .linkbtn { justify-self: start; min-height: 32px; font-size: 14px; }
.code-form .status { margin: 0; }
.signup-line { margin: 14px 0 0 !important; font-weight: 700; }
.signup-line .toplink { color: var(--accent); }

/* ── chips (small labels) ── */
.chip { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 3px; margin-left: 6px; vertical-align: 1px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--err-soft); color: var(--err); }
.chip.muted { background: var(--sheet-sunk); color: var(--muted); border: 1px solid var(--line); }
.chip.warn { background: var(--mark-tint); color: var(--ink); border: 1px solid var(--mark-edge); }

/* ── small phones (iPhone SE and narrower) ── */
@media (max-width: 380px) {
  h1 { font-size: 28px; }
  .eyebrow { font-size: 12px; }
}

/* ── bigger screens ── */
@media (min-width: 600px) {
  .tabs5 { grid-template-columns: repeat(5, 1fr); }
  .tabs4 { grid-template-columns: repeat(4, 1fr); }
  .cell { min-height: 64px; }
  .card { padding: 20px 22px 22px; }
}
@media (min-width: 760px) {
  .top { padding: 20px 24px 16px; }
  .top-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .lcd { flex: 0 1 460px; padding: 12px 18px 14px; }
  h1 { font-size: 40px; }
  .who { margin-top: 0; justify-content: flex-end; text-align: right; }
  main { padding: 8px 24px 64px; }
}
@media (min-width: 960px) {
  /* two columns: what's happening on the left, the calendar to act on at the right */
  main.split:not([hidden]) { display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  main.split > .side { grid-column: 1; }
  main.split > .wide { grid-column: 2; }
  .wide .options { grid-template-columns: 1fr 1fr; }
  .wide .cell { min-height: 78px; align-items: flex-start; padding: 7px 7px; }
  .wide .cell .num { font-size: 15px; }
  .wide .cal { gap: 6px; }
  .wide .legend { grid-template-columns: repeat(3, auto); justify-content: start; }
}

/* ── privacy page ── */
main.page { max-width: 720px; }
.page .back { margin: 12px 0 0; }
/* The foot of every page (nav.ts pageFoot): the link to the privacy page. */
.site-foot { max-width: 720px; margin: 24px auto 0; padding: 12px 16px 28px; text-align: center; font-size: 14px; }
.site-foot a { color: var(--muted); }

/* ── people who prefer less motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1::after { display: none; }
}

/* ── page parts from the 2.0 design: a page heading, two columns, wells, readouts, ticks, approval steps ── */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 18px 0 4px; }
.page-head h2.title { font-size: 28px; line-height: 1.15; margin: 0; padding: 0; border: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-head .actions a { text-decoration: none; }
.cols { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 300px; min-width: 0; }
.well { background: var(--sheet-sunk); border-radius: 8px; padding: 12px 14px; }
.wells { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.well .label-sm { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.well .none { color: var(--muted); }
.readouts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.readout b { display: block; font: 900 34px/1 'Doto', monospace; }
.readout span { font-size: 13px; color: var(--muted); }
.meter { height: 10px; border-radius: 999px; background: var(--sheet-sunk); overflow: hidden; display: flex; box-shadow: inset 0 0 0 1px var(--line); }
.meter i { display: block; height: 100%; }
.checks { list-style: none; margin: 0; padding: 0; }
/* An item marked with where it stands (components/states.ts): the mark, then what it is. */
.state-item { display: flex; gap: 10px; align-items: flex-start; }
.state-body { flex: 1; min-width: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; font-size: 13px; }
.tick.ok { background: var(--ok-soft); color: var(--ok); }
.tick.warn { background: var(--mark); color: var(--mark-ink); }
.tick.wait { background: var(--sheet-sunk); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line-strong); }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; }
.steps .step { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--sheet-sunk); font-weight: 700; }
.steps .step.now { background: var(--mark-tint); }
.steps .step .tick { width: 22px; height: 22px; font-size: 12px; }
.steps .step-by { font-weight: 400; color: var(--muted); }
.steps .join { width: 14px; height: 2px; background: var(--line-strong); }
.needs { display: flex; flex-direction: column; gap: 10px; }
.needs .well { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.needs .well > div { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 260px; }
/* A service's name as a colored pill (Today's week). */
.svc-pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; color: #fff; background: var(--svc, var(--fill)); white-space: nowrap; }
.weekgrid { overflow-x: auto; }
.weekgrid table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 640px; }
.weekgrid th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.weekgrid th.today { color: var(--accent); }
.weekgrid td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.weekgrid td.today { background: var(--fill-soft); }
.weekgrid .me { font-weight: 800; }
.weekgrid .away { text-decoration: line-through; color: var(--muted); }
.weekgrid .cover { display: block; font-size: 12px; color: var(--accent); font-weight: 700; }
/* A link that looks like a button (with .secondary or .primary). */
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 8px; font-weight: 800; text-decoration: none; }

.primary.short { width: auto; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; margin: 0; }
.page-head .actions .secondary { margin: 0; }

/* ── calendar feeds with one-click subscribing (components/feeds.ts feedList) ── */
.feeds { list-style: none; margin: 0 0 12px; padding: 0; }
.feeds li.feed { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.feeds li.feed:first-child { border-top: 0; padding-top: 0; }
.feed-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.feed-buttons .feed-add { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.feed-more summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 700; padding: 6px 0; min-height: 32px; }
.feed-more a { display: inline-block; margin: 4px 0 8px; font-size: 14px; }
.feed-copy { display: flex; gap: 6px; align-items: center; }
.feed-copy .feed-url { flex: 1 1 auto; min-width: 0; font-size: 12px; }

.access-list { margin: 0 0 12px; padding-left: 20px; }
.auth-card .toplink { color: var(--accent); font-weight: 700; }

/* ── the swaps page: weekends ranked best first, and the swap form ── */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rank-list .num { font: 900 22px/1 'Doto', monospace; width: 30px; text-align: center; }
.rank-list li.unranked { opacity: .75; }
.rank-list .rank-name { display: flex; gap: 10px; align-items: center; }
.rank-list .moves { display: flex; gap: 6px; }
.rank-list .moves button { min-width: 44px; }
.swapform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.swapform label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }

/* ── the privacy page ── */
.privacy .card p, .privacy .card li { margin: 0 0 8px; }
.privacy .card ul { padding-left: 20px; margin: 0 0 8px; }

/* ── one-off adjustments, as classes: the pages' policy allows no inline styles ── */
.mt-0 { margin-top: 0 !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.auto { width: auto !important; }
.flex-1 { flex: 1; }
.w-5em { width: 5em !important; }
h1.still { animation: none; font-size: 26px; }

/* ── the demo's "Viewing as" bar (demo builds only, sites/shared/demo.ts) ── */
#demoBar { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: center; padding: 8px 16px;
  background: var(--mark); color: #2a2100; font-weight: 600; }
#demoBar button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 2px; text-decoration: underline;
  cursor: pointer; min-height: 32px; }
