@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url(assets/fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 600; font-display: swap; src: url(assets/fonts/pixelify-sans-latin-600-normal.woff2) format('woff2'); }
:root {
  --bg: #1b1d2a; --panel: #262a3d; --panel2: #2f3450; --ink: #f1ead8; --muted: #a9a7b8;
  --accent: #f4b740; --ok: #5fd27a; --warn: #f2994a; --err: #e5534b; --line: #3c4263;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pixelify Sans', 'DejaVu Sans', system-ui, sans-serif; }
button, .btn { font: inherit; color: var(--ink); background: var(--panel2); border: 2px solid var(--line); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); }
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 4px 0 #11131c; }

/* Kirish */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: min(360px, 100%); padding: 28px; display: grid; gap: 12px; text-align: center; }
.login h1 { margin: 0; font-size: 26px; }
.login p { margin: 0 0 6px; color: var(--muted); }
.login input { font: inherit; padding: 10px 12px; border-radius: 6px; border: 2px solid var(--line); background: #1e2131; color: var(--ink); }
.login button { background: var(--accent); color: #2a1d05; border-color: #c48a1c; font-weight: 600; }
.err { color: var(--err); }

/* Sarlavha */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 2px solid var(--line); background: #20233a; position: relative; z-index: 60; }
.top .title { font-size: 22px; font-weight: 600; white-space: nowrap; }
.top .status { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.top .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top .actions button, .top .actions .btn { padding: 5px 10px; }
.top .actions .on { border-color: var(--accent); }
.menu-btn { margin-left: auto; font-size: 20px; padding: 3px 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.live { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.bad { background: var(--err); }
@media (max-width: 1280px) and (min-width: 961px) { .top .lbl { display: none; } }

/* Joylashuv: chapda ofis + jurnal, o'ngda chat. Har biri yashirilishi mumkin; ⛶ — ofis butun ekranda */
body { min-height: 100vh; }
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 16px; padding: 16px; align-items: start; }
.wrap.no-chat { grid-template-columns: minmax(0, 1fr); }
.wrap.no-chat .side { display: none; }
.wrap.no-log .logpane { display: none; }
.left { display: flex; flex-direction: column; gap: 16px; height: calc(100vh - var(--toph, 60px) - 32px); min-height: 480px; min-width: 0; }
.stage-box { position: relative; width: 100%; flex: 1 1 auto; min-height: 300px; overflow: hidden; border-radius: 10px; border: 2px solid var(--line);
  background: radial-gradient(ellipse at center, #2b2740, #17151f); touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.stage-box.zoomed { cursor: grab; }
.stage-box.grabbing, .stage-box.grabbing * { cursor: grabbing !important; }
.stage { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; transform-origin: 0 0; }
.stage .bg { position: absolute; inset: 0; width: 1536px; height: 1024px; user-select: none; pointer-events: none; }
.logpane { flex: 0 0 210px; min-height: 0; overflow: auto; padding: 10px 12px; }
.logpane h2 { margin: 0 0 8px; font-size: 18px; }
.side { display: flex; flex-direction: column; height: calc(100vh - var(--toph, 60px) - 32px); min-height: 480px; overflow: hidden; }
.wrap.focus { padding: 0; }
.wrap.focus .left { height: calc(100vh - var(--toph, 60px)); gap: 0; }
.wrap.focus .stage-box { border-radius: 0; border-width: 0; }
.tabs { display: none; }
.only-m { display: none; }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; background: var(--err); color: #fff; font-size: 12px; font-weight: 600; }

/* Ofis ustidagi tugmalar */
.vtools { position: absolute; right: 10px; bottom: 10px; z-index: 5; display: flex; gap: 4px; align-items: center; padding: 4px;
  background: rgba(20,22,34,.82); border: 2px solid var(--line); border-radius: 10px; backdrop-filter: blur(4px); }
.vtools button { min-width: 36px; height: 34px; padding: 0 8px; font-size: 17px; line-height: 1; border-radius: 7px; }
.vtools #zLabel { min-width: 58px; font-size: 14px; }
.vtools button.on { border-color: var(--accent); background: #3a3f62; }
.vtools .sep { width: 2px; height: 24px; background: var(--line); margin: 0 2px; }
.vhint { position: absolute; left: 10px; bottom: 12px; z-index: 4; font: 12px system-ui, sans-serif; color: #d8d3c2; background: rgba(20,22,34,.7);
  padding: 5px 9px; border-radius: 6px; pointer-events: none; transition: opacity 1s; }
.stage-box.zoomed .vhint, .vhint.gone { opacity: 0; }

@media (max-width: 960px) {
  .top { padding: 8px 12px; gap: 10px; }
  .top .title { font-size: 17px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .top .status { font-size: 13px; }
  .only-m { display: block; }
  .only-d { display: none !important; }
  .top .actions { display: none; position: absolute; right: 8px; top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 4px; padding: 8px;
    background: var(--panel); border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); min-width: 210px; }
  .top .actions.open { display: flex; }
  .top .actions button, .top .actions .btn { text-align: left; padding: 9px 12px; font-size: 16px; }
  .wrap, .wrap.focus { display: block; padding: 0; }
  .left { height: auto; min-height: 0; gap: 0; }
  .stage-box { flex: none; height: calc(100vw * 2 / 3); min-height: 0; border-radius: 0; border-width: 0 0 2px; touch-action: pan-y; }
  .stage-box.zoomed { touch-action: none; }
  .wrap.focus .stage-box { height: calc(100dvh - var(--toph, 52px) - var(--tabh, 62px)); }
  .wrap.focus .logpane { display: none; }
  .vhint { display: none; }
  .vtools { right: 6px; bottom: 6px; padding: 3px; }
  .vtools button { min-width: 32px; height: 30px; font-size: 15px; }
  .logpane, .wrap.no-log .logpane { display: block; flex: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 10px 10px 84px; }
  .side, .wrap.no-chat .side { display: flex; height: calc(100dvh - var(--toph, 52px) - var(--tabh, 62px)); min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .tabs { display: flex; gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #20233a; border-top: 2px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabs button { flex: 1; border: 0; background: transparent; padding: 10px 4px; border-radius: 8px; font-size: 15px; }
  .tabs button.on { background: var(--panel2); box-shadow: inset 0 -3px 0 var(--accent); }
  .wrap[data-view="chat"] .left, .wrap:not([data-view="chat"]) .side { display: none; }
  .wrap[data-view="log"] .stage-box { display: none; }
  .wrap[data-view="log"] .logpane h2 { display: none; }
  .toasts { bottom: 140px; }
}

/* Kun va tun */
.night { position: absolute; inset: 0; pointer-events: none; z-index: 1500; opacity: 0; transition: opacity 2.5s;
  background: radial-gradient(ellipse at 50% 55%, rgba(30,36,90,.45), rgba(10,12,40,.78)); mix-blend-mode: multiply; }
.night.on { opacity: 1; }
.lamp { position: absolute; width: 300px; height: 280px; pointer-events: none; z-index: 1510; opacity: 0; transition: opacity 1.5s;
  background: radial-gradient(closest-side, rgba(255,214,140,.55), rgba(255,190,110,.18) 60%, transparent); mix-blend-mode: screen; }
.lamp.on { opacity: 1; }
body.is-night .glow { z-index: 1520; }
.hit { position: absolute; width: 104px; height: 100px; z-index: 900; cursor: pointer; border-radius: 12px; }
.hit:hover { box-shadow: inset 0 0 0 3px rgba(244,183,64,.7); background: rgba(244,183,64,.08); }
.char img { pointer-events: auto; cursor: pointer; }

/* Stul qopqog'i (personaj o'rnidan turganda) */
.seat { position: absolute; display: none; image-rendering: auto; }
.seat.on { display: block; }

/* Monitor yonishi — ishlayotgan stol */
.glow { position: absolute; width: 84px; height: 42px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.glow.on { opacity: 1; animation: glow 1.2s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 6px 2px rgba(120,200,255,.35); } to { box-shadow: 0 0 18px 6px rgba(120,200,255,.75); } }

/* Personaj */
.char { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; }
.char.on { display: block; }
.char img { position: absolute; bottom: 0; height: 100px; transform: translateX(-50%); image-rendering: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.18)); }
.char img.idle { height: 96px; }
.char.flip img { transform: translateX(-50%) scaleX(-1); }
.char.walk img { animation: bob .28s steps(2) infinite; }
@keyframes bob { 0% { margin-bottom: 0; } 50% { margin-bottom: 4px; } }
.char.flip.walk img { animation: bobl .28s steps(2) infinite; }
@keyframes bobl { 0% { margin-bottom: 0; } 50% { margin-bottom: 4px; } }
.carry { position: absolute; left: 14px; bottom: 38px; font-size: 26px; transform: rotate(-8deg); filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }

/* Pufakcha */
.bubble { position: absolute; transform: translate(-50%, -100%); background: #fffdf5; color: #2b2633; border: 3px solid #2b2633;
  border-radius: 10px; padding: 6px 10px; font-size: 19px; line-height: 1.15; max-width: 260px; width: max-content;
  box-shadow: 0 3px 0 rgba(0,0,0,.25); pointer-events: none; z-index: 2000; white-space: normal; text-align: center; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 9px solid transparent; border-top-color: #2b2633; }
.bubble.work { background: #e9f6ff; }
.bubble.work { white-space: nowrap; max-width: none; }
.bubble.ok { background: #e8fbe9; } .bubble.warn { background: #fff1e0; } .bubble.err { background: #ffe9e7; }
.bubble.pop { animation: pop .25s ease-out; }
@keyframes pop { from { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
.dots::after { content: '…'; animation: dots 1s steps(4) infinite; display: inline-block; width: 1.2em; text-align: left; }

/* Uchuvchi konvert/qog'oz */
.fly { position: absolute; font-size: 34px; z-index: 2100; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }

/* Jurnal */
#log li { background: var(--panel2); border-radius: 6px; padding: 7px 9px; font-size: 16px; line-height: 1.25; border-left: 4px solid var(--line); }
#log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#log li time { color: var(--muted); font-size: 13px; display: block; }
#log li.task { border-left-color: var(--accent); } #log li.ok { border-left-color: var(--ok); }
#log li.warn { border-left-color: var(--warn); } #log li.err { border-left-color: var(--err); } #log li.turn { border-left-color: #7aa7ff; }
#log li.new { animation: pop .3s ease-out; }
#log .empty { color: var(--muted); }

/* Chat — Telegram uslubida */
.chat { flex-direction: column; position: relative; background: #1e2133; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.hello { color: var(--muted); text-align: center; font-size: 14px; white-space: pre-line; padding: 10px 6px 4px; }
.msg { max-width: 86%; padding: 7px 10px 5px; border-radius: 12px; background: #2c3150; align-self: flex-start; position: relative;
  font-size: 15px; line-height: 1.38; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.msg.me { align-self: flex-end; background: #3b5a8f; border-bottom-right-radius: 4px; }
.msg.bot { border-bottom-left-radius: 4px; }
.msg.fresh { animation: pop .25s ease-out; }
.msg .txt { white-space: pre-wrap; }
.msg .txt:empty { display: none; }
.msg .txt a { color: #9cc7ff; }
.msg .txt code { background: rgba(0,0,0,.28); padding: 1px 4px; border-radius: 4px; font-size: 13.5px; }
.msg .txt pre { background: rgba(0,0,0,.32); padding: 8px; border-radius: 6px; overflow-x: auto; white-space: pre; margin: 2px 0; font-size: 13px; }
.msg .txt pre code { background: none; padding: 0; }
.msg .txt blockquote { margin: 2px 0; padding: 2px 8px; border-left: 3px solid #7aa7ff; background: rgba(122,167,255,.08); border-radius: 0 4px 4px 0; }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: #aeb4d0; }
.msg .meta button, .msg .meta a { font-size: 12px; padding: 2px 7px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.18); color: #dfe4ff; }
.msg .meta button:hover, .msg .meta a:hover { border-color: var(--accent); }
.msg .meta time { margin-left: 4px; }
.media { margin: -2px -5px 6px; }
.media img { display: block; max-width: 100%; max-height: 340px; border-radius: 8px; cursor: zoom-in; }
.media video { display: block; width: 100%; max-height: 380px; border-radius: 8px; background: #000; }
.media audio { width: 280px; max-width: 100%; display: block; color-scheme: dark; }
.doc { display: flex; align-items: center; gap: 10px; padding: 6px 4px; color: inherit; text-decoration: none; }
.doc .ico { width: 42px; height: 42px; border-radius: 50%; background: #5a7fc0; display: grid; place-items: center; font-size: 20px; flex: none; }
.doc .nm { font-weight: 600; word-break: break-all; }
.doc small { color: #b9bfdc; display: block; }
.expired { color: var(--muted); font-style: italic; font-size: 14px; }
.kb { display: grid; gap: 4px; margin: 6px -4px 2px; }
.kb .row { display: flex; gap: 4px; }
.kb button, .kb a { flex: 1; font-size: 14px; padding: 7px 6px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); text-align: center; color: var(--ink); text-decoration: none; }
.kb button:hover { background: rgba(255,255,255,.14); }
.kb button:disabled { opacity: .5; cursor: progress; }
.typing { padding: 4px 14px; font-size: 13px; color: #9fb6ff; font-family: system-ui, sans-serif; }
.typing::after { content: '…'; animation: dots 1s steps(4) infinite; }
.uploads { display: grid; gap: 4px; padding: 0 10px; }
.up { font: 13px system-ui, sans-serif; color: var(--muted); background: var(--panel2); border-radius: 6px; padding: 5px 8px; position: relative; overflow: hidden; }
.up i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.up.err { color: var(--err); }
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 2px solid var(--line); background: var(--panel); }
.composer textarea { flex: 1; resize: none; max-height: 160px; min-height: 40px; padding: 9px 11px; border-radius: 18px; border: 2px solid var(--line);
  background: #1e2131; color: var(--ink); font: 15px/1.35 system-ui, sans-serif; outline: none; }
.composer textarea:focus { border-color: #4b5590; }
.ic { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex: none; }
.ic.send { background: var(--accent); color: #2a1d05; border-color: #c48a1c; }
.ic.rec { background: var(--err); border-color: #b33; animation: glow 1s ease-in-out infinite alternate; }
.cmds { position: absolute; left: 8px; right: 8px; bottom: 62px; background: var(--panel2); border: 2px solid var(--line); border-radius: 10px; padding: 6px;
  display: grid; gap: 2px; z-index: 5; max-height: 50%; overflow: auto; font-family: system-ui, sans-serif; }
.cmds button { text-align: left; border: 0; background: transparent; padding: 7px 8px; font-size: 14px; }
.cmds button:hover { background: rgba(255,255,255,.07); }
.cmds b { color: var(--accent); margin-right: 8px; }
.drop { position: absolute; inset: 0; background: rgba(27,29,42,.88); border: 3px dashed var(--accent); border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; z-index: 6; pointer-events: none; }
.toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); display: grid; gap: 6px; z-index: 2000; pointer-events: none; }
.toast { background: #11131c; color: #fff; padding: 9px 14px; border-radius: 8px; font: 14px system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.4); animation: pop .2s ease-out; }
.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 3000; display: grid; place-items: center; cursor: zoom-out; }
.zoom img { max-width: 96vw; max-height: 92vh; }

/* Oyna (panellar) */
.sheet-bg { position: fixed; inset: 0; background: rgba(8,9,16,.55); z-index: 900; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 950; background: var(--panel); border-left: 2px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(30px); opacity: 0; transition: transform .2s, opacity .2s; box-shadow: -10px 0 40px rgba(0,0,0,.45); }
.sheet.show { transform: none; opacity: 1; }
.sheet > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.sheet > header h2 { margin: 0; font-size: 21px; flex: 1; }
.sheet-body { flex: 1; overflow: auto; padding: 14px 16px 40px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; }
.sheet-body h3 { font-family: 'Pixelify Sans', system-ui; font-size: 18px; margin: 22px 0 10px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .sheet-body code { background: rgba(0,0,0,.3); padding: 1px 4px; border-radius: 4px; }
.sheet-body button, .sheet-body .btn { font-family: inherit; font-size: 14px; }
.primary { background: var(--accent) !important; color: #2a1d05 !important; border-color: #c48a1c !important; font-weight: 600; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats > div { background: var(--panel2); border-radius: 10px; padding: 10px; text-align: center; }
.stats b { display: block; font: 600 22px 'Pixelify Sans', system-ui; color: var(--accent); }
.stats.big b { font-size: 28px; }
.stats span { font-size: 12px; color: var(--muted); }
.rc-head { display: flex; gap: 14px; align-items: center; }
.rc-head img { width: 84px; height: 140px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)); }
.rc-state { font-weight: 600; margin-bottom: 6px; } .rc-state.ish { color: #8fd3ff; } .rc-state.uyda { color: #b8a8ff; } .rc-state.bosh { color: var(--ok); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list li { display: flex; gap: 10px; align-items: flex-start; background: var(--panel2); border-radius: 8px; padding: 8px 10px; }
.list li > div { flex: 1; min-width: 0; } .list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.list.notes li { background: #2b2f48; }
.chart { width: 100%; height: 130px; display: block; background: var(--panel2); border-radius: 8px; padding: 6px; }
.chart rect { fill: var(--accent); } .chart rect:hover { fill: #ffd27a; } .chart line { stroke: var(--line); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 3px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: 150px 1fr 64px; gap: 8px; align-items: center; font-size: 14px; }
.bars .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bars b { text-align: right; }
.bars .bar { height: 12px; background: var(--panel2); border-radius: 6px; overflow: hidden; } .bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f4b740, #ff8c5a); border-radius: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chips button { padding: 6px 10px; border-radius: 16px; font-size: 13.5px; } .chips button.on { background: var(--accent); color: #2a1d05; border-color: #c48a1c; }
.chips small { opacity: .7; margin-left: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gcard { background: var(--panel2); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.gcard .prev { position: relative; aspect-ratio: 4 / 3; background: #1a1c2a; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.gcard .prev img, .gcard .prev video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .play { position: absolute; font-size: 30px; color: #fff; text-shadow: 0 2px 8px #000; }
.ficon { font-size: 42px; text-align: center; } .ficon small { display: block; font-size: 12px; color: var(--muted); }
.gmeta { padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gmeta .nm { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmeta small { color: var(--muted); font-size: 11.5px; } .gmeta p { margin: 4px 0 0; font-size: 12px; color: #cfd2e6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gbtns { display: flex; gap: 4px; margin-top: auto; padding-top: 6px; }
.gbtns a, .gbtns button { flex: 1; text-align: center; padding: 5px 4px; border-radius: 6px; font-size: 13px; text-decoration: none; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.12); color: var(--ink); }
.more { width: 100%; margin-top: 12px; }
.sched-list { display: grid; gap: 10px; }
.scard { background: var(--panel2); border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--accent); }
.scard.off { opacity: .55; border-left-color: var(--line); }
.scard p { margin: 6px 0; font-size: 13.5px; color: #d6d8ea; white-space: pre-wrap; }
.scard small { display: block; font-size: 12.5px; color: #c8cbe0; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sdays { display: flex; gap: 3px; align-items: center; margin: 6px 0 4px; }
.sdays span { font-size: 11.5px; padding: 2px 5px; border-radius: 4px; background: rgba(0,0,0,.25); color: #77799a; }
.sdays span.on { background: #46507f; color: #fff; } .sdays b { margin-left: 8px; font: 600 17px 'Pixelify Sans', system-ui; color: var(--accent); }
.switch { position: relative; width: 42px; height: 24px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #444a6e; border-radius: 12px; transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { left: 21px; }
.sform { display: grid; gap: 10px; }
.sform label { display: grid; gap: 4px; font-size: 13.5px; color: #c8cbe0; }
.sform input:not([type=checkbox]):not([type=radio]), .sform select, .sform textarea { font: 15px system-ui, sans-serif; padding: 8px 10px; border-radius: 8px;
  border: 2px solid var(--line); background: #1e2131; color: var(--ink); width: 100%; }
.sform textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.dpick { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.dpick label { display: block; } .dpick input { display: none; }
.dpick span { display: inline-block; padding: 6px 9px; border-radius: 6px; background: #1e2131; border: 2px solid var(--line); cursor: pointer; font-size: 13px; }
.dpick input:checked + span { background: #46507f; border-color: #7aa7ff; color: #fff; }
.link { background: none !important; border: 0 !important; color: #9cc7ff !important; text-decoration: underline; padding: 4px !important; }
.seg { display: flex; gap: 6px; } .seg label { flex: 1; display: block; } .seg input { display: none; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 8px; background: #1e2131; border: 2px solid var(--line); cursor: pointer; font-size: 14px; }
.seg input:checked + span { border-color: var(--accent); background: #3a3f62; }
.zoom video { max-width: 94vw; max-height: 90vh; } .zoom audio { width: min(480px, 90vw); }
@media (max-width: 960px) {
  .sheet { width: 100vw; border-left: 0; }
  .bars li { grid-template-columns: 110px 1fr 56px; }
  .stats b { font-size: 18px; } .stats.big b { font-size: 22px; }
  .two { grid-template-columns: 1fr; }
}
