:root {
  --desk: #121417;
  --win: #23262a;
  --win2: #1c1f22;
  --edge: #050607;
  --line: #34383e;
  --title1: #474c54;
  --title2: #2b2f34;
  --title-act1: #3f5f86;
  --title-act2: #24384f;
  --txt: #d9dde2;
  --dim: #8d96a0;
  --acc: #2f8fe0;
  --acc2: #1f5f99;
  --lcd: #04090c;
  --lcd-txt: #3fd3ff;
  --lcd-dim: #2a7d99;
  --ok: #39d353;
  --warn: #f0b429;
  --bad: #ef4444;
  --btn1: #4a4f56;
  --btn2: #2c3035;
  --row1: #1d2023;
  --row2: #212428;
  --sel: #1d5c95;
  --rem: #ffcf5a;
  --lcd-hi: #f1f7fb;
  --lcd-art: #8fc3dc;
  --mono: "Consolas", "DejaVu Sans Mono", "Lucida Console", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--desk);
  color: var(--txt);
  font: 12px "Segoe UI", Tahoma, Verdana, "DejaVu Sans", sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
input, select, textarea, button { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #15171a; }
::-webkit-scrollbar-thumb { background: #3a3f46; border: 2px solid #15171a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4b525b; }
a { color: var(--acc); }

/* ---------- logo (temaya göre) ---------- */
.ras-logo { display: block; }
.sm-d, .sm-l { height: 14px; }
.about-d, .about-l { height: 54px; margin: 0 auto; }
.lg-l, .sm-l, .about-l { display: none; }
[data-theme="light"] .lg-d, [data-theme="light"] .sm-d, [data-theme="light"] .about-d { display: none; }
[data-theme="light"] .lg-l, [data-theme="light"] .sm-l, [data-theme="light"] .about-l { display: block; }

/* ---------- giriş ---------- */
#login {
  position: fixed; inset: 0; overflow: auto; background: #0f1215; color: #e8ecf0;
  display: flex; justify-content: center; user-select: text; -webkit-user-select: text;
}
.lg-wrap { width: 100%; max-width: 560px; padding: 56px 16px 32px; display: flex; flex-direction: column; align-items: center; min-height: 100%; }
.lg-logo { margin-bottom: 36px; line-height: 0; }
.lg-logo .ras-logo { height: 56px; }
.lg-card {
  width: 100%; max-width: 480px; background: #1a1e23; border: 1px solid #2a3037; border-radius: 10px;
  padding: 44px 42px 36px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.lg-card h1 { margin: 0 0 30px; font-size: 28px; font-weight: 700; letter-spacing: -.3px; color: #fff; }
.lg-card form { display: grid; gap: 0; }
.lg-card label { font-size: 14px; color: #b9c2cc; margin: 0 0 8px; }
.lg-card input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 16px; border-radius: 6px; outline: none;
  background: #0f1215; border: 1px solid #39414a; color: #fff; margin-bottom: 22px; transition: border-color .15s, box-shadow .15s;
}
.lg-card input:focus { border-color: #3b8de0; box-shadow: 0 0 0 3px rgba(59,141,224,.25); }
.lg-pass { position: relative; }
.lg-pass input { padding-right: 84px; }
.lg-pass button {
  position: absolute; right: 8px; top: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 4px;
  background: transparent; color: #6fb2ff; font-size: 13px; cursor: pointer;
}
.lg-pass button:hover { background: rgba(111,178,255,.1); }
.login-err { color: #ff7a7a; min-height: 20px; font-size: 14px; margin: -8px 0 10px; }
.lg-btn {
  height: 48px; border: 0; border-radius: 6px; background: #2f7fd6; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.lg-btn:hover { background: #3b8de0; }
.lg-btn:disabled { background: #2a4a6e; color: #a9c3df; cursor: default; }
.lg-hint { margin: 26px 0 0; text-align: center; font-size: 14px; color: #8d96a0; }
.lg-foot { margin-top: auto; padding-top: 48px; text-align: center; font-size: 13px; line-height: 1.7; color: #7d8792; }
.lg-theme {
  position: fixed; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2a3037;
  background: #1a1e23; color: #c9d1d9; font-size: 17px; cursor: pointer; z-index: 2;
}
[data-theme="light"] #login { background: #f4f5f7; color: #1d232b; }
[data-theme="light"] .lg-card { background: #fff; border-color: #e3e6ea; box-shadow: 0 6px 24px rgba(20,30,40,.06); }
[data-theme="light"] .lg-card h1 { color: #0e141a; }
[data-theme="light"] .lg-card label { color: #3a434d; }
[data-theme="light"] .lg-card input { background: #fff; border-color: #c9ced6; color: #0e141a; }
[data-theme="light"] .lg-card input:focus { border-color: #2f6fd0; box-shadow: 0 0 0 3px rgba(47,111,208,.18); }
[data-theme="light"] .lg-pass button { color: #2f6fd0; }
[data-theme="light"] .login-err { color: #c62828; }
[data-theme="light"] .lg-btn { background: #2f6fd0; }
[data-theme="light"] .lg-btn:hover { background: #255fb8; }
[data-theme="light"] .lg-btn:disabled { background: #9dbcf2; color: #fff; }
[data-theme="light"] .lg-hint, [data-theme="light"] .lg-foot { color: #5d6773; }
[data-theme="light"] .lg-theme { background: #fff; border-color: #d6dae0; color: #3a434d; }
@media (max-width: 520px) { .lg-card { padding: 32px 22px 28px; } .lg-card h1 { font-size: 24px; } .lg-wrap { padding-top: 40px; } }

/* ---------- üst çubuk ---------- */
#top { position: fixed; top: 0; left: 0; right: 0; z-index: 50000; }
#menubar {
  height: 24px; display: flex; align-items: stretch; background: linear-gradient(#33373c, #26292d);
  border-bottom: 1px solid #000;
}
#menubar .logo { padding: 0 12px 0 9px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
#menubar .logo b { color: var(--lcd-txt); }
.mb-item { padding: 0 10px; display: flex; align-items: center; cursor: default; color: #cfd4da; }
.mb-item:hover, .mb-item.open { background: var(--acc2); color: #fff; }
#menubar .spacer { flex: 1; }
#menubar .who { padding: 0 10px; display: flex; align-items: center; color: var(--dim); }
#toolbar {
  height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 6px;
  background: linear-gradient(#25282c, #1b1d20); border-bottom: 1px solid #000;
}
#tabs { display: flex; gap: 2px; align-items: flex-end; height: 100%; overflow-x: auto; overflow-y: hidden; flex: 1; min-width: 0; }
#tabs::-webkit-scrollbar { height: 0; }
.tab {
  height: 35px; padding: 0 18px; display: flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer;
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  background: linear-gradient(#34383d, #26292d); border: 1px solid #000; border-bottom: none; border-radius: 4px 4px 0 0; color: #b8bfc7;
}
.tab:hover { color: #fff; }
.tab.on { background: linear-gradient(#4a72a3, #2b4566); color: #fff; box-shadow: inset 0 3px 0 #3fd3ff; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.tab .led { width: 10px; height: 10px; }
.tab .add { font-weight: 700; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #444; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); flex: none; }
.led.on { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.led.warn { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.led.bad { background: var(--bad); box-shadow: 0 0 6px var(--bad); }
.tb-right { display: flex; align-items: center; gap: 8px; flex: none; }
.outs-badge { display: flex; align-items: center; gap: 6px; height: 25px; padding: 0 9px; border: 1px solid #000; border-radius: 3px;
  background: var(--lcd); color: var(--dim); font: 600 12px var(--mono); cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 4px rgba(0,0,0,.6); }
.outs-badge b { color: var(--txt); }
.tab .oc { font: 600 11px var(--mono); color: var(--dim); margin-left: 2px; }
.tab.on .oc { color: #cfe3f5; }
.theme-btn { width: 27px; padding: 0; font-size: 14px; }
.clock-mini { font: 600 18px var(--mono); color: var(--lcd-txt); text-shadow: 0 0 8px rgba(63,211,255,.45);
  background: var(--lcd); border: 1px solid #000; padding: 1px 8px; border-radius: 3px; box-shadow: inset 0 1px 4px #000; }
.onair-lamp { font: 700 11px/1 sans-serif; letter-spacing: 1px; padding: 6px 8px; border-radius: 3px; border: 1px solid #000;
  background: #3a1515; color: #774040; }
.onair-lamp.on { background: linear-gradient(#ff4b4b, #c51d1d); color: #fff; box-shadow: 0 0 12px rgba(255,60,60,.6); }

/* ---------- menü / bağlam menüsü ---------- */
.menu {
  position: fixed; z-index: 60000; min-width: 190px; padding: 3px; background: #2a2d31; border: 1px solid #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.menu .mi { padding: 5px 24px 5px 22px; position: relative; white-space: nowrap; cursor: default; border-radius: 2px; }
.menu .mi:hover { background: var(--sel); color: #fff; }
.menu .mi.dis { color: #666; pointer-events: none; }
.menu .mi.chk::before { content: "✓"; position: absolute; left: 7px; }
.menu .mi.sub::after { content: "▸"; position: absolute; right: 8px; }
.menu .sep { height: 1px; margin: 3px 4px; background: #000; border-bottom: 1px solid #3a3e44; }

/* ---------- masaüstü ---------- */
#desk {
  position: fixed; top: 67px; left: 0; right: 0; bottom: 0; overflow: auto;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--desk);
}
#deskInner { position: relative; min-width: 100%; min-height: 100%; }
.welcome { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); text-align: center; color: var(--dim); }
.welcome h2 { color: var(--txt); font-weight: 600; }

/* ---------- pencere ---------- */
.win {
  position: absolute; display: flex; flex-direction: column; background: var(--win);
  border: 1px solid var(--edge); box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  min-width: 180px; min-height: 60px; border-radius: 3px;
}
.win.min { height: auto !important; min-height: 0; }
.win.min .wbody, .win.min .rz { display: none; }
.wtitle {
  height: 22px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 3px 0 7px; cursor: move;
  background: linear-gradient(var(--title1), var(--title2)); border-bottom: 1px solid #000; border-radius: 2px 2px 0 0;
  color: #e6e9ed; font-weight: 600; font-size: 11.5px; letter-spacing: .2px;
}
.win.act .wtitle { background: linear-gradient(var(--title-act1), var(--title-act2)); color: #fff; }
.wtitle .wi { width: 14px; height: 14px; opacity: .85; flex: none; }
.wtitle .wt { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wbtn { width: 18px; height: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid #111;
  border-radius: 2px; background: linear-gradient(#585e66, #393d43); color: #dfe3e8; font-size: 10px; cursor: default; }
.wbtn:hover { background: linear-gradient(#6a717a, #464b52); }
.wbtn.x:hover { background: linear-gradient(#e05050, #a32626); }
.wbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.rz { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #555 50%, #555 58%, transparent 58%, transparent 70%, #555 70%, #555 78%, transparent 78%); }
.rz-r { position: absolute; right: -3px; top: 22px; bottom: 14px; width: 6px; cursor: ew-resize; }
.rz-b { position: absolute; left: 0; right: 14px; bottom: -3px; height: 6px; cursor: ns-resize; }

/* ---------- ortak araçlar ---------- */
.bar { display: flex; align-items: center; gap: 4px; padding: 4px; background: linear-gradient(#2b2e33, #222529); border-bottom: 1px solid #000; flex: none; flex-wrap: wrap; }
.bar .grow { flex: 1; }
.status { padding: 3px 6px; border-top: 1px solid #000; background: #1a1c1f; color: var(--dim); flex: none; display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.btn {
  height: 23px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid #0d0e10; border-radius: 3px; background: linear-gradient(var(--btn1), var(--btn2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); cursor: pointer; white-space: nowrap; color: #e3e6ea;
}
.btn:hover { background: linear-gradient(#5a6068, #353a40); }
.btn:active, .btn.on { background: linear-gradient(#24282c, #3a3f45); box-shadow: inset 0 1px 3px #000; }
.btn.pri { background: linear-gradient(#3b8de0, #1f5f99); }
.btn.pri:hover { background: linear-gradient(#4b9cec, #2a6eab); }
.btn.red { background: linear-gradient(#d04848, #8c2020); }
.btn.grn { background: linear-gradient(#2fa84a, #1b6e2f); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn.ico { padding: 0 6px; }
.inp, select.inp, textarea.inp {
  height: 23px; padding: 0 6px; background: #121416; border: 1px solid #000; border-radius: 2px; color: var(--txt);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.7); outline: none; min-width: 0;
}
textarea.inp { height: auto; padding: 6px; resize: vertical; user-select: text; }
.inp:focus { border-color: var(--acc); }
select.inp { padding-right: 2px; }
input[type=checkbox] { accent-color: var(--acc); margin: 0; vertical-align: middle; }
input[type=range] { accent-color: var(--acc); }
.chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.muted { color: var(--dim); }
.mono { font-family: var(--mono); }
.r { text-align: right; }
.c { text-align: center; }

/* ---------- tablo ---------- */
.grid-wrap { flex: 1; min-height: 0; overflow: auto; background: var(--row1); position: relative; }
table.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 600; padding: 4px 6px; white-space: nowrap; overflow: hidden;
  background: linear-gradient(#3a3e44, #2b2e33); border-right: 1px solid #111; border-bottom: 1px solid #000; color: #cdd3d9; cursor: default;
}
.grid th.sort::after { content: " ▲"; font-size: 9px; color: var(--lcd-txt); }
.grid th.sort.desc::after { content: " ▼"; }
.grid td { padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #191b1e; }
.grid tbody tr:nth-child(even) { background: var(--row2); }
.grid tbody tr:hover { background: #2a3038; }
.grid tbody tr.sel { background: var(--sel); color: #fff; }
.grid tbody tr.drop-before { box-shadow: inset 0 2px 0 var(--lcd-txt); }
.grid tbody tr.missing td { color: #a55; text-decoration: line-through; }
.grid tbody tr.dis td { color: #666; }
.empty { padding: 30px; text-align: center; color: var(--dim); }
.tchip { display: inline-block; width: 18px; text-align: center; font-size: 10px; font-weight: 700; border-radius: 2px; color: #fff; line-height: 14px; }
.t-S { background: #3a7bd5; } .t-J { background: #d08a20; } .t-A { background: #c83a3a; } .t-P { background: #8a4fd0; }
.t-V { background: #2e9a5a; } .t-N { background: #6b7a8a; } .t-X { background: #555; }

/* ---------- deste ---------- */
.deck { flex: 1; display: flex; flex-direction: column; padding: 6px; gap: 6px; min-height: 0; }
.lcd {
  background: var(--lcd); border: 1px solid #000; border-radius: 3px; padding: 7px 9px; position: relative;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05);
}
.lcd .state { position: absolute; right: 8px; top: 6px; font: 700 10px var(--mono); letter-spacing: 1px; color: var(--lcd-dim); }
.lcd .state.playing { color: var(--ok); text-shadow: 0 0 6px rgba(57,211,83,.6); }
.lcd .state.paused { color: var(--warn); }
.lcd .ttl { font-size: 15px; font-weight: 600; color: var(--lcd-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 70px; }
.lcd .art { color: var(--lcd-art); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.lcd .meta { color: var(--lcd-dim); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.times { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.times .big { font: 700 28px/1 var(--mono); color: var(--lcd-txt); text-shadow: 0 0 10px rgba(63,211,255,.45); letter-spacing: 1px; }
.times .rem { font: 700 20px/1 var(--mono); color: var(--rem); text-shadow: 0 0 8px rgba(255,200,80,.4); }
.times .lbl { font-size: 9px; color: var(--lcd-dim); letter-spacing: 1px; text-transform: uppercase; }
.times .rem.warn { color: #ff5a5a; text-shadow: 0 0 8px rgba(255,80,80,.6); }
.prog { height: 10px; margin-top: 7px; background: #0c1418; border: 1px solid #000; position: relative; overflow: hidden; border-radius: 2px; }
.prog .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #146a8f, #3fd3ff); }
.prog .xz { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(255,90,90,.35) 0 4px, rgba(255,90,90,.12) 4px 8px); }
.vu { display: grid; grid-template-columns: 12px 1fr; gap: 2px 5px; align-items: center; font: 9px var(--mono); color: var(--lcd-dim); }
.vu .m { height: 7px; background: #0b0f12; border: 1px solid #000; position: relative; overflow: hidden; }
.vu .m i { position: absolute; inset: 0; background: linear-gradient(90deg, #1fa83a 0%, #39d353 60%, #e8d23a 78%, #ff8a2a 88%, #ff3b3b 100%); clip-path: inset(0 100% 0 0); }
.vu .m b { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 0; opacity: .8; }
.vu .m::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,.55) 3px 4px); }
.transport { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.transport .btn { height: 28px; min-width: 34px; }
.transport .btn svg { width: 16px; height: 16px; }
.transport .vol { flex: 1; min-width: 90px; display: flex; align-items: center; gap: 4px; color: var(--dim); }
.transport .vol input { flex: 1; min-width: 50px; }
.deck.drop .lcd { box-shadow: inset 0 0 0 2px var(--lcd-txt); }
.next-line { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }

/* ---------- ağaç ---------- */
.split { flex: 1; display: flex; min-height: 0; }
.tree { width: 190px; flex: none; overflow: auto; background: #191b1e; border-right: 1px solid #000; padding: 3px 0; }
.tree .tn { padding: 3px 8px; display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.tree .tn:hover { background: #262b31; }
.tree .tn.sel { background: var(--sel); color: #fff; }
.tree .tn.drop { box-shadow: inset 0 0 0 1px var(--lcd-txt); }
.tree .th { padding: 7px 8px 3px; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: space-between; }
.tree .cnt { margin-left: auto; color: var(--dim); font-size: 10px; }
.tree .tn.sel .cnt { color: #cde; }
.dot { width: 9px; height: 9px; border-radius: 2px; flex: none; border: 1px solid rgba(0,0,0,.5); }
.tree .tn.ch { padding-left: 22px; }

/* ---------- form / diyalog ---------- */
.overlay { position: fixed; inset: 0; z-index: 55000; background: rgba(0,0,0,.45); }
.dlg { position: fixed; z-index: 55001; }
.dlg .wbody { padding: 0; }
.form { padding: 12px; display: grid; grid-template-columns: 130px 1fr; gap: 7px 10px; align-items: center; overflow: auto; }
.form label { color: var(--dim); text-align: right; }
.form .full { grid-column: 1 / -1; }
.form .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form h4 { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; color: var(--lcd-txt); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 10px; border-top: 1px solid #000; background: #1d2023; flex: none; }
.dlg-foot .grow { flex: 1; }
.note { color: var(--dim); font-size: 11px; line-height: 1.45; }
.err { color: var(--bad); }
.pick-list { max-height: 180px; overflow: auto; border: 1px solid #000; background: #131517; }
.pick-list div { padding: 3px 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-list div:hover { background: #2a3038; }
.pick-list div.sel { background: var(--sel); }
.days { display: flex; gap: 2px; }
.days label { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 22px; border: 1px solid #000; background: #2a2d31; cursor: pointer; color: #bbb; text-align: center; border-radius: 2px; }
.days label.on { background: var(--sel); color: #fff; }
.days input { display: none; }

/* ---------- PAL ---------- */
.pal { flex: 1; display: flex; min-height: 0; }
.pal-list { width: 180px; flex: none; overflow: auto; background: #191b1e; border-right: 1px solid #000; }
.pal-list .it { padding: 5px 8px; display: flex; gap: 6px; align-items: center; cursor: pointer; border-bottom: 1px solid #111; }
.pal-list .it:hover { background: #262b31; }
.pal-list .it.sel { background: var(--sel); }
.pal-list .it small { color: var(--dim); display: block; font-size: 10px; }
.pal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.code-wrap { flex: 1; min-height: 80px; display: flex; background: #0d0f11; border-bottom: 1px solid #000; position: relative; }
.gutter { width: 38px; flex: none; padding: 6px 4px; text-align: right; font: 12px/18px var(--mono); color: #4e5761; background: #121417; border-right: 1px solid #000; overflow: hidden; white-space: pre; }
.code { flex: 1; resize: none; border: 0; outline: 0; padding: 6px 8px; margin: 0; background: transparent; color: #d6e2ea; font: 12px/18px var(--mono); white-space: pre; overflow: auto; tab-size: 2; user-select: text; }
.console { height: 120px; flex: none; overflow: auto; background: #07090a; font: 11px/16px var(--mono); color: #9fd6a8; padding: 4px 8px; user-select: text; white-space: pre-wrap; }
.console .e { color: #ff7a7a; }
.pal-help { font: 11px/1.5 var(--mono); color: #b9c4cc; padding: 10px 14px; overflow: auto; white-space: pre-wrap; user-select: text; }

/* ---------- saat ---------- */
.tabs2 { display: flex; gap: 2px; padding: 4px 4px 0; background: #1d2023; border-bottom: 1px solid #000; flex: none; }
.tabs2 .t { padding: 4px 12px; border: 1px solid #000; border-bottom: none; background: #2a2d31; cursor: pointer; border-radius: 3px 3px 0 0; color: #aab; }
.tabs2 .t.on { background: var(--win); color: #fff; }
.clk { flex: 1; display: flex; min-height: 0; }
.clk-list { width: 170px; flex: none; overflow: auto; background: #191b1e; border-right: 1px solid #000; }
.clk-list .it { padding: 6px 8px; display: flex; gap: 6px; align-items: center; cursor: pointer; border-bottom: 1px solid #111; }
.clk-list .it:hover { background: #262b31; }
.clk-list .it.sel { background: var(--sel); }
.clk-items { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wheel { width: 210px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px; border-left: 1px solid #000; background: #1a1c1f; gap: 6px; overflow: auto; }
.wheel svg { width: 190px; height: 190px; }
.legend { width: 100%; font-size: 11px; display: grid; gap: 2px; }
.legend div { display: flex; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week { flex: 1; overflow: auto; padding: 8px; }
.week table { border-collapse: collapse; }
.week th { font-weight: 400; color: var(--dim); font-size: 10px; padding: 2px; }
.week td { width: 26px; height: 20px; border: 1px solid #000; background: #15171a; cursor: crosshair; padding: 0; }
.week td.now { outline: 2px solid #fff; outline-offset: -2px; }
.palette { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid #000; background: #1d2023; align-items: center; }
.palette .sw { padding: 3px 8px 3px 5px; border: 1px solid #000; border-radius: 3px; cursor: pointer; display: flex; gap: 5px; align-items: center; background: #2a2d31; }
.palette .sw.on { box-shadow: 0 0 0 2px var(--lcd-txt); }

/* ---------- yayın / saat penceresi ---------- */
.onair { flex: 1; display: flex; flex-direction: column; padding: 8px; gap: 8px; min-height: 0; overflow: auto; }
.bigclock { display: flex; align-items: center; gap: 12px; background: var(--lcd); border: 1px solid #000; border-radius: 3px; padding: 10px 14px; box-shadow: inset 0 2px 10px #000; }
.bigclock .oto-name { flex: 1; min-width: 0; font-size: 26px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; color: var(--lcd-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigclock .clk-r { text-align: right; flex: none; }
.bigclock .tm { font: 700 40px/1 var(--mono); color: var(--lcd-txt); text-shadow: 0 0 14px rgba(63,211,255,.5); letter-spacing: 2px; }
.bigclock .dt { color: var(--lcd-dim); margin-top: 4px; }
.now-box { background: #15181b; border: 1px solid #000; padding: 6px 8px; border-radius: 3px; }
.now-box .k { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.now-box .v { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- günlük ---------- */
.log { flex: 1; overflow: auto; font: 11px/17px var(--mono); padding: 4px 6px; background: #0c0e10; user-select: text; }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .t { color: #56616c; margin-right: 6px; }
.log .warn { color: #f0c060; } .log .err { color: #ff7070; } .log .play { color: #7fd0ff; } .log .event { color: #b99cff; }

/* ---------- crossfade grafiği ---------- */
.xf-graph { background: var(--lcd); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 2px 8px #000; }

/* ---------- bildirim ---------- */
#toasts { position: fixed; right: 12px; bottom: 12px; z-index: 70000; display: grid; gap: 6px; }
.toast { background: #2b2f34; border: 1px solid #000; border-left: 3px solid var(--acc); padding: 8px 12px; box-shadow: 0 6px 16px rgba(0,0,0,.5); max-width: 360px; border-radius: 3px; }
.toast.err { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }

.drag-ghost { position: fixed; z-index: 80000; pointer-events: none; background: var(--sel); color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.5); }

@media (max-width: 720px) {
  #menubar .who { display: none; }
  .clock-mini { display: none; }
  .onair-lamp { display: none; }
  #btnRun span { display: none; }
  .outs-badge span:not(.led) { display: none; }
  #tabs { min-width: 60px; }
  .tab { padding: 0 10px; }
  .tree { width: 130px; }
  .form { grid-template-columns: 1fr; }
  .form label { text-align: left; }
}


/* ================= AÇIK TEMA ================= */
:root[data-theme="light"] {
  --desk: #b9c0c9;
  --win: #eef0f3;
  --win2: #e2e6eb;
  --edge: #7d8792;
  --line: #c3c9d0;
  --title1: #e9ecf0;
  --title2: #c9d0d8;
  --title-act1: #5b92d1;
  --title-act2: #2f64a3;
  --txt: #1d232b;
  --dim: #5d6773;
  --acc: #1f6fc4;
  --acc2: #2f6fb8;
  --lcd: #dce9ef;
  --lcd-txt: #0b5f85;
  --lcd-dim: #4f7c90;
  --lcd-hi: #0d2733;
  --lcd-art: #2b5d75;
  --rem: #a8620a;
  --ok: #1f9a3a;
  --warn: #c88a00;
  --bad: #d23030;
  --btn1: #fbfcfd;
  --btn2: #dde2e8;
  --row1: #ffffff;
  --row2: #f3f5f8;
  --sel: #3a83d4;
}
[data-theme="light"] body { color: var(--txt); }
[data-theme="light"] ::-webkit-scrollbar-track { background: #e4e8ed; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #b3bcc6; border-color: #e4e8ed; }
[data-theme="light"] #menubar { background: linear-gradient(#f6f7f9, #dfe3e8); border-color: #9aa3ad; }
[data-theme="light"] #menubar .logo { color: #1d232b; }
[data-theme="light"] #menubar .logo b { color: var(--acc); }
[data-theme="light"] .mb-item { color: #2b333c; }
[data-theme="light"] .mb-item:hover, [data-theme="light"] .mb-item.open { background: var(--sel); color: #fff; }
[data-theme="light"] #toolbar { background: linear-gradient(#e6e9ed, #ccd2d9); border-color: #8d97a2; }
[data-theme="light"] .tab { background: linear-gradient(#f4f6f8, #d8dde3); border-color: #8d97a2; color: #3a434d; }
[data-theme="light"] .tab:hover { color: #000; }
[data-theme="light"] .tab.on { background: linear-gradient(#5b92d1, #2f64a3); color: #fff; border-color: #2a4f7c; box-shadow: inset 0 3px 0 #ffb020; }
[data-theme="light"] .led { background: #b5bcc4; box-shadow: inset 0 1px 1px rgba(0,0,0,.3); }
[data-theme="light"] .led.on { background: #22c348; box-shadow: 0 0 5px rgba(34,195,72,.7); }
[data-theme="light"] .led.warn { background: #f0b429; box-shadow: 0 0 5px rgba(240,180,41,.8); }
[data-theme="light"] .led.bad { background: #e23b3b; box-shadow: 0 0 5px rgba(226,59,59,.7); }
[data-theme="light"] .clock-mini, [data-theme="light"] .outs-badge { border-color: #8d97a2; box-shadow: inset 0 1px 3px rgba(0,0,0,.18); text-shadow: none; }
[data-theme="light"] .onair-lamp { background: #e7c9c9; color: #a56a6a; border-color: #a37a7a; }
[data-theme="light"] .onair-lamp.on { background: linear-gradient(#ff4b4b, #c51d1d); color: #fff; border-color: #8c1a1a; }
[data-theme="light"] .menu { background: #fbfcfd; border-color: #8d97a2; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
[data-theme="light"] .menu .mi.dis { color: #a0a7af; }
[data-theme="light"] .menu .sep { background: #c9cfd6; border-bottom-color: #fff; }
[data-theme="light"] #desk { background:
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 16px 16px, var(--desk); }
[data-theme="light"] .welcome h2 { color: #1d232b; }
[data-theme="light"] .win { box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.7); }
[data-theme="light"] .wtitle { border-bottom-color: #9aa3ad; color: #26303a; }
[data-theme="light"] .win.act .wtitle { color: #fff; border-bottom-color: #2a4f7c; }
[data-theme="light"] .wbtn { border-color: #7d8792; background: linear-gradient(#ffffff, #d5dbe1); color: #2b333c; }
[data-theme="light"] .wbtn:hover { background: linear-gradient(#ffffff, #e6eaee); }
[data-theme="light"] .wbtn.x:hover { background: linear-gradient(#f06a6a, #c43030); color: #fff; }
[data-theme="light"] .rz { background: linear-gradient(135deg, transparent 50%, #9aa3ad 50%, #9aa3ad 58%, transparent 58%, transparent 70%, #9aa3ad 70%, #9aa3ad 78%, transparent 78%); }
[data-theme="light"] .bar { background: linear-gradient(#f7f8fa, #e3e7ec); border-bottom-color: #c0c7cf; }
[data-theme="light"] .status { background: #e4e8ed; border-top-color: #c0c7cf; }
[data-theme="light"] .btn { border-color: #8d97a2; color: #1d232b; box-shadow: inset 0 1px 0 #fff; }
[data-theme="light"] .btn:hover { background: linear-gradient(#ffffff, #e9edf1); }
[data-theme="light"] .btn:active, [data-theme="light"] .btn.on { background: linear-gradient(#cfd6de, #e8ecf0); box-shadow: inset 0 1px 3px rgba(0,0,0,.3); }
[data-theme="light"] .btn.pri { background: linear-gradient(#4b9cec, #2465ad); color: #fff; border-color: #1f4f86; box-shadow: none; }
[data-theme="light"] .btn.red { background: linear-gradient(#e86060, #b42828); color: #fff; border-color: #8c1f1f; box-shadow: none; }
[data-theme="light"] .btn.grn { background: linear-gradient(#45c062, #23863b); color: #fff; border-color: #1b6a2e; box-shadow: none; }
[data-theme="light"] .inp, [data-theme="light"] select.inp, [data-theme="light"] textarea.inp { background: #fff; border-color: #9aa3ad; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
[data-theme="light"] .grid th { background: linear-gradient(#f7f8fa, #dfe4e9); border-right-color: #c5ccd3; border-bottom-color: #a9b2bc; color: #2b333c; }
[data-theme="light"] .grid td { border-bottom-color: #e6e9ed; }
[data-theme="light"] .grid tbody tr:hover { background: #e3eefa; }
[data-theme="light"] .grid tbody tr.sel { background: var(--sel); color: #fff; }
[data-theme="light"] .grid tbody tr.missing td { color: #c04040; }
[data-theme="light"] .grid tbody tr.dis td { color: #9aa2ab; }
[data-theme="light"] .lcd { border-color: #8aa3b0; box-shadow: inset 0 1px 4px rgba(0,0,0,.15); }
[data-theme="light"] .lcd .state.playing, [data-theme="light"] .times .big, [data-theme="light"] .times .rem,
[data-theme="light"] .bigclock .tm { text-shadow: none; }
[data-theme="light"] .times .rem.warn { color: #d02020; text-shadow: none; }
[data-theme="light"] .prog { background: #c4d6df; border-color: #8aa3b0; }
[data-theme="light"] .prog .fill { background: linear-gradient(90deg, #4aa6d6, #0b6f9e); }
[data-theme="light"] .vu .m { background: #26323a; border-color: #5d6f7a; }
[data-theme="light"] .tree, [data-theme="light"] .pal-list, [data-theme="light"] .clk-list { background: #f6f8fa; border-right-color: #c0c7cf; }
[data-theme="light"] .tree .tn:hover, [data-theme="light"] .pal-list .it:hover, [data-theme="light"] .clk-list .it:hover { background: #e3eefa; }
[data-theme="light"] .tree .tn.sel, [data-theme="light"] .pal-list .it.sel, [data-theme="light"] .clk-list .it.sel { background: var(--sel); color: #fff; }
[data-theme="light"] .tree .tn.sel .cnt, [data-theme="light"] .pal-list .it.sel small { color: #e3efff; }
[data-theme="light"] .pal-list .it, [data-theme="light"] .clk-list .it { border-bottom-color: #e1e5ea; }
[data-theme="light"] .overlay { background: rgba(40,50,60,.25); }
[data-theme="light"] .dlg-foot { background: #e4e8ed; border-top-color: #c0c7cf; }
[data-theme="light"] .pick-list { background: #fff; border-color: #9aa3ad; }
[data-theme="light"] .pick-list div:hover { background: #e3eefa; }
[data-theme="light"] .days label { background: #f4f6f8; border-color: #9aa3ad; color: #3a434d; }
[data-theme="light"] .days label.on { background: var(--sel); color: #fff; }
[data-theme="light"] .code-wrap { background: #fff; border-bottom-color: #c0c7cf; }
[data-theme="light"] .gutter { background: #eef1f4; color: #8a939d; border-right-color: #d3d9df; }
[data-theme="light"] .code { color: #13202b; }
[data-theme="light"] .console { background: #f7f9fb; color: #1e6b2f; border-top: 1px solid #d3d9df; }
[data-theme="light"] .console .e { color: #c02626; }
[data-theme="light"] .pal-help { color: #2b333c; }
[data-theme="light"] .tabs2 { background: #e4e8ed; border-bottom-color: #c0c7cf; }
[data-theme="light"] .tabs2 .t { background: #d8dde3; border-color: #a9b2bc; color: #3a434d; }
[data-theme="light"] .tabs2 .t.on { background: var(--win); color: #000; }
[data-theme="light"] .wheel { background: #f6f8fa; border-left-color: #c0c7cf; }
[data-theme="light"] .week td { background: #fff; border-color: #a9b2bc; }
[data-theme="light"] .week td.now { outline-color: #000; }
[data-theme="light"] .palette { background: #e4e8ed; border-bottom-color: #c0c7cf; }
[data-theme="light"] .palette .sw { background: #fff; border-color: #a9b2bc; }
[data-theme="light"] .bigclock, [data-theme="light"] .xf-graph { border-color: #8aa3b0; box-shadow: inset 0 1px 4px rgba(0,0,0,.15); }
[data-theme="light"] .now-box { background: #fff; border-color: #c0c7cf; }
[data-theme="light"] .log { background: #fff; }
[data-theme="light"] .log .t { color: #8a939d; }
[data-theme="light"] .log .warn { color: #a36a00; } [data-theme="light"] .log .err { color: #c02626; }
[data-theme="light"] .log .play { color: #0b5f85; } [data-theme="light"] .log .event { color: #6a3fc0; }
[data-theme="light"] .toast { background: #fff; border-color: #9aa3ad; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
[data-theme="light"] .form h4 { color: var(--acc); }

/* ================= "Ne yapmak istiyorsun?" çekmecesi ================= */
.ask-btn { height: 30px; padding: 0 14px; font-weight: 600; font-size: 13px; background: linear-gradient(#3b8de0, #1f5f99); color: #fff; border-color: #123a62; }
.ask-btn:hover { background: linear-gradient(#4b9cec, #2a6eab); }
.ask-ic { font-size: 14px; }
.sm2-d, .sm2-l { height: 22px; }
.sm2-l { display: none; }
[data-theme="light"] .sm2-d { display: none; }
[data-theme="light"] .sm2-l { display: block; }
.dr-scrim { position: fixed; inset: 0; z-index: 57990; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dr-scrim.on { opacity: 1; pointer-events: auto; }
.dr {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; z-index: 58000;
  background: #171a1e; color: #e8ecf0; border-left: 1px solid #000; box-shadow: -12px 0 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; user-select: text; -webkit-user-select: text;
  font-size: 15px;
}
.dr.on { transform: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #262b31; flex: none; }
.dr-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #aab3bd; font-size: 18px; cursor: pointer; }
.dr-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.dr-body { flex: 1; overflow: auto; padding: 18px 20px 32px; }
.dr-h { font-size: 22px; font-weight: 700; margin: 6px 0 16px; line-height: 1.25; letter-spacing: -.2px; }
.dr-h.big { font-size: 26px; }
.dr-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: #8d96a0; margin: 22px 0 10px; font-weight: 600; }
.dr-note { color: #8d96a0; font-size: 13.5px; line-height: 1.5; margin: 10px 0; }
.dr-err { color: #ff8080; font-size: 14px; margin: 10px 0; }
.dr-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dr-back { border: 0; background: transparent; color: #6fb2ff; font-size: 15px; cursor: pointer; padding: 6px 0; }
.dr-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #2e353d; background: #1f2429; color: #dfe5ea; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.dr-otos { display: grid; gap: 10px; }
.dr-oto { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 16px 16px; border-radius: 10px; border: 1px solid #2a3037; background: #1f2429; color: inherit; cursor: pointer; }
.dr-oto:hover { border-color: #3b8de0; background: #222a33; }
.dr-oto.cur { border-color: #3b8de0; box-shadow: inset 3px 0 0 #3fd3ff; }
.dr-oto .led { width: 12px; height: 12px; }
.dr-oto-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dr-oto-t b { font-size: 18px; }
.dr-oto-t small { color: #8d96a0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-arrow { font-size: 26px; color: #6c7681; }
.dr-q { width: 100%; height: 54px; border-radius: 10px; border: 1px solid #39414a; background: #0f1215; color: #fff; font-size: 17px; padding: 0 16px; outline: none; }
.dr-q:focus { border-color: #3b8de0; box-shadow: 0 0 0 3px rgba(59,141,224,.25); }
.dr-ask { margin-top: 10px; width: 100%; height: 48px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #2f7fd6, #6a5ae0); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.dr-status { display: grid; gap: 4px; margin-top: 12px; font-size: 13.5px; color: #b9c2cc; }
.dr-status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 14px; border-radius: 10px; border: 1px solid #2a3037; background: #1f2429; color: inherit; cursor: pointer; min-height: 120px; }
.dr-card:hover { border-color: #3b8de0; background: #222a33; }
.dr-ic { font-size: 24px; line-height: 1; }
.dr-ct { display: grid; gap: 4px; }
.dr-ct b { font-size: 15.5px; }
.dr-ct small { font-size: 12.5px; color: #8d96a0; line-height: 1.4; }
.dr-f { margin-bottom: 16px; display: grid; gap: 8px; }
.dr-f > label { font-size: 14px; font-weight: 600; color: #cfd6dd; }
.dr-in { width: 100%; height: 44px; border-radius: 8px; border: 1px solid #39414a; background: #0f1215; color: #fff; font-size: 15px; padding: 0 12px; outline: none; }
.dr-in:focus { border-color: #3b8de0; }
.dr-in.file { height: auto; padding: 10px; }
select.dr-in { padding-right: 6px; }
.dr-row2 { display: flex; align-items: center; gap: 8px; }
.dr-row2 .dr-in { flex: 1; min-width: 0; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-chips button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #39414a; background: #1f2429; color: #dfe5ea; font-size: 14px; cursor: pointer; }
.dr-chips button.on { background: #2f7fd6; border-color: #2f7fd6; color: #fff; font-weight: 600; }
.dr-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #cfd6dd; }
.dr-check input { width: 18px; height: 18px; }
.dr-go { width: 100%; height: 50px; border: 0; border-radius: 10px; background: #2f7fd6; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.dr-go:hover { background: #3b8de0; }
.dr-go:disabled { background: #2a4a6e; color: #a9c3df; cursor: default; }
.dr-ghost { height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid #39414a; background: transparent; color: #cfd6dd; font-size: 15px; cursor: pointer; }
.dr-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.dr-acts .dr-go { flex: 1; width: auto; margin: 0; }
.dr-col { display: grid; gap: 10px; }
.dr-big { width: 100%; min-height: 56px; border-radius: 10px; border: 1px solid #2a3037; background: #1f2429; color: #e8ecf0; font-size: 16px; font-weight: 600; text-align: left; padding: 0 18px; cursor: pointer; }
.dr-big:hover { border-color: #3b8de0; }
.dr-big.red { background: #5a1d1d; border-color: #7a2a2a; }
.dr-big.grn { background: #1d4a2a; border-color: #2a6a3a; }
.dr-list { display: grid; gap: 8px; margin-top: 10px; }
.dr-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #1f2429; border: 1px solid #262c33; flex-wrap: wrap; }
.dr-row.off { opacity: .55; }
.dr-rt { flex: 1; min-width: 180px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.dr-rt > span:not(.tchip):not(.led) { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-rt > small { grid-column: 2; color: #8d96a0; font-size: 12.5px; }
.dr-rt > .led, .dr-rt > .tchip { grid-row: span 2; }
.dr-rb { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dr-mini { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #2f7fd6; background: #2f7fd6; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.dr-mini.alt { background: transparent; color: #8fc3ff; }
.dr-mini.red { background: transparent; border-color: #a33; color: #ff8a8a; }
.dr-switch { width: 22px; height: 22px; }
.dr-vol { font: 700 44px/1 var(--mono); text-align: center; margin: 10px 0 14px; color: var(--lcd-txt); }
.dr-range { width: 100%; height: 32px; }
.dr-done { padding: 14px; border-radius: 10px; background: #173523; border: 1px solid #2a6a3a; margin-top: 12px; }
.dr-done b { font-size: 16px; }
.dr-done p { margin: 8px 0 0; line-height: 1.5; }
.dr-ai { display: grid; gap: 12px; }
.dr-me { justify-self: end; max-width: 88%; background: #2f7fd6; color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 15px; line-height: 1.45; }
.dr-bot { max-width: 92%; background: #1f2429; border: 1px solid #2a3037; padding: 12px 14px; border-radius: 14px 14px 14px 4px; font-size: 15px; line-height: 1.5; }
.dr-think { display: flex; gap: 10px; align-items: center; color: #8d96a0; font-size: 14px; }
.dr-dots { display: inline-flex; gap: 4px; }
.dr-dots i { width: 7px; height: 7px; border-radius: 50%; background: #6fb2ff; animation: drp 1s infinite ease-in-out; }
.dr-dots i:nth-child(2) { animation-delay: .15s; } .dr-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes drp { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dr-plan { display: grid; gap: 8px; }
.dr-plan .dr-sub { margin: 4px 0 2px; }
.dr-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 8px; background: #1f2429; border: 1px solid #2a3037; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.dr-step input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.dr-step small { display: block; color: #ff9a9a; font-size: 12.5px; margin-top: 3px; }
.dr-step.bad { border-color: #6a2a2a; }
.dr-step.ok { border-color: #2a6a3a; }
.dr-tick { font-weight: 700; width: 18px; flex: none; }
.dr-step.ok .dr-tick { color: #5fd07a; } .dr-step.bad .dr-tick { color: #ff7a7a; }
.voice-box .prog { margin-top: 6px; }
@media (max-width: 600px) {
  .dr { width: 100vw; border-left: 0; }
  .dr-cards { grid-template-columns: 1fr; }
  .dr-card { min-height: 0; flex-direction: row; align-items: center; }
  .ask-t { display: none; }
  .ask-btn { padding: 0 10px; }
}
[data-theme="light"] .dr { background: #f7f8fa; color: #1d232b; border-left-color: #d6dae0; box-shadow: -12px 0 40px rgba(20,30,40,.18); }
[data-theme="light"] .dr-head { border-bottom-color: #e3e6ea; background: #fff; }
[data-theme="light"] .dr-x { color: #5d6773; } [data-theme="light"] .dr-x:hover { background: #eef1f4; color: #000; }
[data-theme="light"] .dr-chip, [data-theme="light"] .dr-oto, [data-theme="light"] .dr-card, [data-theme="light"] .dr-big,
[data-theme="light"] .dr-row, [data-theme="light"] .dr-step, [data-theme="light"] .dr-bot { background: #fff; border-color: #dde1e6; color: #1d232b; }
[data-theme="light"] .dr-oto:hover, [data-theme="light"] .dr-card:hover, [data-theme="light"] .dr-big:hover { border-color: #2f6fd0; background: #f3f7fd; }
[data-theme="light"] .dr-q, [data-theme="light"] .dr-in { background: #fff; border-color: #c9ced6; color: #0e141a; }
[data-theme="light"] .dr-chips button { background: #fff; border-color: #c9ced6; color: #2b333c; }
[data-theme="light"] .dr-chips button.on { background: #2f6fd0; border-color: #2f6fd0; color: #fff; }
[data-theme="light"] .dr-f > label, [data-theme="light"] .dr-check { color: #2b333c; }
[data-theme="light"] .dr-note, [data-theme="light"] .dr-sub, [data-theme="light"] .dr-ct small, [data-theme="light"] .dr-oto-t small, [data-theme="light"] .dr-rt > small { color: #5d6773; }
[data-theme="light"] .dr-status { color: #3a434d; }
[data-theme="light"] .dr-big.red { background: #fde8e8; border-color: #f0b4b4; color: #8c1f1f; }
[data-theme="light"] .dr-big.grn { background: #e6f6ea; border-color: #a9dcb5; color: #1b6a2e; }
[data-theme="light"] .dr-done { background: #e6f6ea; border-color: #a9dcb5; }
[data-theme="light"] .dr-ghost { border-color: #c9ced6; color: #2b333c; }
[data-theme="light"] .dr-mini.alt { color: #2f6fd0; border-color: #2f6fd0; }
[data-theme="light"] .dr-back { color: #2f6fd0; }
[data-theme="light"] .dr-step small { color: #c62828; }
@media (max-width: 480px) {
  .bigclock { flex-direction: column; align-items: stretch; text-align: center; }
  .bigclock .clk-r { text-align: center; }
  .bigclock .oto-name { font-size: 24px; text-align: center; }
}
.listen-link { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.listen-link a { color: var(--acc); text-decoration: none; font-weight: 600; word-break: break-all; }
.listen-link a:hover { text-decoration: underline; }
.listen-link .dr-mini { height: 22px; padding: 0 8px; font-size: 11px; }
.dr-oto.new { border-style: dashed; }
.dr-plus { width: 26px; height: 26px; border-radius: 50%; background: #2f7fd6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.dr-list.dirs { max-height: 300px; overflow: auto; }
.dr-row.dir { cursor: pointer; padding: 8px 12px; }
.dr-row.dir input { width: 18px; height: 18px; }
.dr-row.dir span { flex: 1; font-size: 14.5px; }
.wiz .dr-me { cursor: default; }
.wiz-ask { display: grid; gap: 8px; padding: 4px 0 8px; }
.wiz-ask .dr-go { margin-top: 2px; }
.wiz-sum { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.wiz-sum li { line-height: 1.4; word-break: break-word; }
