:root {
  --bg: #f7fbfc;
  --surface: #ffffff;
  --surface-soft: #edf7f9;
  --ink: #082b3c;
  --muted: #426071;
  --line: rgba(8, 43, 60, 0.12);
  --brand: #075f76;
  --brand-dark: #07364a;
  --accent: #ffe38b;
  --accent-ink: #352500;
  --danger: #b42318;
  --danger-soft: #fff1ee;
  --success: #117a52;
  --success-soft: #eaf7ef;
  --warning: #9a5b00;
  --warning-soft: #fff8eb;
  --focus: #1d8bd1;
  --shadow: 0 24px 70px rgba(8, 43, 60, 0.14);
  --soft-shadow: 0 10px 30px rgba(8, 43, 60, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 95, 118, 0.08), rgba(247, 251, 252, 0) 360px),
    var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

h1 {
  max-width: 11ch;
  font-size: 2.85rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: 1.8rem;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px max(18px, calc((100vw - 1240px) / 2));
  backdrop-filter: saturate(180%) blur(20px);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
}

.logo-lockup {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  overflow: hidden;
}

.site-logo {
  display: block;
  width: 238px;
  max-width: 46vw;
  height: auto;
  filter: saturate(1.2) contrast(1.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-actions a,
.manager-pill,
.primary-button,
.secondary-button,
.small-action,
.icon-button {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-color: var(--line);
  background: var(--surface);
  padding: 9px 15px;
  color: var(--ink);
}

.manager-pill,
.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 95, 118, 0.22);
}

.topbar-actions .manager-pill {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

.manager-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
}

.manager-pill[aria-current="page"] {
  background: var(--brand-dark);
}

.primary-button:active,
.secondary-button:active,
.manager-pill:active,
.small-action:active,
.icon-button:active,
.admin-menu-button:active,
.cart-card:active,
.topbar-actions a:active {
  transform: scale(0.97);
}

.app-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.manager-route .app-shell {
  width: min(1120px, calc(100% - 32px));
  padding-top: 18px;
}

.manager-route .home-hero,
.manager-route .guest-workspace {
  display: none;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 43, 60, 0.1);
  border-radius: 28px;
  aspect-ratio: 1672 / 941;
  background: #d7dde0;
  box-shadow: var(--shadow);
}

.home-hero::before {
  content: none;
}

.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  background: #d7dde0;
  object-fit: cover;
  object-position: center;
}

.guest-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 24px;
  justify-items: center;
}

.guest-panel,
.manager-pin-section,
.manager-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  min-height: clamp(70px, 9vw, 108px);
  align-items: center;
  width: 100%;
  background: var(--brand);
  padding: clamp(17px, 3vw, 30px) clamp(22px, 4vw, 44px);
  color: #fff;
}

.hero-content h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(2rem, 5.4vw, 4.75rem);
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-panel {
  width: min(920px, 100%);
  overflow: hidden;
}

.agreement-form,
.success-panel,
.manager-dashboard,
.report-panel {
  display: grid;
  gap: 20px;
}

.agreement-form {
  gap: 16px;
}

.agreement-form,
.success-panel {
  padding: 26px;
}

.form-heading,
.section-heading {
  display: grid;
  gap: 9px;
}

.form-heading p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.review-panel p,
.form-note,
.cart-card p {
  color: var(--muted);
  line-height: 1.5;
}

fieldset,
.review-panel,
.rules-panel,
.confirmation-box,
.pin-panel,
.alert-panel,
.report-panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

fieldset,
.confirmation-box,
.pin-panel,
.alert-panel,
.report-panel {
  padding: 20px;
}

fieldset {
  min-width: 0;
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid-wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(8, 43, 60, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  padding: 12px 13px;
}

#fullName {
  border-color: var(--brand);
  border-width: 2px;
  color: #050f16;
  font-weight: 900;
}

#fullName::placeholder {
  color: #050f16;
  font-weight: 900;
  opacity: 1;
}

input[type="date"] {
  max-width: 100%;
  min-width: 0;
  appearance: none;
}

textarea {
  min-height: 220px;
  line-height: 1.45;
  resize: vertical;
}

.print-report-text {
  display: none;
}

.review-panel {
  display: grid;
  gap: 18px;
  align-items: center;
  background: var(--surface-soft);
  padding: 20px;
}

.clickable-panel {
  width: 100%;
  color: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.clickable-panel:hover {
  border-color: rgba(7, 95, 118, 0.32);
  box-shadow: 0 10px 24px rgba(8, 43, 60, 0.08);
}

.clickable-panel:active {
  transform: scale(0.985);
}

.rules-panel {
  overflow: hidden;
  cursor: pointer;
}

.rules-panel > div {
  padding: 20px 20px 0;
}

.rules-list,
.dialog-rules ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 16px 24px 22px 44px;
  color: #263f4c;
  line-height: 1.48;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(8, 43, 60, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: #263f4c;
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-row + .checkbox-row {
  margin-top: 10px;
}

.checkbox-row:active {
  transform: scale(0.99);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

.checkbox-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}

.checkbox-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.checkbox-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkbox-copy em {
  color: var(--brand);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 12px 18px;
}

.primary-button:hover,
.manager-pill:hover {
  background: var(--brand-dark);
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(8, 43, 60, 0.04);
}

.secondary-button:hover,
.topbar-actions a:hover {
  border-color: rgba(7, 95, 118, 0.4);
  color: var(--brand);
}

.submit-button {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-message {
  min-height: 22px;
  color: var(--danger);
  font-weight: 900;
}

.error-message:empty {
  display: none;
}

.success-panel {
  border-color: color-mix(in srgb, var(--success) 40%, var(--line));
  background: linear-gradient(180deg, #fff, var(--success-soft));
}

.success-location {
  display: grid;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--success) 34%, var(--line));
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.success-location span {
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-location p {
  color: var(--ink);
  line-height: 1.5;
}

.code-box {
  display: grid;
  gap: 8px;
  width: min(100%, 380px);
  border: 2px solid var(--success);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.code-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.code-box strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 4.8rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.manager-pin-section,
.manager-section {
  display: grid;
  gap: 22px;
  margin-top: 26px;
  padding: 26px;
  width: 100%;
  scroll-margin-top: 104px;
  box-shadow: var(--soft-shadow);
}

.manager-pin-section {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 249, 0.94)),
    var(--surface);
}

.pin-copy {
  display: grid;
  gap: 10px;
}

.pin-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}

.pin-panel {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  gap: 12px;
  align-items: end;
  width: 100%;
  box-shadow: 0 12px 34px rgba(8, 43, 60, 0.08);
}

.manager-dashboard {
  gap: 22px;
}

.admin-menu-shell {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.admin-menu-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 15px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(8, 43, 60, 0.04);
}

.hamburger-icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.admin-category-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  box-shadow: var(--soft-shadow);
}

.admin-category-panel a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(8, 43, 60, 0.1);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 9px 13px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-category-panel a:hover {
  border-color: rgba(7, 95, 118, 0.36);
  color: var(--brand);
}

.admin-category-section {
  display: grid;
  gap: 14px;
  scroll-margin-top: 104px;
}

#pickupAlertPanel,
#adminReports {
  scroll-margin-top: 104px;
}

.dashboard-toolbar,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-toolbar {
  position: sticky;
  top: 75px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 249, 0.96)),
    #fff;
  padding: 14px;
  backdrop-filter: blur(14px);
}

.dashboard-toolbar .button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
}

.dashboard-toolbar .secondary-button {
  min-height: 42px;
  padding: 10px 13px;
}

.sync-status-panel {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 13px 15px;
  box-shadow: 0 1px 0 rgba(8, 43, 60, 0.04);
}

.sync-status-panel strong {
  font-size: 0.92rem;
}

.sync-status-panel span {
  color: var(--muted);
  line-height: 1.4;
}

.sync-status-panel.live {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  background: var(--success-soft);
}

.sync-status-panel.warning {
  border-color: color-mix(in srgb, var(--warning) 34%, var(--line));
  background: var(--warning-soft);
}

.sync-status-panel.checking {
  background: var(--surface-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.cart-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 251, 252, 0.88)),
    var(--surface);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(8, 43, 60, 0.04);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.alert-panel {
  display: grid;
  gap: 12px;
  border-color: color-mix(in srgb, var(--warning) 36%, var(--line));
  background: var(--warning-soft);
}

.alert-panel.empty {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  background: var(--success-soft);
}

.pickup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  padding-top: 12px;
}

.pickup-item strong {
  display: block;
  margin-bottom: 4px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cart-card {
  display: grid;
  min-height: 116px;
  gap: 8px;
  align-content: center;
  justify-items: start;
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.status-box {
  width: 28px;
  height: 28px;
  border: 2px solid transparent;
  border-radius: 8px;
}

.status-box.rented {
  border-color: #851c14;
  background: var(--danger);
}

.status-box.available {
  border-color: #17663d;
  background: var(--success);
}

.cart-card.selected {
  border-color: color-mix(in srgb, var(--brand) 54%, var(--line));
  box-shadow: 0 12px 28px rgba(7, 95, 118, 0.12);
}

.cart-card-lodge {
  font-size: 1rem;
  font-weight: 900;
}

.cart-card-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.fleet-detail-panel {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.fleet-detail-panel strong {
  font-size: 1rem;
}

.fleet-detail-panel span {
  color: var(--muted);
  line-height: 1.4;
}

.fleet-detail-panel.available {
  border-color: color-mix(in srgb, var(--success) 36%, var(--line));
  background: var(--success-soft);
}

.fleet-detail-panel.rented {
  border-color: color-mix(in srgb, var(--danger) 36%, var(--line));
  background: var(--danger-soft);
}

.range-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  width: min(100%, 760px);
  max-width: 100%;
}

.filter-action-button {
  min-height: 50px;
  padding-right: 20px;
  padding-left: 20px;
  white-space: nowrap;
}

.records-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  width: min(100%, 760px);
}

.records-search {
  width: 100%;
}

.records-filter-status {
  margin-top: -4px;
}

.records-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.records-list {
  display: grid;
  gap: 12px;
}

.records-empty,
.record-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 251, 252, 0.86)),
    #fff;
  padding: 16px;
}

.record-card {
  display: grid;
  gap: 14px;
}

.record-card-cancelled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 241, 238, 0.78)),
    #fff;
}

.record-card-main,
.record-signature {
  display: grid;
  gap: 5px;
}

.record-card-main span,
.record-signature span,
.record-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-card-main strong,
.record-signature strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.record-card-main p,
.record-signature p,
.records-empty,
.record-note {
  color: var(--muted);
  line-height: 1.45;
}

.record-note {
  margin: 0;
}

.record-signature {
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 14px;
  background: rgba(237, 247, 249, 0.72);
  padding: 12px;
}

.record-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.record-meta div {
  min-width: 0;
}

.record-meta dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-button,
.danger-action {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.danger-button:hover,
.danger-action:hover {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger-soft) 82%, #fff);
  color: var(--danger);
}

.danger-action.danger-confirm {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.danger-action.danger-confirm:hover {
  background: color-mix(in srgb, var(--danger) 90%, #000);
  color: #fff;
}

.manager-signed-row {
  margin-top: 6px;
}

.rental-log-form .dialog-body {
  min-width: 0;
}

.rental-log-form textarea {
  min-height: 96px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  font-size: 0.94rem;
}

.small-action {
  min-height: 36px;
  border-color: var(--line);
  background: #fff;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.84rem;
}

.agreement-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 110px rgba(8, 43, 60, 0.36);
}

.agreement-dialog::backdrop {
  background: rgba(8, 43, 60, 0.52);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  display: grid;
  max-height: min(860px, calc(100dvh - 28px));
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
}

.dialog-body {
  overflow: auto;
  min-height: 0;
  padding: 22px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
}

.waiver-text {
  color: #263f4c;
  font-size: 0.96rem;
  line-height: 1.58;
}

.signed-agreement-body {
  color: #172f3b;
  font-family: Georgia, "Times New Roman", serif;
}

.signed-agreement-body h1 {
  max-width: none;
  font-size: 1.65rem;
  line-height: 1.18;
}

.signed-agreement-body h2 {
  margin-top: 22px;
  font-size: 1.2rem;
}

.signed-agreement-body h3 {
  margin-top: 16px;
  font-size: 1rem;
}

.signed-agreement-body p,
.signed-agreement-body li {
  font-size: 0.92rem;
  line-height: 1.54;
}

.signed-agreement-body .print-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 16px 0;
  border: 1px solid rgba(8, 43, 60, 0.16);
  border-radius: 12px;
  padding: 12px;
}

.signed-agreement-body .print-meta p {
  margin: 0;
  overflow-wrap: anywhere;
}

.waiver-text h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink);
}

.waiver-text p + h4,
.dialog-rules {
  margin-top: 18px;
}

.waiver-text p {
  margin: 0 0 10px;
}

.dialog-rules {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.dialog-rules ol {
  padding-bottom: 0;
}

.hidden {
  display: none !important;
}

@media (min-width: 860px) {
  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.15rem;
  }
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-topbar {
    min-height: 88px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 14px;
  }

  .logo-lockup {
    flex: 0 0 auto;
    min-height: 58px;
    max-width: calc(100% - 140px);
  }

  .site-logo {
    width: min(204px, 100%);
    max-width: 100%;
  }

  .topbar-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(104px, 128px);
    min-width: 0;
    width: auto;
    margin-left: auto;
  }

  .topbar-actions a,
  .manager-pill {
    justify-content: center;
    min-height: 48px;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .app-shell {
    width: 100%;
    padding: 0 0 64px;
  }

  .manager-route .app-shell {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .home-hero {
    min-height: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .hero-media {
    position: static;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
  }

  .hero-content {
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 58px;
    padding: 14px 22px;
    background: var(--brand);
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-content h1 {
    font-size: 2.08rem;
    line-height: 0.96;
  }

  .agreement-form,
  .success-panel,
  .manager-pin-section,
  .manager-section {
    padding: 18px;
  }

  .agreement-form {
    gap: 13px;
  }

  fieldset,
  .confirmation-box,
  .pin-panel,
  .alert-panel,
  .report-panel {
    padding: 16px;
  }

  .manager-pin-section,
  .manager-section {
    gap: 18px;
    margin-top: 0;
    scroll-margin-top: 106px;
  }

  .manager-pin-section {
    grid-template-columns: 1fr;
  }

  .pin-copy h2 {
    font-size: 1.74rem;
    line-height: 1.08;
  }

  .manager-section .section-heading {
    gap: 7px;
  }

  .manager-section .section-heading h2 {
    font-size: 1.48rem;
    line-height: 1.08;
  }

  .form-grid,
  .pin-panel {
    grid-template-columns: 1fr;
  }

  .form-grid {
    gap: 10px;
  }

  label {
    gap: 6px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    border-radius: 13px;
    padding: 11px 12px;
  }

  .checkbox-row {
    grid-template-columns: 22px 1fr;
    gap: 10px;
    padding: 9px 10px;
  }

  .checkbox-copy strong {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .checkbox-copy span {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .checkbox-copy em {
    font-size: 0.77rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-card strong {
    font-size: 1.65rem;
  }

  .range-controls {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .range-controls label {
    width: 100%;
  }

  .records-search-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .filter-action-button {
    width: 100%;
  }

  .records-search,
  .records-toolbar,
  .records-toolbar .secondary-button,
  .record-actions .small-action {
    width: 100%;
  }

  .record-meta {
    grid-template-columns: 1fr;
  }

  .signed-agreement-body .print-meta {
    grid-template-columns: 1fr;
  }

  .fleet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cart-card {
    min-height: 96px;
    border-radius: 12px;
    padding: 11px;
  }

  .status-box {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .cart-card-lodge {
    font-size: 0.84rem;
  }

  .cart-card-status {
    font-size: 0.73rem;
  }

  .review-panel,
  .dashboard-toolbar,
  .section-title-row,
  .pickup-item,
  .dialog-header,
  .dialog-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .dashboard-toolbar {
    position: static;
    top: auto;
    gap: 10px;
    border-radius: 16px;
    padding: 12px;
  }

  .dashboard-toolbar label {
    width: 100%;
  }

  .dashboard-toolbar .button-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .dashboard-toolbar .secondary-button {
    min-height: 40px;
    padding: 9px 6px;
    font-size: 0.78rem;
  }

  .agreement-dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 20px;
  }

  .dialog-shell {
    max-height: calc(100svh - 24px);
  }

  .dialog-header,
  .dialog-actions {
    gap: 10px;
    padding: 14px 16px;
  }

  .dialog-actions {
    padding-bottom: max(38px, calc(env(safe-area-inset-bottom) + 28px));
  }

  .dialog-actions .primary-button,
  .dialog-actions .secondary-button {
    width: 100%;
  }

  .dialog-body {
    padding: 16px;
  }

  .rental-log-form textarea {
    min-height: 82px;
  }

  .button-row {
    flex-direction: column;
  }

  .admin-menu-shell,
  .admin-menu-button,
  .admin-category-panel,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .admin-category-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-category-panel a {
    justify-content: center;
  }

  .rules-list {
    padding-left: 38px;
  }

  .code-box strong {
    font-size: 3.25rem;
  }
}
