:root {
  --bg: #0c0e11; --surface: #14171c; --surface2: #1b1f26; --surface3: #232831;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #f1f3f6; --hint: #8a92a0; --accent: #ff6a14; --accent-2: #ffb21f; --accent-ink: #1a0c02;
  --good: #3fd68f; --bad: #ff5a5f; --shadow: 0 10px 30px rgba(0,0,0,.45);
  --glow: rgba(255,106,20,.16); --stripe: rgba(255,178,31,.07);
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px);
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-disp: 'Roboto Condensed', system-ui, sans-serif;
  --r: 18px; --tabh: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f1ed; --surface: #ffffff; --surface2: #f7f5f1; --surface3: #ebe8e2;
  --line: rgba(20,23,28,.08); --line2: rgba(20,23,28,.14);
  --text: #15181d; --hint: #6c7482; --accent: #e85a08; --accent-2: #f29a00; --accent-ink: #fff;
  --good: #14a56a; --bad: #d9363b; --shadow: 0 10px 28px rgba(40,30,20,.12);
  --glow: rgba(232,90,8,.12); --stripe: rgba(232,90,8,.06);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.disp { font-family: var(--f-disp); letter-spacing: .01em; }

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: hidden; }
.view { padding: calc(var(--sa-t) + var(--tg-top, 0px) + 14px) 16px calc(var(--tabh) + var(--sa-b) + 34px); min-height: 100vh; animation: enter .32s cubic-bezier(.2,.8,.2,1) both; }
.view.back { animation-name: enterBack; }
.view.nobar { padding-bottom: calc(var(--sa-b) + 110px); }
@keyframes enter { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }

/* top */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 38px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--f-disp); font-weight: 700; font-size: 22px; letter-spacing: .09em; text-transform: uppercase; }
.brand svg { color: var(--accent); }
.brand small { font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--hint); display: block; margin-top: -3px; }
.spacer { flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; transition: transform .12s; }
.iconbtn:active { transform: scale(.92); }
.demo-pill { font-family: var(--f-disp); font-weight: 700; letter-spacing: .1em; font-size: 13px; text-transform: uppercase; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-2), var(--accent)); padding: 6px 11px; border-radius: 99px; }
.screen-title { font-family: var(--f-disp); font-weight: 700; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.sub { color: var(--hint); font-size: 14px; }

/* search / chips */
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; color: var(--hint); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; color: var(--text); min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--hint); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; white-space: nowrap; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.ok { color: var(--text); }
.chip.ok svg { color: var(--good); }
.chip.sm { padding: 3px 9px; font-size: 12px; }
.seg { display: grid; grid-auto-flow: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--hint); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.sorts { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; color: var(--hint); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.sorts select { background: transparent; border: 0; color: var(--text); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; outline: 0; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.stack > * + * { margin-top: 10px; }
.person { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .14s, background .2s; }
.person:active { transform: scale(.985); background: var(--surface2); }
.person .mid { flex: 1; min-width: 0; }
.person .nm { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.person .meta { display: block; color: var(--hint); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.person .mini { display: block; height: 4px; border-radius: 4px; background: var(--surface3); margin-top: 8px; overflow: hidden; }
.person .mini i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.score { text-align: right; min-width: 62px; flex: none; }
.score b { font-family: var(--f-disp); font-size: 32px; line-height: 1; font-weight: 700; display: block; }
.score span { font-size: 12px; color: var(--hint); font-weight: 600; letter-spacing: .04em; }
.newpill { font-family: var(--f-disp); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--accent-2); border: 1px dashed color-mix(in srgb, var(--accent-2) 55%, transparent); border-radius: 8px; padding: 3px 8px; display: inline-block; }
.rank { font-family: var(--f-disp); font-weight: 700; font-size: 18px; color: var(--hint); width: 18px; text-align: center; }
.rank.top { color: var(--accent); }
.me-dot { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 1px 6px; letter-spacing: .06em; text-transform: uppercase; }

.av { flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; color: #fff; letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
.av.s44 { width: 46px; height: 46px; font-size: 18px; }
.av.s28 { width: 30px; height: 30px; font-size: 12px; }
.av.s84 { width: 84px; height: 84px; font-size: 34px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 8px 22px rgba(0,0,0,.35); }
.avs { display: flex; }
.avs .av { margin-left: -8px; border: 2px solid var(--surface); }
.avs .av:first-child { margin-left: 0; }

/* hex level badge */
.lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); }
.hex { width: 22px; height: 24px; flex: none; }

/* profile hero */
.hero { position: relative; border-radius: 26px; padding: 18px 16px 18px; overflow: hidden; background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--line2); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 14px, var(--stripe) 14px 16px); mask-image: linear-gradient(180deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero > * { position: relative; z-index: 1; }
.hero .tower { position: absolute; right: 10px; top: 8px; width: 90px; color: var(--accent); opacity: .16; z-index: 0; }
.hero-head { display: flex; gap: 14px; align-items: center; }
.hero-head h1 { font-family: var(--f-disp); font-size: 31px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.metrics { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: center; margin-top: 18px; }
.ring { position: relative; width: 124px; height: 124px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .tr { stroke: var(--surface3); }
.ring .pg { stroke: url(#ringg); stroke-linecap: round; animation: ringIn 1.1s cubic-bezier(.2,.8,.2,1) both; filter: drop-shadow(0 0 6px var(--glow)); }
@keyframes ringIn { from { stroke-dasharray: 0 100; } }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font-family: var(--f-disp); font-size: 38px; line-height: .95; font-weight: 700; }
.ring .c b sup { font-size: 18px; font-weight: 600; vertical-align: top; position: relative; top: 4px; }
.ring .c span { font-size: 10.5px; color: var(--hint); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.15; padding: 2px 14px 0; }
.bigscore { font-family: var(--f-disp); font-size: 56px; font-weight: 700; line-height: .9; }
.bigscore small { font-size: 20px; color: var(--hint); font-weight: 600; margin-left: 2px; }
.stars { position: relative; display: inline-block; height: 18px; line-height: 0; }
.stars .bg, .stars .fg { display: flex; gap: 2px; }
.stars .fg { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--accent-2); white-space: nowrap; }
.stars .bg { color: var(--surface3); }
.stars svg { width: 18px; height: 18px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat { background: color-mix(in srgb, var(--bg) 40%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 9px 4px; text-align: center; }
.stat b { font-family: var(--f-disp); font-size: 24px; display: block; line-height: 1.05; }
.stat span { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.unlock { text-align: center; padding: 6px 4px 2px; }
.unlock .dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 8px; }
.unlock .dots i { width: 34px; height: 6px; border-radius: 3px; background: var(--surface3); }
.unlock .dots i.f { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

.sec { margin-top: 22px; }
.sec h3 { font-family: var(--f-disp); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--hint); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.crit { display: grid; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 10px; padding: 7px 0; }
.crit label { font-size: 14px; color: var(--hint); font-weight: 500; }
.crit .bar { height: 8px; border-radius: 4px; background: var(--surface3); position: relative; overflow: hidden; }
.crit .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); animation: grow .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.crit .bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), var(--surface) calc(20% - 2px) 20%); }
.crit b { font-family: var(--f-disp); font-size: 19px; text-align: right; }
@keyframes grow { from { transform: scaleX(0); } }

.review { padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.review .top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hint); margin-bottom: 7px; }
.review .top b { color: var(--text); font-family: var(--f-disp); font-size: 20px; }
.review p { font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 7px; background: var(--surface3); color: var(--hint); }
.tag.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.tag.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.tag.warn { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.tag.co { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pj { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pj:last-child { border: 0; }
.pj .t { flex: 1; min-width: 0; }
.pj .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj .t span { color: var(--hint); font-size: 13px; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font-family: var(--f-disp); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 22px var(--glow); transition: transform .12s, opacity .2s, filter .2s; }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .35; filter: grayscale(.6); box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); box-shadow: none; }
.btn.sm { height: 40px; font-size: 15px; border-radius: 12px; width: auto; padding: 0 16px; }
.btn.good { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); box-shadow: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn { flex: 1; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(var(--sa-b) + 12px); background: linear-gradient(180deg, transparent, var(--bg) 38%); z-index: 20; max-width: 520px; margin: 0 auto; }

/* tabbar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sa-b) + 10px); display: flex; gap: 4px; padding: 6px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line2); box-shadow: var(--shadow); z-index: 30; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 7px 8px 6px; border-radius: 18px; color: var(--hint); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; }
.tabbar button.on { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.tabbar svg { width: 22px; height: 22px; }

/* wizard */
.progress { display: flex; gap: 5px; margin: 4px 0 22px; }
.progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface3); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.progress i.d::after { transform: scaleX(1); }
.wiz-target { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--hint); font-size: 14px; }
.wiz-target b { color: var(--text); font-size: 16px; }
.q { font-family: var(--f-disp); font-size: 38px; font-weight: 700; line-height: 1.02; text-transform: uppercase; }
.q-hint { color: var(--hint); margin-top: 8px; font-size: 15px; min-height: 40px; }
.bigstars { display: flex; justify-content: space-between; margin: 26px 0 8px; }
.bigstars button { width: 19%; aspect-ratio: 1; display: grid; place-items: center; color: var(--surface3); transition: transform .18s cubic-bezier(.3,1.8,.5,1), color .15s; }
.bigstars button svg { width: 100%; height: 100%; }
.bigstars button.on { color: var(--accent-2); transform: scale(1.04); filter: drop-shadow(0 4px 12px var(--glow)); }
.bigstars button:active { transform: scale(.88); }
.scale-lbl { text-align: center; font-family: var(--f-disp); font-size: 24px; font-weight: 600; height: 30px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); }
.na { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 10px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--hint); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.na.on { color: var(--text); border-color: var(--line2); background: var(--surface3); }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.yn button { padding: 26px 10px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); font-family: var(--f-disp); font-size: 28px; font-weight: 700; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all .18s; color: var(--hint); }
.yn button svg { width: 38px; height: 38px; }
.yn button.yes.on { border-color: var(--good); color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--surface)); transform: scale(1.03); }
.yn button.no.on { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); transform: scale(1.03); }
textarea.ta, .inp { width: 100%; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 14px; outline: 0; font-size: 16px; color: var(--text); resize: none; transition: border-color .2s; }
textarea.ta { min-height: 130px; margin-top: 18px; }
textarea.ta:focus, .inp:focus { border-color: var(--accent); }
.cnt { text-align: right; color: var(--hint); font-size: 12px; margin-top: 4px; }
.blindnote { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--hint); font-size: 13.5px; }
.blindnote svg { flex: none; color: var(--accent-2); }

.done { display: grid; place-items: center; text-align: center; padding-top: 12vh; }
.done .seal { width: 130px; height: 130px; position: relative; display: grid; place-items: center; }
.done .seal::before, .done .seal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.8s ease-out infinite; opacity: 0; }
.done .seal::after { animation-delay: .9s; }
@keyframes pulse { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.done svg.big { width: 130px; height: 130px; }
.done .circ { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .7s .05s ease-out forwards; }
.done .tick { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .45s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-family: var(--f-disp); font-size: 36px; text-transform: uppercase; margin-top: 22px; animation: rise .5s .7s both; }
.done p { color: var(--hint); max-width: 300px; margin-top: 8px; animation: rise .5s .85s both; }

/* forms */
.field { margin-top: 14px; }
.field > label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hint); margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.toggle .tx b { display: block; font-weight: 600; }
.toggle .tx span { color: var(--hint); font-size: 13px; }
.sw { width: 50px; height: 30px; border-radius: 15px; background: var(--surface3); position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .22s cubic-bezier(.3,1.5,.5,1); box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(20px); }

.pcard { display: block; width: 100%; text-align: left; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.pcard.closed::before { background: var(--hint); opacity: .5; }
.pcard h4 { margin: 0; font-size: 17px; font-weight: 600; }
.pcard .m { color: var(--hint); font-size: 13.5px; margin: 3px 0 10px; }
.pcard .f { display: flex; align-items: center; justify-content: space-between; }
.member { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border: 0; }
.member .t { flex: 1; min-width: 0; }
.member .t b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .t span { font-size: 13px; color: var(--hint); }
.invite { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.invite code { display: block; word-break: break-all; font-size: 12.5px; color: var(--hint); background: var(--surface2); padding: 9px 10px; border-radius: 10px; margin-bottom: 10px; }
.qr { width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 7px; }
.qr svg { width: 100%; height: 100%; display: block; }

.empty { text-align: center; color: var(--hint); padding: 40px 20px; }
.empty svg { width: 54px; height: 54px; color: var(--surface3); margin-bottom: 10px; }

.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
.sheet-wrap[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 16px calc(var(--sa-b) + 20px); border: 1px solid var(--line2); border-bottom: 0; animation: up .3s cubic-bezier(.2,.8,.2,1) both; max-height: 82vh; overflow-y: auto; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--f-disp); font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: calc(var(--sa-b) + 92px); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 70; max-width: 86vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* onboarding */
.ob { text-align: center; padding-top: 4vh; }
.ob .art { width: 150px; margin: 0 auto 6px; color: var(--accent); filter: drop-shadow(0 8px 24px var(--glow)); }
.ob h1 { font-family: var(--f-disp); font-size: 44px; line-height: .95; text-transform: uppercase; font-weight: 700; margin-top: 8px; }
.ob h1 em { font-style: normal; color: var(--accent); }
.ob .lead { color: var(--hint); margin: 12px auto 18px; max-width: 320px; }
.terms { text-align: left; }
.terms li { display: flex; gap: 10px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); list-style: none; }
.terms li:last-child { border: 0; }
.terms { margin: 0; padding: 0; }
.terms svg { flex: none; color: var(--accent); margin-top: 2px; }
.skeleton { height: 70px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
.admin-d .rv { background: var(--surface2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }

/* ===== onboarding 2 ===== */
:root { --sky1: #060a18; --sky2: #1a1642; --sky3: #6d2c4d; --sky4: #ff7a2a; --tw: #04050a; --hill1: #120f26; --hill2: #07060f; --orb: #f4ecd8; --glass: rgba(24,28,38,.55); --glass-b: rgba(255,255,255,.12); --beacon: #ff2d2d; }
:root[data-theme="light"] { --sky1: #9fc4ea; --sky2: #cfe0f1; --sky3: #f8d9c2; --sky4: #ffb27a; --tw: #2c2430; --hill1: #c9b3b4; --hill2: #8f7a85; --orb: #fff3d6; --glass: rgba(255,255,255,.62); --glass-b: rgba(255,255,255,.8); --beacon: #e11d1d; }
.view.ob2view { padding: 0 0 calc(var(--sa-b) + 96px); overflow: hidden; }
.ob2 { position: relative; min-height: 100vh; }
.ob-top { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--sa-t) + var(--tg-top, 0px) + 12px); padding: 0 16px; display: flex; align-items: center; }
.ob-top .brand { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); font-size: 19px; }
:root[data-theme="light"] .ob-top .brand { color: #2a2230; text-shadow: none; }
.glass-s { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--glass-b); }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--glass-b); box-shadow: 0 18px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); border-radius: 26px; }
:root[data-theme="light"] .glass { box-shadow: 0 18px 40px rgba(80,50,40,.18), inset 0 1px 0 #fff; }

.scene { position: absolute; left: 0; right: 0; top: 0; height: 392px; overflow: hidden; --p: 0; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); animation: sceneIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.06); } }
.scene .sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 38%, var(--sky3) 72%, var(--sky4) 100%); }
.scene .stars { position: absolute; inset: 0; }
:root[data-theme="light"] .scene .stars { display: none; }
.scene .stars i { position: absolute; border-radius: 50%; background: #fff; opacity: .85; animation: tw 3.4s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .15; } }
.scene .orb { position: absolute; right: 52px; top: 86px; width: 30px; height: 30px; border-radius: 50%; background: var(--orb); box-shadow: 0 0 28px 6px color-mix(in srgb, var(--orb) 45%, transparent); }
:root:not([data-theme="light"]) .scene .orb { box-shadow: -8px 0 0 0 var(--sky2) inset, 0 0 30px 6px rgba(244,236,216,.28); background: var(--orb); }
:root[data-theme="light"] .scene .orb { width: 54px; height: 54px; right: auto; left: 18%; top: 190px; background: radial-gradient(circle, #fff7e0, #ffd9a0); box-shadow: 0 0 60px 26px rgba(255,190,120,.6); }
.scene .glow { position: absolute; left: 50%; bottom: -40px; width: 520px; height: 260px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--sky4) 70%, transparent), transparent); }
.scene .l1 { transform: translateX(calc(var(--p) * -6px)); }
.scene .hills { position: absolute; left: -60px; right: -60px; width: calc(100% + 120px); bottom: 0; height: 110px; }
.scene .h1 { fill: var(--hill1); bottom: 18px; transform: translateX(calc(var(--p) * -14px)); }
.scene .h2 { fill: var(--hill2); height: 80px; transform: translateX(calc(var(--p) * -26px)); }
.scene .towerwrap { position: absolute; left: 50%; margin-left: -16px; bottom: 60px; width: 160px; height: 292px; color: var(--tw); transform: translateX(calc(var(--p) * -18px)); animation: towerIn 1.2s .15s cubic-bezier(.2,.8,.2,1) both; filter: drop-shadow(0 0 18px rgba(255,120,40,.25)); }
@keyframes towerIn { from { opacity: 0; transform: translateY(24px); } }
.tower-big { width: 100%; height: 100%; display: block; overflow: visible; }
.beacon .core { fill: var(--beacon); animation: blink 2s steps(1) infinite; }
.beacon .halo { fill: var(--beacon); opacity: 0; animation: halo 2s ease-out infinite; }
.beacon .h2 { animation-delay: .05s; }
.beacon.b2 .core, .beacon.b2 .halo { animation-delay: 1s; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .18; } }
@keyframes halo { 0% { opacity: .5; transform: scale(.3); } 55% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.beacon .halo { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .scene, .scene *, .slide *, .dots i { animation: none !important; transition: none !important; } .beacon .halo { opacity: .25; } }

.car { position: relative; z-index: 3; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-top: 232px; }
.car::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 20px; }
.slide .ill { min-height: 196px; display: flex; flex-direction: column; justify-content: flex-end; }
.ob-t { font-family: var(--f-disp); font-weight: 700; font-size: 35px; line-height: 1.05; letter-spacing: -.005em; white-space: pre-line; margin-top: 34px; text-wrap: balance; }
.ob-p { color: var(--hint); font-size: 16px; line-height: 1.45; margin-top: 12px; max-width: 340px; }
.slide .ob-t, .slide .ob-p { opacity: 0; transform: translateY(14px); transition: opacity .55s .1s, transform .55s .1s; }
.slide .ob-p { transition-delay: .2s; }
.slide.active .ob-t, .slide.active .ob-p, .slide:first-child .ob-t, .slide:first-child .ob-p { opacity: 1; transform: none; }
.slide:not(.active) .ob-t, .slide:not(.active) .ob-p { opacity: .0; }
.slide:first-child:not(.active) .ob-t, .slide:first-child:not(.active) .ob-p { opacity: 0; }
.dots { position: relative; z-index: 4; display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--surface3); transition: all .3s; }
.dots i.on { width: 26px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.ob-terms { margin-top: 16px; font-size: 13px; color: var(--hint); line-height: 1.4; }
.ob-terms button { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* slide 1: profile card */
.demo-card { padding: 16px; }
.dc-head { display: flex; align-items: center; gap: 12px; }
.dc-head b { font-size: 18px; font-weight: 600; }
.dc-head .lvl { font-size: 10.5px; }
.dc-body { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.ring.sm { width: 92px; height: 92px; flex: none; }
.ring.sm .c b { font-size: 29px; }
.ring.sm .c b sup { font-size: 14px; top: 3px; }
.slide .pg2 { stroke-dasharray: 0 100; }
.slide.active .pg2 { animation: ringIn2 1.3s .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ringIn2 { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 92 100; } }
.slide.active .demo-card { animation: floatY 5s ease-in-out infinite, rise .6s both; }
@keyframes floatY { 50% { transform: translateY(-6px); } }
.demo-card .stars svg { width: 15px; height: 15px; }
.demo-card .stars { height: 15px; }

/* slide 2: envelopes */
.env-row { position: relative; display: flex; justify-content: center; gap: 26px; align-items: flex-end; }
.env { position: relative; width: 138px; text-align: center; }
.env svg:first-child { width: 100%; display: block; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.env.e0 { transform: rotate(-4deg); } .env.e1 { transform: rotate(4deg); }
.env .body { fill: color-mix(in srgb, var(--surface2) 92%, var(--accent)); stroke: var(--glass-b); stroke-width: 1.2; }
.env .seam { stroke: var(--line2); stroke-width: 1.2; }
.env .flap { fill: color-mix(in srgb, var(--surface3) 88%, var(--accent)); stroke: var(--glass-b); stroke-width: 1.2; transform-box: fill-box; transform-origin: top center; }
.env .letter { fill: var(--surface); stroke: var(--line2); }
.env .lstars circle { opacity: .9; }
.env .lock { position: absolute; left: 50%; top: 46px; width: 26px; height: 26px; margin-left: -13px; color: var(--accent); filter: drop-shadow(0 0 8px var(--glow)); }
.envlbl { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--hint); letter-spacing: .04em; }
.slide.active .env .flap { animation: flap 5s ease-in-out infinite; }
.slide.active .env .letter, .slide.active .env .lstars { animation: letter 5s ease-in-out infinite; }
.slide.active .env .lock { animation: lockf 5s ease-in-out infinite; }
.slide.active .env { animation: envfloat 5s ease-in-out infinite; }
@keyframes flap { 0%, 40% { transform: scaleY(1); } 52%, 88% { transform: scaleY(-.8); } 98%, 100% { transform: scaleY(1); } }
@keyframes letter { 0%, 40% { transform: translateY(0); } 55%, 88% { transform: translateY(-34px); } 98%, 100% { transform: translateY(0); } }
@keyframes lockf { 0%, 38% { opacity: 1; transform: scale(1); } 46% { opacity: 0; transform: scale(1.6); } 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes envfloat { 50% { translate: 0 -4px; } }
.env-14 { text-align: center; margin-top: 14px; }
.env-plus { position: absolute; left: 50%; top: 40%; width: 0; }
.slide .env-row, .slide .env-14 { transition: opacity .5s; }

/* slide 3: levels */
.lv-card { padding: 18px 16px 14px; }
.lv-big { display: flex; align-items: center; gap: 14px; }
.lv-big b { font-size: 26px; font-weight: 700; line-height: 1.05; display: block; }
.hex.xl { width: 64px; height: 70px; filter: drop-shadow(0 0 16px rgba(255,178,31,.5)); }
.slide.active .hex.xl { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); } }
.lv-steps { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 18px; }
.lv-steps i { flex: 1; height: 2px; margin-top: 12px; background: var(--line2); }
.lv-steps .st { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .28; transform: scale(.9); }
.lv-steps .st .hex { width: 26px; height: 29px; }
.lv-steps .st span { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hint); }
.slide.active .lv-steps .st { animation: lit .6s var(--d) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes lit { to { opacity: 1; transform: scale(1); } }

/* direct reviews */
.review.unc { opacity: .72; border-style: dashed; }
.unc-box { margin-top: 22px; background: var(--surface); border: 1px dashed var(--line2); border-radius: 16px; padding: 12px 14px; }
.unc-box summary { cursor: pointer; font-weight: 600; color: var(--hint); list-style: none; display: flex; justify-content: space-between; }
.unc-box summary::after { content: '+'; font-family: var(--f-disp); font-size: 20px; line-height: 1; }
.unc-box[open] summary::after { content: '–'; }
.pcard.direct::before { background: var(--accent-2); opacity: .7; }
.pend { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pend .lockrow { display: flex; align-items: center; gap: 8px; color: var(--accent-2); }
.pend-banner { display: block; width: 100%; text-align: left; margin-top: 14px; font-weight: 600; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hint) 50%), linear-gradient(135deg, var(--hint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=time].inp { min-width: 0; }

.btn.wrap { height: auto; min-height: 46px; padding: 9px 12px; font-size: 14.5px; letter-spacing: .03em; line-height: 1.15; text-align: center; }
.toast { bottom: auto; top: calc(var(--sa-t) + var(--tg-top, 0px) + 12px); transform: translate(-50%, -20px); }
.toast.show { transform: translate(-50%, 0); }
input[type=time].inp { width: 150px !important; padding: 12px 10px; }
.seg button { white-space: nowrap; padding: 8px 12px; }

/* ===== companies / stories / profile v2 ===== */
.tabbar { width: calc(100% - 20px); max-width: 500px; justify-content: space-between; gap: 2px; }
.tabbar button { flex: 1; min-width: 0; padding: 7px 2px 6px; font-size: 9.5px; letter-spacing: .02em; }
.tabbar button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar svg { width: 21px; height: 21px; }
.topbar .brand { min-width: 0; white-space: nowrap; font-size: 19px; }
.topbar .brand > div { min-width: 0; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; }
.topbar .iconbtn + .brand small { display: none; }
.topbar .iconbtn + .brand { font-size: 16px; letter-spacing: .06em; }
button.stat { display: block; width: 100%; cursor: pointer; transition: transform .12s, border-color .2s; color: inherit; }
button.stat:active { transform: scale(.95); border-color: var(--accent); }
.logo { flex: none; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; color: #fff; letter-spacing: .02em; object-fit: cover; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
.logo.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.logo.md { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }
.logo.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 28px; box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.2); }
.vbadge { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--good); color: #fff; margin-left: 6px; flex: none; }
.vbadge svg { width: 11px; height: 11px; }
.addco { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); }
.addco > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); flex: none; }
.addco b { display: block; font-size: 16px; } .addco small { color: var(--hint); font-size: 13px; }
.chk { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; margin-top: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.chk i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line2); display: grid; place-items: center; color: var(--accent-ink); flex: none; transition: all .15s; }
.chk i svg { width: 14px; height: 14px; }
.chk.on i { background: var(--accent); border-color: var(--accent); }
.chosen { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--accent); }
.chosen b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chosen .iconbtn { width: 32px; height: 32px; }
.cres { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.cres-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.cres-row span b { display: block; font-weight: 600; } .cres-row small { color: var(--hint); font-size: 12.5px; }
.cres-row.add { color: var(--accent); font-weight: 600; border-style: dashed; }
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line2); border-radius: 2px; }
.tl-i { position: relative; padding: 0 0 18px; }
.tl-dot { position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface3); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--line2); }
.tl-dot.ok { background: var(--good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 45%, transparent); }
.tl-b { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 13px; }
.tl-co { font-weight: 700; font-size: 16.5px; text-align: left; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line2); color: var(--hint); font-size: 14px; }
.note svg { flex: none; color: var(--accent-2); width: 18px; height: 18px; }
.review.mine { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--surface2)); border-left: 3px solid var(--accent); }
.reply b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); } .reply p { font-size: 14.5px; margin-top: 3px; }
.warnrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.paidopt { display: block; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); transition: all .15s; }
.paidopt b { display: block; font-family: var(--f-disp); font-size: 21px; text-transform: uppercase; } .paidopt span { color: var(--hint); font-size: 13.5px; }
.paidopt.on.good { border-color: var(--good); background: color-mix(in srgb, var(--good) 11%, var(--surface)); } .paidopt.on.warn { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 11%, var(--surface)); } .paidopt.on.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, var(--surface)); }
.lvopt { display: block; position: relative; width: 100%; text-align: left; padding: 11px 40px 11px 13px; border-radius: 14px; background: var(--surface2); border: 2px solid var(--line); }
.lvopt b { display: block; } .lvopt span { color: var(--hint); font-size: 13px; }
.lvopt i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.lvopt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface2)); }
.ladder { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.ladder .hex { width: 30px; height: 33px; flex: none; } .ladder b { display: block; } .ladder span { color: var(--hint); font-size: 13px; }
.ladder em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: 3px 8px; }
.ladder.on { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; }
.story { padding: 15px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.story.pend { border-style: dashed; }
.story h3 { font-size: 24px; font-weight: 700; line-height: 1.1; margin: 6px 0 8px; }
.story p { font-size: 15.5px; line-height: 1.45; }
.reacts { display: flex; gap: 8px; margin-top: 14px; }
.react { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 18px; transition: transform .12s; }
.react b { font-size: 14px; font-family: var(--f-disp); min-width: 6px; color: var(--hint); } .react:active { transform: scale(.9); }
.react.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface2)); } .react.on b { color: var(--accent); }
.spark { width: 100%; height: 56px; display: block; margin-top: 6px; }
.hero .admbtn { position: absolute; right: 12px; top: 12px; z-index: 3; width: 34px; height: 34px; font-size: 20px; line-height: 1; letter-spacing: 1px; }
.hero-head > div { padding-right: 30px; }
.review .revmenu, .row .revmenu { width: 30px; height: 30px; font-size: 18px; letter-spacing: 1px; }
.review > .revmenu { position: absolute; right: 8px; top: 8px; z-index: 2; }
.review.hasadm > .top { padding-right: 34px; }

/* шапка: две строки бренда без обрезки */
.topbar .brand > div { display: flex; flex-direction: column; gap: 2px; line-height: 1; overflow: visible; }
.topbar .brand small { margin-top: 0; line-height: 1; font-size: 11px; }
.topbar { min-height: 42px; }

/* ---- веб-версия ---- */
.foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; margin: 28px 0 8px; font-size: 12.5px; color: var(--hint); }
.foot a { color: var(--hint); text-decoration: underline; text-underline-offset: 3px; }
.seg.mini button { padding: 4px 9px; font-size: 11.5px; }
.btn.signin { width: auto; padding: 8px 16px; min-height: 0; font-size: 14px; }
.btn.fbbtn { background: #1877f2; color: #fff; }
.iconbtn.bell { position: relative; }
.iconbtn.bell .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 10.5px/16px var(--f-body, inherit); font-style: normal; text-align: center; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .06em; text-align: center; user-select: all; }
.row.wrapr { flex-wrap: wrap; }
@media (min-width: 900px) {
  #app, .cta-bar { max-width: 600px; }
  .tabbar { max-width: 580px; }
  .sheet { max-width: 560px; border-radius: 26px; margin-bottom: 4vh; }
  .sheet-wrap { align-items: center; }
}
a.btn { text-decoration: none; display: flex; align-items: center; justify-content: center; text-align: center; }
.sorts { flex-wrap: wrap; gap: 8px 12px; }
.tgw { display: flex; justify-content: center; min-height: 48px; }
.tgw .tgph { width: 100%; }
.btn.soon { opacity: .5; }
.sheet .stack { display: grid; gap: 10px; }

/* ---------- этап 2: фото, статус работы, контакты, плюсики, упоминания ---------- */
.av { position: relative; overflow: visible; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av.s22 { width: 24px; height: 24px; font-size: 10px; }
.av.job { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--good); }
.hero .av.job { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--good); }
.avs .av.job { box-shadow: none; }
.avs .av.s22 { margin-left: -7px; border: 2px solid var(--surface); }
.hero .cover { position: absolute !important; inset: 0 0 auto 0; height: 128px; background-size: cover; background-position: center; z-index: 0; }
.hero .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), var(--surface2) 96%); }
.hero.hascover::before { display: none; }
.hero.hascover .hero-head { margin-top: 74px; }
.wspill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px 3px 8px; border-radius: 99px; color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent); border: 1px solid color-mix(in srgb, var(--good) 45%, transparent); margin-bottom: 8px; }
.wspill::before, .chip.job .jdot { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 28%, transparent); }
.chip.job { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.chip.job .jdot { display: inline-block; }
.chip.job.on { background: var(--good); color: #04180f; border-color: var(--good); }
.chip.job.on .jdot { background: #04180f; box-shadow: none; }
.wsmini { color: var(--good); font-weight: 600; }
.sorts select { max-width: 46%; min-width: 0; text-overflow: ellipsis; }
.sorts > span { flex: 1 1 40%; min-width: 0; white-space: nowrap; }
.about p { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.skill { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.skill .sk-n { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15.5px; }
.skill .sk-c { font-size: 13px; color: var(--hint); white-space: nowrap; }
.skill .sk-c b { color: var(--text); font-family: var(--f-disp); font-size: 17px; }
.skill .sk-c.plus { color: var(--accent); font-weight: 700; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 8px; padding: 1px 8px; }
.crow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.crow:last-child { border-bottom: 0; }
.crow .ci { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface3); font-size: 15px; flex: none; font-weight: 700; color: var(--accent); }
.crow.lock .ci { color: var(--hint); }
.crow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crow .t b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--hint); font-weight: 700; }
.crow .t span { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; }
.crow.lock .t span { color: var(--hint); font-size: 14px; }
.cert { display: flex; gap: 12px; align-items: center; }
.cert .ct { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cert .ct b { font-size: 15.5px; }
.cert .ct span { font-size: 13px; color: var(--hint); }
.cthumb { flex: none; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.cthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wsopt { padding: 11px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--hint); text-align: center; line-height: 1.2; }
.wsopt.on { color: var(--good); border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.wsopt[data-v="none"] { grid-column: 1 / -1; }
.pe-photo .cover-edit { height: 96px; align-items: flex-end !important; justify-content: flex-end; border-radius: 14px; background: linear-gradient(135deg, var(--surface3), var(--surface2)); background-size: cover; background-position: center; display: flex; align-items: flex-start; gap: 8px; padding: 10px; }
.select.vis, .inp.vis { width: 42%; flex: none; padding-left: 10px; padding-right: 6px; font-size: 14px; }
.field.twoc { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.mchip { display: inline; padding: 0 7px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mchip.anon { color: var(--hint); background: var(--surface3); font-weight: 500; }
.mdrop { position: relative; z-index: 20; margin: 8px 0 4px; background: var(--surface2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mdrop[hidden] { display: none; }
.mopt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mopt:last-child { border-bottom: 0; }
.mopt.add { color: var(--accent); font-weight: 600; }
.mhint { padding: 10px 12px; font-size: 13px; color: var(--hint); }
.tag.fb { background: color-mix(in srgb, #4f8cff 18%, transparent); color: #6fa2ff; text-transform: none; letter-spacing: 0; }

/* кошелёк BuildRight */
.bwrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.bwrow:last-child { border-bottom: 0; }
.bwrow .ct { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bwrow .ct b { font-size: 15px; }
.bwrow .ct span { font-size: 12.5px; color: var(--hint); }
.bwqr { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.bwqrimg { flex: none; width: 96px; height: 96px; background: #fff; padding: 6px; border-radius: 10px; }
.bwqrimg svg { width: 100%; height: 100%; display: block; }

/* ===== Этап 3: Сообщество ===== */
.chips.sections { padding-top: 2px; }
.chips.sections .chip { padding: 8px 14px; }
.chips.subtags { padding-top: 8px; }
.soonpill { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 6px; background: var(--surface3); color: var(--hint); }
.chip.on .soonpill { background: rgba(0,0,0,.18); color: inherit; }
.rules { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent-2); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--hint); line-height: 1.4; }
.rules b { color: var(--text); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--f-disp); font-weight: 600; }
.empty.jobs { margin-top: 18px; border: 1px dashed var(--line2); border-radius: 20px; }
.topic { display: flex; flex-direction: column; gap: 7px; width: 100%; text-align: left; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .14s, background .2s; }
.topic:active { transform: scale(.987); background: var(--surface2); }
.topic.pend { border-style: dashed; }
.tp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-title { font-weight: 700; font-size: 17px; line-height: 1.22; color: var(--text); }
.tp-snip { font-size: 14px; line-height: 1.38; color: var(--hint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hint); margin-top: 2px; }
.tp-meta .who { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; }
.tp-meta .sp, .reacts .sp { flex: 1; }
.tp-meta .cnt { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.secpill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 8px; background: var(--surface3); color: var(--text); }
.secpill.sec-tech { background: color-mix(in srgb, #4f8cff 18%, transparent); color: #6fa2ff; }
.secpill.sec-company { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.secpill.sec-stories { background: color-mix(in srgb, #b07cff 18%, transparent); color: #b790ff; }
.secpill.sec-general { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
:root[data-theme="light"] .secpill.sec-tech { color: #2c62c9; } :root[data-theme="light"] .secpill.sec-stories { color: #7b45d6; }
.hp { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 16%, transparent); vertical-align: middle; white-space: nowrap; }
.tp-head { display: flex; align-items: center; margin-bottom: 10px; }
.tp-h { font-family: var(--f-disp); font-size: 29px; line-height: 1.08; font-weight: 700; letter-spacing: .005em; }
.tp-auth { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 14px; }
.authbtn { display: inline-flex; align-items: center; gap: 9px; text-align: left; min-width: 0; }
.authbtn b { font-weight: 600; font-size: 14.5px; }
.tp-text { font-size: 16px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.tp-photo { display: block; width: 100%; border-radius: 14px; margin-top: 12px; border: 1px solid var(--line); }
.note.warnbox { display: flex; gap: 10px; padding: 11px 13px; border-radius: 13px; background: color-mix(in srgb, var(--accent-2) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent); font-size: 13.5px; margin-bottom: 12px; }
.note.warnbox.bad { background: color-mix(in srgb, var(--bad) 11%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.note.warnbox svg { flex: none; color: var(--accent-2); }
.lnk { font-size: 13px; font-weight: 600; color: var(--hint); }
.lnk.best { color: var(--good); } .lnk.dim { font-weight: 500; opacity: .8; }
.reacts .lnk { margin-right: 4px; text-decoration: underline; font-weight: 500; }
.sec h3 .live { margin-left: auto; font-size: 10.5px; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 5px; color: var(--good); order: 3; }
.sec h3 .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.cmlist { display: flex; flex-direction: column; gap: 10px; }
.cm { padding: 12px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 80px; }
.cm.best { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.cm.pend { border-style: dashed; opacity: .85; }
.cm.hid { color: var(--hint); font-size: 13px; }
.cm.nested { background: var(--surface2); padding: 10px 11px; border-radius: 13px; }
.cm-h { display: flex; align-items: center; gap: 8px; }
.cm-h .when { font-size: 12px; }
.cm-t { margin-top: 8px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.cm-a { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; }
.cm-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.plus { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--hint); background: var(--surface2); border: 1px solid var(--line); }
.nested .plus { background: var(--surface); }
.plus b { font-family: var(--f-disp); font-size: 14px; }
.plus.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.plus:disabled { opacity: .5; cursor: default; }
.repbadge { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; max-width: 520px; margin: 0 auto; padding: 10px 14px calc(var(--sa-b) + 10px); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.composer .btn { width: 100%; }
.cmrow { display: flex; align-items: flex-end; gap: 8px; }
.cmrow textarea { flex: 1; min-height: 42px; max-height: 130px; resize: none; padding: 10px 14px; border-radius: 21px; background: var(--surface); border: 1px solid var(--line2); outline: 0; font-size: 15px; line-height: 1.3; }
.cmrow textarea:focus { border-color: var(--accent); }
.send { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface3); color: var(--hint); transition: all .15s; }
.send.ready { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.replyto { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--hint); padding: 0 6px 8px; }
.replyto[hidden] { display: none; }
.view.topicview { padding-bottom: calc(var(--sa-b) + 130px); }
.mchip.person { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.cmlist .mdrop, .composer .mdrop { position: absolute; left: 14px; right: 14px; bottom: 100%; margin: 0 0 6px; }

/* ===== цепочка подряда ===== */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 0 4px; font-size: 13px; }
.chain i { font-style: normal; color: var(--hint); }
.chainc { padding: 2px 9px; border-radius: 8px; background: var(--surface3); font-weight: 600; font-size: 12.5px; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.chainc small { font-size: 11px; color: var(--accent-2); font-weight: 700; }
.chain .chainc:first-child { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.chainbox .chainrows { display: flex; flex-direction: column; gap: 8px; }
.chainrow { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.chainrow .crl { font-size: 12.5px; color: var(--hint); font-weight: 600; }
.chainrow .chosen { display: flex; align-items: center; gap: 10px; }
.chainrow .chosen b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chadd { text-align: left; font-weight: 600; font-size: 14.5px; color: var(--accent); padding: 4px 0; }
.chainbox label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--hint); margin-left: 4px; }
.blame { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow label { font-size: 14.5px; font-weight: 500; }
.mstars { display: flex; gap: 2px; }
.mstars button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--surface3); }
.mstars button svg { width: 24px; height: 24px; }
.mstars button.on { color: var(--accent-2); }
.tag { white-space: nowrap; }
.cm-h .authbtn > span:not(.av) { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 0; }
.cm-h .authbtn .hp { margin-left: 0; }
.cm-h .authbtn:has(.hp) > span:not(.av) { flex-direction: column; align-items: flex-start; }
