:root {
  --klick-red: #ed1038;
  --klick-ink: #241b1b;
  --bg: #fff;
  --surface: #fff;
  --surface-muted: #f5f6fa;
  --ink: #252731;
  --muted: #595f6e;
  --line: #e6e8ef;
  --control-line: #dce0e9;
  --accent: color-mix(in srgb, var(--theme-action) 75%, var(--ink));
  --accent-soft: var(--theme-tint);
  --action: var(--theme-action);
  --action-hover: color-mix(in srgb, var(--theme-action) 82%, var(--ink));
  --focus: var(--accent);
  --theme-line: color-mix(in srgb, var(--theme-action) 18%, #fff);
  --radius: 17px;
}
:root, [data-klick-theme="01_cat_red"] { --theme-action: #bd2349; --theme-wash: #fff4f7; --theme-tint: #f9e3eb; }
[data-klick-theme="02_dog_blue"] { --theme-action: #3458ba; --theme-wash: #f5f8ff; --theme-tint: #e0eaff; }
[data-klick-theme="03_rabbit_purple"] { --theme-action: #7544ad; --theme-wash: #fbf7ff; --theme-tint: #eee2ff; }
[data-klick-theme="04_fox_orange"] { --theme-action: #ad4b16; --theme-wash: #fff9f1; --theme-tint: #ffe3cb; }
[data-klick-theme="05_bear_brown"] { --theme-action: #86543c; --theme-wash: #fcf8f4; --theme-tint: #efe1d5; }
[data-klick-theme="06_panda"] { --theme-action: #485569; --theme-wash: #f7f9fc; --theme-tint: #e3ebf3; }
[data-klick-theme="07_tiger_yellow"] { --theme-action: #8b5a08; --theme-wash: #fffcef; --theme-tint: #ffefb9; }
[data-klick-theme="08_pig_pink"] { --theme-action: #a73868; --theme-wash: #fff7fc; --theme-tint: #f9dfed; }
[data-klick-theme="09_frog_green"] { --theme-action: #32723b; --theme-wash: #f5fbf2; --theme-tint: #e2f1d8; }

body { background: var(--bg); }
.app-header { background: #fff; border-color: var(--line); backdrop-filter: none; }
.header-inner { min-height: 74px; }
.header-brand { display: block; width: 146px; height: auto; margin-left: -12px; }
.navigation { padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-muted); }
.nav-item { border-radius: 11px; --sticker-fill: var(--line); }
.nav-item.selected { color: var(--accent); background: var(--theme-wash); box-shadow: none; --sticker-fill: var(--theme-line); }
.nav-glyph { display: grid; place-items: center; flex: none; transition: transform 160ms ease-out; }
.nav-glyph .icon { width: 25px; height: 25px; stroke-width: 1.85; }
.nav-item.selected .nav-glyph { transform: translateY(-1px); }
.nav-item:active .nav-glyph { transform: translateY(2px) scale(.93); }
.account-link { justify-self: end; display: grid; width: 44px; min-height: 44px; padding: 5px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); }
.account-avatar { display: block; border-radius: 9px; object-fit: cover; }
.profile-page { max-width: 680px; }
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px 16px; background: var(--theme-wash); }
.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; color: var(--accent); background: #fff; }
.profile-avatar .icon { width: 36px; height: 36px; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-upload { flex: 1 0 100%; }
.avatar-upload summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: .86rem; }
.avatar-upload form { margin-top: 10px; }
.avatar-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.avatar-options button { display: grid; justify-items: center; gap: 5px; padding: 8px 3px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); color: var(--ink); font-size: .82rem; }
.avatar-options button[aria-pressed="true"] { border-color: var(--theme-line); background: var(--theme-wash); color: var(--accent); }
.avatar-options button[name="theme_style"] { background: var(--theme-wash); }
.avatar-options button[name="theme_style"][aria-pressed="true"] { border-color: var(--theme-action); background: var(--theme-tint); color: var(--theme-action); }
.avatar-options img { display: block; border-radius: 11px; object-fit: cover; }
.theme-save-error { padding: 0 var(--sheet-inset); margin-top: 12px; color: #9b1c38; font-size: .85rem; }
.profile-identity { min-width: 0; overflow-wrap: anywhere; }
.profile-directory { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 10px; border-block: 1px solid var(--line); }
.profile-directory dt { font-size: .79rem; color: var(--muted); }
.profile-directory dd { margin-top: 3px; font-weight: 650; overflow-wrap: anywhere; }
.profile-avatar-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.profile-avatar-actions .stack-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; flex: 1 0 100%; gap: 8px; min-width: 0; }
.profile-avatar-actions input { width: 100%; overflow: hidden; }
.profile-avatar-actions input::file-selector-button { min-height: 40px; margin-inline-end: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; }
.profile-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block: 14px 20px; }
.profile-links a { display: grid; justify-items: start; gap: 5px; padding: 10px; color: var(--ink); text-decoration: none; }
.profile-links a:hover { border-color: var(--theme-line); background: var(--theme-wash); }
.profile-links .icon, .profile-links strong { color: var(--accent); }
.profile-links span { font-size: .86rem; }
.profile-admin-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px 15px; border-radius: var(--radius); }
.profile-admin-link .subtle-icon { background: var(--theme-wash); color: var(--accent); }
.profile-admin-link:hover { border-color: var(--theme-line); }
.profile-admin-link > .icon, .access-people .trip-row > .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.profile-form .form-field { gap: 6px; }
.profile-form .form-field > span { font-size: .875rem; color: var(--muted); }
.profile-form .form-field > :is(input, select) { min-height: 46px; border-radius: 12px; background-color: var(--surface-muted); font-size: 1rem; }
.profile-form .form-field > :is(input, select):focus { outline: 1px solid var(--accent); outline-offset: -1px; background-color: var(--theme-wash); }
.profile-logout { margin-top: 16px; }
.claim-list-heading { flex-wrap: wrap; }
.claim-list-heading .page-heading { margin-bottom: 0; }
.access-member-editor small { display: block; margin-top: 3px; color: var(--muted); }
.access-search { display: flex; gap: 7px; margin-bottom: 12px; }
.access-search input { min-width: 0; flex: 1; }
.access-member-editor { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.access-people { max-height: 400px; overflow: auto; }
.access-people .trip-row { padding-inline: 10px; }
.access-people .trip-row[aria-current="true"] { background: var(--theme-wash); border-radius: 10px; }
.nav-item, .claim-tabs a { touch-action: manipulation; }
.button.filter-trigger { gap: 7px; min-height: 40px; padding-inline: 12px; border: 1px solid var(--line); background: var(--surface-muted); color: var(--ink); }
.filter-trigger .icon { width: 16px; height: 16px; color: var(--accent); }
.button.filter-trigger:hover, .button.filter-trigger.has-filters { color: var(--accent); border-color: var(--theme-line); background: var(--theme-wash); }
.filter-trigger span { min-width: 19px; padding-inline: 4px; border-radius: 7px; background: var(--theme-tint); text-align: center; font-size: .72rem; }
.quick-sheet.choice-sheet { width: min(510px, calc(100% - 24px)); }
.choice-sheet .quick-sheet-header { border-bottom: 1px solid var(--line); }
.choice-sheet .quick-sheet-header h2 { margin: 0; font-size: 1.32rem; }
.choice-body { display: grid; gap: 15px; padding: 14px var(--sheet-inset) 16px; }
.choice-body legend { margin-bottom: 7px; font-weight: 700; }
.filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.filter-option { position: relative; cursor: pointer; }
.filter-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.filter-option span { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 42px; padding: 5px 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); color: var(--muted); font-size: .82rem; text-align: center; }
.filter-categories span { flex-direction: column; gap: 3px; min-height: 50px; line-height: 1.15; }
.filter-option .icon { width: 19px; height: 19px; }
.filter-categories .icon { color: var(--glyph, var(--muted)); }
.filter-option input:checked + span { border-color: var(--theme-line); color: var(--accent); background: var(--theme-wash); font-weight: 720; }
.filter-option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-actions { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 11px var(--sheet-inset) var(--sheet-bottom); border-top: 1px solid var(--line); background: #fff; }
.choice-actions .primary { flex: 1; }
.claim-tabs { display: flex; gap: 5px; width: min(100%, 350px); padding: 4px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); }
.claim-tabs a { display: flex; flex: 1; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding-inline: 7px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.claim-tabs a .icon { width: 17px; height: 17px; }
.claim-tabs a[aria-current="page"] { background: var(--theme-wash); box-shadow: 0 1px 4px #50202b12; color: var(--accent); }
.claim-tabs a:hover { color: var(--accent); }
.claim-scope { display: grid; gap: 16px; }
.claim-scope .claim-entity-field { position: relative; }
.claim-entity-field > label, .claim-range > legend { color: var(--ink); font-weight: 650; }
.scope-entity-button:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 46px; padding-inline: 12px; border: 1px solid var(--control-line); border-radius: 11px; background: var(--surface-muted); color: var(--ink); font-size: 1rem; text-align: start; }
.scope-entity-button .icon { width: 18px; height: 18px; color: var(--accent); }
.scope-entity-button .icon:last-child { color: var(--muted); }
.entity-options { gap: 7px; }
.entity-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); color: var(--ink); text-align: start; overflow-wrap: anywhere; }
.entity-option small { display: block; margin-top: 3px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entity-option .icon { visibility: hidden; color: var(--accent); }
.entity-option[aria-pressed="true"] { border-color: var(--theme-line); background: var(--theme-wash); }
.entity-option[aria-pressed="true"] .icon { visibility: visible; }
.claim-range { display: grid; gap: 8px; }
.claim-range > legend { padding-bottom: 7px; }
.claim-range-toggle { width: fit-content; min-height: 42px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); cursor: pointer; }
.claim-range-toggle:has(input:checked) { border-color: var(--theme-line); color: var(--accent); background: var(--theme-wash); }
.claim-range-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-muted); }
.claim-range:has(input[name="whole"]:checked) .claim-range-dates { display: none; }
.claim-range-dates .form-field > span:first-child { padding-inline-start: 3px; color: var(--muted); font-size: .8rem; }
.claim-range-dates .calendar-trigger { height: 44px; padding-inline: 7px; font-variant-numeric: tabular-nums; }
.approval-queue { display: grid; gap: 8px; }
.approval-card.trip-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: clamp(10px, 2.5vw, 16px); border-bottom: 1px solid var(--line); }
.approval-card:hover { border-color: var(--theme-line); }
.approval-card-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--theme-wash); color: var(--accent); }
.approval-card-icon .icon { --sticker-fill: var(--theme-line); width: 26px; height: 26px; }
.approval-card-amount { text-align: end; }
.approval-card-amount strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.approval-empty { background: var(--surface-muted); }
.approval-empty .approval-card-icon { margin: 0 auto 10px; }
@media (min-width: 741px) {
  .filter-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .claim-scope { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
}
@media (max-width: 740px) {
  .quick-sheet.choice-sheet { inset: auto 0 0; translate: none; width: min(510px, 100%); max-height: calc(100dvh - 20px); border-radius: 23px 23px 0 0; }
  .button.filter-trigger { min-height: 44px; }
  .claim-project-picker .claim-project-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim-range-dates .calendar-trigger { font-size: 1rem; }
}
.approval-panel { margin-bottom: 14px; overflow-wrap: anywhere; }
.approval-submit { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.approval-submit .form-field { flex: 1 1 220px; }
.approval-decision, .approval-panel > .button { margin-top: 10px; }
.claim-approved-by { margin: 0 0 10px; padding: 7px 9px; border-inline-start: 2px solid #a40c33; background: #fff4f4; color: #632435; font-size: .82rem; overflow-wrap: anywhere; }
.claim-print-warning { display: none; }
.frame { width: min(1090px, calc(100% - 56px)); }
.page { padding-top: 35px; }
.panel { box-shadow: 0 3px 14px #50202b06; }
.button { border-radius: 11px; min-height: 46px; }
.button.secondary { background: var(--surface); }
.button.secondary:hover { color: var(--accent); border-color: var(--theme-line); background: var(--theme-wash); }
.button.project-trigger { min-height: 44px; gap: 5px; padding-inline: 10px; color: var(--muted); background: var(--surface-muted); border: 1px solid var(--line); font-size: .83rem; white-space: nowrap; }
.project-trigger .icon { width: 16px; height: 16px; }
.receipt-heading { align-items: start; }
.project-choices { gap: 7px; }
.project-choices .entity-option .icon { visibility: visible; }
.project-choices .entity-option[aria-current="true"] { border-color: var(--theme-line); background: var(--theme-wash); }
.project-picker-actions .primary { justify-content: center; }
#new-project { scroll-margin-top: 86px; }
.local-tag { border-radius: 9px; }
.workspace-intro { margin-bottom: 19px; }
.workspace-intro h1 { font-size: clamp(2rem, 4.3vw, 3rem); font-weight: 780; line-height: 1.15; }
.workspace-intro .balance-date { margin-top: 9px; }
.dashboard-grid {
  grid-template-columns: minmax(0, 2.08fr) minmax(252px, 1fr);
  grid-template-areas: "balance sidebar" "ledger sidebar";
  gap: 17px 21px;
}
.ledger-sidebar { grid-area: sidebar; display: grid; gap: 17px; align-self: start; min-width: 0; }
.ledger-sidebar > .panel { grid-area: auto; min-width: 0; }
.balance {
  grid-template-columns: minmax(0, 1fr) 150px;
  min-height: 249px;
  gap: 17px 10px;
  padding: 28px 30px 22px;
  background: linear-gradient(120deg, var(--theme-wash), var(--theme-tint));
  border-color: var(--theme-line);
  border-radius: 20px;
}
.balance h2 { color: var(--accent); font-size: .92rem; }
.balance-value { margin: 9px 0 14px; color: var(--ink); font-size: clamp(2.7rem, 5.6vw, 4.2rem); font-weight: 800; }
.balance-value span { font-weight: 725; }
.balance-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px 0; font-size: .86rem; color: var(--muted); }
.balance-facts li + li { padding-left: 13px; margin-left: 13px; border-left: 1px solid var(--theme-line); }
.balance-facts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-mascot { position: relative; display: block; width: 154px; max-width: 100%; align-self: center; justify-self: center; padding: 0; border: 0; border-radius: 20px; background: transparent; }
.mascot-settings { position: absolute; inset: auto 1px 1px auto; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--theme-line); border-radius: 10px; background: var(--theme-wash); color: var(--accent); pointer-events: none; }
.mascot-settings .icon { width: 14px; height: 14px; }
.hero-mascot:hover .mascot-settings { background: #fff; }
.quick-entry { border-top: 1px dashed var(--theme-line); padding-top: 15px; }
.quick-entry .button { padding-inline: 18px; transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.quick-entry .record-button { box-shadow: 0 3px 0 var(--action-hover); }
.quick-entry .button:active { transform: translateY(2px); box-shadow: none; }
.quick-entry .record-button { width: 100%; }
.entry-drafts { grid-column: 1 / -1; min-width: 0; }
.entry-drafts p { margin-bottom: 7px; color: var(--muted); font-size: .875rem; }
.entry-drafts p:empty { display: none; }
.entry-drafts ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.entry-draft-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: var(--theme-wash);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.entry-draft-button small { color: var(--muted); font-weight: 500; text-align: start; overflow-wrap: anywhere; }
.entry-draft-button span { flex: none; }
.shortcuts, .breakdown { padding: 22px; }
.shortcuts h2, .breakdown h2 { font-size: 1.12rem; }
.shortcut { padding: 9px 8px; }
.shortcuts .report-shortcut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 78px;
  margin-top: 9px;
  padding: 11px;
  border: 1px solid var(--theme-line);
  color: var(--ink);
  background: linear-gradient(120deg, var(--theme-wash), #fff);
  border-radius: 14px;
}
.shortcuts .report-shortcut:hover { background: var(--theme-wash); border-color: color-mix(in srgb, var(--theme-action) 35%, #fff); }
.report-shortcut .subtle-icon { background: var(--theme-tint); color: var(--accent); }
.report-shortcut > .icon { width: 16px; height: 16px; color: var(--accent); }
.subtle-icon, .category-icon { border-radius: 11px; }
.taxi { --tone: #ed2851; --tile: #fee2e7; --glyph: #981539; }
.rail, .bus { --tone: #449582; --tile: #dcefe8; --glyph: #25685c; }
.meal { --tone: #ed9a40; --tile: #ffe9cd; --glyph: #8a4e26; }
.hotel { --tone: #a171b9; --tile: #efe4f6; --glyph: #714181; }
.flight { --tone: #4b9bcc; --tile: #e0f1fc; --glyph: #1a658e; }
.parking { --tone: #f0be47; --tile: #fff0c0; --glyph: #765413; }
.subway { --tone: #529ac6; --tile: #e0f1fb; --glyph: #276988; }
.rental { --tone: #9185cd; --tile: #ebe7fb; --glyph: #5b4b96; }
.fuel { --tone: #5aa58a; --tile: #e5f4ec; --glyph: #31735e; }
.toll { --tone: #e89a53; --tile: #ffeddb; --glyph: #985a24; }
.baggage { --tone: #7899ca; --tile: #e7eefb; --glyph: #496a96; }
.communications { --tone: #d67da8; --tile: #f6e6ef; --glyph: #9d4c76; }
.office { --tone: #7c9854; --tile: #eaf1db; --glyph: #4f642a; }
.other { --tone: #96776d; --tile: #f2e8e0; --glyph: #71554b; }
.breakdown-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.breakdown-header h2 { margin: 0; }
.breakdown-header > span { flex: none; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.breakdown-stack { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.breakdown-stack rect { fill: var(--tone); }
.breakdown .breakdown-rows { gap: 0; margin-top: 11px; }
.breakdown-rows li + li { border-top: 1px dashed var(--line); }
.breakdown-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  padding: 6px 3px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}
.breakdown-row:hover { background: var(--surface-muted); }
.breakdown-row:active { background: var(--tile); }
.breakdown-row .category-icon { width: 35px; height: 35px; transform: rotate(-5deg); }
.breakdown-row .category-icon .icon { width: 18px; height: 18px; stroke-width: 1.85; }
.breakdown-name, .breakdown-money { display: grid; gap: 2px; font-size: .91rem; }
.breakdown-name { overflow-wrap: anywhere; }
.breakdown-money { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown-row small { color: var(--muted); font-size: .78rem; }
.day-heading { background: var(--surface-muted); }
.day-total { color: var(--ink); }
.day-add { border-radius: 9px; }
.transaction .category-icon { width: 39px; height: 39px; }
.file-picker { background: linear-gradient(145deg, var(--theme-wash), var(--surface)); border-color: var(--theme-line); }
.file-picker.dragging { background: var(--theme-tint); border-color: var(--accent); }
.identity-card {
  border-color: var(--theme-line);
  background: var(--surface-muted);
}
.login-brand { display: block; width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); }
.identity-card h1 { font-size: clamp(2rem, 6vw, 3rem); }
.identity-card h1 i { font-weight: 800; }
.quick-sheet {
  --sheet-inset: clamp(14px, 4vw, 28px);
  --sheet-bottom: max(12px, env(safe-area-inset-bottom));
  --sheet-gap: clamp(8px, 2vw, 16px);
  --sheet-height: var(--visual-height, 100dvh);
  position: fixed;
  inset: calc(var(--visual-top, 0px) + var(--sheet-height) / 2) 0 auto;
  translate: 0 -50%;
  width: min(640px, calc(100% - 2 * var(--sheet-gap)));
  max-height: min(820px, calc(var(--sheet-height) - 48px));
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block-start: 88px;
  scroll-padding-block-end: 76px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 20px 60px #30182030, 0 0 0 1px #60213410;
  background: #fff;
  color: var(--ink);
}
.quick-sheet::backdrop { background: #26131955; }
.quick-sheet .stack-form { gap: 0; }
.quick-sheet .quick-sheet-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--sheet-inset);
  background: #fff;
}
.quick-sheet-header h2 { margin-bottom: 4px; font-size: clamp(1.5rem, 4.2vw, 2.1rem); }
.quick-sheet-header p { color: var(--muted); }
.quick-sheet-header > div { min-width: 0; }
.quick-sheet-header p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-sheet .dismiss-button, .klick-calendar .dismiss-button { display: inline-flex; justify-content: center; align-items: center; gap: 4px; flex: none; min-width: 64px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--surface-muted); color: var(--muted); font-size: .82rem; font-weight: 650; }
.dismiss-button .icon { width: 15px; height: 15px; stroke-width: 2; }
.quick-sheet .dismiss-button:hover, .klick-calendar .dismiss-button:hover { background: #ede8e5; color: var(--ink); }
.dismiss-button:active { transform: scale(.96); }
main.page:focus, .quick-sheet h2[tabindex="-1"]:focus { outline: none; }
.quick-sheet .dismiss-button:focus-visible, .klick-calendar .dismiss-button:focus-visible { outline: 2px solid #716967; outline-offset: 2px; }
.quick-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, .55fr);
  gap: 12px;
  padding: 0 var(--sheet-inset) 14px;
}
.quick-amount :is(.money-field, .quick-date input) { height: 48px; border-radius: 12px; }
.quick-amount input { width: 100%; }
.quick-amount .money-field input { min-width: 0; min-height: 0; height: 100%; font-size: 1.5rem; }
.quick-amount .money-field:focus-within { border-color: var(--accent); }
.quick-amount .money-field :focus-visible { outline-offset: 0; }
.quick-date input { padding-inline: 8px; }
.calendar-field { position: relative; display: block; min-width: 0; }
.calendar-field > [data-calendar-source] {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%;
}
.calendar-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem);
  font-weight: 550;
  text-align: start;
  cursor: pointer;
}
.calendar-trigger .icon { flex: none; width: 17px; height: 17px; color: var(--accent); }
.calendar-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-trigger.calendar-empty { color: var(--muted); }
.calendar-trigger[aria-invalid="true"] { border-color: var(--accent); }
.quick-date .calendar-trigger { height: 48px; border-radius: 12px; padding-inline: 8px; }
.klick-calendar {
  width: min(376px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 15px 48px #50202b30;
  overscroll-behavior: contain;
}
.klick-calendar::backdrop { background: #26131955; }
.klick-calendar [hidden] { display: none; }
.klick-calendar header, .klick-calendar footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.klick-calendar h2 { font-size: 1.18rem; }
.klick-calendar button { border: 0; border-radius: 11px; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.klick-calendar button:disabled { color: #9f8f89; cursor: default; opacity: .65; }
@media (hover: hover) and (pointer: fine) {
  .klick-calendar button:enabled:hover { background: var(--theme-wash); }
}
.klick-calendar button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.klick-calendar .calendar-icon-button {
  display: grid; width: 44px; min-height: 44px; place-items: center; padding: 0; border-radius: 50%; background: var(--surface-muted); color: var(--accent);
}
.calendar-nav {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; margin: 10px 0; align-items: center;
}
.calendar-nav > :last-child { transform: rotate(180deg); }
.klick-calendar .calendar-period { min-height: 44px; min-width: 0; font-weight: 750; }
.calendar-year { display: flex; align-items: center; justify-content: center; gap: 7px; }
.calendar-year input { width: 5.4em; font-size: 16px; text-align: center; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-week { color: var(--muted); font-size: .83rem; text-align: center; margin-block: 4px 6px; }
.calendar-grid.calendar-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calendar-grid button { min-height: 40px; padding: 0; font-variant-numeric: tabular-nums; }
.calendar-grid.calendar-months button { min-height: 44px; }
.calendar-grid button[aria-current="date"] { color: var(--accent); font-weight: 750; box-shadow: inset 0 0 0 1px var(--theme-line); }
.calendar-grid button[aria-pressed="true"]:enabled { color: #fff; background: var(--action); font-weight: 750; }
.klick-calendar footer { justify-content: flex-end; margin-top: 10px; padding-top: 7px; border-top: 1px solid var(--line); }
.klick-calendar footer button { min-height: 44px; padding-inline: 12px; color: var(--accent); }
.quick-extras { margin-inline: var(--sheet-inset); border-top: 1px solid var(--line); }
.quick-extras > summary, .voice-text-entry > summary, .draft-card-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  font-weight: 650;
  list-style: none;
}
.quick-extras > summary::-webkit-details-marker, .voice-text-entry > summary::-webkit-details-marker,
.draft-card-details > summary::-webkit-details-marker { display: none; }
.quick-extras[open] > summary > .icon, .voice-text-entry[open] > summary > .icon,
.draft-card-details[open] > summary > .icon { transform: rotate(180deg); }
.quick-sheet-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 10px var(--sheet-inset) var(--sheet-bottom);
  border-top: 1px solid var(--line);
  background: #fff;
}
.quick-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(9px, 2.8vw, 30px);
  align-items: start;
}
.quick-details { display: grid; gap: 13px; align-content: start; min-width: 0; }
.quick-details input { width: 100%; }
.quick-details .money-field input[name=amount] { font-size: clamp(1.35rem, 4.4vw, 2rem); }
.quick-details .money-field:focus-within { border-color: var(--accent); }
.quick-details .money-field :focus-visible { outline-offset: 0; }
.quick-details .form-field { scroll-margin-block: 16px; }
.quick-details > .button { justify-self: start; max-width: 100%; }
.quick-sheet .quick-details {
  padding: 4px 0 12px;
}
.quick-sheet .category-picker {
  position: relative;
  min-width: 0;
}
.quick-sheet .wheel-ready legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.quick-sheet .category-picker:not(.wheel-ready) { padding-inline: var(--sheet-inset); }
.expense-page { max-width: 910px; }
.voice-draft-controls .voice-status:empty { display: none; }
.voice-draft-controls [data-record-cancel][hidden] { display: none; }
.voice-source { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .85rem; }
.voice-source summary { cursor: pointer; }
.voice-source p { margin-top: 6px; overflow-wrap: anywhere; }
.voice-draft-controls .voice-status { margin-top: 0; }
.draft-default-day { max-width: 285px; }
.draft-default-day small { white-space: nowrap; }
.voice-sheet-content { padding: 0 var(--sheet-inset) var(--sheet-bottom); }
.voice-sheet .stack-form { gap: 12px; }
.voice-sheet [data-speech-form][hidden] { display: none; }
.voice-sheet [data-record] { flex: 1; min-height: 58px; font-size: 1.1rem; }
.voice-example { text-align: center; color: var(--muted); font-size: .9rem; }
.voice-text-entry { border-top: 1px solid var(--line); }
.voice-text-fields, .draft-card-fields { display: grid; gap: 12px; }
.voice-sheet .draft-review { margin-top: 0; }
.voice-sheet .draft-item { position: relative; padding: 0; box-shadow: none; }
.draft-card-check { position: absolute; inset: 7px auto auto 3px; width: 44px; height: 44px; justify-content: center; }
.draft-card-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.draft-card-details > summary { padding: 9px 9px 9px 48px; min-height: 58px; color: var(--ink); }
.draft-card-info { display: grid; gap: 2px; flex: 1; }
.draft-card-info small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.draft-card-amount { font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.draft-card-fields { padding: 6px 12px 12px; }
.voice-sheet .draft-item .category-picker { margin: 8px -12px 0; }
.voice-sheet .draft-review .section-heading { margin-bottom: 10px; }
.voice-review-actions {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin: 0 calc(-1 * var(--sheet-inset)) calc(-1 * var(--sheet-bottom));
}
.voice-review-actions > span { min-width: 70px; color: var(--muted); font-size: .875rem; }
.wheel-hint { display: none; }
.wheel-arc, .wheel-pointer { display: none; }
.wheel-ready .wheel-hint { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.wheel-ready .wheel-panel {
  --wheel-row: 58px;
  --wheel-height: calc(5 * var(--wheel-row));
  --wheel-controls-width: 42px;
  --wheel-arc-width: 112px;
  --wheel-arc-inset: -10px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--wheel-controls-width);
  align-items: center;
  margin-top: 8px;
  border: 1px solid #ebe6eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.wheel-ready .wheel-arc {
  position: absolute;
  inset-block: 0;
  inset-inline-end: var(--wheel-arc-inset);
  width: var(--wheel-arc-width);
  height: 100%;
  display: block;
  fill: none;
  stroke: #e5dfe6;
  stroke-width: 1.6;
  pointer-events: none;
}
.wheel-ready .wheel-track {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: var(--wheel-row);
  gap: 0;
  height: var(--wheel-height);
  margin: 0;
  padding: calc((var(--wheel-height) - var(--wheel-row)) / 2) 40px
           calc((var(--wheel-height) - var(--wheel-row)) / 2) 8px;
  overflow: hidden auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.wheel-track::-webkit-scrollbar { display: none; }
.wheel-ready .wheel-option {
  position: relative;
  scroll-snap-align: center;
  padding: 2px 0;
}
.wheel-ready .wheel-option input { z-index: 1; width: 100%; height: 100%; }
.wheel-ready .wheel-option .wheel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 11px;
  width: min(100%, 160px);
  height: calc(var(--wheel-row) - 4px);
  min-height: 0;
  margin-left: auto;
  padding: 2px 4px 2px 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  transform-origin: right center;
  transform: translateX(var(--wheel-shift, 0px)) rotate(var(--wheel-tilt, 0deg)) scale(var(--wheel-scale, 1));
  opacity: var(--wheel-opacity, 1);
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.wheel-ready .wheel-label {
  grid-area: 1 / 1;
  justify-self: end;
  overflow-wrap: anywhere;
  text-align: right;
}
.wheel-ready .wheel-option .category-icon {
  grid-area: 1 / 2;
  width: 54px;
  height: 43px;
  border: 1px solid #fff;
  border-radius: 15px;
  background: linear-gradient(150deg, #fff, var(--tile));
  color: var(--glyph);
  --category-art-fill: color-mix(in srgb, var(--tone) 32%, #fff);
}
.wheel-ready .wheel-option .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.wheel-ready .wheel-centered .wheel-card { border-color: #ebe6eb; background: #faf8fa; font-weight: 760; }
.wheel-ready .wheel-option:not(.wheel-centered) input:checked + .wheel-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.wheel-ready .wheel-centered:has(input:checked) .wheel-card {
  border-color: color-mix(in srgb, var(--tone) 36%, #fff);
  background: color-mix(in srgb, var(--tile) 33%, #fff);
  box-shadow: none;
}
.wheel-ready .wheel-controls {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 57px;
}
.wheel-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #805355;
  background: transparent;
}
.wheel-controls button:hover { background: #f8e0dc; color: #9b1837; }
.wheel-controls button:active { transform: scale(.93); }
.wheel-ready .wheel-pointer {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: calc(var(--wheel-arc-inset) + var(--wheel-arc-width) * .75 - 9px);
  display: block;
  width: 25px;
  height: 12px;
  transform: translateY(-50%);
  background: #746c82;
  clip-path: polygon(0 50%, 29% 0, 100% 0, 100% 100%, 29% 100%);
  border-radius: 5px;
  pointer-events: none;
}

@media (hover: hover) and (min-width: 741px) {
  .wheel-ready .wheel-option:hover .wheel-card { border-color: color-mix(in srgb, var(--tone) 32%, #fff); }
}
[data-wheel-horizontal].wheel-ready .wheel-panel {
  --wheel-column: calc(100cqw / 5);
  display: block;
  container-type: inline-size;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
[data-wheel-horizontal].wheel-ready .wheel-arc {
  inset: 0 auto auto 50%;
  width: 100%;
  height: 22px;
  transform: translateX(-50%);
  stroke: #dcd6df;
  stroke-width: 1.25;
  mask-image: linear-gradient(90deg, transparent 4%, #000 33%, #000 67%, transparent 96%);
}
[data-wheel-horizontal].wheel-ready .wheel-track {
  grid-template-columns: none;
  grid-auto-columns: var(--wheel-column);
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  width: 100%;
  height: auto;
  margin-inline: auto;
  padding: 27px calc((100cqw - var(--wheel-column)) / 2) 1px;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: auto;
  overscroll-behavior-x: contain;
  touch-action: auto;
  mask-image: none;
  user-select: none;
}
[data-wheel-horizontal].wheel-ready .wheel-dragging { scroll-snap-type: none; }
[data-wheel-horizontal].wheel-ready .wheel-option .wheel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 62px auto;
  justify-items: center;
  align-content: start;
  gap: 4px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 2px;
  font-size: .9375rem;
  transform-origin: center;
  transform: translateY(var(--wheel-shift, 0px)) rotate(var(--wheel-tilt, 0deg)) scale(var(--wheel-scale, 1));
}
[data-wheel-horizontal].wheel-ready .wheel-option .wheel-card,
[data-wheel-horizontal].wheel-ready .wheel-option input:checked + .wheel-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
[data-wheel-horizontal].wheel-ready .wheel-option .category-icon {
  grid-area: 1 / 1;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  transform: scale(calc(.9 + var(--wheel-focus, 0) * .1));
}
[data-wheel-horizontal] .wheel-option .icon { width: 34px; height: 34px; }
[data-wheel-horizontal].wheel-ready .wheel-centered input:checked + .wheel-card .category-icon {
  border-color: color-mix(in srgb, var(--tone) 44%, #fff);
  box-shadow: 0 4px 8px color-mix(in srgb, var(--tone) 16%, transparent);
}
[data-wheel-horizontal].wheel-ready .wheel-label {
  grid-area: 2 / 1;
  justify-self: center;
  line-height: 1.2;
  text-align: center;
  color: #49434c;
}
[data-wheel-horizontal].wheel-ready .wheel-centered .wheel-label {
  font-weight: 800;
}
[data-wheel-horizontal].wheel-ready .wheel-pointer {
  inset: 18px auto auto 50%;
  width: 17px;
  height: 5px;
  border-radius: 99px;
  background: #746c82;
  box-shadow: 0 0 0 3px #fff;
  transform: translate(-50%, -50%);
  translate: 0 var(--wheel-pointer-lift, 0px);
  clip-path: none;
}
[data-wheel-horizontal].wheel-ready .wheel-controls {
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
[data-wheel-horizontal].wheel-ready .wheel-hint { margin: 0; }
[data-wheel-horizontal].wheel-ready [data-wheel-step] { min-width: 44px; min-height: 44px; color: #606669; }
[data-wheel-horizontal].wheel-ready [data-wheel-step]:hover { background: #f6f3f6; color: #443c4b; }
[data-wheel-horizontal] [data-wheel-step] .icon { transform: rotate(-90deg); }
[data-wheel-horizontal].wheel-ready .wheel-dragging, .wheel-dragging input { cursor: grabbing; }
.category-more { display: none; }

@media (max-width: 600px) {
  .quick-sheet {
    inset: auto 0 max(var(--sheet-gap), env(safe-area-inset-bottom), calc(100dvh - var(--visual-top, 0px) - var(--sheet-height)));
    width: calc(100% - 28px);
    max-height: min(85dvh, calc(var(--sheet-height) - 28px));
    translate: none;
  }
  .quick-sheet .quick-sheet-header { padding-block: 12px; }
  .quick-amount { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .quick-sheet [data-wheel-horizontal].wheel-ready > legend {
    position: static;
    width: auto;
    height: auto;
    margin-inline: var(--sheet-inset);
    clip-path: none;
  }
  [data-wheel-horizontal].wheel-ready :is(.wheel-arc, .wheel-pointer, .wheel-controls) { display: none; }
  [data-wheel-horizontal].wheel-ready .wheel-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-columns: auto;
    grid-auto-rows: minmax(62px, 1fr);
    grid-auto-flow: row;
    gap: 6px;
    padding: 6px var(--sheet-inset) 12px;
    overflow: visible;
    scroll-snap-type: none;
    mask-image: none;
  }
  [data-wheel-horizontal].wheel-ready .wheel-option { padding: 0; order: 2; }
  [data-wheel-horizontal].wheel-ready .wheel-option[data-common-category] { order: 0; }
  [data-wheel-horizontal].wheel-ready .wheel-track:has(.category-more[aria-expanded="false"]) .wheel-option:not([data-common-category], :has(input:checked)) { display: none; }
  [data-wheel-horizontal].wheel-ready .wheel-track:has(.category-more[aria-expanded="false"]) .wheel-option:has(input:checked):not([data-common-category]) { order: 0; }
  [data-wheel-horizontal].wheel-ready .wheel-option .wheel-card,
  [data-wheel-horizontal].wheel-ready .category-more:not([hidden]) {
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 3px;
    height: 100%;
    min-height: 62px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #faf8fa;
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 650;
    opacity: 1;
    transform: none;
  }
  [data-wheel-horizontal].wheel-ready .category-more:not([hidden]) { order: 1; border-color: #ebe6eb; background: #fff; color: #554b5b; }
  [data-wheel-horizontal].wheel-ready .wheel-option input:checked + .wheel-card { border-color: color-mix(in srgb, var(--tone) 44%, #fff); background: color-mix(in srgb, var(--tile) 40%, #fff); }
  [data-wheel-horizontal].wheel-ready .wheel-option .category-icon { width: 34px; height: 34px; border-radius: 11px; transform: none; box-shadow: none; }
  [data-wheel-horizontal].wheel-ready .wheel-option .icon { width: 23px; height: 23px; }
  [data-wheel-horizontal].wheel-ready .wheel-option input:checked + .wheel-card .category-icon { animation: none; box-shadow: none; }
  [data-wheel-horizontal].wheel-ready .wheel-option .wheel-label { color: inherit; font-weight: inherit; }
  [data-wheel-horizontal].wheel-ready .wheel-option input:checked + .wheel-card .wheel-label { color: var(--glyph); }
  .draft-card-fields .category-picker { --sheet-inset: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .quick-sheet[open] { animation: quick-sheet-enter 200ms cubic-bezier(.2, .75, .3, 1) both; }
  .quick-sheet[open]::backdrop { animation: quick-backdrop-enter 180ms ease-out both; }
  [data-wheel-horizontal].wheel-ready .wheel-centered input:checked + .wheel-card .category-icon {
    animation: wheel-category-settle 260ms cubic-bezier(.25, .7, .35, 1) both;
  }
  .transaction.voice-new-expense { animation: voice-expense-enter 1.1s ease-out; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  [data-wheel-horizontal].wheel-ready .wheel-option .wheel-card { transition: scale 120ms ease, border-color 120ms ease, background-color 120ms ease; }
  [data-wheel-horizontal].wheel-ready .wheel-option:active .wheel-card { scale: .96; }
}
@keyframes quick-sheet-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes quick-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes wheel-category-settle {
  0% { scale: .94; }
  52% { scale: 1.08; }
  100% { scale: 1; }
}
@keyframes voice-expense-enter { from { background-color: var(--accent-soft); } to { background-color: transparent; } }

.claim-paper {
  color: var(--klick-ink);
  background: #fffefa;
  --paper-accent: #873041;
  border-top-color: var(--klick-red);
}
.claim-paper-head { border-color: #dbbfc0; }
.claim-entity, .claim-no, .claim-meta dt, .claim-totals span, .claim-breakdown,
.claim-table td > small, .claim-paper .signatures span { color: #6f5552; }
.claim-paper-head h2 { font-weight: 790; }
.claim-hero-total { color: #603b42; }
.claim-hero-total strong, .claim-totals strong { color: #9f0c2b; }
.paper-brand { display: block; width: 86px; height: auto; }
.claim-table thead th { background: #f7ece4; color: #503335; }
.claim-table th, .claim-table td { border-color: #eadbd1; }
.claim-group-heading { background: #fcf4ec; color: #6d2638; }
.claim-totals { border-top: 1px dashed #ceaaac; margin-top: 12px; }
.claim-paper .signatures { border-color: #dbbfc0; }

@media screen and (max-width: 740px) {
  .quick-entry-layout .quick-details .field-grid, .quick-entry-layout .quick-details .trip-fields-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quick-details .field-grid input[type=date], .quick-details .field-grid input[type=time] { padding-inline: 6px; }
  .quick-details .trip-fields { padding-inline: 7px; }
  .quick-entry-layout .wheel-ready .wheel-panel { --wheel-controls-width: 32px; --wheel-arc-width: 78px; }
  .quick-entry-layout .wheel-ready .wheel-track { padding-inline: 3px 27px; }
  .quick-entry-layout .wheel-ready .wheel-card { grid-template-columns: minmax(0, 1fr) 40px; gap: 4px; padding-inline: 3px; }
  .quick-entry-layout .wheel-ready .wheel-option .category-icon { width: var(--wheel-chip-width, 40px); }
  .quick-entry-layout .wheel-controls button { width: 31px; }
  .frame { width: calc(100% - 28px); }
  .header-inner { min-height: 57px; }
  .header-brand { width: 118px; margin-left: -10px; }
  .page { padding-top: 17px; }
  .navigation {
    inset-inline: 14px;
    bottom: calc(3px + env(safe-area-inset-bottom));
    display: flex;
    gap: 3px;
    padding: 5px 6px;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 4px 20px #50202b13;
  }
  .nav-item { flex: 1; min-width: 0; min-height: 54px; gap: 1px; padding: 4px; border-radius: 13px; font-size: .75rem; }
  .nav-glyph { width: 34px; height: 29px; }
  .nav-glyph .icon { width: 26px; height: 26px; }
  .nav-item.selected { background: var(--theme-wash); }
  .nav-item.selected .nav-label { font-weight: 760; }
  .account-link { min-height: 44px; }
  .workspace-intro { position: relative; gap: 8px 10px; align-items: start; margin-bottom: 14px; }
  .workspace-intro h1 { font-size: clamp(1.45rem, 6.2vw, 2rem); }
  .workspace-intro .balance-date { font-size: .78rem; margin-top: 6px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "balance" "ledger" "sidebar"; gap: 13px; }
  .ledger-sidebar { gap: 13px; }
  .balance { min-height: 0; grid-template-columns: minmax(0, 1fr) 90px; gap: 13px 2px; padding: 18px 15px 14px; }
  .balance-value { margin: 7px 0 10px; font-size: clamp(2.25rem, 8.8vw, 3.3rem); }
  .hero-mascot { width: 94px; }
  .balance-facts { font-size: .76rem; }
  .balance-facts li + li { padding-left: 8px; margin-left: 8px; }
  .quick-entry { padding-top: 12px; }
  .quick-entry .button { padding-inline: 7px; }
  .month-filter.workspace-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .workspace-filter > :is(select, input, button, .calendar-field) { width: 100%; min-width: 0; min-height: 44px; border-radius: 10px; }
  .shortcuts, .breakdown { padding: 16px; }
  .claim-paper-head { gap: 12px; }
  .claim-hero-total { margin-left: auto; justify-items: end; }
  .paper-brand { width: 68px; }
}

@media screen and (max-width: 740px), screen and (hover: none) and (pointer: coarse) {
  :is(a, button, input, label, select, summary, textarea) { -webkit-tap-highlight-color: transparent; }
  :focus-visible, .filter-option input:focus-visible + span, .file-picker:focus-within,
  .category-option input:focus-visible + span, .company-options input:focus-visible + span,
  .quick-sheet .dismiss-button:focus-visible, .klick-calendar button:focus-visible,
  .klick-calendar .dismiss-button:focus-visible { outline-width: 2px; outline-offset: -2px; }
  :is(input:not([type=checkbox], [type=radio], [type=hidden], [type=file]), select, textarea):focus-visible {
    outline-width: 1px;
    outline-offset: -1px;
  }
  :is(.quick-amount, .quick-details) .money-field :focus-visible { outline: none; }
  :is(input:not([type=checkbox], [type=radio], [type=hidden], [type=file]), select, textarea),
  .workspace-filter :is(select, input[type=month]) { font-size: max(16px, 1rem); }
  .form-field > :is(input[type=date], input[type=month]) { width: 100%; min-inline-size: 0; }
}

@media screen and (max-width: 360px) {
  .wheel-ready .wheel-panel { --wheel-row: 53px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-glyph, .wheel-ready .wheel-option .wheel-card, .quick-entry .button { transition: none; }
}

@media print {
  .claim-print-warning { display: block; padding: 4mm 0; }
  .claim-approved-by { break-inside: avoid; padding: 1.25mm 2mm; margin-bottom: 2mm; font-size: 8pt; }
  .frame, .page { width: auto; max-width: none; margin: 0; padding: 0; }
  body, .claim-paper { background: white; color: var(--klick-ink); }
  .claim-page { page: klick-claim; }
  .claim-paper { border-top: 2pt solid #aa1234; }
  .paper-brand { width: 54pt; }
  .claim-paper-head { padding-bottom: 2.5mm; }
  .claim-totals { margin-top: 2mm; padding-top: 2mm; }
}

@page klick-claim {
  size: A4;
  margin: 13mm 14mm 16mm;
  @bottom-left { content: '咔记 Klick'; font: 8pt 'Microsoft YaHei UI', sans-serif; color: #705854; }
  @bottom-right { content: '第 ' counter(page) ' / ' counter(pages) ' 页'; font: 8pt 'Microsoft YaHei UI', sans-serif; color: #705854; }
}
