/* ============================================================================
 * Backup Center — Atelier "Modo Humano" UI Stylesheet (Self-hosted WOFF2)
 * Editions: Limestone & Imperial Emerald (default), Onyx Dark & Jade, Nordic Quartz
 * ============================================================================ */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/backupcenter/public/fonts/ibm-plex-sans-ext-400.woff2') format('woff2'),
       url('/backupcenter/public/fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/backupcenter/public/fonts/ibm-plex-sans-ext-500.woff2') format('woff2'),
       url('/backupcenter/public/fonts/ibm-plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/backupcenter/public/fonts/ibm-plex-sans-ext-600.woff2') format('woff2'),
       url('/backupcenter/public/fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/backupcenter/public/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/backupcenter/public/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/backupcenter/public/fonts/instrument-serif-ext-400.woff2') format('woff2'),
       url('/backupcenter/public/fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Edition I (Default): Piedra Caliza & Esmeralda Imperial */
:root,
html[data-theme="limestone"] {
  --ground: #f3f0e8;
  --surface: #ffffff;
  --raised: #faf8f4;
  --well: #f4f1ea;
  --active: #e7e2d6;
  --border: #e4dfd3;
  --rule: #eeeae0;
  --control-border: #cbc4b5;
  --text: #161513;
  --text-secondary: #57534b;
  --muted: #6b665d;
  --primary-btn: #181715;
  --primary-btn-hover: #2c2a26;
  --primary-btn-ink: #faf8f4;
  --chart-1: #0d6b4b;
  --chart-1-soft: rgba(13, 107, 75, 0.14);
  --chart-2: #8a6d3b;
  --positive: #0d6b4b;
  --positive-bg: #e6f3ec;
  --positive-border: #bedccb;
  --positive-ink: #073f2c;
  --warning: #945608;
  --warning-bg: #fdf3e3;
  --warning-border: #ebd1a7;
  --warning-ink: #6e3e04;
  --cold: #1d5378;
  --cold-bg: #eaf2f8;
  --cold-border: #c2d8e8;
  --negative: #a62639;
  --negative-bg: #fbecee;
  --negative-border: #e6b8bf;
  --negative-ink: #701522;
  --selection-bg: rgba(13, 107, 75, 0.16);
}

/* Edition II: Onix Nocturno & Jade */
html[data-theme="onyx"] {
  --ground: #0a0b0d;
  --surface: #111317;
  --raised: #171a20;
  --well: #0d0f13;
  --active: #21262f;
  --border: #232831;
  --rule: #1c2028;
  --control-border: #363d49;
  --text: #f3f4f6;
  --text-secondary: #b2b8c2;
  --muted: #8e96a4;
  --primary-btn: #f3f4f6;
  --primary-btn-hover: #ffffff;
  --primary-btn-ink: #0a0b0d;
  --chart-1: #34d399;
  --chart-1-soft: rgba(52, 211, 153, 0.16);
  --chart-2: #94a3b8;
  --positive: #34d399;
  --positive-bg: #102920;
  --positive-border: #1b4636;
  --positive-ink: #6ee7b7;
  --warning: #e09b2d;
  --warning-bg: #291f0c;
  --warning-border: #4d3812;
  --warning-ink: #fcd34d;
  --cold: #6ca4eb;
  --cold-bg: #112236;
  --cold-border: #1e3a5f;
  --negative: #f87171;
  --negative-bg: #2c1215;
  --negative-border: #5b2128;
  --negative-ink: #fca5a5;
  --selection-bg: rgba(52, 211, 153, 0.22);
}

/* Edition III: Cuarzo Nordico & Cobalto */
html[data-theme="nordic"] {
  --ground: #eef2f6;
  --surface: #ffffff;
  --raised: #f7f9fb;
  --well: #eff3f8;
  --active: #e2e8f0;
  --border: #e1e7ef;
  --rule: #edf1f6;
  --control-border: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --primary-btn: #0f172a;
  --primary-btn-hover: #1e293b;
  --primary-btn-ink: #ffffff;
  --chart-1: #1a479c;
  --chart-1-soft: rgba(26, 71, 156, 0.13);
  --chart-2: #64748b;
  --positive: #15803d;
  --positive-bg: #e7f6ec;
  --positive-border: #bce3c8;
  --positive-ink: #0f5328;
  --warning: #b45309;
  --warning-bg: #fef4e6;
  --warning-border: #f3d2a2;
  --warning-ink: #7c3706;
  --cold: #0369a1;
  --cold-bg: #e8f3fa;
  --cold-border: #bae0f5;
  --negative: #be123c;
  --negative-bg: #fdecef;
  --negative-border: #f4bcc7;
  --negative-ink: #881337;
  --selection-bg: rgba(29, 78, 216, 0.16);
}

:root {
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --radius-sheet: 14px;
  --radius-card: 8px;
  --radius-ctrl: 6px;
  --gap: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--selection-bg); color: var(--text); }

html, body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out);
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
}
.hidden { display: none !important; }
.bc-touch-btn{min-height:48px;}

/* FRAMED-SHEET L-FRAME SHELL */
.l-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  padding: 16px 12px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  user-select: none;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px 18px;
}
.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--chart-1);
  flex-shrink: 0;
}
.brand-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand-scope {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
}

.nav-group-label {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 10px 6px;
  font-weight: 400;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-btn {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-ctrl);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.nav-btn:hover {
  color: var(--text);
  background: rgba(128, 128, 128, 0.07);
}
.nav-btn.active {
  background: var(--active);
  color: var(--text);
  font-weight: 500;
}
.nav-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nav-count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atelier-picker { padding: 0 8px; }
.atelier-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.atelier-label a {
  color: var(--chart-1);
  text-decoration: none;
  font-weight: 500;
}
.atelier-label a:hover { text-decoration: underline; }

.theme-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 2px;
  gap: 2px;
}
.theme-opt {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 4px;
  min-height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.theme-opt.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.utility-row {
  display: flex;
  gap: 6px;
  padding: 0 8px;
}
.util-btn {
  flex: 1;
  min-height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.util-btn:hover { color: var(--text); border-color: var(--control-border); }
.util-btn.active { background: var(--active); color: var(--text); }

.session-row {
  padding: 2px 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.session-row a {
  color: var(--text-secondary);
  text-decoration: none;
}
.session-row a:hover { color: var(--text); text-decoration: underline; }

/* MAIN STAGE & TOP BAR */
.main-stage {
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px 0;
  min-width: 0;
}

.top-bar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 8px;
}

.mobile-menu-trigger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  min-width: 44px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

.omni-search-trigger {
  width: 440px;
  max-width: 100%;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out);
}
.omni-search-trigger:hover { border-color: var(--control-border); color: var(--text-secondary); }

.kbd-hint {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: var(--raised);
}

.top-right-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.freshness-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--positive);
  display: inline-block;
}
.status-dot.warn { background: var(--warning); }
.status-dot.error { background: var(--negative); }

.studio-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.studio-link {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.studio-link:hover {
  color: var(--text);
  border-color: var(--control-border);
}

.sheet {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: 28px 32px 44px;
  min-width: 0;
}

/* SHARED TYPOGRAPHY, BUTTONS & TAGS */
svg.ic {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.page-finding {
  margin-top: 5px;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 70ch;
}
.page-finding strong { color: var(--text); font-weight: 500; }

.btn-primary {
  min-height: 38px;
  padding: 8px 16px;
  background: var(--primary-btn);
  color: var(--primary-btn-ink);
  border: 1px solid var(--primary-btn);
  border-radius: var(--radius-ctrl);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 140ms var(--ease-out), transform 100ms var(--ease-out);
}
.btn-primary:hover { background: var(--primary-btn-hover); }
.btn-primary:active { transform: scale(0.985); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-outline {
  min-height: 36px;
  padding: 7px 13px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-ctrl);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.btn-outline:hover { border-color: var(--text); background: var(--raised); }
.btn-outline:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  min-height: 34px;
  padding: 6px 10px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-ctrl);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--raised);
  border-color: var(--border);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}
.tag-ok {
  background: var(--positive-bg);
  color: var(--positive-ink);
  border: 1px solid var(--positive-border);
}
.tag-warn {
  background: var(--warning-bg);
  color: var(--warning-ink);
  border: 1px solid var(--warning-border);
}
.tag-cold {
  background: var(--cold-bg);
  color: var(--cold);
  border: 1px solid var(--cold-border);
}
.tag-err {
  background: var(--negative-bg);
  color: var(--negative-ink);
  border: 1px solid var(--negative-border);
}
.tag-muted {
  background: var(--well);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* VERDICT STRIP & IMMEDIATE PROOF RECEIPT */
.atelier-verdict {
  border: 1px solid var(--border);
  border-left: 3px solid var(--positive);
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 13px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.atelier-verdict[data-state="warn"] { border-left-color: var(--warning); }
.atelier-verdict[data-state="error"] { border-left-color: var(--negative); }
.atelier-verdict[data-state="unknown"] { border-left-color: var(--muted); }
.verdict-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.verdict-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.receipt-toast {
  display: none;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--positive-bg);
  border: 1px solid var(--positive-border);
  border-radius: var(--radius-card);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.receipt-toast.visible { display: flex; }
.receipt-toast.is-error {
  background: var(--negative-bg);
  border-color: var(--negative-border);
}
.receipt-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--positive-ink);
}
.receipt-toast.is-error .receipt-headline { color: var(--negative-ink); }
.receipt-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* PANORAMA DE HOY */
.view-section { display: none; }
.view-section.active { display: block; }

.kpi-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
  margin-bottom: var(--gap);
}
.kpi-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.kpi-item:last-child { border-right: none; }
.kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.kpi-figure {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.kpi-figure.lead { font-size: 30px; font-weight: 500; }
.kpi-unit {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.kpi-baseline {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.kpi-baseline .good { color: var(--positive); font-weight: 500; }
.kpi-baseline .attn { color: var(--warning); font-weight: 500; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--gap);
  align-items: stretch;
  margin-bottom: 28px;
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.card-title { font-size: 15.5px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.pulse-chart-wrap { width: 100%; margin: 4px 0 12px; }
.pulse-svg { width: 100%; height: 184px; display: block; overflow: visible; }
.pulse-bar {
  fill: var(--chart-1);
  opacity: 0.78;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.pulse-bar:hover, .pulse-bar.selected-bar { opacity: 1; }
.pulse-bar.bar-warn { fill: var(--warning); }
.pulse-bar.bar-err { fill: var(--negative); }
.pulse-bar.bar-empty { fill: var(--border); opacity: 0.7; }

.scrubber-readout {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  font-size: 12.8px;
}
.scrubber-readout button { flex-shrink: 0; white-space: nowrap; }

.canary-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin: 6px 0 14px;
}
.canary-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.canary-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.drill-live-box {
  display: none;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.drill-live-box.active { display: block; }

/* CLEAN RULES TABLE */
.table-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.underline-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.u-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 2px 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
}
.u-tab:hover { color: var(--text); }
.u-tab.active { color: var(--text); border-bottom-color: var(--text); }

.inline-filter-input, .bc-input {
  height: 34px;
  width: 260px;
  max-width: 100%;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-ctrl);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
}
.inline-filter-input:focus, .bc-input:focus {
  outline: 2px solid var(--chart-1);
  outline-offset: 1px;
}

.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th {
  height: 38px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0 12px 0 0;
}
.clean-table th.r, .clean-table td.r { text-align: right; }
.clean-table td {
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.clean-table th:last-child, .clean-table td:last-child { padding-right: 0; }
.clean-table tr:hover td { background: var(--raised); }

.app-identity-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.app-identity-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.eng-meta {
  display: none;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
body.eng-on .eng-meta { display: block; }
body.eng-on .eng-only { display: block; }
.eng-only { display: none; }

.row-inline-prog { display: none; margin-top: 6px; }
.row-inline-prog.active { display: block; }
.mini-track {
  height: 4px;
  background: var(--active);
  border-radius: 2px;
  overflow: hidden;
  max-width: 240px;
}
.mini-fill {
  height: 100%;
  width: 0%;
  background: var(--chart-1);
  transition: width 200ms linear;
}

/* SKELETON ROWS */
.bc-skel-row td { padding: 14px 12px 14px 0; }
.bc-skel-bar {
  height: 12px;
  border-radius: 3px;
  background: var(--active);
  opacity: 0.65;
  animation: bc-pulse-skel 1.4s ease-in-out infinite;
}
@keyframes bc-pulse-skel {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

/* SCREEN 2: VIAJAR EN EL TIEMPO */
.app-picker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.app-choice-card {
  text-align: left;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.app-choice-card:hover { border-color: var(--control-border); }
.app-choice-card.selected {
  background: var(--surface);
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.timeline-dial {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.moments-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.moment-node {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 140ms var(--ease-out);
}
.moment-node:hover { border-color: var(--control-border); }
.moment-node.selected {
  border-color: var(--chart-1);
  box-shadow: inset 0 0 0 1px var(--chart-1);
  background: var(--positive-bg);
}

.diff-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 22px;
}

.hold-action-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hold-btn {
  position: relative;
  overflow: hidden;
  min-width: 310px;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--primary-btn);
  color: var(--primary-btn-ink);
  border: 1px solid var(--primary-btn);
  border-radius: var(--radius-ctrl);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.hold-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.hold-btn-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--chart-1);
  z-index: 1;
  transition: width 60ms linear;
}
.hold-btn-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* SCREEN 3: BUSCAR UN ARCHIVO */
.big-file-search-wrap { margin-bottom: 22px; }
.big-file-search {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-card);
}
.big-file-search:focus { outline: 2px solid var(--chart-1); background: var(--surface); }
.quick-chips-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* SCREEN 4: ESPACIO, BOVEDAS & GFS */
.plan-capacity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 22px 24px;
  margin-bottom: var(--gap);
}
.plan-bar-track {
  height: 16px;
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  margin: 14px 0 12px;
}
.plan-seg-active { background: var(--text); height: 100%; transition: width 360ms var(--ease-out); }
.plan-seg-dormant {
  background: var(--warning);
  height: 100%;
  border-left: 2px solid var(--surface);
  transition: width 360ms var(--ease-out);
}
.plan-legend-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.swatch-sq { width: 9px; height: 9px; display: inline-block; margin-right: 6px; }

.vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.vault-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px 20px;
}
.meter-row { margin-top: 12px; }
.meter-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.meter-track {
  height: 7px;
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.meter-fill { height: 100%; background: var(--chart-1); transition: width 260ms var(--ease-out); }
.meter-fill.warn { background: var(--warning); }
.meter-fill.err { background: var(--negative); }

.gfs-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 18px 20px;
  margin-bottom: var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tag-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* SCREEN 5: CERTIFICADO LAZARUS IMPRIMIBLE */
.certificate-sheet {
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  padding: 28px 32px;
}
.certificate-frame {
  border: 1px solid var(--border);
  padding: 26px 28px;
  border-radius: 4px;
}
.cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cert-head > div:first-child { flex: 1; min-width: 260px; }
.cert-doc-kind { font-size: 12px; font-weight: 600; color: var(--positive); margin-bottom: 6px; }
.cert-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
}
.cert-sub { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; max-width: 60ch; }
.cert-seal-box { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 8px; flex-shrink: 0; }
.cert-meta-mono { font-family: var(--mono); font-size: 11.5px; color: var(--text-secondary); line-height: 1.5; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.step-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.step-num { font-size: 12px; font-weight: 600; color: var(--positive); }
.step-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-desc { font-size: 12.8px; color: var(--text-secondary); line-height: 1.48; }
.step-foot { font-size: 11.5px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--border); }
.pen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.pen-box {
  border: 1px solid var(--control-border);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--surface);
}
.pen-label { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.pen-help { font-size: 11.8px; color: var(--muted); margin-bottom: 14px; }
.pen-line {
  height: 28px;
  border-bottom: 1px dashed var(--control-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}
.detach-divider {
  margin: 20px 0 16px;
  border-top: 1px dashed var(--control-border);
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.tech-slip {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
}
.tech-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.tech-cmd-row code { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }

/* INSPECTOR POWER TOOLS GRID */
.inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.code-pre {
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
}

/* MODALS, COMMAND PALETTE & PROGRESS DIALOG */
.cmd-backdrop,
.bc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.56);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
  z-index: 80;
}
.cmd-backdrop.open,
.bc-modal-backdrop.open { display: flex; }

.cmd-dialog,
.bc-progress-dialog,
.bc-modal-dialog {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
}
.bc-progress-dialog {
  max-width: 660px;
  padding: 20px 22px;
}
.bc-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.bc-progress-title { font-size: 16px; font-weight: 600; color: var(--text); }
.bc-progress-bar-track {
  height: 8px;
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.bc-progress-bar-fill {
  height: 100%;
  background: var(--chart-1);
  transition: width 220ms var(--ease-out);
}
.bc-progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.bc-progress-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 10px 12px;
  background: var(--raised);
}
.bc-progress-card[data-status="verified"] {
  border-color: var(--positive-border);
  background: var(--positive-bg);
}
.bc-progress-card[data-status="failed"] {
  border-color: var(--negative-border);
  background: var(--negative-bg);
}
.bc-progress-card-name { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-word; }

.cmd-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
}
.cmd-input:focus { outline: none; }
.cmd-results { max-height: 360px; overflow-y: auto; padding: 8px; }
.cmd-item {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-ctrl);
  text-align: left;
  font-family: var(--sans);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cmd-item:hover { background: var(--raised); }

/* MOBILE BOTTOM BAR & RESPONSIVE */
.mobile-thumb-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  z-index: 60;
}
.m-tab {
  min-height: 48px;
  border: none;
  border-radius: var(--radius-ctrl);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}
.m-tab.active { background: var(--active); color: var(--text); }

#mobile-hero {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 14px 16px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .l-shell { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    background: var(--ground);
    border-right: 1px solid var(--border);
    z-index: 75;
  }
  .sidebar.mobile-open { display: flex; }
  .mobile-menu-trigger { display: inline-flex; }
  .main-stage { padding: 0 0 78px; }
  .sheet {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 20px 16px 36px;
  }
  #mobile-hero { display: block; }
  .kpi-ledger { grid-template-columns: repeat(2, 1fr); }
  .kpi-item:nth-child(2) { border-right: none; }
  .kpi-item:nth-child(1), .kpi-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .overview-grid, .vault-grid, .inspector-grid, .steps-grid, .pen-grid { grid-template-columns: 1fr; }
  .app-picker-strip { grid-template-columns: repeat(2, 1fr); }
  .moments-track { grid-template-columns: repeat(2, 1fr); }
  .diff-comparison-grid { grid-template-columns: 1fr; }
  .scrubber-readout { flex-wrap: wrap; }
  .studio-switcher, .top-right-meta, .kbd-hint { display: none; }
  .omni-search-trigger { max-width: none; flex: 1; min-width: 0; }
  .mobile-thumb-bar { display: grid; }
  .clean-table thead { display: none; }
  .clean-table, .clean-table tbody, .clean-table tr, .clean-table td { display: block; width: 100%; }
  .clean-table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .clean-table td { border: none; padding: 4px 0; text-align: left !important; }
  .hold-btn { width: 100%; min-width: 0; min-height: 52px; }
  /* Ley Ergonomía de Sillón: every mobile control >= 48px height */
  .mobile-menu-trigger { min-width: 48px; min-height: 48px; }
  .omni-search-trigger { min-height: 48px; }
  .btn-primary, .btn-outline, .btn-ghost, .u-tab, .chip, .m-tab, select.clean-select { min-height: 48px !important; }
  #mobile-hero .btn-outline { min-width: 56px; padding: 8px 14px; }
  .clean-table td[style*="white-space:nowrap"] { white-space: normal !important; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .clean-table td[style*="white-space:nowrap"] > button { flex: 1 1 130px; min-height: 48px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  @page { size: letter portrait; margin: 10mm; }
  html, body { background: #ffffff !important; color: #161513 !important; font-size: 12px; }
  .sidebar, .top-bar, .mobile-thumb-bar, .receipt-toast, .atelier-verdict, .view-section:not(#view-certificate), .no-print {
    display: none !important;
  }
  .l-shell { display: block; }
  .main-stage { padding: 0; }
  .sheet { border: none; padding: 0; }
  .certificate-sheet { border: none; padding: 0; }
  .certificate-frame { padding: 16px 18px; border: 1px solid #8c8577; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pen-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Harmonize design-system.css --bc-* tokens with all 3 Atelier Editions */
:root,
html[data-theme="limestone"],
html[data-theme="onyx"],
html[data-theme="nordic"] {
  --bc-bg-canvas: var(--ground);
  --bc-bg-secondary: var(--raised);
  --bc-bg-elevated: var(--surface);
  --bc-bg-sunken: var(--well);
  --bc-border-subtle: var(--border);
  --bc-border-strong: var(--control-border);
  --bc-border-focus: var(--chart-1);
  --bc-text-primary: var(--text);
  --bc-text-secondary: var(--text-secondary);
  --bc-text-tertiary: var(--muted);
  --bc-text-link: var(--chart-1);
  --bc-state-ok: var(--positive);
  --bc-state-ok-bg: var(--positive-bg);
  --bc-state-ok-text: var(--positive-ink);
  --bc-state-warn: var(--warning);
  --bc-state-warn-bg: var(--warning-bg);
  --bc-state-warn-text: var(--warning-ink);
  --bc-state-error: var(--negative);
  --bc-state-error-bg: var(--negative-bg);
  --bc-state-error-text: var(--negative-ink);
  --bc-state-unknown: var(--muted);
  --bc-state-unknown-bg: var(--well);
  --bc-state-unknown-text: var(--muted);
  --bc-card-shadow: none;
}

.bc-verdict-bar {
  border-radius: var(--radius-card);
  box-shadow: none;
  margin-bottom: 18px;
}
.bc-verdict-dot { border-radius: 2px; animation: none !important; }
.bc-integrity-glyph { animation: none !important; font-family: var(--mono); font-size: 13px; }
.bc-verdict-action {
  background: var(--surface);
  border-color: var(--control-border);
  color: var(--text);
  border-radius: var(--radius-ctrl);
}
.bc-verdict-action:hover { border-color: var(--text); box-shadow: none; }

.bc-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bc-modal-body {
  padding: 18px 20px;
  max-height: 72vh;
  overflow-y: auto;
}
.bc-modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--raised);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.bc-toast-item {
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-left: 3px solid var(--positive);
  border-radius: var(--radius-ctrl);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
}
.bc-toast-item.is-error { border-left-color: var(--negative); }
@media (max-width: 980px) {
  .bc-toast-stack { bottom: 84px; right: 12px; left: 12px; max-width: none; }
}

.hidden { display: none !important; }

/* Semantic modal container for Run Details & Confirm modals without Tailwind */
.bc-overlay-dialog {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.56);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 24px;
  overflow-y: auto;
  z-index: 88;
}
.bc-overlay-card {
  width: 100%;
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  overflow: hidden;
}
.bc-overlay-card.compact { max-width: 460px; margin-top: 8vh; }

/* Ensure SVG icons and page-header columns never wrap unexpectedly */
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; }
.nav-btn > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.title-row > div:first-child { flex: 1; min-width: 240px; }
.card-head { flex-wrap: nowrap; }
.card-head > div:first-child { flex: 1; min-width: 0; }
.page-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.omni-search-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-switcher .theme-seg { min-width: 190px; }
.diff-comparison-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-bottom: 22px; }
.diff-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 20px; }
.diff-side-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.diff-side-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 3px 0 8px; }
.diff-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.diff-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; padding: 0 2px; }
@media (max-width: 980px) {
  .diff-comparison-grid { grid-template-columns: 1fr; }
  .diff-arrow { display: none; }
  .card-head { flex-wrap: wrap; }
}

/* Atelier-styled telemetry quota / bandwidth meters */
.bc-tel-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-ctrl);
  background: var(--well);
  border: 1px solid var(--border);
}
.bc-tel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.bc-not-eval {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
  border: 1px dashed var(--control-border);
}
.bc-meter-track {
  width: 100%;
  height: 7px;
  border-radius: 9999px;
  background: var(--active);
  overflow: hidden;
  margin-top: 6px;
}
.bc-meter-fill { height: 100%; border-radius: 9999px; transition: width .3s ease; }
.bc-meter-fill.ok { background: var(--positive); }
.bc-meter-fill.warning { background: var(--warning); }
.bc-meter-fill.critical { background: var(--negative); }

/* Progress overlay Atelier theme polish */
.bc-progress-dialog { color: var(--text); background: var(--surface); border-color: var(--border); }
.bc-progress-kicker { color: var(--chart-1); }
.bc-progress-close { background: var(--surface); border-color: var(--control-border); color: var(--text); }
.bc-progress-summary { color: var(--text); }
.bc-progress-updated { color: var(--muted); }
.bc-progress-card { background: var(--raised); border-color: var(--border); }
.bc-progress-card-meta { color: var(--muted); }
.bc-progress-card-status { color: var(--text-secondary); }
.bc-progress-empty { background: var(--raised); border-color: var(--border); color: var(--muted); }

/* Mobile Hero Atelier harmonization */
@media (max-width: 980px) {
  #mobile-hero {
    display: block !important;
    background: var(--raised) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    margin-bottom: 16px;
  }
  #mobile-hero .bc-mobile-hero-title { color: var(--text); font-family: var(--serif); font-size: 20px; }
  #mobile-hero .bc-mobile-hero-subtitle { color: var(--text-secondary); }
}


