/* Shared by the login screen, the user workspace and the administrator console. */
:root { color-scheme:light }
ft-theme-picker {
  position:relative; display:inline-flex; flex:0 0 auto; align-items:center;
  height:34px; border:1px solid var(--line); border-radius:7px;
  color:var(--ink); background:var(--paper); vertical-align:middle;
}
ft-theme-picker svg {position:absolute; left:9px; width:16px; height:16px; pointer-events:none; color:var(--blue)}
ft-theme-picker select {
  appearance:none; color:inherit; font:inherit; font-size:12px; line-height:1.3;
  width:105px; min-height:32px; height:100%; border:0; margin:0; border-radius:inherit;
  padding:0 17px 0 31px; background:transparent; cursor:pointer;
}
ft-theme-picker::after {content:''; position:absolute; right:9px; width:5px; height:5px; border:solid currentColor; border-width:0 1.3px 1.3px 0; transform:translateY(-2px) rotate(45deg); pointer-events:none}
ft-theme-picker option {color:var(--ink); background:var(--paper)}
ft-theme-picker:focus-within {outline:2px solid var(--focus);outline-offset:2px}
ft-theme-picker select:focus-visible {outline:0}
.topbar ft-theme-picker {margin-inline-start:6px}
.console-bar-inner ft-theme-picker {margin-inline-start:auto}
@media (max-width:640px) {
  .topbar .route-info {display:none}
  .topbar ft-theme-picker {margin-inline-start:auto}
  .topbar ft-theme-picker select {width:96px}
  .console-bar-inner {gap:10px}
}

:root[data-theme=dark] {
  color-scheme:dark;
  --wash:#101727; --paper:#192438; --ink:#e7eef9; --muted:#b5c5db; --faint:#9daec6;
  --line:#35445d; --blue:#a0b9ff; --deep:#c7d6ff; --bluewash:#293955;
  --red:#ffaca8; --focus:#9dcaff; --hover:#233249; --field:#121d2f;
  scrollbar-color:#50627a var(--wash);
}
[data-theme=dark] ::selection {color:#f1f6ff;background:#415c8e}
[data-theme=dark] :is(.maincol,.maincol:has(.page-title),.maincol:has(.server-context),.server-console) {
  background:radial-gradient(ellipse 70% 240px at 90% 0%,#1b2a464d,transparent),var(--wash);
}
[data-theme=dark] .sidebar {background:radial-gradient(ellipse 160% 58% at -18% -10%,#1a374e,transparent),linear-gradient(168deg,#141e32,#141b30 80%,#1f2139);border-color:#2c3a50}
[data-theme=dark] .maincol .topbar {background:linear-gradient(105deg,#192337,#1c293e);border-color:var(--line)}
[data-theme=dark] :is(.maincol .crumbs strong,.page-title h1,.console-title h1,.empty strong) {color:var(--ink)}
[data-theme=dark] .maincol .topbar .menu-btn {background:var(--hover);color:var(--blue)}
[data-theme=dark] :is(.panel,dialog,.dialoghead,.operation-picker button,.hotbar button,.auth-layout,.console-tabs,.fleet-group header) {background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme=dark] dialog::backdrop {background:rgb(5 10 18 / .69)}
[data-theme=dark] :is(input:not([type=checkbox]):not([type=range]),select,textarea,.auth-content input:not([type=checkbox])) {color:var(--ink);background:var(--field);border-color:#455770}
[data-theme=dark] :is(input,textarea)::placeholder {color:#99a9c0}
[data-theme=dark] :is(input[readonly],input::file-selector-button,.axes div) {background:var(--hover);color:var(--muted)}
[data-theme=dark] ft-theme-picker select {background:transparent}
[data-theme=dark] .btn.primary {background:#9eb8ff;border-color:#9eb8ff;color:#102344}
[data-theme=dark] .btn.primary:hover:not(:disabled) {background:#b8caff;border-color:#b8caff;color:#101e36}
[data-theme=dark] :is(.secondary,.iconbtn) {color:var(--ink);background:var(--paper);border-color:#475b76}
[data-theme=dark] :is(.secondary,.iconbtn):hover:not(:disabled) {background:var(--hover)}
[data-theme=dark] .destructive {background:#853d49;color:#fff;border-color:#a3525e}
[data-theme=dark] :is(.error:not(:empty),.warning,.bag-danger:hover) {color:#ffc0b8;background:#452a35}
[data-theme=dark] :is(.board-row:hover,.board-row:focus-within,.player-row:hover,.board-refresh:hover,.board-more:hover) {background:var(--hover)}
[data-theme=dark] :is(.search,.tabs:not(.player-tabs):not(.sectiontabs):not(.logtabs)) {border-color:var(--line)}
[data-theme=dark] :is(.empty-icon,.tileicon,.server-emblem,.fleet-owner .avatar,.avatar) {color:#c4d6f5;background:#2a3b56;border-color:var(--line)}
[data-theme=dark] :is(.audio-symbol,.board-mark-domain) {color:#94e5da;background:#1c393f;border-color:#305359}
[data-theme=dark] .board-mark-lobby {color:#d5c1ff;background:#332d4c;border-color:#4e4567}
[data-theme=dark] .tone1 {color:#cbc8ff;background:#37344e}
[data-theme=dark] .tone2 {color:#d4e39e;background:#303c31}
[data-theme=dark] .tone3 {color:#f4c8a3;background:#40352e}
[data-theme=dark] :is(.status.online,.plugin-state.enabled) {color:#98e6be}
[data-theme=dark] .operation-form .receipt {background:#1c3934;color:#ade0cd}
[data-theme=dark] .console-tabs a[aria-current=page] {color:var(--deep);background:var(--bluewash);box-shadow:inset 0 0 0 1px #455b80}
[data-theme=dark] .bag-grid {background:#192625;border-color:#475954}
[data-theme=dark] .bag-cell {background:#30413e;color:#d2ded8;border-color:#192c29 #536961 #536961 #192c29}
[data-theme=dark] .bag-cell:hover {background:#3d514a}
[data-theme=dark] .bag-cell[aria-pressed=true] {background:#405947}
[data-theme=dark] .bag-cell.unread {background:#2c3438;color:var(--muted)}
[data-theme=dark] .bag-key,[data-theme=dark] .bag-preview {color:#b6c9be;border-color:#4a5b52}
[data-theme=dark] :is(.dashboard-tools a,.dashboard-tools a:hover) {background:#253b35;color:#aed7c4}