:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --surface: #fffefb;
  --ink: #182e39;
  --navy: #153d5e;
  --muted: #4e646e;
  --line: #dce2de;
  --manual: #dceee7;
  --manual-ink: #24584e;
  --booking: #e1edf9;
  --booking-ink: #234d74;
  --airbnb: #f7e4e5;
  --airbnb-ink: #743b47;
  --vrbo: #e8e3f5;
  --vrbo-ink: #4f3b78;
  --sand: #f2dfc5;
  --sand-ink: #69431e;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--navy); text-underline-offset: .2em; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #d4e7ee; color: var(--navy); }
:focus-visible { outline: 2px solid #23678d; outline-offset: 3px; }
.skip { position: fixed; top: -70px; left: 12px; z-index: 10; padding: 10px 14px; background: white; }
.skip:focus { top: 8px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner {
  width: min(100% - 48px, 1450px);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.03rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { display: block; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 550; }
.brand .product-mark { flex:0 0 38px; width:38px; height:38px; }
.brand .product-name { display:block; font-size:1.25rem; font-weight:750; letter-spacing:-.025em; line-height:1.25; }
.brand .brand-company { display:flex; align-items:center; gap:6px; margin-top:2px; }
.brand .company-mark { flex:0 0 20px; width:20px; height:18px; object-fit:contain; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a, .quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  border: 0;
  border-radius: 7px;
  text-decoration: none;
  background: transparent;
}
.top nav a[aria-current], .top nav a:hover, .quiet:hover { color: var(--navy); background: #e7eff2; }
.quiet { white-space: nowrap; }
.main { width: min(100% - 48px, 1450px); margin: 0 auto; padding: 28px 0 52px; }
.demo-note {
  display: flex;
  align-items: baseline;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  margin-bottom: 24px;
  border: 1px solid #e6d0b2;
  border-radius: 8px;
  background: #fbefdc;
  color: var(--sand-ink);
  font-size: .84rem;
}
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin: 0 0 22px; }
h1 { font-size: 2.15rem; letter-spacing: -.038em; line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: 1.08rem; font-weight: 730; line-height: 1.3; letter-spacing: -.012em; }
.page-heading p, .access-card > p { color: var(--muted); margin-top: 6px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary { color: white; background: var(--navy); border-color: var(--navy); }
.primary:hover { background: #235478; border-color: #235478; }
.secondary { color: var(--navy); background: var(--surface); border-color: #bdcbc9; }
.secondary:hover { background: #eaf1f1; }
.square { min-width: 44px; padding-inline: 8px; }
.panel, .calendar-panel, .change-panel, .access-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 16px;
}
.calendar-toolbar h2 { margin-right: auto; }
.period, .jump { display: flex; align-items: center; gap: 6px; }
.jump label { display: flex; align-items: center; gap: 8px; }
.jump input { width: 9.4rem; }
.table-scroll { overflow-x: auto; scrollbar-color: #a4b8b9 var(--surface); }
.table-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.calendar { min-width: 870px; table-layout: fixed; }
.calendar th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 140px;
  padding-inline: 13px;
  background: #f5f7f5;
  text-align: left;
}
.calendar :is(th,td) { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.calendar :is(th,td):last-child { border-right: 0; }
.calendar thead th { padding: 8px; background: #f5f7f5; font-size: .85rem; text-align: center; }
.calendar thead th span { display: block; color: var(--muted); font-size: .76rem; text-transform: capitalize; }
.calendar thead th small { color: var(--booking-ink); font-size: .7rem; margin-left: 4px; }
.calendar tbody th { font-size: .84rem; font-weight: 720; }
.calendar td { height: 63px; padding: 5px; vertical-align: middle; }
.calendar .today { background: #f0f6f8; }
.calendar .turnover { background: #f9eddb; box-shadow: inset 0 0 0 2px #d7ab78; }
.calendar a { text-decoration: none; }
.calendar .free a {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #5f7a82;
  border-radius: 5px;
}
.calendar .free a svg { width: 15px; height: 15px; }
.calendar :is(.free a, .bookable):is(:hover, :focus-visible) { background: #e3eeef; color: var(--navy); }
.stay, .checkout {
  display: block;
  padding: 4px 6px;
  min-height: 25px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  line-height: 1.35;
}
.stay { border: 1px solid #00000012; }
.stay strong, .checkout strong { margin-right: 2px; }
.checkout { color: var(--sand-ink); }
.checkout.bookable { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; }
.checkout.bookable span { overflow: hidden; text-overflow: ellipsis; }
.checkout.bookable svg { flex: none; width: 15px; height: 15px; color: var(--navy); }
.checkout:hover, .stay:hover { text-decoration: underline; }
.calendar a + a { margin-top: 2px; }
.manual { background: var(--manual); color: var(--manual-ink); }
.booking { background: var(--booking); color: var(--booking-ink); }
.airbnb { background: var(--airbnb); color: var(--airbnb-ink); }
.vrbo { background: var(--vrbo); color: var(--vrbo-ink); }
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.badge, .status { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 4px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.transition { color: var(--sand-ink); background: var(--sand); }
.change-panel { margin-bottom: 16px; padding: 13px 16px; }
.change-panel h2 { display: flex; align-items: center; gap: 8px; }
.change-panel h2 svg { color: var(--sand-ink); }
.changes, .payment-list { list-style: none; margin: 9px 0 0; padding: 0; }
.changes li { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-block: 9px 3px; }
.changes li + li { border-top: 1px solid var(--line); margin-top: 8px; }
.changes li > div { min-width: 160px; }
.changes li div span, .changes a small { display: block; font-size: .76rem; color: var(--muted); }
.changes a { min-height: 44px; font-size: .875rem; }
.changes a small { font-weight: 700; }
.cleaning { padding: 3px 8px; border-radius: 4px; background: var(--sand); color: var(--sand-ink); font-size: .75rem; font-weight: 700; }
.empty { color: var(--muted); padding-block: 12px; }
.panel > .empty { margin-inline: 16px; }
.section-pad > .empty { margin-inline: 0; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  padding: 14px 16px;
}
.finance-filter { padding-inline: 0; }
.records { min-width: 645px; text-align: left; }
.records :is(th,td) { padding: 10px 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.records th { background: #f4f7f6; font-size: .8rem; }
.records small { display: block; color: var(--muted); }
.reservation-tools { padding-bottom: 8px; }
.reservation-queue { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.reservation-queue span {
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e3edf1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.reservation-search { padding-top: 0; }
.reservation-search select { max-width: 100%; }
.reservation-filters summary { width: fit-content; min-height: 44px; padding-block: 9px; cursor: pointer; color: var(--navy); font-size: .9rem; font-weight: 700; }
.reservation-filters summary span { color: var(--muted); font-weight: 500; }
.reservation-filters .filter-bar { padding-top: 0; }
.reservation-filters label { flex: 0 1 155px; }
.reservation-records { min-width: 0; }
.reservation-records :is(th,td) { padding: 12px clamp(12px, 1.7vw, 22px); }
.reservation-records td { vertical-align: middle; overflow-wrap: anywhere; }
.reservation-records tbody tr:hover { background: #f7f9f8; }
.reservation-guest { width: 29%; }
.reservation-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 4px; }
.reservation-stay time, .reservation-due { font-variant-numeric: tabular-nums; }
.reservation-records .reservation-stay small { font-size: .78rem; }
.reservation-due { color: var(--navy); }
.reservation-records .reservation-mobile-label { display: none; }
.reservation-invoice { width: 20%; }
.reservation-invoice-state { margin-bottom: 4px; }
.reservation-pages { padding-inline: clamp(16px, 3vw, 24px); }
@media (max-width: 680px) {
  .reservation-queue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reservation-queue .button { justify-content: space-between; padding-inline: 8px; text-align: left; }
  .reservation-queue-all { grid-column: 1 / -1; }
  .reservation-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reservation-search :is(.finance-search-query, .reservation-tracking) { grid-column: 1 / -1; }
  .reservation-search :is(input, select) { width: 100%; min-width: 0; }
  .reservation-search .button { justify-self: start; }
  .reservation-filters label { flex: 1 1 120px; }
  .reservation-records, .reservation-records tbody { display: block; }
  .reservation-records thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .reservation-records tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'guest state' 'stay due' 'invoice invoice';
    gap: 10px 12px;
    padding: 14px clamp(16px, 3vw, 24px);
    border-top: 1px solid var(--line);
  }
  .reservation-records td { border: 0; padding: 0; width: auto; }
  .reservation-guest { grid-area: guest; }
  .reservation-state { grid-area: state; justify-self: end; }
  .reservation-stay { grid-area: stay; }
  .reservation-due { grid-area: due; text-align: right; }
  .reservation-records .reservation-mobile-label { display: block; }
  .reservation-invoice { grid-area: invoice; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .reservation-invoice > a { display: inline-flex; align-items: center; min-height: 44px; }
  .reservation-invoice-state a { display: inline-block; padding-block: 8px; }
}
.status.por_llegar { color: var(--booking-ink); background: var(--booking); }
.status.confirmada, .status.en_estancia { color: #29574e; background: #e8f3ee; }
.status.sale_hoy { color: var(--sand-ink); background: var(--sand); }
.status.finalizada { color: var(--muted); background: #edf1ef; }
.status.cancelada { color: #713c35; background: #f5e9e5; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 6px; font-size: .86rem; }
.editor { max-width: 900px; padding: clamp(16px, 3vw, 26px); }
.section-pad { padding: clamp(16px, 3vw, 24px); }
.section-pad h2 { margin-bottom: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.details { margin: 0 0 12px; }
.details div, .invoice-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.details .reservation-balance { align-items: baseline; flex-wrap: wrap; padding-block: 10px; }
.reservation-balance dd { color: var(--navy); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.reservation-action-hint { margin-top: 10px; }
.reservation-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 16px; }
.reservation-steps li { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); }
.reservation-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; }
.reservation-steps li[aria-current="step"] { color: var(--navy); font-weight: 750; }
.reservation-steps li[aria-current="step"] span { background: var(--navy); color: white; border-color: var(--navy); }
.technical-value { font-family: ui-monospace, monospace; font-size: .82rem; }
.aeat-help { margin-top: 12px; font-size: .88rem; }
.payments-section { margin-top: 16px; }
.payment-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.payment-movement { align-items: center; }
.payment-movement > div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.payment-movement strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.payment-limit { margin: 12px 0 0; }
.month-toolbar { padding-inline: 0; }
.monthly-records { min-width: 890px; }
.monthly-records .month-cambio { background: #f7d9ca; font-weight: 700; }
.monthly-records .month-limpieza { background: #f7e9c3; font-weight: 700; }
.monthly-records .month-entrada { background: #dfecf9; }
.monthly-records .month-ocupado { background: #eef2f2; }
.finance-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-inline: clamp(16px, 3vw, 24px); border-bottom: 1px solid var(--line); }
.finance-tabs a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 3px solid transparent; font-size: .9rem; font-weight: 700; text-decoration: none; }
.finance-tabs a:hover, .finance-tabs a[aria-current] { border-bottom-color: var(--navy); }
.finance-description, .finance-results span, .finance-pagination p { color: var(--muted); font-size: .875rem; }
.draft-queue { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.draft-queue .button span { margin-inline-start: 5px; font-variant-numeric: tabular-nums; }
.finance-ready { justify-self: end; }
.finance-search { max-width: 860px; }
.finance-search-query { flex: 1 1 260px; }
.finance-results, .finance-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 8px; }
.finance-list { list-style: none; padding: 0; margin: 0; }
.finance-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(140px, auto); align-items: center; gap: 8px 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.finance-identity, .finance-meta, .finance-value { display: grid; gap: 2px; overflow-wrap: anywhere; }
.finance-meta, .finance-date, .finance-value small { color: var(--muted); font-size: .84rem; }
.finance-date, .finance-value { font-variant-numeric: tabular-nums; }
.finance-value, .finance-actions { text-align: right; }
.finance-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.finance-pagination { border-top: 1px solid var(--line); }
.finance-pagination .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
@media (min-width: 681px) {
  .draft-finance-list .finance-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.1fr) 178px; }
}
@media (max-width: 680px) {
  .finance-row { grid-template-columns: minmax(0, 1fr) auto; }
  .finance-identity { grid-column: 1; }
  .finance-date { grid-area: 2 / 1; align-self: start; }
  .finance-value { grid-area: 1 / 2; max-width: 130px; }
  .finance-actions { grid-area: 2 / 2; }
}
.reservation-records .pdf-download { display: flex; width: fit-content; margin-top: 5px; }
.reservation-records .document-email { display: flex; width: fit-content; margin-top: 5px; }
.button.document-email { gap: 6px; padding-inline: 10px; font-size: .8rem; }
.button.document-email svg { width: 16px; height: 16px; flex: none; }
.button.pdf-download {
  gap: 6px;
  padding-inline: 10px;
  border-color: transparent;
  background: #edf2f4;
  font-size: .8rem;
  white-space: nowrap;
}
.button.pdf-download svg { width: 16px; height: 16px; flex: none; }
.button.pdf-download:hover { background: #dce9ee; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .full { grid-column: 1/-1; }
.payment-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
label { display: grid; gap: 4px; min-width: 0; font-size: .875rem; font-weight: 650; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  color: var(--ink);
  background: white;
  border: 1px solid #9db1b5;
  border-radius: 6px;
  font-size: 1rem;
}
textarea { resize: vertical; }
input::placeholder { color: #587078; opacity: 1; }
.hint { color: var(--muted); font-size: .8rem; font-weight: 450; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.invoice-recipient-fields { flex-basis: 100%; min-width: 0; margin-bottom: 8px; }
.notice { padding: 10px 12px; margin: 0 0 15px; border-radius: 6px; font-size: .9rem; overflow-wrap: anywhere; }
.notice.error { background: #fce9e2; color: #782d21; }
.notice.success { background: #e2f2e9; color: #255147; }
.notice.neutral { background: #f7eddb; color: var(--sand-ink); }
.notice.availability { margin-bottom: 0; }
.finance-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.finance-summary > div { display: grid; gap: 5px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.finance-summary span { color: var(--muted); font-size: .84rem; }
.finance-summary strong { color: var(--navy); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
fieldset { margin: 12px 0 0; padding: 10px 12px 14px; min-width: 0; border: 1px solid var(--line); border-radius: 7px; }
.supplement-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); gap: 12px; }
.supplement-options .hint { margin-top: 4px; }
.supplement-legacy { margin-top: 12px; }
.supplement-legacy label { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.supplement-legacy input { flex: none; width: 18px; min-height: 0; height: 18px; }
.supplement-total { margin: 12px 0 0; }
.supplement-total div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 7px; margin-top: 7px; }
.supplement-total div:last-child { font-weight: 750; color: var(--navy); }
.supplement-total dd { margin: 0; font-variant-numeric: tabular-nums; }
legend { padding-inline: 5px; font-weight: 700; }
.print-actions { width: min(100%, 800px); margin: 0 auto 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.invoice { width: min(100%, 800px); margin-inline: auto; padding: clamp(18px, 5vw, 52px); border: 1px solid var(--line); background: white; }
.invoice-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--navy); }
.invoice-head img { width: 88px; height: auto; }
.invoice-head h1 { font-size: 1.6rem; color: var(--navy); }
.invoice-head p, .invoice-demo { color: var(--sand-ink); font-size: .9rem; font-weight: 650; }
.invoice-meta { display: grid; gap: 4px; margin: 18px 0; font-size: .85rem; }
.invoice-parties { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.invoice-parties p { margin-top: 5px; font-size: .9rem; overflow-wrap: anywhere; }
.invoice-table th, .invoice-table td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.invoice-table th { background: #edf3f4; }
.invoice-table :is(th,td):first-child { text-align: left; overflow-wrap: anywhere; }
.invoice-totals { width: min(100%, 270px); margin: 12px 0 0 auto; font-size: .9rem; }
.invoice-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.grand-total { color: var(--navy); font-weight: 800; }
.draft-details { margin-top: 16px; }
.draft-details summary { color: var(--navy); cursor: pointer; font-weight: 650; }
.draft-details .fields { margin-top: 10px; }
.invoice-demo { margin-top: 20px; font-weight:750; color:var(--navy); }
.invoice { position:relative; }
.document-demo-mark { position:absolute; top:38%; left:50%; transform:translate(-50%,-50%) rotate(-28deg); color:rgb(21 61 94 / 14%); font-size:clamp(72px,16vw,110px); font-weight:800; line-height:1; pointer-events:none; user-select:none; }
.mail-preview .notice { margin-bottom:20px; }
.mail-preview .mail-body { margin:14px 0 24px; max-width:70ch; overflow-wrap:anywhere; }
.mail-simulation-result { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); }
.mail-simulation-result h2 { margin-bottom:14px; }
.billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.billing-screen { width: min(100%, 800px); margin: 0 auto 16px; }
.billing-screen .billing-actions { margin-top: 12px; }
.billing-screen p { margin-top: 6px; overflow-wrap: anywhere; }
.billing-records td { font-variant-numeric: tabular-nums; }
.invoice-qr { margin: 14px 0 0; font-size: .8rem; }
.invoice-qr img { display: block; width: 36mm; height: 36mm; }
.access-main { padding-block: clamp(25px, 8vw, 90px); }
.access-card { width: min(100%, 470px); padding: clamp(20px, 4vw, 34px); margin-inline: auto; }
.access-card form { margin-top: 20px; }
.access-card form .button { margin-top: 9px; }
.access-card > .notice { margin-top: 14px; }
.demo-entry { padding-top: 14px; border-top: 1px solid var(--line); }
.demo-entry p { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .top-inner, .main { width: calc(100% - 32px); }
  .top-inner { min-height: 0; padding-top: 9px; flex-wrap: wrap; gap: 5px; }
  .top-inner > form { order: 1; }
  .top nav { order: 2; width: 100%; justify-content: space-between; padding-bottom: 6px; }
  .top nav a { font-size: .8rem; padding-inline: 7px; gap: 5px; white-space: nowrap; }
  .top nav a svg { width: 15px; height: 15px; }
  .main { padding-top: 18px; }
  h1 { font-size: 1.85rem; }
  .calendar-toolbar { padding: 10px; }
  .calendar-toolbar h2 { width: 100%; }
  .calendar th:first-child { width: 105px; padding-inline: 8px; }
  .changes li > div { flex-basis: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .finance-summary { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .finance-summary > div { padding: 9px 6px; }
  .finance-summary strong { font-size: 1rem; overflow-wrap: anywhere; }
}
@media (max-width: 440px) {
  .top nav a { white-space: normal; }
  .top nav a svg { display: none; }
  .fields:not(.payment-fields) { grid-template-columns: 1fr; }
  .invoice-parties { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  :root { background: white; }
  .top, .skip, .demo-note, .print-actions, .billing-screen { display: none; }
  .main, .invoice { width: 100%; margin: 0; padding: 0; border: 0; }
  .invoice-parties { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .invoice { print-color-adjust: exact; }
}
.options-nav { display:flex; gap:10px 24px; flex-wrap:wrap; margin:0 0 24px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.options-nav a { padding-block:6px; font-weight:650; }
.options-section { scroll-margin-top:20px; }
.options-section + .options-section { margin-top:32px; padding-top:28px; border-top:1px solid var(--line); }
.options-section h2 { margin-bottom:10px; }
.options-section h3 { font-size:1rem; margin:0 0 14px; }
.options-section > p { margin-bottom:18px; max-width:75ch; }
.company-editor { max-width:100%; }
.company-editor .hint, .apartments-settings .hint { font-size:.875rem; }
.company-editor .form-actions { margin-top:28px; }
.image-setting { min-width:0; }
.settings-image { display:block; width:180px; height:100px; object-fit:contain; margin:0 0 16px; background:white; }
.inline-check { display:flex; gap:10px; align-items:center; margin-top:12px; }
.inline-check input { width:auto; }
.apartments-settings { margin-top:36px; }
.apartment-create { display:flex; flex-wrap:wrap; gap:18px; align-items:end; padding:22px; margin:18px 0; }
.apartment-create label { flex:1 1 200px; }
.apartment-list { display:grid; gap:12px; margin-bottom:18px; }
.apartment-setting { padding:20px; display:flex; flex-wrap:wrap; gap:18px; align-items:end; }
.apartment-edit { display:grid; flex:1 1 600px; grid-template-columns:minmax(180px,2fr) 100px 100px auto; gap:16px; align-items:end; }
.apartment-archive { display:flex; align-items:center; gap:8px; min-height:44px; }
.demo-banner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px 20px; margin-bottom:24px; padding:10px 16px; background:var(--booking); color:var(--booking-ink); font-size:.875rem; }
.demo-banner form { margin:0; }
.demo-banner .quiet { color:inherit; text-decoration:underline; }
.private-access { margin-top:28px; padding-top:18px; border-top:1px solid var(--line); }
.private-access summary { cursor:pointer; color:var(--navy); font-weight:650; }
.private-access p { margin-top:12px; }
.reservation-hours { margin-bottom:18px; }
input[type=file] { max-width:100%; padding:8px; }
@media (max-width:900px) {
  .top-inner { flex-wrap:wrap; padding-block:8px; }
  .top nav { order:3; width:100%; justify-content:space-between; }
  .brand { white-space:normal; overflow-wrap:anywhere; }
  .apartment-edit { grid-template-columns:minmax(0,1fr) 80px 80px; }
  .apartment-edit button { grid-column:1/-1; justify-self:start; }
}
@media (max-width:440px) {
  .top nav a { font-size:.875rem; }
  .apartment-edit { grid-template-columns:1fr 1fr; }
  .apartment-edit label:first-of-type { grid-column:1/-1; }
  .apartment-create, .apartment-setting { padding:16px; }
  .demo-banner { padding:12px; }
}
@media print { .demo-banner, .options-nav { display:none; } }
