:root {
  --bg: #0d0d0d; --bg2: #161616; --bg3: #1f1f1f; --line: #2a2a2a; --line2: #3a3a3a;
  --text: #ececec; --muted: #a3a3a3; --dim: #6f6f6f;
  --gold: #d4af37; --gold2: #f3d774; --gold-dim: #8a7122; --gold-bg: #2a2410;
  --green-bg: #1d3320; --green: #8fd48f; --amber-bg: #3a3217; --amber: #e8cc6a; --blue-bg: #17283a; --blue: #7db6f0;
  --red-bg: #3a1a1a; --red: #f08a8a; --gray-bg: #2b2b2b; --gray: #bdbdbd;
  --radius: 12px; --nav-h: 64px; --head-h: 56px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100vw; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
/* Scrolling: the page itself (viewport) must be the only page-level scroller.
   Body must NOT become a scroll container: overflow-x:hidden on body plus overscroll-behavior on body
   made phones need two fingers to scroll and killed the coasting after a flick (fixed 2026-10-15).
   overflow-x:clip trims sideways overflow without creating a scroll container. */
html { overflow-x: hidden; overscroll-behavior-y: none; }
body { min-height: 100vh; overflow-x: clip; }
a { color: var(--blue); word-break: break-all; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .gold { color: var(--gold); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- header ---------- */
.header { position: sticky; overflow: hidden; max-width: 100vw; top: 0; z-index: 20; background: #000; border-bottom: 1px solid var(--line); height: var(--head-h); display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.brand { display: flex; min-width: 0; overflow: hidden; text-overflow: ellipsis; align-items: center; gap: 9px; text-decoration: none; color: var(--gold); font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.header.bname-off .brand .bname { display: none; } /* (v0.00.33 rebuild: where the name would be cut, the K logo alone — fitBrand() in app.js) */
.header.bar-tight .tabs a { padding-left: 5px; padding-right: 5px; } /* (…and where even the logo alone is cut, the tabs closer together) */
.tabs { display: none; gap: 4px; margin-left: 10px; }
.tabs a { color: var(--muted); text-decoration: none; padding: 8px 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tabs a.on { color: var(--gold); background: var(--gold-bg); }
.tabs a:hover { color: var(--gold2); }
.hsearch { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hsearch input { width: 180px; max-width: 42vw; display: none; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; color: var(--text); }
.hsearch input:focus { outline: none; border-color: var(--gold); }
.iconbtn { background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.iconbtn:hover { border-color: var(--gold); color: var(--gold2); }
.offline-bar { background: var(--amber-bg); color: var(--amber); font-size: 13px; padding: 7px 14px; text-align: center; }

/* ---------- layout ---------- */
.main { padding-bottom: calc(var(--nav-h) + 16px); }
.pane-list, .pane-detail { min-width: 0; }
.pane-detail { display: none; }
.pane-detail.show { display: block; }
.pane-list.hide-mobile { display: none; }
.content { padding: 10px 12px 24px; max-width: 980px; margin: 0 auto; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.title { font-size: 20px; color: #fff; }
.subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.rule { color: var(--dim); font-size: 12px; margin: 6px 0 10px; line-height: 1.45; }
.count { color: var(--gold); font-weight: 700; }

/* ---------- bottom nav ---------- */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h); background: #000; border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: stretch; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: #8a8a8a; font-size: 11px; font-weight: 600; }
.nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav a.on { color: var(--gold); }

/* ---------- chips / filters ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2); color: #d0d0d0; background: var(--bg2); border-radius: 18px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--gold); color: #000; border-color: var(--gold); }
.chip select { background: transparent; border: none; color: inherit; font-weight: 600; font-size: 12.5px; padding: 0; max-width: 150px; }
.chip select:focus { outline: none; }
.chip.on select { color: #000; }
.chip select option { background: var(--bg2); color: var(--text); }
.chip input[type=date] { background: transparent; border: none; color: inherit; font-size: 12.5px; padding: 0; font-weight: 600; }
.chip.on input[type=date] { color: #000; }
.filters { margin: 4px 0 10px; }
.filters details summary { cursor: pointer; color: var(--gold); font-size: 13px; font-weight: 600; list-style: none; padding: 4px 0; }
.filters details summary::-webkit-details-marker { display: none; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--gray-bg); color: var(--gray); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.gold { background: var(--gold); color: #000; }
.tag.outline { background: transparent; border: 1px solid var(--line2); }

/* ---------- lists / cards ---------- */
.dayhead { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 12px 4px 4px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; margin: 6px 0; cursor: pointer; display: block; color: inherit; text-decoration: none; word-break: normal; overflow-wrap: break-word; }
.card .cardrow { display: flex; gap: 10px; align-items: flex-start; }
.card .cardrow .grow { min-width: 0; flex: 1; }
.card .dist { color: var(--gold); font-weight: 800; font-size: 18px; white-space: nowrap; line-height: 1.1; padding-top: 1px; text-align: right; }
.card .dist small { font-size: 11px; font-weight: 700; margin-left: 2px; }
.card:hover { border-color: var(--line2); background: #1a1a1a; }
.card.sel { border-color: var(--gold); background: #1d1a10; }
.card.booked { border-color: var(--gold-dim); }
.card .n { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; }
.card .m { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.card .tags { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 30px 10px; text-align: center; line-height: 1.5; }

/* ---------- detail ---------- */
.detail { padding: 12px 14px 30px; }
.detail h2 { font-size: 22px; color: #fff; line-height: 1.25; }
.detail .meta { color: #c9c9c9; font-size: 14px; margin-top: 6px; line-height: 1.5; }
.detail .tags { margin: 10px 0 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sec { margin-top: 14px; }
.sec .h { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 4px; }
.sec p, .sec .v { color: #d6d6d6; font-size: 14px; line-height: 1.5; margin: 0; white-space: pre-wrap; word-break: break-word; }
.sec a { display: inline-block; margin-top: 2px; }
.btns { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: #e6e6e6; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--gold); color: var(--gold2); }
.btn.gold { background: var(--gold); color: #000; border-color: var(--gold); }
.btn.gold:hover { background: var(--gold2); color: #000; }
.btn.danger { border-color: #5a2a2a; color: var(--red); }
.btn.sm { font-size: 12.5px; padding: 6px 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.status-select { background: var(--gold); color: #000; border: none; border-radius: 9px; padding: 6px 10px; font-weight: 700; font-size: 13px; }
.status-select.none { background: var(--bg3); color: var(--text); border: 1px solid var(--line2); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form .f { display: flex; flex-direction: column; gap: 4px; }
.form label { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.form input, .form select, .form textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.form .hint { color: var(--dim); font-size: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .span { grid-column: 1 / -1; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 10px 0; }
.msg.err { background: var(--red-bg); color: var(--red); }
.msg.ok { background: var(--green-bg); color: var(--green); }
.msg.info { background: var(--blue-bg); color: var(--blue); }

/* ---------- login ---------- */
.login { max-width: 420px; margin: 40px auto; padding: 24px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; }
.login .logo { display: flex; justify-content: center; margin-bottom: 14px; }
.login .logo img { width: 72px; height: 72px; border-radius: 50%; }
.login h1 { text-align: center; color: var(--gold); font-size: 22px; }
.login p { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- promoters ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; color: var(--gold); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line2); position: sticky; top: var(--head-h); background: var(--bg); }
.ptable td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tr { cursor: pointer; }
.ptable tr:hover td { background: #171717; }
.ptable .num { text-align: right; color: var(--muted); white-space: nowrap; }
.letter { color: var(--gold); font-weight: 700; padding: 14px 4px 4px; font-size: 13px; }
.alpha { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; }
.alpha a { color: var(--muted); text-decoration: none; font-size: 12px; padding: 3px 6px; border-radius: 6px; background: var(--bg2); }
.alpha a.has { color: var(--gold); }

/* ---------- calendar: Month / List switch + month grid ---------- */
.calbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--gold-dim); border-radius: 12px; overflow: hidden; }
.seg a { padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; word-break: normal; }
.seg a.on { background: var(--gold); color: #000; }
button.chip { cursor: pointer; }
/* touch-action pan-y: one-finger up/down still scrolls the page; sideways swipes change the month */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; touch-action: pan-y pinch-zoom; } /* minmax(0,…): a long show name can't widen a column */
.mgrid .dow { color: var(--gold); font-size: 11px; font-weight: 700; text-align: center; padding: 4px 0; text-transform: uppercase; }
.mcell { min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; min-height: 46px; padding: 4px 4px 3px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; -webkit-tap-highlight-color: transparent; user-select: none; }
.mcell .dn { font-size: 13px; font-weight: 700; color: #e8e8e8; }
.mcell .mc { align-self: flex-end; font-size: 10.5px; font-weight: 800; color: var(--gold); min-height: 13px; }
.mcell.other { opacity: .35; }
.mcell.today { border-color: var(--gold); }
/* round 2: gold = a day you're booked; the picked day gets a white ring (it used to be gold) */
.mcell.busy { background: var(--gold); border-color: var(--gold); }
.mcell.busy .dn, .mcell.busy .mc { color: #000; }
.mcell .bkname { font: 800 9px/1.25 Inter, "Segoe UI", system-ui, sans-serif; background: #000; color: var(--gold); border-radius: 4px; padding: 1px 3px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcell.sel { outline: 3px solid #fff; outline-offset: 1px; position: relative; z-index: 1; }
.mnav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.nearnote { color: var(--muted); font-size: 12px; margin: -2px 4px 4px; line-height: 1.4; }
.nearnote a { word-break: normal; }

/* ---------- settings ---------- */
.settings .block { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.settings .block h3 { color: var(--gold); font-size: 15px; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13.5px; }
.kv div:nth-child(odd) { color: var(--muted); }
progress { width: 100%; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 14px); transform: translateX(-50%); background: var(--gold); color: #000; font-weight: 700; padding: 10px 16px; border-radius: 12px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.5); max-width: 90vw; text-align: center; }
.toast.err { background: #c0392b; color: #fff; }
.snip { color: var(--dim); font-size: 12px; margin-top: 4px; }
.snip b { color: var(--gold2); font-weight: 600; }
.changes li { font-size: 13px; color: #ccc; padding: 6px 0; border-bottom: 1px solid var(--line); list-style: none; }
.changes { padding: 0; margin: 0; }
.dl { display: inline-block; margin-top: 4px; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .tabs { display: flex; }
  .nav { display: none; }
  .main { padding-bottom: 20px; }
  .main.two { display: grid; grid-template-columns: minmax(360px, 440px) 1fr; min-height: calc(100vh - var(--head-h)); }
  .main.two .pane-list { border-right: 1px solid var(--line); height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .main.two .pane-detail { display: block; height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .main.two .pane-list.hide-mobile { display: block; }
  .main.two .content { max-width: none; }
  .main.two .detail { max-width: 900px; padding: 18px 26px 40px; }
  .back.mobile-only { display: none; }
  .toast { bottom: 24px; }
  .hsearch input { width: 220px; display: block; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .hsearch input { display: none; }
  .tabs a { padding: 8px 7px; font-size: 13px; }
  .form { grid-template-columns: 1fr 1fr; }
}

/* ---------- install banner ---------- */
.install { background: linear-gradient(135deg, #1d1a10, #161616); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.install b { color: var(--gold2); font-size: 14.5px; }
.install.compact { padding: 10px 12px; }

/* ---------- settings: home address ---------- */
.addr { display: flex; gap: 8px; }
.addr input { flex: 1; min-width: 0; }
.adv summary { cursor: pointer; color: var(--gold); font-size: 13px; font-weight: 600; padding: 2px 0; }

/* ---------- round 2: day badges, deadlines, weather, phone calendar ---------- */
.daybadge { display: inline-block; font: 800 10.5px Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .3px; border-radius: 6px; padding: 2px 7px; margin-left: 4px; vertical-align: 1px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.daybadge.free { background: var(--green-bg); color: var(--green); }
.daybadge.busy { background: var(--gold); color: #000; }
.calbar .dlbtn { text-decoration: none; }
.dlbtn .badge { display: inline-block; min-width: 18px; text-align: center; background: #c0392b; color: #fff; border-radius: 9px; padding: 0 5px; font-size: 11px; margin-left: 2px; }
.dlbtn.on .badge { background: #000; color: var(--gold); }
.card .dl { color: var(--amber); margin-top: 4px; }
.card .dl .tag { font-size: 10px; padding: 1px 6px; }
.card .dl.past { color: var(--dim); }
.dlbig { margin: 2px 0 6px; color: #e6e6e6; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dlbig.past { color: var(--dim); }
.wx { color: var(--blue); font-size: 12.5px; margin-top: 5px; line-height: 1.4; }
.wx:empty { display: none; }
.sec .wx { font-size: 14px; color: #cfe3fb; margin: 3px 0; }
.wxi { font-size: 14px; }
.steps { margin: 10px 0 6px; padding-left: 20px; color: #d6d6d6; font-size: 13.5px; line-height: 1.5; }
.steps li { margin: 4px 0; }
.steps a { word-break: normal; }
.mnav button.btn:disabled { visibility: hidden; }
.block .hint { color: var(--dim); font-size: 12.5px; margin-top: 6px; line-height: 1.45; }
.block .addr input { background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 13px; }
.calbar { flex-wrap: wrap; }

/* ---------- round 2: show money, packing, venue miles ---------- */
.money .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; }
.money .three input { padding: 9px 10px; }
.money .profit { grid-column: 1 / -1; font-size: 15px; color: #ddd; }
.pos { color: var(--green); } .neg { color: var(--red); }
.card .dist.neg { color: var(--red); }
.packlist { display: flex; flex-direction: column; gap: 2px; }
.chk { display: flex; gap: 10px; align-items: center; padding: 6px 2px; font-size: 14.5px; color: #e6e6e6; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.chk input:checked + span { color: var(--dim); text-decoration: line-through; }
.money-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.money-tot div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.money-tot span { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.money-tot b { font-size: 16px; color: #fff; }
.money-tot .big { border-color: var(--gold-dim); }
.money-tot .big b { font-size: 18px; }

/* ---------- round 2: invites, private notes, requests ---------- */
.nbadge { display: inline-block; min-width: 18px; text-align: center; background: #c0392b; color: #fff; border-radius: 9px; padding: 0 5px; font-size: 11px; font-weight: 800; line-height: 18px; margin-left: 4px; vertical-align: 1px; }
.nav a { position: relative; }
.nav a .nbadge { position: absolute; top: 5px; left: 50%; margin-left: 5px; }
.private { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--gold2); background: var(--gold-bg); border-radius: 6px; padding: 1px 6px; margin-left: 6px; letter-spacing: .2px; text-transform: none; vertical-align: 1px; }
.mynotes { width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; color: var(--text); }
.minebar { background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--gold2); border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.45; margin: 8px 0; }
.minebar a { color: var(--gold2); font-weight: 700; word-break: normal; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin: 6px 0; }
.linkcard { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.linkcard.fresh { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim) inset; }
.linkcard .addr input { color: var(--gold2); }
.qrbox { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.qrbox svg { width: 230px; height: 230px; max-width: 72vw; max-height: 72vw; border-radius: 10px; background: #fff; flex: none; }
.req { background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 9px 11px; margin: 8px 0; }
.req.done, .req.dismissed { border-left-color: var(--line2); }
.req .n { font-weight: 700; font-size: 15px; }
.req .quote { color: #d2d2d2; font-style: italic; margin-top: 5px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.45; }
.req a { word-break: break-all; }
.tabs .nbadge { line-height: 15px; min-width: 16px; font-size: 10.5px; vertical-align: 1px; }
.person .tiny { word-break: normal; overflow-wrap: anywhere; }
.settings .small a, .settings .hint a, .content > .hint a, .subtitle a { word-break: normal; }
/* ---------- round 2, Deploy 4: Research folder, photos, research results, public "Send Kosmo Lux your event" page ---------- */
.folder .block { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.folder .block h3 { color: var(--gold); font-size: 15px; margin-bottom: 8px; }
.nbadge.big { font-size: 12px; line-height: 20px; padding: 0 8px; vertical-align: 3px; }
.qa input, .qa textarea { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; color: var(--text); }
.qa textarea { margin-top: 8px; resize: vertical; line-height: 1.45; min-height: 56px; }
.qa input:focus, .qa textarea:focus { outline: none; border-color: var(--gold); }
.picked { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.picked:empty { display: none; }
.pthumb { position: relative; width: 64px; height: 86px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg3); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb .px { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; line-height: 26px; padding: 0; text-align: center; }
.ftools { margin: 14px 0 4px; }
.fchips .chip { cursor: pointer; }
.fchips .chip b { font-weight: 800; }
.req .frow { display: flex; gap: 10px; align-items: flex-start; }
.fthumb { position: relative; flex: none; width: 64px; height: 86px; padding: 0; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--bg3); }
.fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fthumb b { position: absolute; right: 3px; bottom: 3px; background: rgba(0,0,0,.8); color: var(--gold2); font-size: 11px; border-radius: 6px; padding: 0 5px; }
.fnote { margin-top: 6px; }
.fnote summary { cursor: pointer; color: var(--gold); font-size: 12.5px; font-weight: 600; padding: 2px 0; }
.fnote textarea { display: block; width: 100%; margin: 6px 0; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; color: var(--text); resize: vertical; min-height: 48px; line-height: 1.45; }
.fnote textarea:focus { outline: none; border-color: var(--gold); }
/* the photo viewer is its own scroller (position: fixed), so the page itself stays the only page-level scroller */
.pviewer { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96); overflow-y: auto; overscroll-behavior: contain; }
.pvbar { position: sticky; top: 0; display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #000; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pvbar b { color: var(--gold); font-size: 14px; margin-right: 4px; }
.pvimg { padding: 10px 10px 40px; display: flex; justify-content: center; }
.pvimg img { max-width: 100%; height: auto; border-radius: 6px; background: #fff; }
.review .rres { border-left-color: var(--line2); }
.review .rres.on { border-left-color: var(--gold); background: #1b1810; }
.restick { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 700; color: var(--gold2); font-size: 14px; cursor: pointer; }
.restick input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.warnline { color: var(--amber); margin-top: 6px; line-height: 1.45; }
.warnline a { color: var(--gold2); word-break: normal; }
.diff { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.diff th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 10px 4px 0; vertical-align: top; white-space: nowrap; width: 1%; border-top: 1px solid var(--line); }
.diff td { padding: 4px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.diff s { color: var(--dim); }
.rdet summary { cursor: pointer; color: var(--gold); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.rdet .kv { margin-top: 6px; }
.rdet .kv div:nth-child(even) { overflow-wrap: anywhere; white-space: pre-wrap; }
.login.submit { max-width: 540px; margin: 18px auto 40px; }
.form label.btn { color: #e6e6e6; font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; cursor: pointer; align-self: flex-start; }
.roles { display: flex; gap: 6px; flex-wrap: wrap; }
.form .role { display: inline-flex; position: relative; text-transform: none; letter-spacing: 0; }
.form .role input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.role span { border: 1px solid var(--line2); border-radius: 18px; padding: 8px 13px; font-size: 13.5px; font-weight: 600; color: #d0d0d0; background: var(--bg); cursor: pointer; }
.role input:checked + span { background: var(--gold); color: #000; border-color: var(--gold); }
.role input:focus-visible + span { outline: 2px solid var(--gold2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.content .hint { color: var(--dim); font-size: 12.5px; line-height: 1.45; }

/* ---------- round 2, Deploy 5: the Members tab (owner only) ---------- */
.nav.six a { font-size: 10.5px; }                 /* six buttons in the phone bar for the owner */
.nav.six a svg { width: 21px; height: 21px; }
.tag.new { background: #c0392b; color: #fff; font-weight: 800; }
.members .mtools { margin-top: 12px; }
.members .mchips { margin: 12px 0 4px; }
.members .mchips .chip b { font-weight: 800; }
.mname { color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; word-break: normal; overflow-wrap: anywhere; }
.mname:hover { color: var(--gold2); text-decoration: underline; }
.mcard { padding: 10px 12px; }
.mcard .tiny { margin-top: 2px; }
.mstats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.mstats b { color: var(--gold2); font-weight: 700; }
.mstats a { color: var(--gold2); word-break: normal; }
.mtable { display: none; }
.hsearch .iconbtn { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 900px) and (max-width: 1060px) { .brand .bname { display: none; } } /* small laptops: the logo alone leaves room for every tab */
@media (min-width: 900px) and (max-width: 1179px) {      /* small laptops and tablets: the cards, two side by side */
  .members .mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
}
@media (min-width: 1180px) {                              /* laptops: one table you can sort */
  .content.members { max-width: 1280px; }
  .members .mcards { display: none; }
  .mtable { display: block; overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
  .mtable table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .mtable th { text-align: left; padding: 0; border-bottom: 1px solid var(--line2); background: #000; }
  .msort { background: none; border: none; display: block; width: 100%; text-align: left; padding: 9px 10px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
  .msort:hover, .msort.on { color: var(--gold2); }
  .msort:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  .mtable td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .mtable td.nw { white-space: nowrap; }
  .mtable .mname { overflow-wrap: normal; }
  .mtable tr:last-child td { border-bottom: none; }
  .mtable tbody tr:hover td { background: var(--bg2); }
  .mtable td a { text-decoration: none; word-break: normal; }
  .mtable td a:hover { text-decoration: underline; }
  .mtable .mname { font-size: 13.5px; }
  .mtable td.mact { white-space: nowrap; text-align: right; }
  .mtable td.mact .btn + .btn { margin-left: 4px; }
}

/* ---------- round 2 clean-up (v0.00.08) ---------- */
.msg a { word-break: normal; overflow-wrap: anywhere; } /* text links in notes ("Back to the app") wrap between words; long web addresses still fit */
/* Show money: Booth fee · Booth size · Other costs · Sales — two by two on phones, one row on wide screens */
.money .four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; }
.money .four input { padding: 9px 10px; }
@media (min-width: 1180px) { .money .four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- v0.00.09 ---------- */
/* Promoters → Deleted promoters (owner): each one with a Restore button */
.delproms { margin-top: 14px; }
.delproms summary { cursor: pointer; color: var(--gold2); font-weight: 800; padding: 2px 0; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.drow:first-of-type { margin-top: 8px; }
/* Research folder: "Showing 50 of 312 · Show 50 more" */
.fmore { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 10px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }

/* ---------- v0.00.10: hearts, silver stars, ♥ Saved, the next-year calendar, the owner's 5-button bar ---------- */
/* the heart on a card (owner): ♡ grey, ♥ silver — silver = watching, gold = booked */
.hbtn { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #2f2f2f; background: #111; color: #7d7d7d; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.hbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.hbtn:hover { border-color: var(--line2); color: #cfcfcf; }
.hbtn.on { color: #ededed; border-color: #9a9a9a; background: #1c1c1c; }
.hbtn.on svg { fill: currentColor; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .35)); }
.hbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.card .hcol { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
@keyframes klxflash { from { box-shadow: 0 0 0 2px #e6e6e6; } to { box-shadow: 0 0 0 2px transparent; } }
.card.flash { animation: klxflash 1.4s ease-out; }
/* "Booked / Applied · ♥ Watching · Everything else" labels in a list with your picks on top */
.groupnote { color: #9a9a9a; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin: 10px 4px 2px; }
/* silver stars on a calendar day: one per market you ♥ ("☆×4" past 3); on a gold (booked) day they sit on a black chip */
.mcell .st { font: 700 10px/1.15 Inter, "Segoe UI Symbol", "Segoe UI", system-ui, sans-serif; color: #d6d6d6; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; margin-top: 2px; }
.mcell.busy .st { background: #000; color: #e0e0e0; border-radius: 4px; padding: 1px 3px; align-self: flex-start; max-width: 100%; }
.legend { color: var(--muted); font-size: 12px; margin: 6px 2px 0; line-height: 1.45; }
.legend b.g { color: var(--gold); }
.legend b.s { color: #e0e0e0; }
/* the market page's heart */
.hrow { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; flex-wrap: wrap; }
.dheart { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #3a3a3a; background: #111; color: #9a9a9a; border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 14px; touch-action: manipulation; }
.dheart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dheart:hover { border-color: #6a6a6a; color: #d6d6d6; }
.dheart.on { border-color: #9a9a9a; background: #1c1c1c; color: #ededed; }
.dheart.on svg { fill: currentColor; }
.hhint { color: var(--dim); font-size: 13px; }
/* ♥ Saved */
.offbar { background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--gold2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.4; margin: 8px 0; }
.past .card { opacity: .55; }
/* "2026 | 2027" on both calendars, "Promoters | Members" on both pages */
.yrsw { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px; flex-wrap: wrap; }
.yrsw a { border: 1px solid var(--line2); border-radius: 10px; padding: 5px 14px; font-weight: 800; font-size: 14px; color: #bdbdbd; background: #111; text-decoration: none; word-break: normal; touch-action: manipulation; }
.yrsw a:hover { border-color: var(--gold-dim); color: var(--gold2); }
.yrsw a.on { background: var(--gold); color: #000; border-color: var(--gold); }
.yrsw small { color: var(--dim); font-size: 12px; margin-left: 4px; }
.yrsw .nbadge { vertical-align: 1px; }
/* the 12 months in order, each with its market count (no markets = greyed) */
.monchips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 2px 0 8px; } /* two even rows on a phone */
.monchips a { border: 1px solid #333; border-radius: 8px; padding: 4px 2px; font-weight: 700; font-size: 12px; color: #cfcfcf; background: #141414; text-decoration: none; word-break: normal; white-space: nowrap; overflow: hidden; text-align: center; touch-action: manipulation; }
.monchips a b { color: var(--gold); margin-left: 3px; }
.monchips a:hover { border-color: var(--gold-dim); }
.monchips a.on { border-color: var(--gold); color: var(--gold2); background: var(--gold-bg); }
.monchips a.zero { opacity: .45; }
.monchips a.zero b { color: var(--muted); }
@media (min-width: 640px) and (max-width: 899px) { .monchips { grid-template-columns: repeat(12, minmax(0, 1fr)); } } /* tablets: one row */
/* the next-year calendar: its "Dates not announced" list folds */
.tbabox { margin-top: 6px; }
.tbabox > summary { cursor: pointer; list-style: none; }
.tbabox > summary::-webkit-details-marker { display: none; }
.tbabox > summary::before { content: '▸ '; }
.tbabox[open] > summary::before { content: '▾ '; }
/* bar buttons and tabs you can double-tap: no zoom on a double-tap, no tap delay */
.nav a, .tabs a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nav a .nbadge { white-space: nowrap; } /* a long count stays on one line */

/* ---------- v0.00.12: show money (every cost, cash + card each day), done shows, the money report and its pop-up calendar ---------- */
.money .grp, .review .grp { color: var(--gold); font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; margin-top: 4px; }
.money .two input { padding: 9px 10px; }
.money .cc { display: grid; grid-template-columns: minmax(52px, auto) minmax(0, 1fr) minmax(0, 1fr) minmax(58px, auto); gap: 6px 8px; align-items: center; }
.money .cc .hd { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.money .cc .hd.r, .money .cc .t { text-align: right; }
.money .cc .d { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.money .cc input { padding: 9px 10px; min-width: 0; }
.money .cc .t { color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.money .oldsales { background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--gold2); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.45; }
.sumline { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: #ddd; font-size: 14px; line-height: 1.55; }
.sumline b { color: #fff; } .sumline small { color: var(--muted); font-size: 12px; }
.sumline b.pos { color: var(--green); } .sumline b.neg { color: var(--red); }
.tag.done { background: #14361f; color: #5fdc8f; border: 1px solid #2c7a4b; }
.review .stars { display: flex; gap: 4px; margin: 2px 0 8px; }
.review .star { background: none; border: none; font-size: 30px; line-height: 1; color: #444; padding: 2px 3px; cursor: pointer; }
.review .star.on { color: var(--gold); }
.review .pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.review .pill { border: 1px solid var(--line2); border-radius: 10px; padding: 7px 16px; font-weight: 800; font-size: 14px; color: var(--muted); background: var(--bg2); cursor: pointer; }
.review .pill.on { background: var(--gold); color: #000; border-color: var(--gold); }
.review .sumline { margin-top: 10px; }
.lasttime { margin-top: 8px; background: #1a160a; border: 1px solid var(--gold-dim); border-radius: 10px; padding: 7px 10px; color: var(--gold2); font-size: 13px; font-weight: 700; line-height: 1.45; }
.lasttime small { color: #cfcfcf; font-weight: 500; }
.lasttime a { color: var(--gold); }
.mdates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; cursor: pointer; }
.mdates div { background: var(--bg2); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 6px 10px; color: #fff; font-size: 14px; }
.mdates small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.mrange .chip { cursor: pointer; }
.rcwrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .65); display: flex; align-items: flex-end; justify-content: center; }
.rcsheet { background: #050505; border: 1px solid var(--line2); border-bottom: none; border-radius: 16px 16px 0 0; width: 100%; max-width: 520px; max-height: 94vh; overflow: auto; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.rchd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.rchd b { color: #fff; font-size: 16px; } .rchd small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mgrid.pick .mcell { min-height: 50px; }
.mgrid.pick .mcell.inr { background: var(--gold-bg); border-color: var(--gold-dim); }
.mgrid.pick .mcell.ends { outline: 2px solid var(--gold2); outline-offset: -2px; }
.mgrid.pick .mcell.busy { background: var(--gold); border-color: var(--gold); }
.rcfoot { display: flex; gap: 8px; margin-top: 12px; } .rcfoot .btn.gold { flex: 1; }
@media (min-width: 900px) { .rcwrap { align-items: center; } .rcsheet { border-radius: 16px; border-bottom: 1px solid var(--line2); } }

/* ---------- v0.00.13: the version tag, the Update now bar, Settings → About ---------- */
.vchip { flex-shrink: 0; margin-left: -4px; border: 1.5px solid var(--gold-dim); color: var(--gold2); background: var(--gold-bg); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800; letter-spacing: .2px; text-decoration: none; white-space: nowrap; line-height: 1.35; }
.vchip:hover { border-color: var(--gold); }
@media (max-width: 359px) { .vchip { display: none; } }
.upbar { display: flex; align-items: center; gap: 10px; background: var(--gold); color: #000; padding: 9px 14px; font-weight: 800; font-size: 14px; line-height: 1.3; }
.upbar .grow small { display: block; font-weight: 600; font-size: 12px; color: #3a2f08; }
.upbar .upbtn { background: #000; color: var(--gold2); border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 800; font-size: 14px; white-space: nowrap; font-family: inherit; }
.updcover { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.updcover > div { background: #000; border: 2px solid var(--gold); border-radius: 14px; padding: 16px 20px; color: #fff; font-weight: 800; font-size: 16px; line-height: 1.4; text-align: center; max-width: 330px; }
.updcover small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.updcover .spin { display: inline-block; width: 18px; height: 18px; border: 3px solid #444; border-top-color: var(--gold); border-radius: 50%; vertical-align: -3px; margin-right: 8px; animation: klxspin .8s linear infinite; }
@keyframes klxspin { to { transform: rotate(360deg); } }
.uptodate { color: var(--green); font-weight: 800; font-size: 13px; }
.upnote { color: var(--gold2); font-weight: 800; font-size: 13px; }
#about { scroll-margin-top: calc(var(--head-h) + 12px); }
.switch { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; font-weight: 700; font-size: 14px; color: #fff; }
.switch input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; background: #3a3a3a; position: relative; margin: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #bdbdbd; transition: left .15s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { left: 21px; background: #000; }
.switch input:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.switch small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; line-height: 1.4; }

/* ---------- v0.00.14: Directions and Add to Google Calendar at the top of a show's page ---------- */
.qact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qact .btn { font-size: 14px; padding: 8px 12px; }
.qact .btn.qdir { border-color: var(--gold-dim); color: var(--gold2); }
.qhint { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.4; }
.qhint b { color: var(--text); }
/* v0.00.14: Show / Hide on every password box */
.pwbox { position: relative; width: 100%; }
.pwbox input { width: 100%; padding-right: 86px; }
.pweye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; border-radius: 8px; color: var(--gold2); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 9px; cursor: pointer; }
.pweye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pweye[aria-pressed="true"] svg { opacity: .55; }
.pweye:focus-visible { outline: 2px solid var(--gold2); }

/* v0.00.15: Send to Kosmo Lux, big and gold, at the top of an invited member's own market */
.sendbig { margin: 12px 0 14px; }
.sendcta { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 62px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(180deg, #f8df86 0%, #d4af37 58%, #b8932a 100%); color: #000; font-size: 21px; font-weight: 900; letter-spacing: .2px; line-height: 1.2; text-decoration: none; text-align: center; box-shadow: 0 0 0 2px rgba(243, 215, 116, .45), 0 10px 30px rgba(212, 175, 55, .3); animation: klxsend 2.4s ease-in-out infinite; }
.sendcta:hover { filter: brightness(1.05); }
.sendcta:active { transform: translateY(1px); }
@keyframes klxsend { 0%, 100% { box-shadow: 0 0 0 2px rgba(243, 215, 116, .45), 0 10px 30px rgba(212, 175, 55, .3); } 50% { box-shadow: 0 0 0 6px rgba(243, 215, 116, .22), 0 12px 38px rgba(212, 175, 55, .55); } }
@media (prefers-reduced-motion: reduce) { .sendcta { animation: none; } }
.sendsub { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-align: center; }
/* v0.00.15: a member's market already sent */
.sendbig.sent { border: 1px solid rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); border-radius: 14px; padding: 12px 14px; }
.sentline { font-size: 16px; font-weight: 800; color: #86efac; text-align: center; }
.sendbig.sent .sendsub a { color: var(--gold); font-weight: 700; }
/* v0.00.15: 🔍 Re-check — tick shows (or Select all), then Send to Research folder */
.rkbtns { margin-top: 8px; gap: 8px; flex-wrap: wrap; align-items: center; }
.rktools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 8px; }
.rkall { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.rkall input, .rkpick input { width: 22px; height: 22px; accent-color: var(--gold); cursor: pointer; }
.rktools a { color: var(--gold); }
.rkcard { display: flex; gap: 10px; align-items: flex-start; }
.rkcard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.rkcard.waiting { opacity: .78; }
.rkpick { flex: none; padding: 2px 2px 8px; cursor: pointer; }
.rkpick input:disabled { opacity: .35; cursor: default; }
.rkmain { flex: 1; min-width: 0; }
.recheck { padding-bottom: 90px; }
.rkbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 30; padding: 0 12px; pointer-events: none; }
.rkbar-in, .rkbar .tiny { max-width: 560px; margin: 0 auto; pointer-events: auto; }
.rkbar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #000; border: 2px solid var(--gold); border-radius: 14px; padding: 8px 8px 8px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .6); }
.rkbar-in .btn { flex: none; }
.rkbar .tiny { text-align: center; color: var(--muted); background: #000; border-radius: 8px; margin-top: 4px; padding: 2px 6px; width: fit-content; }
@media (min-width: 900px) { .rkbar { bottom: 18px; } }

/* v0.00.16 (a1): map engine — public/map.js (window.KlxMap). A view renders <div class="km-slot" data-map="KEY"></div>;
   the map inside is .km-map. Map pictures © OpenStreetMap contributors: the credit must stay visible (never cover it). */
.km-slot { display: block; }
.km-map { position: relative; overflow: hidden; height: 55vh; min-height: 280px; background: #121212; border: 1px solid var(--line2); border-radius: var(--radius); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: grab; outline: none; isolation: isolate; }
.km-map.km-drag { cursor: grabbing; }
.km-map:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.km-tiles { position: absolute; inset: 0; filter: brightness(.93); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; }
.km-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; max-height: none; opacity: 0; transition: opacity .2s; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.km-tile.km-on { opacity: 1; }
.km-rings { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.km-ring-bg { fill: none; stroke: rgba(0,0,0,.5); stroke-width: 5; }
.km-ring { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 9 7; }
.km-rlab { font: 700 12px Inter, "Segoe UI", Roboto, system-ui, sans-serif; fill: var(--gold2); stroke: #000; stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; text-anchor: middle; dominant-baseline: central; }
.km-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.km-pin { position: absolute; left: 0; top: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-width: var(--d, 18px); height: var(--d, 18px); margin: 0; padding: 0 4px; border: 2px solid #000; border-radius: 999px; background: var(--km-c, #d4af37); color: #000; font: 800 11px/1 Inter, "Segoe UI", Roboto, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.55); pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.km-pin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; } /* a finger-sized target around small pins */
.km-pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.km-s1 { --d: 18px; font-size: 9px; padding: 0 2px; }
.km-s2 { --d: 24px; font-size: 11px; }
.km-s3 { --d: 32px; font-size: 13px; }
.km-gold { --km-c: #d4af37; } .km-green { --km-c: #22c55e; } .km-red { --km-c: #ef4444; } .km-gray { --km-c: #8a8a8a; } .km-blue { --km-c: #60a5fa; }
.km-solo { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.6); }
.km-grp { --d: 30px; color: #fff; font-size: 12px; background: radial-gradient(closest-side, #141414 calc(100% - 4px), transparent calc(100% - 3px)), var(--km-ring, var(--gold)); }
.km-g2 { --d: 36px; font-size: 13px; }
.km-g3 { --d: 42px; font-size: 13px; }
.km-ctl { position: absolute; right: 8px; top: 8px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.km-ctl button { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 10px; background: #141418; color: var(--gold); font: 700 22px/1 Inter, "Segoe UI", Roboto, system-ui, sans-serif; }
.km-ctl button:hover { border-color: var(--gold); color: var(--gold2); }
.km-ctl button:disabled, .heat-page .hp-mapbox .km-ctl button:disabled { cursor: default; color: rgba(212, 175, 55, .38); border-color: var(--line); } /* (v0.00.34, the look check: solid like the heat map's (#141418, was black 82%), so the bold state line never shows through + or −; when one can't be used it stays solid — its symbol and edge go dim instead of the whole button) */
.km-note { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 64px); z-index: 3; background: var(--amber-bg); color: var(--amber); border: 1px solid #5a4a1a; border-radius: 8px; padding: 6px 9px; font-size: 12px; line-height: 1.35; pointer-events: none; }
.km-note[hidden] { display: none; }
.km-credit { position: absolute; right: 0; bottom: 0; z-index: 3; background: rgba(0,0,0,.72); border-top-left-radius: 8px; padding: 3px 7px; font-size: 11px; line-height: 1.25; }
.km-credit a { color: #e6e6e6; text-decoration: none; word-break: normal; }
.km-credit a:hover { text-decoration: underline; }
.km-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; background: var(--km-c, #d4af37); box-shadow: 0 0 0 1px rgba(255,255,255,.3); vertical-align: -1px; } /* legend dot matching the pins: <span class="km-dot km-green"></span> */
@media (min-width: 900px) { .km-map { height: 60vh; min-height: 360px; } }
@media (max-height: 520px) { .km-map { height: 62vh; min-height: 180px; } } /* (review #6: a phone held sideways still has page to scroll past the map) */

/* v0.00.16 (a2): 🗺 Markets near you (#/map) — date and filter chips, From / To boxes, the legend under the map, the card
   for a tapped pin (one market, home, or several on one spot), the count line. The map itself is a1's (.km-*). */
.chip.mapv-calbtn { text-decoration: none; word-break: normal; border-color: var(--gold-dim); color: var(--gold2); cursor: pointer; } /* the Calendar's 🗺 Map */
.chip.mapv-calbtn:hover { border-color: var(--gold); }
.mapv .mapv-chips { margin: 8px 0 0; }
.mapv .mapv-chips .chip { cursor: pointer; }
.mapv .mapv-chips .chip b { font-weight: 800; margin-left: 2px; }
.mapv-when { color: var(--muted); font-size: 12.5px; margin: 6px 2px 0; }
.mapv-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; max-width: 420px; }
.mapv-dates label { display: block; min-width: 0; background: var(--bg2); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 5px 10px 4px; cursor: pointer; }
.mapv-dates small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.mapv-dates input { display: block; width: 100%; min-width: 0; background: transparent; border: 0; padding: 1px 0 2px; color: #fff; font-size: 14px; color-scheme: dark; }
.mapv-dates input:focus { outline: none; }
.mapv-dates label:focus-within { border-color: var(--gold); }
.mapv-slot { display: block; margin: 10px 0 0; min-height: 280px; }
.mapv-nomap { margin: 10px 0 0; padding: 22px 14px; border: 1px dashed var(--line2); border-radius: var(--radius); color: var(--muted); font-size: 13.5px; text-align: center; line-height: 1.45; }
.mapv-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; margin: 8px 2px 0; line-height: 1.5; }
.mapv-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mapv-dot { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; box-shadow: 0 0 0 1px #555; flex: none; font: 800 8px/1 Inter, system-ui, sans-serif; font-style: normal; color: #000; }
.mapv-dot.gold { background: #d4af37; } .mapv-dot.blue { background: #60a5fa; } .mapv-dot.green { background: #22c55e; } .mapv-dot.gray { background: #8a8a8a; }
.mapv-dot.mapv-num { width: 19px; height: 19px; color: #fff; font-size: 9px; background: radial-gradient(closest-side, #141414 calc(100% - 3px), transparent calc(100% - 2px)), conic-gradient(#d4af37 0 25%, #60a5fa 0 50%, #22c55e 0 75%, #8a8a8a 0); } /* like the map's group pins */
.mapv-star { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #000; background: #d4af37; color: #000; font: 800 9px/1 Inter, system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); flex: none; } /* like the map's home ★ */
.mapv-ring { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--gold); flex: none; }
.mapv-far { color: var(--muted); font-size: 13px; margin: 4px 2px 0; line-height: 1.45; } /* (v0.00.34, the look check: it tells you what to do — the legend's color, about 7.7:1; was the faint grey, 3.87:1, at 12 px) */
.mapv-card { background: var(--bg2); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 11px 13px 12px; margin: 10px 0 2px; scroll-margin: calc(var(--head-h) + 10px) 0 calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
.mapv-chd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mapv-name { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; word-break: normal; overflow-wrap: anywhere; min-width: 0; }
a.mapv-name:hover { color: var(--gold2); }
.mapv-x { flex: none; background: transparent; border: 1px solid var(--line2); border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1; padding: 6px 8px; }
.mapv-x:hover { color: var(--gold2); border-color: var(--gold-dim); }
.mapv-m { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.mapv-m b { color: var(--gold); }
.mapv-tags { margin-top: 7px; display: flex; gap: 5px; flex-wrap: wrap; }
.mapv-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.mapv-btns .btn.mapv-dir { border-color: var(--gold-dim); color: var(--gold2); }
.mapv-btns .hbtn { margin-left: auto; }
.mapv-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: #111; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-top: 6px; color: inherit; }
.mapv-row b { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mapv-row span { color: var(--muted); font-size: 12.5px; }
.mapv-row:hover { border-color: var(--gold-dim); }
.mapv-count { color: #e6e6e6; font-size: 14px; margin: 14px 2px 4px; line-height: 1.4; }
.mapv-count b { color: var(--gold); font-weight: 800; }
.mapv .nearnote { margin: 0 2px 6px; }
@media (min-width: 900px) { .mapv-card { scroll-margin-bottom: 14px; } .mapv-card, .mapv-dates { max-width: 640px; } }
/* v0.00.34 (Michael, Nov 11 10:50 AM — the ring picker, version 2): the Rings box right below the 🗺 map. Gold border on near-black,
   a gold ring like the map's (never the red ⭕), 5 chips a row on a phone (each a button: on = gold with a ✓), your own numbers
   with a round ✕, "Your own number" + Add, "N of 5 on" + Back to start; no Save button — a green "✓ Saved" shows over the foot
   of the map for a moment after each save (just above the map's © OpenStreetMap credit, never on it). Nothing here is wider than the phone (390 px: chips ~62 px). */
.mrp { position: relative; margin: 10px 0 0; border: 2px solid var(--gold); border-radius: 14px; padding: 12px; background: #151005; }
.mrp-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mrp-ic { display: block; flex: none; }
.mrp-t { color: #ffd75e; font-size: 16px; font-weight: 800; line-height: 1.2; }
.mrp-sub { margin-left: auto; color: #cfc6ae; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mrp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 10px 0 9px; }
.mrp-pk { position: relative; display: block; width: 100%; min-width: 0; min-height: 40px; padding: 8px 2px; border: 2px solid #444; border-radius: 11px; background: transparent; color: #ddd; font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.mrp-pk:hover { border-color: var(--gold-dim); }
.mrp-pk.own { border-style: dashed; }
.mrp-pk.on { background: var(--gold); border: 2px solid var(--gold); color: #111; }
.mrp-pk.on::after { content: '✓'; position: absolute; top: 1px; right: 5px; font-size: 11px; line-height: 1.2; }
.mrp-pk.just { box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.mrp-ow { position: relative; display: block; min-width: 0; }
.mrp-x { position: absolute; top: -8px; left: -8px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1.5px solid var(--gold); border-radius: 50%; background: #111; color: #ffd75e; font-size: 11px; font-weight: 800; line-height: 1; }
.mrp-x:hover { background: var(--gold-bg); }
.mrp-add { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mrp-add input { flex: 1 1 auto; width: 0; min-width: 0; padding: 9px 10px; border: 1.5px solid #555; border-radius: 10px; background: #222; color: #fff; font-size: 16px; font-weight: 600; } /* (16 px: a phone doesn't zoom in on it) */
.mrp-add input::placeholder { color: #8a8a8a; }
.mrp-add input:focus { outline: none; border-color: var(--gold); }
.mrp-mi { flex: none; color: #ccc; font-size: 14px; }
.mrp-addb { flex: none; min-height: 40px; padding: 7px 12px; border: 2px solid var(--gold); border-radius: 10px; background: transparent; color: #ffd75e; font-size: 14.5px; font-weight: 800; }
.mrp-addb:hover { background: var(--gold-bg); }
.mrp-ft { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: #cfc6ae; font-size: 12.5px; line-height: 1.35; }
.mrp-reset { flex: none; margin-left: auto; padding: 6px 0; border: 0; background: none; color: #e2b33a; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
.mrp-pk:focus-visible, .mrp-x:focus-visible, .mrp-addb:focus-visible, .mrp-reset:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.mrp-msg { margin-top: 8px; color: var(--gold2); font-size: 13px; line-height: 1.4; }
.mrp-msg:empty { margin-top: 0; } /* (still in the page: a screen reader hears what comes next) */
.mrp-msg.bad { color: var(--red); }
.mrp-saved { position: absolute; left: 50%; top: -44px; z-index: 6; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 99px; background: #1f7a3f; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); pointer-events: none; opacity: 0; transition: opacity .2s; }
.mrp-saved.on { opacity: 1; }
.mrp-saved.wait { background: #2b2b2b; color: #e6e6e6; }
.mrp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 700px) { .mrp { max-width: 640px; } }

/* v0.00.16 (a3): 💰 Where you make money — your done shows on a map: the From / To boxes, the summary line, the legend
   (its dots have the pins' own colors, KlxMap.COLORS), the card under the map for the pin you tap (it reuses the report's
   .money-tot tiles), the link back to the report */
.mm-range { margin: 8px 0; }
.mm-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.mm-dates label { display: block; min-width: 0; background: var(--bg2); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 5px 10px 4px; cursor: pointer; }
.mm-dates small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.mm-dates input { display: block; width: 100%; min-width: 0; background: transparent; border: 0; padding: 1px 0 2px; color: #fff; font-size: 14px; color-scheme: dark; }
.mm-dates input:focus { outline: none; }
.mm-dates label:focus-within { border-color: var(--gold); }
.mm-sum { color: #ddd; font-size: 14px; line-height: 1.5; margin: 2px 2px 8px; overflow-wrap: anywhere; }
.mm-sum b { color: #fff; } .mm-sum b.pos { color: var(--green); } .mm-sum b.neg { color: var(--red); }
.mm-sum small { color: var(--muted); font-size: 12.5px; }
.mm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--muted); font-size: 12px; margin: 7px 2px 4px; }
.mm-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mm-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.mm-dot.g { background: #22c55e; } .mm-dot.r { background: #ef4444; } .mm-dot.n { background: #8a8a8a; }
.mm-home { color: var(--gold); font-size: 15px; line-height: 1; }
.mm-card { background: var(--bg2); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0 4px; scroll-margin-bottom: calc(var(--nav-h) + 12px); }
.mm-show + .mm-show { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.mm-chead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mm-chead .btn { flex: none; }
.mm-many { margin-bottom: 6px; color: var(--gold2); font-size: 14px; }
.mm-name { color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.3; text-decoration: none; word-break: normal; overflow-wrap: anywhere; }
.mm-name:hover { color: var(--gold2); }
.mm-when { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 3px; }
.mm-tot { margin: 8px 0 6px; }
.mm-tot b.pos, .mm-row .dist.pos { color: var(--green); } .mm-tot b.neg { color: var(--red); } /* (the pins' colors: green made money, red lost money) */
.mm-days { color: #d6d6d6; font-size: 12.5px; line-height: 1.5; }
.mm-days b.pos { color: var(--green); } .mm-days b.neg { color: var(--red); }
.mm-parts { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 2px; }
.mm-none { color: #d6d6d6; font-size: 13px; line-height: 1.45; margin-top: 8px; }
.mm-none a { color: var(--gold); word-break: normal; }
.mm-nomap { background: var(--bg2); border: 1px dashed var(--line2); border-radius: var(--radius); color: var(--muted); padding: 22px 14px; text-align: center; font-size: 13.5px; line-height: 1.45; }
.mm-links { margin-top: 12px; }
.mm-go { margin: -2px 0 10px; }

/* v0.00.16 (a4): the gas estimate under Show money's Gas box, and Settings → ⛽ Gas */
.gas-est { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; border-left: 3px solid var(--gold-dim); border-radius: 0 10px 10px 0; background: var(--bg2); color: var(--muted); font-size: 13px; line-height: 1.45; }
.gas-est a { display: inline; margin-top: 0; color: var(--gold); font-weight: 700; word-break: normal; }
.gas-line { flex: 1 1 220px; min-width: 0; color: #d6d6d6; }
.gas-line b { color: #fff; font-size: 14px; }
.gas-src { color: var(--muted); font-size: 12px; white-space: nowrap; }
.gas-use { flex: none; }
.gas-block .switch { margin-top: 2px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.gas-block .switch input { width: 42px; padding: 0; border: none; }
.gas-tx { color: #d6d6d6; font-size: 13.5px; line-height: 1.45; }
.gas-tx:empty { display: none; }
.gas-tx b { color: var(--gold2); }
.gas-tx a { color: var(--gold); word-break: normal; white-space: nowrap; }
.gas-note { flex: 1 1 auto; min-width: 0; }
.gas-warn { color: var(--amber); }
.gas-msg:empty { display: none; }
.gas-block { scroll-margin-top: calc(var(--head-h) + 12px); } /* (the link under the Gas box opens Settings here, below the header) */

/* v0.00.16 (a5): ⛽ Gas on the way — the button next to 🧭 Directions, its panel under that row (start point, the station
   list, Google's credit) and the Settings line. The panel is its own box (Google: keep its content visibly apart), and the
   "Google Maps" credit follows Google's text rules: Roboto or a plain sans-serif, 400 weight, 12–16 px, white, one line. */
.qact .btn.gr-btn { border-color: var(--gold-dim); }
.qact .btn.gr-btn.on { background: var(--gold-bg); border-color: var(--gold); color: var(--gold2); }
.gr-panel { margin-top: 10px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 12px; }
.gr-from { display: flex; gap: 6px; flex-wrap: wrap; }
.gr-from .gr-chip { font-size: 13px; padding: 7px 12px; }
.gr-from .gr-chip:disabled { opacity: .6; cursor: default; }
.gr-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 16px 2px 6px; }
.gr-spin { flex: none; width: 18px; height: 18px; border: 3px solid #444; border-top-color: var(--gold); border-radius: 50%; animation: klxspin .8s linear infinite; }
.gr-msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 14px; line-height: 1.4; }
.gr-msg.gr-warn { background: var(--amber-bg); color: var(--amber); }
.gr-head { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.gr-head b { color: var(--gold2); }
.gr-dt { white-space: nowrap; }
.gr-sub { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.gr-list { list-style: none; margin: 10px 0 0; padding: 0; }
.gr-st { padding: 10px 0; border-top: 1px solid var(--line); }
.gr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gr-name { font-weight: 700; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.gr-price { flex: none; font-weight: 800; font-size: 19px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.gr-addr { margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.gr-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.gr-meta a { word-break: normal; white-space: nowrap; }
.gr-st.gr-old .gr-price, .gr-st.gr-none .gr-price { color: var(--dim); font-weight: 700; }
.gr-st.gr-old .gr-meta span { color: var(--amber); }
.gr-empty { margin-top: 10px; color: var(--muted); font-size: 14px; }
.gr-credit { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.gr-gm { font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; color: #fff; white-space: nowrap; }
.gr-credit a { word-break: normal; }
.gr-note { margin-top: 6px; font-size: 12px; color: var(--dim); line-height: 1.4; }
.gr-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gr-left { font-size: 12px; color: var(--muted); }
.gr-set { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gr-set.ok { color: var(--green); }
.gr-set.ok b { color: var(--text); }
/* (r1 #1) Google Maps Platform Terms 3.2.3(e): no Google content with or near a non-Google map. While the station list is
   on screen, every OpenStreetMap map on the page is hidden: on laptops a show opened from 🗺 Markets near you or 💰 Where
   you make money sits beside that map page (two panes); on phones a show covers the list, so the second selector only
   guards odd cases. The map comes back as soon as the panel closes. */
.main.two:has(.gr-panel) .pane-list .km-slot, #app:has(.gr-panel) .km-slot { display: none !important; }

/* v0.00.17 (supervisor): 🔑 signing in when you already have an account — the invite page's "Sign in instead", the sign-in
   page's forgot-password line, the public page's "Invited by Kosmo Lux? Sign in →" */
.signin-alt { margin-top: 18px; padding: 12px; text-align: center; border: 1px solid var(--line, #2a2a2a); border-radius: 12px; background: #111; }
.signin-alt > div:first-child { font-size: 15px; color: #ddd; }
.signin-alt .btn { margin-top: 8px; display: inline-block; }
.signin-alt .tiny { margin-top: 8px; line-height: 1.4; }
.signin-forgot { text-align: center; margin-top: 14px; line-height: 1.45; }
.signin-foot { text-align: center; margin-top: 18px; font-size: 15px; color: #ddd; }
.signin-foot a { color: var(--gold2, #f3d774); font-weight: 700; }

/* v0.00.17 (h2): 💬 messages */
.msg-tagw { display: contents; }
.tag.msg-tag { background: var(--gold); color: #000; font-weight: 700; }
.msg-wrap { margin-top: 8px; }
.msg-wrap:empty { display: none; }
.msg-thread { display: flex; flex-direction: column; gap: 6px; }
.msg-b { background: #0a0a0a; border: 1px solid var(--line2); border-radius: 12px; padding: 7px 10px; max-width: 92%; align-self: flex-start; }
.msg-b.msg-mine { border-color: var(--gold-dim); border-left: 3px solid var(--gold); align-self: flex-end; background: #12100a; }
.msg-h { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.msg-mine .msg-h { color: var(--gold); }
.msg-t { font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; color: var(--text); }
.msg-new { display: inline-block; background: var(--gold); color: #000; font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 6px; margin-left: 4px; letter-spacing: .4px; }
.msg-box { margin-top: 8px; }
.msg-box textarea { width: 100%; box-sizing: border-box; min-height: 58px; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; resize: vertical; }
.msg-box textarea:focus { outline: none; border-color: var(--gold); }
.msg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.msg-sent { color: var(--gold); font-size: 13px; font-weight: 700; }
.msg-err { color: #ff8a8a; font-size: 13px; font-weight: 600; }
a.btn.msg-link { text-decoration: none; }

/* v0.00.17 (h1): 🗑 Delete in the Research folder — the 🗑 Delete / ↩ Restore buttons on a folder card, the DELETED tag
   (Deleted list), the hint over that list, and the Undo note: fixed just above the phone's bottom bar (laptop: near the
   bottom of the window), one at a time, its buttons big enough for a thumb. */
.btn.del-btn { color: var(--red); border-color: #5a2b2b; }
.btn.del-btn:hover { background: var(--red-bg); }
.btn.del-restore { font-weight: 700; }
.tag.del-tag { background: var(--red-bg); color: var(--red); }
.del-hint { margin-top: 8px; }
.del-toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; background: #000; color: var(--text); border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.6); font-size: 14px; }
.del-tmsg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.del-tmsg b { color: var(--gold2); font-weight: 700; }
.del-dot { flex: none; color: var(--dim); }
.del-undo { flex: none; min-height: 44px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--gold); color: #000; font-weight: 800; font-size: 15px; touch-action: manipulation; }
.del-undo:disabled { opacity: .6; }
.del-x { flex: none; min-height: 44px; min-width: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 16px; touch-action: manipulation; }
.del-toast ~ .toast { bottom: calc(var(--nav-h) + 76px); } /* (a plain note at the same time sits above it) */
@media (min-width: 900px) {
  .del-toast { bottom: 24px; }
  .del-toast ~ .toast { bottom: 88px; }
}
.msg-chipnew { margin-left: 4px; background: var(--gold); color: #000; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 800; } /* (supervisor: the chip of a list with a new 💬 answer) */

/* v0.00.18 (a3): 📎 files — Quick add's "📎 Add a PDF or file" with the picked files (📄 name · size · ✕, a long name
   shortened with …, the ✕ big enough for a thumb), the progress line while they upload, and a folder card's "📎 Add file"
   (its progress or problem line goes under the card's buttons, on a line of its own). */
.docup-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.docup-file { display: flex; align-items: center; gap: 6px; min-width: 0; background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; padding: 0 2px 0 10px; min-height: 46px; font-size: 14px; }
.docup-file.docup-now { border-color: var(--gold); background: var(--gold-bg); }
.docup-ico { flex: none; }
.docup-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docup-size { flex: none; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.docup-x { flex: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 16px; touch-action: manipulation; cursor: pointer; }
.docup-x:hover { color: var(--gold2); background: var(--bg2); }
.btn.docup-off { opacity: .55; pointer-events: none; }
.docup-prog { margin-top: 8px; color: var(--gold2); font-size: 13.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.docup-prog::before { content: "⏳ "; }
.docup-err { margin-top: 8px; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.docup-wrap { display: contents; }
.docup-line { order: 10; flex: 1 0 100%; margin-top: 0; }

/* v0.00.18 (a4): 📎 files on a Research-folder card — one row per file: icon by type, the name (wraps to two lines, then
   shortens; the whole name is in its tooltip), "PDF · 2.3 MB", Open and ✕ (thumb-sized). The Undo note after ✕ is 🗑 Delete's
   note (.del-toast) plus .doc-toast; if both notes show at once, the newer one sits above the other. */
.doc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; min-width: 0; }
.doc-list:empty { display: none; }
.doc-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 4px 4px 10px; background: #0a0a0a; border: 1px solid var(--line2); border-radius: 12px; }
.doc-ic { flex: none; font-size: 22px; line-height: 1; }
.doc-main { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-meta { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.btn.doc-open { flex: none; min-height: 40px; min-width: 64px; padding: 0 14px; justify-content: center; border-color: var(--gold-dim, #6b5a1e); color: var(--gold2); white-space: nowrap; }
.btn.doc-open:disabled { opacity: .75; cursor: progress; }
.doc-x { flex: none; min-height: 44px; min-width: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; touch-action: manipulation; }
.doc-x:hover, .doc-x:focus-visible { color: var(--red); background: var(--red-bg); }
.doc-toast ~ .del-toast:not(.doc-toast), .del-toast:not(.doc-toast) ~ .doc-toast { bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .doc-toast ~ .del-toast:not(.doc-toast), .del-toast:not(.doc-toast) ~ .doc-toast { bottom: 88px; }
}

/* v0.00.18 (Michael, Oct 25): 📝 Apply → his Apply Kit (owner only). On the event page it sits under the Links; on the
   Deadlines page inside each row's frame, bottom left (a sibling of the row's link, so tapping the row still opens the event) */
.aprow { margin-top: 8px; }
.dlwrap { position: relative; }
.dlwrap > .card.has-apply { padding-bottom: 47px; }
.dlwrap > .dlapply { position: absolute; left: 13px; bottom: 11px; }

/* v0.00.19: 🆕 New — its count is gold (the red counts are for things waiting on you) */
.nbadge.gold { background: var(--gold); color: #000; }

/* ---------- v0.00.20: tiers — 🔒 locks, ⭐ My plan, ⚙️ Tiers & Features, each person's tier & add-ons ---------- */
/* the 🔒 lock in a locked feature's place (Michael's mockup): a dashed gold box, the feature in small gold capitals,
   "Available in <b>Member</b>" under it; a tap opens ⭐ My plan */
.lockbox { display: block; margin: 12px 0 0; padding: 9px 12px 10px; border: 1.5px dashed var(--gold-dim); border-radius: 10px; background: #15120a; color: #d6d6d6; text-decoration: none; word-break: normal; overflow-wrap: anywhere; }
.lockbox:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.lockbox .lk-h { display: block; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; line-height: 1.35; }
.lockbox .lk-v { display: block; margin-top: 3px; font-size: 14px; color: #cfcfcf; }
.lockbox .lk-v b { color: var(--gold); font-weight: 800; }
.lockbox + .lockbox { margin-top: 8px; }
.settings .block .lockbox { margin-top: 4px; }
.lockpage { margin-top: 10px; max-width: 560px; }
.lockpage .small { margin-top: 10px; line-height: 1.45; }
.lockpage .btns { margin-top: 12px; }
.tag.lk { background: var(--gold-bg); color: var(--gold2); border: 1px solid var(--gold-dim); font-weight: 700; }
.tag.gold-o { background: var(--gold-bg); color: var(--gold2); border: 1px solid var(--gold-dim); font-weight: 700; }
.card.locked .n { color: #cfcfcf; }
.card.locked .m { color: var(--dim); }
.card.locked .tag.lk { margin-left: 4px; vertical-align: 2px; }
/* the blocks of the three new pages look like Settings' blocks */
.plan .block, .tiers .block, .pperson .block { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.plan .block h3, .tiers .block h3, .pperson .block h3 { color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.plan .subtitle b.gold { color: var(--gold); }
/* ⭐ My plan: one feature per row — ✓ (green) when included, the tier it opens in when locked */
.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: #e6e6e6; text-decoration: none; }
.block h3 + .pl-row, .pl-all > summary + .pl-row { border-top: 0; }
.pl-row.sm { font-size: 13px; padding: 6px 0; }
.pl-t { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.pl-ok { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 800; }
.pl-row .tag { flex: none; }
.pl-all { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.pl-all > summary { cursor: pointer; color: var(--gold); font-size: 13px; font-weight: 700; padding: 4px 0; }
/* ⚙️ Tiers & Features: each group of features is a table — Feature | Basic | Member | Pro | VIP — with a gold box per tier */
.tiers .subtitle { margin-bottom: 2px; }
.tform { padding-bottom: 8px; }
.tgroup > summary, .tprices > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--gold); font-size: 15px; font-weight: 700; }
.tgroup > summary::-webkit-details-marker, .tprices > summary::-webkit-details-marker { display: none; }
.tgroup > summary::before, .tprices > summary::before { content: '▾'; color: var(--gold-dim); font-size: 12px; margin-right: -4px; }
.tgroup:not([open]) > summary::before, .tprices:not([open]) > summary::before { content: '▸'; }
.tgroup > summary span, .tprices > summary span { flex: 1; min-width: 0; }
.tgroup > summary small { color: var(--dim); font-size: 12px; font-weight: 600; }
.tprices > summary { flex-wrap: wrap; }
.tprices > summary small { flex-basis: 100%; color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 14px; }
.tprices > summary small b { color: #fff; }
.ttable { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 8px; font-size: 13.5px; }
.ttable th { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .3px; text-align: center; padding: 2px 1px 6px; border-bottom: 1px solid var(--line2); width: 15%; }
.ttable th:first-child { text-align: left; width: auto; font-size: 11.5px; letter-spacing: .4px; }
.ttable td { padding: 7px 1px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ttable td:first-child { text-align: left; color: #e6e6e6; padding-right: 6px; line-height: 1.3; overflow-wrap: anywhere; }
.ttable tr:last-child td { border-bottom: 0; }
.tf-n { color: var(--dim); font-size: 11.5px; font-weight: 600; }
.tf-unit { color: var(--muted); font-size: 11.5px; }
.tf-only { color: var(--dim); font-size: 12.5px; font-style: italic; }
.tf-fixed td:first-child { color: var(--muted); }
.tt-name { background: none; border: 0; padding: 4px 2px; color: var(--gold); font: inherit; font-weight: 700; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; }
.tt-name:focus-visible { color: var(--gold2); background: var(--gold-bg); outline: none; }
@media (hover: hover) { .tt-name:hover { color: var(--gold2); background: var(--gold-bg); } .lockbox:hover { border-color: var(--gold); background: #1b170c; } }
.tf-box { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #555; border-radius: 6px; background: #111; cursor: pointer; position: relative; vertical-align: middle; flex: none; }
.tf-box:checked { background: var(--gold); border-color: var(--gold); }
.tf-box:checked::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tf-box:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.tf-num { width: 100%; max-width: 58px; background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 2px; color: #fff; font-size: 13.5px; text-align: center; -moz-appearance: textfield; }
.tf-num::-webkit-outer-spin-button, .tf-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tf-num:focus { outline: none; border-color: var(--gold); }
.tnames { grid-template-columns: 1fr 1fr; gap: 10px; }
.tiers .form input, .pperson .form select, .pperson .form input { background: var(--bg); }
.tprices .grp { color: var(--gold); font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; margin: 14px 0 6px; }
.pk { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin: 8px 0; background: #121212; display: grid; gap: 8px; }
.pk .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pk .f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk label, .tnames label { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.pk input { width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 10px; color: var(--text); }
.pk input:focus { outline: none; border-color: var(--gold); }
.pk-h { color: #fff; font-size: 14px; }
.pk-packs { display: flex; flex-wrap: wrap; gap: 0 14px; }
.pk-packs .chk { font-size: 13.5px; padding: 4px 2px; }
.pk-packs .chk input:checked + span { color: #e6e6e6; text-decoration: none; }
.tsave { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 15; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 8px 12px; background: #000; border: 2px solid var(--gold); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .6); }
/* 👥 a person's tier & add-ons */
.pp-tier { width: 100%; background: var(--bg); color: #fff; border: 1.5px solid var(--gold); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 15px; }
.pp-tier:focus { outline: 2px solid var(--gold2); outline-offset: 1px; }
.pp-early { margin-top: 8px; }
/* v0.00.33: 🎁 the 2-week VIP welcome — ⭐ My plan's line. (Nov 11 — Michael: the 2 free weeks start only when the person taps
   them; the first welcome card, which said they had started, is gone. Its styles are replaced by the 🎁 gift below: the design
   he approved, Free-VIP-gift-design.png — big, bold, black and gold, phone first.) */
.gift-card { position: relative; overflow: hidden; margin: 4px 0 14px; border-radius: 18px; padding: 16px 14px 14px; background: linear-gradient(140deg, #fff1b8 0%, #f2c64e 45%, #c98f16 100%); color: #1a1405; box-shadow: 0 6px 22px rgba(226, 179, 58, .35); }
.gift-rib { position: absolute; background: rgba(160, 30, 20, .85); pointer-events: none; }
.gift-rib.v { top: 0; bottom: 0; left: 30px; width: 26px; } /* (the ribbon on the left keeps the ✕ on the right easy to see) */
.gift-rib.h { left: 0; right: 0; top: 46px; height: 22px; }
.gift-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid #1a1405; background: #fff8e0; color: #1a1405; font: 900 20px/1 Inter, "Segoe UI", system-ui, sans-serif; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.gift-in { position: relative; z-index: 1; background: rgba(255, 248, 224, .95); border-radius: 14px; padding: 12px 14px 14px; margin-top: 6px; }
.gift-emoji { font-size: 54px; line-height: 1; text-align: center; margin-bottom: 4px; }
.gift-big { margin: 0; color: #1a1405; font: 900 28px/1.06 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: -.3px; }
.gift-big em { font-style: normal; color: #b0170b; }
.gift-sub { margin: 8px 0 0; color: #3a2e0c; font-size: 15px; line-height: 1.45; }
.gift-nocc { display: inline-block; margin-top: 10px; background: #1a1405; color: #ffd75e; font: 800 12.5px Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .3px; border-radius: 99px; padding: 5px 11px; }
.gift-go, .gift-not { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; border-radius: 12px; font: 800 17px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.gift-go { background: #111; color: #ffd75e; border: 2px solid #111; }
.gift-not { min-height: 48px; margin-top: 10px; background: transparent; color: #1a1405; border: 2px solid #1a1405; font-size: 16px; }
.gift-go:focus-visible, .gift-not:focus-visible, .gift-x:focus-visible { outline: 3px solid #b0170b; outline-offset: 2px; }
/* the top bar: the 🎁 with its red 1 while the gift waits (every page), the gold countdown chip while it's on */
.gift-top { position: relative; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 11px; background: linear-gradient(135deg, #f6d36b, #c9921e); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 3px rgba(226, 179, 58, .35); animation: giftGlow 2.4s ease-in-out infinite; }
.gift-top .gift-dot { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; box-sizing: border-box; padding: 0 4px; border: 2px solid #000; border-radius: 10px; background: #e0412f; color: #fff; font: 800 11px/15px Inter, "Segoe UI", system-ui, sans-serif; text-align: center; }
@keyframes giftGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(226, 179, 58, .35); } 50% { box-shadow: 0 0 0 6px rgba(226, 179, 58, .12); } }
@media (prefers-reduced-motion: reduce) { .gift-top { animation: none; } }
.gift-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 11px; border: 0; border-radius: 99px; background: linear-gradient(135deg, #f6d36b, #c9921e); color: #1a1405; font: 800 13px Inter, "Segoe UI", system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.gift-top:focus-visible, .gift-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 440px) { .header.gs-waiting .bname { display: none; } } /* phones: the logo alone leaves room for the 🎁 and ＋ Add */
@media (max-width: 560px) { .header.gs-on .bname { display: none; } }
@media (max-width: 379px) { .header.gs-on .vchip { display: none; } }
.gift-chip .gc-short { display: none; }
@media (min-width: 900px) and (max-width: 1320px) { /* small laptops: the tabs (VIP adds ♥ Saved) and the search box fill the bar, so the chip is "🎁 14d" — the full words on hover and for screen readers */
  .header.gs-on .gift-chip .gc-long { display: none; } .header.gs-on .gift-chip .gc-short { display: inline; }
  .header.gs-on .tabs a { padding-left: 5px; padding-right: 5px; }
}
/* the Calendar while it's on, and once after it ends */
.gift-on { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: #1d1708; border: 2px solid var(--gold); color: #ffe9a3; font-size: 14px; line-height: 1.4; }
.gift-on b { display: block; margin-bottom: 2px; color: #ffd75e; font-size: 16.5px; }
.gift-bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 6px; background: #3a3016; }
.gift-bar i { display: block; height: 100%; border-radius: 6px; background: #ffd75e; }
.gift-end { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: #1a1a1a; border: 1.5px solid #555; }
.gift-end h2 { margin: 0 0 4px; color: #fff; font-size: 17px; line-height: 1.3; }
.gift-end p { margin: 0; color: #ccc; font-size: 14.5px; line-height: 1.45; }
.gift-end-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gift-end-btns .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; font-weight: 800; }
/* the confirm sheet — from the bottom on a phone, in the middle on a laptop */
.gift-cover { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .65); overscroll-behavior: contain; }
.gift-sheet { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); background: #161616; border-top: 2px solid var(--gold); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); }
.gift-sheet:focus { outline: none; }
.gift-sheet-emoji { font-size: 46px; line-height: 1; text-align: center; }
.gift-sheet h2 { margin: 8px 0 6px; color: #ffd75e; font: 900 21px/1.25 Inter, "Segoe UI", system-ui, sans-serif; }
.gift-sheet p { margin: 0; color: #ddd; font-size: 15px; line-height: 1.45; }
.gift-sheet p b { color: #fff; }
.gift-list { list-style: none; margin: 8px 0 0; padding: 0; color: var(--text); font-size: 15px; }
.gift-list li { margin: 6px 0; }
.gift-list li::before { content: '✓ '; color: #6fd38f; font-weight: 800; }
.gift-sheet p.gift-fine { margin-top: 8px; color: #bbb; font-size: 13.5px; }
.gift-sheet .msg { margin-top: 10px; }
.gift-sheet .btn { width: 100%; justify-content: center; min-height: 50px; margin-top: 10px; font-size: 16.5px; font-weight: 800; }
.gift-sheet .gift-yes { margin-top: 14px; }
.gift-sheet .gift-no { background: transparent; border: 2px solid #777; color: #eee; }
@media (min-width: 600px) { .gift-cover { align-items: center; padding: 16px; } .gift-sheet { border: 2px solid var(--gold); border-radius: 20px; } }
/* ⭐ My plan while the gift waits */
.pl-gift { margin: 10px 0 2px; padding: 12px 14px; border: 2px solid var(--gold); border-radius: 12px; background: var(--gold-bg); color: #ffe9a3; font-size: 14.5px; line-height: 1.45; }
.pl-gift b { display: block; margin-bottom: 2px; color: #ffd75e; font-size: 16px; }
.pl-gift .btn { width: 100%; justify-content: center; min-height: 46px; margin-top: 10px; font-weight: 800; }
.pl-welcome { margin: 10px 0 2px; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; background: var(--gold-bg); color: var(--gold2); font-weight: 700; font-size: 14.5px; }
.pp-give .form { gap: 10px; }
.pp-give select { font-weight: 700; color: #fff; }
.pp-dur .role span { padding: 7px 14px; }
.pp-dur .role input:checked + span { background: var(--gold-bg); color: var(--gold2); border-color: var(--gold); }
.pp-give form:not(:has(input[value=until]:checked)) .pp-until { display: none; }
.pp-until input { color-scheme: dark; }
.pp-go { gap: 10px; }
.pp-go .hint { margin: 0; flex: 1 1 180px; }
.pp-grant b { font-size: 14.5px; color: #fff; font-weight: 700; }
.pp-grant.old b { color: var(--muted); font-weight: 600; }
.pp-hist > summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: 14px; }
.mstats span b { overflow-wrap: anywhere; }
.btn.pp-open { border-color: var(--gold-dim); color: var(--gold2); }
.mtable td.mtier { color: #d6d6d6; }
@media (min-width: 640px) { .tnames { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .tsave { bottom: 14px; }
  .content.tiers, .content.plan { max-width: 980px; }
  .content.pperson { max-width: 720px; }
}
@media (min-width: 1100px) {
  .content.tiers { max-width: 1240px; }
  .tgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; align-items: start; }
}
/* D2 (Oct 31): features not built yet — My plan's folded "Coming later (N)", Tiers & Features' dim "later" tag */
.pl-laterb { padding-top: 10px; padding-bottom: 10px; }
.pl-later > summary { cursor: pointer; color: var(--gold); font-size: 15px; font-weight: 700; padding: 2px 0; }
.pl-later .pl-row { opacity: .62; }
.pl-later > summary + .pl-row { border-top: 0; margin-top: 4px; }
.pl-later .hint { margin-top: 8px; }
.tag.pl-yours { background: var(--green-bg); color: var(--green); }
.tag.tf-later { background: transparent; border: 1px solid var(--line2); color: var(--dim); font-size: 10px; font-weight: 700; padding: 0 6px; margin-left: 2px; letter-spacing: .3px; vertical-align: 1px; }
/* v0.00.21: 🏖 Vacation days — blue stripes on the calendars, a blue badge, an amber heads-up, the Vacation days page */
.mcell.vac { background: repeating-linear-gradient(135deg, #132538 0 5px, #1a3552 5px 10px); border-color: #4f86c0; }
.mcell.vac .dn { color: #d6ebff; }
.mcell.vac.busy { background: var(--gold); border: 2px solid #7db6f0; box-shadow: inset 0 0 0 2px #0b1a2a; }
.mcell.vac.busy .dn, .mcell.vac.busy .mc { color: #000; }
.mcell .vacname { font: 800 9px/1.25 Inter, "Segoe UI", system-ui, sans-serif; background: #0b1a2a; color: #9fd0ff; border-radius: 4px; padding: 1px 3px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend b.v { color: #9fd0ff; }
.daybadge.vac { background: #17283a; color: #9fd0ff; border: 1px solid #4f86c0; }
.vacwarn { background: var(--amber-bg); border: 1px solid var(--amber); color: #f6e7a8; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.vacwarn b { color: #fff; } .vacwarn a { color: var(--gold2); }
.chip.vacchip { border-color: #4f86c0; color: #9fd0ff; text-decoration: none; }
.vacbox { border: 1px solid #4f86c0; background: #101e2c; border-radius: 12px; padding: 12px; margin: 10px 0; }
.vacbox .h { color: #9fd0ff; font-weight: 800; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vacbox .h + .vrow, .vfold > summary + .vrow { border-top: 0; }
.vrow .vtx { min-width: 0; } .vrow .nm { font-weight: 700; color: #d6ebff; overflow-wrap: anywhere; }
.vrow .dt { color: var(--muted); font-size: 12.5px; margin-top: 2px; } .vrow .vwarn { color: var(--amber); }
.vrow .btn { flex: none; }
.vf { border: 1px solid var(--line2); background: var(--bg2); border-radius: 12px; padding: 12px; margin: 12px 0; }
.vf h3 { margin: 0 0 4px; color: var(--gold); font-size: 15px; }
.vf label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin: 10px 0 4px; }
.vf input { width: 100%; box-sizing: border-box; min-width: 0; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 12px; color: var(--text); font-size: 15px; }
.vf input[type=date] { color-scheme: dark; }
.vf input:focus { outline: none; border-color: var(--gold); }
.vf .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .vf .two > div { min-width: 0; }
.vf .btns { margin-top: 12px; }
.vfold { margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--bg2); }
.vfold > summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; }
/* v0.00.22: 🗑 Delete on every trip; the picked day's 🏖 badge opens its trip */
a.daybadge { text-decoration: none; cursor: pointer; }
a.daybadge.vac:hover { border-color: #9fd0ff; }
.vrow .vbtns { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
/* v0.00.23: miles measured to the center of a town (no exact address on the map yet) say so */
.tcm { color: var(--amber); font-weight: 600; }
.card .tcl { margin-top: -4px; padding: 1px 6px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); font-size: 10.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; text-align: right; }
.tcnote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--bg2); color: #d6d6d6; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tcnote b { color: var(--amber); }
.tcnote a { color: var(--gold); font-weight: 700; }
.gas-tc { order: 3; flex: 1 1 100%; font-size: 12.5px; }
/* v0.00.24: a market page's weather lines open the National Weather Service forecast for that spot */
.sec .wx .wxa { display: block; color: #cfe3fb; text-decoration: none; border-radius: 8px; padding: 2px 0; margin-top: 0; }
.sec .wx .wxa, .sec .wx .wxhr, .v .wxnow { word-break: normal; overflow-wrap: break-word; } /* (links break anywhere by default) */
.sec .wx .wxa:hover b, .sec .wx .wxa:focus b { text-decoration: underline; }
.sec .wx .wxgo { color: var(--gold); font-weight: 700; }
.sec .wx .wxhr { display: inline-block; margin: 1px 0 6px 22px; color: var(--blue); font-size: 12.5px; font-weight: 600; text-decoration: none; border: 1px solid #2b4a6b; border-radius: 999px; padding: 2px 10px; }
.sec .wx .wxhr:hover { border-color: var(--blue); }
.v .wxnow { color: var(--blue); font-weight: 600; }
/* v0.00.27: 🔥 heat map screens (C) */
/* The look of ChatGPT's pictures 01 · 04 · 08 · 14 · 15 in the app's own dark + gold:
   the gold kicker, the big title, the chip groups (SALES VIEW · DATES · CIRCLE SIZE, then COLORS) as big pills — the one picked
   gold with black text — that wrap on a phone; the map box (rounded, thin border) with its region pill top-left; the legend
   under the map (LESS MONEY … MORE MONEY, five rounded bars, the dollars under each); the panel cards (TOTAL FOR SALES VIEW · TOP
   POCKETS IN FRAME or the SELECTED SALES POCKET · HOW TO READ IT). Phone (picture 15): one column — the total as one line, the
   map (about 4:3), the legend, the cards. Laptop ≥ 1100 px (one-column pages only, never beside a market's page): the page may
   be 1440 px wide, the map left (about 16:9), a 360-px panel right. Plus the upload page's shell, picture 14's two cards (the
   #87 lock page and ⭐ My plan) and the member's line in 💰 Show money. The map's own parts are Helper A's (.km-*): only their
   place and colors are tuned here, under .heat-page, so the other maps look exactly as before. */
.heat-page, .heat-lock, .hp-planoffer { --hp-card: #18181d; --hp-line: #2c2c33; --hp-chip: #1c1c21; --hp-gold: #e9bd58; --hp-gold2: #f5d27a; --hp-text: #c9c9cf; }
.heat-page .hp-kicker, .heat-lock .hp-kicker { color: var(--hp-gold); font-size: 12px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; margin: 8px 0 2px; }
.heat-page .hp-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.heat-page .hp-title, .heat-lock .hp-title { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.2px; color: #fff; margin: 0; }
.heat-page .hp-sub, .heat-lock .hp-sub { color: #b4b4ba; font-size: 14px; line-height: 1.45; margin: 4px 0 12px; }
.hp-upload { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1.5px solid var(--gold); border-radius: 999px; padding: 7px 15px; background: transparent; color: var(--gold2); font-size: 13.5px; font-weight: 800; text-decoration: none; word-break: normal; white-space: nowrap; }
/* the chip groups: a small spaced-caps label over a row of pills */
.hp-groups { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hp-group { min-width: 0; max-width: 100%; }
.hp-glabel { color: #c4c4ca; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; margin: 0 0 6px 2px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.heat-page .hp-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid #303037; background: var(--hp-chip); color: #b9b9bf; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .heat-page .hp-chip:not(.on):hover { border-color: #4a4a52; color: #e6e6ea; } .hp-row:hover .hp-town { color: var(--hp-gold2); } .hp-upload:hover { background: var(--gold-bg); } }
.heat-page .hp-chip.on { background: var(--hp-gold); border-color: var(--hp-gold); color: #000; font-weight: 800; }
.hp-pals { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.hp-pals .hp-glabel { margin: 0 2px 0 2px; }
.heat-page .hp-pals .hp-chip { height: 28px; padding: 0 10px; font-size: 12px; }
.hp-sw { display: inline-flex; gap: 1px; font-style: normal; } /* (a palette chip's five colors) */
.hp-sw b { display: block; width: 6px; height: 12px; }
.hp-sw b:first-child { border-radius: 3px 0 0 3px; } .hp-sw b:last-child { border-radius: 0 3px 3px 0; }
.heat-page .heat-dates { max-width: 420px; margin: 8px 0 0; }
/* the map + panel: phone = one column in picture 15's order (the two wrappers step aside: display: contents) */
.hp-main { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.hp-left, .hp-side { display: contents; }
.hp-total { order: 1; } .hp-mapbox { order: 2; } .hp-legend { order: 3; } .hp-pals { order: 4; } #heat-pocketbox { order: 5; } .hp-howto { order: 6; }
.hp-mapbox { position: relative; min-width: 0; }
.heat-page .hp-mapbox .km-map { width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 240px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .24); } /* (no max-height here: with aspect-ratio it would shrink the width too) */
@media (min-width: 600px) { .heat-page .hp-mapbox .km-map { aspect-ratio: 16 / 10; } }
@media (max-height: 520px) { .heat-page .hp-mapbox .km-map { aspect-ratio: auto; height: 62vh; min-height: 180px; } } /* (a phone held sideways: page left to scroll past the map, like the other maps) */
.heat-page .hp-mapbox .km-ctl { right: 12px; top: 12px; gap: 7px; }
.heat-page .hp-mapbox .km-ctl button { background: #141418; border-color: #3a3a42; border-radius: 10px; color: var(--hp-gold); }
.heat-page .hp-mapbox .km-credit { right: 10px; bottom: 8px; border-radius: 6px; background: rgba(20, 20, 24, .86); padding: 3px 8px; }
.heat-page .hp-mapbox .km-note { top: 48px; } /* (under the region pill) */
.hp-region { position: absolute; left: 12px; top: 12px; z-index: 5; max-width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(22, 22, 26, .93); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1; padding: 7px 11px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); pointer-events: none; }
.hp-region:empty { display: none; }
.hp-alabel .hp-region { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; box-shadow: none; } /* (the engine draws the pill itself: these words stay for screen readers and tests) */
/* the legend */
.hp-legend { margin: 0 2px; }
.hl-head { display: flex; justify-content: space-between; gap: 8px; color: #a8a8b0; font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.hl-head span:last-child { color: var(--hp-gold); }
.hl-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.hl-band { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hl-bar { display: block; height: 11px; border-radius: 6px; }
.hl-lab { color: #cdcdd3; font-size: 11px; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.heat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* (read aloud, not shown: the colors' names) */
/* the panel's cards */
.hp-card { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 16px; padding: 15px 16px; min-width: 0; }
.hp-label { color: var(--hp-gold2); font-size: 13px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.hp-amt { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 8px; letter-spacing: -.3px; }
.hp-meta { color: #b4b4ba; font-size: 13.5px; line-height: 1.4; margin-top: 5px; overflow-wrap: anywhere; }
.hp-hint { color: #a2a2aa; font-size: 12px; margin-top: 3px; }
.hp-rows { margin-top: 6px; }
.hp-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 8px 2px; border: 0; border-top: 1px solid var(--hp-line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hp-row:first-child { border-top: 0; }
.hp-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hp-gold); color: #000; font: 800 11px/1 Inter, "Segoe UI", system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--hp-card), 0 0 0 4px var(--ring, transparent); } /* (gold like the map's pins, ringed in the pocket's color) */
.hp-town { flex: 1; min-width: 0; color: #fff; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.hp-town small { display: block; color: #a2a2aa; font-size: 12px; font-weight: 600; margin-top: 1px; }
.hp-money { flex: none; color: var(--hp-gold); font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.hp-none { color: #a8a8b0; font-size: 13.5px; line-height: 1.45; padding: 8px 0 2px; }
.hp-where { color: #fff; font-size: 23px; font-weight: 800; line-height: 1.2; margin-top: 10px; overflow-wrap: anywhere; }
.hp-big { color: var(--gold2); font-size: 29px; font-weight: 800; line-height: 1.1; margin-top: 10px; letter-spacing: -.3px; }
.hp-tag { color: #a8a8b0; font-size: 13.5px; font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }
.hp-hr { border: 0; border-top: 1px solid var(--hp-line); margin: 14px 0 12px; }
.hp-size { color: var(--hp-gold); font-size: 14px; font-weight: 800; }
.hp-markets { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.hp-mk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--hp-line); border-radius: 10px; background: #111114; color: inherit; text-decoration: none; word-break: normal; }
.hp-mk:hover { border-color: var(--gold-dim); }
.hp-mk-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-mk-n { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.hp-mk-t small { color: #a2a2aa; font-size: 12px; }
.hp-mk-s { flex: none; color: var(--hp-gold); font-size: 14px; }
.hp-back { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid #3a3a42; border-radius: 999px; background: transparent; color: #e3e3e8; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.hp-back:hover { border-color: var(--hp-gold); color: var(--hp-gold2); }
.hp-text { color: var(--hp-text); font-size: 14.5px; line-height: 1.5; margin-top: 8px; }
/* phone: the total is one line above the map ("$325,344 · 35 markets"), like picture 15 */
.hp-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; background: transparent; border: 0; padding: 0 2px; }
.hp-total .hp-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-total .hp-amt { color: var(--hp-gold2); font-size: 22px; margin: 0; }
.hp-total .hp-meta { margin: 0; font-size: 12.5px; text-align: right; }
/* nothing to draw, loading, an error; markets with no place */
.hp-empty { margin-top: 14px; padding: 22px 16px; border: 1px dashed #3a3a42; border-radius: 16px; background: var(--hp-card); color: #d8d8dd; font-size: 14.5px; line-height: 1.55; text-align: center; overflow-wrap: anywhere; }
.hp-empty .btn { margin-left: 4px; }
.hp-empty .btns { justify-content: center; margin-top: 12px; }
.hp-empty.hp-err .msg { margin: 0; text-align: left; }
.heat-nospot { margin: 14px 0 0; padding: 9px 12px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--bg2); color: #d6d6d6; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.heat-nospot a { color: var(--gold); font-weight: 600; word-break: normal; }
/* laptop: the page widens to 1440 px (only these pages) — map left, panel right, the legend under the map */
@media (min-width: 1100px) {
  .main:not(.two) .content.heat-page { max-width: 1440px; padding: 10px 24px 40px; }
  .main:not(.two) .heat-page .hp-kicker { font-size: 13.5px; letter-spacing: 2.6px; margin-top: 14px; }
  .main:not(.two) .heat-page .hp-title { font-size: 44px; letter-spacing: -.4px; }
  .main:not(.two) .heat-page .hp-sub { font-size: 17px; margin: 8px 0 22px; }
  .main:not(.two) .heat-page .hp-upload { font-size: 15px; padding: 9px 18px; }
  .main:not(.two) .heat-page .hp-groups { gap: 14px 30px; }
  .main:not(.two) .heat-page .hp-glabel { font-size: 12px; letter-spacing: 2.2px; margin-bottom: 9px; }
  .main:not(.two) .heat-page .hp-chips { gap: 7px; }
  .main:not(.two) .heat-page .hp-chip { height: 40px; padding: 0 15px; font-size: 15.5px; gap: 7px; }
  .main:not(.two) .heat-page .hp-pals { margin: 0 0 14px; }
  .main:not(.two) .heat-page .hp-pals .hp-glabel { margin: 0 4px 0 2px; font-size: 11.5px; }
  .main:not(.two) .heat-page .hp-pals .hp-chip { height: 30px; padding: 0 12px; font-size: 13px; }
  .main:not(.two) .heat-page .hp-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; margin-top: 20px; }
  .main:not(.two) .heat-page .hp-left { display: block; min-width: 0; }
  .main:not(.two) .heat-page .hp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .main:not(.two) .heat-page .hp-mapbox .km-map { aspect-ratio: 1020 / 555; min-height: 360px; }
  .main:not(.two) .heat-page .hp-legend { margin: 22px 4px 0; }
  .main:not(.two) .heat-page .hl-head { font-size: 12px; letter-spacing: 2.2px; }
  .main:not(.two) .heat-page .hl-bands { margin-top: 8px; }
  .main:not(.two) .heat-page .hl-bar { height: 15px; border-radius: 8px; }
  .main:not(.two) .heat-page .hl-lab { font-size: 13.5px; font-weight: 500; }
  .main:not(.two) .heat-page .hp-card { padding: 20px 20px 18px; }
  .main:not(.two) .heat-page .hp-label { font-size: 15.5px; letter-spacing: .6px; }
  .main:not(.two) .heat-page .hp-total { display: block; background: var(--hp-card); border: 1px solid var(--hp-line); padding: 20px 20px 18px; }
  .main:not(.two) .heat-page .hp-total .hp-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .main:not(.two) .heat-page .hp-total .hp-amt { color: #fff; font-size: 33px; margin-top: 8px; }
  .main:not(.two) .heat-page .hp-total .hp-meta { font-size: 14.5px; margin-top: 6px; text-align: left; }
  .main:not(.two) .heat-page .hp-row { min-height: 38px; padding: 6px 2px; }
  .main:not(.two) .heat-page .hp-town, .main:not(.two) .heat-page .hp-money { font-size: 16.5px; }
  .main:not(.two) .heat-page .hp-text { font-size: 15.5px; }
  .main:not(.two) .heat-page .hp-where { font-size: 25px; }
  .main:not(.two) .heat-page .hp-big { font-size: 32px; }
}
/* ⬆ Upload to My Sales: the page's shell (Helper E's block styles the cards inside #hu-root); the 💰 Show money upload ID */
.hu-page #hu-root { margin-top: 6px; }
.hu-upid { flex-basis: 100%; color: var(--dim); font-size: 11.5px; margin-top: 6px; }
/* picture 14: the two ways to the 🔥 Sales heat map — on the #87 lock page and in ⭐ My plan */
.ho-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 12px 0; }
@media (min-width: 760px) { .ho-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ho-card { min-width: 0; background: var(--hp-card, #18181d); border: 1px solid #5f5020; border-radius: 18px; padding: 18px 20px 12px; }
.ho-pill { display: inline-block; max-width: 100%; padding: 6px 16px; border: 1px solid #6b5a22; border-radius: 999px; background: #2b2412; color: var(--gold2); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; overflow-wrap: anywhere; }
.ho-title { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; margin-top: 14px; overflow-wrap: anywhere; }
.ho-sub { color: #b4b4ba; font-size: 14px; line-height: 1.45; margin-top: 5px; }
.ho-list { list-style: none; margin: 12px 0 0; padding: 0; }
.ho-list li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #2c2c33; color: #ececf0; font-size: 15px; line-height: 1.35; }
.ho-list li:last-child { border-bottom: 0; }
.ho-list b { color: var(--gold2); }
.ho-ok { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold2); font: 800 11px/1 Inter, "Segoe UI", system-ui, sans-serif; font-style: normal; }
.heat-lock .hp-lockpage { max-width: 980px; }
.hp-planoffer .ho-cards { margin-bottom: 4px; }
/* (v0.00.26, kept) a locked page's à la carte line · ⭐ My plan's price tag (v0.00.33 rebuild, D3: .heat-honest — the member's Vendor Pool line on 💰 Show money — is gone with that line) */
.lk-ala { margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); color: #d6d6d6; font-size: 13.5px; line-height: 1.45; }
.lk-ala b { color: var(--gold2); }
.pl-price { background: var(--gold-bg); color: var(--gold2); border: 1px solid var(--gold-dim); font-weight: 700; }
/* v0.00.27: ⬆ sales upload (E) — #/heatmap/upload, ChatGPT's picture 12: three cards (1 Choose a file · 2 Review matched
   totals · 3 Check the map) that public/sales-upload.js draws into #hu-root. Laptop (≥ 1100 px): side by side, the same height;
   narrower: stacked, at most 720 px wide, nothing ever wider than the screen. Colors are the app's own (dark + gold). */
#hu-root { margin-top: 18px; }
.hu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 720px; }
.hu-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 22px; }
.hu-card.hu-drop { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-dim); } /* (a file dragged over the page) */
.hu-head { display: flex; align-items: center; gap: 11px; }
.hu-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #000; font-size: 14px; font-weight: 800; }
.hu-head h2 { font-size: 20px; line-height: 1.25; color: #fff; letter-spacing: .1px; }
.hu-sub { margin: 10px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.hu-lab { margin-top: 20px; color: var(--gold); font-size: 12.5px; font-weight: 800; letter-spacing: .16em; }
.hu-counts { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.hu-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hu-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line2); color: #d2d2d2; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hu-or { color: var(--dim); font-size: 13px; font-style: italic; padding: 0 2px; }
.hu-file { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 20px; padding: 13px 14px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 12px; }
.hu-file.bad { border-color: #5a2a2a; }
.hu-badge { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 46px; border-radius: 7px; background: var(--gold-bg); color: var(--gold2); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hu-fn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hu-fn b { color: #fff; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hu-fn small { color: var(--muted); font-size: 13px; }
.hu-sel { flex: none; color: var(--gold2); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; }
.hu-text { margin: 22px 0 0; color: #d6d6d6; font-size: 15.5px; line-height: 1.55; }
.hu-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; } /* (the gold button opens it) */
.hu-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg3); color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; }
.hu-btn.hu-gold { background: var(--gold); border-color: var(--gold); color: #000; }
.hu-btn.hu-gold:hover:not(:disabled) { background: var(--gold2); border-color: var(--gold2); }
.hu-btn.hu-ghost { background: transparent; border-color: var(--gold-dim); color: var(--gold2); }
.hu-btn.hu-ghost:hover:not(:disabled) { border-color: var(--gold); }
.hu-btn:disabled { opacity: .45; cursor: default; }
.hu-card > .hu-btn { margin-top: 22px; }
.hu-btns { display: grid; gap: 10px; margin-top: 16px; }
.hu-foot { margin-top: 22px; }
.hu-link { display: inline-block; padding: 0; border: 0; background: none; color: var(--gold2); font-size: 15px; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hu-link:hover { color: #fff; }
.hu-fine { margin: 7px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hu-card > .hu-fine { margin-top: 16px; }
.hu-list { display: grid; gap: 10px; margin-top: 12px; }
.hu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; }
.hu-rt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hu-rt > b { color: #fff; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.hu-rt > small { color: var(--muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.hu-rt a { color: var(--gold2); word-break: normal; }
.hu-rt .hu-from { color: var(--dim); font-style: italic; }
.hu-amt { flex: none; color: var(--gold2); font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.hu-ok { color: var(--green); font-weight: 700; }
.hu-row[data-status="conflict"] { border-color: #5a4a1a; background: #1f1b10; }
.hu-row[data-status="pick"] { border-color: var(--gold-dim); }
.hu-row[data-status="nomatch"], .hu-row[data-status="bad"], .hu-row[data-status="not_found"], .hu-row[data-status="changed"] { background: var(--bg2); border-style: dashed; }
.hu-row[data-status="nomatch"] .hu-amt, .hu-row[data-status="bad"] .hu-amt, .hu-row[data-status="pick"] .hu-amt { color: var(--muted); }
.hu-pick { width: 100%; max-width: 100%; margin-top: 6px; padding: 7px 9px; border: 1px solid var(--gold-dim); border-radius: 8px; background: var(--bg2); color: var(--text); font-size: 13.5px; }
.hu-pick:focus { outline: none; border-color: var(--gold); }
.hu-empty, .hu-wait { margin-top: 12px; padding: 26px 16px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; text-align: center; }
.hu-wait { margin-top: 18px; }
.hu-probs { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: 13px; line-height: 1.45; }
.hu-plab { font-weight: 800; }
.hu-probs ul { margin: 4px 0 0; padding-left: 18px; }
.hu-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.hu-tot span { color: var(--muted); font-size: 15.5px; }
.hu-tot b { color: var(--gold2); font-size: 22px; font-weight: 800; white-space: nowrap; }
.hu-prog { margin-top: 10px; color: var(--gold2); font-size: 13.5px; }
.hu-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.hu-msg.err { background: var(--red-bg); color: var(--red); }
.hu-msg.ok { background: var(--green-bg); color: var(--green); }
.hu-msg.info { background: var(--blue-bg); color: var(--blue); }
.hu-done { margin-top: 18px; padding: 10px 14px; border: 1px solid #2f5f3a; border-radius: 9px; background: var(--green-bg); color: var(--green); font-size: 15px; font-weight: 800; }
.hu-map { min-width: 0; max-width: 100%; margin-top: 14px; }
#hu-root .hu-map .km-map { width: 100%; max-width: 100%; height: auto; aspect-ratio: 6 / 5; min-height: 220px; max-height: 440px; margin: 0; border-radius: 14px; } /* (only this small map, ChatGPT's 416 × 340: the id wins over any heat-page map rule, so it always stays inside its card) */
.hu-legend { margin-top: 12px; }
.hu-lh { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; }
.hu-lh span:last-child { color: var(--gold); }
.hu-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 7px; }
.hu-band { min-width: 0; }
.hu-band i { display: block; height: 10px; border-radius: 4px; }
.hu-band span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.hu-cols2 { margin-top: 8px; }
.hu-more { width: 100%; padding: 11px 12px; border: 1px dashed var(--gold-dim); border-radius: 10px; background: none; color: var(--gold2); font-size: 14px; font-weight: 700; cursor: pointer; }
.hu-more:hover { border-color: var(--gold); }
@media (min-width: 1100px) {
  .hu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: none; align-items: stretch; }
  .hu-list { max-height: max(560px, 72vh); overflow-y: auto; overscroll-behavior: contain; } /* (a long file scrolls inside its card) */
}
@media (max-width: 480px) {
  .hu-card { padding: 16px 14px 18px; border-radius: 16px; }
  .hu-head h2 { font-size: 18px; }
  .hu-text { margin-top: 18px; font-size: 15px; }
  .hu-pill { height: 32px; padding: 0 12px; font-size: 13.5px; }
}
/* v0.00.28: 🛠 developer + ✉️ invites (C) */
/* the 🛠 Developer badge in the header (a developer — a tester account): teal, so it never reads as the gold version tag */
.dev-badge { flex-shrink: 0; margin-left: -4px; border: 1.5px solid #2f7f91; color: #8fe0f0; background: #0e2a31; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800; letter-spacing: .2px; text-decoration: none; white-space: nowrap; line-height: 1.35; word-break: normal; }
.dev-badge:hover { border-color: #8fe0f0; }
@media (max-width: 599px) { .header.has-dev .bname { display: none; } } /* phones: the logo alone leaves room for the badge and ＋ Add */
/* "Developers can look at this screen but can't upload files." — a plain gray note where a file button would be */
.dev-note { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--line2); border-left: 3px solid #8a8a8a; border-radius: 0 10px 10px 0; background: var(--bg2); color: #c4c4c4; font-size: 13px; line-height: 1.45; }
.dev-note::before { content: '🛠 '; }
/* 👥 Members (owner): the 🛠 DEVELOPER tag, "Invited by", Make Developer / Back to member, the one-line explanation */
.tag.dev { background: #0e2a31; color: #8fe0f0; border: 1px solid #2f7f91; font-weight: 800; }
.mname + .tag.dev, .title .tag.dev { margin-left: 4px; vertical-align: 2px; }
.mem-invited-by { margin-top: 2px; }
.mem-invited-by b { color: #d6d6d6; font-weight: 700; }
.mtable .mem-invited-by { color: var(--muted); white-space: nowrap; margin-top: 1px; }
.btn.mem-mkdev { border-color: #2f7f91; color: #8fe0f0; }
.btn.mem-mkdev:hover { background: #0e2a31; }
.btn.mem-undev { color: #c4c4c4; }
.hint.dev-explain { margin: 6px 0 2px; padding: 7px 11px; border-radius: 10px; background: #0b2026; border: 1px solid #1f5866; color: #bfe9f2; font-size: 12.5px; line-height: 1.45; }
.hint.dev-explain b { color: #8fe0f0; }
/* 👥 Members on a laptop: four buttons (⭐ Tier · Reset link · 🛠 Make Developer · Remove) sit two by two, so the table fits */
.mtable td.mact .mact-in { display: grid; grid-template-columns: auto auto; gap: 4px; justify-content: end; }
.mtable td.mact .mact-in .btn { white-space: nowrap; justify-content: center; }
.mtable td.mact .mact-in .btn + .btn { margin-left: 0; }
/* ✉️ Invites (owner): who made each link */
.linkcard .inv-by { color: #e6e6e6; font-weight: 700; }
/* ⭐ My plan for a developer: what a Developer can't do (Michael's rules) */
.dev-plan .dev-plan-name { color: #8fe0f0; }
.dev-plan .dev-cant .pl-t { color: #c4c4c4; min-width: 0; overflow-wrap: anywhere; }
.pl-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: var(--red-bg); color: var(--red); font-size: 12px; font-weight: 800; }
/* ✉️ Invite people (#/invite): the page's shell — Helper E's body goes in #inv-root */
.invite-page { --hp-card: #18181d; --hp-line: #2c2c33; --hp-gold: #e9bd58; }
.invite-page .hp-kicker { color: var(--hp-gold); font-size: 12px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; margin: 8px 0 2px; }
.invite-page #inv-root { margin-top: 10px; min-width: 0; }
/* 👥 Members on a laptop (fix 3:25 PM CT, Helper F's report): a long email wraps inside its column, and the buttons column stays
   pinned to the table's right edge, so "Reset link" and "Remove" are always in view even when the table is wider than the page */
.mtable td a[href^="mailto:"] { overflow-wrap: anywhere; }
.mtable th:last-child { position: sticky; right: 0; z-index: 1; }
.mtable td.mact { position: sticky; right: 0; z-index: 1; background: var(--bg); }
/* v0.00.28: ✉️ invite page (E) — everyone can invite (R-4). C's route draws the shell (back link, title, #inv-root);
   public/invite.js (window.KlxInvite) draws the cards inside #inv-root: 1 Make an invite link · 2 Send it (the new link big,
   its QR code, Copy link / Share…) · Your links · and, for the owner only, the links other people made. Phone
   first: one column, nothing ever wider than the screen; a laptop (≥ 900 px): two columns. The app's own dark + gold, in the
   card style of the v0.00.27 ⬆ upload page. */
#inv-root { margin-top: 14px; }
.inv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 640px; }
.inv-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-content: start; }
.inv-card { min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 22px; scroll-margin-top: calc(var(--head-h) + 12px); }
.inv-card.inv-new { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.inv-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.inv-head h2 { min-width: 0; color: #fff; font-size: 20px; line-height: 1.25; letter-spacing: .1px; overflow-wrap: anywhere; }
.inv-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #000; font-size: 14px; font-weight: 800; }
.inv-n { flex: none; margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line2); color: var(--gold2); font-size: 13px; font-weight: 800; }
.inv-sub { margin: 9px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.inv-lab { display: block; margin-top: 18px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.inv-opt { color: var(--dim); font-weight: 600; letter-spacing: 0; text-transform: none; }
.inv-input { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; color: var(--text); font-size: 16px; } /* (16 px: an iPhone doesn't zoom in on it) */
.inv-input:focus { outline: none; border-color: var(--gold); }
.inv-input::placeholder { color: var(--dim); }
.inv-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg3); color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; }
.inv-btn.inv-gold { background: var(--gold); border-color: var(--gold); color: #000; }
.inv-btn.inv-gold:hover:not(:disabled) { background: var(--gold2); border-color: var(--gold2); }
.inv-btn.inv-ghost { background: transparent; border-color: var(--gold-dim); color: var(--gold2); }
.inv-btn.inv-ghost:hover:not(:disabled) { border-color: var(--gold); }
.inv-btn:disabled { opacity: .45; cursor: default; }
#inv-make { margin-top: 14px; }
.inv-countline { display: flex; justify-content: center; margin-top: 12px; }
.inv-count { display: inline-block; padding: 4px 13px; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--gold2); font-size: 13.5px; font-weight: 800; }
.inv-full { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: 14px; font-weight: 600; line-height: 1.45; }
.inv-msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.inv-msg.err { background: var(--red-bg); color: var(--red); }
.inv-fine { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.inv-qr { display: flex; justify-content: center; margin-top: 16px; }
.inv-qr svg { display: block; width: 240px; height: 240px; max-width: 68vw; max-height: 68vw; background: #fff; border-radius: 12px; }
.inv-qr .inv-msg { margin-top: 0; }
.inv-link { margin-top: 7px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--gold-dim); border-radius: 12px; color: var(--gold2); font-size: 17px; font-weight: 700; line-height: 1.35; word-break: break-all; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.inv-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.inv-acts.one { grid-template-columns: minmax(0, 1fr); }
.inv-works { margin: 12px 0 0; color: #d6d6d6; font-size: 14.5px; font-weight: 600; line-height: 1.45; text-align: center; }
.inv-hide { display: block; margin: 10px auto 0; padding: 6px 8px; border: 0; background: none; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.inv-hide:hover { color: var(--gold2); }
.inv-list { display: grid; gap: 10px; margin-top: 14px; }
.inv-row, .inv-orow { min-width: 0; padding: 11px 14px 12px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; }
.inv-rtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.inv-rname { min-width: 0; color: #fff; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.inv-rname.inv-noname { color: var(--muted); font-weight: 600; font-style: italic; }
.inv-tag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--gray-bg); color: var(--gray); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; line-height: 1.5; white-space: nowrap; }
.inv-tag[data-s="waiting"] { background: var(--gold-bg); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.inv-tag[data-s="used"] { background: var(--green-bg); color: var(--green); }
.inv-tag[data-s="expired"] { background: var(--amber-bg); color: var(--amber); }
.inv-rby { margin-top: 3px; color: var(--gold2); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.inv-rmeta { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.inv-rjoin { margin-top: 5px; color: var(--green); font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.inv-rjoin a { color: var(--green); word-break: normal; }
.inv-ract { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inv-sm { min-height: 40px; padding: 7px 15px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); color: #e6e6e6; font-size: 14px; font-weight: 700; }
.inv-sm:hover:not(:disabled) { border-color: var(--gold); color: var(--gold2); }
.inv-sm.inv-danger { border-color: #5a2a2a; color: var(--red); }
.inv-sm.inv-danger:hover:not(:disabled) { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.inv-sm:disabled { opacity: .5; cursor: default; }
.inv-row[data-status="cancelled"], .inv-row[data-status="expired"], .inv-orow[data-status="cancelled"], .inv-orow[data-status="expired"] { background: var(--bg2); border-style: dashed; }
.inv-row[data-status="cancelled"] .inv-rname, .inv-row[data-status="expired"] .inv-rname, .inv-orow[data-status="cancelled"] .inv-rname, .inv-orow[data-status="expired"] .inv-rname { color: var(--muted); }
.inv-empty { margin-top: 14px; padding: 22px 14px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; text-align: center; }
.inv-more { width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px dashed var(--gold-dim); border-radius: 10px; background: none; color: var(--gold2); font-size: 14px; font-weight: 700; }
.inv-more:hover { border-color: var(--gold); }
@media (min-width: 900px) { .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; align-items: start; } }
@media (max-width: 480px) {
  .inv-card { padding: 16px 14px 18px; border-radius: 16px; }
  .inv-head h2 { font-size: 18px; }
  .inv-link { font-size: 16px; }
}
/* (v0.00.28 E) the ⬆ upload page for a 🛠 developer (sales-upload.js, ctx.readOnly): "Developers can look at this screen but
   can't upload files." — a plain gray note where "Choose CSV or Excel" was, in the look of C's .dev-note */
.hu-readonly-note { padding: 12px 14px; border: 1px solid var(--line2); border-left: 3px solid #8a8a8a; border-radius: 0 10px 10px 0; background: var(--bg3); color: #c4c4c4; font-size: 14.5px; line-height: 1.45; }
.hu-readonly-note::before { content: '🛠 '; }
.hu-card > .hu-readonly-note { margin-top: 22px; }
/* v0.00.29: 🎉 holidays (H) */
/* federal + shopping days (public/holidays.js), in a muted gold so the markets stay the focus. Month calendars: the 🎉 sits on
   the date number's own line, right of the number, so no week gets taller (coordinator, 4:44 PM: "never changes the grid").
   The short name follows the 🎉 only when at least 4 letters fit (38 px: the widest 4 letters + "…", "MLK D…", measure 36 px;
   coordinator, 5:01 PM: no 1–2-letter stubs) — otherwise it moves to a hidden second line and just the 🎉 shows (the laptop's
   ~57-px and a phone's ~50-px days). The full name is in the title, the cell's aria-label, the picked day's header and the
   month's 🎉 line under the grid (.holmonth). */
.mcell .dnw { display: flex; align-items: baseline; column-gap: 2px; min-width: 0; }
.mcell .dnw .dn { flex: none; }
.mcell .hol { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1px; height: 12px; overflow: hidden; font: 700 9px/12px Inter, "Segoe UI", system-ui, sans-serif; color: #c9a85c; }
.mcell .hol .hi { flex: none; font-size: 10.5px; }  /* (the 🎉 a little bigger than the name: it is often all a day has room for) */
.mcell .hol .hn { flex: 1 1 38px; min-width: 38px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -.2px; }
.mcell.busy .hol { color: #3d2d00; }            /* on a gold booked day */
.mcell.vac .hol { color: #f0d892; }             /* on the blue vacation stripes */
.mcell.vac.busy .hol { color: #3d2d00; }
/* a date header in the lists (and the picked day under a calendar): a small 🎉 + short name at its end */
.dayhead .holtag { color: #cdb06a; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; margin-left: 4px; }
/* under each month grid (Calendar, 2027, ♥ Saved): the month's holidays by full name and date, one wrapping line */
.holmonth { color: #d3b66e; font-size: 12.5px; font-weight: 600; line-height: 1.45; margin: 6px 2px 0; }
/* a market's page (a line under its dates, inside the date line) and the weekend view (under the dates) */
.holline { color: #d3b66e; font-size: 13px; font-weight: 600; line-height: 1.4; margin-top: 3px; }
.holline.wkhol { font-size: 12.5px; margin: 4px 0 0; }
/* v0.00.30: 📲 research upload from a phone — the big ⬆ Upload research results button at the top of the Research folder */
.folder .res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.folder .res-top .res-up-top { font-size: 15px; padding: 10px 16px; }
/* v0.00.31: ♥ Saved for everyone (L) — the 🔒 heart of a member whose plan doesn't have #90 (it opens ⭐ My plan), and ⭐ My plan's ♥ Saved box */
.hbtn.lk { position: relative; color: #5c5c5c; border-style: dashed; border-color: #6b5a2e; }
.hbtn.lk .hlk { position: absolute; right: -5px; bottom: -5px; font-size: 13px; line-height: 1; font-style: normal; }
.dheart.lk { color: #8d8d8d; border-style: dashed; border-color: #6b5a2e; text-decoration: none; }
.pl-saved .pl-t b { color: var(--gold); }
/* v0.00.32: 📖 Feature guide (B) — public/guide.js draws #/guide and #/guide/<id>: one card per feature (what it does, how it
   helps, a phone-screen photo, how to use it) with "✓ In your plan" or its 🔒 line. Black + gold, phone first (390 px wide):
   a card is never wider than the screen; a photo keeps its own shape in a box sized before it loads (nothing jumps). */
.guide .gd-index { margin: 12px 0 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.guide .gd-index > summary { cursor: pointer; padding: 10px 14px; color: var(--gold); font-weight: 700; font-size: 14px; line-height: 1.35; }
.guide .gd-ix { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 12px 12px; }
.guide .gd-ix a { display: inline-block; max-width: 100%; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg3); color: #e6e6e6; font-size: 12.5px; line-height: 1.3; text-decoration: none; word-break: normal; overflow-wrap: anywhere; }
.guide .gd-ix a.lk { border-style: dashed; border-color: var(--gold-dim); color: #cfcfcf; }
.guide .gd-hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 6px 2px 8px; }
.guide .gd-sec { margin-top: 18px; }
.guide .gd-sh { font-size: 16px; color: var(--gold); margin: 0 2px 4px; line-height: 1.3; }
.guide .gd-sh .gd-n { color: var(--muted); font-size: 13px; font-weight: 600; }
.gd-card { min-width: 0; max-width: 100%; margin: 10px 0; padding: 12px 14px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); word-break: normal; overflow-wrap: break-word; scroll-margin-top: calc(var(--head-h) + 12px); }
.gd-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(212, 175, 55, .22); }
.gd-card .gd-k { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; line-height: 1.35; }
.gd-card .gd-t { color: #fff; font-size: 18px; line-height: 1.3; margin: 2px 0 0; }
.gd-st { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 12px; padding: 8px 11px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; }
.gd-st .gd-stt { flex: 1 1 190px; min-width: 0; }
.gd-st .gd-stm { flex: 1 1 100%; font-size: 12.5px; font-weight: 500; color: #cfe7cf; }
.gd-st.in { background: var(--green-bg); color: var(--green); font-weight: 700; }
.gd-st.lk { background: #15120a; border: 1.5px dashed var(--gold-dim); color: #d6d6d6; }
.gd-st.lk b { color: var(--gold); font-weight: 800; }
.gd-st.later { background: var(--gray-bg); color: var(--gray); }
.gd-st .gd-plan { flex: none; }
.gd-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.gd-ph { position: relative; margin: 0; width: 100%; max-width: 360px; max-height: 75vh; justify-self: center; aspect-ratio: var(--ar, 540 / 600); overflow: hidden; background: #000; border: 1px solid var(--line2); border-radius: 12px; }
.gd-ph img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gd-ph.none { background: #0f0d07; border: 1.5px dashed var(--gold-dim); }
.gd-ph0 { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4; }
.gd-ph0 .gd-cam { font-size: 30px; line-height: 1; }
.gd-ph0 .gd-pht { color: #cdb06a; font-weight: 700; }
.gd-tx { min-width: 0; }
.gd-tx .gd-h { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; margin: 12px 0 3px; }
.gd-tx > .gd-h:first-child { margin-top: 0; }
.gd-tx p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #e6e6e6; }
.gd-steps { margin: 2px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: #e6e6e6; }
.gd-steps li + li { margin-top: 4px; }
.gd-steps li::marker { color: var(--gold); font-weight: 800; }
@media (min-width: 760px) {
  .gd-body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; }
  .gd-ph { max-width: 300px; }
}
/* ⭐ My plan's feature rows open their guide card: a quiet › at the end */
a.pl-row { cursor: pointer; word-break: normal; }
a.pl-row .pl-t { flex: 1 1 auto; }
a.pl-row::after { content: '›'; flex: none; margin-left: -4px; color: var(--gold-dim); font-size: 18px; font-weight: 700; line-height: 1; }
a.pl-row:hover .pl-t { color: #fff; }
a.pl-row:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; border-radius: 6px; }
.pl-row.gd-more { margin-top: 8px; }
.pl-row.gd-more .pl-t { color: var(--gold); font-weight: 700; }
/* v0.00.32: #81 gold booked days (L) — without #81: the month calendar's one small 🔒 chip (opens the #81 card) */
.legend.gold-lkw { margin-top: 6px; }
.gold-lk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1.2; padding: 3px 9px; border: 1px dashed #6b5a2e; border-radius: 999px; color: var(--gold); background: #17140c; text-decoration: none; }
.gold-lk:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
/* v0.00.33 F-1 (REVIEW A05-F2 + A18-F1): Settings → Import's preview — nothing is written until Import */
.imp-pv { margin: 10px 0; padding: 12px; border: 1px solid var(--gold-dim); border-radius: var(--radius); background: var(--bg2); }
.imp-pv-h { font-weight: 700; font-size: 15px; color: var(--gold); margin-bottom: 4px; }
.imp-pv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
@media (min-width: 700px) { .imp-pv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.imp-pv-t { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.imp-pv-t b { display: block; font-size: 22px; line-height: 1.15; }
.imp-pv-t span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.imp-pv-t.imp-ch b { color: var(--gold); } .imp-pv-t.imp-nw b { color: var(--green); } .imp-pv-t.imp-dl b { color: var(--amber); } .imp-pv-t.imp-em b { color: var(--blue); }
.imp-pv-sum { font-size: 12.5px; color: var(--dim); margin: 4px 0 6px; line-height: 1.45; }
.imp-pv .imp-pv-note { margin: 6px 0; }
.imp-pv-back { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.imp-pv-back input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.imp-pv-names { margin: 0 0 6px 32px; line-height: 1.45; overflow-wrap: anywhere; }
.imp-pv .btns { margin-top: 12px; } .imp-pv .btn { min-height: 44px; }
.imp-done { margin-top: -4px; }

/* ---------- v0.00.33 (D3, Michael Nov 11): 📜 the Terms and Conditions — #/terms, the sheet over the join / sign-in page,
   the "Please read and accept" screen, and the join page's tick box (black and gold, easy to read on a phone) ---------- */
.terms-text { text-align: left; color: var(--text); line-height: 1.55; font-size: 15px; }
.terms-text .terms-title { color: var(--gold); font-size: 19px; line-height: 1.3; }
.terms-text .terms-meta { margin: 4px 0 6px; color: var(--muted); font-size: 12.5px; }
.terms-text .terms-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.terms-text h3 { color: var(--gold2); font-size: 15.5px; margin-bottom: 4px; }
.terms-text p, .login .terms-text p { text-align: left; color: var(--text); font-size: 15px; margin: 6px 0; }
.terms-text ul { margin: 4px 0 6px; padding-left: 22px; }
.terms-text li { margin: 3px 0; }
.terms-text a { color: var(--gold2); word-break: normal; }
.terms-page.content { max-width: 720px; }
.login.terms-page { max-width: 680px; margin: 18px auto 40px; }
.login.terms-page h1 { line-height: 1.25; }
.login .terms-lead { margin: 10px 0 4px; line-height: 1.45; }
.terms-gate .terms-text { margin-top: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.terms-accept { margin-top: 16px; }
.terms-agree label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--gold-dim); border-radius: 10px; background: var(--gold-bg); color: var(--text); font-size: 15px; line-height: 1.4; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; }
.terms-agree input[type=checkbox] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.terms-agree a { color: var(--gold2); word-break: normal; }
.terms-out { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.linkish { background: none; border: 0; padding: 4px 2px; color: var(--gold2); text-decoration: underline; font-size: 14px; }
.terms-signin { text-align: center; margin-top: 14px; font-size: 14px; }
.terms-signin a { color: var(--gold2); word-break: normal; }
body.ts-open { overflow: hidden; }
.terms-sheet { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.82); display: flex; justify-content: center; align-items: flex-end; }
.terms-sheet .ts-panel { width: 100%; max-width: 680px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--gold-dim); border-bottom: 0; border-radius: 16px 16px 0 0; }
.terms-sheet .ts-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--gold); }
.terms-sheet .ts-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 12px; -webkit-overflow-scrolling: touch; }
.terms-sheet .ts-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: center; }
.terms-sheet .ts-foot .btn { width: 100%; max-width: 360px; justify-content: center; }
.pl-keep, .block .hint.pl-keep { margin-top: 8px; line-height: 1.45; color: var(--text); } /* (v0.00.33 rebuild: the normal text color — it's a promise; was the faint hint grey, about 3.6:1) */
@media (min-width: 700px) { .terms-sheet { align-items: center; } .terms-sheet .ts-panel { border-bottom: 1px solid var(--gold-dim); border-radius: 16px; max-height: 86vh; } }
@media (max-width: 480px) { .login.terms-page { margin: 10px 10px 30px; padding: 18px 14px; } }
