/* Commissioner pages: menu, settings layout, switches, save bar, branding.
   Loaded after base.css and app.css. */

/* ---------- menu under the header ---------- */
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-nav .wrap { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.admin-nav .wrap::-webkit-scrollbar { display: none; }
.admin-nav a {
  flex: none; display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 var(--s-3); color: var(--ink-muted); text-decoration: none; font-weight: 700;
  border-bottom: 3px solid transparent;
}
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }
.admin-nav a.out { margin-left: auto; font-weight: 400; }

.page.wide { max-width: var(--page); }

/* ---------- step indicator (league setup) ---------- */
.steps { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin-top: var(--s-4); }
.steps li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.on { background: var(--primary); }
.step-count { color: var(--ink-muted); font-size: var(--step--1); margin-top: var(--s-2); }
.wizard-nav { display: flex; gap: var(--s-3); }
.wizard-nav .btn { flex: 1; }

.prefix-input { display: flex; align-items: stretch; }
.prefix-input .prefix {
  display: inline-flex; align-items: center; padding: 0 var(--s-3);
  border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-m) 0 0 var(--radius-m);
  background: var(--bg); color: var(--ink-muted); font-size: var(--step--1); white-space: nowrap;
}
.prefix-input input { border-radius: 0 var(--radius-m) var(--radius-m) 0 !important; min-width: 0; }
.check-ok { color: var(--ok); }
.check-bad { color: var(--danger); }

/* Division rows */
.div-rows { list-style: none; padding: 0; }
.div-rows li { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-2); }
.div-rows .lvl { width: 2rem; flex: none; color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: center; }
.div-rows input { flex: 1; min-width: 0; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }

.icon-btn {
  flex: none; min-width: var(--tap); min-height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); cursor: pointer; font-size: var(--step-1); line-height: 1;
}
.icon-btn:hover:not([disabled]) { border-color: var(--ink-muted); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }

/* Preset choice */
.preset-cards { display: grid; gap: var(--s-3); }
@media (min-width: 34rem) { .preset-cards { grid-template-columns: 1fr 1fr; } }
.preset-card { position: relative; display: block; padding: var(--s-4); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; }
.preset-card input { position: absolute; opacity: 0; }
.preset-card b { display: block; font-size: var(--step-1); }
.preset-card span { color: var(--ink-muted); font-size: var(--step--1); }
.preset-card:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.preset-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- settings layout ---------- */
.settings-top { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.settings-top h1 { font-size: clamp(var(--step-3), 6vw, var(--step-4)); }
.search { position: relative; flex: 1 1 18rem; max-width: 26rem; }
.search input { width: 100%; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }

.settings-grid { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
@media (min-width: 56rem) { .settings-grid { grid-template-columns: 14rem 1fr; } }
.side-nav { display: none; }
@media (min-width: 56rem) {
  .side-nav { display: block; position: sticky; top: var(--s-4); align-self: start; }
  .section-pick { display: none; }
}
.side-nav ul { list-style: none; padding: 0; }
.side-nav a {
  display: block; padding: var(--s-2) var(--s-3); border-radius: var(--radius-m);
  color: var(--ink); text-decoration: none;
}
.side-nav a:hover { background: var(--surface); }
.side-nav a[aria-current="true"] { background: var(--surface); font-weight: 800; box-shadow: inset 3px 0 0 var(--primary); }
.side-nav .group { margin-top: var(--s-4); padding: 0 var(--s-3); color: var(--ink-muted); font-size: var(--step--1); }
.section-pick select { width: 100%; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); font-weight: 700; }

.sec-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: baseline; justify-content: space-between; }
.sec-head h2 { font-size: var(--step-3); }
.sec-blurb { color: var(--ink-muted); margin-top: var(--s-1); }
.later-note { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-m); background: var(--surface); border: 1px dashed var(--line); font-size: var(--step--1); color: var(--ink-muted); }

.set-list { margin-top: var(--s-4); }
.set-row {
  display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: var(--s-3);
}
@media (min-width: 40rem) { .set-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.set-row.stacked { grid-template-columns: 1fr; }
.set-row .name { font-weight: 800; }
.set-row .help { color: var(--ink-muted); font-size: var(--step--1); margin-top: var(--s-1); }
.set-row .from { font-size: var(--step--1); color: var(--ink-muted); }
.set-row.changed { box-shadow: inset 4px 0 0 var(--secondary); }
.set-row.note { background: transparent; border-style: dashed; color: var(--ink-muted); }
.set-row .tag { display: inline-block; margin-left: var(--s-2); padding: 0 var(--s-2); border-radius: 999px; background: var(--bg); font-size: var(--step--1); font-weight: 400; color: var(--ink-muted); }
.set-row .field select { min-width: 14rem; }
.set-row .field.num { display: flex; align-items: center; gap: var(--s-2); }
.set-row .field.num input { width: 6.5rem; }
.set-row .field.num .unit { color: var(--ink-muted); font-size: var(--step--1); }
.set-row .opts.seg { min-width: min(100%, 22rem); }
.search-hit-sec { margin-top: var(--s-5); color: var(--ink-muted); font-size: var(--step--1); font-weight: 700; }

/* Lists in settings (infractions, tiebreakers, level names) */
.list-edit .rows { list-style: none; padding: 0; }
.list-edit .rows li { display: flex; gap: var(--s-2); align-items: center; margin-bottom: var(--s-2); }
.list-edit .rows input { flex: 1; min-width: 0; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.list-edit .row-label { flex: 1; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg); }
.list-edit .date-add input { min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.labels5 { list-style: none; padding: 0; }
.labels5 li { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-2); }
.labels5 textarea { flex: 1; padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); resize: vertical; }
.num-badge {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-m);
  background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: var(--step-1); font-variation-settings: 'wdth' 72;
}

/* ---------- switch ---------- */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; margin: 0; min-height: var(--tap); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 52px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background 0.15s; }
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- save bar ---------- */
.save-bar {
  position: sticky; bottom: 0; z-index: 5; margin-top: var(--s-6);
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(10, 20, 30, 0.08);
}
.save-bar .wrap { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-block: var(--s-3); }
.save-bar .msg { flex: 1 1 14rem; font-weight: 700; }
.save-bar .running { flex-basis: 100%; }
.toast {
  position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); z-index: 10;
  padding: var(--s-3) var(--s-5); border-radius: var(--radius-m); background: var(--ink); color: var(--bg); font-weight: 700;
}

/* ---------- people (helpers) ---------- */
.people { list-style: none; padding: 0; }
.people > li { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: var(--s-3); }
.people .who-line { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: baseline; justify-content: space-between; }
.people .email { font-weight: 800; overflow-wrap: anywhere; }
.people .role { color: var(--ink-muted); font-size: var(--step--1); }
.people .opts { margin-top: var(--s-3); }
.people .opt-btn span { min-height: 36px; padding: var(--s-1) var(--s-3); font-size: var(--step--1); }

/* ---------- commissioner home ---------- */
.todo { list-style: none; padding: 0; }
.todo li a {
  display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4); margin-top: var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  color: var(--ink); text-decoration: none;
}
.todo li a:hover { border-color: var(--ink-muted); }
.todo .t { font-weight: 800; }
.todo .d { color: var(--ink-muted); font-size: var(--step--1); }
.todo .state { margin-left: auto; flex: none; font-size: var(--step--1); color: var(--ink-muted); }
.todo .state.done { color: var(--ok); font-weight: 700; }

/* ---------- site and branding ---------- */
.brand-grid { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
@media (min-width: 62rem) { .brand-grid { grid-template-columns: minmax(0, 1fr) 430px; align-items: start; } }
.brand-form > section + section { margin-top: var(--s-6); }
.brand-form h2 { font-size: var(--step-2); }
.brand-form h2 + * { margin-top: var(--s-3); }
.brand-form .field + .field { margin-top: var(--s-4); }

.theme-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.theme-group { color: var(--ink-muted); font-size: var(--step--1); margin: var(--s-3) 0 var(--s-2); }
.theme-tile { position: relative; display: block; margin: 0; cursor: pointer; }
.theme-tile input { position: absolute; opacity: 0; }
.theme-tile .sw {
  display: flex; flex-direction: column; justify-content: flex-end; height: 76px; padding: var(--s-2);
  border: 1.5px solid var(--line); border-radius: var(--radius-m); font-weight: 800; font-size: var(--step--1);
}
.theme-tile .sw small { font-weight: 400; color: inherit; opacity: 0.8; }
.theme-tile input:checked + .sw { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.theme-tile input:focus-visible + .sw { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-tile input:disabled + .sw { cursor: not-allowed; opacity: 0.55; }
.sw.clean { background: #F4F7FA; color: #101D32; }
.sw.classic { background: #F6F0E2; color: #2B2118; font-family: Georgia, serif; }
.sw.night { background: #1B2027; color: #E8EEF3; }
.sw.gameday { background: repeating-linear-gradient(135deg, #10161E 0 14px, #1C2633 14px 28px); color: #FFFFFF; text-transform: uppercase; }
.sw.bold { background: #101D32; color: #FFFFFF; font-size: var(--step-0); font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; }
.sw.retro { background: conic-gradient(#E9E2FF 25%, #FFFFFF 0 50%, #E9E2FF 0 75%, #FFFFFF 0) 0 0 / 16px 16px; color: #3A1F6B; font-weight: 800; }

.color-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.color-pick { display: flex; gap: var(--s-2); align-items: center; }
.color-pick input[type=color] { width: var(--tap); height: var(--tap); padding: 2px; border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; flex: none; }
.color-pick input[type=text] { width: 100%; min-width: 0; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.safety { margin-top: var(--s-3); font-size: var(--step--1); color: var(--ink-muted); }
.safety .chip { display: inline-block; padding: 2px var(--s-2); border-radius: var(--radius-s); font-weight: 800; }

.image-pick { display: flex; gap: var(--s-4); align-items: center; }
.image-pick .thumb { flex: none; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #FFFFFF; display: grid; place-items: center; overflow: hidden; color: var(--ink-muted); font-size: var(--step--1); }
.image-pick .thumb.cover { width: 160px; height: 64px; }
.image-pick .thumb img { width: 100%; height: 100%; object-fit: contain; }
.image-pick .thumb.cover img { object-fit: cover; }
.image-pick .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.counter { text-align: right; font-size: var(--step--1); color: var(--ink-muted); margin-top: var(--s-1); }
.field textarea { width: 100%; padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); resize: vertical; }
.toggle-row { display: flex; gap: var(--s-4); align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.toggle-row .help { color: var(--ink-muted); font-size: var(--step--1); }

/* Preview column */
.preview-col { position: sticky; top: var(--s-4); }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.preview-head h2 { font-size: var(--step-2); }
.preview-head .opts.seg { width: 12rem; }
.phone-frame {
  margin: var(--s-3) auto 0; width: 100%; max-width: 410px; padding: 10px;
  border-radius: 34px; background: #101D32; box-shadow: 0 10px 30px rgba(10, 20, 30, 0.2);
}
.phone-frame iframe { display: block; width: 100%; height: 720px; border: 0; border-radius: 26px; background: var(--bg); }
.preview-note { margin-top: var(--s-2); text-align: center; color: var(--ink-muted); font-size: var(--step--1); }
.toggle-row .name { font-weight: 800; }
.set-row .opts.seg .opt-btn span { white-space: nowrap; }
.color-row .field + .field { margin-top: 0; }

/* Choices with an explanation under each option */
.choice-cards { display: grid; gap: var(--s-2); }
@media (min-width: 48rem) { .choice-cards { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.choice-card {
  position: relative; display: block; margin: 0; cursor: pointer;
  padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 30px);
  border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
}
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card .mark {
  position: absolute; left: var(--s-4); top: calc(var(--s-3) + 2px); width: 20px; height: 20px;
  border: 2px solid var(--ink-muted); border-radius: 50%; background: var(--surface);
}
.choice-card .t { display: block; font-weight: 800; }
.choice-card .d { display: block; margin-top: var(--s-1); color: var(--ink-muted); font-size: var(--step--1); font-weight: 400; line-height: 1.45; }
.choice-card:hover { border-color: var(--ink-muted); }
.choice-card:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: color-mix(in oklab, var(--primary) 8%, var(--surface)); }
.choice-card input:checked ~ .mark { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 5px, var(--surface) 6px); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ===================== shared pieces for the season pages ===================== */
.season-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.season-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: 52px; font-size: var(--step--1); }
.season-bar .lbl { margin: 0; font-weight: 700; color: var(--ink-muted); }
.season-bar select { min-height: 38px; padding: var(--s-1) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); font-weight: 700; }

.chip { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px var(--s-2); border-radius: 999px; font-size: var(--step--1); font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--ink-muted); white-space: nowrap; }
.chip.on, .chip.status-signup, .chip.status-active, .chip.status-drafting, .chip.status-playoffs { color: var(--ok); border-color: currentColor; }
.chip.warn { color: var(--danger); border-color: currentColor; }

.page-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
#page-body { margin-top: var(--s-5); }
#page-body > * + * { margin-top: var(--s-5); }
.panel.empty { text-align: left; }
.btn.armed { border-color: var(--danger); color: var(--danger); }
.btn.small { min-height: 36px; padding: var(--s-1) var(--s-3); font-size: var(--step--1); }
.btn-danger { color: var(--danger); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--ink) 35%, transparent); vertical-align: -2px; flex: none; background: var(--line); }
.div-tabs { flex-wrap: wrap; }
.div-tabs .opt-btn span { min-width: 4.5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.toolbar .search input { min-height: 40px; }

.cards { display: grid; gap: var(--s-3); }
@media (min-width: 46rem) { .cards.two { grid-template-columns: 1fr 1fr; } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--s-4); }
.card > * + * { margin-top: var(--s-3); }
.card h3 { font-size: var(--step-1); }
.card .meta { color: var(--ink-muted); font-size: var(--step--1); }
.card-head { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: space-between; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.big-num { font-size: var(--step-3); font-weight: 800; font-variation-settings: 'wdth' 72; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-line { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.stat-line > div { min-width: 5rem; }
.stat-line .lbl { font-size: var(--step--1); color: var(--ink-muted); }

.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.form-grid .field { margin: 0; }
.field select { width: 100%; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.check-line { display: flex; gap: var(--s-2); align-items: center; font-weight: 400; margin: 0; }
.check-line input { width: 20px; height: 20px; }

/* Tables that turn into stacked rows on phones */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.tbl th, .tbl td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: var(--step--1); color: var(--ink-muted); font-weight: 700; background: var(--bg); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .name { font-weight: 700; }
.tbl .sub { display: block; font-weight: 400; color: var(--ink-muted); font-size: var(--step--1); }
@media (max-width: 44rem) {
  .tbl.stack thead { display: none; }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
  .tbl.stack td { border: 0; padding: var(--s-1) var(--s-3); }
  .tbl.stack td[data-label]::before { content: attr(data-label) ': '; color: var(--ink-muted); font-size: var(--step--1); }
}

/* 1 to 5 rating buttons in the player list */
.rate { display: inline-flex; gap: 4px; }
.rate button {
  width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums;
}
.rate button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rate button:hover { border-color: var(--ink-muted); }

.signup-link { display: flex; gap: var(--s-2); }
.signup-link input { flex: 1; min-width: 0; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--bg); }
.counts { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.counts .card { flex: 1 1 8rem; }

details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
details.more > summary { cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 800; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; display: inline-block; width: 1.2em; color: var(--ink-muted); }
details.more[open] > summary::before { content: '\2212'; }
details.more > .inner { padding: 0 var(--s-4) var(--s-4); }
details.more > .inner > * + * { margin-top: var(--s-3); }

/* Home checklist steps */
.steps-list { list-style: none; padding: 0; counter-reset: step; }
.steps-list li a {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: var(--s-3); align-items: center;
  padding: var(--s-3) var(--s-4); margin-top: var(--s-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); color: var(--ink); text-decoration: none;
}
.steps-list li a:hover { border-color: var(--ink-muted); }
.steps-list .n { counter-increment: step; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); font-weight: 800; }
.steps-list .n::before { content: counter(step); }
.steps-list li.done .n { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.steps-list li.now a { border-color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
.steps-list .t { font-weight: 800; }
.steps-list .d { color: var(--ink-muted); font-size: var(--step--1); }
.steps-list .s { font-size: var(--step--1); color: var(--ink-muted); text-align: right; }
.name { font-weight: 800; }
.card .name, .inner .name { margin-bottom: var(--s-2); }
.sponsor-head { display: flex; gap: var(--s-3); align-items: center; min-width: 0; }
.sponsor-head .sponsor-tile { width: 96px; height: 56px; padding: var(--s-1); flex: none; }
.sponsor-head .sponsor-tile img { max-height: 44px; }
.sponsor-head a.meta { display: block; overflow-wrap: anywhere; }
.news-body { white-space: pre-line; }
.steps-list .t, .steps-list .d { display: block; }
#page-body h2 { font-size: var(--step-2); }
#page-body h2 + .meta { margin-top: var(--s-1); }

/* Schedule builder */
.slot-rows { display: grid; gap: var(--s-2); container-type: inline-size; }
.slot-row { display: grid; grid-template-columns: 1fr 7.5rem 1fr 1fr auto; grid-template-areas: "day time loc dv x"; gap: var(--s-2); align-items: center; }
.slot-rows.one-div .slot-row { grid-template-columns: 1fr 7.5rem 1fr auto; grid-template-areas: "day time loc x"; }
.slot-row .sl-day { grid-area: day; } .slot-row .sl-time { grid-area: time; } .slot-row .sl-loc { grid-area: loc; } .slot-row .slot-div { grid-area: dv; } .slot-row .sl-x { grid-area: x; }
.slot-row select, .slot-row input { min-height: var(--tap); padding: var(--s-2); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); min-width: 0; }
/* Narrow: day, time and remove on top; rink and division under them */
@container (max-width: 36rem) {
  .slot-row { grid-template-columns: 1fr 1fr auto; grid-template-areas: "day time x" "loc dv dv"; }
  .slot-rows.one-div .slot-row { grid-template-columns: 1fr 1fr auto; grid-template-areas: "day time x" "loc loc loc"; }
  .slot-rows .slot-row + .slot-row { padding-top: var(--s-2); border-top: 1px solid var(--line); }
}
#sched-options .choice-cards { grid-template-columns: 1fr; }
#sched-options .check-line { margin-top: var(--s-3); }
#sched-options .opt { font-weight: 400; color: var(--ink-muted); font-size: var(--step--1); }

/* Schedule board: weeks of slot cells, games dragged between them */
.board-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-top: var(--s-3); }
.board-head .meta { flex: 1 1 22rem; margin: 0; }
.bweek { margin-top: var(--s-5); }
.bweek h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
@media (min-width: 52rem) {
  .bweek { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 var(--s-3); margin-top: var(--s-3); }
  .bweek h3 { grid-column: 1; grid-row: 1 / span 2; margin: var(--s-2) 0 0; }
  .bweek h3 .sub { display: block; }
  .bweek-note, .bgrid { grid-column: 2; }
}
.bweek h3 .sub { font-weight: 600; color: var(--ink-muted); font-size: var(--step-0); }
.bweek-note { margin: 0 0 var(--s-2); color: var(--danger); font-weight: 700; font-size: var(--step--1); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--s-2); }
.bcell {
  display: flex; flex-direction: column; gap: var(--s-2); min-height: 6.25rem; padding: var(--s-2);
  border: 1.5px dashed var(--line); border-radius: var(--radius-m); background: color-mix(in oklab, var(--bg) 60%, var(--surface));
  transition: border-color .12s, background-color .12s;
}
.bcell:not(.empty) { border-style: solid; background: var(--surface); }
.bcell-label { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); font-size: var(--step--1); font-weight: 800; color: var(--ink-muted); }
.bcell-label .sub { font-weight: 600; }
.bcell.other { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); min-height: 0; border-style: dotted; }
.bcell.other .bcell-label { grid-column: 1 / -1; }
.bcell.drop-ok { border: 2px solid var(--primary); background: color-mix(in oklab, var(--primary) 10%, var(--surface)); }
.bcell.drop-no { border: 2px solid var(--danger); }
.open-slot { margin: auto; color: var(--ink-muted); font-size: var(--step--1); }
.drop-here { margin: auto; }
.gcard {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h side" "a side" "warn warn";
  gap: 2px var(--s-2); align-items: start; width: 100%; margin: 0;
  padding: var(--s-2) var(--s-2) var(--s-2) 1.9rem; text-align: left; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.gcard:hover { border-color: var(--ink-muted); }
.gcard.locked { cursor: pointer; padding-left: var(--s-2); background: color-mix(in oklab, var(--bg) 70%, var(--surface)); }
.gcard .grip { position: absolute; left: 0; top: 0; bottom: 0; width: 1.75rem; touch-action: none; cursor: grab; }
.gcard .grip::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 20px; transform: translate(-50%, -50%);
  background-image: radial-gradient(circle, var(--ink-muted) 1.4px, transparent 1.8px); background-size: 4px 5px;
}
.gcard.has-when { grid-template-areas: "when when" "h side" "a side" "warn warn"; }
.gc-top { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-1); }
.gc-when { grid-area: when; font-size: var(--step--1); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.gc-res { font-weight: 800; font-size: var(--step--1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gc-team { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.gc-team.h { grid-area: h; } .gc-team.a { grid-area: a; }
.gc-warn { grid-area: warn; margin-top: 2px; color: var(--danger); font-weight: 700; font-size: var(--step--1); line-height: 1.3; }
.gcard.clash { border-color: var(--danger); }
.gcard.picked { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.gcard.dragging { opacity: 0.35; }
.gcard.ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; cursor: grabbing; box-shadow: 0 12px 28px rgb(0 0 0 / 0.2); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.pick-bar {
  position: sticky; bottom: var(--s-3); z-index: 20; margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: space-between;
  padding: var(--s-3); background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius-m);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); font-weight: 600;
}
#view-tabs { margin-left: auto; }
.sched-side { align-content: start; }
@media (min-width: 46rem) { .sched-side { position: sticky; top: var(--s-4); align-self: start; } }
.week { margin-top: var(--s-4); }
.week h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
details.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: var(--s-2); }
details.game > summary {
  display: grid; grid-template-columns: 11rem auto 1fr auto; gap: var(--s-3); align-items: center;
  padding: var(--s-2) var(--s-3); cursor: pointer; list-style: none;
}
details.game > summary::-webkit-details-marker { display: none; }
details.game .when { font-variant-numeric: tabular-nums; color: var(--ink-muted); font-size: var(--step--1); }
details.game .teams { font-weight: 700; }
details.game .res { font-weight: 800; font-variant-numeric: tabular-nums; }
details.game.cancelled .teams { text-decoration: line-through; color: var(--ink-muted); }
details.game > .inner { padding: 0 var(--s-3) var(--s-3); }
details.game > .inner > * + * { margin-top: var(--s-3); }
@media (max-width: 44rem) { details.game > summary { grid-template-columns: 1fr auto; } details.game .teams { grid-column: 1 / -1; } }
.score-edit { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; }
.score-edit label { display: flex; flex-direction: column; gap: var(--s-1); font-weight: 700; margin: 0; }
.score-edit input[type=number] { width: 5rem; min-height: var(--tap); padding: var(--s-2); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.score-edit .check-line { flex-direction: row; font-weight: 400; }
.add-game { max-width: 36rem; }

/* Skill ratings on the players page */
.field.inline { display: flex; align-items: center; gap: var(--s-2); }
.field.inline label { margin: 0; font-weight: 700; }
.field.inline select { width: auto; min-height: 40px; }
.rate-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
.rate-wrap .from { display: inline; }
.overall { display: flex; align-items: center; gap: var(--s-3); }
.overall .ov { min-width: 2.2rem; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.skill-list { list-style: none; padding: 0; margin-top: var(--s-2); }
.skill-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-1) 0; border-top: 1px solid var(--line); }
.skill-list .sk-name { font-weight: 700; font-size: var(--step--1); }
.skills-kind { font-weight: 800; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); margin: var(--s-3) 0 var(--s-2); }

/* Tryouts page */
.seg-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg-tabs .btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tryout-head { margin-top: var(--s-4); }
.challenge-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.challenge-list .card-head h3 { display: flex; align-items: center; gap: var(--s-2); }
.ch-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: var(--step--1); font-weight: 800; }
.skill-ticks fieldset { margin-top: var(--s-2); }
.skill-ticks legend { font-size: var(--step--1); color: var(--ink-muted); font-weight: 700; margin-bottom: var(--s-1); }
.bib-input { width: 5.5rem; min-height: 40px; padding: 0 var(--s-2); border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-weight: 800; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.add-signed { margin-bottom: var(--s-3); }
.add-signed select { min-height: 36px; max-width: 14rem; }
.plain-list { list-style: none; padding: 0; margin-bottom: var(--s-3); }
.plain-list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.invite-row { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); }
.invite-row input { flex: 1; min-width: 0; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.results-tbl th, .results-tbl td { white-space: nowrap; }
.apply-card { margin-top: var(--s-4); }
.steps-list li.optional .n { border-style: dashed; }
.eval-panel { margin-bottom: var(--s-5); }
.jump { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); font-weight: 700; font-size: var(--step--1); }

/* Lists with a button on each row: name on the left, the detail right-aligned next to a
   fixed button column, so the details line up whatever the name's length */
.summary.acts li { display: grid; grid-template-columns: minmax(0, 1fr) auto 6rem; align-items: center; gap: var(--s-3); }
.summary.acts .v { text-align: left; overflow-wrap: anywhere; }
.summary.acts .k { text-align: right; }
.summary.acts li > .btn, .summary.acts li > .slot { justify-self: end; }
@media (max-width: 22rem) { .summary.acts li { grid-template-columns: minmax(0, 1fr) auto; } .summary.acts li > .k { grid-column: 1; grid-row: 2; text-align: left; } .summary.acts li > .btn, .summary.acts li > .slot { grid-column: 2; grid-row: 1 / span 2; } }
.skills-edit .skill-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.skills-edit .rows li { align-items: flex-start; }
.skills-edit .skill-fields input.skill-guide { min-height: 36px; font-size: var(--step--1); color: var(--ink-muted); }
.skill-list .sk-self { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12px; }
.by-name { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.by-name > * + * { margin-top: var(--s-2); }

/* Messages to the commissioner (league home) */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px;
  border-radius: 999px; background: var(--danger); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.panel.messages { margin-bottom: var(--s-5); }
.panel.messages .card-head h2 { font-size: var(--step-1); }
.messages .msg-list { list-style: none; padding: 0; margin-top: var(--s-3); }
.messages .msg-list li { padding: var(--s-3) 0 var(--s-3) var(--s-3); border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.messages .msg-list li.unread { border-left-color: var(--primary); }
.messages .msg-list li.unread p { font-weight: 700; }
.messages .msg-list li.undone p { color: var(--ink-muted); }
.messages .msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-1); }
.messages .more-row { border-left: 0 !important; }

/* Scorekeeping (commissioner) */
#to-approve details.game > summary { grid-template-columns: auto 1fr auto; }
.gm-teams { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gm-teams b { font-variant-numeric: tabular-nums; font-weight: 900; margin-right: 4px; }
.sheet > * + * { margin-top: var(--s-3); }
.sheet h4 { font-size: var(--step--1); color: var(--ink-muted); font-weight: 800; }
.sheet-list { list-style: none; padding: 0; }
.sheet-list li { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s-3); padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--step--1); }
.sheet-list li.goal span:last-child { font-weight: 700; }
.sheet-list .tm { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.sheet-who p { font-size: var(--step--1); }
.code-list { list-style: none; padding: 0; margin-top: var(--s-3); }
.code-list li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: var(--s-2) var(--s-3); align-items: center; padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.code-list .when { font-size: var(--step--1); color: var(--ink-muted); }
.code-list .chip { justify-self: start; }
.code-box { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: end; }
.code-box .code { font-size: var(--step-1); letter-spacing: 0.15em; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 110; }
@media (max-width: 40rem) { .code-list li { grid-template-columns: 1fr auto; } .code-list .gm-teams { grid-column: 1 / -1; grid-row: 2; } }
.device-list { list-style: none; padding: 0; }
.device-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.device-list li .btn { margin-left: auto; }
.ok-line { color: var(--ok); font-weight: 700; }
.device-list.pending li { background: color-mix(in oklab, var(--danger) 6%, var(--surface)); padding-inline: var(--s-3); border-radius: var(--radius-s); border-top: 0; margin-bottom: var(--s-2); }
.device-list .device-acts { display: inline-flex; gap: var(--s-2); margin-left: auto; }
.device-list .device-acts .btn { margin-left: 0; }
.setup-code { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.setup-code > * + * { margin-top: var(--s-2); }
.setup-code .code.big { display: block; font-size: var(--step-3); letter-spacing: 0.15em; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 110; }
.setup-code .row-actions { flex-wrap: wrap; }
#how ol { list-style: decimal; padding-left: var(--s-5); counter-reset: none; }
#how ol li { margin-top: var(--s-2); }
#sk-box .cards.two { align-items: start; }
#sk-box > .card + .cards { margin-top: var(--s-3); }

/* ---------- playoffs ---------- */
#po-box { margin-top: var(--s-4); }
.po-seeds { list-style: none; padding: 0; margin: var(--s-3) 0; }
.po-seeds li { display: grid; grid-template-columns: 1.6rem auto 1fr auto auto; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.po-seeds li.out { opacity: 0.55; }
.po-seeds .seed { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.po-seeds label { display: flex; align-items: center; gap: var(--s-1); min-width: 0; margin: 0; }
.po-seeds .po-move { display: inline-flex; gap: 4px; }
@media (max-width: 34rem) {
  .po-seeds li { grid-template-columns: 1.6rem auto 1fr; }
  .po-seeds li .meta { grid-column: 3; }
  .po-seeds li .po-move { grid-column: 3; }
}
.po-match + .po-match { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.po-match h4 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--step-0); }
.po-glist { list-style: none; padding: 0; margin: var(--s-2) 0; }
.po-glist li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); padding: 6px 0; font-size: var(--step--1); }
.po-glist .when { color: var(--ink-muted); min-width: 12rem; }
.po-glist .btn { margin-left: auto; }
.po-add-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.po-add-row input { min-height: 40px; padding: 0 var(--s-2); border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); }
.po-add-row input[type="text"] { flex: 1 1 8rem; }

/* ---------- goalies on the schedule ---------- */
.gk-list { list-style: none; padding: 0; }
.gk-list li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.gk-list .gk-game { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); font-size: var(--step--1); }
.gk-list .gk-game .when { font-weight: 800; }
.gk-list .gk-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.gk-list select { width: 100%; min-height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); padding: 0 var(--s-2); }
.gk-list select.need { border-color: var(--danger); }
.gk-list label { display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-muted); margin: 0; }
.forfeit-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* the Email card's list of recent emails */
.email-log { list-style: none; padding: 0; margin-top: var(--s-2); }
.email-log li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 2px var(--s-3); align-items: start; padding: var(--s-2) 0; border-top: 1px solid var(--line); font-size: var(--step--1); }
.email-log .when { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.email-log .what { min-width: 0; overflow-wrap: anywhere; }
.email-log .subj { display: block; color: var(--ink-muted); }
.email-log .err { grid-column: 2 / -1; color: var(--danger); }
@media (max-width: 34rem) { .email-log li { grid-template-columns: 1fr auto; } .email-log .when { grid-column: 1 / -1; } }

/* Import past stats */
.imp-step { margin-top: var(--s-5); }
.imp-step h2 { font-size: var(--step-2); }
.imp-step textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.imp-cols { display: grid; gap: var(--s-2) var(--s-4); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.imp-col label { display: block; font-size: var(--step--1); font-weight: 700; margin-bottom: 2px; }
.imp-col select { width: 100%; }
.imp-col.unset select { color: var(--ink-muted); }
.imp-divs { display: grid; gap: var(--s-2); }
.imp-div-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.imp-div-row b { min-width: 6rem; }
.imp-scroll { overflow-x: auto; }
.imp-peek { min-width: 34rem; }
.imp-warn { padding: var(--s-2) var(--s-3); border-radius: var(--radius-m); background: color-mix(in oklab, var(--danger) 10%, var(--surface)); font-weight: 600; }
.imp-close h3 { font-size: var(--step-1); }
.imp-close-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.imp-close-list li { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-m); }
.imp-opts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.imp-opts .btn[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.imp-list summary { cursor: pointer; font-weight: 700; }
.imp-list > * + * { margin-top: var(--s-2); }
.imp-batches { list-style: none; padding: 0; }
.imp-batches li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.imp-batches li:last-child { border-bottom: 0; }
.imp-done { margin-top: var(--s-4); border-left: 5px solid var(--ok, #1E8E3E); }
#imp-past { margin-top: var(--s-6); }
