/* Light counterpart to the dark 7 Chaves Digital dashboard. */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] body { color: #17261a; background: #eef3eb; }
html[data-theme="light"] :focus-visible { outline-color: #087b38; }
html[data-theme="light"] em,
html[data-theme="light"] .kicker { color: #087b38; }
html[data-theme="light"] .auth-story em,
html[data-theme="light"] .auth-story .kicker { color: #00e85a; }

html[data-theme="light"] .theme-switch { background: #e8efe7; border-color: #c8d5c9; }
html[data-theme="light"] .theme-switch button { color: #405645; }
html[data-theme="light"] .theme-switch button:hover { color: #0e2816; }
html[data-theme="light"] .theme-switch button[aria-pressed="true"] { color: #07180c; background: #00e85a; }
html[data-theme="light"] .button-secondary { background: #102619; color: #fff; }
html[data-theme="light"] .button-secondary:hover:not(:disabled) { background: #245a35; }
html[data-theme="light"] .button-quiet { background: #fff; border-color: #c7d4c9; color: #17311e; }
html[data-theme="light"] .button-quiet:hover:not(:disabled) { border-color: #087b38; }
html[data-theme="light"] .alert-error,
html[data-theme="light"] .auth-card .alert-error { background: #fff0ed; color: #883b30; border-color: #e6bdb4; }
html[data-theme="light"] .alert-success { background: #e7f7e8; color: #255a32; border-color: #add5b4; }

/* Keep the official white wordmark on a dark brand panel. */
html[data-theme="light"] .auth-body {
  background: #e9f0e7;
  background-image: linear-gradient(#12351b0a 1px, transparent 1px), linear-gradient(90deg, #12351b0a 1px, transparent 1px);
}
html[data-theme="light"] .auth-layout { border-color: #cbd9cb; box-shadow: 0 26px 70px #20392420; }
html[data-theme="light"] .auth-story { color: #eff5ee; }
html[data-theme="light"] .auth-card { background: #fbfdf9; }
html[data-theme="light"] .auth-card h1,
html[data-theme="light"] .auth-card h2 { color: #14281a; }
html[data-theme="light"] .auth-card h1 em,
html[data-theme="light"] .auth-card h2 em { color: #087b38; }
html[data-theme="light"] .auth-card > p { color: #4f6654; }
html[data-theme="light"] .auth-emblem { width: 72px; height: 76px; padding: .5rem; background: #070a08; }
html[data-theme="light"] .auth-card > small { color: #596f5e; }
html[data-theme="light"] .auth-card .stack-form input { color: #17261a; background: #fff; border-color: #b9cdbd; color-scheme: light; }
html[data-theme="light"] .auth-card .stack-form input:focus { border-color: #087b38; }
html[data-theme="light"] .auth-card-setup { border-color: #cbd9cb; box-shadow: 0 26px 70px #20392420; }
html[data-theme="light"] .setup-top .setup-wordmark { padding: .45rem; background: #070a08; }

/* The sidebar stays dark; the working surface becomes a calm warm white. */
html[data-theme="light"] .dashboard-body {
  background: #eef3eb;
  background-image: linear-gradient(#12351b08 1px, transparent 1px), linear-gradient(90deg, #12351b08 1px, transparent 1px);
}
html[data-theme="light"] .main-topbar { border-bottom-color: #ccd9cc; }
html[data-theme="light"] .topbar-date { color: #536b59; }
html[data-theme="light"] .page-heading h1 { color: #14281a; }
html[data-theme="light"] .page-heading p { color: #536c59; }
html[data-theme="light"] .overview-heading::after { color: #0c2d1509; }
html[data-theme="light"] .filter-row > label { color: #475f4d; }
html[data-theme="light"] .filter-row > span { color: #617966; }
html[data-theme="light"] .stack-form label { color: #23402b; }
html[data-theme="light"] .stack-form input,
html[data-theme="light"] .stack-form select,
html[data-theme="light"] .stack-form textarea,
html[data-theme="light"] .copy-row input,
html[data-theme="light"] .filter-row select {
  color: #17261a;
  background: #fff;
  border-color: #bfd0c1;
  color-scheme: light;
}
html[data-theme="light"] .stack-form input:focus,
html[data-theme="light"] .stack-form select:focus,
html[data-theme="light"] .stack-form textarea:focus,
html[data-theme="light"] .copy-row input:focus,
html[data-theme="light"] .filter-row select:focus { border-color: #087b38; box-shadow: 0 0 0 3px #087b3829; }
html[data-theme="light"] .stack-form input::placeholder,
html[data-theme="light"] .stack-form textarea::placeholder { color: #718775; }

html[data-theme="light"] .stat-card { background: #fff; border-color: #d5e0d5; }
html[data-theme="light"] .stat-card > span { color: #526d58; }
html[data-theme="light"] .stat-card strong { color: #14281a; }
html[data-theme="light"] .stat-card small { color: #5f7664; }
html[data-theme="light"] .stat-card i { color: #6e9276; }
html[data-theme="light"] .stat-card-primary { background: #00e85a; border-color: #00e85a; }
html[data-theme="light"] .stat-card-primary > span,
html[data-theme="light"] .stat-card-primary strong,
html[data-theme="light"] .stat-card-primary small,
html[data-theme="light"] .stat-card-primary i { color: #07180c; }
html[data-theme="light"] .panel { background: #fff; border-color: #d5e0d5; }
html[data-theme="light"] .panel h2 { color: #182d1e; }
html[data-theme="light"] .panel > p { color: #596f5e; }
html[data-theme="light"] .panel-tag,
html[data-theme="light"] .panel-top { color: #607b67; }
html[data-theme="light"] .empty-state { color: #506a56; background: #f6f9f4; border-color: #bdcfbe; }
html[data-theme="light"] .rank-item,
html[data-theme="light"] .region-item { border-top-color: #e1e9e0; }
html[data-theme="light"] .rank-item:hover .rank-main strong { color: #087b38; }
html[data-theme="light"] .rank-number { color: #628268; }
html[data-theme="light"] .rank-main strong,
html[data-theme="light"] .region-item strong,
html[data-theme="light"] .rank-item b,
html[data-theme="light"] .region-item b { color: #1c3423; }
html[data-theme="light"] .rank-main small,
html[data-theme="light"] .region-item small { color: #627a67; }
html[data-theme="light"] .rank-progress,
html[data-theme="light"] .rank-progress::-webkit-progress-bar { background: #deeadc; }
html[data-theme="light"] .rank-progress::-webkit-progress-value { background: #087b38; }
html[data-theme="light"] .rank-progress::-moz-progress-bar { background: #087b38; }
html[data-theme="light"] .muted-note { color: #657b69 !important; }
html[data-theme="light"] th { color: #52705a; border-bottom-color: #d8e4d8; }
html[data-theme="light"] td { color: #425d49; border-bottom-color: #e1e9e0; }
html[data-theme="light"] td strong,
html[data-theme="light"] .numeric { color: #1c3423; }
html[data-theme="light"] td small { color: #667f6b; }
html[data-theme="light"] .table-link,
html[data-theme="light"] .text-link,
html[data-theme="light"] .client-detail summary span { color: #087b38; }
html[data-theme="light"] .pill-active { color: #176b33; background: #e0f5e5; }
html[data-theme="light"] .pill-paused { color: #875330; background: #faeddc; }
html[data-theme="light"] .client-list,
html[data-theme="light"] .toggle-form { border-top-color: #d8e4d8; }
html[data-theme="light"] .client-detail { border-bottom-color: #e1e9e0; }
html[data-theme="light"] .client-detail summary { color: #1c3423; }
html[data-theme="light"] .back-link { color: #496651; }
html[data-theme="light"] .back-link:hover { color: #087b38; }
html[data-theme="light"] .qr-artboard { border-color: #cad8cb; box-shadow: 0 12px 32px #17351c14; }
html[data-theme="light"] .qr-help { color: #59715f; }
html[data-theme="light"] .mini-metrics strong { color: #087b38; }
html[data-theme="light"] .mini-metrics span { color: #5e7664; }
html[data-theme="light"] .text-button { color: #945536; }
html[data-theme="light"] .main-footer { color: #58705e; border-top-color: #ccd9cc; }
