/* Colors: black and white base, blue secondary, gold accent (about 10%: logo, main buttons, stars). */
:root {
  --canvas: #0c0c0f; --s1: #16161b; --s2: #1e1e24; --s3: #2a2a32;
  --line: #2c2c34; --line-strong: #40404b;
  --ink: #ffffff; --ink-muted: #e0e0e6; --ink-sub: #a6a6b1;
  --secondary: #7ea6ff; --secondary-glow: #7ea6ff1f; --secondary-border: #7ea6ff4d;
  --accent: #f5b83d; --on-accent: #1a1405; --accent-soft: #f5b83d1f; --accent-ink: #f5b83d;
  --green: #4ade80; --yellow: #fbbf24; --red: #f87171; --glass: #16161bf7;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --canvas: #f6f6f8; --s1: #ffffff; --s2: #f1f1f4; --s3: #e6e6ea;
  --line: #e3e3e8; --line-strong: #cfcfd6;
  --ink: #0b0b0e; --ink-muted: #2e2e36; --ink-sub: #62626c;
  --secondary: #2f5fe0; --secondary-glow: #2f5fe014; --secondary-border: #2f5fe04d;
  --accent-soft: #f5b83d2e; --accent-ink: #8f6200;
  --green: #15803d; --yellow: #a16207; --red: #c81e1e; --glass: #fffffff7;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--canvas); }
.board-cols { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.5 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.sub { color: var(--ink-sub); }
.tiny { font-size: 12px; color: var(--ink-sub); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 17px; height: 17px; fill: var(--canvas); } .sidebar .brand-mark svg { fill: var(--s1); } /* logo: gold circle, star in the color behind it, never a yellow tile */
.small-mark { margin-top: 24px; color: var(--ink-sub); font-size: 13px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: filter .12s, transform .12s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--s2); color: var(--ink-muted); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; transition: border-color .12s, color .12s, transform .12s; }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:active { transform: scale(.97); }
.input { width: 100%; min-height: 42px; padding: 8px 12px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px var(--secondary-glow); }
.input::placeholder { color: var(--ink-sub); opacity: .7; }
textarea.input { resize: vertical; min-height: 96px; }
.label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-sub); }
.form { display: grid; gap: 14px; }
.err { color: var(--red); min-height: 18px; font-size: 13px; }
.nudge { animation: nudge .42s cubic-bezier(.36,0,.16,1); }
@keyframes nudge { 0%,100%{transform:translateX(0)} 15%{transform:translateX(-4px)} 35%{transform:translateX(3.5px)} 55%{transform:translateX(-2.5px)} 75%{transform:translateX(1.5px)} }

/* login */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(60% 45% at 50% 40%, #6f9cff12, #0000 70%), var(--canvas); }
.login-card { width: min(360px, 100%); padding: 34px 28px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 20px 50px #00000080; }
.login-logo { width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.login-logo svg { width: 30px; height: 30px; fill: var(--s1); }
.login-card h1 { text-align: center; font-size: 20px; font-weight: 700; }
.login-card > p { text-align: center; color: var(--ink-sub); margin: 4px 0 24px; font-size: 13px; }

/* shell */
.shell { display: flex; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; width: 216px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--s1); border-right: 1px solid var(--line); }
.sidebar .brand { padding: 6px 10px 18px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-left: 2px solid transparent; border-radius: var(--r-sm); background: none; color: var(--ink-sub); font-weight: 500; font-size: 14px; text-align: left; cursor: pointer; transition: background .12s, color .12s; }
.nav:hover { background: #ffffff0d; color: var(--ink-muted); }
.nav[aria-current="page"] { background: #ffffff17; color: #fff; font-weight: 600; border-left-color: var(--secondary); }
.nav-count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--secondary); color: #0a0a0b; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.side-foot { margin-top: auto; }
.main { flex: 1; min-width: 0; padding: 26px 32px 48px; }
.page { max-width: 1040px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--ink-sub); font-size: 13px; }
.m-top { display: none; }
.tabs { display: none; }
.me-tabs { position: fixed; left: 0; right: 0; bottom: 0; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--glass); border-top: 1px solid var(--line); z-index: 10; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; margin-bottom: 16px; border: 1px solid var(--secondary-border); border-radius: var(--r-md); background: var(--secondary-glow); color: var(--secondary); font-size: 13px; }
.banner button { min-height: 32px; border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 4px #0000004d; }
.kpi span { display: block; color: var(--ink-sub); font-size: 12px; font-weight: 500; }
.kpi b { display: block; margin-top: 6px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 4px; color: var(--ink-sub); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; align-items: start; }
.stack { display: grid; gap: 12px; min-width: 0; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 3px #00000059; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-body { padding: 0 16px 16px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 16px; border-top: 1px solid var(--line); }
button.row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; transition: background .12s; }
button.row:hover { background: #ffffff08; }
.rank { width: 20px; flex: none; color: var(--ink-sub); font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.grow b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow small { display: block; color: var(--ink-sub); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap small, .wrap b { white-space: normal; }
.num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.num small { display: block; color: var(--ink-sub); font-size: 12px; font-weight: 400; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--s3); color: var(--ink-muted); font-size: 12px; font-weight: 500; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { color: var(--green); background: #4ade8014; }
.badge.warn { color: var(--yellow); background: #fbbf2414; }
.badge.bad { color: var(--red); background: #f8717114; }
.badge.plain::before { display: none; }
.dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 600; }

/* goal */
.goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.goal-top b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.track { height: 8px; margin-top: 10px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: var(--secondary); transition: width .5s cubic-bezier(.23,1,.32,1); }

/* chart: one series, thin bars */
.chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 132px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: none; cursor: default; }
.bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--secondary); opacity: .85; transition: opacity .12s; }
.bar:hover i, .bar:focus-visible i { opacity: 1; }
.axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--ink-sub); font-size: 11px; }
.tip { position: absolute; bottom: 100%; transform: translateX(-50%); padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--s3); font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 3; }
details.table { margin-top: 10px; color: var(--ink-sub); font-size: 12px; }
details.table summary { cursor: pointer; }
details.table table { width: 100%; margin-top: 6px; border-collapse: collapse; }
details.table td { padding: 2px 0; } details.table td:last-child { text-align: right; }

/* settings */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 10px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.toggle small { display: block; color: var(--ink-sub); font-size: 12px; }
.switch { appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 99px; background: var(--s3); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s cubic-bezier(.23,1,.32,1); }
.switch:checked { background: var(--secondary); }
.switch:checked::after { transform: translateX(18px); background: #fff; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px; border-top: 1px solid var(--line); }
.check input { width: 18px; height: 18px; accent-color: var(--secondary); }
.check-mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--s3); color: var(--ink-sub); font-size: 11px; }
.check-mark.on { background: #4ade8022; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 4px 16px 14px; }
.msg { align-self: flex-start; max-width: 82%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--secondary-glow); border-color: var(--secondary-border); }
.msg time { display: block; margin-top: 2px; color: var(--ink-sub); font-size: 11px; }
.send { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.send input { flex: 1; min-width: 0; }
.toast { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: min(340px, calc(100% - 32px)); padding: 12px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--secondary); border-radius: var(--r-md); background: var(--s2); box-shadow: 0 10px 30px #00000080; z-index: 30; animation: drop .25s cubic-bezier(.23,1,.32,1); }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--ink-sub); font-size: 13px; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.secret { padding: 12px 14px; border: 1px solid var(--secondary-border); border-radius: var(--r-md); background: var(--secondary-glow); margin-bottom: 12px; }
.secret b { font-size: 20px; letter-spacing: .08em; }

/* employee + board */
.emp, .board { max-width: 420px; min-height: 100dvh; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 16px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.board { align-items: stretch; text-align: left; }
.board .list { list-style: none; padding: 0; margin: 8px 0 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.board .row:first-child { border-top: 0; }
.board .row-main { flex: 1; } .board .row-main b { display: block; font-weight: 500; } .board .row-main small, .board .row-num small { display: block; color: var(--ink-sub); font-size: 12px; }
.board .row-num { text-align: right; font-weight: 600; }
.muted { color: var(--ink-sub); } .small { font-size: 12px; }
.emp-biz { color: var(--ink-sub); font-size: 13px; }
.emp-qr { padding: 14px; margin: 10px 0 4px; border-radius: 20px; background: #fff; line-height: 0; }
.emp-qr img { width: min(280px, 72vw); height: auto; }
.btn-raised { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--s2); font-weight: 500; text-decoration: none; }
.emp-help { width: 100%; margin-top: 8px; color: var(--ink-sub); font-size: 13px; text-align: left; }
.emp-help summary { min-height: 32px; text-align: center; cursor: pointer; }

/* customer page: carries the client's brand color */
body:has(.c-page) { background: #f4f3f0; }
.c-page { --brand: #333; max-width: 460px; min-height: 100dvh; margin: 0 auto; color: #18181b; background: #f4f3f0; }
.c-hero { position: relative; padding: calc(40px + env(safe-area-inset-top)) 20px 72px; text-align: center; color: #fff; background: radial-gradient(90% 90% at 50% -10%, #ffffff33, #0000 60%), var(--brand); }
.c-logo { width: 72px; height: 72px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 20px; background: #fff; color: var(--brand); font-size: 34px; font-weight: 800; box-shadow: 0 8px 22px #00000033; }
.c-hero h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.c-rating { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 8px; font-size: 13px; }
.c-stars { display: inline-flex; gap: 2px; } .c-stars svg { width: 17px; height: 17px; fill: #fbbf24; }
.c-card { position: relative; margin: -48px 16px 24px; padding: 24px 20px; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px #0000001f; text-align: center; animation: drop .35s cubic-bezier(.23,1,.32,1); }
.c-eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; }
.c-card h2 { margin-top: 4px; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.c-sub { margin-top: 6px; color: #52525b; }
.c-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 18px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px #00000029; transition: transform .12s; }
.c-cta:active, .c-choice:active { transform: scale(.98); }
.c-cta .c-g { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: #fff; }
.c-g { display: grid; place-items: center; } .c-g svg { width: 100%; height: 100%; }
.c-mention { margin-top: 16px; color: #71717a; font-size: 13px; }
.c-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.c-hints li { padding: 5px 11px; border-radius: 99px; background: #f4f3f0; color: #3f3f46; font-size: 13px; }
.c-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.c-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 148px; padding: 18px 10px; border: 1.5px solid #e4e4e7; border-radius: 16px; color: #18181b; text-decoration: none; transition: transform .12s, border-color .12s; }
.c-choice:hover { border-color: var(--brand); }
.c-choice .c-g { width: 38px; height: 38px; margin-bottom: 6px; }
.c-note { border-radius: 10px; background: #f4f3f0; color: var(--brand); font-size: 20px; }
.c-choice b { font-size: 16px; font-weight: 700; }
.c-choice small { color: #71717a; font-size: 12.5px; line-height: 1.35; }
.c-form { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.c-form label { font-weight: 600; font-size: 14px; }
.c-form textarea { width: 100%; padding: 12px; border: 1.5px solid #e4e4e7; border-radius: 12px; background: #fff; color: #18181b; }
.c-form .c-cta { margin-top: 6px; }
.c-alt { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #52525b; }
.c-check { width: 56px; height: 56px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 26px; }

/* HQ depth */
.link { min-height: 32px; border: 0; background: none; color: var(--secondary); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.empty { padding: 4px 16px 16px; color: var(--ink-sub); }
.tick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tick input { width: 18px; height: 18px; flex: none; accent-color: var(--secondary); }
.goal-card { padding: 14px 16px; margin-bottom: 12px; }
.goal-card .track { margin-top: 8px; }
.back { margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--s2); border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--ink-sub); font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); }
.board-cols { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { flex: 0 0 216px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); scroll-snap-align: start; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; font-weight: 600; font-size: 13px; }
.lead { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--s2); text-align: left; cursor: pointer; transition: border-color .12s, transform .12s; }
.lead:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.lead b { font-weight: 600; font-size: 13.5px; }
.lead small { color: var(--ink-sub); font-size: 12px; }
.lead .badge { margin-top: 4px; }
.dial-card { padding: 20px; }
.dial-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; }
.dial-btn { width: 100%; min-height: 56px; margin-top: 16px; font-size: 18px; }
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.script { white-space: normal !important; font-size: 13.5px !important; line-height: 1.45; margin-top: 2px; color: var(--ink-muted) !important; }
.report { display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 12px; border-left: 3px solid var(--secondary); }
.report span { color: var(--ink-sub); font-size: 13px; }
.hero-card { padding: 20px; }
.hero-card h2 { font-size: 18px; font-weight: 700; }
.slim { width: 150px; min-height: 36px; padding: 4px 8px; }
.logo-row { display: flex; align-items: center; gap: 14px; }
.logo-prev { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #fff; }
.m-more { display: none; }
.c-logo.has-img { padding: 6px; overflow: hidden; }
.c-logo.has-img img { width: 100%; height: 100%; object-fit: contain; }
.c-tag { margin-top: 4px; font-size: 14px; opacity: .92; }
.c-form input, .c-form select { width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid #e4e4e7; border-radius: 12px; background: #fff; color: #18181b; }

/* public team page */
body:has(.b-page) { background: #f4f3f0; }
.b-page { --brand: #333; max-width: 560px; min-height: 100dvh; margin: 0 auto; color: #18181b; }
.b-hero { padding: calc(36px + env(safe-area-inset-top)) 20px 76px; text-align: center; color: #fff; background: radial-gradient(90% 90% at 50% -10%, #ffffff33, #0000 60%), var(--brand); }
.b-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.b-hero p { opacity: .9; font-size: 14px; }
.b-card { margin: -52px 16px 16px; padding: 20px 16px; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px #0000001f; }
.b-total { text-align: center; margin-bottom: 18px; }
.b-total b { display: block; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.b-total span { color: #52525b; font-size: 14px; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: end; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.pod-avatar { width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 20px; font-weight: 700; }
.pod-1 .pod-avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px #f5b83d; }
.pod b { font-size: 14px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { color: #71717a; font-size: 12px; }
.pod-step { width: 100%; margin-top: 8px; padding-top: 10px; border-radius: 10px 10px 0 0; background: #f4f3f0; color: #52525b; font-weight: 800; font-size: 18px; }
.pod-1 .pod-step { height: 76px; background: #f5b83d; color: #1a1405; }
.pod-2 .pod-step { height: 54px; }
.pod-3 .pod-step { height: 40px; }
.b-list { list-style: none; margin: 16px 0 0; padding: 0; }
.b-list li { display: flex; gap: 12px; align-items: center; min-height: 46px; border-top: 1px solid #f0efec; }
.b-list span { width: 20px; color: #71717a; }
.b-list b { flex: 1; font-weight: 600; }
.b-list em { font-style: normal; font-weight: 700; }
.b-foot { padding: 8px 0 28px; text-align: center; color: #71717a; font-size: 12px; }

.danger { color: var(--red); }
.kpi-text { font-size: 17px; font-weight: 600; line-height: 31px; letter-spacing: 0; }
.search { max-width: 320px; margin-bottom: 12px; }
.lead[hidden] { display: none; }
.seg button { white-space: nowrap; }
/* team member app */
main.me { max-width: 460px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom)); color-scheme: dark; }
.me-qr { min-height: calc(100dvh - 130px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.me-qr .emp-qr img { width: min(320px, 80vw); height: auto; }
.me-name { margin-top: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.me-row { background: var(--secondary-glow); }
.tabs.me-tabs { display: flex; }
.me-tabs .nav { flex: 1; justify-content: center; min-height: 46px; padding: 0 2px; border-left: 0; font-size: 13px; text-decoration: none; }

.wiz { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: calc(16px + env(safe-area-inset-top)) 16px 24px; display: flex; flex-direction: column; gap: 12px; color-scheme: dark; }
.wiz-top { display: flex; justify-content: space-between; align-items: center; }
.wiz-card { padding: 22px 20px; }
.wiz-card h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.wiz-body { margin-top: 18px; }
.wiz-list .row { min-height: 44px; padding: 6px 2px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 8px; }
.wiz-prev { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--r-lg); pointer-events: none; }
.preview-card { position: sticky; top: 20px; overflow: hidden; }
.phone { display: block; width: calc(100% - 32px); height: 620px; margin: 0 16px 16px; border: 1px solid var(--line); border-radius: 22px; pointer-events: none; background: #f4f3f0; }
.code { letter-spacing: .08em; color: var(--ink); }

.tour { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: #000000b3; }
.tour-card { width: min(380px, 100%); padding: 22px 20px; background: var(--s1); border: 1px solid var(--line-strong); border-radius: var(--r-xl); color: var(--ink); animation: drop .25s cubic-bezier(.23,1,.32,1); }
.tour-card h2 { margin: 4px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tour-card .wiz-nav { margin-top: 18px; }
/* public site */
.site { max-width: 960px; margin: 0 auto; padding: 16px 16px 48px; color-scheme: dark; }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 8px; }
.site-hero { padding: 48px 0 36px; text-align: center; }
.site-hero h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.site-hero p { max-width: 520px; margin: 14px auto 22px; color: var(--ink-muted); font-size: 17px; }
.site h2 { margin: 36px 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 .card, .plan { padding: 18px; }
.steps3 b { display: block; margin-bottom: 4px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan h3 { font-size: 16px; font-weight: 600; }
.plan .price { margin: 6px 0 2px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan ul { margin: 12px 0 16px; padding: 0; list-style: none; color: var(--ink-muted); }
.plan li { padding: 3px 0; }
.plan .btn { width: 100%; }
.book { max-width: 480px; margin: 0 auto; padding: 20px; }
.signup { max-width: 440px; margin: 24px auto; padding: 22px 20px; }
.seg-wide { display: flex; } .seg-wide button { flex: 1; }
@media (max-width: 700px) { .steps3, .plans { grid-template-columns: 1fr; } }

.split { display: flex; gap: 2px; height: 34px; border-radius: 8px; overflow: hidden; }
.split i { display: block; }
.seg-a { background: #52525b; } .seg-b { background: #a1a1aa; } .seg-c { background: var(--secondary); } .seg-d { background: #3f6bd1; }
.split-key { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.split-key div { display: grid; grid-template-columns: 12px 1fr; align-items: center; column-gap: 6px; }
.split-key b { grid-column: 2; font-size: 18px; font-weight: 700; }
.key { width: 10px; height: 10px; border-radius: 3px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.flow-step { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--s2); }
.flow-step b { display: block; font-size: 17px; font-weight: 700; }
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; align-items: start; }

@media (max-width: 860px) {
  .m-more { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; }
  .m-more .nav { flex: none; width: auto; min-height: 34px; border-left: 0; background: var(--s2); }
  .page-head { flex-wrap: wrap; }
  .col { flex-basis: 78%; }
  .road { grid-template-columns: 1fr; }
  .split-key { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .preview-card { position: static; }
  .phone { height: 520px; }
}

@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { padding: calc(10px + env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom)); }
  .m-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--glass); border-top: 1px solid var(--line); z-index: 10; }
  .tabs .nav { flex: 1; justify-content: center; min-height: 46px; padding: 0 2px; border-left: 0; font-size: 13px; }
  .tabs .nav-count { min-width: 16px; padding: 0 4px; line-height: 16px; font-size: 10px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 24px; }
  .grid2 { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.c-pw { padding: 2px 0 26px; text-align: center; }
.pw-link { display: inline-flex; align-items: center; gap: 6px; color: #71717a; font-size: 12px; text-decoration: none; }
.pw-link i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: #f5b83d; color: #1a1405; font-size: 9px; font-style: normal; }
.up { color: var(--green); font-size: 13px; font-weight: 650; } .down { color: var(--red); font-size: 13px; font-weight: 650; }
.bd { max-width: 1180px; min-height: 100dvh; margin: 0 auto; padding: 24px 16px 28px; display: grid; align-content: start; gap: 14px; }
.bd-top { display: flex; align-items: center; gap: 14px; } .bd-logo { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--s2); font-size: 24px; font-weight: 700; overflow: hidden; } .bd-logo img { width: 100%; height: 100%; object-fit: contain; } .bd-top h1 { font-size: 26px; font-weight: 750; letter-spacing: -.03em; } .bd-top p { color: var(--ink-sub); }
.arena { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bd .az { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); text-align: center; min-width: 0; } .bd .az span { color: var(--ink-sub); font-size: 13px; } .bd .az b { font-size: 38px; font-weight: 750; letter-spacing: -.03em; } .bd .az em { font-style: normal; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bd .az.win { padding-block: 28px; border-color: var(--accent); background: var(--accent-soft); } .bd .az.win b { font-size: 54px; }
.bd-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); overflow: hidden; } .bd-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-top: 1px solid var(--line); } .bd-list li:first-child { border-top: 0; } .bd-list .pos { width: 22px; font-weight: 700; } .bd-list .nm { flex: 1; min-width: 0; } .bd-list .nm b { display: block; font-weight: 600; } .bd-list small { color: var(--accent-ink); font-size: 12.5px; } .bd-list strong { font-size: 18px; font-weight: 700; }
.bd-foot { text-align: center; padding-top: 8px; }

/* Team portal */
.tm { padding-bottom: 96px; } .tm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; } .tm-top small { display: block; color: var(--ink-sub); } .tm-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--s2); font-weight: 800; overflow: hidden; } .tm-logo img { width: 100%; height: 100%; object-fit: cover; }
.tm-label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-sub); } .tm-big { font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--accent); } .tm-sub { margin-top: 4px; color: var(--ink-sub); }
.tm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0; border-block: 1px solid var(--line); } .tm-stats div { padding: 14px 0; } .tm-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .tm-stats span { font-size: 12.5px; color: var(--ink-sub); }
.tm-earn { margin-bottom: 22px; } .tm-money { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--green); }
.tm-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 2px solid var(--accent); border-radius: 14px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; } .tm-cta.line { background: none; border-color: var(--line-strong); color: var(--ink); }
.tm-board { margin: 0; padding: 0; list-style: none; } .tm-board li { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-top: 1px solid var(--line); } .tm-board .me-row { background: var(--s2); border-radius: 10px; border-color: transparent; } .tm-board span { width: 18px; color: var(--ink-sub); } .tm-board b { flex: 1; font-weight: 600; } .tm-board small { display: block; font-weight: 400; color: var(--ink-sub); } .tm-board strong { font-size: 22px; font-weight: 800; }
.tm-set { display: grid; gap: 22px; } .tm-set input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); color: var(--ink); }
.tm-prize { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
main.me.tm-preview { padding-top: 54px; }
.tm-tip { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--s2, #f3f4f6); } .tm-tip p:last-child { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
