/* ===== PulseWatch – Server Monitoring Prototype ===== */

:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232322;
  --surface-3: #2b2b29;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --gridline: #2c2c2a;

  --accent: #3987e5;
  --accent-strong: #2a78d6;
  --series-blue: #3987e5;
  --series-orange: #d95926;
  --series-aqua: #199e70;
  --series-yellow: #c98500;
  --series-violet: #9085e9;

  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-serious: #ec835a;
  --status-critical: #d03b3b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.28);
  --shadow-2: 0 2px 6px rgba(0,0,0,0.5), 0 16px 40px rgba(0,0,0,0.4);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f1f0ec;
  --surface-3: #e9e8e2;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --border: rgba(11,11,11,0.10);
  --border-strong: rgba(11,11,11,0.18);
  --gridline: #e1e0d9;

  --accent: #2a78d6;
  --accent-strong: #1c5cab;
  --series-blue: #2a78d6;
  --series-orange: #eb6834;
  --series-aqua: #1baf7a;
  --series-yellow: #eda100;
  --series-violet: #4a3aa7;

  --shadow-1: 0 1px 2px rgba(11,11,11,0.06), 0 8px 20px rgba(11,11,11,0.06);
  --shadow-2: 0 4px 10px rgba(11,11,11,0.08), 0 20px 40px rgba(11,11,11,0.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
#app-root { min-height: 100vh; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Boot loader ---------- */
.boot-loader {
  height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--text-muted);
}
.boot-mark { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1);} 50% { opacity: 1; transform: scale(1.08);} }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.secondary-text { color: var(--text-secondary); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.flex { display: flex; }
.grow { flex: 1; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* ================= AUTH SCREENS ================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.auth-visual {
  position: relative;
  padding: 48px;
  background:
    radial-gradient(circle at 20% 20%, rgba(57,135,229,0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(25,158,112,0.25), transparent 50%),
    linear-gradient(160deg, #0d0d0d 0%, #14181f 60%, #0d0d0d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-visual .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.auth-visual .pitch h1 { font-size: 34px; line-height: 1.2; max-width: 480px; margin: 0 0 14px; }
.auth-visual .pitch p { color: #c3c2b7; max-width: 460px; line-height: 1.55; }
.auth-visual .mock-card {
  margin-top: 28px; background: rgba(26,26,25,0.7); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 16px; backdrop-filter: blur(6px); max-width: 420px;
}
.auth-visual .mock-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 13px; }
.auth-visual .mock-row:last-child { border-bottom: none; }
.auth-visual .foot { font-size: 12px; color: #898781; }

.auth-form-wrap {
  display: flex; align-items: center; justify-content: center; padding: 32px;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
}
.auth-card h2 { font-size: 24px; margin: 0 0 6px; }
.auth-card .sub { color: var(--text-muted); margin: 0 0 26px; font-size: 14px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-primary);
  padding: 11px 12px; border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57,135,229,0.25);
}
.field-hint { font-size: 12px; color: var(--text-muted); }
.field-error { font-size: 12px; color: var(--status-critical); display: none; }
.field.has-error input { border-color: var(--status-critical); }
.field.has-error .field-error { display: block; }

.form-row-split { display: flex; gap: 12px; }
.form-row-split .field { flex: 1; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.checkbox-row input { accent-color: var(--accent); width: 15px; height: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); border: 1px solid transparent; padding: 11px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-block { width: 100%; }
.btn-secondary { background: var(--surface-2); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }
.btn-danger { background: transparent; color: var(--status-critical); border-color: var(--status-critical); }
.btn-danger:hover { background: rgba(208,59,59,0.12); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.divider-text { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-muted); font-size: 12px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }
.auth-switch button { background: none; border: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit; }

.demo-banner {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5;
}
.demo-banner strong { color: var(--text-primary); }

/* ================= APP SHELL ================= */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 6px 8px 20px; font-size: 16px; }
.nav-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 14px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-link svg { flex-shrink: 0; opacity: .85; }
.nav-link:hover { background: var(--surface-2); color: var(--text-primary); }
.nav-link.active { background: rgba(57,135,229,0.14); color: var(--accent); }
.nav-link.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto; background: var(--status-critical); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px; min-width: 18px; text-align: center;
}
.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.plan-pill {
  display: flex; align-items: center; justify-content: space-between; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px;
  margin-bottom: 10px;
}
.plan-pill .name { font-weight: 700; color: var(--text-primary); }

.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-secondary); cursor: pointer; position: relative;
}
.icon-btn:hover { color: var(--text-primary); background: var(--surface-3); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--status-critical); border: 2px solid var(--bg); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 30px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; }
.user-chip .uname { font-size: 13px; font-weight: 600; }

.content { padding: 24px 26px 60px; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { margin: 0 0 4px; font-size: 22px; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- Stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; box-shadow: var(--shadow-1);
}
.stat-tile .label { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stat-tile .value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.stat-tile .delta { font-size: 12.5px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.delta.up { color: var(--status-good); } .delta.down { color: var(--status-critical); }
.stat-tile.accent-blue .value { color: var(--series-blue); }
.stat-tile.accent-good .value { color: var(--status-good); }
.stat-tile.accent-warn .value { color: var(--status-warning); }
.stat-tile.accent-crit .value { color: var(--status-critical); }

/* ---------- Cards / panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.panel-pad { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h3 { margin: 0; font-size: 15px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search-input {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px 9px 34px; font-size: 13.5px; color: var(--text-primary); width: 240px; outline: none;
  background-repeat: no-repeat; background-position: 11px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}
.search-input:focus { border-color: var(--accent); }
.filter-chip {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary);
  padding: 7px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Server grid ---------- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.server-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, transform .1s; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 12px;
}
.server-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.server-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.server-name { font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.server-meta { font-size: 12px; color: var(--text-muted); }
.server-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-block .metric-label { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 4px; }
.meter { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.server-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; }
.sparkline-wrap { height: 34px; }

/* ---------- Status badges ---------- */
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-badge.st-online { background: rgba(12,163,12,0.15); color: var(--status-good); }
.status-badge.st-online .dot { background: var(--status-good); }
.status-badge.st-warning { background: rgba(250,178,25,0.16); color: #a56a00; }
:root[data-theme="dark"] .status-badge.st-warning { color: var(--status-warning); }
.status-badge.st-warning .dot { background: var(--status-warning); }
.status-badge.st-critical { background: rgba(208,59,59,0.15); color: var(--status-critical); }
.status-badge.st-critical .dot { background: var(--status-critical); animation: blink 1.4s infinite; }
.status-badge.st-offline { background: var(--surface-3); color: var(--text-muted); }
.status-badge.st-offline .dot { background: var(--text-muted); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Tables ---------- */
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.clickable:hover { background: var(--surface-2); cursor: pointer; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { opacity: .5; margin-bottom: 14px; }
.empty-state h4 { color: var(--text-primary); margin: 0 0 6px; }

/* ---------- Server detail ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.breadcrumb button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.detail-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-btn { background: none; border: none; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.info-list { display: flex; flex-direction: column; }
.info-list .info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.info-list .info-row:last-child { border-bottom: none; }
.info-list .info-row .k { color: var(--text-muted); }
.info-list .info-row .v { font-weight: 600; text-align: right; }

.chart-legend { display: flex; gap: 16px; font-size: 12.5px; margin-bottom: 8px; flex-wrap: wrap; }
.chart-legend .li { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 3px; }

.big-chart { position: relative; width: 100%; }
.chart-tooltip {
  position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow-2);
  transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .1s; z-index: 5;
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip .tt-title { font-weight: 700; margin-bottom: 4px; }
.chart-tooltip .tt-row { display: flex; justify-content: space-between; gap: 14px; }

/* ---------- Incidents / timeline ---------- */
.incident-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.incident-item:last-child { border-bottom: none; }
.incident-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.incident-item .title { font-weight: 600; font-size: 13.5px; margin: 0 0 3px; }
.incident-item .meta { font-size: 12px; color: var(--text-muted); }
.incident-item .msg { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ---------- Forms / settings ---------- */
.settings-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.section-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.section-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 20px; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-label { font-size: 13.5px; font-weight: 600; }
.toggle-row .t-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border); border-radius: 30px; cursor: pointer; transition: .2s; }
.switch .track::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(18px); }

.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; }

.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; background: var(--surface-2); position: relative; }
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-card .badge-current { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.plan-card h4 { margin: 0 0 6px; font-size: 16px; }
.plan-card .price { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.plan-card .price span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.plan-card ul li { display: flex; gap: 7px; align-items: flex-start; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px; animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  width: 100%; max-width: 460px; box-shadow: var(--shadow-2); max-height: 90vh; overflow-y: auto;
  animation: slideUp .18s ease;
}
@keyframes slideUp { from { transform: translateY(12px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  background: var(--surface-3); border: 1px solid var(--border-strong); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-2); font-size: 13px;
  animation: toastIn .2s ease; display: flex; gap: 10px;
}
.toast.t-critical { border-left-color: var(--status-critical); }
.toast.t-warning { border-left-color: var(--status-warning); }
.toast.t-good { border-left-color: var(--status-good); }
.toast .t-title { font-weight: 700; margin-bottom: 2px; }
.toast .t-msg { color: var(--text-secondary); }
.toast .t-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .detail-grid, .settings-grid { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; z-index: 90; width: 240px; transition: left .2s ease; box-shadow: var(--shadow-2); }
  .sidebar.open { left: 0; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 80; }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 12px 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
