* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #1c1c1e; background: #f4f4f6; }
#app { max-width: 760px; margin: 0 auto; background: #fff; min-height: 100vh; }
.bar { display: flex; gap: 12px; align-items: center; padding: 16px; background: #2f4858; color: #fff; }
.logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.company-name { font-size: 1.2rem; font-weight: 700; }
.company-line { font-size: .9rem; opacity: .9; overflow-wrap: anywhere; }
main { padding: 16px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.muted { color: #6b6b70; margin: 0 0 8px; }
.small { font-size: .85rem; }
.status { display: inline-block; font-weight: 700; margin: 8px 0 16px; padding: 4px 12px; border-radius: 999px; background: #e8e8ec; }
.status.paid { background: #dff3e3; color: #1b7a34; }
.status.overdue { background: #fde4e4; color: #b3261e; }
.scroll { overflow-x: auto; }
table.lines { width: 100%; border-collapse: collapse; }
.lines th, .lines td { padding: 8px 4px; text-align: right; border-bottom: 1px solid #e5e5ea; vertical-align: top; }
.lines th:first-child, .lines td.item { text-align: left; overflow-wrap: anywhere; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 16px 0 0 auto; max-width: 320px; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; }
.totals .strong { font-weight: 700; font-size: 1.1rem; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.button { display: block; margin: 24px 0; padding: 14px; text-align: center; background: #2f4858; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cell { display: block; aspect-ratio: 1; background: #eee; border-radius: 6px; overflow: hidden; }
.cell img, .cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.unavailable { text-align: center; padding: 64px 16px; font-size: 1.1rem; }
button.button { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.button:disabled { opacity: .7; cursor: default; }
.button.pay { background: #1d5fd1; margin-bottom: 4px; }
.notice { background: #dff3e3; color: #1b7a34; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.deposit { font-weight: 700; margin: 8px 0; }
.decide { margin: 24px 0; padding: 16px; border: 1px solid #d8d8de; border-radius: 12px; }
.decide h2 { margin-top: 0; }
.field { display: block; font-weight: 600; margin: 12px 0; }
.field input, .field textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 6px; padding: 12px; font: inherit; border: 1px solid #b8b8c0; border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 16px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; }
.decide .button { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; margin: 16px 0 8px; }
.button.approve { background: #1b7a34; }
.button.secondary { background: #6b6b74; }
.decide .button:disabled { opacity: .6; cursor: default; }
.link { background: none; border: 0; padding: 8px 0; color: #1d5fd1; font: inherit; text-decoration: underline; cursor: pointer; }
.error { color: #b3261e; font-weight: 600; min-height: 1em; margin: 4px 0; }
/* Booking page */
.choice { display: flex; gap: 8px; margin: 8px 0 16px; }
.tab { flex: 1; padding: 12px; font: inherit; font-weight: 700; border: 2px solid #1d5fd1; background: #fff; color: #1d5fd1; border-radius: 8px; cursor: pointer; }
.tab.selected { background: #1d5fd1; color: #fff; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.day, .time { flex: none; padding: 10px 14px; font: inherit; border: 1px solid #b8b8c0; background: #fff; border-radius: 8px; cursor: pointer; min-height: 44px; }
.day.selected, .time.selected { border-color: #1d5fd1; background: #e7efff; font-weight: 700; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 12px 0; }
.picked { min-height: 1.4em; }
.booking .button { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.booking .button:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
