/* Theme preferences are local; without JavaScript, follow the device. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #111c30;
  --paper: #0b1425;
  --ink: #edf2ff;
  --muted: #b4c0d7;
  --line: #33425b;
  --pale: #192d4d;
  --blue-dark: #a6c0ff;
  --focus: #a6c0ff;
  --intro-ink: #b5c9f1;
  --secondary-ink: #b4c0d7;
  --soft-line: #33425b;
  --concept-border: #435a83;
  --selected-bg: #233d67;
  --avatar-bg: #263d64;
  --avatar-ink: #c4d5f7;
  --task-bg: #243249;
  --task-success-bg: #173b31;
  --task-success-ink: #a4e4c4;
  --active-task-bg: #1a3154;
  --active-task-line: #627eae;
  --item-line: #33425b;
  --selection-bg: #314b80;
  --field-border: #6f809e;
  --placeholder: #a9b8d0;
  --error: #ffacb8;
  --error-bg: #3d1c2b;
  --error-line: #98516a;
  --success: #9ce3be;
  --success-bg: #12382d;
  --success-line: #3a8060;
  --lost-bg: #293142;
  --lost-ink: #c1cada;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --white: #111c30;
  --paper: #0b1425;
  --ink: #edf2ff;
  --muted: #b4c0d7;
  --line: #33425b;
  --pale: #192d4d;
  --blue-dark: #a6c0ff;
  --focus: #a6c0ff;
  --intro-ink: #b5c9f1;
  --secondary-ink: #b4c0d7;
  --soft-line: #33425b;
  --concept-border: #435a83;
  --selected-bg: #233d67;
  --avatar-bg: #263d64;
  --avatar-ink: #c4d5f7;
  --task-bg: #243249;
  --task-success-bg: #173b31;
  --task-success-ink: #a4e4c4;
  --active-task-bg: #1a3154;
  --active-task-line: #627eae;
  --item-line: #33425b;
  --selection-bg: #314b80;
  --field-border: #6f809e;
  --placeholder: #a9b8d0;
  --error: #ffacb8;
  --error-bg: #3d1c2b;
  --error-line: #98516a;
  --success: #9ce3be;
  --success-bg: #12382d;
  --success-line: #3a8060;
  --lost-bg: #293142;
  --lost-ink: #c1cada;
  }
}
.header-tools { display:flex; align-items:center; gap:8px; margin-left:auto; flex:none; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); cursor:pointer; }
.theme-toggle[hidden] { display:none; }
.theme-toggle:hover { background:var(--pale); }
.theme-icon-light { display:none; }
:root[data-theme="dark"] .theme-icon-dark { display:none; }
:root[data-theme="dark"] .theme-icon-light { display:block; }
.service-icon,.deliverable-list li::before { color:var(--blue-dark); }
.admin-header .theme-toggle { margin-left:auto; }
@media (min-width:921px) and (max-width:1150px) { #navigation { gap:18px; } .site-header { gap:18px; } }
@media (max-width:920px) { .header-tools { order:1; } #navigation { order:2; } .site-header>.text-link { order:2; } }
@media (max-width:380px) { .header-tools .menu-toggle { font-size:0; width:44px; padding:8px; } .header-tools .menu-toggle>span { font-size:20px; margin-left:0; } }
