/* =========================================================
   AKIWI — APP SHELL & COMPONENTS
   ========================================================= */

/* ---------- App layout : sidebar + subnav + content ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}
.app--with-subnav { grid-template-columns: var(--sidebar-width) var(--subnav-width) 1fr; }
.app--collapsed   { grid-template-columns: var(--sidebar-width-collapsed) 1fr; }

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: var(--color-bg-subtle);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.sidebar__brand {
  height: var(--header-height);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.sidebar__brand:hover { color: var(--color-text); opacity: 0.88; text-decoration: none; }
.sidebar__brand span { color: var(--color-text-subtle); font-weight: 400; }
.sidebar__brand-sigil {
  width: 56px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.sidebar__search {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__group-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  padding: 12px 10px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast);
}
.nav-item:hover { background: var(--color-surface-hover); color: var(--color-text); text-decoration: none; }
.nav-item--active {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-sm);
}
.nav-item--active::before {
  content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--color-primary-600);
}
.nav-item__icon {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--color-text-subtle);
}
.nav-item--active .nav-item__icon { color: var(--color-primary-600); }
.nav-item__badge {
  margin-left: auto;
  font-size: var(--text-xs);
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
.nav-item--active .nav-item__badge { background: var(--color-primary-100); color: var(--color-primary-700); }
[data-theme="dark"] .nav-item--active .nav-item__badge { background: rgba(234, 88, 12, 0.20); color: var(--color-primary-300); }

.sidebar__footer {
  border-top: 1px solid var(--color-border);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar__footer .btn { flex-shrink: 0; position: relative; z-index: 1; }
.sidebar__footer .user-chip {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.user-chip:hover { background: var(--color-surface-hover); }
.user-chip__avatar {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  color: white;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: var(--weight-semibold);
}
.user-chip__name { font-size: var(--text-base); font-weight: var(--weight-medium); line-height: 1.2; }
.user-chip__role { font-size: var(--text-xs); color: var(--color-text-subtle); }

/* ---------- SUBNAV (sous-nav contextuelle) ---------- */
.subnav {
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  height: 100vh;
  position: sticky; top: 0;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.subnav__header {
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--color-border);
}
.subnav__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  display: flex; align-items: center; gap: 8px;
}
.subnav__sub { font-size: var(--text-xs); color: var(--color-text-subtle); margin-top: 2px; }
.subnav__body { padding: 8px; flex: 1; }
.subnav__actions { padding: 10px 12px; border-top: 1px solid var(--color-border); }

/* ---------- TOPBAR ---------- */
.topbar {
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky; top: 0; z-index: var(--z-sticky);
}
.topbar__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.topbar__breadcrumb-current { color: var(--color-text); font-weight: var(--weight-medium); }
.topbar__breadcrumb-sep { color: var(--color-text-disabled); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  height: 30px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; pointer-events: none; }

.btn--primary {
  background: var(--color-primary-600);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary-600);
  box-shadow: var(--shadow-xs);
}
.btn--primary:hover { background: var(--color-primary-700); border-color: var(--color-primary-700); color: white; }

.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { background: var(--color-surface-hover); border-color: var(--color-text-subtle); color: var(--color-text); }

.btn--ghost { background: transparent; color: var(--color-text-muted); }
.btn--ghost:hover { background: var(--color-bg-subtle); color: var(--color-text); }

.btn--danger { background: var(--color-danger-solid); color: white; border-color: var(--color-danger-solid); }
.btn--danger:hover { background: var(--color-danger-fg); }

.btn--success { background: var(--color-success-solid); color: white; border-color: var(--color-success-solid); }
.btn--success:hover { filter: brightness(0.92); color: white; }

.btn--sm { height: 26px; padding: 4px 9px; font-size: var(--text-sm); }
.btn--sm svg { width: 13px; height: 13px; }
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: default;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: src-spin 0.65s linear infinite;
}
.btn--lg { height: 38px; padding: 8px 16px; font-size: var(--text-md); }
.btn--lg svg { width: 16px; height: 16px; }

.btn--icon { width: 30px; padding: 0; }
.btn--icon.btn--sm { width: 26px; }
.btn--icon.btn--lg { width: 38px; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); margin-left: 0; }
.btn-group .btn:last-child  { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }

/* ---------- INPUTS ---------- */
.input, .textarea, .select {
  width: 100%;
  height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  font-family: inherit;
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-disabled); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-primary-600);
  box-shadow: var(--shadow-focus);
}
.textarea { height: auto; min-height: 72px; padding: 8px 10px; line-height: var(--leading-base); resize: vertical; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  display: flex; align-items: center; gap: 6px;
}
.field__hint { font-size: var(--text-sm); color: var(--color-text-subtle); }
.field__error { font-size: var(--text-sm); color: var(--color-danger-fg); }

.input-group {
  display: flex; align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0 8px;
  height: 32px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.input-group:focus-within { border-color: var(--color-primary-600); box-shadow: var(--shadow-focus); }
.input-group svg { width: 14px; height: 14px; color: var(--color-text-subtle); flex-shrink: 0; }
.input-group .input { border: none; padding: 0 6px; height: auto; background: transparent; box-shadow: none !important; }
.input-group .input:focus { box-shadow: none; }

.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  line-height: 1;
}

/* ---------- BADGES & TAGS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-bg);
  color: var(--color-neutral-fg);
  border: 1px solid var(--color-neutral-border);
  line-height: 1.4;
  white-space: nowrap;
}
.badge--success { background: var(--color-success-bg); color: var(--color-success-fg); border-color: var(--color-success-border); }
.badge--info    { background: var(--color-info-bg);    color: var(--color-info-fg);    border-color: var(--color-info-border); }
.badge--warn    { background: var(--color-warn-bg);    color: var(--color-warn-fg);    border-color: var(--color-warn-border); }
.badge--danger  { background: var(--color-danger-bg);  color: var(--color-danger-fg);  border-color: var(--color-danger-border); }
.badge--primary { background: var(--color-primary-100); color: var(--color-primary-700); border-color: var(--color-primary-200); }
[data-theme="dark"] .badge--primary { background: rgba(234, 88, 12, 0.16); color: var(--color-primary-300); border-color: rgba(234, 88, 12, 0.30); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---------- CARDS ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 10px;
}
.card__title { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.card__sub { font-size: var(--text-sm); color: var(--color-text-subtle); }
.card__body { padding: 16px; }
.card__footer { padding: 12px 16px; border-top: 1px solid var(--color-border); background: var(--color-bg-subtle); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Metric / KPI card */
.metric { padding: 16px; }
.metric__label { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.metric__value { font-size: var(--text-3xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric__delta { font-size: var(--text-sm); font-weight: var(--weight-medium); display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; }
.metric__delta--up   { color: var(--color-success-fg); }
.metric__delta--down { color: var(--color-danger-fg); }

/* ---------- TABLES ---------- */
.table-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.table thead th {
  text-align: left;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
  padding: 8px 14px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--color-surface-hover); }
.table tbody tr[data-selected="true"] { background: var(--color-primary-50); }
[data-theme="dark"] .table tbody tr[data-selected="true"] { background: rgba(234, 88, 12, 0.10); }
.table td.col-actions { text-align: right; }
.table td.col-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--color-border);
}
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-primary-600); }
.tab svg { width: 14px; height: 14px; }
.tab__count {
  font-size: var(--text-xs); padding: 1px 6px; border-radius: 999px;
  background: var(--color-bg-subtle); color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.tab[aria-selected="true"] .tab__count { background: var(--color-primary-100); color: var(--color-primary-700); }
[data-theme="dark"] .tab[aria-selected="true"] .tab__count { background: rgba(234, 88, 12, 0.18); color: var(--color-primary-300); }

/* Pill tabs (alternative) */
.pill-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--color-bg-subtle); border-radius: var(--radius-md); }
.pill-tab { padding: 5px 11px; border-radius: var(--radius-sm); background: transparent; border: none; cursor: pointer; font-size: var(--text-base); color: var(--color-text-muted); font-weight: var(--weight-medium); display: inline-flex; align-items: center; gap: 6px; }
.pill-tab[aria-selected="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-xs); }
.pill-tab svg { width: 13px; height: 13px; }

/* ---------- TREE (Notion-style) ---------- */
.tree { display: flex; flex-direction: column; gap: 1px; }
.tree-item {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text);
  cursor: pointer;
  min-height: 26px;
}
.tree-item:hover { background: var(--color-surface-hover); }
.tree-item[aria-current="page"] { background: var(--color-primary-50); color: var(--color-primary-700); font-weight: var(--weight-medium); }
[data-theme="dark"] .tree-item[aria-current="page"] { background: rgba(234, 88, 12, 0.12); color: var(--color-primary-300); }
.tree-chevron { width: 16px; height: 16px; display: grid; place-items: center; color: var(--color-text-subtle); border-radius: 3px; flex-shrink: 0; }
.tree-chevron:hover { background: var(--color-bg-subtle); }
.tree-chevron svg { width: 12px; height: 12px; }
.tree-chevron[data-open="true"] svg { transform: rotate(90deg); }
.tree-icon { width: 14px; height: 14px; color: var(--color-text-subtle); flex-shrink: 0; }
.tree-item[aria-current="page"] .tree-icon { color: var(--color-primary-600); }
.tree-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-actions { display: none; gap: 2px; }
.tree-item:hover .tree-actions { display: inline-flex; }
.tree-actions .btn { height: 20px; width: 20px; padding: 0; }
.tree-children { padding-left: 18px; border-left: 1px solid var(--color-border); margin-left: 11px; }

/* Status icons in tree */
.tree-status {
  width: 6px; height: 6px; border-radius: 999px;
  flex-shrink: 0; margin-right: 2px;
}
.tree-status--online  { background: var(--color-success-solid); }
.tree-status--offline { background: var(--color-text-disabled); }
.tree-status--draft   { background: var(--color-warn-solid); }

/* ---------- SCORE RINGS / METER ---------- */
.score-ring {
  --size: 56px;
  --thickness: 6px;
  width: var(--size); height: var(--size);
  border-radius: 999px;
  background:
    conic-gradient(var(--ring-color, var(--color-primary-600)) calc(var(--score, 0) * 1%), var(--color-bg-subtle) 0);
  display: grid; place-items: center;
  position: relative;
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: var(--thickness);
  border-radius: 999px;
  background: var(--color-surface);
}
.score-ring__value {
  position: relative;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- ALERTS / BANNERS ---------- */
.alert {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-info-border);
  background: var(--color-info-bg);
  color: var(--color-info-fg);
  font-size: var(--text-base);
  align-items: flex-start;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert--warn   { background: var(--color-warn-bg);    color: var(--color-warn-fg);    border-color: var(--color-warn-border); }
.alert--danger { background: var(--color-danger-bg);  color: var(--color-danger-fg);  border-color: var(--color-danger-border); }
.alert--success{ background: var(--color-success-bg); color: var(--color-success-fg); border-color: var(--color-success-border); }
.alert__title { font-weight: var(--weight-semibold); margin-bottom: 2px; }

/* ---------- PAGE CONTAINER ---------- */
.page {
  padding: 20px 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.page__header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page__title-block { flex: 1; min-width: 0; }
.page__title { font-size: var(--text-2xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: 1.2; }
.page__sub { font-size: var(--text-base); color: var(--color-text-muted); margin-top: 4px; }
.page__actions { display: flex; gap: 8px; align-items: center; }

/* ---------- AVATARS ---------- */
.avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: white;
  background: var(--color-text-muted);
  flex-shrink: 0;
}
.avatar--sm { width: 22px; height: 22px; font-size: 10px; }
.avatar--lg { width: 36px; height: 36px; font-size: var(--text-base); }
.avatar--xl { width: 56px; height: 56px; font-size: var(--text-lg); }
.avatar-group { display: inline-flex; }
.avatar-group .avatar { border: 2px solid var(--color-surface); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ---------- CHECKBOX / RADIO / SWITCH ---------- */
.checkbox {
  width: 16px; height: 16px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  display: inline-grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox[data-checked="true"] { background: var(--color-primary-600); border-color: var(--color-primary-600); }
.checkbox[data-checked="true"]::after {
  content: ""; width: 8px; height: 5px;
  border-left: 2px solid white; border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}
.checkbox[data-indeterminate="true"] { background: var(--color-primary-600); border-color: var(--color-primary-600); }
.checkbox[data-indeterminate="true"]::after { content: ""; width: 8px; height: 2px; background: white; }

.switch {
  position: relative;
  width: 30px; height: 18px;
  background: var(--color-border-strong);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 999px;
  transition: transform var(--duration-fast);
  box-shadow: var(--shadow-xs);
}
.switch[data-on="true"] { background: var(--color-primary-600); }
.switch[data-on="true"]::after { transform: translateX(12px); }

/* ---------- DIVIDERS ---------- */
.divider { height: 1px; background: var(--color-border); margin: 16px 0; }
.divider--v { width: 1px; height: 100%; background: var(--color-border); }

/* ---------- UTILS ---------- */
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.tabular { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; }
.row.gap-1 { gap: 4px; } .row.gap-2 { gap: 8px; } .row.gap-3 { gap: 12px; } .row.gap-4 { gap: 16px; }
.col { display: flex; flex-direction: column; }
.col.gap-1 { gap: 4px; } .col.gap-2 { gap: 8px; } .col.gap-3 { gap: 12px; } .col.gap-4 { gap: 16px; }
.grow { flex: 1; }
.ml-auto { margin-left: auto; }

/* Section title between groups */
.section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-subtle);
  margin: 24px 0 10px;
}

/* Empty state */
.empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--color-text-muted);
}
.empty__icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  color: var(--color-text-subtle);
}
.empty__title { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text); margin-bottom: 4px; }

/* Sparkline mini bars */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.bars__bar { width: 6px; border-radius: 2px 2px 0 0; }
.bars__bar--seo { background: var(--color-seo); }
.bars__bar--geo { background: var(--color-geo); }

/* Quick win row */
.win-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}
.win-row:last-child { border-bottom: none; }
.win-row__score {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--color-warn-bg);
  color: var(--color-warn-fg);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.win-row__text { flex: 1; font-size: var(--text-base); }
.win-row__tag { font-size: var(--text-xs); color: var(--color-text-subtle); }
