:root {
  --bg: #0e1a2b;
  --bg-2: #13233b;
  --card: #17304d;
  --line: #2a4668;
  --text: #eef5ff;
  --muted: #9bb0c9;
  --teal: #14b8a6;
  --teal-2: #0f766e;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Tahoma, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, #1b4d4a 0%, transparent 50%),
    radial-gradient(900px 400px at -10% 0%, #1e3a5f 0%, transparent 45%),
    var(--bg);
  color: var(--text);
}

.hidden { display: none !important; }
.screen { min-height: 100vh; padding: 24px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.login-card { max-width: 420px; margin: 12vh auto; }
.brand { text-align: center; margin-bottom: 24px; }
.logo { font-size: 42px; }
h1, h2 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.error { color: #fca5a5; }
label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
input, button {
  font: inherit;
  color: var(--text);
}
input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus { border-color: var(--teal); }
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  background: #234066;
}
button.primary { background: var(--teal-2); }
button.danger { background: #9f1239; }
button.ghost { background: transparent; border: 1px solid var(--line); }
.download {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--teal-bright, #14b8a6);
  text-decoration: none;
}
.hint { margin-top: 12px; font-size: 13px; line-height: 1.7; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.usage-row, .limit-row, .section-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.big { font-size: 22px; margin: 0 0 6px; }
.ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) calc(var(--p) * 1%), #234066 0);
}
.ring span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.status-list, .alerts { list-style: none; margin: 0; padding: 0; }
.status-list li, .alerts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.app-limit { width: 90px; }
#appSearch { margin-right: auto; min-width: 200px; }
.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.schedule-day {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  background: rgba(0,0,0,0.12);
}
.schedule-day h3 { margin: 0 0 8px; font-size: 16px; }
.schedule-windows { display: flex; flex-direction: column; gap: 8px; }
.schedule-window { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.schedule-window input[type="time"] {
  width: 140px;
  padding: 8px 10px;
  direction: ltr;
}
.schedule-empty { font-size: 13px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .screen { padding: 14px; }
}
