/* Shared by the public site, buyer account and staff admin. */
:root {
  --dockline-logo: url('/app-icon-light.svg');
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #edf2f7;
  --text: #17212b;
  --muted: #566574;
  --line: #d7e0e8;
  --line-strong: #8b9dac;
  --brand: #0067c0;
  --brand-hover: #005a9e;
  --brand-soft: #e5f2ff;
  --on-brand: #ffffff;
  --ok: #16734e;
  --ok-soft: #e9f6ee;
  --warn: #8a5700;
  --warn-soft: #fff4dc;
  --danger: #b12439;
  --danger-soft: #fff0f2;
  --shadow: 0 18px 54px -34px #16324b40;
  --radius: 14px;
  --accent: var(--brand);
  --accent-strong: var(--brand-hover);
  --accent-soft: var(--brand-soft);
  --ink: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dockline-logo: url('/app-icon.png?v=5c');
    color-scheme: dark;
    --page: #111820; --surface: #19232e; --surface-soft: #21303e;
    --text: #f0f6fc; --muted: #acbdcc; --line: #344454; --line-strong: #74899b;
    --brand: #60cdff; --brand-hover: #99dfff; --brand-soft: #15354b; --on-brand: #082537;
    --ok: #79d7ae; --ok-soft: #1c352d; --warn: #f3c16b; --warn-soft: #3a2e1b;
    --danger: #ff9bab; --danger-soft: #3d242d; --shadow: 0 18px 54px -34px #000000b0;
  }
}

:root[data-theme="dark"] {
  --dockline-logo: url('/app-icon.png?v=5c');
  color-scheme: dark;
  --page: #111820; --surface: #19232e; --surface-soft: #21303e;
  --text: #f0f6fc; --muted: #acbdcc; --line: #344454; --line-strong: #74899b;
  --brand: #60cdff; --brand-hover: #99dfff; --brand-soft: #15354b; --on-brand: #082537;
  --ok: #79d7ae; --ok-soft: #1c352d; --warn: #f3c16b; --warn-soft: #3a2e1b;
  --danger: #ff9bab; --danger-soft: #3d242d; --shadow: 0 18px 54px -34px #000000b0;
}

img[src^="/app-icon.png"] { content: var(--dockline-logo); }

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.theme-picker select {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 28px 8px 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.theme-picker select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
