/* Board Assignments prototype. The six category colors follow the key of the staff PDF. */

:root {
  --ink: #1b2328;
  --muted: #5b6871;
  --line: #dde4e8;
  --soft: #f2f6f7;
  --bg: #f7f9fa;
  --card: #fff;
  --teal: #007e9f;
  --teal-ink: #00596f;
  --teal-soft: #e3f2f6;
  --green: #469b3b;
  --red: #b3261e;
  --red-soft: #fbeceb;
  --amber: #7a5200;
  --amber-soft: #fff6df;

  --c-council: #fff3b3;        --c-council-ink: #6b5700;
  --c-requires: #f2d3ef;       --c-requires-ink: #75286f;
  --c-representative: #cceaf7; --c-representative-ink: #0b5a7a;
  --c-invitation: #daefd2;     --c-invitation-ink: #2d6a20;
  --c-subcommittee: #fbdfd1;   --c-subcommittee-ink: #8b3a17;
  --c-other: #ebebeb;          --c-other-ink: #4d4d4d;

  --radius: 10px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--teal-ink); }
h1 { font-size: 26px; line-height: 1.2; margin: 26px 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 30px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

/* The page uses the full width of the screen. The side margin grows with the screen, from 16 to 48 pixels. */
.wrap { width: 100%; margin: 0; padding: 0 clamp(16px, 2.5vw, 48px); }
.proto { background: var(--ink); color: #fff; font-size: 12.5px; text-align: center; padding: 5px 12px; letter-spacing: 0.02em; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; font-size: 12px; }
.ring circle { fill: var(--teal); }
.ring .table { fill: none; stroke: var(--green); stroke-width: 2.2; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current] { background: var(--teal-soft); color: var(--teal-ink); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who-name { font-weight: 500; }
.role { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 99px; }
.role-chair { background: var(--teal); color: #fff; }
.role-staff { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.role-member { background: var(--green); color: #fff; }

/* A council member sees no form that changes data. The server refuses such a post too (post_guard). */
body.ro form[method="post"]:not(.ro-ok), body.ro .edit-only { display: none !important; }
.ro-note { background: #eef6ec; border: 1px solid #c9e2c3; color: #2d5a22; border-radius: 8px; padding: 8px 12px; margin: 14px 0 0; font-size: 14px; }

/* People on the Settings page */
.st-active { color: #23511a; font-weight: 600; }
.st-invited { color: var(--amber); font-weight: 600; }
.st-off { color: var(--muted); font-weight: 600; text-decoration: line-through; }
.link-box { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.link-box input { flex: 1 1 380px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

main { padding-bottom: 40px; min-height: 60vh; }
.foot { color: var(--muted); font-size: 12.5px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); }

.lede { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* The title and the text take all the room that the year buttons leave. */
.head-row > div:first-child { flex: 1 1 0; min-width: min(100%, 420px); }
.head-row h1 { margin-bottom: 4px; }

/* Cards and grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack > * + * { margin-top: 10px; }

.seat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.seat-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--seat, var(--line)); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); display: block; transition: border-color 0.15s; }
.seat-card:hover { border-color: var(--teal); border-top-color: var(--seat, var(--teal)); }
.seat-card .letter { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.seat-card .name { font-weight: 600; margin-top: 6px; }
.seat-card .term { font-size: 12.5px; color: var(--muted); }
.seat-card .nums { display: flex; justify-content: space-between; font-size: 13px; margin-top: 8px; }
.seat-card .tiers { font-size: 12px; color: var(--muted); margin-top: 3px; }
.seat-card.open .name { color: var(--amber); }

.bar { display: block; height: 6px; background: var(--soft); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }

.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-width: 130px; }
.stat b { display: block; font-size: 22px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* Tags */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.c-council { background: var(--c-council); color: var(--c-council-ink); }
.c-requires { background: var(--c-requires); color: var(--c-requires-ink); }
.c-representative { background: var(--c-representative); color: var(--c-representative-ink); }
.c-invitation { background: var(--c-invitation); color: var(--c-invitation-ink); }
.c-subcommittee { background: var(--c-subcommittee); color: var(--c-subcommittee-ink); }
.c-other { background: var(--c-other); color: var(--c-other-ink); }

.tier { display: inline-block; min-width: 28px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); background: #fff; }
.t1 { background: #1b2328; color: #fff; border-color: #1b2328; }
.t2 { background: #47555e; color: #fff; border-color: #47555e; }
.t3 { background: #8996a0; color: #fff; border-color: #8996a0; }
.t4 { background: #d3dade; color: var(--ink); border-color: #d3dade; }
.t5 { background: #fff; color: var(--muted); }
.tu { background: #fff; color: var(--amber); border-style: dashed; border-color: #d9b45a; }

.method { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; background: #fff; }
.m-draw { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); font-weight: 600; }
.m-whole { color: var(--muted); }
.m-office, .m-follows { border-style: dashed; }

/* Each seat has one color on every page. The letter carries the meaning, and the color helps the eye find a seat.
 * Every pair of the seven colors stays apart under normal vision and for color-blind readers
 * (OKLab delta E 18.0 or more normal, 11.7 or more protan and deutan). Each letter has a contrast of 4.7:1 or more.
 * The light seats (B, D, F) use dark letters. A thin inner line keeps the light badges visible on white. */
.seat-A { --seat: #1a4787; --seat-ink: #fff; }
.seat-B { --seat: #e8701a; --seat-ink: var(--ink); }
.seat-C { --seat: #0f7f6f; --seat-ink: #fff; }
.seat-D { --seat: #f3c623; --seat-ink: var(--ink); }
.seat-E { --seat: #8a5ad0; --seat-ink: #fff; }
.seat-F { --seat: #f4a3c4; --seat-ink: var(--ink); }
.seat-G { --seat: #5c3a1e; --seat-ink: #fff; }
.seat { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--seat, var(--teal)); color: var(--seat-ink, #fff); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); font-weight: 700; font-size: 13px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.seat.ghost { background: #fff; color: var(--muted); border: 1px dashed var(--line); box-shadow: none; }
.seats-inline .seat + .seat { margin-left: 3px; }

/* The council members of one board on the public list: one row for each member. */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.members li { display: flex; align-items: center; gap: 10px; }
.seat-key { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 12px; padding: 0; list-style: none; }
/* A name in the key is a switch. A picked name gets the teal frame of a picked filter on the Boards page. */
.seat-filter { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; cursor: pointer; }
.seat-filter:hover { border-color: var(--teal); }
.seat-filter[aria-pressed="true"], .seat-filter[aria-current] { border-color: var(--teal-ink); box-shadow: inset 0 0 0 1px var(--teal-ink); background: var(--teal-soft); font-weight: 600; }
.filter-status { font-size: 14px; margin: 0 0 12px; }
.filter-status a { margin-left: 8px; }

.src { font-size: 12px; color: var(--muted); white-space: nowrap; }
.s-draw { color: var(--teal-ink); font-weight: 600; }
.s-term { color: var(--amber); }
.s-edit { color: var(--red); }

.flag { color: var(--amber); font-weight: 700; cursor: help; }
.pending { color: var(--amber); font-weight: 600; }
.retired { color: var(--red); font-weight: 600; }

/* Notices */
.flash { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: #e7f4e4; border: 1px solid #b9dcb1; color: #23511a; }
.flash-error { background: var(--red-soft); border-color: #efc1bd; color: var(--red); }
.notice { padding: 12px 14px; border-radius: 8px; margin: 12px 0; border: 1px solid var(--line); background: #fff; }
.n-info { background: var(--teal-soft); border-color: #bfe0ea; }
.n-warn { background: var(--amber-soft); border-color: #f0d9a0; }
.n-error { background: var(--red-soft); border-color: #efc1bd; }
.n-good { background: #e7f4e4; border-color: #b9dcb1; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice li + li { margin-top: 4px; }

/* Tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--soft); position: sticky; top: 0; }
.tbl tbody tr:hover td { background: #fbfcfd; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.group td { background: var(--soft); font-weight: 600; padding-top: 10px; }
.tbl tr.group .muted { font-weight: 400; font-size: 13px; }
.tbl a { text-decoration: none; }
.tbl a:hover { text-decoration: underline; }

/* The matrix of boards and seats */
.matrix { font-size: 13.5px; }
/* The seven seat columns share 49% of a wide screen, so they do not crowd at the right edge. */
.matrix th.s, .matrix td.s { text-align: center; width: 7%; min-width: 56px; padding-left: 4px; padding-right: 4px; }
.matrix thead th.s small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; }
.matrix td.name { min-width: 260px; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.dot.c-council { background: var(--c-council-ink); }
.dot.c-requires { background: var(--c-requires-ink); }
.dot.c-representative { background: var(--c-representative-ink); }
.dot.c-invitation { background: var(--c-invitation-ink); }
.dot.c-subcommittee { background: var(--c-subcommittee-ink); }
.dot.c-other { background: var(--c-other-ink); }
.dot.d-draw { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal); }
.dot.d-term { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--amber); }
.dot.d-follows { opacity: 0.45; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 10px 2px; align-items: center; }
.legend .dot { margin-right: 6px; }

details.more { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 12px 0; }
details.more > summary { cursor: pointer; font-weight: 600; }
details.more[open] > summary { margin-bottom: 10px; }

/* Forms */
form.inline { display: inline; margin: 0; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: 8px 10px; border: 1px solid #c8d1d7; border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9fd3e2; outline-offset: 1px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 180px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 400; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice b { display: block; }
.seat-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.seat-pick { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 600; cursor: pointer; background: #fff; }
.seat-pick:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.seat-pick small { font-weight: 400; }

button, .btn { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 8px; border: 1px solid #c8d1d7; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--teal); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.btn-danger { color: var(--red); border-color: #e3aaa5; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-big { font-size: 16px; padding: 12px 22px; }
button.link { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 500; text-decoration: underline; cursor: pointer; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.years { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.years a { padding: 6px 14px; text-decoration: none; color: var(--ink); font-weight: 500; border-left: 1px solid var(--line); }
.years a:first-child { border-left: 0; }
.years a[aria-current] { background: var(--teal); color: #fff; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.filters input[type=text] { max-width: 280px; }
.filters select { width: auto; }
.pill { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 13px; background: #fff; }
.pill[aria-current] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; }

/* Draw page */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 46px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.big-seed { font: 600 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.verify-ok { color: #23511a; font-weight: 700; }
.verify-bad { color: var(--red); font-weight: 700; }
.status { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 99px; }
.st-run { background: var(--amber-soft); color: var(--amber); border: 1px solid #f0d9a0; }
.st-certified { background: #e7f4e4; color: #23511a; border: 1px solid #b9dcb1; }
.st-void { background: var(--soft); color: var(--muted); border: 1px solid var(--line); text-decoration: line-through; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.sim { font-variant-numeric: tabular-nums; }

/* Positions and terms on a board page */
.position { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.position:first-of-type { border-top: 0; padding-top: 4px; }
.position h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.term { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 6px 0; }
.term > span:nth-child(3) { flex: 1 1 200px; font-size: 14px; }
.term-label { width: 40px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 3px; text-transform: uppercase; }
.term.t-next .term-label { color: var(--teal-ink); }
.term-edit { width: 100%; padding-left: 50px; font-size: 13px; }
.term-edit > summary { cursor: pointer; color: var(--teal-ink); }
.term-edit form { margin-top: 8px; }
.more-terms { font-size: 13px; color: var(--muted); margin-top: 4px; }
.more-terms summary { cursor: pointer; }
.next-seat { margin-top: 4px; }
.inherit { columns: 2 300px; padding-left: 18px; }
.inherit li { margin-bottom: 4px; break-inside: avoid; }
.meet-list { padding-left: 18px; font-size: 14px; }
.meet-list li { margin-bottom: 4px; }
.mk-cancelled { text-decoration: line-through; opacity: 0.6; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin-top: 14px; }
.cal .dow { background: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px 6px; min-width: 0; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: #fafbfc; }
.cal .day.out .num { color: #a9b3ba; }
.cal .num { display: inline-block; font-weight: 600; font-size: 12.5px; margin: 0 0 3px 2px; padding: 0 6px; border-radius: 99px; }
.cal .day.today .num { background: var(--teal); color: #fff; }
.ev { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; padding: 1px 5px; margin: 2px 0; border-radius: 3px; text-decoration: none; font-size: 11.5px; line-height: 1.45; }
.ev:hover { filter: brightness(0.96); text-decoration: underline; }
.ev.c-council { border-left-color: var(--c-council-ink); }
.ev.c-requires { border-left-color: var(--c-requires-ink); }
.ev.c-representative { border-left-color: var(--c-representative-ink); }
.ev.c-invitation { border-left-color: var(--c-invitation-ink); }
.ev.c-subcommittee { border-left-color: var(--c-subcommittee-ink); }
.ev.c-other { border-left-color: var(--c-other-ink); }
.agenda { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.agenda-day { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.agenda-day:first-child { border-top: 0; }
.agenda-day.today { background: var(--teal-soft); }
.agenda-date { width: 54px; flex: 0 0 54px; text-align: center; line-height: 1.2; }
.agenda-date b { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.agenda-date span { font-weight: 700; }
.agenda ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.agenda li + li { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.agenda-time { display: inline-block; min-width: 150px; font-weight: 600; font-size: 14px; }
.agenda-kind { color: var(--amber); font-size: 12px; margin-left: 6px; }
.agenda .seats-inline { float: right; }

/* Sortable tables */
th.sort-head { cursor: pointer; user-select: none; white-space: nowrap; }
th.sort-head:hover { color: var(--teal-ink); }
th.sort-head::after { content: "\2195"; margin-left: 5px; opacity: 0.35; font-size: 11px; }
th.sort-head[aria-sort="ascending"]::after { content: "\25B2"; opacity: 0.9; }
th.sort-head[aria-sort="descending"]::after { content: "\25BC"; opacity: 0.9; }
.tbl thead th.sort-head { position: sticky; }

/* Workload points: the "?" links and the pop-up */
.pts-q { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--teal);
  color: var(--teal-ink); font-size: 11.5px; font-weight: 700; text-decoration: none; vertical-align: 1px; margin-left: 4px; background: #fff; }
.pts-q:hover { background: var(--teal); color: #fff; }
.pts-pop { max-width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); color: var(--ink); font-size: 15px; line-height: 1.5; }
.pts-pop::backdrop { background: rgba(27, 35, 40, 0.35); }

/* The points page */
.pts-basics { font-size: 16px; }
.pts-basics p { margin-bottom: 10px; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 34px minmax(140px, 220px) 1fr 70px; align-items: center; gap: 10px; font-size: 14px; }
.bar-row .track { display: block; height: 16px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width 0.45s ease; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-row.tied .seat { box-shadow: 0 0 0 3px #f2c94c; }
.bar-row.picked .fill { background: var(--green); }
.bar-row.picked .seat { background: var(--green); }
.bar-row.out { opacity: 0.4; }
.example td.tie { background: #fff6df; }
.example td.pick { background: #e7f4e4; font-weight: 700; }

/* The replay on the record page */
.replay-step { min-height: 64px; font-size: 15px; margin: 6px 0 14px; }
.replay-step .meta { color: var(--muted); font-size: 13px; }
.replay-year { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.replay-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.replay-controls .count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 13px; color: var(--muted); }
.legend-key i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }

/* Login */
.login { max-width: 400px; margin: 60px auto; }

/* Packet */
.packet-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filled { font-size: 12.5px; color: var(--muted); }
.filled b { color: var(--ink); }

@media (max-width: 760px) {
  :root { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .top { position: static; }
  .who { margin-left: 0; width: 100%; }
  h1 { font-size: 22px; }
  .step { padding-left: 20px; }
  .step::before { left: -6px; top: 14px; width: 22px; height: 22px; font-size: 12px; }
  .kv { grid-template-columns: 1fr; }
  .cal { display: none; }
  .agenda .seats-inline { float: none; display: block; margin-top: 4px; }
  .agenda-time { min-width: 0; display: block; }
}

@media print {
  .proto { background: none; color: #000; border-bottom: 1px solid #000; }
  .top .nav, .who, .actions, .filters, .no-print, form, .pts-q, #replay { display: none !important; }
  .top { position: static; border: 0; }
  body, .card, .scroll { background: #fff; }
  .scroll { overflow: visible; border: 0; }
  .tbl thead th { position: static; }
  a { color: inherit; text-decoration: none; }
}
