.owner-tour {
  --gutter: clamp(18px, 3.3vw, 40px);
  width: min(940px, calc(100% - 64px));
  padding-block: clamp(28px, 2.5vw, 40px) clamp(48px, 6vw, 88px);
}
.tour-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: clamp(20px, 2vw, 26px);
}
.tour-heading h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 4.2rem);
  line-height: 1;
}
.tour-lede {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}
.tour-access, .reset-tour, .native-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 700;
  text-underline-offset: .25em;
}
.tour-access { color: var(--accent-text); }
.tour-experience {
  color: var(--text);
  font: 400 .9375rem/1.5 GarageInter, Arial, sans-serif;
}
.tour-experience :focus-visible { outline-offset: 2px; }
.tour-frame-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 0 2px 6px;
}
.tour-frame-heading > :first-child, .review-label, .owner-tour .kicker {
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.tour-frame-heading > :first-child, .reset-tour { color: var(--muted); }
.tour-frame-heading > :first-child { flex: 1; }
.reset-tour { margin-left: auto; font-size: .8125rem; }
.tour-start {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-text);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
}
.garage-shell {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--background);
  box-shadow: 0 14px 44px var(--shadow);
}
.native-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 4px var(--gutter);
  border-bottom: 1px solid var(--line);
  border-radius: 17px 17px 0 0;
  background: var(--background);
}
.native-wordmark { display: block; width: min(160px, 60%); height: auto; }
.native-section-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.native-section-brand img { display: block; width: 22px; height: 22px; object-fit: contain; }
.native-back { color: var(--text); text-decoration: none; }
.tour-experience .native-icon { display: inline-block; font: normal 20px/1 GarageFeather; }
.app-main {
  min-width: 0;
  padding: clamp(20px, 2.3vw, 28px) var(--gutter) clamp(24px, 2.7vw, 30px);
  overflow-wrap: anywhere;
}
/* A deep link focuses the contents for reading. Only its interactive controls need focus rings. */
.tour-experience #workspace:focus { outline: none; }
.workspace-heading { margin-bottom: 20px; }
.workspace-heading h2 {
  margin: 0;
  font: 700 1.75rem/1.22 var(--font-display);
  letter-spacing: -.012em;
}
.workspace-heading p {
  max-width: 65ch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}
.owner-tour .quiet, .owner-tour small { color: var(--muted); }
.owner-tour .kicker, .review-label { color: var(--teal); }
.app-content > * + * { margin-top: 18px; }
.garage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.summary-link {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-height: 64px;
  padding-inline: 4px;
  text-align: center;
  text-decoration: none;
}
.summary-link + .summary-link { border-left: 1px solid var(--line); }
.summary-link strong { font-size: .8rem; font-weight: 400; line-height: 1.45; }
.summary-link:first-child strong { color: var(--accent-text); font: 600 1.625rem/1.19 var(--font-display); }
.summary-link small { font-size: .78rem; }
.dashboard-section { margin-top: 24px; }
.section-line, .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.section-line { min-height: 36px; align-items: center; margin-bottom: 6px; }
.section-line h3 {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font: 600 1rem/1.375 var(--font-body);
}
.app-main .panel-head h3, .app-main .panel > h3 {
  margin: 0;
  font: 600 1.625rem/1.19 var(--font-display);
}
.section-line > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--teal);
  font-size: .83rem;
  font-weight: 700;
}
.dashboard-section .record-list, .all-locations .record-list {
  margin: 0;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.row-copy { flex: 1; min-width: 0; }
.garage-vehicle-row img { flex: none; width: 68px; height: 48px; border-radius: 8px; object-fit: cover; }
.all-locations { margin: 18px 0 0; }
.all-locations summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 10px;
  color: var(--teal);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
}
.app-main .panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.app-main .panel {
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.panel .kicker { margin: 0 0 6px; }
.panel h4 { margin: 16px 0 5px; font-size: 1rem; }
.panel p { margin: 8px 0 0; font-size: .91rem; line-height: 1.55; }
.panel .vehicle-banner {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 10px;
}
.guest-code { display: grid; width: fit-content; max-width: 100%; gap: 8px; margin: 20px auto; text-align: center; }
.guest-code img { display: block; width: 166px; height: 166px; margin: auto; border-radius: 6px; image-rendering: pixelated; }
.guest-code figcaption { font-size: .8rem; color: var(--muted); }
.owner-tour .guest-notice { padding: 12px 14px; border-left: 3px solid var(--teal); background: var(--teal-wash); }
.guest-places { margin: 12px 0 0; padding-left: 20px; list-style: disc; }
.guest-places li { padding: 0 0 10px 4px; }
.guest-places li::marker { color: var(--teal); }
.guest-places small { display: block; margin-top: 3px; }
.paddock-guide { margin: 18px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--subtle); }
.paddock-guide figcaption strong,.paddock-guide small,.paddock-guide li strong { display: block; }
.paddock-guide small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.paddock-guide ul { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 14px 0 0; padding: 0; }
.paddock-guide li { min-width: 0; padding: 10px; border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
.paddock-guide b { font-size: .78rem; color: var(--teal); }
.paddock-guide li strong { font-size: .9rem; margin-top: 4px; }
.paddock-aisle { margin-top: 5px; padding: 9px 2px; border-block: 1px dashed var(--input-border); text-align: center; font-size: .78rem; }
.record-list { display: grid; list-style: none; padding: 0; margin: 8px 0 0; }
.owner-tour .record-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  padding: 12px 0;
  color: var(--text);
  font-size: .91rem;
  line-height: 1.45;
}
.record-row + .record-row, .record-list + .record-list { border-top: 1px solid var(--line); }
.record-row.app-row, .record-row.garage-vehicle-row { align-items: center; min-height: 60px; }
.record-row strong, .record-row small { display: block; }
.record-row small { margin-top: 4px; font-size: .8rem; }
.record-row > span:last-child {
  flex: none;
  max-width: 46%;
  color: var(--muted);
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.owner-tour a.record-row { text-decoration: none; }
.owner-tour .action, .tour-next > a:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 .875rem/1.5 var(--font-body);
  text-align: center;
  text-decoration: none;
}
.owner-tour .action.secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
.panel > .action { margin: 14px 4px 0 0; }
.owner-tour .subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.subnav a[aria-current="page"] {
  border-color: var(--teal);
  background: var(--teal-wash);
  color: var(--teal);
}
.app-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px clamp(8px, 6vw, 92px) max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  border-radius: 0 0 17px 17px;
  background: var(--background);
}
html:has(.garage-shell) {
  scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  gap: 3px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
}
.app-tab[aria-current="page"] { color: var(--accent-text); }
.app-tab .tab-glyph, .app-tab .native-icon { display: inline-flex; font: normal 22px/24px GarageFeather; }
.tour-experience .view-review {
  margin-top: clamp(24px, 3.5vw, 42px);
  padding: clamp(18px, 2.6vw, 28px) var(--gutter);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--teal-wash) 46%, var(--background));
}
.view-review h3 {
  margin: 5px 0 6px;
  font: 700 clamp(1.5rem, 2.6vw, 1.88rem)/1.15 Barlow, Arial, sans-serif;
}
.view-review p:not(.review-label) { max-width: 70ch; margin: 0; line-height: 1.6; }
.view-review a { color: var(--teal); font-weight: 700; }
.related-outing { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: .875rem; }
.tour-next {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tour-next > span { flex: auto; color: var(--muted); font-size: .8rem; }
.tour-next a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 700; }
.tour-next > a:last-child { margin-left: auto; }
@media (hover: hover) {
  .app-tab:hover, .owner-tour .action.secondary:hover, .summary-link:hover { background: var(--raised); }
  .subnav a:hover { border-color: var(--input-border); }
  .tour-start:hover { border-color: var(--accent-text); }
  .owner-tour .action:not(.secondary):hover, .tour-next > a:last-child:hover { background: var(--accent-hover); }
  .reset-tour:hover, a.record-row:hover, .native-back:hover { color: var(--accent-text); }
  .all-locations summary:hover { text-decoration: underline; }
}
@media (min-width: 701px) {
  .app-content:has(> .garage-summary) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .garage-summary { grid-column: 1 / -1; }
  .garage-summary ~ .dashboard-section { margin: 0; }
  .garage-summary ~ .dashboard-section .section-line { min-height: 40px; }
}
@media (max-width: 700px) {
  .owner-tour { --gutter: 18px; width: calc(100% - 24px); padding-top: 24px; }
  .tour-heading { margin-inline: 6px; }
  .tour-access { min-height: 40px; }
  .app-main .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .garage-shell { border-radius: 16px; }
  .native-topbar { border-radius: 15px 15px 0 0; }
  .app-nav { padding-inline: 4px; border-radius: 0 0 15px 15px; }
  .owner-tour .workspace-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-tabs a { padding-inline: 7px; }
  .tour-next > span { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .owner-tour { --gutter: 14px; }
  .tour-heading { margin-inline: 2px; }
  .tour-next { column-gap: 10px; }
}
@media (max-width: 360px) {
  .owner-tour .workspace-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.event-thumb { border-radius: 5px; object-fit: cover; max-width: 20%; }

.activity-choices { list-style: none; padding: 0; margin: 12px 0; }
.activity-choices li { display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:space-between; align-items:center; padding:15px 0; border-top:1px solid var(--line); }
.activity-choices strong, .activity-choices small { display:block; }
.activity-choices small { color:var(--muted); margin-bottom:5px; }
.activity-choices .action { margin:0; font-family:inherit; cursor:pointer; }
