:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #14b8a6;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar: #07111f;
  --sidebar-2: #0f1e33;
  --sidebar-text: #e5eefb;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 30vw),
    radial-gradient(circle at 40% 0%, rgba(20, 184, 166, 0.10), transparent 34vw),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  color: var(--sidebar-text);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(15, 30, 51, 0.98)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.24), transparent 52%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}
.brand-mark, .avatar, .agent-orb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}
.brand-name { font-weight: 850; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand-subtitle { color: #9fb0c7; font-size: 0.86rem; margin-top: 2px; }

.brand-logo{
  width:46px;
  height:46px;
  object-fit:cover;

  border-radius:14px;

  border:1px solid rgba(255,255,255,.08);

  box-shadow:
    0 10px 24px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="light"] .brand-logo{
  border:1px solid #e2e8f0;

  box-shadow:
    0 10px 20px rgba(15,23,42,.08);
}

.clean-avatar{
  background:none !important;
  box-shadow:none !important;
  padding:0;
  overflow:hidden;
}

.mini-logo{
  width:38px;
  height:38px;
  object-fit:cover;
  border-radius:13px;
  display:block;
}

.user-avatar{
  background:linear-gradient(135deg, #18181b, #3f3f46) !important;
  color:white;
}

.mini-logo{
  width:38px;
  height:38px;
  object-fit:contain;
  border-radius:12px;
}

.orb-logo{
  width:64px;
  height:64px;
  object-fit:contain;
}

.side-card {
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.side-card h2, .side-card h3 { margin: 8px 0; letter-spacing: -0.03em; }
.side-card p { color: #b8c6da; line-height: 1.55; margin: 0 0 16px; }
.drop-hint { color: #8fa1ba; font-size: 0.82rem; margin-top: 12px; text-align: center; }
.drop-active { outline: 2px solid rgba(20, 184, 166, 0.8); background: rgba(20, 184, 166, 0.12); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--accent);
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}
.mini-grid div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.mini-grid span { display: block; font-weight: 900; font-size: 1.25rem; }
.mini-grid small { color: #9fb0c7; }
.side-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 26px;
  color: #7f91aa;
  font-size: 0.8rem;
}

.main-content { padding: 28px; min-width: 0; }
.hero-card {
  display: block;
}
.hero-copy { position: relative; z-index: 2; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-weight: 750;
  font-size: 0.82rem;
}
.hero-card h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.hero-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.hero-panel {
  position: relative;
  min-height: 220px;
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, #0f172a, #111827);
  color: white;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 12px;
}
.panel-glow {
  position: absolute;
  inset: -40px -20px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.65), transparent 68%);
  filter: blur(4px);
}
.agent-orb {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 1.2rem;
}
.hero-stat {
  position: relative;
  z-index: 2;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}
.hero-stat span { display: block; font-weight: 850; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stat small { color: #aab8cf; }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 22px;
  margin-top: 22px;
}
.left-stack, .right-stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 24px;
  min-width: 0;
}
.sticky-card { position: sticky; top: 28px; }
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-header.compact { margin-bottom: 12px; }
.section-header h2 { margin: 6px 0 0; letter-spacing: -0.04em; }
.status-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 750;
  font-size: 0.82rem;
  white-space: nowrap;
}
.status-chip.ready { background: #ecfdf5; color: #047857; }

.primary-btn, .secondary-btn, .ghost-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.primary-btn {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  box-shadow: 0 15px 32px rgba(37, 99, 235, 0.25);
}
.secondary-btn {
  border: 1px solid var(--line);
  background: white;
  color: #0f172a;
}
.sidebar .secondary-btn { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.12); }
.ghost-btn { background: #f8fafc; color: #475569; }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled, .secondary-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.full { width: 100%; margin-top: 10px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.kpi-card small { color: var(--muted); font-weight: 700; }
.kpi-card strong { display: block; margin-top: 8px; font-size: 1.45rem; letter-spacing: -0.04em; }
.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  text-align: center;
  padding: 18px;
}

.warnings { display: grid; gap: 8px; margin-top: 14px; }
.warning-item {
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.91rem;
}
.columns-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.column-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.column-card h4 {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
}
.type-badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.column-meta { color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.preview-details { margin-top: 18px; }
.preview-details summary { cursor: pointer; font-weight: 850; color: #334155; }
.table-wrap {
  width: 100%;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #eef2f7; vertical-align: top; }
th { position: sticky; top: 0; background: #f8fafc; color: #334155; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: 0; }

.chat-window {
  height: 500px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f8fafc;
}
.message { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.user-message { justify-content: flex-end; }
.user-message .bubble { background: #1d4ed8; color: white; border-bottom-right-radius: 6px; }
.assistant-message .bubble { background: white; color: #111827; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.user-message .avatar { order: 2; background: linear-gradient(135deg, #111827, #334155); }
.bubble {
  max-width: min(760px, 83%);
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  line-height: 1.5;
}
.bubble p { margin: 8px 0 0; }
.bubble ul { margin: 10px 0 0; padding-left: 18px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; font-size: 0.78rem; }
.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}
.chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  background: white;
}
.chat-form input:focus { border-color: rgba(37, 99, 235, 0.55); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10); }

.suggestions { display: grid; gap: 8px; }
.suggestion-btn {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  color: #dce7f6;
  text-align: left;
  line-height: 1.35;
}
.suggestion-btn:hover { background: rgba(255,255,255,0.11); }
.muted-list { color: #9fb0c7; font-size: 0.9rem; }

.insight-panel { min-height: 500px; align-content: center; }
.insight-panel:not(.empty-state) { display: block; background: transparent; border: 0; padding: 0; text-align: left; }
.insight-title { font-size: 1.05rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; }
.insight-summary {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
  border: 1px solid #dbeafe;
  color: #0f172a;
  line-height: 1.55;
}
.insight-block { margin-top: 16px; }
.insight-block h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 10px; }
.insight-block ul { margin: 0; padding-left: 18px; color: #334155; line-height: 1.55; }
.chart-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.chart-title { font-weight: 850; margin-bottom: 10px; }
.svg-chart { width: 100%; height: 240px; display: block; overflow: visible; }
.axis-label { fill: #64748b; font-size: 10px; }
.chart-bar { fill: #2563eb; opacity: 0.82; }
.chart-line { fill: none; stroke: #2563eb; stroke-width: 3; }
.chart-dot { fill: #14b8a6; }
.chart-grid { stroke: #e2e8f0; stroke-width: 1; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  color: white;
  background: #0f172a;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s ease;
  pointer-events: none;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #991b1b; }
.toast.success { background: #065f46; }

@media (max-width: 1660px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .insight-panel { min-height: 260px; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .hero-card { grid-template-columns: 1fr; padding: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-window { height: 420px; }
}
@media (max-width: 560px) {
  .main-content, .sidebar { padding: 18px; }
  .content-card { padding: 18px; border-radius: 22px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .chat-form { grid-template-columns: 1fr; }
  .bubble { max-width: 100%; }
}

.agent-status {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.12);
  color: #d9fff7;
  font-weight: 850;
  margin-top: 10px;
}
.small-copy {
  font-size: 0.84rem;
  margin-top: 12px !important;
}
.column-pill {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.column-pill strong {
  display: block;
  margin-bottom: 6px;
}
.column-pill span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.message-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.message-kpis div {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.message-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.message-kpis strong {
  display: block;
  margin-top: 4px;
}
.agent-tag,
.agent-note {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
}
.agent-note {
  margin-bottom: 12px;
}
.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.chart-wrap {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}


/* Mejoras de evidencia, tablas y temas */
.brand-copy { min-width: 0; }
.theme-toggle {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.07);
  color: #dce7f6;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}
.theme-toggle:hover { background: rgba(255,255,255,0.13); transform: translateY(-1px); }

.support-block { margin-top: 14px; }
.support-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.calculation-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.08);
  color: #0f766e;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 700;
}
.calculation-note.wide { margin-bottom: 12px; }
.message-chart {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.message-chart .svg-chart { height: 190px; }
.message-chart .chart-title { font-size: 0.86rem; }
.bubble .table-wrap {
  max-height: 300px;
  font-size: 0.82rem;
}
.bubble .table-wrap th,
.bubble .table-wrap td { padding: 9px 10px; }
.insight-block .table-wrap { margin-top: 10px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0f172a;
  --surface-2: #111827;
  --text: #e5eefb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.20);
  --primary: #3b82f6;
  --primary-dark: #93c5fd;
  --accent: #2dd4bf;
  --warning: #fbbf24;
  --danger: #f87171;
  --sidebar: #050b14;
  --sidebar-2: #0b1626;
  --sidebar-text: #e5eefb;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 30vw),
    radial-gradient(circle at 38% 0%, rgba(45, 212, 191, 0.14), transparent 35vw),
    linear-gradient(180deg, #07111f, #0a1020 42%, #090f1c);
  color: var(--text);
}
html[data-theme="dark"] .sidebar {
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.98), rgba(9, 18, 32, 0.98)),
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 52%);
  border-right-color: rgba(148, 163, 184, 0.12);
}
html[data-theme="dark"] .side-card {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(148, 163, 184, 0.14);
}
html[data-theme="dark"] .side-card p,
html[data-theme="dark"] .brand-subtitle,
html[data-theme="dark"] .drop-hint,
html[data-theme="dark"] .mini-grid small,
html[data-theme="dark"] .side-footer,
html[data-theme="dark"] .muted-list { color: #9fb0c7; }
html[data-theme="dark"] .main-content { background: transparent; }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .content-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.86)),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 42%);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .hero-card p,
html[data-theme="dark"] .column-pill span,
html[data-theme="dark"] .column-meta,
html[data-theme="dark"] .insight-block ul { color: #a8b6ca; }
html[data-theme="dark"] .pill {
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.22);
}
html[data-theme="dark"] .hero-panel {
  background: linear-gradient(180deg, #020617, #0b1220);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] .hero-stat {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .status-chip {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}
html[data-theme="dark"] .status-chip.ready {
  background: rgba(20, 184, 166, 0.14);
  color: #99f6e4;
}
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .column-card,
html[data-theme="dark"] .column-pill,
html[data-theme="dark"] .chart-wrap,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .message-chart {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .kpi-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(17, 24, 39, 0.82));
}
html[data-theme="dark"] .empty-state {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.20);
  color: #94a3b8;
}
html[data-theme="dark"] .warning-item {
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}
html[data-theme="dark"] .preview-details summary { color: #cbd5e1; }
html[data-theme="dark"] .table-wrap {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] th {
  background: #111827;
  color: #cbd5e1;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] td { border-bottom-color: rgba(148, 163, 184, 0.12); }
html[data-theme="dark"] .chat-window {
  background: rgba(2, 6, 23, 0.42);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .assistant-message .bubble {
  background: rgba(15, 23, 42, 0.92);
  color: #e5eefb;
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .user-message .bubble {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
}
html[data-theme="dark"] .chat-form input {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5eefb;
}
html[data-theme="dark"] .chat-form input::placeholder { color: #64748b; }
html[data-theme="dark"] .message-kpis div {
  background: rgba(2, 6, 23, 0.42);
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] .insight-summary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(20, 184, 166, 0.11));
  border-color: rgba(59, 130, 246, 0.22);
  color: #e5eefb;
}
html[data-theme="dark"] .calculation-note {
  background: rgba(20, 184, 166, 0.10);
  color: #99f6e4;
  border-color: rgba(20, 184, 166, 0.28);
}
html[data-theme="dark"] .agent-tag,
html[data-theme="dark"] .agent-note {
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
}
html[data-theme="dark"] .axis-label { fill: #94a3b8; }
html[data-theme="dark"] .chart-grid { stroke: rgba(148, 163, 184, 0.20); }
html[data-theme="dark"] .chart-bar { fill: #60a5fa; opacity: 0.88; }
html[data-theme="dark"] .chart-line { stroke: #60a5fa; }
html[data-theme="dark"] .chart-dot { fill: #2dd4bf; }
html[data-theme="dark"] .suggestion-btn {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(148, 163, 184, 0.12);
  color: #dce7f6;
}
html[data-theme="dark"] .suggestion-btn:hover { background: rgba(255, 255, 255, 0.09); }
html[data-theme="dark"] .toast { background: #020617; }

@media (max-width: 1660px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .right-stack { order: 2; }
  .sticky-card { position: static; }
  .insight-panel { min-height: 260px; }
}
@media (max-width: 860px) {
  .brand-row { align-items: flex-start; }
  .theme-toggle { margin-left: 0; }
}

/* Theme toggle and evidence blocks */
.theme-control {
  margin: -10px 0 18px;
}
.theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 12px 14px;
  color: #dce7f6;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
}
.theme-toggle-icon {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.22);
  border: 1px solid rgba(20, 184, 166, 0.35);
  position: relative;
  flex: 0 0 auto;
}
.theme-toggle-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.75);
  transition: transform 0.18s ease, background 0.18s ease;
}
.theme-toggle[aria-pressed="false"] .theme-toggle-icon::after {
  transform: translateX(14px);
  background: #2563eb;
}
.calculation-note,
.data-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.83rem;
  line-height: 1.45;
  font-weight: 700;
}
.calculation-note.wide,
.panel-note {
  margin: 12px 0;
}
.support-table,
.support-block {
  margin-top: 14px;
}
.support-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.support-table .table-wrap {
  margin-top: 0;
}
.support-block ul {
  margin: 0;
  padding-left: 18px;
}
.support-block li {
  margin-bottom: 4px;
}
.suggestion-btn {
  font-size: 0.86rem;
  border-radius: 16px;
}
.insight-panel .support-table {
  margin-top: 16px;
}

/* Dark mode is the default product theme. */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 30vw),
    radial-gradient(circle at 38% 0%, rgba(20, 184, 166, 0.12), transparent 34vw),
    #07111f;
  color: #e5eefb;
}
html[data-theme="dark"] .main-content {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.10), rgba(7, 17, 31, 0.28));
}
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .content-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(145deg, rgba(15, 30, 51, 0.94), rgba(9, 20, 36, 0.94)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 42%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}
html[data-theme="dark"] .hero-card {
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .hero-card p,
html[data-theme="dark"] .column-pill span,
html[data-theme="dark"] .insight-block ul,
html[data-theme="dark"] .axis-label,
html[data-theme="dark"] .preview-details summary,
html[data-theme="dark"] .kpi-card span,
html[data-theme="dark"] .message-kpis span {
  color: #9fb0c7;
}
html[data-theme="dark"] .pill {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.24);
}
html[data-theme="dark"] .hero-panel {
  background: linear-gradient(180deg, #060d19, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .column-pill,
html[data-theme="dark"] .chart-wrap,
html[data-theme="dark"] .message-kpis div,
html[data-theme="dark"] .table-wrap {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.94), rgba(12, 24, 42, 0.94));
}
html[data-theme="dark"] .empty-state {
  color: #9fb0c7;
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(15, 30, 51, 0.88), rgba(12, 24, 42, 0.88));
}
html[data-theme="dark"] .status-chip {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}
html[data-theme="dark"] .status-chip.ready {
  background: rgba(20, 184, 166, 0.14);
  color: #5eead4;
}
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .ghost-btn {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 30, 51, 0.88);
  color: #e5eefb;
}
html[data-theme="dark"] .secondary-btn:hover,
html[data-theme="dark"] .ghost-btn:hover {
  background: rgba(30, 45, 70, 0.96);
}
html[data-theme="dark"] .chat-window {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 17, 31, 0.72);
}
html[data-theme="dark"] .assistant-message .bubble {
  background: rgba(15, 30, 51, 0.96);
  color: #e5eefb;
  border-color: rgba(148, 163, 184, 0.20);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
}
html[data-theme="dark"] .user-message .bubble {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}
html[data-theme="dark"] .chat-form input {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 30, 51, 0.92);
  color: #e5eefb;
}
html[data-theme="dark"] .chat-form input::placeholder {
  color: #64748b;
}
html[data-theme="dark"] .insight-summary {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(20, 184, 166, 0.11));
  color: #dce7f6;
}
html[data-theme="dark"] .agent-tag,
html[data-theme="dark"] .agent-note,
html[data-theme="dark"] .calculation-note,
html[data-theme="dark"] .data-note {
  border: 1px solid rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
}
html[data-theme="dark"] th {
  background: #101d31;
  color: #cbd5e1;
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] td {
  border-bottom-color: rgba(148, 163, 184, 0.12);
  color: #dce7f6;
}
html[data-theme="dark"] .chart-grid {
  stroke: rgba(148, 163, 184, 0.20);
}
html[data-theme="dark"] .chart-bar {
  fill: #3b82f6;
  opacity: 0.90;
}
html[data-theme="dark"] .chart-line {
  stroke: #60a5fa;
}
html[data-theme="dark"] .chart-dot {
  fill: #2dd4bf;
}
html[data-theme="dark"] .warning-item {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.10);
  color: #fcd34d;
}
html[data-theme="dark"] .toast {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-theme="light"] .theme-toggle {
  color: #e5eefb;
}

@media (max-width: 1680px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .insight-panel { min-height: 260px; }
}
.brand-copy { flex: 1; min-width: 0; }
.compact-theme-toggle {
  width: auto;
  min-width: 122px;
  padding: 9px 10px;
  font-size: 0.78rem;
  justify-content: center;
  flex: 0 0 auto;
}
.compact-theme-toggle .theme-toggle-icon {
  width: 30px;
  height: 18px;
}
.compact-theme-toggle .theme-toggle-icon::after {
  width: 10px;
  height: 10px;
}
.compact-theme-toggle[aria-pressed="false"] .theme-toggle-icon::after {
  transform: translateX(12px);
}

/* v5: tema neutral, claro global y control de tema mejor ubicado */
:root {
  --sidebar-light: #ffffff;
  --sidebar-light-2: #f8fafc;
}
.brand-row {
  margin-bottom: 10px;
  align-items: flex-start;
}
.theme-toggle {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px 0;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255,255,255,0.065);
}
.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
  background: linear-gradient(135deg, #0f172a 50%, #f8fafc 50%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.16);
}

html[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #171719;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(212, 212, 216, 0.14);
  --primary: #2563eb;
  --primary-dark: #60a5fa;
  --accent: #22c55e;
  --sidebar: #080809;
  --sidebar-2: #111113;
  --sidebar-text: #f4f4f5;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.055), transparent 26vw),
    radial-gradient(circle at 38% 0%, rgba(37,99,235,0.10), transparent 32vw),
    linear-gradient(180deg, #0a0a0b, #0d0d10 48%, #09090b);
}
html[data-theme="dark"] .sidebar {
  background:
    linear-gradient(180deg, rgba(8,8,9,0.99), rgba(14,14,16,0.99)),
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.055), transparent 34%);
  border-right-color: rgba(212,212,216,0.12);
}
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .content-card {
  background:
    linear-gradient(135deg, rgba(17,17,19,0.96), rgba(23,23,25,0.91)),
    radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 34%);
}
html[data-theme="dark"] .hero-panel {
  background: linear-gradient(180deg, #070707, #141416);
}
html[data-theme="dark"] .panel-glow {
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 68%);
}
html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .agent-orb {
  background: linear-gradient(135deg, #2563eb, #111827);
  box-shadow: 0 18px 36px rgba(0,0,0,0.36);
}
html[data-theme="dark"] .eyebrow { color: #22c55e; }
html[data-theme="dark"] .primary-btn { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
html[data-theme="dark"] .calculation-note,
html[data-theme="dark"] .agent-tag,
html[data-theme="dark"] .agent-note,
html[data-theme="dark"] .agent-status {
  background: rgba(34,197,94,0.10);
  color: #bbf7d0;
  border-color: rgba(34,197,94,0.22);
}
html[data-theme="dark"] .insight-summary {
  background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(34,197,94,0.055));
  border-color: rgba(212,212,216,0.14);
}
html[data-theme="dark"] .chart-bar { fill: #2563eb; }
html[data-theme="dark"] .chart-line { stroke: #2563eb; }
html[data-theme="dark"] .chart-dot { fill: #22c55e; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --sidebar-text: #111827;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 30vw),
    radial-gradient(circle at 40% 0%, rgba(20, 184, 166, 0.08), transparent 34vw),
    var(--bg);
}
html[data-theme="light"] .sidebar {
  color: #111827;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-right-color: #e2e8f0;
}
html[data-theme="light"] .side-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .side-card p,
html[data-theme="light"] .brand-subtitle,
html[data-theme="light"] .drop-hint,
html[data-theme="light"] .mini-grid small,
html[data-theme="light"] .side-footer,
html[data-theme="light"] .muted-list { color: #64748b; }
html[data-theme="light"] .mini-grid div,
html[data-theme="light"] .sidebar .secondary-btn,
html[data-theme="light"] .suggestion-btn {
  background: #f8fafc;
  color: #111827;
  border-color: #e2e8f0;
}
html[data-theme="light"] .theme-toggle {
  background: #f8fafc;
  color: #111827;
  border-color: #e2e8f0;
}
html[data-theme="light"] .agent-status {
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 860px) {
  .theme-toggle { margin-bottom: 18px; }
}


/* Exportacion de chat */
.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-section-header {
  align-items: center;
}

@media (max-width: 640px) {
  .chat-section-header {
    align-items: flex-start;
  }

  .section-actions {
    width: 100%;
    justify-content: stretch;
  }

  .section-actions .ghost-btn {
    flex: 1 1 150px;
  }
}

/* v8: perfil plegable, estado junto al control y gráficos completos */
.profile-details { display: block; }
.profile-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.profile-summary::-webkit-details-marker { display: none; }
.profile-heading h2 { margin: 6px 0 0; letter-spacing: -0.04em; }
.profile-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.profile-toggle-label::before {
  content: "Ocultar";
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}
.profile-details:not([open]) .profile-toggle-label::before { content: "Mostrar"; }
.profile-body { margin-top: 20px; }
.profile-details:not([open]) .profile-body { display: none; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: .9;
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: .68; }
  50% { transform: scale(1.24); opacity: 1; }
}
.pie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(180px, 0.75fr);
  gap: 16px;
  align-items: center;
}
.pie-svg { height: 300px; }
.chart-slice { stroke: var(--surface); stroke-width: 1.5; }
.slice-0 { fill: #2563eb; }
.slice-1 { fill: #22c55e; }
.slice-2 { fill: #a855f7; }
.slice-3 { fill: #f59e0b; }
.slice-4 { fill: #06b6d4; }
.slice-5 { fill: #ef4444; }
.slice-6 { fill: #84cc16; }
.slice-7 { fill: #64748b; }
.pie-hole { fill: var(--surface); }
.pie-center { fill: var(--muted); font-size: 12px; font-weight: 800; }
.pie-center-value { fill: var(--text); font-size: 16px; font-weight: 900; }
.chart-legend { display: grid; gap: 8px; }
.chart-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.chart-legend-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-legend-item em { color: var(--muted); font-style: normal; font-weight: 800; }
.legend-dot { width: 10px; height: 10px; border-radius: 999px; }
.slice-bg-0 { background: #2563eb; }
.slice-bg-1 { background: #22c55e; }
.slice-bg-2 { background: #a855f7; }
.slice-bg-3 { background: #f59e0b; }
.slice-bg-4 { background: #06b6d4; }
.slice-bg-5 { background: #ef4444; }
.slice-bg-6 { background: #84cc16; }
.slice-bg-7 { background: #64748b; }
.scatter-dot { opacity: 0.74; fill: #60a5fa; }
.chart-wrap .svg-chart,
.message-chart .svg-chart { min-height: 300px; }
@media (max-width: 720px) {
  .profile-summary { flex-direction: column; }
  .profile-summary-actions { justify-content: flex-start; }
  .pie-layout { grid-template-columns: 1fr; }
}


/* v10: selector de hojas para libros Excel multihoja */
.hidden { display: none !important; }
.sheet-selector {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.055);
}
.sheet-control-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.sheet-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  font-weight: 800;
  outline: none;
}
.sheet-select:disabled {
  opacity: 0.76;
  cursor: not-allowed;
}
.sheet-meta,
.sheet-hint {
  margin-top: 8px;
  color: #9fb0c7;
  font-size: 0.78rem;
  line-height: 1.4;
}
.sheet-hint {
  color: #fcd34d;
}
html[data-theme="light"] .sheet-selector {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html[data-theme="light"] .sheet-select {
  background: #ffffff;
  color: #111827;
  border-color: #cbd5e1;
}
html[data-theme="light"] .sheet-meta {
  color: #64748b;
}
html[data-theme="light"] .sheet-hint {
  color: #92400e;
}

/* v11: aviso no invasivo para cold start de backend gratuito */
.backend-wakeup {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(14px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(17, 17, 19, 0.92);
  color: #f4f4f5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.backend-wakeup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.backend-wakeup-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, rgba(34,197,94,.92), rgba(37,99,235,.92));
  box-shadow: 0 0 34px rgba(34, 197, 94, .24);
  position: relative;
}
.backend-wakeup-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.7);
  border-top-color: transparent;
  animation: wakeSpin 1s linear infinite;
}
@keyframes wakeSpin { to { transform: rotate(360deg); } }
.backend-wakeup-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.backend-wakeup-copy strong {
  font-size: .92rem;
  letter-spacing: -0.02em;
}
.backend-wakeup-copy span {
  color: #a1a1aa;
  font-size: .84rem;
  line-height: 1.35;
}
.backend-wakeup-retry {
  border: 1px solid rgba(244, 244, 245, 0.14);
  border-radius: 14px;
  padding: 9px 12px;
  color: #f4f4f5;
  background: rgba(255,255,255,.07);
  font-weight: 850;
}
.backend-wakeup-retry:hover {
  background: rgba(255,255,255,.11);
}
.backend-wakeup-retry:disabled {
  opacity: .62;
  cursor: not-allowed;
}
html[data-theme="light"] .backend-wakeup {
  color: #111827;
  border-color: #bbf7d0;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}
html[data-theme="light"] .backend-wakeup-copy span {
  color: #64748b;
}
html[data-theme="light"] .backend-wakeup-retry {
  color: #111827;
  border-color: #e2e8f0;
  background: #f8fafc;
}
@media (max-width: 620px) {
  .backend-wakeup {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .backend-wakeup-retry {
    grid-column: 1 / -1;
    width: 100%;
  }
}
