:root {
  --bg: #02030a;
  --glass: rgba(14, 17, 34, 0.62);
  --glass-2: rgba(22, 27, 52, 0.72);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --dim: #97a0c6;
  --faint: #5d6690;
  --accent: #8ea2ff;
  --accent-2: #c38bff;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --grad: linear-gradient(135deg, #7c8cff 0%, #b57bff 55%, #ff8ad8 100%);
  --r: 20px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --vvh: 100dvh;
  --nav-h: 74px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }

#space { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; transition: opacity .4s; }
#labels.hidden { opacity: 0; }
#app { position: fixed; left: 0; right: 0; top: 0; height: var(--vvh); z-index: 2; display: flex; flex-direction: column; pointer-events: none; }
#app > * { pointer-events: auto; }
#app .pass { pointer-events: none; }
#app .pass > * { pointer-events: auto; }

/* ——— етикети на планетите ——— */
.plabel { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 99px; background: rgba(6, 8, 20, .45); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; letter-spacing: .02em; white-space: nowrap; transition: opacity .35s, background .3s; will-change: transform; }
.plabel b { font-weight: 600; font-family: var(--display); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.plabel i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.plabel.off i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.plabel.busy i { animation: pulse 1s infinite; }
.plabel.dim { opacity: .35 !important; }
.plabel.sel { background: rgba(255,255,255,.12); border-color: var(--c); }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.8); opacity: .5 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes shimmer { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }

/* ——— общи ——— */
.screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }
.shade { background: linear-gradient(180deg, rgba(2,3,10,.72), rgba(2,3,10,.9)); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); }
.skrol { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pad { padding: 0 16px; }
.top { padding: calc(var(--sat) + 14px) 16px 10px; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.h1 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--dim); font-size: 13px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.card { padding: 16px; margin-bottom: 12px; animation: fadeUp .35s both; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { height: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--faint); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dot.live { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.2s infinite; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 15px; font-weight: 700; font-size: 15px; letter-spacing: .01em; background: var(--glass-hi); border: 1px solid var(--line-2); transition: transform .12s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border: 0; color: #0b0720; box-shadow: 0 10px 30px -10px rgba(170,120,255,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ok { background: linear-gradient(135deg, #34d399, #10b981); color: #03140d; border: 0; }
.btn.bad { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.4); color: #ffc2cc; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(10,12,28,.5); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); flex: 0 0 auto; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--glass-hi); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: rgba(142,162,255,.18); border-color: rgba(142,162,255,.6); color: #dfe4ff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; flex: 0 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.field { width: 100%; height: 52px; padding: 0 16px; border-radius: 15px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); outline: none; font-size: 16px; transition: border-color .2s, background .2s; }
.field:focus { border-color: var(--accent); background: rgba(142,162,255,.08); }
label.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--dim); margin: 14px 2px 7px; text-transform: uppercase; letter-spacing: .08em; }
.err { color: #ffb4c0; font-size: 14px; min-height: 20px; margin-top: 10px; }
.empty { text-align: center; color: var(--dim); padding: 40px 20px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: 0 0 auto; }

/* ——— вход ——— */
.login { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 20px calc(var(--sab) + 28px); background: linear-gradient(180deg, transparent 20%, rgba(2,3,10,.85) 70%); }
.brand { font-family: var(--display); font-weight: 700; font-size: 58px; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; filter: drop-shadow(0 6px 30px rgba(170,120,255,.45)); }
.brand-sub { color: var(--dim); margin: 10px 0 26px; font-size: 15px; }
.login form { max-width: 440px; width: 100%; }
.keybox { margin: 22px 0 14px; padding: 22px; text-align: center; border-radius: 22px; background: rgba(142,162,255,.08); border: 1px dashed rgba(142,162,255,.5); }
.keybox .key { font-family: var(--display); font-size: 40px; letter-spacing: .12em; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ——— космос ——— */
.cosmos-top { position: relative; z-index: 3; padding: calc(var(--sat) + 12px) 16px 0; display: flex; align-items: center; gap: 10px; }
.cosmos-top .brand { font-size: 20px; letter-spacing: .18em; filter: none; }
.hello { font-size: 12px; color: var(--dim); }
.sheet { margin: 0 12px 12px; padding: 18px 18px 16px; animation: fadeUp .4s both; border-radius: 26px; }
.sheet .pname { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.orb { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset -8px -8px 18px rgba(0,0,0,.55), 0 0 24px -4px var(--c); background: radial-gradient(circle at 32% 30%, var(--c2), var(--c) 45%, var(--c3) 100%); }
.stat-line { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 14px; font-size: 13px; color: var(--dim); }
.stat-line b { color: var(--text); font-weight: 700; }
.live-list { margin: 0 0 12px; display: grid; gap: 8px; }
.live-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: left; width: 100%; }
.hint { position: relative; z-index: 3; text-align: center; color: rgba(200,210,255,.55); font-size: 12px; padding: 0 20px 12px; letter-spacing: .02em; }

/* ——— долно меню ——— */
.nav { flex: 0 0 auto; position: relative; z-index: 5; margin: 0 10px calc(var(--sab) + 8px); height: var(--nav-h); border-radius: 26px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(10,12,28,.72); border: 1px solid var(--line); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--faint); text-decoration: none; letter-spacing: .02em; height: 100%; justify-content: center; position: relative; transition: color .2s; }
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav a .badge { position: absolute; top: 12px; right: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--warn); color: #1a1000; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.nav a.core { color: var(--text); }
.nav a.core .core-orb { width: 58px; height: 58px; border-radius: 50%; margin-top: -30px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f5d0ff, #a78bfa 35%, #4f46e5 75%, #1e1b4b); box-shadow: 0 0 0 5px rgba(10,12,28,.85), 0 0 34px 2px rgba(167,139,250,.65), inset -6px -8px 16px rgba(0,0,0,.45); position: relative; }
.nav a.core .core-orb::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(196,181,253,.45); transform: rotateX(70deg); animation: spin 6s linear infinite; }
.nav a.core .core-orb svg { width: 24px; height: 24px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.nav a.core .core-orb .alert { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(10,12,28,.9); }
.nav a.core::after { display: none; }

/* ——— чат ——— */
.chat { background: linear-gradient(180deg, rgba(2,3,10,.55) 0%, rgba(2,3,10,.82) 30%, rgba(2,3,10,.9)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.chat-head { flex: 0 0 auto; padding: calc(var(--sat) + 6px) 12px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(2,3,10,.6), rgba(2,3,10,.2)); position: relative; }
.chat-head .mini { width: 84px; height: 84px; flex: 0 0 auto; margin: -6px -6px -8px -8px; }
.chat-head .who { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.state { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); min-height: 20px; }
.state.busy { color: #cfd6ff; }
.state.waiting { color: var(--warn); }
.state .sdots span { display: inline-block; width: 4px; height: 4px; margin: 0 1px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }
.state .sdots span:nth-child(2) { animation-delay: .15s } .state .sdots span:nth-child(3) { animation-delay: .3s }
.plan-chip { margin: 8px 12px 0; }
.msgs { padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; animation: fadeUp .25s both; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--grad); color: #0c0822; padding: 11px 15px; border-radius: 20px 20px 6px 20px; font-weight: 600; font-size: 15.5px; line-height: 1.45; box-shadow: 0 10px 26px -12px rgba(170,120,255,.7); white-space: pre-wrap; }
.msg.me .by { font-size: 11px; opacity: .6; margin-bottom: 2px; }
.msg.ai { align-self: flex-start; padding: 13px 15px; border-radius: 6px 20px 20px 20px; background: var(--glass-2); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.msg.ai p { margin: 0 0 10px } .msg.ai p:last-child { margin: 0 }
.msg.ai ul, .msg.ai ol { margin: 4px 0 10px; padding-left: 20px } .msg.ai li { margin: 3px 0 }
.msg.ai h3, .msg.ai h4, .msg.ai h5 { margin: 12px 0 6px; font-family: var(--display); font-weight: 600; font-size: 15px }
.msg.ai code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 6px; }
.msg.ai blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--dim); }
.msg.ai.stream::after { content: ''; display: inline-block; width: 8px; height: 16px; margin-left: 3px; background: var(--accent); vertical-align: -3px; animation: pulse .9s infinite; border-radius: 2px; }
.code { margin: 8px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.35); }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 11px; color: var(--dim); background: rgba(255,255,255,.04); }
.code-h button { font-size: 11px; color: var(--accent); font-weight: 700; }
.code pre, pre.out { margin: 0; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre; }
.tbl { overflow-x: auto; margin: 8px 0 } .tbl table { border-collapse: collapse; font-size: 13px } .tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 9px; text-align: left } .tbl th { background: rgba(255,255,255,.05) }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.files img, .files video { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; display: block; background: rgba(0,0,0,.3); }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(0,0,0,.2); font-size: 12.5px; color: inherit; text-decoration: none; }

/* балончета за действия */
.acts { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 6px; animation: fadeUp .25s both; }
.act { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 10px; border-radius: 99px; background: rgba(142,162,255,.08); border: 1px solid rgba(142,162,255,.2); font-size: 13px; color: #cdd5ff; text-align: left; max-width: 100%; }
.act .ic { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; }
.act .ic svg { width: 15px; height: 15px; }
.act.done .ic { color: var(--ok); } .act.fail .ic { color: var(--bad); } .act.fail { background: rgba(251,113,133,.08); border-color: rgba(251,113,133,.3); color: #ffd1d8; }
.act .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-more { font-size: 12px; color: var(--dim); padding: 2px 12px; text-align: left; }
.act-detail { border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid var(--line); overflow: hidden; margin: 0 0 4px 6px; max-width: calc(100vw - 50px); }
.act-detail .lbl2 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 8px 12px 0; font-weight: 700; }
.act-detail pre { max-height: 260px; overflow: auto; }
.think { align-self: flex-start; max-width: 92%; font-size: 13px; color: var(--dim); padding: 8px 13px; border-radius: 16px; border: 1px dashed rgba(195,139,255,.35); background: rgba(195,139,255,.05); text-align: left; animation: fadeUp .25s both; }
.think b { color: #d8b8ff; font-weight: 700; }
.think .tx { display: none; white-space: pre-wrap; margin-top: 6px; line-height: 1.5; font-style: italic; }
.think.open .tx { display: block; }
.think.live .tx { display: block; max-height: 4.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); display: flex; flex-direction: column; justify-content: flex-end; }
.typing { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 99px; background: linear-gradient(90deg, rgba(142,162,255,.08), rgba(195,139,255,.2), rgba(142,162,255,.08)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; border: 1px solid rgba(142,162,255,.25); font-size: 13.5px; color: #dbe0ff; max-width: 92%; }
.typing .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.typing.waiting { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.4); color: #ffe6a8; animation: none; }
.note { align-self: center; font-size: 12.5px; color: var(--dim); text-align: center; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.04); max-width: 92%; }
.note.error { color: #ffc2cc; background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.3); }
.meta { align-self: flex-start; font-size: 11px; color: var(--faint); padding-left: 6px; margin-top: -4px; }

/* въпрос / потвърждение */
.ask { align-self: stretch; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(251,191,36,.13), rgba(251,191,36,.05)); border: 1px solid rgba(251,191,36,.45); animation: fadeUp .3s both; box-shadow: 0 0 40px -12px rgba(251,191,36,.45); }
.ask .q { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.ask .row { margin-top: 12px; }
.ask .row .btn { flex: 1; }
.ask.done { background: rgba(255,255,255,.03); border-color: var(--line); box-shadow: none; }
.ask .opts { display: grid; gap: 8px; margin: 10px 0 4px; }
.ask .opt { text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line-2); }
.ask .opt.on { border-color: var(--warn); background: rgba(251,191,36,.14); }
.ask .opt b { display: block; font-size: 14.5px; } .ask .opt span { font-size: 12.5px; color: var(--dim); }
.ask .qh { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); margin-top: 12px; }
.closed-bar { flex: 0 0 auto; padding: 14px 14px calc(var(--sab) + 12px); border-top: 1px solid var(--line); background: rgba(6,8,20,.85); }

/* поле за писане */
.composer { flex: 0 0 auto; padding: 8px 10px calc(var(--sab) + 8px); background: linear-gradient(180deg, rgba(2,3,10,0), rgba(2,3,10,.92) 30%); }
.kb-open .composer { padding-bottom: 8px; }
.cbox { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 26px; background: rgba(20,24,46,.88); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cbox textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none; padding: 10px 6px; max-height: 40vh; line-height: 1.4; font-size: 16px; }
.cbox .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); border: 0; }
.cbox .send { background: var(--grad); color: #0b0720; }
.cbox .send svg { width: 19px; height: 19px; }
.cbox .stop { background: rgba(251,113,133,.2); color: #ffc2cc; }
.pending { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.pf { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; text-align: center; color: var(--dim); padding: 4px; }
.pf img, .pf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; display: grid; place-items: center; z-index: 2; }
.pf .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); z-index: 2; transition: width .2s; }
.pf .fn { position: relative; z-index: 1; word-break: break-all; line-height: 1.2; }
.jump { position: absolute; right: 16px; bottom: 100px; z-index: 4; }

/* ——— статус ——— */
.hero { margin: 4px 16px 14px; padding: 20px; border-radius: 26px; position: relative; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, rgba(124,140,255,.35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255,138,216,.22), transparent 55%), var(--glass); border: 1px solid var(--line); }
.hero .big { font-family: var(--display); font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.pcard { padding: 16px; }
.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; }
.bar-w .l { font-size: 10.5px; font-weight: 800; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.bar-w .l b { color: var(--text); letter-spacing: 0; }
.bar-t { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 6px; }
.bar-t i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ok), #a3e635); }
.bar-t i.hi { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.commits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 4px; }
.commit { display: flex; gap: 10px; font-size: 13px; align-items: baseline; }
.commit .h { font-family: var(--mono); font-size: 11px; color: var(--accent); flex: 0 0 auto; }
.commit .s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit .w { color: var(--faint); font-size: 11.5px; flex: 0 0 auto; }
.sec-t { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 22px 18px 10px; }

/* ——— логове ——— */
.srow { display: block; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 10px; }
.srow .t1 { font-weight: 700; font-size: 15px; }
.srow .sum { margin-top: 8px; font-size: 13.5px; color: #c9cfee; line-height: 1.5; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.07); color: var(--dim); }
.tag.p { color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.arow { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.arow .when { color: var(--faint); font-size: 11.5px; flex: 0 0 52px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.day { position: sticky; top: 0; z-index: 1; padding: 10px 16px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: linear-gradient(180deg, rgba(4,5,14,.95), rgba(4,5,14,.8)); }

/* ——— екип ——— */
.pgrid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.toast { position: fixed; left: 50%; top: calc(var(--sat) + 12px); transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 16px; background: rgba(20,24,46,.95); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); animation: fadeUp .3s both; max-width: calc(100vw - 32px); }
.toast.bad { border-color: rgba(251,113,133,.5); color: #ffd1d8; }
.conn { position: fixed; top: calc(var(--sat) + 4px); left: 50%; transform: translateX(-50%); z-index: 40; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: rgba(251,191,36,.18); border: 1px solid rgba(251,191,36,.45); color: #ffe6a8; display: none; }
.conn.show { display: flex; align-items: center; gap: 6px; }

@media (min-width: 760px) {
  .skrol > .wrap, .msgs, .composer, .closed-bar { max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
  .sheet { max-width: 520px; margin-left: auto; margin-right: auto; width: calc(100% - 24px); }
  .nav { max-width: 560px; margin-left: auto; margin-right: auto; width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }

/* брой модули и корона на най-голямата система */
.plabel em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--c); background: rgba(255,255,255,.06); border-radius: 6px; padding: 1px 5px; }
.plabel .crown { color: #fcd34d; font-size: 12px; text-shadow: 0 0 8px rgba(252,211,77,.8); }
.rings { display: grid; gap: 8px; margin: 4px 0 14px; }
.ringrow { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ringrow .rb { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.ringrow .rb i { display: block; height: 100%; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ringrow .rn { flex: 0 0 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.ringrow .rc { flex: 0 0 26px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.modlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.modlist span { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #cfd5f5; }
#app .fill { pointer-events: none !important; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
.actw { display: flex; flex-direction: column; gap: 6px; }
.acts.fold .actw:not(:nth-last-of-type(-n+3)) { display: none; }
.plabel.sun { background: rgba(60,30,6,.55); border-color: rgba(255,179,71,.45); }
.plabel.sun b { color: #ffe2b0; letter-spacing: .18em; }
.newver { position: fixed; top: calc(var(--sat) + 8px); left: 50%; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--grad); color: #0b0720; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 30px -8px rgba(170,120,255,.8); animation: fadeUp .35s both; white-space: nowrap; }
.newver svg { width: 16px; height: 16px; }
