/* DishDibs: clean and cozy. A checkered tablecloth edge,
   handwritten names, and a Dibs! stamp. */
:root {
  --paper: #fff7ea;
  --card: #ffffff;
  --ink: #2a1e16;
  --muted: #76675a;
  --line: #e7d9c6;
  --berry: #b3364b;
  --berry-dark: #8e2638;
  --berry-soft: #fbe6e9;
  --pine: #2d5c4f;
  --pine-soft: #e1eee8;
  --butter: #f2c14e;
  --butter-soft: #fdf2d3;
  --teal: #2f7e8a;
  --teal-soft: #dff0f2;
  --red: #b3261e;
  --radius: 18px;
  --soft: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Nunito Sans", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --gingham: linear-gradient(90deg, rgba(179, 54, 75, .55) 50%, transparent 50%), linear-gradient(rgba(179, 54, 75, .55) 50%, transparent 50%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
/* no double-tap zoom on phones; pinch-to-zoom still works */
body, button, a, input, select, textarea, label, summary, [role=button] { touch-action: manipulation; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--font);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 30, 22, .07) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
/* checkered tablecloth edge across the top of every page */
body::before { content: ""; display: block; height: 12px; background-color: #fff; background-image: var(--gingham); background-size: 12px 12px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .35em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
a { color: var(--berry); }
[hidden] { display: none !important; }
.hand { font-family: var(--hand); font-weight: 700; }

/* ---------- layout ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: 14px 16px 10px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.brand b { color: var(--berry); font-weight: 800; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.topbar-link { font-weight: 800; text-decoration: none; font-size: .95rem; color: var(--berry); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 6px 16px 40px; }
.foot .hand { font-size: 1.25rem; color: var(--berry); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--soft); padding: 22px; margin: 0 0 18px; }
@media (max-width: 520px) { .card { padding: 18px 16px; } }

.hero { text-align: center; padding: 18px 8px 26px; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
.hero h1 .hand { color: var(--berry); font-size: 1.15em; margin: 0 .12em; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 32em; margin: 0 auto; }

/* ---------- forms ---------- */
.field { margin: 0 0 16px; position: relative; }
.field > label, .label { display: block; font-weight: 800; font-size: .92rem; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.hint { color: var(--muted); font-size: .9rem; margin: 4px 0 8px; }
.hint.warn { color: #6b4a00; background: var(--butter-soft); padding: 8px 10px; border-radius: 12px; }
.dup-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: inherit; background: #fffdf8;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 13px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-soft); }
input[type=checkbox] { width: auto; min-height: 0; }
/* iPhone Safari gives empty date/time boxes their own width; make them behave like other fields */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.5em; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
h2[tabindex="-1"]:focus { outline: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2 > * { min-width: 0; }
@media (max-width: 520px) { .row-2:not(.keep) { grid-template-columns: 1fr; gap: 0; } .row-2.keep { gap: 10px; } }
.form-error { background: #fdecea; color: var(--red); border-radius: 12px; padding: 10px 12px; font-weight: 700; margin: 0 0 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; color: var(--ink); -webkit-appearance: none; appearance: none; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 44px; transition: transform .08s, background .15s; }
.btn:hover { background: #fbf5ec; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--berry); border-color: var(--berry); color: #fff; }
.btn.primary:hover { background: var(--berry-dark); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--red); border-color: #f0c9c5; }
.btn.small { padding: 7px 13px; min-height: 36px; font-size: .9rem; }
.btn.small:active { transform: translateY(1px); }
.btn.big { width: 100%; padding: 15px; font-size: 1.1rem; }
.link-btn { background: none; border: 0; padding: 4px 6px; font: inherit; font-weight: 800; font-size: .9rem; color: var(--berry); cursor: pointer; }
.link-btn.danger { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn.tiny { font-size: .8rem; padding: 0 4px; }
.icon-btn { background: none; border: 0; font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--butter-soft); color: var(--ink); }
.icon-btn.small { width: 34px; height: 34px; font-size: 1.3rem; font-weight: 800; }
.icon-btn-space { width: 40px; flex: none; }

.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.presets-label { flex-basis: 100%; font-size: .85rem; font-weight: 800; color: var(--muted); }
.chip-btn { font: inherit; font-size: .92rem; font-weight: 800; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; background: var(--butter-soft); border: 1.5px solid #ecd9a6; border-radius: 999px; padding: 6px 14px; min-height: 38px; }
.chip-btn:active { background: var(--butter); }

/* ---------- counter ---------- */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.step-btn { -webkit-appearance: none; appearance: none; border: 0; background: var(--butter-soft); color: var(--ink); width: 42px; height: 42px; font: inherit; font-size: 1.35rem; font-weight: 800; cursor: pointer; }
.step-btn:active { background: var(--butter); }
.step-btn:disabled { color: #c9b9a5; background: #faf6ef; cursor: default; }
.step-val { min-width: 2.4em; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }

/* ---------- create page ---------- */
.emoji-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-opt { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.emoji-opt.on { border-color: var(--berry); background: var(--berry-soft); box-shadow: 0 0 0 2px var(--berry-soft); }
.needed-rows { display: grid; gap: 10px; margin-bottom: 10px; }
.needed-row { display: grid; grid-template-columns: 1fr 120px auto 40px; gap: 8px; align-items: center; }
@media (max-width: 520px) {
  .needed-row { grid-template-columns: 1fr auto; grid-template-areas: "name rm" "cat qty"; gap: 6px 8px; padding: 10px; border: 1.5px dashed var(--line); border-radius: 14px; }
  .needed-row > input { grid-area: name; }
  .needed-row > select { grid-area: cat; }
  .needed-row > .stepper { grid-area: qty; }
  .needed-row > .icon-btn { grid-area: rm; }
}

.autocomplete { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--soft); }
.ac-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.ac-list li:hover, .ac-list li[aria-selected=true] { background: var(--butter-soft); }

.created { text-align: center; }
.created-emoji, .big-emoji { font-size: 3.2rem; line-height: 1; margin-bottom: 8px; }
.link-box { text-align: left; background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 14px 0; }
.link-box.secret { background: var(--butter-soft); border-color: #ecd9a6; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.my-events h2 { font-size: 1.15rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1.5px dashed var(--line); }
.plain-list li:first-child { border-top: 0; }
.plain-list a { font-weight: 800; text-decoration: none; }
.empty { text-align: center; padding: 40px 22px; }

/* ---------- event page ---------- */
.loading { text-align: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; margin: 10px auto; border: 4px solid var(--butter-soft); border-top-color: var(--berry); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ev-head { text-align: center; padding-top: 0; overflow: hidden; }
.cloth { height: 54px; margin: 0 -22px; background-color: #fff; background-image: var(--gingham); background-size: 18px 18px; }
@media (max-width: 520px) { .cloth { margin: 0 -16px; } }
.plate { width: 92px; height: 92px; margin: -40px auto 4px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--soft), inset 0 0 0 7px #fff, inset 0 0 0 9px var(--butter-soft); display: grid; place-items: center; font-size: 2.6rem; position: relative; }
.eyebrow { font-family: var(--hand); font-weight: 700; color: var(--berry); font-size: 1.55rem; margin: 0; }
.ev-meta { display: inline-grid; gap: 4px; text-align: left; margin: 4px 0 12px; }
.meta-row { display: flex; gap: 8px; align-items: baseline; }
.meta-ico { width: 1.4em; text-align: center; flex: none; }
.ev-note { white-space: pre-wrap; text-align: left; background: var(--butter-soft); border-left: 4px solid var(--butter); border-radius: 10px; padding: 10px 14px; margin: 6px 0 16px; font-size: .98rem; }
.ev-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; z-index: 10; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--soft); padding: 6px; min-width: 210px; display: grid; }
.menu-pop a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--ink); }
.menu-pop a:hover { background: var(--butter-soft); }

.host-panel { background: #f5faf7; border: 2px dashed #b9d5c9; }
.host-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.host-head .hint { margin: 0; }
.host-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.banner { background: var(--butter-soft); border: 1px solid #ecd9a6; border-radius: 14px; padding: 10px 14px; margin: 0 0 18px; font-weight: 700; }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.sec-head .btn { white-space: nowrap; flex: none; }
.muted { color: var(--muted); }

.pill { display: inline-block; font-family: var(--font); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: #f3ece2; color: var(--muted); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.pill.host { background: var(--pine); color: #fff; margin-left: 0; padding: 2px 10px; }

/* guest list */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.stat { text-align: center; background: #fffaf3; border-radius: 14px; padding: 8px 4px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.stat small { display: block; font-size: .75rem; color: var(--pine); font-weight: 800; }
.stat.big { background: var(--pine-soft); }
.households { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.household { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.household.mine { border-color: #e6c3ca; background: #fffafb; }
.hh-top { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.hh-top .link-btn { margin-left: auto; }
.hh-note { margin: 6px 0 0; color: var(--muted); font-size: .9rem; white-space: pre-wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .hand { font-size: 1.35rem; line-height: 1.1; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.chip.st-yes .dot { background: var(--pine); }
.chip.st-maybe .dot { background: var(--butter); }
.chip.st-no { color: var(--muted); }
.chip.st-no .hand { text-decoration: line-through; }
.chip.st-no .dot { background: #d6cabc; }
.chip .kid { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 0 6px; }

/* the spread */
.meter { margin: 0 0 12px; }
.meter-bar { height: 12px; border-radius: 999px; background: #f3ece2; overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--berry) 0 8px, #c9475c 8px 16px); transition: width .4s; }
.meter-text { font-size: .88rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.avoid { margin: 0 0 6px; font-size: .92rem; }
.avoid summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.avoid .tags { margin-top: 8px; }


.group { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.group-head .count { margin-left: auto; font-family: var(--font); font-size: .78rem; font-weight: 800; background: #fff; color: var(--ink); border-radius: 999px; padding: 1px 9px; }
.group-icon { font-size: 1.15rem; }
.group.grabs { border: 1.5px dashed #e4c574; }
.group.grabs .group-head { background: var(--butter-soft); }
.group.cat-food .group-head { background: var(--berry-soft); }
.group.cat-drinks .group-head { background: var(--teal-soft); }
.group.cat-supplies .group-head { background: var(--pine-soft); }
.sheet { list-style: none; margin: 0; padding: 0 14px; }
.line { padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.line.flagged { box-shadow: inset 4px 0 0 var(--red); padding-left: 12px; }
.line-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-name { font-weight: 800; font-size: 1.05rem; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: flex-start; gap: 8px; }
.line-label > * + * { margin-left: 8px; }
.line-label .count-pill, .line-label .stamp { display: inline-block; vertical-align: 2px; }
.line-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.line-actions .btn { white-space: nowrap; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: .5em; }
.cat-dot.cat-food { background: var(--berry); }
.cat-dot.cat-drinks { background: var(--teal); }
.cat-dot.cat-supplies { background: var(--pine); }
.count-pill { font-size: .75rem; font-weight: 800; color: var(--ink); background: var(--butter-soft); border-radius: 999px; padding: 0 8px; }
.stamp { font-family: var(--display); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--berry); border: 2px solid var(--berry); border-radius: 6px; padding: 0 6px; transform: rotate(-8deg); opacity: .9; }
.host-note { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.host-note::before { content: "Host: "; font-weight: 800; color: var(--pine); }
p.host-note::before { content: none; }
.item-flag { font-size: .85rem; color: var(--red); font-weight: 800; margin-top: 4px; }

.signers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.signer { padding-left: 12px; border-left: 3px solid #efe6da; }
.signer.mine { border-left-color: var(--berry); }
.signer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.signer .hand { font-size: 1.45rem; line-height: 1.15; color: var(--pine); }
.signer .qty { font-family: var(--display); font-weight: 800; font-size: .9rem; }
.item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.item-tags .tag { font-size: .72rem; font-weight: 800; color: var(--muted); background: #f5eee3; border-radius: 999px; padding: 1px 8px; }
.item-tags .tag.flag { color: #fff; background: var(--red); }
.item-note { font-size: .9rem; color: var(--muted); font-style: italic; white-space: pre-wrap; }
.me-too { display: block; width: 100%; margin-top: 8px; font: inherit; font-weight: 800; font-size: .9rem; color: var(--berry); background: transparent; border: 1.5px dashed #e3a9b3; border-radius: 999px; padding: 8px; cursor: pointer; }
.me-too:hover { background: var(--berry-soft); border-color: var(--berry); }

/* toggles */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: #f3ece2; }
.seg-opt { font: inherit; font-weight: 800; font-size: .9rem; -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; background: transparent; padding: 7px 13px; cursor: pointer; color: var(--muted); }
.seg-opt[aria-checked=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg-opt.yes[aria-checked=true] { background: var(--pine); color: #fff; }
.seg-opt.maybe[aria-checked=true] { background: var(--butter); color: var(--ink); }
.seg-opt.no[aria-checked=true] { background: #8d8076; color: #fff; }
.seg.age .seg-opt[aria-checked=true] { background: var(--teal); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-opt { font: inherit; font-size: .88rem; font-weight: 800; -webkit-appearance: none; appearance: none; border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.tag-opt[aria-pressed=true] { border-color: var(--berry); background: var(--berry-soft); color: var(--berry-dark); }

/* RSVP people */
.people { display: grid; gap: 10px; margin: 8px 0 12px; }
.person { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #fffdf8; }
.person-top { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.person-bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.people-summary { font-weight: 800; color: var(--pine); margin: 0; }
.remove-rsvp { display: block; margin: 6px 0 0 -6px; }

/* dialogs */
.dlg { border: 0; padding: 0; border-radius: 22px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 20px 60px rgba(40, 20, 10, .3); color: var(--ink); background: #fff; overscroll-behavior: contain; }
.dlg::backdrop { background: rgba(42, 30, 22, .45); }
.dlg-inner { padding: 18px 20px 0; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dlg-head h2 { margin: 0; overflow-wrap: anywhere; }
.dlg-actions { position: sticky; bottom: 0; background: #fff; display: flex; justify-content: flex-end; gap: 10px; margin: 10px -20px 0; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .dlg-inner { padding: 16px 16px 0; }
  .dlg-actions { margin: 10px -16px 0; padding: 12px 16px 16px; }
  .dlg-actions .btn { flex: 1; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 0) scale(.96); opacity: 0; visibility: hidden; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 800; box-shadow: var(--soft); transition: all .2s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.toast.error { background: var(--red); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.dlg-body > .btn.small { margin-bottom: 16px; }

/* ---------- owner stats page ---------- */
.admin-login { max-width: 420px; margin: 20px auto; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; }
.week { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.week-n { font-size: .75rem; font-weight: 800; color: var(--muted); min-height: 1.2em; }
.week-bar { width: 100%; max-width: 28px; background: var(--berry); border-radius: 6px 6px 2px 2px; }
.week-label { font-size: .65rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.admin-list li:last-child { border-bottom: 0; }
.admin-list a { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.admin-list .small { font-size: .82rem; }
.admin-counts { display: grid; gap: 2px; text-align: right; font-size: .8rem; font-weight: 800; color: var(--pine); flex: none; }
@media (max-width: 600px) { .weeks { gap: 3px; } .week:nth-child(odd) .week-label { visibility: hidden; } }
