.app-preview {
  --app-ink: var(--panel-ink);
  --app-muted: var(--panel-muted);
  --app-line: var(--panel-line);
  --app-accent: var(--accent-hover);
  width: 100%;
  min-width: 0;
  color: var(--app-ink);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--panel-radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .35), 0 12px 24px -16px rgba(0, 0, 0, .2);
  font-size: 14px;
  line-height: 1.45;
  container-type: inline-size;
}
.app-preview *, .app-preview *::before, .app-preview *::after { box-sizing: border-box; }
.app-preview :is(h4, p) { margin: 0; }
.app-preview :is(button, input, select) { color: inherit; font: inherit; }
.app-preview button { cursor: pointer; }
.app-preview :is(button, input, select):focus-visible { outline: 2px solid var(--app-accent); outline-offset: -3px; }
.app-preview :is(button, input, select) { min-height: 44px; }
.app-preview button { min-width: 44px; }
.app-preview svg { width: 20px; height: 20px; flex: 0 0 auto; }
.app-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 20px; border-bottom: 1px solid var(--app-line); background: var(--panel-bar); }
.app-name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.app-name svg { color: var(--app-accent); }
.app-context { color: var(--app-muted); font-size: 14px; white-space: nowrap; }
.app-toolbar, .sheet-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.app-toolbar strong, .sheet-toolbar strong { font-size: 15px; font-weight: 500; }
.app-segment { display: flex; padding: 3px; border: 1px solid var(--app-line); border-radius: 9px; }
.app-segment button { min-width: 52px; border: 0; border-radius: 6px; padding: 0 10px; background: transparent; color: var(--app-muted); }
.app-segment button[aria-pressed="true"] { background: #333339; color: #fff; }
.app-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--app-accent) !important; white-space: nowrap; }
.app-button:hover { background: #ffffff0d; }
.app-primary { background: #efeff6; color: #151518 !important; }
.app-primary:hover { background: #fff; }
.calendar-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #55555d #171719; }
.calendar-canvas { min-width: 510px; padding-right: 10px; }
.calendar-canvas.calendar-day { min-width: 0; }
.calendar-days, .calendar-hours { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); }
.calendar-day .calendar-days, .calendar-day .calendar-hours { grid-template-columns: 56px minmax(0, 1fr); }
.app-preview .calendar-days { margin-left: 0; font-size: 14px; height: 62px; align-items: center; border-bottom: 1px solid var(--app-line); }
.calendar-days > div { display: grid; justify-items: center; gap: 2px; }
.calendar-days span { font-size: 14px; color: var(--app-muted); }
.calendar-days strong { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-size: 16px; font-weight: 500; }
.calendar-days .selected-day strong { background: var(--app-ink); color: var(--panel); }
.calendar-times, .calendar-column { position: relative; }
.calendar-times span { position: absolute; width: 100%; padding-right: 9px; text-align: right; color: var(--app-muted); transform: translateY(-8px); font-size: 14px; }
.calendar-times span:first-child { transform: translateY(3px); }
.calendar-column { border-left: 1px solid var(--app-line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #ffffff09 47px, #ffffff09 48px); }
.calendar-booking { position: absolute; inset-inline: 3px; height: 96px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 10px 8px; border: 0; border-radius: 5px; text-align: left; background: var(--app-accent); }
.calendar-booking:hover { background: color-mix(in srgb, var(--app-accent) 85%, #fff); }
.app-preview .calendar-booking { color: var(--panel); }
.app-preview .calendar-booking:focus-visible { outline-offset: 2px; }
.calendar-booking strong { font-size: 14px; font-weight: 500; line-height: 1.3; max-width: 100%; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.calendar-booking span { font-size: 14px; line-height: 1.2; }
.calendar-busy { position: absolute; inset-inline: 3px; height: 44px; padding: 10px 7px; background: #232327; border-radius: 4px; font-size: 14px; overflow: hidden; }
.calendar-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding: 10px 14px 10px 20px; border-top: 1px solid var(--app-line); color: var(--app-muted); }
.booking-form { padding: 16px 20px 20px; border-top: 1px solid var(--app-line); }
.booking-form label { display: grid; gap: 7px; color: var(--app-muted); }
.booking-form :is(input, select) { min-width: 0; width: 100%; padding: 9px 12px; border: 1px solid var(--panel-line); border-radius: 7px; background: var(--panel-bar); color: var(--app-ink); }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.app-actions { display: flex; gap: 8px; margin-top: 18px; }
.mail-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 350px; }
.mail-inbox { border-right: 1px solid var(--app-line); background: var(--panel-bar); }
.mail-row { display: block; width: 100%; padding: 17px 14px; border: 0; border-bottom: 1px solid var(--app-line); text-align: left; background: none; }
.mail-row.selected { background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 var(--app-accent); }
.mail-row:hover { background: rgba(255, 255, 255, .04); }
.mail-row > span { display: block; }
.mail-row .mail-row-top { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-bottom: 6px; }
.mail-row-top strong { font-size: 14px; font-weight: 600; }
.mail-row-top time { font-size: 14px; color: var(--app-muted); }
.mail-snippet { margin-top: 7px; color: var(--app-muted); }
.mail-reader { padding: 24px; }
.mail-envelope { display: inline-flex; color: var(--app-accent); margin-bottom: 14px; }
.mail-envelope svg { width: 28px; height: 28px; }
.mail-reader h4 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.mail-reader .mail-from { margin: 16px 0 20px; font-weight: 500; }
.mail-from span { color: var(--app-muted); font-weight: 400; }
.mail-reader .mail-body { color: #c3c3cb; font-size: 15px; line-height: 1.65; }
.mail-call { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line); }
.mail-call > span { flex: 1; }
.mail-call > span > span { display: block; color: var(--app-muted); }
.mail-call > svg:last-child { width: 16px; }
.mail-details { gap: 6px; padding-left: 0; margin-top: 10px; }
.mail-details svg { width: 16px; height: 16px; transition: transform .2s; }
.mail-details[aria-expanded="true"] svg { transform: rotate(180deg); }
.mail-extra { padding-top: 10px; color: var(--app-muted); }
.trip-body { padding: 26px 24px 10px; }
.trip-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 24px; }
.trip-heading .trip-dates { color: var(--app-muted); margin-bottom: 6px; }
.trip-heading h4 { font-size: clamp(28px, 6cqw, 36px); letter-spacing: -.015em; line-height: 1.1; font-weight: 500; }
.trip-progress { display: flex; align-items: center; gap: 20px; color: var(--app-muted); padding-bottom: 14px; }
.trip-progress > span { white-space: nowrap; }
.trip-progress progress { appearance: none; width: 100%; height: 4px; border: 0; border-radius: 2px; background: #35353a; overflow: hidden; }
.trip-progress progress::-webkit-progress-bar { background: #35353a; }
.trip-progress progress::-webkit-progress-value { background: var(--app-accent); }
.trip-progress progress::-moz-progress-bar { background: var(--app-accent); }
.trip-task { position: relative; display: flex; align-items: center; gap: 10px; min-height: 90px; padding: 16px 0; border-bottom: 1px solid var(--app-line); cursor: pointer; }
.trip-task input { position: absolute; top: 50%; left: -10px; transform: translateY(-50%); width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.trip-checkbox { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 1px solid #808087; border-radius: 50%; }
.trip-checkbox svg { width: 16px; height: 16px; opacity: 0; }
.trip-task input:checked + .trip-checkbox { background: #dddded; color: #17171a; border-color: #dddded; }
.trip-task input:checked + .trip-checkbox svg { opacity: 1; }
:where(html:not(.js), html[data-device="keyboard"]) .trip-task input:focus-visible + .trip-checkbox { outline: 2px solid var(--app-accent); outline-offset: 5px; }
.trip-task-copy { display: grid; gap: 5px; }
.trip-task-copy strong { font-size: 16px; font-weight: 500; }
.trip-task-copy > span { color: var(--app-muted); }
.trip-footer { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--app-muted); }
.sheet-toolbar { padding: 20px; }
.sheet-filter { position: relative; display: inline-flex; }
.sheet-filter select { appearance: none; -webkit-appearance: none; min-width: 0; width: 100%; max-width: 190px; padding: 0 36px 0 14px; border: 1px solid var(--app-line); border-radius: 9px; background: var(--panel-bar); color: var(--app-ink); cursor: pointer; }
.sheet-filter select:hover { border-color: rgba(255, 255, 255, .2); }
.sheet-filter::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--app-muted); border-bottom: 1.6px solid var(--app-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sheet-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #55555d #171719; border-top: 1px solid var(--app-line); }
.expense-sheet { width: 100%; min-width: 490px; border-collapse: collapse; font-size: 14px; }
.expense-sheet :is(th, td) { padding: 6px 20px; text-align: left; border-bottom: 1px solid var(--app-line); height: 58px; white-space: nowrap; }
.expense-sheet th { font-weight: 500; }
.expense-sheet th:first-child, .expense-sheet td:first-child { border-left: 0; }
.expense-sheet th:last-child, .expense-sheet td:last-child { border-right: 0; }
.expense-sheet thead { color: var(--app-muted); }
.expense-sheet thead th { font-weight: 400; }
.expense-sheet .amount, .expense-sheet thead th:nth-child(3) { text-align: right; }
.expense-sheet td.amount { font-variant-numeric: tabular-nums; }
.expense-sheet td.amount:not(:has(input)) { padding-right: 23px; }
.expense-sheet thead th { height: 44px; }
.expense-sheet td { position: relative; }
.expense-sheet input { field-sizing: content; min-width: 5ch; width: 76px; padding: 8px 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--app-ink); text-align: right; font-variant-numeric: tabular-nums; }
.expense-sheet input:hover { border-color: rgba(255, 255, 255, .2); }
.expense-sheet input:focus { outline-offset: 0; background: var(--panel-bar); }
.expense-sheet input[aria-invalid="true"] { border-color: #e5a6a6; }
.sheet-currency { margin-right: 1px; color: var(--app-muted); pointer-events: none; }
@supports (field-sizing: content) { .expense-sheet input { width: auto; } }
.receipt-toggle { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; color: var(--app-accent) !important; }
.receipt-toggle svg { width: 17px; height: 17px; }
.expense-sheet tfoot :is(th, td) { height: 62px; font-size: 16px; font-weight: 600; border-bottom: 0; }
.expense-sheet .sheet-empty { white-space: normal; padding: 24px 16px; }
.app-preview .sheet-status { padding: 15px 20px; color: var(--app-muted); }
.app-preview .app-error { padding: 0 20px 16px; color: #ffd0d0; }
@container (max-width: 500px) {
  .mail-layout { grid-template-columns: 1fr; }
  .mail-inbox { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; }
  .mail-row + .mail-row { border-left: 1px solid var(--app-line); }
  .mail-row { padding: 14px; }
  .mail-reader { padding: 24px; }
  .mail-reader h4 { max-width: 16ch; }
}
@container (max-width: 340px) {
  .app-titlebar, .app-toolbar, .sheet-toolbar { padding-left: 14px; padding-right: 14px; }
  .app-context { max-width: 120px; white-space: normal; text-align: right; }
  .app-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sheet-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sheet-filter, .sheet-filter select { width: 100%; max-width: none; }
  .mail-snippet { display: none !important; }
  .mail-reader { padding: 22px 18px; }
  .trip-body { padding: 24px 18px 10px; }
  .booking-form { padding: 16px 14px; }
  .booking-fields { grid-template-columns: 1fr; }
  .calendar-footer { padding-left: 14px; }
}
.app-preview [data-y="0"] { top: 0px; } .app-preview [data-y="48"] { top: 48px; } .app-preview [data-y="96"] { top: 96px; } .app-preview [data-y="144"] { top: 144px; } .app-preview [data-y="192"] { top: 192px; } .app-preview [data-y="240"] { top: 240px; } .app-preview [data-y="288"] { top: 288px; } .app-preview [data-y="336"] { top: 336px; } .app-preview [data-y="384"] { top: 384px; } .app-preview [data-y="432"] { top: 432px; } .app-preview [data-y="480"] { top: 480px; } .app-preview [data-y="528"] { top: 528px; } .app-preview [data-y="576"] { top: 576px; } .app-preview [data-y="624"] { top: 624px; } .app-preview [data-y="672"] { top: 672px; }
.app-preview [data-h="240"] { height: 240px; } .app-preview [data-h="288"] { height: 288px; } .app-preview [data-h="336"] { height: 336px; } .app-preview [data-h="384"] { height: 384px; } .app-preview [data-h="432"] { height: 432px; } .app-preview [data-h="480"] { height: 480px; } .app-preview [data-h="528"] { height: 528px; } .app-preview [data-h="576"] { height: 576px; } .app-preview [data-h="624"] { height: 624px; } .app-preview [data-h="672"] { height: 672px; } .app-preview [data-h="720"] { height: 720px; }
