/* Tokens, base elements, the app shell and components shared by several views. View-specific rules live in the other files of this folder. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-muted: #f0f3f7;
  --border: #dde3ea;
  --border-strong: #c9d1dc;
  --text: #18212d;
  --text-muted: #657185;
  --text-faint: #98a2b3;
  --accent: #1f5fa8;
  --accent-text: #ffffff;
  --accent-soft: rgba(31, 95, 168, 0.1);
  --positive: #1a7f45;
  --negative: #c0392b;
  --warning: #b26a00;
  --warning-bg: #fff4e0;
  --warning-text: #8a5300;
  --test: #e08a00;
  --stamp-in: #1a7f45;
  --stamp-out: #1f5fa8;

  /* Saldo colour steps (timecalc SALDO_LEVELS): red for missing time, green for met, blue to violet for extra time. */
  --level-under-much: #c0392b;
  --level-under: #e9998c;
  --level-met: #2e9d5b;
  --level-over: #7cc0e0;
  --level-over-more: #2f7fc4;
  --level-over-much: #7b5cd6;

  /* Absences use warm and neutral hues, so they never read as a saldo step. */
  --absence-vacation: #e0a100;
  --absence-compensation: #c4762c;
  --absence-sick: #d6589a;
  --absence-other: #8a94a6;

  --radius: 8px;
  --radius-large: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-pop: 0 18px 48px rgba(16, 24, 40, 0.22), 0 2px 8px rgba(16, 24, 40, 0.08);

  color-scheme: light;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141a;
    --surface: #171c24;
    --surface-muted: #1f2630;
    --border: #2a3240;
    --border-strong: #3a4454;
    --text: #e5e9f0;
    --text-muted: #8d98aa;
    --text-faint: #5f6878;
    --accent: #4d8fd9;
    --accent-text: #0b1420;
    --accent-soft: rgba(77, 143, 217, 0.15);
    --positive: #4cc27c;
    --negative: #f0776a;
    --warning: #f4c46b;
    --warning-bg: #3a2c12;
    --warning-text: #f4c46b;
    --stamp-in: #4cc27c;
    --stamp-out: #4d8fd9;

    --level-under-much: #f0776a;
    --level-under: #9a5149;
    --level-met: #4cc27c;
    --level-over: #3f7f9e;
    --level-over-more: #4d8fd9;
    --level-over-much: #a48bf0;

    --absence-vacation: #e8b53a;
    --absence-compensation: #d08a48;
    --absence-sick: #e07ab0;
    --absence-other: #7d8799;

    --shadow-pop: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
h2 { font-size: 19px; letter-spacing: -0.01em; }
h3 { font-size: 15px; }
h4 { margin: 14px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
code, pre, kbd { font-family: "Cascadia Mono", Consolas, monospace; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* Controls */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 120ms ease-out;
}
button:hover:not(:disabled), .button:hover { border-color: var(--border-strong); background: var(--surface-muted); text-decoration: none; }
button:active:not(:disabled), .button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.primary:hover:not(:disabled), .button.primary:hover { background: var(--accent); filter: brightness(1.08); }
button.link {
  height: auto; padding: 2px 4px; border: 0; background: none; color: var(--accent); font-weight: 500;
}
button.link:hover:not(:disabled) { background: none; text-decoration: underline; }
button.danger, .danger { color: var(--negative); }
button.icon-button, .button.icon-button { width: 32px; padding: 0; }
button.ghost { border-color: transparent; background: transparent; }

input, select, textarea {
  height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  color: var(--text); font: inherit;
}
textarea { width: 100%; height: auto; padding: 6px 8px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type="checkbox"] { height: auto; accent-color: var(--accent); }
input[type="number"] { width: 84px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.time-input { width: 68px; text-align: center; font-variant-numeric: tabular-nums; }
.time-input.invalid { border-color: var(--negative); outline-color: var(--negative); }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch .track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--border-strong); transition: background-color 150ms ease-out; }
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 180ms var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Text helpers */
.muted { color: var(--text-muted); }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.error-text { color: var(--negative); white-space: pre-wrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }
.badge {
  display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 8px; border-radius: 10px;
  background: var(--surface-muted); color: var(--text-muted); font-size: 12px; font-weight: 500; vertical-align: middle;
}
.issue-key { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.issue-summary { color: var(--text-muted); }
.status-new, .status-dirty { color: var(--warning); }
.status-synced { color: var(--positive); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cards and figures */
.card { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.card-header .actions, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card.highlight { border-color: var(--accent); }
.card.reminder { border-color: var(--warning); background: var(--warning-bg); }
.card.reminder p { margin: 0 0 10px; }

.stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.stats > div { display: flex; flex-direction: column; gap: 1px; }
.stats span { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.stats strong { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

.balance { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; align-items: center; }
.balance dt { color: var(--text-muted); }
.balance dd { min-width: 0; margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.warnings { margin: 12px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--warning-bg); color: var(--warning-text); list-style: none; }
.warnings li + li { margin-top: 4px; }

.hint { margin-top: 12px; padding: 8px 12px; border-radius: 6px; background: var(--surface-muted); }
.hint ol { margin: 4px 0 0; padding-left: 20px; }
.hint summary { cursor: pointer; }
.steps { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.token-form { margin: 6px 0; }
.token-form input { width: min(320px, 100%); }

.form-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 14px; background: var(--surface-muted); }
.chips li.locked { padding-right: 10px; opacity: 0.85; }

/* Bookings saved without a Jira, listed on today's page */
.missing-issue-list { margin: 0; padding: 0; list-style: none; }
.missing-issue-list li { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--warning) 25%, transparent); }
.missing-issue-list li:last-child { border-bottom: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th {
  padding: 6px 8px; border-bottom: 1px solid var(--border-strong); color: var(--text-muted); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-align: left; text-transform: uppercase;
}
td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tfoot td { border-top: 2px solid var(--border-strong); border-bottom: 0; font-weight: 650; }
.table-scroll { overflow-x: auto; }

/* Absence input (type plus optional percent) */
.absence-select.has-absence { border-color: var(--accent); }
.absence-input { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.absence-percent { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.absence-percent input { width: 4em; text-align: right; }

/* Tempo account */
.account-select { max-width: 240px; }
.account-select.invalid { border-color: var(--negative); }

/* Page header: title with optional previous / next links and actions on the right */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.page-head-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.page-head h2 { min-width: 0; }
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* App shell */
.app { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; height: 100vh; padding: 14px 10px;
  border-right: 1px solid var(--border); background: var(--surface);
}
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-size: 14px; font-weight: 600; }
.brand-mark { flex: none; width: 28px; height: 28px; }
.rail-item {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--text-muted);
  font-weight: 500; transition: background-color 150ms ease-out, color 150ms ease-out;
}
.rail-item:hover { background: var(--surface-muted); color: var(--text); text-decoration: none; }
.rail-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 0 4px; }
.test-badge {
  align-self: flex-start; padding: 3px 8px; border-radius: 5px; background: var(--test); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}

.main-column { display: flex; flex-direction: column; min-width: 0; }
.app-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.app-bar-brand { display: none; }
.quick-trigger {
  justify-content: flex-start; width: min(440px, 100%); height: 34px; gap: 10px; padding: 0 8px 0 10px; border-color: var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 400;
}
.quick-trigger .icon { width: 18px; height: 18px; color: var(--accent); }
.quick-trigger kbd, .kbd {
  margin-left: auto; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-muted);
  color: var(--text-muted); font-size: 11px; line-height: 1.5;
}
.app-status { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--text-muted); font-size: 13px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }
.save-state.is-saving::before { background: var(--warning); }
.update-button { background: var(--positive); border-color: var(--positive); color: #fff; }

.page { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 1480px; padding: 18px 24px 64px; }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; max-width: 560px; padding: 10px 14px; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); cursor: pointer; transform-origin: bottom right; animation: toast-in 220ms var(--ease);
}
.toast pre { margin: 0; font-family: inherit; white-space: pre-wrap; }
.toast.error { background: var(--negative); color: #fff; }
.toast.info { background: var(--text); color: var(--bg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

.tabbar, .sheet, .sheet-backdrop { display: none; }

/* Dialog (booking) */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px;
  background: rgba(8, 12, 18, 0.45); animation: fade-in 160ms ease-out;
}
.dialog-backdrop { overflow-y: auto; }
.dialog { width: min(560px, 100%); box-shadow: var(--shadow-pop); transform-origin: top center; animation: pop-in 200ms var(--ease); }
.dialog .issue-summary { margin-top: 4px; }
.dialog .form-grid { align-items: start; }
.dialog #booking-hours { width: 96px; font-size: 16px; text-align: right; }
.quick-hours { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.quick-hours button { height: 28px; padding: 0 10px; font-size: 13px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog-actions .muted { margin-right: auto; font-size: 12px; }
.booking-dialog { width: min(640px, 100%); }
.booking-issue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 32px; }
.booking-issue .issue-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-issue.is-empty { justify-content: space-between; }
.booking-dialog .issue-picker { max-height: 320px; margin: 8px 0 0; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.97); } }

/* Jira picker and suggestions */
.issue-picker { max-height: 460px; margin-bottom: 12px; padding: 12px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-muted); }
.issue-picker .search { width: 100%; }
.picker-section h4 { margin-top: 12px; }
.issue-list { margin: 0; padding: 0; list-style: none; }
.issue-row { display: flex; align-items: center; gap: 6px; }
.issue-pick {
  flex: 1; justify-content: flex-start; gap: 8px; min-width: 0; height: auto; padding: 6px 8px; border: 0; background: none; text-align: left;
  font-weight: 400;
}
.issue-pick .issue-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-pick:hover:not(:disabled) { background: var(--surface); }
.issue-extra { margin-left: auto; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.star { height: auto; padding: 2px 4px; border: 0; background: none; color: var(--text-muted); font-size: 17px; }
.star:hover:not(:disabled) { background: none; }
.star.active { color: #e0a100; }

/* Settings */
.settings-view { display: flex; flex-direction: column; gap: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.settings-grid > .is-wide { grid-column: 1 / -1; }
.settings-view .form-grid input { width: 100%; }
.template-table input { width: 100%; }
.template-table th:nth-child(1) { width: 18%; }
.template-table th:nth-child(3) { width: 20%; }
.template-table th:nth-child(4) { width: 232px; }
.template-table td:nth-child(4) { white-space: nowrap; }
.template-table th:nth-child(5) { width: 36px; }
.chip-toggles { display: inline-flex; gap: 3px; }
button.chip-toggle {
  width: 26px; height: 26px; padding: 0; border-radius: 6px; color: var(--text-muted); font-size: 11px; font-weight: 600;
}
button.chip-toggle.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px 0 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap;
}
button.chip-remove { width: 20px; height: 20px; padding: 0; border: 0; background: none; color: inherit; font-size: 10px; }
select.chip-add { width: auto; max-width: 120px; height: 26px; padding: 0 6px; font-size: 12px; }
.statistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.statistics td { padding: 4px 6px; }
.statistics td.share { width: 80px; }
.statistics td.share span { display: block; min-width: 2px; height: 8px; border-radius: 4px; background: var(--accent); }

.login { display: flex; justify-content: center; padding: 15vh 16px 0; }
.login .login-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: min(380px, 100%); }
.login .login-card p { margin: 0; }
.login .brand-mark { width: 56px; height: 56px; }

.profile-menu { display: flex; align-items: center; gap: 4px; min-width: 0; }
.profile-name { overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.data-transfer-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.data-transfer-actions p { margin: 6px 0 0; font-size: 12px; }
.data-transfer-year { width: 84px; }
.data-transfer-report { margin: 12px 0 0; font-size: 13px; }
.excel-download-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.excel-download-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.excel-download-list button { margin-left: auto; }
.data-transfer-preview { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--warning); border-radius: 8px; background: var(--warning-bg); }
.data-transfer-preview ul { margin: 8px 0; padding-left: 20px; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-transfer-preview p { margin: 0 0 10px; font-size: 12px; }

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

@media (max-width: 1100px) {
  .settings-grid, .statistics-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 64px minmax(0, 1fr); }
  .rail { align-items: center; padding: 14px 8px; }
  .rail-item { justify-content: center; width: 44px; padding: 0; }
  .rail-item span, .rail-brand span:last-child, .rail-foot .save-state, .rail-foot .profile-name { display: none; }
  .rail-brand { padding: 4px 0 16px; }
  .rail-foot .test-badge { align-self: center; writing-mode: vertical-rl; }
}

/* Phone: no rail; a tab bar at the bottom with a sheet for the less used pages. */
@media (max-width: 640px) {
  .app { display: block; }
  .rail { display: none; }
  .app-bar { position: static; height: 52px; padding: 0 14px; gap: 8px; }
  .app-bar-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
  .quick-trigger { width: 36px; padding: 0; justify-content: center; margin-left: auto; }
  .quick-trigger span, .quick-trigger kbd { display: none; }
  .app-status { margin-left: 0; }
  .app-status .save-state span { display: none; }
  .page { gap: 12px; padding: 12px 14px 96px; }
  .card { padding: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form-grid > label { padding-top: 8px; }

  .toast { left: 14px; right: 14px; top: 12px; bottom: auto; max-width: none; transform-origin: top center; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px; height: auto; padding: 6px 0; border: 0; border-radius: 8px;
    background: none; color: var(--text-muted); font-size: 11px; font-weight: 500;
  }
  .tab:hover:not(:disabled) { background: none; text-decoration: none; }
  .tab .icon { width: 24px; height: 24px; }
  .tab.active { color: var(--accent); }
  .sheet-backdrop { position: fixed; inset: 0; z-index: 28; display: block; background: rgba(0, 0, 0, 0.32); animation: fade-in 180ms ease-out; }
  .sheet {
    position: fixed; left: 10px; right: 10px; bottom: 76px; z-index: 29; display: flex; flex-direction: column; gap: 2px; padding: 6px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop);
    transform-origin: bottom right; animation: pop-in 220ms var(--ease);
  }
  .sheet a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
  .sheet a:hover { background: var(--surface-muted); text-decoration: none; }
  .sheet a.active { color: var(--accent); }
}
