:root {
  --canvas: #f5f7fb; --paper: #fff; --ink: #151d31; --muted: #70819e;
  --line: #e4eaf3; --line-strong: #d8e1ef; --primary: #1687ff; --primary-dark: #086ce3;
  --primary-light: #eaf3ff; --danger: #b83d4f; --danger-light: #fff1f4;
  --amber: #926318; --amber-light: #fff8e9; --radius: 16px;
  --shadow: 0 5px 20px #263c6b07, 0 1px 3px #27385903;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Lato, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--canvas); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
a { color: var(--primary); text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, input, select, textarea, a { transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #81b9ff; outline-offset: 3px; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #fcfdff; color: var(--ink); padding: 10px 12px; min-height: 43px; }
textarea { resize: vertical; line-height: 1.65; }
input:hover, select:hover, textarea:hover { border-color: #adc8ee; }
input:focus, select:focus, textarea:focus { border-color: #75affc; background: #fff; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: #f6f8fc; color: #5d6e89; opacity: 1; }
input[type=checkbox] { width: 17px; min-height: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
input[type=date], input[type=number] { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: #9aa7bb; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.5px; font-weight: 650; margin-bottom: 6px; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.2px; margin-bottom: 4px; font-weight: 650; }
h3 { font-size: 15px; margin-bottom: 12px; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.mono, .money { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.money { white-space: nowrap; }
.text-right { text-align: right; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 550; color: #425270; background: #fff; white-space: nowrap; box-shadow: 0 1px 2px #18376402; }
.button:hover { background: #f3f8ff; border-color: #a9cdff; color: var(--primary-dark); }
.button:active, .icon-button:active { transform: translateY(1px); }
.button.primary { background: linear-gradient(115deg, #39a4ff, #1687ff); color: #fff; border-color: #238dff; box-shadow: 0 4px 11px #1687ff1a, inset 0 1px 0 #ffffff26; }
.button.primary:hover { background: linear-gradient(115deg, #2898fc, #0b78ef); border-color: #0b78ef; box-shadow: 0 5px 15px #1687ff2b; color: #fff; }
.button.danger { color: var(--danger); border-color: #edccd2; background: #fff; }
.button.danger:hover { background: var(--danger-light); }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.button.quiet.danger { color: #a76875; }
.button.compact { min-height: 35px; padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #8092af; height: 34px; width: 34px; min-width: 34px; border-radius: 8px; }
.icon-button:hover { background: #eaf3ff; color: var(--primary); }
.icon-button.danger:hover { background: var(--danger-light); color: var(--danger); }
svg.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.button .icon { width: 17px; height: 17px; }

.workspace { display: grid; grid-template-columns: 185px minmax(0, 1fr); grid-template-rows: 88px 1fr; min-height: 100dvh; }
.workspace-header { grid-column: 1/-1; display: flex; align-items: center; gap: 28px; height: 64px; margin: 12px 12px 0; padding: 0 20px; position: sticky; top: 12px; z-index: 30; border: 1px solid #fff; border-radius: 19px; background: linear-gradient(120deg, #e7eefbca, #f2f4fcdb); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 #fff, 0 3px 12px #354e7a0b; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 180px; }
.brand-symbol { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; flex: none; background: linear-gradient(140deg, #48b2ff, #568eff 55%, #a381ff); box-shadow: inset 0 1px 1px #ffffffa1, 0 3px 7px #5d85e32b; }
.brand-symbol svg { width: 30px; height: 30px; fill: #ffffff18; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.brand strong { font-size: 20px; letter-spacing: -.5px; line-height: 1.25; font-weight: 700; }
.brand strong b { color: #7288d0; font-weight: 650; }
.brand small { display: block; color: #8a9ab4; font-size: 10px; letter-spacing: .6px; margin-top: 2px; }
.header-navigation { display: flex; align-items: center; height: 100%; }
.header-link { display: flex; align-items: center; position: relative; height: 100%; font-size: 14px; color: #5b6b86; padding: 0 12px; font-weight: 550; }
.header-link.active { color: #1e7ce3; }
.header-link.active::after { content: ""; position: absolute; height: 3px; bottom: 0; left: 12px; right: 12px; border-radius: 3px 3px 0 0; background: #3798ff; }
.header-caption { margin-left: auto; font-size: 12px; color: #8292ad; }
.header-account { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-width: 78px; padding: 0 12px; border: 1px solid #e2e9f5; border-top-color: #fff; border-radius: 11px; color: #4c84cd; background: #ffffff6e; font-size: 12px; }
.header-account:hover { background: #fff; }
.sidebar { position: sticky; top: 100px; height: calc(100dvh - 112px); border-right: 1px solid #e5eaf4; display: flex; flex-direction: column; padding: 20px 15px 17px; margin-top: 10px; }
.nav-label { font-size: 11px; color: #91a0b8; letter-spacing: .6px; margin: 0 12px 13px; }
.new-claim { width: 100%; margin-bottom: 21px; padding-left: 10px; padding-right: 10px; font-size: 13px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 10px 12px; margin-bottom: 5px; border-radius: 9px; color: #637492; font-size: 13px; }
.nav-item:hover { background: #edf3fd; color: #2d80dc; }
.nav-item.active { background: #e4efff; color: #1687ff; font-weight: 600; box-shadow: inset 0 0 0 1px #dceaff; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-divider { height: 1px; background: #e2e8f3; margin: 19px 11px; }
.sidebar-note { display: flex; gap: 8px; align-items: flex-start; margin: auto 8px 23px; padding-top: 25px; color: #7189aa; font-size: 11px; }
.sidebar-note small { display: block; font-size: 10px; color: #96a3b9; margin-top: 4px; }
.connection-dot { margin-top: 6px; width: 6px; height: 6px; background: #76adf1; border-radius: 50%; flex: none; }
.account-block { display: flex; align-items: center; gap: 9px; border-top: 1px solid #e0e7f2; padding: 17px 8px 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; background: linear-gradient(140deg, #e5f2ff, #e9e9ff); color: #6989c4; border: 1px solid #fff; border-radius: 11px; font-weight: 600; }
.account-name { flex: 1; min-width: 0; }
.account-name strong { font-size: 12px; display: block; overflow-wrap: anywhere; font-weight: 550; color: #52637e; }
.account-name small { color: #95a3b9; font-size: 10px; }
.main { padding: 23px 26px 56px; min-width: 0; max-width: 1900px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; min-height: 66px; }
.eyebrow, .section-number { display: none; }
.page-description { color: var(--muted); font-size: 13px; margin: 0; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.panel { background: #ffffffed; border: 1px solid #e1e7f1; border-top-color: #fff; border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow); }
.panel-heading { padding: 21px 23px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; }
.panel-heading p { font-size: 12px; color: #8796af; margin: 6px 0 0; line-height: 1.7; }
.panel-body { padding: 0 23px 23px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.toolbar .search-field { flex: 1; min-width: 180px; max-width: 390px; position: relative; }
.search-field input { padding-left: 37px; background: #f3f6fb; border-color: #e9edf5; }
.search-field .icon { position: absolute; left: 12px; top: 12px; color: #8191aa; }
.toolbar select { width: auto; min-width: 130px; font-size: 13px; }
.toolbar-end { margin-left: auto; color: #94a0b6; font-size: 12px; }
.table-scroll { width: 100%; overflow: auto; border-radius: 0 0 var(--radius) var(--radius); scrollbar-width: thin; scrollbar-color: #d2deef #f5f8fc; }
.main:focus { outline: none; }
.table-scroll-hint { margin: 0; padding: 8px 22px; color: #536e99; background: #f8faff; font-size: 12px; border-top: 1px solid #edf2fb; }
.table-scroll:focus-visible { outline: 2px solid #81b9ff; outline-offset: -2px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: #8190a9; font-weight: 500; font-size: 12px; background: #f8faff; text-align: left; padding: 12px 17px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 17px; border-bottom: 1px solid #edf1f8; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.claim-list { min-width: 720px; }
.claim-list tbody tr:hover { background: #fafdff; }
.claim-purpose { font-weight: 550; max-width: 320px; overflow-wrap: anywhere; }
.claim-meta { display: block; font-weight: 400; font-size: 11px; color: #8c9bb3; margin-top: 5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; border: 1px solid #e6eaf2; border-radius: 6px; padding: 3px 8px; white-space: nowrap; background: #f3f5fa; color: #7a89a2; }
.tag.completed { color: #429376; background: #eefaf5; border-color: #d6efe4; }
.tag.admin { color: #5e7fce; background: #edf2ff; border-color: #dbe5ff; }
.list-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.list-stat { padding: 18px 21px; border: 1px solid #e1e8f5; border-top-color: #fff; border-radius: 15px; background: #ffffffbf; box-shadow: var(--shadow); min-width: 0; }
.list-stat span { display: block; font-size: 12px; color: #8291ab; margin-bottom: 8px; }
.list-stat strong { font-size: 27px; line-height: 1.3; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.5px; color: #34496e; overflow-wrap: anywhere; }
.list-stat:first-child strong { color: #2888f1; }
.empty-state { text-align: center; max-width: 480px; padding: 55px 24px 62px; margin: auto; }
.empty-symbol { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 69px; border: 1px solid #fff; background: linear-gradient(145deg, #ecf7ff, #eeefff); color: #7ba9ef; border-radius: 20px; box-shadow: 0 8px 20px #668aca12, inset 0 0 0 1px #e0ebff; margin-bottom: 21px; transform: rotate(-5deg); }
.empty-symbol .icon { width: 29px; height: 29px; }
.empty-state h2 { font-size: 19px; margin-bottom: 10px; }
.empty-state p { color: #8a9ab4; font-size: 13px; margin-bottom: 24px; line-height: 1.8; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 246px; gap: 18px; align-items: start; }
.editor-main { display: grid; gap: 18px; min-width: 0; }
.editor-main .panel { overflow: hidden; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 13px; color: #61718d; font-weight: 500; }
.field.full { grid-column: 1/-1; }
.required { font-size: 12px; color: #7e9dc9; margin-left: 3px; }
.field small { font-size: 11px; font-weight: 400; color: #8d9bb1; }
.field-error { color: var(--danger); font-size: 11px; margin: 0; }
.date-pair { display: grid; grid-template-columns: minmax(0, 1fr) 15px minmax(0, 1fr); gap: 8px; align-items: center; }
.date-pair span { text-align: center; color: #9ba9be; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.expense-table { min-width: 1260px; }
.expense-table th { padding: 11px 9px; font-size: 12px; }
.expense-table td { padding: 9px 5px; vertical-align: top; }
.expense-table td:first-child { width: 35px; padding: 18px 8px; text-align: center; color: #a4b2c7; font-family: var(--mono); font-size: 11px; }
.expense-table input, .expense-table select { border-color: transparent; background: transparent; padding: 8px 7px; min-height: 38px; border-radius: 7px; font-size: 13px; }
.expense-table input:hover, .expense-table select:hover { border-color: #d8e6fb; background: #fafdff; }
.expense-table input:focus, .expense-table select:focus { border-color: #93bdf5; background: #fff; outline: 2px solid #dbeaff; outline-offset: 0; }
.expense-table input[type=date] { width: 138px; }
.expense-table .expense-amount { width: 96px; text-align: right; font-family: var(--mono); font-size: 12px; }
.expense-table .expense-category { width: 137px; }
.expense-table .expense-payer { width: 96px; }
.expense-table .expense-project { width: 154px; }
.expense-table .expense-customer { width: 130px; }
.expense-table .expense-note { width: 156px; }
.expense-table .expense-trip { width: 158px; }
.expense-table .row-actions { display: flex; gap: 0; padding-top: 2px; }
.expense-table .field-error { padding: 3px 7px; white-space: normal; max-width: 165px; }
.input-invalid { border-color: #d794a1!important; background: #fff6f8!important; }
.table-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 21px; background: #fbfcff; border-top: 1px solid var(--line); font-size: 12px; color: #8a9ab4; }
.table-bottom strong { font-family: var(--mono); font-size: 14px; color: #4d6b95; margin-left: 9px; }
.table-add { background: transparent; color: var(--primary); font-size: 13px; font-weight: 550; min-height: 34px; padding: 4px 0; }
.subsection { padding: 18px 23px; border-top: 1px solid var(--line); background: #fbfdff; }
.subsection h3 { font-size: 13px; margin-bottom: 5px; color: #60799d; }
.subsection p { font-size: 11px; color: #94a3ba; margin: 0 0 13px; }
.customer-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.customer-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2eafa; border-radius: 9px; background: #fff; font-size: 12px; color: #7189ad; }
.customer-item input { width: 64px; min-height: 32px; padding: 5px 6px; text-align: center; }
.trip-table { min-width: 850px; }
.trip-table th { padding: 11px; }
.trip-table td { padding: 8px 5px; }
.trip-table input { min-height: 38px; padding: 8px 7px; font-size: 13px; border-color: transparent; }
.trip-table input:hover { border-color: #d8e6fb; }
.trip-table input[type=date] { min-width: 137px; }
.trip-table .trip-place { width: 120px; }
.trip-table .trip-note { width: 160px; }
.summary-panel { position: sticky; top: 99px; padding: 21px 19px 17px; background: linear-gradient(145deg, #fff, #f9fbff); border-color: #dce8fa; border-top-color: #fff; }
.summary-heading { font-size: 13px; font-weight: 550; color: #6c82a5; display: flex; justify-content: space-between; align-items: center; }
.summary-currency { display: block; font-size: 11px; color: #9baac0; margin-top: 23px; }
.summary-total { display: block; font-size: 32px; font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.9px; color: #2587f4; margin: 3px 0 21px; overflow-wrap: anywhere; }
.summary-split { border-top: 1px solid #e4edfa; border-bottom: 1px solid #e4edfa; padding: 16px 0; display: grid; gap: 11px; margin-bottom: 19px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #8293ae; }
.summary-row b { color: #536d96; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.summary-section-title { font-size: 11px; color: #a0adc1; margin: 17px 0 13px; }
.category-summary { display: grid; gap: 11px; }
.category-summary .summary-row, .category-summary .summary-row b { font-size: 11px; }
.summary-info { font-size: 11px; color: #97a6bd; line-height: 1.9; margin-top: 19px; padding-top: 14px; border-top: 1px solid #e4edfa; }
.save-indicator { display: inline-flex; align-items: center; gap: 6px; color: #8d9cb3; font-size: 11px; white-space: nowrap; min-height: 32px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #8ab7ec; }
.save-indicator.pending .save-dot { background: #d1ad6b; }
.save-indicator.failed { color: var(--danger); }
.save-indicator.failed .save-dot { background: var(--danger); }
.save-panel { display: flex; gap: 8px; align-items: center; padding: 5px 0 0; flex-wrap: wrap; }
.save-panel .button { font-size: 11px; min-height: 28px; padding: 3px 8px; }
.message { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 15px; font-size: 12px; line-height: 1.8; margin-bottom: 18px; overflow-wrap: anywhere; }
.message.error { background: var(--danger-light); color: #a34456; border-color: #f0d6dc; }
.message.warning { background: var(--amber-light); color: var(--amber); border-color: #eddfbd; }
.message.info { background: #f0f6ff; color: #627fa8; border-color: #d9e7fb; }
.message ul { padding-left: 18px; margin: 6px 0 0; }
.message a { color: inherit; text-decoration: underline; }
.message:empty { display: none; }
.locked-banner { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #5d86b9; padding: 12px 15px; border: 1px solid #dbe8fa; border-radius: 11px; background: #edf5ff; margin-bottom: 18px; }
.editor-footer { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 0 2px; margin-top: 1px; }
.editor-footer p { font-size: 11px; color: #a0adc1; margin: 0; }
.editor-footer .button { font-size: 12px; }

.auth-view { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 48px 6vw; background: radial-gradient(ellipse at 3% 7%, #a9dfff55, transparent 37%), radial-gradient(ellipse at 93% 14%, #d3c7ff3b, transparent 35%), radial-gradient(ellipse at 8% 95%, #c7edff38, transparent 40%), #f5f7fb; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(360px, 440px); align-items: center; gap: 8vw; width: 100%; max-width: 1210px; }
.auth-story { min-width: 0; }
.auth-brand { display: flex; gap: 12px; align-items: center; font-size: 30px; letter-spacing: -1.1px; font-weight: 750; margin-bottom: 42px; color: #378cff; }
.auth-brand > span:last-child { background: linear-gradient(105deg, #1687ff, #7c8cff 63%, #c770fb); background-clip: text; -webkit-background-clip: text; color: transparent; }
.auth-brand b { font-weight: 700; }
.auth-brand .brand-symbol { width: 44px; height: 44px; border-radius: 14px; }
.auth-brand .brand-symbol svg { width: 35px; height: 35px; }
.auth-kicker { display: inline-flex; color: #7b8eaf; font-size: 12px; margin-bottom: 16px; letter-spacing: 1px; }
.auth-copy h1 { font-size: clamp(30px, 3.1vw, 43px); font-weight: 650; line-height: 1.45; letter-spacing: -1px; margin-bottom: 16px; }
.auth-copy h1 span { color: #496ca9; }
.auth-copy p { font-size: 15px; line-height: 1.9; color: #8192af; max-width: 415px; margin-bottom: 0; }
.trip-illustration { width: min(100%, 560px); display: block; height: auto; margin: 12px -10px 0; }
.auth-features { display: flex; gap: 16px; align-items: center; justify-content: center; font-size: 11px; color: #95a6c2; margin: -8px 0 0 -20px; max-width: 520px; }
.auth-features i { display: block; width: 3px; height: 3px; border-radius: 50%; background: #b2c4df; }
.auth-form-area { width: 100%; }
.auth-card { width: 100%; background: linear-gradient(142deg, #ffffff91, #f4f6ffab); border: 1px solid #fff; border-radius: 23px; padding: 37px 35px 34px; backdrop-filter: blur(24px); box-shadow: 0 20px 50px #34466d15, 0 4px 12px #40558606, inset 0 1px 0 #fff; }
.auth-card h1 { font-size: 25px; text-align: center; font-weight: 650; margin-bottom: 8px; }
.auth-card .intro { font-size: 12px; color: #93a0b6; text-align: center; margin: 9px 0 30px; line-height: 1.8; }
.auth-card form { display: grid; gap: 20px; }
.auth-card .field { font-size: 13px; color: #596b88; gap: 8px; }
.auth-card input { border: 1px solid #ffffffdf; background: #ffffffb8; min-height: 47px; border-radius: 12px; padding-left: 14px; box-shadow: 0 2px 4px #44598502; }
.auth-card input:hover { border-color: #c9dfff; }
.auth-card input:focus { border-color: #91bfff; background: #fff; }
.auth-card .button.primary { width: 100%; margin-top: 2px; min-height: 46px; border-radius: 24px; font-size: 14px; }
.auth-footer { font-size: 11px; color: #9ba9c0; text-align: center; margin: 22px 0 0; letter-spacing: .5px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 43px; }
.password-wrap button { position: absolute; right: 5px; top: 6px; }
.loading-text { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0; }
.users-table { min-width: 750px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell strong { font-size: 13px; font-weight: 550; }
.user-cell small { display: block; color: var(--muted); }
dialog { border: 1px solid #fff; border-radius: 19px; padding: 0; width: min(530px, calc(100vw - 36px)); max-height: calc(100dvh - 48px); box-shadow: 0 25px 90px #283e6f2b; color: var(--ink); background: #fff; }
dialog.wide { width: min(1360px, calc(100vw - 42px)); }
dialog::backdrop { background: #21355550; backdrop-filter: blur(5px); }
.dialog-heading { padding: 23px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #f8fbff, #f8f9ff); }
.dialog-heading h2 { font-size: 19px; }
.dialog-heading p { font-size: 12px; color: #8a9bb7; margin: 6px 0 0; }
.dialog-body { padding: 23px 24px; max-height: calc(100dvh - 245px); overflow: auto; }
.dialog-footer { padding: 15px 24px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; justify-content: flex-end; background: #fbfcff; }
.dialog-body .field-grid { gap: 16px; }
.dialog-form-error { margin: 0; font-size: 12px; color: var(--danger); line-height: 1.7; }
.paste-area { min-height: 220px; font-family: var(--mono); font-size: 12px; white-space: pre; tab-size: 4; }
.paste-hint { font-size: 12px; color: #8b9cb6; margin-bottom: 15px; line-height: 1.9; }
.paste-hint code { background: #f1f6ff; color: #7e99c1; padding: 3px 5px; border-radius: 4px; font-size: 11px; }
.import-toolbar { display: flex; align-items: flex-end; gap: 13px; flex-wrap: wrap; padding: 15px 24px; border-bottom: 1px solid var(--line); background: #f9fbff; }
.import-toolbar .field { width: 160px; font-size: 11px; }
.import-toolbar select { min-height: 34px; font-size: 12px; padding: 6px 9px; }
.import-toolbar .checkbox-label { font-size: 11px; min-height: 34px; align-items: center; gap: 7px; display: flex; color: #8c9cb7; margin-left: auto; }
.import-body { padding: 0; max-height: calc(100dvh - 360px); overflow: auto; min-height: 120px; }
.import-table { min-width: 1210px; }
.import-table th { position: sticky; top: 0; z-index: 1; }
.import-table td { padding: 8px 5px; vertical-align: top; }
.import-table td:first-child { padding: 17px 12px; }
.import-table input, .import-table select { font-size: 12px; min-height: 35px; padding: 6px; border-color: #e4ebf7; border-radius: 7px; }
.import-table .date-col { width: 140px; }.import-table .category-col { width: 130px; }.import-table .amount-col { width: 95px; }.import-table .payer-col { width: 95px; }.import-table .project-col { width: 150px; }.import-table .customer-col { width: 130px; }.import-table .note-col { width: 155px; }
.import-table .issue-cell { min-width: 190px; max-width: 240px; font-size: 11px; color: var(--amber); line-height: 1.7; padding: 8px; }
.import-table .issue-cell label { display: flex; gap: 6px; align-items: center; margin-top: 6px; color: #6e8ab2; font-size: 11px; }
.import-row-skipped { opacity: .45; }.import-count { margin-right: auto; font-size: 12px; color: var(--muted); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 40px); border: 1px solid #e0eaff; border-top-color: #fff; border-radius: 12px; padding: 12px 19px; background: #f9fbfff5; color: #4d78ae; box-shadow: 0 8px 30px #244a941c; backdrop-filter: blur(16px); z-index: 100; font-size: 12px; display: flex; align-items: center; gap: 15px; overflow-wrap: anywhere; }
.toast button { background: none; color: var(--primary); text-decoration: underline; white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 15px; z-index: 200; background: var(--primary-dark); color: #fff; padding: 10px 15px; border-radius: 0 0 8px 8px; }.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none!important; }.account-mobile { display: none; }

@media(min-width:1600px) { .main { padding: 26px 35px 65px; }.editor-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 22px; }.workspace { grid-template-columns: 200px minmax(0,1fr); } }
@media(max-width:1250px) and (min-width:768px) {
  .workspace { grid-template-columns: 175px minmax(0,1fr); }.sidebar { padding-left: 12px; padding-right: 12px; }.main { padding: 23px 22px 50px; }.brand { min-width: 160px; }
  .editor-grid { display: flex; flex-direction: column; gap: 17px; }.editor-main { width: 100%; }
  .summary-panel { position: static; order: -1; width: 100%; display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 0 25px; padding: 16px 21px; align-items: center; }
  .summary-heading { grid-column: 1; grid-row: 1; font-size: 11px; justify-content: flex-start; gap: 12px; }.summary-currency { display: none; }.summary-total { grid-column: 1; grid-row: 2; margin: 5px 0 0; font-size: 27px; }
  .summary-split { grid-column: 2; grid-row: 1/3; border: 0; padding: 0 22px; margin: 0; border-left: 1px solid #e2ebf9; border-right: 1px solid #e2ebf9; }.summary-row { font-size: 11px; }.summary-row b { font-size: 11px; }
  .summary-section-title, .category-summary { display: none; }.summary-info { grid-column: 3; grid-row: 1/3; border: 0; padding: 0; margin: 0; font-size: 10px; }.save-panel { grid-column: 1/-1; }
  .panel-heading { padding: 20px 21px 17px; }.panel-body { padding: 0 21px 21px; }
  .topbar { gap: 12px; align-items: flex-start; }.topbar h1 { font-size: 24px; }.topbar-actions { gap: 6px; max-width: 59%; }.topbar-actions .button { font-size: 12px; padding: 8px 11px; }.save-indicator { flex-basis: 100%; justify-content: flex-end; min-height: 20px; }
}
@media(max-width:1000px) and (min-width:768px) { .auth-view { padding: 40px 5vw; }.auth-layout { gap: 5vw; grid-template-columns: minmax(0,1fr) 370px; }.auth-copy h1 { font-size: 31px; }.auth-copy p { font-size: 13px; }.auth-card { padding: 32px 27px; }.auth-brand { font-size: 27px; margin-bottom: 30px; }.auth-features { font-size: 10px; gap: 12px; }.list-stat { padding: 16px 17px; }.list-stat strong { font-size: 23px; } }
@media(max-width:767px) {
  body { font-size: 14px; }.workspace { display: block; }.workspace-header { height: 56px; margin: 8px 8px 0; padding: 0 13px; top: 8px; border-radius: 15px; gap: 12px; }.brand { min-width: 0; gap: 8px; }.brand-symbol { width: 32px; height: 32px; border-radius: 10px; }.brand-symbol svg { width: 26px; height: 26px; }.brand strong { font-size: 18px; }.brand small { font-size: 8px; letter-spacing: .3px; }.header-navigation { margin-left: auto; }.header-link { font-size: 12px; padding: 0 5px; }.header-link.active::after { left: 5px; right: 5px; height: 2px; }.header-caption { display: none; }.header-account { min-width: 35px; width: 35px; padding: 0; height: 33px; border-radius: 10px; }.header-account span { display: none; }
  .sidebar { position: relative; top: 0; width: 100%; height: auto; padding: 15px 17px 0; margin: 0; border-right: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }.nav-label { display: block; margin: 0; color: #90a1bc; font-size: 12px; }.new-claim { grid-column: 2; grid-row: 1; width: auto; margin: 0; min-height: 34px; font-size: 12px; border-radius: 9px; padding: 6px 11px; }.sidebar-note, .account-block { display: none; }.sidebar nav { grid-column: 1/-1; display: flex; gap: 3px; overflow: auto; min-width: 0; padding-bottom: 5px; scrollbar-width: none; }.nav-item { font-size: 12px; white-space: nowrap; min-height: 37px; margin: 0; padding: 8px 11px; gap: 6px; border-radius: 8px; }.nav-item .icon { width: 15px; height: 15px; }.nav-divider { width: 1px; height: 21px; margin: 8px 3px; flex: none; }.account-mobile { display: inline-flex; }
  .main { padding: 18px 16px 40px; }.topbar { margin-bottom: 18px; min-height: 0; flex-wrap: wrap; gap: 13px; }h1 { font-size: 23px; }.page-description { font-size: 12px; line-height: 1.8; }.topbar-actions { padding: 0; justify-content: flex-start; gap: 7px; width: 100%; }.topbar-actions .button { min-height: 36px; padding: 7px 10px; font-size: 12px; border-radius: 9px; }.topbar-actions .save-indicator { margin-right: auto; max-width: 100%; white-space: normal; width: 100%; min-height: 20px; }
  .list-stats { gap: 8px; margin-bottom: 17px; }.list-stat { padding: 13px 10px; border-radius: 12px; }.list-stat strong { font-size: clamp(16px,4.6vw,22px); }.list-stat span { font-size: 10px; margin-bottom: 7px; }.toolbar { padding: 13px; gap: 8px; }.toolbar .search-field { max-width: none; flex-basis: 100%; }.toolbar select { min-width: 100px; font-size: 13px; }.toolbar-end { font-size: 11px; }
  .panel { border-radius: 14px; }.panel-heading { padding: 19px 17px 16px; flex-wrap: wrap; gap: 11px; }.panel-heading h2 { font-size: 17px; }.panel-heading p { font-size: 11px; }.panel-actions { gap: 7px; }.panel-actions .button { font-size: 12px; min-height: 35px; padding: 7px 10px; }.panel-body { padding: 0 17px 20px; }.field-grid { grid-template-columns: 1fr; gap: 16px; }.field { font-size: 12px; }input, select, textarea { font-size: 16px; min-height: 44px; }.date-pair input { font-size: 14px; }
  .editor-grid { display: flex; flex-direction: column; gap: 17px; }.editor-main { gap: 16px; width: 100%; }.expense-table input, .expense-table select, .trip-table input { min-height: 44px; font-size: 14px; }.expense-table td { padding-top: 5px; padding-bottom: 5px; }.expense-table th { font-size: 11px; }.expense-table .expense-amount { width: 100px; }.expense-table .expense-category { width: 145px; }.expense-table input[type=date] { width: 149px; }.expense-table .row-actions .icon-button { height: 42px; width: 38px; }.subsection { padding: 17px; }.customer-item { padding: 7px 9px; }.customer-item input { min-height: 36px; font-size: 14px; }.table-bottom { padding: 10px 16px; font-size: 10px; }
  .summary-panel { position: static; width: 100%; order: -1; padding: 16px 17px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0 19px; align-items: center; }.summary-heading { grid-column: 1; grid-row: 1; font-size: 11px; justify-content: flex-start; gap: 8px; }.summary-currency { display: none; }.summary-total { grid-column: 1; grid-row: 2; font-size: 25px; margin: 5px 0 2px; }.summary-split { grid-column: 2; grid-row: 1/3; margin: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid #e1ebfb; gap: 8px; }.summary-row, .summary-row b { font-size: 10px; }.summary-section-title, .category-summary, .summary-info { display: none; }.save-panel { grid-column: 1/-1; }.editor-footer { align-items: flex-start; gap: 14px; }.editor-footer p { max-width: 65%; font-size: 10px; }.empty-state { padding: 42px 20px; }
  .auth-view { padding: 30px 20px; align-items: flex-start; }.auth-layout { display: flex; flex-direction: column; gap: 24px; max-width: 460px; }.auth-story { width: 100%; }.auth-brand { font-size: 26px; margin-bottom: 28px; gap: 10px; }.auth-brand .brand-symbol { width: 37px; height: 37px; border-radius: 12px; }.auth-brand .brand-symbol svg { width: 30px; height: 30px; }.auth-copy h1 { font-size: 29px; line-height: 1.4; margin-bottom: 11px; }.auth-kicker { font-size: 11px; margin-bottom: 10px; }.auth-copy p { font-size: 12px; line-height: 1.9; max-width: 340px; }.trip-illustration, .auth-features { display: none; }.auth-card { padding: 28px 25px; border-radius: 21px; }.auth-card h1 { font-size: 23px; }.auth-card .intro { margin-bottom: 25px; font-size: 11px; }.auth-card .field { font-size: 12px; }.auth-card input { font-size: 16px; }.auth-footer { font-size: 10px; margin-top: 18px; }
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }dialog.wide { width: calc(100vw - 20px); }.dialog-heading { padding: 20px 17px 15px; }.dialog-heading h2 { font-size: 18px; }.dialog-body { padding: 19px 17px; max-height: calc(100dvh - 235px); }.dialog-footer { padding: 13px 17px; flex-wrap: wrap; }.dialog-footer .button { font-size: 12px; min-height: 40px; }.import-toolbar { padding: 13px 17px; gap: 10px; }.import-toolbar .field { width: calc(50% - 5px); }.import-toolbar .checkbox-label { margin-left: 0; width: 100%; font-size: 11px; }.import-body { padding: 0; max-height: calc(100dvh - 375px); }.import-count { font-size: 11px; width: 100%; }.import-table input, .import-table select { font-size: 14px; min-height: 40px; }.toast { bottom: 16px; font-size: 12px; padding: 11px 15px; }.message { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none!important; animation: none!important; scroll-behavior: auto!important; } }
