/* ─── MiniMax theme — signature components ──────────────────────────────────
   Tokens (white canvas, pale-gray sidebar, raspberry accent, ink primary) live in
   app.css `:root[data-theme="minimax"]`. This file carries the console's component
   *shapes*: hairline bordered cards on a white page, a single divided KPI strip,
   underline tabs, white bordered inputs, light-gray table heads, and the warm
   peach→rose gradient that fronts their product (used on the auth welcome panel).
   Scoped to `[data-theme="minimax"]` and loaded last in <head>. */

[data-theme="minimax"] {
  --mx-head-fill: #f8f9fa;      /* table head / card foot — their surface-subtle */
  --mx-warm: linear-gradient(112deg, #ffe7e8, #fff0e4 58%, #fff7f0); /* --warm-surface */
  --mx-link: #8b3e50;           /* --link-color */
}

/* ─── Cards: white + hairline, near-flat; airy header like "Account overview" ── */
[data-theme="minimax"] .card,
[data-theme="minimax"] .metric,
[data-theme="minimax"] .task-card,
[data-theme="minimax"] .attention-card { box-shadow: var(--elev-soft); }
[data-theme="minimax"] .card-header { border-bottom-color: var(--border-soft); }
[data-theme="minimax"] .card-footer { background: var(--mx-head-fill); }
[data-theme="minimax"] .topbar-title h1,
[data-theme="minimax"] .card-header h2,
[data-theme="minimax"] .dashboard-section-head h2,
[data-theme="minimax"] .page-intro h2 { letter-spacing: -0.015em; }

/* ─── KPI strip: ONE bordered card split by hairlines — their "Account overview"
   treatment (muted small label, 600 figure, raspberry "View … →" link) ─────── */
[data-theme="minimax"] .fin-kpi,
[data-theme="minimax"] .kpi-row { border-radius: var(--radius-lg); box-shadow: var(--elev-soft); }
[data-theme="minimax"] .fin-kpi-cell,
[data-theme="minimax"] .kpi-row .kpi-cell { padding: 20px 22px; }
[data-theme="minimax"] .fin-kpi-label,
[data-theme="minimax"] .kpi-row .kpi-label { font-family: var(--font-body); color: var(--muted); }
[data-theme="minimax"] .fin-kpi-value,
[data-theme="minimax"] .kpi-row .kpi-num { font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
[data-theme="minimax"] a.kpi-cell:hover { background: var(--surface-warm); }

/* ─── Tabs + finance sub-nav: dev-console underline, raspberry active ──────── */
[data-theme="minimax"] .tabs { background: transparent; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; }
[data-theme="minimax"] .tab-btn { border-radius: 0; padding: 10px 4px; margin-right: 20px; box-shadow: none; color: var(--muted); }
[data-theme="minimax"] .tab-btn.is-active {
  background: transparent; color: var(--fg); box-shadow: none;
  border-bottom: 2px solid var(--accent); margin-bottom: -1px;
}
[data-theme="minimax"] .tab-btn:hover:not(.is-active) { color: var(--fg-2); }
[data-theme="minimax"] .fin-subnav { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; }
[data-theme="minimax"] .fin-subnav a { border-radius: 0; padding: 10px 4px; margin-right: 20px; color: var(--muted); }
[data-theme="minimax"] .fin-subnav a.is-active {
  background: transparent; color: var(--fg); box-shadow: none;
  border-bottom: 2px solid var(--accent); margin-bottom: -1px;
}

/* ─── Inputs: white with hairline border — NOT filled (their --input #dfe1e5) ─ */
[data-theme="minimax"] .input,
[data-theme="minimax"] .select,
[data-theme="minimax"] .textarea,
[data-theme="minimax"] .ms-btn,
[data-theme="minimax"] .topbar-search input {
  background-color: var(--surface);
  border-color: #dfe1e5;
  box-shadow: none;
}
[data-theme="minimax"] .input:hover,
[data-theme="minimax"] .select:hover,
[data-theme="minimax"] .textarea:hover,
[data-theme="minimax"] .ms-btn:hover { border-color: var(--border-strong, #b9bdc3); }
[data-theme="minimax"] .topbar-search input:focus { box-shadow: var(--focus-ring); }

/* ─── Pills + tags: pastel tint with a soft matching border (their notice-*) ── */
[data-theme="minimax"] .pill { font-family: var(--font-body); font-size: 12px; }
[data-theme="minimax"] .tag { border-color: var(--border); }

/* ─── Tables: light-gray head band, hairline rows ──────────────────────────── */
[data-theme="minimax"] .ds-table th {
  background: var(--mx-head-fill);
  color: var(--muted);
  font-weight: 500;
  border-bottom-color: var(--border);
}
[data-theme="minimax"] .ds-table thead th { box-shadow: inset 0 -1px 0 var(--border); }
[data-theme="minimax"] .ds-table tbody tr:hover { background: var(--surface-warm); }

/* ─── Dashboard task cards: white, severity kept to the tinted icon + pill ──── */
[data-theme="minimax"] .task-card { border-top-color: var(--border); }
[data-theme="minimax"] .task-card--danger,
[data-theme="minimax"] .task-card--warn,
[data-theme="minimax"] .task-card--reminder,
[data-theme="minimax"] .task-card--ok { border-top-color: var(--border); }
[data-theme="minimax"] .task-icon { width: 28px; height: 28px; border-radius: 8px; }

/* ─── Settings nav: selection is a gray tile (their --surface-selected), not a
   colored gradient — same rule as the sidebar's active item ────────────────── */
[data-theme="minimax"] .settings-nav a:hover { background: var(--surface-hover, #f0f1f2); transform: none; }
[data-theme="minimax"] .settings-nav a.is-active {
  background: var(--nav-active-bg);
  color: var(--fg);
  font-weight: 600;
  box-shadow: none;
}
[data-theme="minimax"] .settings-nav a.is-active svg { color: var(--fg); }

/* ─── System-health strip: white band under a hairline ─────────────────────── */
[data-theme="minimax"] .dashboard-health-strip { background: var(--surface); border-bottom-color: var(--border); }

/* ─── Charts: coral brand line, ink secondary line ─────────────────────────── */
[data-theme="minimax"] #dashboard-pnl-line,
[data-theme="minimax"] #overview-pnl-line,
[data-theme="minimax"] #finance-contribution-line { stroke-width: 2; }

/* ─── Auth pages: the warm peach→rose gradient becomes the welcome panel ────── */
[data-theme="minimax"] .auth-aside {
  background: var(--mx-warm);
  border-right-color: var(--warm-border, #edd7d4);
  box-shadow: none;
}
[data-theme="minimax"] .auth-aside .brand-row .name { color: #452c37; }
[data-theme="minimax"] .auth-aside .brand-row .sub { color: #8b3e50; }
[data-theme="minimax"] .auth-aside .aside-body .eyebrow { color: #b64a60; }
[data-theme="minimax"] .auth-aside .aside-body h1 { color: #402630; font-weight: 500; }
[data-theme="minimax"] .auth-aside .aside-body h1 em { color: #b64a60; }
[data-theme="minimax"] .auth-aside .aside-body p { color: #6b4a55; }
[data-theme="minimax"] .auth-aside .aside-feat {
  background: rgba(255, 255, 255, 0.55);
  border-color: #edd7d4;
  box-shadow: none;
}
[data-theme="minimax"] .auth-aside .aside-feat .ic { background: #ef6576; color: #ffffff; }
[data-theme="minimax"] .auth-aside .aside-feat .t { color: #452c37; }
[data-theme="minimax"] .auth-aside .aside-feat .d { color: #8b6a72; }
[data-theme="minimax"] .auth-aside .aside-foot { border-top-color: #edd7d4; color: #8b6a72; }
[data-theme="minimax"] .auth-aside .aside-foot .legal a:hover { color: #8b3e50; }
