:root {
  color-scheme: light;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-muted: #edf3f6;
  --ink: #1d2930;
  --muted: #63737c;
  --line: #d7e1e7;
  --accent: #367da2;
  --accent-strong: #285f7c;
  --accent-deep: #203e4f;
  --accent-soft: #8eb2c5;
  --highlight: #b6cb00;
  --form-border: #741f2b;
  --warn: #b56b1f;
  --danger: #b23b3b;
  --good: #2c6f91;
  --good-bg: #e3f0f6;
  --good-border: #a8cbdc;
  --shadow: 0 18px 45px rgba(32, 62, 79, 0.09);
}

body[data-interface-role="landlord"] {
  --bg: #f5f7f4;
  --surface-muted: #eef3ec;
  --ink: #1d2520;
  --muted: #66746c;
  --line: #dbe3dd;
  --accent: #116a5b;
  --accent-strong: #0a4d42;
  --accent-deep: #17261f;
  --accent-soft: #8da196;
  --good: #2f7d4f;
  --good-bg: #e3f5e9;
  --good-border: #a7d5b6;
  --shadow: 0 18px 45px rgba(35, 52, 42, 0.08);
}

body[data-portal="landlord"][data-portal-authenticated="false"] .nav-tabs,
body[data-portal="landlord"][data-portal-authenticated="false"] .view,
body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-control {
  display: none !important;
}

body[data-portal-authenticated="false"] .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[data-portal-authenticated="false"] .sidebar {
  display: none;
}

body[data-portal="landlord"][data-portal-authenticated="false"] {
  background:
    linear-gradient(90deg, rgba(5, 11, 16, 0.42), rgba(5, 11, 16, 0.12) 46%, rgba(5, 11, 16, 0.32)),
    url("./assets/landlord-hero-verona-inspired.png") center / cover no-repeat fixed;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .app-shell {
  background: transparent;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px, 2.5vw, 36px);
}

body[data-portal="landlord"][data-portal-authenticated="false"] .topbar {
  align-items: flex-start;
  margin-bottom: 0;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .topbar > div:first-child {
  display: none;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .topbar-side {
  margin-left: auto;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .topbar-actions {
  justify-content: flex-end;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .topbar-logo {
  width: clamp(150px, 16vw, 260px);
}

.landlord-landing-copy {
  display: none;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy {
  display: grid;
  align-self: center;
  justify-self: center;
  width: min(1120px, 92vw);
  margin-top: clamp(24px, 8vh, 92px);
  color: #ffffff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.72);
}

body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 6.2vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy p {
  margin: clamp(12px, 1.6vw, 22px) 0 0;
  color: #d7ecff;
  font-size: clamp(1.35rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

.legal-page {
  width: min(760px, calc(100% - 40px));
  margin: 48px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(160deg, var(--accent-deep), var(--accent));
  color: #f7faf7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #17261f;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #b9c8bf;
  font-size: 0.88rem;
  margin-top: 2px;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.role-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background: rgba(8, 24, 32, 0.42);
}

.role-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b9c8bf;
  font-weight: 800;
}

.role-button.active {
  background: var(--highlight);
  color: #17261f;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d8e4dd;
  text-align: left;
}

.nav-tab span {
  display: grid;
  width: 22px;
  place-items: center;
}

.nav-tab:hover,
.nav-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sidebar-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: #c6d3ca;
  font-size: 0.92rem;
}

.sidebar-sync {
  flex-basis: 100%;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-sync:hover { background: rgba(255, 255, 255, 0.16); }

.sidebar-legal-links {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
}

.sidebar-legal-links a {
  color: #d8e4dd;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight);
}

.main {
  min-width: 0;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
}

.server-status {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #dfb1b1;
  border-radius: 9px;
  background: #fbe7e7;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar-heading {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 800;
}

.back-button:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.topbar-logo {
  display: block;
  width: clamp(150px, 17vw, 260px);
  max-width: 100%;
  height: auto;
}

.topbar-logo-link {
  display: inline-flex;
  border-radius: 8px;
}

.topbar-logo-link:focus-visible {
  outline: 3px solid rgba(182, 203, 0, 0.7);
  outline-offset: 5px;
}

.auth-actions,
.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-actions > span {
  max-width: 180px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 42vw);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--form-border);
  border-radius: 8px;
  background: var(--surface);
}

.object-switcher {
  min-width: 220px;
  color: var(--muted);
  font-size: 0.78rem;
}

.object-switcher select {
  margin-top: 4px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.icon-button,
.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
}

.icon-button {
  width: 42px;
  background: var(--surface);
  border-color: var(--line);
}

.primary-button {
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button,
.danger-button {
  padding: 0 12px;
  background: var(--surface);
  border-color: var(--line);
}

.danger-button {
  color: var(--danger);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.finder-hero {
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-muted);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.finder-hero-banner {
  display: grid;
  min-height: 310px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 38, 53, 0.94) 0%, rgba(20, 55, 74, 0.72) 34%, rgba(20, 55, 74, 0.12) 68%, rgba(20, 55, 74, 0.04) 100%),
    url("./assets/tenant-garage-hero.png") center 54% / cover no-repeat;
}

.confirmation-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 9px;
  font-weight: 700;
}

.confirmation-banner.success {
  border-color: var(--good-border);
  background: var(--good-bg);
  color: var(--good);
}

.confirmation-banner.error {
  border-color: #e2b7b7;
  background: #fbe7e7;
  color: var(--danger);
}

.finder-hero-copy {
  max-width: 720px;
  padding: 48px;
}

.finder-hero-copy .eyebrow {
  color: var(--highlight);
}

.finder-hero-copy h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.finder-hero-copy p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: #dce7e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.finder-form {
  display: grid;
  gap: 22px;
  margin: 18px 28px 28px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(245, 247, 244, 0.96);
  color: var(--ink);
}

.finder-primary-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.55fr);
  gap: 14px;
}

.finder-input span,
.finder-fieldset legend {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.finder-input input,
.finder-input select {
  min-height: 54px;
  border-color: var(--form-border);
  font-size: 1rem;
}

.finder-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.finder-fieldset legend {
  margin-bottom: 9px;
}

.saved-vehicle-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--form-border);
  border-radius: 10px;
  background: #f8faf8;
}

.saved-vehicle-picker select {
  min-height: 50px;
  border-color: var(--form-border);
  font-weight: 750;
}

.finder-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  overflow: hidden;
  border: 1px solid var(--form-border);
  border-radius: 10px;
}

.finder-vehicles label {
  position: relative;
  display: grid;
  min-height: 104px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 10px 6px;
  border-right: 1px solid var(--form-border);
  background: #68766f;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
}

.finder-vehicles label:last-child {
  border-right: 0;
}

.finder-vehicles input,
.finder-position input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.finder-vehicles label:has(input:checked) {
  background: var(--highlight);
  color: #17261f;
}

.finder-vehicles.vehicle-classes-locked label {
  cursor: default;
  opacity: 0.78;
}

.finder-vehicles.vehicle-classes-locked label:has(input:checked) {
  opacity: 1;
}

.finder-vehicle-class-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.finder-vehicle-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.finder-vehicle-symbol img {
  display: block;
  width: 36px;
  height: 25px;
  object-fit: contain;
}

.finder-rental-model {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finder-rental-model label {
  position: relative;
  cursor: pointer;
}

.finder-rental-model input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.finder-rental-model span {
  display: grid;
  min-height: 72px;
  align-content: center;
  gap: 4px;
  padding: 13px 16px;
  border: 1px solid var(--form-border);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
}

.finder-rental-model small {
  color: var(--muted);
  font-weight: 600;
}

.finder-rental-model label:has(input:checked) span {
  border-color: var(--accent);
  background: var(--good-bg);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.finder-contract-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contract-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #eef7f2;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.contract-link:hover {
  background: #dff0e7;
}

.finder-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.finder-position {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--form-border);
  border-radius: 9px;
}

.finder-position label {
  position: relative;
  cursor: pointer;
}

.finder-position span {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--form-border);
  background: #ffffff;
  color: var(--muted);
}

.finder-position label:last-child span {
  border-right: 0;
}

.finder-position label:has(input:checked) span {
  background: var(--accent);
  color: #ffffff;
}

.finder-submit {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: var(--highlight);
  color: #17261f;
  font-weight: 900;
}

.finder-submit:hover {
  background: var(--highlight);
  filter: brightness(1.06);
}

.finder-results-section {
  padding-top: 30px;
  scroll-margin-top: 20px;
}

.public-map-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-map-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.public-map-header h2 {
  font-size: 1.5rem;
}

.public-map-header p:last-child {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-map-header > span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.public-spot-map {
  position: relative;
  z-index: 0;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.public-map-consent {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: var(--text);
  text-align: center;
}

.public-map-consent strong {
  font-size: 1.2rem;
}

.public-map-consent p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.public-map-consent-actions a {
  color: var(--accent);
  font-weight: 800;
}

.public-map-marker span {
  background: var(--highlight);
  color: #17261f;
}

.public-map-marker.restricted span {
  background: #89918d;
  border-color: #f5f7f4;
  filter: grayscale(1);
}

.mock-public-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(7, 25, 35, 0.2), rgba(7, 25, 35, 0.2)),
    url("./assets/tenant-map-hero.png") center / cover no-repeat;
  background-size: 46px 46px, 46px 46px, auto, cover;
}

.mock-map-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(132, 176, 192, 0.36);
  border-radius: 999px;
  background: rgba(7, 25, 35, 0.78);
  color: #d7e5eb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-map-marker {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--highlight);
  color: #17261f;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.mock-map-marker span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-weight: 900;
}

.mock-map-marker.restricted {
  background: #89918d;
  color: #ffffff;
  filter: grayscale(0.7);
}

.mock-map-popup {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: min(320px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(132, 176, 192, 0.34);
  border-radius: 12px;
  background: rgba(7, 25, 35, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  color: #edf7fb;
}

.finder-result-card.access-restricted {
  border-color: #c8ceca;
  background: #f1f3f2;
  filter: grayscale(.72);
}

.finder-result-card.access-restricted .finder-result-gallery,
.finder-result-card.access-restricted .finder-result-visual {
  opacity: .55;
}

.finder-result-card.access-restricted .access-request-button {
  filter: grayscale(0);
}

.access-settings {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9f7;
}

.access-settings textarea {
  min-height: 82px;
}

.object-access-requests {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7dfd9;
  border-radius: 10px;
  background: #f7f9f7;
}

.access-request-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #dfe5e1;
}

.access-request-row > span {
  display: grid;
  gap: 3px;
  margin-right: auto;
}

.finder-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.finder-results-header .eyebrow {
  margin-bottom: 4px;
}

.finder-results-header h2 {
  font-size: 1.5rem;
}

.finder-results-header > span {
  color: var(--muted);
  font-weight: 700;
}

.finder-results {
  display: grid;
  gap: 14px;
}

.finder-result-card {
  display: grid;
  grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.finder-result-card.unavailable {
  box-shadow: none;
}

.finder-result-card.unavailable .finder-result-visual {
  background: linear-gradient(145deg, #66746c, #aeb9b2);
}

.finder-result-visual {
  display: grid;
  min-height: 210px;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent-soft));
}

.finder-result-gallery {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  background: var(--accent-deep);
}

.finder-result-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

body[data-portal="tenant"][data-portal-authenticated="false"] {
  color-scheme: dark;
  --bg: #06121c;
  --surface: #102735;
  --surface-muted: #071923;
  --ink: #edf7fb;
  --muted: #b8ccd7;
  --line: rgba(132, 176, 192, 0.28);
  --accent: #367da2;
  --accent-strong: #285f7c;
  --accent-deep: #071923;
  --accent-soft: #367da2;
  --highlight: #b6cb00;
  --form-border: rgba(132, 176, 192, 0.48);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  background:
    linear-gradient(135deg, rgba(54, 125, 162, 0.22) 0%, transparent 34rem),
    linear-gradient(225deg, rgba(182, 203, 0, 0.12) 0%, transparent 28rem),
    linear-gradient(180deg, #06121c 0%, #0a1f2b 58%, #06141d 100%);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .main {
  min-height: 100vh;
  min-height: 100dvh;
}

body[data-portal="tenant"][data-portal-authenticated="false"] .topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 176, 192, 0.22);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .topbar-heading h1,
body[data-portal="tenant"][data-portal-authenticated="false"] .public-map-header h2,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-results-header h2 {
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .topbar-logo {
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

body[data-portal="tenant"][data-portal-authenticated="false"] .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(182, 203, 0, 0.42);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .primary-button,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-submit {
  background: linear-gradient(135deg, var(--highlight), #d2e822);
  border-color: var(--highlight);
  color: #071d35;
  box-shadow: 0 14px 28px rgba(182, 203, 0, 0.2);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-hero,
body[data-portal="tenant"][data-portal-authenticated="false"] .public-map-section,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-result-card {
  border: 1px solid rgba(132, 176, 192, 0.28);
  background: rgba(12, 32, 44, 0.78);
  box-shadow: var(--shadow);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-hero-banner {
  background:
    linear-gradient(90deg, rgba(6, 18, 28, 0.86), rgba(13, 44, 61, 0.74) 48%, rgba(54, 125, 162, 0.36) 76%, rgba(182, 203, 0, 0.12)),
    url("./assets/tenant-garage-hero.png") center 54% / cover no-repeat;
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-hero-copy h2 {
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-form {
  border: 1px solid rgba(132, 176, 192, 0.34);
  background: rgba(12, 32, 44, 0.92);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-input input,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-input select,
body[data-portal="tenant"][data-portal-authenticated="false"] .saved-vehicle-picker,
body[data-portal="tenant"][data-portal-authenticated="false"] .saved-vehicle-picker select {
  background: rgba(7, 25, 35, 0.86);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-vehicles label {
  border-color: rgba(132, 176, 192, 0.36);
  background: rgba(7, 25, 35, 0.78);
  color: #d7e5eb;
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-vehicles label:has(input:checked) {
  background: var(--highlight);
  color: #071d35;
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-rental-model span,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-position span {
  border-color: rgba(132, 176, 192, 0.36);
  background: rgba(7, 25, 35, 0.76);
  color: #d7e5eb;
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-rental-model label:has(input:checked) span,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-position label:has(input:checked) span {
  border-color: var(--highlight);
  background: rgba(182, 203, 0, 0.16);
  box-shadow: inset 0 0 0 1px var(--highlight);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-position {
  border-color: rgba(132, 176, 192, 0.36);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-position span {
  border-right-color: rgba(132, 176, 192, 0.36);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .public-spot-map,
body[data-portal="tenant"][data-portal-authenticated="false"] .public-map-consent {
  border-color: rgba(132, 176, 192, 0.28);
  background: rgba(7, 25, 35, 0.72);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-result-visual,
body[data-portal="tenant"][data-portal-authenticated="false"] .finder-result-gallery {
  background: linear-gradient(145deg, #071923, #367da2);
}

body[data-portal="tenant"][data-portal-authenticated="false"] .finder-result-card.access-restricted {
  border-color: rgba(132, 176, 192, 0.2);
  background: rgba(12, 32, 44, 0.56);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] {
  color-scheme: dark;
  --bg: #06121c;
  --surface: #102735;
  --surface-muted: #071923;
  --ink: #edf7fb;
  --muted: #b8ccd7;
  --line: rgba(132, 176, 192, 0.28);
  --accent: #367da2;
  --accent-strong: #285f7c;
  --accent-deep: #071923;
  --accent-soft: #367da2;
  --highlight: #b6cb00;
  --form-border: rgba(132, 176, 192, 0.48);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  background:
    linear-gradient(135deg, rgba(54, 125, 162, 0.22) 0%, transparent 34rem),
    linear-gradient(225deg, rgba(182, 203, 0, 0.12) 0%, transparent 28rem),
    linear-gradient(180deg, #06121c 0%, #0a1f2b 58%, #06141d 100%);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 340px);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 176, 192, 0.22);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .topbar-heading h1,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .public-map-header h2,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-results-header h2 {
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .topbar-logo {
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(182, 203, 0, 0.42);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .primary-button,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-submit {
  background: linear-gradient(135deg, var(--highlight), #d2e822);
  border-color: var(--highlight);
  color: #071d35;
  box-shadow: 0 14px 28px rgba(182, 203, 0, 0.2);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-hero,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .public-map-section,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-result-card {
  border: 1px solid rgba(132, 176, 192, 0.28);
  background: rgba(12, 32, 44, 0.78);
  box-shadow: var(--shadow);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-hero-banner {
  background:
    linear-gradient(90deg, rgba(6, 18, 28, 0.86), rgba(13, 44, 61, 0.74) 48%, rgba(54, 125, 162, 0.36) 76%, rgba(182, 203, 0, 0.12)),
    url("./assets/tenant-garage-hero.png") center 54% / cover no-repeat;
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-hero-copy h2 {
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-form {
  border: 1px solid rgba(132, 176, 192, 0.34);
  background: rgba(12, 32, 44, 0.92);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-input input,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-input select,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .saved-vehicle-picker,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .saved-vehicle-picker select {
  background: rgba(7, 25, 35, 0.86);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-vehicles label {
  border-color: rgba(132, 176, 192, 0.36);
  background: rgba(7, 25, 35, 0.78);
  color: #d7e5eb;
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-vehicles label:has(input:checked) {
  background: var(--highlight);
  color: #071d35;
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-rental-model span,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-position span {
  border-color: rgba(132, 176, 192, 0.36);
  background: rgba(7, 25, 35, 0.76);
  color: #d7e5eb;
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-rental-model label:has(input:checked) span,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-position label:has(input:checked) span {
  border-color: var(--highlight);
  background: rgba(182, 203, 0, 0.16);
  box-shadow: inset 0 0 0 1px var(--highlight);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-position {
  border-color: rgba(132, 176, 192, 0.36);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-position span {
  border-right-color: rgba(132, 176, 192, 0.36);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .public-spot-map,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .public-map-consent {
  border-color: rgba(132, 176, 192, 0.28);
  background: rgba(7, 25, 35, 0.72);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-result-visual,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-result-gallery {
  background: linear-gradient(145deg, #071923, #367da2);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="finder"] .finder-result-card.access-restricted {
  border-color: rgba(132, 176, 192, 0.2);
  background: rgba(12, 32, 44, 0.56);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) {
  color-scheme: dark;
  --bg: #06121c;
  --surface: #102735;
  --surface-muted: #071923;
  --ink: #edf7fb;
  --muted: #b8ccd7;
  --line: rgba(132, 176, 192, 0.28);
  --accent: #367da2;
  --accent-strong: #285f7c;
  --accent-deep: #071923;
  --accent-soft: #367da2;
  --highlight: #b6cb00;
  --form-border: rgba(132, 176, 192, 0.48);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  background:
    linear-gradient(135deg, rgba(54, 125, 162, 0.22) 0%, transparent 34rem),
    linear-gradient(225deg, rgba(182, 203, 0, 0.12) 0%, transparent 28rem),
    linear-gradient(180deg, #06121c 0%, #0a1f2b 58%, #06141d 100%);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 340px);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 176, 192, 0.22);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .panel,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .my-vehicle-card,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .booking-item,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .empty {
  border-color: rgba(132, 176, 192, 0.28);
  background: rgba(12, 32, 44, 0.86);
  box-shadow: var(--shadow);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) input,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) select,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) textarea {
  border-color: var(--form-border);
  background: rgba(7, 25, 35, 0.86);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(182, 203, 0, 0.42);
  color: var(--ink);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .primary-button {
  background: linear-gradient(135deg, var(--highlight), #d2e822);
  border-color: var(--highlight);
  color: #071d35;
  box-shadow: 0 14px 28px rgba(182, 203, 0, 0.2);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .danger-button {
  background: rgba(127, 44, 44, 0.16);
  border-color: rgba(207, 52, 52, 0.48);
  color: #ffc6c6;
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .booking-item.status-reserved {
  background: rgba(182, 203, 0, 0.12);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .booking-item.status-booked,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .booking-item.status-active {
  background: rgba(54, 125, 162, 0.16);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .booking-item.status-terminated {
  background: rgba(207, 52, 52, 0.12);
}

body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .badge,
body[data-portal="tenant"][data-portal-authenticated="true"]:not([data-active-view="finder"]):not([data-active-view="contracts"]) .license-plate {
  border-color: rgba(132, 176, 192, 0.28);
  background: rgba(7, 25, 35, 0.72);
  color: #d7e5eb;
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] {
  --bg: #eef1f3;
  --surface: #ffffff;
  --surface-muted: #e7ebee;
  --ink: #20292f;
  --muted: #637079;
  --line: #cfd8dd;
  --accent: #5f6c74;
  --accent-strong: #46525a;
  --accent-deep: #313a40;
  --accent-soft: #aeb8bf;
  --form-border: #b9c3ca;
  --shadow: 0 18px 45px rgba(49, 58, 64, 0.08);
  background:
    linear-gradient(180deg, #f4f6f7 0%, #eef1f3 54%, #e3e8eb 100%);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(95, 108, 116, 0.18);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .panel,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .booking-item,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .empty {
  border-color: #cfd8dd;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .booking-item.status-archived {
  background: #eef1f2;
}

body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .ghost-button,
body[data-portal="tenant"][data-portal-authenticated="true"][data-active-view="contracts"] .contract-link {
  border-color: #aeb8bf;
  background: #f8fafb;
  color: #46525a;
}

body[data-portal="landlord"][data-portal-authenticated="false"] {
  --accent: #116a5b;
  --accent-strong: #0a4d42;
  --accent-deep: #17261f;
  --accent-soft: #8da196;
  background:
    linear-gradient(90deg, rgba(23, 38, 31, 0.78), rgba(17, 106, 91, 0.28) 46%, rgba(23, 38, 31, 0.68)),
    url("./assets/landlord-hero-verona-inspired.png") center / cover no-repeat fixed;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .ghost-button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(141, 161, 150, 0.62);
  color: #ffffff;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(167, 213, 182, 0.72);
  color: #ffffff;
}

body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy p {
  color: #b6cb00;
}

.finder-gallery-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.finder-gallery-controls button {
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(23, 38, 31, 0.82);
  color: #ffffff;
  font-weight: 900;
}

.finder-gallery-count {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 38, 31, 0.82);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.finder-result-visual span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
}

.finder-result-content {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 12px;
  padding: 20px;
}

.finder-result-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.finder-result-title h3 {
  margin: 3px 0 0;
  font-size: 1.25rem;
}

.finder-result-title strong {
  color: var(--accent);
  font-size: 1.25rem;
  white-space: nowrap;
}

.finder-result-title small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: right;
}

.finder-result-object {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.finder-result-content p {
  margin: 0;
  color: var(--muted);
}

.finder-result-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 7px;
}

.finder-result-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: #405048;
  font-size: 0.8rem;
  font-weight: 700;
}

.finder-result-tags .finder-availability-unavailable {
  background: #fff0dc;
  color: var(--warn);
}

.finder-result-content .finder-unavailable-button {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

.finder-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.finder-result-content .primary-button,
.finder-result-content .ghost-button {
  justify-self: start;
}

.finder-empty {
  display: grid;
  gap: 7px;
  padding: 38px 24px;
  border: 1px dashed #bdcbc2;
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.finder-empty strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.profile-panel {
  max-width: 980px;
}

.profile-panel .panel-header > div {
  display: grid;
  gap: 4px;
}

.profile-panel .panel-header .eyebrow {
  margin: 0;
}

.profile-panel .panel-header h2 {
  font-size: 1.55rem;
}

.profile-form {
  display: grid;
  gap: 18px;
}

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

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

.profile-form .primary-button {
  justify-self: start;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-grid-seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.metric-grid-eight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.metric-created { background: #eef0f1; }
.metric-configured { background: #7b858b; border-color: #697379; }
.metric-online { background: #c9e0cf; border-color: #78aa86; }
.metric-reserved { background: #fff2c7; border-color: #e3c66a; }
.metric-booked { background: #e3f0fa; border-color: #a7cbe5; }
.metric-active { background: #315f91; border-color: #234d78; }
.metric-terminated { background: #f8dddd; border-color: #dfa0a0; }
.metric-archived { background: #cbd0d3; border-color: #858d92; }

.dashboard-metric.metric-configured span,
.dashboard-metric.metric-configured strong,
.dashboard-metric.metric-active span,
.dashboard-metric.metric-active strong { color: #ffffff; }

.dashboard-map-panel { margin-bottom: 18px; }
.dashboard-object-map { min-height: 330px; }

.dashboard-filter-panel {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.dashboard-filter-panel h2 {
  font-size: 1.35rem;
}

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

.object-filters {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  width: min(100%, 790px);
}

.filter-menu {
  position: relative;
}

.filter-menu summary {
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--form-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary span {
  color: var(--muted);
}

.filter-menu-options {
  position: absolute;
  z-index: 20;
  right: 0;
  display: grid;
  width: min(360px, 88vw);
  max-height: 320px;
  margin-top: 6px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-option {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.88rem;
}

.filter-option:hover {
  background: var(--surface-muted);
}

.filter-option input {
  width: 18px;
  min-height: 18px;
}

.all-option {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-weight: 900;
}

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

.process-ticket {
  display: grid;
  grid-template-columns: 74px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 5px solid #b58a22;
  border-radius: 9px;
  background: #fbfcfb;
}

.process-ticket.status-booked {
  border-left-color: #82b7df;
  background: #eef6fc;
}

.process-ticket.status-active { border-left-color: #176fbb; }
body[data-portal="landlord"] .process-ticket.status-booked { border-left-color: #82b7df; background: #eef6fc; }
body[data-portal="landlord"] .process-ticket.status-active { border-left-color: #245d9c; background: #e8f0f9; }

.process-ticket.status-terminated {
  border-left-color: var(--danger);
}

.process-ticket h3 {
  margin: 0;
  font-size: 1rem;
}

.process-ticket-marker {
  min-width: 88px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.process-ticket-thumb,
.booking-object-thumb {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent-soft));
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Statusfarben der Vermieter-Kennzahlen müssen die allgemeine weiße Kartenfläche übersteuern. */
.metric.dashboard-metric.metric-created { background: #eef0f1; }
.metric.dashboard-metric.metric-configured { border-color: #697379; background: #7b858b; }
.metric.dashboard-metric.metric-online { border-color: #78aa86; background: #c9e0cf; }
.metric.dashboard-metric.metric-reserved { border-color: #e3c66a; background: #fff2c7; }
.metric.dashboard-metric.metric-booked { border-color: #a7cbe5; background: #e3f0fa; }
.metric.dashboard-metric.metric-active { border-color: #234d78; background: #315f91; }
.metric.dashboard-metric.metric-terminated { border-color: #dfa0a0; background: #f8dddd; }
.metric.dashboard-metric.metric-configured span,
.metric.dashboard-metric.metric-configured strong,
.metric.dashboard-metric.metric-active span,
.metric.dashboard-metric.metric-active strong { color: #ffffff; }

.dashboard-utilization-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 30px;
  margin-bottom: 18px;
  padding: 22px;
}

.dashboard-utilization-copy h2 { margin: 2px 0 8px; }
.dashboard-utilization-copy p:last-child { max-width: 360px; margin: 0; color: var(--muted); }
.dashboard-status-donut { width: 190px; height: 190px; }
.dashboard-status-donut span { max-width: 120px; }
.dashboard-utilization-legend { display: grid; gap: 8px; }
.dashboard-utilization-legend > div { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 30px; }
.dashboard-utilization-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--legend-color); }
.dashboard-utilization-legend span { color: var(--muted); }
.dashboard-utilization-legend strong { font-size: 1rem; }

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace-grid,
.object-layout,
.spot-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  gap: 18px;
}

.utilization-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, .7fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 22px;
}

.chart-mode-label { display: grid; gap: 6px; max-width: 280px; margin-top: 16px; color: var(--muted); font-size: .82rem; }
.status-donut, .mini-donut { position: relative; display: grid; place-content: center; border-radius: 50%; background: conic-gradient(var(--donut-color, #245d9c) 0 var(--donut-value, 0deg), #e4e8e6 var(--donut-value, 0deg) 360deg); text-align: center; }
.status-donut { width: 180px; height: 180px; }
.status-donut::after, .mini-donut::after { position: absolute; inset: 18%; border-radius: 50%; background: var(--surface); content: ""; }
.status-donut strong, .status-donut span, .mini-donut strong { position: relative; z-index: 1; }
.status-donut strong { font-size: 2rem; }
.status-donut span { max-width: 110px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.chart-legend { display: grid; gap: 5px; }
.chart-legend strong { font-size: 1.5rem; }
.chart-legend span { color: var(--muted); }

.object-map-panel {
  margin-bottom: 18px;
}

.map-panel-header > div {
  display: grid;
  gap: 4px;
}

.object-map {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.map-attribution-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.map-unavailable {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.object-map-marker {
  border: 0;
  background: transparent;
}

.object-map-marker span {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 8px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(11, 45, 37, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(-45deg);
}

.object-map-marker b {
  display: block;
  font-size: inherit;
  transform: rotate(45deg);
}

.map-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.map-popup strong,
.map-popup span {
  display: block;
}

.map-popup span {
  color: var(--muted);
  font-size: 0.84rem;
}

.map-popup button {
  min-height: 34px;
  margin-top: 5px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 14px;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.landlord-help {
  display: none;
  gap: 18px;
}

.landlord-help.active {
  display: grid;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  background: linear-gradient(135deg, #f6faf5, #e3efe7);
}

.help-hero-copy h2 {
  max-width: 720px;
  margin: 4px 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.help-hero-copy > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.help-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.help-progress-card {
  display: grid;
  gap: 5px;
  padding: 24px;
  border: 1px solid var(--good-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
}

.help-progress-card strong { font-size: 1.8rem; }
.help-progress-card span { color: var(--muted); }
.help-progress-track { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--line); }
.help-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--good); transition: width .25s ease; }

.help-checklist-panel { padding: clamp(20px, 3vw, 30px); }
.help-checklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.help-checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 82px; padding: 14px 0; border-top: 1px solid var(--line); }
.help-checklist li:first-child { border-top: 0; }
.help-checklist li.complete strong { color: var(--good); }
.help-checkmark { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--line); border-radius: 50%; color: var(--muted); font-weight: 800; }
.help-checklist li.complete .help-checkmark { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.help-checklist strong { display: block; }
.help-checklist p { margin: 4px 0 0; color: var(--muted); }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--accent); font-weight: 800; }
.text-button:hover { color: var(--accent-strong); text-decoration: underline; }

.help-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.help-guide-card { position: relative; display: flex; min-height: 330px; padding: 26px; flex-direction: column; }
.help-guide-card h2 { margin: 4px 0 16px; padding-right: 46px; }
.help-guide-card ol { display: grid; gap: 9px; margin: 0 0 20px; padding-left: 21px; color: var(--muted); line-height: 1.45; }
.help-step-number { position: absolute; top: 22px; right: 24px; color: var(--line); font-size: 2.2rem; font-weight: 900; }
.help-guide-card .text-button { margin-top: auto; }

.help-video-section { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; padding: 26px; }
.help-video-placeholder { display: grid; min-height: 300px; place-content: center; gap: 10px; border-radius: 12px; background: linear-gradient(145deg, var(--accent-deep), var(--accent)); color: #fff; text-align: center; }
.help-video-placeholder > span { display: grid; width: 62px; height: 62px; margin: 0 auto 6px; place-items: center; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; font-size: 1.45rem; }
.help-video-placeholder strong { font-size: 1.25rem; }
.help-video-placeholder small { color: #cfe0d5; }
.help-video-copy h2 { margin: 4px 0 16px; }
.help-video-copy ol { display: grid; gap: 9px; padding-left: 22px; color: var(--muted); }
.help-note { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--highlight); background: var(--surface-muted); color: var(--muted); line-height: 1.5; }

.help-faq details { border-top: 1px solid var(--line); }
.help-faq details:first-of-type { border-top: 0; }
.help-faq summary { padding: 16px 0; cursor: pointer; font-weight: 800; }
.help-faq details p { margin: -4px 0 18px; color: var(--muted); line-height: 1.55; }

.faq-hero {
  grid-template-columns: minmax(0, 1fr);
}

.landlord-faq-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.landlord-faq-content .help-faq {
  align-self: start;
}

.help-faq details .text-button {
  margin: -8px 0 18px;
}

.faq-loading {
  grid-column: 1 / -1;
  min-height: 120px;
  color: var(--muted);
}

.faq-loading p {
  margin-bottom: 0;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, #f6faf5, #e3efe7);
}

.faq-contact h2 {
  margin: 4px 0 8px;
}

.faq-contact p:last-child {
  margin: 0;
  color: var(--muted);
}

.faq-contact .primary-button {
  flex: 0 0 auto;
  text-decoration: none;
}

@media print {
  body[data-interface-role="landlord"] { background: #fff; }
  body[data-interface-role="landlord"] .sidebar,
  body[data-interface-role="landlord"] .topbar,
  body[data-interface-role="landlord"] .server-status,
  body[data-interface-role="landlord"] .help-hero-actions,
  body[data-interface-role="landlord"] .help-checklist-panel,
  body[data-interface-role="landlord"] .help-video-placeholder,
  body[data-interface-role="landlord"] .help-guide-card .text-button { display: none !important; }
  body[data-interface-role="landlord"] .main { padding: 0; }
  body[data-interface-role="landlord"] .view { display: none !important; }
  body[data-interface-role="landlord"] #help-view { display: grid !important; }
  body[data-interface-role="landlord"] .help-hero,
  body[data-interface-role="landlord"] .help-video-section { grid-template-columns: 1fr; }
  body[data-interface-role="landlord"] .help-guide { grid-template-columns: 1fr 1fr; }
  body[data-interface-role="landlord"] .panel { break-inside: avoid; box-shadow: none; }
}

.booking-list,
.object-list,
.spot-grid,
.user-list,
.my-vehicle-list,
.settings-list {
  display: grid;
  gap: 10px;
}

.vehicle-intro {
  margin: -4px 0 18px;
  color: var(--muted);
}

.my-vehicle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfb;
}

.my-vehicle-card h3 {
  margin: 0;
}

.vehicle-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--highlight);
  color: #17261f;
  font-size: 1.1rem;
  font-weight: 900;
}

.license-plate {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid #aeb8b1;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  letter-spacing: 0.04em;
}

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

.booking-item,
.object-card,
.spot-card,
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.booking-item {
  grid-template-columns: 74px minmax(0, 1fr) auto;
  border-left-width: 6px;
}

.booking-item.status-reserved { border-left-color: #d59b00; background: #fff7d6; }
.booking-item.status-booked { border-left-color: #82b7df; background: #eef6fc; }
.booking-item.status-active { border-left-color: #176fbb; background: #e7f2fc; }
.booking-item.status-terminated { border-left-color: #cf3434; background: #fdeaea; }
.booking-item.status-archived { border-left-color: #69747c; background: #eef1f2; }

.status-badge.reserved { background: #e6aa00; color: #2b2100; }
.status-badge.booked { background: #8fc4e7; color: #173b5a; }
.status-badge.active { background: #176fbb; color: #ffffff; }
.status-badge.terminated { background: #cf3434; color: #ffffff; }
.status-badge.archived { background: #69747c; color: #ffffff; }

.tenant-status-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.status-key { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 900; }
.status-key.reserved { background: #d59b00; color: #2b2100; }
.status-key.booked { background: #8fc4e7; color: #173b5a; }
.status-key.active { background: #176fbb; }
.status-key.terminated { background: #cf3434; }

.object-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.booking-item h3,
.object-card h3,
.spot-card h3,
.user-row strong {
  margin: 0;
  font-size: 0.98rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.reservation-time {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid #b9892e;
  border-radius: 8px;
  background: #fff5df;
  color: #765014;
  font-size: 0.86rem;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: #314139;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge.good {
  background: var(--good-bg);
  color: var(--good);
}

.badge.warn {
  background: #fff0dc;
  color: var(--warn);
}

.badge.danger {
  background: #f7dddd;
  color: var(--danger);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.spot-quantity-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(70px, 1fr) 44px;
}

.quantity-control button,
.quantity-control input {
  min-height: 42px;
  border: 1px solid var(--form-border);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
}

.quantity-control button:first-child {
  border-radius: 8px 0 0 8px;
}

.quantity-control button:last-child {
  border-radius: 0 8px 8px 0;
}

.quantity-control input {
  border-right: 0;
  border-left: 0;
}

.quantity-control button:disabled {
  color: #9aa49f;
  cursor: not-allowed;
}

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

.spot-type-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.spot-type-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.spot-type-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--form-border);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.spot-type-picker button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--form-border);
  border-bottom: 1px solid var(--form-border);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.spot-type-picker button:nth-child(3n) {
  border-right: 0;
}

.spot-type-picker button:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.spot-type-picker button.active {
  background: var(--accent);
  color: #17261f;
}

.spot-type-picker button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

input,
select,
textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--form-border);
  border-radius: 8px;
  padding: 0 11px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 112px;
  padding: 10px 11px;
  resize: vertical;
}

.check-row,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-row {
  justify-content: flex-start;
}

.check-row input,
.toggle-row input {
  width: 20px;
  min-height: 20px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.segment {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segment.active {
  background: #ffffff;
  color: var(--ink);
}

.spot-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.spot-header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.spot-header-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.spot-header-controls select {
  min-width: 190px;
}

.spot-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.spot-bulk-actions strong {
  margin-right: auto;
}

.spot-bulk-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.spot-bulk-menu select {
  min-width: 240px;
}

.floor-plan-panel {
  margin-bottom: 18px;
}

.floor-plan-header,
.floor-plan-upload-controls,
.floor-plan-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.floor-plan-header {
  align-items: center;
}

.floor-plan-upload-controls {
  justify-content: flex-end;
}

.floor-plan-upload-controls input {
  width: min(220px, 100%);
}

.optional-label {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.floor-plan-hint {
  margin: -6px 0 14px;
}

.floor-plan-empty {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.floor-plan-toolbar {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.floor-plan-toolbar label {
  display: grid;
  flex: 1 1 180px;
  gap: 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.floor-plan-legend {
  margin: 0 0 10px;
}

.status-key.created { background: #7b8580; }
.status-key.online { background: #26824f; }

.floor-plan-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  user-select: none;
}

.floor-plan-stage.is-drawing {
  cursor: crosshair;
  touch-action: none;
}

.floor-plan-stage > img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.floor-plan-overlay {
  position: absolute;
  inset: 0;
}

.floor-plan-placement,
.floor-plan-draw-preview {
  position: absolute;
  min-width: 0;
  min-height: 0;
  border: 2px solid rgba(20, 38, 31, .92);
  border-radius: 4px;
}

.floor-plan-placement {
  display: grid;
  place-items: center;
  padding: 1px;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(.55rem, 1.2vw, .88rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  opacity: .82;
  cursor: grab;
  touch-action: none;
  transform-origin: center;
}

.floor-plan-placement:active { cursor: grabbing; }

.floor-plan-rotation {
  display: flex;
  align-items: end;
  gap: 5px;
}

.floor-plan-rotation label {
  flex: 0 0 78px;
}

.floor-plan-rotation input {
  width: 78px;
}

.floor-plan-placement:hover,
.floor-plan-placement:focus-visible {
  z-index: 2;
  opacity: 1;
  outline: 3px solid #ffffff;
  box-shadow: 0 0 0 5px var(--accent);
}

.floor-plan-placement.is-selected {
  z-index: 2;
  opacity: 1;
  outline: 3px solid #ffffff;
  box-shadow: 0 0 0 6px #17261f, 0 0 0 9px #ffffff;
}

.floor-plan-placement.status-created { background: #7b8580; }
.floor-plan-placement.status-online { background: #26824f; }
.floor-plan-placement.status-reserved { background: #e6aa00; color: #2b2100; text-shadow: none; }
.floor-plan-placement.status-booked { background: #8fc4e7; color: #173b5a; text-shadow: none; }
.floor-plan-placement.status-active { background: #176fbb; }
.floor-plan-placement.status-terminated { background: #cf3434; }

.floor-plan-draw-preview {
  z-index: 3;
  border-style: dashed;
  background: rgba(36, 107, 85, .35);
  pointer-events: none;
}

.spot-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.spot-group + .spot-group {
  margin-top: 8px;
}

.spot-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--ink);
}

.spot-group-header input,
.spot-select input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

.spot-group-header span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.spot-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.object-card {
  align-items: start;
  min-height: 118px;
  border-color: #cbd9d0;
  background: #f3f8f5;
  box-shadow: inset 4px 0 0 #b9d7c7;
}

.object-stat-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.object-stat-strip span {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d1ddd6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.object-stat-strip .stat-created { background: #eef0f1; }
.object-stat-strip .stat-configured { background: #e6f3e9; }
.object-stat-strip .stat-online { background: #c9e0cf; }
.object-stat-strip .stat-reserved { background: #fff2c7; }
.object-stat-strip .stat-booked { background: #e3f0fa; }
.object-stat-strip .stat-active { background: #cadcf0; }
.object-stat-strip .stat-terminated { background: #f8dddd; }
.object-stat-strip .stat-archived { background: #cbd0d3; }

.object-utilization { display: flex; grid-column: 1 / -1; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }
.object-utilization > div:last-child { display: grid; gap: 3px; }
.object-utilization span { color: var(--muted); font-size: .82rem; }
.mini-donut { --donut-color: #245d9c; --donut-value: var(--mini-value); width: 76px; height: 76px; flex: 0 0 auto; }
.mini-donut::after { inset: 20%; }
.mini-donut strong { font-size: .9rem; }

.process-ticket.status-archived { border-left-color: #596168; background: #eef0f1; }
.workdesk-panel { margin-bottom: 18px; }
.platform-admin-note { background: #eef0f1; }
.spot-conflict-setting span { display: grid; gap: 3px; }
.spot-conflict-setting small { color: var(--muted); font-weight: 500; }

.object-stat-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.spot-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 132px;
  padding-left: 42px;
}

.spot-card .spot-actions {
  justify-content: flex-start;
  padding-top: 2px;
}

.spot-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.spot-card.status-created {
  border-color: #cfd6d2;
  background: #f3f5f4;
}

.spot-card.status-online {
  border-color: #9fcfaf;
  background: #f0f9f3;
}

.spot-card.status-reserved {
  border-color: #e2c250;
  background: #fff9df;
}

.spot-card.status-booked {
  border-color: #9bc5e5;
  background: #e9f3fb;
}

.spot-card.status-active { border-color: #668fba; background: #dfeaf6; }

.spot-card.status-terminated {
  border-color: #dda8a8;
  background: #fcf0f0;
}

.spot-select {
  position: absolute;
  top: 13px;
  left: 12px;
  display: block;
}

.spot-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.spot-tenant-line {
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.spot-tenant-line .contract-link {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.object-contract-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.spot-time-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 2px solid var(--time-color);
  border-radius: 999px;
  background: color-mix(in srgb, var(--time-color) 14%, white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.spot-time-badge > span {
  color: var(--time-color);
  font-size: 1rem;
}

.finder-result-tags .finder-timezone-tag {
  border: 2px solid var(--time-color);
  background: color-mix(in srgb, var(--time-color) 14%, white);
  color: var(--ink);
}

.spot-status-track {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.spot-status-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e4e8e5;
  color: #7a8580;
  font-size: 0.76rem;
  font-weight: 800;
}

.spot-status-step.created.is-current {
  background: #7b8580;
  color: #ffffff;
}

.spot-status-step.online.is-current {
  background: #26824f;
  color: #ffffff;
}

.spot-status-step.reserved.is-current {
  background: #e6aa00;
  color: #2b2100;
}

.spot-status-step.booked.is-current {
  background: #8fc4e7;
  color: #173b5a;
}

.spot-status-step.active.is-current { background: #315f91; color: #ffffff; }

.spot-status-step.terminated.is-current {
  background: #cf3434;
  color: #ffffff;
}

.object-actions,
.spot-actions,
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.object-form {
  align-content: start;
}

.spot-access-configuration {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.spot-access-provider-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spot-access-provider-fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spot-access-provider-fieldset input {
  width: 20px;
  min-height: 20px;
}

@media (max-width: 1320px) and (min-width: 981px) {
  body[data-interface-role="landlord"] .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-interface-role="landlord"] .topbar-side {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
  }

  body[data-interface-role="landlord"] .topbar-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body[data-interface-role="landlord"] .object-layout {
    grid-template-columns: 1fr;
  }
}

.contract-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#contract-details-dialog .contract-details-grid > div { display: grid; gap: 4px; padding: 12px; border: 1px solid #cbd7d1; border-radius: 8px; background: #f1f5f3; }
#contract-details-dialog .contract-details-grid span { color: var(--dialog-panel-muted); font-size: .8rem; }
#contract-details-dialog .contract-details-grid strong { color: var(--dialog-panel-ink); }
.contract-vehicles-card { grid-column: 1 / -1; display: grid; gap: 12px; }
.contract-vehicles-heading, .contract-vehicles-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contract-vehicles-heading > div { display: grid; gap: 3px; }
.contract-vehicle-list { display: grid; gap: 8px; }
.contract-vehicle-choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #cbd7d1; border-radius: 8px; background: #fff; }
.contract-vehicle-choice > input { width: 20px; min-height: 20px; }
.contract-vehicle-choice > span { display: grid; gap: 2px; color: var(--dialog-panel-ink); font-size: inherit; }
.contract-vehicle-choice small { color: var(--dialog-panel-muted); }
.contract-vehicle-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contract-vehicle-limits label { display: grid; gap: 5px; color: var(--dialog-panel-muted); font-size: .82rem; }
.contract-vehicles-actions { justify-content: flex-end; }

#contract-details-dialog .contract-vehicles-card .form-hint,
#contract-details-dialog .contract-vehicles-card .auth-message {
  color: var(--dialog-panel-muted);
}

#contract-details-dialog .contract-vehicles-card .status-pill {
  border-color: #cbd7d1;
  background: #eef3f0;
  color: var(--dialog-panel-muted);
}

.booking-consent-body {
  gap: 18px;
}

.booking-consent-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-consent-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #cbd7d1;
  border-radius: 8px;
  background: #f1f5f3;
}

.booking-consent-summary span {
  color: var(--dialog-panel-muted);
  font-size: 0.8rem;
}

.booking-consent-summary strong,
.booking-consent-section h3 {
  color: var(--dialog-panel-ink);
}

.booking-consent-section,
.booking-consent-early {
  display: grid;
  gap: 12px;
}

.booking-consent-section {
  padding: 14px;
  border: 1px solid #cbd7d1;
  border-radius: 9px;
  background: #ffffff;
}

.booking-consent-section h3,
.booking-consent-early p,
.booking-consent-note {
  margin: 0;
}

.booking-consent-choice {
  padding: 11px 12px;
  border: 1px solid #d5dfda;
  border-radius: 8px;
  background: #f8faf9;
}

.booking-consent-choice a {
  color: var(--dialog-link-strong);
  font-weight: 800;
}

.booking-consent-early {
  padding: 12px;
  border-left: 4px solid #c59614;
  border-radius: 7px;
  background: #fff8df;
  color: var(--dialog-panel-ink);
}

.booking-consent-note {
  color: var(--dialog-panel-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .contract-details-grid, .contract-vehicle-limits, .booking-consent-summary { grid-template-columns: 1fr; }
}

.object-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.object-image-field {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--form-border);
  border-radius: 10px;
  background: var(--surface-muted);
}

.contract-template-field {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--form-border);
  border-radius: 10px;
  background: var(--surface-muted);
}

.object-image-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.object-image-field-header > div {
  display: grid;
  gap: 4px;
}

.object-image-field-header strong {
  color: var(--ink);
}

.object-image-field-header span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.object-image-picker {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.object-image-picker input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.object-image-preview,
.object-card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
}

.object-image-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.object-image-thumb {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.object-image-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.object-image-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(116, 31, 43, 0.92);
  color: #ffffff;
  font-weight: 900;
}

.object-card-gallery {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(130px, 190px));
  margin-top: 4px;
}

.object-card-image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.object-card-image-actions span {
  color: var(--muted);
  font-size: 0.82rem;
}

.object-card-image-button {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.representative-grid {
  display: grid;
  gap: 12px;
}

.representative-grid section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--form-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.representative-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.contract-template-list {
  display: grid;
  gap: 8px;
}

.contract-template-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--form-border);
  border-radius: 8px;
  background: #ffffff;
}

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

.form-section-title {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 800;
}

.landlord-fields {
  display: grid;
  gap: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.toggle-row {
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #17261f;
  color: #ffffff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.spot-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(12, 27, 20, 0.3);
}

.auth-dialog {
  --dialog-ink: #f8fbf8;
  --dialog-muted: #d7e4dd;
  --dialog-panel-ink: #17261f;
  --dialog-panel-muted: #35483f;
  --dialog-line: rgba(255, 255, 255, 0.14);
  --dialog-link: #1f6f95;
  --dialog-link-strong: #164f6b;
  --dialog-surface: #101d18;
  --dialog-surface-strong: #0a1411;
  --form-border: #aab8b1;
  width: min(800px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--dialog-ink);
  background: var(--dialog-surface);
  box-shadow: 0 28px 90px rgba(12, 27, 20, 0.34);
}

body[data-portal="landlord"] .auth-dialog {
  --dialog-link: #0b6758;
  --dialog-link-strong: #084d42;
}

.auth-dialog-small {
  width: min(520px, calc(100vw - 32px));
}

.auth-dialog::backdrop {
  background: rgba(14, 25, 20, 0.68);
  backdrop-filter: blur(3px);
}

.auth-form {
  display: grid;
  max-height: calc(100dvh - 32px);
}

.auth-dialog-header,
.auth-dialog-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}

.auth-dialog-header {
  justify-content: space-between;
  border-bottom: 1px solid rgba(182, 203, 0, 0.72);
  background: linear-gradient(135deg, var(--dialog-surface-strong), var(--dialog-surface));
  color: var(--dialog-ink);
}

.auth-dialog-header h2 {
  color: #ffffff;
  font-size: 1.55rem;
}

.auth-dialog .dialog-close {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.auth-dialog .dialog-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.auth-dialog-body {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 22px 24px;
  background: #ffffff;
  color: var(--dialog-panel-ink);
}

.auth-dialog-body label {
  color: var(--dialog-panel-muted);
}

body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body input,
body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body select,
body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body textarea {
  border-color: var(--form-border);
  background: #ffffff;
  color: var(--dialog-panel-ink);
  -webkit-text-fill-color: var(--dialog-panel-ink);
  caret-color: var(--dialog-panel-ink);
}

body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body input::placeholder,
body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body textarea::placeholder {
  color: #6f8178;
  opacity: 1;
  -webkit-text-fill-color: #6f8178;
}

body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body input:-webkit-autofill,
body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body input:-webkit-autofill:hover,
body[data-portal][data-portal-authenticated] .auth-dialog .auth-dialog-body input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: var(--dialog-panel-ink);
  caret-color: var(--dialog-panel-ink);
}

.auth-dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--dialog-line);
  background: var(--dialog-surface);
  color: var(--dialog-ink);
}

body[data-portal] .auth-dialog .auth-dialog-footer .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  font-weight: 800;
}

body[data-portal] .auth-dialog .auth-dialog-footer .ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(182, 203, 0, 0.78);
  color: #ffffff;
}

.auth-intro {
  margin: 0;
  color: var(--dialog-panel-muted);
  line-height: 1.5;
}

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

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

.auth-grid-street {
  grid-column: span 1;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  color: var(--dialog-panel-ink);
  font-weight: 500;
  line-height: 1.45;
}

.auth-consent input {
  width: 20px;
  min-height: 20px;
  margin-top: 1px;
}

.auth-consent a {
  color: var(--accent);
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--dialog-panel-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-message.success {
  color: var(--good);
}

.auth-message.error {
  color: var(--danger);
}

.auth-link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dialog-link);
  font-weight: 700;
  text-decoration: underline;
}

.auth-link-group {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.spot-dialog::backdrop {
  background: rgba(14, 25, 20, 0.58);
  backdrop-filter: blur(3px);
}

.spot-edit-form {
  display: grid;
  max-height: calc(100dvh - 32px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}

.dialog-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.dialog-header > div {
  display: grid;
  gap: 5px;
}

.spot-dialog-status {
  font-size: 0.85rem;
  font-weight: 800;
}

.spot-dialog-status.online {
  color: var(--good);
}

.spot-dialog-status.draft {
  color: var(--warn);
}

.spot-dialog-status.created {
  color: var(--muted);
}

.spot-dialog-status.reserved {
  color: #9b7200;
}

.spot-dialog-status.booked {
  color: #245d9c;
}

.spot-dialog-status.terminated {
  color: var(--danger);
}

.spot-rental-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.spot-rental-info strong {
  color: var(--accent-strong);
}

.spot-rental-info span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.spot-dialog.locked .dialog-body input:disabled,
.spot-dialog.locked .dialog-body select:disabled {
  background: var(--surface-muted);
  color: #536159;
  cursor: not-allowed;
  opacity: 1;
}

.spot-dialog.locked .vehicle-option {
  cursor: not-allowed;
  opacity: 0.78;
}

.dialog-header h2 {
  font-size: 1.55rem;
}

.dialog-header .eyebrow {
  margin-bottom: 5px;
}

.dialog-close {
  width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
}

.dialog-body {
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 22px 24px;
}

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

.edit-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.input-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
}

.input-addon input {
  border-radius: 8px 0 0 8px;
}

.input-addon > span {
  display: grid;
  place-items: center;
  border: 1px solid var(--form-border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 1.1rem;
}

.vat-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.vat-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.vat-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--form-border);
  border-radius: 9px;
}

.vat-options label {
  position: relative;
  cursor: pointer;
}

.vat-options input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.vat-options span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-right: 1px solid var(--form-border);
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 800;
}

.vat-options label:last-child span {
  border-right: 0;
}

.vat-options label:has(input:checked) span {
  background: var(--highlight);
  color: #17261f;
}

.price-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f6f3;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-summary strong {
  color: var(--ink);
}

.vehicle-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.spot-timezone-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--form-border);
  border-radius: 9px;
  background: var(--surface-muted);
}

.spot-timezone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.spot-timezone-header > div {
  display: grid;
  gap: 4px;
}

.spot-timezone-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.spot-timezone-list {
  display: grid;
  gap: 8px;
}

.spot-timezone-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 120px auto 120px 52px auto;
  align-items: center;
  gap: 8px;
}

.spot-timezone-row .spot-timezone-color {
  min-height: 42px;
  padding: 4px;
}

.vehicle-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.vehicle-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  overflow: hidden;
  border: 1px solid var(--form-border);
  border-radius: 8px;
}

.vehicle-option {
  position: relative;
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-right: 1px solid var(--form-border);
  background: #707a80;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
}

.vehicle-option:last-child {
  border-right: 0;
}

.vehicle-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.vehicle-option:has(input:checked) {
  background: var(--highlight);
  color: #17261f;
}

.vehicle-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

.vehicle-icon img {
  display: block;
  width: 40px;
  height: 28px;
  object-fit: contain;
}

.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.activate-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--highlight);
  border-radius: 8px;
  background: var(--highlight);
  color: #17261f;
  font-weight: 800;
}

.activate-button.deactivate-button {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
    gap: 12px;
  }

  .brand,
  .sidebar-footer {
    display: none;
  }

  .nav-tabs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .role-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(340px, 100%);
    margin: 0 auto;
  }

  .nav-tab {
    justify-content: center;
    min-height: 42px;
    padding: 8px;
    font-size: 0.84rem;
  }

  .nav-tab span {
    display: none;
  }

  .main {
    padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  .metric-grid,
  .workspace-grid,
  .object-layout,
  .spot-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utilization-panel { grid-template-columns: 1fr auto; }
  .chart-legend { grid-column: 1 / -1; }

  .vehicle-options {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }

  .finder-vehicles {
    grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  }

  .finder-vehicles label {
    border-bottom: 1px solid #cbd6cf;
  }

  .vehicle-option {
    border-bottom: 1px solid var(--line);
  }

  .object-map {
    min-height: 360px;
  }

  .help-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-video-section {
    grid-template-columns: 1fr;
  }

  .landlord-faq-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .finder-hero-banner { min-height: 220px; background-position: 58% center; }
  .dashboard-utilization-panel { grid-template-columns: 1fr; }
  .dashboard-status-donut { justify-self: center; }
  .metric-grid-eight, .utilization-panel { grid-template-columns: 1fr; }
  .status-donut { justify-self: center; }
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .topbar-side,
  .search,
  .object-switcher {
    width: 100%;
  }

  .topbar-side {
    justify-items: start;
  }

  .topbar-logo {
    width: min(50%, 210px);
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .auth-actions,
  .account-actions {
    width: 100%;
  }

  .finder-hero-copy {
    padding: 34px 22px 22px;
  }

  .finder-form {
    margin: 0 12px 12px;
    padding: 16px;
  }

  .finder-primary-fields,
  .finder-result-card {
    grid-template-columns: 1fr;
  }

  .finder-rental-model,
  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .help-hero,
  .help-guide {
    grid-template-columns: 1fr;
  }

  .help-checklist li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .help-checklist .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .faq-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .finder-footer,
  .finder-position,
  .public-map-header {
    align-items: stretch;
    flex-direction: column;
  }

  .finder-position span,
  .finder-submit {
    width: 100%;
  }

  .finder-result-visual {
    min-height: 120px;
  }

  .finder-result-gallery,
  .finder-result-gallery img {
    min-height: 220px;
  }

  .object-image-field-header {
    align-items: stretch;
    flex-direction: column;
  }

  .public-spot-map {
    min-height: 340px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-item,
  .process-ticket,
  .object-card,
  .spot-card,
  .user-row,
  .my-vehicle-card,
  .inline-form,
  .form-columns,
  .edit-grid,
  .edit-grid-three {
    grid-template-columns: 1fr;
  }

  .saved-vehicle-picker {
    grid-template-columns: 1fr;
  }

  .vehicle-card-icon {
    display: none;
  }

  .vehicle-card-actions {
    justify-content: flex-start;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid-wide,
  .auth-grid-street,
  .profile-grid-wide {
    grid-column: auto;
  }

  .object-actions,
  .spot-actions,
  .booking-actions {
    justify-content: flex-start;
  }

  .vehicle-options {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .spot-timezone-header {
    align-items: stretch;
    flex-direction: column;
  }

  .spot-timezone-row {
    grid-template-columns: 1fr 1fr;
  }

  .spot-timezone-row > span {
    display: none;
  }

  .dialog-header,
  .dialog-body,
  .dialog-footer,
  .auth-dialog-header,
  .auth-dialog-body,
  .auth-dialog-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dialog-footer,
  .auth-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .map-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .object-map {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  body[data-portal="landlord"][data-portal-authenticated="false"] .topbar {
    align-items: flex-end;
  }

  body[data-portal="landlord"][data-portal-authenticated="false"] .topbar-side,
  body[data-portal="landlord"][data-portal-authenticated="false"] .auth-actions {
    width: auto;
    justify-items: end;
  }

  body[data-portal="landlord"][data-portal-authenticated="false"] .auth-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100vw - 36px);
  }

  body[data-portal="landlord"][data-portal-authenticated="false"] .topbar-actions {
    width: auto;
  }

  body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy {
    width: min(330px, 92vw);
    margin-top: clamp(44px, 11vh, 96px);
  }

  body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy h2 {
    font-size: clamp(2rem, 9.2vw, 2.45rem);
    line-height: 1.04;
  }

  body[data-portal="landlord"][data-portal-authenticated="false"] .landlord-landing-copy p {
    font-size: clamp(1.05rem, 5.2vw, 1.35rem);
    line-height: 1.16;
  }
}
