/* Mighty Oak Athletic member app. Simple, dark, big type, one thing per card. Phone first.
   Sizes follow BUILD_BRIEF section 4: body text 18px+, nothing under 15px, calendar day
   numbers 21px+, buttons 48px+ tall, touch targets 44px+. Every font size is multiplied by
   --ts, which follows the phone's larger-text setting (set in app.js). */

@font-face { font-family: "Inter"; src: url("/static/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --charcoal: #272728; --card: #343436; --line: #4A4A4D; --bar: #1C1C1D; --bar-line: #3A3A3C;
  --green: #00985D; --yellow: #EDEA65; --white: #ffffff; --soft: #D6D6D9; --dim: #8A8A8E; --off: #6A6A6E;
  --ts: 1;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--charcoal); }
html, body { margin: 0; height: 100%; }
body { background: var(--charcoal); color: var(--white); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: calc(18px * var(--ts)); line-height: 1.3; overscroll-behavior-y: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
a { color: var(--yellow); }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.boot { padding: 80px 24px; text-align: center; color: var(--soft); }

/* ------------------------------------------------------------------ shell */
.app { height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; background: var(--charcoal); }
.hdr { flex: none; padding: calc(var(--sat) + 6px) 20px 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hdr-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-logo .mark { width: 41px; height: 40px; }
.hdr-logo .word { width: 121px; height: 36px; }
.hdr-fam { font-size: calc(16px * var(--ts)); font-weight: 600; color: var(--soft); text-align: right; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.main > * { flex: none; }
.tabs { flex: none; display: flex; padding: 8px 8px max(calc(var(--sab) - 6px), 8px); background: var(--bar); border-top: 1px solid var(--bar-line); }
.tab { flex: 1 1 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--soft); font-size: calc(15px * var(--ts)); font-weight: 500; background: none; border: 0; padding: 0; }
.tab[aria-current="page"] { color: var(--yellow); font-weight: 700; }
.tab svg { width: 24px; height: 24px; }

h1 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: calc(30px * var(--ts)); letter-spacing: 0.5px; line-height: 1.15; }
.card { background: var(--card); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: calc(15px * var(--ts)); font-weight: 600; letter-spacing: 0.6px; color: var(--soft); text-transform: uppercase; }
.soft { color: var(--soft); }
.note { font-size: calc(16px * var(--ts)); color: var(--soft); }
.center { text-align: center; }
.btn { min-height: 52px; border-radius: 12px; border: 0; background: var(--yellow); color: var(--charcoal); font-size: calc(20px * var(--ts));
  font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 8px 16px; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.55; }
.btn.ghost { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn.quiet { background: transparent; color: var(--soft); border: 2px solid var(--line); font-weight: 600; font-size: calc(18px * var(--ts)); min-height: 48px; }
.linkbtn { min-height: 44px; background: none; border: 0; padding: 0; color: var(--yellow); font-size: calc(18px * var(--ts)); font-weight: 600;
  text-decoration: underline; display: inline-flex; align-items: center; }
.banner { background: var(--yellow); color: var(--charcoal); border-radius: 10px; padding: 0 0 0 12px; font-size: calc(15px * var(--ts)); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.banner button { min-height: 44px; background: none; color: var(--charcoal); border: 0; padding: 0 14px; font-weight: 700; font-size: calc(16px * var(--ts)); text-decoration: underline; }
.testflag { font-size: calc(15px * var(--ts)); color: var(--soft); text-align: center; }
.error { color: #FFB4A9; font-size: calc(17px * var(--ts)); }

/* athlete switcher: families with more than one athlete */
.who { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
.who::-webkit-scrollbar { display: none; }
.who button { flex: none; min-height: 44px; padding: 0 12px; background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--soft); font-size: calc(18px * var(--ts)); font-weight: 600; }
.who button[aria-pressed="true"] { color: var(--white); border-bottom-color: var(--yellow); font-weight: 700; }

/* --------------------------------------------------------------- progress */
.level { flex-direction: row; gap: 14px; align-items: center; }
.chip { flex: none; width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: calc(40px * min(var(--ts), 1.2)); border: 2px solid transparent; }
.level-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.level-name { font-size: calc(22px * var(--ts)); font-weight: 700; }
.level-color { font-size: calc(18px * var(--ts)); font-weight: 600; color: var(--soft); }
/* all-time sessions, with a milestone badge styled like the level box (12, 24, 50, 100, ...) */
.chip.soon { background: transparent; border: 2px dashed var(--dim); }
.alltime { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.alltime.solo { border-top: 0; padding-top: 0; }
.badge { flex: none; width: 60px; height: 60px; border-radius: 12px; border: 2px solid transparent; display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: calc(34px * min(var(--ts), 1.15)); line-height: 1; letter-spacing: 0.3px; }
.badge.d3 { font-size: calc(29px * min(var(--ts), 1.15)); }
.badge.d4 { font-size: calc(23px * min(var(--ts), 1.1)); }
.alltime-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alltime-text b { font-size: calc(20px * var(--ts)); font-weight: 700; }
.alltime-text span { font-size: calc(16px * var(--ts)); color: var(--soft); }
h2.sub { margin: 4px 0 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: calc(24px * var(--ts)); letter-spacing: 0.4px; }
.past { padding: 6px 16px; gap: 8px; }
.past .toggle { color: var(--white); gap: 10px; min-height: 52px; }
.past .toggle svg { flex: none; color: var(--yellow); }
.past-name { display: block; font-weight: 700; }
.past .toggle small { display: block; font-size: calc(16px * var(--ts)); font-weight: 400; color: var(--soft); }
.past > .note { padding-bottom: 8px; }
.hl { font-size: calc(18px * var(--ts)); }
.big { font-size: calc(20px * var(--ts)); font-weight: 700; }
.bar { height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; }
.bar > div { height: 14px; border-radius: 7px; background: var(--yellow); }
.lift { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: calc(18px * var(--ts)); }
.lift b { color: var(--yellow); font-weight: 700; white-space: nowrap; margin-left: auto; }   /* a long entry (10/12/14 kg → 14/14/16 kg) drops under its name */
.lift.was b { color: var(--soft); }

/* ------------------------------------------------------------------- book */
.next { padding: 10px 16px 4px; gap: 2px; }
.next-when { font-size: calc(21px * var(--ts)); font-weight: 700; }
.toggle { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--yellow); font-size: calc(18px * var(--ts)); font-weight: 600;
  text-align: left; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.booked-row { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); font-size: calc(18px * var(--ts)); padding: 4px 0; }
.booked-row small { display: block; font-size: calc(15px * var(--ts)); color: var(--soft); }
.booked-row button { min-height: 44px; background: none; border: 0; padding: 0 0 0 12px; color: var(--yellow); font-weight: 600; font-size: calc(18px * var(--ts)); }
.cal { padding: 6px 10px 10px; gap: 4px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.cal-head button { width: 48px; height: 44px; border: 0; background: transparent; color: var(--yellow); font-size: 30px; padding: 0; line-height: 1; }
.cal-head button[disabled] { color: var(--off); }
.cal-month { font-size: calc(20px * var(--ts)); font-weight: 700; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow { font-size: calc(15px * min(var(--ts), 1.15)); font-weight: 600; color: var(--soft); text-align: center; letter-spacing: -0.2px; }
.grid { row-gap: 2px; }
.day { height: calc(46px * max(1, min(var(--ts), 1.25))); border: 0; border-radius: 23px; background: transparent; color: var(--dim); font-size: calc(21px * min(var(--ts), 1.25));
  font-weight: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; }
.day i { width: 7px; height: 7px; border-radius: 4px; background: transparent; }
.day.open { color: var(--white); font-weight: 600; }
.day.open i { background: var(--green); }
.day.sel { background: var(--yellow); color: var(--charcoal); font-weight: 700; }
.day.sel i { background: var(--charcoal); }
.day.sel:not(.open) i { background: transparent; }
.times { display: flex; flex-direction: column; gap: 8px; }
.times-day { font-size: calc(18px * var(--ts)); font-weight: 700; }
.times-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.time { min-height: 48px; padding: 0; border-radius: 10px; border: 2px solid var(--yellow); background: transparent; color: var(--yellow);
  font-size: calc(17px * min(var(--ts), 1.2)); font-weight: 600; white-space: nowrap; }

/* ----------------------------------------------------------------- photos */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--card); color: var(--white); font-size: calc(17px * var(--ts)); font-weight: 600; }
.filter[aria-pressed="true"] { background: var(--yellow); color: var(--charcoal); font-weight: 700; }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--card); height: 140px; }
.shot.first { height: 180px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: calc(15px * var(--ts)); font-weight: 600; color: var(--white); text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); }
.shot .play { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 26px; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photos-foot { font-size: calc(16px * var(--ts)); color: var(--soft); text-align: center; padding: 4px 0 24px; }
.empty { background: var(--card); border-radius: 14px; padding: 28px 18px; text-align: center; color: var(--soft); }

/* ---------------------------------------------------------------- account */
.member { gap: 6px; }
.plan { font-size: calc(22px * var(--ts)); font-weight: 700; }
.fact { font-size: calc(18px * var(--ts)); font-weight: 600; }
.fact s { color: var(--soft); font-weight: 400; }
.save { font-size: calc(16px * var(--ts)); font-weight: 600; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows { gap: 0; }
.rows .eyebrow { padding-bottom: 10px; }
.row { min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: calc(18px * var(--ts)); border-top: 1px solid var(--line); padding: 4px 0; }
.row .val { color: var(--yellow); font-weight: 600; text-align: right; }
.row a, .row button.val { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font-size: inherit; text-decoration: underline; color: var(--yellow); font-weight: 600; }
.switch { position: relative; flex: none; width: 58px; height: 44px; border: 0; background: transparent; padding: 0; }
.switch::before { content: ""; position: absolute; top: 5px; left: 0; width: 58px; height: 34px; border-radius: 17px; background: var(--off); transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 8px; left: 3px; width: 28px; height: 28px; border-radius: 14px; background: var(--white); transition: left 0.15s; }
.switch[aria-checked="true"]::before { background: var(--green); }
.switch[aria-checked="true"]::after { left: 27px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding: 2px 0 24px; }
.foot-links a, .foot-links button { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; color: var(--soft); font-size: calc(16px * var(--ts)); text-decoration: underline; }

/* ------------------------------------------------------------ sheets etc. */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 18px 18px 0 0; padding: 20px 20px calc(var(--sab) + 20px);
  display: flex; flex-direction: column; gap: 14px; }
.sheet h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: calc(28px * var(--ts)); letter-spacing: 0.4px; }
.sheet p { margin: 0; }
.pick { min-height: 52px; display: flex; align-items: center; gap: 14px; font-size: calc(20px * var(--ts)); background: none; border: 0; border-top: 1px solid var(--line); padding: 4px 0; width: 100%; text-align: left; }
.pick .box { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--soft); display: flex; align-items: center; justify-content: center; }
.pick[aria-checked="true"] .box { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: calc(18px * var(--ts)); font-weight: 600; }
.field input, .field select { min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--charcoal); color: var(--white); font: inherit; font-weight: 400;
  font-size: calc(20px * var(--ts)); padding: 8px 14px; width: 100%; }
.field input:focus { border-color: var(--yellow); outline: none; }
.viewer { position: fixed; inset: 0; z-index: 30; background: #111112; display: flex; flex-direction: column; }
.viewer-top { padding: calc(var(--sat) + 8px) 12px 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viewer-top div { font-size: calc(17px * var(--ts)); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-top button { flex: none; min-height: 48px; min-width: 72px; background: none; border: 0; color: var(--yellow); font-size: calc(18px * var(--ts)); font-weight: 700; }
.viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-foot { padding: 12px 20px calc(var(--sab) + 16px); display: flex; flex-direction: column; gap: 8px; }
.frame { position: fixed; inset: 0; z-index: 30; background: var(--charcoal); display: flex; flex-direction: column; }
.frame iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--sab) + 96px); z-index: 40; margin: 0 auto; max-width: 488px; background: var(--white); color: var(--charcoal);
  border-radius: 12px; padding: 14px 16px; font-size: calc(18px * var(--ts)); font-weight: 600; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }
.steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------------- sign-in */
.signin { min-height: 100dvh; max-width: 520px; margin: 0 auto; padding: calc(var(--sat) + 36px) 24px calc(var(--sab) + 24px); display: flex; flex-direction: column; gap: 18px; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 14px; }
.stack .mark { width: 132px; height: auto; }
.stack .word { width: 250px; height: auto; }
.signin p { margin: 0; }
.signin .lead { font-size: calc(20px * var(--ts)); text-align: center; }

/* ------------------------------------------------------------------ admin */
.a-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 60px; border-top: 1px solid var(--line); padding: 8px 0; background: none; border-left: 0; border-right: 0; border-bottom: 0;
  width: 100%; text-align: left; font-size: calc(18px * var(--ts)); color: var(--white); }
.a-row small { display: block; font-size: calc(15px * var(--ts)); color: var(--soft); font-weight: 400; }
.tag { flex: none; font-size: calc(15px * var(--ts)); font-weight: 700; border-radius: 8px; padding: 4px 8px; background: var(--line); color: var(--white); white-space: nowrap; }
.tag.pass { background: var(--green); color: #fff; }
.tag.review { background: var(--yellow); color: var(--charcoal); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--white); font-size: calc(16px * var(--ts)); font-weight: 600; }
.seg button[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); color: var(--charcoal); }
.a-item { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.a-item small { font-size: calc(15px * var(--ts)); color: var(--soft); word-break: break-word; }
.filepick { min-height: 52px; border-radius: 12px; border: 2px dashed var(--soft); display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.filepick input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.need { font-size: calc(16px * var(--ts)); color: var(--soft); line-height: 1.75; margin-top: 4px; }
/* hand-picked older level-up pictures (admin only) */
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.pp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pp-pic { position: relative; display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: var(--charcoal); aspect-ratio: 1 / 1; }
.pp-pic img { width: 100%; height: 100%; object-fit: cover; }
.pp-pic .box { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--white); background: rgba(0, 0, 0, 0.45);
  color: var(--charcoal); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.pp-pic[aria-checked="true"] { border-color: var(--yellow); }
.pp-pic[aria-checked="true"] .box { background: var(--yellow); border-color: var(--yellow); }
.pp-cap { font-size: calc(17px * var(--ts)); }
.pp-cap small { display: block; font-size: calc(15px * var(--ts)); color: var(--soft); }
@media (min-width: 700px) { .pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sg-pic { display: block; border-radius: 12px; overflow: hidden; background: var(--charcoal); min-height: 44px; }
.sg-pic img { width: 100%; max-height: 420px; object-fit: contain; }
.lvl-edit { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

/* confirm numbers: the scanned page beside the numbers (on a phone the page stays on top) */
.app.wide { max-width: 1240px; }
.cn-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cn { display: flex; flex-direction: column; gap: 12px; }
.cn-page { position: sticky; top: 0; z-index: 2; background: var(--charcoal); padding-bottom: 6px; display: flex; flex-direction: column; gap: 6px; }
.cn-view { height: min(38dvh, 330px); overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; background: #fff; }
.cn-view img { height: auto; max-width: none; }
.cn-tools { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.cn-tools button { width: 48px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--white); font-size: 24px; font-weight: 700; line-height: 1; padding: 0; }
.cn-tools button[disabled] { color: var(--off); }
.cn-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cn-row { border-top: 1px solid var(--line); padding: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.cn-hint { font-size: calc(15px * var(--ts)); color: var(--soft); word-break: break-word; }
.cn-name { display: flex; gap: 8px; }
.cn-nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.cn-nums label { display: flex; flex-direction: column; gap: 4px; font-size: calc(15px * var(--ts)); font-weight: 600; color: var(--soft); }
.cn-nums .seg { flex-wrap: nowrap; }
.cn-row input { min-height: 48px; min-width: 0; width: 100%; border-radius: 12px; border: 2px solid var(--line); background: var(--charcoal); color: var(--white);
  font: inherit; font-size: calc(20px * var(--ts)); padding: 6px 12px; }
.cn-row input:focus { border-color: var(--yellow); outline: none; }
.cn-kind { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cn-kind select { min-height: 48px; flex: 1 1 200px; min-width: 0; border-radius: 12px; border: 2px solid var(--line); background: var(--charcoal); color: var(--white);
  font: inherit; font-size: calc(17px * var(--ts)); padding: 6px 10px; }
.cn-kind .seg { flex-wrap: nowrap; }
.cn-multi { display: flex; flex-direction: column; gap: 8px; }
.cn-set { display: flex; flex-direction: column; gap: 4px; }
.cn-set-label { font-size: calc(15px * var(--ts)); font-weight: 600; color: var(--soft); }
.cn-boxes { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cn-boxes.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cn-boxes.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cn-boxes.n6 input { padding: 6px 4px; text-align: center; font-size: calc(18px * var(--ts)); }
.cn-was { color: var(--white); }
.cn-x { flex: none; width: 48px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--soft); font-size: 18px; padding: 0; }
@media (min-width: 900px) {
  .cn { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); gap: 20px; align-items: start; }
  .cn-view { height: calc(100dvh - 250px); min-height: 360px; }
}

@media (min-width: 560px) {
  body { background: #1C1C1D; }
  .app, .signin { box-shadow: 0 0 0 1px var(--bar-line); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
