:root {
  --bg: #eef3fb; --ink: #0b1626; --muted: #4b5d75; --glass: rgba(255,255,255,.55); --glass-2: rgba(255,255,255,.35);
  --edge: rgba(255,255,255,.75); --line: rgba(15,40,80,.12); --accent: #1673ff; --accent-2: #36b5ff;
  --new: rgba(16,185,129,.28); --soon: rgba(245,158,11,.3); --bad: rgba(244,63,94,.3); --wait: rgba(15,40,80,.08);
  --orb1: #7fb6ff; --orb2: #c4a6ff; --orb3: #7fe3f0; --shadow: 0 8px 30px rgba(20,40,80,.15);
}
:root[data-theme="night"] {
  --bg: #050b18; --ink: #eef6ff; --muted: #9db3cc; --glass: rgba(255,255,255,.10); --glass-2: rgba(255,255,255,.06);
  --edge: rgba(255,255,255,.35); --line: rgba(255,255,255,.12); --accent: #2f86ff; --accent-2: #4fc3ff;
  --new: rgba(52,211,153,.35); --soon: rgba(251,191,36,.35); --bad: rgba(244,63,94,.4); --wait: rgba(255,255,255,.1);
  --orb1: #1e7bff; --orb2: #7c3aed; --orb3: #06b6d4; --shadow: 0 8px 30px rgba(0,0,0,.45);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #050b18; --ink: #eef6ff; --muted: #9db3cc; --glass: rgba(255,255,255,.10); --glass-2: rgba(255,255,255,.06);
    --edge: rgba(255,255,255,.35); --line: rgba(255,255,255,.12); --accent: #2f86ff; --accent-2: #4fc3ff;
    --new: rgba(52,211,153,.35); --soon: rgba(251,191,36,.35); --bad: rgba(244,63,94,.4); --wait: rgba(255,255,255,.1);
    --orb1: #1e7bff; --orb2: #7c3aed; --orb3: #06b6d4; --shadow: 0 8px 30px rgba(0,0,0,.45);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.45 -apple-system, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.orbs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.orbs i:nth-child(1) { width: 480px; height: 480px; background: var(--orb1); left: -120px; top: -160px; }
.orbs i:nth-child(2) { width: 420px; height: 420px; background: var(--orb2); right: -100px; top: 120px; }
.orbs i:nth-child(3) { width: 380px; height: 380px; background: var(--orb3); left: 40%; bottom: -200px; }
.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.center { display: grid; place-items: center; min-height: 100vh; }
.glass { background: linear-gradient(135deg, var(--glass), var(--glass-2)); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), var(--shadow); }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 999px; padding: 8px 10px 8px 20px; margin-bottom: 14px; }
.brand { font-weight: 700; font-size: 15px; }
.stat, .muted, .s { color: var(--muted); font-size: 12px; }
.spacer { flex: 1; }
.cap { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); border: 1px solid var(--edge); background: var(--glass); font-family: inherit; }
.cap.primary { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(30,120,255,.4); }
.cap.small { padding: 5px 12px; font-size: 12px; }
.cap:disabled, .cap.disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; gap: 2px; border-radius: 999px; padding: 3px; }
.seg a, .seg button { padding: 6px 14px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.seg .on { color: var(--ink); background: var(--glass); box-shadow: inset 0 1px 0 var(--edge); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.search { margin-left: auto; border-radius: 999px; padding: 8px 16px; width: 260px; color: var(--ink); font: inherit; }
.banner { border-radius: 14px; padding: 10px 16px; margin-bottom: 12px; }
.panel { border-radius: 20px; padding: 8px 10px 10px; overflow-x: auto; }
.grid { display: grid; grid-template-columns: 24px minmax(180px, 2.2fr) minmax(160px, 1.9fr) 1.1fr 1fr 34px 120px; align-items: center; gap: 12px; min-width: 860px; }
.th { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.right { text-align: right; }
.row { border-radius: 14px; padding: 9px 12px; margin-top: 6px; background: var(--glass-2); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; min-width: 884px; }
.row:hover { background: var(--glass); border-color: var(--edge); }
.t { font-weight: 600; } .dir { font-size: 16px; text-align: center; } .dir.in { color: #10b981; } .dir.out { color: var(--accent-2); }
.pill { white-space: nowrap; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; border: 1px solid var(--edge); }
.p-new { background: var(--new); } .p-soon { background: var(--soon); } .p-q { background: var(--bad); } .p-wait { background: var(--wait); }
.ring { width: 30px; height: 30px; }
.ring .track { fill: none; stroke: var(--line); stroke-width: 3; }
.ring .fill { fill: none; stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 15px 15px; }
.ring-ok .fill { stroke: var(--accent-2); } .ring-soon .fill { stroke: #f59e0b; }
.ring text { font-size: 8.5px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.ic { display: flex; gap: 6px; justify-content: flex-end; }
.ic button, .ic a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); font-size: 12px; padding: 0; font-family: inherit; }
.cm { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 6px 0 0 36px; padding-top: 6px; border-top: 1px solid var(--line); }
.warn { color: #e11d48; }
.files { margin-left: 36px; } .file { display: flex; justify-content: space-between; gap: 10px; padding: 5px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.file.bad { color: #e11d48; } .file .bar { flex-basis: 100%; height: 4px; border-radius: 4px; background: var(--line); padding: 0; margin: 2px 0 0; display: block; box-shadow: none; border: 0; backdrop-filter: none; }
.file .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: #10b981; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.card { border-radius: 22px; padding: 22px; }
.form { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.login { max-width: 420px; text-align: center; } .login h1 { margin: 0 0 8px; }
.lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-top: 12px; }
.input { border-radius: 12px; padding: 10px 14px; color: var(--ink); font: inherit; width: 100%; }
.drop { border: 1.5px dashed var(--accent-2); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); }
.drop.over { background: var(--glass); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.days { display: flex; gap: 6px; } .chip { flex: 1; text-align: center; border-radius: 10px; padding: 8px 0; border: 1px solid var(--line); cursor: pointer; }
.vh, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.chip { position: relative; }
.chip:has(input:focus-visible), .link:focus-visible, label.link:has(input:focus-visible), .grid:focus-visible, .cap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .chip:has(input:checked) { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 700; }
.go { margin-top: 16px; justify-content: center; padding: 13px; }
.picker { border-radius: 14px; padding: 10px; max-height: 340px; overflow: auto; } .picker-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.picker[hidden] { display: none; }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 10; max-width: 420px; }
.toast { border-radius: 14px; padding: 12px 16px; margin-top: 8px; background: var(--bad); border: 1px solid var(--edge); backdrop-filter: blur(20px); }
@media (max-width: 700px) { .search { width: 100%; margin-left: 0; } .bar { border-radius: 20px; } }
