/* Call it — white and simple, in the spirit of Instagram: black on white, hairlines, blue for the one thing to do, the videos as a
   reels grid, settings-style rows for choices. */
:root {
  --bg: #fff; --bg-2: #fafafa; --fill: #efefef; --line: #dbdbdb; --line-2: #efefef;
  --ink: #000; --ink-2: #262626; --mute: #737373; --mute-2: #a8a8a8;
  --blue: #0095f6; --blue-press: #1877f2; --blue-off: #b2dffc;
  --good: #1a8d3a; --bad: #ed4956;
  --grad: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 55%, #962fbf 78%, #4f5bd5);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
main { max-width: 470px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }
main.tabbed { padding-bottom: calc(env(safe-area-inset-bottom) + 66px); }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
svg { flex: none; }
h1, h2, p { margin: 0; }
.boot { flex: 1; display: grid; place-items: center; }

/* the top bar */
.appbar { position: sticky; top: 0; z-index: 20; height: 52px; padding: 0 12px 0 16px; padding-top: env(safe-area-inset-top); box-sizing: content-box; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.appbar.line { border-bottom: 1px solid var(--line); }
.appbar .title { position: absolute; left: 56px; right: 56px; text-align: center; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; padding: 0; margin-left: -8px; color: var(--ink); }
.wordmark { display: inline-flex; align-items: flex-end; font-weight: 750; font-size: 23px; letter-spacing: -.03em; border: 0; background: none; padding: 0; color: var(--ink); }
.wordmark .bars { display: inline-flex; align-items: flex-end; gap: 3px; margin-right: 9px; height: 22px; }
.wordmark .bars i { width: 6px; height: 15px; border-radius: 2px; background: var(--ink); }
.wordmark .bars i:nth-child(2) { height: 21px; background: var(--grad); }

/* the bottom tabs */
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; justify-content: space-around; align-items: center; background: #fff; border-top: 1px solid var(--line); }
.tabs button { width: 64px; height: 50px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); }
.tabs .av { width: 28px; height: 28px; font-size: 13px; }
.tabs .on .av { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }

/* buttons */
.btn { appearance: none; border: 0; border-radius: 8px; height: 44px; padding: 0 16px; width: 100%; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; }
.btn:active { background: var(--blue-press); }
.btn:disabled { background: var(--blue-off); }
.btn.gray { background: var(--fill); color: var(--ink); }
.btn.gray:disabled { opacity: .5; background: var(--fill); }
.btn.small { height: 32px; width: auto; font-size: 14px; }
.textbtn { border: 0; background: none; padding: 6px 0; color: var(--blue); font-weight: 600; font-size: 14px; }
.textbtn.gray { color: var(--mute); }

/* a note at the top (notifications, install) */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.banner .main { flex: 1; }

/* a round in the feed */
.post { border: 1px solid var(--line); border-radius: 16px; margin: 12px 12px 16px; padding-bottom: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }   /* a round: one card */
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.story { width: 42px; height: 42px; border-radius: 50%; padding: 2px; background: var(--grad); flex: none; }
.story.seen { background: var(--line); }
.story img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.post-head .t { font-weight: 600; font-size: 14px; }
.post-head .s { color: var(--mute); font-size: 13px; }
.post-actions { padding: 12px 16px 0; }
.caption { padding: 10px 16px 0; font-size: 14px; color: var(--ink-2); }
.caption b { font-weight: 600; color: var(--ink); }

/* the openings, as a reels grid */
.reels { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 2px; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--fill); border: 0; padding: 0; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.reel .playmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .38); color: #fff; display: grid; place-items: center; padding-left: 3px; pointer-events: none; }
.reel .n { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 7px; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font-weight: 700; font-size: 14px; }
.reel .pick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .18); box-shadow: 0 0 4px rgba(0, 0, 0, .35); display: grid; place-items: center; color: #fff; }
.reel.sel .pick { background: var(--blue); }
.reel.sel::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--blue); pointer-events: none; }
.reel.dim img { opacity: .35; }
.reel .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 13px; font-weight: 600; text-align: left; line-height: 1.25; }
.reel .badge { position: absolute; top: 8px; left: 8px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.status { text-align: center; color: var(--mute); font-size: 13px; padding: 10px 16px 2px; min-height: 30px; }

/* text blocks */
.lead { padding: 16px 16px 14px; }
.lead h1 { font-size: 20px; font-weight: 700; line-height: 1.22; }
.lead p { color: var(--mute); font-size: 14px; margin-top: 6px; }
.section { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 16px 6px; font-weight: 600; font-size: 16px; }
.hint { color: var(--mute); font-size: 13px; padding: 4px 16px 0; }

/* choices, as settings rows */
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; background: none; border: 0; text-align: left; }
.choice:disabled { opacity: .38; }
.choice .t { font-weight: 600; font-size: 15px; }
.choice .s { color: var(--mute); font-size: 13px; }
.choice .radio { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c7c7c7; flex: none; }
.choice[aria-checked="true"] .radio { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }

.comment { display: flex; align-items: center; gap: 10px; margin: 8px 16px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 22px; }
.comment input[type=text] { flex: 1; border: 0; outline: 0; font: inherit; font-size: 14px; background: none; padding: 0; min-width: 0; border-radius: 0; }
.footer { position: sticky; bottom: 0; margin-top: auto; padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px); background: #fff; border-top: 1px solid var(--line-2); }
.footer .fine { text-align: center; color: var(--mute); font-size: 12px; margin-top: 6px; }

/* lists: results, the leaderboard */
.row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 60px; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rank { width: 18px; color: var(--mute); font-weight: 600; text-align: center; flex: none; }
.row.link { cursor: pointer; }
.thumb916 { width: 40px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: var(--fill); flex: none; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 17px; background: hsl(var(--h, 210) 42% 56%); flex: none; }
.av.lg { width: 86px; height: 86px; font-size: 34px; }
.av.group { background: var(--grad); }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--mute); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }
.pts { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }
.pts.up { color: var(--good); }
.pts.down { color: var(--bad); }
.big { font-size: 44px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big.up { color: var(--good); } .big.down { color: var(--bad); }

/* empty and done */
.empty { text-align: center; padding: 56px 32px 24px; }
.empty .ring { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty p { color: var(--mute); font-size: 14px; }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 26px auto 14px; }
.center { text-align: center; padding: 0 28px; }
.center h1 { font-size: 22px; font-weight: 700; }
.center p { color: var(--mute); font-size: 14px; margin-top: 6px; }

/* profile */
.profile { display: flex; align-items: center; gap: 22px; padding: 16px; }
.profile .t { font-size: 18px; font-weight: 700; }
.profile .s { color: var(--mute); font-size: 14px; }
.setting { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: left; border-top: 1px solid var(--line-2); }
.setting .main { flex: 1; }
.setting .s { color: var(--mute); font-size: 13px; }
.setting .chev { color: var(--mute-2); }
label.field { display: grid; gap: 6px; padding: 8px 16px; font-size: 13px; color: var(--mute); font-weight: 600; }
input[type=text], input[type=url], input[type=number], input[type=tel], input[type=datetime-local], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mute-2); }
.error { color: var(--bad); font-size: 14px; min-height: 18px; padding: 4px 16px; }

/* the player, as a reel */
.player { position: fixed; inset: 0; z-index: 50; background: #000; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.player .track { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.player .track.drag { transition: none; }
.player .slide { flex: 0 0 100%; height: 100%; display: flex; }
.player video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.player .top { position: absolute; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; display: flex; flex-direction: column; gap: 6px; color: #fff; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.player .top .row { display: flex; align-items: center; }
.player .bars { display: flex; gap: 4px; padding: 0 4px; }
.player .bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.player .bars i { display: block; height: 100%; width: 0; background: #fff; transition: width .25s linear; }
.swipehint { position: absolute; left: 0; right: 0; top: 47%; text-align: center; color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); pointer-events: none; animation: swipehint 3.4s ease forwards; }
@keyframes swipehint { 0% { opacity: 0; transform: translateX(28px); } 18% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.player .top .icon { color: #fff; margin: 0; }
.player .top .title { flex: 1; text-align: center; font-weight: 600; margin-right: 40px; }
.player .actions { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px calc(env(safe-area-inset-bottom) + 16px); display: grid; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
/* every version at once (playAll), side by side */
.trio { display: flex; flex-direction: column; justify-content: center; }
.trio .grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; padding: 56px 6px 0; }
.trio .grid { width: 100%; max-width: min(720px, calc((100vh - 210px) * 9 / 16 * var(--n, 3) + 24px)); margin: 0 auto; }   /* a wide window: the videos fit its height */
.trio .grid { max-width: min(720px, calc((100dvh - 210px) * 9 / 16 * var(--n, 3) + 24px)); }
.trio .top { z-index: 2; }                                       /* the close button stays above the videos */
.trio .cell { position: relative; display: grid; gap: 8px; align-content: start; cursor: pointer; }
.trio video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; outline: 2px solid transparent; outline-offset: 2px; }
.trio .cell.on video { outline-color: #fff; }
.trio .n { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 7px; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font-weight: 700; font-size: 14px; }   /* as on the page */
.trio .snd { position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: #fff; color: #000; }
.trio .cell.on .snd { display: grid; }
.trio .btn.small { width: 100%; }
.trio .hint { color: rgba(255, 255, 255, .7); text-align: center; font-size: 13px; margin: 16px 16px 0; }
.pad.switch { display: grid; gap: 8px; }
.allbtn { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 32px); margin: 12px 16px 0; }
.player .again { color: #fff; border: 0; background: none; font-weight: 600; height: 36px; }

/* the tutorial */
.tuto { position: fixed; inset: 0; z-index: 40; background: #fff; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 6px) 24px calc(env(safe-area-inset-bottom) + 20px); max-width: 470px; margin: 0 auto; }
.tuto .skip { align-self: flex-end; color: var(--mute); }
.tuto .art { flex: 1; display: grid; place-items: center; min-height: 0; }
.tuto h2 { font-size: 24px; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.tuto p { color: var(--mute); text-align: center; font-size: 15px; margin: 10px auto 0; max-width: 330px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 22px 0 18px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--blue); }
.guide { justify-content: center; }
.guide .steps { list-style: none; margin: 22px auto 0; padding: 0; max-width: 340px; display: grid; gap: 14px; }
.guide .steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.guide .num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.guide .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--fill); color: var(--blue); display: grid; place-items: center; flex: none; }
.guide .kebab { font-size: 22px; color: var(--ink); }
.guide .appicon { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.guide .appicon i { width: 4px; border-radius: 2px; background: var(--ink); height: 10px; }
.guide .appicon i:nth-child(2) { height: 16px; background: linear-gradient(#feda75, #4f5bd5); }
.guide .appicon i:nth-child(3) { height: 12px; }
.guide .small { text-align: center; margin: 16px auto 0; max-width: 330px; }
.guide .btns { margin-top: 26px; }
.tuto .btns { display: grid; gap: 8px; }
.art-tiles { display: flex; align-items: flex-end; gap: 8px; }
.art-tiles .tile { position: relative; width: 74px; aspect-ratio: 9 / 16; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.art-tiles .tile:nth-child(1) { background: linear-gradient(160deg, #a8d8a0, #4f8f5c); }
.art-tiles .tile:nth-child(2) { width: 86px; background: linear-gradient(160deg, #9cc7f2, #4a6fa5); }
.art-tiles .tile:nth-child(3) { background: linear-gradient(160deg, #f6c58f, #c76d3a); }
.art-tiles .tile .pick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--blue); display: grid; place-items: center; }
.art-tiles .tile.sel { box-shadow: 0 0 0 3px var(--blue); }
.art-col { display: grid; gap: 18px; justify-items: center; }
.art-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.art-chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 3px #fff; border: 2px solid var(--blue); }
.art-col .art-chip { min-width: 210px; padding: 10px 16px; font-size: 15px; }
.art-chip:not(.on) i { background: #fff; box-shadow: none; border-color: #c7c7c7; }
.art-chip.on { border-color: var(--blue); }
.art-note { width: 290px; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 0 1px var(--line-2); text-align: left; }
.art-note .app { width: 38px; height: 38px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 8px; flex: none; }
.art-note .app i { width: 6px; height: 14px; border-radius: 2px; background: #111; }
.art-note .app i:nth-child(2) { height: 20px; background: var(--grad); }
.art-note .t { font-weight: 600; font-size: 14px; }
.art-note .s { color: var(--ink-2); font-size: 14px; }
.art-note .s b { color: var(--good); }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 74px); transform: translateX(-50%); background: #262626; color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 500; font-size: 14px; z-index: 60; max-width: 90vw; }

/* admin (the creator's page) */
.panel { border-top: 1px solid var(--line-2); padding: 14px 16px; }
.panel h3 { margin: 4px 0 8px; font-size: 17px; }
.kicker { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.kicker.dim { color: var(--mute-2); }
.strip { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 2px; margin: 8px 0; }
.strip .thumb { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--fill); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 12px; font-weight: 600; }
.small:not(.btn) { font-size: 13px; color: var(--mute); }
.mine { font-weight: 600; }
.note { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin: 10px 16px; font-size: 14px; color: var(--ink-2); }
.note .btn { margin-top: 10px; }
.actions { display: grid; gap: 8px; margin-top: 10px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; grid-template-columns: 70px 1fr 1fr 1fr; gap: 6px; align-items: center; font-size: 12px; color: var(--mute); }
.grid3 input { padding: 8px; font-size: 14px; }
.list { margin: 0; padding: 0; list-style: none; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .name { font-weight: 600; font-size: 14px; }
.item .sub { color: var(--mute); font-size: 13px; }
.person-row { flex-wrap: wrap; gap: 6px; }
.person-row .grow { flex: 1 0 100%; }
.person-row .qr { flex-basis: 100%; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; width: min(240px, 70vw); margin: 10px 0; }
.qr svg { width: 100%; height: auto; }
.linkbox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; margin: 8px 0; user-select: all; -webkit-user-select: all; }
[hidden] { display: none !important; }                           /* a class that sets display must not show it */
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 4px 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.addrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 16px; }
.pad { padding: 0 16px; }

/* the table (only when the server's config turns it on) */
.pass { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding: 20px 24px; }
.pass .who { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.pin { max-width: 200px; margin: 0 auto; text-align: center; font-size: 26px; letter-spacing: .4em; }
.people { display: grid; gap: 8px; margin: 12px 16px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); text-align: left; font-weight: 600; }
.person[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.person:disabled { opacity: .45; }
.person .sub { margin-left: auto; font-size: 13px; font-weight: 500; opacity: .75; }
.tally { display: grid; gap: 8px; margin: 12px 16px; }
.tbar { display: grid; grid-template-columns: 28px 1fr 26px; align-items: center; gap: 10px; font-weight: 700; }
.tbar .fill { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.tbar .fill i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.changed { display: grid; gap: 8px; margin: 12px 16px; }
.changed .who-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.changed .who-row .name { flex: 1; font-weight: 600; }
.changed .who-row .pin { width: 100%; max-width: none; letter-spacing: .2em; font-size: 17px; text-align: left; }
.picker { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.picker button { flex: 1; min-width: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fff; font-weight: 700; }
.picker button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.seg button { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fff; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg button:disabled { opacity: .4; }

/* the admin and table pages put their headings and lists straight in the page */
main > h1 { font-size: 22px; font-weight: 700; padding: 14px 16px 4px; }
main > h2 { font-size: 16px; font-weight: 600; padding: 18px 16px 6px; }
main > p { padding: 4px 16px; color: var(--mute); font-size: 14px; }
main > .kicker { padding: 12px 16px 0; }
main > .list, main > .actions { padding: 0 16px; }
main > .linkbox, main > .qr { margin-left: 16px; margin-right: 16px; }
main > .btn { width: auto; margin: 8px 16px; }
.panel h2 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.cant { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; }
.cant[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the bet's stakes: in words on each option, as a little table in the tutorial */
.gain { color: var(--good); font-weight: 600; }
.loss { color: var(--bad); font-weight: 600; }
.help { width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; padding: 0; font-weight: 700; font-size: 13px; line-height: 19px; text-align: center; vertical-align: 2px; }
.payoff { width: 300px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: center; }
.payoff .ph, .payoff .pr { display: grid; grid-template-columns: 1.7fr 1fr 1fr; align-items: center; padding: 11px 14px; }
.payoff .ph { background: var(--bg-2); color: var(--mute); font-size: 12px; font-weight: 600; }
.payoff .pr { border-top: 1px solid var(--line-2); font-weight: 600; }
.payoff .k { text-align: left; font-size: 14px; }
.payoff .gain, .payoff .loss { font-size: 19px; letter-spacing: .04em; }
.payoff .zero { color: var(--mute); font-size: 17px; }
