/* Stimz AAC: the builder (build.js), the board itself (play.js), the admin page. The Stimz shop's look since 3 Dec 2026
   (its fonts, header and buttons: the block at the end, which wins over what's above it); Google Sans Flex before that.
   Fonts are kept on the device by the board's offline worker. */
:root { --ink: #221d38; --mut: #6b6878; --bg: #f3f4f7; --card: #fff; --line: #e4e6ec; --pur: #8B4BD3; --pur2: #6c33c4; --hdr: #34206f; --ok: #1d7a4f; --bad: #b42318;
  /* the tiles' colours, kept faint (27 Nov 2026, Jonny: "make the background colours much less prominent"): each is the old one 60% of the way to white */
  --c-daily: #FFFAEC; --c-school: #F1F7FF; --c-animals: #F2FBEF; --c-symbols: #F9F4FF; --c-toilet: #F1FAFB; --c-mine: #FFF3F7; --r: 20px;
  --font: "Google Sans Flex", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(34, 29, 56, .05), 0 10px 30px -14px rgba(34, 29, 56, .22);
  --gpur: linear-gradient(135deg, #9d62ea 0%, #7f45e6 48%, #6930d8 100%); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.4 var(--font); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) clamp(14px, 2.4vw, 32px) 10px; background: radial-gradient(120% 220% at 0% 0%, #4a2b98 0%, var(--hdr) 55%, #2a1860 100%); color: #fff; }
.top b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; } .top b i { font-style: normal; opacity: .7; font-weight: 600; margin-left: 6px; }
.top .grow { flex: 1; }
.top button, .top a { border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .15s, border-color .15s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.top button:hover, .top a:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); }
/* full width (27 Nov 2026, Jonny: "make it full width") */
.wrap { max-width: none; margin: 0; padding: 20px clamp(14px, 2.4vw, 32px) 80px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; } .sub { color: var(--mut); margin: 0 0 18px; }
/* buttons (Jonny: "make the buttons more premium"): a soft raised face that lifts on hover and presses in; the main one in the Stimz purple with a glow */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid rgba(34, 29, 56, .12);
  background: linear-gradient(180deg, #fff 0%, #f8f6fb 100%); font-weight: 700; letter-spacing: .005em; text-decoration: none; color: var(--ink); white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(34, 29, 56, .08), 0 6px 14px -8px rgba(34, 29, 56, .25); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(34, 29, 56, .08), 0 12px 22px -10px rgba(34, 29, 56, .32); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: inset 0 2px 4px rgba(34, 29, 56, .12); }
.btn.go { border: 0; color: #fff; background: var(--gpur); text-shadow: 0 1px 0 rgba(40, 10, 90, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(40, 10, 90, .25), 0 8px 20px -8px rgba(105, 48, 216, .75), 0 1px 2px rgba(0, 0, 0, .18); }
.btn.go:hover { filter: brightness(1.06) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(40, 10, 90, .25), 0 14px 28px -10px rgba(105, 48, 216, .85), 0 1px 2px rgba(0, 0, 0, .18); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--pur2); padding: 0 12px; } .btn.ghost:hover { background: #f3ecff; box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; } .btn.bad { color: var(--bad); } .btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn:focus-visible, .tile:focus-visible, .slot:focus-visible, .pt:focus-visible, .nb:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(139, 75, 211, .55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.err { background: #fde8e6; color: var(--bad); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 15px; z-index: 90; max-width: 92vw; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.toast.on { opacity: 1; }

/* ----- my boards ----- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.bcard { background: var(--card); border: 1px solid #e2e4ea; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(34, 29, 56, .05), 0 18px 36px -16px rgba(34, 29, 56, .3); }
.bcard h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; } .bcard small { color: var(--mut); }
.mini { display: grid; gap: 4px; background: #f1f2f5; border-radius: 14px; padding: 6px; aspect-ratio: 4 / 3; }
.mini i { border-radius: 7px; background: #fff center / contain no-repeat; min-height: 0; } .mini i.e { background: rgba(255, 255, 255, .5); }
.bacts { display: flex; flex-wrap: wrap; gap: 8px; }
.newb { border: 2px dashed #c9b5f5; background: linear-gradient(160deg, #fbf8ff, #f3ecff); color: var(--pur2); border-radius: var(--r); min-height: 220px; font-weight: 800; font-size: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: transform .15s, border-color .15s; }
.newb:hover { transform: translateY(-2px); border-color: var(--pur); }
.newb span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; line-height: 1; color: #fff; background: var(--gpur); box-shadow: 0 10px 22px -8px rgba(105, 48, 216, .7); }

/* ----- the editor (27 Nov 2026, Jonny: "i want them side by side ... let me adjust the blocks so i can make them different
   sizes ... have it edge to edge, no padding blocks"): the board, the tiles and the settings as three blocks side by side,
   edge to edge, filling the screen, each divider draggable to make a block bigger or smaller (remembered on this device).
   On a portrait screen the board and settings are on top and the tiles below; on a phone it's one column that scrolls. ----- */
.ed { --line2: #e5e7ec; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.edb, .side, .tray { background: var(--card); min-width: 0; min-height: 0; }
.edb { padding: 10px 14px 14px; display: flex; flex-direction: column; }
.split { display: none; }
.edh { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.edh input.nm { flex: 1 1 200px; min-width: 0; height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 0 12px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; background: #f3f4f7; transition: border-color .15s, background .15s; }
.edh input.nm:hover { border-color: var(--line); } .edh input.nm:focus { background: #fff; border-color: #c9b5f5; outline: 0; box-shadow: 0 0 0 4px rgba(139, 75, 211, .12); }
.saved { font-size: 13px; font-weight: 700; color: var(--ok); min-width: 64px; text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.saved::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; } .saved.busy { color: var(--mut); }
.boardwrap { flex: 1 1 auto; min-height: 0; container-type: size; display: grid; place-items: center; }
.board { display: grid; gap: clamp(6px, 1vw, 10px); background: #f1f2f5; border-radius: 18px; padding: clamp(6px, 1vw, 10px); width: 100%; }
.board.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(7px); } 70% { transform: translateX(-4px); } }
.slot { position: relative; aspect-ratio: 1 / 1; min-width: 0; min-height: 0; border-radius: 14px; border: 2px dashed #cfc8ba; background: rgba(255, 255, 255, .6); padding: 0; display: flex; align-items: center; justify-content: center; color: #b3ac9d; font-weight: 800; font-size: 22px; transition: border-color .15s, background .15s; }
.slot:hover { border-color: #b9a6e8; }
.slot.sel { border-color: var(--pur); box-shadow: 0 0 0 4px rgba(139, 75, 211, .22); }
.slot.full { border: 0; background: none; }
.board .slot { container-type: size; } .board .tile .w { font-size: clamp(9px, min(15cqw, calc(150cqw / var(--n, 8))), 17px); padding: 3% 4% 6%; }
.board .tile.txt .w { font-size: clamp(10px, min(calc(120cqw / var(--n, 6)), calc(60cqh / var(--l, 1))), 26px); white-space: normal; overflow-wrap: anywhere; }
.slot .x { position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; line-height: 1; display: none; z-index: 2; box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35); }
.slot.sel .x { display: block; }
.side { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.grp { padding: 8px 2px 12px; border-bottom: 1px solid #eceef2; } .grp:last-of-type { border-bottom: 0; }
.grp h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.grp h2 small { font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .steps > div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; } .steps .step { width: max-content; }
.ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 14px; }
.ctl label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(34, 29, 56, .06); }
.step button { width: 38px; height: 38px; border: 0; background: linear-gradient(180deg, #fff, #f1f2f5); font-size: 20px; font-weight: 800; color: var(--pur2); transition: background .12s; } .step button:hover { background: #f3ecff; } .step button:active { background: #e9ddff; }
.step b { min-width: 34px; text-align: center; }
.side select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; font-weight: 700; box-shadow: 0 1px 2px rgba(34, 29, 56, .06); }
.tg { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.sw { position: relative; width: 50px; height: 30px; flex: none; } .sw input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #d5d1c8; transition: background .15s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); } .sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw input:checked + i { background: var(--gpur); } .sw input:checked + i::after { transform: translateX(20px); }
.links { display: flex; flex-wrap: wrap; gap: 8px; } .links .btn { flex: 1 1 auto; }
.linkbox { display: flex; gap: 6px; align-items: center; margin-top: 8px; background: #f2f3f6; border: 1px solid #e4e6eb; border-radius: 12px; padding: 2px 2px 2px 10px; font-size: 12.5px; } .linkbox .btn.sm { min-height: 32px; font-size: 13px; } .linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, monospace; color: var(--mut); }
.side .note { margin-top: auto; padding-top: 6px; }
.tile { --bg: #fff; position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; height: 100%; min-width: 0; border: 2.5px solid rgba(34, 29, 56, .82); border-radius: 14px; background: var(--bg); overflow: hidden; padding: 0; color: var(--ink); }
.tile .pic { flex: 1 1 0; min-height: 0; margin: 6% 8% 0; background: center / contain no-repeat; }
.tile .pic.ph { border-radius: 10px; background-size: cover; margin: 6% 6% 0; }
.tile .w { flex: none; padding: 3% 4% 6%; font-weight: 800; text-align: center; line-height: 1.1; font-size: clamp(11px, 1.5vw, 17px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.txt .w { flex: 1; display: flex; align-items: center; justify-content: center; white-space: normal; font-size: clamp(14px, 2.2vw, 24px); padding: 6%; }
.tile.c-daily { --bg: var(--c-daily); } .tile.c-school { --bg: var(--c-school); } .tile.c-animals { --bg: var(--c-animals); } .tile.c-symbols { --bg: var(--c-symbols); } .tile.c-toilet { --bg: var(--c-toilet); } .tile.c-mine { --bg: var(--c-mine); }
.slot.land .tile { animation: land .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes land { 0% { transform: scale(.6) rotate(-6deg); } 60% { transform: scale(1.12) rotate(2deg); } 100% { transform: none; } }
.slot.out .tile { animation: out .22s ease-in forwards; }
@keyframes out { to { transform: scale(.3) rotate(12deg); opacity: 0; } }
.fly { position: fixed; z-index: 80; pointer-events: none; will-change: transform; filter: drop-shadow(0 14px 18px rgba(34, 29, 56, .3)); }
.spark { position: fixed; z-index: 81; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; }

/* ----- the tile tray: a carousel of a fixed height ----- */
.tray { padding: 10px 12px 8px; --ts: 84px; --rows: 2; }
.trayh { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.qw { position: relative; flex: 0 1 340px; min-width: 200px; }
.qw svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mut); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.tray input.q { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 99px; padding: 0 16px 0 42px; font-weight: 700; background: #f3f4f7; transition: border-color .15s, background .15s, box-shadow .15s; }
.tray input.q:focus { outline: 0; background: #fff; border-color: #c9b5f5; box-shadow: 0 0 0 4px rgba(139, 75, 211, .12); }
.sugg { position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e2e4ea; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(34, 29, 56, .35); max-height: min(60vh, 380px); overflow: auto; }
.sugg li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: #f3ecff; }
.sugg .th { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid rgba(34, 29, 56, .7); background: #fff center / 78% no-repeat; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.sugg .th.c-daily { background-color: var(--c-daily); } .sugg .th.c-school { background-color: var(--c-school); } .sugg .th.c-animals { background-color: var(--c-animals); } .sugg .th.c-symbols { background-color: var(--c-symbols); } .sugg .th.c-toilet { background-color: var(--c-toilet); } .sugg .th.c-mine { background-color: var(--c-mine); }
.sugg .sl { font-weight: 800; } .sugg mark { background: none; color: var(--pur2); } .sugg small { grid-column: 2; color: var(--mut); font-size: 12.5px; font-weight: 600; } .sugg li.on .sl { color: var(--mut); }
.sugg kbd { grid-row: 1 / 3; grid-column: 3; font: 700 11px/1 var(--font); color: var(--pur2); border: 1px solid #d9c8fb; border-radius: 6px; padding: 4px 6px; background: #fff; }
.chips { position: relative; flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 1px 2px rgba(34, 29, 56, .06); transition: background .15s, transform .12s; }
.chip:hover { background: #f7f3ff; }
.chip[aria-pressed="true"] { border-color: transparent; color: #fff; background: var(--gpur); box-shadow: 0 6px 14px -6px rgba(105, 48, 216, .7); }
.cnav { flex: none; display: flex; gap: 8px; }
.nb { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f2f3f6); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(34, 29, 56, .08), 0 6px 14px -8px rgba(34, 29, 56, .3); transition: transform .12s, opacity .15s; }
.nb svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; } .nb:hover { transform: translateY(-1px); } .nb:disabled { opacity: .35; cursor: default; transform: none; }
/* the carousel: the collections one after another, each a block of tiles --rows high, its name pinned at its left as it scrolls by */
.picker { position: relative; display: flex; align-items: flex-start; gap: 26px; height: calc(26px + var(--rows) * var(--ts) + (var(--rows) - 1) * 10px + 6px);
  overflow-x: auto; overflow-y: hidden; padding: 0 2px 4px; scroll-snap-type: x proximity; scroll-padding-left: 4px; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
.picker::-webkit-scrollbar { display: none; }
.picker.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; } .picker.drag .pt { pointer-events: none; }
.tset { flex: none; display: flex; flex-direction: column; scroll-snap-align: start; }
.tsh { position: sticky; left: 0; align-self: flex-start; width: 0; overflow: visible; display: inline-flex; align-items: baseline; gap: 8px; height: 22px; margin: 0 0 4px; padding: 0 2px; font-size: 14px; font-weight: 800; letter-spacing: -.005em; white-space: nowrap; color: var(--ink); }
.tsh small { font-size: 12.5px; font-weight: 700; color: var(--mut); }
.tset + .tset { position: relative; } .tset + .tset::before { content: ''; position: absolute; left: -14px; top: 26px; bottom: 4px; width: 1px; background: #ebe6dd; }
.tsg { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), var(--ts)); grid-auto-columns: var(--ts); gap: 10px; }
.pt { width: var(--ts); height: var(--ts); padding: 0; border: 0; background: none; min-width: 0; scroll-snap-align: start; transition: transform .14s cubic-bezier(.3, 1.4, .5, 1); }
.pt:hover { transform: translateY(-2px); } .pt:active { transform: scale(.94); }
.pt.used .tile { opacity: .42; } .pt .tile { box-shadow: 0 1px 2px rgba(34, 29, 56, .08); } .pt .tile .w { font-size: 12.5px; }
.picker .none { grid-row: 1 / -1; align-self: center; width: max-content; color: var(--mut); font-weight: 600; margin: 0 6px; white-space: nowrap; }
.addown { width: var(--ts); height: var(--ts); border: 2px dashed #f2b8ca; border-radius: 14px; background: linear-gradient(160deg, #fffbfc, #fff3f7); color: #b3215a; font-weight: 800; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; text-align: center; scroll-snap-align: start; }
.addown { font-size: 12px; line-height: 1.12; } .addown span { font-size: 24px; line-height: 1; } .addown small { font-size: 10.5px; font-weight: 700; opacity: .8; margin-top: 2px; }
.cbar { height: 4px; border-radius: 99px; background: #eceef2; overflow: hidden; margin: 4px 2px 0; } .cbar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: var(--gpur); transition: width .2s; }
.note { color: var(--mut); font-size: 13.5px; margin: 10px 2px 0; }

/* one screen, nothing to scroll: desktop and iPad. The blocks fill it edge to edge; 1px dividers between them, each with a
   wider invisible handle to grab. */
@media (min-width: 760px) {
  body.editing { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body.editing .wrap { flex: 1 1 auto; min-height: 0; padding: 0; }
  body.editing .ed { height: 100%; }
  .split { display: block; position: relative; z-index: 4; background: var(--line2); touch-action: none; outline: 0; transition: background .15s; }
  .split::before { content: ''; position: absolute; inset: 0 -7px; cursor: col-resize; }
  .split::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 40px; margin: -20px 0 0 -2px; border-radius: 4px; background: var(--pur); opacity: 0; transition: opacity .15s; }
  .split:hover, .split:focus-visible, .split.on { background: #c9b5f5; } .split:hover::after, .split:focus-visible::after, .split.on::after { opacity: 1; }
  body.resizing { cursor: col-resize; user-select: none; -webkit-user-select: none; } body.resizing.rows { cursor: row-resize; } body.resizing .picker { pointer-events: none; }
  .board { width: min(100cqw, 100cqh * var(--ratio, 1)); height: min(100cqh, 100cqw / var(--ratio, 1)); }
  .board .slot { aspect-ratio: auto; }
  .side { overflow: auto; }
  /* the tiles fill their block: as many rows as fit its height (build.js works out --rows and --ts), scrolled sideways */
  .tray { display: flex; flex-direction: column; }
  .trayh { flex: none; flex-wrap: wrap; gap: 8px 10px; } .qw { flex: 1 1 200px; min-width: 0; } .chips { order: 3; flex: 1 1 100%; }
  .picker { flex: 1 1 0; height: auto; min-height: 0; }
  .cbar { flex: none; }
  /* side by side: board | tiles | settings */
  .ed.wide { grid-template-columns: minmax(240px, var(--bw, 40%)) 1px minmax(300px, 1fr) 1px minmax(220px, var(--sw, 300px)); grid-template-rows: minmax(0, 1fr); }
  .ed.wide .sugg { top: calc(100% + 8px); bottom: auto; }
  .ed.wide .edb { grid-area: 1 / 1; } .ed.wide .split.a { grid-area: 1 / 2; } .ed.wide .tray { grid-area: 1 / 3; } .ed.wide .split.b { grid-area: 1 / 4; } .ed.wide .side { grid-area: 1 / 5; }
  /* portrait: board and settings on top, the tiles below */
  .ed.tall { grid-template-columns: minmax(0, 1fr) 1px minmax(220px, var(--sw, 300px)); grid-template-rows: minmax(200px, var(--bh, 52%)) 1px minmax(200px, 1fr); }
  .ed.tall .edb { grid-area: 1 / 1; } .ed.tall .split.b { grid-area: 1 / 2; } .ed.tall .side { grid-area: 1 / 3; } .ed.tall .split.a { grid-area: 2 / 1 / 3 / 4; } .ed.tall .tray { grid-area: 3 / 1 / 4 / 4; }
  .ed.tall .split.a::before { inset: -7px 0; cursor: row-resize; } .ed.tall .split.a::after { width: 40px; height: 4px; margin: -2px 0 0 -20px; }
  .ed.tall .trayh { flex-wrap: nowrap; } .ed.tall .qw { flex: 0 1 300px; } .ed.tall .chips { order: 0; flex: 1 1 auto; }
}
@media (min-width: 760px) and (max-height: 640px) { .side .note { display: none; } }
@media (min-width: 760px) and (max-height: 720px) { .edb { padding-top: 8px; padding-bottom: 8px; } .edh { margin-bottom: 6px; } .top { padding-top: 6px; padding-bottom: 6px; } }

/* ----- sheets ----- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 30, .5); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.sheet { width: min(100%, 520px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .scrim { align-items: center; padding: 20px; } .sheet { border-radius: 22px; } }
.sheet h2 { margin: 0 0 4px; font-size: 22px; } .sheet p { color: var(--mut); margin: 4px 0 12px; }
.sheet label.f { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 6px; }
.sheet input[type=text] { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-weight: 700; font-size: 17px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sz { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 4px 8px; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sz[aria-pressed="true"] { border-color: var(--pur); box-shadow: 0 0 0 3px rgba(139, 75, 211, .2); }
.sz .g { display: grid; gap: 2px; width: 44px; height: 34px; } .sz .g i { background: #cdbcf2; border-radius: 2px; } .sz small { font-weight: 600; color: var(--mut); font-size: 11.5px; }
.cols { display: flex; gap: 8px; flex-wrap: wrap; } .cols button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); } .cols button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--pur); }
.photo { display: flex; align-items: center; gap: 12px; } .photo .pv { width: 84px; height: 84px; border-radius: 14px; background: #f1f2f5 center / cover no-repeat; flex: none; }
.sb { display: flex; gap: 10px; margin-top: 18px; } .sb .btn { flex: 1; }

/* ----- the board itself (a link) ----- */
body.play { overflow: hidden; background: #fff; }
.pl { position: fixed; inset: 0; display: flex; flex-direction: column; padding: calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); gap: 8px; }
.plh { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 4px; }
.plh b { font-size: 16px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--mut); white-space: nowrap; } .dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #d9a400; }
.dot.ok::before { background: #1f9d5c; } .dot.off::before { background: #8a8698; }
.plh button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; height: 32px; padding: 0 12px; font-weight: 700; font-size: 13px; }
.bar { display: flex; align-items: stretch; gap: 8px; min-height: clamp(64px, 14vh, 110px); background: #f1f2f5; border-radius: 16px; padding: 6px; }
.bar .said { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.bar .said > div { flex: none; aspect-ratio: 1 / 1; height: 100%; } .bar .said .tile .w { font-size: 11px; }
.bar .said > div.lit .tile { box-shadow: 0 0 0 4px rgba(139, 75, 211, .55); border-color: var(--pur2); }
.bar .said:empty::before { content: 'Tap tiles to build a sentence'; align-self: center; color: var(--mut); font-weight: 700; padding: 0 10px; }
.bar button { flex: none; width: clamp(56px, 12vw, 96px); border: 0; border-radius: 12px; font-weight: 800; font-size: 15px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.bar .two { flex: none; display: flex; flex-direction: column; gap: 6px; } .bar .two button { flex: 1; min-height: 0; font-size: 13.5px; }
.bar button.go { color: #fff; background: linear-gradient(110deg, #8B4BD3, #814DF6); box-shadow: none; font-size: 26px; }
.grid { flex: 1; min-height: 0; display: grid; gap: clamp(6px, 1.2vmin, 12px); }
.grid .cell { min-width: 0; min-height: 0; container-type: size; } .grid .cell.e { border-radius: 14px; background: #f7f4ee; }
.grid .tile { border-width: 3px; border-radius: clamp(12px, 2.2vmin, 22px); transition: transform .09s; touch-action: manipulation; }
/* words sized to their own tile (container units), by how long they are: nothing is ever cut off. The first line of each pair is for browsers without container units */
.grid .tile .w { font-size: clamp(11px, 3.4vmin, 34px); font-size: clamp(10px, min(15cqw, calc(160cqw / var(--n, 8)), 17cqh), 38px); padding: 2% 4% 5%; }
.grid .tile.txt .w { font-size: clamp(14px, 5vmin, 60px); font-size: clamp(11px, min(calc(128cqw / var(--n, 6)), calc(62cqh / var(--l, 1))), 72px); overflow-wrap: anywhere; }
.grid .tile.hit { animation: hit .32s cubic-bezier(.2, 1.5, .4, 1); box-shadow: 0 0 0 5px rgba(139, 75, 211, .45); }
@keyframes hit { 0% { transform: scale(.93); } 55% { transform: scale(1.05); } 100% { transform: none; } }
.plmsg { margin: auto; text-align: center; padding: 24px; max-width: 420px; } .plmsg h2 { margin: 0 0 6px; } .plmsg p { color: var(--mut); margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 560px) { .plh .dot.ok:not(.say) { font-size: 0; gap: 0; } .plh button { padding: 0 10px; } }
@media (max-width: 759px) { body.editing .wrap { padding: 0 0 40px; }
  .edb { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line2); box-shadow: 0 8px 18px -14px rgba(34, 29, 56, .35); }
  .tray { border-bottom: 1px solid var(--line2); } .trayh { flex-wrap: wrap; } .qw { flex: 1 1 100%; } .cnav { display: none; }
  .boardwrap { container-type: inline-size; } .board { width: min(100%, calc(38vh * var(--ratio, 1))); margin: 0 auto; } }

/* ----- admin ----- */
.adm { max-width: 900px; margin: 0 auto; }
.adm form.row select { flex: 0 1 auto; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; font-weight: 700; }
.vfind { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); } .vfind h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; } .vfind .vlist { margin-top: 12px; }
.lv .lvn { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .lv .lvn small { flex: none; line-height: 1.35; } #lfind input { flex-basis: 180px; } .adm .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .adm form.row input { flex: 1 1 240px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; } .stats div { background: #fff; border: 1.5px solid #d9d5cc; border-radius: 14px; padding: 12px 14px; }
.stats b { display: block; font-size: 24px; font-weight: 800; } .stats span { color: var(--mut); font-size: 13.5px; }
.box { background: #fff; border: 1.5px solid #d9d5cc; border-radius: var(--r); padding: 16px; margin: 14px 0; } .box h2 { margin: 0 0 4px; font-size: 20px; } .box .note { margin: 0 0 10px; }
.plain { list-style: none; margin: 0; padding: 0; } .plain li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .plain li:first-child { border-top: 0; } .plain li .btn { margin-left: auto; }
.vlist { max-height: 52vh; overflow: auto; border: 1.5px solid var(--line); border-radius: 12px; } .vrow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; } .vrow:first-child { border-top: 0; }
.vrow input[type=text] { flex: 1 1 160px; min-width: 0; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font-weight: 700; } .vrow small { flex: 2 1 160px; color: var(--mut); font-size: 12.5px; }
.vrow input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pur); } .rd { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; white-space: nowrap; } .rd input { accent-color: var(--pur); }
.lims { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; } .lims label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; } .lims input { height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-weight: 700; }

/* ---------- 29 Nov 2026: a set on the board (Jonny's AAC handoff): pages, the message, Suggestions, this device's settings ---------- */
.tile.c-core { --bg: #fff; } .tile.c-folder { --bg: #f1f2f5; }
/* a folder: a tab on its top edge and a heavier outline, so it reads as a way to another page, not a word */
.tile.fold { border-style: solid; border-width: 3px; border-color: #3a2380; background: linear-gradient(180deg, #efeaf9 0%, #f8f5fd 60%); padding-top: 4%; }
.tile.fold .ftab { position: absolute; top: -3px; left: 10%; width: 38%; height: 12%; min-height: 7px; border-radius: 8px 8px 0 0; background: #3a2380; }
.tile.fold .w { color: #3a2380; }
.grid .tile.fold.txt .w { font-weight: 800; }
.plh .pgn { font-weight: 700; color: var(--mut); }
.plh .gear { width: 36px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.plh .gear svg, .pnav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar.full { animation: shake .34s; }   /* the builder's shake */
/* Home, Back, Talk, Keyboard on the left, always in the same places; the four Suggestions beside them */
.tools { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; min-height: clamp(52px, 9vh, 76px); }
.pnav { display: flex; gap: 6px; flex: none; }
.pnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: clamp(54px, 7vw, 76px); border: 0; border-radius: 12px; background: #f1f2f5; color: var(--ink); font-weight: 800; font-size: 12.5px; box-shadow: inset 0 0 0 1.5px var(--line); }
.pnav button svg { width: 24px; height: 24px; }
.pnav button[aria-pressed="true"] { background: #ece5fb; box-shadow: inset 0 0 0 2px #8B4BD3; }
.pnav button:disabled { opacity: .4; }
.pnav button:focus-visible, .sslot:focus-visible { outline: 3px solid rgba(139, 75, 211, .55); outline-offset: 2px; }
.sug { flex: 1; min-width: 0; display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; background: #f4f5f8; border-radius: 14px; padding: 5px; }
.sug[hidden] { display: none; }
.sug .sgl { align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); padding: 0 2px; }
.sslot { position: relative; min-width: 0; border: 0; padding: 0; background: transparent; border-radius: 12px; container-type: size; touch-action: manipulation; }
.sslot:disabled { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .025) 6px 12px); box-shadow: inset 0 0 0 1.5px #e3e5ea; }
.sslot .tile { height: 100%; flex-direction: row; align-items: center; border-width: 2px; border-radius: 12px; }
.sslot .tile .pic { flex: none; width: 34%; height: 80%; margin: 0 0 0 5%; }
.sslot .tile .w { flex: 1; font-size: clamp(11px, min(30cqh, calc(84cqw / var(--n, 8))), 22px); white-space: nowrap; padding: 0 5%; }
/* a word with no picture: sized by its longest word and how many there are, so "Food and drink" wraps instead of being cut */
.sslot .tile.txt .w { font-size: clamp(11px, min(calc(64cqh / var(--l, 1)), calc(132cqw / var(--n, 6))), 24px); line-height: 1.04; padding: 0 5%; white-space: normal; }
/* a narrow slot that's tall enough (six on a tablet): the picture above its word, like the board's tiles, so the word has the whole width */
@container (max-width: 150px) and (min-height: 66px) { .sslot .tile:not(.txt) { flex-direction: column; align-items: stretch; } .sslot .tile:not(.txt) .pic { flex: 1 1 0; width: auto; height: auto; margin: 5% 14% 0; }
  .sslot .tile:not(.txt) .w { flex: none; font-size: clamp(11px, min(22cqh, calc(150cqw / var(--n, 8))), 19px); padding: 2% 3% 5%; } }
/* a narrow, short slot (a phone): a long word goes without its picture so it can be read whole */
@container (max-width: 120px) and (max-height: 65.9px) { .sslot .tile:not(.txt) .pic { width: 26%; margin-left: 4%; } .sslot .tile:not(.txt) .w { padding: 0 4%; } .sslot.long .tile:not(.txt) .pic { display: none; } .sslot.long .tile:not(.txt) .w { font-size: clamp(11px, min(38cqh, calc(150cqw / var(--n, 8))), 20px); } }
.sslot .tile.fold { padding-top: 0; } .sslot .tile.fold .ftab { height: 14%; }
.sslot.hit .tile { animation: hit .32s cubic-bezier(.2, 1.5, .4, 1); }
.mcount { position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); font-size: 12px; font-weight: 800; color: var(--mut); pointer-events: none; }
.mcount:empty { display: none; }
.sheet .who { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .addp { display: flex; gap: 8px; margin: 10px 0 4px; } .sheet .addp input { flex: 1; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-weight: 700; font-size: 16px; }
.sheet .mutp { color: var(--mut); font-size: 13.5px; margin: 4px 0 8px; }
@media (max-width: 760px) { .tools { flex-wrap: wrap; } .pnav { width: 100%; } .pnav button { flex: 1; min-height: 46px; flex-direction: row; gap: 6px; } .sug { min-height: 54px; } .sug .sgl { display: none; } .sug { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the builder, for a set: the pages above the board; the Core words set at the top of New board */
.pgs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; } .pgs::-webkit-scrollbar { display: none; }
.pgs .chip { padding: 6px 12px; font-size: 13px; } .pgs .chip.add { border-style: dashed; color: var(--pur2); }
.side input.pn { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.setpick { display: block; width: 100%; text-align: left; border: 2px solid #c9b5f5; background: linear-gradient(160deg, #fbf8ff, #f3ecff); border-radius: 16px; padding: 14px 16px; margin: 8px 0 4px; cursor: pointer; }
.setpick b { display: block; font-size: 17px; color: var(--pur2); } .setpick > span { display: block; color: var(--mut); font-size: 13.5px; margin-top: 4px; }
.setpick:hover { border-color: var(--pur); }
/* a set's words are mostly text tiles: sized so a word stays whole on a narrow tile (a phone's 6 columns) */
.pl.set .grid .tile.txt .w { font-size: clamp(11px, min(calc(104cqw / var(--n, 6)), calc(60cqh / var(--l, 1))), 72px); overflow-wrap: normal; word-break: normal; hyphens: none; }
.pl.set .bar .said .tile.txt .w { font-size: clamp(13px, 2.6vh, 22px); }
@media (max-width: 560px) { .pl.set .plh #inst { font-size: 0; padding: 0 9px; } .pl.set .plh #inst::before { content: '+'; font-size: 18px; line-height: 1; } }

/* ---------- 29 Nov 2026: tabs along the top of a set, the last word's other forms, tones, Show, Listening ---------- */
.tabs { display: flex; gap: 4px; align-items: flex-end; overflow-x: auto; scrollbar-width: none; margin: 0 0 -2px; padding: 0 4px; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 1 0; min-width: max-content; height: clamp(34px, 5.2vh, 46px); padding: 0 12px; border: 2px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #f1f2f5; color: var(--mut); font-weight: 800; font-size: clamp(12.5px, 1.5vw, 15.5px); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: #3a2380; border-color: #3a2380; box-shadow: inset 0 4px 0 #3a2380; }
.tabs button:focus-visible, .fslot:focus-visible, .tone:focus-visible { outline: 3px solid rgba(139, 75, 211, .55); outline-offset: 2px; }
.pl.set .tabs + .gw .grid { border-top: 2px solid #3a2380; padding-top: 8px; }
.gw { flex: 1; min-height: 0; display: flex; gap: 8px; } .gw .grid { flex: 1; min-width: 0; }
.pside { flex: none; width: clamp(92px, 9.5vw, 132px); display: flex; flex-direction: column; gap: 10px; }
.pside .forms, .pside .tones { display: flex; flex-direction: column; gap: 6px; }
.fslot { height: clamp(36px, 5.6vh, 48px); border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; font-size: clamp(13px, 1.5vw, 17px); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.fslot:disabled { background: transparent; border-style: dashed; border-color: #e3e5ea; }
.fslot[aria-pressed="true"] { background: #ece5fb; border-color: #8B4BD3; }
.tone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-weight: 800; font-size: 12.5px; color: var(--mut); }
.tone svg { width: clamp(26px, 3.6vw, 40px); height: clamp(26px, 3.6vw, 40px); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tone.t-excited { border-color: #f1c27a; color: #a65f00; } .tone.t-sad { border-color: #b9d3ee; color: #2f5f8f; } .tone.t-upset { border-color: #efb4b4; color: #a32626; }
.tone.t-excited[aria-pressed="true"] { background: #f39a2b; border-color: #f39a2b; color: #fff; } .tone.t-sad[aria-pressed="true"] { background: #4d8fd1; border-color: #4d8fd1; color: #fff; } .tone.t-upset[aria-pressed="true"] { background: #d64545; border-color: #d64545; color: #fff; }
.tone[aria-pressed="true"] svg { stroke: #fff; }
.sug.n6 { grid-template-columns: auto repeat(6, minmax(0, 1fr)); }
.bar .go.busy { opacity: .6; } .bar .said.saying .tile { box-shadow: 0 0 0 3px rgba(139, 75, 211, .45); }
.plh #shstop { border-color: #1f9d5c; color: #1f7a48; }
.pnav #phear svg, .pnav #pshow svg { width: 24px; height: 24px; }
/* a shorter board (Listening's page has what was said above it): the side's forms and tones give up height before anything is cut off */
@media (min-width: 761px) { .pside { min-height: 0; } .pside .forms, .pside .tones { flex: 0 1 auto; min-height: 0; } .pside .fslot { flex: 0 1 auto; min-height: 30px; } .pside .tone { flex: 0 1 auto; min-height: 44px; } .pside .tone svg { flex: 0 1 auto; min-height: 20px; } }
@media (max-width: 760px) { .gw { flex-direction: column-reverse; } .pside { width: auto; flex-direction: row; gap: 6px; } .pside .forms, .pside .tones { flex-direction: row; flex: 1 1 0; min-width: 0; } .pside .tones { flex: 0 0 auto; }
  .pside { min-height: 38px; } .fslot { flex: 1 1 auto; min-width: 0; height: 38px; font-size: 13px; padding: 0 6px; } .fslot:disabled { display: none; } .tone { width: 44px; padding: 3px; } .tone span { display: none; } .tone svg { width: 26px; height: 26px; }
  .sug.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tabs button { padding: 0 9px; } .pnav button span { font-size: 11.5px; } }
/* Show: the message, big, for the other person */
.showv { position: fixed; inset: 0; z-index: 80; background: #14121e; color: #fff; display: flex; flex-direction: column; align-items: stretch; padding: calc(16px + env(safe-area-inset-top)) 18px calc(14px + env(safe-area-inset-bottom)); }
.showt { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; font-size: clamp(34px, calc(190vmin / var(--n, 12)), 22vmin); }
.showv.flip .showt { transform: rotate(180deg); }
.showb { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; } .showb button { border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; border-radius: 99px; height: 44px; padding: 0 18px; font-weight: 800; font-size: 15px; }
.showq { align-self: center; max-width: 440px; margin: 0 0 12px; padding: 14px; border-radius: 16px; background: #fff; color: var(--ink); text-align: center; font-size: 14.5px; } .showq img { width: min(52vmin, 240px); height: auto; display: block; margin: 0 auto 8px; } .showq p { margin: 6px 0 0; } .showq .lk { color: var(--mut); font-size: 12.5px; overflow-wrap: anywhere; }
/* Listening */
.sheet.hear { width: min(100%, 560px); }
/* Listening's page: what was said, as tiles, over the tiles to answer with; each can be tapped into the message */
.heardrow { --hh: clamp(44px, 8.5vh, 70px); display: flex; gap: 8px; align-items: center; margin: 0 0 8px; padding: 5px 6px; background: #f4f5f8; border: 2px solid #3a2380; border-radius: 14px; }
.heardrow[hidden] { display: none; }
.heardrow .hl { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; color: var(--mut); padding: 0 4px; }
.heardrow .htiles { flex: 1; min-width: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 1px; } .heardrow .htiles::-webkit-scrollbar { display: none; }
.heardrow .hs { flex: none; height: var(--hh); min-width: var(--hh); } .heardrow .hs .tile { width: var(--hh); border-width: 2px; border-radius: 11px; touch-action: manipulation; }
.heardrow .hs .tile .w { font-size: 11px; padding: 1% 3% 5%; } .heardrow .hs .tile.txt { width: auto; min-width: var(--hh); } .heardrow .hs .tile.txt .w { font-size: clamp(12px, 2.5vh, 19px); white-space: nowrap; padding: 0 10px; }
.heardrow .hs.hit .tile { animation: hit .32s cubic-bezier(.2, 1.5, .4, 1); } .heardrow .hs .tile:focus-visible, .heardrow .hmore:focus-visible { outline: 3px solid rgba(139, 75, 211, .55); outline-offset: 2px; }
.heardrow .hmore { flex: none; min-height: 40px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; color: var(--ink); }
/* a phone: what was said gets the width (no label, a smaller button); it scrolls sideways if it's long */
@media (max-width: 760px) { .heardrow { --hh: 46px; gap: 6px; } .heardrow .hl { display: none; } .heardrow .hmore { padding: 0 9px; font-size: 12px; } .heardrow .hs .tile.txt .w { font-size: 15px; padding: 0 8px; } }
.recdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #d64545; margin-right: 10px; animation: rec 1s ease-in-out infinite; } @keyframes rec { 50% { opacity: .25; } }
.dots { display: inline-flex; gap: 8px; } .dots i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .25; animation: dots 1.2s infinite; } .dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; } @keyframes dots { 30% { opacity: 1; } }
/* their phone */
body.partner { margin: 0; background: #14121e; color: #fff; } .pv { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.pvh { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #8fe3b4; text-align: right; } .pvt { flex: 1; display: flex; align-items: center; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; font-size: clamp(30px, calc(170vmin / var(--n, 12)), 20vmin); } .pvt.typing { color: rgba(255, 255, 255, .7); }
.pvn { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; min-height: 1.4em; }
.pgs .chip.tab { border-top: 3px solid #3a2380; }
/* 29 Nov 2026: a COMMZ Clicks tile. Its picture is the whole tag, name and all, so it fills the tile and the board doesn't
   write the name a second time (it's still there for a screen reader) */
.tile.tag .pic { flex: 1 1 0; width: auto; height: auto; margin: 3%; background-size: contain; }
.tile.tag .w { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tile.tag:not(.c-core) { --bg: #fff; }
.sslot .tile.tag { flex-direction: column; align-items: stretch; } .sslot .tile.tag .pic { width: auto; height: auto; margin: 3%; }

/* ----- 3 Dec 2026: routines (steps.js; Jonny: "complete tasks and press them as they do them and they animate the tile") ----- */
.stbar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px 6px 12px; margin: 0 0 8px; background: #f1f8f3; border: 2px solid #cfe9d8; border-radius: 14px; }
.stbar[hidden] { display: none; }
.stbar b { flex: 1; min-width: 0; font-size: clamp(14px, 2.2vh, 18px); color: #17603d; }
.stbar button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px #cfe9d8; font-weight: 800; font-size: 13.5px; color: #17603d; }
.stbar button:disabled { opacity: .45; }
.stdots { display: flex; gap: 5px; flex: none; } .stdots i { width: 12px; height: 12px; border-radius: 50%; background: #dfe9e2; transition: background .3s, transform .3s; }
.stdots i.on { background: #1f9d5c; } .stdots i.now { background: #fff; box-shadow: inset 0 0 0 3px #1f9d5c; transform: scale(1.15); }
.grid.steps .cell { position: relative; }
.grid.steps .cell.st-now .tile { box-shadow: 0 0 0 5px #1f9d5c, 0 0 0 11px rgba(31, 157, 92, .2); border-color: #17603d; animation: stbreathe 2.4s ease-in-out infinite; }
.grid.steps.st-moving .cell.st-now .tile { box-shadow: none; animation: none; border-color: rgba(34, 29, 56, .82); }
@keyframes stbreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.grid.steps .cell.st-done .tile { opacity: .58; filter: saturate(.45); }
.grid.steps .cell.st-doing .tile { transform: scale(.97); }
.stx { position: absolute; inset: 0; pointer-events: none; }
.stno { position: absolute; left: 6px; top: 6px; min-width: clamp(22px, 3.4vmin, 32px); height: clamp(22px, 3.4vmin, 32px); padding: 0 6px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 2px rgba(34, 29, 56, .7);
  display: grid; place-items: center; font-weight: 800; font-size: clamp(12px, 1.9vmin, 17px); color: var(--ink); }
.st-done .stno { box-shadow: 0 0 0 2px #1f9d5c; color: #17603d; }
.stlab { position: absolute; left: 50%; top: 0; transform: translate(-50%, -48%); padding: 3px 12px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 2px rgba(34, 29, 56, .55); font-weight: 800;
  font-size: clamp(11px, 1.8vmin, 15px); white-space: nowrap; color: var(--ink); z-index: 1; }
.stlab.on { background: #1f9d5c; color: #fff; box-shadow: none; }
.grid.steps { padding-top: 10px; }
.stok { position: absolute; right: -6px; top: -8px; width: clamp(30px, 22%, 64px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18)); animation: stokin .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stokin { from { transform: scale(0); } to { transform: scale(1); } }
.stok .bd, .stbig .bd { fill: #2bb673; } .stok .tk, .stbig .tk { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stbig .tk { stroke-dashoffset: 1; }
.stfx { position: fixed; z-index: 60; pointer-events: none; } .stfx.over { z-index: 120; }
.stfx svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(23, 96, 61, .35)); }
.sthalo { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(43, 182, 115, 0) 52%, rgba(43, 182, 115, .5) 62%, rgba(126, 217, 87, .25) 72%, rgba(43, 182, 115, 0) 74%); opacity: 0; }
.stspk { position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; min-width: 6px; min-height: 6px; border-radius: 50%; opacity: 0; }
.stspk.dash { width: 4.5%; height: 15%; min-width: 4px; min-height: 12px; border-radius: 4px; }
.string { position: fixed; z-index: 55; pointer-events: none; border-radius: clamp(12px, 2.2vmin, 22px); box-shadow: 0 0 0 5px #1f9d5c, 0 0 0 11px rgba(31, 157, 92, .2); }
.stall { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(241, 248, 243, .94); }
.stallin { text-align: center; width: min(100%, 420px); }
.stallb { position: relative; width: min(56vw, 46vh, 260px); aspect-ratio: 1; margin: 0 auto 10px; }
.stallb svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 24px rgba(23, 96, 61, .35)); }
.stall h2 { margin: 6px 0 2px; font-size: clamp(30px, 6vh, 52px); color: #17603d; letter-spacing: -.02em; } .stall p { margin: 0 0 6px; color: var(--mut); font-weight: 700; }
.stall .sb .btn { height: 54px; font-size: 17px; }

/* ----- other ways to choose (access.js) ----- */
@property --accp { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.acc-hold { position: relative; outline: 3px solid rgba(255, 122, 0, .45); outline-offset: 2px; }
.acc-hold::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 6px; pointer-events: none; background: conic-gradient(#ff7a00 var(--accp), rgba(255, 122, 0, .12) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: accfill var(--acc-ms, .8s) linear forwards; }
@keyframes accfill { from { --accp: 0%; } to { --accp: 100%; } }
.acc-on { outline: 5px solid #ff7a00 !important; outline-offset: 2px; }
.acc-grp { outline: 4px dashed #ff7a00 !important; outline-offset: 2px; }
.acc-cur { outline: 6px solid #ff7a00 !important; outline-offset: 3px; box-shadow: 0 0 0 12px rgba(255, 122, 0, .22) !important; position: relative; z-index: 2; }
.pl.acc-lift, .pl.acc-lift * { touch-action: none; -webkit-user-select: none; user-select: none; }
.pl.acc-hold *, .pl.acc-touch * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* the Stay pin: on a page that goes back after a word, it keeps the page open */
.plh .pin { display: inline-flex; align-items: center; gap: 5px; padding: 0 12px 0 9px; }
.plh .pin[hidden] { display: none; }
.plh .pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plh .pin[aria-pressed="true"] { background: #3a2380; border-color: #3a2380; color: #fff; } .plh .pin[aria-pressed="true"] svg { fill: currentColor; }
.sheet .ph { margin: 18px 0 2px; font-size: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet select { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; font-weight: 700; font-size: 15px; background: #fff; }

/* ----- the builder: routines, pages that go back, words hidden while learning, ready-made boards, copies ----- */
.board.steps { counter-reset: st; }
.board.steps .slot.full { counter-increment: st; }
.board.steps .slot.full::before { content: counter(st); position: absolute; left: 4px; top: 4px; z-index: 2; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #1f9d5c; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.slot.hid .tile { opacity: .28; filter: grayscale(1); }
.slot .hide { position: absolute; left: -7px; bottom: -7px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--line), 0 2px 6px rgba(0, 0, 0, .12); display: grid; place-items: center; cursor: pointer; }
.slot .hide svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slot.hid .hide { background: #3a2380; } .slot.hid .hide svg { stroke: #fff; }
.lvls { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sheet .nh { margin: 16px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); }
.ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ready .setpick { margin: 0; }
.ready .setpick.core { grid-column: 1 / -1; }
.setpick.rt b::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; background: #2bb673; box-shadow: inset 0 0 0 3px #d9f3e5; }
.kinds { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cpgrp .note { margin-top: 10px; }
/* the page someone opens to take a copy */
.cpv { max-width: 520px; margin: 10px 0 16px; }
.cpv .mini2 { display: grid; gap: 6px; background: #f1f2f5; border-radius: 16px; padding: 8px; }
.cpv .mini2 > div { aspect-ratio: 1; min-width: 0; container-type: size; } .cpv .mini2 .tile .w { font-size: clamp(8px, 14cqw, 14px); padding: 2% 4% 5%; }
.cpv .mini2 .tile.txt .w { font-size: clamp(9px, calc(110cqw / var(--n, 6)), 18px); }
.grp .sub2 { margin: 16px 0 2px; font-size: 14px; font-weight: 800; }
@media (max-width: 560px) { .stdots { display: none; } .stbar b { white-space: nowrap; } .stbar button { padding: 0 11px; } .stbar { gap: 6px; } }

/* ========== Stimz, as stimz.com looks (3 Dec 2026, Jonny: "lets brand it stimz properly...same as stimz.com style...
   header and logo etc...buttons" and "less AI look") ==========
   The shop's own: Manrope for words, Geomini for headings (OFL, in /fonts, the same one the rewards emails use), its
   ink (#383c4c), the turquoise header with the white logo, the yellow strip above it, and its pill buttons (purple,
   or aqua for the second one) with the same pressed-in edge. No glows, no gradients on buttons, no shouty labels. */
@font-face { font-family: Geomini; src: url(/fonts/geomini-var.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root { --ink: #383c4c; --mut: #6c6f80; --bg: #f5f6f8; --card: #fff; --line: #e2e4ea; --pur: #7d67af; --pur2: #65519a; --ok: #13838f; --bad: #c0392b;
  --teal: #13c1d7; --aqua: #94fffb; --sun: #f5fc7e; --pink: #ffd4ee; --r: 18px;
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: Geomini, Manrope, sans-serif;
  --gpur: #7d67af; --shadow: 0 1px 2px rgba(56, 60, 76, .06), 0 6px 18px -12px rgba(56, 60, 76, .22);
  --press: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .35); }
body { font-weight: 500; }
h1, h2, h3, .sheet h2, .bcard h3, .stall h2 { font-family: var(--head); }
h1 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em; line-height: 1.1; }
/* the strip above the header, and the header: the shop's turquoise, its white logo */
.ann { background: var(--sun); color: var(--ink); text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; padding-top: calc(6px + env(safe-area-inset-top)); }
body.editing .ann { display: none; }
.top { background: linear-gradient(10deg, #3eb1bc 0%, #13c1d7 10%, #16d5ca 50%, #13c1d7 90%, #3eb1bc 100%); box-shadow: none; min-height: 64px; color: #fff; }
.ann + .top { padding-top: 10px; }
.top .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; border: 0; background: none; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top .brand:hover { background: none; }
.top .brand img { height: 28px; width: auto; display: block; }
.top .brand .aac { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .01em; background: var(--sun); color: var(--ink); border-radius: 99px; padding: 3px 10px 2px; }
.top a:not(.brand), .top button { border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; padding: 6px 4px; font-weight: 600; font-size: 14px; color: #fff; }
.top a:not(.brand):hover, .top button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.top form { margin: 0 0 0 14px; }
/* buttons: the shop's pills */
.btn { border-radius: 40px; border: 1.5px solid #d5d8e0; background: #fff; color: var(--ink); font-weight: 700; padding: 0 22px; letter-spacing: 0; box-shadow: 0 1px 2px rgba(56, 60, 76, .1); transition: background .12s, border-color .12s, transform .08s; }
.btn:hover { transform: none; border-color: #b9bdc8; background: #fbfbfc; box-shadow: 0 1px 2px rgba(56, 60, 76, .1); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.go { background: var(--pur); color: #fff; border: 0; text-shadow: none; box-shadow: var(--press); }
.btn.go:hover { background: #7360a6; filter: none; box-shadow: var(--press); }
.btn.alt { background: rgba(148, 255, 251, .75); color: #111; border: 0; box-shadow: var(--press); } .btn.alt:hover { background: rgba(120, 245, 241, .9); }
.btn.ghost { border: 0; background: none; box-shadow: none; color: var(--pur2); } .btn.ghost:hover { background: #f1eef8; }
.btn.sm { border-radius: 40px; min-height: 38px; padding: 0 16px; }
.btn.bad { color: var(--bad); }
.btn:focus-visible, .tile:focus-visible, .slot:focus-visible, .pt:focus-visible, .nb:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible { outline-color: rgba(125, 103, 175, .6); }
/* pills to pick from */
.chip { border: 1.5px solid #d9dce3; box-shadow: none; font-weight: 700; color: var(--ink); }
.chip:hover { background: #f6f4fa; }
.chip[aria-pressed="true"] { background: var(--pur); border-color: var(--pur); color: #fff; box-shadow: none; }
.pgs .chip.add { color: var(--pur2); }
.sw i { background: #cfd2da; }
/* my boards */
.bcard { border: 1.5px solid var(--line); box-shadow: none; } .bcard:hover { transform: none; border-color: #c9ccd6; box-shadow: var(--shadow); }
.bcard h3 { font-weight: 700; }
.mini { background: #f1f2f5; }
.newb { border: 2px dashed #c8cbd5; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; }
.newb:hover { transform: none; border-color: var(--pur); }
.newb span { background: var(--pur); box-shadow: var(--press); font-family: var(--font); }
/* the settings beside the board: plain headings, not shouting */
.grp h2 { font-family: var(--head); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.grp h2 small { color: var(--mut); font-family: var(--font); }
.sheet { border-radius: 22px 22px 0 0; } @media (min-width: 640px) { .sheet { border-radius: 22px; } }
.sheet h2 { font-weight: 700; letter-spacing: -.01em; }
.sz { border-radius: 14px; border-color: #dfe1e7; } .sz[aria-pressed="true"] { border-color: var(--pur); box-shadow: 0 0 0 2px var(--pur); } .sz .g i { background: #c9bfe0; }
.slot.sel { border-color: var(--pur); box-shadow: 0 0 0 3px rgba(125, 103, 175, .25); }
.edh input.nm { font-family: var(--head); font-weight: 700; }
.toast { background: var(--ink); }
/* the board itself: the shop's purple for Speak and what's pressed */
.bar button.go { background: var(--pur); box-shadow: var(--press); }
.pnav button[aria-pressed="true"] { background: #efebf7; box-shadow: inset 0 0 0 2px var(--pur); }
.grid .tile.hit { box-shadow: 0 0 0 5px rgba(125, 103, 175, .45); }
.stall .btn { min-width: 150px; }

/* ----- New board: a page of its own, the whole screen (3 Dec 2026, Jonny: "make it full screen and less AI look") ----- */
.newp { max-width: 1400px; }
.newp .back { margin: 0 0 6px -10px; }
.newp .sub { max-width: 640px; }
.newp .nm2 { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin: 18px 0 8px; }
.newp .nm2 label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; } .newp .nm2 label small { color: var(--mut); font-weight: 600; }
.newp #nname { width: min(100%, 420px); height: 50px; border: 1.5px solid #d5d8e0; border-radius: 14px; padding: 0 14px; font-weight: 700; font-size: 17px; background: #fff; }
.newp #nname:focus { outline: 0; border-color: var(--pur); box-shadow: 0 0 0 3px rgba(125, 103, 175, .2); }
.newp h2.nh { font-family: var(--head); font-size: 22px; font-weight: 700; margin: 28px 0 4px; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.newp h2.nh + p { color: var(--mut); margin: 0 0 12px; }
.newp .ready { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.newp .setpick { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: hidden; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .12s, box-shadow .12s; }
.newp .setpick:hover { border-color: var(--pur); box-shadow: var(--shadow); }
.newp .setpick.core { grid-column: span 2; } @media (max-width: 560px) { .newp .setpick.core { grid-column: auto; } }
.newp .setpick b { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); padding: 12px 14px 0; }
.newp .setpick > span:not(.npv) { display: block; font-size: 13.5px; color: var(--mut); padding: 4px 14px 14px; margin: 0; }
.newp .setpick .use { display: inline-block; margin: auto 14px 14px; align-self: flex-start; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--pur); border-radius: 40px; padding: 7px 14px; box-shadow: var(--press); }
.setpick.rt b::before { content: none; }
/* what's on it, in its real tiles */
.npv { display: grid; gap: 4px; padding: 10px; background: #f1f2f5; aspect-ratio: 16 / 9; align-content: center; }
.npv > span { min-width: 0; aspect-ratio: 1; container-type: size; } .npv > span.e { background: rgba(255, 255, 255, .55); border-radius: 6px; }
.npv .tile { border-width: 1.5px; border-radius: 7px; } .npv .tile .w { font-size: clamp(6px, 16cqw, 12px); padding: 1% 3% 4%; white-space: nowrap; } .npv .tile.txt .w { font-size: clamp(6px, calc(120cqw / var(--n, 6)), 14px); white-space: normal; overflow-wrap: anywhere; line-height: 1.05; }
.npv .tile .pic { margin: 5% 6% 0; }
.newp .kinds { margin: 4px 0 12px; }
.newp .sizes { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-width: 980px; }
.newp .sb { max-width: 520px; margin-top: 22px; }

/* ----- your own tiles: a picture chosen, dragged in or pasted; many at once (3 Dec 2026) ----- */
.addown { background: #fff; border: 2px dashed #f0a9c4; color: #a3195a; }
.addown.imp { border-color: #9fd9de; color: #0d6f79; }
.photo.drop { align-items: flex-start; border: 2px dashed transparent; border-radius: 16px; padding: 4px; margin: -4px; transition: border-color .12s, background .12s; }
.drop.over { border-color: var(--pur) !important; background: #f5f2fb; }
.photo .pv { flex: none; background-color: #f1f2f5; } .pv.fit { background-size: contain !important; background-repeat: no-repeat; background-position: center; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.photo .mutp { margin: 8px 0 6px; }
.fits { display: flex; gap: 6px; flex-wrap: wrap; } .fits .chip { padding: 6px 12px; font-size: 13px; }
.sheet .f small { color: var(--mut); font-weight: 600; }
.imdrop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px dashed #d5d8e0; border-radius: 16px; padding: 16px; margin: 6px 0 10px; }
.imdrop .mutp { margin: 0; }
.imlist { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow: auto; }
.imr { display: flex; align-items: center; gap: 10px; } .imr .pv { width: 54px; height: 54px; border-radius: 10px; flex: none; }
.imr input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-weight: 700; font-size: 15px; }
.imr.bad .pv { background: repeating-linear-gradient(135deg, #fde8e6 0 6px, #fff 6px 12px); } .imr.over { opacity: .45; }
.newp .setpick > .npv { display: grid; margin: 0; color: inherit; font-size: inherit; }
/* (the cards keep their own height; each preview fits a fixed space, whatever its size) */
.newp .ready { align-items: start; }
.newp .setpick { container-type: inline-size; }
.newp .setpick > .npv { aspect-ratio: auto; height: 168px; padding: 10px; gap: 4px; justify-content: center; align-content: center;
  --c: min(calc((100cqw - 20px - (var(--cols) - 1) * 4px) / var(--cols)), calc((148px - (var(--rows) - 1) * 4px) / var(--rows)));
  grid-template-columns: repeat(var(--cols), var(--c)) !important; grid-auto-rows: var(--c); }
.newp .setpick > .npv > span { width: var(--c); height: var(--c); aspect-ratio: auto; }
.newp .setpick > span.use { color: #fff; padding: 7px 14px; margin: 2px 14px 14px; font-size: 13.5px; }
.newp .sub { margin-top: 8px; }
.top a:not(.brand), .top button { white-space: nowrap; }
@media (max-width: 560px) { .top #shop { display: none; } .top form { margin-left: 8px; } .top .brand img { height: 24px; } .ann { font-size: 11.5px; } }
/* (the partner page's .pv is a whole screen: not these little previews) */
.photo .pv, .imr .pv { min-height: 0; display: block; padding: 0; }

/* ----- a routine's Now, Next and Then, like the Stimz Now & Next boards (3 Dec 2026, Jonny: "make the now and next pills
   more obvious ...more matching like our now and next board"): each one a coloured board with its name in big black
   letters above a black-framed square; the steps around them plain. And Start, before it begins. ----- */
.grid.steps { position: relative; padding-top: 0; }
.grid.steps .cell.st { padding: clamp(28px, 4.6vmin, 46px) clamp(5px, .9vmin, 9px) clamp(5px, .9vmin, 9px); border-radius: clamp(14px, 2.4vmin, 24px); transition: background-color .3s; }
.grid.steps .cell.st-lab { background: #c9f4f7; }
.grid.steps .cell.st-now { background: #2fd0dc; }
.grid.steps .cell.st-then { background: #e3f9fa; }
.grid.steps .cell.st-lab .tile { border: clamp(3px, .55vmin, 5px) solid #111; }
.grid.steps .cell.st-now .tile { box-shadow: none; border-color: #111; animation: stbreathe 2.4s ease-in-out infinite; }
.grid.steps.st-moving .cell.st-now .tile, .grid.steps.st-wait .cell.st-now .tile { animation: none; }
.grid.steps .stlab, .grid.steps .stlab.on { position: absolute; left: 0; right: 0; top: clamp(3px, .8vmin, 8px); transform: none; padding: 0; background: none; box-shadow: none; text-align: center;
  font-family: var(--head); font-weight: 800; font-size: clamp(17px, 3.4vmin, 34px); line-height: 1.05; letter-spacing: -.01em; color: #111; }
.grid.steps .stno { left: clamp(6px, 1vmin, 10px); top: clamp(4px, .9vmin, 9px); min-width: clamp(20px, 3vmin, 28px); height: clamp(20px, 3vmin, 28px); font-size: clamp(11px, 1.7vmin, 15px); box-shadow: 0 0 0 2px rgba(17, 17, 17, .75); }
.grid.steps .cell.st-lab .stno { background: rgba(255, 255, 255, .85); }
.grid.steps .stok { top: clamp(2px, .6vmin, 6px); right: clamp(2px, .6vmin, 6px); width: clamp(26px, 18%, 54px); }
.string { box-shadow: 0 0 0 4px #111, 0 0 0 10px rgba(47, 208, 220, .45); }
/* Start */
.stgo { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: clamp(14px, 2.4vmin, 24px);
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.stgo span { display: inline-flex; align-items: center; gap: .45em; font-family: var(--head); font-weight: 800; font-size: clamp(30px, 7vmin, 68px); line-height: 1; color: #fff;
  background: var(--pur); border-radius: 999px; padding: .42em 1.05em .46em .9em; box-shadow: var(--press), 0 14px 34px -12px rgba(56, 60, 76, .55); animation: stgo 1.8s ease-in-out infinite; }
.stgo i { font-style: normal; font-size: .72em; }
.stgo:focus-visible span { outline: 4px solid rgba(125, 103, 175, .5); outline-offset: 4px; }
@keyframes stgo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.cuegrp .cuer { display: grid; grid-template-columns: auto minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; font-weight: 700; }
.cuegrp .cn { width: 22px; height: 22px; border-radius: 99px; background: #2fd0dc; color: #111; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.cuegrp .cl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuegrp input { min-width: 0; height: 36px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 9px; font-weight: 600; font-size: 13.5px; }
.cuegrp input::placeholder { color: #8a8d9a; }

/* ----- a routine as a carousel: Now, Next and Then fixed along the top, the steps moving along under them; or the same
   on a COMMZ Snap board in 3D (3 Dec 2026) ----- */
.carw { position: relative; flex: 1; min-height: 0; min-width: 0; overflow: hidden; --cw: 200px; --g: 14px; --pad: 14px; --lh: clamp(44px, 8vmin, 78px); }
.gw > .carw { flex: 1; }
.carf { position: absolute; inset: 0; display: flex; gap: var(--g); padding: 0 var(--pad); pointer-events: none; }
.carf .cf { flex: 0 0 var(--cw); position: relative; border-radius: clamp(16px, 2.6vmin, 28px); background: #c9f4f7; }
.carf .cf.c0 { background: #2fd0dc; } .carf .cf.c2 { background: #e3f9fa; }
.carf .cf b { position: absolute; left: 0; right: 0; top: 0; height: var(--lh); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: clamp(22px, 5vmin, 50px); line-height: 1; color: #111; letter-spacing: -.01em; }
.carw .grid.carousel { position: absolute; left: 0; top: var(--lh); bottom: var(--g); width: max-content; display: flex !important; gap: var(--g); padding: 0 var(--pad); grid-template-columns: none !important; grid-template-rows: none !important;
  transition: transform .75s cubic-bezier(.5, 0, .2, 1); will-change: transform; }
.carw .grid.carousel .cell { flex: 0 0 var(--cw); width: var(--cw); height: 100%; background: transparent !important; padding: 0 calc(var(--g) * .8) calc(var(--g) * .2) !important; }
.carw .grid.carousel .cell.e, .carw .grid.carousel .cell.nost { display: none; }
.carw .grid.carousel .stlab { display: none; }
.carw .grid.carousel .cell .tile { border: clamp(3px, .6vmin, 5px) solid #111; }
.carw .grid.carousel .stno { top: clamp(6px, 1vmin, 10px); left: calc(var(--g) * .8 + 8px); }
.carw .grid.carousel .stok { right: calc(var(--g) * .8 - 6px); }
.carw .stgo { inset: 0; }
/* in 3D: the board is drawn; the tiles' buttons stay over their 3D tiles, see-through, so a tap or a switch still finds them */
.carw.snap { background: radial-gradient(120% 90% at 50% 40%, #fcfcfd 0%, #eceef2 100%); border-radius: 18px; }
canvas.snap3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.carw.snap .carf { display: none; }
.carw.snap .grid.carousel { inset: 0; width: auto; transform: none !important; transition: none; display: block !important; padding: 0; }
.carw.snap .grid.carousel .cell { position: absolute; padding: 0 !important; }
.carw.snap .grid.carousel .cell .tile { background: transparent; border-color: transparent; box-shadow: none; animation: none; }
.carw.snap .grid.carousel .cell .tile > *, .carw.snap .stx { visibility: hidden; }
/* the grid's Now / Next / Then: more room above the tile, the name in the middle of it (3 Dec 2026, Jonny: "make it less
   bunched above the tile") */
.grid.steps .cell.st { padding-top: clamp(40px, 7.4vmin, 76px); }
.grid.steps .stlab, .grid.steps .stlab.on { top: 0; height: clamp(40px, 7.4vmin, 76px); display: grid; place-items: center; padding-bottom: clamp(2px, .5vmin, 5px); font-size: clamp(19px, 3.9vmin, 40px); }
.carw .grid.carousel .stlab, .carw .grid.carousel .stlab.on { display: none !important; }
/* the frames no taller than a square tile needs, in the middle of the space */
.carf { top: calc((100% - var(--fh, 100%)) / 2); bottom: auto; height: var(--fh, 100%); }
.carw .grid.carousel { top: calc((100% - var(--fh, 100%)) / 2 + var(--lh)); bottom: auto; height: calc(var(--fh, 100%) - var(--lh) - var(--g)); }
.carw.snap .grid.carousel { top: 0; height: 100%; }

/* ---------- the builder's settings, a premium pass (3 Dec 2026, Jonny: "give it a shaded background to separate it from the
   boards...and a slight shadow on the left side. Then a real premium pass on the form layout", and a card he sent as the
   look to go for): a cool grey panel with a shadow falling to its left; each group a white card with a big radius, a soft
   deep shadow and a faint lilac glow in its corner; its title over a hairline; quiet tinted panels inside for the controls;
   labels dark, values and notes grey; pill buttons ---------- */
.ed .side { position: relative; z-index: 3; background: linear-gradient(180deg, #f1f2f6 0%, #eaecf1 100%); padding: 18px 16px 28px; gap: 16px;
  box-shadow: inset 1px 0 0 #e1e3ea; }   /* (no shadow: 3 Dec 2026, Jonny: "get rid of the shadow on the right panel") */
.ed .side .grp { position: relative; flex: none; margin: 0; padding: 20px 20px 22px; border-radius: 24px; border: 1px solid #fff;
  background: radial-gradient(130% 60% at 0% 100%, rgba(125, 103, 175, .09) 0%, rgba(125, 103, 175, 0) 60%), #fff;
  box-shadow: 0 1px 1px rgba(30, 34, 48, .04), 0 22px 44px -28px rgba(30, 34, 48, .38); }
.ed .side .grp:last-of-type { border-bottom: 1px solid #fff; }
.ed .side .grp[hidden], .ed .side [hidden] { display: none !important; }
.ed .side .grp h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid #eceef2;
  font-family: var(--font); font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: #1f2330; line-height: 1.25; text-transform: none; }
.ed .side .grp h2 small { flex: none; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: #5b4a94; background: #efeaf9; border-radius: 99px; padding: 4px 10px; letter-spacing: 0; }
.ed .side label.f, .ed .side .steps > div > span:first-child { display: block; margin: 18px 0 8px; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; color: #2b2f3a; }
.ed .side h2 + label.f, .ed .side .steps > div > span:first-child { margin-top: 0; }
.ed .side select, .ed .side input[type="text"], .ed .side input.pn { width: 100%; height: 48px; border: 1px solid #e1e4eb; border-radius: 14px; background-color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 500; color: #1f2330; padding: 0 14px; margin: 0; box-shadow: 0 1px 2px rgba(30, 34, 48, .04);
  transition: border-color .15s, box-shadow .15s; }
.ed .side select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%236b7080' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.ed .side select:hover, .ed .side input[type="text"]:hover, .ed .side input.pn:hover { border-color: #cdd1dc; }
.ed .side select:focus-visible, .ed .side input[type="text"]:focus, .ed .side input.pn:focus { outline: 0; border-color: #7d67af; box-shadow: 0 0 0 4px rgba(125, 103, 175, .16); }
.ed .side select:disabled { opacity: .55; cursor: default; }
.ed .side input::placeholder { color: #9a9eab; font-weight: 400; }
.ed .side .note { margin: 10px 0 0; padding: 0; font-size: 13.5px; line-height: 1.55; color: #6b7080; }
/* the quiet tinted panel inside a card: rows and columns, the choices, the colours */
.ed .side .steps, .ed .side .vopts, .ed .side .bcols { background: #f2f4fb; border-radius: 18px; padding: 14px; }
.ed .side .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 14px; } .ed .side .steps > div { gap: 0; }
.ed .side .step { width: 100%; height: 46px; border: 1px solid #e1e4eb; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(30, 34, 48, .05); justify-content: space-between; overflow: hidden; }
.ed .side .step button { width: 42px; height: 100%; background: transparent; color: #5b4a94; font-size: 20px; font-weight: 600; }
.ed .side .step button:hover { background: #f2effa; } .ed .side .step b { flex: 1; font-size: 17px; font-weight: 600; color: #1f2330; }
/* how a routine shows: three choices, one under another, each saying what it does */
.ed .side .vopts { display: flex; flex-direction: column; gap: 6px; padding: 6px; margin: 0; }
.ed .side .vopts .chip { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left; white-space: normal;
  min-height: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; box-shadow: none; color: #1f2330; }
.ed .side .vopts .chip::before { content: ''; grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c3c7d3; background: #fff; box-sizing: border-box; }
.ed .side .vopts .chip b { font-size: 14.5px; font-weight: 600; } .ed .side .vopts .chip small { font-size: 12.5px; font-weight: 500; color: #6b7080; line-height: 1.4; }
.ed .side .vopts .chip:hover { background: rgba(255, 255, 255, .7); }
.ed .side .vopts .chip[aria-pressed="true"] { background: #fff; color: #1f2330; border-color: #e6e1f4; box-shadow: 0 1px 2px rgba(30, 34, 48, .05), 0 8px 18px -12px rgba(91, 74, 148, .45); }
.ed .side .vopts .chip[aria-pressed="true"]::before { border: 5.5px solid #7d67af; }
.ed .side .lvls:not(.vopts) { gap: 6px; }
/* switches: the words on the left, the switch on the right, like a detail row */
.ed .side .tg { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #eceef2; font-size: 14.5px; font-weight: 600; color: #2b2f3a; }
.ed .side h2 + .tg, .ed .side #bsent > .tg:first-child, .ed .side .grp > .note:first-of-type + .tg { border-top: 0; padding-top: 0; }
.ed .side #bsent > .tg:first-child { border-top: 1px solid #eceef2; padding-top: 16px; }
.ed .side .tg + .note { margin-top: 6px; }
.ed .side .sw i { background: #d4d7df; } .ed .side .sw input:checked + i { background: linear-gradient(90deg, #6a56b0 0%, #8c6fd6 100%); }
/* the board's colours */
.ed .side .bcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 10px; justify-items: center; }
.ed .side .bcol { position: relative; width: 36px; height: 36px; border-radius: 50%; padding: 0; border: 3px solid #fff; background: var(--sw, #fff); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(30, 34, 48, .14), 0 2px 6px -2px rgba(30, 34, 48, .25); transition: transform .12s, box-shadow .12s; }
.ed .side .bcol.std { background: conic-gradient(#2fd0dc 0 33.3%, #c9f4f7 0 66.6%, #e3f9fa 0); }
.ed .side .bcol:hover { transform: scale(1.08); }
.ed .side .bcol[aria-pressed="true"] { box-shadow: 0 0 0 2.5px #7d67af, 0 4px 10px -3px rgba(91, 74, 148, .5); }
.ed .side .bcol[aria-pressed="true"]::after { content: ''; position: absolute; left: 50%; top: 46%; width: 6px; height: 11px; border: solid #1f2330; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); }
.ed .side .bcol[aria-pressed="true"][style*="#000000"]::after { border-color: #fff; }
/* a routine's words: the step on one line, what it says under it */
.ed .side .cuegrp .cuer { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n l" "i i"; gap: 8px 10px; margin: 0; padding: 14px 0; border-top: 1px solid #eceef2; }
.ed .side .cuegrp .note + .cuer { border-top: 0; margin-top: 4px; padding-top: 6px; }
.ed .side .cuegrp .cn { grid-area: n; width: 24px; height: 24px; background: #efeaf9; color: #5b4a94; font-size: 12px; font-weight: 700; }
.ed .side .cuegrp .cl { grid-area: l; font-size: 14.5px; font-weight: 600; color: #2b2f3a; }
.ed .side .cuegrp input { grid-area: i; height: 46px; font-size: 15px; }
/* buttons: pills, the main one in the brand's gradient */
.ed .side .btn { border-radius: 99px; min-height: 46px; font-weight: 600; }
.ed .side .btn.go { border: 0; color: #fff; background: linear-gradient(90deg, #5f4ba6 0%, #8a6fd6 100%); box-shadow: 0 10px 22px -12px rgba(91, 74, 148, .85); }
.ed .side .btn:not(.go):not(.bad) { background: #fff; border: 1px solid #e1e4eb; color: #1f2330; box-shadow: 0 1px 2px rgba(30, 34, 48, .05); }
.ed .side .links { gap: 10px; } .ed .side .links .btn.go { flex: 1 1 100%; }
.ed .side .linkbox { margin-top: 14px; background: #f2f4fb; border: 0; border-radius: 14px; padding: 6px 6px 6px 14px; color: #6b7080; }
.ed .side .linkbox .btn.sm { min-height: 34px; }
@media (pointer: coarse) { .ed .side select, .ed .side input[type="text"], .ed .side input.pn, .ed .side .cuegrp input { font-size: 16px; } }
@media (min-width: 760px) and (max-height: 640px) { .ed .side .note { display: block; } }

/* ---------- a board's colour (3 Dec 2026, Jonny: "let them choose the colour of their boards"): the COMMZ Snap board's colour
   behind the tiles, like the board itself; the Now, Next, Then frames in it; the 3D board (snap3d.js) ---------- */
.pl.bc .grid:not(.carousel) { background: var(--bc); padding: clamp(8px, 1.5vmin, 16px); border-radius: clamp(16px, 2.4vmin, 26px);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), inset 0 2px 0 rgba(255, 255, 255, .35), 0 8px 22px -14px rgba(0, 0, 0, .45); }
.pl.bc.bcw .grid:not(.carousel) { box-shadow: inset 0 0 0 1.5px rgba(56, 60, 76, .12), inset 0 -4px 0 rgba(0, 0, 0, .05), 0 8px 22px -14px rgba(0, 0, 0, .3); }
.pl.bc.set .tabs + .gw .grid { border-top: 0; padding-top: clamp(8px, 1.5vmin, 16px); }
.pl.bc .cell.e { background: rgba(255, 255, 255, .28); border-radius: 12px; }
.pl.bc .carf .cf.c0 { background: var(--bc); } .pl.bc .carf .cf.c0 b { color: var(--bci, #111); }
.pl.bc .carf .cf.c1 { background: color-mix(in srgb, var(--bc) 52%, #fff); } .pl.bc .carf .cf.c2 { background: color-mix(in srgb, var(--bc) 26%, #fff); }
.pl.bc.bcw .carf .cf { box-shadow: inset 0 0 0 1.5px rgba(56, 60, 76, .14); } .pl.bc.bcw .carf .cf.c1 { background: #f6f6f8; } .pl.bc.bcw .carf .cf.c2 { background: #fbfbfc; }
/* on this device: the colour swatches */
.pcols { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pcols .pcol { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #d9dce3; padding: 0; font: 700 9.5px/1.05 var(--font); color: var(--mut); background: #fff; cursor: pointer; }
.pcols .pcol.std { background: conic-gradient(#2fd0dc 0 33%, #c9f4f7 0 66%, #e3f9fa 0); }
.pcols .pcol[data-pcol="-"] { width: auto; padding: 0 12px; border-radius: 99px; font-size: 12.5px; }
.pcols .pcol[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--pur); }
/* the builder's board in its colour */
.board.bc { background: var(--bc); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), 0 8px 22px -14px rgba(0, 0, 0, .45); }
.board.bc.bcw { box-shadow: inset 0 0 0 1.5px rgba(56, 60, 76, .14), 0 8px 22px -14px rgba(0, 0, 0, .3); }
.board.bc .slot:not(.full) { background: rgba(255, 255, 255, .55); }
/* the Now, Next, Then carousel (3 Dec 2026, Jonny: "animate the tiles being removed as they're complete and then moving along
   and the next tile coming in"): the done tile lifts away first, then the row moves along a frame, the next coming in from the
   right */
.carw .grid.carousel { transition: transform .8s cubic-bezier(.45, 0, .2, 1) .34s; }
.carw .grid.carousel .cell .tile { transition: opacity .4s ease-in, transform .48s cubic-bezier(.5, -0.25, .75, .2); }
.carw .grid.carousel .cell.gone .tile { opacity: 0; transform: translate(-18%, -34%) rotate(-9deg) scale(.82); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .carw .grid.carousel { transition: none; } .carw .grid.carousel .cell .tile { transition: opacity .2s; } .carw .grid.carousel .cell.gone .tile { transform: none; } }
/* a black board: its Now, Next, Then words in white */
.pl.bc .carf .cf.c1 b, .pl.bc .carf .cf.c2 b { color: #111; }
/* ordering the real board and its tiles */
.ed .side .ordb { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #f2f4fb; color: #1f2330; text-decoration: none; transition: background .15s; }
.ed .side .ordb:hover { background: #ebeef8; }
.ed .side .ordb > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ed .side .ordb b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ed .side .ordb small { font-size: 12.5px; color: #6b7080; line-height: 1.35; } .ed .side .ordb em { font-style: normal; font-size: 15px; font-weight: 600; color: #1f2330; }
.ed .side .ordsw { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sw, #fff); box-shadow: inset 0 0 0 1px rgba(30, 34, 48, .14), 0 2px 6px -2px rgba(30, 34, 48, .3); }
.ed .side .ordsw.std { background: repeating-linear-gradient(135deg, #fff 0 5px, #eceef3 5px 10px); }
.ed .side .ordt { margin-top: 12px; border: 1px solid #eceef2; border-radius: 16px; overflow: hidden; }
.ed .side .ordh { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fafbfd; font-size: 13px; color: #2b2f3a; }
.ed .side .ordh span { font-size: 12px; font-weight: 600; color: #5b4a94; background: #efeaf9; border-radius: 99px; padding: 2px 9px; }
.ed .side .ordt a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-top: 1px solid #f0f1f5; color: #1f2330; text-decoration: none; font-size: 14px; font-weight: 600; }
.ed .side .ordt a:hover { background: #f7f8fc; } .ed .side .ordt a small { font-size: 12px; font-weight: 500; color: #6b7080; text-align: right; } .ed .side .ordt a i { font-style: normal; color: #6b7080; font-weight: 500; }
.ed .side .ordm b { color: #2b2f3a; font-weight: 600; }
.ed .side .ordgrp .links { margin-top: 14px; }

/* ---------- the board page's header (3 Dec 2026, Jonny: "a premium branding pass...use the stimz header. and add the tile count
   into the middle of the header...with no background pill"): the Stimz bar edge to edge, the logo and the board's name on the
   left, a routine's progress in the middle in plain white, the controls on the right as quiet white ghosts ---------- */
.pl > .plh { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; min-height: 60px;
  margin: calc(-6px - env(safe-area-inset-top)) calc(-8px - env(safe-area-inset-right)) 10px calc(-8px - env(safe-area-inset-left));
  padding: calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
  background: linear-gradient(10deg, #3eb1bc 0%, #13c1d7 10%, #16d5ca 50%, #13c1d7 90%, #3eb1bc 100%); color: #fff; box-shadow: 0 6px 18px -14px rgba(19, 120, 130, .9); }
.plh .pll { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plh .plogo { height: 22px; width: auto; flex: none; display: block; }
.plh .pll b { flex: 1 1 auto; min-width: 0; padding-left: 12px; border-left: 1.5px solid rgba(255, 255, 255, .45); font-family: var(--font); font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plh .pll b .pgn { color: rgba(255, 255, 255, .8); font-weight: 600; }
.plh .plr { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.plh .plc { display: block; }
/* the progress: no pill, white on the bar */
.plh .stbar { min-height: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; gap: 12px; justify-content: center; }
.plh .stbar[hidden] { display: flex; visibility: hidden; }
.plh .stbar b { flex: none; font-family: var(--head); font-size: clamp(16px, 2.4vh, 21px); font-weight: 700; color: #fff; letter-spacing: .005em; white-space: nowrap; text-shadow: 0 1px 2px rgba(19, 100, 110, .25); }
.plh .stdots { gap: 6px; } .plh .stdots i { width: 11px; height: 11px; background: rgba(255, 255, 255, .38); }
.plh .stdots i.on { background: #fff; } .plh .stdots i.now { background: transparent; box-shadow: inset 0 0 0 2.5px #fff; transform: scale(1.2); }
/* the controls: white ghosts */
.plh .dot { color: rgba(255, 255, 255, .92); font-weight: 600; } .plh .dot::before { background: #fff !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.plh .dot.off::before { background: #ffd84d !important; }
.plh button, .plh .stacts button { height: 36px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 99px; padding: 0 14px; font-weight: 700; font-size: 13.5px; box-shadow: none; transition: background .15s, border-color .15s; }
.plh button:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.plh button:disabled { opacity: .45; cursor: default; }
.plh .gear { width: 38px; height: 36px; padding: 0; }
.plh #inst { background: #fff; color: #0f8f98; border-color: #fff; }
.plh .stacts { display: flex; gap: 6px; } .plh .stacts[hidden] { display: none; }
.plh .stacts button { display: inline-flex; align-items: center; gap: 6px; padding: 0 13px 0 10px; }
.plh .stacts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plh .pin[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0f8f98; }
.plh #shstop { border-color: #fff; color: #fff; }
/* smaller screens: the name and labels give way; on a phone the progress gets a row of its own */
@media (max-width: 900px) { .plh .stacts button span { display: none; } .plh .stacts button { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 640px) {
  .pl > .plh { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l r" "c c"; row-gap: 6px; min-height: 0; padding-bottom: 10px; }
  .plh .pll { grid-area: l; } .plh .plr { grid-area: r; } .plh .stbar, .plh .plc { grid-area: c; } .plh .plc { display: none; } .plh .stbar[hidden] { display: none; }
  .plh .plogo { height: 18px; } .plh .pll b { font-size: 14.5px; padding-left: 10px; }
  .plh #inst { font-size: 0; width: 38px; padding: 0; } .plh #inst::before { content: '+'; font-size: 20px; line-height: 1; }
}
/* the progress sits in the very middle of the bar, whatever's either side */
@media (min-width: 641px) {
  .pl > .plh { position: relative; display: flex; justify-content: space-between; }
  .plh .pll, .plh .plr { flex: 1 1 0; } .plh .pll { max-width: calc(50% - 150px); }
  .plh .stbar { position: absolute; left: 50%; top: calc(50% + env(safe-area-inset-top) / 2); transform: translate(-50%, -50%); }
  .plh .plr { flex: 0 1 auto; }
}
.plh button { white-space: nowrap; }
@media (max-width: 1680px) { .plh .dot.ok:not(.say) { font-size: 0; gap: 0; } .plh .stacts button span { display: none; } .plh .stacts button { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 1100px) { .plh #inst { font-size: 0; width: 38px; padding: 0; } .plh #inst::before { content: '+'; font-size: 20px; line-height: 1; } }

/* ---------- each block of the builder: made wide, or folded away to a strip (3 Dec 2026, Jonny: "have quick expand and
   collapse buttons on each panel...make them open to 60% width when expanded") ---------- */
.ed .edb, .ed .tray { position: relative; }
.pctl { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pbtn { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border: 1px solid #e1e4eb; border-radius: 50%; background: #fff; color: #5f6273; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pbtn:hover { background: #f2f0f8; color: #5b4a94; border-color: #d6cfe9; }
.pbtn[aria-pressed="true"] { background: #efeaf9; color: #5b4a94; border-color: #d6cfe9; }
.pbtn svg, .pstrip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edh .pctl { margin-left: 8px; } .cnav .pctl { margin-left: 8px; padding-left: 10px; border-left: 1px solid #e6e3ec; }
.ed .side .sideh { position: sticky; top: -18px; z-index: 4; display: flex; align-items: center; justify-content: space-between; margin: -18px -16px -4px; padding: 12px 16px 8px;
  background: linear-gradient(180deg, #f1f2f6 70%, rgba(241, 242, 246, 0)); }
.ed .side .sideh b { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7080; }
.pstrip { display: none; }
.ed .pmin { overflow: hidden !important; padding: 0 !important; }
.ed .pmin > *:not(.pstrip) { display: none !important; }
.ed .pmin > .pstrip { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; padding: 16px 0; border: 0; background: #f3f4f8; color: #5b4a94; cursor: pointer; font: 700 13px var(--font); }
.ed .pmin > .pstrip:hover { background: #ecebf5; }
.ed .pmin > .pstrip span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; color: #2b2f3a; }
.ed.tall .tray.pmin > .pstrip, .ed.tall .edb.pmin.side-row > .pstrip { flex-direction: row; justify-content: center; padding: 0 16px; }
.ed.tall .tray.pmin > .pstrip span { writing-mode: horizontal-tb; transform: none; }
.ed .pbig { z-index: 2; }
.ed.stack .pctl, .ed.stack .pstrip { display: none !important; }
/* skin tones (3 Dec 2026): the dots on a picture in the tiles that comes in four, each putting that one on the board */
.pt { position: relative; }
.pt .ptones { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: flex; gap: 3px; padding: 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(30, 34, 48, .25); z-index: 2; }
.pt .ptones i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); cursor: pointer; transition: transform .12s; }
.pt .ptones i:hover { transform: scale(1.25); }
.ed .side .bcols.tones { grid-template-columns: repeat(4, 44px); justify-content: start; gap: 12px; }
.ed .side .bcols.tones .bcol { width: 40px; height: 40px; }
.ed .side .bcols.tones .bcol[aria-pressed="true"]::after { border-color: #fff; }
.ed .side .bcols.tones .bcol[data-btone="0"][aria-pressed="true"]::after { border-color: #1f2330; }
/* a parent's own voice */
.ed .side .myvrec { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; width: 100%; justify-content: center; }
.ed .side .myvrec svg, .myv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed .side .myv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #f2f4fb; }
.ed .side .myv > span { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; } .ed .side .myv b { font-size: 14px; font-weight: 600; color: #1f2330; } .ed .side .myv small { font-size: 12.5px; color: #6b7080; }
.ed .side .myv .btn { min-height: 36px; }
.sheet .vscript { margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: #f6f4fa; border-left: 4px solid #7d67af; font-size: 16px; line-height: 1.6; color: #1f2330; max-height: 34vh; overflow: auto; }
.sheet .vcons { align-items: flex-start; font-weight: 600; font-size: 14px; line-height: 1.45; }
.sheet .vrec { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 6px; }
.sheet .vtime { font-variant-numeric: tabular-nums; font-weight: 700; color: #5b4a94; }
.sheet .vrec audio { width: 100%; }

/* ========== 3 Dec 2026 (Jonny: "this needs massive improvment...better buttons...also change the fonts to google sans flex on
   everything ecept the tiles") ==========
   Google Sans Flex for everything (words and headings); a tile's word stays in Manrope. The builder's header: a real back
   button, the board's name as a title that's edited in place (a pencil when you point at it), Saved as a small pill, and the
   panel buttons together in one group. The pages under it: plain chips, a house on the first, a tab mark on the board's tabs
   (not a line over them), arrows and a fade at an end with more. A folded panel: a white strip with its own mark, its name
   and an open button */
:root { --font: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --tilefont: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bline: #e3e1ea; --bhov: #f5f3fa; }
body { font-optical-sizing: auto; }
.tile, .tile .w { font-family: var(--tilefont); }
/* the header */
.edh { gap: 10px; margin-bottom: 10px; min-height: 48px; }
.ebk { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px 0 10px; border: 1px solid var(--bline); border-radius: 999px; background: #fff; color: var(--ink);
  font: 600 14.5px/1 var(--font); cursor: pointer; box-shadow: 0 1px 2px rgba(30, 34, 48, .05); transition: background .15s, border-color .15s, color .15s; }
.ebk:hover { background: var(--bhov); border-color: #d6cfe9; color: var(--pur2); }
.ebk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nmw { flex: 1 1 200px; min-width: 0; position: relative; display: flex; align-items: center; margin: 0; cursor: text; }
.edh .nmw input.nm { flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding: 0 40px 0 12px; border: 1.5px solid transparent; border-radius: 12px; background: transparent;
  font: 700 23px/1.2 var(--head); letter-spacing: -.015em; color: #1f2330; text-overflow: ellipsis; transition: background .15s, border-color .15s, box-shadow .15s; }
.edh .nmw input.nm:hover { background: #f3f2f7; border-color: transparent; }
.edh .nmw input.nm:focus { background: #fff; border-color: #c9bfe6; box-shadow: 0 0 0 4px rgba(125, 103, 175, .14); outline: 0; }
.nmw svg { position: absolute; right: 12px; width: 17px; height: 17px; fill: none; stroke: #8d8fa0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; opacity: .45; transition: opacity .15s, stroke .15s; }
.nmw:hover svg { opacity: 1; } .nmw:focus-within svg { opacity: 0; }
.edh .saved { flex: none; min-width: 0; height: 30px; padding: 0 12px 0 9px; gap: 6px; border-radius: 999px; background: #e6f4f1; color: #0f6b65; font: 600 13px/1 var(--font); white-space: nowrap; }
.edh .saved::before { width: 15px; height: 15px; border-radius: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.edh .saved.busy { background: #f0f0f4; color: #6c6f80; }
.edh .saved.busy::before { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; -webkit-mask: none; mask: none; animation: svpulse 1s ease-in-out infinite; }
@keyframes svpulse { 50% { opacity: .3; } }
/* the panel buttons: one group, the one that's on lit */
.pctl { gap: 2px; padding: 3px; border-radius: 999px; background: #f1f0f5; border: 1px solid #e8e6ef; }
.pbtn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #5f6273; transition: background .15s, color .15s, box-shadow .15s; }
.pbtn:hover, .pbtn[aria-pressed="true"] { background: #fff; color: var(--pur2); border-color: transparent; box-shadow: 0 1px 2px rgba(30, 34, 48, .14), 0 0 0 1px rgba(30, 34, 48, .03); }
.pbtn svg { width: 17px; height: 17px; stroke-width: 1.9; }
.edh .pctl { margin-left: 2px; } .cnav .pctl { margin-left: 8px; padding-left: 3px; border-left: 1px solid #e8e6ef; }
/* the pages */
.pgw { position: relative; display: flex; align-items: center; margin: 0 0 10px; min-width: 0; }
.pgs { flex: 1 1 auto; min-width: 0; gap: 6px; padding: 2px; scroll-behavior: smooth; }
.pgw.cl .pgs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.pgw.cr .pgs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); }
.pgw.cl.cr .pgs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.pgar { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; padding: 0; display: none; place-items: center; border: 1px solid var(--bline); border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(30, 34, 48, .25); cursor: pointer; transition: background .15s, color .15s; }
.pgar:hover { background: var(--bhov); color: var(--pur2); } .pgar.l { left: 0; } .pgar.r { right: 0; } .pgw.cl .pgar.l, .pgw.cr .pgar.r { display: grid; }
.pgar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pgs .chip, .pgs .chip.tabs .tab { box-shadow: none; } .tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--bline); border-radius: 999px; background: #fff;
  color: #3b3f4f; font: 600 14px/1 var(--font); letter-spacing: 0; box-shadow: none; }
.pgs .chip:hover { background: var(--bhov); border-color: #d6cfe9; }
.pgs .chip svg { flex: none; width: 15px; height: 15px; margin-left: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pgs .chip.tab svg { color: var(--pur); }
.pgs .chip[aria-pressed="true"], .pgs .chip.tab[aria-pressed="true"] { background: var(--pur); border-color: var(--pur); color: #fff; box-shadow: 0 4px 10px -6px rgba(101, 81, 154, .8); }
.pgs .chip[aria-pressed="true"] svg { color: #fff; }
.pgs .chip.add { border-style: dashed; border-color: #cfc6e6; color: var(--pur2); background: transparent; } .pgs .chip.add:hover { background: #f3effb; }
/* the tiles' header: the same chips and buttons */
.trayh .chips .chip { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--bline); font: 600 14px/1 var(--font); color: #3b3f4f; }
.trayh .chips .chip:hover { background: var(--bhov); border-color: #d6cfe9; }
.trayh .chips .chip[aria-pressed="true"] { background: var(--pur); border-color: var(--pur); color: #fff; }
.trayh .nb { width: 36px; height: 36px; background: #fff; border: 1px solid var(--bline); box-shadow: 0 1px 2px rgba(30, 34, 48, .05); }
.trayh .nb:hover { background: var(--bhov); border-color: #d6cfe9; color: var(--pur2); }
/* a folded panel */
.ed .pmin > .pstrip { gap: 12px; padding: 12px 0 14px; background: #fff; color: var(--ink); font: 600 13px/1 var(--font); box-shadow: inset 1px 0 0 #eceaf2, inset -1px 0 0 #eceaf2; transition: background .15s; }
.ed .pmin > .pstrip:hover { background: #faf9fd; }
.ed .pmin > .pstrip i { flex: none; display: grid; place-items: center; font-style: normal; }
.ed .pmin > .pstrip .psi { width: 34px; height: 34px; border-radius: 11px; background: #f1eef9; color: var(--pur2); }
.ed .pmin > .pstrip .pso { margin-top: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bline); color: #5f6273; transition: background .15s, color .15s, border-color .15s; }
.ed .pmin > .pstrip:hover .pso { background: var(--pur); border-color: var(--pur); color: #fff; }
.ed .pmin > .pstrip svg { width: 17px; height: 17px; stroke-width: 1.9; }
.ed .pmin > .pstrip span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; font-weight: 600; font-size: 14px; color: #2b2f3a; }
.ed.tall .tray.pmin > .pstrip, .ed.tall .edb.pmin.side-row > .pstrip { flex-direction: row; justify-content: flex-start; padding: 0 12px; }
.ed.tall .tray.pmin > .pstrip .pso, .ed.tall .edb.pmin.side-row > .pstrip .pso { margin: 0 0 0 auto; }
.ed.tall .edb.pmin.side-row > .pstrip span { writing-mode: horizontal-tb; transform: none; }
/* a step's word on its tile, and a card's: the tiles' words, so as they were */
.grid.steps .stlab, .grid.steps .stlab.on, .carf .cf b { font-family: Geomini, var(--tilefont); }
/* the header in a narrow board panel (or on a phone): the back button and Saved down to their marks, so the name keeps its room */
.edhw { container: edh / inline-size; }
@container edh (max-width: 620px) {
  .ebk { width: 40px; padding: 0; justify-content: center; } .ebk span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .edh .saved { width: 30px; padding: 0; gap: 0; justify-content: center; font-size: 0; } .edh .saved.busy::before { margin: 0; }
  .edh .nmw input.nm { font-size: 20px; padding-right: 12px; } .nmw svg { display: none; } .edh { gap: 8px; }
}
@container edh (max-width: 360px) { .edh .nmw input.nm { font-size: 18px; padding-left: 8px; } .edh .pctl { display: none; } }
/* the pencil just after the name, not at the far end (where the browser can size a box to its words) */
.edh .nmw input.nm { flex: 0 1 auto; width: auto; field-sizing: content; min-width: 6ch; max-width: 100%; padding-right: 38px; }
.nmw svg { position: static; flex: none; margin-left: -30px; }
@container edh (max-width: 620px) { .edh .nmw input.nm { flex: 1 1 auto; width: 100%; padding-right: 12px; } }
/* 3 Dec 2026 (Jonny: "get rid of the yellow announcement bar...get rid of the AAC pill after the logo"): the header on its own, the logo on its own */
.ann, .top .brand .aac { display: none; }
/* 3 Dec 2026 (Jonny: "we need to add labels to all tiles"): every tile in the tray shows its word (the Clicks tiles' pictures
   no longer have it written on), so the skin-tone dots sit in the picture's top corner, not over the word */
.pt .ptones { left: auto; right: 5px; top: 5px; bottom: auto; transform: none; gap: 2px; padding: 2px 3px; }
.pt .ptones i { width: 11px; height: 11px; }
/* a collection's name stays at the left as its tiles go by, and goes with them (not left over the next one's) */
.tset { overflow-x: clip; }

/* 3 Dec 2026 (Jonny: "show them as tile shapes"): a board card's preview, its tiles square, as they look on the board, as many as
   fit the space; and a routine on a Snap board shown as that board (the real one's sizes, in mm: 185.3 by 83.1, or 125.3 for
   Now and Next; frames 60 apart, 8.8 below the middle; COMMZ tiles 50 square, corners 2) */
.bcard { container-type: inline-size; }
.bcard .mini { --g: 4px; --p: 8px; display: grid; gap: var(--g); padding: var(--p); aspect-ratio: auto; height: calc(75cqw); justify-content: center; align-content: center;
  --c: min(calc((100cqw - 2 * var(--p) - (var(--cols) - 1) * var(--g)) / var(--cols)), calc((75cqw - 2 * var(--p) - (var(--rows) - 1) * var(--g)) / var(--rows)));
  grid-template-columns: repeat(var(--cols), var(--c)); grid-auto-rows: var(--c); }
.bcard .mini > span { width: var(--c); height: var(--c); min-width: 0; container-type: size; } .bcard .mini > span.e { background: rgba(255, 255, 255, .6); border-radius: 12%; }
.bcard .mini .tile { border-width: 1.5px; border-radius: 12%; } .bcard .mini .tile .pic { margin: 6% 7% 0; }
.bcard .mini .tile .w { font-size: clamp(5px, 15cqw, 13px); padding: 1% 3% 5%; white-space: nowrap; } .bcard .mini .tile.txt .w { font-size: clamp(6px, calc(120cqw / var(--n, 6)), 16px); white-space: normal; overflow-wrap: anywhere; line-height: 1.05; }
.bcard .mini.snapv { display: flex; align-items: center; justify-content: center; padding: 0; }
.snapv .sb { --w: 185.3; position: relative; width: 92%; aspect-ratio: 185.3 / 83.1; container-type: inline-size; background: var(--bc); border-radius: 3.2cqw;
  box-shadow: 0 1.4cqw 0 color-mix(in srgb, var(--bc) 78%, #000), 0 3cqw 5cqw -2cqw rgba(20, 20, 30, .28); }
.snapv .sb[data-n="2"] { --w: 125.3; width: 76%; aspect-ratio: 125.3 / 83.1; border-radius: 4.7cqw; }
.snapv .sb.dark { background: #1e1e24; } .snapv .sb.white { box-shadow: 0 0 0 1px #d9dbe2, 0 1.4cqw 0 #d3d5dc, 0 3cqw 5cqw -2cqw rgba(20, 20, 30, .22); }
.snapv .sb > * { --mm: calc(100cqw / var(--w)); position: absolute; }
.snapv .sb b { top: calc(var(--mm) * 4); height: calc(var(--mm) * 15); width: calc(var(--mm) * 56); display: grid; place-items: center; font-family: var(--head); font-weight: 800;
  font-size: calc(var(--mm) * 11.5); line-height: 1; color: #17161c; letter-spacing: -.01em; }
.snapv .sb.dark b { color: #f4f4f6; }
.snapv .sb .fr { top: calc(var(--mm) * 22.4); width: calc(var(--mm) * 56); height: calc(var(--mm) * 56); box-sizing: border-box; border: calc(var(--mm) * 1.5) solid #17161c; border-radius: calc(var(--mm) * 3);
  display: grid; place-items: center; background: color-mix(in srgb, var(--bc) 88%, #000); }
.snapv .sb.dark .fr { border-color: #f4f4f6; background: #26262e; } .snapv .sb.white .fr { background: #f1f2f5; }
.snapv .sb .s0 { left: calc(var(--mm) * (var(--w) / 2 - 60.15 - 28)); } .snapv .sb .s1 { left: calc(var(--mm) * (var(--w) / 2 - 0.15 - 28)); } .snapv .sb .s2 { left: calc(var(--mm) * (var(--w) / 2 + 59.85 - 28)); }
.snapv .sb[data-n="2"] .s0 { left: calc(var(--mm) * (var(--w) / 2 - 30.15 - 28)); } .snapv .sb[data-n="2"] .s1 { left: calc(var(--mm) * (var(--w) / 2 + 29.85 - 28)); }
.snapv .fr > span { width: calc(var(--mm) * 50); height: calc(var(--mm) * 50); container-type: size; position: static; }
.snapv .fr .tile { --bg: #fff !important; border: 0; border-radius: 4%; box-shadow: 0 .6cqh 0 rgba(0, 0, 0, .12); }
.snapv .fr .tile .pic { margin: 7% 8% 0; } .snapv .fr .tile .w { font-size: clamp(6px, 15cqw, 14px); padding: 1% 3% 6%; white-space: nowrap; }
.snapv .fr .tile.txt .w { font-size: clamp(7px, calc(120cqw / var(--n, 6)), 18px); }

/* 3 Dec 2026 (Jonny: "let them add their own intros, words of encouragement..."): a routine's own words, one on each line */
.sayown { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line, #e4e6ec); }
.sayown h3 { margin: 0 0 4px; font-size: 16px; }
.sayk { display: grid; gap: 3px; margin-top: 12px; } .sayk b { font-size: 14.5px; } .sayk small { color: var(--mut); font-size: 13px; }
.sayk textarea { width: 100%; box-sizing: border-box; font: 500 15px/1.45 var(--font); padding: 9px 12px; border: 1.5px solid var(--line, #dfe1e8); border-radius: 12px; background: #fff; color: var(--ink); resize: vertical; }
.sayk textarea:focus { outline: none; border-color: #9b86d4; box-shadow: 0 0 0 3px rgba(125, 103, 175, .18); }
.sayk .sayn { justify-self: end; font-size: 12px; color: var(--mut); }
/* 3 Dec 2026 (Jonny: "why are some greyed out?"): a picture already on this board is marked Added, not just faded */
.pt.used .tile { opacity: .55; }
.pt.used::after { content: "\2713  Added"; position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: #5b3fa8; color: #fff; font: 700 11px/1.4 var(--font); pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* 3 Dec 2026 (Jonny: "make the dashboard full width...why is the core words set wider?...make it more user friendly with tabs
   across the top. New board ... My boards ... my images"): the pages use the whole width, every card the same size, and three
   tabs along the top */
.newp, .imgp { max-width: none; }
.newp .setpick.core, .ready .setpick.core { grid-column: auto; }
.dtabs { display: flex; gap: 6px; margin: 2px 0 22px; padding: 5px; background: #fff; border: 1.5px solid var(--line, #e4e6ec); border-radius: 16px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs .tab { box-shadow: none; } .dtabs .tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 15.5px/1.2 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.dtabs .tab > span { font-size: 15px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #f1eefa; color: #5b3fa8; }
.dtabs .tab small { font: 700 12px/1 var(--font); padding: 3px 7px; border-radius: 99px; background: #eef0f4; color: var(--mut); }
.dtabs .tab:not([aria-current=page]) { background: transparent; border: 0; color: var(--ink); } .dtabs .tab:not([aria-current=page]):hover { background: #f4f2fb; }
.dtabs .tab[aria-current=page] { background: #5b3fa8; color: #fff; } .dtabs .tab[aria-current=page] > span { background: rgba(255, 255, 255, .2); color: #fff; } .dtabs .tab[aria-current=page] small { background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 560px) { .dtabs { width: 100%; box-sizing: border-box; } .dtabs .tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 10px 6px; font-size: 14px; } .dtabs .tab small, .dtabs .tab > span { display: none; } }
.kindsg { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kindsg .setpick { margin: 0; }
.kindsg .setpick > b { font-size: 20px; }
.newp .back { margin-bottom: 8px; }
/* My images */
.imgacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.imgc { display: grid; gap: 8px; justify-items: center; padding: 12px; background: #fff; border: 1.5px solid var(--line, #e4e6ec); border-radius: 16px; }
.imgc .imgt { width: 100%; aspect-ratio: 1; container-type: size; } .imgc .imgt .tile .w { font-size: clamp(9px, 12cqw, 15px); }
.imgc > b { font-size: 14.5px; text-align: center; overflow-wrap: anywhere; }
.imgnone { padding: 40px 20px; text-align: center; color: var(--mut); background: #fff; border: 1.5px dashed var(--line, #dfe1e8); border-radius: 16px; }

/* ---------- 3 Dec 2026: a tile's own colours (the board's, or its own): its colour, its outline's, and white words on a dark one ---------- */
.tile.cb, .tile.fold.cb { background: var(--bg); }
.tile.dk, .tile.dk .w, .tile.fold.dk .w { color: #fff; }
.tile.cl { border-color: var(--ln) !important; } .tile.fold.cl .ftab { background: var(--ln); }
.carw.snap .grid.carousel .cell .tile.cl, .carw.snap .grid.carousel .cell .tile.cb { border-color: transparent !important; background: transparent; }
.snapv .fr .tile.cl { border-color: transparent !important; }
/* the board's tile colours and outline (settings), and the colour picker a tile opens (one tile's, or a drawing's colours) */
.bcols.tcols .bcol.std { background: linear-gradient(135deg, #fff 0 50%, #FFF3D6 50% 100%); }
.bcols.lcols .bcol { background: #fff; box-shadow: inset 0 0 0 4px var(--sw, rgba(34, 29, 56, .82)), 0 0 0 1px rgba(0, 0, 0, .08); }
.bcols.lcols .bcol.std { box-shadow: inset 0 0 0 4px rgba(34, 29, 56, .82), 0 0 0 1px rgba(0, 0, 0, .08); }
.slot .paint { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: conic-gradient(#FF6B6B, #FFD84D, #7ED957, #48C5DA, #5BA8FF, #B28CFF, #F28AC0, #FF6B6B); display: none; z-index: 2; box-shadow: 0 4px 10px rgba(34, 29, 56, .25); cursor: pointer; }
.slot.sel .paint { display: block; }
.pt .pcols { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: conic-gradient(#E53935, #FB8C00, #FDD835, #43A047, #1E88E5, #8E24AA, #F06292, #E53935); box-shadow: 0 1px 3px rgba(30, 34, 48, .3); z-index: 2; cursor: pointer; }
.cpop { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; padding: 14px 14px 12px; background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(30, 24, 60, .28), 0 0 0 1px rgba(30, 24, 60, .06); }
.cpop h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; } .cpop h3 small { font-weight: 600; color: var(--mut); }
.cpop .bcols { margin-bottom: 12px; } .cpop .note { margin: 0; font-size: 12.5px; }
.cpop .cpx { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1eff6; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1; cursor: pointer; }
.cpop .cgar { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.cpop .cgar button { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 14px; background: #f6f5f9 center / 80% no-repeat; cursor: pointer; }
.cpop .cgar button:hover, .cpop .cgar button:focus-visible { border-color: var(--pur); }
.cpop .cgar button i { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0, 0, 0, .15); }
.cpop .bcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 8px; justify-items: center; }
.cpop .bcol { position: relative; width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 3px solid #fff; background: var(--sw, #fff); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.cpop .bcol[aria-pressed="true"] { box-shadow: 0 0 0 2.5px #7d67af, 0 4px 10px -3px rgba(91, 74, 148, .5); }
.bcols.lcols .bcol[aria-pressed="true"] { box-shadow: inset 0 0 0 4px var(--sw, rgba(34, 29, 56, .82)), 0 0 0 2.5px #7d67af; }
.bcols.lcols .bcol.std[aria-pressed="true"] { box-shadow: inset 0 0 0 4px rgba(34, 29, 56, .82), 0 0 0 2.5px #7d67af; }
.bcol.std .sx, .cpop .bcol.std .sx { position: absolute; inset: 0; display: grid; place-items: center; font: 800 10px/1 var(--font); color: #5b5870; }
/* (3 Dec 2026) a tile's picture in another colour: its ten, as small pictures */
.cpop .cgar.pcg { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; margin-bottom: 12px; }
.cpop .cgar button[aria-pressed="true"] { border-color: var(--pur); box-shadow: 0 0 0 2px rgba(139, 75, 211, .25); }
.cpop .cgar button i.std { background: linear-gradient(135deg, #fff 0 50%, #d9d6e2 50% 100%); }
/* (3 Dec 2026) the board in a narrow block: a routine in rows that suit it (and a line saying so); a board too small to see scrolls */
.fitnote { flex: none; margin: 6px 12px 10px; font-size: 12.5px; line-height: 1.35; color: var(--mut); text-align: center; }
.boardwrap.scrolls { overflow: auto; align-items: safe center; justify-items: start; } .boardwrap.scrolls .board { flex: none; max-width: none; }
.board.steps .slot.full::before { left: clamp(2px, 4cqmin, 4px); top: clamp(2px, 4cqmin, 4px); min-width: clamp(14px, 22cqmin, 22px); height: clamp(14px, 22cqmin, 22px); padding: 0 clamp(2px, 4cqmin, 5px); font-size: clamp(9px, 12cqmin, 12px); }
.dtabs .tab > span svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* (3 Dec 2026, Jonny: "On mobile the beige tabs also need redesigning") a set's pages on a phone: a row of pills to swipe along,
   the one you're on filled in, as the builder's are, in place of the beige folder tabs */
@media (max-width: 700px) {
  .pl .tabs { gap: 6px; align-items: center; margin: 0 0 8px; padding: 2px 2px 6px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .pl .tabs button { flex: none; min-width: 0; height: 36px; padding: 0 15px; border: 1.5px solid var(--line, #e2e4ea); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; box-shadow: none; scroll-snap-align: start; }
  .pl .tabs button[aria-selected="true"] { background: #5b3fa8; border-color: #5b3fa8; color: #fff; box-shadow: 0 4px 10px -6px rgba(91, 63, 168, .8); }
  .pl.set .tabs + .gw .grid, .pl.bc.set .tabs + .gw .grid { border-top: 0; padding-top: 0; }
}

/* ---------- 4 Dec 2026 (Jonny: "The tabs across the top need a premium pass and they all need to match across the whole app"):
   one kind of tabs everywhere: New board / My boards / My images, the builder's pages and the tiles' collections, and a set's
   pages on the board itself. A soft track; each tab a rounded pill in it; the one you're on filled in purple. ---------- */
:root { --tk-bg: #efedf6; --tk-ink: #4a4660; --tk-on1: #6d52d4; --tk-on2: #5235a6; --tk-h: 40px; }
.dtabs, .pgs, .trayh .chips, .pl .tabs { display: flex; align-items: center; gap: 4px; padding: 4px; margin: 0; background: var(--tk-bg); border: 0; border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(34, 29, 56, .07); overflow-x: auto; scrollbar-width: none; }
.dtabs::-webkit-scrollbar, .pgs::-webkit-scrollbar, .trayh .chips::-webkit-scrollbar, .pl .tabs::-webkit-scrollbar { display: none; }
.dtabs .tab, .pgs .chip, .pgs .chip.tab, .trayh .chips .chip, .pl .tabs button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--tk-h); min-width: 0;
  padding: 0 16px; border: 0 !important; border-radius: 12px; background: transparent; color: var(--tk-ink); font: 700 14.5px/1 var(--font); letter-spacing: 0; white-space: nowrap;
  box-shadow: none; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.dtabs .tab:hover, .pgs .chip:hover, .pgs .chip.tab:hover, .trayh .chips .chip:hover, .pl .tabs button:hover { background: rgba(255, 255, 255, .85); color: var(--ink); }
.dtabs .tab[aria-current=page], .dtabs .tab[aria-current=page]:hover, .pgs .chip[aria-pressed="true"], .pgs .chip.tab[aria-pressed="true"], .trayh .chips .chip[aria-pressed="true"], .pl .tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, var(--tk-on1), var(--tk-on2)); color: #fff; box-shadow: 0 6px 14px -7px rgba(76, 48, 170, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.dtabs .tab > span, .dtabs .tab[aria-current=page] > span { width: auto; height: auto; background: none; color: inherit; border-radius: 0; }
.dtabs .tab > span svg, .pgs .chip svg { width: 16px; height: 16px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.dtabs .tab small, .pgs .chip .tabm { font: 800 10.5px/1 var(--font); letter-spacing: .03em; padding: 4px 7px; border-radius: 99px; background: rgba(91, 63, 168, .12); color: #5235a6; }
.dtabs .tab[aria-current=page] small, .pgs .chip[aria-pressed="true"] .tabm { background: rgba(255, 255, 255, .22); color: #fff; }
.pgs .chip.add, .pgs .chip.add:hover { border: 1.5px dashed #c9bfe6 !important; background: transparent; color: var(--pur2); height: calc(var(--tk-h) - 4px); }
.pgs .chip.add:hover { background: rgba(255, 255, 255, .7); }
.pgs .chip.tab { border-top: 0 !important; }
.dtabs { width: max-content; max-width: 100%; margin: 2px 0 22px; }
.pl .tabs { margin: 0 0 10px; align-self: flex-start; max-width: 100%; -webkit-mask-image: none; mask-image: none; }
.pl.set .tabs + .gw .grid, .pl.bc.set .tabs + .gw .grid { border-top: 0; padding-top: 0; }
.pgw.cl .pgs, .pgw.cr .pgs, .pgw.cl.cr .pgs { border-radius: 16px; }
@media (max-width: 700px) {
  :root { --tk-h: 36px; }
  .dtabs { width: 100%; box-sizing: border-box; } .dtabs .tab { flex: 1 1 0; padding: 0 6px; font-size: 14px; } .dtabs .tab small, .dtabs .tab > span { display: none; }
  .pl .tabs { width: 100%; box-sizing: border-box; } .pl .tabs button { padding: 0 14px; font-size: 14px; }
}

/* ---------- 4 Dec 2026 (Jonny: "make it a more obvious indicator"): a folder tile's badge, a folder with an arrow going in ---------- */
.tile.fold { padding-top: 0; }
.tile.fold .fgo { position: absolute; top: 5%; right: 4%; z-index: 1; height: 30%; width: auto; min-height: 14px; max-height: 46px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 30%;
  background: linear-gradient(180deg, #6d52d4, #3a2380); color: #fff; box-shadow: 0 2px 6px rgba(58, 35, 128, .35), 0 0 0 2px #fff; }
.tile.fold .fgo svg { width: 66%; height: 66%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tile.fold.cl .fgo { background: var(--ln); }
.tile.fold.txt .w { padding-right: 14%; padding-left: 14%; }
.snapv .fr .tile.fold .fgo { box-shadow: none; }

/* ---------- 4 Dec 2026 (Jonny: "make logo bigger") ---------- */
.top .brand img { height: 38px; }
.plh .plogo { height: 30px; }
@media (max-width: 560px) { .top .brand img { height: 30px; } }
@media (max-width: 700px) { .plh .plogo { height: 24px; } }

/* ---------- 4 Dec 2026 (Jonny: "when the panel is collapsed can we make the label much bigger so it's obvious"): a closed panel is a
   wide purple-tinted strip with its name in big letters, and the open button at the end ---------- */
.ed .pmin > .pstrip { gap: 16px; padding: 14px 0 16px; background: linear-gradient(180deg, #f4f1fd, #ece7fa); color: #3a2380; box-shadow: inset 1px 0 0 #e2dcf3, inset -1px 0 0 #e2dcf3; }
.ed .pmin > .pstrip:hover { background: linear-gradient(180deg, #ede8fb, #e3dcf8); }
.ed .pmin > .pstrip .psi { width: 44px; height: 44px; border-radius: 14px; background: #fff; color: #5235a6; box-shadow: 0 2px 8px -3px rgba(58, 35, 128, .35); }
.ed .pmin > .pstrip .psi svg { width: 22px; height: 22px; }
.ed .pmin > .pstrip span { font: 800 21px/1 var(--head, var(--font)); letter-spacing: .01em; color: #3a2380; }
.ed .pmin > .pstrip .pso { width: 40px; height: 40px; background: #5235a6; border-color: #5235a6; color: #fff; }
.ed .pmin > .pstrip .pso svg { width: 19px; height: 19px; }
.ed.tall .tray.pmin > .pstrip span, .ed.tall .edb.pmin.side-row > .pstrip span { font-size: 19px; }
/* (4 Dec 2026) a tile's colours window: Picture and word, or Word only */
.cpop .cpseg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; padding: 4px; background: var(--tk-bg, #efedf6); border-radius: 14px; }
.cpop .cpseg button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--tk-ink, #4a4660); font: 700 12.5px/1.15 var(--font); cursor: pointer; }
.cpop .cpseg button:hover { background: rgba(255, 255, 255, .8); }
.cpop .cpseg button[aria-pressed="true"] { background: #fff; color: #3a2380; box-shadow: 0 0 0 2px #6d52d4, 0 4px 12px -6px rgba(76, 48, 170, .6); }
.cpop .cpseg .cpi, .cpop .cpseg .cpw { width: 38px; height: 38px; border-radius: 9px; background: #fff center / 84% no-repeat; box-shadow: inset 0 0 0 1.5px #ddd8ea; display: grid; place-items: center; font-style: normal; font: 800 15px/1 var(--font); color: #3a2380; }

/* ---------- 4 Dec 2026 (Jonny: "add box shadow"): the cards on the boards pages (My boards, New board, My images) sit up off the
   page: a soft shadow, a little more and a small lift when pointed at ---------- */
.bcard, .newp .setpick, .imgc { border-color: #e7e4ee; box-shadow: 0 1px 2px rgba(34, 29, 56, .05), 0 6px 16px -6px rgba(34, 29, 56, .14), 0 18px 36px -24px rgba(58, 35, 128, .22); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bcard:hover, .newp .setpick:hover { transform: translateY(-3px); border-color: #d9d2ec; box-shadow: 0 2px 4px rgba(34, 29, 56, .06), 0 14px 28px -10px rgba(34, 29, 56, .2), 0 28px 48px -26px rgba(58, 35, 128, .35); }
.newp .setpick:hover { border-color: var(--pur); }
@media (prefers-reduced-motion: reduce) { .bcard:hover, .newp .setpick:hover { transform: none; } }
/* (4 Dec 2026) a board card's buttons: Open and Edit side by side, then link / duplicate / delete as small square buttons, on one line at its foot */
.bcard .bacts { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-top: 4px; }
.bcard .bacts .bmain { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 14px; font: 700 15px/1 var(--font); white-space: nowrap; min-width: 0; }
.bcard .bacts .bmain svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bcard .bacts .btn.go.bmain svg { fill: currentColor; stroke-width: 1.5; }
.bcard .btools { display: flex; gap: 4px; padding: 3px; border-radius: 15px; background: var(--tk-bg, #efedf6); }
.bcard .bico { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #4a4660; cursor: pointer; transition: background .15s, color .15s; }
.bcard .bico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bcard .bico:hover { background: #fff; color: #3a2380; box-shadow: 0 1px 3px rgba(34, 29, 56, .12); }
.bcard .bico.bad { color: #b42318; } .bcard .bico.bad:hover { background: #fff1ef; color: #b42318; }
.bcard .bico:focus-visible { outline: 3px solid rgba(139, 75, 211, .55); outline-offset: 1px; }
@container (max-width: 360px) { .bcard .bacts { gap: 6px; } .bcard .bacts .bmain { padding: 0 8px; gap: 6px; } .bcard .bico { width: 36px; } }
@container (max-width: 320px) { .bcard .bacts .bmain svg { display: none; } }
@container (max-width: 240px) { .bcard .bacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bcard .btools { grid-column: 1 / -1; justify-self: end; } }
/* (4 Dec 2026, "same on here") New board's cards: the same shadow as My boards, what each is at a glance, and one wide button along each
   card's foot, all level */
.newp .setpick { display: flex; flex-direction: column; height: 100%; }
.newp .setpick > .facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 14px; margin: 0; }
.newp .setpick > .facts i { font: 700 12px/1 var(--font); font-style: normal; padding: 6px 10px; border-radius: 99px; background: var(--tk-bg, #efedf6); color: #4a4660; }
.newp .setpick > span.use, .newp .setpick .use { display: flex; align-items: center; justify-content: space-between; gap: 10px; align-self: stretch; margin: auto 14px 14px; height: 46px; padding: 0 16px; border-radius: 14px;
  background: linear-gradient(180deg, #6d52d4, #5235a6); color: #fff; font: 700 15px/1 var(--font); box-shadow: 0 8px 16px -10px rgba(76, 48, 170, .8), inset 0 1px 0 rgba(255, 255, 255, .2); transition: filter .15s; }
.newp .setpick .use svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.newp .setpick:hover .use { filter: brightness(1.06); } .newp .setpick:hover .use svg { transform: translateX(3px); }
.kindsg { align-items: stretch; } .kindsg .setpick > b { padding: 14px 14px 0; }
/* folder tiles' words in a small preview aren't squeezed by the room for their badge (only a board's own tiles leave it) */
.tile.fold.txt .w { padding-left: 4%; padding-right: 4%; } .grid .tile.fold.txt .w, .board .tile.fold.txt .w { padding-left: 14%; padding-right: 14%; }
.npv .tile.fold .fgo, .bcard .mini .tile.fold .fgo { height: 26%; min-height: 0; box-shadow: 0 0 0 1px #fff; }
.bcard .bacts .btn.go.bmain { background: linear-gradient(180deg, #6d52d4, #5235a6); border: 0; color: #fff; box-shadow: 0 8px 16px -10px rgba(76, 48, 170, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.bcard .bacts .btn.go.bmain:hover { filter: brightness(1.06); }
.bcard .bacts .btn.bmain:not(.go) { background: #fff; border: 1.5px solid #dcd6ea; color: #2e2a44; } .bcard .bacts .btn.bmain:not(.go):hover { border-color: #b8aade; background: #faf8ff; }

/* ---------- 4 Dec 2026 (Jonny: "change the beige to grey"): the warm beiges are cool greys now, everywhere (search, boards, the
   message bar, the 3D board's room) ---------- */
/* (4 Dec 2026, Jonny: "make the logo size the same as the bigger version. remove the padding and have the stage full width and height") */
.plh .plogo { height: 38px; } @media (max-width: 700px) { .plh .plogo { height: 30px; } }
.pl.v3d { padding: 0; gap: 0; }
.pl.v3d > .plh { margin: 0; padding: calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left)); }
.pl.v3d .gw { gap: 0; } .pl.v3d .carw.snap { border-radius: 0; margin: 0; }
/* (4 Dec 2026, Jonny: "when building the AAC i need to be able to click through into the next board"): a folder on the board in the
   builder opens its page from its badge (or a double tap) */
.slot .fopen { position: absolute; top: 5%; right: 4%; z-index: 3; height: 30%; min-height: 22px; max-height: 46px; aspect-ratio: 1; border-radius: 30%; cursor: pointer; }
.slot .fopen:hover, .slot .fopen:focus-visible { box-shadow: 0 0 0 3px rgba(109, 82, 212, .5); background: rgba(255, 255, 255, .15); outline: 0; }
/* (4 Dec 2026) the partner's phone: read their words out loud, on or off */
.pvs { align-self: center; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 20px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 99px; background: rgba(255, 255, 255, .08); color: #fff; font: 700 16px/1.2 var(--font); cursor: pointer; }
.pvs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pvs.on { background: #8fe3b4; border-color: #8fe3b4; color: #14121e; }

/* 4 Dec 2026: ordering, everything to the basket in one go: the board's colour (when none's chosen), the tiles' style */
.ed .side .ordlbl { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #4a4f5e; }
.ed .side .ordcols { margin-bottom: 2px; }
.ed .side .ordst { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--tk-bg, #efedf6); border-radius: 14px; }
.ed .side .ordst button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--tk-ink, #4a4660); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s; }
.ed .side .ordst button:hover { background: rgba(255, 255, 255, .8); }
.ed .side .ordst button[aria-pressed="true"] { background: #fff; color: #3a2380; box-shadow: 0 0 0 2px #6d52d4, 0 4px 12px -6px rgba(76, 48, 170, .6); }
.ed .side .ordst button:focus-visible { outline: 3px solid #6d52d4; outline-offset: 2px; }
.ed .side .ordt .ordno { font-style: normal; color: #b4452f; font-weight: 600; }
.ed .side .ordcart[disabled] { opacity: .5; cursor: not-allowed; }
.ed .side .ordpg { margin-bottom: 10px; }
.ed .side .ordgrp .ordcart { box-sizing: border-box; min-width: 0; max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }

/* ---------- 4 Dec 2026 (Jonny: "can we close up some space...lose the main header. And have a menu button in the bottom right
   that reveals the header and pushes the content down smoothly. Make the top sentence builder flush with the top of the
   screen, no border radius and full width edge to edge...light grey"): the board page ---------- */
/* the Stimz header, tucked away until the menu button brings it down; coming down, it pushes everything under it down */
.pl > .plh { overflow: hidden; max-height: 180px; margin-bottom: 0; transition: max-height .36s cubic-bezier(.3, .7, .2, 1), padding .36s cubic-bezier(.3, .7, .2, 1), opacity .26s ease, visibility 0s; }
.pl:not(.hdr) > .plh { max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; visibility: hidden; box-shadow: none; pointer-events: none;
  transition: max-height .32s cubic-bezier(.3, .7, .2, 1), padding .32s cubic-bezier(.3, .7, .2, 1), opacity .2s ease, visibility 0s linear .32s; }
@media (prefers-reduced-motion: reduce) { .pl > .plh, .pl:not(.hdr) > .plh { transition: none; } }
.pmenu { position: fixed; right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(160deg, #16d5ca, #13c1d7 55%, #0fa3b5); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 3px #fff, 0 10px 22px -8px rgba(15, 120, 130, .75); transition: transform .15s ease, box-shadow .15s ease; }
.pmenu:hover { transform: translateY(-1px); } .pmenu:active { transform: scale(.94); }
.pmenu:focus-visible { outline: 3px solid #0f8f98; outline-offset: 3px; }
.pmenu svg { grid-area: 1 / 1; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: opacity .22s ease, transform .3s ease; }
.pmenu svg + svg { opacity: 0; transform: rotate(-90deg) scale(.7); }
.pl.hdr .pmenu svg:first-of-type { opacity: 0; transform: rotate(90deg) scale(.7); } .pl.hdr .pmenu svg + svg { opacity: 1; transform: none; }
/* room for it, so it never sits on a tile: under the side column; beside the board on a wide screen, under it on a narrow one */
@media (min-width: 761px) { .pl .pside { padding-bottom: 66px; box-sizing: border-box; } .pl.nside > .grid, .pl.nside > .gw, .pl.nside > .carw { margin-right: 62px; } }
@media (max-width: 760px) { .pl > .grid, .pl > .gw { margin-bottom: 60px; } }
.pl.v3d > .gw, .pl.v3d > .grid { margin: 0; }
.mcount { right: calc(78px + env(safe-area-inset-right)); bottom: calc(28px + env(safe-area-inset-bottom)); }

/* the message: flush with the top, edge to edge, square, light grey; bigger Speak, delete and Clear */
.pl > .bar { margin: -8px calc(-8px - env(safe-area-inset-right)) 0 calc(-8px - env(safe-area-inset-left)); border-radius: 0; background: #eceef2;
  padding: 8px calc(8px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left)); min-height: clamp(74px, 15vh, 122px); box-shadow: inset 0 -1px 0 #dfe2e8; }
.pl:not(.hdr) > .bar { padding-top: calc(8px + env(safe-area-inset-top)); }
.pl.v3d > .bar { margin: 0; }
.pl .bar button { display: grid; place-items: center; }
.pl .bar button.go svg { width: 46%; max-width: 50px; min-width: 26px; height: auto; fill: #fff; filter: drop-shadow(0 1px 1px rgba(40, 10, 80, .25)); }
.pl .bar #back svg { width: 36px; height: 36px; max-width: 70%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pl .bar .two button { font-size: 18px; font-weight: 800; }
.pl .bar .two #clear { font-size: 19px; letter-spacing: .01em; }

/* the tools: light Stimz teal, bigger icons, no words unless they're turned on (settings on this device); SUGGEST */
.pl .pnav button { background: #dbf4f7; color: #0d5a63; box-shadow: none; }
.pl .pnav button:hover { background: #cdeff3; }
.pl .pnav button svg { width: 34px; height: 34px; stroke-width: 2.1; }
.pl:not(.navlab) .pnav button > span { display: none; }
.pl:not(.navlab) .pnav button { min-width: clamp(56px, 7vw, 78px); }
.pl .pnav button[aria-pressed="true"] { background: #bfeaf0; box-shadow: inset 0 0 0 2.5px #0fa3b5; color: #0a4d55; }
.pl .pnav .pin[hidden] { display: none; }
.pl .pnav .pin[aria-pressed="true"] { background: #0f8f98; color: #fff; box-shadow: none; } .pl .pnav .pin[aria-pressed="true"] svg { fill: currentColor; }
.pl .sug { background: #e6f8fa; }
.pl .sug .sgl { color: #0f8f98; letter-spacing: .08em; }
.pl .sslot:disabled { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(19, 193, 215, .08) 6px 12px); box-shadow: inset 0 0 0 1.5px #c6ecf1; }
@media (max-width: 760px) { .pl:not(.navlab) .pnav button { justify-content: center; } .pl .pnav button svg { width: 30px; height: 30px; } }

/* bigger pictures and words on the tiles (Jonny: "make the images and text bigger on the tiles too") */
.pl .grid .tile .pic { margin: 4% 5% 0; }
.pl .grid .tile .w { font-size: clamp(11px, min(17cqw, calc(172cqw / var(--n, 8)), 21cqh), 46px); padding: 1% 3% 4%; }
.pl .grid .tile.txt .w { font-size: clamp(12px, min(calc(140cqw / var(--n, 6)), calc(70cqh / var(--l, 1))), 84px); }
.pl.set .grid .tile.txt .w { font-size: clamp(12px, min(calc(116cqw / var(--n, 6)), calc(68cqh / var(--l, 1))), 84px); }
/* tile size: Medium and Large scroll */
.pl .grid.tscroll { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sheet .tsz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 6px; }
.sheet .tsz .chip { justify-content: center; min-height: 42px; font-size: 15px; }

/* Jonny's own: Show's words, and the board's tabs */
.showt { font-weight: 500; letter-spacing: 0.5px; font-size: calc(190vmin / var(--n, 12)); }
.pl .tabs button { font: 500 16px / 1 var(--font); }
.pl .tabs button[aria-selected="true"] { font-weight: 700; }
@media (max-width: 700px) { .pl .tabs button { font-size: 14px; } }

/* ---------- 4 Dec 2026 (Jonny: "We cant have scrolling...I want the tiles to always fill the screen so the size would alter the
   number of columns and rows"): no scrolling. Bigger tiles mean fewer on a screen, and More goes on to the rest ---------- */
.pl .grid .cell.off { display: none; }
.pl .grid.scrin { animation: scrin .28s cubic-bezier(.3, .7, .2, 1); }
@keyframes scrin { from { opacity: .35; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pl .grid.scrin { animation: none; } }
.pmore { position: fixed; z-index: 40; right: calc(12px + env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); width: 58px; min-height: 80px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2.5px solid #0fa3b5; border-radius: 18px; background: #fff; color: #0a4d55; cursor: pointer;
  font: 800 13px/1.1 var(--font); box-shadow: 0 10px 22px -12px rgba(15, 120, 130, .7); transition: transform .15s ease; }
.pmore[hidden] { display: none; }
.pmore:active { transform: scale(.95); } .pmore:focus-visible { outline: 3px solid #0f8f98; outline-offset: 3px; }
.pmore svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pmore small { font-size: 11px; font-weight: 700; color: #3d7a82; white-space: nowrap; }
@media (min-width: 761px) { .pl.hasmore .pside { padding-bottom: 162px; } }
@media (max-width: 760px) { .pmore { right: calc(76px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; min-height: 0; height: 52px; flex-direction: row; gap: 6px; padding: 0 14px; } }
.mcount { bottom: calc(28px + env(safe-area-inset-bottom)); }
.pl.hasmore .mcount { right: calc(150px + env(safe-area-inset-right)); }

/* ---------- 4 Dec 2026: My buttons (Jonny: "Let them create tiles using our images and their own wording or their own images") ---------- */
.sheet .obox { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 4px; }
.sheet .opvw { width: 128px; aspect-ratio: 1; container-type: size; margin-top: 8px; } .sheet .opvw .tile .w { font-size: clamp(10px, 13cqw, 17px); white-space: normal; line-height: 1.1; }
.sheet .ofs .f:first-child { margin-top: 0; }
.sheet .oseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--tk-bg, #efedf6); border-radius: 14px; margin-bottom: 10px; }
.sheet .oseg button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--tk-ink, #4a4660); font: 700 14px/1.1 var(--font); cursor: pointer; }
.sheet .oseg button[aria-pressed="true"] { background: #fff; color: #3a2380; box-shadow: 0 0 0 2px #6d52d4, 0 4px 12px -6px rgba(76, 48, 170, .6); }
.sheet #oq { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; box-sizing: border-box; }
.sheet .opgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 8px 2px 4px; }
.sheet .opic { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border: 1.5px solid #e2e4ea; border-radius: 14px; background: #fff; cursor: pointer; min-width: 0; }
.sheet .opic span { width: 56px; height: 56px; background: center / contain no-repeat; }
.sheet .opic small { font-size: 12px; font-weight: 700; color: #4a4f5e; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .opic:hover { border-color: #bdb0e6; } .sheet .opic[aria-pressed="true"] { border-color: #6d52d4; box-shadow: 0 0 0 2px #6d52d4; background: #f7f4ff; }
.imgc .osays { display: block; color: var(--mut); font-size: 12.5px; margin: -2px 0 6px; }
.imgc .imgbs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 520px) { .sheet .obox { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } .sheet .opvw { width: 96px; } }

/* ---------- 4 Dec 2026: Phrases (saved messages, said with one tap) and Fix (AI makes the message a sentence) ---------- */
.pl .bar button[hidden] { display: none; }
.pl .bar .fixw:not(:has(button:not([hidden]))) { display: none; }
.pl .bar .fixw button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13.5px; font-weight: 800; color: #3a2380; background: #f4f0ff; box-shadow: inset 0 0 0 1.5px #d9cff7; }
.pl .bar .fixw button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pl .bar .fixw button.busy { opacity: .55; pointer-events: none; }
.pl .bar .fixw button.busy svg { animation: fixspin 1s linear infinite; } @keyframes fixspin { to { transform: rotate(360deg); } }
.sheet .phrh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet .phrh h2 { margin: 0; }
.sheet .phrsave { display: block; width: 100%; margin: 12px 0 4px; text-align: left; white-space: normal; line-height: 1.3; }
.sheet .phrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.sheet .phr { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border: 2px solid #c6ecf1; border-radius: 16px; background: #eefafc; color: #0d4f57;
  font: 700 16px/1.25 var(--font); text-align: left; cursor: pointer; }
.sheet .phr i { flex: none; width: 40px; height: 40px; background: center / contain no-repeat; }
.sheet .phr:hover { border-color: #8fdbe5; } .sheet .phr:active { transform: scale(.98); }
.sheet .phr.q { background: #fff; border-color: #e2e4ea; color: var(--ink); }
.sheet .phr.ed { border-style: dashed; border-color: #e7a3a3; background: #fff6f6; color: #8a2b2b; }
.sheet .phr.ed b { position: absolute; top: 6px; right: 9px; font-size: 14px; color: #c0392b; }

/* ---------- 4 Dec 2026, Jonny's own (the message bar): light teal; the buttons a set width with a dark outline; Speak in the
   Stimz header's teal ---------- */
.pl > .bar { background: #dbf4f7; box-shadow: none; }
.pl .bar button { flex: initial; width: 96px; border: 0; border-radius: 12px; font-weight: inherit; font-size: inherit; background: #fff; box-shadow: inset 0 0 0 1.5px #4a445b; }
.pl .bar .two button { font-size: 18px; font-weight: 800; }
.pl .bar button.go { color: #fff; background: linear-gradient(10deg, #3eb1bc 0%, #13c1d7 10%, #16d5ca 50%, #13c1d7 90%, #3eb1bc 100%); box-shadow: 0 6px 16px -8px rgba(15, 120, 130, .8), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.pl .bar button.go:active { filter: brightness(.95); }
.pl .bar button.go svg { filter: drop-shadow(0 1px 1px rgba(10, 80, 90, .3)); }
.pl .bar .fixw button { box-shadow: inset 0 0 0 1.5px #4a445b; background: #fff; }

/* the tone buttons with the feelings words' own pictures (Jonny: "use our images for these emotions") */
.tone.tpic i { display: block; width: clamp(30px, 4.2vw, 50px); aspect-ratio: 1; background: center / contain no-repeat; flex: 0 1 auto; min-height: 0; }
.tone.tpic[aria-pressed="true"] i { filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)); }
@media (max-width: 760px) { .tone.tpic i { width: 30px; } }

/* words never cut off: a word's tail (the g of Things) stays inside its tile. The biggest words are sized to leave room for
   their tails, and a line is always tall enough for them (Jonny: "fix the g cut off on things...anywhere else it occurs") */
.pl .grid .tile.txt .w { font-size: clamp(12px, min(calc(136cqw / var(--n, 6)), calc(58cqh / var(--l, 1))), 84px); padding: 3% 5%; line-height: 1.16; }
.pl.set .grid .tile.txt .w { font-size: clamp(12px, min(calc(114cqw / var(--n, 6)), calc(56cqh / var(--l, 1))), 84px); }
.pl .grid .tile.fold.txt .w { font-size: clamp(12px, min(calc(110cqw / var(--n, 6)), calc(50cqh / var(--l, 1))), 76px); }
.tile .w { line-height: 1.16; }
.sslot .tile.txt .w { line-height: 1.12; }
/* the tile font (Manrope) needs 1.21 of its size for its tallest and lowest letters: every line is at least that tall */
.tile .w { line-height: 1.24 !important; }
.showt { line-height: 1.28; }
/* (and room above and below each line, as a small size rounds its letters' height up: 1.38 of the size at 16px) */
.tile .w { padding-top: .12em !important; padding-bottom: .14em !important; }
.pl .grid .tile.txt .w { font-size: clamp(10px, min(calc(136cqw / var(--n, 6)), calc(52cqh / var(--l, 1))), 84px); }
.pl.set .grid .tile.txt .w { font-size: clamp(10px, min(calc(114cqw / var(--n, 6)), calc(50cqh / var(--l, 1))), 84px); }
.pl .grid .tile.fold.txt .w { font-size: clamp(10px, min(calc(110cqw / var(--n, 6)), calc(46cqh / var(--l, 1))), 76px); }
.sslot .tile.txt .w { font-size: clamp(10px, min(calc(58cqh / var(--l, 1)), calc(132cqw / var(--n, 6))), 24px); }
/* Jonny's own (4 Dec 2026): the message bar */
.pl > .bar { background: #c0fffc; min-height: 122px; box-shadow: inset 0 -1px 0 #a4e4e1; }

/* 4 Dec 2026, later (Jonny: "on our aac grid the word should be below the image"): on the board itself the word is always
   under the picture again; the picture beside the word stays for the Suggestions row and the communication boards' slots */
/* ---------- 4 Dec 2026 (Jonny: "make the images bigger and put the words to the right instead of underneath when the tile is
   wider than height"): a picture tile that's wider than it's tall has its picture on the left, as tall as the tile allows,
   and its word beside it (on the board, in the Suggestions row and in the builder). Words wrap onto a second line rather
   than shrink to nothing ---------- */
@container (min-aspect-ratio: 6 / 5) {
  .sslot .tile:not(.txt):not(.tag), .board .slot .tile:not(.txt):not(.tag) { flex-direction: row; align-items: center; padding-top: 0; }
  .sslot .tile:not(.txt):not(.tag) .pic, .board .slot .tile:not(.txt):not(.tag) .pic { flex: none; height: 84cqh; width: 84cqh; max-width: 52cqw; margin: 0 0 0 6cqh; }
  .sslot .tile:not(.txt):not(.tag) .w, .board .slot .tile:not(.txt):not(.tag) .w {
    flex: 1 1 0; min-width: 0; text-align: left; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; text-overflow: clip; padding-left: 5cqh; padding-right: 5cqh;
    font-size: clamp(11px, min(28cqh, calc(66cqh / var(--l, 1)), calc((100cqw - 96cqh) * 1.55 / var(--m, 6))), 46px); }
  .sslot .tile:not(.txt):not(.tag) .w { font-size: clamp(11px, min(30cqh, calc(66cqh / var(--l, 1)), calc((100cqw - 96cqh) * 1.55 / var(--m, 6))), 26px); }
  .board .slot .tile:not(.txt):not(.tag) .w { font-size: clamp(9px, min(26cqh, calc(66cqh / var(--l, 1)), calc((100cqw - 96cqh) * 1.55 / var(--m, 6))), 20px); }
}
@container (min-aspect-ratio: 6 / 5) {
  /* a folder's badge sits top right: a word of more than one line keeps clear of it (one line sits below it) */
  .sslot .tile.fold.mw:not(.txt):not(.tag) .w, .board .slot .tile.fold.mw:not(.txt):not(.tag) .w { padding-right: 30cqh;
    font-size: clamp(11px, min(26cqh, calc(66cqh / var(--l, 1)), calc((100cqw - 126cqh) * 1.55 / var(--m, 6))), 40px); }
  .sslot .tile.fold:not(.txt):not(.tag) .fgo { height: 24%; }
}
/* a long name on a small phone tile (Where does it hurt?): a smaller word, never a cut one */
.pl .grid .tile.txt .w { font-size: clamp(8px, min(calc(136cqw / var(--n, 6)), calc(52cqh / var(--l, 1))), 84px); }
.pl.set .grid .tile.txt .w { font-size: clamp(8px, min(calc(114cqw / var(--n, 6)), calc(50cqh / var(--l, 1))), 84px); }
.pl .grid .tile.fold.txt .w { font-size: clamp(8px, min(calc(110cqw / var(--n, 6)), calc(46cqh / var(--l, 1))), 76px); }

/* ---------- 4 Dec 2026 (Jonny: "the text on the suggestion buttons should be centered in the rest of the tile taking account for
   the image. The want image should fill the height of the button like the others"; "what are the spare slots for?"; "icons need
   improving") ---------- */
@container (min-aspect-ratio: 6 / 5) {
  .sslot .tile:not(.txt):not(.tag) .w, .board .slot .tile:not(.txt):not(.tag) .w { text-align: center; }
  /* just the drawing, as tall as the tile (see tiles.js: where each picture's drawing is) */
  .sslot .tile:not(.txt):not(.tag) .pic.bb, .board .slot .tile:not(.txt):not(.tag) .pic.bb {
    width: min(calc(84cqh * var(--ar, 1)), 52cqw); height: min(84cqh, calc(52cqw / var(--ar, 1))); max-width: none;
    background-size: var(--bsx) var(--bsy); background-position: var(--bpx) var(--bpy); }
  /* the word beside a picture: sized for the room the picture leaves (a wide drawing takes more of it) */
  .board .slot .tile:not(.txt):not(.tag) .w {
    font-size: clamp(11px, min(28cqh, calc(66cqh / var(--l, 1)), calc((100cqw - min(calc(84cqh * var(--par, 1)), 52cqw) - 16cqh) * 1.5 / var(--m, 6))), 46px); }
  .sslot .tile:not(.txt):not(.tag) .w { font-size: clamp(11px, min(30cqh, calc(66cqh / var(--l, 1)), calc((100cqw - min(calc(84cqh * var(--par, 1)), 52cqw) - 16cqh) * 1.5 / var(--m, 6))), 26px); }
  .board .slot .tile:not(.txt):not(.tag) .w { font-size: clamp(9px, min(26cqh, calc(66cqh / var(--l, 1)), calc((100cqw - min(calc(84cqh * var(--par, 1)), 52cqw) - 16cqh) * 1.5 / var(--m, 6))), 20px); }
  .sslot .tile.fold.mw:not(.txt):not(.tag) .w, .board .slot .tile.fold.mw:not(.txt):not(.tag) .w {
    font-size: clamp(11px, min(26cqh, calc(66cqh / var(--l, 1)), calc((100cqw - min(calc(84cqh * var(--par, 1)), 52cqw) - 46cqh) * 1.5 / var(--m, 6))), 40px); }
}
/* the last word's other forms (want: wants, wanted, wanting): their places kept, so the tones never move, but nothing shows
   until there's a word with forms */
@media (min-width: 761px) { .pl .pside .fslot:disabled { visibility: hidden; } }
/* the tools' icons: two-tone, bigger, rounder */
.pl .pnav button svg, .pl .pnav #pshow svg, .pl .pnav #phear svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl .pnav svg .f { fill: #a6e8ef; stroke: none; }
.pl .pnav svg .s { fill: currentColor; stroke: none; }
.pl .pnav svg .k { stroke-width: 2.6; }
.pl .pnav button { color: #0b4e57; }
.pl .pnav button[aria-pressed="true"] svg .f { fill: #6fd6e2; }
.pl .pnav button:disabled svg .f { fill: #d6eef1; }
@media (max-width: 760px) { .pl .pnav button svg, .pl .pnav #pshow svg, .pl .pnav #phear svg { width: 32px; height: 32px; } }
/* the tools' words all on one line along the bottom (Jonny: "words under the icons should all align at the bottom") */
@media (min-width: 761px) { .pl.navlab .pnav button { justify-content: flex-end; padding-bottom: 10px; gap: 4px; } .pl.navlab .pnav button svg { flex: none; margin-top: auto; } }
.pl.navlab .pnav button > span { line-height: 1.1; min-height: 1.1em; }
/* a word made smaller to fit (tiles.js) isn't cut with "…" */
.tile .w { text-overflow: clip; }
/* My boards: back to the dashboard, in the header */
.plh .pdash { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 99px; background: rgba(255, 255, 255, .12);
  color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.plh .pdash:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.plh .pdash svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; }
@media (max-width: 900px) { .plh .pdash span { display: none; } .plh .pdash { width: 38px; padding: 0; justify-content: center; } }

/* ---------- 4 Dec 2026 (Jonny: "why open it so narrow mke the modal wider and higher? Make them bigger buttons with bigger
   text...ideally one line and ordered/coloured by common use"): Phrases, wide and tall; big buttons in coloured groups ---------- */
.sheet:has(.phrw) { width: min(1120px, 96vw); max-height: 94vh; padding: 24px 26px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .scrim:has(.phrw) { align-items: center; } .sheet:has(.phrw) { border-radius: 26px; } }
.sheet .phrs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: 6px 0 14px; }
.sheet .phr { min-height: 74px; padding: 12px 18px; border-width: 2.5px; border-radius: 18px; font: 800 clamp(18px, 1.9vw, 23px)/1.2 var(--font); white-space: normal; justify-content: center; text-align: center; }
.sheet .phr i { width: 46px; height: 46px; }
.sheet .ph.phg { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.sheet .ph.phg::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--gc); }
.sheet .g-need { --gc: #e5534b; } .sheet .g-social { --gc: #f2b134; } .sheet .g-think { --gc: #3fae6a; } .sheet .g-talk { --gc: #3d8fd6; } .sheet .g-more { --gc: #9a8fc4; }
.sheet .phr.q.g-need { background: #ffe9e7; border-color: #f4a8a2; color: #8f1f17; }
.sheet .phr.q.g-social { background: #fff4d8; border-color: #f1cf7b; color: #6e4b00; }
.sheet .phr.q.g-think { background: #e4f6ea; border-color: #9fd7b3; color: #1d5c35; }
.sheet .phr.q.g-talk { background: #e5f0fb; border-color: #a4c8ec; color: #1a4a78; }
.sheet .phr.q.g-more { background: #f1eefa; border-color: #cfc6ea; color: #3a2f66; }
.sheet .phr.q:hover { filter: brightness(.97); }
.sheet .phrsave { font-size: 17px; min-height: 56px; }
.sheet:has(.phrw) .sb .btn { min-height: 54px; font-size: 18px; }
@media (max-width: 760px) { .sheet .phr { min-height: 60px; font-size: 17px; } .sheet .phrs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); } }
/* the keyboard's sheet, as big (Jonny: "same here make this bigger") */
.sheet:has(.kbw) { width: min(900px, 96vw); padding: 26px 28px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .scrim:has(.kbw) { align-items: center; } .sheet:has(.kbw) { border-radius: 26px; } }
.sheet:has(.kbw) h2 { font-size: 28px; }
.sheet:has(.kbw) p { font-size: 17px; }
.sheet:has(.kbw) label.f { font-size: 16px; }
.sheet:has(.kbw) #kw { height: 76px; font-size: 30px; padding: 0 18px; border-width: 2.5px; border-radius: 18px; }
.sheet:has(.kbw) .sb .btn { min-height: 62px; font-size: 20px; }

/* ---------- 4 Dec 2026 (Jonny: "play button should be square and icon larger"; "make the delete button full height square like
   the play"; "when the sentence is playing can we fix the purple behind the tiles...a luminous animated glow behind") ---------- */
.pl { --bq: 106px; }
@media (max-width: 560px) { .pl { --bq: 74px; } }
.pl > .bar { align-items: stretch; background: #d9f7f6; min-height: 122px; box-shadow: inset 0 -1px 0 #d6f5f4; }
@media (max-width: 560px) { .pl > .bar { min-height: 90px; } }
.pl .bar .bsq { flex: none; width: var(--bq); min-height: var(--bq); align-self: stretch; border-radius: 16px; padding: 0; }
.pl .bar .bclr { flex: none; width: calc(var(--bq) * .82); align-self: stretch; border-radius: 16px; font-size: 19px; font-weight: 800; }
.pl .bar .fixw { flex: none; width: calc(var(--bq) * .82); align-self: stretch; display: flex; flex-direction: column; }
.pl .bar .fixw button { flex: 1 1 0; width: 100%; border-radius: 16px; }
.pl .bar button.go svg { width: 58%; max-width: 74px; }
.pl .bar #back svg { width: 50%; height: auto; max-width: 54px; }
@media (max-width: 560px) { .pl .bar .bclr { font-size: 15px; } }
/* while it's said: no purple; the word being said glows, softly pulsing */
.pl .bar .said { padding: 10px 12px; margin: -8px 0 -8px -8px; }
.pl .bar .said.saying .tile { box-shadow: none; }
.pl .bar .said > div.lit .tile { border-color: #0fb5c4; animation: saidglow .85s ease-in-out infinite alternate; }
@keyframes saidglow { from { box-shadow: 0 0 0 3px #fff, 0 0 10px 3px rgba(19, 213, 222, .55), 0 0 22px 8px rgba(19, 193, 215, .28); transform: scale(1); }
  to { box-shadow: 0 0 0 3px #fff, 0 0 18px 7px rgba(40, 240, 230, .95), 0 0 40px 16px rgba(19, 193, 215, .5); transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .pl .bar .said > div.lit .tile { animation: none; box-shadow: 0 0 0 3px #fff, 0 0 16px 6px rgba(40, 240, 230, .85); } }

/* ---------- 4 Dec 2026: Predict (a few words, then whole sentences to choose from) ---------- */
.pl .pnav #ppred[aria-pressed="true"] { background: #fff3c4; box-shadow: inset 0 0 0 2.5px #f2b134, 0 0 0 4px rgba(242, 177, 52, .25); color: #6e4b00; animation: predpulse 1.4s ease-in-out infinite; }
.pl .pnav #ppred[aria-pressed="true"] svg .f { fill: #ffd76a; }
@keyframes predpulse { 50% { box-shadow: inset 0 0 0 2.5px #f2b134, 0 0 0 8px rgba(242, 177, 52, .12); } }
.pl .bar.predon { box-shadow: inset 0 -3px 0 #f2b134; }
.sheet:has(.prdw) { width: min(980px, 96vw); padding: 26px 28px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .scrim:has(.prdw) { align-items: center; } .sheet:has(.prdw) { border-radius: 26px; } }
.sheet:has(.prdw) h2 { font-size: 26px; }
.sheet .prds { display: grid; gap: 10px; margin: 10px 0 14px; }
.sheet .prd { min-height: 72px; padding: 14px 22px; border: 2.5px solid #a4c8ec; border-radius: 18px; background: #eef5fd; color: #163f68; font: 800 clamp(19px, 2vw, 25px)/1.25 var(--font); text-align: left; cursor: pointer; }
.sheet .prd:first-child { border-color: #6fd6e2; background: #e6fafc; color: #0b4e57; }
.sheet .prd:hover { filter: brightness(.97); } .sheet .prd:active { transform: scale(.99); }
.sheet:has(.prdw) .loading { padding: 30px 0; text-align: center; color: var(--mut); font-weight: 700; }
.sheet .loading .spin { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid #d6f2f5; border-top-color: #13c1d7; animation: fixspin .8s linear infinite; }

/* ---------- 4 Dec 2026 (Jonny: ".pl .pnav button { background: #85fff4; box-shadow: none; } .pl .pnav svg .f { fill: #85fff4;
   stroke: none; }"): the tools in solid light teal, their icons one colour on it ---------- */
.pl .pnav button { background: #85fff4; box-shadow: none; }
.pl .pnav svg .f { fill: #85fff4; stroke: none; }
/* ---------- 4 Dec 2026 (Jonny: "Can we add a settings icon in the bottom right with the menu icon"): Settings beside the menu
   button; on a phone More moves along to make room ---------- */
.pset { position: fixed; right: calc(76px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center; border: 2.5px solid #0fa3b5; border-radius: 50%; background: #fff; color: #0a4d55; cursor: pointer;
  box-shadow: 0 0 0 3px #fff, 0 10px 22px -10px rgba(15, 120, 130, .7); transition: transform .15s ease; }
.pset:hover { transform: translateY(-1px); } .pset:active { transform: scale(.94); }
.pset:focus-visible { outline: 3px solid #0f8f98; outline-offset: 3px; }
.pset svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .pmore { right: calc(140px + env(safe-area-inset-right)); } }

/* 4 Dec 2026 (Jonny: "we need to get these image sizes right. They need to fill the height of the image area...the only restriction
   horizontally should be a 15px padding inside the edges of the tile"): on the grid (the board and the builder) a picture's room is
   the tile's width less 15 px each side (less on a small phone tile, so a wide drawing isn't squeezed), and all the height above its
   word; its drawing fills that height (tiles.js: picFit) */
.grid .tile:not(.txt):not(.tag) .pic:not(.ph) { margin-left: min(15px, 9cqw); margin-right: min(15px, 9cqw); }
/* 4 Dec 2026 (Jonny: "add a question button to the aac to turn a sentence into a question for the speech"): ? beside Speak; on,
   it's filled in and the message ends in a big ? */
.bar .bq { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1; color: #0a4d55; }
.pl .bar .bq, .pl .bar .bq.on { width: calc(var(--bq) * .7); font-size: 50px; font-weight: 800; line-height: 1; }
@media (max-width: 560px) { .pl .bar .bq, .pl .bar .bq.on { width: 46px; font-size: 32px; } .pl .bar .said:empty::before { font-size: 13px; line-height: 1.2; padding: 0 4px 0 10px; } }
.bar .bq.on { background: #0fa3b5; color: #fff; box-shadow: inset 0 0 0 2.5px #0a7f8e, 0 0 0 3px rgba(15, 163, 181, .25); }
.bar .said .qend { flex: none; align-self: center; padding: 0 10px 0 2px; font-size: clamp(34px, 6vh, 64px); font-weight: 800; line-height: 1; color: #0fa3b5; }
/* 4 Dec 2026 (Jonny: "Why is the text italic on the board?"): a Now/Next/Then preview's frames were <i>, so its words came out
   slanted; they're plain now, and a tile's word is never slanted wherever it is */
.tile, .tile .w { font-style: normal; }
/* ---------- 4 Dec 2026 (Jonny: "The settings panel needs a close icon top right and to not cover so much of the screen") ----------
   a close button that stays in its top right corner as it scrolls; on a phone it comes up just over half the screen, so the board
   shows above it; on a computer a little shorter too */
.shxw { position: sticky; top: 0; z-index: 3; height: 0; display: flex; justify-content: flex-end; }
.shx { width: 44px; height: 44px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #f1eff7; color: #2b2840; cursor: pointer; box-shadow: 0 2px 8px -4px rgba(34, 29, 56, .35); }
.shx:hover { background: #e6e2f1; } .shx:focus-visible { outline: 3px solid rgba(139, 75, 211, .55); outline-offset: 2px; }
.shx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet:has(.prfw) h2 { padding-right: 52px; }
.sheet:has(.prfw) { max-height: 78dvh; }
@media (max-width: 700px) { .sheet:has(.prfw) { max-height: 60dvh; } }

/* ---------- 4 Dec 2026 (Jonny: "On mobile need to move the delete and clear buttons to the row below. Move the show and phrases
   buttons to the bottom left in line with the menu icon") (play.js: phoneLay) ---------- */
.pl.phl .pnav #clear, .pl.phl .pnav #back { flex: 1 1 0; width: auto; min-width: 0; height: auto; background: #fff; color: #2b2840; border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1.5px #4a445b; font-weight: 800; font-size: 15px; padding: 0; display: grid; place-items: center; }
.pl.phl .pnav #back svg { width: 30px; height: 30px; max-width: 70%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pfl { position: fixed; z-index: 40; left: calc(12px + env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; }
.pfl:empty { display: none; }
.pfl button { position: relative; width: 52px; height: 52px; padding: 0; border: 2.5px solid #0fa3b5; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a4d55; box-shadow: 0 6px 16px -8px rgba(15, 120, 130, .7); cursor: pointer; }
.pfl button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pfl button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pfl button svg .f { fill: #a6e8ef; stroke: none; }
.pfl button[hidden] { display: none; }

/* ---------- 4 Dec 2026 (Jonny: "Make the core words, routines row full width edge to edge and add a fade on either side to show it
   scrolls"): a fade at each end that has more to scroll to (play.js: tabsFade); on a phone, the row right across the screen ---------- */
.pl .tabsw { position: relative; flex: none; align-self: flex-start; max-width: 100%; display: flex; margin: 0 0 10px; }
.pl .tabsw > .tabs { min-width: 0; margin: 0; }
.pl .tabsw::before, .pl .tabsw::after { content: ''; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .18s; }
.pl .tabsw::before { left: 0; border-radius: 16px 0 0 16px; background: linear-gradient(90deg, var(--tk-bg) 15%, rgba(239, 237, 246, 0)); }
.pl .tabsw::after { right: 0; border-radius: 0 16px 16px 0; background: linear-gradient(270deg, var(--tk-bg) 15%, rgba(239, 237, 246, 0)); }
.pl .tabsw.fl::before, .pl .tabsw.fr::after { opacity: 1; }
@media (max-width: 700px) {
  .pl .tabsw { align-self: stretch; max-width: none; margin: 0 calc(-8px - env(safe-area-inset-right)) 8px calc(-8px - env(safe-area-inset-left)); }
  .pl .tabsw > .tabs { width: 100%; border-radius: 0; padding: 5px calc(12px + env(safe-area-inset-right)) 5px calc(12px + env(safe-area-inset-left)); scroll-padding: 0 40px; }
  .pl .tabsw::before, .pl .tabsw::after { border-radius: 0; width: 52px; }
}
/* ---------- 4 Dec 2026 (Jonny: "learn to insert small words automatically and show those in the sentence builder", "click them in
   the sentence and it will offer alternatives in the suggestions"): the words added between the tiles, dashed so they read as added;
   one tapped is lit while the Suggestions row offers others ("Instead") ---------- */
.bar .said .ins { flex: none; align-self: center; height: auto; min-height: 0; width: auto; padding: 6px 10px; margin: 0 -1px; border: 2px dashed #46b9c6; border-radius: 12px; background: rgba(255, 255, 255, .75); box-shadow: none;
  color: #0a4d55; font-family: var(--tilefont, inherit); font-size: clamp(14px, 2.6vh, 22px); font-weight: 800; line-height: 1.15; white-space: nowrap; cursor: pointer; }
.bar .said .ins:hover { background: #fff; }
.bar .said .ins.on { border-style: solid; border-color: #0fa3b5; background: #0fa3b5; color: #fff; }
.bar .said .insx { flex: none; align-self: center; width: auto; min-width: 34px; height: 34px; min-height: 0; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(10, 77, 85, .08); box-shadow: none; color: #0a4d55; font-size: 18px; font-weight: 800; cursor: pointer; }
.bar .said .insx.off { font-size: 13px; }
.bar .said .insw { flex: none; align-self: center; display: inline-flex; gap: 4px; padding: 0 8px; }
.bar .said .insw i { width: 7px; height: 7px; border-radius: 50%; background: #46b9c6; animation: insw 1s ease-in-out infinite; } .bar .said .insw i:nth-child(2) { animation-delay: .15s; } .bar .said .insw i:nth-child(3) { animation-delay: .3s; }
@keyframes insw { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bar .said .insw i { animation: none; opacity: .6; } }
.pl .sug.alt { box-shadow: inset 0 0 0 2px #0fa3b5; } .pl .sug.alt .sgl { color: #0a7f8e; }
.pl .sug .sslot.none .tile .w { color: #8b8698; font-style: normal; }
@media (max-width: 560px) { .bar .said .ins { padding: 4px 7px; font-size: 13px; border-radius: 9px; } }
/* ---------- 4 Dec 2026 (Jonny: "on the dashboard have a Printables tab. Let them go through the whole library, and add tiles to
   their print...choose the size, default to 50mm like our tiles...an A4 pdf full colour high res"): the library on the left (a
   search, its collections, the tiles to tap), the print on the right (what's on it, how many of each, the size and the rest, Make
   the PDF), kept in view as the library scrolls; on a phone, one above the other ---------- */
.prp { max-width: 1400px; } .prp .sub { max-width: 680px; }
.prw { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-top: 16px; }
.prlib { min-width: 0; }
.prsearch input { width: min(100%, 440px); height: 48px; border: 1.5px solid #d5d8e0; border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 700; font-size: 16px; background: #fff; }
.prsearch input:focus { outline: 0; border-color: var(--pur); box-shadow: 0 0 0 3px rgba(125, 103, 175, .2); }
.prcats { margin: 12px 0 14px; flex-wrap: wrap; overflow: visible; } .prcats .chip small { font-weight: 700; opacity: .6; margin-left: 2px; }
.prgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.prt { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; container-type: size; border-radius: 14px; }
.prt .tile { pointer-events: none; } .prt .tile .w { font-size: clamp(10px, 13cqw, 15px); }
.prt:hover .tile { box-shadow: 0 0 0 3px rgba(125, 103, 175, .35); }
.prt.in .tile { box-shadow: 0 0 0 3px var(--pur); }
.prt .prn { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--pur); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.prnone { color: var(--mut); font-weight: 600; }
.prside { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; background: #fff; border: 1px solid #e7e3ef; border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 12px 28px -22px rgba(38, 34, 58, .45); }
.prside h2 { margin: 0 0 10px; font-size: 20px; display: flex; align-items: baseline; gap: 8px; } .prside h2 small { font-size: 13px; color: var(--mut); font-weight: 700; }
.prside h3 { margin: 16px 0 8px; font-size: 14px; }
.pris { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; margin: 0 -4px; padding: 2px 4px; }
.pri { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 12px; background: #f7f6fa; }
.prim { width: 44px; height: 44px; container-type: size; } .prim .tile { border-width: 1.5px; border-radius: 9px; } .prim .tile .w { font-size: 8px; padding: 0 2px 2px; } .prim .tile.txt .w { font-size: 9px; }
.pri b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prq { display: inline-flex; align-items: center; gap: 4px; } .prq .btn.sm { min-width: 32px; min-height: 32px; height: 32px; padding: 0; font-size: 18px; } .prq output { min-width: 22px; text-align: center; font-weight: 800; }
.prx { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #a12a1f; font-size: 20px; font-weight: 700; cursor: pointer; } .prx:hover { background: #fdecea; }
.prhint { margin: 0; padding: 12px; border-radius: 12px; background: #f7f6fa; color: var(--mut); font-weight: 600; font-size: 14px; }
.prside .chips { flex-wrap: wrap; overflow: visible; }
.prown { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; } .prown input { width: 70px; height: 38px; border: 1.5px solid #d5d8e0; border-radius: 10px; padding: 0 8px; font: inherit; font-weight: 700; }
.prtones { display: flex; gap: 10px; } .prtones button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.prtones button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pur); }
.prside .tg { margin-top: 12px; }
.prsum { margin: 16px 0 10px; padding: 10px 12px; border-radius: 12px; background: #f1eefb; color: #4a3c86; font-weight: 700; font-size: 14px; }
.prgo { display: flex; gap: 10px; } .prgo .btn.go { flex: 1 1 auto; min-height: 50px; font-size: 16px; } .prgo .btn[disabled] { opacity: .5; cursor: not-allowed; }
.prside .mutp { font-size: 13px; color: var(--mut); margin: 8px 0 0; }
@media (max-width: 900px) { .prw { grid-template-columns: minmax(0, 1fr); } .prside { position: static; max-height: none; scroll-margin-top: 12px; } .pris { max-height: 220px; } .prgrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } }
.prbar { display: none; }
@media (max-width: 900px) { .prbar:not([hidden]) { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px auto 0; width: fit-content; padding: 12px 18px; border-radius: 999px; background: var(--pur); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(60, 30, 140, .7); } .prbar b { font-weight: 800; } .prp { padding-bottom: 20px; } }
/* 4 Dec 2026 (Jonny: "can we have drag and drop to swap tiles around"): a tile picked up follows the pointer, a little bigger and
   tilted; the place it came from fades, the place it would go is outlined */
#board .slot.full { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#board .slot.lift .tile { transform: scale(.97); transition: transform .26s ease-out; }
#board .slot.dragfrom { opacity: .35; }
#board .slot.dropto { outline: 3px dashed var(--pur); outline-offset: 3px; border-radius: 14px; }
.bdghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; container-type: size; filter: drop-shadow(0 16px 22px rgba(34, 29, 56, .35)); will-change: transform; }
.bdghost .tile { width: 100%; height: 100%; }
body.bdrag, body.bdrag * { cursor: grabbing !important; user-select: none; }
@media (prefers-reduced-motion: reduce) { #board .slot.lift .tile { transition: none; } }
