@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/inter-variable.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url('/roboto-condensed-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url('/roboto-condensed-italic.woff2') format('woff2'); }
:root { font-family: Inter, 'Segoe UI', Arial, sans-serif; color: #111; background: #fff; font-synthesis: none; --accent: #df002b; --green: #111; --muted: #666; --line: #d4d4d4; --surface: #fff; --display: 'Roboto Condensed', 'Arial Narrow', sans-serif; }
* { box-sizing: border-box; }
:root { --safe-top: env(safe-area-inset-top, 0px); --safe-right: env(safe-area-inset-right, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); --safe-left: env(safe-area-inset-left, 0px); }
body { margin: 0; padding: var(--safe-top) var(--safe-right) 0 var(--safe-left); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #df002b; outline-offset: 3px; }
button, select, input { min-height: 44px; }
button svg, .search svg { width: 22px; height: 22px; flex-shrink: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 960px; margin: 0 auto; padding: 29px 0 14px; min-height: 90px; border-bottom: 2px solid #111; }
.brand { text-decoration: none; min-width: 0; }
.brand h1 { font-family: var(--display); font-style: italic; font-size: 38px; line-height: 1.1; font-weight: 900; letter-spacing: -.8px; text-transform: uppercase; white-space: nowrap; }
#header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#header-actions:empty { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 2px; border: 1px solid transparent; padding: 10px 16px; font-size: 14px; font-weight: 650; text-decoration: none; line-height: 1.4; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #b60023; }
.secondary { background: #fff; border-color: #111; color: #111; }
.secondary:hover { background: #f2f2f2; }
.page { max-width: 960px; margin: auto; padding: 13px 0 calc(56px + var(--safe-bottom)); }
.toolbar { margin-bottom: 0; }
.controls-row { margin-bottom: 16px; min-width: 0; }
.period-field { width: 100%; }
.period-label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 18px; }
.period-control { display: flex; align-items: center; width: 100%; height: 46px; border: 1.5px solid #111; border-radius: 2px; background: #fff; }
.period-arrow { display: grid; place-items: center; width: 46px; min-width: 44px; min-height: 44px; align-self: center; padding: 0; border: 0; border-radius: 0; background: #fff; }
.period-arrow:first-child { border-right: 1px solid #333; }
.period-arrow:last-child { border-left: 1px solid #333; }
.period-arrow:hover { background: #f1f1f1; }
.period-arrow svg { width: 25px; height: 25px; }
.period-current { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; flex: 1; align-self: stretch; font-size: 18px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.period-current > svg { width: 25px; height: 25px; flex-shrink: 0; }
.period-chevron { display: grid; place-items: center; }
.period-chevron svg { width: 21px; height: 21px; transform: rotate(90deg); }
.period-current input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; opacity: 0; cursor: pointer; border: 0; }
.period-current input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; cursor: pointer; }
.period-current:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.tool-button { display: grid; place-items: center; width: 46px; height: 44px; padding: 0; border: 1.5px solid #111; border-radius: 2px; background: #fff; color: #111; }
.tool-button svg { width: 27px; height: 27px; }
.tool-button:hover, .tool-button[aria-expanded=true] { background: #f1f1f1; }
.tool-button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border: 1.5px solid #111; border-radius: 2px; min-height: 46px; font-family: var(--display); font-size: 20px; font-weight: 900; line-height: 1.2; background: #fff; }
.tab svg { width: 26px; height: 26px; }
.tab[aria-selected=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab:hover:not([aria-selected=true]) { background: #f1f1f1; }
.toolbar-panel { margin-top: 12px; }
.search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #777; border-radius: 2px; color: #555; }
.search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: #111; font-size: 16px; }
.money-summary { margin-top: 18px; }
.summary-grid { display: grid; grid-template-columns: 1.04fr 1fr 1.04fr; border-top: 4px solid var(--accent); background: #111; color: #fff; padding: 8px 13px 10px; }
.summary-item { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.summary-item + .summary-item { border-left: 1px solid #888; padding-left: 8px; margin-left: 5px; }
.summary-label, .summary-item-label { display: flex; align-items: center; gap: 6px; min-height: 27px; font-size: 12px; line-height: 13.5px; font-weight: 400; color: #f5f5f5; }
.summary-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.summary-item.paid .summary-dot { background: #58ad37; }
.summary-item.unpaid .summary-dot { background: #eedfc2; }
.summary-item strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 900; line-height: 1.1; margin-top: 2px; letter-spacing: -.4px; overflow-wrap: anywhere; }
.summary-item .summary-total { font-size: 30px; }
.summary-note { color: #595959; font-size: 12px; line-height: 1.5; margin-top: 9px; }
.money-summary.is-stale .summary-grid { opacity: .65; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; border-bottom: 2px solid #111; }
#results-count { font-family: var(--display); font-weight: 900; font-size: 19px; }
.refresh-button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; border: 0; padding: 5px 0 5px 8px; min-height: 44px; color: #111; background: transparent; font-size: 15px; }
.refresh-button:hover { color: var(--accent); }
.refresh-button svg { width: 24px; height: 24px; }
.refresh-button.loading svg { animation: spin .9s linear infinite; }
.records-list { display: block; }
.record-card { border-bottom: 1.5px solid #111; }
.record-main { display: grid; align-items: stretch; padding: 20px 0; gap: 22px; }
.record-main.has-date { grid-template-columns: 76px minmax(0,1fr) 170px; }
.record-main.order-record { grid-template-columns: clamp(112px, 36vw, 240px) minmax(0,1fr); align-items: start; column-gap: 22px; row-gap: 16px; }
.date-stub { display: flex; flex-direction: column; align-items: flex-start; padding-right: 14px; border-right: 1px dashed #555; font-family: var(--display); font-weight: 900; }
.date-day { font-size: 64px; line-height: .94; letter-spacing: -2.7px; }
.date-month { font-size: 28px; line-height: 1.15; margin-top: 4px; }
.date-missing { font: 12px/1.4 Inter, sans-serif; color: #666; overflow-wrap: anywhere; }
.card-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.record-card h2 { font-family: var(--display); font-size: 23px; font-weight: 900; line-height: 1.12; margin-bottom: 11px; overflow-wrap: anywhere; }
.composition { font-size: 15px; line-height: 1.45; color: #222; margin-bottom: 16px; overflow-wrap: anywhere; }
.composition.empty { color: #777; }
.card-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; margin-top: auto; }
.amount { font-family: var(--display); font-style: italic; font-size: 34px; font-weight: 900; letter-spacing: -.5px; line-height: 1.12; overflow-wrap: anywhere; max-width: 100%; }
.amount.unspecified { font: 500 15px/1.4 Inter, sans-serif; color: #777; }
.payment-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border-radius: 2px; padding: 4px 7px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.payment-badge svg { width: 19px; height: 19px; flex-shrink: 0; }
.payment-badge.paid { background: #def3cf; color: #27680c; }
.payment-badge.unpaid { background: #f8e5dd; color: #9e3c1c; }
.payment-badge.unspecified, .payment-badge.other { background: #eee; color: #555; }
.card-photo { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 200px; min-height: 0; padding: 0; border: 0; border-radius: 1px; overflow: hidden; background: #f1f1ef; cursor: zoom-in; align-self: start; }
.card-photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.card-photo img, .editor-photo img, .photo-dialog img { image-orientation: from-image; }
.expand-photo { position: absolute; top: 6px; right: 5px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 2px; color: #111; background: #fffffff2; }
.expand-photo svg { width: 22px; height: 22px; }
.photo-number { position: absolute; right: 4px; bottom: 5px; padding: 3px 5px; border-radius: 2px; background: #fffffff2; color: #111; font-size: 11px; }
.card-photo.no-photo { flex-direction: column; gap: 8px; cursor: default; color: #777; }
.no-photo > svg { width: 27px; height: 27px; }
.no-photo span { font-size: 12px; text-align: center; padding: 0 4px; }
.order-record > .card-photo { height: auto; aspect-ratio: 1; background: #fff; border: 1px solid #e2e2e2; border-radius: 4px; }
.order-record > .card-photo.no-photo { background: #f8f8f7; }
.order-record h2 { border-left: 4px solid var(--accent); padding-left: 10px; }
.order-record .composition { margin-bottom: 0; }
.order-record > .card-bottom { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 0; gap: 10px 16px; }
.order-record > .card-bottom .amount { min-width: 0; font-size: 40px; }
.order-record > .card-bottom .amount.unspecified { font-size: 15px; }
.order-record > .card-bottom .payment-badge { min-width: 0; }
.employee-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #ddd; padding: 11px 0; }
.employee-details { display: flex; align-items: center; gap: 9px; min-width: 0; }
.employee-details > svg { width: 25px; height: 25px; flex-shrink: 0; }
.employee-details > div { min-width: 0; }
.employee-details strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.tracking { display: block; font-size: 12px; line-height: 1.5; color: #666; overflow-wrap: anywhere; }
.edit-record { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #111; border-radius: 2px; min-height: 44px; padding: 6px 10px; font-size: 13px; background: #fff; color: #111; flex-shrink: 0; }
.edit-record:hover { background: #f1f1f1; }
.edit-record svg { width: 19px; height: 19px; }
.notice { padding: 12px 14px; border-radius: 2px; margin: 12px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.notice .button { white-space: normal; text-align: left; }
.notice.error { background: #fff0ec; border: 1px solid #ebc7bd; color: #923a24; }
.notice.warning { background: #fff6e4; border: 1px solid #e1cfaa; color: #705525; }
.empty-state, .initial-state, .access-state { padding: 55px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #666; }
.empty-state > svg, .access-state > svg { width: 40px; height: 40px; margin-bottom: 18px; color: #777; }
.empty-state h2, .access-state h1 { font-size: 22px; font-weight: 650; color: #111; margin-bottom: 10px; }
.empty-state p, .access-state p { font-size: 14px; line-height: 1.7; max-width: 440px; }
.empty-state button { margin-top: 22px; }
.access-state { min-height: 55vh; justify-content: center; }
.access-state small { margin-top: 20px; max-width: 400px; font-size: 12px; line-height: 1.6; }
.initial-state { gap: 18px; }
.spinner { display: block; width: 27px; height: 27px; border: 2px solid #ddd; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

.record-dialog { width: min(640px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border: 0; padding: 0; background: #fff; overflow: hidden; color: #111111; }
.record-dialog::backdrop { background: #11111166; }
#record-form { height: 100%; display: flex; flex-direction: column; }
.dialog-header { padding: calc(24px + var(--safe-top)) calc(26px + var(--safe-right)) 20px calc(26px + var(--safe-left)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-shrink: 0; }
.eyebrow { display: block; color: #666666; font-size: 10px; font-weight: 650; letter-spacing: 1.2px; margin-bottom: 8px; }
.dialog-header h2 { font-size: 23px; font-weight: 650; letter-spacing: -.6px; }
.icon-button { border: 1px solid #bbbbbb; min-width: 44px; min-height: 44px; line-height: 1; background: #fff; border-radius: 50%; color: #555555; font-size: 25px; }
.form-body { overflow-y: auto; padding: 24px calc(26px + var(--safe-right)) 28px calc(26px + var(--safe-left)); flex: 1; min-height: 0; overscroll-behavior: contain; }
.field { display: block; min-width: 0; font-size: 13px; font-weight: 600; color: #333333; margin-bottom: 19px; line-height: 1.5; }
.field input, .field textarea, .field select { display: block; border: 1px solid #bbbbbb; border-radius: 8px; background: #fff; color: #111111; width: 100%; padding: 10px 12px; font-size: 16px; font-weight: 400; margin-top: 7px; line-height: 1.5; min-width: 0; }
.field input::placeholder, .field textarea::placeholder { color: #888888; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #df002b; }
.field small, .field-hint { display: block; font-size: 12px; color: #666666; font-weight: 400; line-height: 1.6; margin-top: 5px; }
.required { color: #b60023; }
.field-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.dialog-footer { padding: 16px calc(26px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(26px + var(--safe-left)); display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.dialog-footer .primary { min-width: 180px; }
.photo-section { border-top: 1px solid #dddddd; padding-top: 20px; margin-bottom: 26px; }
.section-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-line h3, .form-section-title h3 { font-size: 15px; font-weight: 650; }
.subtle { font-size: 12px; color: #666666; }
.editor-photos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.editor-photo { position: relative; aspect-ratio: 1; background: #f3f3f3; border: 1px solid #dddddd; border-radius: 8px; padding: 5px; }
.editor-photo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 5px; }
.remove-photo { position: absolute; top: 3px; right: 3px; min-width: 32px; min-height: 32px; border: 1px solid #bbbbbb; border-radius: 50%; background: #fffffff0; color: #923a24; font-size: 21px; line-height: 1; padding: 0; }
.upload-button { position: relative; display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; border: 1px dashed #888888; border-radius: 8px; padding: 9px 16px; font-size: 14px; color: #333333; cursor: pointer; background: #fafafa; overflow: hidden; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-button:focus-within { outline: 3px solid #df002b; outline-offset: 3px; }
.form-section-title { border-top: 1px solid #dddddd; padding-top: 22px; margin-bottom: 19px; }
.form-section-title p { font-size: 12px; color: #666666; margin-top: 6px; }
.photo-dialog { position: fixed; inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); margin: auto; padding: 20px; background: #111111f5; border: 0; border-radius: 14px; width: min(1000px, calc(100vw - 24px - var(--safe-left) - var(--safe-right))); max-width: calc(100vw - 24px - var(--safe-left) - var(--safe-right)); height: calc(100vh - 24px - var(--safe-top) - var(--safe-bottom)); height: min(860px, calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom))); max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom)); overflow: hidden; color: #fff; text-align: center; }
.photo-dialog[open] { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.photo-dialog::backdrop { background: #111111cc; }
.photo-dialog img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }
.photo-close { position: absolute; top: 12px; right: 12px; background: #222222ee; color: #fff; border: 1px solid #ffffff40; border-radius: 50%; min-width: 44px; min-height: 44px; font-size: 25px; line-height: 1; }
.photo-navigation { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; min-width: 0; }
.photo-meta { flex: 1; min-width: 0; }
.photo-meta a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; color: #fff; font-size: 13px; text-underline-offset: 3px; }
.photo-navigation p { margin: 0; flex: 1; min-width: 0; max-width: 760px; font-size: 13px; color: #dddddd; line-height: 1.6; overflow-wrap: anywhere; }
.photo-navigation button { border: 1px solid #ffffff40; background: #ffffff0e; color: #fff; border-radius: 50%; min-width: 44px; min-height: 44px; flex-shrink: 0; font-size: 20px; line-height: 1; }
.photo-navigation button:disabled { opacity: .3; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: #111111; color: white; padding: 14px 20px; border-radius: 10px; font-size: 14px; z-index: 10; box-shadow: 0 5px 25px #11111130; }
.has-dialog { overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 700px) {
  .site-header, .page { width: calc(100% - 64px); }
  .summary-grid { padding: 12px 20px; }
  .summary-item + .summary-item { padding-left: 22px; margin-left: 10px; }
  .summary-item strong { font-size: 34px; }
  .summary-item .summary-total { font-size: 36px; }
  .summary-label, .summary-item-label { font-size: 14px; line-height: 16px; }
  .record-main { gap: 30px; padding: 26px 0; }
  .record-main.has-date { grid-template-columns: 88px minmax(0,1fr) 200px; }
  .record-main.order-record { column-gap: 30px; row-gap: 18px; }
  .card-photo { height: 230px; }
  .date-day { font-size: 70px; }
  .date-month { font-size: 30px; }
}
@media (min-width: 900px) {
  .toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 32px; align-items: end; }
  .controls-row { margin-bottom: 0; }
  .toolbar-panel { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 699px) {
  .site-header { width: calc(100% - 24px); gap: 10px; padding-top: 29px; }
  .brand h1 { font-size: 34px; letter-spacing: -.8px; }
  body[data-mode=editor] .brand h1 { font-size: 23px; }
  #header-actions { gap: 8px; }
  .add-record { padding: 9px 10px; font-size: 13px; gap: 4px; }
  .add-record svg { width: 18px; height: 18px; }
  .page { width: calc(100% - 24px); padding-bottom: calc(36px + var(--safe-bottom)); }
  .period-arrow { width: 44px; }
  .tab { font-size: 20px; }
  .summary-item strong { font-size: 24px; }
  .summary-item .summary-total { font-size: 26px; }
  .summary-grid { padding: 8px 12px 10px; }
  .record-main { gap: 12px; }
  .record-main.has-date { grid-template-columns: clamp(48px, calc(20vw - 16px), 62px) minmax(0,1fr) clamp(90px, calc(34.55vw - 20.56px), 128px); }
  .record-main.order-record { column-gap: 14px; row-gap: 14px; }
  .order-record > .card-bottom .amount { font-size: 34px; }
  .order-record > .card-bottom .amount.unspecified { font-size: 15px; }
  .date-stub { padding-right: 12px; }
  .date-day { font-size: clamp(38px, calc(20vw - 26px), 52px); }
  .date-month { font-size: clamp(18px, calc(8.5714vw - 9.4286px), 24px); }
  .record-card h2 { font-size: 19px; line-height: 1.1; margin-bottom: 9px; }
  .composition { font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
  .amount { font-size: 30px; }
  .card-photo { height: 184px; }
  .payment-badge { font-size: 13px; font-weight: 600; }
  .employee-footer { gap: 10px; }
  body[data-mode=editor] .record-main { padding-bottom: 13px; }
  .employee-details strong { font-size: 13px; }
  .employee-details > svg { width: 22px; }
  .tracking { font-size: 11px; }
  .dialog-header { padding: calc(20px + var(--safe-top)) calc(18px + var(--safe-right)) 17px calc(18px + var(--safe-left)); }
  .dialog-header h2 { font-size: 21px; }
  .form-body { padding: 21px calc(18px + var(--safe-right)) 21px calc(18px + var(--safe-left)); }
  .dialog-footer { padding: 15px calc(18px + var(--safe-right)) calc(15px + var(--safe-bottom)) calc(18px + var(--safe-left)); }
  .dialog-footer .primary { min-width: 0; flex: 1; }
  .field-pair { gap: 12px; }
  .editor-photos { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .photo-dialog { padding: 12px; border-radius: 3px; }
  .notice { font-size: 13px; }
}
@media (max-width: 389px) {
  .add-record { width: 44px; padding: 8px; }
  .add-record span { display: none; }
  .tab { gap: 6px; padding: 8px 6px; font-size: 18px; }
  .tab svg { width: 23px; height: 23px; }
  .tabs { gap: 8px; }
  .summary-grid { padding: 8px 9px; }
  .summary-item + .summary-item { padding-left: 4px; margin-left: 3px; }
  .summary-label, .summary-item-label { font-size: 11px; line-height: 12.5px; gap: 4px; }
  .summary-item strong { font-size: 22px; }
  .summary-item .summary-total { font-size: 24px; }
  .record-main { gap: 10px; }
  .record-main.order-record { column-gap: 12px; }
}
@media (max-width: 359px) {
  .brand h1 { font-size: 29px; }
  body[data-mode=editor] .brand h1 { font-size: 23px; }
  .tool-button { width: 44px; }
  .period-current { gap: 8px; font-size: 16px; }
  .period-current > svg { width: 23px; height: 23px; }
  .tab { gap: 6px; padding: 8px 6px; font-size: 16px; }
  .tab svg { width: 21px; height: 21px; }
  .tabs { gap: 8px; }
  .summary-grid { padding: 8px 9px; }
  .summary-item + .summary-item { padding-left: 4px; margin-left: 3px; }
  .summary-label, .summary-item-label { font-size: 11px; line-height: 12.5px; gap: 4px; }
  .summary-item strong { font-size: 20px; }
  .summary-item .summary-total { font-size: 22px; }
  .summary-dot { width: 8px; height: 8px; }
  .date-day { letter-spacing: -2px; }
  .card-photo { height: 174px; }
  .record-card h2 { font-size: 18px; }
  .composition { font-size: 13px; }
  .amount { font-size: 28px; }
  .order-record > .card-bottom .amount { font-size: 30px; }
  .order-record > .card-bottom .amount.unspecified { font-size: 15px; }
  .payment-badge { padding: 4px 5px; }
  .employee-details { gap: 6px; }
  .edit-record { padding: 6px 8px; gap: 4px; font-size: 12px; }
  .field-pair { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
