/* VIT app shell and built-in screens. Colours, radii and type come from tokens.css — nothing here names a colour of its own
   except brand accents, so all five themes repaint every screen. */
html, body, #app { height: 100%; }
body { background: var(--scene); background-color: var(--bg); transition: background-color 0.6s var(--ease); }
/* the room: a real interior, dimmed and out of focus, that every glass panel floats in (spatial theme) */
#room { position: fixed; inset: -3%; z-index: 0; display: none; background: #0b0a09 url(/media/room.jpg) center / cover no-repeat; filter: brightness(0.5) saturate(0.85) blur(5px); transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04); will-change: transform; }
#room::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(40, 28, 16, 0) 30%, rgba(8, 6, 4, 0.72) 100%), linear-gradient(180deg, rgba(60, 40, 20, 0.18), rgba(0, 0, 0, 0.3)); }
:root[data-theme="spatial"] #room, :root:not([data-theme]) #room { display: block; }
/* horizon: a real dusk over a sea of clouds (Pixabay, free licence), drifting very slowly */
#sky { position: fixed; inset: -2%; width: 104%; height: 104%; object-fit: cover; z-index: 0; display: none; filter: brightness(0.74) saturate(1.05); animation: sky-drift 40s ease-in-out infinite alternate; }
:root[data-theme="horizon"] #sky { display: block; }
@keyframes sky-drift { to { transform: scale(1.06) translate(-1%, 0.6%); } }
:root[data-theme="horizon"] body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 8, 16, 0.45) 0%, rgba(6, 8, 16, 0) 30%, rgba(6, 8, 16, 0) 60%, rgba(6, 8, 16, 0.55) 100%); }
@media (prefers-reduced-motion: reduce) { #sky { animation: none; } }
#app { position: relative; z-index: 1; }

/* ── intro: welcome in five languages, then the globe ── */
.intro { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; overflow: hidden; transition: opacity 0.9s var(--ease), visibility 0.9s; }
.intro.out { opacity: 0; visibility: hidden; }
.intro .glow { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 42, 0.12), rgba(120, 80, 255, 0.05) 40%, transparent 65%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
.intro .line { position: absolute; left: 24px; right: 24px; text-align: center; color: #fff; font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; font-weight: 600; font-size: clamp(30px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -0.035em; opacity: 0; filter: blur(18px); transform: translateY(18px) scale(0.985); transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1.2s var(--ease); text-wrap: balance; }
.intro .line b { font-weight: 600; background: linear-gradient(90deg, #fff 0%, #ffd2a6 50%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro .line.in { opacity: 1; filter: blur(0); transform: none; }
.intro .line.gone { opacity: 0; filter: blur(14px); transform: translateY(-14px) scale(1.01); }
.intro .globe { position: absolute; top: 50%; left: 50%; width: clamp(84px, 12vw, 132px); aspect-ratio: 1; margin: calc(clamp(84px, 12vw, 132px) / -2) 0 0 calc(clamp(84px, 12vw, 132px) / -2); opacity: 0; filter: invert(1) blur(16px); transform: scale(0.7) rotate(-30deg); transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.5s var(--ease), top 1.1s var(--ease); }
.intro .globe.in { opacity: 1; filter: invert(1) blur(0) drop-shadow(0 0 30px rgba(255, 160, 80, 0.55)); transform: none; }
.intro .globe.up { top: 13%; transform: scale(0.5); }
.intro .skip { position: absolute; bottom: 28px; right: 28px; color: rgba(255, 255, 255, 0.5); font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.intro .skip:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.75; } }

/* ── sign-in ── */
.welcome { height: 100%; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.welcome-in { width: min(420px, 100%); text-align: center; animation: rise 1s var(--ease) both; padding: 34px 28px 26px; border-radius: var(--r-xl); }
.welcome .mark { width: 64px; height: 64px; filter: invert(var(--logo-invert)); margin: 0 auto 14px; display: block; }
.wordmark { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; } .wordmark sup { font-size: 0.58em; font-weight: 700; margin-left: 1px; vertical-align: super; line-height: 0; }
.welcome h1 { font-size: 34px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 12px 0 8px; }
.welcome p.lead { color: var(--ink2); font-size: 16px; margin-bottom: 24px; }
.welcome form { display: grid; gap: 10px; }
.welcome .alt { margin-top: 16px; font-size: 14px; color: var(--ink2); } .welcome .alt button { color: var(--accent); font-weight: 500; }
.welcome .fine { margin-top: 22px; font-size: 12px; color: var(--mute); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ── shell: floating top bar, worlds as pills ── */
.shell { height: 100%; display: flex; flex-direction: column; }
.top { position: relative; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px 6px; flex: none; }
body.desktop .top { padding-left: 88px; -webkit-app-region: drag; } body.desktop .top button, body.desktop .top a { -webkit-app-region: no-drag; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); flex: 1; min-width: 0; }
.logo img { width: 28px; height: 28px; filter: invert(var(--logo-invert)); transition: transform 0.8s var(--ease); } .logo:hover img { transform: rotate(40deg); }
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; flex: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink2); transition: background 0.35s var(--ease), color 0.25s, transform 0.25s var(--ease); white-space: nowrap; position: relative; }
.tab .icon { display: none; width: 21px; height: 21px; }
.tab:hover { color: var(--ink); } .tab:active { transform: scale(0.95); }
.tab { z-index: 1; } .tab.on { color: var(--pill-ink); } .tabs { position: relative; }
.sub { position: relative; } .sub .ind { background: var(--soft); box-shadow: none; } .subtab { position: relative; z-index: 1; }
.tab .badge, .subtab .badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; margin-left: 6px; }
.top-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.ava { width: 34px; height: 34px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; transition: transform 0.25s var(--ease); } .ava:active { transform: scale(0.92); }
.sub { display: flex; justify-content: center; gap: 2px; padding: 2px 12px 0; flex: none; overflow-x: auto; scrollbar-width: none; }
.subtab { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mute); white-space: nowrap; transition: color 0.2s, background 0.3s var(--ease); display: inline-flex; align-items: center; }
.subtab:hover { color: var(--ink); } .subtab.on { color: var(--ink); font-weight: 600; }
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
@media (min-width: 861px) { body.bare .top { display: none; } }
.page { flex: 1; min-height: 0; padding: 26px clamp(16px, 4vw, 48px) 40px; }
.page-in { max-width: 920px; margin: 0 auto; }
.page h1 { font-size: 34px; letter-spacing: -0.028em; line-height: 1.1; font-weight: 600; }
.page .sub-line { color: var(--ink2); font-size: 16px; margin: 8px 0 24px; max-width: 62ch; }
.card { background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--panel-line); border-radius: var(--r-lg); padding: 22px; }
.card.soft { background: var(--soft); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 650; }
.card .hint { color: var(--ink2); font-size: 13px; margin-top: 4px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; } .row .grow { flex: 1; min-width: 0; }
.tag.new { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); } .tag.accepted, .tag.working { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .tag.done { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .tag.cancelled { color: var(--mute); }
.loading { flex: 1; display: grid; place-items: center; color: var(--mute); }
.loading i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--soft2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }

/* ── theme picker: clean frames ── */
.sheet-back { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 20px; animation: fade 0.35s var(--ease) both; }
.sheet { width: min(980px, 100%); max-height: 100%; padding: 28px; border-radius: var(--r-xl); animation: rise 0.5s var(--ease) both; }
.sheet h2 { font-size: 28px; letter-spacing: -0.03em; } .sheet > p { color: var(--ink2); margin: 6px 0 22px; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.frame { text-align: left; display: grid; gap: 10px; transition: transform 0.4s var(--ease); } .frame:hover { transform: translateY(-4px); }
.frame .pic { aspect-ratio: 4 / 3; border-radius: 14px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--panel-line); transition: box-shadow 0.3s var(--ease); }
.frame.on .pic { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.frame b { font-size: 15px; letter-spacing: -0.01em; display: block; } .frame small { color: var(--mute); font-size: 12.5px; line-height: 1.3; display: block; }
.pic i { position: absolute; display: block; }
.pic.spatial { background: radial-gradient(90% 70% at 85% 0%, #4a3d30, #121215 65%); } .pic.spatial i { background: rgba(60, 60, 66, 0.75); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 7px; }
.pic.ribbon { background: radial-gradient(80% 50% at 50% 115%, #173a66, #040507 70%); perspective: 300px; } .pic.ribbon i { top: 30%; height: 40%; width: 24%; border-radius: 4px; }
.pic.axon { background: #000; } .pic.axon i { border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 1px; }
.pic.aurora { background: radial-gradient(50% 45% at 45% 45%, rgba(124, 92, 255, 0.5), transparent 70%), radial-gradient(40% 35% at 62% 55%, rgba(255, 122, 26, 0.6), transparent 70%), #fff; } .pic.aurora i { background: #111; border-radius: 2px; }
.pic.horizon { background: linear-gradient(180deg, #1a2440 0%, #5a5a78 38%, #e89a5c 50%, #33405c 52%, #0f1522 100%); } .pic.horizon i { background: rgba(20, 22, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; }

/* ── VIT: the conversation ── */
.vit { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vit-top { position: absolute; top: 6px; right: 14px; display: flex; gap: 2px; z-index: 5; }
.vit-top { align-items: center; }
/* VIT's voice: the «Отвечать голосом» pill and «Прослушать» under an answer — quiet until they are on */
.vt-voice { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; margin-right: 4px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink2); background: var(--soft); transition: background 0.2s, color 0.2s, transform 0.25s var(--ease); }
.vt-voice .icon { width: 16px; height: 16px; } .vt-voice:hover { background: var(--soft2); color: var(--ink); } .vt-voice:active { transform: scale(0.95); }
.vt-voice.on { background: var(--pill-bg); color: var(--pill-ink); }
.listen { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font: inherit; color: var(--ink2); background: var(--soft); transition: background 0.2s, color 0.2s; }
.listen .icon { width: 11px; height: 11px; } .listen:hover { background: var(--soft2); color: var(--ink); } .listen.on { background: var(--pill-bg); color: var(--pill-ink); }
@media (max-width: 480px) { .vt-voice span { display: none; } .vt-voice { width: 34px; padding: 0; justify-content: center; } }
.thread { flex: 1; min-height: 0; padding: 0 clamp(14px, 4vw, 40px); }
.thread-in { max-width: 740px; margin: 0 auto; padding-bottom: 28px; }
.vit { position: relative; }
.stage { position: absolute; left: 0; right: 0; top: 0; display: grid; justify-items: center; padding-top: 3vh; transition: padding 0.8s var(--ease); z-index: 2; pointer-events: none; }
.stage canvas { --orb: min(380px, 78vw, 46vh); width: var(--orb); height: var(--orb); transition: width 0.8s var(--ease), height 0.8s var(--ease), margin 0.8s var(--ease); margin: -30px 0 -40px; }
.stage canvas { pointer-events: auto; cursor: grab; touch-action: none; } .stage canvas:active { cursor: grabbing; }
.stage .state { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); height: 20px; }
.thread-in { padding-top: calc(3vh + min(380px, 78vw, 46vh) - 46px); transition: padding 0.8s var(--ease); }
.vit.talk .stage { padding-top: 0; }
.vit.talk .stage canvas { width: 150px; height: 150px; margin: -26px 0 -30px; }
.vit.talk .thread-in { padding-top: 104px; }
.vit.talk .thread { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 34px, #000 128px); mask-image: linear-gradient(180deg, transparent 0, transparent 34px, #000 128px); }
.hello { text-align: center; padding: 6px 0 0; animation: rise 0.9s var(--ease) both; }
.hello h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
.hello p { color: var(--ink2); font-size: 18px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--panel-line); font-size: 14px; font-weight: 500; transition: background 0.2s, transform 0.25s var(--ease); }
.chip:hover { background: var(--soft2); } .chip:active { transform: scale(0.96); }
.msg { margin-top: 22px; animation: rise 0.6s var(--ease) both; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { background: var(--pill-bg); color: var(--pill-ink); border-radius: 22px 22px 6px 22px; padding: 10px 16px; max-width: 84%; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.vitm .text { font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4 { font-size: 1.05em; letter-spacing: -0.015em; margin: 16px 0 6px; font-weight: 650; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md li { margin: 3px 0; }
.md code { font-family: var(--mono); font-size: 0.88em; background: var(--soft); padding: 2px 5px; border-radius: 6px; }
.md pre { background: var(--soft); border-radius: 12px; padding: 12px 14px; overflow-x: auto; font-size: 13px; } .md pre code { background: none; padding: 0; }
.md sup a { font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); padding: 1px 5px; border-radius: 6px; margin-left: 2px; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--mute); }
.meta .who { display: inline-flex; align-items: center; gap: 6px; }
.notice { font-size: 12.5px; color: var(--ink2); background: var(--soft); border-radius: 10px; padding: 7px 11px; margin: 0 0 10px; display: inline-flex; gap: 7px; align-items: center; } .notice .dot { background: var(--warn); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.source { display: inline-flex; align-items: center; gap: 7px; max-width: 260px; height: 30px; padding: 0 11px 0 5px; border-radius: 999px; background: var(--soft); font-size: 12.5px; color: var(--ink); }
.source:hover { background: var(--soft2); text-decoration: none; }
.source b { width: 20px; height: 20px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); display: grid; place-items: center; font-size: 11px; flex: none; } .source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remembered { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; animation: rise 0.7s var(--ease) both; }
.remembered .tag { height: auto; min-height: 26px; padding: 4px 11px; white-space: normal; text-align: left; font-weight: 500; color: var(--ink); cursor: pointer; } .remembered .tag em { font-style: normal; color: var(--ink2); font-weight: 600; }
.plan { border: 1px solid var(--panel-line); border-radius: 22px; padding: 16px 18px; margin: 0 0 14px; background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .plan-head b { font-size: 15px; letter-spacing: -0.01em; } .plan-head small { color: var(--mute); margin-left: auto; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.step { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.step .mark { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 1px; border: 1.5px solid var(--soft2); color: #fff; font-size: 12px; transition: all 0.35s var(--ease); }
.step.run .mark { border-color: transparent; border-top-color: var(--hot); border-right-color: var(--hot); animation: spin 0.8s linear infinite; }
.step.done .mark { background: var(--ok); border-color: var(--ok); } .step.fail .mark { background: var(--soft2); }
.step .who { font-weight: 600; display: flex; align-items: center; gap: 7px; } .step .who i { width: 8px; height: 8px; border-radius: 50%; }
.step .task { color: var(--ink2); font-size: 13px; } .step .open { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--accent); white-space: nowrap; padding-top: 1px; }
.step.wait { opacity: 0.5; }
.propose { border-radius: 18px; background: var(--soft); padding: 14px 16px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.propose .grow { flex: 1; min-width: 180px; } .propose b { display: block; font-size: 14px; } .propose small { color: var(--ink2); }
/* VIT's actions: one line per thing done in a world */
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 0 0 12px; border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 0.5px var(--line); max-width: 600px; animation: rise 0.5s var(--ease) both; }
.act .act-ic { flex: none; width: 34px; height: 34px; } .act .act-ic .wi, .act .act-ic svg { display: block; width: 34px; height: 34px; }
.act .grow { flex: 1; min-width: 160px; } .act small { display: block; font-size: 11.5px; color: var(--ink2); letter-spacing: 0.01em; } .act b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.act.undone b { text-decoration: line-through; color: var(--ink2); } .act.fail .act-ic { opacity: 0.55; } .act .act-note { font-size: 12.5px; color: var(--ink2); }
.typing { display: inline-flex; gap: 5px; padding: 8px 0; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
.composer-wrap { padding: 6px clamp(14px, 4vw, 40px) 16px; }
.composer { max-width: 740px; margin: 0 auto; display: flex; align-items: flex-end; gap: 6px; border-radius: 30px; padding: 7px 7px 7px 20px; transition: box-shadow 0.3s, border-color 0.3s; }
.composer:focus-within { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: none; font-size: 17px; line-height: 1.4; padding: 8px 0; max-height: 160px; min-height: 40px; color: var(--ink); }
.composer textarea::placeholder { color: var(--mute); }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform 0.25s var(--ease), background 0.2s, opacity 0.2s; }
.round:active { transform: scale(0.9); }
.round.send { background: var(--pill-bg); color: var(--pill-ink); } .round.stop { background: var(--hot); color: #fff; }
.round.mic { color: var(--ink2); } .round.mic:hover { background: var(--soft2); } .round.mic.live { background: var(--bad); color: #fff; animation: pulse 1.4s infinite; }
.foot { text-align: center; font-size: 11.5px; color: var(--mute); margin-top: 8px; }
.pop { position: absolute; top: 48px; right: 14px; width: 300px; max-height: 60vh; border-radius: 20px; padding: 8px; z-index: 20; animation: rise 0.35s var(--ease) both; }
.pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pop button:hover { background: var(--soft2); } .pop small { display: block; color: var(--mute); font-size: 11px; } .pop .none { padding: 14px; color: var(--mute); font-size: 13px; text-align: center; }

/* ── memory: the console ── */
.mem { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 14px clamp(12px, 2.4vw, 28px) 20px; }
.mem-stats { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: var(--r-lg); display: grid; align-content: space-between; gap: 8px; min-height: 96px; }
.stat.title h1 { font-size: 30px; letter-spacing: -0.03em; line-height: 1; } .stat.title p { color: var(--ink2); font-size: 13px; line-height: 1.35; }
.stat b { font-size: 34px; letter-spacing: -0.04em; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; } .stat b small { font-size: 14px; color: var(--mute); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; } .spark i { flex: 1; min-height: 2px; border-radius: 2px; background: var(--soft2); } .spark i.hit { background: var(--hot); }
.space { min-height: 280px; border-radius: var(--r-xl); background: radial-gradient(80% 80% at 50% 45%, #15132c 0%, #07070c 72%); position: relative; overflow: hidden; border: 1px solid var(--panel-line); box-shadow: var(--shadow); }
.space canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.space .hint { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: rgba(255, 255, 255, 0.42); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.space .cats { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; } .space .cats > * { pointer-events: auto; }
.cat { height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: all 0.25s; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cat i { width: 8px; height: 8px; border-radius: 50%; } .cat small { color: rgba(255, 255, 255, 0.5); font-weight: 600; } .cat.off { opacity: 0.38; }
.mem-side { border-radius: var(--r-xl); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mem-side .head { padding: 14px 14px 10px; display: grid; gap: 10px; }
.mem-list { flex: 1; min-height: 0; padding: 0 8px 10px; }
.mem-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; width: 100%; text-align: left; padding: 11px 10px; border-radius: 14px; transition: background 0.2s; align-items: start; }
.mem-item:hover { background: var(--soft); } .mem-item.on { background: var(--soft2); }
.mem-item > i { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; } .mem-item p { font-size: 14.5px; line-height: 1.35; letter-spacing: -0.005em; }
.mem-item .cap { grid-column: 2; display: flex; gap: 10px; align-items: center; font-size: 10.5px; } .mem-item .bar { flex: none; width: 34px; height: 3px; border-radius: 2px; background: var(--soft2); overflow: hidden; } .mem-item .bar u { display: block; height: 100%; background: var(--ink2); }
.mem-detail { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: grid; gap: 10px; animation: rise 0.4s var(--ease) both; }
.mem-detail p { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; } .mem-detail blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--soft2); color: var(--ink2); font-size: 12.5px; }
.mem-detail .links { display: grid; gap: 4px; } .mem-detail .links button { text-align: left; font-size: 13px; color: var(--ink2); display: flex; gap: 8px; align-items: baseline; } .mem-detail .links button:hover { color: var(--ink); } .mem-detail .links i { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ── works ── */
.works { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 12px; padding: 14px clamp(12px, 2.4vw, 28px) 20px; }
.works-list { border-radius: var(--r-xl); padding: 20px 14px; min-height: 0; } .works-list h1 { font-size: 28px; letter-spacing: -0.03em; margin: 0 6px 16px; }
.job { border-radius: 18px; padding: 14px 14px 10px; margin-bottom: 8px; background: var(--soft); } .job > b { font-size: 15px; letter-spacing: -0.01em; display: block; } .job > small { color: var(--mute); font-family: var(--mono); font-size: 11px; }
.job .files { margin-top: 8px; display: grid; gap: 2px; }
.file { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 9px; border-radius: 10px; font-size: 13.5px; } .file:hover { background: var(--soft2); } .file.on { background: var(--pill-bg); color: var(--pill-ink); }
.file i { width: 8px; height: 8px; border-radius: 50%; flex: none; } .file span { opacity: 0.6; margin-left: auto; font-size: 11.5px; }
.viewer { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; } .viewer-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; } .viewer-bar .grow { flex: 1; }
.viewer-body { flex: 1; min-height: 0; padding: 26px clamp(18px, 4vw, 44px); } .viewer-body .md { max-width: 68ch; font-size: 16px; } .viewer-body .md h1 { font-size: 26px; letter-spacing: -0.025em; margin: 0 0 6px; }
.viewer iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.back { display: none; }

/* ── requests, agents ── */
.req { display: grid; gap: 10px; } .req-top { display: flex; gap: 12px; align-items: flex-start; } .req-top b { font-size: 16px; letter-spacing: -0.01em; } .req-top .grow { flex: 1; min-width: 0; }
.req p { color: var(--ink2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.log { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; } .log div { display: flex; gap: 10px; font-size: 13px; } .log time { color: var(--mute); width: 92px; flex: none; font-family: var(--mono); font-size: 11.5px; padding-top: 1px; }
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.agent { border-radius: 24px; padding: 18px; display: grid; gap: 8px; align-content: start; transition: transform 0.4s var(--ease); } .agent:hover { transform: translateY(-3px); }
.agent .glyph { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); } .agent b { font-size: 16px; letter-spacing: -0.015em; } .agent p { color: var(--ink2); font-size: 13px; } .agent small { color: var(--mute); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── settings ── */
.set-tabs { margin-bottom: 18px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.model { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); } .model:first-of-type { border-top: 0; padding-top: 6px; }
.model .name { display: flex; align-items: center; gap: 9px; font-weight: 600; } .model .name small { color: var(--mute); font-weight: 400; }
.model .why { font-size: 12.5px; color: var(--ink2); margin-top: 2px; } .model .inputs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .model .acts { display: flex; gap: 8px; align-items: center; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; } .kv:first-of-type { border-top: 0; } .kv span { color: var(--ink2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 14px; }
.om { border-radius: 20px; background: var(--soft); padding: 15px 16px 14px; display: grid; gap: 8px; align-content: start; position: relative; overflow: hidden; }
.om .head { display: flex; align-items: baseline; gap: 8px; } .om b { font-size: 15.5px; letter-spacing: -0.01em; } .om .by { color: var(--mute); font-size: 12px; }
.om p { font-size: 13px; color: var(--ink2); line-height: 1.35; min-height: 35px; }
.om .cap { display: flex; gap: 10px; } .om .acts { display: flex; gap: 6px; align-items: center; min-height: 32px; }
.om .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--hot); transition: width 0.4s linear; }
.om.have { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 45%, transparent); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; } .faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-weight: 400; font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease); } .faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink2); margin-top: 8px; font-size: 14.5px; max-width: 64ch; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; align-items: center; } kbd { font-family: var(--mono); font-size: 12px; background: var(--soft2); border-radius: 7px; padding: 3px 8px; white-space: nowrap; }

/* ── phone ── */
@media (max-width: 860px) {
  .tabs { position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; justify-content: space-around; border-radius: 26px; padding: 5px; }
  .tab { flex-direction: column; gap: 1px; height: 48px; padding: 0 4px; font-size: 10px; flex: 1; border-radius: 20px; min-width: 0; } .tab .icon { display: block; } .tab .badge { position: absolute; top: 3px; right: 18%; margin: 0; }
  .main { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .sub { justify-content: flex-start; }
  .vit.talk .stage canvas { width: 116px; height: 116px; } .vit.talk .thread-in { padding-top: 82px; }
  .mem { grid-template-columns: 1fr; grid-template-rows: auto minmax(300px, 46vh) auto; overflow-y: auto; } .mem-stats { grid-template-columns: 1fr 1fr; } .stat.title { grid-column: 1 / -1; min-height: 0; } .mem-side { max-height: none; overflow: visible; } .mem-list { overflow: visible; }
  .works { grid-template-columns: 1fr; } .works .viewer { display: none; } .works.open .works-list { display: none; } .works.open .viewer { display: flex; } .back { display: grid; }
  .model .inputs { grid-template-columns: 1fr; }
  .page h1 { font-size: 28px; }
}

/* ── screens change like in an app: the old one steps back and blurs, the new one comes into focus; a tile grows into the screen it opens ── */
.main { view-transition-name: main; } .top { view-transition-name: chrome; } .sub { view-transition-name: subnav; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(main) { animation: vt-out 0.2s ease-out both; }
::view-transition-new(main) { animation: vt-in 0.5s var(--ease) both; }
::view-transition-old(chrome), ::view-transition-new(chrome), ::view-transition-old(subnav), ::view-transition-new(subnav) { animation-duration: 0.25s; }
::view-transition-group(open) { animation-duration: 0.56s; animation-timing-function: cubic-bezier(0.28, 1.04, 0.36, 1); }
::view-transition-old(open) { animation: vt-fade-out 0.22s ease-out both; height: 100%; object-fit: cover; }
::view-transition-new(open) { animation: vt-fade-in 0.38s ease-out both; height: 100%; object-fit: cover; }
:root[data-nav="open"]::view-transition-old(main), :root[data-nav="open"]::view-transition-new(main) { animation-duration: 0.3s; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.014); filter: blur(10px); } }
@keyframes vt-fade-out { to { opacity: 0; } } @keyframes vt-fade-in { from { opacity: 0; } }

/* press answers at once */
.tab:active, .subtab:active, .chip:active, .mem-item:active, .file:active, .frame:active, .om .btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.proj { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); } .proj:first-of-type { border-top: 0; }
.proj .dot { margin-top: 7px; } .proj .name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .proj .name a { font-weight: 600; font-size: 15.5px; color: var(--ink); } .proj p { color: var(--ink2); font-size: 14px; margin: 2px 0 4px; } .proj small { display: block; }
.md table { border-collapse: collapse; margin: 0 0 10px; font-size: 0.92em; display: block; overflow-x: auto; } .md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; } .md th { background: var(--soft); font-weight: 600; } .md blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid var(--soft2); color: var(--ink2); } .md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ── nine worlds in the bar: tighter on a laptop, icons only when the window is narrow ── */
@media (min-width: 861px) and (max-width: 1360px) { .tab { padding: 0 11px; font-size: 13px; } .logo .wordmark { display: none; } }
@media (min-width: 861px) and (max-width: 1120px) { .tab { padding: 0 10px; } .tab .icon { display: block; width: 19px; height: 19px; } .tab .tl { display: none; } }
@media (max-width: 860px) { .tab { font-size: 9px; padding: 0 1px; } .tab .icon { width: 19px; height: 19px; } }
@media (max-width: 420px) { .tab .tl { display: none; } .tab { height: 42px; } }

/* ── access: a quiet line under the greeting, a card instead of an answer when VIT is not included ── */
.plan-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--ink2); }
.plan-note:empty { display: none; }
.plan-note .icon { width: 15px; height: 15px; color: var(--mute); }
.plan-note button { color: var(--accent); font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.lock-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--soft, rgba(127, 127, 127, 0.08)); box-shadow: inset 0 0 0 0.5px var(--line, rgba(127, 127, 127, 0.2)); max-width: 560px; }
.lock-card b { display: block; font-size: 15px; } .lock-card small { display: block; color: var(--ink2); font-size: 13.5px; margin-top: 2px; line-height: 1.4; }
.lc-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 170, 90, 0.25), rgba(120, 90, 255, 0.2)); color: var(--ink); }
.lc-ic .icon { width: 18px; height: 18px; }
.plan-card .cap { display: block; margin-bottom: 2px; }

/* the brain: pure black behind everything, the room and the sky step away */
body.void { background: #000; } body.void #room, body.void #sky { opacity: 0; transition: opacity 0.5s; }
body.void .top .tabs { background: rgba(20, 20, 24, 0.7); }

/* ── «Все миры»: round glass icons over the blurred room, like the visionOS home ── */
.launch { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background 0.32s, backdrop-filter 0.32s, -webkit-backdrop-filter 0.32s; }
.launch.in { background: rgba(0, 0, 0, 0.32); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }
.lc-grid { display: grid; grid-template-columns: repeat(8, 96px); gap: 30px 18px; justify-content: center; }
.lc-app { display: grid; justify-items: center; gap: 10px; color: #fff; opacity: 0; transform: scale(0.7) translateY(18px);
  transition: opacity 0.42s var(--ease) calc(var(--i) * 22ms), transform 0.55s var(--spring) calc(var(--i) * 22ms); }
.launch.in .lc-app { opacity: 1; transform: none; }
.lc-ic { width: 92px; height: 92px; border-radius: 50%; display: block; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); transition: transform 0.35s var(--spring), box-shadow 0.3s; }
.lc-ic .wi, .lc-ic svg { display: block; width: 100%; height: 100%; }
.lc-app:hover .lc-ic { transform: scale(1.07); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 24px 50px rgba(0, 0, 0, 0.45); }
.lc-app:active .lc-ic { transform: scale(0.95); }
.lc-app.on .lc-ic { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 18px 40px rgba(0, 0, 0, 0.4); }
.lc-name { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.92); letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
@media (max-width: 860px) { .lc-grid { grid-template-columns: repeat(4, 76px); gap: 24px 14px; } .lc-ic { width: 66px; height: 66px; } .lc-name { font-size: 12px; } }
@media (max-width: 380px) { .lc-grid { grid-template-columns: repeat(3, 80px); } }
.tab.more .icon { display: block; width: 18px; height: 18px; }

/* music playing in another world */
.mini { display: flex; align-items: center; gap: 2px; height: 34px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 0.5px var(--panel-line); margin-right: 6px; max-width: 240px; }
.mini.hide { display: none; }
.mini-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); } .mini-t > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-p { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; color: var(--ink); flex: none; } .mini-p:hover { background: var(--soft); }
.mini-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; } .mini-eq i { width: 2.5px; height: 4px; border-radius: 1px; background: #ff375f; }
.mini-eq.on i { animation: mini-eq 0.9s ease-in-out infinite; } .mini-eq.on i:nth-child(2) { animation-delay: 0.2s; } .mini-eq.on i:nth-child(3) { animation-delay: 0.4s; }
@keyframes mini-eq { 50% { height: 12px; } }
@media (max-width: 860px) { .mini { max-width: 150px; } }

/* the owner's control panel */
.adm-list { display: grid; gap: 2px; margin-top: 12px; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 0.5px solid var(--line); flex-wrap: wrap; }
.adm-row:first-child { border-top: 0; }
.adm-row b { display: block; font-size: 14.5px; font-weight: 600; } .adm-row small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 1px; }
.adm-row .grow { flex: 1; min-width: 180px; } .adm-row .seg { margin-left: auto; }

/* ── iPhone и iPad: pairing over the home network ── */
.lan-card .row { align-items: flex-start; }
.lan-sw { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.lan-body { margin-top: 14px; } .lan-body:empty { display: none; }
.lan-pair { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 22px; align-items: center; } .lan-card { min-width: 0; overflow: hidden; } .lan-card .grow { min-width: 0; }
.lan-qr { width: 196px; height: 196px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.lan-qr svg { display: block; width: 100%; height: 100%; }
.lan-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 9px; font-size: 14.5px; }
.lan-steps li { display: flex; gap: 10px; align-items: center; } .lan-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft2); font-size: 12px; font-weight: 600; }
.lan-codebox { margin: 16px 0 10px; display: grid; gap: 2px; }
.lan-code { font: 600 24px var(--mono); letter-spacing: 0.14em; }
.lan-url { font-family: var(--mono); font-size: 12px; margin: 8px 0 0; }
.lan-devs { margin-top: 18px; display: grid; gap: 8px; } .lan-dev { align-items: center !important; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.lan-dev small { display: block; margin: 0; }
.lan-note { margin-top: 16px; font-size: 12.5px; }
@media (max-width: 640px) { .lan-pair { grid-template-columns: minmax(0, 1fr); justify-items: center; } .lan-side { width: 100%; } .lan-card .row { flex-wrap: wrap; } .lan-sw { white-space: normal; width: 100%; justify-content: space-between; } }
/* phone: the spatial home's top row loses the «Профиль» pill (the avatar in the bar does the same) so nothing runs off screen */
@media (max-width: 520px) { .sp-nav .sp-contact { display: none; } .sp-nav { right: auto; } }

/* the VITON ID photo in the round avatar */
.ava { overflow: hidden; }
.ava-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ── phone: the system font everywhere, no frames, calm chrome — whatever theme is chosen on the Mac ── */
@media (max-width: 860px) {
  :root, :root[data-theme] { --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif; }
  :root[data-theme="axon"], :root[data-theme="ribbon"] { --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px; --panel-line: rgba(255, 255, 255, 0.08); --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45); }
  body { font-family: var(--font); }
  .cap { font-family: var(--font); letter-spacing: 0.02em; text-transform: none; font-size: 12.5px; font-weight: 600; }
  .top { padding: calc(8px + env(safe-area-inset-top)) 16px 6px; }
  .top .logo .wordmark { display: inline; font-size: 15px; }
  .top-right .icon-btn { display: none; }
  body.desktop .top { padding-left: 16px; }
  .tabs { border-radius: 30px; }
  .tab { font-size: 10px; font-weight: 600; }
  .tab.on { color: var(--pill-ink); }
}

/* phone: the worlds' glass windows become the screen itself — no frame around everything, content edge to edge */
@media (max-width: 860px) {
  .ms-win, .mt-win, .cn-win, .mu-win, .ap-win { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; outline: 0 !important;
    margin: 0 !important; inset: 0 !important; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; }
  .ms-win::before, .mt-win::before, .cn-win::before, .mu-win::before, .ap-win::before, .ms-win::after, .mt-win::after, .cn-win::after, .mu-win::after, .ap-win::after { display: none !important; }
  .view:has(> .ms-win), .view:has(> .mt-win), .view:has(> .cn-win), .view:has(> .mu-win), .view:has(> .ap-win) { padding: 0 !important; }
  .glass { box-shadow: none; }
}

/* phone tab bar: no sliding pill — the active world simply lights up, with a small dot under it */
@media (max-width: 860px) {
  .tabs { background: rgba(22, 22, 26, 0.82) !important; -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.5); }
  .tabs > .ind { display: none !important; }
  .tab { color: rgba(245, 245, 247, 0.45); position: relative; justify-content: center; }
  .tab.on, .tab.on:hover { color: #fff; background: none; }
  .tab.on::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; }
  .tab .icon { width: 22px; height: 22px; }
}
@media (max-width: 860px) {
  .mr-stage { border-radius: 0 !important; box-shadow: none !important; margin: 0 -12px; }
  .mr-start-in { padding-top: 36px; }
}
@media (max-width: 860px) { .top-right .icon-btn.sl-open { display: grid; } }
