@font-face { font-family: "Instrument Sans"; src: url("fonts/sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root, [data-theme="dark"] {
  color-scheme: dark;
  /* Graphit wie ein Uhrengehäuse, Messing/Amber wie Zeiger und Stempel */
  --bg: #0f1216;
  --bg-glow: radial-gradient(1000px 520px at 6% -14%, rgba(242, 179, 61, .07), transparent 60%),
             radial-gradient(900px 520px at 108% 4%, rgba(96, 134, 196, .07), transparent 60%);
  --surface: #161a20;
  --surface-2: #1c2129;
  --surface-3: #262c36;
  --line: rgba(255, 255, 255, .05);
  --line-2: rgba(255, 255, 255, .10);
  --text: #ebe8e1;
  --muted: #979ca6;
  --faint: #646a75;
  --accent: #f2b33d;
  --accent-2: #ffd27a;
  --accent-ink: #1d1505;
  --glow: 0 0 0 1px rgba(242, 179, 61, .4), 0 10px 32px -12px rgba(242, 179, 61, .55);
  --pos: #4ade9b;
  --neg: #fb7185;
  --warn: #f2b33d;
  --c-work: #6ea8fe; --c-home: #2dd4bf; --c-vacation: #4ade9b; --c-special-leave: #a3e635;
  --c-release: #a78bfa; --c-sick: #fb7185; --c-overtime-off: #fb923c; --c-excused: #94a3b8;
  --c-holiday: #f472b6; --c-weekend: #2a313c; --c-open: #f2b33d;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --r: 20px; --r-sm: 12px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #eceef1;
  --bg-glow: radial-gradient(1000px 520px at 6% -14%, rgba(242, 179, 61, .12), transparent 60%);
  --surface: #ffffff; --surface-2: #f3f4f6; --surface-3: #e3e6eb;
  --line: rgba(15, 18, 30, .07); --line-2: rgba(15, 18, 30, .13);
  --text: #15181d; --muted: #59606b; --faint: #8c929c;
  --accent: #c98a12; --accent-2: #a86f06;
  --c-weekend: #e9ebef;
  --shadow: 0 1px 2px rgba(15, 18, 30, .05);
  --glow: 0 0 0 1px rgba(201, 138, 18, .35), 0 8px 24px -12px rgba(201, 138, 18, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); background-image: var(--bg-glow); background-attachment: fixed;
  color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.i { width: 19px; height: 19px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.04em; line-height: 1.08; margin: 6px 0 0; font-weight: 650; }
h2 { font-size: 16px; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 620; }

/* Shell */
body.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; padding: 28px 14px; display: flex; flex-direction: column; gap: 32px;
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(24px);
}
.brand { font-weight: 720; font-size: 27px; letter-spacing: -.05em; padding: 0 12px; }
.brand span { color: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a, .nav-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted);
  font-weight: 520; transition: background .15s, color .15s; border: 0; background: none; cursor: pointer; width: 100%; text-align: left;
}
.nav a:hover, .nav-btn:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a.active .i { color: var(--accent-2); }
.logout { margin-top: auto; }
.main { padding: 40px clamp(16px, 4vw, 56px) 80px; max-width: 1280px; width: 100%; }
body.bare { padding: 24px 16px; }
body.bare .main { min-height: calc(100dvh - 48px); display: grid; place-items: center; padding: 0; max-width: none; }
.auth-time { font-family: var(--mono); font-size: 15px; color: var(--muted); text-align: center; margin: -18px 0 26px; font-variant-numeric: tabular-nums; }
.auth { width: 100%; max-width: 380px; }
.auth .brand { display: block; text-align: center; font-size: 42px; margin-bottom: 28px; }
.auth .card { display: flex; flex-direction: column; gap: 16px; padding: 28px; }

@media (max-width: 860px) {
  body.app { display: block; }
  .sidebar {
    position: fixed; inset: auto 0 0 0; height: auto; z-index: 30; flex-direction: row; gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
  }
  .brand, .logout { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav a { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 7px 6px; width: auto; flex: 1; align-items: center; }
  .nav a.active { box-shadow: none; background: none; color: var(--accent-2); }
  .main { padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); }
}

/* Page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow); position: relative; min-width: 0;
}
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-3 { grid-column: 1 / -1; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .span-2, .span-3 { grid-column: auto; } }
.card-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 540; }
.card-label .i { width: 16px; height: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.big { font-variant-numeric: tabular-nums; font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-top: 12px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.empty { color: var(--faint); font-size: 14px; padding: 12px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .12s, background .15s, box-shadow .2s, border-color .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, #ffc95c, #e9a426); border-color: transparent; color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { background: linear-gradient(180deg, #ffd47a, #f2b33d); }
.btn-ghost { background: none; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.clock-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.clock-btn { height: 62px; padding: 0 30px; font-size: 17px; border-radius: 18px; min-width: 170px; }
.clock-btn .i { width: 20px; height: 20px; }

/* State pill */
.state-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.state-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-working { color: var(--pos); }
.state-working .dot { animation: pulse 1.8s infinite; }
.state-break { color: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }

/* Hero / Ring */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; border-radius: 28px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); }
@media (max-width: 600px) { .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .hero .clock-actions, .hero .facts { justify-content: center; } }
.ring { --size: 200px; width: var(--size); height: var(--size); position: relative; display: grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-3); }
.ring .ticks line { stroke: var(--line-2); stroke-width: .6; }
.ring .ticks line.h { stroke: var(--faint); stroke-width: 1.1; }
.ring .bar { stroke: url(#ring-grad); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(242, 179, 61, .4)); }
.ring.money .bar { stroke: url(#ring-grad-money); filter: drop-shadow(0 0 6px rgba(6, 182, 212, .35)); }
.ring-center { text-align: center; position: relative; }
.ring-time { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ring-of { color: var(--muted); font-size: 13px; }
.ring-pct { font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { color: var(--faint); font-size: 12px; font-weight: 560; }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hints { display: flex; flex-wrap: wrap; gap: 6px; }
.hint { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 500; border: 1px solid var(--line); }

/* Segmented */
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: var(--r-sm); gap: 4px; border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 540; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg label .i { width: 16px; height: 16px; }
.seg input:checked + label { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 540; min-width: 0; }
.input {
  height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text); font: 500 15px var(--font); outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; width: 100%;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 179, 61, .22); }
input[type="time"].input, input[type="date"].input, .input.num {  font-variant-numeric: tabular-nums;}
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row .grow { flex: 1 1 200px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.errors { padding: 12px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--neg) 12%, transparent); color: var(--neg); font-size: 14px; }

/* Toast & Banner */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 11px 18px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 540; font-size: 14px;
  animation: toast 4.2s forwards; max-width: calc(100vw - 32px);
}
.toast-ok::before { content: "✓  "; color: var(--pos); font-weight: 700; }
.toast-error { color: var(--neg); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -12px); } 7%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; } }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 11%, transparent); color: var(--warn); margin-bottom: 16px; font-weight: 540; border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }

/* Chips & Status */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c, var(--faint)) 15%, transparent); color: var(--c, var(--muted)); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-work { --c: var(--c-work); } .s-home { --c: var(--c-home); } .s-vacation { --c: var(--c-vacation); }
.s-special-leave { --c: var(--c-special-leave); } .s-release { --c: var(--c-release); } .s-sick { --c: var(--c-sick); }
.s-overtime-off { --c: var(--c-overtime-off); } .s-excused { --c: var(--c-excused); } .s-holiday { --c: var(--c-holiday); }
.s-open { --c: var(--c-open); } .s-weekend, .s-future, .s-none { --c: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Stats row */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 120px; flex: 1 1 120px; }
.stat span { color: var(--faint); font-size: 11.5px; font-weight: 600; }
.stat b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: var(--r-sm); font-size: 12px; color: var(--muted); transition: background .15s; }
.week-day:hover { background: var(--surface-2); }
.week-day.today { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.week-bar { width: 100%; max-width: 34px; height: 76px; border-radius: 9px; background: var(--surface-2); position: relative; overflow: hidden; }
.week-day.today .week-bar { background: var(--surface-3); }
.week-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: var(--c); border-radius: 9px; opacity: .9; transition: height .6s; }
.week-day b { font-weight: 600; color: var(--text); font-size: 12px;  font-variant-numeric: tabular-nums;}

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-head { font-size: 11.5px; color: var(--faint); text-align: center; font-weight: 650; padding-bottom: 2px; }
.cal-day {
  min-height: 108px; padding: 10px 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s;
}
.cal-day:hover { border-color: var(--line-2); transform: translateY(-1px); }
.cal-day.out { visibility: hidden; }
.cal-day.dim { background: transparent; }
.cal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.cal-day.s-weekend::after, .cal-day.s-none::after, .cal-day.s-future::after, .cal-day.s-open::after { display: none; }
.cal-num { font-size: 13px; color: var(--muted); font-weight: 600;  font-variant-numeric: tabular-nums;}
.cal-day.today .cal-num { color: var(--accent-2); }
.cal-hol { font-size: 11px; color: var(--c-holiday); line-height: 1.25; font-weight: 540; }
.cal-type { font-size: 11px; color: var(--c); font-weight: 650; }
.cal-ist { font-size: 15px; font-weight: 600; margin-top: auto; letter-spacing: -.03em;  font-variant-numeric: tabular-nums;}
.cal-saldo { font-size: 11px;  font-variant-numeric: tabular-nums;}
@media (max-width: 640px) {
  .cal { gap: 4px; } .cal-day { min-height: 60px; padding: 6px; } .cal-head { font-size: 10px; }
  .cal-hol, .cal-type, .cal-saldo { display: none; } .cal-ist { font-size: 10.5px; }
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--faint); font-weight: 650; font-size: 11.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.inline-bar { display: inline-block; width: 80px; height: 6px; border-radius: 6px; background: var(--surface-3); vertical-align: middle; margin-right: 8px; overflow: hidden; }
.inline-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 6px; }

/* Day editor */
.blocks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.block-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .block-row { grid-template-columns: 1fr 1fr auto; } .block-row .loc { grid-column: 1 / 3; } }

/* Vacation */
.vbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin: 18px 0 12px; }
.vbar i { display: block; height: 100%; }
.bridges { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.bridge-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.bridge-head h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.badge-top { font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.bridge-opt { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 2px; border-top: 1px solid var(--line); margin-top: 14px; }
.bridge-opt.unaffordable { opacity: .45; }
.bridge-calc { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.bridge-calc b { font-size: 19px; color: var(--text); letter-spacing: -.03em;  font-variant-numeric: tabular-nums;}
.strip { display: flex; gap: 3px; }
.strip i { flex: 1; height: 24px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; font-style: normal; font-size: 9.5px; color: var(--muted); min-width: 0;  font-variant-numeric: tabular-nums;}
.strip i.we { background: var(--c-weekend); color: var(--faint); }
.strip i.hol { background: color-mix(in srgb, var(--c-holiday) 75%, transparent); color: #fff; }
.strip i.vac { background: var(--c-vacation); color: #052e1f; font-weight: 700; }
.strip i.off { background: color-mix(in srgb, var(--c-vacation) 30%, transparent); }

/* Stats chart */
.chart { padding-top: 24px; }
.plot { position: relative; height: 210px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; border-bottom: 1px solid var(--line-2); }
.plot .goal { position: absolute; left: 0; right: 0; bottom: var(--g); border-top: 1px dashed var(--line-2); pointer-events: none; }
.plot .goal span { position: absolute; right: 0; bottom: 3px; font-size: 10.5px; color: var(--faint);  font-variant-numeric: tabular-nums;}
.col { height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; position: relative; outline: none; }
.col::before { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.col:hover::before, .col:focus-visible::before { background: color-mix(in srgb, var(--text) 4%, transparent); }
.col .tip { display: none; position: absolute; bottom: calc(var(--h) + 30px); left: 50%; transform: translateX(-50%); z-index: 5; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; white-space: nowrap; color: var(--text); pointer-events: none; font-variant-numeric: tabular-nums; }
.col .tip span { color: var(--muted); }
.col:hover .tip, .col:focus-visible .tip { display: block; }
.col:first-child .tip { left: 0; transform: none; } .col:last-child .tip { left: auto; right: 0; transform: none; }
.bar { position: relative; width: 100%; max-width: 30px; height: var(--h); min-height: 3px; border-radius: 4px 4px 0 0; background: var(--accent); transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.bar.none { background: var(--surface-3); }
.bar .v { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 5px; font-size: 11px; color: var(--muted); white-space: nowrap;  font-variant-numeric: tabular-nums;}
.xlabels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 8px; }
@media (max-width: 640px) { .plot, .xlabels { gap: 4px; } .bar .v { display: none; } }

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

/* Settings */
.qr { width: 196px; background: #fff; border-radius: 14px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.history { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.history b { color: var(--text); font-weight: 600; }
.card[id] { scroll-margin-top: 24px; }
.seg [aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--pos); font-size: 14px; line-height: 1.45; }
.cal-warn { color: var(--warn); font-size: 10px; vertical-align: 2px; }
