:root {
  --lapis: #00728c; --lapis-deep: #054a60; --sky: #ddf3f4; --saffron: #f5b018;
  --ink: #141a33; --slate: #5b637e; --rule: #e3e7f2; --bg: #eaf5f6; --paper: #fff;
  --up: #12895f; --down: #c2412d;
  --text: "Onest", "Segoe UI", system-ui, sans-serif; --display: "Unbounded", "Segoe UI", sans-serif;
  --emoji: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #d3e8ea; color: var(--ink); font: 400 16px/1.45 var(--text); -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--lapis); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.app { position: relative; max-width: 480px; height: 100%; height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 40px rgba(20, 38, 99, .15); }
.tab { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.bar { flex: none; display: flex; align-items: center; gap: 10px; background: var(--lapis); color: #fff; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 5; }
.bar h1 { font: 600 20px var(--display); margin: 0; letter-spacing: -0.02em; }
.bar-note { margin-left: auto; font-size: 12px; opacity: .8; }
.back { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 0 6px 0 0; cursor: pointer; }
.room-title b { display: block; font-size: 16px; }
.room-title small { font-size: 12px; opacity: .8; }
.pad { padding: 16px; }
.small { font-size: 13px; color: var(--slate); }

.banner { margin: 12px 12px 0; background: #fff8e6; color: #5e4300; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* room list */
.list { list-style: none; margin: 0; padding: 6px 0; }
.list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: none; border: 0; text-align: left; cursor: pointer; }
.list button:hover { background: rgba(0, 114, 140, .05); }
.ava { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--emoji); font-size: 22px; background: var(--sky); }
.list b { display: block; font-weight: 600; }
.list small { display: block; color: var(--slate); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .txt { min-width: 0; flex: 1; border-bottom: 1px solid var(--rule); padding-bottom: 11px; margin-bottom: -11px; }

/* room */
.room { overflow: hidden; }
.pinned { flex: none; background: var(--sky); color: var(--lapis-deep); font-size: 12.5px; padding: 8px 14px; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; background: var(--paper); border-radius: 14px; padding: 7px 11px 6px; box-shadow: 0 1px 1px rgba(20, 26, 51, .07); align-self: flex-start; cursor: pointer; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--sky); }
.msg .who { display: block; font-size: 12.5px; font-weight: 600; color: var(--lapis); }
.msg.admin .who::after { content: " · Tulpar"; color: var(--saffron); }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--slate); }
.day { align-self: center; font-size: 12px; color: var(--slate); background: rgba(255, 255, 255, .7); border-radius: 8px; padding: 2px 10px; margin: 6px 0; }
.empty { text-align: center; color: var(--slate); padding: 40px 20px; }
.composer { flex: none; display: flex; gap: 8px; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--rule); }
.composer input { flex: 1; border: 0; border-radius: 22px; padding: 11px 16px; font: inherit; background: #fff; outline: none; min-width: 0; }
.send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lapis); color: #fff; cursor: pointer; font-size: 18px; }
.send:disabled { opacity: .5; }
.composer-off { flex: none; padding: 12px 16px; text-align: center; background: #fff; border-top: 1px solid var(--rule); font-size: 14px; color: var(--slate); }
.composer-off button { margin-top: 6px; }

/* channels */
.chips { display: flex; gap: 8px; padding: 12px 12px 4px; overflow-x: auto; }
.chips button { flex: none; border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; color: var(--slate); cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--lapis); color: var(--lapis-deep); background: var(--sky); }
.feed { padding: 8px 12px 20px; display: grid; gap: 10px; }
.post { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 1px rgba(20, 26, 51, .07); }
.post .src { font-size: 12px; font-weight: 600; color: var(--lapis); }
.post h3 { font-size: 16px; margin: 3px 0 4px; line-height: 1.3; }
.post p { margin: 0; color: var(--slate); font-size: 14px; }
.post a { text-decoration: none; color: inherit; }
.post time { display: block; font-size: 12px; color: var(--slate); margin-top: 6px; }

/* locked / bazar */
.locked { margin: auto; padding: 32px 24px; text-align: center; max-width: 360px; }
.lock-e { font-family: var(--emoji); font-size: 54px; }
.locked h2 { font: 600 19px var(--display); margin: 10px 0 8px; letter-spacing: -0.01em; }
.locked p { color: var(--slate); margin: 0 0 16px; }
.btn { border: 0; background: var(--lapis); color: #fff; border-radius: 12px; padding: 12px 20px; font-weight: 600; cursor: pointer; }
.btn.alt { background: var(--saffron); color: var(--lapis-deep); }
.btn.line { background: #fff; color: var(--lapis-deep); box-shadow: inset 0 0 0 1.5px var(--lapis); }
.bazar { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 1px rgba(20, 26, 51, .07); }
.bz .pic { height: 96px; display: grid; place-items: center; font-family: var(--emoji); font-size: 46px; background: linear-gradient(135deg, #fff1dc, #ffe2bd); }
.bz div { padding: 8px 10px; font-size: 14px; }
.bz b { display: block; }
.welcome { grid-column: 1 / -1; background: var(--sky); color: var(--lapis-deep); border-radius: 14px; padding: 12px 14px; font-weight: 600; }

/* wallet */
.wallet-card { margin: 16px; border-radius: 20px; padding: 20px; background: linear-gradient(135deg, var(--lapis), var(--lapis-deep)); color: #fff; }
.wallet-card small { opacity: .8; }
.wallet-card b { display: block; font: 600 32px var(--display); margin: 4px 0; letter-spacing: -0.02em; }
.price-row { display: flex; gap: 10px; align-items: baseline; padding: 0 16px; }
.price-row b { font-size: 20px; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }
.mini-chart { height: 150px; margin: 4px 8px; }
.mini-chart .line { fill: none; stroke: var(--lapis); stroke-width: 2.2; }
.mini-chart .area { fill: url(#chartFill); }
.mini-chart .grid { stroke: var(--rule); }
.mini-chart .lbl { fill: var(--slate); font: 11px var(--text); }
.mini-chart .dot { fill: var(--saffron); stroke: #fff; stroke-width: 2; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 16px; }
.act { border: 0; background: #fff; border-radius: 14px; padding: 12px 4px; cursor: pointer; font-size: 20px; box-shadow: 0 1px 1px rgba(20, 26, 51, .07); }
.act span { display: block; font-size: 12.5px; font-weight: 600; margin-top: 2px; }

/* profile */
.card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 1px rgba(20, 26, 51, .07); margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card label { display: block; font-size: 14px; font-weight: 600; color: var(--slate); margin-top: 10px; }
.card input[type=text] { width: 100%; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; font: inherit; margin-top: 4px; }
.card .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.card .check input { margin-top: 4px; }
.uid { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--slate); background: var(--bg); border-radius: 8px; padding: 6px 8px; display: block; margin-top: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.err { color: var(--down); font-size: 14px; margin-top: 8px; }
.report { border-top: 1px solid var(--rule); padding: 10px 0; font-size: 14px; }
.report q { display: block; margin: 4px 0; color: var(--ink); }
.report .row { margin-top: 6px; }
.report .row .btn { padding: 7px 12px; font-size: 13px; }
.about-app { color: var(--slate); font-size: 14px; }
.about-app h3 { color: var(--ink); font-size: 15px; margin: 4px 0 6px; }
.about-app p { margin: 0 0 8px; }

/* tab bar */
.tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { border: 0; background: none; padding: 7px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--slate); cursor: pointer; }
.tabs button .ico { position: relative; display: block; font-family: var(--emoji); font-size: 21px; line-height: 1.2; filter: grayscale(1); opacity: .7; }
.tabs button em { font-style: normal; }
.tabs button[aria-current="page"] { color: var(--lapis); }
.tabs button[aria-current="page"] .ico { filter: none; opacity: 1; }
.badge { position: absolute; top: -2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--down); color: #fff; font: 700 10.5px/17px var(--text); font-style: normal; filter: none; }
.tabs button .ico:has(.badge:not([hidden])) { filter: none; opacity: 1; }

/* sheet & toast */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 20, 35, .45); }
.sheet-card { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 18px 18px 0 0; padding: 10px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); display: grid; gap: 4px; }
.sheet-who { margin: 6px 6px 4px; font-size: 13px; color: var(--slate); }
.sheet-card button { border: 0; background: var(--bg); border-radius: 12px; padding: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.sheet-card button[data-act="delete"], .sheet-card button[data-act="ban"] { color: var(--down); }
.sheet-card .cancel { background: none; text-align: center; color: var(--slate); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* stop rows in scrolling tabs from being squashed */
.tab > * { flex-shrink: 0; }
.tab > .msgs { flex-shrink: 1; min-height: 0; }
.tab > .locked { flex-shrink: 1; }

/* ---------- v2: chats list ---------- */
.bar-btn { margin-left: auto; background: rgba(255,255,255,.16); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; cursor: pointer; }
.bar-note + .bar-btn { margin-left: 8px; }
.list-h { margin: 14px 16px 0; font: 600 12px var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.ava.ini { font: 600 16px var(--text); color: var(--lapis-deep); background: linear-gradient(135deg, var(--sky), #c6ebee); }
.list .meta { flex: none; align-self: flex-start; font-size: 12px; color: var(--slate); display: grid; justify-items: end; gap: 6px; padding-top: 3px; }
.list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lapis); }
.list .unread b { color: var(--ink); }
.list .unread small { color: var(--ink); font-weight: 500; }
.empty-li { padding: 12px 16px; color: var(--slate); font-size: 14px; }

/* ---------- v2: messages ---------- */
.msg .txt { white-space: pre-wrap; }
.msg.sticker { background: none; box-shadow: none; padding: 0; }
.msg.sticker .who { padding-left: 4px; }
.msg.sticker time { background: rgba(255,255,255,.8); border-radius: 8px; padding: 0 6px; display: inline-block; float: right; }
.stk { display: block; width: 140px; height: 140px; }
.quote { border-left: 3px solid var(--lapis); background: rgba(0,114,140,.07); border-radius: 6px; padding: 4px 8px; margin: 2px 0 5px; font-size: 13px; }
.quote b { display: block; color: var(--lapis); font-size: 12px; }
.quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--slate); }
.msg.sticker .quote { background: #fff; }
.rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; clear: both; }
.rxb { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 1px 8px; font-size: 13px; cursor: pointer; font-family: var(--text); }
.rxb.on { border-color: var(--lapis); background: var(--sky); color: var(--lapis-deep); font-weight: 600; }
.msg.pollmsg { min-width: 70%; }
.poll { display: grid; gap: 6px; margin: 2px 0; }
.pq { font-size: 15px; }
.opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; border: 1.5px solid var(--rule); background: #fff; border-radius: 10px; padding: 8px 10px; text-align: left; cursor: pointer; font-size: 14px; }
.opt .fill { position: absolute; inset: 0 auto 0 0; background: rgba(0,114,140,.12); transition: width .3s; }
.opt .ol, .opt .oc { position: relative; }
.opt .oc { color: var(--slate); font-weight: 600; }
.opt.picked { border-color: var(--lapis); }
.opt.picked .ol::before { content: "✓ "; color: var(--lapis); font-weight: 700; }
.pt { color: var(--slate); font-size: 12px; }

/* composer, reply, stickers */
.c-btn { flex: none; width: 40px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--lapis); cursor: pointer; font-family: var(--emoji); }
.composer { align-items: center; gap: 4px; }
.reply-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--rule); }
.reply-bar div { flex: 1; min-width: 0; border-left: 3px solid var(--lapis); padding-left: 8px; font-size: 13px; }
.reply-bar b { display: block; color: var(--lapis); font-size: 12px; }
.reply-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--slate); }
.reply-bar button { border: 0; background: none; font-size: 16px; color: var(--slate); cursor: pointer; }
.sticker-tray { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; max-height: 210px; overflow-y: auto; background: #fff; border-top: 1px solid var(--rule); }
.sticker-tray button { border: 0; background: none; border-radius: 12px; padding: 4px; cursor: pointer; display: grid; place-items: center; }
.sticker-tray button:hover, .sticker-tray button:focus-visible { background: var(--bg); }
.sticker-tray img { width: 72px; height: 72px; }

/* sheet: reactions row, dialogs */
.react-row { display: flex; justify-content: space-around; padding: 6px 0 4px; }
.sheet-card .react-row button { background: none; font-size: 26px; padding: 6px 8px; border-radius: 50%; font-family: var(--emoji); }
.sheet-card .react-row button.on { background: var(--sky); }
.dlg-card { gap: 8px; padding: 18px 16px; max-height: 88vh; overflow-y: auto; }
.dlg-card h3 { margin: 0 0 4px; font: 600 18px var(--display); letter-spacing: -0.01em; }
.dlg-card .dl-opt { display: flex; gap: 10px; align-items: center; }
.dlg-card .dl-cancel { background: none; text-align: center; color: var(--slate); }
.dlg-card .btn.wide, .btn.wide { width: 100%; text-align: center; padding: 13px; margin-top: 4px; }
.dlg-card .btn.line { background: #fff; text-align: center; }
.dlg-card .btn { text-align: center; background: var(--lapis); }
.dl-lab { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--slate); margin-top: 6px; }
.dl-lab input, #pollOpts input { width: 100%; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--ink); }
#pollOpts { display: grid; gap: 6px; }
.center { text-align: center; justify-content: center; }
.qr { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 6px auto 0; background: #fff; border-radius: 16px; display: grid; place-items: center; color: var(--slate); }
.qr svg { width: 100%; height: 100%; }
.qr-logo { position: absolute; width: 22%; height: 22%; left: 39%; top: 39%; border-radius: 22%; box-shadow: 0 0 0 5px #fff; }
.qr-name { text-align: center; margin: 4px 0 0; font-size: 17px; }
.scan { position: relative; width: 100%; aspect-ratio: 1; background: #000; border-radius: 16px; overflow: hidden; }
.scan video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

/* ---------- v2: services ---------- */
.svc-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 0; }
.info-card { border: 0; text-align: left; border-radius: 16px; padding: 12px 14px; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--lapis), var(--lapis-deep)); display: grid; gap: 2px; }
.info-card + .info-card { background: linear-gradient(135deg, #0a8f83, #05605a); }
.info-card small { font-size: 12px; opacity: .85; }
.info-card b { font: 600 22px var(--display); letter-spacing: -0.02em; font-family: var(--display), var(--emoji); }
.info-card span { font-size: 12.5px; opacity: .85; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; padding: 10px 10px 4px; }
.tile { border: 0; background: none; display: grid; justify-items: center; gap: 5px; padding: 6px 2px; cursor: pointer; border-radius: 14px; }
.tile:hover { background: rgba(0,114,140,.06); }
.tile span { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-family: var(--emoji); font-size: 26px; box-shadow: 0 1px 2px rgba(20,26,51,.08); }
.tile b { font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink); }
.svc-body { flex: 1; padding: 14px; display: grid; gap: 12px; align-content: start; overflow-y: auto; }
.svc-body .card { margin: 0; }
.svc-body .locked { margin: 0 auto; }
.svc-body .bazar { padding: 0; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
.fld input, .fld select, .fld .static { width: 100%; border: 1.5px solid var(--rule); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; font-weight: 400; }
.phone-in { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 12px; background: #fff; overflow: hidden; }
.phone-in span { white-space: nowrap; padding: 0 12px; color: var(--slate); font-weight: 600; font-size: 15px; }
.phone-in input { border: 0; border-radius: 0; }
.svc-chips { padding: 0; flex-wrap: wrap; }
.calc { background: var(--sky); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; color: var(--lapis-deep); }
.calc small { font-size: 12.5px; }
.calc b { font: 600 22px var(--display); letter-spacing: -0.02em; }
.calc span { font-size: 12.5px; }
.lock-note { background: #fff8e6; color: #5e4300; border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.lock-note p { margin: 0; font-size: 14px; }
.lock-note .btn { justify-self: start; }
.shops { display: grid; gap: 8px; }
.shop { display: flex; gap: 12px; align-items: center; border: 0; background: #fff; border-radius: 14px; padding: 12px; text-align: left; cursor: pointer; box-shadow: 0 1px 1px rgba(20,26,51,.07); }
.shop > span { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-family: var(--emoji); font-size: 22px; }
.shop b { display: block; font-size: 15px; }
.shop small { color: var(--slate); font-size: 13px; }
.wx-list { display: grid; gap: 10px; }
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-now b { display: block; font-size: 16px; }
.wx-now small { color: var(--slate); font-size: 13px; }
.wx-now strong { margin-left: auto; font: 600 30px var(--display); letter-spacing: -0.03em; }
.wx-i { font-family: var(--emoji); font-size: 34px; }
.wx-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.wx-days div { background: var(--bg); border-radius: 12px; padding: 8px 4px; display: grid; gap: 1px; }
.wx-days span { font-family: var(--emoji); font-size: 20px; }
.wx-days small { color: var(--slate); font-size: 12px; text-transform: capitalize; }
.rates { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 15px; }
.rates td, .rates th { padding: 8px 2px; border-top: 1px solid var(--rule); text-align: right; font-variant-numeric: tabular-nums; }
.rates td:first-child, .rates th:first-child { text-align: left; }
.rates th { font-size: 12px; color: var(--slate); font-weight: 600; border-top: 0; }
.bus { display: grid; gap: 4px; }
.bus-h { display: flex; justify-content: space-between; align-items: center; }
.bus-h b { font-size: 16px; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--lapis-deep); background: var(--sky); border-radius: 999px; padding: 2px 9px; }
.bus .small { margin: 0; }
.times { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.times span { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; border-radius: 8px; background: var(--bg); padding: 4px 8px; }
.times span.next { background: var(--lapis); color: #fff; }
.cal { list-style: none; margin: 0; padding: 0; }
.cal li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.cal li:first-child { border-top: 0; }
.cal time { flex: none; width: 64px; font-weight: 700; color: var(--lapis-deep); font-size: 14px; }
.cal b { display: block; font-size: 15px; }
.cal small { color: var(--slate); font-size: 13px; }
.fx { list-style: none; margin: 4px 0 12px; padding: 0; }
.fx li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.fx li span:first-child { text-align: right; }
.fx li b { color: var(--slate); font-size: 12px; font-variant-numeric: tabular-nums; }
.fx li small { grid-column: 1 / -1; text-align: center; color: var(--down); font-weight: 700; font-size: 12px; }
.fx li.derby { background: #fff7f5; border-radius: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; color: var(--slate); }
.seg button[aria-pressed="true"] { border-color: var(--lapis); background: var(--sky); color: var(--lapis-deep); }

/* ---------- start-up screen ---------- */
.gate { position: absolute; inset: 0; z-index: 40; background: linear-gradient(170deg, #00a3a8 0%, var(--lapis) 45%, var(--lapis-deep) 100%); color: #fff; overflow-y: auto; }
.gate-in { min-height: 100%; display: flex; flex-direction: column; padding: max(18px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); }
.g-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px 0; }
.g-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.25); }
.g-word { font: 600 30px var(--display); letter-spacing: -0.03em; margin-top: 8px; }
.g-h { font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 14px 0 4px; }
.g-p { margin: 0; opacity: .88; font-size: 15.5px; max-width: 320px; }
.g-spin { width: 28px; height: 28px; margin-top: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: gspin .9s linear infinite; }
@keyframes gspin { to { transform: rotate(360deg); } }
.g-foot { display: grid; gap: 10px; }
.gate .btn.wide { margin: 0; }
.gate .btn { background: #fff; color: var(--lapis-deep); }
.gate .btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.g-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.g-gl { width: 22px; height: 22px; border-radius: 50%; background: var(--lapis); color: #fff; font: 700 13px/22px var(--text); }
.gate .err { color: #fff; background: rgba(194,65,45,.85); border-radius: 10px; padding: 8px 12px; margin: 0; font-size: 14px; }
.g-terms { margin: 4px 0 0; font-size: 12.5px; opacity: .8; text-align: center; }
.g-terms a, .gate a { color: #fff; }
.g-lang { display: flex; justify-content: center; gap: 6px; }
.g-lang button { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.g-lang button[aria-pressed="true"] { background: #fff; color: var(--lapis-deep); }
.g-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.g-step { font-size: 13px; font-weight: 600; opacity: .8; }
.g-link { border: 0; background: none; color: #fff; text-decoration: underline; font-size: 14px; cursor: pointer; opacity: .9; }
.g-form { flex: 1; display: grid; align-content: center; gap: 12px; padding: 24px 0; }
.g-form .g-h { margin-top: 0; }
.gate .fld span { color: rgba(255,255,255,.85); }
.gate .fld input { border-color: transparent; }
.gate .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.gate .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }
.g-phone { width: 120px; height: 200px; border-radius: 26px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); display: grid; place-content: center; justify-items: center; gap: 8px; margin-bottom: 6px; }
.g-phone img { border-radius: 16px; }
.g-phone span { font-size: 12px; font-weight: 600; }
.g-steps { margin: 0 0 4px; padding: 14px 16px 14px 34px; background: rgba(255,255,255,.12); border-radius: 14px; display: grid; gap: 8px; font-size: 15px; text-align: left; }
.g-steps b { font-weight: 700; }
.g-ico { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; }
