/* superSafe design system — hand-written, no build step. */

:root {
  --font-sans: -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.24);

  --brand-red: #e11d2e;

  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --critical: #ef4444;
  --info: #64748b;

  /* Light palette (default) */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --sidebar-bg: #10121b;
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #7c869c;
  --sidebar-active-bg: rgba(59, 130, 246, 0.16);
}

:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  --bg: #0b0f17;
  --surface: #121722;
  --surface-2: #171d2b;
  --border: #232b3d;
  --text: #e5e9f2;
  --text-muted: #93a0b8;
  --text-faint: #5f6b83;
  --sidebar-bg: #0a0c13;
  --sidebar-text: #c4cbdb;
  --sidebar-text-muted: #626d84;
  --sidebar-active-bg: rgba(59, 130, 246, 0.18);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --sidebar-bg: #10121b;
    --sidebar-text: #cbd5e1;
    --sidebar-text-muted: #7c869c;
    --sidebar-active-bg: rgba(59, 130, 246, 0.16);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; }
::selection { background: var(--accent); color: white; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- App shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}
.app-shell.is-collapsed { grid-template-columns: 76px 1fr; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-brand svg { flex-shrink: 0; }
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sidebar-brand-text strong { color: white; font-size: 0.95rem; letter-spacing: 0.02em; }
.sidebar-brand-text span { font-size: 0.65rem; color: var(--sidebar-text-muted); letter-spacing: 0.08em; }
.is-collapsed .sidebar-brand-text { display: none; }

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--sidebar-text-muted);
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.06); color: white; }
.is-collapsed .sidebar-toggle { margin: 0 auto; }

.sidebar-nav { flex: 1; padding: 0.75rem 0.6rem; overflow-y: auto; }
.sidebar-group { margin-bottom: 0.25rem; }
.sidebar-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-text-muted);
  padding: 0.9rem 0.65rem 0.3rem;
}
.is-collapsed .sidebar-group-label { display: none; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; color: white; }
.sidebar-link.is-active { background: var(--sidebar-active-bg); color: white; font-weight: 600; }
.sidebar-link.is-active svg { color: var(--accent-2); }
.sidebar-link svg { flex-shrink: 0; width: 18px; height: 18px; }
.sidebar-link-label { overflow: hidden; text-overflow: ellipsis; }
.is-collapsed .sidebar-link-label { display: none; }
.sidebar-link.is-disabled { opacity: 0.45; cursor: default; }
.sidebar-link.is-disabled:hover { background: none; color: var(--sidebar-text); }
.sidebar-soon {
  margin-left: auto;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  color: var(--sidebar-text-muted);
}
.is-collapsed .sidebar-soon { display: none; }

.sidebar-submenu { margin-left: 1.9rem; display: flex; flex-direction: column; gap: 0.1rem; }
.is-collapsed .sidebar-submenu { display: none; }

.sidebar-footer {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--sidebar-text-muted);
}
.is-collapsed .sidebar-footer { display: none; }

/* Mobile drawer */
.sidebar-backdrop { display: none; }
@media (max-width: 900px) {
  .app-shell, .app-shell.is-collapsed { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 264px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
  }
  .sidebar-toggle.desktop-only { display: none; }
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.3rem; }
@media (max-width: 900px) { .topbar-menu-btn { display: inline-flex; } }

.topbar-title h1 { font-size: 1.05rem; }
.topbar-title p { margin: 0; font-size: 0.78rem; color: var(--text-muted); }

.topbar-search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
}
.topbar-search input { background: none; border: none; outline: none; color: var(--text); width: 100%; }
.topbar-search kbd {
  font-size: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--text-faint);
}
@media (max-width: 700px) { .topbar-search { display: none; } }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  position: relative;
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 2.1rem; height: 2.1rem;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 3px; right: 3px;
  background: var(--critical); color: white;
  font-size: 0.6rem; line-height: 1;
  min-width: 14px; height: 14px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 0.55rem;
  background: none; border: none; cursor: pointer; color: var(--text);
  padding: 0.3rem 0.5rem; border-radius: var(--radius-sm);
}
.user-menu-trigger:hover { background: var(--surface-2); }
.user-avatar {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; flex-shrink: 0;
}
.user-menu-trigger .u-meta { text-align: left; line-height: 1.15; }
.user-menu-trigger .u-meta strong { display: block; font-size: 0.82rem; }
.user-menu-trigger .u-meta span { font-size: 0.72rem; color: var(--text-muted); }
@media (max-width: 700px) { .user-menu-trigger .u-meta { display: none; } }

.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 0.4rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  min-width: 240px; z-index: 70;
  display: none;
  overflow: hidden;
}
.dropdown-panel.is-open { display: block; }
.dropdown-panel.wide { min-width: 340px; max-height: 420px; overflow-y: auto; }
.dropdown-header { padding: 0.7rem 1rem; font-size: 0.8rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.dropdown-item { display: block; padding: 0.6rem 1rem; font-size: 0.83rem; color: var(--text); border-bottom: 1px solid var(--border); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-item small { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 0.15rem; }
.dropdown-notif { display: flex; gap: 0.6rem; align-items: flex-start; }
.dropdown-notif .sev-dot { width: 8px; height: 8px; border-radius: 999px; margin-top: 0.35rem; flex-shrink: 0; }
form.dropdown-item-form button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 0.6rem 1rem; font-size: 0.83rem; color: var(--text);
}
form.dropdown-item-form button:hover { background: var(--surface-2); }

/* ---------- Main content ---------- */
.main-content { padding: 1.5rem; max-width: 1400px; }
@media (max-width: 700px) { .main-content { padding: 1rem; } }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.15rem; }
.page-header p.subtitle { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.82rem; }
.breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: white; border: none;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.84rem; font-weight: 500; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--critical); }
.btn-ghost { background: none; color: var(--text-muted); border: 1px solid var(--border); }
.btn-sm { padding: 0.32rem 0.7rem; font-size: 0.76rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field input[type="search"],
.field select, .field textarea {
  width: 100%; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 160px; }
.field-hint { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.25rem; }
.field-error { font-size: 0.75rem; color: var(--critical); margin-top: 0.25rem; }

/* ---------- Cards / KPI ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.1rem 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 0.92rem; }
.card-header a.card-link { font-size: 0.78rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; margin-bottom: 1.25rem; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.kpi-card .kpi-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.kpi-icon { width: 2.1rem; height: 2.1rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-card .kpi-label { font-size: 0.76rem; color: var(--text-muted); }
.kpi-card .kpi-value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.kpi-card .kpi-delta { font-size: 0.74rem; margin-top: 0.3rem; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--critical); }
.kpi-delta.neutral { color: var(--text-muted); }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 1000px) { .dashboard-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-critical { background: rgba(239, 68, 68, 0.14); color: var(--critical); }
.badge-high { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.badge-medium { background: rgba(234, 179, 8, 0.14); color: #b45309; }
.badge-low { background: rgba(59, 130, 246, 0.14); color: var(--accent); }
.badge-info { background: rgba(100, 116, 139, 0.14); color: var(--info); }
.badge-success { background: rgba(16, 185, 129, 0.14); color: var(--success); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* ---------- Data table ---------- */
.table-toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.9rem; }
.table-toolbar select, .table-toolbar input {
  padding: 0.45rem 0.65rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.82rem;
}
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--surface-2); padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .muted { color: var(--text-muted); }
.data-table .row-actions { display: flex; gap: 0.6rem; white-space: nowrap; }

@media (max-width: 800px) {
  .table-wrap { border: none; background: none; box-shadow: none; }
  table.data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr { display: block; }
  .data-table thead { display: none; }
  .data-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 0.7rem; padding: 0.4rem 0.9rem; box-shadow: var(--shadow-sm); }
  .data-table td { border-bottom: 1px solid var(--border); padding: 0.55rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before { content: attr(data-label); font-size: 0.72rem; color: var(--text-muted); text-align: left; font-weight: 600; }
}

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state svg { margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.3rem; }

.pagination { display: flex; gap: 0.3rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.35rem 0.65rem; border-radius: var(--radius-sm); font-size: 0.8rem; border: 1px solid var(--border); color: var(--text-muted); }
.pagination a:hover { background: var(--surface-2); text-decoration: none; }
.pagination .active { background: var(--accent); color: white; border-color: var(--accent); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; }
.tab-link { padding: 0.6rem 0.9rem; font-size: 0.84rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-link:hover { text-decoration: none; color: var(--text); }
.tab-link.is-active { color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.1rem; font-size: 0.85rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.4rem; top: 4px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); border: 2px solid var(--surface); }
.timeline-item .t-meta { color: var(--text-muted); font-size: 0.76rem; margin-bottom: 0.15rem; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.8rem; min-height: 200px; }
.kanban-col-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 0.7rem; display: flex; justify-content: space-between; }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; box-shadow: var(--shadow-sm); font-size: 0.82rem; }
.kanban-card:hover { border-color: var(--accent); }
.kanban-card .k-title { font-weight: 600; margin-bottom: 0.35rem; display: block; }
.kanban-card .k-meta { color: var(--text-muted); font-size: 0.72rem; }

/* ---------- Drawer / Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 80; display: none; }
.overlay.is-open { display: block; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 92vw; background: var(--surface); z-index: 90; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.2s ease; overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-body { padding: 1.25rem; }
.drawer-close { background: none; border: none; cursor: pointer; color: var(--text-muted); }
@media (max-width: 700px) { .drawer { width: 100vw; max-width: 100vw; } }

.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%); width: 460px; max-width: 92vw; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.6rem; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 100; display: flex; flex-direction: column; gap: 0.6rem; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 0.8rem 1rem; font-size: 0.84rem; min-width: 260px; max-width: 340px; }
.toast.error { border-left-color: var(--critical); }

/* ---------- Definition list (detail panels) ---------- */
.detail-list dt { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.8rem; }
.detail-list dd { margin: 0.2rem 0 0; font-size: 0.88rem; }

/* ---------- Auth screen ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--sidebar-bg); }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; text-align: center; max-width: 360px; width: 100%; }
.auth-card .brand-mark { margin-bottom: 1.25rem; }
.auth-card h1 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.auth-card p.tag { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.75rem; }

/* ---------- Misc ---------- */
.tag-chip { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: var(--radius-sm); margin-right: 0.25rem; }
.status-banner { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem; border-radius: var(--radius-md); font-size: 0.85rem; margin-bottom: 1rem; }
.status-banner.ok { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-banner.error { background: rgba(239, 68, 68, 0.1); color: var(--critical); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.disabled-feature { opacity: 0.6; }
.coming-soon-banner { display: flex; align-items: center; gap: 0.6rem; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 0.8rem 1rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
