/*
 * app.css — BlueprintCatalog design system
 * ───────────────────────────────────────────
 * Shared design tokens + application shell + reusable component classes.
 * Loaded on every page alongside the page's own (much smaller) template-
 * specific <style> block, which still owns anything truly page-specific
 * (e.g. #workspace-table column widths). Existing component class names
 * used by tested markup (.badge, .badge-*, .row-btn, .note, .nav-link,
 * banner classes, bulk-action button classes, etc.) are extended here in
 * place -- never renamed -- so every existing template/test keeps working
 * unchanged.
 */

:root {
  color-scheme: light;

  /* ── Brand palette ─────────────────────────────────────────────── */
  --bp-navy: #0B2A66;
  --bp-sidebar-navy: #071E49;
  --bp-sidebar-hover: #123B7A;
  --bp-blue: #2563EB;
  --bp-blue-hover: #1D4ED8;
  --bp-blue-soft: #EAF1FF;
  --bp-page-bg: #F5F7FB;
  --bp-surface: #FFFFFF;
  --bp-border: #E2E8F0;
  --bp-text: #14213D;
  --bp-text-secondary: #64748B;
  --bp-text-muted: #94A3B8;
  --bp-success: #15803D;
  --bp-success-bg: #EAF7EE;
  --bp-warning: #B7791F;
  --bp-warning-bg: #FFF7E6;
  --bp-danger: #DC2626;
  --bp-danger-bg: #FEECEC;
  --bp-info: #2563EB;
  --bp-info-bg: #EAF1FF;

  --bp-radius-sm: 6px;
  --bp-radius: 10px;
  --bp-radius-lg: 14px;
  --bp-shadow-sm: 0 1px 2px rgba(11, 42, 102, .06);
  --bp-shadow: 0 4px 16px rgba(11, 42, 102, .08);
  --bp-sidebar-width: 232px;
  --bp-topbar-height: 60px;
  --bp-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  /* The rest of the app is light-mode-only today (every existing page is);
     keep the shell readable if a user forces dark mode at the OS level
     without attempting a full dark theme this phase. */
  :root { color-scheme: light; }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.bp-body {
  margin: 0;
  font-family: var(--bp-font);
  background: var(--bp-page-bg);
  color: var(--bp-text);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════ Focus / a11y ═══════════════════════════════ */

a, button, input, select, textarea, summary, [tabindex] { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--bp-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.bp-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.bp-skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 200;
  background: var(--bp-navy); color: #fff; padding: 8px 14px; border-radius: var(--bp-radius-sm);
  font-size: 13px; font-weight: 600; text-decoration: none; transition: top .15s;
}
.bp-skip-link:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ══════════════════════════ App shell ═══════════════════════════════════ */

.bp-shell { display: flex; min-height: 100vh; }

.bp-sidebar {
  width: var(--bp-sidebar-width); flex-shrink: 0;
  background: var(--bp-sidebar-navy); color: #dbe5f5;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  z-index: 40;
}

.bp-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; text-decoration: none; }
.bp-brand:hover { text-decoration: none; }
.bp-brand-mark { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--bp-blue); display: flex; align-items: center; justify-content: center; }
.bp-brand-mark svg { width: 18px; height: 18px; display: block; }
.bp-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

.bp-nav { flex: 1; padding: 6px 10px 10px; }
.bp-nav-group { margin-top: 14px; }
.bp-nav-group:first-child { margin-top: 4px; }
.bp-nav-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #7d93bd; padding: 0 10px; margin-bottom: 4px;
}

.bp-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 1px 0; border-radius: var(--bp-radius-sm);
  color: #cfdcf2; text-decoration: none; font-size: 13.5px; font-weight: 500;
  position: relative;
}
.bp-nav-item:hover { background: var(--bp-sidebar-hover); color: #fff; text-decoration: none; }
.bp-nav-item[aria-current="page"] { background: var(--bp-blue); color: #fff; font-weight: 600; }
.bp-nav-item .bp-nav-icon { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.bp-nav-item .bp-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bp-nav-badge {
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #dbe5f5; line-height: 1.6;
}
.bp-nav-item[aria-current="page"] .bp-nav-badge { background: rgba(255,255,255,.28); color: #fff; }
.bp-nav-badge.bp-nav-badge-soon { background: rgba(255,255,255,.1); color: #9fb3d6; font-style: normal; }
.bp-nav-badge.bp-nav-badge-warning { background: var(--bp-warning-bg); color: var(--bp-warning); white-space: nowrap; }
.bp-nav-item.bp-nav-item-disabled { color: #6f84a8; cursor: default; }
.bp-nav-item.bp-nav-item-disabled:hover { background: transparent; color: #6f84a8; }

.bp-sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.bp-help-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--bp-radius); padding: 12px 14px;
}
.bp-help-title { font-size: 12.5px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.bp-help-text { font-size: 11.5px; color: #9fb3d6; line-height: 1.4; margin-bottom: 8px; }
.bp-help-link { font-size: 12px; font-weight: 600; color: #dbe8ff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.bp-help-link:hover { text-decoration: underline; }

.bp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── Topbar ────────────────────────────────────────────────────────── */

.bp-topbar {
  height: var(--bp-topbar-height); flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; background: var(--bp-surface); border-bottom: 1px solid var(--bp-border);
  position: sticky; top: 0; z-index: 30;
}
.bp-menu-trigger {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--bp-radius-sm); border: 1px solid var(--bp-border);
  background: var(--bp-surface); cursor: pointer; color: var(--bp-text);
}
.bp-topbar-spacer { flex: 1; }
.bp-store-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--bp-border); border-radius: 999px; background: var(--bp-page-bg);
  font-size: 12.5px; font-weight: 600; color: var(--bp-text-secondary);
}
.bp-store-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bp-success); flex-shrink: 0; }
.bp-store-dot.bp-store-dot-off { background: var(--bp-text-muted); }
.bp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--bp-radius-sm);
  border: 1px solid var(--bp-border); background: var(--bp-surface); color: var(--bp-text-secondary); cursor: pointer;
}
.bp-icon-btn:hover { background: var(--bp-page-bg); }
.bp-bell-btn { position: relative; text-decoration: none; }
.bp-bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--bp-danger); color: #fff; font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--bp-surface);
}
.bp-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bp-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
  flex-shrink: 0;
}

/* SaaS Foundation Phase A: the topbar's account chip (organization name +
   display name + Logout), replacing the previous static "DK" placeholder. */
.bp-account-chip { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.bp-account-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bp-account-org { font-size: 11px; font-weight: 600; color: var(--bp-text-muted); }
.bp-account-name {
  font-size: 12.5px; font-weight: 600; color: var(--bp-text);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bp-account-logout-form { margin: 0; }

/* ══════════════════════════ Page layout ═════════════════════════════════ */

.bp-page { padding: 22px 28px 60px; max-width: 1440px; }
.bp-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.bp-page-title { font-size: 21px; font-weight: 700; margin: 0 0 4px; color: var(--bp-text); letter-spacing: -.01em; }
.bp-page-description { font-size: 13.5px; color: var(--bp-text-secondary); margin: 0; }
.bp-page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bp-text-secondary); margin-bottom: 8px; }
.bp-breadcrumbs a { color: var(--bp-text-secondary); text-decoration: none; }
.bp-breadcrumbs a:hover { color: var(--bp-blue); text-decoration: underline; }

/* ══════════════════════════ Stat cards ══════════════════════════════════ */

.bp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.bp-stat-card {
  background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg);
  padding: 16px 18px; box-shadow: var(--bp-shadow-sm);
}
.bp-stat-card-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--bp-text-secondary); margin-bottom: 10px; }
.bp-stat-icon { width: 26px; height: 26px; border-radius: var(--bp-radius-sm); background: var(--bp-blue-soft); color: var(--bp-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bp-stat-icon svg { width: 15px; height: 15px; }
.bp-stat-value { font-size: 24px; font-weight: 700; color: var(--bp-text); line-height: 1.15; }
.bp-stat-sub { font-size: 12px; color: var(--bp-text-muted); margin-top: 3px; }
.bp-stat-sub.bp-stat-sub-up { color: var(--bp-success); }

/* ══════════════════════════ Cards ═══════════════════════════════════════ */

.bp-card { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg); box-shadow: var(--bp-shadow-sm); }
.bp-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--bp-border); }
.bp-card-title { font-size: 14.5px; font-weight: 700; margin: 0; color: var(--bp-text); }
.bp-card-body { padding: 16px 18px; }
.bp-card-link { font-size: 12.5px; font-weight: 600; color: var(--bp-blue); text-decoration: none; }
.bp-card-link:hover { text-decoration: underline; }

/* ══════════════════════════ Buttons ═════════════════════════════════════ */

.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 9px 15px; min-height: 36px; border-radius: var(--bp-radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .12s, border-color .12s, opacity .12s;
  white-space: nowrap;
}
.bp-btn:disabled, .bp-btn.bp-btn-disabled { opacity: .5; cursor: not-allowed; }
.bp-btn-sm { padding: 6px 11px; min-height: 30px; font-size: 12.5px; }

.bp-btn-primary { background: var(--bp-blue); color: #fff; border-color: var(--bp-blue); }
.bp-btn-primary:hover:not(:disabled) { background: var(--bp-blue-hover); border-color: var(--bp-blue-hover); }

.bp-btn-secondary { background: var(--bp-surface); color: var(--bp-text); border-color: var(--bp-border); }
.bp-btn-secondary:hover:not(:disabled) { background: var(--bp-page-bg); }

.bp-btn-ghost { background: transparent; color: var(--bp-text-secondary); border-color: transparent; }
.bp-btn-ghost:hover:not(:disabled) { background: var(--bp-page-bg); color: var(--bp-text); }

.bp-btn-success { background: var(--bp-success); color: #fff; border-color: var(--bp-success); }
.bp-btn-success:hover:not(:disabled) { background: #116631; border-color: #116631; }

.bp-btn-danger { background: var(--bp-surface); color: var(--bp-danger); border-color: #f3b9b9; }
.bp-btn-danger:hover:not(:disabled) { background: var(--bp-danger-bg); }
.bp-btn-danger-solid { background: var(--bp-danger); color: #fff; border-color: var(--bp-danger); }
.bp-btn-danger-solid:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }

.bp-icon-only { width: 34px; height: 34px; padding: 0; }

/* ══════════════════════════ Badges (extends existing .badge system) ══════ */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: capitalize; letter-spacing: .01em; line-height: 1.5; white-space: nowrap;
}
.badge-green  { background: var(--bp-success-bg); color: var(--bp-success); }
.badge-blue   { background: var(--bp-info-bg); color: var(--bp-info); }
.badge-gray   { background: #EEF1F6; color: var(--bp-text-secondary); }
.badge-red    { background: var(--bp-danger-bg); color: var(--bp-danger); }
.badge-yellow, .badge-orange { background: var(--bp-warning-bg); color: var(--bp-warning); }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: .85; }

/* ══════════════════════════ Toolbars / filters ══════════════════════════ */

.bp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bp-search-field { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.bp-search-field svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--bp-text-muted); pointer-events: none; }
.bp-search-field input[type=text] { width: 100%; padding: 8px 12px 8px 32px; }

.bp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bp-border); margin-bottom: 16px; flex-wrap: wrap; overflow-x: auto; }
.bp-tab {
  padding: 9px 4px; margin-right: 18px; font-size: 13px; font-weight: 600; color: var(--bp-text-secondary);
  border: none; border-bottom: 2px solid transparent; background: transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.bp-tab:hover { color: var(--bp-text); }
.bp-tab.bp-tab-active, .bp-tab[aria-current="true"] { color: var(--bp-blue); border-bottom-color: var(--bp-blue); }
.bp-tab .bp-tab-count { color: inherit; opacity: .7; margin-left: 4px; }

.bp-filter-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 12px;
  border-radius: 999px; background: var(--bp-blue-soft); color: var(--bp-blue);
  font-size: 12px; font-weight: 600; border: none;
}
.bp-filter-chip button { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }

/* ══════════════════════════ Tables ══════════════════════════════════════ */

.bp-table-container { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg); overflow: hidden; box-shadow: var(--bp-shadow-sm); }
.bp-table-scroll { overflow-x: auto; }

.bp-product-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bp-product-thumb { width: 38px; height: 38px; border-radius: var(--bp-radius-sm); object-fit: contain; border: 1px solid var(--bp-border); background: var(--bp-page-bg); flex-shrink: 0; }
.bp-product-thumb-placeholder { width: 38px; height: 38px; border-radius: var(--bp-radius-sm); background: var(--bp-page-bg); flex-shrink: 0; }
.bp-product-text { min-width: 0; }
.bp-product-title { font-weight: 600; font-size: 13px; color: var(--bp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-product-sub { font-size: 11.5px; color: var(--bp-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════════════════ Empty states ════════════════════════════════ */

.bp-empty-state { text-align: center; padding: 52px 24px; color: var(--bp-text-secondary); }
.bp-empty-icon { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--bp-text-muted); }
.bp-empty-title { font-size: 15px; font-weight: 700; color: var(--bp-text); margin: 0 0 6px; }
.bp-empty-text { font-size: 13px; color: var(--bp-text-secondary); margin: 0 0 16px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════ Alerts / banners ════════════════════════════ */

.error-banner, .cp-error-banner, .cl-error-banner {
  background: var(--bp-danger-bg); border: 1px solid #f5c6cb; color: #7f1d1d;
  padding: 11px 14px; border-radius: var(--bp-radius); margin-bottom: 14px; font-size: 13px;
}
.warning-banner {
  background: var(--bp-warning-bg); border: 1px solid #f3d9a6; color: #7c5210;
  padding: 11px 14px; border-radius: var(--bp-radius); margin-bottom: 12px; font-size: 13px;
}
.ws-summary-banner, .cp-summary-banner, .cat-summary-banner, .cl-message-banner,
.info-banner {
  background: var(--bp-info-bg); border: 1px solid #c9dcfb; color: #123a8f;
  padding: 11px 14px; border-radius: var(--bp-radius); margin-bottom: 14px; font-size: 13px; font-weight: 600;
}

/* ══════════════════════════ Global page loading bar ═════════════════════ */
/* Indeterminate (no fake percentage) -- shown on any form submission or
   htmx request anywhere in the app, hidden again once that request settles
   or a page is (re)shown, including back-forward-cache restores. */

#bp-page-loader {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999;
  background: var(--bp-blue); transform-origin: left; transform: scaleX(0);
  opacity: 0; pointer-events: none;
}
#bp-page-loader.is-active {
  opacity: 1;
  animation: bp-page-loader-sweep 1.1s ease-in-out infinite;
}
@keyframes bp-page-loader-sweep {
  0%   { transform: scaleX(0); }
  55%  { transform: scaleX(.65); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ══════════════════════════ Toasts ══════════════════════════════════════ */

#bp-toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.bp-toast {
  background: var(--bp-text); color: #fff; padding: 11px 14px; border-radius: var(--bp-radius);
  font-size: 13px; font-weight: 600; box-shadow: var(--bp-shadow); display: flex; align-items: center; gap: 8px;
  animation: bp-toast-in .18s ease-out;
}
.bp-toast.bp-toast-success { background: #0f5c31; }
.bp-toast.bp-toast-error { background: #7f1d1d; }
@keyframes bp-toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════ Confirm dialog ══════════════════════════════ */

.bp-confirm-dialog { border: none; border-radius: var(--bp-radius-lg); padding: 0; box-shadow: var(--bp-shadow); max-width: 420px; width: calc(100vw - 40px); }
.bp-confirm-dialog::backdrop { background: rgba(11,42,102,.35); }
.bp-confirm-body { padding: 20px 22px; font-size: 13.5px; color: var(--bp-text); line-height: 1.5; }
.bp-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--bp-border); }

/* ══════════════════════════ Skeleton loaders ════════════════════════════ */

.bp-skeleton { background: linear-gradient(90deg, #eef1f6 25%, #e4e9f2 37%, #eef1f6 63%); background-size: 400% 100%; animation: bp-skeleton-shine 1.4s ease infinite; border-radius: var(--bp-radius-sm); }
@keyframes bp-skeleton-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ══════════════════════════ Donut chart (dashboard) ═════════════════════ */

.bp-donut { width: 168px; height: 168px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bp-donut-center { width: 108px; height: 108px; border-radius: 50%; background: var(--bp-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bp-donut-total { font-size: 22px; font-weight: 700; color: var(--bp-text); }
.bp-donut-label { font-size: 11px; color: var(--bp-text-secondary); }
.bp-legend { display: flex; flex-direction: column; gap: 9px; }
.bp-legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bp-text); }
.bp-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bp-legend-value { margin-left: auto; font-weight: 700; }

/* ══════════════════════════ Responsive ══════════════════════════════════ */

.bp-hide-mobile { }
.bp-show-mobile { display: none; }

@media (max-width: 1024px) {
  .bp-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .18s ease; box-shadow: var(--bp-shadow); }
  .bp-shell.bp-sidebar-open .bp-sidebar { transform: translateX(0); }
  .bp-shell.bp-sidebar-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(11,42,102,.35); z-index: 35;
  }
  .bp-menu-trigger { display: inline-flex; }
  .bp-page { padding: 16px 16px 48px; }
}

@media (max-width: 768px) {
  .bp-store-chip span.bp-store-domain-text { display: none; }
  .bp-page-header { flex-direction: column; }
  .bp-page-header-actions { width: 100%; }
  .bp-hide-mobile { display: none !important; }
  .bp-show-mobile { display: block; }
  .bp-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .bp-stat-grid { grid-template-columns: 1fr; }
  .bp-topbar { padding: 0 12px; gap: 8px; }
}

/* ══════════════════════════ Notifications (Attention Center) ═══════════ */
.bp-notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bp-notification-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-surface);
}
.bp-notification-item.bp-notification-unread { background: var(--bp-blue-soft); border-color: var(--bp-blue); }
.bp-notification-severity-icon { flex-shrink: 0; margin-top: 2px; }
.bp-notification-severity-icon.bp-notification-severity-error { color: var(--bp-danger); }
.bp-notification-severity-icon.bp-notification-severity-warning { color: var(--bp-warning); }
.bp-notification-severity-icon.bp-notification-severity-info { color: var(--bp-info); }
.bp-notification-body { flex: 1; min-width: 0; }
.bp-notification-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bp-notification-title { font-weight: 700; font-size: 14px; color: var(--bp-text); }
.bp-notification-unread .bp-notification-title { font-weight: 800; }
.bp-notification-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bp-blue); flex-shrink: 0; }
.bp-notification-message { margin: 6px 0 0; font-size: 13px; color: var(--bp-text-secondary); }
.bp-notification-meta {
  margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--bp-text-muted);
}
.bp-notification-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
