:root {
  color-scheme: light;
  --bg: #f5f4ed;
  --sidebar: #edeee5;
  --surface: #fffef9;
  --surface-solid: #fffef9;
  --surface-raised: #eef1e7;
  --field: #fffef9;
  --text: #203b30;
  --muted: #64746a;
  --subtle: #69766d;
  --line: #d9dfd0;
  --line-strong: #bdc8b5;
  --indigo: #245d46;
  --indigo-light: #245d46;
  --emerald: #26734e;
  --blue: #306280;
  --amber: #93621c;
  --red: #af3c35;
  --shadow: 0 24px 64px #203b3010;
}
body.growthrate { background: var(--bg); color: var(--text); font-family: 'Trebuchet MS', 'Microsoft YaHei', sans-serif; }
::selection { background: #dce9c1; color: #153d2c; }
h1, h2, h3 { color: var(--text); }
button, .primary-link, .primary-button, .copy-button-primary { background: #245d46; box-shadow: none; }
button:hover, .primary-link:hover, .primary-button:hover { background: #174c37; }
label, input, select, textarea { color: var(--text); }
input, select, textarea { border-radius: 6px; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: #477657; box-shadow: 0 0 0 3px #47765718; }
input::placeholder, textarea::placeholder { color: #7c877c; }
.brand-mark { background: #1f513e; box-shadow: none; color: #dcedba; border-radius: 8px; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy strong { color: #173f30; font-size: 22px; letter-spacing: -1px; }
.brand-copy small { color: #647264; font-size: 9px; letter-spacing: 2.3px; }
.gr-brand-dot { color: #7ca34e; }
.lang-switch { border-color: var(--line); background: transparent; }
.lang-switch a { color: #586b5e; }
.lang-switch a.is-active { background: #245d46; box-shadow: none; }
.gr-eyebrow { color: #4c6657; font-size: 10px; font-weight: bold; letter-spacing: 2px; }
.gr-header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.gr-theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 11px; font-weight: normal; letter-spacing: 0; white-space: nowrap; }
.gr-theme-toggle:hover { background: var(--surface-raised); color: var(--text); border-color: var(--line-strong); }
.gr-theme-toggle:focus-visible { outline: 2px solid var(--indigo-light); outline-offset: 3px; }
.gr-theme-toggle svg { width: 17px; height: 17px; flex-shrink: 0; }
.gr-theme-sun { display: none; }
:root[data-theme="dark"] .gr-theme-sun { display: block; }
:root[data-theme="dark"] .gr-theme-moon { display: none; }

/* A new login composition; form field names and POST route stay on the shared auth flow. */
.growthrate.is-login { background: #f5f4ed; }
.gr-login-header { min-height: 96px; padding: 22px 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.growthrate.is-login .lang-switch { position: static; transform: none; }
.growthrate.is-login main.gr-login-main { min-height: calc(100svh - 96px); display: grid; grid-template-columns: 1.06fr 1fr; place-items: stretch; }
.gr-story { display: flex; flex-direction: column; min-width: 0; padding: 64px 9% 28px; border-right: 1px solid var(--line); background: radial-gradient(ellipse at 40% 65%, #e4ebd3, transparent 65%), #eff1e6; overflow: hidden; }
.gr-story h1 { margin: 30px 0 24px; font-size: clamp(40px, 4vw, 68px); font-weight: normal; line-height: 1.14; letter-spacing: -2.5px; }
.gr-story h1 em { font-family: Georgia, 'KaiTi', serif; font-weight: normal; color: #4b7153; }
.gr-story > p { max-width: 355px; margin: 0; color: #5f7162; font-size: 15px; line-height: 1.9; }
.gr-orbit { width: 300px; height: 258px; position: relative; margin: 25px auto; flex: 1 0 258px; max-height: 300px; }
.gr-orbit-ring { position: absolute; border: 1px solid #bac9aa; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gr-ring-one { width: 210px; height: 210px; }
.gr-ring-two { width: 300px; height: 158px; transform: translate(-50%, -50%) rotate(-32deg); }
.gr-orbit-core { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; transform: translate(-50%, -50%) rotate(-8deg); display: grid; place-items: center; background: #24543f; color: #ddebba; border: 8px solid #ecf0df; border-radius: 25px; box-shadow: 0 18px 35px #1d3a2920; }
.gr-orbit-core svg { width: 58px; }
.gr-orbit-label { position: absolute; border: 1px solid #c7d2b8; background: #f8faef; border-radius: 5px; padding: 7px 10px; color: #506b4b; font: 9px 'Courier New', monospace; letter-spacing: 1.5px; }
.gr-label-one { left: -5px; top: 25%; }
.gr-label-two { right: -10px; top: 47%; }
.gr-label-three { left: 35%; bottom: 6%; }
.gr-orbit i { position: absolute; height: 9px; width: 9px; background: #6d9853; border: 3px solid #e2ead3; box-sizing: content-box; border-radius: 50%; top: 24px; right: 79px; }
.gr-story-foot { display: flex; justify-content: space-between; gap: 12px; color: #6d7a65; font: 9px 'Courier New', monospace; letter-spacing: 1px; padding-top: 22px; border-top: 1px solid #d3ddc6; }
.gr-login-workspace { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 68px 12% 28px; }
.gr-login-card { width: 100%; max-width: 400px; margin: auto; padding: 25px 0 48px; animation: gr-arrive 220ms ease both; }
.gr-login-card h2 { margin: 22px 0 12px; font-size: 38px; font-weight: normal; letter-spacing: -1.5px; }
.gr-login-intro { margin: 0 0 38px; color: var(--muted); font-size: 14px; }
.gr-login-form { display: flex; flex-direction: column; gap: 10px; }
.gr-login-form label { font-size: 12px; }
.gr-login-form input { min-height: 50px; padding: 12px 14px; background: #fdfdf7; }
.gr-password-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 12px; }
.gr-password-label > span { color: #69766c; font-size: 9px; letter-spacing: 1px; }
.gr-password-field { position: relative; }
.gr-password-field input { padding-right: 68px; }
.gr-reveal { position: absolute; right: 7px; top: 7px; min-height: 36px; padding: 6px 9px; font-size: 11px; background: transparent; color: #4e6f56; }
.gr-reveal:hover { background: #eaf0df; }
button.gr-login-submit { min-height: 52px; margin-top: 16px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; background: #24553f; border-radius: 6px; }
.gr-login-submit > span:last-child { font-size: 24px; font-weight: normal; line-height: 1; }
.gr-login-note { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: #6b786c; font-size: 10px; letter-spacing: .5px; }
.gr-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #5d8553; }
.gr-login-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #69756a; font-size: 10px; }
@keyframes gr-arrive { from { opacity: .85; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Shared backend components, restyled for the GrowthRate workspace. */
.growthrate.is-authed .sidebar { width: 258px; padding: 26px 17px 18px; background: #edf0e5; border-right: 1px solid var(--line); backdrop-filter: none; }
.gr-workspace-label { color: #6c7b68; padding: 32px 10px 0; font-size: 9px; letter-spacing: 1.8px; }
.growthrate nav { gap: 3px; margin-top: 18px; }
.growthrate nav a { color: #5c705d; font-size: 13px; min-height: 41px; border-radius: 6px; }
.growthrate nav a:hover { background: #e0e7d4; color: #24462f; border-color: transparent; }
.growthrate nav a.active { background: #dce7cc; color: #1f5136; border-color: #cadbb5; }
.growthrate nav a::after { color: transparent; }
.growthrate nav a.active::after { color: #6c8553; }
.growthrate .operator-card { background: #e7ecdf; border-color: #d6dfcd; padding: 10px; border-radius: 7px; }
.growthrate .operator-avatar { border-color: #b5c9a4; color: #24553f; background: #d7e3c5; border-radius: 8px; }
.growthrate .operator-copy strong { color: var(--text); }
.growthrate .operator-copy small, .growthrate .operator-exit { color: #62715f; }
.growthrate .operator-exit { background: transparent; }
.gr-sidebar-foot > .lang-switch { margin-left: 8px; }
.growthrate.is-authed main { margin-left: 258px; background: linear-gradient(150deg, #e9eddf66, transparent 50%), var(--bg); }
.growthrate.is-authed main::before { display: none; }
.gr-topline { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); color: #6b7b67; font-size: 9px; letter-spacing: 2px; }
.content-shell { padding-top: 34px; }
.gr-console-footer { padding: 0 32px 24px; font-size: 10px; color: #6f7e6d; }
.gr-console-footer > span { padding-left: 8px; }
.panel { background: var(--surface); border-radius: 8px; box-shadow: 0 3px 14px #203b3004; backdrop-filter: none; }
.panel-title h2 { font-size: 20px; }
.table-panel .panel-title, .table-footer, .credential-actions, .result-actions, .modal-actions { border-color: var(--line); }
.page-heading h2, .hero-panel h2 { font-size: 30px; font-weight: normal; }
.stat-card { background: #fffef9; border-color: var(--line); border-radius: 8px; }
.stat-copy strong { color: var(--text); font-family: Georgia, serif; font-size: 30px; font-weight: normal; }
.stat-copy small { color: #64745f; }
.stat-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; }
.stat-indigo .stat-icon, .stat-violet .stat-icon { background: #e6edd9; }
.summary-chips > span, .check-field, .credential-app-name, .detail-grid > div { background: #eff2e7; color: #65765f; }
.summary-chips strong, .credential-app-name strong, .detail-grid strong { color: var(--text); }
.credential-warning { background: #f7f0dc; color: #78602e; }
.credential-label, .edit-license-identity { color: var(--muted); }
.secondary-button, .copy-button, .table-action, .table-actions form .table-action, td form button, .pagination-sizes a, .pagination-sizes strong { background: #edf2e5; border-color: #cddac1; color: #315e40; }
.secondary-button:hover, .copy-button:hover { background: #dfeacf; color: #234c32; border-color: #adc496; }
.copy-button-primary, .copy-button-primary:hover { background: #245d46; color: white; }
.ghost-button { background: transparent; color: #5f705d; }
.ghost-button:hover { background: #edf2e5; color: var(--text); }
.danger-button, .table-danger, td form button { background: #fbede7; color: #9c3b2c; border-color: #e9c6bc; }
.danger-button:hover { background: #f7e3db; color: #9c3b2c; }
.danger-zone { background: #fff9f3; }
.flash, .copy-button.is-copied { color: #286138; background: #edf5e3; border-color: #c4d9ae; }
.copy-button.is-copy-error, .error-state { color: #a03c30; background: #fff2ec; }
th, td { border-color: #e1e5d9; }
th { background: #f0f3e8; color: #637559; }
td { color: #526749; }
tbody tr:hover { background: #f5f8ee; }
code, pre { background: #f0f3e9; color: #3d6047; border-color: #d6dfcd; }
.empty-state { background: #f5f7ef; color: #718168; border-color: #ccd6bf; }
.badge { color: #56634f; background: #edf0e6; border-color: #d3dcc8; }
.badge-active, .badge-success, .badge-verification, .badge-published, .badge-stable, .badge-update_available { color: #346139; background: #eaf3df; border-color: #c6d9b3; }
.badge-revoked, .badge-failure, .badge-blocked, .badge-withdrawn, .badge-denied { color: #9b3f32; background: #fbede6; border-color: #e8c9bc; }
.badge-expired { color: #86601d; background: #f8f0d9; border-color: #e7d8b0; }
.badge-admin, .badge-beta { color: #35637a; background: #e9f1f4; border-color: #c4dbe4; }
.alert, .toast, .loading-state { background: #f0f4e8; }
.modal-card { background: #fffef9; border-color: #d9dfd0; box-shadow: 0 24px 80px #243b3030; }
.modal-backdrop, .modal-backdrop:hover { background: #243b3077; }
.modal-accent { background: #52774d; }
.modal-accent-danger { background: #aa4237; }
.modal-close { background: transparent; }
.modal-close:hover { background: #eaf0df; color: #365532; }
.file-input-field input[type="file"]::file-selector-button { color: #3d6047; background: #edf2e5; border-color: #cddac1; }
.hwid-stat, .hwid-hardware article { background: #f0f3e8; }
.hwid-hardware h3 { color: #5e743d; }
.hwid-hardware pre, .hwid-pulse { color: #5c6c52; }
.hwid-pulse.is-online { color: #346b39; }
a.username-link, a.username-link strong { color: #386743; }
a.username-link:hover, a.username-link:hover strong { color: #21492d; }

@media (min-width: 1450px) { .gr-login-workspace { padding-left: 15%; padding-right: 15%; } .gr-story { padding-left: 12%; padding-right: 12%; } }
@media (max-width: 1090px) and (min-width: 900px) { .gr-story { padding: 52px 7% 24px; } .gr-login-workspace { padding-left: 9%; padding-right: 9%; } .gr-orbit { transform: scale(.88); } }
@media (max-width: 899px) {
  .gr-login-header { min-height: 82px; padding: 16px 24px; }
  .growthrate.is-login main.gr-login-main { min-height: calc(100svh - 82px); grid-template-columns: 1fr; }
  .gr-story { padding: 32px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .gr-story h1 { font-size: 38px; margin: 18px 0 12px; letter-spacing: -1px; }
  .gr-story h1 br { display: none; }
  .gr-story > p { max-width: 530px; font-size: 13px; }
  .gr-orbit, .gr-story-foot { display: none; }
  .gr-login-workspace { padding: 32px 24px 22px; }
  .gr-login-card { padding: 8px 0 38px; max-width: 430px; }
  .gr-login-card h2 { font-size: 32px; margin-top: 14px; }
  .gr-login-intro { margin-bottom: 28px; }
  .gr-login-footer { width: min(100%, 430px); margin: 0 auto; }
  .growthrate.is-authed .sidebar { width: 258px; }
  .growthrate.is-authed main { margin-left: 0; }
  .growthrate .mobile-bar { background: #f5f4edee; border-color: var(--line); }
  .growthrate .mobile-menu { background: transparent; color: #365532; }
  .growthrate .sidebar-overlay { background: #243b3066; }
  .gr-topline { min-height: 48px; padding: 0 20px; font-size: 8px; }
  .gr-console-footer { padding-left: 20px; }
}
@media (max-width: 480px) {
  .gr-login-header { padding: 14px 18px; }
  .gr-login-header .brand { gap: 8px; padding: 0; }
  .gr-login-header .brand-copy strong { font-size: 19px; }
  .gr-login-header .brand-copy small { font-size: 8px; letter-spacing: 1.5px; }
  .gr-login-header .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .gr-login-header .lang-switch a { min-width: 32px; padding: 0 5px; }
  .gr-story { padding: 26px 22px; }
  .gr-story h1 { font-size: 31px; }
  .gr-login-workspace { padding: 28px 22px 22px; }
  .gr-topline { letter-spacing: 1px; }
}
/* Dark mode keeps the GrowthRate green accent while reducing glare across the shared admin shell. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101914;
  --sidebar: #0d1511;
  --surface: #17221b;
  --surface-solid: #17221b;
  --surface-raised: #1e2d23;
  --field: #111b15;
  --text: #e6f0e4;
  --muted: #a5b7a7;
  --subtle: #829586;
  --line: #2d4033;
  --line-strong: #49634f;
  --indigo: #72ad78;
  --indigo-light: #a6d18c;
  --emerald: #72c58b;
  --blue: #8cb9cc;
  --amber: #e0b86d;
  --red: #e98579;
  --shadow: 0 24px 64px #00000055;
}
:root[data-theme="dark"] body.growthrate { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] ::selection { background: #3b5b3d; color: #f1f7e8; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] label, :root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color: var(--text); }
:root[data-theme="dark"] button, :root[data-theme="dark"] .primary-link, :root[data-theme="dark"] .primary-button, :root[data-theme="dark"] .copy-button-primary { background: #3f7950; color: #f4faed; }
:root[data-theme="dark"] button:hover, :root[data-theme="dark"] .primary-link:hover, :root[data-theme="dark"] .primary-button:hover { background: #4e8e5d; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea, :root[data-theme="dark"] .gr-login-form input { background: var(--field); border-color: var(--line-strong); color: var(--text); }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] select:focus, :root[data-theme="dark"] textarea:focus { background: #142118; border-color: #73a97a; box-shadow: 0 0 0 3px #73a97a30; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #758a79; }
:root[data-theme="dark"] .brand-mark { background: #326445; color: #d9efae; }
:root[data-theme="dark"] .brand-copy strong { color: #e6f0e4; }
:root[data-theme="dark"] .brand-copy small, :root[data-theme="dark"] .lang-switch a, :root[data-theme="dark"] .gr-password-label > span { color: #9ab09d; }
:root[data-theme="dark"] .lang-switch a.is-active { background: #3f7950; color: #f4faed; }
:root[data-theme="dark"] .gr-eyebrow { color: #9fc48d; }
:root[data-theme="dark"] .growthrate.is-login { background: var(--bg); }
:root[data-theme="dark"] .gr-login-header { border-color: var(--line); }
:root[data-theme="dark"] .gr-story { border-color: var(--line); background: radial-gradient(ellipse at 40% 65%, #25452b, transparent 65%), #142019; }
:root[data-theme="dark"] .gr-story h1 em { color: #a9d487; }
:root[data-theme="dark"] .gr-story > p { color: #a3b6a6; }
:root[data-theme="dark"] .gr-orbit-ring { border-color: #547459; }
:root[data-theme="dark"] .gr-orbit-core { background: #285238; color: #ddebba; border-color: #1e3425; box-shadow: 0 18px 35px #00000045; }
:root[data-theme="dark"] .gr-orbit-label { border-color: #49654c; background: #1d3022; color: #b1d28f; }
:root[data-theme="dark"] .gr-orbit i { background: #8bbd62; border-color: #29432d; }
:root[data-theme="dark"] .gr-story-foot, :root[data-theme="dark"] .gr-login-note, :root[data-theme="dark"] .gr-topline, :root[data-theme="dark"] .gr-console-footer { color: #91a795; border-color: var(--line); }
:root[data-theme="dark"] .gr-reveal, :root[data-theme="dark"] .ghost-button, :root[data-theme="dark"] .modal-close { background: transparent; color: #a9d487; }
:root[data-theme="dark"] .gr-reveal:hover, :root[data-theme="dark"] .ghost-button:hover, :root[data-theme="dark"] .modal-close:hover { background: var(--surface-raised); color: var(--text); }
:root[data-theme="dark"] button.gr-login-submit { background: #3f7950; }
:root[data-theme="dark"] button.gr-login-submit:hover { background: #4e8e5d; }
:root[data-theme="dark"] .growthrate.is-authed .sidebar { background: #0d1511; border-color: var(--line); }
:root[data-theme="dark"] .growthrate nav a { color: #a5b8a8; }
:root[data-theme="dark"] .growthrate nav a:hover { background: #1e3224; color: #e0f0df; }
:root[data-theme="dark"] .growthrate nav a.active { background: #284b31; color: #d7efc1; border-color: #426947; }
:root[data-theme="dark"] .growthrate .operator-card { background: #19291e; border-color: #314b37; }
:root[data-theme="dark"] .growthrate .operator-avatar { border-color: #56785a; color: #c8e7ae; background: #29452f; }
:root[data-theme="dark"] .growthrate .operator-copy strong { color: var(--text); }
:root[data-theme="dark"] .growthrate .operator-copy small, :root[data-theme="dark"] .growthrate .operator-exit { color: #9bb09f; }
:root[data-theme="dark"] .growthrate.is-authed main { background: linear-gradient(150deg, #20382566, transparent 50%), var(--bg); }
:root[data-theme="dark"] .growthrate .mobile-bar { background: #101914ee; border-color: var(--line); }
:root[data-theme="dark"] .growthrate .mobile-menu { background: transparent; color: #c1dcb4; }
:root[data-theme="dark"] .growthrate .sidebar-overlay { background: #00000099; }
:root[data-theme="dark"] .panel, :root[data-theme="dark"] .stat-card, :root[data-theme="dark"] .modal-card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
:root[data-theme="dark"] .stat-copy strong, :root[data-theme="dark"] .summary-chips strong, :root[data-theme="dark"] .credential-app-name strong, :root[data-theme="dark"] .detail-grid strong { color: var(--text); }
:root[data-theme="dark"] .summary-chips > span, :root[data-theme="dark"] .check-field, :root[data-theme="dark"] .credential-app-name, :root[data-theme="dark"] .detail-grid > div, :root[data-theme="dark"] .alert, :root[data-theme="dark"] .toast, :root[data-theme="dark"] .loading-state, :root[data-theme="dark"] .hwid-stat, :root[data-theme="dark"] .hwid-hardware article { background: var(--surface-raised); color: var(--muted); }
:root[data-theme="dark"] .secondary-button, :root[data-theme="dark"] .copy-button, :root[data-theme="dark"] .table-action, :root[data-theme="dark"] .table-actions form .table-action, :root[data-theme="dark"] td form button, :root[data-theme="dark"] .pagination-sizes a, :root[data-theme="dark"] .pagination-sizes strong { background: #223529; border-color: #49634f; color: #c5e4ba; }
:root[data-theme="dark"] .secondary-button:hover, :root[data-theme="dark"] .copy-button:hover { background: #2d4935; color: #e8f4df; border-color: #64866a; }
:root[data-theme="dark"] .danger-zone { background: #33231f; }
:root[data-theme="dark"] .flash, :root[data-theme="dark"] .copy-button.is-copied { color: #bde8bd; background: #1d3c27; border-color: #467553; }
:root[data-theme="dark"] .copy-button.is-copy-error, :root[data-theme="dark"] .error-state { color: #ffc0b4; background: #422522; }
:root[data-theme="dark"] th, :root[data-theme="dark"] td { border-color: var(--line); }
:root[data-theme="dark"] th { background: #1e2d23; color: #abc1ad; }
:root[data-theme="dark"] td { color: #b2c5b4; }
:root[data-theme="dark"] tbody tr:hover { background: #1c3022; }
:root[data-theme="dark"] code, :root[data-theme="dark"] pre { background: #111c15; color: #b9dcae; border-color: var(--line); }
:root[data-theme="dark"] .empty-state, :root[data-theme="dark"] .badge { background: #1d2c22; color: #afc1b0; border-color: #3b543f; }
:root[data-theme="dark"] .modal-backdrop, :root[data-theme="dark"] .modal-backdrop:hover { background: #07100acc; }
:root[data-theme="dark"] .gr-login-footer, :root[data-theme="dark"] .gr-workspace-label, :root[data-theme="dark"] .stat-copy small { color: #9aaf9b; }
:root[data-theme="dark"] .stat-indigo .stat-icon, :root[data-theme="dark"] .stat-violet .stat-icon { background: #29432d; }
:root[data-theme="dark"] .credential-warning { background: #3b321e; color: #ebce90; }
:root[data-theme="dark"] .danger-button, :root[data-theme="dark"] .table-danger, :root[data-theme="dark"] td form button { background: #422522; color: #ffc0b4; border-color: #75473d; }
:root[data-theme="dark"] .danger-button:hover, :root[data-theme="dark"] .table-danger:hover { background: #58302a; color: #ffd7ce; }
:root[data-theme="dark"] .badge-active, :root[data-theme="dark"] .badge-success, :root[data-theme="dark"] .badge-verification, :root[data-theme="dark"] .badge-published, :root[data-theme="dark"] .badge-stable, :root[data-theme="dark"] .badge-update_available { color: #c2e8ae; background: #27402a; border-color: #4b6c43; }
:root[data-theme="dark"] .badge-revoked, :root[data-theme="dark"] .badge-failure, :root[data-theme="dark"] .badge-blocked, :root[data-theme="dark"] .badge-withdrawn, :root[data-theme="dark"] .badge-denied { color: #ffc0b4; background: #422522; border-color: #75473d; }
:root[data-theme="dark"] .badge-expired { color: #ebce90; background: #3b321e; border-color: #73603d; }
:root[data-theme="dark"] .badge-admin, :root[data-theme="dark"] .badge-beta { color: #b2d9ed; background: #233840; border-color: #496c7c; }
:root[data-theme="dark"] .file-input-field input[type="file"]::file-selector-button { color: #c5e4ba; background: #223529; border-color: #49634f; }
:root[data-theme="dark"] .hwid-hardware h3, :root[data-theme="dark"] .hwid-pulse.is-online, :root[data-theme="dark"] a.username-link, :root[data-theme="dark"] a.username-link strong { color: #b1d98f; }
:root[data-theme="dark"] .hwid-hardware pre, :root[data-theme="dark"] .hwid-pulse { color: #a5b7a7; }
:root[data-theme="dark"] a.username-link:hover, :root[data-theme="dark"] a.username-link:hover strong { color: #dbf4c1; }
:root[data-theme="dark"] .copy-button-primary, :root[data-theme="dark"] .copy-button-primary:hover { background: #3f7950; color: #f4faed; }
:root[data-theme="dark"] .growthrate .operator-exit, :root[data-theme="dark"] .modal-close, :root[data-theme="dark"] .gr-theme-toggle { background: transparent; color: var(--text); }
:root[data-theme="dark"] .gr-theme-toggle:hover { background: var(--surface-raised); color: var(--text); }
@media (max-width: 600px) {
  .gr-console-caption { display: none; }
  .gr-login-header .gr-header-actions { gap: 8px; }
  .gr-login-header .gr-theme-toggle { width: 36px; padding: 7px; }
  .gr-login-header .gr-theme-toggle [data-theme-label] { display: none; }
}
@media (max-width: 360px) {
  .gr-login-header { padding-left: 12px; padding-right: 12px; }
  .gr-login-header .brand-copy strong { font-size: 17px; }
  .gr-login-header .gr-header-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
