:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --paper: #fff;
  --ink: #1b2029;
  --muted: #656d79;
  --line: #e7e9ef;
  --amber: #ffbf3d;
  --amber-pale: #fff3d7;
  --amber-dark: #825008;
  --green: #237853;
  --green-pale: #edf8f1;
  --radius: 18px;
  font-family: "Inter", "Adwaita Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden], .sprite { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
input { font-size: 1rem; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a76700; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.shell { width: min(100% - 80px, 1232px); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 810; width: max-content; letter-spacing: -.95px; }
.brand img { display: block; }
.brand-accent { color: #885500; }
.tabs { display: flex; align-items: center; height: 100%; gap: 5px; }
.nav-button { border: 0; border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 11px 15px; color: var(--muted); font-weight: 650; font-size: .9rem; background: transparent; white-space: nowrap; }
.nav-button:hover { background: var(--bg); color: var(--ink); }
.nav-button[aria-current="page"] { color: #754700; background: var(--amber-pale); }
.nav-button .icon { width: 17px; height: 17px; }
.account-area { position: relative; justify-self: end; display: flex; align-items: center; gap: 14px; }
.demo-label { color: #74521c; font-size: .76rem; font-weight: 720; padding: 5px 8px; border: 1px solid #f1e7d4; background: #fcf8f0; border-radius: 7px; white-space: nowrap; }
.account { display: flex; align-items: center; gap: 9px; border: 0; padding: 4px; background: transparent; color: var(--ink); text-align: left; border-radius: 9px; }
.account:hover { background: var(--bg); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eae8ff; color: #575093; font-size: .75rem; font-weight: 800; }
.account-text strong, .account-text small { display: block; white-space: nowrap; }
.account-text strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; }
.account-text small { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.account > .icon { width: 15px; height: 15px; color: var(--muted); margin-left: 3px; }
.account-menu { position: absolute; z-index: 3; right: 0; top: calc(100% + 10px); min-width: 215px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 6px; box-shadow: 0 10px 24px #161b2820; }
.account-menu button { display: flex; width: 100%; align-items: center; gap: 9px; text-align: left; background: transparent; border: 0; border-radius: 7px; padding: 10px; font-size: .9rem; color: var(--ink); }
.account-menu button:hover { background: var(--bg); }
.account-menu button[aria-current="true"] { background: var(--amber-pale); }

.main { padding-top: 29px; }
.hero { position: relative; overflow: hidden; border-radius: 22px; background: #201810 linear-gradient(90deg, #1d1714 0%, #17101362 47%, transparent 76%); isolation: isolate; min-height: 243px; display: flex; align-items: center; }
.hero::before { content: ""; z-index: -2; position: absolute; inset: 0; background: url("/garage.webp") center 48% / cover no-repeat; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #170f0deb 0%, #1c1513aa 42%, #251d1000 79%); }
.hero-copy { padding: 34px 43px 37px; color: #fff; }
.place-tag { display: inline-flex; align-items: center; gap: 8px; border-radius: 7px; background: #2e231adc; border: 1px solid #dca2475d; color: #ffce75; padding: 6px 9px; font-weight: 720; font-size: .72rem; letter-spacing: .085em; }
.place-tag .icon { width: 17px; height: 17px; }
.place-tag i { width: 4px; height: 4px; border-radius: 50%; background: #ffce75; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.62rem); letter-spacing: -.065em; line-height: 1.02; margin: 15px 0 12px; font-weight: 825; }
.hero h1 span { color: var(--amber); }
.hero p { color: #e3dcd3; line-height: 1.55; max-width: 430px; font-size: 1rem; text-wrap: pretty; }
.layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(290px, 1fr); gap: 23px; align-items: start; margin-top: 23px; }
.main-column, .side-column { min-width: 0; }
.side-column { display: grid; gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 6px #28293006; }
.calendar, .bookings { padding: 23px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 11px; }
.section-icon .icon { width: 22px; height: 22px; }
.amber { background: var(--amber-pale); color: var(--amber-dark); }
.dark { background: #272a32; color: #ffcb62; }
.muted { background: #f1f2f6; color: #596173; }
.card h2 { font-size: 1.25rem; letter-spacing: -.53px; line-height: 1.2; }
.section-heading p, .card p { font-size: .89rem; line-height: 1.5; color: var(--muted); }
.section-heading p { margin-top: 3px; }
.section-heading > div:nth-child(2) { min-width: 0; }
.rate-badge { margin-left: auto; flex: 0 0 auto; padding: 6px 9px; border-radius: 7px; color: var(--amber-dark); background: var(--amber-pale); font-weight: 750; font-size: .83rem; white-space: nowrap; }
.switch { display: flex; gap: 3px; padding: 4px; border-radius: 9px; background: #f2f3f6; margin-top: 20px; }
.switch button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; border: 1px solid transparent; background: none; border-radius: 7px; color: var(--muted); font-size: .88rem; font-weight: 650; padding: 7px; min-height: 36px; }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { border-color: #e9ebef; color: var(--ink); background: white; box-shadow: 0 1px 3px #201c2412; }
.switch .icon { width: 16px; height: 16px; }
.week-bar, .slot-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.week-bar { margin: 18px 0 9px; }
.week-bar strong { font-size: .96rem; }
.week-actions { display: flex; gap: 6px; }
.icon-button { display: grid; place-items: center; width: 33px; height: 33px; padding: 0; background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.icon-button:hover:not(:disabled) { background: var(--amber-pale); border-color: #f3d288; }
.icon-button:disabled { color: #a4a9b5; background: #fafafb; }
.icon-button .icon { width: 16px; height: 16px; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.day { display: grid; place-items: center; gap: 3px; min-height: 60px; padding: 7px 2px; border: 1px solid var(--line); background: #fff; border-radius: 9px; color: var(--muted); }
.day small { font-size: .76rem; font-weight: 620; text-transform: capitalize; }
.day strong { color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.day:hover:not(:disabled) { border-color: #f1bb53; }
.day[aria-pressed="true"] { border-color: #f3b949; background: var(--amber-pale); color: var(--amber-dark); }
.day:disabled { opacity: .43; }
.slot-heading { margin: 23px 0 10px; padding-top: 17px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.slot-heading h3 { font-size: .96rem; }
.week-bar strong::first-letter, .slot-heading h3::first-letter { text-transform: uppercase; }
.legend { display: flex; gap: 11px; color: var(--muted); font-size: .76rem; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { height: 7px; width: 7px; display: inline-block; border-radius: 50%; flex: 0 0 auto; }
.dot.free { background: #349971; }
.dot.busy { background: #9299a7; }
.dot.selected { background: #eaa224; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { text-align: left; display: grid; align-content: center; gap: 3px; min-height: 57px; padding: 9px 10px; background: #f7fbf8; border: 1px solid #e0efe5; border-radius: 9px; color: var(--green); }
.slot strong { font-size: .91rem; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.slot small { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; }
.slot.busy, .slot.past { background: #f5f6f8; color: #646d7e; border-color: #e9ebef; }
.slot.busy strong, .slot.past strong { color: #555e6f; }
.slot.selected { background: var(--amber-pale); color: var(--amber-dark); border-color: #edac35; }
.slot:hover:not(:disabled) { border-color: #e5aa3c; }
.calendar-foot { display: flex; align-items: center; gap: 6px; margin-top: 15px; }
.card .calendar-foot { font-size: .78rem; }
.calendar-foot .icon { width: 15px; height: 15px; }

.access { padding: 21px; background: #1e2128; color: #fff; border-color: #1e2128; }
.side-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.access-status { display: inline-flex; align-items: center; gap: 6px; color: #d7dbe4; background: #323641; padding: 6px 8px; border-radius: 6px; font-size: .75rem; font-weight: 680; }
.access-status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.access-status.available { color: #9ce1bd; background: #2a423b; }
.access h2 { font-size: 1.35rem; }
.access > p { margin: 7px 0 15px; color: #d1d4dd; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; min-height: 43px; padding: 9px 13px; font-size: .91rem; line-height: 1.2; font-weight: 750; border: 1px solid transparent; }
.primary { background: var(--amber); color: #211b13; }
.primary:hover:not(:disabled) { background: #ffcc60; }
.primary:disabled { background: #f0f1f4; color: #6b7280; }
.access .primary:disabled { background: #393d47; color: #c4c7d0; }
.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.secondary:hover { background: var(--bg); }
.danger { background: #fff5f4; color: #952d28; border-color: #f4d8d6; }
.danger:hover { background: #fce8e7; }
.access .button, .selection .button, .sign-in form .button { width: 100%; }
.access .button .icon { width: 17px; height: 17px; }
.access p.access-help { margin: 10px 0 0; color: #c9cdd7; font-size: .77rem; text-align: center; }
.access p.access-result { margin: 10px 0 0; padding: 8px; background: #273a35; color: #b6f3d1; border-radius: 7px; font-size: .83rem; }
.access p.access-result.error { background: #57302f; color: #ffe3e0; }
.selection, .pricing { padding: 19px; }
.selection-content { min-height: 49px; display: grid; gap: 5px; align-content: center; margin: 12px 0; background: #f6f7f9; border: 1px dashed #e2e5eb; border-radius: 8px; padding: 9px 10px; font-size: .86rem; }
.selection-price { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 12px; }
.selection-price div strong, .selection-price small { display: block; }
.selection-price div strong { font-size: .85rem; }
.selection-price small { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.selection-price > strong { font-size: 1.15rem; white-space: nowrap; }
.selection .rate-missing { margin-bottom: 10px; }
.pricing .section-icon { font-size: 1.32rem; font-weight: 750; }
.pricing form { display: grid; gap: 8px; margin-top: 15px; }
.rate-control { display: flex; align-items: stretch; position: relative; }
.rate-control input { width: 100%; padding-right: 47px; }
.rate-control span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.selection-content .empty, .selection-help { color: var(--muted); }
.selection-content .empty { display: flex; align-items: center; gap: 7px; }
.selection-content .empty .icon { width: 16px; height: 16px; }
.selection-content strong { font-variant-numeric: tabular-nums; }
.selection p.selection-help { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: .76rem; }
.selection-help .icon { width: 15px; height: 15px; margin-top: 1px; }
.period-intro { margin: 20px 0 18px; }
fieldset { margin: 0 0 15px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
legend { font-size: .91rem; font-weight: 750; padding: 0 4px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; min-width: 0; }
input { min-width: 0; max-width: 100%; border: 1px solid #dce0e7; border-radius: 8px; background: white; padding: 9px; min-height: 42px; color: var(--ink); }
.sign-in { margin: 24px auto 0; padding: 23px; max-width: 430px; }
.sign-in h2 { margin: 12px 0 15px; }
.sign-in form { display: grid; gap: 12px; }
.sign-in form input { font-size: 1rem; }
.auth-switch { margin-top: 12px; }
.text-button { color: #825008; background: transparent; padding: 8px 3px; border: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#demo-signin p { margin-top: 16px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.bookings-filters { margin-bottom: 15px; }
.booking-list { display: grid; gap: 9px; }
.booking-item { border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.booking-top, .booking-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.booking-top h3 { font-size: .99rem; }
.booking-note { margin: 5px 0; }
.booking-item .booking-price { margin-top: 6px; font-weight: 670; color: var(--ink); }
.payment-panel { margin-top: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fb; }
.payment-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; }
.payment-heading > strong { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.payment-heading .icon { width: 16px; height: 16px; }
.payment-panel p { margin-top: 6px; }
.payment-details { display: flex; flex-wrap: wrap; gap: 9px 19px; margin: 8px 0 0; }
.payment-details dt { color: var(--muted); font-size: .8rem; }
.payment-details dd { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 1px 0 0; font-size: .91rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.payment-details .text-button { padding: 5px 3px; font-size: .8rem; }
.booking-times { margin: 7px 0 0; padding-left: 19px; font-size: .88rem; line-height: 1.5; }
.booking-actions { justify-content: flex-start; margin-top: 10px; }
.booking-actions .button { min-height: 34px; font-size: .82rem; }
.booking-actions .button:disabled { opacity: .55; }
.status { padding: 4px 8px; background: #f0f1f4; color: #596173; font-weight: 680; border-radius: 6px; font-size: .78rem; white-space: nowrap; }
.status.pending { background: #fff3d7; color: #7d510b; }
.status.approved { background: var(--green-pale); color: var(--green); }
.status.rejected { background: #fff0ef; color: #952d28; }
.status.payment-pending { background: #fff3d7; color: #7d510b; }
.status.payment-reported { background: #eae8ff; color: #575093; }
.status.payment-confirmed { background: var(--green-pale); color: var(--green); }
.empty-bookings { padding: 16px; text-align: center; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 27px; padding: 14px 0 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; }
.footer > span:first-child { font-weight: 750; }
.footer .icon { width: 15px; height: 15px; }
.loading { margin: 20px 0; color: var(--muted); }
.toast { position: fixed; bottom: 20px; right: max(20px, calc((100vw - 1232px) / 2)); z-index: 5; max-width: min(425px, calc(100vw - 40px)); padding: 12px 16px; color: #fff; background: #262c36; border-radius: 9px; box-shadow: 0 5px 18px #13192540; font-size: .9rem; }
.toast.error { background: #8d2a27; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 40px); }
  .layout { grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 15px; }
  .calendar, .bookings, .access, .selection, .pricing { padding: 16px; }
  .slot { padding-inline: 7px; }
  .slot strong { font-size: .84rem; }
  .hero-copy { padding-inline: 30px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3px; padding-top: 8px; padding-bottom: 6px; }
  .tabs { grid-column: span 2; grid-row: 2; justify-self: center; }
  .brand { font-size: 21px; }
  .brand img { width: 35px; height: 35px; }
  .account-area { gap: 4px; }
  .account-text { display: none; }
  .account { gap: 4px; }
  .account, .nav-button, .icon-button, .button, input { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .text-button { min-height: 44px; }
  .main { padding-top: 14px; }
  .hero { border-radius: 16px; min-height: 180px; }
  .hero::after { background: linear-gradient(90deg, #1d1415e8, #1c1513a3 65%, #251d1050); }
  .hero-copy { padding: 21px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); margin-block: 12px 8px; }
  .hero p { font-size: .88rem; }
  .layout { grid-template-columns: 1fr; margin-top: 14px; }
  .side-column { display: contents; }
  .access { grid-row: 1; }
  .owner-view #bizum-settings { grid-row: 2; }
  .booking-actions .button { min-height: 44px; }
  .side-heading { margin-bottom: 8px; }
  .access > p { margin-bottom: 9px; }
  .access p.access-help { margin-top: 7px; }
  .slot { min-height: 60px; }
  .rate-badge { padding: 5px 7px; font-size: .76rem; }
}
@media (max-width: 380px) {
  .demo-label { display: none; }
  .day-grid { gap: 4px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { gap: 8px; }
  .section-heading p { font-size: .82rem; }
  .calendar .section-icon { width: 35px; height: 35px; }
}
@media (max-width: 345px) {
  fieldset { grid-template-columns: 1fr; }
}
