/* ==========================================================================
   FCBQbot web — "scoresheet" design system
   Paper + ink + court orange. Fraunces (display) / Instrument Sans (UI) / JetBrains Mono (figures).
   Data-viz colours come from the validated categorical palette (light/dark selected separately).
   ========================================================================== */
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f2ecdf;          /* page */
  --sheet: #fbf8f0;          /* cards */
  --sheet-2: #f6f1e5;        /* inset */
  --ink: #15110c;
  --ink-2: #5a5346;
  --ink-3: #6b6353;          /* muted text: 5.0:1 on every surface (it was 3.2:1) */
  --rule: #d9cfba;
  --rule-strong: #15110c;
  --court: #d9531e;          /* brand accent: decoration, large type, icons */
  --court-text: #b8420f;     /* the accent as small TEXT on light surfaces: 4.9:1 */
  --court-btn: #c4481a;      /* the accent as a button/badge BACKGROUND under white text: 4.9:1 */
  --court-ink: #ffffff;
  --good: #1b7a46; --warn: #a56a00; --bad: #b3261e;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --seq-1: #cde2fb; --seq-2: #86b6ef; --seq-3: #3987e5; --seq-4: #184f95;
  --shadow: 0 1px 0 rgba(21,17,12,.06), 0 8px 24px -12px rgba(21,17,12,.25);
  --radius: 14px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #11100d; --sheet: #1a1814; --sheet-2: #211f1a; --ink: #f4eee0; --ink-2: #b9b09d; --ink-3: #9b937f;
    --rule: #34302a; --rule-strong: #f4eee0; --court: #ff7a3d; --court-text: #ff7a3d; --court-btn: #ff7a3d; --court-ink: #15110c; --accent-value: #b8420f;
    --good: #4cc185; --warn: #e0a43a; --bad: #ff7b72;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --seq-1: #184f95; --seq-2: #256abf; --seq-3: #5598e7; --seq-4: #b7d3f6;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11100d; --sheet: #1a1814; --sheet-2: #211f1a; --ink: #f4eee0; --ink-2: #b9b09d; --ink-3: #9b937f;
  --rule: #34302a; --rule-strong: #f4eee0; --court: #ff7a3d; --court-text: #ff7a3d; --court-btn: #ff7a3d; --court-ink: #15110c; --accent-value: #b8420f;
  --good: #4cc185; --warn: #e0a43a; --bad: #ff7b72;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --seq-1: #184f95; --seq-2: #256abf; --seq-3: #5598e7; --seq-4: #b7d3f6;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font-ui);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--court) 9%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--rule) 45%, transparent) 31px 32px);
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-variation-settings: "opsz" 144; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
a { color: inherit; text-decoration-color: var(--court); text-underline-offset: 3px; }
a:hover { color: var(--court-text); }
:focus-visible { outline: 3px solid var(--court); outline-offset: 2px; border-radius: 6px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 28px 20px; display: flex; flex-direction: column; gap: 28px;
  overflow: hidden;            /* only the navigation scrolls: brand, search and the account stay in place */
  border-right: 2px solid var(--rule-strong); background: color-mix(in srgb, var(--sheet) 70%, transparent);
  backdrop-filter: blur(6px);
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand b { font: 700 1.9rem/1 var(--font-display); letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.brand b i { color: var(--court); font-style: normal; }
.brand span { font: 500 .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.rail > .brand, .rail > .search-trigger, .rail-foot { flex: none; }
.rail .nav {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  margin-inline: -6px; padding: 2px 6px;   /* room for the focus ring and the current item's border inside the scroller */
}
/* a soft fade tells there is more below / above (set by ui.js only when the list does not fit) */
.rail .nav.more-below { mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.rail .nav.more-above { mask-image: linear-gradient(to top, #000 calc(100% - 28px), transparent); }
.rail .nav.more-above.more-below { mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  font-weight: 600; color: var(--ink-2); border: 1.5px solid transparent;
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--sheet-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.rail-foot { margin-top: auto; display: grid; gap: 12px; font-size: .85rem; }
/* small laptop screens (or a zoomed browser): a tighter rail so most of the menu fits without scrolling */
@media (min-width: 901px) and (max-height: 820px) {
  .rail { padding-block: 18px; gap: 14px; }
  .rail .brand b { font-size: 1.6rem; }
  .rail .nav { gap: 2px; }
  .rail .nav a { padding-block: 7px; }
  .rail-foot { gap: 8px; }
}
@media (min-width: 901px) and (max-height: 640px) {
  .rail .brand span { display: none; }
  .rail-foot .who { display: none; }      /* the name is in the account; theme and sign out stay */
}
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px dashed var(--rule); border-radius: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--court-btn);
  color: var(--court-ink); font: 700 .95rem var(--font-display); }
/* The content column is centred in the space next to the rail and grows with the screen (it used to stop at 1280px, glued to the
   rail, leaving half of a large monitor empty). Prose keeps its own readable measure (see ui.css). */
main { padding: 36px clamp(18px, 4vw, 56px) 80px; width: 100%; max-width: var(--content-max, 1280px); margin-inline: auto; }
@media (min-width: 1680px) { main { --content-max: 1520px; } }
@media (min-width: 2200px) { main { --content-max: 1760px; } }
.page-head { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.page-head .eyebrow { font: 600 .75rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--court); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ------------------------------------------------------------------ controls */
.btn {
  appearance: none; cursor: pointer; font: 600 .9rem var(--font-ui); padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .12s, background .12s, color .12s;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn.primary { background: var(--court-btn); border-color: var(--court-btn); color: var(--court-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.danger { border-color: var(--bad); color: var(--bad); } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.small { padding: 5px 12px; font-size: .8rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
select, input[type=text], input[type=search], input[type=number], input[type=password] {
  font: 500 .92rem var(--font-ui); color: var(--ink); background: var(--sheet); border: 2px solid var(--rule);
  border-radius: 10px; padding: 8px 12px; min-height: 40px;
}
select:hover, input:hover { border-color: var(--ink-3); } select:focus, input:focus { border-color: var(--ink); outline: none; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { font: 600 .82rem var(--font-ui); background: none; border: 0; color: var(--ink); padding: 7px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ cards / tiles */
.grid { display: grid; gap: var(--grid-gap); }
/* responsive grids that never exceed their column count: on a wide screen auto-fit alone made 4 tracks for a "2 columns" grid, so the
   pairs of cards filled half the row (min track = the larger of the minimum width and 1/N of the row; min(100%) avoids overflow) */
.grid { --grid-gap: 18px; }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(210px, (100% - 3 * var(--grid-gap)) / 4)), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(300px, (100% - 2 * var(--grid-gap)) / 3)), 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(380px, (100% - var(--grid-gap)) / 2)), 1fr)); }
.card {
  background: var(--sheet); border: 2px solid var(--rule-strong); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); position: relative; min-width: 0;
}
.card > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card > header h2, .card > header h3 { font-size: 1rem; }
.card .sub { font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tile { padding-bottom: 16px; }
.tile .label { font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tile .value { font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); white-space: nowrap; text-transform: none; font-variation-settings: "opsz" 144; margin: 6px 0 2px; letter-spacing: -.03em; }
.tile .value small { font: 500 .9rem var(--font-mono); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.tile .delta { font: 500 .8rem var(--font-ui); color: var(--ink-2); }
.tile.accent { background: var(--ink); color: var(--paper); }
.tile.accent .label, .tile.accent .delta { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.tile.accent .value { color: var(--accent-value, var(--court)); }
.chart-box { position: relative; height: 260px; } .chart-box.tall { height: 340px; }
.chart-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.chart-table td, .chart-table th { padding: 5px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; font-family: var(--font-mono); }
.empty { padding: 36px 12px; text-align: center; color: var(--ink-3); border: 2px dashed var(--rule); border-radius: 12px; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th {
  text-align: left; font: 600 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  padding: 12px 14px; border-bottom: 2px solid var(--rule-strong); white-space: nowrap; background: var(--sheet-2);
  position: sticky; top: 0;
}
table.data th button { all: unset; cursor: pointer; } table.data th button:hover { color: var(--ink); }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.data tbody tr:hover { background: var(--sheet-2); }
table.data td.num { text-align: right; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem var(--font-mono); padding: 3px 9px; border-radius: 999px;
  border: 1.5px solid currentColor; letter-spacing: .04em; white-space: nowrap; }
.badge.good { color: var(--good); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); } .badge.plan { color: var(--court-text); }
.badge.free { color: var(--ink-3); }
.score { display: inline-flex; gap: 6px; align-items: baseline; font-family: var(--font-mono); }

/* ------------------------------------------------------------------ locks / banners */
.locked { position: relative; }
.locked > .lock-veil {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 24px;
  background: color-mix(in srgb, var(--sheet) 82%, transparent); backdrop-filter: blur(5px); border-radius: inherit; z-index: 5;
}
.lock-veil h2, .lock-veil h3 { font-size: 1.4rem; }
.banner { padding: 12px 16px; border-radius: 12px; border: 2px solid var(--rule-strong); background: var(--sheet-2); margin-bottom: 18px; }
.banner.error { border-color: var(--bad); color: var(--bad); }
.next-game { display: grid; gap: 4px; }
.next-game .when { font: 600 .8rem var(--font-mono); color: var(--court-text); letter-spacing: .08em; text-transform: uppercase; }
.next-game .teams { font: 600 1.35rem/1.15 var(--font-display); }

/* ------------------------------------------------------------------ map */
#map { height: min(68vh, 640px); border: 2px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--sheet-2); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.venue-list { display: grid; gap: 8px; align-content: start; max-height: min(68vh, 640px); overflow: auto; }
.venue-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px;
  background: var(--sheet); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.venue-item:hover { border-color: var(--ink); }
.venue-item b { font-weight: 600; } .venue-item .count { font: 700 1.2rem var(--font-display); grid-row: span 2; align-self: center; }
.leaflet-container { font-family: var(--font-ui); background: var(--sheet-2); }
.leaflet-popup-content-wrapper { border-radius: 12px; background: var(--sheet); color: var(--ink); border: 2px solid var(--rule-strong); }
.leaflet-popup-tip { background: var(--sheet); }

/* ------------------------------------------------------------------ auth pages */
.center-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 18px; }
.auth-card .brand { margin-bottom: 4px; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: max-content; border: 2px solid var(--ink); }
.qr svg { display: block; width: 190px; height: 190px; }
.secret { font: 600 .95rem var(--font-mono); letter-spacing: .08em; word-break: break-all; padding: 10px 12px; background: var(--sheet-2); border-radius: 10px; }
.code-input { font: 700 1.8rem var(--font-mono); letter-spacing: .4em; text-align: center; width: 100%; }

/* ------------------------------------------------------------------ editor / toast */
dialog { border: 2px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); color: var(--ink); padding: 24px; width: min(520px, 94vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 8, 5, .55); backdrop-filter: blur(3px); }
.form-grid { display: grid; gap: 12px; margin: 16px 0; }
.form-grid label { display: grid; gap: 4px; font: 600 .75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.form-grid input, .form-grid select { width: 100%; text-transform: none; letter-spacing: 0; font-family: var(--font-ui); }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 50; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-weight: 600; box-shadow: var(--shadow); animation: rise .25s ease-out; }
.toast.error { background: var(--bad); color: #fff; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ motion: staggered reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal > *:nth-child(2) { animation-delay: .06s; } .reveal > *:nth-child(3) { animation-delay: .12s; }
  .reveal > *:nth-child(4) { animation-delay: .18s; } .reveal > *:nth-child(5) { animation-delay: .24s; }
  .reveal > *:nth-child(6) { animation-delay: .3s; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }   /* the mobile shell lives in ui.css */
}

/* ------------------------------------------------------------------ share bar (categorical split + legend) */
.share-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.share-seg { min-width: 4px; } .share-seg[data-c="0"], .share-legend i[data-c="0"] { background: var(--series-1); }
.share-seg[data-c="1"], .share-legend i[data-c="1"] { background: var(--series-2); }
.share-seg[data-c="2"], .share-legend i[data-c="2"] { background: var(--series-3); }
.share-seg[data-c="3"], .share-legend i[data-c="3"] { background: var(--series-4); }
.share-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.share-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.share-legend i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .9rem; }
.kv dt { color: var(--ink-3); font: 600 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.kv dd { margin: 0; word-break: break-word; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 2px solid var(--rule); text-decoration: none; font-weight: 600; font-size: .85rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini-table td { padding: 6px 8px; }
.callout { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.mt { margin-top: 18px; } .mt-s { margin-top: 8px; }
.locked-sm { min-height: 220px; } .locked-lg { min-height: 420px; }

#k-busiest { text-transform: capitalize; }

.card .table-wrap { max-height: 380px; overflow: auto; border-width: 1.5px; }
.card .mini-table td { white-space: nowrap; max-width: none; }

/* ------------------------------------------------------------------ admin: announcements + text areas */
textarea { font: 500 .92rem var(--font-ui); color: var(--ink); background: var(--sheet); border: 2px solid var(--rule); border-radius: 10px;
  padding: 10px 12px; width: 100%; resize: vertical; text-transform: none; letter-spacing: 0; }
textarea:hover { border-color: var(--ink-3); } textarea:focus { border-color: var(--ink); outline: none; }
.form-grid label.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 600 .9rem var(--font-ui); color: var(--ink); }
.announce-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(340px, 1fr) minmax(260px, 340px); gap: 20px; align-items: start; }
.announce-layout > .card, .announce-layout > aside { min-width: 0; }
.announce-list { display: grid; gap: 10px; }
.announce-item { text-align: left; width: 100%; background: var(--sheet); color: var(--ink); border: 2px solid var(--rule); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 6px; font: inherit; }
.announce-item:hover { border-color: var(--ink-3); } .announce-item[aria-current="true"] { border-color: var(--ink); }
.announce-item b { font-size: .98rem; } .announce-item small { color: var(--ink-3); }
.meter { height: 8px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-row div { border: 2px solid var(--rule); border-radius: 12px; padding: 10px; } .stat-row b { display: block; font-size: 1.2rem; }
.stat-row span { font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.phone-preview { border: 2px solid var(--rule-strong); border-radius: 22px; padding: 14px; display: grid; gap: 8px; background: var(--sheet); }
.phone-preview img { width: 100%; height: auto; border-radius: 14px; }
.bubble { background: var(--sheet); border: 2px solid var(--rule); border-radius: 14px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; font-size: .9rem; }
.bubble-button { text-align: center; font-weight: 700; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; }
@media (max-width: 1100px) { .announce-layout { grid-template-columns: 1fr; } }

.span-all { grid-column: 1 / -1; }
.task-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.task-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 2px solid var(--rule); border-radius: 12px; padding: 8px 12px; }
