:root {
  --ink: #161221;
  --muted: #5b536a;
  --line: #e7e2ef;
  --paper: #fff;
  --wash: #f7f4fb;
  --purple: #6f2bd9;
  --purple-deep: #24103f;
  --green: #87dd32;
  --green-deep: #4d8f18;
  --sky: #3d9fda;
  --danger: #b42318;
  --ok: #237a35;
  --shadow: 0 16px 50px rgba(22, 18, 33, .14);
}

* { box-sizing: border-box; }
html { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
body { margin: 0; color: var(--ink); background: var(--wash); }
body.calendar-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { max-width: 1180px; margin: 0 auto; min-height: 66px; padding: 0 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 1.05rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--purple); color: var(--green); display: grid; place-items: center; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .nav-links button { min-height: 38px; border: 1px solid transparent; padding: 8px 11px; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links button:hover { background: var(--wash); text-decoration: none; }
.nav-links .admin-shortcut { background: #efe8ff; border-color: #d4c2f6; color: var(--purple-deep); font-weight: 900; }
.app-install-top { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border-radius: 8px; background: var(--green); border: 1px solid var(--green); color: #102300; font-weight: 900; white-space: nowrap; box-shadow: inset 0 -3px 0 rgba(0,0,0,.16); }
.app-install-top:hover { text-decoration: none; filter: brightness(.97); }

.hero { min-height: calc(100vh - 66px); display: grid; align-items: start; background-color: var(--purple-deep); background-image: linear-gradient(90deg, rgba(20,9,39,.88), rgba(20,9,39,.52), rgba(20,9,39,.08)), url('/assets/rhodes-hero-billboard.png'); background-size: cover, max(80vw, 120vh) auto; background-position: center, center 30%; background-repeat: no-repeat; color: #fff; }
.hero-inner { width: min(1180px, 100%); margin: 0 auto; padding: clamp(86px, 13vh, 132px) 18px 36px; }
.hero h1 { max-width: 760px; margin: 0 0 14px; font-size: clamp(2.4rem, 8vw, 6rem); line-height: .95; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 0 0 26px; font-size: clamp(1rem, 2.4vw, 1.35rem); color: rgba(255,255,255,.9); }
.hero-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 8px; background: var(--green); color: #102300; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }

.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 28px 18px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(22,18,33,.06); }
.panel { padding: 18px; }
.card { padding: 16px; }
.metric { font-size: 1.8rem; font-weight: 900; color: var(--purple-deep); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.section-title { margin: 0 0 14px; font-size: 1.45rem; }

.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--purple); background: var(--purple); color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; font: inherit; }
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn.secondary { background: #fff; color: var(--purple); }
.btn.green { background: var(--green); border-color: var(--green); color: #102300; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; }
.icon-btn:hover { background: var(--wash); }

form { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 800; }
.field-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.help-tip { position: relative; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #ece4ff; color: var(--purple-deep); border: 1px solid #cdbcf2; font-size: .76rem; font-weight: 900; cursor: help; flex: 0 0 auto; }
.help-pop { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 40; display: none; width: min(290px, 80vw); padding: 10px 11px; border-radius: 8px; background: var(--purple-deep); color: #fff; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.35; font-weight: 600; }
.help-pop::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--purple-deep); }
.help-tip:hover .help-pop, .help-tip:focus .help-pop { display: block; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #d9d1e6; border-radius: 8px; padding: 10px 11px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(111,43,217,.18); border-color: var(--purple); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.full-row { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.office-contract-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: min(100%, 420px); padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9fe; }
.office-contract-form .check { margin: 0; }
.office-contract-form .btn { min-height: 38px; padding: 8px 11px; }
.date-change { flex: 1 1 260px; min-width: min(100%, 260px); padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9fe; }
.date-change summary { cursor: pointer; font-weight: 900; color: var(--purple-deep); }
.date-change-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 10px; }
.date-change-form .btn { min-height: 42px; }
.token-list { display: flex; flex-wrap: wrap; gap: 7px; }
.token-list code { padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line); background: #fbf9fe; font-size: .84rem; overflow-wrap: anywhere; }

.flash { width: min(1180px, calc(100% - 36px)); margin: 16px auto 0; padding: 12px 14px; border-radius: 8px; border: 1px solid; background: #fff; }
.flash.ok { border-color: #9dd5a8; color: var(--ok); }
.flash.error { border-color: #efb2aa; color: var(--danger); }
.flash.info { border-color: #c7b8ed; color: var(--purple-deep); }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { min-height: 92px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; align-content: space-between; }
.day.closed { background: #f1eef6; color: var(--muted); }
.day strong { font-size: .95rem; }
.availability-picker { grid-column: 1 / -1; }
.availability-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.availability-picker-head p { margin: 6px 0 0; }
.availability-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; color: var(--muted); font-size: .9rem; }
.availability-legend span { display: inline-flex; align-items: center; gap: 6px; }
.availability-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.legend-open { background: #e8f8df; }
.legend-full { background: #fff3cd; }
.legend-closed { background: #f1eef6; }
.reserve-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.reserve-day { min-height: 92px; display: grid; align-content: space-between; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; font: inherit; }
.reserve-day strong { font-size: .95rem; }
.reserve-day span { font-weight: 900; }
.reserve-day small { color: var(--muted); font-size: .76rem; }
.reserve-day.open { background: #f5fff0; border-color: #b9eaa8; cursor: pointer; }
.reserve-day.open:hover, .reserve-day.open.selected { outline: 3px solid rgba(135,221,50,.34); border-color: var(--green); }
.reserve-day.first-available { border-color: var(--green); }
.reserve-day.first-available::after { content: "First open"; width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 6px; background: var(--green); color: #13240a; font-size: .72rem; font-weight: 900; }
.reserve-day.full { background: #fffaf0; color: #7a4b00; }
.reserve-day.closed { background: #f1eef6; color: var(--muted); }
.reserve-day-loading { grid-column: 1 / -1; color: var(--muted); }
.availability-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.availability-dialog-backdrop { position: absolute; inset: 0; background: rgba(22, 18, 33, .52); }
.availability-dialog-panel { position: relative; width: min(760px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; padding: 16px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.availability-dialog-head { position: sticky; top: -16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -16px -16px 12px; padding: 12px 16px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.availability-dialog .reserve-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.availability-dialog .reserve-day { min-height: 62px; align-content: start; justify-items: center; gap: 3px; padding: 6px 4px; text-align: center; }
.availability-dialog .reserve-day:focus { outline: 3px solid rgba(111,43,217,.24); border-color: var(--purple); }
.availability-dialog .reserve-day strong { font-size: .82rem; }
.availability-dialog .reserve-day span { font-size: .78rem; }
.availability-dialog .reserve-day small { display: none; }
.availability-dialog .reserve-day.first-available::after { justify-self: center; font-size: .66rem; padding: 2px 5px; }
.availability-dialog .reserve-day-loading { justify-items: start; text-align: left; }
.badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: #ece4ff; color: var(--purple-deep); }
.badge.ok { background: #e8f8df; color: var(--green-deep); }
.badge.bad { background: #ffe8e5; color: var(--danger); }
.badge.warn { background: #fff3cd; color: #7a4b00; }
.status { text-transform: capitalize; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
table.detail-table { min-width: 0; table-layout: fixed; }
table.detail-table th { width: 42%; }
table.detail-table td { overflow-wrap: anywhere; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4eefc; font-size: .84rem; text-transform: uppercase; color: var(--purple-deep); }
tr:last-child td { border-bottom: 0; }
tr[data-map-url], .schedule-strip[data-map-url] { cursor: pointer; }
tr[data-map-url]:hover td { background: #fbf9fe; }
tr.driver-job-today td { background: #ffe8e5; border-bottom-color: #efb2aa; }
tr.driver-job-today td:first-child { border-left: 7px solid #d90000; }
tr.driver-job-today:hover td { background: #ffd9d4; }
.driver-today-badge { display: inline-flex; margin-top: 8px; padding: 5px 8px; border-radius: 8px; background: #d90000; color: #fff; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.map-address-text { display: inline; color: var(--ink); font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.map-address-text:hover { color: var(--purple-deep); }
.driver-map-link, .schedule-map-link { display: inline-flex; width: max-content; max-width: 100%; margin-top: 7px; padding: 7px 9px; border-radius: 8px; border: 1px solid #d4c2f6; background: #fff; color: var(--purple-deep); font-size: .82rem; font-weight: 900; text-decoration: none; }
.driver-map-link:hover, .schedule-map-link:hover { background: #efe8ff; text-decoration: none; }
.reservation-cards { display: grid; gap: 12px; }
.reservation-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 6px 20px rgba(22,18,33,.06); }
.reservation-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.reservation-card-head p { margin: 5px 0 0; }
.reservation-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.reservation-meta.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reservation-meta div { padding: 10px; border-radius: 8px; background: #fbf9fe; border: 1px solid var(--line); }
.reservation-meta span { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.reservation-meta strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.reservation-address { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.simple-schedule { display: grid; gap: 14px; }
.simple-schedule-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.simple-schedule-head h1 { margin-bottom: 4px; }
.simple-schedule-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.legend-dot { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .82rem; font-weight: 900; }
.legend-dot::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: #111; }
.legend-dot.attention::before { background: #ffd400; }
.legend-dot.today::before { background: #d90000; }
.legend-dot.tomorrow::before { background: #00a23b; }
.legend-dot.later::before { background: #111; }
.simple-schedule-list { display: grid; gap: 10px; }
.schedule-strip { display: grid; grid-template-columns: 1.1fr 2fr 130px 130px; gap: 0; overflow: hidden; border: 1px solid var(--line); border-left: 8px solid #111; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(22,18,33,.06); }
.schedule-strip > div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); }
.schedule-strip > div:last-child { border-right: 0; }
.schedule-strip span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.schedule-strip strong { display: block; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.2; }
.schedule-strip.attention { background: #fff4b8; border-left-color: #ffd400; animation: simple-attention-blink 1s steps(2, start) infinite; }
.schedule-strip.today { background: #ffe8e5; border-left-color: #d90000; }
.schedule-strip.today .schedule-map-link { border-color: #efb2aa; }
.schedule-strip.tomorrow { background: #e8f8df; border-left-color: #00a23b; }
.schedule-strip.later { background: #fff; border-left-color: #111; }
@keyframes simple-attention-blink {
  50% { background: #ffd400; }
}
.tos-box { max-height: 260px; overflow: auto; border: 1px solid var(--line); background: #fbf9fe; padding: 14px; border-radius: 8px; white-space: pre-wrap; }
.signature-form { align-items: start; }
.signature-contract, .signature-shell, .signature-accept { grid-column: 1 / -1; }
.signature-shell { display: grid; gap: 8px; }
.signature-canvas { width: 100%; height: 210px; border: 2px solid #d9d1e6; border-radius: 8px; background: #fff; touch-action: none; box-shadow: inset 0 0 0 1px rgba(111,43,217,.05); }
.signature-canvas:focus { outline: 3px solid rgba(111,43,217,.18); border-color: var(--purple); }
.contract-office-card { display: grid; gap: 6px; margin: 10px 0; padding: 12px; border: 1px solid #b9eaa8; border-radius: 8px; background: #f5fff0; }
.contract-office-card p { margin: 0; }
.contract-signatures { display: grid; gap: 10px; margin: 10px 0; }
.contract-signature-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(160px, .8fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9fe; }
.contract-signature-card p { margin: 5px 0 0; }
.contract-signature-card details { grid-column: 1 / -1; }
.contract-signature-card summary { cursor: pointer; font-weight: 900; color: var(--purple-deep); }
.contract-signature-image { display: block; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.contract-signature-image img { width: 100%; max-height: 130px; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: block; }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.rental-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 8px 0; }
.rental-photo { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.rental-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rental-photo span { color: var(--purple-deep); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.rental-photo-upload { margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9fe; }
.rental-photo-upload summary { cursor: pointer; font-weight: 900; color: var(--purple-deep); }
.rental-photo-upload-form { display: grid; gap: 10px; margin-top: 10px; }
.rental-photo-upload-form .small { margin: 0; }
.media-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.media-admin-item { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 6px 20px rgba(22,18,33,.06); }
.media-admin-item img, .hero-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.media-admin-actions { display: grid; gap: 8px; }
.media-admin-actions form { display: grid; }
.hero-preview { display: grid; gap: 10px; margin-bottom: 14px; }

.footer { background: var(--purple-deep); color: rgba(255,255,255,.82); }
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { color: #fff; }

@media (max-width: 800px) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; padding-bottom: 12px; }
  .brand { min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-install-top { grid-column: 2; grid-row: 1; min-height: 38px; padding: 8px 10px; font-size: .92rem; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .nav-links a, .nav-links button { flex: 0 0 auto; min-height: 36px; padding: 7px 9px; font-size: .94rem; white-space: nowrap; }
  .wrap { padding-left: 12px; padding-right: 12px; }
  .hero { min-height: 640px; background-size: cover, max(80vw, 120vh) auto; background-position: center, 54% 34%; }
  .hero-inner { padding-top: 72px; }
  .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns: 1fr; }
  .simple-schedule-head { display: grid; }
  .simple-schedule-legend { justify-content: flex-start; }
  .schedule-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .schedule-strip > div:nth-last-child(-n+2) { border-bottom: 0; }
  .schedule-strip .schedule-address { grid-column: 1 / -1; }
  .reservation-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar, .reserve-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .availability-picker-head { align-items: stretch; flex-direction: column; }
  .availability-picker-head .btn { width: 100%; }
  .availability-dialog { align-items: end; padding: 10px; }
  .availability-dialog-panel { width: 100%; max-height: calc(100vh - 64px); border-radius: 8px 8px 0 0; }
  .availability-dialog .reserve-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .availability-dialog .reserve-day { min-height: 56px; padding: 5px 3px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table.responsive-table { display: block; min-width: 0; width: 100%; border-collapse: separate; }
  .table-wrap table.responsive-table thead,
  .table-wrap table.responsive-table tr.responsive-header-row { display: none; }
  .table-wrap table.responsive-table tbody { display: grid; gap: 12px; }
  .table-wrap table.responsive-table tr { display: grid; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 6px 20px rgba(22,18,33,.06); }
  .table-wrap table.responsive-table td { display: grid; grid-template-columns: minmax(92px, 38%) minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .table-wrap table.responsive-table td:last-child { border-bottom: 0; }
  .table-wrap table.responsive-table td::before { content: attr(data-label); color: var(--purple-deep); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
  .table-wrap table.responsive-table td .actions,
  .table-wrap table.responsive-table td form.actions { margin-top: 0; }
  .table-wrap table.responsive-table td .btn,
  .table-wrap table.responsive-table td button.btn { width: 100%; }
  .actions .btn, .actions button.btn { flex: 1 1 150px; }
  .office-contract-form { grid-template-columns: 1fr; width: 100%; }
  .date-change-form { grid-template-columns: 1fr; }
  .contract-signature-card { grid-template-columns: 1fr; }
  .signature-canvas { height: 190px; }
}

@media (max-width: 460px) {
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reserve-calendar { grid-template-columns: 1fr; }
  .reservation-card-head { display: grid; }
  .reservation-meta { grid-template-columns: 1fr; }
  .schedule-strip { grid-template-columns: 1fr; }
  .schedule-strip > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .schedule-strip > div:last-child { border-bottom: 0; }
  .schedule-strip strong { font-size: 1rem; }
  .availability-dialog .reserve-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .availability-dialog .reserve-day strong { font-size: .76rem; }
  .availability-dialog .reserve-day span { font-size: .72rem; }
  .availability-dialog .reserve-day.first-available::after { content: "Open"; }
  .app-install-top { font-size: .84rem; padding-left: 8px; padding-right: 8px; }
  .nav-links a, .nav-links button { padding-left: 8px; padding-right: 8px; }
  .table-wrap table.responsive-table td { grid-template-columns: 1fr; gap: 5px; }
}
