/* Mehrarbeit — calm surfaces, colour only where it means something. */

/* Atkinson Hyperlegible (SIL OFL, see ../fonts/OFL.txt), shipped with the
   app instead of loaded from Google: no third-party request. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --ink: #1d1f22;
  --ink-2: #5d636b;
  --ink-3: #8a9097;
  --line: #e4e1db;
  --accent: #2f6f8f;
  --accent-ink: #ffffff;
  --accent-soft: #e3eef3;
  --plus: #1f7a4d;
  --minus: #a2561b;
  --danger: #b3261e;
  --danger-ink: #ffffff;

  --t-urlaub: #1f7f86;
  --t-krank: #b0405a;
  --t-frei: #a8711a;
  --t-lernen: #5b5fb3;
  --t-feiertag: #2e7d4f;
  --t-neutral: #6b7178;
  --t-work: #2f6f8f;
  --edited: #c9861a;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 16px rgb(0 0 0 / 0.04);
  --fs-s: 13px;
  --fs-m: 15px;
  --fs-l: 17px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181b;
    --surface: #1f2226;
    --surface-2: #272a2f;
    --ink: #eceae6;
    --ink-2: #a9adb3;
    --ink-3: #7d828a;
    --line: #33373d;
    --accent: #7db8d4;
    --accent-ink: #10222b;
    --accent-soft: #23343d;
    --plus: #6cc596;
    --minus: #e2a46b;
    --danger: #f08a80;
    --danger-ink: #2b0d0a;
    --t-urlaub: #5fc0c6;
    --t-krank: #e58aa0;
    --t-frei: #e0b25e;
    --t-lernen: #a3a6ee;
    --t-feiertag: #79c99a;
    --t-neutral: #a9adb3;
    --t-work: #7db8d4;
    --edited: #e3a94a;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16181b;
  --surface: #1f2226;
  --surface-2: #272a2f;
  --ink: #eceae6;
  --ink-2: #a9adb3;
  --ink-3: #7d828a;
  --line: #33373d;
  --accent: #7db8d4;
  --accent-ink: #10222b;
  --accent-soft: #23343d;
  --plus: #6cc596;
  --minus: #e2a46b;
  --danger: #f08a80;
  --danger-ink: #2b0d0a;
  --t-urlaub: #5fc0c6;
  --t-krank: #e58aa0;
  --t-frei: #e0b25e;
  --t-lernen: #a3a6ee;
  --t-feiertag: #79c99a;
  --t-neutral: #a9adb3;
  --t-work: #7db8d4;
  --edited: #e3a94a;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs-m)/1.45 "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent); }

.page { max-width: 720px; margin: 0 auto; padding: 0 16px 120px; }

/* ---------- header ---------- */

.admin-bar {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: var(--fs-s);
  padding: 6px 16px;
}
.admin-bar a { color: inherit; font-weight: 600; }

.top {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 6px;
}
/* The Kita rainbow, only as a hairline under the header. */
.top { position: relative; padding-bottom: 12px; }
.top::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #e8590c, #f5c211, #4caf50, #26c6da, #5c7cfa, #ab47bc);
  opacity: 0.85;
}
.app-name { font-weight: 650; color: var(--ink-2); letter-spacing: 0.01em; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 550;
}

/* ---------- balance ---------- */

.konto {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 14px 0 14px;
  overflow: hidden;
}
.konto-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  text-align: left;
}
.konto-cell { display: grid; gap: 0; }
.konto-cell.right { text-align: right; }
.konto-label { font-size: var(--fs-s); color: var(--ink-2); font-weight: 600; }
.konto-value {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.konto-value.small { font-size: 20px; }
.konto-value .unit { font-size: var(--fs-m); font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.konto-value.plus { color: var(--plus); }
.konto-value.minus { color: var(--minus); }
.konto-chev { color: var(--ink-3); font-size: 18px; line-height: 1; padding-bottom: 6px; transition: transform 0.15s; }
.konto.open .konto-chev { transform: rotate(180deg); }
.konto-details { padding: 0 16px 14px; display: grid; gap: 4px; }
.konto-sub { font-size: var(--fs-s); color: var(--ink-3); }
.konto-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.konto-facts dt { font-size: var(--fs-s); color: var(--ink-2); }
.konto-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- month ---------- */

.month-nav {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.month-nav h1 { font-size: 22px; text-align: center; flex: 1; }
.month-tools { display: flex; justify-content: center; margin: -4px 0 10px; }
.month-tools:not(:has(:not([hidden]))) { display: none; }

.notice {
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: var(--fs-m);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.notice.edited { background: color-mix(in srgb, var(--edited) 14%, var(--surface)); }
.notice.locked { background: var(--accent-soft); display: block; }

/* ---------- days ---------- */

.days {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip; /* clip, not hidden: keeps the list bar sticky */
  transition: opacity 0.15s;
}
body.loading .days { opacity: 0.55; }

.list-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.list-hint { font-size: var(--fs-s); color: var(--ink-2); }
.days.selecting .list-bar { background: var(--accent-soft); }
.list-bar .btn { white-space: nowrap; flex: 0 0 auto; }
.select-toggle::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.list-bar + .week { border-top: 0; }

.week {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 4px;
  font-size: var(--fs-s);
  color: var(--ink-3);
  font-weight: 600;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.week:first-child { border-top: 0; }
.week-sum { font-weight: 500; font-variant-numeric: tabular-nums; }

.day {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.week + .day { border-top-color: transparent; }
.day:hover { background: var(--surface-2); }
.day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.day.quiet { min-height: 38px; color: var(--ink-3); }
.day.today { box-shadow: inset 4px 0 0 var(--accent); }
.day.today .dn { color: var(--accent); }

.date { display: flex; align-items: baseline; gap: 6px; width: 58px; font-variant-numeric: tabular-nums; }
.wd { font-size: var(--fs-s); color: var(--ink-2); width: 20px; }
.dn { font-size: var(--fs-l); font-weight: 650; }
.day.quiet .wd, .day.quiet .dn { color: var(--ink-3); font-weight: 500; }

.what { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.times { font-variant-numeric: tabular-nums; }
.note { font-size: var(--fs-s); color: var(--ink-2); }
/* Own changes: an orange edge line (stronger than "today", which it replaces). */
.day.edited { box-shadow: inset 4px 0 0 var(--edited); }
.hours { display: grid; justify-items: end; font-weight: 650; font-variant-numeric: tabular-nums; min-width: 44px; }
.diff { font-size: var(--fs-s); font-weight: 650; }
.diff.plus { color: var(--plus); }
.diff.minus { color: var(--minus); }
.muted { color: var(--ink-3); }
.today-mark {
  position: absolute;
  right: 16px;
  top: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.tag {
  --c: var(--t-neutral);
  display: inline-block;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border-radius: 7px;
  padding: 1px 8px;
}
.urlaub { --c: var(--t-urlaub); }
.krank { --c: var(--t-krank); }
.frei { --c: var(--t-frei); }
.lernen { --c: var(--t-lernen); }
.feiertag { --c: var(--t-feiertag); }
.neutral { --c: var(--t-neutral); }
.work { --c: var(--t-work); }

/* selecting several days */
.days.selecting .day { grid-template-columns: auto auto 1fr auto; }
.check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
}
.day.selected { background: var(--accent-soft); }
.day.selected .check {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.select-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08);
  font-weight: 600;
}
.select-count { flex: 1; }
@media (min-width: 760px) {
  .select-bar { left: 50%; right: auto; width: 720px; transform: translateX(-50%); bottom: 16px; border-radius: 16px; border: 1px solid var(--line); }
}

/* ---------- finishing ---------- */

.finish {
  margin-top: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.finish h3 { font-size: var(--fs-l); }
.finish p { color: var(--ink-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
}
.btn.small { min-height: 34px; padding: 0 12px; font-size: var(--fs-s); border-radius: 999px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); }
.btn.ghost { background: transparent; }
.btn.ghost[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger-text { color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-size: 18px;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.big { width: 48px; height: 48px; font-size: 30px; line-height: 1; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }

/* ---------- sheets ---------- */

dialog.sheet {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto auto 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  animation: sheet-up 0.2s ease-out;
}
dialog.sheet::backdrop { background: rgb(10 12 15 / 0.45); animation: fade 0.2s; }
dialog.sheet.closing { animation: sheet-down 0.16s ease-in forwards; }
@media (min-width: 640px) {
  dialog.sheet { max-width: 480px; margin: auto; border-radius: 20px; }
  .sheet-grip { display: none; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheet-down { to { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 6px 20px;
}
.sheet-title { font-size: 19px; outline: none; }
.sheet-sub { color: var(--ink-2); font-size: var(--fs-m); margin-top: 2px; }
.sheet-body {
  display: grid;
  gap: 14px;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
}

.label { font-size: var(--fs-s); font-weight: 650; color: var(--ink-2); }
.lead { font-size: var(--fs-l); }
.hint { color: var(--ink-2); font-size: var(--fs-m); }
.error { color: var(--danger); font-weight: 600; }
.error:empty, .summary:empty { display: none; }
.summary { font-variant-numeric: tabular-nums; color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip {
  min-width: 0;
  overflow-wrap: anywhere;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: var(--fs-m);
}
.chip[aria-checked="true"] {
  border-color: var(--c, var(--t-neutral));
  border-width: 2px;
  background: color-mix(in srgb, var(--c, var(--t-neutral)) 22%, var(--surface));
  color: var(--c, var(--t-neutral));
}
.chips.wide .chip { color: var(--c, var(--t-neutral)); }

.times-box { display: grid; gap: 8px; }
.shift { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; }
.shift > * { min-width: 0; }
.dash { color: var(--ink-3); }
input.time, .stack input, .copy-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: var(--fs-l);
  font-variant-numeric: tabular-nums;
}
input:focus { outline: none; border-color: var(--accent); }
.btn.ghost.small { justify-self: start; }

.stack { display: grid; gap: 10px; }

/* menu */
.menu { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  text-decoration: none;
  color: var(--ink);
}
.menu-item:first-child { border-top: 0; }
.menu-item:hover { background: var(--surface-2); }
.menu-item strong { display: block; font-weight: 600; }
.menu-item small { display: block; color: var(--ink-2); font-size: var(--fs-s); }
.chev { color: var(--ink-3); font-size: 22px; }

.segmented { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--ink-2); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.field { display: grid; gap: 6px; }

/* calendar subscription */
.qr-wrap { display: grid; place-items: center; }
.qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; }
.steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy-row input { font-size: var(--fs-s); }

.changed-days { display: grid; gap: 8px; }
.changed-day {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.changed-day:hover { border-color: var(--accent); }
.change-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 40dvh; overflow: auto; }
.change-list li { padding: 8px 12px; background: var(--surface-2); border-radius: 10px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { background: var(--danger); color: var(--danger-ink); }
body:has(.select-bar:not([hidden])) .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* login */
.login { max-width: 400px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 16px 32px; }
.login h1 { font-size: 28px; }
.login .lead { color: var(--ink-2); margin: 4px 0 24px; }
.login form { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; }
.login select, .login input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: var(--fs-l);
}
.login label { display: grid; gap: 6px; font-size: var(--fs-s); font-weight: 650; color: var(--ink-2); }
.login .btn { width: 100%; min-height: 50px; font-size: var(--fs-l); }
.login .help { text-align: center; margin-top: 18px; font-size: var(--fs-m); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- readability ----------
   Atkinson Hyperlegible slashes every zero (Ø), which makes a page full of
   clock times restless. Numbers use the phone's own UI font instead (San
   Francisco / Roboto: plain zeros, equal-width digits); text stays in
   Atkinson. Greys are darker and sizes a step larger than the template. */
:root {
  --num: ui-sans-serif, -apple-system, "SF Pro Text", system-ui, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ink-2: #4f555c;
  --ink-3: #6f757c;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink-2: #b8bcc2; --ink-3: #969ba2; }
}
:root[data-theme="dark"] { --ink-2: #b8bcc2; --ink-3: #969ba2; }

.times, .hours, .diff, .dn, .konto-value, .week-sum, .konto-facts dd, .rev-days dd,
.summary, input.time, .months .state {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.day { min-height: 56px; gap: 14px; }
.day.quiet { min-height: 40px; }
.date { width: 52px; }
.wd { width: 24px; font-size: var(--fs-s); }
.dn { font-size: 19px; font-weight: 600; }
.times { font-size: 17px; color: var(--ink); }
.times.muted { color: var(--ink-2); }
.hours { font-size: 17px; font-weight: 600; }
.diff { font-size: var(--fs-s); font-weight: 600; }
.note { font-size: var(--fs-s); }
.week { font-size: var(--fs-s); color: var(--ink-2); padding-top: 12px; }
.week-sum { font-weight: 500; }
.tag { font-size: var(--fs-s); padding: 2px 9px; }
.tag.today-tag { font-size: 12px; }
.list-hint { font-size: var(--fs-s); }
/* One font everywhere: the phone's own, plain zeros in text too. */
body, button, input, select { font-family: var(--num); }

/* Date as its own little calendar block: weekday above the day number,
   a hairline, then what happened. Keeps "Mo 2 7:30–15:00" from reading
   as one run of text. */
.day { gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.date {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  align-self: stretch;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  box-sizing: content-box;
}
.wd {
  width: auto;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.dn { font-size: 21px; line-height: 1.1; }
.day.today .wd { color: var(--accent); }
.day.quiet .dn { font-size: 18px; }

/* A splash of colour: the date block is tinted by the kind of day. */
.date {
  border-right: 0;
  padding: 5px 0;
  width: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
}
.date.plain { background: transparent; }
.date:not(.plain) .wd { color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.day.today .date { background: var(--accent); }
.day.today .date .wd, .day.today .date .dn { color: var(--accent-ink); }
.days.selecting .date { margin-left: 0; }

/* ---------- header, in the style of the day list ---------- */

.app-name { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 200deg, #e8590c, #f5c211, #4caf50, #26c6da, #5c7cfa, #ab47bc, #e8590c);
  box-shadow: inset 0 0 0 6px var(--bg);
}

.konto { padding: 10px; }
.konto-head {
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}
.konto-cell.tile {
  --c: var(--t-neutral);
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.konto-cell.tile.plus { --c: var(--plus); }
.konto-cell.tile.minus { --c: var(--minus); }
.konto-cell.tile .konto-label { color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.konto-value { font-size: 32px; }
.konto-value.small { font-size: 24px; }
.konto-value.zero { color: var(--ink); }
.konto-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 2px 0 0;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink-2);
}
.konto-more .konto-chev { padding: 0; font-size: 14px; }
.konto-details { padding: 10px 6px 4px; }

.month-nav { margin: 4px 0 12px; }
.month-nav h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.month-nav h1 .year { font-weight: 500; color: var(--ink-3); }
/* Logo: a small rainbow ring, echoing the hairline below the header. */
.logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: none;
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px);
  mask: radial-gradient(circle, transparent 6px, #000 6.5px);
}

/* Month chooser as one quiet bar like the other cards, arrows without
   their own floating circles. */
.month-nav {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px;
  margin: 0 0 12px;
}
.month-nav .icon-btn.big {
  width: 44px;
  height: 44px;
  font-size: 26px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
  border-radius: 10px;
}
.month-nav .icon-btn.big:hover { background: var(--surface-2); color: var(--ink); }
.month-nav h1 { font-size: 20px; }
.tag.today-tag { --c: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
