/* ============================================================
   DARK SPACE — Central de Comando
   Identidade: iOS dark mode · vermelho & preto · glassmorphism
   ============================================================ */

:root {
  --bg: #000000;
  --elev-1: rgba(28, 28, 30, 0.62);
  --elev-2: rgba(44, 44, 46, 0.55);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.085);
  --stroke-soft: rgba(255, 255, 255, 0.055);
  --red: #ff453a;
  --red-soft: #ff6961;
  --red-deep: #d70015;
  --text: #f5f5f7;
  --text-dim: #aeaeb2;
  --text-faint: #636366;
  --green: #32d74b;
  --orange: #ff9f0a;
  --blue: #64d2ff;
  --radius: 22px;
  --radius-sm: 14px;
  /* aliases legados (markup gerado) */
  --gold: var(--red);
  --gold-bright: var(--red-soft);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
}

/* ---- atmosfera: textura + brilhos vermelhos ---- */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 560px at 80% -12%, rgba(255, 69, 58, .12), transparent 60%),
    radial-gradient(800px 500px at -8% 108%, rgba(215, 0, 21, .08), transparent 55%),
    radial-gradient(600px 360px at 50% 115%, rgba(255, 69, 58, .05), transparent 60%);
}

::selection { background: rgba(255, 69, 58, .4); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,69,58,.45); }

/* ============ LAYOUT ============ */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ---- sidebar (vidro iOS) ---- */
.sidebar {
  width: 270px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: rgba(18, 18, 20, 0.72);
  border-right: 1px solid var(--stroke-soft);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.brand {
  display: flex; align-items: center; gap: 13px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--stroke-soft);
}
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; overflow: hidden; flex-shrink: 0;
  font-size: 19px; color: #fff;
  background: radial-gradient(circle at 50% 42%, #20202a, #0b0b0d);
  box-shadow: 0 6px 20px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,69,58,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.65); }
.brand-text { display: flex; flex-direction: column; }
.brand-title {
  font-size: 17px; font-weight: 800; letter-spacing: .12em;
  background: linear-gradient(90deg, #fff, var(--red-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }

.nav { padding: 12px 12px 4px; }
.nav-section {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); padding: 14px 14px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; margin: 2px 0;
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .18s ease, color .18s ease;
}
.nav-item:hover { color: var(--text); background: var(--glass); }
.nav-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, rgba(255,69,58,.92), rgba(215,0,21,.88));
  box-shadow: 0 6px 18px rgba(255,69,58,.3), inset 0 1px 0 rgba(255,255,255,.22);
}
.nav-ico { width: 18px; text-align: center; opacity: .9; }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--red-soft); background: rgba(255,69,58,.13);
  padding: 2.5px 8px; border-radius: 20px;
}
.nav-item.active .nav-badge { color: #fff; background: rgba(255,255,255,.22); }
.nav-ico svg { width: 19px; height: 19px; display: block; }

/* colapsar barra lateral (só ícones) */
.nav-toggle {
  margin-left: auto; width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--stroke-soft); border-radius: 9px;
  color: var(--text-dim); cursor: pointer; transition: background .15s, color .15s;
}
.nav-toggle svg { width: 16px; height: 16px; }
.nav-toggle:hover { background: var(--glass-strong); color: var(--text); }
.sidebar { transition: width .22s cubic-bezier(.2,.8,.2,1); }
.nav-collapsed .sidebar { width: 80px; }
.nav-collapsed .brand { flex-direction: column; gap: 12px; padding: 20px 0 18px; }
.nav-collapsed .brand-text { display: none; }
.nav-collapsed .nav-toggle { margin-left: 0; }
.nav-collapsed .nav-label, .nav-collapsed .nav-section,
.nav-collapsed .nav-badge, .nav-collapsed .sidebar-channels,
.nav-collapsed .sidebar-footer span { display: none; }
.nav-collapsed .nav-item { justify-content: center; padding: 11px; }
.nav-collapsed .nav-ico { width: auto; }

.sidebar-channels { flex: 1; overflow-y: auto; padding: 4px 12px; }
.sc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 13px; margin: 2px 0; border-radius: 12px;
  color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sc-item:hover { background: var(--glass); color: var(--text); }
.sc-item.active { background: var(--glass-strong); color: #fff; }
.sc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.sc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-footer { padding: 14px 20px 18px; font-size: 11px; color: var(--text-faint); letter-spacing: .01em; }
.gold-line { height: 1px; margin-bottom: 11px; background: linear-gradient(90deg, transparent, rgba(255,69,58,.55), transparent); }

/* ---- main ---- */
.main { flex: 1; padding: 36px 42px 64px; max-width: 1380px; min-width: 0; }

.page-head { margin-bottom: 26px; }
.page-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.page-sub { color: var(--text-dim); margin-top: 8px; font-size: 14px; max-width: 740px; line-height: 1.55; letter-spacing: -0.005em; }

/* ============ COMPONENTES ============ */

/* cartão de vidro iOS */
.card {
  background: linear-gradient(160deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

.card-title {
  font-size: 16px; font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 9px;
}
.card-title .tick { color: var(--red); font-size: 12px; }

.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 14px; margin-bottom: 22px; }

.kpi { padding: 19px 21px; }
.kpi-label { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-faint); }
.kpi-value {
  font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-top: 7px;
  font-variant-numeric: tabular-nums; color: #fff;
}
.kpi-delta { margin-top: 6px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.flat { color: var(--text-faint); }

.row { display: grid; gap: 16px; margin-bottom: 22px; }
.row.cols-2 { grid-template-columns: 1.6fr 1fr; }
.row.cols-2b { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .row.cols-2, .row.cols-2b { grid-template-columns: 1fr; } }

/* segmented control iOS */
.chips {
  display: inline-flex; gap: 2px; margin-bottom: 22px;
  background: rgba(118, 118, 128, 0.18);
  border: 1px solid var(--stroke-soft);
  padding: 3px; border-radius: 12px;
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
}
.chip {
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 7px 16px; border-radius: 9px; cursor: pointer; user-select: none;
  color: var(--text-dim);
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}
.chip:hover { color: var(--text); }
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 3px 12px rgba(255,69,58,.35), inset 0 1px 0 rgba(255,255,255,.2);
}

/* tabela — lista agrupada iOS */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-faint); padding: 10px 14px;
  border-bottom: 1px solid var(--stroke);
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--stroke-soft); color: var(--text-dim); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,.03); }
.tbl .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.tbl a { color: var(--red-soft); text-decoration: none; }

.ch-cell { display: flex; align-items: center; gap: 11px; }
.ch-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: rgba(0,0,0,.82); letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.ch-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-cell .nm { color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.ch-cell .gn { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.pill.empty { color: var(--text-faint); background: rgba(255,255,255,.06); }
.pill.active { color: var(--blue); background: rgba(100,210,255,.12); }
.pill.review { color: var(--orange); background: rgba(255,159,10,.12); }
.pill.monetized { color: var(--green); background: rgba(50,215,75,.12); }

/* progresso fino iOS */
.prog { margin: 12px 0; }
.prog-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; letter-spacing: -0.005em; }
.prog-head b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.prog-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.prog-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-soft));
  box-shadow: 0 0 10px rgba(255,69,58,.5);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.prog-fill.done { background: linear-gradient(90deg, #1f8a36, var(--green)); box-shadow: 0 0 10px rgba(50,215,75,.5); }

/* botões iOS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer;
  border: none; background: rgba(120, 120, 128, 0.22); color: var(--text);
  backdrop-filter: blur(16px);
  transition: all .18s ease;
}
.btn:hover { background: rgba(120, 120, 128, 0.34); }
.btn:active { transform: scale(.97); }
.btn.gold {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,69,58,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.gold:hover { filter: brightness(1.1); box-shadow: 0 8px 26px rgba(255,69,58,.5); }
.btn.danger { color: var(--red-soft); background: rgba(255,69,58,.12); }
.btn.danger:hover { background: rgba(255,69,58,.2); }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 11px; }

/* ============ GRID DE CANAIS ============ */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }

.slot { padding: 26px; display: flex; flex-direction: column; gap: 16px; min-height: 232px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.slot:hover { transform: translateY(-3px) scale(1.005); box-shadow: 0 22px 50px rgba(0,0,0,.55), 0 0 26px rgba(255,69,58,.08); }

.slot-empty {
  border: 1.5px dashed rgba(255,255,255,.14);
  align-items: center; justify-content: center; text-align: center;
  background: rgba(255,255,255,.02); cursor: pointer;
}
.slot-empty:hover { border-color: rgba(255,69,58,.5); }
.slot-empty .plus {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; font-weight: 300; color: var(--red);
  background: rgba(255,69,58,.1); margin-bottom: 4px;
}
.slot-empty .se-title { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
.slot-empty .se-sub { font-size: 12.5px; color: var(--text-faint); line-height: 1.55; }
.slot-empty .se-sub b { color: var(--red-soft); }

.slot-head { display: flex; align-items: center; gap: 13px; }
.slot-head .ch-avatar { width: 62px; height: 62px; font-size: 22px; border-radius: 16px; }
.slot-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.slot-genre { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.slot-stats { display: flex; gap: 22px; }
.ss { display: flex; flex-direction: column; }
.ss b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: #fff; }
.ss span { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }
.slot-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ============ FORMULÁRIOS (inputs iOS) ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font); font-size: 14.5px; letter-spacing: -0.01em;
  color: var(--text); background: rgba(118, 118, 128, 0.16);
  border: 1px solid transparent; border-radius: 12px; outline: none;
  transition: all .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(255,69,58,.6); background: rgba(118,118,128,.22);
  box-shadow: 0 0 0 3.5px rgba(255,69,58,.16);
}
.field select option { background: #1c1c1e; }
.color-row { display: flex; gap: 9px; flex-wrap: wrap; }
.color-opt { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2.5px solid transparent; transition: all .15s; }
.color-opt.sel { border-color: #fff; transform: scale(1.14); box-shadow: 0 0 14px rgba(255,255,255,.35); }

/* ============ MODAL (sheet iOS) ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(0,0,0,.6); backdrop-filter: blur(14px) saturate(140%);
  align-items: flex-start; justify-content: center; padding: 7vh 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 620px;
  background: rgba(28, 28, 30, 0.88);
  border: 1px solid rgba(255,255,255,.12); border-radius: 26px;
  padding: 30px;
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 36px 100px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.1);
  animation: modalIn .32s cubic-bezier(.2,.9,.25,1.05);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 4px; }
.modal .m-sub { color: var(--text-faint); font-size: 13px; margin-bottom: 22px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ============ DETALHE DO CANAL ============ */
.ch-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.ch-hero .ch-avatar { width: 74px; height: 74px; font-size: 28px; border-radius: 20px; }
.ch-hero-name { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.ch-hero-meta { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.ch-hero-meta a { text-decoration: none; }
.ch-hero-actions { margin-left: auto; display: flex; gap: 10px; }

.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 240px; }
.chart-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-faint); font-size: 13px; text-align: center; line-height: 1.7;
}

/* ============ ESTRATÉGIA ============ */
.phase-line { position: relative; padding-left: 34px; }
.phase-line::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--red), rgba(255,69,58,.06));
}
.phase { position: relative; padding: 0 0 28px; }
.phase::before {
  content: ''; position: absolute; left: -29px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--red-soft), var(--red-deep));
  box-shadow: 0 0 14px rgba(255,69,58,.6);
}
.phase-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--red); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.phase h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 8px; }
.phase p, .phase li { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; letter-spacing: -0.005em; }
.phase ul { padding-left: 18px; margin-top: 6px; }
.phase li { margin: 4px 0; }
.phase b, .policy-item b { color: var(--red-soft); font-weight: 600; }

.callout {
  border-radius: 16px;
  background: rgba(255,69,58,.09); border: 1px solid rgba(255,69,58,.18);
  padding: 14px 17px; margin: 14px 0;
  font-size: 13px; color: var(--text-dim); line-height: 1.65; letter-spacing: -0.005em;
}
.callout.warn { background: rgba(255,159,10,.08); border-color: rgba(255,159,10,.22); }
.callout b { color: var(--text); font-weight: 700; }

.tpl {
  font-family: var(--font-mono); font-size: 12px; color: var(--red-soft);
  background: rgba(0,0,0,.45); border: 1px solid var(--stroke-soft);
  padding: 13px 16px; border-radius: 14px; margin: 8px 0; line-height: 1.7;
  white-space: pre-wrap;
}

/* ============ POLÍTICAS (lista estilo Lembretes/iOS) ============ */
.policy-group { margin-bottom: 20px; }
.policy-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; margin: 7px 0; border-radius: 16px;
  background: rgba(255,255,255,.035);
  cursor: pointer; transition: all .2s ease;
}
.policy-item:hover { background: rgba(255,255,255,.07); }
.policy-item.checked { background: rgba(50,215,75,.06); }
.p-check {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px;
  border-radius: 50%; border: 1.8px solid rgba(255,69,58,.55);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: transparent;
  transition: all .22s cubic-bezier(.2,.8,.2,1);
}
.policy-item.checked .p-check { background: var(--green); border-color: var(--green); color: #04300f; }
.p-body h5 { font-size: 14px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.p-body p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.policy-item.checked .p-body h5 { color: var(--green); }
.sev { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; padding: 2.5px 8px; border-radius: 12px; margin-left: 8px; vertical-align: 2px; }
.sev.critical { color: var(--red-soft); background: rgba(255,69,58,.14); }
.sev.high { color: var(--orange); background: rgba(255,159,10,.12); }
.sev.med { color: var(--blue); background: rgba(100,210,255,.12); }

.compliance-ring { display: flex; align-items: center; gap: 24px; }
.ring-wrap { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 27px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ============ MISC ============ */
.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 80;
  padding: 13px 24px; border-radius: 50px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  background: rgba(40, 40, 44, 0.85);
  border: 1px solid rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 16px 44px rgba(0,0,0,.6);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: all .32s cubic-bezier(.2,.9,.25,1.05);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-faint); }
.empty-state .big { font-size: 40px; margin-bottom: 14px; opacity: .5; }
.empty-state h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-dim); margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; line-height: 1.65; max-width: 430px; margin: 0 auto; }
.empty-state b { color: var(--red-soft); }

.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--text-faint); font-size: 12.5px; letter-spacing: -0.005em; }
.mono { font-family: var(--font-mono); }

@media (max-width: 880px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .sidebar-channels { display: none; }
  .main { padding: 24px 18px 50px; }
  .form-grid { grid-template-columns: 1fr; }
}
