/* Brandt Bot Builder · create.brandtbot.com · website style (black, white, Geist) */
:root{
  --bg:#000; --side:#050505; --panel:#0F0F10; --panel2:#151517; --panel3:#1C1C1F;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.14); --line3:rgba(255,255,255,.24);
  --text:#fff; --soft:#C7C7CC; --muted:#8E8E93; --faint:#6E6E73;
  --ok:#7EE2B0; --ok-soft:rgba(126,226,176,.1); --warn:#F5C97A; --warn-soft:rgba(245,201,122,.1); --bad:#FF8A80; --bad-soft:rgba(255,138,128,.1);
  --font:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r:22px; --r2:16px; --r3:12px;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0; background:#000; color:var(--text); font:400 14.5px/1.5 var(--font); -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%}
body{min-height:100vh; min-height:100dvh}
a{color:#fff}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer}
::selection{background:#fff; color:#000}
:focus-visible{outline:2px solid #fff; outline-offset:2px}
.mono{font-family:var(--mono)}
.muted{color:var(--muted)} .faint{color:var(--faint)} .ok{color:var(--ok)} .warn{color:var(--warn)} .bad{color:var(--bad)}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
svg.i{width:18px; height:18px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
h1,h2,h3,h4{margin:0; font-weight:400; letter-spacing:-.025em; line-height:1.15}
p{margin:0}
.boot{min-height:100dvh; display:grid; place-items:center; color:var(--faint); font-size:13px}

/* ---------- login ---------- */
.lg{position:relative; min-height:100vh; min-height:100dvh; display:grid; grid-template-columns:1fr; overflow:hidden; background:#000}
.lg-bg{position:absolute; inset:0; pointer-events:none; overflow:hidden}
.lg-bg i{position:absolute; display:block}
.lg-beam{left:50%; top:-200px; width:300px; height:1000px; border-radius:50%; filter:blur(36px); background:linear-gradient(180deg, transparent, rgba(255,255,255,.2) 40%, transparent 85%); transform-origin:50% 0}
.lg-beam.a{margin-left:-260px; animation:lgA 9s ease-in-out infinite}
.lg-beam.b{margin-left:-40px; animation:lgB 9s ease-in-out infinite}
.lg-fog{left:-120px; bottom:-160px; width:520px; height:520px; border-radius:50%; background:radial-gradient(closest-side, rgba(255,255,255,.08), transparent); animation:lgF 14s ease-in-out infinite}
.lg-grid{inset:0; background-image:linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size:48px 48px; -webkit-mask-image:radial-gradient(60% 60% at 50% 40%, #000, transparent); mask-image:radial-gradient(60% 60% at 50% 40%, #000, transparent)}
@keyframes lgA{0%,100%{transform:rotate(30deg)} 50%{transform:rotate(20deg) translateX(30px)}}
@keyframes lgB{0%,100%{transform:rotate(-30deg)} 50%{transform:rotate(-20deg) translateX(-30px)}}
@keyframes lgF{50%{transform:translate(80px,-60px) scale(1.2)}}
.lg-side{display:none}
.lg-main{position:relative; z-index:1; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:28px 16px calc(28px + env(safe-area-inset-bottom,0px)); min-height:100dvh}
.lg-top{width:min(440px, 100%); display:flex; align-items:center; justify-content:space-between; margin-bottom:22px}
.word{display:inline-flex; align-items:center; gap:10px; font-size:21px; font-weight:500; letter-spacing:-.04em; color:#fff; text-decoration:none}
.word .mk{width:30px; height:30px; border-radius:9px; background:#fff; color:#000; display:grid; place-items:center}
.word .mk svg{width:16px; height:16px; fill:#000; stroke:none}
.lg-tag{height:28px; padding:0 12px; display:inline-flex; align-items:center; border-radius:999px; border:1px solid var(--line2); font-size:12.5px; color:var(--muted)}
.lg-card{width:min(440px, 100%); padding:28px; border-radius:28px; background:rgba(15,15,16,.86); border:1px solid rgba(255,255,255,.12); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); box-shadow:0 50px 120px -40px rgba(0,0,0,.9); animation:lgIn .6s cubic-bezier(.2,.8,.2,1) both}
@keyframes lgIn{from{opacity:0; transform:translateY(16px) scale(.98)}}
.lg-steps{display:flex; gap:6px; margin-bottom:22px}
.lg-steps i{flex:1; height:3px; border-radius:3px; background:rgba(255,255,255,.12); transition:background .4s}
.lg-steps i.on{background:#fff}
.lg-card h1{font-size:28px; letter-spacing:-.03em}
.lg-card > p{margin:8px 0 22px; color:var(--muted); font-size:14.5px}
.lg-btn{display:flex; align-items:center; justify-content:space-between; width:100%; min-height:54px; margin-top:8px; padding:0 8px 0 22px; border:0; border-radius:999px; background:#fff; color:#000; font-weight:500; font-size:15px; transition:background .2s}
.lg-btn:hover{background:#E5E5EA}
.lg-btn[disabled]{opacity:.55; cursor:wait}
.arr{width:40px; height:40px; border-radius:50%; background:#000; color:#fff; display:grid; place-items:center; flex:0 0 40px}
.arr svg{width:17px; height:17px}
.lg-or{display:flex; align-items:center; gap:12px; margin:16px 0; color:var(--faint); font-size:12px}
.lg-or::before,.lg-or::after{content:""; flex:1; height:1px; background:var(--line)}
.lg-alt{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:50px; border-radius:999px; border:1px solid var(--line2); background:transparent; font-weight:500}
.lg-alt:hover{border-color:var(--line3); background:rgba(255,255,255,.03)}
.lg-alt svg{width:20px; height:20px}
.lg-note{display:flex; gap:10px; align-items:flex-start; margin-top:18px; padding:12px 14px; border-radius:16px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); font-size:12.5px; color:var(--muted)}
.lg-note svg{width:16px; height:16px; margin-top:1px; color:#fff}
.lg-back{display:inline-flex; align-items:center; gap:6px; margin-bottom:16px; padding:0; border:0; background:none; color:var(--muted); font-size:13.5px}
.lg-back:hover{color:#fff}
.lg-who{display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:6px 12px 6px 6px; border-radius:999px; background:rgba(255,255,255,.06); font-size:13px; margin-bottom:18px}
.lg-who i{width:24px; height:24px; flex:0 0 24px; border-radius:50%; background:#fff; color:#000; display:grid; place-items:center; font-style:normal; font-size:11px; font-weight:600}
.lg-who span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.otp{display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:8px; margin:4px 0 6px}
.otp input{width:100%; min-width:0; height:58px; border-radius:16px; background:#000; border:1px solid rgba(255,255,255,.16); text-align:center; font-size:22px; font-family:var(--mono); outline:none}
.otp input:focus{border-color:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.08)}
.lg-timer{font-size:12.5px; color:var(--faint); text-align:center; margin-top:12px}
.lg-timer button{border:0; background:none; color:#fff; padding:0; text-decoration:underline; text-underline-offset:3px}
.lg-foot{margin-top:22px; font-size:12px; color:var(--faint); text-align:center}
.lg-foot a{color:var(--muted)}
.lg-demo{margin-top:12px; padding:10px 12px; border-radius:14px; border:1px dashed rgba(255,255,255,.2); font-size:12.5px; color:var(--soft); text-align:center}
.lg-demo b{font-family:var(--mono); color:#fff; letter-spacing:.12em}
.lg-shake{animation:lgShake .4s}
@keyframes lgShake{20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)}}
.lg-bot{margin-top:34px; max-width:440px; padding:20px; border-radius:24px; background:rgba(15,15,16,.7); border:1px solid var(--line); backdrop-filter:blur(10px)}
.lg-bot .row{display:flex; justify-content:space-between; align-items:center}
.lg-bot .tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px}
.lg-bot .tags span{font-size:12px; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--soft)}
.lg-stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; max-width:440px}
.lg-stats div{padding:14px 16px; border-radius:18px; border:1px solid var(--line); background:rgba(15,15,16,.6)}
.lg-stats b{display:block; font-size:24px; font-weight:400; letter-spacing:-.03em}
.lg-stats span{font-size:12px; color:var(--muted)}
@media (min-width:980px){
  .lg{grid-template-columns:1.1fr 1fr}
  .lg-side{position:relative; z-index:1; display:flex; flex-direction:column; justify-content:space-between; padding:44px 56px; border-right:1px solid rgba(255,255,255,.07)}
  .lg-side h2{font-size:clamp(40px, 4vw, 58px); letter-spacing:-.04em; line-height:1.06}
  .lg-side h2 span{color:var(--faint)}
  .lg-main .lg-top .word{visibility:hidden}
  .lg-beam.a, .lg-beam.b{left:28%}
}

/* ---------- shell ---------- */
.app{display:grid; grid-template-columns:260px minmax(0,1fr); min-height:100dvh}
.side{position:sticky; top:0; height:100dvh; overflow:auto; background:var(--side); border-right:1px solid rgba(255,255,255,.07); padding:20px 14px; display:flex; flex-direction:column; gap:18px}
.side .word{padding:4px 8px; font-size:19px}
.side .word small{font-size:11.5px; font-weight:400; letter-spacing:0; color:var(--muted); border:1px solid var(--line2); border-radius:999px; padding:2px 9px}
.newbot{display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:0 6px 0 18px; border:0; border-radius:999px; background:#fff; color:#000; font-weight:500}
.newbot:hover{background:#E5E5EA}
.newbot .arr{width:36px; height:36px; flex-basis:36px}
.nav{display:flex; flex-direction:column; gap:2px}
.nav .grp{font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; color:var(--faint); padding:14px 14px 6px}
.nav a{display:flex; align-items:center; gap:12px; min-height:40px; padding:0 14px; border-radius:999px; color:var(--muted); text-decoration:none; font-weight:500; font-size:14px}
.nav a:hover{background:rgba(255,255,255,.05); color:#fff}
.nav a[aria-current="page"]{background:#fff; color:#000}
.nav a .b{margin-left:auto; font-family:var(--mono); font-size:10.5px; padding:1px 7px; border-radius:999px; background:rgba(255,255,255,.1); color:#fff}
.nav a[aria-current="page"] .b{background:#000}
.nav a .b.live{background:var(--ok-soft); color:var(--ok)}
.plan{margin-top:auto; padding:16px; border-radius:20px; background:var(--panel); border:1px solid var(--line); display:grid; gap:8px}
.plan .row{display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--muted)}
.plan b{font-weight:500; color:#fff; font-size:14px}
.bar{height:6px; border-radius:6px; background:rgba(255,255,255,.08); overflow:hidden}
.bar i{display:block; height:100%; border-radius:6px; background:#fff; transition:width .5s}
.me{display:flex; align-items:center; gap:10px; padding:6px; border-radius:999px; border:0; background:transparent; text-align:left; width:100%}
.me:hover{background:rgba(255,255,255,.05)}
.av{width:34px; height:34px; flex:0 0 34px; border-radius:50%; background:#fff; color:#000; display:grid; place-items:center; font-weight:600; font-size:13px}
.me span{display:flex; flex-direction:column; min-width:0}
.me b{font-weight:500; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.me small{font-size:12px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.main{min-width:0; display:flex; flex-direction:column}
.top{position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:12px; min-height:64px; padding:10px 28px; background:rgba(0,0,0,.78); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-bottom:1px solid rgba(255,255,255,.07)}
.top .crumb{display:flex; align-items:center; gap:8px; min-width:0; color:var(--muted); font-size:13.5px}
.top .crumb b{color:#fff; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.top .sp{flex:1}
.search{display:flex; align-items:center; gap:10px; height:40px; padding:0 8px 0 14px; min-width:240px; border-radius:999px; border:1px solid var(--line2); background:transparent; color:var(--faint); font-size:13.5px}
.search:hover{border-color:var(--line3); color:var(--muted)}
.search kbd{margin-left:auto; font-family:var(--mono); font-size:11px; padding:2px 7px; border-radius:999px; background:rgba(255,255,255,.08); color:var(--muted)}
.ib{width:40px; height:40px; flex:0 0 40px; border-radius:50%; border:1px solid var(--line2); background:transparent; display:grid; place-items:center; color:var(--soft); position:relative}
.ib:hover{border-color:var(--line3); color:#fff}
.ib .dot{position:absolute; top:8px; right:9px; width:7px; height:7px; border-radius:50%; background:#fff}
.menu-btn{display:none}
.content{width:100%; max-width:1320px; margin:0 auto; padding:28px 28px 80px; display:flex; flex-direction:column; gap:18px}
.view-in{animation:vIn .35s cubic-bezier(.2,.8,.2,1) both}
@keyframes vIn{from{opacity:0; transform:translateY(8px)}}

/* ---------- primitives ---------- */
.ph{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap}
.ph .eyebrow{font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; color:var(--muted); margin-bottom:8px; display:block}
.ph h1{font-size:clamp(28px, 3.4vw, 40px); letter-spacing:-.035em}
.ph p{margin-top:8px; color:var(--muted); max-width:660px; font-size:15px}
.ph .acts{display:flex; gap:8px; flex-wrap:wrap}
.card{background:var(--panel); border:1px solid rgba(255,255,255,.09); border-radius:var(--r); padding:22px; min-width:0}
.card.pad0{padding:0; overflow:hidden}
.ch{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px}
.ch h2{font-size:19px; letter-spacing:-.02em}
.ch h2 + p, .ch p{color:var(--muted); font-size:13.5px; margin-top:4px}
.ch .tag{flex:0 0 auto}
.g2{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px}
.g3{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px}
.g4{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px}
.auto{display:grid; grid-template-columns:repeat(auto-fill, minmax(var(--min, 200px), 1fr)); gap:12px}
.stack{display:flex; flex-direction:column; gap:16px}
.row{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.between{display:flex; align-items:center; justify-content:space-between; gap:12px}
.hr{height:1px; background:var(--line); margin:16px 0}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 16px; border-radius:999px; border:1px solid var(--line2); background:transparent; font-weight:500; font-size:14px; text-decoration:none; color:#fff; white-space:nowrap}
.btn:hover{border-color:var(--line3); background:rgba(255,255,255,.04)}
.btn.w{background:#fff; border-color:#fff; color:#000}
.btn.w:hover{background:#E5E5EA}
.btn.sm{min-height:32px; padding:0 12px; font-size:13px}
.btn.danger{color:var(--bad); border-color:rgba(255,138,128,.3)}
.btn[disabled]{opacity:.45; pointer-events:none}
.btn svg.i{width:16px; height:16px}
.go{display:inline-flex; align-items:center; gap:14px; min-height:50px; padding:0 6px 0 20px; border-radius:999px; border:0; background:#fff; color:#000; font-weight:500; font-size:15px; text-decoration:none; white-space:nowrap}
.go:hover{background:#E5E5EA}
.go .arr{width:38px; height:38px; flex-basis:38px}
.go[disabled]{opacity:.45; pointer-events:none}
.tag{display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 10px; border-radius:999px; font-size:11.5px; font-weight:500; background:rgba(255,255,255,.08); color:#fff; white-space:nowrap}
.tag.mono{font-family:var(--mono); letter-spacing:.03em}
.tag.ok{background:var(--ok-soft); color:var(--ok)} .tag.warn{background:var(--warn-soft); color:var(--warn)} .tag.bad{background:var(--bad-soft); color:var(--bad)}
.tag.line{background:transparent; border:1px solid var(--line2); color:var(--muted)}
.tag .d{width:6px; height:6px; border-radius:50%; background:currentColor}
.tag .d.pulse{animation:pulse 1.6s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 currentColor} 100%{box-shadow:0 0 0 6px transparent}}

.field{display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:var(--soft); min-width:0}
.field > span{font-weight:500}
.inp, .field input, .field select, .field textarea{width:100%; min-height:44px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:#000; color:#fff; font-size:14.5px; outline:none}
.field textarea{padding:12px 14px; min-height:96px; resize:vertical; line-height:1.5}
.field select{appearance:none; background-image:linear-gradient(45deg, transparent 50%, #8E8E93 50%), linear-gradient(135deg, #8E8E93 50%, transparent 50%); background-position:calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size:5px 5px; background-repeat:no-repeat; padding-right:36px}
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus{border-color:#fff}
.field small{color:var(--faint); font-size:12px}
.unit{position:relative}
.unit input{padding-right:46px}
.unit em{font-size:12px !important}
.unit em{position:absolute; right:14px; top:50%; transform:translateY(-50%); font-style:normal; color:var(--faint); font-size:13px; pointer-events:none}
.err{min-height:20px; font-size:13px; color:var(--bad); margin-top:4px}

.seg{display:inline-flex; flex-wrap:nowrap; max-width:100%; overflow-x:auto; scrollbar-width:none; padding:4px; gap:2px; border-radius:999px; background:#000; border:1px solid var(--line)}
.seg button{min-height:34px; padding:0 14px; border:0; border-radius:999px; background:transparent; color:var(--muted); font-weight:500; font-size:13.5px; white-space:nowrap}
.seg button:hover{color:#fff}
.seg button[aria-pressed="true"]{background:#fff; color:#000}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 14px; border-radius:999px; border:1px solid var(--line2); background:transparent; color:var(--soft); font-size:13px; font-weight:500}
.chip:hover{border-color:var(--line3); color:#fff}
.chip[aria-pressed="true"]{background:#fff; color:#000; border-color:#fff}
.tog{position:relative; flex:0 0 46px; width:46px; height:28px; border-radius:999px; border:0; padding:0; background:rgba(255,255,255,.14); transition:background .2s}
.tog::after{content:""; position:absolute; top:4px; left:4px; width:20px; height:20px; border-radius:50%; background:#8E8E93; transition:transform .25s cubic-bezier(.2,.8,.2,1), background .2s}
.tog[aria-checked="true"]{background:#fff}
.tog[aria-checked="true"]::after{transform:translateX(18px); background:#000}

.opt{position:relative; display:flex; flex-direction:column; gap:6px; text-align:left; padding:16px; border-radius:18px; border:1px solid var(--line2); background:#000; color:#fff; min-width:0; transition:border-color .2s, background .2s, transform .2s}
.opt:hover{border-color:var(--line3)}
.opt[aria-pressed="true"]{border-color:#fff; background:#0B0B0C; box-shadow:0 0 0 4px rgba(255,255,255,.06)}
.opt .t{display:flex; justify-content:space-between; align-items:center; gap:8px}
.opt b{font-weight:500; font-size:14.5px}
.opt small{color:var(--muted); font-size:12.5px; line-height:1.45}
.opt .ck{width:20px; height:20px; flex:0 0 20px; border-radius:50%; border:1.5px solid var(--line3); display:grid; place-items:center}
.opt[aria-pressed="true"] .ck{background:#fff; border-color:#fff; color:#000}
.opt .ck svg{width:11px; height:11px; stroke-width:3.2; opacity:0}
.opt[aria-pressed="true"] .ck svg{opacity:1}
.opt .meta{font-family:var(--mono); font-size:10.5px; letter-spacing:.06em; color:var(--faint)}
.opt[disabled]{opacity:.4; pointer-events:none}

.line-item{display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--line)}
.line-item:first-child{border-top:0; padding-top:0}
.line-item .tx{flex:1; min-width:0}
.line-item .tx b{display:block; font-weight:500; font-size:14px}
.line-item .tx small{color:var(--muted); font-size:12.5px}

.tbl-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:18px}
table{width:100%; border-collapse:collapse; font-size:13.5px}
th{text-align:left; font-weight:500; color:var(--faint); font-size:12px; padding:12px 14px; background:rgba(255,255,255,.02); white-space:nowrap}
td{padding:12px 14px; border-top:1px solid var(--line); white-space:nowrap}
tbody tr:hover{background:rgba(255,255,255,.02)}
td input{min-height:34px !important; max-width:110px; border-radius:10px !important; padding:0 10px !important; font-size:13px !important}

.kpi{display:flex; flex-direction:column; gap:4px; padding:18px 20px; border-radius:20px; background:var(--panel); border:1px solid rgba(255,255,255,.09); min-width:0}
.kpi span{font-size:12.5px; color:var(--muted)}
.kpi b{font-weight:400; font-size:30px; letter-spacing:-.04em; line-height:1.1}
.kpi small{font-size:12px; color:var(--faint)}

.note{display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:16px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); font-size:13px; color:var(--soft)}
.note svg.i{width:16px; height:16px; margin-top:2px; color:#fff}
.note.warn{background:var(--warn-soft); border-color:rgba(245,201,122,.2); color:var(--warn)}
.note.warn svg.i{color:var(--warn)}
.note.ok{background:var(--ok-soft); border-color:rgba(126,226,176,.18); color:var(--ok)}
.note.ok svg.i{color:var(--ok)}
.demo-flag{display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px; letter-spacing:.06em; color:var(--warn); border:1px dashed rgba(245,201,122,.4); border-radius:999px; padding:3px 10px}
.empty{padding:40px 20px; text-align:center; color:var(--muted); border:1px dashed var(--line2); border-radius:20px}
.empty b{display:block; color:#fff; font-weight:500; font-size:16px; margin-bottom:6px}

/* ---------- overview ---------- */
.hero{position:relative; overflow:hidden; padding:30px; border-radius:28px; background:radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.1), transparent 55%), var(--panel); border:1px solid rgba(255,255,255,.12)}
.hero::before{content:""; position:absolute; right:-120px; top:-200px; width:260px; height:700px; border-radius:50%; filter:blur(40px); background:linear-gradient(180deg, transparent, rgba(255,255,255,.14), transparent); transform:rotate(35deg); animation:lgA 10s ease-in-out infinite; pointer-events:none}
.hero h2{font-size:clamp(26px, 3vw, 36px); letter-spacing:-.035em; max-width:640px; position:relative}
.hero p{color:var(--muted); margin-top:10px; max-width:600px; position:relative}
.hero .row{margin-top:22px; position:relative}
.how{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-top:24px; position:relative}
.how div{padding:16px; border-radius:18px; background:rgba(0,0,0,.5); border:1px solid var(--line)}
.how b{display:block; font-weight:500; margin:8px 0 4px}
.how small{color:var(--muted); font-size:12.5px}
.how i{font-style:normal; font-family:var(--mono); font-size:11px; width:24px; height:24px; border-radius:50%; background:#fff; color:#000; display:grid; place-items:center}
.botrow{display:flex; align-items:center; gap:14px; padding:14px; border-radius:18px; border:1px solid var(--line); background:#000; transition:border-color .2s}
.botrow:hover{border-color:var(--line2)}
.botrow + .botrow{margin-top:10px}
.sym{width:44px; height:44px; flex:0 0 44px; border-radius:14px; background:var(--panel3); display:grid; place-items:center; font-family:var(--mono); font-size:11.5px; font-weight:500}
.botrow .tx{flex:1; min-width:0}
.botrow .tx b{display:block; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.botrow .tx small{display:block; color:var(--muted); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.chk{display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line)}
.chk:first-of-type{border-top:0}
.chk i{width:24px; height:24px; flex:0 0 24px; border-radius:50%; border:1.5px solid var(--line3); display:grid; place-items:center; font-style:normal}
.chk.done i{background:#fff; border-color:#fff; color:#000}
.chk i svg{width:12px; height:12px; stroke-width:3}
.chk b{display:block; font-weight:500; font-size:14px}
.chk.done b{color:var(--muted); text-decoration:line-through; text-decoration-color:var(--faint)}
.chk small{color:var(--faint); font-size:12.5px}
.tpl{display:flex; flex-direction:column; gap:10px; padding:18px; border-radius:20px; border:1px solid var(--line2); background:#000; text-align:left; color:#fff; min-width:0; transition:border-color .2s, transform .25s}
.tpl:hover{border-color:var(--line3); transform:translateY(-2px)}
.tpl .meta{display:flex; justify-content:space-between; font-family:var(--mono); font-size:10.5px; letter-spacing:.06em; color:var(--faint)}
.tpl b{font-weight:500; font-size:16px; letter-spacing:-.01em}
.tpl small{color:var(--muted); font-size:13px}
.tpl .chips span{font-size:11.5px; padding:3px 9px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--soft)}
.tpl .spark{height:46px; width:100%}

/* ---------- builder ---------- */
.bld{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:22px; align-items:start}
.bld > .stepper{display:none}
.stepper{position:sticky; top:84px; display:flex; flex-direction:column; gap:2px}
.stepper .hd{font-family:var(--mono); font-size:11px; letter-spacing:.08em; color:var(--faint); padding:0 12px 10px}
.stepper a{display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:16px; text-decoration:none; color:var(--muted); border:1px solid transparent}
.stepper a:hover{background:rgba(255,255,255,.04); color:#fff}
.stepper a[aria-current="step"]{background:var(--panel); border-color:var(--line2); color:#fff}
.stepper .n{width:26px; height:26px; flex:0 0 26px; border-radius:50%; display:grid; place-items:center; font-family:var(--mono); font-size:11.5px; border:1px solid var(--line3); color:var(--muted)}
.stepper a.done .n{background:rgba(255,255,255,.14); border-color:transparent; color:#fff}
.stepper a[aria-current="step"] .n{background:#fff; border-color:#fff; color:#000}
.stepper .n svg{width:12px; height:12px; stroke-width:3}
.stepper .tx{display:flex; flex-direction:column; min-width:0}
.stepper .tx b{font-weight:500; font-size:13.5px}
.stepper .tx small{font-size:11.5px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.bld-main{display:flex; flex-direction:column; gap:16px; min-width:0}
.bld-head{display:flex; flex-direction:column; gap:6px}
.bld-head .eyebrow{font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; color:var(--muted)}
.bld-head h1{font-size:clamp(28px, 3vw, 36px); letter-spacing:-.035em}
.bld-head p{color:var(--muted); max-width:640px}
.bld-nav{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding-top:6px}
.sum{position:sticky; top:84px; display:flex; flex-direction:column; gap:14px}
.sum .card{padding:18px}
.kv{display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-size:13px}
.kv:first-of-type{border-top:0}
.kv span{color:var(--muted); white-space:nowrap}
.kv b{font-weight:500; text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ring{position:relative; width:84px; height:84px; flex:0 0 84px}
.ring svg{width:84px; height:84px; transform:rotate(-90deg)}
.ring circle{fill:none; stroke-width:7}
.ring .bgc{stroke:rgba(255,255,255,.08)}
.ring .fg{stroke:#fff; stroke-linecap:round; transition:stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1)}
.ring b{position:absolute; inset:0; display:grid; place-items:center; font-size:24px; font-weight:400; letter-spacing:-.04em}
.hl{display:flex; gap:8px; align-items:flex-start; font-size:12.5px; color:var(--soft); padding:5px 0}
.hl i{font-style:normal; width:16px; height:16px; flex:0 0 16px; margin-top:2px; border-radius:50%; display:grid; place-items:center; font-size:10px}
.hl.y i{background:var(--ok-soft); color:var(--ok)} .hl.n i{background:var(--warn-soft); color:var(--warn)}
.saved{display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--muted)}
.saved .d{width:6px; height:6px; border-radius:50%; background:var(--ok)}
.saved.busy .d{background:var(--warn)}
.mstep{display:flex; gap:6px; overflow-x:auto; margin:0 0 -4px; padding:0 0 4px; scrollbar-width:none}
.mstep::-webkit-scrollbar{display:none}
.mstep a{flex:0 0 auto; display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 14px 0 6px; border-radius:999px; border:1px solid var(--line2); color:var(--muted); text-decoration:none; font-size:13px; font-weight:500}
.mstep a:hover{color:#fff; border-color:var(--line3)}
.mstep a .n{width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-family:var(--mono); font-size:11px; background:rgba(255,255,255,.08)}
.mstep a.done .n{background:rgba(255,255,255,.2); color:#fff}
.mstep a[aria-current="step"]{background:#fff; color:#000; border-color:#fff}
.mstep a[aria-current="step"] .n{background:#000; color:#fff}
@media (min-width:1600px){ .bld{grid-template-columns:236px minmax(0,1fr) 300px} .bld > .stepper{display:flex} .mstep{display:none} .content{max-width:1480px} }

/* hours grid */
.hours{display:grid; grid-template-columns:44px repeat(24, minmax(0,1fr)); gap:3px; min-width:620px}
.hours .h{font-family:var(--mono); font-size:9.5px; color:var(--faint); text-align:center}
.hours .d{font-size:12px; color:var(--muted); display:flex; align-items:center}
.hours button{height:26px; border:0; border-radius:6px; background:rgba(255,255,255,.06); padding:0}
.hours button[aria-pressed="true"]{background:#fff}
.hours button:hover{outline:1px solid rgba(255,255,255,.4)}
.sess-band{display:grid; grid-template-columns:44px repeat(24, minmax(0,1fr)); gap:3px; min-width:620px; margin-top:6px; font-size:10.5px; color:var(--faint)}
.sess-band span{border-top:2px solid rgba(255,255,255,.2); padding-top:3px; white-space:nowrap; overflow:hidden}

/* rules builder */
.rgrp{border:1px solid var(--line2); border-radius:18px; padding:14px; background:#000}
.rgrp + .join{display:flex; justify-content:center; margin:8px 0}
.rgrp .hd{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px}
.rgrp .hd b{font-weight:500}
.rgrp .lt{width:26px; height:26px; border-radius:50%; background:#fff; color:#000; display:inline-grid; place-items:center; font-family:var(--mono); font-size:12px; margin-right:8px}
.rule{display:grid; grid-template-columns:44px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.1fr) 84px 34px; gap:8px; align-items:center; padding:6px 0}
.rule .lead{font-family:var(--mono); font-size:11px; color:var(--faint)}
.rule select{min-height:38px !important; border-radius:12px !important; font-size:13px !important; padding:0 30px 0 10px !important; background-position:calc(100% - 16px) 16px, calc(100% - 11px) 16px !important}
.rule .x{width:34px; height:34px; border-radius:50%; border:0; background:transparent; color:var(--faint)}
.rule .x:hover{background:rgba(255,255,255,.06); color:#fff}
.plain{padding:16px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid var(--line); font-size:14px; line-height:1.6; color:var(--soft)}
.plain b{color:#fff; font-weight:500}
.lib{display:flex; flex-direction:column; gap:12px}
.lib .cat{font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; color:var(--faint); margin-bottom:6px}

/* trade preview */
.tp{position:relative; height:240px; border-radius:18px; background:#000; border:1px solid var(--line); overflow:hidden}
.tp .lvl{position:absolute; left:0; right:0; display:flex; justify-content:space-between; align-items:center; padding:0 14px; font-size:12px; border-top:1px dashed}
.tp .lvl span{transform:translateY(-120%); background:#000; padding:0 4px}
.tp .zone{position:absolute; left:0; right:0}

/* chart */
.chart{width:100%; height:220px; display:block}
.chart .grid line{stroke:rgba(255,255,255,.06)}
.chart text{fill:#6E6E73; font-size:10px; font-family:var(--mono)}
.months{display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:8px}
.months div{padding:10px; border-radius:14px; border:1px solid var(--line); text-align:center}
.months span{display:block; font-size:11px; color:var(--faint)}
.months b{font-weight:500; font-size:14px}
.months .neg b{color:var(--bad)}
.hbar{display:grid; grid-template-columns:90px minmax(0,1fr) 60px; align-items:center; gap:12px; font-size:13px; padding:5px 0}
.hbar .bar{height:8px}

/* monitor */
.log{display:flex; flex-direction:column}
.log div{display:grid; grid-template-columns:54px 12px minmax(0,1fr); gap:12px; padding:10px 0; border-top:1px solid var(--line)}
.log div:first-child{border-top:0}
.log time{font-family:var(--mono); font-size:12px; color:var(--faint)}
.log i{width:10px; height:10px; border-radius:50%; margin-top:5px; background:var(--faint)}
.log i.trade{background:#fff} .log i.skip{background:var(--warn)} .log i.ok{background:var(--ok)}
.log b{display:block; font-weight:500; font-size:13.5px}
.log small{color:var(--muted); font-size:12.5px}

/* plans */
.plans{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px}
.planc{position:relative; display:flex; flex-direction:column; gap:12px; padding:22px; border-radius:24px; background:var(--panel); border:1px solid rgba(255,255,255,.09); text-align:left; color:#fff; min-width:0}
.planc[aria-pressed="true"]{border-color:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.07)}
.planc.best{background:radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.12), transparent 60%), var(--panel)}
.planc .nm{font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; color:var(--muted)}
.planc .pr{font-size:38px; letter-spacing:-.045em; line-height:1}
.planc .pr small{font-size:13px; color:var(--muted); letter-spacing:0; margin-left:4px}
.planc ul{list-style:none; margin:0; padding:12px 0 0; border-top:1px solid var(--line); display:grid; gap:7px; font-size:13px; color:var(--soft)}
.planc li{display:flex; gap:8px}
.planc li svg{width:14px; height:14px; margin-top:3px; stroke-width:2.6}
.planc .flag{position:absolute; top:16px; right:16px}

/* license */
.keybox{display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:14px; background:#000; border:1px solid var(--line2); font-family:var(--mono); font-size:14px; letter-spacing:.06em}
.keybox span{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* versions */
.ver{display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line)}
.ver:first-child{border-top:0}
.ver .vn{font-family:var(--mono); font-size:12px; width:40px; height:28px; border-radius:999px; background:rgba(255,255,255,.08); display:grid; place-items:center}
.ver .tx{flex:1; min-width:0}
.ver b{font-weight:500; font-size:13.5px; display:block}
.ver small{color:var(--faint); font-size:12px}
.diff{font-family:var(--mono); font-size:12.5px; display:grid; gap:4px}
.diff div{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:10px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.03)}
.diff .a{color:var(--bad)} .diff .b{color:var(--ok)}
pre.json{margin:0; max-height:360px; overflow:auto; padding:16px; border-radius:16px; background:#000; border:1px solid var(--line); font-family:var(--mono); font-size:12px; line-height:1.55; color:var(--soft)}

/* assistant */
.chat{display:flex; flex-direction:column; gap:12px; min-height:300px}
.msg{max-width:86%; padding:12px 16px; border-radius:20px; font-size:14px; line-height:1.55}
.msg.u{align-self:flex-end; background:#fff; color:#000; border-bottom-right-radius:6px}
.msg.a{align-self:flex-start; background:var(--panel2); border:1px solid var(--line); border-bottom-left-radius:6px}
.msg.a ul{margin:8px 0 0; padding-left:18px; color:var(--soft)}
.msg.a .row{margin-top:12px}
.composer{display:flex; gap:8px; align-items:flex-end; padding:8px; border-radius:24px; border:1px solid var(--line2); background:#000}
.composer textarea{flex:1; min-height:44px; max-height:160px; padding:11px 12px; border:0; background:transparent; color:#fff; resize:none; outline:none; font-size:14.5px}
.composer .go{min-height:44px}
.typing{display:inline-flex; gap:4px}
.typing i{width:6px; height:6px; border-radius:50%; background:var(--muted); animation:ty 1s infinite}
.typing i:nth-child(2){animation-delay:.15s} .typing i:nth-child(3){animation-delay:.3s}
@keyframes ty{50%{opacity:.25; transform:translateY(-3px)}}

/* discord card */
.dcard{border-radius:16px; background:#2B2D31; padding:14px 16px; font-size:13px; color:#DBDEE1; border-left:4px solid #fff}
.dcard .nm{display:flex; align-items:center; gap:8px; font-weight:600; color:#fff}
.dcard .nm small{font-weight:400; color:#949BA4; font-size:11.5px}
.dcard .grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin-top:10px}
.dcard .grid span{display:block; font-size:10.5px; color:#949BA4; font-weight:600; letter-spacing:.04em}
.matrix td:not(:first-child), .matrix th:not(:first-child){text-align:center}
.matrix button{width:28px; height:28px; border-radius:8px; border:1px solid var(--line3); background:transparent; display:inline-grid; place-items:center; color:#000}
.matrix button[aria-pressed="true"]{background:#fff; border-color:#fff}
.matrix button svg{width:13px; height:13px; stroke-width:3; opacity:0}
.matrix button[aria-pressed="true"] svg{opacity:1}

/* overlays */
.ov{position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:16px; background:rgba(0,0,0,.66); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); animation:fade .2s both}
@keyframes fade{from{opacity:0}}
.modal{width:min(560px, 100%); max-height:calc(100dvh - 32px); overflow:auto; padding:26px; border-radius:28px; background:#0A0A0B; border:1px solid rgba(255,255,255,.12); box-shadow:0 50px 120px -40px rgba(0,0,0,.95); animation:lgIn .35s cubic-bezier(.2,.8,.2,1) both}
.modal.wide{width:min(1040px, 100%)}
.modal h2{font-size:24px; letter-spacing:-.03em}
.modal .sub{color:var(--muted); margin:6px 0 18px}
.modal .foot{display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:20px}
.x-close{float:right; width:36px; height:36px; border-radius:50%; border:1px solid var(--line2); background:transparent; display:grid; place-items:center; color:var(--muted)}
.x-close:hover{color:#fff; border-color:var(--line3)}
.cmdk{align-items:start; padding-top:12vh}
.cmdk .box{width:min(620px, 100%); border-radius:24px; background:#0A0A0B; border:1px solid rgba(255,255,255,.14); overflow:hidden; box-shadow:0 50px 120px -40px rgba(0,0,0,.95); animation:lgIn .25s both}
.cmdk input{width:100%; height:58px; padding:0 20px; border:0; border-bottom:1px solid var(--line); background:transparent; color:#fff; font-size:16px; outline:none}
.cmdk ul{list-style:none; margin:0; padding:8px; max-height:52vh; overflow:auto}
.cmdk li button{display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:0 12px; border:0; border-radius:14px; background:transparent; text-align:left; color:var(--soft)}
.cmdk li button.on, .cmdk li button:hover{background:rgba(255,255,255,.07); color:#fff}
.cmdk li small{margin-left:auto; color:var(--faint); font-size:12px}
.cmdk .sec{font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; color:var(--faint); padding:10px 12px 4px}
.toasts{position:fixed; z-index:90; left:50%; bottom:24px; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none}
.toast{display:flex; align-items:center; gap:10px; padding:11px 18px; border-radius:999px; background:#fff; color:#000; font-weight:500; font-size:13.5px; box-shadow:0 20px 50px -20px rgba(0,0,0,.8); animation:tIn .35s cubic-bezier(.2,.8,.2,1) both; pointer-events:auto; max-width:calc(100vw - 32px)}
.toast.out{animation:tOut .3s both}
@keyframes tIn{from{opacity:0; transform:translateY(12px) scale(.96)}}
@keyframes tOut{to{opacity:0; transform:translateY(8px)}}
.bnav{display:none}
.drawer-bg{display:none}

/* ---------- responsive ---------- */
@media (max-width:1240px){
  .bld{grid-template-columns:minmax(0,1fr)}
  .sum{position:static; display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); align-items:start}
  .plans{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width:1020px){
  .g4{grid-template-columns:repeat(2, minmax(0,1fr))}
  .g3{grid-template-columns:repeat(2, minmax(0,1fr))}
  .mstep{margin:0 -16px; padding:0 16px 4px}
}
@media (max-width:900px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed; left:0; top:0; bottom:0; z-index:70; width:min(300px, 86vw); transform:translateX(-102%); transition:transform .3s cubic-bezier(.2,.8,.2,1)}
  body.nav-open .side{transform:none}
  body.nav-open .drawer-bg{display:block; position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.6)}
  .menu-btn{display:grid}
  .top{padding:10px 16px}
  .search{min-width:0; width:40px; padding:0; justify-content:center; border-radius:50%}
  .search span, .search kbd{display:none}
  .content{padding:20px 16px calc(96px + env(safe-area-inset-bottom,0px))}
  .g2{grid-template-columns:minmax(0,1fr) !important}
  .how{grid-template-columns:minmax(0,1fr)}
  .toasts{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .bnav{display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); position:fixed; z-index:50; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); padding:6px; border-radius:999px; background:rgba(15,15,16,.9); border:1px solid var(--line2); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px)}
  .bnav a{display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 0 5px; border-radius:999px; color:var(--muted); text-decoration:none; font-size:10.5px; font-weight:500}
  .bnav a[aria-current="page"]{background:#fff; color:#000}
  .bnav svg.i{width:19px; height:19px}
  .rule{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px; grid-auto-flow:row}
  .rule .lead{grid-column:1 / -1}
  .rule select:nth-of-type(1){grid-column:1 / 3}
  .bld-nav .go{flex:1; justify-content:space-between}
  .modal{padding:20px; border-radius:24px}
}
@media (max-width:620px){
  .g4, .g3, .plans{grid-template-columns:minmax(0,1fr)}
  .g4.kpis{grid-template-columns:repeat(2, minmax(0,1fr))}
  .months{grid-template-columns:repeat(3, minmax(0,1fr))}
  .hero{padding:22px}
  .card{padding:18px}
  .ph .acts{width:100%}
  .lg-card{padding:22px; border-radius:24px}
  .otp{gap:6px}
  .otp input{height:52px; border-radius:14px}
  .top .crumb .hide-s{display:none}
  .demo-flag{display:none}
  .top .crumb .tag{display:none}
}
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important}
}

/* ===================== compact, more minimal ===================== */
html,body{font-size:13.5px}
.side{padding:18px 12px; gap:14px}
.app{grid-template-columns:232px minmax(0,1fr)}
.side .word{font-size:17px}
.word .mk{width:26px; height:26px; border-radius:8px}
.word .mk svg{width:14px; height:14px}
.newbot{min-height:42px; font-size:13.5px; padding-left:16px}
.newbot .arr{width:30px; height:30px; flex-basis:30px}
.nav a{min-height:34px; font-size:13px; gap:10px; padding:0 12px}
.nav .grp{padding:12px 12px 4px; font-size:10px}
svg.i{width:16px; height:16px}
.plan{padding:14px; border-radius:16px}
.plan b{font-size:13px}
.av{width:30px; height:30px; flex-basis:30px; font-size:12px}
.top{min-height:56px; padding:8px 24px}
.top .crumb{font-size:13px}
.search{height:36px; min-width:220px; font-size:13px}
.ib{width:36px; height:36px; flex-basis:36px}
.content{padding:24px 24px 72px; gap:14px; max-width:1240px}
.ph .eyebrow{font-size:10.5px; margin-bottom:6px}
.ph h1{font-size:clamp(22px, 2.3vw, 28px); letter-spacing:-.03em}
.ph p{font-size:13.5px; margin-top:6px}
.card{padding:18px; border-radius:18px}
.ch{margin-bottom:12px}
.ch h2{font-size:15.5px; letter-spacing:-.015em}
.ch h2 + p, .ch p{font-size:12.5px; margin-top:2px}
.g2, .g3{gap:14px} .g4{gap:12px}
.btn{min-height:36px; padding:0 14px; font-size:13px}
.btn.sm{min-height:30px; padding:0 11px; font-size:12.5px}
.go{min-height:42px; padding:0 5px 0 16px; gap:12px; font-size:13.5px}
.go .arr, .arr{width:32px; height:32px; flex-basis:32px}
.arr svg{width:15px; height:15px}
.tag{height:22px; font-size:11px; padding:0 9px}
.field{font-size:12px; gap:5px}
.inp, .field input, .field select, .field textarea{min-height:40px; border-radius:12px; font-size:13.5px; padding:0 12px}
.field select{background-position:calc(100% - 18px) 17px, calc(100% - 13px) 17px}
.seg{padding:3px}
.seg button{min-height:30px; padding:0 12px; font-size:12.5px}
.chip{min-height:30px; padding:0 12px; font-size:12.5px}
.tog{width:40px; height:24px; flex-basis:40px}
.tog::after{width:16px; height:16px}
.tog[aria-checked="true"]::after{transform:translateX(16px)}
.opt{padding:13px 14px; border-radius:14px; gap:4px}
.opt b{font-size:13.5px}
.opt small{font-size:12px}
.opt .ck{width:18px; height:18px; flex-basis:18px}
.opt .meta{font-size:10px}
.line-item{padding:11px 0; gap:12px}
.line-item .tx b{font-size:13px}
.line-item .tx small{font-size:12px}
table{font-size:12.5px}
th{font-size:11px; padding:10px 12px}
td{padding:10px 12px}
.kpi{padding:14px 16px; border-radius:16px}
.kpi span{font-size:12px}
.kpi b{font-size:22px}
.kpi small{font-size:11.5px}
.note{font-size:12.5px; padding:10px 12px; border-radius:14px}
.hero{padding:24px; border-radius:22px}
.hero h2{font-size:clamp(20px, 2.2vw, 26px)}
.hero p{font-size:13.5px; margin-top:8px}
.hero .row{margin-top:18px}
.how{margin-top:18px; gap:10px}
.how div{padding:14px; border-radius:14px}
.how b{font-size:13.5px}
.how small{font-size:12px}
.botrow{padding:11px; border-radius:14px; gap:12px}
.botrow + .botrow{margin-top:8px}
.sym{width:38px; height:38px; flex-basis:38px; border-radius:11px; font-size:10.5px}
.botrow .tx b{font-size:13.5px}
.botrow .tx small{font-size:12px}
.chk{padding:10px 0; gap:10px}
.chk i{width:20px; height:20px; flex-basis:20px}
.chk b{font-size:13px}
.chk small{font-size:11.5px}
.tpl{padding:14px; border-radius:16px; gap:8px}
.tpl b{font-size:14px}
.tpl small{font-size:12px}
.tpl .spark{height:36px}
.bld{gap:18px}
.bld-main{gap:14px}
.bld-head h1{font-size:clamp(22px, 2.3vw, 28px)}
.bld-head p{font-size:13.5px}
.bld-head .eyebrow{font-size:10.5px}
.mstep a{min-height:32px; font-size:12px; padding:0 12px 0 5px}
.mstep a .n{width:22px; height:22px; font-size:10.5px}
.sum{top:72px; gap:12px}
.sum .card{padding:16px}
.kv{font-size:12.5px; padding:7px 0}
.ring, .ring svg{width:68px; height:68px; flex-basis:68px}
.ring b{font-size:19px}
.hl{font-size:12px; padding:4px 0}
.stepper{top:72px}
.stepper a{padding:8px 10px; border-radius:14px}
.stepper .n{width:22px; height:22px; flex-basis:22px; font-size:10.5px}
.stepper .tx b{font-size:12.5px}
.stepper .tx small{font-size:11px}
.planc{padding:18px; border-radius:18px; gap:10px}
.planc .pr{font-size:28px}
.planc ul{font-size:12.5px; gap:6px}
.keybox{font-size:12.5px; padding:10px 12px; border-radius:12px}
.modal{padding:22px; border-radius:22px}
.modal h2{font-size:20px}
.modal .sub{font-size:13px; margin:4px 0 16px}
.x-close{width:32px; height:32px}
.cmdk input{height:50px; font-size:14.5px}
.cmdk li button{min-height:38px; font-size:13px}
.toast{padding:9px 16px; font-size:12.5px}
.msg{font-size:13.5px; padding:10px 14px; border-radius:16px}
.composer{border-radius:20px; padding:6px}
.composer textarea{min-height:40px; font-size:13.5px; padding:9px 10px}
.composer .go{min-height:40px}
.dcard{font-size:12.5px}
.chart{height:190px}
.months b{font-size:13px}
.hbar{font-size:12.5px}
.log b{font-size:13px} .log small{font-size:12px}
.plain{font-size:13px; padding:14px; border-radius:14px}
.rgrp{border-radius:14px; padding:12px}
.hours button{height:22px; border-radius:5px}
.tp{height:210px; border-radius:14px}
.tp .lvl{font-size:11.5px}
.matrix button{width:24px; height:24px}
.diff{font-size:11.5px}
/* login */
.lg-card{width:min(400px, 100%); padding:24px; border-radius:24px}
.lg-top{width:min(400px, 100%); margin-bottom:18px}
.lg-card h1{font-size:23px}
.lg-card > p{font-size:13.5px; margin:6px 0 18px}
.lg-btn{min-height:46px; font-size:14px; padding-left:18px; padding-right:6px}
.lg-alt{min-height:44px; font-size:13.5px}
.lg-note{font-size:12px; padding:10px 12px; border-radius:14px; margin-top:14px}
.lg-steps{margin-bottom:18px}
.lg-or{margin:12px 0}
.otp input{height:50px; border-radius:13px; font-size:19px}
.word{font-size:18px}
.lg-tag{height:26px; font-size:11.5px}
.lg-bot{padding:16px; border-radius:18px; margin-top:26px; max-width:400px}
.lg-bot .tags span{font-size:11.5px}
.lg-stats{max-width:400px}
.lg-stats div{padding:12px 14px; border-radius:14px}
.lg-stats b{font-size:20px}
@media (min-width:980px){ .lg-side{padding:40px 52px} .lg-side h2{font-size:clamp(32px, 3.2vw, 44px)} }
@media (max-width:900px){
  .app{grid-template-columns:minmax(0,1fr)}
  .top{padding:8px 14px}
  .search{min-width:0; width:36px}
  .content{padding:18px 14px calc(92px + env(safe-area-inset-bottom,0px))}
  .bnav a{font-size:10px}
  .bnav svg.i{width:18px; height:18px}
  .hours, .sess-band{min-width:0; gap:2px; grid-template-columns:30px repeat(24, minmax(0,1fr))}
  .hours .h{font-size:8px}
  .hours .d{font-size:10.5px}
  .hours button{height:20px; border-radius:3px}
}
@media (max-width:620px){ .card{padding:16px} .hero{padding:18px} .lg-card{padding:20px} .otp input{height:46px} }
.hours{touch-action:pan-y}
@media (max-width:900px){ .mstep{margin:0 -14px !important; padding:0 14px 4px !important} }

/* brand mark from Brandt Bot v4.2 (black & white) */
.word .mk{background:none; padding:0; overflow:hidden}
.word .mk img{width:100%; height:100%; display:block; border-radius:inherit}

/* ===================== account page ===================== */
.keybox.lkey span{filter:blur(6px); user-select:none; transition:filter .2s}
.keybox.lkey.open span{filter:none; user-select:text}
.act{display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; margin-top:4px}
.act .err{margin-top:0}
.planc .tag.flag.line{background:transparent}
.tpl img{display:block}
.lg-tag{color:var(--muted)}
.lg-tag:hover{color:#fff; border-color:var(--line3)}

/* ===================== academy video courses ===================== */
.ccs{display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px}
.cc{display:flex; flex-direction:column; border-radius:18px; overflow:hidden; background:var(--panel); border:1px solid rgba(255,255,255,.09); color:#fff; text-decoration:none; transition:border-color .2s, transform .25s}
.cc:hover{border-color:rgba(255,255,255,.24); transform:translateY(-2px)}
.cc-img{position:relative; aspect-ratio:16/9; background:#111; display:block}
.cc-img img{width:100%; height:100%; object-fit:cover; display:block}
.cc.locked .cc-img img{filter:grayscale(1) brightness(.55)}
.cc-tag, .cc-done{position:absolute; top:10px; display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 10px; border-radius:999px; font-size:11px; font-weight:500}
.cc-tag{left:10px; background:rgba(0,0,0,.72); color:#fff; backdrop-filter:blur(6px)}
.cc-done{right:10px; background:#fff; color:#000}
.cc-tag svg.i, .cc-done svg.i{width:12px; height:12px}
.cc-b{display:flex; flex-direction:column; gap:6px; padding:14px 16px 16px; flex:1}
.cc-b .meta{font-family:var(--mono); font-size:10px; letter-spacing:.06em; color:var(--faint)}
.cc-b b{font-weight:500; font-size:15px; letter-spacing:-.01em}
.cc-b small{color:var(--muted); font-size:12.5px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.cc-b .bar{margin-top:auto}
.cc-f{display:flex; justify-content:space-between; font-size:12px; color:var(--muted)}
.cv{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px; align-items:start}
.player{position:relative; aspect-ratio:16/9; width:100%; border-radius:18px; overflow:hidden; background:#000; border:1px solid rgba(255,255,255,.1)}
.player iframe, .player video{position:absolute; inset:0; width:100%; height:100%; border:0; background:#000}
.pl-load, .pl-lock{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:20px; color:var(--muted)}
.pl-lock b{color:#fff; font-weight:500; font-size:16px}
.pl-lock svg.i{width:26px; height:26px; color:#fff}
.cv-side{position:sticky; top:72px; padding:16px; max-height:calc(100dvh - 96px); overflow:auto}
.vl{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px}
.vl-i{display:grid; grid-template-columns:104px minmax(0,1fr); gap:10px; align-items:center; padding:6px; border-radius:12px; color:#fff; text-decoration:none; border:1px solid transparent}
.vl-i:hover{background:rgba(255,255,255,.04)}
.vl-i.cur{background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16)}
.vl-i.lock{opacity:.5; cursor:not-allowed}
.vl-th{position:relative; aspect-ratio:16/9; border-radius:8px; overflow:hidden; background:#151517; display:block}
.vl-th img{width:100%; height:100%; object-fit:cover; display:block}
.vl-th i{position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.35)}
.vl-th i svg.i{width:18px; height:18px; color:#fff}
.vl-i.done .vl-th i{background:rgba(0,0,0,.25)}
.vl-i.done .vl-th i svg{background:#fff; color:#000; border-radius:50%; padding:3px; width:20px; height:20px; stroke-width:3}
.vl-t{display:flex; flex-direction:column; gap:2px; min-width:0}
.vl-t b{font-weight:500; font-size:12.5px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.vl-t small{font-size:11px; color:var(--faint)}
.qbar{height:4px; border-radius:4px; background:rgba(255,255,255,.08); margin-top:10px; overflow:hidden}
.qbar i{display:block; height:100%; background:#fff; transition:width .3s}
.qopts{display:flex; flex-direction:column; gap:8px; margin-top:16px}
.qopt{display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:10px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.14); background:#000; color:#fff; text-align:left; font-size:14px}
.qopt:hover{border-color:rgba(255,255,255,.3)}
.qopt[aria-pressed="true"]{border-color:#fff; background:#0E0E10; box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.ql{width:26px; height:26px; flex:0 0 26px; border-radius:50%; display:grid; place-items:center; font-family:var(--mono); font-size:11.5px; border:1px solid rgba(255,255,255,.25)}
.qopt[aria-pressed="true"] .ql{background:#fff; color:#000; border-color:#fff}
.qres{display:flex; flex-direction:column; gap:8px; max-height:46vh; overflow:auto}
.qr{padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.08); display:flex; flex-direction:column; gap:3px; font-size:13px}
.qr b{font-weight:500}
.qr.ok{border-color:rgba(126,226,176,.3)} .qr.ok span{color:var(--ok)}
.qr.bad{border-color:rgba(255,138,128,.3)} .qr.bad span{color:var(--bad)}
.qr small{color:var(--muted); font-size:12px}
.go[disabled]{opacity:.4; pointer-events:none}
@media (max-width:1100px){ .cv{grid-template-columns:minmax(0,1fr)} .cv-side{position:static; max-height:none} }
@media (max-width:620px){ .player{border-radius:12px; margin:0 -2px} .qopt{font-size:13.5px} }
