:root {
  --bg: #0f1220;
  --panel: #171b2e;
  --panel-2: #1f2440;
  --ink: #e8eaf5;
  --muted: #9aa2c0;
  --accent: #6c8cff;
  --accent-2: #35d0a5;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --line: #2a3050;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(15,18,32,.85); backdrop-filter: blur(8px); z-index: 5;
}
.brand { font-weight: 800; font-size: 20px; }
.tagline { color: var(--muted); font-size: 14px; flex: 1; }
main { max-width: 940px; margin: 0 auto; padding: 24px 18px 80px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.hero h1 { font-size: 30px; margin: 0 0 8px; }
.hero .sub { color: var(--muted); max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 12px; border-radius: 10px; font-size: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
button {
  background: var(--accent); color: white; border: 0; padding: 11px 18px;
  border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.plans { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.plans legend { padding: 0 6px; color: var(--muted); font-size: 13px; }
.plan { flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; }
.plan:hover { background: var(--panel-2); }
.plan span { display: flex; flex-direction: column; }
.plan small { color: var(--muted); }

.dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.badge { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); margin-right: 6px; }
.badge.muted { color: var(--muted); }

.children { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.child-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: border .15s; }
.child-card:hover { border-color: var(--accent); }
.child-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.child-card h4 { margin: 0 0 4px; }
.child-card .lvl { color: var(--muted); font-size: 13px; }
.child-card .ints { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--line); cursor: pointer; user-select: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.plan-view { margin-top: 26px; }
.plan-view h3 { margin: 0 0 4px; }
.timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.prog {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.prog .countdown { text-align: center; }
.prog .countdown .n { font-size: 22px; font-weight: 800; line-height: 1; }
.prog .countdown .u { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prog.soon .countdown .n { color: var(--warn); }
.prog.urgent .countdown .n { color: var(--danger); }
.prog .body h4 { margin: 0 0 3px; font-size: 16px; }
.prog .body h4 a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.prog .body .meta { color: var(--muted); font-size: 13px; }
.prog .body .desc { font-size: 13px; margin-top: 5px; }
.prog .cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); }
.prestige { color: var(--warn); letter-spacing: 1px; }

.section-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 22px 0 6px; }
.notifs { display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 8px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.notif .when { color: var(--muted); min-width: 130px; }
.notif .ch { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); }
.notif .st { margin-left: auto; font-size: 11px; }
.st-scheduled { color: var(--muted); } .st-sent { color: var(--accent-2); }
.st-skipped { color: var(--warn); } .st-failed { color: var(--danger); }

.row { display: flex; gap: 12px; } .row > label { flex: 1; } .row.end { justify-content: flex-end; }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; width: min(560px, 92vw); }
dialog::backdrop { background: rgba(0,0,0,.55); }
.foot { max-width: 940px; margin: 0 auto; padding: 16px 18px; display: flex; justify-content: space-between;
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: 30px; text-align: center; }
.upsell { background: var(--panel-2); border: 1px dashed var(--accent); border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 14px; }
