#new-rule { grid-template-columns:repeat(4, minmax(0, 1fr)); border-color:#476487; }
#new-rule > div { grid-column:span 1; }
#new-rule .enabled { margin-top:18px; }
#new-rule button { align-self:end; min-height:38px; }
#new-rule .cancel-add { background:#263755; color:var(--ink); }
#new-rule + .rule .delete, .rule .delete { background:#4b2530; color:#ffdce0; }
button, [role="button"], select { cursor:pointer; }
button:disabled { cursor:not-allowed; }
.sign-out { padding:8px 10px; border:1px solid #476487; border-radius:8px; background:transparent; color:var(--muted); font-size:.79rem; }
.series-groups { display:grid; gap:18px; margin-top:22px; }
.series-group { overflow:hidden; border:1px solid var(--line); border-radius:15px; background:rgba(16,26,44,.55); }
.series-group > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; border-bottom:1px solid var(--line); }
.series-group header b,.series-group header small { display:block; }.series-group header b { font-size:.93rem; }.series-group header small { margin-top:3px; color:var(--muted); font-size:.75rem; }
.add-condition { padding:8px 10px; border:1px solid #476487; border-radius:8px; background:#17263e; color:var(--ink); font-size:.79rem; font-weight:700; white-space:nowrap; }
.series-rules { display:grid; gap:9px; padding:10px; }.series-rules .rule { border-radius:10px; }
.user-form { display:flex; gap:10px; margin:0 0 14px; padding:15px; border:1px solid var(--line); border-radius:14px; background:rgba(16,26,44,.86); }.user-form label { flex:1; display:grid; gap:6px; color:#9db0ca; font-size:.72rem; }.user-form input { min-height:38px; padding:8px 9px; border:1px solid #344a6c; border-radius:8px; background:#0c1627; color:var(--ink); }.user-form button,.user-actions button { align-self:end; padding:10px 12px; border:0; border-radius:8px; background:var(--accent); color:#172033; font-size:.8rem; font-weight:800; }.user-list { display:grid; gap:9px; }.user-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px; border:1px solid var(--line); border-radius:12px; background:rgba(16,26,44,.7); }.user-row b,.user-row small { display:block; }.user-row small { margin-top:4px; color:var(--muted); font-size:.76rem; }.user-actions { display:flex; gap:8px; }.user-actions .delete { background:#4b2530; color:#ffdce0; }.root-badge { color:#9db0ca; font-size:.76rem; }
#save-state:not(:empty) { color:var(--mint); }
#save-state:not(:empty)::first-letter { text-transform:uppercase; }
@media (max-width:900px) { #new-rule { grid-template-columns:1fr 1fr; } #new-rule > div { grid-column:1/-1; } }
@media (max-width:520px) { #new-rule { grid-template-columns:1fr; }.user-form,.user-row { align-items:stretch; flex-direction:column; }.user-form button { width:100%; }.user-actions { justify-content:flex-end; } }
