/* Be Your Own Boss: a BaleHQ game.
   Layout: full-bleed isometric town; a cream top bar, a ledger panel on the right
   (a bottom sheet on phones) and modals for the big moments. Colours and type follow balehq.com. */
:root {
  --cream: #F8F3E6;
  --cream-2: #F0E6CF;
  --straw: #DBA443;
  --straw-2: #EAC66F;
  --paper: #FFFFFF;
  --ink: #111827;
  --head: #1E2939;
  --muted: #6A7282;
  --line: #E8DCC0;
  --red: #C8382D;
  --red-2: #A92D23;
  --red-tint: #FBE9E6;
  --good: #2F7D4F;
  --good-tint: #E7F3EC;
  --star: #E8A33D;
  --sky: #BFD8C4;
  --f-head: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 60px;
  --gl: max(14px, env(safe-area-inset-left, 0px));
  --gr: max(14px, env(safe-area-inset-right, 0px));
  --shadow: 0 12px 30px rgba(43, 33, 20, .16), 0 2px 6px rgba(43, 33, 20, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--sky); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(200, 56, 45, .45); outline-offset: 2px; }
a { color: var(--red); }
.app { position: relative; height: 100%; overflow: hidden; -webkit-user-select: none; user-select: none; background: radial-gradient(130% 100% at 50% 40%, #CFE3D2 0%, #A9C7AF 100%); }
#town { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
input { -webkit-user-select: text; user-select: text; }

/* ---------- top bar ---------- */
.top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding-left: var(--gl); padding-right: var(--gr); padding-top: env(safe-area-inset-top, 0px); background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(43, 33, 20, .08); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.brand img { width: 34px; height: 34px; flex: none; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: repeating-linear-gradient(90deg, var(--straw) 0 22px, var(--straw-2) 22px 26px); pointer-events: none; }
.startmark { justify-self: center; width: 84px; height: 84px; margin: -4px 0 -6px; }
.brand > span { min-width: 0; }
.brand b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 17px; color: var(--head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small em { font-style: normal; color: var(--red); }
.money { font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--good); font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.neg { color: var(--red); }
.clock { font-weight: 700; font-size: 13.5px; color: var(--head); white-space: nowrap; display: grid; gap: 4px; }
.clock .bar { height: 3px; border-radius: 2px; background: var(--cream-2); overflow: hidden; width: 86px; }
.clock .bar i { display: block; height: 100%; background: var(--red); transform-origin: left; }
.speed { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--cream-2); flex: none; }
.speed button { min-width: 32px; height: 30px; border: 0; border-radius: 8px; background: transparent; font-weight: 800; font-size: 13.5px; color: var(--head); display: grid; place-items: center; }
.speed button svg { width: 14px; height: 14px; }
.speed button[aria-pressed="true"] { background: var(--head); color: #fff; }
.icon-btn { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--head); }
.icon-btn svg { width: 19px; height: 19px; }
.menu { position: absolute; z-index: 9; top: calc(var(--top-h) + 8px); right: var(--gr); width: 240px; padding: 6px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); display: grid; }
.menu button, .menu a { text-align: left; padding: 11px 12px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; color: var(--head); text-decoration: none; font-size: 14.5px; }
.menu button:hover, .menu a:hover { background: var(--cream); }
.menu .red { color: var(--red); }

/* ---------- panel ---------- */
.panel { position: absolute; z-index: 5; top: calc(var(--top-h) + 14px); right: var(--gr); bottom: 14px; width: 370px; display: flex; flex-direction: column; background: var(--cream); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.tabs { display: flex; padding: 6px 6px 0; gap: 2px; border-bottom: 1px solid var(--line); flex: none; background: var(--paper); }
.tabs button { position: relative; flex: 1; padding: 11px 4px 10px; border: 0; background: transparent; font-weight: 800; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--head); border-bottom-color: var(--red); }
.count { position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.body { flex: 1; overflow-y: auto; padding: 4px 16px 18px; overscroll-behavior: contain; }
.sec { padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sec-h h3 { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--head); letter-spacing: -.01em; }
.meta { font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.fine { font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.note { font-size: 13.5px; margin: 10px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.note.red { background: var(--red-tint); border-color: #F2CFC9; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--head); font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.btn:hover:not(:disabled) { border-color: #D6CDBB; }
.btn.primary { background: var(--red); border-color: var(--red); color: #FFFAF5; box-shadow: 0 5px 14px rgba(200, 56, 45, .22); }
.btn.primary:hover:not(:disabled) { background: var(--red-2); border-color: var(--red-2); }
.btn.dark { background: var(--head); border-color: var(--head); color: #fff; }
.btn.sm { min-height: 32px; padding: 4px 11px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; min-height: 48px; font-size: 15.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }

.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.goals li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: var(--head); }
.goals .tick { width: 17px; height: 17px; border-radius: 5px; border: 2px solid #CFC6B4; }
.goals li.done .tick { background: var(--good); border-color: var(--good); box-shadow: inset 0 0 0 3px var(--cream); }
.goals li.done .gt { color: var(--muted); text-decoration: line-through; }
.goals .gp { font-size: 12.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.goals li.done .gp { color: var(--good); }

.inbox { display: grid; gap: 8px; }
.enq { display: grid; grid-template-columns: 10px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.enq.big { background: var(--head); border-color: var(--head); color: #fff; }
.enq.big b, .enq.big .price { color: #fff; }
.enq .src { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.enq b { font-size: 14px; color: var(--head); display: block; }
.enq span { font-size: 12.5px; color: var(--muted); }
.enq.big span { color: #C9CED8; }
.enq .price { font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--good); text-align: right; }
.enq .acts { grid-column: 2 / 4; display: flex; gap: 6px; align-items: center; }
.enq .life { flex: 1; height: 4px; border-radius: 2px; background: var(--cream-2); overflow: hidden; }
.enq .life i { display: block; height: 100%; background: var(--star); }
.enq .life.low i { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.team li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; padding: 5px 0; }
.team .sw { width: 12px; height: 12px; border-radius: 4px; }
.team b { display: block; font-size: 14px; color: var(--head); }
.team small { font-size: 12px; color: var(--muted); }
.team .st { font-size: 12.5px; font-weight: 700; color: var(--good); white-space: nowrap; }
.team .st.idle { color: var(--muted); }
.mini { border: 0; background: none; padding: 4px; font-size: 12px; color: var(--muted); text-decoration: underline; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 8px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; text-align: right; font-weight: 800; color: var(--head); font-variant-numeric: tabular-nums; }
.kv dd.pos { color: var(--good); }

.card { padding: 12px 13px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.card.locked { background: repeating-linear-gradient(135deg, var(--paper) 0 9px, var(--cream) 9px 10px); }
.card.done { background: var(--good-tint); border-color: #CFE6D8; }
.card-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-h b { color: var(--head); font-size: 14.5px; }
.card-h .price { font-family: var(--f-head); font-weight: 800; color: var(--head); font-variant-numeric: tabular-nums; }
.card p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 9px; }
.card-f .why { font-size: 12px; font-weight: 700; color: var(--red); }
.areas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.areas .area { padding: 8px; }
.areas .area b { font-size: 13px; }
.areas .btn.sm { padding: 4px 6px; font-size: 12px; }
.area { padding: 10px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.area b { font-size: 14px; color: var(--head); }
.area.on { background: var(--good-tint); border-color: #CFE6D8; }
.area span { font-size: 12px; color: var(--muted); font-weight: 600; }

.hero { padding: 16px; border-radius: 18px; background: var(--head); color: #fff; display: grid; gap: 10px; }
.hero h3 { margin: 0; font-family: var(--f-head); font-size: 22px; line-height: 1.1; color: #fff; }
.hero p { margin: 0; color: #C9CED8; font-size: 14px; }
.real { padding: 14px; border-radius: 16px; background: var(--red-tint); border: 1px solid #F2CFC9; display: grid; gap: 8px; }
.real b { color: var(--head); font-family: var(--f-head); font-size: 16px; }
.real p { margin: 0; font-size: 13px; color: var(--head); }

.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.stage { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 6px 0 12px; }
.stage .no { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font-family: var(--f-head); font-weight: 800; color: var(--muted); }
.stage.now .no { background: var(--red); border-color: var(--red); color: #fff; }
.stage.done .no { background: var(--good); border-color: var(--good); color: #fff; }
.stage b { display: block; font-family: var(--f-head); font-size: 16px; color: var(--head); }
.stage p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--cream-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--red); border-radius: 4px; }

/* ---------- map overlays ---------- */
.inspect { position: absolute; z-index: 5; left: var(--gl); bottom: 14px; width: 300px; max-width: calc(100% - 28px); padding: 13px 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); display: grid; gap: 6px; }
.inspect .i-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inspect b { font-family: var(--f-head); font-weight: 800; font-size: 16px; color: var(--head); }
.inspect p { margin: 0; font-size: 13.5px; color: var(--muted); }
.x { border: 0; background: var(--cream); width: 28px; height: 28px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--muted); flex: none; }
.modebar { position: absolute; z-index: 6; top: calc(var(--top-h) + 14px); left: 14px; right: 400px; margin: 0 auto; width: max-content; max-width: calc(100% - 420px); display: flex; gap: 12px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--head); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.toasts { position: absolute; z-index: 8; left: 14px; right: 400px; bottom: 16px; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.toast { max-width: 460px; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--head); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; text-align: center; border-left: 4px solid var(--muted); animation: tin .25s ease-out; transition: opacity .3s, transform .3s; }
.toast.good { border-left-color: var(--good); }
.toast.warn { border-left-color: var(--red); }
.toast.goal { background: var(--head); color: #fff; border-left-color: var(--star); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.bottom-nav { display: none; }

/* ---------- modals ---------- */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px var(--gr) 16px var(--gl); background: rgba(20, 28, 38, .45); backdrop-filter: blur(3px); }
.mcard { width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 24px 24px 20px; border-radius: 24px; background: var(--cream); box-shadow: 0 30px 70px rgba(20, 20, 20, .3); display: grid; gap: 14px; }
.mcard h1, .mcard h2 { margin: 0; font-family: var(--f-head); font-weight: 800; color: var(--head); letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
.mcard h1 { font-size: clamp(32px, 8vw, 44px); }
.mcard h2 { font-size: 28px; }
.mcard h1 em, .mcard h2 em { font-style: normal; color: var(--red); }
.eyebrow { justify-self: start; padding: 5px 11px; border-radius: 99px; background: var(--red-tint); color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lede { margin: 0; font-size: 16px; color: var(--muted); font-weight: 500; }
.bizgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.biz { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); font-weight: 800; font-size: 12.5px; line-height: 1.15; color: var(--head); text-align: center; }
.biz svg { width: 38px; height: 38px; }
.biz:hover { border-color: #D6CDBB; }
.biz[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.biz.flash { border-color: var(--red); transform: scale(1.04); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 14px; color: var(--head); }
.field input { width: 100%; min-height: 50px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: 600 17px/1.2 var(--f-body); color: var(--ink); }
.field input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 4px var(--red-tint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 13.5px; color: var(--head); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--red); }
.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl { padding: 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); display: grid; gap: 6px; font-weight: 800; font-size: 13px; color: var(--head); }
.tpl[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.tpl .mini { height: 150px; border-radius: 10px; overflow: hidden; pointer-events: none; }
.tpl .mini .site { transform: scale(.45); transform-origin: top left; width: 222%; }
.publishing { height: 10px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.publishing i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; animation: fill 1.3s ease-in-out both; }
@keyframes fill { from { transform: scaleX(0); } }
.unlocks { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 600; color: var(--head); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.kpi b { display: block; font-family: var(--f-head); font-size: 22px; color: var(--head); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* mock website */
.site { --h: #1E2939; --hi: #fff; --a: #C8382D; --bg: #fff; --hf: var(--f-head); background: var(--bg); color: #1f2937; font-family: var(--f-body); min-height: 100%; }
.s-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--h); color: var(--hi); font-family: var(--hf); font-weight: 800; font-size: 15px; }
.s-nav i { width: 18px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
.s-hero { padding: 16px 14px; background: var(--h); color: var(--hi); display: grid; gap: 8px; }
.s-hero small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.s-hero b { font-family: var(--hf); font-size: 21px; line-height: 1.1; }
.s-btn { justify-self: start; padding: 9px 14px; border-radius: 10px; background: var(--a); color: #fff; font-weight: 800; font-size: 13px; }
.s-list { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; }
.s-list li { padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .04); font-weight: 700; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.s-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a); flex: none; }
.s-stars { padding: 0 14px 14px; font-size: 12.5px; font-weight: 800; color: #1f2937; }
.s-stars span { color: var(--star); letter-spacing: 1px; }
.phone { position: relative; width: min(230px, 70%); justify-self: center; aspect-ratio: 9 / 17; border-radius: 32px; padding: 9px; background: #1d1d1f; box-shadow: 0 20px 44px rgba(43, 33, 20, .25); }
.phone .scr { height: 100%; border-radius: 24px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone .bar { flex: none; padding: 7px 10px 6px; background: #F2F2F4; font-size: 10px; font-weight: 700; color: #555; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .site { flex: 1; overflow: hidden; }
.ping { position: absolute; left: -16%; right: -16%; top: 56%; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(43, 33, 20, .2); animation: ping .5s .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.ping .dot { grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; background: var(--red); display: grid; place-items: center; color: #fff; }
.ping small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--red); }
.ping b { font-size: 13.5px; color: var(--head); }
@keyframes ping { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.urlchip { justify-self: center; display: inline-flex; gap: 6px; align-items: center; max-width: 100%; padding: 7px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--head); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.urlchip i { width: 8px; height: 8px; border-radius: 50%; background: #22A35A; flex: none; box-shadow: 0 0 0 3px #D6F0E0; }
.ptiny { width: 150px; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  :root { --top-h: 54px; }
  .top { gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand b { font-size: 15px; }
  .clock .bar { width: 100%; }
  .clock span.wk { display: none; }
  .money { font-size: 18px; }
  .speed button { min-width: 27px; height: 28px; font-size: 12.5px; }
  .panel { top: auto; left: var(--gl); right: var(--gr); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(62%, 560px); }
  .tabs { display: none; }
  .bottom-nav { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 6px var(--gr) max(6px, env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--paper); border-top: 1px solid var(--line); }
  .bottom-nav button { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 10px; background: transparent; font-size: 11.5px; font-weight: 800; color: var(--muted); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav button[aria-pressed="true"] { color: var(--red); background: var(--red-tint); }
  .bottom-nav .count { top: 0; right: 18%; }
  .inspect { left: var(--gl); right: var(--gr); width: auto; top: calc(var(--top-h) + 10px); bottom: auto; }
  .modebar { left: var(--gl); right: var(--gr); width: auto; max-width: none; top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; font-size: 13px; }
  .toasts { left: var(--gl); right: var(--gr); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .bizgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .biz { font-size: 11px; padding: 10px 2px 8px; }
  .biz svg { width: 30px; height: 30px; }
  .mcard { padding: 20px 18px 18px; border-radius: 22px; }
  .mcard h2 { font-size: 25px; }
}
@media (max-width: 560px) { .clock { display: none; } }
@media (max-width: 380px) { .speed button { min-width: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition: none !important; } }

/* ---------- head office, numbers and charts ---------- */
.pill { padding: 4px 10px; border-radius: 99px; background: var(--head); color: #fff; font-weight: 800; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mapbar { position: absolute; z-index: 4; top: calc(var(--top-h) + 14px); left: var(--gl); display: grid; gap: 8px; justify-items: start; max-width: calc(100% - 420px); pointer-events: none; }
.mapbar > * { pointer-events: auto; }
.mb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--cream-2); }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 5px 9px; font-weight: 800; font-size: 12.5px; color: var(--head); min-height: 30px; }
.seg button.on { background: var(--head); color: #fff; }
.seg.big { background: var(--paper); box-shadow: var(--shadow); padding: 4px; border-radius: 13px; }
.seg.big button { padding: 7px 13px; font-size: 13.5px; min-height: 36px; }
.lensbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 13px; border: 0; background: var(--paper); box-shadow: var(--shadow); font-weight: 800; font-size: 13.5px; color: var(--head); }
.lensbtn i { width: 22px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #d6453b 0 33%, #d9d5cb 33% 66%, #0f8a6a 66%); }
.lensbtn[aria-pressed="true"] { background: var(--head); color: #fff; }
.mb-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 253, 248, .94); box-shadow: 0 4px 14px rgba(43, 33, 20, .1); font-size: 12px; font-weight: 700; color: var(--head); max-width: 360px; }
.mb-leg .t { flex-basis: 100%; color: #52514e; font-weight: 600; }
.mb-leg i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.mb-leg i.ring { background: transparent; border: 1.6px dashed var(--head); box-shadow: none; }
.inspect.wide { width: 340px; max-height: calc(100% - var(--top-h) - 170px); overflow-y: auto; overscroll-behavior: contain; }
.inspect .kv.sm { font-size: 13px; gap: 4px 12px; margin: 2px 0 4px; }
.kv dd.neg { color: #b3261e; }
.ctl { display: grid; gap: 5px; margin-top: 4px; }
.ctl > span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ctl .row b { min-width: 26px; text-align: center; font-family: var(--f-head); font-size: 17px; }
.tog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--head); margin-left: 6px; }
.tog input { width: 18px; height: 18px; accent-color: var(--head); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles .kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.tiles .kpi b { font-size: 19px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles .kpi small { display: block; font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.tiles .kpi small.up { color: #006300; }
.tiles .kpi small.down { color: #b3261e; }
.chart { background: #fcfcfb; border: 1px solid rgba(11, 11, 11, .1); border-radius: 14px; padding: 12px 12px 10px; }
.c-h { display: grid; gap: 1px; margin-bottom: 6px; }
.c-h b { font-family: var(--f-head); font-weight: 800; font-size: 15.5px; color: #0b0b0b; }
.c-h span { font-size: 12px; color: #52514e; font-weight: 600; }
.c-leg { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: #52514e; font-weight: 600; margin: 2px 0 4px; }
.c-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.viz .tk { font: 600 10.5px var(--f-body); fill: #898781; font-variant-numeric: tabular-nums; }
.viz .rl { font: 700 11.5px var(--f-body); fill: #0b0b0b; }
.viz .rl .tg { font-weight: 800; fill: #52514e; font-size: 10px; }
.viz .vl { font: 700 11px var(--f-body); fill: #0b0b0b; font-variant-numeric: tabular-nums; }
.viz [data-tip], .viz [data-chart] { cursor: crosshair; }
.tv { margin-top: 6px; font-size: 12.5px; }
.tv summary { cursor: pointer; color: #52514e; font-weight: 700; }
.tv table { width: 100%; border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tv th, .tv td { text-align: left; padding: 4px 4px; border-bottom: 1px solid #e1e0d9; }
.tv th { color: #52514e; font-weight: 700; }
.tv .n { text-align: right; }
.tv tbody { display: table-row-group; }
.bignum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 2px 0 6px; }
.bignum b { font-family: var(--f-head); font-weight: 800; font-size: 30px; color: #0b0b0b; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bignum span { font-size: 13px; font-weight: 700; color: #52514e; }
.meter.m1 { margin: 0 0 10px; }
.meter.m1 i { background: #2a78d6; }
.meter.dk { background: rgba(255, 255, 255, .15); }
.meter.dk i { background: var(--star); }
.ctip { position: fixed; z-index: 30; left: 0; top: 0; max-width: 240px; padding: 8px 10px; border-radius: 10px; background: #fcfcfb; color: #0b0b0b; box-shadow: 0 8px 24px rgba(20, 20, 20, .18); border: 1px solid rgba(11, 11, 11, .1); font-size: 12.5px; font-weight: 600; pointer-events: none; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.ctip b { font-weight: 800; }
.ctip i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -0.5px; }
.hero h3 { font-variant-numeric: tabular-nums; }
.hero.alt { background: var(--red-tint); color: var(--head); }
.hero.alt h3 { color: var(--head); }
.hero.alt p { color: var(--head); }
.hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hstats span { display: grid; font-size: 11.5px; color: #C9CED8; font-weight: 600; }
.hstats b { font-family: var(--f-head); font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trow { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 9px 11px; border-radius: 13px; border: 1px solid var(--line); background: var(--paper); }
.trow.on { border-color: var(--head); box-shadow: 0 0 0 2px var(--head) inset; }
.trow > i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.trow b { display: inline; font-size: 14px; color: var(--head); }
.trow em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-left: 6px; }
.trow small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.trow strong { font-family: var(--f-head); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trow strong.up { color: #006300; }
.trow strong.down { color: #b3261e; }
.choices { display: grid; gap: 8px; }
.choice { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); }
.choice:hover:not(:disabled) { border-color: var(--head); }
.choice b { font-size: 15px; color: var(--head); }
.choice span { font-size: 13px; color: var(--muted); font-weight: 600; }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.tabs button { font-size: 13.5px; padding-left: 2px; padding-right: 2px; }
@media (max-width: 820px) {
  .mapbar { top: calc(var(--top-h) + 8px); max-width: calc(100% - 28px); }
  .mb-leg { max-width: none; font-size: 11.5px; padding: 6px 10px; }
  .lensbtn { min-height: 38px; font-size: 13px; }
  .seg.big button { min-height: 32px; padding: 5px 11px; font-size: 13px; }
  .inspect.wide { width: auto; max-height: calc(100% - var(--top-h) - 96px); }
  .pill { display: none; }
  .bottom-nav button { font-size: 10.5px; }
}
@media (max-width: 480px) {
  .brand { flex: none; }
  .brand > span { display: none; }
  .money { margin-right: auto; }
  .mb-leg .t { display: none; }
  .top { gap: 8px; }
}

/* ---------- money trouble ---------- */
.od { display: grid; gap: 3px; font-size: 11.5px; font-weight: 800; color: #b3261e; white-space: nowrap; }
.od .odb { width: 86px; height: 4px; border-radius: 2px; background: #F3D9D5; overflow: hidden; }
.od .odb i { display: block; height: 100%; background: #b3261e; transform-origin: left; }
.od.bad { animation: odp 1s ease-in-out infinite alternate; }
@keyframes odp { to { opacity: .55; } }
.pill.econ { background: var(--cream-2); color: var(--head); }
.alert { position: absolute; z-index: 7; top: calc(var(--top-h) + 14px); left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100% - 430px)); display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 14px; background: #FBE9E6; border: 1.5px solid #d03b3b; box-shadow: var(--shadow); font-size: 13.5px; color: var(--head); }
.alert b { white-space: nowrap; }
.alert span { color: var(--head); }
.bank { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.b-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.b-top span { font-weight: 700; color: var(--muted); font-size: 13px; }
.b-top b { font-family: var(--f-head); font-size: 28px; color: var(--head); font-variant-numeric: tabular-nums; }
.b-top b.neg, .neg { color: #b3261e; }
.b-state { display: grid; grid-template-columns: 22px auto 1fr; gap: 2px 8px; align-items: center; font-size: 13px; }
.b-state i { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; grid-row: span 2; }
.b-state b { color: var(--head); }
.b-state span { grid-column: 2 / 4; color: var(--muted); font-weight: 600; }
.odbar { height: 8px; border-radius: 4px; background: var(--cream-2); overflow: hidden; }
.odbar i { display: block; height: 100%; border-radius: 4px; }
.odlab { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: -4px; font-variant-numeric: tabular-nums; }
.bills { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.bills li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.bills li > span:first-child b { display: block; font-size: 13.5px; color: var(--head); }
.bills small { font-size: 12px; color: var(--muted); font-weight: 700; }
.bills small.neg { color: #b3261e; }
.bills strong { font-family: var(--f-head); font-size: 15px; color: var(--head); font-variant-numeric: tabular-nums; text-align: right; }
.bills strong.down { color: #b3261e; }
.bills li > :nth-child(3) { grid-column: 1 / 3; }
.bills li > :nth-child(3):empty { display: none; }
.warnline { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--head); }
.viz .dz { fill: #52514e; font-weight: 700; }
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diff { display: grid; gap: 3px; text-align: left; padding: 10px 11px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); }
.diff b { font-size: 14px; color: var(--head); }
.diff span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.diff[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.mb-leg b.dia { display: inline-block; width: 9px; height: 9px; background: #1E2939; transform: rotate(45deg); margin-right: 7px; vertical-align: 0; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
@media (max-width: 820px) {
  .alert { top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: var(--gl); right: var(--gr); transform: none; max-width: none; flex-wrap: wrap; }
  .diffs { grid-template-columns: 1fr; }
  .od .odb { width: 60px; }
}
@media (max-width: 480px) { .od span:first-child { font-size: 10.5px; } .od { max-width: 92px; white-space: normal; } }
.mcard .grid2 .btn { white-space: normal; text-align: center; line-height: 1.2; }
.mcard { overflow-x: hidden; }
.mb-leg i.hatch { background: repeating-linear-gradient(135deg, #0f8a6a 0 2px, #9fd2c1 2px 4px); border-radius: 3px; }
.diary { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.d-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.d-top b { font-family: var(--f-head); font-size: 19px; color: var(--head); font-variant-numeric: tabular-nums; }
.d-top span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dmeter { position: relative; height: 10px; border-radius: 5px; background: var(--cream-2); overflow: hidden; }
.dmeter .zone { position: absolute; top: 0; bottom: 0; background: #d9e8de; }
.dmeter i { position: relative; display: block; height: 100%; border-radius: 5px; }
.diary .viz { margin-top: 4px; }

/* ---------- people ---------- */
.team li { grid-template-columns: 12px 1fr auto; }
.team .tacts { grid-column: 2 / 4; display: flex; gap: 2px; justify-content: flex-end; margin-top: -4px; }
.team .tacts:empty { display: none; }
.team small br + * { display: inline; }
em.kind { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--cream-2); color: var(--head); margin-left: 4px; vertical-align: 1px; }
em.kind.exp { background: var(--head); color: #fff; }
.role { padding: 11px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); display: grid; gap: 7px; }
.role.locked { background: repeating-linear-gradient(135deg, var(--paper) 0 9px, var(--cream) 9px 10px); }
.role .card-h b { font-size: 14px; }
.role .seg { flex-wrap: wrap; }
.role .seg button { font-size: 12px; padding: 5px 8px; }
.role .seg button:disabled { opacity: .45; }
.rwhat { margin: 0; font-size: 12.5px; color: var(--muted); }
.radv { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--head); display: flex; gap: 7px; align-items: flex-start; }
.radv .dot { flex: none; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 800; }
.radv .dot.good { background: #0ca30c; color: #fff; }
.radv .dot.warn { background: #fab219; color: #1E2939; }
.qlim { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.qlim > span { font-size: 12.5px; font-weight: 800; color: var(--head); }
.qlim .seg { flex-wrap: wrap; }
.qlim .seg button { font-size: 12px; padding: 5px 8px; }
.qlim .fine { margin: 0; }

/* ---------- start guide ---------- */
.g-art { display: grid; place-items: center; min-height: 92px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #e7efdc, #d7e5c6); border: 1px solid var(--line); }
.g-stages { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.g-stages span { padding: 4px 9px; border-radius: 99px; background: var(--paper); font-size: 11.5px; font-weight: 800; color: var(--muted); }
.g-stages span.on { background: var(--red); color: #fff; }
.g-stages span.end { background: var(--head); color: #fff; }
.g-bubbles { display: flex; gap: 14px; align-items: center; }
.gb { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); font-weight: 800; font-size: 15px; color: var(--head); }
.gb.big { background: var(--head); color: #fff; }
.gb .ring { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid #E8A33D; border-left-color: transparent; }
.gb .ring.low { border-color: #C8382D transparent transparent transparent; }
.gb .dot { position: absolute; left: 12.5px; width: 6px; height: 6px; border-radius: 50%; }
.gb:first-child::after { content: ''; position: absolute; inset: -6px; border-radius: 99px; border: 2.5px solid rgba(200,56,45,.7); animation: gpulse 1.4s ease-out infinite; }
@keyframes gpulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.g-diary { display: flex; width: 100%; max-width: 360px; border-radius: 10px; overflow: hidden; font-size: 12px; font-weight: 800; text-align: center; }
.g-diary span { padding: 9px 4px; }
.g-diary .lo { flex: 1; background: #f3e3b5; color: var(--head); }
.g-diary .ok { flex: 2; background: #0f8a6a; color: #fff; }
.g-diary .hi { flex: 1.3; background: #d6453b; color: #fff; }
.g-bank { display: grid; gap: 6px; width: 100%; max-width: 280px; }
.g-bank b { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 26px; color: #0b7a5c; }
.g-bank .odb { height: 8px; border-radius: 99px; background: rgba(255,255,255,.8); overflow: hidden; }
.g-bank .odb i { display: block; height: 100%; background: #fab219; }
.g-bank small { font-size: 12px; font-weight: 700; color: var(--muted); }
.g-roles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.g-roles span { padding: 5px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--head); }
.coach { position: absolute; z-index: 6; left: var(--gl); top: calc(var(--top-h) + 72px); width: 290px; padding: 12px 14px 10px; border-radius: 16px; background: var(--head); color: #fff; box-shadow: var(--shadow); display: grid; gap: 6px; animation: cin .35s ease-out; }
.coach .c-n { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffcf7a; }
.coach p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.coach .c-b { display: flex; justify-content: space-between; gap: 6px; }
.coach .btn.ghost { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }
@keyframes cin { from { opacity: 0; transform: translateY(-6px); } }
.coach-hi { position: relative; animation: chi 1.3s ease-in-out infinite; z-index: 1; }
@keyframes chi { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,56,45,.0), inset 0 0 0 2px #C8382D; } 50% { box-shadow: 0 0 0 6px rgba(200,56,45,.25), inset 0 0 0 2px #C8382D; } }
.inspect:not([hidden]) ~ .coach { display: none; }
@media (max-width: 820px) {
  .coach { right: var(--gr); width: auto; top: calc(var(--top-h) + 58px); }
}
@media (prefers-reduced-motion: reduce) { .coach-hi, .gb:first-child::after, .coach { animation: none; } .coach-hi { box-shadow: inset 0 0 0 2px #C8382D; } }

/* ---------- branch towns ---------- */
.pip { position: relative; margin: 2px 0 4px; border-radius: 12px; overflow: hidden; background: #8DBE5A; border: 1px solid var(--line); }
.pip canvas { display: block; width: 100%; height: 170px; }
.pip .btn { position: absolute; right: 8px; bottom: 8px; box-shadow: var(--shadow); }
.pip::before { content: 'Live'; position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 8px 2px 18px; border-radius: 99px; background: rgba(30,41,57,.82); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pip::after { content: ''; position: absolute; left: 14px; top: 15px; z-index: 2; width: 6px; height: 6px; border-radius: 50%; background: #ff5a4e; animation: livedot 1.6s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: .35; } }
@media (max-width: 820px) { .pip canvas { height: 120px; } }
.b-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; }
.b-leg span { display: inline-flex; align-items: center; gap: 5px; }
.b-leg i { display: inline-grid; place-items: center; width: 16px; height: 13px; border-radius: 6px; font-style: normal; font-size: 9px; font-weight: 800; }
.b-leg i.ok { background: #fff; color: #0b7a5c; border: 1px solid var(--line); }
.b-leg i.no { background: #C43A31; color: #fff; }
.b-leg i.cu { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.b-leg i.rv { width: 14px; height: 8px; border-radius: 2px; background: #6E4FA8; }
@media (prefers-reduced-motion: reduce) { .pip::after { animation: none; } }

/* ---------- premises picker ---------- */
.prem-list { display: grid; gap: 8px; max-height: min(56vh, 520px); overflow-y: auto; padding-right: 2px; }
.prem { padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); display: grid; gap: 6px; }
.prem.focus { border: 2px solid #E8A33D; }
.pr-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pr-h b { display: block; font-size: 14.5px; color: var(--head); }
.pr-h small { font-size: 12px; color: var(--muted); font-weight: 600; }
.stars { flex: none; font-size: 17px; letter-spacing: 1px; color: #E8A33D; white-space: nowrap; line-height: 1; }
.pr-best { justify-self: start; padding: 2px 9px; border-radius: 99px; background: #0f8a6a; color: #fff; font-size: 11px; font-weight: 800; }
.pr-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: var(--head); }
.pr-why li { display: flex; gap: 7px; align-items: flex-start; }
.pr-why i { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 800; margin-top: 1px; }
.pr-why .g i { background: #0ca30c; color: #fff; }
.pr-why .b i { background: #d03b3b; color: #fff; }

/* ---------- celebrations ---------- */
.mcard.party { overflow: hidden; position: relative; background: linear-gradient(180deg, #FFF6DF, var(--cream) 46%); border: 2px solid #E8A33D; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; animation-name: fall; animation-timing-function: cubic-bezier(.3,.6,.6,1); animation-fill-mode: forwards; animation-iteration-count: 2; opacity: .9; }
@keyframes fall { to { top: 105%; transform: rotate(540deg) translateX(30px); } }
.celeb { position: relative; z-index: 1; display: grid; gap: 12px; }
.eyebrow.gold { display: inline-flex; align-items: center; gap: 6px; background: #E8A33D; color: #1E2939; }
.eyebrow.gold svg { width: 15px; height: 15px; }
.snap { width: 100%; height: 190px; border-radius: 14px; background: #8DBE5A; border: 1px solid var(--line); display: block; }
.deal { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.deal > div { padding: 9px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 2px; }
.deal span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.deal b { font-size: 14.5px; color: var(--head); }
.deal small { font-size: 12px; color: var(--muted); font-weight: 600; }
.banner { position: absolute; z-index: 9; top: calc(var(--top-h) + 14px); left: 50%; transform: translate(-50%, -20px); opacity: 0; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 430px)); padding: 10px 16px 10px 12px; border-radius: 16px; background: #1E2939; color: #fff; box-shadow: 0 10px 30px rgba(20,25,40,.35); border: 2px solid #E8A33D; cursor: pointer; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .3s; }
.banner.in { transform: translate(-50%, 0); opacity: 1; }
.banner.out { transform: translate(-50%, -20px); opacity: 0; }
.banner svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #E8A33D; color: #1E2939; }
.banner div { display: grid; min-width: 0; }
.banner span { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #ffcf7a; }
.banner b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner strong { flex: none; font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 20px; color: #7fe0b8; }
@media (max-width: 820px) { .banner { max-width: none; left: var(--gl); right: var(--gr); transform: translate(0, -20px); } .banner.in { transform: none; } .banner.out { transform: translate(0, -20px); } .snap { height: 150px; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .banner { transition: none; } }
