:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --panel: #131923;
  --panel-2: #192131;
  --line: #273247;
  --text: #f1f5fb;
  --muted: #8c98ab;
  --accent: #7ee6c4;
  --accent-2: #4fc5a3;
  --warn: #ffcc7a;
  --danger: #ff8585;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 90% 0%, #203248 0, transparent 38%), var(--bg); color: var(--text); }
.shell { width: min(760px, 100%); margin: 0 auto; padding: 28px 16px 64px; }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(30px, 8vw, 48px); letter-spacing: -0.05em; }
h2 { font-size: 20px; letter-spacing: -0.02em; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 700; margin-bottom: 8px; }
.muted, .hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--panel); font-size: 22px; }
.panel { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-top: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pill { color: var(--accent); border: 1px solid #2b6658; background: #143329; border-radius: 999px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-button, .action { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 14px; padding: 12px; text-align: left; font: inherit; cursor: pointer; }
.mode-button.active { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); background: #17362e; }
.mode-button small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.list { display: grid; gap: 9px; margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.row-main { min-width: 0; }
.group-row { align-items: flex-start; }
.row-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.group-controls { display: grid; gap: 7px; justify-items: end; flex-shrink: 0; }
.expiry-label { color: var(--muted); font-size: 11px; display: grid; gap: 4px; text-align: right; }
.expiry-input { color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 7px; font: inherit; font-size: 11px; }
.group-actions { display: flex; gap: 7px; }
.action { padding: 8px 11px; white-space: nowrap; text-align: center; font-size: 12px; }
.action.active { color: #07130f; background: var(--accent); border-color: var(--accent); }
.action.save { color: var(--accent); border-color: #2b6658; background: #143329; }
.action.pause { color: var(--warn); border-color: #6b5531; background: #2a2214; }
.audit { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.audit-item { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #202939; }
.notice { padding: 13px 14px; border: 1px solid #6b5531; background: #2a2214; color: var(--warn); border-radius: 15px; line-height: 1.5; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #eafbf5; color: #07130f; border-radius: 999px; padding: 10px 15px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.toast.show { opacity: 1; }
.hidden { display: none; }
@media (max-width: 560px) { .mode-grid { grid-template-columns: 1fr; } .panel { padding: 15px; border-radius: 18px; } .row { align-items: flex-start; } .group-row { display: grid; } .group-controls { justify-items: stretch; } .expiry-label { text-align: left; } .expiry-input { width: 100%; } .group-actions { justify-content: stretch; } .group-actions .action { flex: 1; } }
