: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); }

/* ---------- giriş ---------- */
#login {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #1f2a36 0%, #0c0e10 70%);
}
.login-box {
  width: 360px; max-width: calc(100vw - 32px);
  background: linear-gradient(#2a2e33, #1d2024); border: 1px solid #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); border-radius: 4px;
}
.login-box .brand { padding: 22px 24px 16px; border-bottom: 1px solid #000; background: linear-gradient(#36414e, #232b34); }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: .5px; color: #fff; }
.brand-name b { color: var(--lcd-txt); }
.brand-sub { color: var(--dim); font-size: 11px; margin-top: 2px; letter-spacing: 2px; text-transform: uppercase; }
.login-box form { padding: 20px 24px 24px; display: grid; gap: 10px; }
.login-box label { color: var(--dim); font-size: 11px; }
.login-err { color: var(--bad); min-height: 16px; font-size: 12px; }

/* ---------- ü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 10px 0 8px; 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: 34px; 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: 27px; padding: 0 12px; display: flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer;
  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(#3f5f86, #2a3f58); color: #fff; }
.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: 10px 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: 59px; 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 { text-align: center; background: var(--lcd); border: 1px solid #000; border-radius: 3px; padding: 8px; box-shadow: inset 0 2px 10px #000; }
.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; }
  .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"] #login { background: radial-gradient(ellipse at 50% 30%, #e8eef5 0%, #aeb7c2 75%); }
[data-theme="light"] .login-box { background: linear-gradient(#ffffff, #eef1f4); border-color: #8a949f; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
[data-theme="light"] .login-box .brand { background: linear-gradient(#5b92d1, #2f64a3); border-color: #2a4f7c; }
[data-theme="light"] .brand-sub { color: #dbe8f6; }
[data-theme="light"] .brand-name b { color: #bfe6ff; }
[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; }
[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); }
