:root {
  --bg: #f1f5f9;
  --panel: #ffffff;
  --ink: #0f1c2e;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #B5157F;
  --brand-dark: #681C5C;
  --brand-accent: #E455A9;
  --brand-soft: #fdf1f8;
  --brand-border: #f1c7e2;
  --brand-hover: #fae3f1;
  --brand-ring: rgba(181, 21, 127, .18);
  --danger: #dc2626;
  --danger-dark: #b91c1c;
  --sidebar-bg: linear-gradient(180deg, #1f0a1c 0%, #3a1133 60%, #5F1C55 100%);
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, .05);
  --shadow-md: 0 1px 3px rgba(15, 28, 46, .06), 0 6px 18px -8px rgba(15, 28, 46, .12);
  --shadow-lg: 0 4px 10px rgba(15, 28, 46, .06), 0 18px 38px -16px rgba(15, 28, 46, .22);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 360px at 85% -10%, rgba(181, 21, 127, .06), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
a:hover { color: var(--brand); }
::selection { background: rgba(181, 21, 127, .18); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--sidebar-bg);
  color: #fff;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  background:
    radial-gradient(circle at 30% 30%, var(--brand-accent), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 4px 10px rgba(181, 21, 127, .45);
}
.sidebar nav { display: grid; gap: 2px; }
.sidebar a {
  color: #d7b9d0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.sidebar a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.sidebar a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar a.active {
  background: linear-gradient(90deg, rgba(228, 85, 169, .28), rgba(228, 85, 169, .08));
  color: #fff;
  box-shadow: inset 2.5px 0 0 var(--brand-accent);
}
.sidebar a.active svg { opacity: 1; }
.nav-section {
  margin: 14px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a6f90;
}
.logout { margin-top: auto; display: grid; }
.logout a { color: #d7b9d0; }

/* ---------- Layout ---------- */
.content { margin-left: 232px; min-height: 100vh; padding-bottom: 30px; }
.topbar {
  height: 64px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar div { display: flex; gap: 12px; align-items: center; }
.topbar strong { font-size: 16px; letter-spacing: -.01em; }
.topbar span { color: var(--muted); }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
}
.user-chip i {
  font-style: normal;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 22px 28px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
h1, h2 { margin: 0 0 16px; letter-spacing: -.015em; }
h2 { font-size: 16.5px; }
h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}

/* ---------- Dashboard ---------- */
.dashboard-hero {
  margin: 26px 28px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.dashboard-hero h1 { margin: 0; font-size: 25px; font-weight: 800; }
.dashboard-hero p { margin: 5px 0 0; color: var(--muted); }
.system-status {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}
.system-status span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.system-status strong { font-size: 20px; }
.system-status.blocked { border-color: #fecaca; background: linear-gradient(180deg, #fff5f5, #fff); color: #b91c1c; }
.system-status.enabled { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdf7, #fff); color: #047857; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin: 22px 28px;
}
.metrics div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.metrics div:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.metrics div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-accent));
  opacity: .85;
}
.metrics span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.metrics strong { font-size: 28px; letter-spacing: -.02em; }
.metrics-wide { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 0;
}
.compact-panel { min-height: 250px; }
.donut-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}
.donut {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--value), #e6edf5 0);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15, 28, 46, .04);
}
.donut::after {
  content: "";
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  box-shadow: var(--shadow-sm);
}
.donut span { position: relative; z-index: 1; font-weight: 800; font-size: 16px; }
.bar-list { display: grid; gap: 12px; }
.bar-list div {
  display: grid;
  grid-template-columns: 70px 44px 1fr;
  gap: 8px;
  align-items: center;
}
.bar-list i, .progress {
  height: 8px;
  background: #e8eef6;
  border-radius: 999px;
  overflow: hidden;
}
.bar-list i {
  display: block;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  min-width: 2px;
}
/* ---------- Editor visual (GrapesJS) ---------- */
.gjs-wrap { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.gjs-modeswitch { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.gjs-tabs { display: inline-flex; gap: 4px; background: #eef2f7; border-radius: 8px; padding: 3px; }
.gjs-tab { min-height: 30px; padding: 5px 12px; background: transparent; color: #475569; box-shadow: none; font-size: 12.5px; }
.gjs-tab:hover { background: #e2e8f0; filter: none; }
.gjs-tab.is-active { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.gjs-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gjs-vars .muted { font-size: 12px; }
.gjs-var { min-height: 28px; padding: 4px 9px; font-size: 12px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-border); box-shadow: none; }
.gjs-var:hover { background: var(--brand-hover); filter: none; }
.gjs-var.copied { background: #d8f7e4; color: #15803d; border-color: #bbf0cd; }
.gjs-holder { min-height: 560px; }
/* GrapesJS usa as proprias cores; so harmonizamos o painel ativo com a marca. */
.gjs-wrap .gjs-one-bg { background-color: #2a1626; }
.gjs-wrap .gjs-two-color, .gjs-wrap .gjs-four-color, .gjs-wrap .gjs-four-color-h { color: var(--brand-accent); }
.gjs-wrap .gjs-pn-btn.gjs-pn-active { color: var(--brand-accent); }
.preflight { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0 12px; background: #fbfdff; }
.preflight strong { display: block; margin-bottom: 6px; }
.preflight ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.preflight li { font-weight: 600; }
.preflight-error { color: var(--danger-dark); }
.preflight-warn { color: #92400e; }
.preflight-ok { border-color: #bbf0cd; background: #ecfdf3; color: #166534; font-weight: 600; }
.rate-cell { display: grid; grid-template-columns: minmax(70px, 130px) auto; gap: 10px; align-items: center; }
.rate-cell span { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.status-list { display: grid; gap: 10px; }
.status-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

/* ---------- Badges ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f7;
  color: #334155;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
}
.status-draft { background: #eef2f7; color: #334155; }
.status-scheduled { background: #fff3e4; color: #9a3412; }
.status-queued { background: #ede9fe; color: #5b21b6; }
.status-paused { background: #fef9c3; color: #854d0e; }
.status-sending { background: #e0f2fe; color: #075985; }
.status-sent { background: #d8f7e4; color: #15803d; }
.status-partial_failed { background: #ffedd5; color: #9a3412; }
.status-failed { background: #fee2e2; color: #b91c1c; }
.status-cancelled { background: #f1f5f9; color: #475569; }

/* ---------- Cards de campanha ---------- */
.campaign-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.campaign-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.campaign-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  color: var(--ink);
}
.campaign-card span, .campaign-card small { color: var(--muted); font-weight: 500; }
.campaign-card div:first-child { display: grid; gap: 3px; }
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}

/* ---------- Progresso / métricas ---------- */
.progress-summary, .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.progress-summary div, .metric-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: linear-gradient(180deg, #fbfdff, #fff);
}
.progress-summary strong, .metric-grid strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.progress-summary span, .metric-grid span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.metric-grid.compact { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.progress-bar {
  height: 12px;
  background: #e8eef6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  transition: width .25s ease;
}

/* ---------- Tabelas ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th {
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #f8fafc;
}
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Formulários ---------- */
label { display: grid; gap: 6px; color: #475569; font-weight: 600; font-size: 13px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
input::placeholder, textarea::placeholder { color: #9aa8ba; }
textarea { resize: vertical; }
.email-editor {
  font-family: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #fcfdff;
}

/* ---------- Botões ---------- */
button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: linear-gradient(180deg, #c4218c, #92136b);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 1px 2px rgba(146, 19, 107, .35);
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
button:hover { filter: brightness(1.08); box-shadow: 0 3px 8px rgba(146, 19, 107, .35); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
button.danger {
  background: linear-gradient(180deg, #e23434, var(--danger-dark));
  box-shadow: 0 1px 2px rgba(185, 28, 28, .35);
}
button.danger:hover { box-shadow: 0 3px 8px rgba(185, 28, 28, .3); }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-border);
  font-weight: 700;
  font-size: 13.5px;
  transition: background .15s ease;
}
.button-link:hover { background: var(--brand-hover); color: var(--brand-dark); }

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table-actions { margin-bottom: 14px; }
.table-actions button { min-width: 120px; }
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.row-actions button {
  min-height: 32px;
  padding: 6px 12px;
  min-width: 76px;
  font-size: 12.5px;
}
.detail-actions { margin-top: 12px; }
.detail-actions button, .row-actions button:not(.danger) {
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
  border: 1px solid var(--line-strong);
}
.detail-actions button:hover, .row-actions button:not(.danger):hover { background: #e2e8f0; filter: none; }
.detail-actions button.danger, .row-actions button.danger {
  background: #fef2f2;
  color: var(--danger-dark);
  border: 1px solid #fecaca;
  box-shadow: none;
}
.detail-actions button.danger:hover, .row-actions button.danger:hover { background: #fee2e2; filter: none; }
.blocked-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Zona de perigo / fieldsets ---------- */
.danger-zone {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.danger-zone:first-of-type { border-top: 0; padding-top: 0; }
.danger-zone p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.danger-zone form { width: 200px; }
.danger-zone button { width: 100%; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}
.grid-form .wide, fieldset { grid-column: 1 / -1; }
.grid-form > button[type="submit"] { justify-self: start; min-width: 190px; }
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px;
  background: #fbfdff;
}
legend { color: #475569; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; }
.check input { width: auto; accent-color: var(--brand); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); box-shadow: none; }
.inline-form { display: flex; gap: 10px; align-items: end; margin: 12px 0; flex-wrap: wrap; }
.inline-form input { max-width: 320px; }
.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-bar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audience-preview {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--brand-soft), #fff);
  display: grid;
  gap: 4px;
}
.audience-preview strong { color: var(--brand-dark); font-size: 15px; }
.audience-preview span { color: var(--muted); }
.company-exclusions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 12px;
  width: 100%;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: #fff;
}
.company-picker {
  width: 100%;
  display: grid;
  gap: 10px;
}
.company-picker-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.company-picker-tools button {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-border);
  min-height: 36px;
  padding: 8px 12px;
  box-shadow: none;
}
.company-picker-tools button:hover { background: var(--brand-hover); filter: none; }
.company-option {
  min-width: 0;
  align-items: flex-start;
}
.company-option span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-hidden { display: none !important; }
.provider-fields { display: grid; gap: 12px; }
.muted { color: var(--muted); font-weight: 500; }

/* ---------- Editor ---------- */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 8px 10px;
  background: #f8fafc;
}
.editor-toolbar + textarea, .editor-toolbar + .email-editor { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.editor-toolbar button {
  min-height: 32px;
  padding: 6px 11px;
  background: #fff;
  color: #334155;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
}
.editor-toolbar button:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-border); filter: none; }
.editor-toolbar select {
  width: auto;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

/* ---------- Avisos ---------- */
.notice, .alert {
  margin: 22px 28px 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf0cd;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.alert { margin: 0 0 14px; background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ---------- Detalhe / split ---------- */
.split { display: grid; grid-template-columns: 380px 1fr; gap: 0; }
/* Variante para conteudos largos dos dois lados (ex.: editor + previa); minmax(0,..) evita estouro do grid. */
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; }
.preview {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: inset 0 1px 4px rgba(15, 28, 46, .05);
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(228, 85, 169, .18), transparent 55%),
    radial-gradient(700px 480px at 90% 90%, rgba(181, 21, 127, .16), transparent 55%),
    linear-gradient(135deg, #1c0819, #3a1133 55%, #5F1C55);
}
.login-box {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  display: grid;
  gap: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
}
.login-box h1 { font-size: 22px; margin-bottom: 2px; }
.login-box h1::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}
.login-box p, .login-box small { color: var(--muted); margin: 0; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4d0de; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #9fb0c3; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 860px) {
  .sidebar { position: static; width: auto; }
  .content { margin-left: 0; }
  .metrics, .metrics-wide, .grid-form, .split, .split-even, .dashboard-hero, .dashboard-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .metrics, .panel { margin-left: 14px; margin-right: 14px; }
  .topbar { position: static; }
}
