/* Colors come from the StageReady logo: near-black #111419 and copper. Light mode is the default; dark mode
   follows the phone's setting unless the user picks one in More (html[data-theme]). */
:root {
  --ink: #161b20; --ink2: #3a424a; --muted: #5d6670; --gold: #c47a3f; --gold-dk: #9a5626; --on-gold: #fff;
  --bg: #faf8f5; --card: #ffffff; --field: #ffffff; --line: #e5e0d8; --soft: #f3eee7;
  --bar: #111419; --bar-fg: #ffffff; --hero: #111419; --hero-fg: #ffffff; --hero-sub: #c3c9cf; --ring-track: rgba(255,255,255,.18);
  --seg-on: #161b20; --seg-on-fg: #fff; --pin: #fbf3ea; --shadow: rgba(0,0,0,.22);
  --ok: #2f7d4f; --warn: #b5651d; --bad: #b3261e; --info: #2c5d8a;
  --ok-bg: #e3f1e8; --warn-bg: #fbecdc; --bad-bg: #f9e1df; --info-bg: #e1ebf5; --gold-bg: #f6e6d6;
  --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #eef0f2; --ink2: #c9ced4; --muted: #8f99a3; --gold: #d0874c; --gold-dk: #e39a5e; --on-gold: #111419;
  --bg: #0d1014; --card: #171c22; --field: #11151a; --line: #2a3139; --soft: #222931;
  --bar: #0a0c0f; --bar-fg: #eef0f2; --hero: #1d232a; --hero-fg: #fff; --hero-sub: #a9b2bb; --ring-track: rgba(255,255,255,.12);
  --seg-on: #d0874c; --seg-on-fg: #111419; --pin: #2a2219; --shadow: rgba(0,0,0,.6);
  --ok: #5fc48a; --warn: #f0a25a; --bad: #f07a70; --info: #7fb2e5;
  --ok-bg: rgba(95,196,138,.15); --warn-bg: rgba(240,162,90,.15); --bad-bg: rgba(240,122,112,.15); --info-bg: rgba(127,178,229,.15); --gold-bg: rgba(208,135,76,.18);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef0f2; --ink2: #c9ced4; --muted: #8f99a3; --gold: #d0874c; --gold-dk: #e39a5e; --on-gold: #111419;
    --bg: #0d1014; --card: #171c22; --field: #11151a; --line: #2a3139; --soft: #222931;
    --bar: #0a0c0f; --bar-fg: #eef0f2; --hero: #1d232a; --hero-fg: #fff; --hero-sub: #a9b2bb; --ring-track: rgba(255,255,255,.12);
    --seg-on: #d0874c; --seg-on-fg: #111419; --pin: #2a2219; --shadow: rgba(0,0,0,.6);
    --ok: #5fc48a; --warn: #f0a25a; --bad: #f07a70; --info: #7fb2e5;
    --ok-bg: rgba(95,196,138,.15); --warn-bg: rgba(240,162,90,.15); --bad-bg: rgba(240,122,112,.15); --info-bg: rgba(127,178,229,.15); --gold-bg: rgba(208,135,76,.18);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-dk); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bar); color: var(--bar-fg); padding: calc(10px + var(--safe-t)) 16px 10px; display: flex; align-items: center; gap: 10px; min-height: 54px; }
.top h1 { font-size: 18px; margin: 0; flex: 1; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 10px; }
.top .brand { font-weight: 500; letter-spacing: .16em; }
.top .brand b { color: var(--gold); font-weight: 500; }
.top .back, .top .act { text-decoration: none; background: none; border: 0; color: var(--bar-fg); font-size: 16px; padding: 8px 4px; cursor: pointer; }
.top .act { color: var(--gold); font-weight: 600; }

main { padding: 14px 14px calc(var(--tab-h) + var(--safe-b) + 24px); max-width: 760px; margin: 0 auto; }

/* Bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); display: flex; padding-bottom: var(--safe-b); }
.tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; padding: 8px 0 6px; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--ink); font-weight: 700; }
.tabs a.on svg { color: var(--gold); }

/* Cards and lists */
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 4px 8px; }
h2:first-child { margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.card.dark { background: var(--hero); color: var(--hero-fg); border-color: var(--hero); }
:root[data-theme="dark"] .card.dark { border-color: rgba(208,135,76,.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.dark { border-color: rgba(208,135,76,.45); } }
.card.dark .sub { color: var(--hero-sub); }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 52px; }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.sub { color: var(--muted); font-size: 14px; }
.chev::after { content: "›"; color: var(--muted); font-size: 22px; }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }

.date { width: 48px; text-align: center; border-radius: 10px; background: var(--soft); padding: 5px 0; flex: none; }
.date .m { font-size: 11px; text-transform: uppercase; color: var(--gold-dk); font-weight: 700; }
.date .d { font-size: 20px; font-weight: 700; line-height: 1.1; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.gold { background: var(--gold-bg); color: var(--gold-dk); }

/* Readiness meter */
.ready { display: flex; align-items: center; gap: 14px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--ring-track) 0); }
.card:not(.dark) .ring { background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--soft) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--hero); color: var(--hero-fg); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.card:not(.dark) .ring span { background: var(--card); color: var(--ink); }
.todo { list-style: none; padding: 0; margin: 10px 0 0; }
.todo li { padding: 6px 0 6px 22px; position: relative; font-size: 15px; }
.todo li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.todo li.done::before { background: var(--ok); }
.todo li.done { color: var(--muted); }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; background: var(--gold); color: var(--on-gold); cursor: pointer; text-decoration: none; min-height: 46px; }
.btn.dark { background: var(--bar); color: var(--bar-fg); border: 1.5px solid var(--line); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad-bg); }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 11; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); font-size: 32px; line-height: 1; box-shadow: 0 6px 18px var(--shadow); cursor: pointer; }

label { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); margin: 12px 2px 5px; }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--field); font-size: 16px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > div > label { margin-top: 12px; }
.check { display: flex; align-items: center; gap: 10px; margin: 12px 2px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); }

/* Segmented control */
.seg { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; cursor: pointer; }
.seg .on { background: var(--seg-on); color: var(--seg-on-fg); border-color: var(--seg-on); }

/* Checklist */
.tick { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); background: var(--field); flex: none; display: grid; place-items: center; cursor: pointer; font-size: 17px; color: #fff; }
.tick.on { background: var(--ok); border-color: var(--ok); color: var(--card); }
.tick.on::after { content: "✓"; }
.row.done .title { text-decoration: line-through; color: var(--muted); }

/* RSVP */
.rsvp { display: flex; gap: 6px; }
.rsvp button { border: 1.5px solid var(--line); background: var(--field); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.rsvp button.on { color: var(--card); }
.rsvp button.on.yes { background: var(--ok); border-color: var(--ok); }
.rsvp button.on.maybe { background: var(--warn); border-color: var(--warn); }
.rsvp button.on.no { background: var(--bad); border-color: var(--bad); }

/* Timeline */
.tl .row { align-items: flex-start; }
.tl .time { width: 64px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Messages */
.msg { padding: 12px 14px; border-top: 1px solid var(--line); }
.msg:first-child { border-top: 0; }
.msg .who { font-weight: 700; font-size: 14px; }
.msg .when { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 400; }
.msg.pinned { background: var(--pin); }
.compose { display: flex; gap: 8px; margin-top: 10px; }
.compose input { flex: 1; }

/* Month calendar */
.month { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.month .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.month .head button { background: none; border: 0; font-size: 22px; padding: 4px 12px; cursor: pointer; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.grid .dow { font-size: 11px; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.grid .day { aspect-ratio: 1; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; border: 0; background: none; padding: 0; }
.grid .day.other { color: var(--muted); opacity: .45; }
.grid .day.today { outline: 2px solid var(--gold); }
.grid .day.sel { background: var(--seg-on); color: var(--seg-on-fg); }
.grid .dots { display: flex; gap: 2px; height: 6px; margin-top: 2px; }
.grid .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.grid .dots i.t { background: var(--muted); opacity: .6; }

.money { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.money div { background: var(--soft); border-radius: 10px; padding: 10px; }
.money b { display: block; font-size: 19px; }
.money span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.banner { background: var(--gold-bg); border: 1px solid var(--gold-bg); color: var(--gold-dk); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.banner.bad { background: var(--bad-bg); border-color: var(--bad-bg); color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 20px); transform: translateX(-50%); background: var(--bar); color: var(--bar-fg); border: 1px solid var(--line); padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 50; box-shadow: 0 6px 18px var(--shadow); }
.logo-sm { width: 30px; height: 30px; border-radius: 7px; background: #111419 url(icon-180.png) center/cover; flex: none; }
.splash-logo { width: 220px; max-width: 70%; border-radius: 16px; display: block; margin: 0 auto 6px; }
.muted { color: var(--muted); }
.mt0 { margin-top: 0; }
.right { text-align: right; }
.hide { display: none !important; }
@media (min-width: 700px) { main { padding-left: 24px; padding-right: 24px; } }

/* Stage plot builder */
.stage { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 10px; background: var(--card); user-select: none; -webkit-user-select: none; }
.stage.edit { touch-action: none; }
.stage.edit g.it { cursor: grab; }
.palette { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 4px; scrollbar-width: none; }
.palette::-webkit-scrollbar { display: none; }
.palette .btn { flex: none; background: var(--card); }
.chn { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--gold-bg); color: var(--gold-dk); font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.panel { border-color: var(--gold); }
.inrow { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.inrow .two { margin-bottom: 6px; }
.chbox { display: flex; align-items: center; gap: 6px; }
.chbox span { font-weight: 700; color: var(--muted); font-size: 14px; }
input.cut { width: 90px; flex: none; padding: 8px 10px; }

/* Studio */
.bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.part { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.part input, .part select { padding: 8px; font-size: 15px; min-width: 0; }
.part > input:not(.min) { flex: 1.4; }
.part select { flex: 0 0 84px; }
.part input.min { width: 56px; flex: none; text-align: center; }
.part.done > input:not(.min) { text-decoration: line-through; color: var(--muted); }
.row.mine { background: var(--gold-bg); }

/* Guided tour */
.help { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); background: none; color: var(--gold); font-weight: 800; font-size: 17px; cursor: pointer; }
.brand-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
#tour .tour-block { position: fixed; inset: 0; z-index: 100; }
#tour .tour-hole { position: fixed; z-index: 101; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9999px rgba(5,7,10,.66); transition: all .3s ease; }
#tour .tour-card { position: fixed; z-index: 102; max-width: 520px; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
#tour .tour-step { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dk); }
#tour .tour-title { font-size: 18px; font-weight: 800; margin: 2px 0 4px; }
#tour .tour-text { font-size: 15px; color: var(--ink2); }
#tour .tour-btns { display: flex; gap: 8px; margin-top: 12px; align-items: center; }

/* Opening menu (one screen, no scrolling) */
.menu-btn { color: var(--bar-fg); display: grid; place-items: center; width: 34px; height: 34px; margin-left: -6px; flex: none; }
.menu-btn svg { width: 24px; height: 24px; }
body.menu-mode #top, body.menu-mode #tabs, body.menu-mode #fab { display: none; }
body.menu-mode main { position: fixed; inset: 0; max-width: none; padding: 0 0 var(--safe-b); display: flex; flex-direction: column; overflow: hidden; }
.menu-head { background: #111419; display: flex; justify-content: center; padding: calc(var(--safe-t) + 4px) 0 0; flex: none; border-radius: 0 0 22px 22px; }
.menu-head img { height: clamp(104px, 24vh, 250px); width: auto; display: block; }
.menu-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(5px, 1.1vh, 10px); padding: clamp(10px, 2vh, 18px) 16px 6px; width: 100%; max-width: 560px; margin: 0 auto; }
.menu-bar { flex: 1 1 0; min-height: 0; max-height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.menu-bar:active { border-color: var(--gold); background: var(--gold-bg); }
.menu-bar svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.menu-bar .ml { font-size: clamp(16px, 2.3vh, 19px); font-weight: 700; flex: 1; }
.menu-bar .mh { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.menu-bar .chev::after { font-size: 22px; }
.menu-tour { flex: none; align-self: center; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--gold-dk); font-weight: 700; font-size: 15px; padding: 6px 12px clamp(8px, 1.6vh, 16px); cursor: pointer; }
.menu-tour svg { width: 20px; height: 20px; }
.welcome { flex: 1; overflow-y: auto; padding: 16px 18px calc(var(--safe-b) + 16px); width: 100%; max-width: 560px; margin: 0 auto; }
.menu-tag { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; margin-top: -8px; }

/* Guided setup */
body.setup-mode main { overflow: hidden; }
.menu-head.small img { height: clamp(80px, 15vh, 130px); }
.welcome .dots { display: flex; gap: 6px; justify-content: center; margin: 2px 0 12px; }
.welcome .dots i { width: 26px; height: 5px; border-radius: 9px; background: var(--line); }
.welcome .dots i.on { background: var(--gold); }
.w-title { font-size: 23px; font-weight: 800; margin-bottom: 2px; }
.w-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-bg); color: var(--gold-dk); display: grid; place-items: center; flex: none; }
.w-ic svg { width: 21px; height: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 8px 13px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip.on::before { content: "✓ "; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.type { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; cursor: pointer; text-align: center; }
.type svg { width: 24px; height: 24px; color: var(--gold); }
.type b { font-size: 15px; } .type span { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.type.on { border-color: var(--gold); background: var(--gold-bg); }
.w-nav { position: sticky; bottom: calc(-16px - var(--safe-b)); display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 calc(12px + var(--safe-b)); margin-top: 14px; background: var(--bg); border-top: 1px solid var(--line); }
.w-nav .btn { min-width: 120px; }
.menu-tag.ok { color: var(--ok); } .menu-tag.offline, .menu-tag.error { color: var(--warn); }

/* Venue side + opening choice */
.start .role { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; margin: 10px 0; cursor: pointer; }
.start .role:active { border-color: var(--gold); background: var(--gold-bg); }
.start .role b { display: block; font-size: 18px; margin-bottom: 2px; }
.start .role .w-ic { width: 46px; height: 46px; } .start .role .w-ic svg { width: 26px; height: 26px; }
.mode-switch { display: flex; gap: 6px; padding: 10px 16px 0; max-width: 560px; margin: 0 auto; width: 100%; }
.card .mode-switch { padding: 0; }
.mode-switch button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); border-radius: 99px; padding: 7px 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.mode-switch button svg { width: 18px; height: 18px; color: var(--gold); }
.mode-switch button.on { background: var(--seg-on); color: var(--seg-on-fg); border-color: var(--seg-on); }
.mode-switch button.on svg { color: inherit; }
.offer-banner { display: block; margin: 8px 16px 0; text-decoration: none; }
.photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 8px; }
.photos .ph { position: relative; flex: 0 0 82%; max-width: 420px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--soft); scroll-snap-align: start; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph .btn { position: absolute; top: 6px; right: 6px; background: var(--card); }
.photos .ph.add { flex-basis: 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); color: var(--gold-dk); font-weight: 700; cursor: pointer; }
.photos .ph.add svg { width: 30px; height: 30px; }
.kv { display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 15px; }
.kv span { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.kv b { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.v-hero { display: flex; gap: 12px; align-items: center; padding: 10px; }
.v-hero img { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; flex: none; }
.money.stats { margin-bottom: 10px; }
.legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i, .grid .dots i.o { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 4px; }
.legend i.t, .grid .dots i.t { background: var(--info); opacity: .8; }
.legend i.o, .grid .dots i.o { background: transparent; border: 1.5px solid var(--muted); box-sizing: border-box; margin: 0; }
.msg.mine { background: var(--gold-bg); }
.todo li.info::before { background: var(--info); }
.gear-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.gear-nums label { font-size: 12px; min-height: 30px; display: flex; align-items: flex-end; }
label.chip { display: inline-block; margin: 0; }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.rcode { font: 700 22px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-align: center; padding: 14px; margin: 10px 0; border: 2px dashed var(--gold); border-radius: 12px; background: var(--gold-bg); color: var(--ink); user-select: all; -webkit-user-select: all; }

/* Computer / wide screens: the bottom bar becomes a sidebar on the left, pages get more room. */
@media (hover: hover) {
  .row[href]:hover, .menu-bar:hover { background: var(--soft); }
  .menu-bar:hover { border-color: var(--gold); }
  .btn:hover { filter: brightness(1.06); }
  .seg a:hover, .chip:hover, .type:hover, .start .role:hover { border-color: var(--gold); }
}
@media (min-width: 1000px) {
  :root { --side: 232px; }
  body:not(.menu-mode) { padding-left: var(--side); }
  .tabs { top: 0; right: auto; width: var(--side); flex-direction: column; gap: 2px; padding: 18px 12px; background: var(--bar); border-top: 0; border-right: 1px solid var(--line); }
  .tabs::before { content: ""; display: block; height: 150px; margin: 0 0 14px; border-radius: 14px; background: #111419 url(logo.jpg) center/contain no-repeat; }
  .tabs a { flex: none; height: 46px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; font-size: 15px; border-radius: 10px; color: rgba(255,255,255,.66); }
  .tabs a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .tabs a.on { color: #fff; background: rgba(208,135,76,.18); }
  .top { padding-left: 28px; padding-right: 28px; }
  main { max-width: 1000px; padding: 22px 32px 60px; }
  .fab { bottom: 28px; right: 32px; }
  .toast { bottom: 28px; left: calc(50% + var(--side) / 2); }
  body.menu-mode .toast { left: 50%; }
  .photos .ph { flex-basis: 46%; }
  .palette { flex-wrap: wrap; overflow: visible; }
  .stage { max-width: 880px; margin-left: auto; margin-right: auto; }
  /* Opening menu: buttons in two columns under the logo */
  .menu-list { max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 64px); align-content: start; gap: 12px; flex: none; }
  .menu-bar { max-height: none; }
  .mode-switch, .welcome { max-width: 640px; }
  .offer-banner { width: 100%; max-width: 788px; margin: 10px auto 0; }
}

/* StageReady Console (website) + Discover */
/* The badge sits inside the dark logo block, so it takes no extra room on the one-screen menu. */
.menu-head:has(.soon) { flex-direction: column; align-items: center; }
.soon { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -4px 16px 10px; font-size: 12.5px; font-weight: 700; color: #d0874c; letter-spacing: .02em; flex: none; }
.soon span { border: 1px solid rgba(208,135,76,.6); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.menu-head:has(.soon) img { height: clamp(96px, 21vh, 230px); }
.offer-banner { padding: 7px 12px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 8px; }
.menu-bar:last-child:nth-child(odd) { grid-column: 1 / -1; } /* odd count in a 2-column menu: last bar goes full width */
/* Shorter phones: the 9 menu bars go into two columns so everything still fits on one screen with roomy buttons. */
@media (max-width: 999px) and (max-height: 819px) {
  .menu-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 60px); align-content: start; gap: clamp(6px, 1.2vh, 10px); }
  .menu-bar { max-height: none; padding: 0 12px; gap: 10px; }
  .menu-bar .mh, .menu-bar .chev { display: none; }
  .menu-bar .ml { font-size: 16px; }
}
body.console .tabs::after { content: "Coming soon to the App Store"; display: none; }
.disc-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.disc-btns .btn svg, .btns .btn svg { width: 18px; height: 18px; }
@media (min-width: 1000px) {
  body.console .tabs::after { display: block; margin-top: auto; padding: 12px 6px 4px; color: rgba(255,255,255,.55); font-size: 12px; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
  .disc-btns { flex-direction: row; align-items: center; }
}
