/* The site's one stylesheet, loaded by all five pages (the board, All weeks, Team, Rota, Hangout). In order: the
   board and the top bar (Ben's), then the pieces every page shares (dialogs, buttons, text boxes,
   notices, toasts), then Team (Show up) and Rota (Design club), Gina's. Her rules start with
   `.showup` or `.club-page` (the body's class), so a class name used on both her pages, or by the
   board, never clashes. Keep that when adding to them. */
:root {
  --page: #ffffff;
  --canvas: #f5f4f7;
  --grid: #d9d9d9;
  --ink: #1c1b1f;
  --muted: #8e8d93;
  --paper: #ffffff;
  --tape: rgba(246, 214, 92, 0.72);
  --button: #f5f4f7;
  --button-hover: #ebeaee;
  --flag: #EC9C91;
  --focus: #3b82f6;
  --accent: #ec9c91;
  --accent-hover: #e68b7f;
  --radius: 16px;
  --bar-h: 84px; /* the top bar's height, measured by public/call.js */
  --call-w: 25vw; /* the call panel's width, set by public/call.js */
  /* What the tools give up to the call panel: nothing while it's closed (--call-grow is 0). */
  --call-space: calc((var(--call-w) + 16px) * var(--call-grow));
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  display: flex; flex-direction: column; overflow: hidden;
}

/* ---- Navigation bar ---- */
/* The tools as tabs on the left, the week picker centred, everyone's avatars on the right
   (yours last). Team and Rota (public/team.html, public/rota.html) use this bar too, with their own centre. */
.bar {
  position: relative; z-index: 10; /* its menus and tooltips go over the canvas and Add screenshot */
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 16px 32px; padding-top: max(16px, env(safe-area-inset-top));
  background: var(--page);
  font: 22px/1.2 var(--serif);
}
.bar-left { justify-self: start; min-width: 0; display: flex; align-items: center; gap: 16px; }
.bar-right { justify-self: end; display: flex; align-items: center; gap: 16px; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The tools as a tab bar (owner's design): four 44px tabs with 24px icons on the canvas grey, 8px apart
   and 4px in from its edges, the current one on a white square with a soft shadow kept inside the bar
   (.tabs-clip). The square (.tab-glow) is placed by --i, the current tab's position (0 to 3), set on
   .tabs in the page. Hovering a tab gives its icon a little springy turn; its name shows in a tooltip. */
.tabs {
  position: relative; display: flex; gap: 8px; width: max-content; padding: 4px;
  border-radius: 20px; background: var(--canvas);
}
.tabs-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.tab-glow {
  /* Placed with transform rather than left, so its slide runs on the graphics card and stays smooth
     even while the browser is busy changing page. */
  position: absolute; top: 4px; left: 4px; transform: translateX(calc(var(--i, 0) * 52px)); width: 44px; height: 44px;
  border-radius: var(--radius); background: var(--page);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.1);
  view-transition-name: tab-glow;
}
.tab { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); }
/* The Hangout tab is a button (it opens a menu), so it gets none of a button's own look. */
button.tab { position: relative; padding: 0; border: none; background: none; color: #121212; font: inherit; cursor: pointer; }
.tab svg { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) { .tab:hover svg { transform: rotate(-10deg); } }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The icons, as one piece so they're drawn above the sliding square while the page changes. (They
   used to be one piece each, which could show a hugely stretched icon: each piece was captured with
   its name tooltip, so a tab hovered long enough to show it didn't match its copy on the new page.) */
.tab-links { position: relative; display: flex; gap: 8px; view-transition-name: tab-links; }
/* Clicking a tab (public/bar.js): the square starts sliding to it at once, without waiting for the
   next page, and tooltips go so the page-change pictures match. */
.tabs.leaving .tab-glow { transition: transform .4s cubic-bezier(.3, .8, .2, 1); }
/* Nothing in the bar moves or shows a tooltip while the page-change pictures are taken: not on the
   page you're leaving (.tabs.leaving) nor on the new one until its animation ends (html.arriving,
   both set by public/bar.js). An icon caught mid-way through its springy hover turn was drawn hugely
   stretched by Chrome on some machines. */
:is(.tabs.leaving, .arriving) .tab::after, :is(.tabs.leaving, .arriving) .tab::before { opacity: 0 !important; transition: none !important; }
:is(.tabs.leaving, .arriving) .tab svg { transform: none !important; transition: none !important; }

/* Going between pages (another tool, week or the archive): the old page fades into the new one and the
   tab's white square slides across. Browsers without cross-page view transitions (Firefox, for now)
   just change page on a full load; a switch inside the page (public/app.js) animates in them too. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
/* The square has usually got most of the way already (it starts on click), so the page change only
   has to finish the move. */
::view-transition-group(tab-glow) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
/* Your avatar stays exactly where it is (public/bar.js draws it before the first frame). */
.bar #me { view-transition-name: me; }
/* The centre of the bar (week picker, Show up's menu, Design club's title) changes like Ben's reference
   video: the old one slides straight up and fades out while the new one slides straight up from below
   into its place. Purely vertical and straight (Ben's choice: no tilt, arc or overshoot), and kept
   inside the bar: anything more than 16px (the bar's padding) above or below the pill is clipped, so
   it never passes over the canvas. Each keeps its own width, never stretched. */
.bar-centre { view-transition-name: bar-centre; }
::view-transition-group(bar-centre) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-image-pair(bar-centre) { clip-path: inset(-16px -100vw); }
/* Each at its natural size, centred on the same spot. (Centring with auto margins pinned a pill wider
   than the other to one side, so it slid sideways whenever the two pills' widths differed.) */
::view-transition-old(bar-centre), ::view-transition-new(bar-centre) {
  inset: auto; left: 50%; top: 50%; width: auto; height: auto; margin: 0; translate: -50% -50%;
}
/* Nothing to change (the same centre before and after, e.g. a reload): no animation (public/bar.js). */
html.same-centre::view-transition-old(bar-centre) { animation: none; opacity: 0; }
html.same-centre::view-transition-new(bar-centre) { animation: none; }
/* Both move together, in step, a pill's height plus a gap apart, easing to a stop with no overshoot. */
::view-transition-old(bar-centre) { animation: centre-out .4s cubic-bezier(.3, .7, .4, 1) both; }
::view-transition-new(bar-centre) { animation: centre-in .4s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes centre-out { 60% { opacity: 0; } to { opacity: 0; transform: translateY(-52px); } }
@keyframes centre-in { from { opacity: 0; transform: translateY(52px); } 50% { opacity: 1; } }
/* Switching tool inside the page (public/app.js, document.startViewTransition): the tabs never leave the
   page, so the square's slide (the .leaving transition above) and the icons are left to run live, not
   as pictures that would restart them. The root fade and the bar centre use the rules above. */
html.shell-nav::view-transition-group(tab-glow),
html.shell-nav::view-transition-group(tab-links) { animation: none; }
html.shell-nav::view-transition-old(tab-glow),
html.shell-nav::view-transition-old(tab-links) { display: none; }
html.shell-nav::view-transition-new(tab-glow),
html.shell-nav::view-transition-new(tab-links) { animation: none; }
/* The call panel is the same before and after a switch: no fade, no picture of the old one. (Its group
   follows the live panel each frame, so the side panel to full screen change below animates with it.) */
html.shell-nav::view-transition-group(call-panel) { animation: none; }
html.shell-nav::view-transition-old(call-panel) { display: none; }
html.shell-nav::view-transition-new(call-panel) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hangout-on,
  .tab svg, .tabs.leaving .tab-glow { transition: none; }
}

/* You: your avatar, at the far right, 16px after everyone else's. Opens your menu. */
.bar .me {
  display: block; padding: 0; border: none; border-radius: var(--radius); background: none; cursor: pointer;
}
.bar .me .avatar { transition: transform .12s; }
.bar .me:hover .avatar { transform: translateY(-2px); }
.bar .me-avatar { display: contents; }

/* Your menu: bring everyone to you, edit or switch your avatar (or, with PEOPLE off, colour and name). Looks like the week menu. */
.me-picker { position: relative; flex: none; }
.me-menu, .hangout-menu {
  position: absolute; z-index: 10; top: calc(100% + 8px); right: 0;
  display: flex; flex-direction: column; width: max-content; max-width: calc(100vw - 32px); padding: 8px;
  border-radius: var(--radius); background: var(--page); font: 17px var(--sans);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.14);
}
.me-menu > button, .hangout-menu > :is(button, a) {
  display: block; padding: 10px 14px; text-decoration: none; border: none; border-radius: var(--radius); background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.me-menu > button:hover, .me-menu > button:focus-visible,
.hangout-menu > :is(button, a):hover, .hangout-menu > :is(button, a):focus-visible { background: var(--canvas); outline: none; }
/* The Hangout tab's menu (public/call.js) is a body child placed under the tab by script, above the call. */
.hangout-menu { position: fixed; right: auto; z-index: 12; }
.me-colour { padding: 10px 14px; margin: 6px 0; border-block: 1px solid #ebeaee; }
.swatches { display: grid; grid-template-columns: repeat(4, 32px); gap: 8px; margin-top: 10px; }
.swatch { width: 32px; height: 32px; padding: 0; border: none; border-radius: 10px; cursor: pointer; }
.swatch:hover { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px #c9c8cd; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ink); }
.swatch:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.week-picker { position: relative; }
.week-button {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 20px;
  border: 1px solid #c9c8cd; border-radius: var(--radius); background: var(--page); color: var(--ink);
  font: inherit; cursor: pointer; white-space: nowrap;
}
.week-button:hover { background: var(--canvas); }
.week-button .chevron { transition: transform .15s; }
.week-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.bar .locked {
  padding: 3px 10px; border-radius: var(--radius); background: var(--canvas); color: var(--muted);
  font: 600 13px var(--sans);
}
.week-menu {
  position: absolute; z-index: 10; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 100%; width: max-content; max-width: calc(100vw - 32px); padding: 8px;
  border-radius: var(--radius); background: var(--page);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.14);
}
.week-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 10px 14px; border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.week-menu a:hover, .week-menu a:focus-visible { background: var(--canvas); outline: none; }
.week-menu a[aria-current] { background: var(--canvas); }
.week-menu .meta { font: 14px var(--sans); color: var(--muted); }
.week-menu .all { margin-top: 6px; padding-top: 12px; border-top: 1px solid #ebeaee; }

.bar :is(.me, .week-button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius);
  font: 600 18px/1 var(--sans); color: var(--ink); letter-spacing: .02em; overflow: hidden; white-space: nowrap;
}
.avatar[data-letters="3"] { font-size: 14px; letter-spacing: 0; }
/* The face from someone's avatar covers the initials (they show if it can't load). */
.avatar { position: relative; }
.avatar .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }

/* Everyone else on the board right now (they have cursors), left of you.
   Overlapping by 14px, each with a 2px white edge so they stay distinct. */
.people { display: flex; padding-left: 2px; }
.people .avatar { box-shadow: 0 0 0 2px var(--page); cursor: default; }
.people > * + * { margin-left: -14px; }
/* Click someone to follow them; whoever you're following gets a dark ring and comes to the front. */
.people .person { display: block; padding: 0; border: none; border-radius: var(--radius); background: none; cursor: pointer; }
.people .person .avatar { cursor: inherit; transition: transform .12s; }
.people .person:hover { position: relative; z-index: 1; }
.people .person:hover .avatar { transform: translateY(-2px); }
.people .person:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.people .person.following { position: relative; z-index: 2; }
.people .person.following .avatar { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ink); }
.people .more-people { cursor: default; }
.people .more-people:hover .avatar { transform: none; }
.people .more { background: var(--canvas); color: var(--muted); font-size: 15px; letter-spacing: 0; }

/* ---- Canvas ---- */
/* Holds the canvas and the Add screenshot button floating at its top right. */
.canvas { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Add screenshot: coral, floating over the canvas's top right corner, inset 16px from its edges like
   the zoom controls at the bottom right (the canvas has a 10px margin, hence 26px from the window). */
.add {
  position: absolute; z-index: 5; top: 16px; right: 26px;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px;
  border-radius: var(--radius); background: var(--accent); color: var(--ink);
  font: 22px/1.2 var(--serif); cursor: pointer; white-space: nowrap;
}
.add:hover { background: var(--accent-hover); }
.add input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.add:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The area fills the screen; the 1400 x 875 board inside it is scaled to fit (see board.js),
   so everyone sees the same collage while the grid runs edge to edge. */
#stage {
  /* `isolation` keeps everything drawn inside the canvas (posts, lines, others' cursors) below the
     buttons that float over it: the zoom and admin controls, menus and messages. */
  position: relative; isolation: isolate; flex: 1; overflow: hidden;
  margin: 0 10px 10px; border-radius: var(--radius);
  background-color: var(--canvas);
  /* Miro-style grid of 0.5px lines, in two layers like Miro's zoom: squares of 100-200px, and
     squares half their size that fade in as the big ones grow, so resizing never makes squares pop.
     draw() in board.js sets their size and position as the view moves. */
  --fine-grid: color-mix(in srgb, var(--grid) calc(var(--fine, 0) * 100%), transparent);
  background-image:
    linear-gradient(var(--grid) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--grid) 0.5px, transparent 0.5px),
    linear-gradient(var(--fine-grid) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--fine-grid) 0.5px, transparent 0.5px);
  background-size:
    var(--cell, 100px) var(--cell, 100px), var(--cell, 100px) var(--cell, 100px),
    calc(var(--cell, 100px) / 2) calc(var(--cell, 100px) / 2), calc(var(--cell, 100px) / 2) calc(var(--cell, 100px) / 2);
  background-position: -1px -1px;
}
#stage.over::after {
  content: ""; position: absolute; inset: 12px; border: 3px dashed var(--muted); border-radius: var(--radius); pointer-events: none;
}
/* The base area, positioned and zoomed by fit() in board.js to show every post. */
#board {
  position: absolute; left: 0; top: 0; width: 1400px; height: 875px;
  transform-origin: 0 0;
}

.empty {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  color: var(--muted); font: 40px/1.2 var(--serif); pointer-events: none; padding: 20px;
}
.empty small { display: block; font: 18px var(--sans); margin-top: 8px; }

/* Following someone (their colour) or being followed (yours), like Miro: an outline round the canvas
   and a tab hanging from its top edge, "Following Ana" with a Stop button, or "2 people following you". */
#stage.followed::before {
  content: ""; position: absolute; inset: 0; z-index: 2147483050; border: 3px solid var(--follow);
  border-radius: inherit; pointer-events: none;
}
.follow-pill {
  --tab-radius: 14px; /* its bottom corners, and the curves joining it to the outline */
  position: absolute; z-index: 2147483100; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 48px); min-height: 40px;
  padding: 3px 16px 6px; border-radius: 0 0 var(--tab-radius) var(--tab-radius);
  background: var(--follow); color: var(--ink); font: 500 15px var(--sans); user-select: none;
}
/* Curves filling the corners where the tab's sides meet the outline (3px thick), so the two read as
   one shape: a square of the tab's colour with a quarter circle cut out of it. Each overlaps the tab
   and the outline by 1px, so no hairline shows where they meet when the centred tab lands between
   pixels (the overlap is the same colour, and the curve itself stays where it was). */
.follow-pill::before, .follow-pill::after {
  content: ""; position: absolute; top: 2px;
  width: calc(var(--tab-radius) + 1px); height: calc(var(--tab-radius) + 1px); pointer-events: none;
}
.follow-pill::before {
  right: calc(100% - 1px);
  background: radial-gradient(circle at 0 100%, transparent var(--tab-radius), var(--follow) calc(var(--tab-radius) + .5px));
}
.follow-pill::after {
  left: calc(100% - 1px);
  background: radial-gradient(circle at 100% 100%, transparent var(--tab-radius), var(--follow) calc(var(--tab-radius) + .5px));
}
.follow-pill:has(button:not([hidden])) { padding-right: 6px; }
.follow-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Stop: a #D9D9D9 fill in "Plus darker" blend mode (the owner's spec), which takes 38 off each of the
   tab colour's red, green and blue. Only Safari can blend that way (mix-blend-mode: plus-darker), but
   the button always sits on the tab's flat colour, so the blended colour is worked out directly and
   looks the same everywhere. Hovering darkens it a little more. */
.follow-pill button {
  flex: none; padding: 6px 10px; border: none; border-radius: 10px;
  background: rgb(from var(--follow) calc(r - 38) calc(g - 38) calc(b - 38));
  color: var(--ink); font: 600 12px/1.2 var(--sans); cursor: pointer;
}
.follow-pill button:hover { background: rgb(from var(--follow) calc(r - 56) calc(g - 56) calc(b - 56)); }
.follow-pill button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- Lines drawn with the pen (ink.js): above the posts, below the cursors ---- */
.ink {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible;
  z-index: 2147482000; pointer-events: none;
}
.ink polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity 2s linear; }
.ink .fading { opacity: 0; }

/* ---- Live cursors ---- */
/* Other people's pointers, in their avatar colour. Over the canvas in screen pixels, moved every
   frame by place() in cursors.js (so no CSS transitions on their position). */
.cursors { position: absolute; inset: 0; z-index: 2147483000; pointer-events: none; user-select: none; -webkit-user-select: none; }
.cursor { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .4s; }
.cursor.gone { opacity: 0; }
/* Like Miro: a small arrow in their colour, and the name in a pill to its lower
   right. The cursor element sits at the pill's corner; place() in cursors.js moves and turns the
   arrow (round its tip), which is how it points the way to someone off screen. */
.cursor-arrow {
  position: absolute; left: 0; top: 0; overflow: visible; transform-origin: 15px 8px;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.18));
}
.cursor-arrow path { fill: var(--colour); }
.cursor-name {
  display: block; padding: 4px 11px; border-radius: 999px;
  background: var(--colour); color: var(--ink); font: 600 13px/1.3 var(--sans); white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
}

/* ---- Posts ---- */
/* The name strip under the image is 26 board units, but grows when zoomed out so it always fits
   the 32px-high name label (see .who). --scale is the board's zoom, set by applyView() in board.js.
   --label is how much the label is scaled within the board: 1 / zoom keeps it the same size on
   screen up to 200%; past that it stays at half size, so it grows with the post (at 400% it's 2x). */
.piece {
  --label: max(calc(1 / var(--scale, 1)), 0.5);
  --strip: max(26px, calc(32px * var(--label)));
  position: absolute; width: var(--w); padding: 8px 8px var(--strip); background: var(--paper) padding-box;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.1);
  user-select: none; touch-action: none;
  transform: rotate(var(--r));
}
.piece.land { animation: land .35s cubic-bezier(.2,1.4,.4,1) both; }
.piece.movable { cursor: grab; }
.piece.dragging { cursor: grabbing; box-shadow: 0 6px 10px rgba(0,0,0,.12), 0 22px 40px rgba(0,0,0,.16); }
.piece.saving { opacity: .85; }
/* Someone else is dragging this post: lifted, following their updates (about 14 a second) smoothly. */
.piece.live { transition: left .08s linear, top .08s linear; box-shadow: 0 6px 10px rgba(0,0,0,.12), 0 22px 40px rgba(0,0,0,.16); }
/* Someone else moved this post: ease it to its new place (GLIDE_MS in board.js) rather than jump. */
.piece.gliding { transition: left .6s cubic-bezier(.45,0,.2,1), top .6s cubic-bezier(.45,0,.2,1); }
.piece .open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: inherit; }
.piece .open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.piece:not(.movable) { cursor: zoom-in; }
.piece img { display: block; width: 100%; height: auto; background: #ebeaee; pointer-events: none; }
.piece::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px;
  transform: translateX(-50%) rotate(var(--tr)); background: var(--tape);
}
/* The author's avatar and name are never smaller than 24px / 12px on screen, like Miro and Figma:
   the same size at every zoom up to 200%, then growing with the post. Centred in the strip, and
   cut short with "…" rather than run past the post. */
.piece .who {
  position: absolute; left: 8px; bottom: calc((var(--strip) - 32px * var(--label)) / 2);
  height: 32px; max-width: calc((100% - 16px) / var(--label));
  display: flex; align-items: center; gap: 6px;
  transform-origin: 0 100%; transform: scale(var(--label));
  font: 500 12px var(--sans); color: #555;
}
.piece .who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Smaller avatars keep the same shape: 16px corners on 44px, scaled down. */
.piece .who .avatar { flex: none; width: 24px; height: 24px; border-radius: 8.7px; font-size: 10px; letter-spacing: 0; }
.piece .who .avatar[data-letters="3"] { font-size: 8px; }
.piece .x {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: var(--ink); color: #fff; font: 16px/26px var(--sans); cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.piece .fb {
  position: absolute; right: 8px; bottom: 3px; font: 500 11px var(--sans);
  padding: 2px 8px; border-radius: var(--radius); border: 1px dashed #999; background: #fff; color: #555;
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
.piece:hover :is(.x, .fb), .piece :is(.x, .fb):focus-visible { opacity: 1; }
@media (hover: none) { .piece :is(.x, .fb) { opacity: 1; } }
.piece :is(.x, .fb):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.piece:not(.mine) .fb, body:not(.is-admin) .piece:not(.mine) .x { display: none; }
/* Feedback requested (the owner's design): a coral frame round the paper, 5 board units wide, with a
   strip below as tall as the name strip holding a waving hand and "Feedback requested", sized and
   scaled like the avatar and name (12px text, never smaller on screen, growing past 200%). The frame
   is a border outside the paper: the post is widened and pulled up and left by the frame's width so
   the paper doesn't move or shrink, and it still turns round the paper's middle. */
.piece.help {
  --frame: 5px;
  width: calc(var(--w) + 2 * var(--frame)); margin: calc(-1 * var(--frame)) 0 0 calc(-1 * var(--frame));
  border: var(--frame) solid var(--flag); border-bottom-width: var(--strip);
  transform-origin: 50% calc(50% - (var(--strip) - var(--frame)) / 2);
}
.piece .asked {
  display: none; position: absolute; left: 50%; height: 32px; white-space: nowrap;
  max-width: calc((100% - 16px) / var(--label)); /* within the post, cut short with "…" like the name */
  bottom: calc(-1 * var(--strip) + (var(--strip) - 32px * var(--label)) / 2);
  align-items: center; gap: 5px;
  transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--label));
  font: 500 12px var(--sans); color: var(--ink); pointer-events: none;
}
.piece.help .asked { display: flex; }
.piece .asked svg { flex: none; width: 15px; height: 15px; }
.piece .asked span { overflow: hidden; text-overflow: ellipsis; }
.piece .x { z-index: 2; }
@keyframes land {
  from { transform: rotate(calc(var(--r) * 3)) scale(1.25); opacity: 0; }
  to   { transform: rotate(var(--r)) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .piece.land { animation: none; } .piece.gliding, .piece.live { transition: none; } }

/* ---- Admin ---- */
/* Small and quiet, in the canvas's bottom-right corner. */
/* Bottom left of the canvas; the zoom controls have the bottom right. */
.admin {
  position: fixed; z-index: 5; left: 26px; bottom: max(26px, env(safe-area-inset-bottom));
  align-items: center;
  display: flex; gap: 6px;
}
.admin button {
  padding: 4px 10px; border: none; border-radius: var(--radius); background: none; color: var(--muted);
  font: 12px var(--sans); cursor: pointer;
}
.admin button:hover { background: var(--button-hover); color: var(--ink); }
.admin button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.is-admin .admin button { background: var(--page); color: var(--ink); }
.is-admin .admin button:hover { background: var(--button-hover); }
.admin #wipe, .admin #delete-selected { color: #b42318; }
/* Admins picking posts to delete together: a ticked post gets a blue outline, the same thickness on
   screen at any zoom. */
.piece.selected { outline: calc(4px * var(--label)) solid var(--focus); outline-offset: calc(4px * var(--label)); }
body.selecting #stage, body.selecting .piece { cursor: pointer; }

/* ---- Video call (public/call.js; owner's design) ---- */
/* The Hangout tab: while you're in the hangout but not on /hangout, a dark square fills the tab and the
   icon goes white. On /hangout it's simply the current tab (the white square under it). */
.tab-hangout svg { position: relative; }
.hangout-on {
  position: absolute; inset: 0; border-radius: var(--radius); background: #121212; opacity: 0; transition: opacity .15s;
  box-shadow: 0 4px 12px rgba(52, 58, 63, .12), 0 1px 4px rgba(52, 58, 63, .05);
}
html.call-open:not(.call-full) .tab-hangout { color: #fff; }
html.call-open:not(.call-full) .hangout-on { opacity: 1; }

/* The panel: fixed at the right, from the bottom of the top bar to 10px above the window's bottom, with
   no background of its own (the call fills it). While it's open the tools give up its width plus 16px
   (--call-space) as right padding on the body: the canvases' own 10px right margin is replaced by the
   panel's 10px edge, so the gap between a canvas and the panel is exactly 16px. The top bar takes the
   padding back with a negative margin so it stays full width. Full screen covers all of it and leaves
   the tools' space as it is. Above the floating controls (z-index 5), below the bar (10, so its menus
   open over the call) and dialogs (Show up's scrim is 50). */
/* Opening grows the panel out of the window's right edge while the tools ease narrower beside it, and
   closing runs the same back out (owner's choices, 13 Nov 2026): --call-grow goes between 0 and 1 over
   0.4s, the tab slide's length, with a symmetric ease in and out. It's registered so it can be
   animated; dragging or resizing change --call-w, never --call-grow, so they don't animate. The call
   inside keeps its full width and is uncovered rather than squeezed, so Whereby doesn't relayout every
   frame. call.js hides the panel and removes the call once the closing has finished (CLOSE_MS).
   Browsers without @property, and reduced motion, open and close at once. */
@property --call-grow { syntax: "<number>"; inherits: true; initial-value: 0; }
/* html.call-full is /hangout: the panel's width goes from the side panel's to the whole width, under
   --call-full, which goes between 0 and 1 over the same 0.4s and curve (Ben, 15 Nov 2026), either way. */
@property --call-full { syntax: "<number>"; inherits: true; initial-value: 0; }
html { transition: --call-grow .4s cubic-bezier(.65, 0, .35, 1), --call-full .4s cubic-bezier(.65, 0, .35, 1); }
/* Opening straight into full screen: the panel grows from the right edge to full as one move (call.js
   adds call-snap for the length of it), not as the side panel growing and then widening. */
html.call-snap { transition: --call-grow .4s cubic-bezier(.65, 0, .35, 1), --call-full 0s; }
html.call-open { --call-grow: 1; }
html.call-full { --call-full: 1; }
body { padding-right: var(--call-space); }
.bar { margin-right: calc(-1 * var(--call-space)); }
.call-panel {
  position: fixed; z-index: 8; top: var(--bar-h); right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
  width: calc((var(--call-w) + (100% - 20px - var(--call-w)) * var(--call-full)) * var(--call-grow)); view-transition-name: call-panel;
}
.call-frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); background: var(--canvas); }
.call-ask {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 26px; background: var(--canvas); text-align: center; font: 17px/1.4 var(--sans);
  animation: pop .22s cubic-bezier(.2, 1.3, .4, 1) both; /* the dialogs' look (see Name card) */
}
.call-ask p { margin: 0; max-width: 28ch; font: 15px/1.45 var(--sans); color: var(--muted); }
.call-ask-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* The board's grey shows (above) until Whereby has loaded, then the call fades in over it (owner's
   choice: it hides the jump as Whereby's page draws). call.js adds .loaded. */
.call-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s cubic-bezier(.65, 0, .35, 1); }
.call-frame iframe.loaded { opacity: 1; }
/* While growing, the call and the ask keep the side panel's width (or the panel's, once that's wider),
   pinned to its right edge. */
.call-frame > * { position: absolute; top: 0; right: 0; width: max(var(--call-w), 100%); height: 100%; }
.call-handle { opacity: calc(var(--call-grow) * (1 - var(--call-full))); }
@media (prefers-reduced-motion: reduce) { html, html.call-snap, .call-frame iframe { transition: none; } }
html.call-dragging .call-frame iframe { pointer-events: none; }
html.call-dragging { user-select: none; cursor: col-resize; }
/* The resize bar: 4px x 48px in the middle of the 16px gap, with the whole gap as its hit area. */
.call-handle { position: absolute; top: 0; bottom: 0; left: -16px; width: 16px; cursor: col-resize; touch-action: none; }
.call-handle::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 48px; margin-top: -24px;
  border-radius: 2px; background: #121212;
}
.call-handle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 4px; }
html.call-full .call-handle { visibility: hidden; transition: visibility 0s .4s; }
@media (max-width: 640px) {
  /* A call that's open fills the width, as in full screen; the tools beneath keep their size. */
  :root { --call-space: 0px; }
  .call-panel { left: 10px; width: auto; }
  .call-frame > * { width: 100%; }
  .call-handle { display: none; }
}

/* ---- Zoom controls (bottom right of the canvas) ---- */
.zoom {
  position: fixed; z-index: 5; right: calc(26px + var(--call-space, 0px)); bottom: max(26px, env(safe-area-inset-bottom));
  display: flex; gap: 8px;
}
.zoom-tool, .zoom-steps {
  display: flex; align-items: center; height: 44px; border-radius: var(--radius); background: var(--page);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.08);
}
:is(.zoom, .call-panel) button {
  display: grid; place-items: center; height: 44px; min-width: 44px; padding: 0 8px;
  border: none; border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer;
}
:is(.zoom, .call-panel) button:hover:not(:disabled) { background: var(--button-hover); }
:is(.zoom, .call-panel) button:disabled { color: #c9c8cd; cursor: default; }
:is(.zoom, .call-panel) button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.zoom .zoom-level { min-width: 64px; font: 500 17px var(--sans); font-variant-numeric: tabular-nums; }
/* Edit, pen and fit: single buttons, white like the − / % / + group (`.zoom button` would otherwise
   make them see-through), and dark with a white icon when on. */
.zoom .zoom-tool { padding: 0; background: var(--page); }
.zoom .zoom-tool[aria-pressed="true"] { background: var(--ink); color: #fff; }
.zoom .zoom-tool[aria-pressed="true"]:hover { background: #3a393f; }
/* Tooltips saying what the edit, pen and fit buttons do (their data-tip), like Miro's: a dark rounded
   label with a small pointer, here above the button as the controls sit at the bottom (the top bar's
   avatars have them below; see after these). They appear
   after a short pause on hover (not on touch screens), or straight away on keyboard focus. */
.zoom [data-tip] { position: relative; }
.zoom [data-tip]::after, .zoom [data-tip]::before {
  position: absolute; left: 50%; opacity: 0; pointer-events: none;
  transform: translate(-50%, 4px); transition: opacity .12s, transform .12s;
}
.zoom [data-tip]::after {
  content: attr(data-tip); bottom: calc(100% + 12px); padding: 7px 12px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 500 14px/1.2 var(--sans); white-space: nowrap;
}
.zoom [data-tip]::before {
  content: ""; bottom: calc(100% + 6px); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink);
}
@media (hover: hover) {
  .zoom [data-tip]:hover::after, .zoom [data-tip]:hover::before { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }
}
.zoom [data-tip]:focus-visible::after, .zoom [data-tip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }

/* The same tooltips on the avatars in the top bar, saying whose they are, but below them. Yours, at the
   far right, lines up with its right edge so a long name stays on screen; none shows while your menu is
   open. They go over the canvas because the bar sits above it (z-index on .bar). */
.bar [data-tip] { position: relative; }
.bar [data-tip]::after, .bar [data-tip]::before {
  position: absolute; z-index: 20; left: 50%; opacity: 0; pointer-events: none;
  transform: translate(-50%, -4px); transition: opacity .12s, transform .12s;
}
.bar [data-tip]::after {
  content: attr(data-tip); top: calc(100% + 12px); padding: 7px 12px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 500 14px/1.2 var(--sans); white-space: nowrap;
}
.bar [data-tip]::before {
  content: ""; top: calc(100% + 6px); border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink);
}
.bar .me[data-tip]::after { left: auto; right: 0; transform: translateY(-4px); }
@media (hover: hover) {
  .bar [data-tip]:hover::after, .bar [data-tip]:hover::before { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }
  .bar .me[data-tip]:hover::after { transform: none; }
}
.bar [data-tip]:focus-visible::after, .bar [data-tip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.bar .me[data-tip]:focus-visible::after { transform: none; }
.bar [data-tip][aria-expanded="true"]::after, .bar [data-tip][aria-expanded="true"]::before { display: none; }

/* Dragging the canvas pans it (and, unless you're editing, dragging a post does too).
   With the pen it's a crosshair everywhere. */
#stage { touch-action: none; }
#stage:not(:has(.piece:hover)) { cursor: grab; }
#stage.drawing, #stage.drawing #board * { cursor: crosshair !important; }
#stage.panning, #stage.panning * { cursor: grabbing !important; }

/* ---- Enlarged post ---- */
/* Fills the screen so the arrows can sit at its edges; the post is centred. */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: none; background: transparent; overflow: hidden; cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(28, 27, 31, .7); }
.lightbox figure {
  margin: 0; padding: 12px 12px 0; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0,0,0,.2), 0 30px 60px rgba(0,0,0,.25);
}
/* The image is sized in board.js (sizeLightbox()): scaled to fit, or, if it's a
   long screenshot, shown at a readable width inside a frame that scrolls. */
.lightbox .frame { overflow: hidden; border-radius: 4px; }
.lightbox .frame.scrolls { overflow-y: auto; overscroll-behavior: contain; cursor: auto; outline: none; }
/* A fade at the bottom while there's more to scroll to. */
.lightbox .frame.more { mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.lightbox img {
  display: block; width: auto; height: auto; background: #ebeaee;
  max-width: min(1600px, calc(100vw - 240px)); max-height: calc(100dvh - 164px);
}
.lightbox .frame.scrolls img { max-height: none; }
.lightbox figcaption { display: flex; gap: 10px; align-items: center; padding: 12px 2px 14px; font: 22px var(--serif); }
.lightbox figcaption .avatar { width: 32px; height: 32px; border-radius: 11.5px; font-size: 13px; }
.lightbox figcaption .avatar[data-letters="3"] { font-size: 10px; }
.lightbox .flagged {
  padding: 3px 12px; border-radius: var(--radius); border: 1px solid #c2410c; background: #fff7ed; color: #c2410c;
  font: 500 13px var(--sans);
}
.lightbox .when { margin-left: auto; font: 14px var(--sans); color: var(--muted); }
.lightbox .close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--ink); color: #fff; font: 22px/44px var(--sans); cursor: pointer;
}
.lightbox .nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%;
  border: none; background: var(--paper); color: var(--ink); font: 24px/56px var(--sans); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: transform .12s;
}
.lightbox .nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox .nav[hidden] { display: none; }
.lightbox .prev { left: 24px; }
.lightbox .next { right: 24px; }
.lightbox .count {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%); margin: 0;
  padding: 4px 12px; border-radius: var(--radius); background: rgba(28, 27, 31, .75);
  font: 500 14px var(--sans); color: #fff; pointer-events: none;
}
.lightbox .count:empty { display: none; }
.lightbox :is(.close, .nav):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lightbox[open] { animation: enlarge .18s ease-out; }
@keyframes enlarge { from { transform: scale(.94); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* ---- Name card ---- */
/* The board's own dialogs (name, admin, the avatar dialogs in people.js) look like Show up's (owner's
   choice, 13 Nov 2026): see "Shared pieces" for .modal, the buttons and the text boxes. */
.name-card {
  width: min(560px, calc(100vw - 32px)); padding: 26px; border: none; border-radius: var(--radius);
  background: var(--page); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.2);
}
.name-card[open] { animation: pop .22s cubic-bezier(.2, 1.3, .4, 1) both; }
.name-card::backdrop { background: rgba(28, 27, 31, .32); }
.name-card h2 { margin: 0 0 6px; font: 34px/1.1 var(--serif); }
.name-card p { margin: 0 0 18px; font: 15px/1.45 var(--sans); color: var(--muted); }
/* The admin form's hidden username, for password managers (see index.html): out of sight and out of the way. */
.name-card input.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.name-card .error { margin: 10px 0 0; color: #b42318; }
/* Their buttons are Show up's: the submit is coral, the others (Cancel, Back, Just looking) have no fill. */
:is(.name-card, .call-ask) button {
  height: 44px; padding: 0 18px; border: none; border-radius: var(--radius); background: var(--button); color: var(--ink);
  font: 17px var(--sans); cursor: pointer;
}
:is(.name-card, .call-ask) button:hover { background: var(--button-hover); }
:is(.name-card, .call-ask) button[type=submit] { background: var(--accent); }
:is(.name-card, .call-ask) button[type=submit]:hover { background: var(--accent-hover); }
.name-card .actions button:not([type=submit]) { background: none; }
.name-card .actions button:not([type=submit]):hover { background: var(--canvas); }
/* The call's ask sits on the canvas grey, so its hover can't be that grey too. */
.call-ask-actions button:not([type=submit]) { background: none; }
.call-ask-actions button:not([type=submit]):hover { background: var(--button-hover); }
:is(.name-card, .call-ask) button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- Avatars: I'm new / Find my avatar / Edit my avatar (people.js) ---- */
.people-card.wide { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
/* The avatar maker's dialogs close with a × in the top right (Gina, 13 Nov 2026), as well as Cancel. */
.name-card .dialog-x {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0;
  border-radius: var(--radius); background: var(--button); font: 26px/1 var(--sans); color: var(--ink);
}
.name-card:has(> .dialog-x) h2 { padding-right: 56px; }
.people-choices { display: grid; gap: 10px; }
.name-card .people-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 16px 18px;
  text-align: left; background: var(--canvas);
}
.name-card .people-choice:hover { background: var(--button-hover); }
.people-choice b { font: 26px/1.1 var(--serif); font-weight: 400; }
.people-choice span { font: 14px/1.4 var(--sans); color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: 50vh; overflow: auto; padding: 2px; }
.name-card .people-pick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: auto; padding: 10px;
  border: 2px solid transparent; background: var(--canvas); font: 600 14px var(--sans);
}
.name-card .people-pick:hover { border-color: var(--accent); background: var(--page); }
.name-card .people-pick[aria-current="true"] { border-color: var(--accent); background: var(--accent); }
.people-pick img { width: 72px; height: 72px; border-radius: 16px; }
.people-pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The avatar maker (avatar-maker.js), Gina's design from Show up: the photo, Shuffle and name on the
   left; tabs of little pictures, one tab per part, on the right (Gina's choice, 13 Nov 2026). */
.maker { display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.maker > * { min-width: 0; }
.maker-preview { align-self: start; position: sticky; top: 0; }
.maker-preview .frame { background: #fff; padding: 8px 8px 30px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.1); transform: rotate(-2deg); }
.maker-preview .photo { aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.maker-preview .photo svg { display: block; width: 100%; height: 100%; }
.name-card .maker-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; font: 17px var(--sans); }
.maker-name-field { margin: 18px 0 0; }
.maker-ic { display: inline-block; width: 24px; height: 24px; flex: none; }
.maker-ic svg { display: block; width: 100%; height: 100%; }
.maker-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font: 500 14px var(--sans); }
.maker-title { margin: 0 0 10px; font: 22px/1.1 var(--serif); font-weight: 400; }

/* Tabs: a pill bar like the tool tabs, the current one on white. Scrolls sideways on a phone. */
.maker-tabs-wrap { overflow-x: auto; scrollbar-width: none; margin: -4px; padding: 4px; }
.maker-tabs-wrap::-webkit-scrollbar { display: none; }
.maker-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 20px; background: var(--canvas); }
.name-card .maker-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; height: auto; min-width: 64px; padding: 6px 8px 5px;
  border-radius: 16px; background: none; font: 500 12px var(--sans); color: #5c5b61;
}
.name-card .maker-tab:hover { background: none; color: var(--ink); }
.name-card .maker-tab[aria-selected="true"] { background: var(--page); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.06); }
.maker-tab-icon { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
.maker-tab-icon svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .maker-tab-icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .maker-tab:hover .maker-tab-icon { transform: rotate(-6deg); }
}

/* Each tab's pictures, and its colours under them. The panel keeps its height so the dialog doesn't
   jump between tabs. */
.maker-panel { min-height: 420px; padding-top: 20px; }
.maker-group + .maker-group { margin-top: 22px; }
.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.name-card .maker-tile {
  position: relative; height: auto; aspect-ratio: 1; padding: 0; overflow: hidden;
  border-radius: 14px; background: var(--canvas);
}
.name-card .maker-tile:hover { background: var(--button-hover); }
.maker-tile svg { display: block; width: 100%; height: 100%; }
.maker-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ink); }
.maker-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px 4px; font: 500 11px var(--sans); background: rgba(255,255,255,.85); color: var(--ink); }
.maker-tile.none .maker-tile-label { inset: 0; display: grid; place-items: center; padding: 0; background: none; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .maker-tile { transition: transform .15s; }
  .maker-tile:hover { transform: translateY(-2px); }
}
.maker-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.name-card .maker-swatch { width: 30px; height: 30px; padding: 0; border-radius: 10px; }
.name-card .maker-swatch:hover { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px #c9c8cd; }
.maker-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ink) !important; }
@media (max-width: 860px) {
  .maker { grid-template-columns: 1fr; gap: 16px; }
  .maker-preview { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
  .name-card .maker-btn { margin-top: 0; }
  .maker-name-field { grid-column: 1 / -1; margin-top: 4px; }
  .maker-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
  .maker-panel { min-height: 0; }
}

/* ---- Picture mode ---- */
/* The server's snapshot of a locked board (?week=…&snapshot=1, see src/snapshots.ts): only the canvas,
   edge to edge, with posts already in place. */
body.snapshot :is(.bar, .add, .zoom, .admin, .toast, .call-panel, .hangout-menu) { display: none !important; }
body.snapshot #stage { margin: 0; border-radius: 0; }
body.snapshot .piece { animation: none !important; transition: none !important; }

/* ---- Archive ---- */
body.archive main {
  /* The same canvas as the board, but plain: the board pictures already have the grid. */
  flex: 1; overflow: auto; padding: 40px 16px 48px;
  margin: 0 10px 10px; border-radius: var(--radius);
  background-color: var(--canvas);
}
.archive .status { max-width: 560px; margin: 0 auto 24px; color: var(--muted); font: 24px var(--serif); text-align: center; }
/* A grid of weeks, newest first: each a paper card, taped and slightly tilted like the board's posts,
   with the picture of its board as it was locked (src/snapshots.ts) above its dates and counts. */
.weeks {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 32px;
}
.weeks li { transform: rotate(var(--r)); }
.weeks a {
  position: relative; display: grid; gap: 4px; padding: 8px 8px 14px; height: 100%; text-decoration: none;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.1);
  transition: transform .15s, box-shadow .15s;
}
.weeks a::before {
  /* Taped at the middle of the card's top edge. */
  content: ""; position: absolute; z-index: 1; top: -10px; left: 50%; width: 70px; height: 20px;
  transform: translateX(-50%) rotate(-4deg); background: var(--tape);
}
.weeks a:hover { transform: translateY(-2px); box-shadow: 0 6px 10px rgba(0,0,0,.12), 0 18px 32px rgba(0,0,0,.14); }
.weeks a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* The board's picture, at the board's 16:10; until there is one, plain canvas with a note. */
.weeks .shot {
  display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden;
  background: var(--canvas); color: var(--muted); font: 14px var(--sans); text-align: center;
}
.weeks .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.weeks .title, .weeks .meta { padding: 0 6px; }
.weeks .title { font: 24px var(--serif); }
.weeks .meta { font: 14px var(--sans); color: #5c5b61; }
.weeks .tag {
  position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: var(--radius);
  font: 600 12px var(--sans); background: #fff7ed; color: #c2410c;
}
@media (prefers-reduced-motion: reduce) { .weeks a { transition: none; } }

/* Phones: tighter edges, only the + on Add screenshot, and just your own avatar
   (everyone else's would cover the week picker; their cursors still show). */
@media (max-width: 640px) {
  .bar { padding: 12px 16px; gap: 8px; font-size: 18px; }
  .bar .people { display: none; }
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; } /* too narrow to centre the week exactly */
  .bar-centre { justify-self: stretch; display: flex; justify-content: center; min-width: 0; }
  .week-picker { min-width: 0; max-width: 100%; }
  .week-button { max-width: 100%; min-width: 0; }
  #week-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .add-label { display: none; }
  .add { padding: 0 12px; }
  .bar-right { gap: 8px; }
  .week-button { padding: 0 10px 0 14px; gap: 6px; }
}

/* ======================================================================================
   Shared pieces: dialogs, buttons, text boxes, notices, toasts
   Used on every page. They are Show up's look, except the text boxes, which are Rota's, with
   Ben's focus ring (owner's choices, 13 Nov 2026). Corners are 16px (--radius) throughout, except
   pills, circles, faces and the paper cards. The board's own dialogs (.name-card, .call-ask) are
   styled to match under "Name card".
   ====================================================================================== */

.headline { font: 44px/1.05 var(--serif); margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 30px; max-width: 560px; line-height: 1.45; }

/* Dialogs built by Show up and Design club (a .scrim over the page holding a .modal) */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(28,27,31,.32); display: grid; place-items: center; padding: 16px; }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--page); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.2); animation: pop .22s cubic-bezier(.2,1.3,.4,1) both;
}
.modal.wide { width: min(760px, 100%); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { font: 34px/1.1 var(--serif); font-weight: 400; margin: 0 0 6px; }
.modal .hint { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font: 500 14px var(--sans); }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.actions .left { margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border: none; border-radius: var(--radius); background: var(--button); color: var(--ink); font: 17px var(--sans); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--button-hover); }
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.ghost { background: none; }
.btn.ghost:hover { background: var(--canvas); }
.btn:disabled { opacity: .45; cursor: default; }

/* Text boxes: 42px, a thin grey edge, 15px. Zero specificity (:where) so a page's own rule always
   wins; the board's dialog inputs are named separately (the hidden admin username and file and
   checkbox inputs are left alone). In an inline row (Show up's add a forfeit, Rota's add a name)
   the box takes what the button leaves; everywhere else it's the full width. */
:where(input[type=text], input[type=date], input[type=number], select),
.name-card input:not(.sr-only, [type=file], [type=checkbox]) {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #c9c8cd; border-radius: var(--radius);
  font: 15px var(--sans); color: var(--ink); background: var(--page);
}
:where(input[type=text], input[type=date], input[type=number], select):focus-visible,
.name-card input:not(.sr-only, [type=file], [type=checkbox]):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
:is(.inline-add, .add-row) :is(input, select) { flex: 1; min-width: 0; }

/* A note above the content (Gina's yellow box; owner's choice to keep it) */
.status-note { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--radius); background: #fff7e6; font-size: 14px; display: inline-block; }

/* .su-toast: what Show up's and Design club's scripts made before 13 Nov 2026. A tab left open across
   that update keeps its old scripts until it reloads, so this keeps their toasts styled. Remove it
   after 27 Nov 2026. */
:is(.toast, .su-toast) {
  position: fixed; z-index: 60; /* over the call panel (8), like Show up's toasts */
  left: calc((100% - var(--call-space, 0px)) / 2); /* centred in what the tools keep */
  bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font: 15px var(--sans);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* Dialogs and toasts don't animate for people who've asked for less motion. */
@media (prefers-reduced-motion: reduce) { .modal, .toast, .su-toast, .name-card[open], .call-ask { animation: none !important; } }

/* The top bar's centre pill: Rota's "Every Wednesday · 2pm" and Hangout's title (Rota's look, moved here so both pages share it). */
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid #c9c8cd; border-radius: var(--radius); background: var(--page); white-space: nowrap; }

/* ======================================================================================
   Team (Show up): Gina's, public/team.html (body class "showup")
   Her page's styles, moved from her site. The bar, menus, avatar dialog and avatar maker are above.
   Every rule starts with `.showup` so none of her class names can touch another page. Her cards are
   .card here (.piece on her site) so they don't pick up the board's post styles.
   ====================================================================================== */

/* ---- Canvas ---- */
.showup .showup-stage {
  position: relative; flex: 1; overflow: auto; margin: 0 10px 10px; border-radius: var(--radius);
  background-color: var(--canvas); /* plain, like All weeks (owner's choice, 13 Nov 2026) */
}
.showup .layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 40px 32px 60px; min-height: 100%; align-items: start; }
@media (max-width: 1000px) { .showup .layout { grid-template-columns: 1fr; } }

/* ---- Team cards: posts pinned to the board ---- */
.showup .wall { display: flex; flex-wrap: wrap; gap: 38px 34px; }
.showup .card {
  position: relative; width: 210px; padding: 8px 8px 0; background: var(--paper);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.1);
  transform: rotate(var(--r)); transition: transform .2s, box-shadow .2s; cursor: pointer; border: 0 solid var(--accent);
  animation: card-land .35s cubic-bezier(.2,1.4,.4,1) both;
}
.showup .card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 6px 10px rgba(0,0,0,.12), 0 22px 40px rgba(0,0,0,.16); }
/* Not the board's `land`: Show up's cards settle with a smaller drop (owner's choice: keep both). */
@keyframes card-land { from { transform: rotate(var(--r)) scale(.8); opacity: 0; } }
.showup .card.bust { border-width: 6px; padding: 6px 6px 0; }
.showup .tape {
  position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(var(--tr, -2deg));
  background: var(--tape-colour); opacity: .85;
}
.showup .card .photo { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.showup .card .photo svg { width: 100%; height: 100%; display: block; }
.showup .strip { padding: 10px 4px 12px; }
.showup .name-row { display: flex; align-items: center; gap: 8px; font: 600 15px var(--sans); }
.showup .name-row .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.showup .name-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showup .pts { margin-left: auto; font: 500 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.showup .pts b { font: 500 13px var(--sans); color: var(--muted); }
.showup .faces { display: flex; gap: 3px; margin-top: 10px; flex-wrap: nowrap; }
.showup .face-btn { width: 32px; height: 32px; padding: 1px; border: none; background: none; border-radius: 50%; cursor: pointer; transition: transform .15s cubic-bezier(.2,1.6,.4,1); }
.showup .face-btn svg { width: 100%; height: 100%; display: block; overflow: visible; }
.showup .face-btn:disabled { cursor: default; }
.showup .face-btn.happy:not(:disabled):hover { transform: scale(1.22) rotate(-10deg); }
.showup .face-btn.happy:not(:disabled):hover .eyes { transform: translateY(-1px); }
.showup .face-btn.happy:not(:disabled):active { transform: scale(.85); }
.showup .face-btn.sad:not(:disabled):hover { transform: scale(1.12); }
.showup .face-btn .eyes { transition: transform .15s; }
.showup .face-btn.ouch { animation: ouch .55s ease both; }
@keyframes ouch { 0% { transform: scale(1); } 18% { transform: scale(1.5, .6); } 38% { transform: scale(.75, 1.3) rotate(18deg); } 58% { transform: scale(1.1) rotate(-22deg); } 78% { transform: rotate(8deg); } 100% { transform: none; } }
.showup .face-btn.cheer { animation: cheer .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cheer { 0% { transform: scale(.4) rotate(-90deg); } 100% { transform: none; } }
.showup .face-btn .tear { opacity: 0; }
.showup .face-btn.fresh .tear { animation: tear 1.6s ease-in .15s both; }
@keyframes tear { 0% { opacity: 0; transform: translateY(-2px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.showup .card.shake { animation: shake .6s ease both; }
@keyframes shake { 0%,100% { transform: rotate(var(--r)); } 15% { transform: rotate(calc(var(--r) - 6deg)) translateX(-6px); } 35% { transform: rotate(calc(var(--r) + 6deg)) translateX(6px); } 55% { transform: rotate(calc(var(--r) - 4deg)) translateX(-4px); } 75% { transform: rotate(calc(var(--r) + 2deg)) translateX(2px); } }
.showup .bubble {
  position: fixed; z-index: 80; max-width: 220px; padding: 7px 12px; border-radius: 12px; background: var(--ink); color: #fff;
  font: 600 13px/1.3 var(--sans); text-align: center; pointer-events: none; transform: translate(-50%, -100%);
  animation: bubble 2.1s ease forwards; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.showup .bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes bubble { 0% { opacity: 0; transform: translate(-50%, -70%) scale(.5); } 10% { opacity: 1; transform: translate(-50%, -100%) scale(1.08); } 16% { transform: translate(-50%, -100%) scale(1); } 82% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -125%); } }
.showup .floaty { position: fixed; z-index: 81; font: 30px/1 var(--serif); pointer-events: none; transform: translate(-50%, -50%); animation: floaty 1.1s ease-out forwards; }
@keyframes floaty { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.showup .verdict { margin-top: 10px; padding: 10px; border-radius: var(--radius); background: #fdf0ee; font-size: 14px; line-height: 1.35; }
.showup .verdict b { display: block; font: 20px/1.1 var(--serif); margin-bottom: 4px; font-weight: 400; }
.showup .verdict .btn { margin-top: 8px; width: 100%; justify-content: center; }
.showup .add-card {
  width: 210px; min-height: 290px; display: grid; place-content: center; gap: 8px; text-align: center;
  border: 2px dashed #c9c8cd; border-radius: 4px; background: rgba(255,255,255,.5); color: var(--muted); cursor: pointer; font: 22px var(--serif);
}
.showup .add-card:hover { background: #fff; color: var(--ink); }
/* "Loading…" and "Nobody's here yet": the board's empty-note look (.empty), but in the flow of the wall. */
.showup .empty-note { flex: 1 1 100%; text-align: center; color: var(--muted); font: 40px/1.2 var(--serif); padding: 40px 0; }
.showup .empty-note small { display: block; font: 18px var(--sans); margin-top: 8px; }

/* ---- Side panels ---- */
.showup .side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; }
.showup .panel { background: var(--page); border-radius: var(--radius); padding: 20px; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.06); }
.showup .panel h2 { font: 28px/1.1 var(--serif); font-weight: 400; margin: 0 0 4px; }
.showup .panel .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; line-height: 1.4; }
.showup .mini-wheel { display: grid; place-items: center; margin: 4px 0 14px; }
.showup .flist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
.showup .flist li { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: var(--radius); font-size: 15px; line-height: 1.3; }
.showup .flist li:hover { background: var(--canvas); }
.showup .flist .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.showup .flist .t { flex: 1; }
.showup .x { border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; width: 28px; height: 28px; font-size: 18px; line-height: 1; opacity: 0; }
.showup .flist li:hover .x, .showup .x:focus-visible { opacity: 1; }
.showup .x:hover { background: var(--button-hover); color: var(--ink); }
.showup .inline-add { display: flex; gap: 8px; }
.showup .log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow: auto; }
.showup .log li { font-size: 14px; line-height: 1.4; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.showup .log .when { display: block; color: var(--muted); font-size: 12px; }
.showup .log .ic { width: 22px; height: 22px; display: block; }
.showup .log .ic svg { width: 100%; height: 100%; display: block; }
.showup .btn-ic { width: 24px; height: 24px; display: inline-block; flex: none; }
.showup .btn-ic svg { width: 100%; height: 100%; display: block; }

/* ---- Dialogs (the shared .scrim and .modal are above) ---- */
.showup .roll { display: flex; flex-direction: column; gap: 4px; }
.showup .roll-row { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 4px; border-radius: var(--radius); }
.showup .roll-row:hover { background: var(--canvas); }
.showup .reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.showup .reasons button { padding: 9px 14px; border: 1px solid #c9c8cd; border-radius: 999px; background: #fff; font: 500 14px var(--sans); cursor: pointer; }
.showup .reasons button:hover { background: var(--canvas); }
.showup .reasons button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.showup .reason-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.showup .reason-head .face { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; }
.showup .roll-row .face { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; }
.showup .roll-row .nm { flex: 1; font-weight: 500; }
/* The segmented control and the stepper hold buttons 3px in from their edge, so the buttons' corners are 16px - 3px. */
.showup .seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--canvas); border-radius: var(--radius); }
.showup .seg button { border: none; background: none; padding: 6px 12px; border-radius: 13px; font: 500 13px var(--sans); cursor: pointer; color: var(--muted); }
.showup .seg button[aria-pressed="true"] { background: var(--page); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.showup .seg button.miss[aria-pressed="true"] { background: var(--accent); }

.showup .stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--canvas); border-radius: var(--radius); padding: 3px; }
.showup .stepper button { border: none; background: none; width: 34px; height: 34px; border-radius: 13px; cursor: pointer; font-size: 18px; }
.showup .stepper span { min-width: 28px; text-align: center; font: 600 16px var(--sans); }

/* Spinner */
.showup .spin-wrap { position: relative; width: min(420px, 80vw); aspect-ratio: 1; margin: 6px auto 0; }
.showup .spin-wrap svg.wheel { width: 100%; height: 100%; display: block; transition: transform 5.2s cubic-bezier(.12,.72,.12,1); filter: drop-shadow(0 10px 22px rgba(0,0,0,.14)); }
.showup .pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 34px; height: 44px; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.showup .hub { position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 1; overflow: hidden; }
.showup .hub svg { width: 100%; height: 100%; }
.showup .result { text-align: center; margin-top: 20px; min-height: 92px; }
.showup .result .label { color: var(--muted); font-size: 14px; }
.showup .result .what { font: 34px/1.1 var(--serif); margin-top: 4px; }
.showup .result.show .what { animation: pop .35s cubic-bezier(.2,1.5,.4,1) both; }

.showup .confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.showup .confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Reduced motion: no bouncing, shaking, spinning or falling confetti. (The dialogs' and toasts' are with them.) */
@media (prefers-reduced-motion: reduce) {
  .showup .card, .showup .face-btn, .showup .bubble, .showup .floaty, .showup .result.show .what { animation: none !important; }
  .showup .card:hover { transform: rotate(var(--r)); }
  .showup .spin-wrap svg.wheel { transition-duration: .01s !important; }
  .showup .confetti { display: none; }
}
.showup .showup-stage .layout { max-width: 1400px; margin: 0 auto; }

.showup .stepper button:hover { background: var(--page); }

/* The title menu (the board's week menu, with buttons and a starting-points row) */
.showup .title-menu > button {
  display: block; width: 100%; padding: 10px 14px; border: none; border-radius: var(--radius); background: none;
  color: var(--ink); font: 17px var(--sans); text-align: left; cursor: pointer;
}
.showup .title-menu > button:hover, .showup .title-menu > button:focus-visible { background: var(--canvas); outline: none; }
.showup .title-menu .row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 8px 8px 14px; margin-bottom: 6px;
  border-bottom: 1px solid #ebeaee; font: 17px var(--sans);
}
.showup .title-menu .admin-only { color: var(--muted); font: 13px var(--sans); padding: 6px 14px 0; }

/* Cards only land the first time (see renderWall in showup.js). */
.showup .wall.still .card { animation: none; }

/* ======================================================================================
   Rota (Design club): Gina's, public/rota.html (body class "club-page")
   Her page's styles, moved from her site. Every rule starts with `.club-page`, for the same reason
   as Team's. Some of her class names are renamed (club-weeks, club-week, chip-person) where the
   board already used hers.
   ====================================================================================== */

.club-page .club-stage { position: relative; flex: 1; overflow: auto; margin: 0 10px 10px; border-radius: var(--radius); background-color: var(--canvas); } /* plain, like All weeks (owner's choice, 13 Nov 2026) */
.club-page .wrap { max-width: 980px; margin: 0 auto; padding: 40px 28px 80px; }

/* Up next: a pinned card */
.club-page .next { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 26px 28px; margin: 0 0 40px; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.1); transform: rotate(-.6deg); }
.club-page .next::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(2deg); background: var(--accent); opacity: .7; }
.club-page .next .when { text-align: center; min-width: 96px; }
.club-page .next .when .day { font: 64px/0.9 var(--serif); }
.club-page .next .when .mon { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.club-page .next .label { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-hover); margin-bottom: 6px; }
.club-page .next .topic { font: 30px/1.15 var(--serif); margin: 0 0 10px; }
.club-page .next .topic.tbc { color: var(--muted); }
@media (max-width: 700px) { .club-page .next { grid-template-columns: 1fr; text-align: left; } .club-page .next .when { text-align: left; } }

.club-page .month { font: 28px/1.1 var(--serif); margin: 34px 0 12px; }
.club-page .club-weeks { display: flex; flex-direction: column; gap: 10px; }
.club-page .club-week { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.05); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.club-page .club-week:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 18px rgba(0,0,0,.09); }
.club-page .club-week .date { text-align: center; }
.club-page .club-week .date .d { font: 34px/1 var(--serif); }
.club-page .club-week .date .w { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.club-page .club-week .info { min-width: 0; }
.club-page .club-week .topic { font: 500 16px/1.35 var(--sans); }
.club-page .club-week .topic.tbc { color: var(--muted); font-weight: 400; }
.club-page .club-week .speaker { font-size: 13px; color: var(--muted); margin-top: 3px; }
.club-page .club-week.off { background: transparent; box-shadow: inset 0 0 0 1.5px #d6d4db; box-shadow: none; border: 1.5px dashed #d0ced6; }
.club-page .club-week.off .topic { color: var(--muted); font: 22px var(--serif); }
.club-page .club-week.past { opacity: .55; }
.club-page .club-week.today { box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(0,0,0,.08); }
.club-page .club-people { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.club-page .chip-person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--canvas); font: 600 14px var(--sans); }
.club-page .chip-person .face { width: 26px; height: 26px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; font: 600 12px var(--sans); color: var(--ink); }
.club-page .chip-person .face svg { width: 100%; height: 100%; display: block; }
.club-page .badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.club-page .badge { padding: 4px 10px; border-radius: 999px; font: 600 12px var(--sans); white-space: nowrap; }
.club-page .badge.need { background: #fde6e2; color: #b4483a; }
.club-page .badge.tbc { background: #fbf0d4; color: #8a6514; }
.club-page .badge.ok { background: #e3f1e7; color: #2f7a48; }
.club-page .badge.today { background: var(--accent); color: var(--ink); }
.club-page .toggle-past { margin: 4px 0 0; }

/* ---- Big faces: date + person are the headline ---- */
.club-page .club-week { grid-template-columns: 92px auto 1fr auto; gap: 22px; padding: 16px 22px; }
.club-page .club-week .date .d { font: 46px/0.95 var(--serif); }
.club-page .faces { display: flex; align-items: center; }
.club-page .faces .bigface { width: 76px; height: 76px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; font: 600 24px var(--sans); color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.12); flex: none; }
.club-page .faces .bigface svg { width: 100%; height: 100%; display: block; }
.club-page .faces .bigface + .bigface { margin-left: -18px; }
.club-page .faces .bigface.nobody { background: transparent; border: 2px dashed #c9c8cd; box-shadow: none; color: #b5b3bb; font: 32px var(--serif); }
.club-page .who { font: 30px/1.1 var(--serif); }
.club-page .who.none { color: var(--muted); }
.club-page .club-week .topic { font: 15px/1.4 var(--sans); color: #5c5b61; margin-top: 4px; }
.club-page .club-week .topic.tbc { color: var(--muted); font-style: italic; }
.club-page .club-week.off { grid-template-columns: 92px 1fr; padding: 10px 22px; }
.club-page .club-week.off .date .d { font-size: 34px; color: var(--muted); }
.club-page .next { grid-template-columns: auto auto 1fr auto; gap: 30px; padding: 30px 34px; }
.club-page .next .faces .bigface { width: 140px; height: 140px; border-radius: 30px; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(0,0,0,.14); }
.club-page .next .faces .bigface + .bigface { margin-left: -34px; }
.club-page .next .faces .bigface.nobody { font-size: 56px; }
.club-page .next .who { font: 46px/1.05 var(--serif); margin: 0 0 8px; }
.club-page .next .topic { font: 18px/1.4 var(--sans); color: #5c5b61; margin: 0; }
.club-page .next .topic.tbc { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .club-page .club-week { grid-template-columns: 70px auto 1fr; } .club-page .club-week .badges { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .club-page .faces .bigface { width: 56px; height: 56px; border-radius: 16px; } .club-page .who { font-size: 24px; }
  .club-page .next { grid-template-columns: auto 1fr; } .club-page .next .faces .bigface { width: 96px; height: 96px; }
}

/* ---- The week editor (the shared .scrim and .modal are above) ---- */
.club-page .field small { font-weight: 400; color: var(--muted); }
.club-page .chosen { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.club-page .chosen .chip-person { padding-right: 4px; }
.club-page .chosen .x { border: none; background: none; width: 24px; height: 24px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.club-page .chosen .x:hover { background: #fff; color: var(--ink); }
.club-page .team { display: flex; flex-wrap: wrap; gap: 8px; }
.club-page .team button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border: 1px solid #e3e1e7; border-radius: 999px; background: #fff; font: 500 14px var(--sans); cursor: pointer; }
.club-page .team button:hover { background: var(--canvas); }
.club-page .team button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.club-page .team .face { width: 26px; height: 26px; border-radius: 9px; overflow: hidden; }
.club-page .team .face svg { width: 100%; height: 100%; display: block; }
.club-page .add-row { display: flex; gap: 8px; }
.club-page .switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--canvas); margin-bottom: 18px; cursor: pointer; font: 500 15px var(--sans); }
.club-page .switch input { width: 18px; height: 18px; accent-color: var(--accent-hover); }
.club-page .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.club-page .chips button { padding: 7px 12px; border: 1px solid #c9c8cd; border-radius: 999px; background: #fff; font: 500 13px var(--sans); cursor: pointer; }
.club-page .chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .club-page .club-week { transition: none; } }
