/* Hala Kahiki Pre-Shift, self-hosted app.
   Layout: one phone-width column, greeting at the top, a bottom tab bar for the thumb.
   The week's Focus is the one loud thing on the page; everything else stays calm.
   Design knobs (the Design lab changes these): --rond-head, --rond-body, --head-weight, --radius, --scale, data-accent, data-theme. */

@font-face {
  font-family: "Allo";
  src: url("fonts/AlloVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Allo";
  src: url("fonts/Allo-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Accent: sunset orange by default (Hayze's pick, 11/24/2026). Each accent has a light and a dark value. */
  --accent-l: #b04a05;
  --accent-d: #ff7a1a;

  /* Light theme: the Green room by day, pale celadon. */
  --bg: #eef3ee;
  --surface: #ffffff;
  --surface-2: #e3ebe4;
  --line: #d3dfd5;
  --fg: #13221b;
  --muted: #557064;
  --accent: var(--accent-l);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --out: #c0352b;
  --out-soft: color-mix(in srgb, var(--out) 12%, var(--surface));
  --low: #94690a;
  --low-soft: color-mix(in srgb, var(--low) 14%, var(--surface));
  --good: #1d7a64;
  --good-soft: color-mix(in srgb, var(--good) 12%, var(--surface));
  --shadow: 0 1px 0 rgba(10, 40, 25, .06), 0 8px 24px -12px rgba(10, 40, 25, .18);
  --scrim: rgba(6, 20, 13, .45);

  /* Type and shape */
  --font: "Allo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rond-head: 85;
  --rond-body: 50;
  --head-weight: 800;
  --radius: 16px;
  --scale: 1;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Dark theme: the Green room at night. */
    --bg: #0f1a15;
    --surface: #17261f;
    --surface-2: #1f3229;
    --line: #2b4236;
    --fg: #e9f2ea;
    --muted: #9db5a8;
    --accent: var(--accent-d);
    --accent-ink: #2a0814;
    --out: #ff7466;
    --low: #f1c453;
    --good: #5fcfb3;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a15;
  --surface: #17261f;
  --surface-2: #1f3229;
  --line: #2b4236;
  --fg: #e9f2ea;
  --muted: #9db5a8;
  --accent: var(--accent-d);
  --accent-ink: #2a0814;
  --out: #ff7466;
  --low: #f1c453;
  --good: #5fcfb3;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[data-accent="hibiscus"] { --accent-l: #b8342c; --accent-d: #ff7a6b; }
:root[data-accent="lagoon"]   { --accent-l: #16725f; --accent-d: #52c9ad; }
:root[data-accent="asterisk"] { --accent-l: #b04a05; --accent-d: #ff7a1a; }
:root[data-accent="orchid"]   { --accent-l: #8a3f8f; --accent-d: #e39be6; }
:root[data-accent="palm"]     { --accent-l: #2e6b2a; --accent-d: #7fd36a; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--scale)); -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--fg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  font-variation-settings: "ROND" var(--rond-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .display { font-variation-settings: "ROND" var(--rond-head); text-wrap: balance; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; font-variation-settings: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.top { padding-block: 22px 6px; display: flex; align-items: flex-start; gap: 12px; }
.top .hello { flex: 1; min-width: 0; display: grid; gap: 2px; }
.eyebrow { font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.top h1 { font-size: 2.1rem; line-height: 1.05; font-weight: var(--head-weight); letter-spacing: -.02em; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font-weight: 750; font-size: .95rem;
  display: grid; place-items: center; font-variation-settings: "ROND" 100;
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px;
}

/* progress pills under the greeting */
.progress { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px 4px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 12px 7px 9px; font-size: .85rem; font-weight: 600; color: var(--fg);
}
.pill-link .dot { width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--line); display: grid; place-items: center; }
.pill-link.done .dot { background: var(--good); border-color: var(--good); color: var(--surface); }
.pill-link.done .dot svg { width: 11px; height: 11px; }

/* offline banner */
.banner {
  margin-top: 12px; padding: 10px 14px; border-radius: calc(var(--radius) * .75);
  background: var(--low-soft); color: var(--fg); font-size: .875rem; display: flex; gap: 10px; align-items: center;
}
.banner b { font-weight: 700; }

/* ---------- main + sections ---------- */
main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 40px); }
.view { display: grid; gap: 28px; padding-top: 18px; }
.block { display: grid; gap: 12px; min-width: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head h2 { font-size: 1.3rem; font-weight: var(--head-weight); letter-spacing: -.01em; }
.block-head .aside { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: grid; gap: 6px; min-width: 0; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.08rem; font-weight: 750; line-height: 1.3; }
.card .body { color: var(--fg); opacity: .92; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: .95rem; padding: 4px 2px; }

/* the Focus card: the one loud thing */
.focus {
  background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * 1.4);
  padding: 22px 22px 24px; display: grid; gap: 10px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.focus .eyebrow { color: inherit; opacity: .8; }
.focus h2 { font-size: 1.85rem; line-height: 1.08; font-weight: var(--head-weight); letter-spacing: -.02em; }
.focus .body { opacity: .92; }
.focus::after {
  /* a lantern glow, very faint */
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); pointer-events: none;
}
.focus + .focus { margin-top: -16px; }

.why {
  margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: .9rem; color: var(--muted);
}
.why b { color: var(--fg); font-weight: 650; }
.focus .why { border-top-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); color: inherit; opacity: .9; }
.focus .why b { color: inherit; }
.slot {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted);
  font-size: .92rem; display: grid; gap: 2px; background: transparent;
}
.slot b { color: var(--fg); font-weight: 650; }
.why.slot-why { font-style: italic; }

.legend-card { font-style: italic; font-size: 1.05rem; line-height: 1.5; }
.legend-card .cite { font-style: normal; font-size: .8rem; color: var(--muted); }

/* ---------- 86 board ---------- */
.list { display: grid; gap: 8px; }
.row86 {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 10px 14px;
}
.row86 .name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.row86 .meta { font-size: .78rem; color: var(--muted); }
.status {
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px;
  padding: 4px 9px; white-space: nowrap; border: 0; font-variation-settings: "ROND" 100;
}
.status.out { background: var(--out-soft); color: var(--out); }
.status.low { background: var(--low-soft); color: var(--low); }
.row86 .actions { display: flex; gap: 6px; }
.add86 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }

/* ---------- controls ---------- */
.field {
  width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .75);
  padding: 12px 14px; font-size: 1rem;
}
.field::placeholder { color: var(--muted); opacity: .8; }
textarea.field { resize: vertical; min-height: 96px; line-height: 1.45; }
.btn {
  border: 0; border-radius: calc(var(--radius) * .75); background: var(--accent); color: var(--accent-ink);
  font-weight: 750; font-size: .95rem; padding: 12px 16px; white-space: nowrap; font-variation-settings: "ROND" 100;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.wide { width: 100%; padding: 15px 16px; font-size: 1rem; }
.btn.soft { background: var(--surface-2); color: var(--fg); }
.btn.out { background: var(--out-soft); color: var(--out); }
.btn.low { background: var(--low-soft); color: var(--low); }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px;
  font-size: .8rem; font-weight: 650; padding: 7px 11px; white-space: nowrap; font-variation-settings: "ROND" 100;
}
.chip.good { border-color: transparent; background: var(--good-soft); color: var(--good); }
.chip.danger { border-color: transparent; background: var(--out-soft); color: var(--out); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 650; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }

/* got it */
.gotit { display: grid; gap: 10px; text-align: center; justify-items: center; padding: 22px 18px; }
.gotit h3 { font-size: 1.3rem; font-weight: var(--head-weight); }
.gotit.done { background: var(--good-soft); border-color: transparent; }
.gotit .check {
  width: 44px; height: 44px; border-radius: 999px; background: var(--good); color: var(--surface);
  display: grid; place-items: center;
}

/* ---------- quiz ---------- */
.qprog { display: flex; gap: 6px; }
.qprog span { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); }
.qprog span.right { background: var(--good); }
.qprog span.wrong { background: var(--out); }
.qprog span.now { background: var(--accent); }
.qcard { padding: 22px 20px; gap: 16px; }
.qcard h2 { font-size: 1.45rem; line-height: 1.2; font-weight: var(--head-weight); }
.opts { display: grid; gap: 10px; }
.opt {
  text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: calc(var(--radius) * .85);
  padding: 14px 16px; font-size: 1rem; font-weight: 600; display: flex; gap: 12px; align-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.opt .key {
  flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; font-variation-settings: "ROND" 100;
}
.opt:hover:not([disabled]) { border-color: var(--accent); }
.opt[disabled] { cursor: default; }
.opt.picked { border-color: var(--accent); }
.opt.checking { animation: pulse 1s ease-in-out infinite; }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.right .key { background: var(--good); color: var(--surface); }
.opt.wrong { border-color: var(--out); background: var(--out-soft); }
.opt.wrong .key { background: var(--out); color: var(--surface); }
.verdict { font-size: .95rem; padding: 12px 14px; border-radius: calc(var(--radius) * .75); }
.verdict.right { background: var(--good-soft); }
.verdict.wrong { background: var(--out-soft); }
.verdict b { display: block; font-weight: 800; }
.score { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 28px 18px; }
.score .big { font-size: 4rem; line-height: 1; font-weight: 850; font-variation-settings: "ROND" var(--rond-head); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.score .big small { font-size: 1.6rem; color: var(--muted); font-weight: 700; }
.review { display: grid; gap: 8px; }
.review .card { gap: 4px; padding: 12px 14px; box-shadow: none; }
.review .card .q { font-weight: 650; }
.review .card .a { font-size: .9rem; color: var(--muted); }
.review .tick { font-weight: 800; }
.review .tick.right { color: var(--good); }
.review .tick.wrong { color: var(--out); }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- launches ---------- */
.launch { gap: 12px; }
.launch-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.launch-top .when { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.launch-top .when.soon { color: var(--out); font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.bar.full > span { background: var(--good); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg);
  border-radius: calc(var(--radius) * .7); padding: 10px 12px; font-size: .9rem; font-weight: 600; text-align: left;
}
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; }
.check[aria-pressed="true"] { border-color: transparent; background: var(--good-soft); }
.check[aria-pressed="true"] .box { background: var(--good); border-color: var(--good); color: var(--surface); }
.check .box svg { width: 13px; height: 13px; }
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: var(--out-soft); border: 1px solid color-mix(in srgb, var(--out) 30%, transparent);
}
.alert.calm { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.alert b { font-weight: 750; }
.alert .missing { font-size: .88rem; color: var(--muted); }
.alert button { margin-left: auto; }
.add-launch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.add-launch .btn { grid-column: 1 / -1; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(8px, env(safe-area-inset-left, 0px));
  padding-right: max(8px, env(safe-area-inset-right, 0px));
}
.tabbar .in { max-width: 560px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tabbar-h); }
.tab {
  border: 0; background: none; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 3px;
  font-size: .72rem; font-weight: 650; position: relative; font-variation-settings: "ROND" 100;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab .badge {
  position: absolute; top: 9px; left: calc(50% + 7px); min-width: 9px; height: 9px; border-radius: 999px; background: var(--out);
  border: 2px solid var(--surface);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  background: var(--fg); color: var(--bg); border-radius: 999px; padding: 10px 18px; font-weight: 650; font-size: .9rem;
  box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}

/* ---------- sheet (profile, design lab) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--bg); color: var(--fg);
  border-radius: 22px 22px 0 0; padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: grid; gap: 18px; animation: up .22s ease-out;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 999px; background: var(--line); justify-self: center; }
.sheet h2 { font-size: 1.4rem; font-weight: var(--head-weight); }
.sheet .group { display: grid; gap: 10px; }
.sheet .group > label, .sheet .group > .label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sheet .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.swatch { width: 18px; height: 18px; border-radius: 999px; display: inline-block; vertical-align: -4px; margin-right: 6px; border: 1px solid var(--line); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 4ch; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.sample {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; display: grid; gap: 4px;
}
.sample .s-head { font-size: 1.6rem; font-weight: var(--head-weight); line-height: 1.1; font-variation-settings: "ROND" var(--rond-head); }
.picks { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
/* Design lab: docked panel, page stays visible and usable above it */
.scrim.lab { background: transparent; pointer-events: none; }
.scrim.lab .sheet { pointer-events: auto; max-height: 48vh; gap: 16px; box-shadow: 0 -12px 40px rgba(0,0,0,.28); border-top: 1px solid var(--line); }
.lab-head { position: sticky; top: -10px; z-index: 1; margin: -10px 0 -6px; padding: 12px 0 8px; background: var(--bg); display: flex; align-items: center; gap: 8px; }
.lab-head h2 { flex: 1; }
.lab-head .btn { padding: 8px 14px; min-height: 0; font-size: .9rem; }
.scrim.lab .sheet.min { max-height: none; overflow: visible; padding-bottom: 12px; border-radius: 22px; width: calc(100% - 24px);
  margin-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 10px); }
.scrim.lab .sheet.min > :not(.lab-head) { display: none; }
.scrim.lab .sheet.min .lab-head { margin: 0; padding: 0; position: static; }
body.lab-open main { padding-bottom: 52vh; }
.sample .s-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.sample .s-btn { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * .75); padding: 8px 14px; font-weight: 700; font-size: .9rem; }
.sample .s-pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--muted); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

/* ---------- sign-in ---------- */
.signin { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 26px; padding-block: 40px 40px; text-align: center; }
.mark {
  width: 72px; height: 72px; border-radius: 22px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; font-variation-settings: "ROND" 100;
  box-shadow: var(--shadow);
}
.signin h1 { font-size: 2.2rem; line-height: 1.05; font-weight: var(--head-weight); letter-spacing: -.02em; }
.signin .lede { color: var(--muted); max-width: 30ch; margin-inline: auto; }
.dots { display: flex; gap: 14px; justify-content: center; min-height: 18px; }
.dots span { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--muted); transition: background .12s ease, transform .12s ease; }
.dots span.on { background: var(--fg); border-color: var(--fg); transform: scale(1.06); }
.dots.shake { animation: shake .4s ease; }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.key {
  width: 76px; height: 76px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow);
  font-size: 1.75rem; font-weight: 600; font-variation-settings: "ROND" 100; font-variant-numeric: tabular-nums;
  display: grid; place-items: center; color: var(--fg); transition: transform .08s ease, background .08s ease;
}
.key:active { transform: scale(.93); background: var(--surface-2); }
.key.ghost { background: none; box-shadow: none; font-size: 1rem; font-weight: 650; color: var(--muted); }
.key.spacer { visibility: hidden; }
.dots.busy span.on { animation: pinwait .9s ease-in-out infinite; }
.dots.busy span:nth-child(2) { animation-delay: .12s; } .dots.busy span:nth-child(3) { animation-delay: .24s; } .dots.busy span:nth-child(4) { animation-delay: .36s; }
@keyframes pinwait { 50% { transform: scale(.7); opacity: .55; } }
.key svg { width: 26px; height: 26px; }
.err { color: var(--out); font-weight: 650; min-height: 1.5em; font-size: .95rem; max-width: 32ch; }
.demo-pins { font-size: .85rem; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.demo-pins .row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.welcome { animation: fadein .4s ease both; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* ---------- loading skeleton ---------- */
.skel { background: var(--surface-2); border-radius: var(--radius); height: 96px; animation: pulse 1.2s ease-in-out infinite; }
.skel.tall { height: 160px; }

/* ---------- add to home screen ---------- */
.a2hs {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 30; width: min(528px, calc(100% - 24px));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 14px 14px 16px; display: flex; gap: 12px; align-items: center;
}
.a2hs .txt { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.4; }
.a2hs .txt b { display: block; font-size: .95rem; }
.a2hs .link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.a2hs .x { flex: none; align-self: flex-start; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.a2hs .x svg { width: 16px; height: 16px; }
.a2hs .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; font-size: .9rem; font-variation-settings: "ROND" 100; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
  .pad { grid-template-columns: repeat(3, 68px); gap: 12px; }
  .key { width: 68px; height: 68px; }
  .top h1 { font-size: 1.8rem; }
}
body.lab-open .a2hs { display: none; }
.lab-btn { flex: none; margin-top: 6px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 750; cursor: pointer; }
.lab-btn:active { transform: scale(.97); }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 650; }
.check-row input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check-row small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.qprog span.saved { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.verdict.saved { background: var(--surface-2); color: var(--fg); }
.verdict.saved b { margin-right: 6px; }
.tick.saved { color: var(--accent); font-weight: 700; }

/* Former staff: "you didn't say the magic word" */
.magic { display: flex; flex-direction: column; align-items: center; gap: .15em; color: var(--fg); }
.magic .finger { font-size: 2.6em; line-height: 1.1; transform-origin: 50% 90%; animation: wag .5s ease-in-out 6 alternate; }
.magic .ah { font-weight: 700; opacity: 0; animation: ahin .25s ease forwards; }
.magic .ah:nth-of-type(3) { animation-delay: .5s; }
.magic .ah:nth-of-type(4) { animation-delay: 1s; }
.magic .mw { margin-top: .3em; font-weight: 600; }
.magic .still { font-size: .85em; color: var(--muted); }
@keyframes wag { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes ahin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .magic .finger, .magic .ah { animation: none; opacity: 1; } }

/* Event drink specs: same layout every time, amounts in a column */
.spec { gap: 10px; }
.spec h3 { font-size: 1.25rem; }
.spec-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.spec-meta div { display: grid; gap: 1px; }
.spec-meta dt { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec-meta dd { margin: 0; font-weight: 600; }
.ings { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ings li { display: grid; grid-template-columns: 8.5ch 1fr; gap: 10px; align-items: baseline; }
.ings .amt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.more-specs { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.more-specs span { display: grid; gap: 2px; }
.more-specs small { color: var(--muted); }
.more-specs svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* What you sent: read receipts */
.sent-list { display: grid; gap: 8px; margin-top: 4px; }
.sent { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--surface); }
.sent .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.sent.read .dot { background: var(--good); border-color: var(--good); color: var(--surface); }
.sent .dot svg { width: 13px; height: 13px; }
.sent > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sent q { color: var(--muted); quotes: "\201C" "\201D"; overflow-wrap: anywhere; }
.sent small { font-size: .85rem; }
.sent.read small { color: var(--good); font-weight: 600; }

.quiz-note { color: var(--muted); font-size: .85rem; text-align: center; margin: 4px 8px 0; }
.progress .rule { flex-basis: 100%; margin: 2px 2px 0; color: var(--muted); font-size: .85rem; }

/* Launch owners + timing */
.lrows { display: grid; gap: 6px; }
.lrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.lrow .check { min-width: 0; }
.lrow.unowned .owner { border-color: var(--low); color: var(--low); }
.owner { font: inherit; font-size: .9rem; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 9.5rem; max-width: 42vw; }
.due { margin: 0; font-size: .88rem; font-weight: 650; color: var(--muted); }
.due.tonight { color: var(--low); }
.due.last { color: var(--out); }
.todo { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--surface); }
.todo .check { border: 0; background: none; padding: 0; }
.todo-meta { color: var(--muted); font-size: .88rem; padding-left: 32px; }
.todo.tonight { border-color: var(--low); }
.todo.tonight .todo-meta { color: var(--low); }
.todo.last { border-color: var(--out); }
.todo.last .todo-meta { color: var(--out); font-weight: 650; }

/* First-sign-in tour */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; border-radius: calc(var(--radius, 16px) + 4px); box-shadow: 0 0 0 9999px rgba(4, 14, 9, .62); transition: all .25s ease; pointer-events: none; outline: 2px solid var(--accent); }
.tour-card { position: fixed; left: 16px; right: 16px; max-width: 420px; margin-inline: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius, 16px); padding: 16px 18px; display: grid; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.35); transition: top .25s ease; }
.tour-card.center { top: 50% !important; transform: translateY(-50%); }
.tour-card.center ~ .tour-spot, .tour:has(.tour-card.center) { background: rgba(4, 14, 9, .62); }
.tour-card h2 { font-size: 1.25rem; margin: 0; }
.tour-card p { margin: 0; }
.tour-card .eyebrow { margin: 0; }
.tour-btns { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.tour-btns .btn { flex: 1; }
body.touring .a2hs { display: none; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }

/* Tonight + night by night */
.tonight-card { border-color: var(--accent); background: var(--surface); gap: 6px; }
.nights { gap: 0; padding-block: 4px; }
.night { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.night:first-child { border-top: 0; }
.nday { font-weight: 700; display: grid; line-height: 1.2; }
.nday small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.night.today .nday { color: var(--accent); }
/* Report a problem */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sent.onit .dot { border-color: var(--low); background: var(--low-soft); }
.sent.onit small { color: var(--low); font-weight: 600; }

/* Managers: open problems */
.prob { gap: 8px; }
.prob-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .85rem; }
.pill-cat { font-weight: 700; font-size: .78rem; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); }
.pill-cat.staff { background: var(--low-soft); color: var(--low); }
.prob-btns { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.prob-onit { margin-right: auto; color: var(--low); font-weight: 650; font-size: .9rem; }
.prob-done { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--good); font-weight: 650; font-size: .9rem; }
.prob-done svg { width: 16px; height: 16px; }
.prob.fixed { opacity: .7; }

/* Checklists */
.cl-pointer { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font: inherit; color: inherit; width: 100%; cursor: pointer; }
.cl-pointer span { display: grid; gap: 2px; }
.cl-pointer small { color: var(--muted); }
.cl-pointer svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.cl-pick { display: grid; gap: 8px; margin-bottom: 10px; }
.cl-choice { display: grid; gap: 2px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cl-choice small { color: var(--muted); }
.cl-count { margin: 0; font-size: .88rem; }
.cl-items { display: grid; gap: 8px; }
.cl-item { align-items: flex-start; width: 100%; font-weight: 550; line-height: 1.35; padding: 12px; }
.cl-item .box { margin-top: 1px; }
.cl-item[aria-pressed="true"] span:last-child { color: var(--muted); }
.tag { font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.cl-end { display: grid; gap: 4px; }
.cl-end.done b { color: var(--good); display: flex; align-items: center; gap: 6px; }
.cl-end.done svg { width: 16px; height: 16px; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 650; cursor: pointer; padding: 0; }
.co { gap: 6px; }
.co .co-line { margin: 0; font-size: .9rem; color: var(--muted); }
.co.ready { border-color: var(--accent); }
.co.ready .co-line { color: var(--fg); }
.co.out { opacity: .65; }
.co .btn { justify-self: end; }
.ltype { font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.add-launch .seg { grid-column: 1 / -1; }

/* Reservations (managers) */
.resv { gap: 12px; }
.resv-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.resv-nums b { display: block; font-size: 1.8rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.resv-nums small { color: var(--muted); font-size: .78rem; }
.resv-big { display: grid; border-top: 1px solid var(--line); padding-top: 4px; }
.resv-row { display: grid; grid-template-columns: 4.8rem 2.2rem 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.resv-row:last-child { border-bottom: 0; }
.rt { font-weight: 700; font-variant-numeric: tabular-nums; }
.rp { font-weight: 800; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.rn { display: grid; gap: 2px; }
.rn small { color: var(--muted); }
.rn .tag { justify-self: start; }

/* Week-done wave (plays once a week, when Got it + quiz are both done) */
.wave-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 91; pointer-events: none; }
.wave-panel { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 0%, #6b2238 0%, #2c120c 60%, #180a07 100%); color: #fff4e3; opacity: 0; overflow: hidden; }
.wave-panel.in { opacity: 1; }
.wave-panel.calm { transition: opacity .35s ease; }
.wave-panel.glow { animation: wave-glow 7s ease-in-out infinite; }   /* slow, like the tide */
.wave-panel.out { opacity: 0; transition: opacity .3s ease; }
.wave-inner { max-width: 340px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.wave-inner > * { opacity: 0; transform: translateY(18px); }
.wave-panel.show .wave-inner > * { animation: wave-rise 1.1s cubic-bezier(.22,1,.36,1) forwards; }
/* Top to bottom, like lights coming on: eyebrow, 🤙, headline, line, button */
.wave-panel.show .wave-inner > :nth-child(3) { animation-delay: .3s; }
.wave-panel.show .wave-inner > :nth-child(4) { animation-delay: .5s; }
.wave-panel.show .wave-inner > :nth-child(5) { animation-delay: .8s; }
.wave-emoji { font-size: 3.8rem; line-height: 1; transform-origin: 70% 80%; }
.wave-panel.show .wave-emoji { animation: wave-pop .9s cubic-bezier(.2,1.6,.35,1) .12s forwards, wave-hang 2.6s ease-in-out 1.2s 2; }
.wave-panel h1 { font-size: 2rem; line-height: 1.1; margin: 4px 0 0; color: #fff4e3; text-shadow: 0 2px 28px #ffd68c55; }
.wave-panel p { margin: 0 0 10px; color: #f3d9bd; }
.wave-panel .btn { background: linear-gradient(90deg, #ffe3a3, #f4b060 55%, #e98c86); color: #1d1a2a; border: 0; }
.wave-tap { position: fixed; z-index: 92; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  border: 2px solid #ffd166; animation: wave-tap .8s ease-out forwards; }
@keyframes wave-tap { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }
@keyframes wave-rise { to { opacity: 1; transform: none; } }
@keyframes wave-pop { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
@keyframes wave-hang { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(12deg); } }
@keyframes wave-glow {
  0%,100% { box-shadow: inset 0 0 0 2px #58c7b033, inset 0 0 70px #2b6f9640, inset 0 0 180px #b096e230; }
  50%     { box-shadow: inset 0 0 0 2px #ffd68c44, inset 0 0 100px #58c7b040, inset 0 0 240px #e98c8638; } }
#app { transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
#app.wave-lean { transform: scale(.975); transition: transform .26s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .wave-inner > *, .wave-panel.show .wave-inner > *, .wave-panel.show .wave-emoji { animation: none; opacity: 1; transform: none; }
  .wave-panel.glow { animation: none; } #app.wave-lean { transform: none; } }

/* The real wave (wave.js): the app is lifted into .wave-root while it plays */
html.wave-open, html.wave-open body { overflow: hidden; }
.wave-root { position: fixed; inset: 0; z-index: 90; display: grid; grid-template: 100% / 100%; isolation: isolate; overflow: hidden; background: var(--bg); }
.wave-root.out { opacity: 0; transition: opacity .3s ease; }
.wave-layer { grid-area: 1 / 1; min-width: 0; min-height: 0; isolation: isolate; overflow: hidden; background: var(--bg); position: relative; }
.wave-panel.real { position: absolute; }
.wave-eyebrow { font-size: .74rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd68c !important; margin: 0 0 6px !important; }
.wave-panel { background:
  radial-gradient(60% 22% at 50% 30%, #ffd68c2e 0%, transparent 70%),      /* the moon's glow */
  radial-gradient(110% 40% at 50% 104%, #58c7b030 0%, transparent 70%),    /* lagoon light from below */
  radial-gradient(80% 40% at 50% 62%, #e98c8622 0%, transparent 70%),      /* last of the sunset on the horizon */
  linear-gradient(180deg, #1b1630 0%, #2a1f3d 38%, #1d2f45 70%, #0e1b26 100%); }   /* dusk sky into night water */
.wave-panel p.wave-sub { color: #e9e0f0; }
.wave-panel h1 { color: #fff4e0; }

/* Spec cards: what to tell guests, and the drink's backstory */
.spec .pitch { margin: 2px 0 0; font-size: .92rem; line-height: 1.4; color: var(--fg); }
.spec .pitch b { color: var(--accent); font-weight: 700; }
.spec .story { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--muted); font-style: italic; }

/* Sign-in: "Is this you?" after the clock-in number */
.confirm-me .me-name { font-size: 1.5rem; font-weight: 750; margin: 0; color: var(--fg); }
.confirm-me .me-actions { display: grid; gap: 10px; width: 100%; max-width: 320px; justify-self: center; }
.resv .tag { margin-left: 4px; }
.resv .tag.big { background: var(--line); color: var(--fg); }
.resv-key { font-size: .8rem; margin: 6px 0 0; }

/* Heads up: a tap-to-open card. Closed it's one line; open it drops the list down. */
.heads-toggle { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); }
.heads-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.heads-title { font-weight: 800; font-size: 1.15rem; }
.heads-sum { color: var(--accent); font-weight: 700; font-size: .9rem; }
.heads-next { grid-column: 1; color: var(--muted); font-size: .88rem; }
.heads-chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--line); transition: transform .28s ease; }
.heads.open .heads-chev { transform: rotate(180deg); }
.heads-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.heads.open .heads-wrap { grid-template-rows: 1fr; }
.heads-inner { overflow: hidden; min-height: 0; }
.heads-inner > .card { margin-top: 8px; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .3s ease; }
.heads.open .heads-inner > .card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .heads-wrap, .heads-chev, .heads-inner > .card { transition: none; } }
.heads .when-open { display: none; }
.heads.open .when-open { display: inline; }
.heads.open .when-closed { display: none; }
