/* KalisPro shared styles v2 - kalispro.uk, doggyguard.kalispro.uk, liveecho.kalispro.uk */
:root {
  --bg: #090818;
  --bg-2: #0f0d26;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(160, 150, 255, .16);
  --line-2: rgba(160, 150, 255, .32);
  --text: #f1efff;
  --muted: #a9a5cf;
  --amber: #ffb238;
  --orange: #ff7a45;
  --violet: #8b7bff;
  --teal: #2fd6c8;
  --a1: var(--amber);
  --a2: var(--orange);
  --ink: #0b0a1d;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}
body, .product { --grad: linear-gradient(120deg, var(--a1), var(--a2)); }
body.liveecho { --a1: var(--violet); --a2: var(--teal); }
body.kalispro { --a1: var(--amber); --a2: var(--violet); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html[data-lang="pl"] [lang="en"],
html[data-lang="en"] [lang="pl"] { display: none !important; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}
/* backdrop: faint grid plus two glows in the product colours */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 85% -10%, color-mix(in srgb, var(--a2) 26%, transparent), transparent 70%),
    radial-gradient(50rem 34rem at -10% 20%, color-mix(in srgb, var(--a1) 20%, transparent), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--a1); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(9, 8, 24, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; font: 700 1.2rem/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand small { font: 500 .78rem/1 var(--body); color: var(--muted); }
.brand img, .brand svg { width: 34px; height: 34px; flex: none; border-radius: 9px; }
body.doggyguard .brand img { width: 42px; height: 42px; border-radius: 0; margin: -6px 0 -2px; filter: drop-shadow(0 4px 10px rgba(255, 122, 69, .35)); }
.top nav { display: flex; align-items: center; gap: 1.2rem; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .8rem/1 var(--body); padding: .45rem .7rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--grad); color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0 5rem; }
.hero.solo { grid-template-columns: 1fr; text-align: center; padding-bottom: 3rem; }
.hero.solo .lead { margin-inline: auto; }
.hero.solo .actions, .hero.solo .chips { justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); margin-bottom: 1.4rem; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 12px var(--a2); }
h1 { font: 700 clamp(2.5rem, 6vw, 4.4rem)/1.03 var(--display); letter-spacing: -.03em; margin: 0 0 1.3rem; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 14px; font-weight: 700; text-decoration: none; background: var(--grad); color: var(--ink); border: 0; box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--a1) 70%, transparent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px color-mix(in srgb, var(--a1) 85%, transparent); }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--glass-2); }
.note { font-size: .9rem; color: var(--muted); margin: 1.1rem 0 0; max-width: 36rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.chips li { font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--glass); }

/* glass panel */
.panel { position: relative; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: 22px; }
.glow { box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--a2) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08); }

/* mock windows */
.mock { overflow: hidden; }
.mock-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.mock-bar span:last-child { color: var(--muted); font-weight: 400; }
.mock-body { padding: .9rem 1.1rem 1.1rem; display: grid; gap: .9rem; }
.who { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; }
.who img, .who svg { width: 26px; height: 26px; border-radius: 50%; }
.who time { color: var(--muted); font-weight: 400; }
.who em { font-style: normal; font-size: .68rem; font-weight: 700; padding: .1rem .35rem; border-radius: 4px; background: #5865f2; color: #fff; }

/* DoggyGuard notification cards */
.card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.card .shot { height: 108px; position: relative; background: linear-gradient(135deg, #3b1d6e, #7a2b8f 45%, #ff7a45); }
.card.off .shot { height: 52px; background: linear-gradient(135deg, #1b1936, #2a2752); }
.tag { position: absolute; left: .7rem; top: .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 5px; background: #ff3b5c; color: #fff; }
.card.off .tag { background: #55527a; }
.card .meta { padding: .7rem .9rem .85rem; }
.card b { display: block; font-size: .98rem; }
.card small { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.stats div { background: var(--glass); border-radius: 9px; padding: .45rem .55rem; }
.stats strong { display: block; font: 700 1.05rem/1.2 var(--display); }
.stats span { font-size: .72rem; color: var(--muted); }
.feed > * { animation: arrive .6s both; }
.feed > *:nth-child(2) { animation-delay: .5s; }
.feed > *:nth-child(3) { animation-delay: 1s; }
.feed > *:nth-child(4) { animation-delay: 1.5s; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }

/* LiveEcho chat demo */
.read { gap: 0; padding: .5rem 0; }
.msg { display: flex; gap: .8rem; padding: .7rem 1.1rem; border-left: 3px solid transparent; transition: background .3s, border-color .3s; }
.msg p { margin: 0; font-size: .95rem; line-height: 1.45; }
.msg .nick { font-weight: 700; font-size: .88rem; }
.plat { flex: none; width: 3.3rem; text-align: center; font: 700 .68rem/1.6rem var(--body); border-radius: 6px; align-self: flex-start; color: #fff; }
.plat.tw { background: #9146ff; } .plat.tt { background: #fe2c55; } .plat.ki { background: #2fb344; color: #06210c; }
.msg.now { background: color-mix(in srgb, var(--a1) 16%, transparent); border-left-color: var(--a2); }
.wave { display: flex; align-items: center; gap: 3px; height: 1.4rem; margin-left: auto; visibility: hidden; }
.msg.now .wave { visibility: visible; }
.wave i { width: 3px; height: 30%; background: var(--a2); border-radius: 2px; animation: speak .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes speak { 50% { height: 100%; } }

/* sections */
section { padding: 4.5rem 0; }
.head { max-width: 44rem; margin-bottom: 2.5rem; }
h2 { font: 700 clamp(1.8rem, 3.8vw, 2.7rem)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 .8rem; text-wrap: balance; }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* bento feature grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cell { grid-column: span 2; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, transform .2s; }
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cell.wide { grid-column: span 3; }
.cell.full { grid-column: span 4; }
.cell h3 { font: 700 1.2rem/1.25 var(--display); margin: 0; letter-spacing: -.01em; }
.cell p { margin: 0; color: var(--muted); font-size: .98rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 30%, transparent), color-mix(in srgb, var(--a2) 30%, transparent)); border: 1px solid var(--line-2); margin-bottom: .5rem; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cell ul { margin: .3rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.cell ul li { font-size: .8rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--glass-2); color: var(--text); }

/* command list */
.cmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cmd { padding: 1rem 1.2rem; }
.cmd code { display: block; font: 600 .95rem/1.4 var(--mono); color: var(--a1); margin-bottom: .3rem; overflow-wrap: anywhere; }
.cmd span { color: var(--muted); font-size: .95rem; }
.term { padding: 1.1rem 1.3rem; font: 500 .92rem/1.7 var(--mono); margin-bottom: 1rem; overflow-wrap: anywhere; }
.term i { font-style: normal; color: var(--muted); }
.term b { color: var(--a1); font-weight: 600; }

/* steps and timeline */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li { counter-increment: s; padding: 1.5rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font: 700 1.1rem/1 var(--display); background: var(--grad); color: var(--ink); margin-bottom: .9rem; }
.steps strong { display: block; font-size: 1.12rem; margin-bottom: .3rem; }
.steps span { color: var(--muted); }
.steps code { font: 600 .88rem var(--mono); color: var(--a1); }

/* home: product panels */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.product { display: flex; flex-direction: column; gap: .9rem; padding: 2rem; text-decoration: none; --a1: var(--p1); --a2: var(--p2); transition: transform .2s, border-color .2s; }
.product:hover { transform: translateY(-4px); border-color: var(--line-2); }
.product .logo { width: 64px; height: 64px; border-radius: 16px; }
.product h2 { margin: 0; font-size: 2rem; }
.product p { margin: 0; color: var(--muted); }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.product li { padding-left: 1.5rem; position: relative; font-size: .98rem; }
.product li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; background: linear-gradient(120deg, var(--p1), var(--p2)); }
.product .go { margin-top: auto; padding-top: .6rem; font-weight: 700; background: linear-gradient(120deg, var(--p1), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font: 600 1.1rem/1.35 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; color: var(--a1); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 0 0 1.25rem; color: var(--muted); }

/* call to action band */
.cta { padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta h2 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* text pages */
.doc { max-width: 44rem; padding: 3rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--text); }
.notfound { padding: 6rem 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0 3rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell, .cell.wide, .cell.full { grid-column: span 1; }
  .steps, .products, .cmds, .cta { grid-template-columns: 1fr; }
  .top nav a { display: none; }
  section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cta, .product { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed > *, .wave i { animation: none; }
  .wave i { height: 70%; }
  .btn, .cell, .product { transition: none; }
}

/* real bot graphics */
.shotimg { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px #000; }
.gallery figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; font-weight: 600; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }

.doc-list { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.doc-list li { margin: .3rem 0; }

/* way back to kalispro.uk - stays visible on phones, where the other menu links are hidden */
.top nav a.home { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-weight: 600; font-size: .85rem; }
.top nav a.home:hover { background: var(--glass-2); }
.note a { color: var(--text); }
@media (max-width: 900px) {
  .top nav { gap: .6rem; }
}
@media (max-width: 440px) {
  .brand small { display: none; }
  .brand { font-size: 1.05rem; gap: .5rem; }
}
/* call to action band with more than two buttons: text keeps its width, buttons wrap on the right */
.cta { grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.3fr); }
.cta .actions { justify-content: flex-end; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* DoggyGuard: real bot graphics laid out like messages piling up in a channel */
body.doggyguard .hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.06; }
.showcase { position: relative; aspect-ratio: 1 / .82; }
.showcase .shot { position: absolute; display: block; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75); }
.showcase .shot.a { width: 80%; left: 0; top: 0; transform: rotate(-2.2deg); }
.showcase .shot.b { width: 74%; right: 0; top: 36%; transform: rotate(1.6deg); z-index: 1; }
.showcase .shot.c { width: 52%; left: 5%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.gallery { gap: 2.2rem 2rem; padding: .5rem; }
.gallery img { transition: transform .25s; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .8); border-color: var(--line-2); }
.gallery figure:nth-child(odd) img { transform: rotate(-1.2deg); }
.gallery figure:nth-child(even) img { transform: rotate(1.2deg); }
.gallery figure.wide img { transform: rotate(-.6deg); }
.gallery figure:hover img { transform: none; }
.gallery figcaption { margin-top: .9rem; }
@media (max-width: 900px) {
  .showcase { aspect-ratio: 1 / .9; max-width: 36rem; }
  .gallery figure img { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

/* LiveEcho: the program window rebuilt in HTML (sample data). Drawn at 1100px and scaled to fit by site.js. */
.appfit { position: relative; width: 100%; }
.appfit > .app { width: 1100px; transform-origin: top left; }
.app { --w-bg: #0d0e16; --w-card: #171826; --w-card2: #1e1f30; --w-line: #2a2c42; --w-text: #e8e8f2; --w-muted: #8b8da6;
  --tt: #ff2d55; --tw: #9146ff; --ki: #53fc18; --go: #22c55e;
  background: var(--w-bg); color: var(--w-text); border: 1px solid #3a3c55; border-radius: 12px; overflow: hidden;
  font: 400 13px/1.4 "Segoe UI", system-ui, sans-serif; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03); }
.app b { font-weight: 700; }
.app-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 6px 10px; font-size: 12px; color: #c9c9d9; border-bottom: 1px solid #1d1e2c; }
.app-title > span:first-child { display: flex; align-items: center; gap: 7px; }
.app-title img { border-radius: 4px; }
.win { display: flex; }
.win i { font-style: normal; width: 44px; text-align: center; color: #c9c9d9; }
.win i.x { background: #e81123; color: #fff; }
.app-head { display: flex; justify-content: center; position: relative; padding: 16px 0 10px; }
.app-brand { display: flex; align-items: center; gap: 10px; }
.app-brand img { border-radius: 10px; }
.app-brand b { display: block; font-size: 22px; line-height: 1.1; }
.app-brand b em { font-style: normal; color: #2fd6c8; }
.app-brand small { color: var(--w-muted); font-size: 11.5px; }
.app-dots { position: absolute; right: 18px; top: 22px; display: flex; gap: 8px; }
.app-dots span { width: 34px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--w-card2); border: 1px solid var(--w-line); }
.app-dots .tt { color: var(--tt); } .app-dots .tw { color: var(--tw); } .app-dots .ki { color: var(--ki); }
.app-plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 14px 14px; }
.plat-card { background: var(--w-card); border: 1px solid var(--w-line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-top b { font-size: 15px; }
.pc-ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.tt .pc-ico { background: var(--tt); } .tw .pc-ico { background: var(--tw); } .ki .pc-ico { background: var(--ki); color: #0b1a05; }
.pc-state { margin-left: auto; font-size: 11px; color: var(--w-muted); display: flex; align-items: center; gap: 5px; }
.pc-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5d5f78; }
.pc-state.on { color: #7ee2a0; } .pc-state.on::before { background: var(--go); box-shadow: 0 0 8px var(--go); }
.pc-row { display: flex; align-items: center; gap: 8px; }
.pc-input { flex: 1; background: #10111b; border: 1px solid var(--w-line); border-radius: 7px; padding: 7px 10px; font-weight: 600; }
.pc-input.empty { color: #6b6d86; font-weight: 400; }
.pc-btn { border-radius: 7px; padding: 7px 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.tt .pc-btn { background: var(--tt); } .tw .pc-btn { background: var(--tw); } .ki .pc-btn { background: var(--ki); color: #0b1a05; }
.plat-card .pc-btn.off { background: #2a2c42; color: #d8d8e6; }
.pc-btn.ghost { background: #222336; border: 1px solid var(--w-line); text-align: center; }
.pc-btn.wide { display: block; margin: 4px 0 10px; }
.pc-label { flex: 1; }
.pc-select { background: #1f2033; border: 1px solid var(--w-line); border-radius: 7px; padding: 5px 26px 5px 10px; position: relative; font-size: 12px; }
.pc-select::after { content: ""; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid #aaa; border-bottom: 1.5px solid #aaa; transform: translateY(-70%) rotate(45deg); }
.pc-select.wide { display: block; margin: 4px 0 10px; }
.pc-row.small { font-size: 10.5px; color: #6b6d86; }
.pc-row.small > span:first-child { flex: 1; }
.pc-mini { background: #222336; border: 1px solid var(--w-line); border-radius: 6px; padding: 3px 8px; color: #c9c9d9; }
.tgl { width: 28px; height: 15px; border-radius: 8px; background: #3a3c55; position: relative; flex: none; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.tgl.on::after { left: 15px; }
.tt .tgl.on { background: var(--tt); } .tw .tgl.on { background: var(--tw); } .ki .tgl.on { background: var(--ki); }
.app-side .tgl.on { background: #8b5cf6; }
.app-body { display: grid; grid-template-columns: 250px 1fr; gap: 12px; padding: 0 14px 10px; }
.app-side { background: var(--w-card); border: 1px solid var(--w-line); border-radius: 10px; padding: 12px; }
.side-h { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a5a7c2; margin: 2px 0 8px; }
.side-box { background: #12131f; border: 1px solid var(--w-line); border-radius: 8px; padding: 10px; margin-bottom: 14px; }
.side-box label { color: var(--w-muted); font-size: 12px; }
.sl { display: flex; justify-content: space-between; color: var(--w-muted); font-size: 12px; }
.sl b { color: var(--w-text); }
.slider { display: block; height: 4px; border-radius: 2px; margin: 8px 2px 12px; background: linear-gradient(90deg, #8b5cf6 calc(var(--v) * 100%), #34364d 0); position: relative; }
.slider::after { content: ""; position: absolute; left: calc(var(--v) * 100% - 6px); top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.toggles div { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12px; }
.app-chat { background: var(--w-card); border: 1px solid var(--w-line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chat-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.chat-top b { font-size: 15px; display: block; }
.chat-top small { color: var(--w-muted); font-size: 11px; }
.chat-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cb { background: #222336; border: 1px solid var(--w-line); border-radius: 7px; padding: 7px 10px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.cb.violet { background: #8b5cf6; border-color: #8b5cf6; }
.cb.green { background: var(--go); border-color: var(--go); color: #062b13; }
.chat-test { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--w-muted); }
.chat-test i { font-style: normal; background: #222336; border: 1px solid var(--w-line); border-radius: 6px; padding: 3px 10px; color: #d8d8e6; }
.now-reading { display: flex; align-items: center; gap: 10px; background: #12131f; border: 1px solid #3b3270; border-radius: 8px; padding: 8px 12px; }
.now-reading .q { margin-left: auto; font-weight: 700; white-space: nowrap; }
.eq { display: flex; gap: 2px; align-items: center; height: 14px; }
.eq i { width: 3px; height: 40%; background: #8b5cf6; border-radius: 2px; animation: speak .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; }
.chat-log { list-style: none; margin: 0; padding: 10px 12px; background: #0f1019; border: 1px solid var(--w-line); border-radius: 8px; display: grid; gap: 7px; min-height: 230px; align-content: start; }
.chat-log li { display: flex; align-items: baseline; gap: 8px; }
.chat-log time { color: #6b6d86; font-size: 11px; width: 34px; flex: none; }
.chat-log .pl { font-size: 9.5px; font-weight: 800; border-radius: 4px; padding: 1px 6px; color: #fff; flex: none; }
.chat-log .pl.tt { background: var(--tt); } .chat-log .pl.tw { background: var(--tw); }
.chat-log b { flex: none; }
.n1 { color: #ff8fb1; } .n2 { color: #6ee7f9; } .n3 { color: #fbbf24; } .n4 { color: #a78bfa; } .n5 { color: #86efac; } .n6 { color: #f9a8d4; }
.chat-log li:first-child { background: rgba(139, 92, 246, .14); border-radius: 6px; margin: -3px -6px; padding: 3px 6px; }
.chat-log li.event span:last-child { color: #fbbf24; font-style: italic; }
.chat-log li.muted { opacity: .45; }
.chat-log li.muted em { margin-left: auto; font-size: 10.5px; color: #ff8f8f; font-style: normal; }
.emote { background: #2b2c44; border-radius: 4px; padding: 0 5px; font-size: 11px; color: #c4b5fd; }
.app-foot { display: flex; justify-content: space-between; padding: 6px 16px 10px; font-size: 11px; color: #6b6d86; }

.overlay-demo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; margin-top: 4rem; }
.overlay-demo h3 { font: 700 1.6rem/1.2 var(--display); margin: 0 0 .7rem; }
.overlay-demo p { color: var(--muted); margin: 0; }
.ov-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(#5aa7e6, #9ad0f5 60%); box-shadow: 0 40px 80px -40px #000; }
.ov-sun { position: absolute; right: 12%; top: 10%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: #ffe066; box-shadow: 0 0 40px #ffe06688; }
.ov-hill { position: absolute; bottom: 24%; border-radius: 50% 50% 0 0; background: #4f9a4a; }
.ov-hill.a { left: -10%; width: 60%; height: 30%; } .ov-hill.b { right: -15%; width: 70%; height: 22%; background: #5fae55; }
.ov-ground { position: absolute; inset: 76% 0 0; background: linear-gradient(#5aa04f 0 9%, #7a5634 9%); }
.ov-live { position: absolute; left: 3%; top: 5%; background: #e91e3a; color: #fff; font: 800 .75rem/1 var(--body); padding: .35rem .6rem; border-radius: 6px; }
.ov-chat { position: absolute; left: 3%; bottom: 5%; margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.ov-chat li { display: flex; align-items: center; gap: .45rem; width: fit-content; background: rgba(10, 10, 20, .78); color: #fff; padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; animation: arrive .6s both; }
.ov-chat li:nth-child(2) { animation-delay: .6s; } .ov-chat li:nth-child(3) { animation-delay: 1.2s; }
.ov-chat i { width: .55rem; height: .55rem; border-radius: 50%; }
.ov-chat i.tt { background: #ff2d55; } .ov-chat i.tw { background: #9146ff; } .ov-chat i.ki { background: #53fc18; }
@media (max-width: 900px) { .overlay-demo { grid-template-columns: 1fr; } .ov-chat li { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { .eq i, .ov-chat li { animation: none; } }
