/* Timetap — "Organic" design system port. Tokens from
   design_handoff_timetap_ui/design-system/styles.css; Figtree only (no
   Caprasimo — deliberately dropped per the handoff), vendored locally
   since the V1 architecture runs with no internet access. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
}

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: rgba(32, 30, 29, 0.16);

  --neutral-100: #f9f4ed;
  --neutral-200: #eee7db;
  --neutral-300: #dcd3c4;
  --neutral-400: #c0b6a5;
  --neutral-500: #a19786;
  --neutral-600: #82796a;
  --neutral-700: #645c50;
  --neutral-800: #474238;
  --neutral-900: #2e2b25;

  --accent-100: #fff2eb;
  --accent-200: #ffe1d0;
  --accent-300: #ffc6a5;
  --accent-400: #f6a06b;
  --accent-500: #d67f48;
  --accent-600: #b2622d;
  --accent-700: #8c491a;
  --accent-800: #643312;
  --accent-900: #402310;

  --sage-100: #f0fae1;
  --sage-200: #e1eecc;
  --sage-300: #ccdbb2;
  --sage-400: #aebf92;
  --sage-500: #8fa073;
  --sage-600: #728157;
  --sage-700: #56633f;
  --sage-800: #3d472b;
  --sage-900: #272e1b;

  --live-dot: #2fb355;
  --live-halo: rgba(47, 179, 85, 0.25);
  --go: #2f8f44;
  --go-hover: #256f36;
  --go-active: #1c5628;
  --idle-dot: #a19786;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, 0.22);

  --color-card: #ffffff;              /* inputs and cards lifted off the surface */
  --ink-rgb: 32, 30, 29;              /* the text colour, for see-through hovers, tracks and borders */
  --strong-bg: var(--color-text);     /* the dark pills: the week's total, the chosen language and range */
  --strong-text: var(--color-bg);
  --strong-kicker: var(--neutral-400);
  --strong-soft: var(--neutral-300);
  --go-soft: #eaf7e6;
  --backdrop: rgba(32, 30, 29, 0.5);
  color-scheme: light;
}

/* Dark mode: the moon button next to EN / NO (theme.js puts data-theme on <html>; until someone picks, it follows the
   device). The ramps run the other way, so a light tint behind text stays a quiet tint and dark text stays readable. */
:root[data-theme="dark"] {
  --color-bg: #1a1815;
  --color-surface: #26231f;
  --color-text: #efe7da;
  --color-accent: #d98551;
  --color-accent-2: #9fb07f;
  --color-divider: rgba(239, 231, 218, 0.14);

  --neutral-100: #23201c;
  --neutral-200: #2c2924;
  --neutral-300: #3a352f;
  --neutral-400: #514b43;
  --neutral-500: #6f685d;
  --neutral-600: #8f877a;
  --neutral-700: #b0a798;
  --neutral-800: #cfc6b6;
  --neutral-900: #ebe3d5;

  --accent-100: #2d1d12;
  --accent-200: #3e2717;
  --accent-300: #5a361c;
  --accent-400: #8a4f25;
  --accent-500: #c26f3a;
  --accent-600: #d98551;
  --accent-700: #f0a272;
  --accent-800: #ffc6a5;
  --accent-900: #ffe1d0;

  --sage-100: #1e2318;
  --sage-200: #262d1e;
  --sage-300: #354029;
  --sage-400: #4c5939;
  --sage-500: #6e7d53;
  --sage-600: #8d9e70;
  --sage-700: #acbd8f;
  --sage-800: #cad9b0;
  --sage-900: #e1eecc;

  --go: #2f8f44;
  --go-hover: #36a04e;
  --go-active: #3bb057;
  --idle-dot: #6f685d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);

  --color-card: #2f2b26;
  --ink-rgb: 239, 231, 218;
  --strong-bg: #3a352f;
  --strong-text: #efe7da;
  --strong-kicker: #a39a8b;
  --strong-soft: #c9c0b0;
  --go-soft: #1f3324;
  --backdrop: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(198, 113, 57, 0.3); }

select, input, textarea, button { font-family: inherit; }

.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--neutral-700); font-size: 13px; }

/* ── Nav ─────────────────────────────────────────────────────────── */

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}

button.nav-brand { background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; }
button.nav-brand { display: flex; align-items: center; }
.brand-word { height: 26px; width: auto; display: block; }
.brand-mark { height: 30px; width: auto; display: none; } /* where the whole name doesn't fit */
.login-logo { height: 40px; width: auto; display: block; margin-bottom: 10px; }
@media (max-width: 480px) {
  .brand-word { display: none; }
  .brand-mark { display: block; }
}

.nav-links { display: contents; } /* desktop: the links stay in the nav bar's own row */

.nav-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-link.active { font-weight: 600; color: var(--accent-700); }

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--color-divider);
}

.nav-user { font-size: 14px; color: var(--neutral-700); }

/* EN / NO */
.lang-toggle { display: inline-flex; flex: none; border: 1px solid var(--color-divider); border-radius: 999px; overflow: hidden; }
.lang-toggle button { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 10px; background: none; border: 0; color: var(--neutral-700); cursor: pointer; }
.lang-toggle button:hover { background: var(--neutral-100); }
.lang-toggle button.active { background: var(--strong-bg); color: var(--strong-text); cursor: default; }
.login-lang { position: fixed; top: 16px; right: 18px; display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--color-divider); border-radius: 999px; background: none; color: var(--neutral-700); cursor: pointer; }
.theme-toggle:hover { background: var(--neutral-100); color: var(--color-text); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ── Buttons & pills ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.btn:hover { background: rgba(var(--ink-rgb), 0.07); }
.btn:active { background: rgba(var(--ink-rgb), 0.14); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { display: block; flex: none; }

.btn-cream { background: var(--neutral-100); border-color: var(--color-divider); }
.btn-cream:hover { background: var(--neutral-200); }
.btn-cream:active { background: var(--neutral-300); }

.btn-primary {
  background: var(--color-accent);
  border-color: transparent;
  color: var(--color-bg);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 30px;
  min-height: 50px;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-600); }
.btn-primary:active { background: var(--accent-700); }

.btn-go {
  background: var(--go);
  border-color: transparent;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 30px;
  min-height: 50px;
  box-shadow: var(--shadow-md);
}
.btn-go:hover { background: var(--go-hover); }
.btn-go:active { background: var(--go-active); }

.btn-clockout {
  background: var(--accent-600);
  border-color: transparent;
  color: var(--accent-100);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 30px;
  min-height: 50px;
  box-shadow: var(--shadow-md);
}
.btn-clockout:hover { background: var(--accent-700); }
.btn-clockout:active { background: var(--accent-800); }

.btn-sm { font-size: 13px; font-weight: 600; padding: 8px 18px; min-height: 36px; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
}
.btn-icon-sm { width: 36px; height: 36px; padding: 0; border-radius: 999px; }

.btn-dashed {
  background: transparent;
  border: 1px dashed rgba(var(--ink-rgb), 0.3);
  color: var(--accent-700);
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
}
.btn-dashed:hover { background: rgba(198, 113, 57, 0.1); }

.btn-block { width: 100%; }

/* ── Forms ───────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--neutral-800); }

.input, select.input, textarea.input {
  width: 100%;
  min-height: 44px;
  padding: 9px 18px;
  font-size: 15px;
  color: var(--color-text);
  background: var(--neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
}
.input:hover { border-color: rgba(var(--ink-rgb), 0.35); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input {
  border-radius: 18px;
  padding: 11px 16px;
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}
.input-on-white { background: var(--color-card); }
.input-on-panel { background: var(--neutral-100); }

input[type="time"].input, input[type="date"].input { cursor: text; }
/* A date input has a wide intrinsic size (Firefox most of all); without these two lines the second of a
   pair spills out of its card. */
.day-controls .field { flex: 1 1 0; min-width: 0; }
input[type="date"].input { min-width: 0; width: 100%; }

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-field input { accent-color: var(--color-accent); width: 16px; height: 16px; }
.checkbox-field input:disabled { opacity: 0.45; }

/* ── Page shell ──────────────────────────────────────────────────── */

.page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px 96px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.page-header h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 2px; }
.page-header .meta { font-size: 14px; color: var(--neutral-700); }

.viewing-as-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--neutral-700);
}
.viewing-as-row select { min-height: 40px; padding: 6px 16px; width: auto; }

.period-nav { display: flex; align-items: center; gap: 8px; }
/* Week and Month: the title block keeps one width, so the arrows and "This week/month" stay put whatever the line under
   the title says - it gives way a little on a narrower window, so the week total still fits beside the arrows. */
.page-header:has(.period-nav) > div:first-child { flex: 1 1 17rem; max-width: 27rem; }

.total-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 20px;
  border-radius: 20px;
  background: var(--strong-bg);
  color: var(--strong-text);
  /* Stays on the right of the week heading, as wide as its numbers: a long line inside (part-time sick leave) wraps
     instead of widening it and pushing it onto a line of its own. */
  margin-left: auto;
  min-width: 14rem;
}
.total-card #week-sick-note { width: 0; min-width: 100%; }
.total-card .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--strong-kicker); }
.total-card .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.total-card .delta { font-size: 12px; color: var(--strong-soft); }

/* ── Login ───────────────────────────────────────────────────────── */

.login-page { display: flex; justify-content: center; padding-top: 96px; }
.login-card {
  width: min(380px, 100%);
  background: var(--color-surface);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.login-card h2 { font-size: 26px; letter-spacing: -0.02em; }
.login-note { font-size: 14px; color: var(--neutral-700); margin: -4px 0 4px; }
.login-error {
  background: var(--accent-200);
  color: var(--accent-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 14px;
}
.login-footer {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--neutral-700);
}

/* ── Live status strip ───────────────────────────────────────────── */

.status-board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 0 4px;
}
.status-board .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-700);
  margin-right: 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  background: var(--color-surface);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: block; background: var(--idle-dot); }
.status-dot.on { background: var(--live-dot); box-shadow: 0 0 0 3px var(--live-halo); }
.status-pill .total { color: var(--neutral-700); }
.status-pill.own { font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.22); }

/* ── Clock card ──────────────────────────────────────────────────── */

.clock-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 20px;
}
.clock-card.state-project { background: var(--accent-200); border: 2px solid var(--color-accent); }
.clock-card.state-between { background: var(--sage-100); border: 2px solid var(--sage-500); }
.clock-card.state-out { background: var(--color-surface); border: 2px solid rgba(var(--ink-rgb), 0.12); }

.clock-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.clock-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.clock-who { font-size: 13px; color: var(--neutral-700); }

.clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--accent-800);
}
.clock-card.state-between .clock-badge { background: var(--color-card); color: var(--sage-800); }
.clock-card.state-out .clock-badge { color: var(--neutral-800); }
.clock-badge .dot { width: 8px; height: 8px; border-radius: 50%; display: block; background: var(--color-accent); }
.clock-card.state-between .clock-badge .dot { background: var(--live-dot); }
.clock-card.state-out .clock-badge .dot { background: rgba(var(--ink-rgb), 0.3); }

.clock-number { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.clock-card.state-out .clock-number { color: var(--neutral-800); }
.clock-sub { font-size: 15px; color: var(--neutral-800); }
.clock-guard { font-size: 13px; color: var(--neutral-800); }
.forgotten-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; padding: 8px 12px; border-radius: 14px; background: var(--accent-200); color: var(--accent-800); font-size: 13px; }
.clock-guard.near { color: var(--accent-700); }
.worktime-over { color: var(--accent-800); font-weight: 600; }
.clock-guard.over { color: var(--accent-800); font-weight: 600; }

.clock-switch-note {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-800);
  background: var(--sage-200);
  border: 1px solid var(--sage-400);
  padding: 6px 14px;
  border-radius: 999px;
}

.clock-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }


.project-select {
  min-height: 46px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--neutral-100);
  border: 1px solid var(--color-divider);
  color: var(--color-text);
  cursor: pointer;
}
.project-select.pending {
  background: var(--go-soft);
  border: 2px dashed var(--go);
  box-shadow: 0 0 0 4px rgba(47, 143, 68, 0.16);
}
.project-select-label { font-size: 12px; font-weight: 600; color: var(--neutral-800); }

.clock-field { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
/* clocked in: the project side - "Working on", the menu, a line about it, and the one button under it */
.clock-project { display: flex; flex-direction: column; gap: 6px; width: 300px; max-width: 100%; }
.clock-project .project-select { width: 100%; }
.clock-project-note { font-size: 13px; color: var(--neutral-700); min-height: 20px; }
.clock-project .btn-go, .clock-project .btn-clockout { width: 100%; }
.clock-day-actions { margin-top: 6px; }

/* ── Week header + strip ─────────────────────────────────────────── */

.week-strip {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 4px 4px 12px;
  margin-bottom: var(--space-6);
}

.day-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: left;
  padding: 14px 14px 16px;
  border-radius: 22px;
  cursor: pointer;
  background: var(--color-surface);
  border: 2px solid transparent;
  font-family: inherit;
  color: inherit;
}
.day-card:hover { filter: brightness(0.985); }
.day-card.selected { background: var(--neutral-100); border-color: var(--color-accent); box-shadow: var(--shadow-md); }

.day-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.day-card-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.day-card-date { font-size: 12px; color: var(--neutral-700); }
.day-card-total { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-text); }
.day-card-total.zero { color: var(--neutral-700); }

.day-progress { display: block; height: 8px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.1); overflow: hidden; }
.day-progress-fill { display: block; height: 100%; border-radius: 999px; background: var(--sage-500); }
.day-progress-fill.today { background: var(--color-accent); }

.day-card-footer { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--neutral-700); min-height: 16px; }
.note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-2); display: block; }

/* ── Today / day panel ───────────────────────────────────────────── */

.day-panel { background: var(--color-surface); border-radius: var(--radius-lg); padding: 24px 26px 26px; }

.day-panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-4); margin-bottom: 20px; }
.day-panel-head.multi { flex-direction: column; align-items: stretch; gap: 14px; }
.day-panel-head.multi .workday-rows { width: 100%; }
.workday-row .period-length { min-width: 64px; }
.workday-foot { margin-top: 4px; }
.day-panel-head h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 2px; }
.day-panel-sub { font-size: 14px; color: var(--neutral-800); }

.lunch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 18px; }
.lunch-row .label { font-size: 12px; font-weight: 600; color: var(--neutral-800); }
.lunch-status { font-size: 14px; color: var(--neutral-800); }
.workday-rows { display: flex; flex-direction: column; gap: 8px; }
.workday-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.workday-row .label { font-size: 12px; font-weight: 600; color: var(--neutral-800); }
.time-input {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--neutral-100);
  border: 1px solid var(--color-divider);
  color: var(--color-text);
}
.time-24h { width: 84px; text-align: center; font-family: inherit; font-variant-numeric: tabular-nums; }
.time-24h.time-invalid { border-color: var(--accent-700); background: var(--accent-100); }
.arrow { color: var(--neutral-700); }
.tracked-label { font-size: 14px; color: var(--neutral-800); }
.saved-flash { font-size: 12px; font-weight: 700; color: var(--sage-700); }
.saved-flash.error { color: var(--accent-700); }

.entries-list { display: flex; flex-direction: column; gap: 12px; }

.entry-card { background: var(--neutral-100); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.entry-project-select { min-height: 40px; padding: 7px 16px; font-size: 14px; font-weight: 600; border-radius: 999px; background: var(--sage-200); border: 1px solid var(--color-divider); color: var(--color-text); cursor: pointer; max-width: 220px; }
.entry-time-input { min-height: 40px; padding: 7px 16px; font-size: 15px; border-radius: 999px; background: var(--color-card); border: 1px solid var(--color-divider); color: var(--color-text); }
.running-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 16px; font-size: 14px; font-weight: 600; border-radius: 999px; background: var(--accent-200); color: var(--accent-800); }
.running-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); display: block; }
.entry-duration { font-size: 15px; font-weight: 700; min-width: 66px; }
.entry-delete { margin-left: auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--neutral-700); cursor: pointer; }
.entry-delete:hover { background: rgba(198, 113, 57, 0.12); color: var(--accent-700); }
.entry-comment { width: 100%; min-height: 44px; padding: 11px 16px; font-size: 14px; line-height: 1.5; border-radius: 16px; background: var(--color-card); border: 1px solid var(--color-divider); color: var(--color-text); resize: vertical; }

.day-comment-footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-divider); }
.day-comment-footer label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-800); margin-bottom: 8px; }
.day-comment-textarea { width: 100%; min-height: 66px; padding: 12px 16px; font-size: 14px; line-height: 1.5; border-radius: 18px; background: var(--neutral-100); border: 1px solid var(--color-divider); color: var(--color-text); resize: vertical; }

/* ── History badge ("edited by") ─────────────────────────────────── */

.history-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-200);
  color: var(--accent-800);
  border: none;
  cursor: pointer;
}
.history-badge.self { background: var(--neutral-200); color: var(--neutral-800); }
.history-log {
  flex-basis: 100%;
  max-height: 160px;
  overflow-y: auto;
  background: var(--color-card);
  border: 1px solid var(--color-divider);
  border-radius: 14px;
  padding: 8px 10px;
  margin-top: 4px;
}
.history-entry { font-size: 12px; color: var(--neutral-800); padding: 6px 0; border-bottom: 1px dashed var(--color-divider); }
.history-entry:last-child { border-bottom: none; }
.history-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent-2); margin-left: 6px; vertical-align: middle; }

/* ── Cards (generic surface) ─────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.card-note { font-size: 14px; color: var(--neutral-800); margin-bottom: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); align-items: start; }

.card-sage { background: var(--sage-100); }

/* ── Projects accordion ──────────────────────────────────────────── */

.project-list { display: flex; flex-direction: column; gap: 8px; }
.project-row { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; }
.project-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.project-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.project-summary-main { flex: 1 1 auto; min-width: 0; }
.project-summary .name { font-size: 17px; font-weight: 700; display: block; }
.project-summary .pmeta { font-size: 13px; color: var(--neutral-700); }
.project-share-bar { width: 140px; height: 10px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.1); overflow: hidden; flex: none; }
.project-share-fill { display: block; height: 100%; border-radius: 999px; }
.project-total { font-size: 19px; font-weight: 700; flex: none; min-width: 80px; text-align: right; }
.chevron { flex: none; transition: transform 0.15s; color: var(--neutral-700); }
.chevron.open { transform: rotate(180deg); }

.project-days { border-top: 1px solid var(--color-divider); padding: 10px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.project-day-row { background: var(--neutral-100); border-radius: 22px; overflow: hidden; }
.project-day-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.project-day-summary .day-label { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.note-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sage-200); color: var(--sage-800); }
.project-day-total { font-size: 14px; font-weight: 700; }
.project-day-entries { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.project-people-title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-700); margin: 4px 4px 0; }
.project-person-row { display: flex; align-items: baseline; gap: 12px; background: var(--neutral-100); border-radius: 16px; padding: 8px 16px; font-size: 14px; }
.project-person-row .person-name { flex: 1 1 auto; font-weight: 600; font-size: 14px; }
.project-person-row .person-share { color: var(--neutral-700); font-size: 13px; }
.project-person-row .person-total { font-weight: 700; min-width: 64px; text-align: right; }
.entry-person { font-weight: 600; min-width: 110px; }
.project-entry-card { background: var(--color-card); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }

/* ── Month ───────────────────────────────────────────────────────── */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: var(--space-6); }
.stat-card { background: var(--color-surface); border-radius: 22px; padding: 16px 18px; }
.stat-card .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-700); }
.stat-card .value { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.stat-card .note { font-size: 13px; color: var(--neutral-700); }

.calendar-weekdays { display: grid; grid-template-columns: 2.2rem repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.calendar-weekdays span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-700); text-align: center; }
.calendar-grid { display: grid; grid-template-columns: 2.2rem repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: var(--space-6); }
.calendar-cell {
  min-height: 82px;
  border-radius: 18px;
  padding: 10px 12px;
  background: var(--neutral-100);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.calendar-week { align-self: center; justify-self: center; font: inherit; font-size: 12px; font-weight: 600; color: var(--neutral-700); background: none; border: 0; border-radius: 999px; padding: 4px 6px; cursor: pointer; }
.calendar-week:hover { background: var(--neutral-100); color: var(--color-accent); }
.calendar-cell.blank { visibility: hidden; cursor: default; }
.calendar-cell.today { background: var(--accent-200); border-color: rgba(198, 113, 57, 0.45); }
.calendar-cell.selected { background: var(--neutral-100); border-color: var(--color-accent); box-shadow: var(--shadow-md); }
/* Month: days picked to mark (holiday, sick leave ...) */
.month-pick-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 12px; }
.month-pick-bar #month-pick-text { margin-right: auto; font-size: 14px; }
.calendar-grid.picking .calendar-cell:not(.blank) { cursor: copy; }
.calendar-cell.picked { background: var(--accent-100); border-color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent); }
.calendar-date { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.calendar-total { font-size: 15px; font-weight: 700; color: var(--color-text); }
.calendar-total.zero { color: var(--neutral-700); }
.calendar-bar { height: 6px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.1); overflow: hidden; margin-top: auto; }
.calendar-bar-fill { display: block; height: 100%; border-radius: 999px; }

.month-day-panel { background: var(--color-surface); border-radius: var(--radius-lg); padding: 22px 26px; }
.month-segment-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--color-divider); }
.month-segment-row:last-of-type { border-bottom: none; }
.month-segment-row .range { font-size: 14px; font-variant-numeric: tabular-nums; }
.month-segment-row .dur { font-size: 14px; font-weight: 700; margin-left: auto; }
.month-segment-comment { flex-basis: 100%; font-size: 13px; color: var(--neutral-800); }
.month-day-comment { margin-top: 12px; padding: 12px 14px; background: var(--sage-100); border-radius: 14px; font-size: 13px; color: var(--sage-800); }

/* ── Account ─────────────────────────────────────────────────────── */

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background: var(--accent-200);
  color: var(--accent-800);
  border: 1px solid var(--accent-300);
  border-radius: 18px;
  padding: 10px 16px;
  margin-bottom: var(--space-4);
  font-size: 14px;
  font-weight: 600;
}
.banner span { flex: 1 1 240px; }
.banner-lines { flex: 1 1 240px; display: grid; gap: 6px; }
.banner .banner-close { align-self: flex-start; margin: -4px -8px -4px auto; background: transparent; border-color: transparent; color: inherit; }
.banner .banner-close:hover { background: var(--accent-300); }
.range-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.range-pill.active { background: var(--strong-bg); border-color: transparent; color: var(--strong-text); }
.range-pill.active:hover { background: var(--neutral-800); }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Admin ───────────────────────────────────────────────────────── */

.admin-summary { font-size: 14px; color: var(--neutral-700); }
.admin-summary.warn { color: var(--accent-700); font-weight: 600; }
.admin-form-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.people-list { display: flex; flex-direction: column; gap: 8px; }
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--neutral-100);
  border-radius: 20px;
  padding: 10px 16px;
}
.person-name { font-size: 16px; font-weight: 600; }
.person-meta { font-size: 13px; color: var(--neutral-700); }
.person-week-total { font-size: 15px; font-weight: 700; margin-left: auto; }

.tag-pair-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tag-list { display: flex; flex-direction: column; gap: 6px; }
.tag-list-row { display: flex; align-items: center; gap: 10px; background: var(--neutral-100); border-radius: 14px; padding: 8px 14px; font-size: 13px; }
.tag-list-row .uid { font-variant-numeric: tabular-nums; min-width: 124px; font-weight: 600; }
.tag-kind-chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag-kind-chip.person { background: var(--accent-200); color: var(--accent-800); }
.tag-kind-chip.project { background: var(--sage-200); color: var(--sage-800); }
.tag-list-row .owner { flex: 1 1 auto; }
.tag-kind-chip.unpaired { background: var(--neutral-300); color: var(--neutral-800); }
.tag-list-row .device { color: var(--neutral-700); }
.tag-list-row .seen-at { color: var(--neutral-700); font-variant-numeric: tabular-nums; }
.recent-taps-head { display: flex; align-items: center; gap: 12px; }
.recent-taps-head h3 { margin: 0; }
.recent-taps-head .btn { margin-left: auto; }
.recent-taps-empty { font-size: 13px; color: var(--neutral-700); }

/* ── Admin: projects list, folded sections, dialog ───────────────── */

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.section-head .section-title { margin: 0; }
.section-head .btn { margin-left: auto; }
.person-row .row-actions { margin-left: auto; display: flex; gap: 6px; flex: none; }
.person-row .project-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.archived-projects { margin-top: 10px; }
.archived-projects > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--neutral-700); padding: 6px 4px; }
.archived-projects .people-list { margin-top: 6px; }
.person-meta.error-text { color: var(--accent-700); font-weight: 600; }
.archived-chip { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--neutral-300); color: var(--neutral-800); margin-left: 8px; vertical-align: middle; }

.admin-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.admin-fold > summary::-webkit-details-marker { display: none; }
.admin-fold > summary h3 { margin: 0; }
.admin-fold > summary::after { content: "▾"; margin-left: auto; color: var(--neutral-700); transition: transform 0.15s; }
.admin-fold[open] > summary::after { transform: rotate(180deg); }
.admin-fold[open] > summary { margin-bottom: 10px; }
.fold-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.dialog { border: none; border-radius: 26px; padding: 22px 24px; width: min(480px, calc(100vw - 28px)); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: var(--backdrop); }
.dialog h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.dialog p { font-size: 14px; color: var(--neutral-800); margin: 0 0 10px; }
.dialog .field { margin-top: 6px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.btn-danger { background: var(--accent-700); border-color: transparent; color: var(--accent-100); }
.btn-danger:hover { background: var(--accent-800); }
.btn-danger:disabled { opacity: 0.4; }
.btn-danger-quiet { color: var(--accent-700); font-size: 13px; padding: 6px 12px; margin-left: auto; }

/* ── Layout helpers ──────────────────────────────────────────────── */

section { margin-bottom: var(--space-6); }
h2.section-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }


/* ── Phone layout ───────────────────────────────────────────────────
   Below 640 px: a slim top bar plus a bottom tab bar, tighter cards, all seven week days on one row,
   and rows that wrap instead of running off the screen. Inputs are 16 px so iPhones don't zoom in on focus. */

@media (max-width: 640px) {
  /* -- navigation: top bar (who you are) + bottom tabs (where you go) */
  .main-nav { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; }
  .nav-brand { margin-right: 0; font-size: 18px; }
  .nav-divider { display: none; }
  .lang-toggle button { padding: 4px 8px; font-size: 11px; }
  .nav-user { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .main-nav .btn { min-height: 34px; padding: 4px 14px; font-size: 13px; flex: none; }
  .nav-links {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--color-bg);
    border-top: 1px solid var(--color-divider);
    box-shadow: 0 -6px 16px rgba(46, 43, 37, 0.08);
  }
  .nav-link { flex: 1 1 0; padding: 11px 4px; text-align: center; font-size: 14px; border-radius: 14px; }
  .nav-link.active { background: var(--accent-200); }

  .page-container { padding: 4px 14px 92px; }
  section { margin-bottom: var(--space-4); }

  /* -- page headers: title, then controls on their own compact rows */
  .page-header { gap: 10px; margin-bottom: 12px; }
  .page-header > div:first-child { flex: 1 1 100%; }
  .page-header h2 { font-size: 22px; }
  .page-header .meta { font-size: 13px; }
  .viewing-as-row { flex: 1 1 100%; }
  .viewing-as-row select { flex: 1 1 auto; min-width: 0; }
  .period-nav { flex: 1 1 auto; }
  .total-card #week-sick-note { width: auto; }
  .total-card { flex: 1 1 100%; margin-left: 0; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 16px; border-radius: 16px; }
  .total-card .value { font-size: 22px; }
  .total-card .delta { margin-left: auto; }
  .range-pills { margin-bottom: 12px; }

  /* -- login */
  .login-page { padding: 64px 14px 0; }
  .login-card { padding: var(--space-4); border-radius: 26px; }

  /* -- clock card: everything full width, big thumb-sized actions */
  .clock-card { padding: 16px; gap: 14px; border-radius: 24px; margin-bottom: 14px; }
  .clock-main { flex: 1 1 100%; }
  .clock-number { font-size: 34px; }
  .clock-side { width: 100%; align-items: stretch; }
  .clock-field { align-items: stretch; width: 100%; }
  .clock-project { width: 100%; }
  .project-select { width: 100%; min-width: 0; }
  .clock-side .btn { min-height: 48px; }
  .status-board { margin-bottom: 18px; gap: 6px; }

  /* -- week strip: all seven days on one row */
  .week-strip { gap: 4px; padding: 0 0 6px; margin-bottom: 14px; }
  .day-card { padding: 8px 0 9px; gap: 6px; border-radius: 14px; align-items: center; text-align: center; border-width: 2px; }
  .day-card-head { flex-direction: column; align-items: center; gap: 0; }
  .day-card-name { font-size: 12px; }
  .day-card-date { display: none; }
  .day-card-total { font-size: 12px; white-space: nowrap; letter-spacing: -0.03em; }
  .day-progress { width: 76%; height: 5px; }
  .day-card-footer { display: none; }

  /* -- day panel and entries */
  .day-panel, .month-day-panel { padding: 16px 14px 18px; border-radius: 24px; }
  .day-panel-head { gap: 10px; margin-bottom: 14px; }
  .day-panel-head h3 { font-size: 19px; }
  .entry-card { padding: 12px; border-radius: 18px; gap: 8px; }
  /* row 1: project, duration, delete — row 2: start -> end (the ::after is the line break) */
  .entry-head { gap: 8px; }
  .entry-project-select { order: 1; max-width: 100%; flex: 1 1 0; min-width: 0; }
  .entry-duration { order: 2; min-width: 0; }
  .entry-delete { order: 3; margin-left: 0; }
  .entry-head::after { content: ""; order: 4; flex: 1 1 100%; height: 0; }
  .entry-head > .entry-time-input, .entry-head > .arrow, .entry-head > .running-pill { order: 5; }
  .entry-head > .history-badge { order: 6; }
  .day-comment-footer { margin-top: 16px; padding-top: 14px; }
  .lunch-row { margin: 10px 0 14px; }
  .time-24h { width: 96px; }

  /* -- month */
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .stat-card { padding: 12px 14px; border-radius: 18px; }
  .stat-card .value { font-size: 19px; }
  .calendar-weekdays, .calendar-grid { gap: 4px; grid-template-columns: 1.7rem repeat(7, minmax(0, 1fr)); }
  .calendar-week { font-size: 10px; padding: 2px; }
  .calendar-weekdays { margin-bottom: 4px; }
  .calendar-weekdays span { font-size: 10px; letter-spacing: 0.02em; }
  .calendar-grid { margin-bottom: 14px; }
  .calendar-cell { min-height: 58px; padding: 6px 2px; border-radius: 12px; align-items: center; text-align: center; gap: 3px; }
  .calendar-date { font-size: 12px; }
  .calendar-total { font-size: 11px; white-space: nowrap; letter-spacing: -0.03em; }
  .calendar-bar { width: 70%; }

  /* -- projects */
  .project-summary { flex-wrap: wrap; gap: 8px 10px; padding: 14px; }
  .project-summary .name { font-size: 16px; }
  .project-total { min-width: 0; font-size: 17px; }
  .project-share-bar { order: 9; flex: 1 1 100%; width: 100%; height: 6px; }
  .project-days { padding: 8px 10px 12px; }
  .project-day-summary { padding: 10px 14px; }
  .project-day-entries { padding: 2px 14px 12px; }
  .entry-person { min-width: 0; }

  /* -- cards (Account, Admin) */
  .card { padding: 16px; border-radius: 24px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .day-controls .field { flex: 1 1 0; min-width: 0; }
  input[type="date"].input { min-width: 0; }
  .btn-primary, .btn-go, .btn-clockout { font-size: 16px; padding: 10px 22px; min-height: 46px; }

  /* -- admin lists: wrap instead of running off the card */
  .tag-list-row { flex-wrap: wrap; gap: 4px 8px; padding: 10px 12px; }
  .tag-list-row .uid { flex: 1 1 100%; min-width: 0; }
  .tag-list-row .owner { min-width: 0; }
  .person-row { flex-wrap: wrap; gap: 6px 12px; }
  .dialog { padding: 18px 16px; border-radius: 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
  .tag-pair-row > * { flex: 1 1 100%; width: 100% !important; }

  /* -- 16 px form text: anything smaller makes iPhones zoom the page when a field is tapped */
  .input, select.input, textarea.input, .entry-time-input, .time-input, .entry-comment, .day-comment-textarea,
  .project-select, .entry-project-select { font-size: 16px; }
}

/* Very small phones (≈320-360 px): the seven-day strip and calendar get a hair tighter, and the clock buttons stack. */
@media (max-width: 360px) {
  .page-container { padding-left: 10px; padding-right: 10px; }
  .main-nav { padding-left: 10px; padding-right: 10px; }
  .day-card-total { font-size: 10.5px; letter-spacing: -0.04em; }
  .calendar-total { font-size: 10px; letter-spacing: -0.04em; }
}

/* ── Admin: who is on which project ──────────────────────────────── */

.access-pill { margin-left: 8px; vertical-align: middle; font: inherit; font-size: 11px; font-weight: 600; padding: 2px 10px; border: 0; border-radius: 999px; background: var(--neutral-300); color: var(--neutral-800); cursor: pointer; }
.access-pill:hover { background: var(--neutral-400, var(--neutral-300)); }
.picker-tools { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 13px; color: var(--neutral-700); }
.picker-tools span { margin-right: auto; }
.picker-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.picker-list.off { opacity: 0.45; pointer-events: none; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 15px; cursor: pointer; }
.picker-row:hover { background: var(--neutral-100); }
.picker-row[hidden] { display: none; }

.day-comment-by { margin-top: 4px; font-size: 12px; color: var(--neutral-700); }
.entry-card select:disabled, .entry-card input:disabled, .workday-row input:disabled { opacity: 0.65; cursor: default; }

/* ── Admin: tags on each person/project row ──────────────────────── */

.subhead { margin: 18px 0 4px; font-size: 15px; }
.optional { font-weight: 400; color: var(--neutral-700); }
.tag-toggle { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.tag-toggle.none { color: var(--accent-800); font-weight: 600; }
.person-block { display: flex; flex-direction: column; gap: 4px; }
.tag-panel { margin: 0 0 4px 16px; padding: 10px 14px; background: var(--neutral-100); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tag-panel[hidden] { display: none; }
.tag-panel .tag-list-row { width: 100%; background: var(--neutral-200, var(--neutral-300)); }
.tag-panel .tag-list-row { flex-wrap: nowrap; }
.tag-panel .tag-list-row .uid { min-width: 0; }

/* ── Absence (sick, holiday ...) ─────────────────────────────────── */

.day-card-absence, .calendar-absence { align-self: flex-start; margin-top: 3px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-200); color: var(--accent-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.absence-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; font-size: 14px; }
.absence-row .label { font-weight: 700; }
.absence-row .status { flex: 1 1 200px; color: var(--neutral-800); }
.dialog .field + .field { margin-top: 10px; }
.counter-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; font-size: 14px; }
.counter-list .muted { font-size: 13px; }
.rule-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.rule-row .name { flex: 1 1 auto; }
.dialog .day-controls .field { margin-top: 0; }

.type-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--neutral-100); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.type-row.hidden-type { opacity: 0.65; }
.type-row .name-input { flex: 1 1 220px; width: auto; }
.type-row .row-actions { display: flex; gap: 6px; }
.type-row .type-select { width: auto; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.type-control { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

/* ── Public holidays and company days off ────────────────────────── */

.day-card-dayoff, .calendar-dayoff { align-self: flex-start; margin-top: 3px; font-size: 11px; font-weight: 600; line-height: 1.2; padding: 2px 8px; border-radius: 10px; background: var(--sage-200); color: var(--sage-800); max-width: 100%; }
.calendar-cell.day-off { background: var(--sage-100, var(--neutral-100)); }

/* ── Absence statistics (Account, Admin people) ──────────────────── */

.year-stats { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: 10px; font-size: 14px; width: 100%; }
.stat-row.zero { color: var(--neutral-700); }
.stat-row.over { background: var(--accent-200); color: var(--accent-800); font-weight: 600; }
.absence-toggle.over { background: var(--accent-200); color: var(--accent-800); border-radius: 999px; padding: 1px 10px; text-decoration: none; font-weight: 600; }
.absence-panel .vacation-override { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-top: 6px; }
.absence-panel .vacation-override .input { width: 90px; padding-top: 6px; padding-bottom: 6px; }
.type-warn { width: 76px !important; padding: 5px 8px !important; font-size: 13px; }
.year-nav { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.rules-text { margin: 8px 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }

/* Phones: the day cards are too narrow for a chip, so the card itself is tinted (sage = day off, peach = absence). */
@media (max-width: 640px) {
  .day-card-dayoff, .day-card-absence, .calendar-dayoff, .calendar-absence { display: none; }
  .day-card.has-dayoff { background: var(--sage-200); }
  .day-card.has-absence, .calendar-cell.has-absence { background: var(--accent-200); }
}

/* ── Help (?) and the quieter Account/Admin layout ───────────────── */

.help-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; border: 1.5px solid var(--neutral-500, var(--neutral-700)); border-radius: 50%; background: transparent; color: var(--neutral-700); font: inherit; font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: middle; }
.help-btn:hover, .help-btn[aria-expanded="true"] { background: var(--neutral-700); color: var(--neutral-100); border-color: var(--neutral-700); }
.help-text { margin: 8px 0 12px; padding: 10px 14px; background: var(--neutral-100); border-radius: 14px; font-size: 13px; line-height: 1.5; color: var(--neutral-800); }
.help-text[hidden] { display: none; }
.help-text p { margin: 0 0 8px; }
.help-text code { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--neutral-200); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.help-link { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent-700); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.help-link:hover { text-decoration: underline; }
.login-card .help-text { margin: 0; }
.help-text ul { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-title-row h3 { margin: 0; }
.year-nav.tight { margin: 0; gap: 8px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-picks .pick { display: inline-flex; align-items: center; gap: 2px; padding: 5px 10px; border-radius: 999px; background: var(--neutral-100); font-size: 14px; cursor: pointer; }
.inline-fold { margin-top: 12px; }
.inline-fold > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--neutral-700); padding: 4px 0; }
.inline-fold form { margin-top: 10px; }
.vac-headline { font-size: 22px; font-weight: 700; margin: 4px 0 6px; }
.vac-headline.over { color: var(--accent-800); }
.stat-row.good { color: var(--sage-800); font-weight: 600; }
.stat-row .quiet { color: var(--neutral-700); font-weight: 400; font-size: 12px; }
.vac-admin-head { font-size: 13px; }

/* ── Admin: network ─────────────────────────────────────────────── */

.network-status { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; }
.net-status-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.net-status-label { min-width: 120px; font-weight: 600; color: var(--neutral-700); font-size: 13px; }
.net-scan-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.net-scan-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; font: inherit; padding: 7px 12px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.net-scan-row:hover:not(:disabled) { background: var(--neutral-100); }
.net-scan-row:disabled { opacity: 0.5; cursor: default; }
.net-scan-name { font-size: 15px; font-weight: 600; }
.net-scan-meta { font-size: 12px; color: var(--neutral-700); }
.person-meta.quiet { color: var(--accent-800); font-weight: 600; }

/* ── Time bank ──────────────────────────────────────────────────── */

.bank-balance { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 6px; }
.bank-balance.negative { color: var(--accent-800); }
.tb-short-totals { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 12px; font-size: 14px; }
.tb-short-number { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bank-admin { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.day-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0; font-size: 13px; }
.stat-row .btn-icon-sm { width: 26px; height: 26px; flex: none; }
.stat-row .count { white-space: nowrap; }

/* ── Time bank page ─────────────────────────────────────────────── */

.nav-short { display: none; }
.nav-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.nav-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--color-accent); vertical-align: 2px; }
.tb-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.tb-card { flex: 1 1 240px; margin: 0; }
.tb-card .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-700); }
.tb-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--neutral-100); border-radius: 16px; padding: 10px 14px; font-size: 14px; }
.tb-when { min-width: 92px; font-weight: 600; }
.tb-extra { min-width: 66px; font-weight: 600; color: var(--sage-800); }
.tb-request .tb-extra { color: inherit; }
.tb-projects { display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1 1 auto; }
.tb-projects .project-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tb-main { flex: 1 1 200px; min-width: 0; }
.tb-detail { font-size: 12px; margin-top: 2px; }
.tb-candidate.open .tb-row { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tb-form { background: var(--neutral-200); border-radius: 0 0 16px 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tb-form-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; }
.tb-hours { width: 110px; text-align: right; }
.tb-total.over { color: var(--accent-800); font-weight: 600; }
.tb-form-actions { display: flex; gap: 8px; }
.tb-approvals { margin-bottom: 14px; }
.tb-approvals .tb-row { background: var(--accent-200); }
.tb-comment { flex: 1 1 160px; width: auto; min-width: 0; }
@media (max-width: 640px) {
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .nav-link { position: relative; }
  .nav-dot { position: absolute; top: 5px; right: 3px; margin: 0; }
  .nav-badge { position: absolute; top: 3px; right: 2px; margin: 0; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
  .tb-when { min-width: 0; }
  .tb-hours { width: 96px; }
}

/* ── Overtime rules ─────────────────────────────────────────────── */

.rule-set { background: var(--neutral-100); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rule-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; }
.rule-head .name-input { flex: 1 1 200px; width: auto; font-weight: 600; }
.tier-table { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.tier-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.tier-label { min-width: 74px; color: var(--neutral-700); font-weight: 600; font-size: 13px; }
.tier-hours, .tier-percent { width: 84px; text-align: right; }
.rule-sentence { font-size: 12px; }
.tb-rule { color: var(--sage-800); font-weight: 600; }
@media (max-width: 640px) { .tier-hours, .tier-percent { width: 72px; } .tier-label { min-width: 62px; } }
.date-link { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.date-link:hover { text-decoration-style: solid; color: var(--accent-800); }
.tb-basis { font-size: 12px; flex: 1 1 100%; }
.additions { width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border-top: 1px solid var(--color-divider); padding-top: 8px; }
.additions .lab { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-700); }
.addition-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.addition-name { width: 130px; }
.addition-days { width: auto; max-width: 230px; }
.addition-from, .addition-to { width: 86px; text-align: center; }
.combine-row { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.combine-row select { width: auto; }
.stat-row.near { font-weight: 600; background: var(--neutral-200); }
.tb-limits-flag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.tb-limits-flag:empty { display: none; }
#tb-extra-count { background: var(--neutral-300); color: var(--neutral-800); }
#tb-hidden-toggle { margin-top: 10px; }
#tb-hidden { margin-top: 8px; opacity: 0.85; }
.tb-limits-flag.near { background: var(--neutral-300); color: var(--neutral-800); }
.tb-limits-flag.over { background: var(--accent-200); color: var(--accent-800); }
.tb-period { font-size: 13px; margin: 0 4px 8px; }
.day-card-rest { display: inline-flex; vertical-align: middle; margin-left: 5px; color: var(--accent-800); background: var(--accent-200); border-radius: 999px; padding: 2px; }
.bank-days { font-size: 16px; font-weight: 500; color: var(--neutral-700); letter-spacing: 0; }
.rest-row { flex-wrap: wrap; }
.rest-row .tb-detail { flex: 1 1 100%; }

.fresh-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fresh-actions > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.fresh-actions .muted { font-size: 13px; }
#admin-notices .banner { margin-bottom: 10px; }

/* ── Your patterns (Account; server/insights.py) ─────────────────── */
.insight-card { margin-bottom: 20px; }
.insight-notes { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.insight-notes li { background: var(--neutral-100); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.insight-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 28px; }
@media (max-width: 760px) { .insight-grid { grid-template-columns: minmax(0, 1fr); } .insight-project { grid-template-columns: minmax(0, 7em) minmax(0, 1fr); } }
.insight-head { font-size: 13px; font-weight: 600; margin: 4px 0 8px; }
.insight-head .muted { font-weight: 400; margin-left: 6px; }
.insight-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 18px; border-bottom: 1px solid var(--neutral-300); }
.insight-col { position: relative; flex: 1 1 0; height: 100%; display: flex; justify-content: center; align-items: flex-end; }
.insight-bar { width: min(24px, 70%); background: var(--sage-600); border-radius: 4px 4px 0 0; min-height: 1px; }
.insight-col.current .insight-bar { background: var(--sage-400); }
.insight-target { position: absolute; left: 12%; right: 12%; height: 2px; background: var(--neutral-700); }
.insight-cap { position: absolute; font-size: 11px; font-weight: 600; white-space: nowrap; transform: translateY(-100%); padding-bottom: 2px; }
.insight-col:hover .insight-bar, .insight-col:focus .insight-bar { background: var(--sage-700); }
.insight-axis { display: flex; gap: 2px; font-size: 11px; color: var(--neutral-700); margin-top: 4px; }
.insight-axis span { flex: 1 1 0; text-align: center; }
.insight-projects { display: flex; flex-direction: column; gap: 6px; }
.insight-project { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; }
.insight-project .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-project .project-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.insight-project .track { display: flex; align-items: center; gap: 6px; min-width: 0; }
.insight-project .fill { height: 10px; background: var(--sage-600); border-radius: 0 4px 4px 0; flex: none; }
.insight-project .value { white-space: nowrap; color: var(--neutral-800); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Who's away (Month page) ───────────────────────────────────────── */
.team-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--neutral-800); margin-bottom: 8px; }
.team-legend span { display: inline-flex; align-items: center; gap: 6px; }
.team-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.team-away { display: flex; flex-direction: column; gap: 4px; }
.team-row { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; }
.team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-strip { display: grid; gap: 2px; }
.team-head .team-strip span { font-size: 10px; color: var(--neutral-700); white-space: nowrap; overflow: visible; }
.team-cell { height: 14px; border-radius: 2px; background: var(--neutral-200); }
.team-cell.weekend { background: var(--neutral-300); }
.team-cell.away, .team-swatch.away { background: var(--sage-600); }
.team-cell.asked, .team-swatch.asked { background: repeating-linear-gradient(135deg, var(--sage-400) 0 3px, var(--neutral-100) 3px 5px); }
@media (max-width: 640px) { .team-row { grid-template-columns: minmax(0, 5.5em) minmax(0, 1fr); } .team-cell { height: 12px; } }

/* ── Phase 2: remote days and phones ──────────────────────────────── */
.remote-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--sage-200); color: var(--sage-800); margin-left: 6px; vertical-align: middle; }
.calendar-cell .remote-chip, .day-card-remote { margin: 2px 0 0; align-self: flex-start; }
.phone-code { background: var(--neutral-100); border-radius: 14px; padding: 10px 14px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.phone-code-line { font-size: 14px; }
.phone-code-line.big { font-size: 28px; font-weight: 700; letter-spacing: 0.08em; }

/* --- The holiday planner (Time bank) ----------------------------------------------------------------------------------
   Holiday is the accent, time off sage; dashed and pale while not approved yet; hatched while a request waits; public
   holidays shaded. */
.holiday-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.holiday-head h3 { margin: 0; }
.holiday-year { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.holiday-summary { margin: 10px 0 14px; }
.holiday-left { font-size: 28px; font-weight: 700; line-height: 1.2; }
.holiday-left.negative { color: var(--accent-700); }
.holiday-open { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-700); }
.holiday-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px 18px; }
.hc-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; text-transform: capitalize; }
.hc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hc-weekday { font-size: 10px; text-align: center; color: var(--neutral-600); text-transform: uppercase; }
.hc-day {
  font: inherit; font-size: 11px; line-height: 1; aspect-ratio: 1; min-width: 0; padding: 0;
  border: 1px solid transparent; border-radius: 6px; background: var(--neutral-100); color: var(--color-text); cursor: pointer;
}
.hc-day:hover { border-color: var(--neutral-500); }
.hc-day.nonwork { background: transparent; color: var(--neutral-600); }
.hc-day.dayoff { background: var(--neutral-300); color: var(--neutral-800); }
.hc-day.in-period { background: var(--neutral-200); }
.hc-day.plan-vacation { background: var(--color-accent); color: var(--color-bg); font-weight: 700; }
.hc-day.plan-time_bank { background: var(--sage-600); color: var(--sage-100); font-weight: 700; }
.hc-day.unapproved { border: 1.5px dashed var(--accent-700); }
.hc-day.plan-vacation.unapproved { background: var(--accent-200); color: var(--accent-800); }
.hc-day.plan-time_bank.unapproved { background: var(--sage-200); color: var(--sage-800); border-color: var(--sage-700); }
.hc-day.waiting { background: repeating-linear-gradient(135deg, var(--neutral-200) 0 3px, var(--neutral-400) 3px 5px); color: var(--color-text); }
.hc-day.today { outline: 2px solid var(--color-text); outline-offset: -2px; }
.hc-day.selected { box-shadow: inset 0 0 0 2px var(--accent-700); background: var(--accent-100); color: var(--accent-900); }
.holiday-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 12px; font-size: 12px; color: var(--neutral-700); }
.holiday-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hc-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid transparent; }
.hc-swatch.plan-vacation { background: var(--color-accent); }
.hc-swatch.plan-time_bank { background: var(--sage-600); }
.hc-swatch.plan-vacation.unapproved { background: var(--accent-200); border: 1.5px dashed var(--accent-700); }
.hc-swatch.waiting { background: repeating-linear-gradient(135deg, var(--neutral-200) 0 3px, var(--neutral-400) 3px 5px); }
.hc-swatch.dayoff { background: var(--neutral-300); }
.holiday-form label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tb-row.past { opacity: 0.6; }
.tag-kind-chip.unapproved { background: var(--accent-100); color: var(--accent-800); border: 1px dashed var(--accent-700); }

/* Week and Month: holiday not approved yet */
.calendar-absence.waiting { background: repeating-linear-gradient(135deg, var(--neutral-200) 0 3px, var(--neutral-300) 3px 5px); color: var(--color-text); border: 1px dashed var(--neutral-500); }
.day-card-absence.unapproved, .calendar-absence.unapproved { background: var(--accent-100); border: 1px dashed var(--accent-700); }
@media (max-width: 640px) {
  .calendar-cell.absence-unapproved { background: var(--accent-100); outline: 1px dashed var(--accent-700); outline-offset: -2px; }
  .holiday-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.holiday-form select.input { width: auto; flex: 0 1 220px; }

/* IT > Backup & restore: the backups on the Pi */
.backup-list { max-height: 320px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--neutral-100); }
.backup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--color-divider); cursor: pointer; }
.backup-row:last-child { border-bottom: 0; }
.backup-row input:disabled + .backup-when { color: var(--neutral-700); }
.backup-when { font-weight: 600; min-width: 130px; }
.backup-what { flex: 1 1 160px; }
.backup-size { margin-left: auto; }

/* IT > Software: what is new in the versions on offer */
.software-changes { margin-top: 10px; }
.software-version h4 { margin: 10px 0 4px; font-size: 14px; }
.software-version ul { margin: 0 0 6px; padding-left: 20px; font-size: 14px; line-height: 1.5; }

/* IT > Readers > Install the reader software */
.install-progress { margin: 10px 0 4px; max-width: 420px; }
.install-log { max-height: 220px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--neutral-100);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; color: var(--neutral-700); }

/* Timetap Lite (IT > Software): the parts that belong to the Norwegian working-time rules are hidden; nothing is removed */
body.edition-lite .full-only { display: none !important; }
body:not(.edition-lite) .lite-only { display: none !important; }

/* Week: Register absence, above the days (docs/plan-2026-11.md) */
.week-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: -4px 0 12px; }
.stat-row .count.negative { color: var(--accent-800); }

/* IT > Secure address: a Timetap address or your own domain */
.https-choice { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0 6px; }
.input-suffix { display: flex; align-items: center; gap: 6px; }
.input-suffix .input { flex: 1 1 auto; min-width: 0; }
.input-suffix span { color: var(--neutral-700); white-space: nowrap; }

/* A holiday decision for the person: declined, with the admin's reason */
.tag-kind-chip.declined { background: var(--accent-100); color: var(--accent-800); border: 1px solid var(--accent-300); }
.holiday-news #holiday-news-text { flex: 1 1 320px; display: grid; gap: 4px; }
.input.input-error { border-color: var(--accent-700); box-shadow: 0 0 0 2px var(--accent-200); }

/* Two-step login: the code on the login page, the QR code and the recovery codes */
.two-step-code { font-size: 22px; letter-spacing: 0.2em; text-align: center; font-variant-numeric: tabular-nums; }
.two-step-qr { display: flex; justify-content: center; margin: 6px 0 10px; }
.two-step-qr svg { width: 200px; height: 200px; border-radius: 12px; }
.two-step-secret { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; background: var(--neutral-200); border-radius: 10px; padding: 8px 12px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 8px 0 12px; padding: 12px 16px; background: var(--neutral-200); border-radius: 12px; font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
