/* OFB Board — soft Tiffany palette matched to the mascot logo (hue ~181°). */
:root {
  --bg: #F0F6F6; --bg-outer: #E3ECEC; --surface: #FFFFFF; --surface-2: #F8FBFB; --chip: #E3EDED;
  --line: #D8E5E5; --line-2: #C2D3D3;
  --ink: #15171A; --ink-2: #3B3F45; --muted: #5F6369; --faint: #8E9296;
  --accent: #7FDADB; --accent-ink: #084142; --accent-soft: #E6F7F7;
  --action: #0A757A; --action-ink: #FFFFFF; --link: #0A757A; --heart: #13999E;
  --verified: #0A757A; --verified-ink: #FFFFFF;
  --night: #15171A; --night-ink: #FFFFFF; --night-muted: #B9BDC2; --night-2: #23272B;
  --nav: #15171A; --nav-muted: #9AA0A6; --nav-on: #FFFFFF; --nav-on-ink: #15171A;
  --danger: #B3261E; --danger-soft: #FDE5E2; --danger-line: #F2C5C0;
  --warn: #7A5200; --warn-soft: #FFF0CC; --star: #E0A526;
  --ok: #0B6B6E; --ok-soft: #E3F4F4;
  --scrim: rgba(21, 23, 26, .5); --shadow: 0 10px 30px rgba(21, 23, 26, .14);
  --tg: #0A757A; --wa: #145C5F; --vb: #2E4A55; --em: #3B3F45;
  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-card: 20px; --r-ctl: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1112; --bg-outer: #060A0B; --surface: #141C1E; --surface-2: #10181A; --chip: #1C2729;
    --line: #243133; --line-2: #2F4043;
    --ink: #E8F1F1; --ink-2: #C5D0D1; --muted: #93A2A4; --faint: #6E7C7E;
    --accent: #7FDADB; --accent-ink: #062C2D; --accent-soft: #12302F;
    --action: #7FDADB; --action-ink: #062C2D; --link: #7FDADB; --heart: #5FD0D3;
    --verified: #7FDADB; --verified-ink: #062C2D;
    --night: #050909; --night-ink: #FFFFFF; --night-muted: #93A2A4; --night-2: #1A2224;
    --nav: #050909; --nav-muted: #7D8B8D; --nav-on: #7FDADB; --nav-on-ink: #062C2D;
    --danger: #FF8A80; --danger-soft: #3A1715; --danger-line: #5A2420;
    --warn: #F2C46B; --warn-soft: #33290F; --star: #F2C46B;
    --ok: #7FDADB; --ok-soft: #12302F;
    --scrim: rgba(0, 0, 0, .62); --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    --tg: #1B6E72; --wa: #175154; --vb: #2B4650; --em: #2E3438;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1112; --bg-outer: #060A0B; --surface: #141C1E; --surface-2: #10181A; --chip: #1C2729;
  --line: #243133; --line-2: #2F4043;
  --ink: #E8F1F1; --ink-2: #C5D0D1; --muted: #93A2A4; --faint: #6E7C7E;
  --accent: #7FDADB; --accent-ink: #062C2D; --accent-soft: #12302F;
  --action: #7FDADB; --action-ink: #062C2D; --link: #7FDADB; --heart: #5FD0D3;
  --verified: #7FDADB; --verified-ink: #062C2D;
  --night: #050909; --night-ink: #FFFFFF; --night-muted: #93A2A4; --night-2: #1A2224;
  --nav: #050909; --nav-muted: #7D8B8D; --nav-on: #7FDADB; --nav-on-ink: #062C2D;
  --danger: #FF8A80; --danger-soft: #3A1715; --danger-line: #5A2420;
  --warn: #F2C46B; --warn-soft: #33290F; --star: #F2C46B;
  --ok: #7FDADB; --ok-soft: #12302F;
  --scrim: rgba(0, 0, 0, .62); --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --tg: #1B6E72; --wa: #175154; --vb: #2B4650; --em: #2E3438;
}

/* Category tints: one Tiffany family, distinguished by lightness and a slight hue drift. */
.c-traffic { --cbg: #7FDADB; --cink: #084142; }
.c-models { --cbg: #ACE8E6; --cink: #084240; }
.c-work { --cbg: #A2DAE8; --cink: #083742; }
.c-services { --cbg: #B9EBDF; --cink: #084235; }
.c-ads { --cbg: #5FC8C9; --cink: #063A3B; }
.c-partner { --cbg: #BBDEED; --cink: #083142; }
.c-edu { --cbg: #90DED3; --cink: #08423B; }
.c-soft { --cbg: #0A757A; --cink: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-traffic { --cbg: #1C4F51; --cink: #A8EEEF; }
  :root:not([data-theme="light"]) .c-models { --cbg: #23484A; --cink: #BDEFEC; }
  :root:not([data-theme="light"]) .c-work { --cbg: #1E4552; --cink: #B5E5F2; }
  :root:not([data-theme="light"]) .c-services { --cbg: #22493F; --cink: #C2F0E3; }
  :root:not([data-theme="light"]) .c-ads { --cbg: #15585A; --cink: #9BE9EA; }
  :root:not([data-theme="light"]) .c-partner { --cbg: #24434F; --cink: #C4E6F3; }
  :root:not([data-theme="light"]) .c-edu { --cbg: #1E4D47; --cink: #A8EBDF; }
  :root:not([data-theme="light"]) .c-soft { --cbg: #0F3E40; --cink: #8FE3E5; }
}
:root[data-theme="dark"] .c-traffic { --cbg: #1C4F51; --cink: #A8EEEF; }
:root[data-theme="dark"] .c-models { --cbg: #23484A; --cink: #BDEFEC; }
:root[data-theme="dark"] .c-work { --cbg: #1E4552; --cink: #B5E5F2; }
:root[data-theme="dark"] .c-services { --cbg: #22493F; --cink: #C2F0E3; }
:root[data-theme="dark"] .c-ads { --cbg: #15585A; --cink: #9BE9EA; }
:root[data-theme="dark"] .c-partner { --cbg: #24434F; --cink: #C4E6F3; }
:root[data-theme="dark"] .c-edu { --cbg: #1E4D47; --cink: #A8EBDF; }
:root[data-theme="dark"] .c-soft { --cbg: #0F3E40; --cink: #8FE3E5; }

/* ---------- base ---------- */
html, body { height: 100%; }
body { margin: 0; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg-outer); color: var(--ink); font: 400 15px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
body.locked { overflow: hidden; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2.5px solid var(--action); outline-offset: 2px; border-radius: 10px; }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 18px; }
.center { text-align: center; justify-content: center; align-self: center; }
.mt { margin-top: 18px; }
.mt-s { margin-top: 10px; }
.grow { flex: 1; min-width: 0; text-align: left; }
.mono { font-family: var(--f-mono); }
.ic { flex-shrink: 0; display: block; }

.shell { min-height: 100%; }
.app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
.app.has-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; min-width: 0; }
.screen.pad { padding-top: 6px; }
.pad { padding-inline: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.list { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, .08); } }

.h1 { font: 700 26px/32px var(--f-display); letter-spacing: -.01em; padding-top: 10px; }
.h3 { font: 700 16px/22px var(--f-body); }
.label { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.link { border: 0; background: none; padding: 0; color: var(--link); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.link-danger { color: var(--danger); }

/* ---------- buttons ---------- */
.btn { height: 48px; padding: 0 18px; border-radius: var(--r-ctl); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .12s ease, opacity .12s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-dark { background: var(--night); color: var(--night-ink); }
:root[data-theme="dark"] .btn-dark { background: var(--chip); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: var(--chip); color: var(--ink); } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .btn-danger { color: #2A0B08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { color: #2A0B08; } }
.btn-tg { background: var(--tg); color: #fff; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-lg { height: 56px; border-radius: 18px; font-size: 16px; font-weight: 800; }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.icon-btn.sm { width: 34px; height: 34px; color: var(--muted); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo img { width: 38px; height: 38px; border-radius: 50%; margin-right: 3px; }
.logo-word { font: 700 24px/28px var(--f-display); letter-spacing: -.02em; }
.logo-pill { height: 19px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; display: inline-flex; align-items: center; transform: rotate(-6deg); }
.logo-s img { width: 28px; height: 28px; }
.logo-s .logo-word { font-size: 18px; line-height: 22px; }
.logo-s .logo-pill { height: 15px; font-size: 9px; padding: 0 5px; }

/* ---------- top bars ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; }
.bell .dot, .notif .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--heart); border: 2px solid var(--bg); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 6px; padding: 8px 8px; background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.hdr-t { flex: 1; min-width: 0; }
.hdr-title { font: 700 17px/22px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-r { display: flex; align-items: center; gap: 4px; padding-right: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; background: var(--night); padding: 18px; }
.hero-b1 { position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); }
.hero-b2 { position: absolute; right: 70px; bottom: -26px; width: 60px; height: 60px; border-radius: 50%; background: #ACE8E6; opacity: .9; }
.hero-t { position: relative; font: 700 22px/27px var(--f-display); color: var(--night-ink); max-width: 250px; }
.hero-search { position: relative; margin-top: 14px; width: 100%; height: 50px; border-radius: 16px; border: 0; background: #FFFFFF; color: #71767C; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 15px; }
.hero-search .ic { color: #15171A; }
.banner { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 0; text-align: left; font-weight: 600; font-size: 14px; margin-top: 10px; }
.banner span { flex: 1; }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.banner-preview { background: var(--accent-soft); color: var(--ink); padding: 10px 6px 10px 12px; font-weight: 500; font-size: 13px; line-height: 18px; }
.banner-preview > .ic { color: var(--ok); }

/* ---------- scroll rows & chips ---------- */
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding-inline: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.flush { padding-inline: 0; }
.chips-row { padding-block: 2px; }
.chip { height: 36px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.chip.on { background: var(--night); border-color: var(--night); color: var(--night-ink); }
:root[data-theme="dark"] .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }
.chip-static { cursor: default; }
.chip.word { padding-right: 6px; }
.chip.word button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--chip); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-chip { height: 38px; padding: 0 14px 0 7px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.cat-chip .cat-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--cbg); color: var(--cink); display: flex; align-items: center; justify-content: center; }
.cat-chip.on { background: var(--cbg); color: var(--cink); border-color: var(--cink); }
.cat-pill { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--cbg); color: var(--cink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }

.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; padding: 0 10px; }
.seg button.on { background: var(--night); color: var(--night-ink); }
:root[data-theme="dark"] .seg button.on { background: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: var(--accent); color: var(--accent-ink); } }
.seg-n { font-size: 12px; opacity: .7; }
.seg-scroll { padding-inline: 0; }
.seg-scroll .seg { min-width: max-content; }

.toggle { width: 48px; height: 28px; border-radius: 999px; border: 0; background: var(--line-2); position: relative; flex-shrink: 0; transition: background .15s; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle.on { background: var(--action); }
.toggle.on span { transform: translateX(20px); }

.progress { height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--action); transition: width .3s ease; }
.progress.on-dark { background: rgba(255, 255, 255, .16); }
.progress.on-dark span { background: var(--accent); }

/* ---------- sections ---------- */
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-h h2 { font: 700 17px/22px var(--f-display); display: inline-flex; align-items: center; gap: 8px; }
.sec-h .count { font: 700 13px var(--f-body); color: var(--muted); }
.sec-note { font-size: 13px; color: var(--muted); }
.cards-row { padding-bottom: 4px; }

/* ---------- listing card ---------- */
.lc { position: relative; display: flex; gap: 12px; padding: 10px; background: var(--surface); border-radius: var(--r-card); border: 1.5px solid transparent; }
.lc-frame { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lc-cover { position: relative; width: 100px; height: 108px; border-radius: 14px; border: 0; padding: 0; background: var(--cbg); color: var(--cink); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lc-cover .ic { position: relative; transform: rotate(-8deg); }
.blob { position: absolute; right: -18px; top: -22px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.tag-new { position: absolute; top: 7px; left: 7px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--night); color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .06em; display: inline-flex; align-items: center; }
.lc-photos { position: absolute; bottom: 6px; right: 6px; height: 18px; padding: 0 6px; border-radius: 999px; background: rgba(21, 23, 26, .55); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.lc-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); }
.lc-title { border: 0; background: none; padding: 0; text-align: left; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.lc-title.static { cursor: default; }
.lc-price { font-size: 16px; font-weight: 800; }
.lc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.lc-author { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-2); }
.star-ic { color: var(--star); }
.lc-side { display: flex; flex-direction: column; align-items: center; margin: -4px -4px 0 0; }
.heart { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.heart.on { color: var(--heart); }
.round-btn.heart, .mc-heart.heart { background: var(--surface); }
.tag-up { height: 20px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--ok); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.tag-warn { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.tag-urgent { margin-left: auto; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.lc.preview { border-color: var(--line); }

.mc { position: relative; width: 168px; flex-shrink: 0; background: var(--surface); border-radius: var(--r-card); padding: 8px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.mc-cover { position: relative; height: 116px; border-radius: 14px; border: 0; background: var(--cbg); color: var(--cink); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mc-cover .ic { position: relative; transform: rotate(-8deg); }
.mc-heart { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; background: var(--surface); }
.mc-body { display: flex; flex-direction: column; gap: 3px; padding: 0 4px 4px; }
.mc-price { font-size: 15px; font-weight: 800; }
.mc-title { font-size: 13px; line-height: 17px; font-weight: 600; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-note { font-size: 11px; font-weight: 700; color: var(--ok); }

/* ---------- avatars, stars, levels ---------- */
.av { position: relative; border-radius: 50%; background: var(--cbg); color: var(--cink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tg-continue img { width: 30px; height: 30px; border-radius: 50%; margin-left: -6px; }
.av-ring { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }
.av-check { position: absolute; right: -3px; bottom: -3px; display: flex; border-radius: 50%; background: var(--surface); padding: 1px; }
.verified { color: var(--verified); flex-shrink: 0; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.stars b { font-weight: 800; }
.lvl { height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.lvl-s { height: 19px; font-size: 11px; padding: 0 7px; }
.lvl-newbie { background: var(--warn-soft); color: var(--warn); }
.lvl-member { background: var(--chip); color: var(--ink-2); }
.lvl-skilled { background: var(--accent-soft); color: var(--ok); }
.lvl-pro { background: var(--accent); color: var(--accent-ink); }
.lvl-legend { background: var(--night); color: var(--accent); }
.star-pick { display: flex; justify-content: center; gap: 4px; }
.sp { border: 0; background: none; padding: 4px; color: var(--line-2); }
.sp.on { color: var(--star); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-label { font-size: 14px; font-weight: 700; }
.field-count { font-size: 12px; color: var(--muted); }
.field-hint { font-size: 12px; line-height: 17px; color: var(--muted); }
.input { width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; }
.input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.input-lg { height: 58px; font-size: 20px; font-weight: 700; }
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 21px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface); font-size: 14px; line-height: 20px; }
.check-row input { width: 22px; height: 22px; accent-color: var(--action); flex-shrink: 0; margin: 0; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.radio > span:not(.radio-dot):not(.tag-urgent) { display: flex; flex-direction: column; gap: 2px; }
.radio.big { min-height: 64px; }
.radio.on { border-color: var(--action); background: var(--accent-soft); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; box-sizing: border-box; }
.radio.on .radio-dot { border: 6px solid var(--action); }
.price-row { display: flex; align-items: center; gap: 10px; }

/* ---------- rows & plates ---------- */
.rows { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); width: 100%; box-sizing: border-box; }
.rows > .row:last-child { border-bottom: 0; }
.row.static { cursor: default; }
.row.col { flex-direction: column; align-items: stretch; }
.row-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--chip); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row-ic.tg { background: var(--tg); color: #fff; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 15px; font-weight: 700; }
.row-sub { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row-r { font-weight: 700; color: var(--muted); font-size: 14px; }
.row-chev { color: var(--faint); }
.row.static .row-chev { display: none; }
.row-danger .row-title, .row-danger .row-ic { color: var(--danger); }
.ok-mini { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }

.warn-plate, .danger-plate, .ok-plate, .info-plate { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 20px; }
.warn-plate > div, .danger-plate > div, .ok-plate > div, .info-plate > div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.warn-plate { background: var(--warn-soft); color: var(--warn); }
.danger-plate { background: var(--danger-soft); color: var(--danger); }
.ok-plate { background: var(--ok-soft); color: var(--ok); }
.info-plate { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line); }
.warn-plate .ic, .danger-plate .ic, .ok-plate .ic, .info-plate .ic { margin-top: 1px; }
.warn-plate.small, .danger-plate.small, .info-plate.small { font-size: 13px; padding: 10px 12px; }
.badge-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--action); color: var(--action-ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.badge-n.static { position: static; }

/* ---------- empty ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
.empty-mascot { width: 128px; height: 128px; margin-bottom: 6px; }
.empty-title { font: 700 20px/26px var(--f-display); }
.empty-text { font-size: 15px; line-height: 21px; color: var(--muted); max-width: 300px; }
.empty .btn { margin-top: 8px; }

/* ---------- search ---------- */
.search-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); padding: 0 16px 10px; display: flex; flex-direction: column; gap: 12px; }
.search-row { display: flex; gap: 8px; }
.search-box { flex: 1; min-width: 0; height: 50px; border-radius: 18px; background: var(--surface); border: 2px solid var(--action); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; box-sizing: border-box; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; height: 100%; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box.big { height: 56px; }
.filter-btn { position: relative; width: 50px; height: 50px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.filter-btn.on { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.check-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-card); border: 0; background: var(--night); color: var(--night-ink); text-align: left; }
.check-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--night-muted); }
.check-card b { font-size: 16px; color: var(--night-ink); }
.check-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-tile { position: relative; height: 88px; border-radius: 20px; border: 2px solid transparent; background: var(--cbg); color: var(--cink); padding: 12px; text-align: left; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.cat-tile .blob { right: -16px; top: auto; bottom: -16px; width: 60px; height: 60px; }
.cat-tile.picked { border-color: var(--cink); }
.ct-n { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 800; opacity: .8; }
.ct-name { font-size: 15px; font-weight: 800; position: relative; }
.syn-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 600; margin-bottom: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.results-bar b { color: var(--ink); }
.active-filters { margin-bottom: 10px; }
.sub-btn { margin-bottom: 12px; height: 44px; }

/* ---------- saved ---------- */
.con-item { background: var(--surface); border-radius: var(--r-card); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.con-top { display: flex; align-items: center; gap: 12px; }
.con-cover { width: 56px; height: 56px; border-radius: 14px; border: 0; background: var(--cbg); color: var(--cink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.con-t { flex: 1; min-width: 0; }
.con-title { border: 0; background: none; padding: 0; text-align: left; font-size: 14px; font-weight: 700; line-height: 18px; color: var(--ink); }
.con-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; flex-wrap: wrap; }
.via { height: 22px; padding: 0 8px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.via-tg { background: var(--tg); } .via-wa { background: var(--wa); } .via-vb { background: var(--vb); } .via-em { background: var(--em); }
.con-ask { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.con-ask > span:first-child { flex: 1; min-width: 140px; }
.con-done { background: var(--surface-2); font-weight: 600; }
.con-banned { background: var(--danger-soft); color: var(--danger); }
.sub-item { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r-card); padding: 10px 8px 10px 10px; }
.sub-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 0; color: var(--ink); }
.sub-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sub-t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); min-width: 0; }
.sub-t b { color: var(--ink); font-size: 15px; }

/* ---------- detail ---------- */
.screen-detail { gap: 0; padding-bottom: 0; }
.detail-cover { position: relative; height: 280px; background: var(--cbg); color: var(--cink); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.detail-cover .ic { position: relative; transform: rotate(-8deg); }
.detail-cover .b1 { right: -60px; top: -60px; width: 240px; height: 240px; background: rgba(255, 255, 255, .28); }
.detail-cover .b2 { right: auto; left: 30px; top: auto; bottom: 40px; width: 50px; height: 50px; background: rgba(255, 255, 255, .35); }
.cover-count { position: absolute; bottom: 36px; right: 16px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(21, 23, 26, .55); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.cover-bar { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: flex; justify-content: space-between; }
.cover-r { display: flex; gap: 8px; }
.detail-body { position: relative; margin-top: -24px; border-radius: 24px 24px 0 0; background: var(--bg); padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.detail-title { font: 700 22px/28px var(--f-display); }
.detail-price { font-size: 24px; font-weight: 800; margin-top: -6px; }
.detail-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.detail-stats span { display: inline-flex; align-items: center; gap: 5px; }
.params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.params > div { background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.params dt { font-size: 12px; color: var(--muted); }
.params dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.params.small { grid-template-columns: 1fr; }
.detail-desc { display: flex; flex-direction: column; gap: 6px; }
.detail-desc p { color: var(--ink-2); font-size: 15px; line-height: 22px; max-width: 65ch; }
.author-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-card); border: 0; background: var(--surface); text-align: left; color: var(--ink); width: 100%; }
.ac-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ac-name { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.company-line { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; border: 0; background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 10px 12px; font-size: 13px; text-align: left; }
.confirmed { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 700; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust b { color: var(--ink); }
.trust li.warn { color: var(--warn); font-weight: 700; }
.safety { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 13px; line-height: 19px; color: var(--ink-2); }
.safety .ic { color: var(--ok); }
.safety .link { font-size: 13px; margin-top: 4px; }
.detail-foot { display: flex; justify-content: space-between; align-items: center; }
.action-bar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); margin-top: auto; }
.ab-note { flex: 1; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- profile & company ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 6px; }
.profile-head .av { margin-bottom: 8px; }
.ph-name { font: 700 22px/28px var(--f-display); display: inline-flex; align-items: center; gap: 6px; }
.ph-name.left { justify-content: flex-start; }
.ph-user { color: var(--muted); font-size: 14px; }
.ph-chips { display: flex; gap: 6px; align-items: center; }
.ver-chip { height: 22px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--accent-soft); color: var(--ok); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-row > div { background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stat-row b { font: 700 20px/24px var(--f-display); }
.stat-row span { font-size: 12px; color: var(--muted); font-weight: 600; }
.bio { font-size: 15px; line-height: 22px; color: var(--ink-2); max-width: 65ch; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-mini { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; }
.bm-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.review { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.rv-stars .muted { color: var(--line-2); }
.review p { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.company-head { display: flex; align-items: center; gap: 14px; }
.co-logo { width: 64px; height: 64px; border-radius: 20px; background: var(--cbg); color: var(--cink); font: 700 20px var(--f-display); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.members { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); width: 100%; box-sizing: border-box; }
.members > .member:last-child { border-bottom: 0; }
.member.req { border-radius: var(--r-card); border: 1.5px solid var(--accent); margin-bottom: 8px; }
.mb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--muted); }
.mb-t b { font-size: 15px; color: var(--ink); }

/* ---------- check & complaint ---------- */
.check-result { border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.check-result.bad { background: var(--danger-soft); color: var(--danger); }
.check-result.mid { background: var(--warn-soft); color: var(--warn); }
.check-result.ok { background: var(--ok-soft); color: var(--ok); }
.check-result p { color: var(--ink-2); }
.cr-top { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.cr-linked { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cr-linked .label { margin: 0 4px 0 0; }
.check-result .btn { align-self: flex-start; }
.complaint-target { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface); font-size: 14px; font-weight: 700; }
.complaint-target .con-cover { width: 40px; height: 40px; border-radius: 12px; }
.shots { display: flex; gap: 8px; flex-wrap: wrap; }
.shot, .shot-add { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(21, 23, 26, .7); color: #fff; display: flex; align-items: center; justify-content: center; }
.shot-cover { position: absolute; left: 4px; bottom: 4px; z-index: 1; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--night); color: var(--accent); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; }
.shot-add { border: 1.5px dashed var(--line-2); background: var(--surface); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; cursor: pointer; box-sizing: border-box; }
.shot-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.done-screen { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 20px; }
.done-mascot { width: 150px; height: 150px; }

/* ---------- cabinet ---------- */
.me-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; border: 0; background: var(--surface); color: var(--ink); text-align: left; width: 100%; }
.me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.me-t b { font-size: 17px; }
.me-t > span { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.points-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px; border: 0; background: var(--night); color: var(--night-ink); text-align: left; width: 100%; }
.pc-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--night-muted); font-weight: 700; }
.pc-streak { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.pc-num { font: 700 36px/40px var(--f-display); color: var(--accent); }
.pc-next { display: flex; justify-content: space-between; font-size: 13px; color: var(--night-muted); }
.pc-next b { color: var(--night-ink); }
.pc-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; margin-top: 4px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 12px; border-radius: 18px; background: var(--cbg); color: var(--cink); display: flex; flex-direction: column; gap: 2px; }
.tile b { font: 700 20px/24px var(--f-display); }
.tile span { font-size: 12px; font-weight: 700; }
.points-hero { position: relative; overflow: hidden; border-radius: 24px; background: var(--night); color: var(--night-ink); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.ph-mascot { position: absolute; right: -24px; top: -16px; width: 140px; height: 140px; opacity: .95; }
.ph-label { font-size: 13px; color: var(--night-muted); font-weight: 700; }
.ph-num { font: 700 44px/48px var(--f-display); color: var(--accent); }
.ph-sub { font-size: 14px; color: var(--night-muted); margin-bottom: 6px; }
.ph-hint { font-size: 12px; color: var(--night-muted); line-height: 17px; max-width: 280px; }
.streak { background: var(--surface); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.st-top { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.st-top .ic { color: var(--action); }
.st-top .muted { margin-left: auto; }
.st-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.st-dots span { height: 34px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.st-dots span.on { background: var(--accent); color: var(--accent-ink); }
.earn-list, .store, .history { display: flex; flex-direction: column; gap: 8px; }
.earn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 14px; font-weight: 600; }
.earn-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.earn.done .earn-ic { background: var(--accent); color: var(--accent-ink); }
.earn.done .earn-t { color: var(--muted); }
.earn-t { flex: 1; }
.earn-pts { color: var(--ok); }
.store-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-card); border: 1.5px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); width: 100%; }
.store-item:disabled { opacity: .6; }
.si-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.si-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.si-t b { color: var(--ink); font-size: 15px; }
.si-short { color: var(--warn); font-weight: 700; }
.si-pts { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--night); color: var(--accent); font-weight: 800; display: inline-flex; align-items: center; flex-shrink: 0; }
.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badge-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: var(--r-card); border: 0; background: var(--surface); text-align: left; color: var(--ink); }
.bt-ic { position: relative; width: 48px; height: 48px; border-radius: 16px; background: var(--chip); color: var(--faint); display: flex; align-items: center; justify-content: center; }
.badge-tile.on .bt-ic { background: var(--accent); color: var(--accent-ink); }
.bt-lock { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.badge-tile b { font-size: 14px; }
.bt-prog { font-size: 12px; color: var(--muted); font-weight: 600; }
.leaders { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.leader { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.leader:last-child { border-bottom: 0; }
.leader.me { background: var(--accent-soft); }
.ld-n { width: 22px; font-weight: 800; color: var(--muted); }
.ld-name { flex: 1; font-weight: 700; }
.hist { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.hist-t { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; }
.hist b.plus { color: var(--ok); }
.hist b.minus { color: var(--ink-2); }

.mine, .complaint-item { background: var(--surface); border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid transparent; }
.complaint-item { gap: 4px; font-size: 14px; }
.mine-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mine-top .muted { margin-left: auto; }
.status { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.st-active { background: var(--ok-soft); color: var(--ok); }
.st-paused { background: var(--chip); color: var(--ink-2); }
.st-moderation { background: var(--warn-soft); color: var(--warn); }
.st-rejected { background: var(--danger-soft); color: var(--danger); }
.st-archive { background: var(--chip); color: var(--muted); }
.mine-main { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.mine-main > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.mine-price { font-weight: 800; }
.mine-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mine-stats span { padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; font-size: 12px; color: var(--muted); font-weight: 600; }
.mine-stats b { font-size: 16px; color: var(--ink); }
.mine-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.act { height: 34px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.act-danger { color: var(--danger); border-color: var(--danger-line); }
.ok-line { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; font-size: 13px; }
.bad-line { display: inline-flex; align-items: flex-start; gap: 5px; color: var(--danger); font-weight: 700; font-size: 13px; line-height: 18px; }
.input-ok { border-color: var(--ok); }
.input-bad { border-color: var(--danger); }
.req-list { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: 16px; font-size: 14px; color: var(--muted); }
.req-list li { display: flex; align-items: center; gap: 8px; }
.req-list li .ic { width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: var(--chip); }
.req-list li.done { color: var(--ink); font-weight: 600; }
.req-list li.done .ic { background: var(--accent); color: var(--accent-ink); }
.card-box { background: var(--surface); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.invite { display: flex; gap: 8px; align-items: center; background: var(--chip); border-radius: 14px; padding: 6px 6px 6px 12px; }
.invite code { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.notifs { display: flex; flex-direction: column; gap: 8px; }
.notif { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; border: 0; background: var(--surface); text-align: left; color: var(--ink); width: 100%; }
.notif.unread { box-shadow: inset 3px 0 0 var(--accent); }
.notif .dot { top: 14px; right: 14px; border-color: var(--surface); }
.n-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--chip); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.n-mod, .n-reward { background: var(--accent-soft); color: var(--ok); }
.n-complaint { background: var(--danger-soft); color: var(--danger); }
.n-review { color: var(--star); }
.n-t { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); padding-right: 14px; }
.n-t b { color: var(--ink); font-size: 15px; }
.theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-seg button { height: 64px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.theme-seg button.on { border-color: var(--action); background: var(--accent-soft); }
.theme-seg.small button { height: 36px; flex-direction: row; font-size: 12px; }
.demo-box .rows { border: 1.5px dashed var(--line-2); }
.prose { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.prose h2 { font: 700 16px/22px var(--f-display); color: var(--ink); margin-top: 8px; }
.prose ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { max-width: 65ch; }

/* ---------- create ---------- */
.create-body { padding-top: 6px; padding-bottom: 12px; }
.picked-cat { display: flex; align-items: center; gap: 10px; }
.summary .row { min-height: 52px; }
.summary .row-chev { display: none; }

/* ---------- onboarding ---------- */
.app.is-onb { background: var(--bg); }
.splash { min-height: 100vh; min-height: 100dvh; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.splash-mascot { width: min(280px, 70vw); animation: pop .7s ease both; }
.splash-word { font: 700 30px var(--f-display); letter-spacing: -.02em; }
.splash-word span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #7FDADB; color: #062C2D; font-size: 16px; letter-spacing: .06em; transform: rotate(-6deg) translateY(-4px); }
.splash-sub { color: #93A2A4; font-size: 14px; }
.onb { padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.onb-center { justify-content: center; }
.onb-welcome { align-items: stretch; text-align: left; }
.onb-hero-mascot { width: 168px; height: 168px; align-self: center; margin-top: 10px; }
.onb-h1 { font: 700 26px/32px var(--f-display); letter-spacing: -.01em; }
.onb-h2 { font: 700 23px/29px var(--f-display); letter-spacing: -.01em; }
.onb-h3 { font: 700 17px/23px var(--f-display); }
.onb-p { font-size: 15px; line-height: 22px; color: var(--muted); }
.onb-fine { font-size: 12px; line-height: 17px; color: var(--muted); text-align: center; }
.onb-feats, .rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onb-feats li, .rules-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; line-height: 21px; background: var(--surface); padding: 12px; border-radius: 16px; }
.rules-list li { font-weight: 500; align-items: flex-start; }
.feat-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots span { flex: 1; height: 5px; border-radius: 3px; background: var(--chip); }
.onb-dots span.on { background: var(--action); }
.onb-actions { margin-top: auto; padding-top: 8px; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-tile { position: relative; min-height: 84px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; text-align: left; font-size: 14px; font-weight: 700; }
.role-tile.on { border-color: var(--action); background: var(--accent-soft); }
.role-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--action); color: var(--action-ink); display: flex; align-items: center; justify-content: center; }
.profile-prefill { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border-radius: var(--r-card); }
.pp-name { font-weight: 800; font-size: 17px; }
.pp-user { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.phone-ok { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 700; flex-wrap: wrap; }
.phone-ok .muted { font-weight: 500; font-size: 13px; }
.completeness { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-card); background: var(--surface); }
.cmp-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.sub-check { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; width: 100%; }
.ok-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--accent-soft); animation: pop .4s ease both; }
.locked-mascot { width: 150px; height: 150px; }
.locked-mascot.sm { width: 110px; height: 110px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--chip); border-top-color: var(--action); animation: spin .8s linear infinite; display: inline-block; box-sizing: border-box; }
.spinner.xs { width: 12px; height: 12px; border-width: 2px; border-color: currentColor; border-top-color: transparent; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(456px, calc(100% - 24px)); height: 68px; box-sizing: border-box; border-radius: 26px; background: var(--nav); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; box-shadow: 0 10px 30px rgba(21, 23, 26, .25); }
.nav-btn { height: 44px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; color: var(--nav-muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nav-btn.on { background: var(--nav-on); color: var(--nav-on-ink); padding: 0 14px; }
.nav-plus { width: 52px; height: 52px; border-radius: 18px; border: 0; background: var(--accent); color: #062C2D; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); box-shadow: 0 0 18px rgba(127, 218, 219, .45); }
@media (max-width: 360px) { .nav-btn.on span { display: none; } }
@media (max-width: 860px) { body.typing .nav { display: none; } body.typing .app.has-nav { padding-bottom: 24px; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 80; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: min(448px, calc(100% - 32px)); box-sizing: border-box; padding: 12px 14px; border-radius: 18px; background: var(--night); color: var(--night-ink); display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; line-height: 19px; animation: rise .25s ease both; }
:root[data-theme="dark"] .toast { background: #1F2A2C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #1F2A2C; } }
.toast-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; border: 0; background: var(--scrim); animation: fade .2s ease both; cursor: default; }
.sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(480px, 100%); max-height: 88vh; max-height: 88dvh; overflow: hidden; box-sizing: border-box; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; animation: up .25s ease both; }
.sheet-h { flex-shrink: 0; }
.handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; flex-shrink: 0; }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-title { font: 700 19px/25px var(--f-display); }
.sheet-sub { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 19px; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 22px; overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; margin: 0 -16px; padding: 0 16px 2px; }
.sheet-foot { flex-shrink: 0; display: flex; gap: 10px; background: var(--bg); padding: 4px 0 0; }
.sheet-actions { display: flex; gap: 10px; }
.opts { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); font-size: 15px; font-weight: 600; width: 100%; }
.opts > .opt:last-child { border-bottom: 0; }
.opt.on { color: var(--ok); }
.opt.danger { color: var(--danger); }
.opt-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--chip); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opt-t { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.tg-auth { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tg-auth ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-self: stretch; text-align: left; background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.tg-auth li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tg-auth li .ic { color: var(--ok); }
.tg-logo { width: 64px; height: 64px; border-radius: 50%; background: var(--tg); color: #fff; display: flex; align-items: center; justify-content: center; }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-btn { height: 60px; border-radius: 18px; border: 0; color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: 16px; font-weight: 800; }
.m-tg { background: var(--tg); } .m-wa { background: var(--wa); } .m-vb { background: var(--vb); } .m-em { background: var(--em); }
.msg-ic { width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.sheet-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); line-height: 18px; }
.sheet-note .ic { color: var(--ok); }
.contact-reveal { background: var(--surface); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.contact-reveal .label { margin: 0; }
.cr-val { display: flex; align-items: center; gap: 10px; }
.cr-val code { flex: 1; font: 700 18px var(--f-mono); user-select: all; overflow-wrap: anywhere; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.flt { display: flex; flex-direction: column; gap: 8px; }
.flt .label { margin: 8px 0 0; }
.spend-sum { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 14px; flex-wrap: wrap; }
.spend-sum b { font-size: 17px; }
.install-steps { display: flex; flex-direction: column; gap: 8px; }
.install-steps > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 14px; color: var(--ink-2); }
.install-steps b { color: var(--ink); }
.badge-big { width: 84px; height: 84px; border-radius: 26px; background: var(--chip); color: var(--faint); display: flex; align-items: center; justify-content: center; }
.badge-big.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- award ---------- */
.award-wrap { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s ease both; }
.award { width: min(360px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; background: var(--surface); border-radius: 28px; padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; animation: pop .35s ease both; box-shadow: var(--shadow); }
.medal { position: relative; width: 168px; height: 156px; margin: 4px 0 6px; display: flex; align-items: center; justify-content: center; }
.medal-ring { width: 132px; height: 132px; border-radius: 50%; padding: 7px; box-sizing: border-box; background: conic-gradient(from 210deg, #7FDADB, #0A757A, #5FC8C9, #ACE8E6, #7FDADB); box-shadow: 0 0 30px rgba(127, 218, 219, .55); animation: pop .45s ease both; }
.medal-core { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #23474A, #0B1415 70%); color: #7FDADB; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(127, 218, 219, .35); }
.medal-mascot { position: absolute; left: -2px; bottom: -6px; width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface); transform: rotate(-8deg); }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); animation: twinkle 1.6s ease-in-out infinite; }
.spark.s1 { top: 6px; right: 26px; }
.spark.s2 { top: 34px; left: 10px; width: 7px; height: 7px; animation-delay: .4s; }
.spark.s3 { bottom: 26px; right: 6px; width: 8px; height: 8px; animation-delay: .8s; }
.spark.s4 { top: 0; left: 50px; width: 6px; height: 6px; animation-delay: 1.1s; background: #ACE8E6; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: rotate(45deg) scale(.8); } 50% { opacity: 1; transform: rotate(45deg) scale(1.15); } }
.award-perks { list-style: none; margin: 4px 0 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; align-self: stretch; text-align: left; background: var(--accent-soft); border-radius: 16px; font-size: 14px; font-weight: 600; }
.award-perks li { display: flex; align-items: center; gap: 8px; }
.award-perks .ic { color: var(--ok); }
.award-where { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 13px; line-height: 18px; color: var(--ink-2); }
.award-where .badge-mini { background: var(--surface); }
.award-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.award-title { font: 700 22px/28px var(--f-display); text-wrap: balance; }
.award-text { font-size: 15px; line-height: 21px; color: var(--muted); }
.award-pts { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 6px; }
.award-pts b { font: 700 20px var(--f-display); color: var(--action); }
.award-pts span { font-size: 12px; color: var(--muted); }

/* ---------- desktop demo panel ---------- */
.side { display: none; }
@media (min-width: 1120px) {
  .side { display: flex; flex-direction: column; gap: 14px; position: fixed; top: 24px; left: max(24px, calc(50% - 240px - 340px)); width: 300px; max-height: calc(100vh - 48px); overflow-y: auto; }
  .side-p { font-size: 14px; line-height: 20px; color: var(--muted); }
  .side-box { background: var(--surface); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .side-box .label { margin: 0; }
  .side-try { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  .side-try button { border: 0; background: none; padding: 2px 0; text-align: left; color: var(--link); font-weight: 600; line-height: 19px; }
  .side-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
  .side-row input { width: 18px; height: 18px; accent-color: var(--action); }
  .side-btns { display: flex; flex-wrap: wrap; gap: 6px; }
}

/* ---------- admin ---------- */
.admin { min-height: 100vh; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
.adm-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm-brand { display: flex; align-items: center; gap: 10px; }
.adm-tag { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.adm-demo { margin-left: auto; font-size: 12px; color: var(--muted); }
.adm-exit { margin-left: auto; flex-shrink: 0; }
.adm-demo + .adm-exit { margin-left: 0; }
.adm-body { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.adm-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface-2); }
.adm-nav button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700; text-align: left; }
.adm-nav button span:nth-child(2) { flex: 1; }
.adm-nav button.on { background: var(--accent-soft); color: var(--ink); }
.adm-n { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--action); color: var(--action-ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.adm-main { min-width: 0; }
.adm-pad { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.adm-h1 { font: 700 24px/30px var(--f-display); }
.adm-h2 { font: 700 18px/24px var(--f-display); }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.adm-tile { background: var(--surface); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.adm-tile b { font: 700 28px/32px var(--f-display); color: var(--ink); }
.adm-explain { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.adm-explain > div { background: var(--surface); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.adm-explain b { color: var(--ink); }
.adm-split { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); min-height: calc(100vh - 62px); }
.adm-list { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.adm-list-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.adm-row { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); font-size: 14px; }
.adm-row.on { border-color: var(--action); box-shadow: 0 0 0 3px var(--accent-soft); }
.ar-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flags { display: flex; gap: 5px; flex-wrap: wrap; }
.flag { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; }
.f-bad { background: var(--danger-soft); color: var(--danger); }
.f-mid { background: var(--warn-soft); color: var(--warn); }
.f-low { background: var(--chip); color: var(--muted); }
.f-ok { background: var(--ok-soft); color: var(--ok); }
.adm-detail { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.adm-text { font-size: 15px; line-height: 22px; color: var(--ink-2); background: var(--surface); padding: 12px 14px; border-radius: 14px; max-width: 65ch; }
.flag-explain { display: flex; flex-direction: column; gap: 6px; }
.flag-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.adm-actions { display: flex; gap: 10px; margin-top: 6px; }
.adm-actions.wrap { flex-wrap: wrap; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.adm-card { background: var(--surface); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.adm-card .table-wrap { background: var(--surface-2); }
.adm-card .tbl td { white-space: normal; overflow-wrap: anywhere; }
.adm-target { font-size: 16px; }
.evidence { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ev { width: 44px; height: 44px; border-radius: 10px; background: var(--chip); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.verdict { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 800; }
.mini-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chip); margin-left: auto; }
.mini-seg button { height: 28px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; font-size: 12px; font-weight: 700; color: var(--muted); }
.mini-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.word-add { display: flex; gap: 8px; }
.word-add .input { height: 40px; }
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--ok); }
.adm-empty b { color: var(--ink); }
@media (max-width: 860px) {
  .adm-top { flex-wrap: nowrap; height: 56px; box-sizing: border-box; padding: 8px 12px; }
  .adm-demo { display: none; }
  .adm-body { display: block; }
  .adm-nav { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 9; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; gap: 6px; background: var(--surface-2); }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav button { flex-shrink: 0; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); }
  .adm-nav button.on { border-color: var(--action); }
  .adm-split { display: block; min-height: 0; }
  .adm-list { border-right: 0; padding: 16px; overflow: visible; }
  .adm-row { padding: 14px; }
  .adm-row-go { display: inline-flex; align-items: center; gap: 2px; color: var(--link); font-weight: 700; font-size: 13px; margin-top: 2px; }
  .adm-detail, .adm-pad { padding: 16px; max-width: none; }
  .adm-detail { padding-bottom: 0; }
  .adm-cards { grid-template-columns: 1fr; }
  .adm-h1 { font-size: 21px; line-height: 27px; }
  .adm-actions.wrap .btn { flex: 1 1 auto; }
  .adm-decide { position: sticky; bottom: 0; z-index: 5; margin: 6px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .adm-mbar { position: sticky; top: calc(111px + env(safe-area-inset-top, 0px)); z-index: 8; display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .adm-pos { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
  .adm-mbar .icon-btn:disabled { opacity: .3; }
  .mini-seg { margin-left: 0; width: 100%; }
  .mini-seg button { flex: 1; }
}
@media (min-width: 861px) { .adm-row-go, .adm-mbar { display: none; } }
@media (max-width: 420px) { .adm-exit span { display: none; } .adm-exit { width: 40px; padding: 0; } .adm-tag { display: none; } }

/* ---------- small phones ---------- */
@media (max-width: 400px) {
  .seg button { font-size: 13px; padding: 0 8px; gap: 4px; }
  .h1 { font-size: 24px; line-height: 30px; }
  .hero-t { font-size: 20px; line-height: 25px; }
  .detail-title { font-size: 20px; line-height: 26px; }
  .stat-row b, .tile b { font-size: 18px; }
  .lc-cover { width: 88px; height: 100px; }
  .mc { width: 152px; }
  .pc-num { font-size: 32px; }
  .ph-num { font-size: 38px; line-height: 42px; }
  .ph-mascot { width: 116px; height: 116px; }
  .mine-actions .act { flex: 1 1 auto; justify-content: center; }
}


/* ---------- push ---------- */
.pushb { position: fixed; z-index: 85; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(456px, calc(100% - 20px)); box-sizing: border-box; display: flex; align-items: center; gap: 4px; padding: 10px 6px 10px 10px; border-radius: 22px; background: var(--surface); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 34px rgba(0, 0, 0, .22); border: 1px solid var(--line); animation: drop .3s ease both; }
.pushb-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.pushb-ic { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.pushb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 19px; }
.pushb-app { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.pushb-t b { font-size: 14px; }
.pushb-body { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.push-card { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-card); background: var(--accent-soft); border: 1.5px solid var(--accent); }
.push-card-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.push-card-t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.push-card-t b { font-size: 15px; color: var(--ink); }
.push-card-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.push-ask-ic { width: 76px; height: 76px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.row-ic.on { background: var(--accent); color: var(--accent-ink); }
.rows.bordered { border: 1.5px solid var(--line); }
.bc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.bc-split > div { padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.bc-split b { font: 700 18px/22px var(--f-display); color: var(--ink); }
.bc-split.small b { font-size: 15px; line-height: 19px; }
.mini-seg.wide { margin-left: 0; width: 100%; box-sizing: border-box; }
.mini-seg.wide button { flex: 1; height: 34px; font-size: 13px; }
.adm-grid2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lock { position: relative; border-radius: 28px; padding: 26px 14px 30px; background: linear-gradient(160deg, #0B2E30, #050909 70%); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; overflow: hidden; }
.lock-time { font: 600 52px/58px var(--f-body); letter-spacing: -.02em; }
.lock-date { font-size: 14px; opacity: .8; margin-bottom: 18px; }
.lock-notif { width: 100%; box-sizing: border-box; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 20px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); text-align: left; }
.lock-notif img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.lock-notif > div { flex: 1; min-width: 0; font-size: 13px; line-height: 17px; }
.ln-top { display: flex; justify-content: space-between; font-size: 12px; opacity: .75; margin-bottom: 1px; }
.lock-notif b { display: block; font-size: 14px; }
.lock-notif p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .9; }
.adm-card .lock + .muted { margin-top: 10px; }

/* ---------- install ---------- */
.banner-install { background: var(--surface); color: var(--ink); padding: 8px 6px 8px 8px; border: 1.5px solid var(--line); gap: 10px; }
.banner-install img { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.bi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); font-size: 13px; }
.bi-main b { font-size: 15px; }
.bi-main span { color: var(--muted); font-weight: 500; }
.inst-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; background: var(--night); color: var(--night-ink); }
.inst-icon { width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(127, 218, 219, .35); }
.inst-hero b { font: 700 17px/22px var(--f-display); }
.inst-hero ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--night-muted); }
.inst-hero li { display: flex; align-items: center; gap: 6px; }
.inst-hero li .ic { color: var(--accent); }
.inst-steps { list-style: none; margin: 14px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inst-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface); }
.inst-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.inst-t { font-size: 15px; font-weight: 700; line-height: 24px; }
.inst-s { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 3px; }
.key { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; margin: 0 2px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 14px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; font-size: 14px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { font-size: 14px; line-height: 20px; color: var(--ink-2); padding-bottom: 14px; }
.post-text { margin: 0; white-space: pre-wrap; font: 400 14px/21px var(--f-body); background: var(--chip); border-radius: 14px; padding: 12px 14px; color: var(--ink); max-height: 260px; overflow: auto; }
@media (max-width: 860px) { .adm-grid2 { grid-template-columns: 1fr; } }


/* ---------- install animation ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 4px; }
.demo-frame { position: relative; overflow: hidden; background: #F2F6F6; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); color: #15171A; font-family: var(--f-body); }
.demo-frame.ph { width: 206px; height: 400px; border-radius: 36px; border: 8px solid #101415; }
.demo-frame.pc { width: min(300px, 100%); height: 200px; border-radius: 12px; border: 6px solid #101415; }
.ph-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 10px; background: #101415; z-index: 5; }
.demo-screen { position: absolute; inset: 0; font-size: 9px; line-height: 12px; }
.demo-ctl { display: flex; align-items: center; gap: 10px; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); }
.demo-dots button.on { width: 22px; border-radius: 6px; background: var(--action); }
.demo-n { font-size: 13px; color: var(--muted); font-weight: 700; min-width: 76px; }

/* fake page */
.pg { position: absolute; inset: 0; padding: 30px 10px 0; display: flex; flex-direction: column; gap: 6px; background: #F0F6F6; }
.ph .pg { padding-top: 54px; }
.pc .pg { position: relative; inset: auto; padding: 8px; height: 100%; }
.pg-head { display: flex; align-items: center; gap: 4px; }
.pg-head img { width: 14px; height: 14px; border-radius: 50%; }
.pg-logo { width: 26px; height: 8px; border-radius: 3px; background: #15171A; }
.pg-pill { width: 22px; height: 7px; border-radius: 4px; background: #7FDADB; transform: rotate(-6deg); }
.pg-hero { position: relative; overflow: hidden; height: 58px; border-radius: 10px; background: #15171A; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.pg-hero span { height: 6px; width: 70%; border-radius: 3px; background: #fff; opacity: .9; }
.pg-hero span.short { width: 45%; }
.pg-hero i { position: absolute; right: -14px; top: -14px; width: 46px; height: 46px; border-radius: 50%; background: #7FDADB; }
.pg-chips { display: flex; gap: 4px; }
.pg-chips span { height: 12px; flex: 1; border-radius: 6px; background: #fff; border: 1px solid #D8E5E5; }
.pg-card { height: 40px; border-radius: 9px; background: #fff; padding: 6px 6px 6px 40px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.pg-card b { position: absolute; left: 6px; top: 6px; width: 28px; height: 28px; border-radius: 7px; background: #ACE8E6; }
.pg-card span { height: 5px; width: 80%; border-radius: 3px; background: #D8E5E5; }
.pg-card span.short { width: 40%; background: #15171A; opacity: .7; }

/* browser chrome */
.tgb, .chb, .sfu { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 28px 10px 6px; background: #fff; border-bottom: 1px solid #E3EDED; font-size: 10px; }
.tgb b { font-size: 10px; }
.tgb-dots, .chb-dots { font-size: 14px; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sfu { justify-content: center; }
.sfu span { background: #EEF2F2; border-radius: 7px; padding: 3px 10px; color: #3B3F45; }
.chb-url { flex: 1; background: #EEF2F2; border-radius: 10px; padding: 3px 8px; color: #3B3F45; }
.sfb { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: space-around; background: #fff; border-top: 1px solid #E3EDED; color: #0A84FF; font-size: 14px; padding-bottom: 6px; }
.sfb-share { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.dm { position: absolute; z-index: 4; width: 128px; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); overflow: hidden; }
.ph .dm { top: 52px !important; }
.dm-right { right: 8px; transform-origin: top right; }
.dm-row { padding: 7px 10px; border-bottom: 1px solid #EEF2F2; font-size: 9.5px; }
.dm-row:last-child { border-bottom: 0; }
.hl { animation: hlOn .4s ease .8s both; }
@keyframes hlOn { to { background: #E6F7F7; color: #084142; font-weight: 800; } }

/* iOS share sheet and add screen */
.ios-sheet { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; background: #F2F2F7; border-radius: 16px 16px 0 0; padding: 10px 8px 14px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); }
.ios-apps { display: flex; gap: 8px; padding: 2px 4px 6px; }
.ios-apps span { width: 30px; height: 30px; border-radius: 8px; background: #D8E5E5; }
.ios-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 9.5px; }
.ios-row i { font-style: normal; font-size: 12px; color: #3B3F45; }
.ios-add { position: absolute; z-index: 4; inset: 22px 0 0; background: #F2F2F7; border-radius: 14px 14px 0 0; padding: 0 0 10px; }
.ios-add-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; font-size: 9px; color: #0A84FF; }
.ios-add-bar b { color: #15171A; font-size: 9.5px; }
.ios-add-ok { font-weight: 800; padding: 2px 4px; border-radius: 6px; }
.ios-add-body { margin: 6px 8px; background: #fff; border-radius: 10px; padding: 8px; display: flex; gap: 8px; align-items: center; }
.ios-add-body img { width: 38px; height: 38px; border-radius: 9px; }
.ios-add-body div { display: flex; flex-direction: column; gap: 2px; font-size: 10px; }
.ios-add-body span { color: #8E9296; font-size: 8.5px; }
.ios-add p { margin: 6px 12px; color: #8E9296; font-size: 8.5px; }

/* home screen */
.home { position: absolute; inset: 0; background: linear-gradient(170deg, #0B2E30, #050909 75%); padding: 30px 12px 0; }
.home-time { color: #fff; text-align: center; font-size: 11px; font-weight: 700; margin-bottom: 14px; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.home-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.home-slot em { font-style: normal; color: #fff; font-size: 7px; white-space: nowrap; }
.home-app { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .45); display: block; }
.home-ofb { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 12px rgba(127, 218, 219, .7); }
.home-dock { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 50px; border-radius: 16px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: space-around; }
.alert-ios { position: absolute; z-index: 4; left: 18px; right: 18px; top: 38%; background: rgba(242, 242, 247, .97); border-radius: 12px; text-align: center; padding: 12px 10px 0; display: flex; flex-direction: column; gap: 4px; animation-delay: 1.6s !important; }
.alert-ios b { font-size: 9.5px; line-height: 12px; }
.alert-ios > span { font-size: 8.5px; color: #5F6369; }
.alert-ios div { display: flex; border-top: 1px solid #D8D8DC; margin: 6px -10px 0; }
.alert-ios div span { flex: 1; padding: 7px 0; color: #0A84FF; font-size: 9.5px; }
.alert-ios div span.ok { font-weight: 800; border-left: 1px solid #D8D8DC; }

/* android dialogs */
.scrim-demo { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .35); }
.and-dlg { position: absolute; z-index: 4; left: 14px; right: 14px; top: 34%; background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.and-dlg img { width: 34px; height: 34px; border-radius: 9px; }
.and-dlg b { font-size: 10px; line-height: 13px; }
.and-dlg > span { font-size: 8.5px; color: #5F6369; }
.and-dlg div { display: flex; justify-content: flex-end; gap: 12px; align-self: stretch; margin-top: 6px; font-size: 9.5px; color: #0A757A; font-weight: 700; }
.and-dlg div .ok { background: #0A757A; color: #fff; border-radius: 12px; padding: 3px 10px; }
.and-dlg.perm { animation-delay: 1.6s !important; }
.and-dlg div.col { flex-direction: column; align-items: stretch; gap: 4px; }
.and-dlg div.col span { padding: 5px; border-radius: 12px; text-align: center; background: #E6F7F7; }

/* desktop */
.pc-tabs { display: flex; gap: 2px; padding: 4px 6px 0; background: #DFE7E7; font-size: 8px; }
.pc-tabs span { padding: 3px 10px; border-radius: 6px 6px 0 0; color: #5F6369; }
.pc-tabs span.on { background: #fff; color: #15171A; font-weight: 700; }
.pc-url { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #fff; border-bottom: 1px solid #E3EDED; }
.pc-url span { flex: 1; background: #EEF2F2; border-radius: 8px; padding: 2px 8px; font-size: 8px; color: #3B3F45; }
.pc-inst { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #0A757A; }
.pc .pg { height: calc(100% - 44px); }
.pc-pop { position: absolute; z-index: 4; right: 8px; top: 40px; width: 150px; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 3px; transform-origin: top right; }
.pc-pop b { font-size: 9.5px; }
.pc-pop > span { font-size: 8.5px; color: #5F6369; }
.pc-pop div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; font-size: 8.5px; font-weight: 700; color: #0A757A; }
.pc-pop div .ok { background: #0A757A; color: #fff; border-radius: 8px; padding: 2px 8px; }
.pc-app { position: absolute; inset: 0; background: #F0F6F6; }
.pc-app-bar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #15171A; color: #fff; font-size: 9px; font-weight: 700; }
.pc-app-bar img { width: 12px; height: 12px; border-radius: 3px; }
.pc-app-bar span { margin-left: auto; opacity: .7; letter-spacing: 2px; }
.pc-app .pg { height: calc(100% - 22px); }

/* motion */
.tap { position: absolute; z-index: 6; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(127, 218, 219, .35); border: 2px solid #0A757A; opacity: 0; animation: tap 1.4s ease-out both; pointer-events: none; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 25% { opacity: 1; transform: scale(.85); } 45% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 117, 122, .0); background: transparent; } 50% { box-shadow: 0 0 0 5px rgba(127, 218, 219, .45); background: rgba(127, 218, 219, .35); } }
.drop-in { animation: dropIn .3s ease .45s both; }
@keyframes dropIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.slide-up { animation: slideUp .45s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pop-in { animation: popIn .5s cubic-bezier(.3, 1.5, .5, 1) .35s both; }
@keyframes popIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.fade-in { animation: fadeIn .35s ease .5s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.inst-steps li { cursor: pointer; border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.inst-steps li.on { border-color: var(--accent); background: var(--accent-soft); }
.inst-steps li.on .inst-n { background: var(--action); color: var(--action-ink); }

/* ---------- inside Telegram: the system back button replaces ours ---------- */
.in-tg .hdr > button[aria-label="Назад"], .in-tg .cover-bar > button[aria-label="Назад"] { display: none; }
.in-tg .hdr { padding-left: 16px; }
.in-tg .cover-bar { justify-content: flex-end; }

/* ---------- motion ---------- */
@keyframes up { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
