
:root{color-scheme:dark;--bg:#0f172a;--panel:#1e293b;--panel-2:#334155;--text:#e2e8f0;--muted:#94a3b8;--accent:#38bdf8;--border:#475569;--ok:#22c55e;--warn:#eab308;--err:#ef4444;--button-text:#0c1222;--danger-text:#fca5a5}
:root[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--panel:#ffffff;--panel-2:#e8eef6;--text:#17263d;--muted:#52647a;--accent:#0369a1;--border:#c6d2e0;--ok:#15803d;--warn:#a16207;--err:#b91c1c;--button-text:#ffffff;--danger-text:#b91c1c}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font:inherit;font-size:14px;font-weight:500;color:var(--muted);background:var(--panel-2);border:1px solid var(--border);border-radius:8px;padding:10px 12px;cursor:pointer;min-height:40px;flex-shrink:0}
.theme-toggle:hover{color:var(--text);border-color:var(--accent)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.login-theme{display:flex;justify-content:flex-end;margin-bottom:20px}
.brand-mark,.brand img{padding:0;flex-shrink:0;object-fit:contain}
[data-theme="light"] .brand-mark,[data-theme="light"] .brand img{filter:brightness(0.3)}
[data-theme="light"] .brand-title small,[data-theme="light"] .v2-summary,[data-theme="light"] .v2-history,[data-theme="light"] .v2-elapsed{color:var(--muted)}
[data-theme="light"] .v2-state{color:var(--text)}
[data-theme="light"] .v2-review{color:#854d0e}
[data-theme="light"] summary{color:var(--accent)}
[data-theme="light"] .event.done{background:#ecfdf3}
[data-theme="light"] .event.error{background:#fef2f2}
[data-theme="light"] .job-status{color:var(--text)}
@media(max-width:620px){.account-menu{flex-wrap:wrap}.account-menu .theme-toggle{font-size:13px;padding:7px 9px}header .actions .theme-toggle{grid-column:1/-1}}

.theme-toggle{width:40px;height:40px;min-height:40px;padding:0;font-size:21px;line-height:1} @media(max-width:620px){header .actions .theme-toggle{grid-column:auto;flex:none;width:40px;min-height:40px;height:40px;padding:0;font-size:21px}header .actions{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr);align-items:center}.account-menu .theme-toggle{font-size:21px;padding:0}}

.release-version{font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap;vertical-align:middle}

/* Shared navigation controls in the application and administrator dashboard. */
.account-menu,.actions{--nav-height:40px}
.account-menu .admin-panel-link,.account-menu #accountLogout,
header .actions .button,header .actions #logout{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:var(--nav-height);height:auto;padding:8px 12px;
 font-family:inherit;font-size:15.2px;font-weight:500;line-height:22px;
 color:var(--muted);background:transparent;border:1px solid var(--border);
 border-radius:6px;text-decoration:none;text-align:center;white-space:nowrap;
 cursor:pointer;flex-shrink:0;
}
.account-menu .admin-panel-link:hover,.account-menu #accountLogout:hover,
header .actions .button:hover,header .actions #logout:hover{
 color:var(--text);border-color:var(--accent);filter:none;
}
.account-menu .theme-toggle,header .actions .theme-toggle{
 width:40px;height:40px;min-height:40px;padding:0;
 font-size:21px;font-weight:500;border-radius:6px;
}
@media(max-width:620px){
 .account-menu .admin-panel-link,.account-menu #accountLogout,
 header .actions .button,header .actions #logout{
  font-size:13.6px;line-height:20px;white-space:normal;
 }
 header .actions{align-items:stretch}
}
