/* Klassisk uses the tokens in app.css. Mörk overrides them.
   Switch with ?theme=classic|mork. The choice is remembered in cb_theme. */

.themebar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.themebar-login {
  width: min(640px, 100%);
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  justify-content: center;
}
.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.theme-switch-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 750;
}
.theme-switch-options { display: flex; flex-wrap: wrap; gap: 4px; }
.theme-switch a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 6px 10px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  background: transparent;
}
.theme-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.theme-blurb { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.timer-cue {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: min(32rem, calc(100% - 24px));
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 750;
  text-align: center;
  box-shadow: var(--shadow);
}
.timer-cue[hidden] { display: none; }

/* Mörk — warm charcoal, olive umber, muted forest. Not black, not neon. */
[data-theme="mork"] {
  --paper: #2c2924;
  --paper-2: #38342e;
  --card: #3e3a33;
  --ink: #f4f0e6;
  --ink-soft: #c9c0b2;
  --line: #534e45;
  --red: #5d7342;
  --red-deep: #4a5e34;
  --blue: #9aaf78;
  --blue-deep: #d7e4c4;
  --sage: #3d4634;
  --butter: #4a4336;
  --blush: #3c4634;
  --shadow: 0 12px 28px rgba(18, 15, 12, 0.35);
  --header: #2c2924;
  --btn-bg: #3e3a33;
  --btn-secondary-border: #6e675c;
  --field: #342f2a;
  --heart-bg: #4a453e;
  --row-bg: #35312b;
  --suggestion: #3a4036;
  --suggestion-line: #5c6554;
  --tip: #3a4036;
  --star: #6e675c;
  --cook-bg: #2c2924;
  --cook-top: #342f2a;
  --cook-ings: #34382f;
  --dock: #342f2a;
  --timer-btn: #4a453e;
  --timer-flash: #e7b1a2;
  --timer-flash-steady: rgba(231, 177, 162, 0.34);
  --drop-border: #6e675c;
  color-scheme: dark;
}
[data-theme="mork"] .towel {
  height: 4px;
  background: #5d7342;
  background-image: none;
}
[data-theme="mork"] .napkin { background-image: none; background-color: #38342e; }
[data-theme="mork"] body.login-body {
  background: #2c2924;
  background-image: none;
}
[data-theme="mork"] .btn-primary,
[data-theme="mork"] .chip:has(input:checked) span,
[data-theme="mork"] .badge { color: #f6f3ea; }
[data-theme="mork"] .badge { background: #5d7342; }
[data-theme="mork"] .nav a[aria-current="page"] { color: var(--ink); }
[data-theme="mork"] .btn-danger { border-color: #6e675c; color: #e4d7c4; }
[data-theme="mork"] .mark { box-shadow: inset 0 0 0 3px rgba(244, 240, 230, 0.28); }
