:root{color-scheme:dark;--bg:#100e1a;--nav:#13101f;--card:#191627;--inner:#211c31;--stroke:#302842;--muted:#b6acc7;--ink:#fbf7ff;--accent:#c098ff;--green:#6de4af;--red:#ff9ca8;--rail:258px;--top:72px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 99% 9%,#21132f 0,transparent 54%),var(--bg);color:var(--ink);min-height:100vh}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.skip{position:fixed;top:-100px;left:12px;z-index:100;background:#4b2377;padding:12px}.skip:focus{top:12px}svg.icon{width:20px;height:20px;flex:none;vertical-align:middle}
.top{position:fixed;inset:0 0 auto;z-index:8;display:flex;gap:18px;align-items:center;height:var(--top);padding:0 28px;background:#100e1bf0;border-bottom:1px solid var(--stroke);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px;font-weight:820;font-size:19px;letter-spacing:-.04em;line-height:1.05}.brand img{width:42px}.brand-light{color:#d4b7ff}.brand small{display:block;font-size:9px;letter-spacing:.22em;color:var(--muted);margin-top:5px}.top-separator{height:28px;width:1px;background:var(--stroke);margin-left:32px}.crumb{font-size:13px;color:var(--muted)}.top-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.avatar,.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #44345e;background:#211833;color:#ddc7ff;border-radius:13px;font-size:13px;font-weight:800}.avatar{border-radius:50%}.menu{display:none}
.sidebar{position:fixed;inset:var(--top) auto 0 0;width:var(--rail);padding:16px 14px 22px;background:linear-gradient(155deg,#161224,#110f1d);border-right:1px solid var(--stroke);overflow:auto;z-index:7;scrollbar-width:thin;scrollbar-color:#504269 transparent}.server-pill{display:flex;align-items:center;gap:10px;background:#1d182b;border:1px solid #302641;border-radius:13px;margin:2px 2px 19px;padding:10px;font-size:13px;font-weight:760}.server-pill small{display:block;color:var(--muted);font-size:11px;margin-top:3px;font-weight:500}.server-pill img{width:35px}.server-pill .dot{margin-left:auto}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9b7fcd;flex:none}.dot.live{background:var(--green);box-shadow:0 0 11px #6de4af65}.sidebar details{margin-bottom:13px}.sidebar summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-size:10px;text-transform:uppercase;letter-spacing:.17em;font-weight:800;color:#b6a4d0;cursor:pointer}.sidebar summary::-webkit-details-marker{display:none}.sidebar summary .icon{width:14px;height:14px;transform:rotate(-90deg)}.sidebar details[open] summary .icon{transform:none}.nav-item{display:flex;align-items:center;gap:11px;padding:9px 10px;border:1px solid transparent;border-radius:9px;color:#c5bbd7;font-size:13px;font-weight:610;margin:2px 0}.nav-item .icon{width:17px;height:17px;color:#a897c9}.nav-item:hover{background:#221a34}.nav-item[aria-current=page]{color:#fff;background:#2a1b45;border-color:#533480}.nav-item[aria-current=page] .icon{color:#cfadff}.veil{display:none}
main{margin-left:var(--rail);padding:calc(var(--top) + 30px) clamp(20px,3.3vw,58px) 25px;max-width:1760px;min-height:100vh;display:flex;flex-direction:column}main:focus{outline:none}footer{color:var(--muted);border-top:1px solid var(--stroke);padding:20px 0 0;font-size:12px;display:flex;justify-content:space-between;gap:12px;margin-top:auto}#view{padding-bottom:34px}.eyebrow{display:flex;gap:8px;align-items:center;color:#c9a4ff;font-size:10px;text-transform:uppercase;letter-spacing:.22em;font-weight:850;margin:0 0 12px}.eyebrow .icon{width:15px;height:15px}h1,h2,h3,p{margin:0}h1{font-size:clamp(32px,4.1vw,56px);line-height:1.05;letter-spacing:-.055em}h2{font-size:22px;letter-spacing:-.035em}h3{font-size:16px;letter-spacing:-.018em}p.description,.hint{color:var(--muted);line-height:1.55}.description{max-width:69ch;margin-top:12px;font-size:15px}.hint{font-size:13px}.page-head{margin-bottom:23px}.hero{position:relative;isolation:isolate;overflow:hidden;min-height:280px;padding:clamp(22px,3vw,43px);background:linear-gradient(113deg,#201635 0%,#28194a 58%,#1b1135 100%);border:1px solid #4a346d;border-radius:20px;margin-bottom:17px}.hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#211737 0%,#21173700 68%)}.hero-art{position:absolute;z-index:-2;height:148%;width:64%;right:-1%;top:-23%;object-fit:contain;pointer-events:none}.hero h1 span{color:#cdaaff}.hero p.description{max-width:41ch}.row,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions{margin-top:18px}.between{justify-content:space-between}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;padding:10px 14px;border-radius:10px;background:linear-gradient(115deg,#6933ca,#893be1);border:1px solid #a15aff;font-weight:760;font-size:13px;min-height:40px}.button .icon{width:16px;height:16px}.button:hover{filter:brightness(1.16)}.button.subtle{background:#211932;border-color:#48365f;color:#e3d5f4}.button.danger{background:#47263a;border-color:#87445a}.button.small{padding:6px 10px;min-height:33px;font-size:12px}.badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:5px 9px;background:#302245;color:#d8bcff;font-weight:760;font-size:11px;white-space:nowrap}.badge.ok{background:#1d382f;color:var(--green)}.badge.bad{background:#3a2438;color:var(--red)}.badge.neutral{background:#282338;color:#d2c6df}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 22px}.stat{display:flex;align-items:center;gap:12px;min-height:86px;padding:14px;background:var(--card);border:1px solid var(--stroke);border-radius:14px}.stat strong{display:block;font-size:24px;letter-spacing:-.045em}.stat small{color:var(--muted);font-size:11px}.glyph{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#30204c;border:1px solid #533981;color:#c6a0ff;flex:none}.glyph.teal{background:#183c38;border-color:#286258;color:#80e5d3}.glyph.rose{background:#3b223d;border-color:#63365e;color:#f4a7e7}.glyph.blue{background:#202b47;border-color:#394b77;color:#a7beff}
.section-head{margin:5px 0 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.modules{grid-template-columns:repeat(3,minmax(0,1fr))}.card,.module{background:linear-gradient(145deg,#1c172c,#181525);border:1px solid var(--stroke);border-radius:15px;padding:18px;min-width:0}.module{display:flex;flex-direction:column;gap:10px}.module:hover{border-color:#8050bd;background:#231933}.module .card-top{display:flex;justify-content:space-between;align-items:center}.module .card-top>.icon{width:15px;color:#a38cbf}.card + .card,.stack>*+*{margin-top:12px}.grid>.card{margin:0}.card-title{display:flex;align-items:center;gap:12px;margin-bottom:12px}.card-title>div:nth-child(2){flex:1;min-width:0}.card-title .hint{margin-top:3px}.tabs{display:flex;flex-wrap:wrap;gap:5px;padding:5px;border:1px solid #403056;background:#171325;border-radius:13px;margin-bottom:16px}.tabs button{flex:1;min-height:41px;min-width:max-content;border:0;border-radius:9px;color:var(--muted);font-weight:750;padding:8px 12px;background:none}.tabs button[aria-pressed=true]{background:linear-gradient(115deg,#6a31ce,#983fe7);color:#fff}.entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid var(--stroke);border-radius:11px;background:#201b2e;overflow-wrap:anywhere}.entry + .entry{margin-top:7px}.entry p{white-space:pre-line}.entry a{color:var(--accent)}.empty{padding:18px;color:var(--muted);text-align:center;border:1px dashed var(--stroke);border-radius:12px}.switch{appearance:none;width:42px;height:24px;border-radius:999px;border:1px solid #645670;background:#342d43;position:relative;flex:none;cursor:pointer}.switch:checked{background:#8440df;border-color:#a46bfa}.switch::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white}.switch:checked::after{left:21px}form label:not(.toggle){display:grid;gap:6px;margin:10px 0;font-size:13px;font-weight:740;color:#ddd2ed}.toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:740}.field,.search{width:100%;background:#131020;border:1px solid #44345a;border-radius:10px;color:#fff;padding:10px 12px;min-height:43px;min-width:0}.field:disabled{opacity:.6}textarea.field{resize:vertical;min-height:90px}.field::placeholder{color:#a79bbd}.preview{margin-top:14px;border-left:4px solid #9e63fa;padding:15px;background:#211a33;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.preview h3{margin-bottom:5px}.dialog-close{margin-left:auto}dialog{width:min(560px,calc(100% - 28px));max-height:88dvh;overflow:auto;background:#1b152a;border:1px solid #6b4798;border-radius:18px;color:var(--ink);padding:21px}dialog::backdrop{background:#07050dcc;backdrop-filter:blur(5px)}.toast{position:fixed;bottom:20px;right:20px;z-index:20;max-width:min(450px,calc(100vw - 40px));color:#fff;background:#30234a;border:1px solid #7650a8;padding:12px 15px;border-radius:11px;font-size:13px;box-shadow:0 10px 38px #0009}.toast.error{border-color:#c86481}.log-detail{white-space:pre-wrap;overflow-wrap:anywhere}.banner-preview{width:100%;display:block;border-radius:12px;border:1px solid #533b77;margin:10px 0}.channel-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.mono{font-family:ui-monospace,monospace}.section-gap{margin-top:22px}.source-link{color:#d6afff;text-decoration:underline}
@media(max-width:1080px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.modules{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){:root{--top:62px}.menu{display:grid}.top{padding:0 15px;gap:12px}.brand img{width:34px}.brand{font-size:17px;gap:7px}.top-separator,.crumb{display:none}.sidebar{width:min(83vw,320px);transform:translateX(-105%);transition:transform .2s ease;visibility:hidden}.sidebar.open{transform:none;visibility:visible}.veil:not([hidden]){display:block;position:fixed;inset:var(--top) 0 0;background:#080611af;border:0;backdrop-filter:blur(5px);z-index:6}main{margin-left:0;padding:calc(var(--top) + 18px) 16px 20px}.nav-item{padding:11px 10px}.hero-art{right:-14%;width:78%;opacity:.8}}
@media(max-width:485px){.top{gap:9px}.top-actions{gap:6px}.connect{padding:8px;font-size:11px}.avatar,.icon-button{width:36px;height:36px}.brand small{font-size:8px}.hero{min-height:255px}.hero-art{right:-33%;width:108%;opacity:.55}.hero::after{background:linear-gradient(90deg,#211737 6%,#21173700 97%)}.grid:not(.stats):not(.modules){grid-template-columns:1fr}.stats,.modules{gap:8px}.stat{padding:9px;gap:8px}.stat strong{font-size:21px}.stat .glyph,.module .glyph{width:32px;height:32px}.module,.card{padding:13px}.tabs button{min-width:40%;font-size:13px}.entry .row{gap:5px}.entry{align-items:flex-start}footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* LernStudios 2026: branded surfaces and mobile-friendly banner workshop */
:root{--accent:#ac80ff;--bg:#0b0a18;--nav:#100f20;--card:#171429;--inner:#211b37;--stroke:#373052;--muted:#b7add3}
body{background:radial-gradient(ellipse at 88% 6%,#3b1b66 0,transparent 38%),radial-gradient(ellipse at 7% 85%,#101f3c 0,transparent 35%),var(--bg)}
.top{background:#0c0b1ce8}.sidebar{background:linear-gradient(170deg,#16112f,#0c0b1b 75%)}
.hero{border-color:#7743b866;box-shadow:0 16px 70px #3b13a722}
.module,.card{box-shadow:0 10px 35px #03000e25;transition:border-color .18s ease,transform .18s ease}
.module:hover{transform:translateY(-3px);border-color:#ac70ed}
.button:not(.subtle):not(.danger){background:linear-gradient(110deg,#8d4fe3,#6537c4);box-shadow:0 4px 20px #5c28d545}
.banner-stage{position:relative;overflow:hidden;border:1px solid #875bc1;border-radius:18px;background:#090b1c;box-shadow:0 13px 40px #06031390,0 0 0 4px #8a56cf13;margin:10px 0 26px}
.banner-stage .banner-preview{display:block;width:100%;border:none;border-radius:0;margin:0;aspect-ratio:3/1;height:auto}
.banner-stage-caption{display:block;position:absolute;right:14px;bottom:10px;padding:6px 10px;border:1px solid #a980ff44;background:#0d0a22c9;border-radius:9px;color:#d8cdfb;font-weight:700;letter-spacing:.1em;font-size:9px}
.banner-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.banner-fields>label{min-width:0}
.banner-fields .field{width:100%}
.banner-fields>label:nth-last-child(2),.banner-fields>label:last-child{grid-column:span 1}
.channel-list .badge{padding:6px 10px;background:#231934;border:1px solid #69469e55}
@media(max-width:950px){.banner-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.banner-fields{grid-template-columns:1fr}.banner-stage-caption{font-size:8px;right:7px;bottom:7px}.banner-fields>label:nth-last-child(2),.banner-fields>label:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.module:hover{transform:none}}

/* Expandable channel customization stays compact even on phones. */
.setup-group{margin:9px 0;background:linear-gradient(130deg,#211a36,#151225);border:1px solid #514174;border-radius:13px;overflow:hidden}
.setup-group summary{cursor:pointer;padding:14px 16px;display:flex;justify-content:space-between;gap:8px;align-items:center;font-weight:750;color:#f5edff}
.setup-group summary small{font-size:11px;color:#b9aed1;font-weight:500}
.setup-group[open] summary{background:#aa6aff14;border-bottom:1px solid #493766}
.setup-fields{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.setup-fields>label{min-width:0}
.setup-fields .field{width:100%}
@media(max-width:620px){.setup-fields{grid-template-columns:1fr;padding:12px}.setup-group summary{padding:12px}}
