:root {
  --primary: #0263fe;
  --ink: #071426;
  --text: #142338;
  --muted: #647084;
  --soft: #f6f8fb;
  --surface: #ffffff;
  --line: #dfe5ef;
  --line-soft: #edf1f6;
  --green: #1f9d5a;
  --red: #d92d20;
  --orange: #f59f00;
  --violet: #7048e8;
  --shadow-sm: 0 8px 24px rgba(7, 20, 38, .05);
  --shadow-md: 0 18px 52px rgba(7, 20, 38, .10);
  --radius: 8px;
  --radius-lg: 12px;
  --motion-fast: 140ms;
  --motion-ui: 200ms;
  --motion-large: 260ms;
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-ease-out: cubic-bezier(.16, 1, .3, 1);
  --focus-ring: 0 0 0 4px rgba(2, 99, 254, .10);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-body: 14px;
  --line-height-body: 1.5;
  --font-size-label: 12.5px;
  --line-height-label: 1.4;
  --font-weight-label: 500;
  --font-size-value: 15px;
  --line-height-value: 1.4;
  --font-weight-value: 600;
  --font-size-section-title: 18px;
  --line-height-section-title: 1.3;
  --font-weight-section-title: 650;
  --font-size-button: 14px;
  --font-weight-button: 600;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  --toast-mobile-top: max(16px, env(safe-area-inset-top, 0px));
  margin: 0;
  background: var(--soft);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.app-body {
  --toast-mobile-top: calc(env(safe-area-inset-top, 0px) + 72px);
}

.public-body {
  --toast-mobile-top: calc(env(safe-area-inset-top, 0px) + 92px);
}

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

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
summary,
label,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(2, 99, 254, .14);
}

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

h1 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 8px;
}

h2 {
  color: var(--ink);
  font-size: var(--font-size-section-title);
  line-height: var(--line-height-section-title);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: var(--font-size-label);
  font-weight: 600;
  line-height: var(--line-height-label);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-button);
  line-height: 1.2;
  padding: 0 18px;
  touch-action: manipulation;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
  white-space: nowrap;
}

.button:hover:not(:disabled):not(.is-waiting) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 99, 254, .16);
}

.button:active:not(:disabled):not(.is-waiting) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(2, 99, 254, .14);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(2, 99, 254, .24);
  outline-offset: 3px;
}

.button:disabled,
.button.is-waiting,
.button.is-loading {
  background: #eaf2ff;
  color: rgba(2, 99, 254, .58);
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.button-secondary {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.button-secondary:hover:not(:disabled):not(.is-waiting):not(.is-loading) {
  border-color: var(--primary);
  background: #f8fbff;
  color: var(--primary);
  box-shadow: none;
}

.button-secondary:disabled,
.button-secondary.is-waiting,
.button-secondary.is-loading {
  border-color: rgba(2, 99, 254, .28);
  background: #fff;
  color: rgba(2, 99, 254, .48);
}

.button-file {
  gap: 8px;
}

.button-file img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.card,
.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-card {
  margin-top: 18px;
  padding: 22px;
}

.is-disabled-panel {
  opacity: .68;
}

.is-disabled-panel input:disabled,
.is-disabled-panel select:disabled,
.is-disabled-panel textarea:disabled {
  background: #f1f4f8;
  color: #7b8798;
}

.places-page {
  display: grid;
  gap: 18px;
}

.places-head {
  margin-bottom: 0;
}

.places-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.places-filter {
  margin-top: 0;
}

.places-filter .field {
  margin: 0;
}

.places-filter-shell {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.places-filter-toggle {
  display: none;
  width: fit-content;
}

.places-filter-shell .places-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.places-map-shell,
.places-empty-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: clamp(460px, 62vh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eaf1f7;
  box-shadow: var(--shadow-sm);
}

.places-map,
.places-picker {
  width: 100%;
  min-height: inherit;
  background: #eaf1f7;
}

.places-empty-map .places-map {
  position: absolute;
  inset: 0;
  opacity: .64;
}

.places-empty-copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: min(420px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.places-empty-copy h2,
.places-empty-copy p {
  margin-bottom: 10px;
}

.places-empty {
  display: grid;
  min-height: 280px;
  align-content: center;
  justify-items: start;
}

.places-location-button {
  position: absolute;
  right: 14px;
  top: 14px;
  bottom: auto;
  z-index: 500;
  min-height: 42px;
  border: 1px solid rgba(7, 20, 38, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  padding: 0 14px;
  box-shadow: 0 10px 24px rgba(7, 20, 38, .12);
}

.places-location-button:disabled {
  cursor: wait;
  opacity: .7;
}

.places-create-section[hidden] {
  display: none;
}

.places-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.places-search-row .field {
  margin: 0;
}

.places-picker {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.place-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(7, 20, 38, .22);
}

.place-marker::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.place-marker-number {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.place-marker-number::after {
  content: none;
}

.place-marker-camper {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
}

.place-marker-camper::after {
  content: none;
}

.place-marker-pin {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #dc2626;
  box-shadow: 0 10px 24px rgba(7, 20, 38, .28);
  transform: rotate(-45deg);
}

.place-marker-pin::after {
  width: 9px;
  height: 9px;
  background: #fff;
  transform: rotate(45deg);
}

.place-marker-pin.is-red {
  background: #dc2626;
}

.place-popup {
  display: grid;
  gap: 8px;
  width: min(260px, 70vw);
}

.place-popup img {
  width: 100%;
  max-height: 150px;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.place-popup small {
  color: var(--muted);
}

.place-popup a {
  color: var(--primary);
  font-weight: 700;
}

.places-list {
  display: grid;
  gap: 10px;
}

.place-memory {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.place-photo-lightbox {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
  padding: 0;
  overflow: hidden;
}

.place-photo-lightbox img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--motion-ui) var(--motion-ease);
}

.place-photo-lightbox:hover img {
  transform: scale(1.02);
}

.place-photo-lightbox + .readonly-field-list {
  align-self: start;
}

.place-memory > .readonly-field-list:first-child {
  grid-column: 1 / -1;
}

.place-share-panel {
  display: grid;
  gap: 12px;
  margin: 4px 0 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.place-share-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: var(--font-size-value);
  line-height: var(--line-height-value);
}

.place-share-head p {
  margin: 0;
}

.place-share-form {
  margin: 0;
}

.place-share-toggle {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(100%, 620px);
  max-width: 100%;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.place-share-toggle strong,
.place-share-toggle small {
  display: block;
}

.place-share-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.place-share-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.place-share-switch {
  position: relative;
  display: block;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: #cfd7e4;
  box-shadow: inset 0 0 0 1px rgba(7, 20, 38, .08);
  transition: background-color var(--motion-ui) var(--motion-ease), box-shadow var(--motion-ui) var(--motion-ease);
}

.place-share-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(7, 20, 38, .24);
  transition: transform var(--motion-ui) var(--motion-ease);
}

.place-share-toggle input:checked + .place-share-switch {
  background: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(2, 99, 254, .12);
}

.place-share-toggle input:checked + .place-share-switch::after {
  transform: translateX(20px);
}

.place-share-toggle input:focus-visible + .place-share-switch {
  outline: 3px solid rgba(2, 99, 254, .24);
  outline-offset: 3px;
}

.place-share-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 12px;
}

.place-share-link-card > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.share-link-main > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link-main strong {
  color: var(--ink);
  font-weight: 750;
}

.share-link-main > small {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.place-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trip-overview-card {
  background: #fff;
}

.form-accordion.trip-overview-card summary,
.form-accordion.trip-overview-card[open] summary,
.form-accordion.trip-overview-card summary:hover,
.form-accordion.trip-overview-card[open] summary:hover {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}

.trip-cover-summary {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
  background: #dce7f5;
}

.trip-cover-preview {
  display: block;
  width: 100%;
  height: clamp(170px, 18vw, 220px);
  border-radius: inherit;
  object-fit: cover;
}

.trip-cover-placeholder {
  min-height: 0;
  border-radius: inherit;
}

.trip-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 22px;
  background: linear-gradient(180deg, rgba(6, 16, 34, .04) 20%, rgba(6, 16, 34, .44) 58%, rgba(6, 16, 34, .82) 100%);
}

.trip-cover-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .30);
}

.trip-cover-copy strong {
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
}

.trip-cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  color: rgba(255, 255, 255, .95);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.trip-cover-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trip-cover-meta > span + span::before {
  content: "·";
  color: rgba(255, 255, 255, .82);
}

.trip-cover-status > span {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8aa0b8;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

.trip-cover-status.is-unterwegs > span {
  background: #ff2f45;
}

.trip-cover-status.is-geplant > span {
  background: #1f7aff;
}

.trip-cover-status.is-beendet > span {
  background: #20bf6b;
}

.form-accordion.trip-overview-card .trip-cover-chevron.accordion-chevron {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(7, 21, 35, .28);
  backdrop-filter: blur(8px);
}

.form-accordion.trip-overview-card .trip-cover-chevron.accordion-chevron::before {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-ui) var(--motion-ease);
}

.form-accordion.trip-overview-card .accordion-chevron {
  border: 0;
  transform: none;
}

.form-accordion.trip-overview-card[open] .accordion-chevron {
  transform: none;
}

.form-accordion.trip-overview-card[open] .trip-cover-chevron.accordion-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.trip-card .form-accordion-body {
  display: grid;
  gap: 18px;
  border-top: 0;
  padding: 14px 16px 16px;
}

.trip-overview-body {
  align-items: start;
}

.trip-overview-copy {
  display: grid;
  gap: 12px;
}

.trip-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trip-meta-strip span,
.place-trip-badge {
  border: 1px solid #d9e7ff;
  border-radius: 999px;
  background: #f5f9ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 9px;
  white-space: nowrap;
}

.trip-description {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.trip-share-compact {
  margin: 0;
}

.trip-password-options {
  display: grid;
  gap: 10px;
  padding-left: 16px;
  border-left: 3px solid #d7deea;
}

.trip-password-options[hidden] {
  display: none;
}

.trip-overview-actions,
.places-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.places-edit-section[hidden] {
  display: none;
}

.places-edit-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.places-edit-head h2,
.places-edit-head p {
  margin-bottom: 4px;
}

.trip-live-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trip-live-title > span {
  position: relative;
  display: inline-block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff2f45;
  animation: public-trip-live-pulse 1.5s ease-in-out infinite;
}

.trip-card .readonly-field-list,
.trip-card .place-share-link-card,
.trip-card .places-form {
  margin: 0;
}

.trip-card .trip-info-list {
  margin-top: 14px;
}

.trip-card .trip-description-field {
  grid-column: 1 / -1;
}

.trip-card .place-share-link-card {
  margin-top: 16px;
  margin-bottom: 18px;
}

.trip-card .place-share-link-card + .places-form,
.trip-card .readonly-field-list + .places-form {
  margin-top: 4px;
}

.trip-steps-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.accordion-edit-actions + .trip-steps-panel {
  margin-top: 26px;
}

.trip-steps-panel .split-head {
  margin: 0;
}

.trip-steps-panel h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: var(--font-size-value);
  line-height: var(--line-height-value);
}

.trip-step-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.trip-step-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.trip-step-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-height: 120px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.trip-step-main {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.trip-step-main strong,
.place-row-copy strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.place-row-trip-title {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.trip-step-main small,
.place-row-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.trip-step-main p,
.place-row-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.trip-step-media {
  width: 100%;
}

.trip-step-media .place-photo-lightbox img,
.place-row-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.place-photo-placeholder {
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid #d9e7ff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(2, 99, 254, .08), rgba(40, 167, 69, .1)),
    #f5f9ff;
  position: relative;
}

.place-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(2, 99, 254, .38);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -58%) rotate(-45deg);
}

.place-photo-placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(2, 99, 254, .38);
  transform: translate(-50%, -70%);
}

.trip-step-media .trip-gallery {
  min-height: 118px;
}

.trip-step-media .trip-gallery-lightbox img {
  aspect-ratio: 4 / 3;
}

.trip-step-media .trip-gallery-thumbs {
  display: none;
}

.trip-step-media .trip-gallery-prev,
.trip-step-media .trip-gallery-next {
  width: 30px;
  height: 30px;
}

.trip-step-media .trip-gallery-count {
  top: auto;
  right: auto;
  bottom: 8px;
  left: 50%;
  font-size: 12px;
  transform: translateX(-50%);
}

.trip-step-accordion {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}

.trip-step-accordion summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--font-size-section-title);
  font-weight: var(--font-weight-section-title);
  line-height: var(--line-height-section-title);
  list-style: none;
  padding: 0 16px;
}

.trip-step-accordion summary::-webkit-details-marker {
  display: none;
}

.trip-step-accordion[open] summary {
  background: linear-gradient(135deg, #0566ff 0%, #0a7cff 100%);
  color: #fff;
}

.trip-step-timeline {
  position: relative;
}

.trip-step-timeline::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 14px;
  width: 2px;
  border-radius: 999px;
  background: #d9e7ff;
}

.all-places-list {
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.place-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
}

.all-places-list > .place-row {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}

.place-row-link {
  color: inherit;
  text-decoration: none;
  transition: background var(--motion-ui) var(--motion-ease), border-color var(--motion-ui) var(--motion-ease);
}

.place-row-link:hover,
.place-row-link:focus-visible {
  border-color: #cfe0ff;
  background: #eef4ff;
  outline: none;
}

.place-view-accordion {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
}

.all-places-list .place-view-accordion + .place-view-accordion {
  margin-top: 0;
}

.place-view-accordion summary.place-row {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  margin: 0;
  border: 0;
  border-radius: calc(var(--radius) - 1px);
  background: #fff;
  list-style: none;
}

.place-view-accordion summary.place-row::-webkit-details-marker {
  display: none;
}

.place-view-accordion[open] summary.place-row,
.place-view-accordion[open] summary.place-row:hover {
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: linear-gradient(135deg, #0566ff 0%, #0a7cff 100%);
}

.place-view-accordion[open] summary .place-row-copy strong,
.place-view-accordion[open] summary .place-row-copy small,
.place-view-accordion[open] summary .place-row-copy p {
  color: #fff;
}

.place-view-accordion .form-accordion-body {
  border-top: 1px solid #d9e7ff;
}

.place-view-accordion .trip-gallery {
  width: 100%;
}

.place-view-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

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

.place-row + .place-row {
  border-top: 1px solid var(--line-soft);
}

.place-row-photo {
  width: 58px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
}

.place-row-photo.place-photo-placeholder {
  border: 1px solid #d9e7ff;
  background:
    linear-gradient(135deg, rgba(2, 99, 254, .08), rgba(40, 167, 69, .1)),
    #f5f9ff;
  cursor: default;
}

.trip-step-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: start;
  width: 12px;
  height: 12px;
  margin-top: 36px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 99, 254, .22);
}

.trip-step-accordion summary small {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  opacity: .88;
}

.trip-step-accordion-body span {
  color: var(--muted);
  font-size: 13px;
}

.trip-step-accordion-body {
  display: grid;
  gap: 16px;
  border-top: 1px solid #d9e7ff;
  padding: 16px;
}

.trip-step-memory .trip-step-gallery {
  grid-column: 1 / -1;
}

.trip-step-edit-form {
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.trip-step-note-field {
  grid-column: 1 / -1;
}

.place-note-field {
  grid-column: 1 / -1;
}

.trip-step-create-form {
  border-top: 1px solid var(--line-soft);
  margin-bottom: 0;
  margin-top: 8px;
  padding-bottom: 12px;
  padding-top: 18px;
}

.trip-step-create-form[hidden] {
  display: none;
}

.trip-step-create-form h3 {
  margin: 0;
}

.trip-step-create-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
  margin-top: 6px;
}

.trip-step-create-actions .button {
  width: 100%;
}

.public-trip-page {
  background: var(--background);
}

.public-trip-password-page {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--background);
}

.public-trip-password-box {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.public-trip-password-box h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.public-trip-password-form {
  margin-top: 18px;
}

.public-trip-hero {
  position: relative;
  display: grid;
  min-height: clamp(360px, 68vh, 680px);
  overflow: hidden;
  align-items: end;
  background: linear-gradient(135deg, #143b2d, #315741);
}

.public-trip-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-trip-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 38, .12), rgba(7, 20, 38, .72));
}

.public-trip-hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-block: 88px 28px;
}

.public-trip-hero-copy h1 {
  max-width: 920px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 64px;
  line-height: 1.02;
}

.public-trip-hero-copy p {
  margin: 0;
}

.public-trip-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 7px 12px;
}

.public-trip-status > i {
  position: relative;
  display: block;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #9fc5ff;
}

.public-trip-status.is-live > i {
  background: #ff2f45;
  animation: public-trip-live-pulse 1.5s ease-in-out infinite;
}

.public-trip-status.is-ended > i {
  background: #d8e0eb;
}

.public-trip-hero-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 40px;
}

.public-trip-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-trip-hero-pills span,
.public-trip-hero-pills .public-trip-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  padding: 7px 12px;
}

.public-trip-hero-subscribe {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 42px;
  padding-inline: 18px;
  box-shadow: 0 12px 32px rgba(2, 99, 254, .28);
}

@keyframes public-trip-live-pulse {
  0% {
    transform: scale(.86);
  }

  50% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(.86);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-trip-status.is-live > i,
  .trip-live-title > span {
    animation: none;
  }
}

.demo-start-page {
  padding-block: 54px;
}

.demo-start-hero {
  display: grid;
  align-items: center;
  min-height: min(620px, calc(100vh - 140px));
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #d9e4f2;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.demo-start-hero > div {
  max-width: 680px;
}

.demo-start-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
}

.demo-start-hero p {
  max-width: 620px;
  color: #41516a;
  font-size: 18px;
  line-height: 1.55;
}

.demo-start-hero form {
  display: grid;
  max-width: 430px;
  gap: 14px;
  margin: 26px 0 18px;
}

.demo-start-progress {
  display: grid;
  gap: 8px;
}

.demo-start-progress[hidden] {
  display: none;
}

.demo-start-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #41516a;
  font-size: 14px;
  line-height: 1.35;
}

.demo-start-progress-head strong {
  min-width: 0;
  color: #102033;
  font-size: 14px;
  font-weight: 700;
}

.demo-start-progress-head span {
  flex: 0 0 auto;
  color: #637083;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.demo-start-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e7edf5;
}

.demo-start-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #006dff 0%, #28b58f 100%);
  transition: width .34s ease;
}

.demo-banner {
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #b9d3ff;
  border-radius: var(--radius);
  background: #f7faff;
  color: #10284f;
  box-shadow: var(--shadow-sm);
}

.demo-banner strong,
.demo-banner span,
.demo-banner small {
  display: block;
}

.demo-banner strong {
  font-size: 14px;
}

.demo-banner span {
  font-weight: 650;
}

.demo-banner small {
  margin-top: 2px;
  color: #53657f;
}

.demo-banner form {
  margin: 0;
}

.demo-locked-panel {
  opacity: .62;
}

.demo-locked-button {
  cursor: not-allowed;
  opacity: .72;
  filter: grayscale(.25);
}

.demo-lock-icon {
  display: inline-flex;
  margin-right: 6px;
  line-height: 1;
}

.demo-qr-preview {
  display: inline-grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  max-width: 420px;
  border: 1px solid #d9e4f2;
  background: #f8fbff;
}

.demo-qr-preview img {
  width: 72px;
  height: 72px;
  background: #fff;
}

.demo-qr-preview a {
  min-width: 0;
  color: #0263fe;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .demo-banner {
    grid-template-columns: 1fr;
    margin: 0 0 18px;
  }

  .demo-banner .button,
  .demo-banner form,
  .demo-banner form .button {
    width: 100%;
  }

  .demo-start-page {
    padding-block: 20px;
  }

  .demo-start-hero {
    min-height: auto;
    padding: 26px 18px;
  }
}

.public-trip-content {
  display: grid;
  gap: 18px;
  padding-block: 22px 44px;
}

.public-trip-description {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-block: 10px;
  color: var(--ink);
  line-height: 1.55;
}

.public-trip-content > .public-place-card:first-child {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 10px 0;
}

.public-trip-content > .public-place-card:first-child p {
  margin: 0;
}

.public-trip-subscribe-dialog {
  width: min(480px, 90vw);
  max-width: 90vw;
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(7, 20, 38, .28);
  color: var(--ink);
  overflow: auto;
  padding: 0;
}

.public-trip-subscribe-dialog::backdrop {
  background: rgba(7, 20, 38, .46);
  backdrop-filter: blur(8px);
}

.public-trip-subscribe-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 26px;
}

.public-trip-subscribe-form h2 {
  margin: 0;
  font-size: 24px;
}

.public-trip-subscribe-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-trip-subscribe-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.public-trip-steps {
  display: grid;
  gap: 0;
}

.public-trip-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  scroll-margin-top: 118px;
}

.public-trip-step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 2px;
  border-radius: 999px;
  background: #d9e7ff;
}

.public-trip-step:first-child::before {
  top: 36px;
}

.public-trip-step:last-child::before {
  bottom: calc(100% - 36px);
}

.public-trip-step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-top: 18px;
  border: 4px solid var(--surface);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 99, 254, .22);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.public-trip-step-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 3vw, 24px);
}

.public-trip-step-meta {
  display: grid;
  gap: 3px;
}

.public-trip-step h2 {
  margin: 0 0 3px;
}

.trip-gallery {
  position: relative;
  display: grid;
  gap: 10px;
}

.public-trip-step-card .trip-gallery {
  gap: 0;
}

.trip-gallery-track {
  display: flex;
  overflow-x: auto;
  border-radius: var(--radius);
  background: #eaf1f7;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.public-trip-step-card .trip-gallery-track {
  border-radius: var(--radius) var(--radius) 0 0;
}

.trip-gallery-track::-webkit-scrollbar {
  display: none;
}

.trip-gallery-lightbox {
  flex: 0 0 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
  scroll-snap-align: start;
}

.trip-gallery-lightbox img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.public-trip-step-card .trip-gallery-lightbox img {
  border-radius: var(--radius) var(--radius) 0 0;
}

.public-trip-step-card .trip-gallery + .public-trip-step-meta,
.public-trip-step-card .trip-gallery + .trip-gallery-caption {
  border-radius: 0 0 var(--radius) var(--radius);
}

.trip-gallery-prev,
.trip-gallery-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 999px;
  background: rgba(7, 20, 38, .46);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  padding: 0 0 3px;
  transform: translateY(-50%);
}

.trip-gallery-prev {
  left: 12px;
}

.trip-gallery-next {
  right: 12px;
}

.trip-gallery-count {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  border-radius: 999px;
  background: rgba(7, 20, 38, .62);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.trip-gallery-thumbs {
  display: grid;
  grid-auto-columns: minmax(72px, 96px);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}

.trip-gallery-thumbs button {
  display: block;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #eaf1f7;
  cursor: pointer;
  opacity: .68;
  padding: 0;
  transition: border-color var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.trip-gallery-thumbs button:hover,
.trip-gallery-thumbs button.is-active {
  border-color: var(--primary);
  opacity: 1;
}

.trip-gallery-thumbs button.is-active {
  transform: translateY(-1px);
}

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

.public-trip-step-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: clamp(140px, 16vw, 170px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #eaf1f7;
}

.public-trip-step-map .places-map {
  height: 100%;
  min-height: 0;
}

.public-trip-step-map .leaflet-control-attribution {
  opacity: .72;
}

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

.trip-heart-button,
.trip-comment-count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
  padding: 8px 13px;
}

.trip-comment-count {
  text-decoration: none;
}

.trip-comment-count svg {
  width: 18px;
  height: 18px;
}

.trip-heart-button[aria-pressed="true"] {
  border-color: rgba(224, 42, 86, .28);
  background: #fff3f6;
  color: #c21848;
}

.trip-comments {
  display: grid;
  gap: 12px;
  scroll-margin-top: 118px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.trip-comment-list {
  display: grid;
  gap: 8px;
}

.trip-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.trip-comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f1f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.trip-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-comment-body {
  min-width: 0;
}

.trip-comment header {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  align-items: baseline;
  min-width: 0;
  padding-right: 4px;
}

.trip-comment header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.trip-comment header time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.trip-comment p,
.trip-comments-empty {
  margin: 3px 0 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.trip-comments-empty {
  color: var(--muted);
}

.trip-comment-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  justify-self: end;
}

.trip-comment-heart {
  display: inline-flex;
  min-width: 38px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: end;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease);
}

.trip-comment-heart strong {
  color: currentColor;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.trip-comment-heart:hover,
.trip-comment-heart:focus-visible,
.trip-comment-heart[aria-pressed="true"] {
  border-color: rgba(224, 42, 86, .18);
  background: #fff3f6;
  color: #c21848;
}

.trip-comment-heart:disabled {
  cursor: wait;
  opacity: .72;
}

.trip-comment-delete-form {
  margin: 0;
}

.trip-comment-delete {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease);
}

.trip-comment-delete svg {
  width: 17px;
  height: 17px;
}

.trip-comment-delete:hover,
.trip-comment-delete:focus-visible {
  border-color: rgba(217, 45, 32, .18);
  background: #fff1f0;
  color: #d92d20;
}

.trip-comment-composer-prompt {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--muted);
  cursor: text;
  font-weight: 650;
  line-height: 1.2;
  padding: 0 13px;
  text-align: left;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.trip-comment-composer-prompt:hover,
.trip-comment-composer-prompt:focus-visible,
.trip-comment-composer-prompt[aria-expanded="true"] {
  border-color: #d9e7ff;
  background: #fff;
  box-shadow: var(--focus-ring);
}

.trip-comment-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.trip-comment-form[hidden] {
  display: none;
}

.trip-comment-form .field {
  margin: 0;
  gap: 5px;
  font-size: 12px;
}

.trip-comment-form input,
.trip-comment-form textarea {
  min-height: 40px;
  border-radius: var(--radius);
  padding: 9px 10px;
}

.trip-comment-form textarea {
  min-height: 84px;
  resize: vertical;
}

.trip-comment-form .button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
}

.trip-comment-author-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.trip-comment-author-preview strong {
  color: var(--ink);
}

.trip-comment-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .public-trip-hero-copy {
    padding-block: 88px 24px;
  }

  .public-trip-hero-copy h1 {
    font-size: 40px;
  }

  .public-trip-hero-bottom {
    gap: 10px;
    margin-top: 34px;
  }

  .public-trip-hero-subscribe {
    margin-left: 0;
    margin-right: auto;
    min-height: 40px;
    padding-inline: 16px;
  }

  .public-trip-subscribe-form {
    padding: 24px 18px 20px;
  }

  .trip-gallery-prev,
  .trip-gallery-next {
    display: none;
  }

  .public-trip-step-map {
    height: clamp(120px, 34vw, 140px);
  }

  .public-trip-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .public-trip-step::before {
    left: 14px;
  }

  .public-trip-step:first-child::before {
    top: 30px;
  }

  .public-trip-step:last-child::before {
    bottom: calc(100% - 30px);
  }

  .public-trip-step-marker {
    width: 30px;
    height: 30px;
    margin-top: 15px;
    border-width: 3px;
    font-size: 12px;
  }

  .trip-comment-form .button {
    width: 100%;
  }

  .trip-comment {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px;
  }

  .trip-comment-avatar {
    width: 32px;
    height: 32px;
  }

  .trip-comment-heart {
    min-width: 34px;
    padding-inline: 6px;
  }

  .places-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .places-head-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }
}

.public-place-page {
  display: grid;
  gap: 18px;
  padding-block: 28px 40px;
}

.public-place-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.public-place-hero h1 {
  margin-bottom: 8px;
}

.public-place-hero p:last-child,
.public-place-note p:last-child {
  margin-bottom: 0;
}

.public-place-photo {
  width: min(760px, 100%);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
  justify-self: center;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.public-place-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.public-place-map-shell {
  min-height: clamp(340px, 52vh, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eaf1f7;
  box-shadow: var(--shadow-sm);
}

.public-place-branding {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.leaflet-container {
  font: inherit;
  position: relative;
  z-index: 0;
}

.public-body .leaflet-container,
.public-body .leaflet-pane,
.public-body .leaflet-top,
.public-body .leaflet-bottom {
  z-index: 20;
}

.leaflet-control-attribution {
  font-size: 11px;
}

.mobile-map-touch-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 760;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(7, 20, 38, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-button);
  line-height: 1.2;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -6px);
  transition:
    opacity var(--motion-ui) var(--motion-ease),
    transform var(--motion-ui) var(--motion-ease);
  box-shadow: 0 12px 28px rgba(7, 20, 38, .14);
  white-space: nowrap;
}

.mobile-map-touch-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 22px 0;
}

.settings-panel {
  display: grid;
  width: min(100%, 920px);
  gap: 14px;
  margin: 18px auto 0;
  padding: 32px;
}

.settings-accordion {
  box-shadow: none;
}

.settings-accordion + .settings-accordion {
  margin-top: 0;
}

.settings-summary-main {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.settings-summary-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.settings-danger-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 45, 32, .24);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.settings-summary-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.settings-summary-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-accordion .form-accordion-body {
  border-top-color: var(--line-soft);
  padding: 16px;
}

.settings-form {
  max-width: 620px;
  gap: 13px;
}

.business-settings-form {
  max-width: none;
}

.settings-form .button {
  justify-self: start;
  min-height: 40px;
}

.settings-note {
  margin: 0;
}

.settings-export-list {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.settings-export-list span {
  position: relative;
  padding-left: 18px;
}

.settings-export-list span::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.settings-danger-accordion {
  border-color: rgba(217, 45, 32, .24);
}

.settings-danger-accordion summary .settings-summary-copy strong,
.settings-danger-accordion summary .settings-summary-copy small {
  color: var(--red);
}

.form-accordion[open] summary .settings-summary-copy strong,
.form-accordion[open] summary .settings-summary-copy small {
  color: #fff;
}

.form-accordion[open].settings-danger-accordion summary .settings-danger-icon {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.settings-delete-warning {
  margin: 0;
  border-left: 3px solid var(--red);
  color: #8f1f17;
  font-weight: 600;
  line-height: 1.45;
  padding-left: 12px;
}

.business-logo-avatar,
.business-logo-preview {
  background: #eef4ff;
  color: var(--primary);
}

.business-logo-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 4px;
}

.business-logo-avatar img,
.business-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.business-logo-preview {
  display: grid;
  width: 84px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 24px;
  font-weight: 800;
  padding: 8px;
}

.business-logo-preview.has-image {
  background: #fff;
}

.business-settings-form .profile-upload {
  column-gap: 22px;
}

.profile-upload {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-avatar-wrap {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
}

.profile-photo-delete {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.profile-photo-delete:hover {
  border-color: rgba(217, 45, 32, .32);
  background: #fff1f0;
}

.profile-upload-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-label {
  color: var(--text);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  line-height: var(--line-height-label);
}

.file-picker {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfd7e6;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker-button {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: var(--font-weight-button);
  line-height: 1;
  padding: 11px 13px;
}

.file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 99, 254, .10);
}

.profile-upload-control .field-hint {
  display: block;
  font-weight: 500;
}

.settings-inline-form {
  margin-top: 10px;
}

.danger-card {
  border-color: rgba(217, 45, 32, .28);
  background: #fffafa;
}

.alert {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  line-height: 1.45;
  margin-bottom: 16px;
}

.alert-error {
  background: #fff1f0;
  color: #b42318;
}

.alert-success {
  background: #ecfdf3;
  color: #067647;
}

.app-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  width: min(calc(100vw - 32px), 420px);
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: min(calc(100vw - 32px), 420px);
  min-height: 86px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
  padding: 16px 12px 16px 16px;
  text-align: left;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--motion-ui) var(--motion-ease), transform var(--motion-ui) var(--motion-ease);
}

.app-toast.is-success {
  border-color: #b7efca;
  background: #f1fbf5;
}

.app-toast.is-error {
  border-color: #f4c2c7;
  background: #fff4f4;
}

.app-toast.is-info {
  border-color: #bfd8fb;
  background: #eef5ff;
}

.app-toast.is-warning {
  border-color: #efd9ac;
  background: #fff8e8;
}

.app-toast-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
}

.app-toast-icon svg {
  width: 24px;
  height: 24px;
}

.app-toast.is-success .app-toast-icon {
  background: #2fb35f;
}

.app-toast.is-error .app-toast-icon {
  background: #ff5b65;
}

.app-toast.is-warning .app-toast-icon {
  background: #ffc32e;
}

.app-toast.is-info .app-toast-icon {
  background: #2f86df;
}

.app-toast-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: #111827;
  font-size: var(--font-size-body);
  line-height: 1.4;
}

.app-toast-copy strong {
  color: #05070c;
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.app-toast-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #05070c;
  cursor: pointer;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  padding: 0 0 3px;
}

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfd7e6;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: max(16px, var(--font-size-body));
  line-height: var(--line-height-body);
  padding: 12px;
  outline: none;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease);
}

select {
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 21px) 22px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 17px) 22px / 6px 6px no-repeat,
    #fff;
  line-height: 1.35;
  padding: 0 44px 0 14px;
}

input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  margin: 0;
  text-align: left;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

input[readonly] {
  background: #f4f6f9;
  color: #536174;
}

.money-input {
  position: relative;
  display: block;
}

.money-input input {
  padding-right: 44px;
}

.money-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  transform: translateY(-50%);
  pointer-events: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  line-height: var(--line-height-label);
}

.field > .field-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.field[hidden],
.field.is-hidden {
  display: none;
}

.required-dot {
  justify-self: start;
  border-radius: 999px;
  background: #eef4ff;
  color: #244b8f;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-label);
  line-height: 1.4;
  transition: color var(--motion-fast) var(--motion-ease);
}

.field-hint[data-name-hint],
.field-hint[data-email-hint],
.field-hint[data-repeat-hint] {
  min-height: 17px;
}

.field-hint.is-error {
  color: var(--red);
}

.field-placeholder {
  display: flex;
  min-height: 50px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-label);
  padding: 0 12px;
}

.service-workshop-field.is-inactive {
  color: #6d7b91;
}

input.is-invalid,
textarea.is-invalid {
  border-color: rgba(217, 45, 32, .72);
  background: #fffafa;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select,
.field.is-invalid .upload-choice {
  border-color: rgba(217, 45, 32, .72);
  background: #fffafa;
}

input.is-invalid:focus,
textarea.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(217, 45, 32, .10);
}

.field.is-invalid input:focus,
.field.is-invalid textarea:focus,
.field.is-invalid select:focus {
  box-shadow: 0 0 0 4px rgba(217, 45, 32, .10);
}

.field-error {
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

input.is-valid,
textarea.is-valid {
  border-color: rgba(31, 157, 90, .72);
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: -2px 0 2px;
}

.password-rules span {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #718096;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  padding: 0;
}

.password-rules span::before {
  content: "✓";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  color: #a7b2c3;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  flex: 0 0 auto;
}

.password-rules span.is-valid {
  background: transparent;
  color: #087443;
}

.password-rules span.is-valid::before {
  color: var(--green);
}

.legal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #31415a;
  cursor: pointer;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  line-height: 1.45;
  padding: 10px 12px;
}

.legal-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--primary);
}

.legal-check a {
  color: var(--primary);
  font-weight: var(--font-weight-button);
}

.legal-check.is-invalid {
  border-color: rgba(217, 45, 32, .72);
  background: #fffafa;
}

.form-stack {
  display: grid;
  gap: 11px;
}

.resend-form {
  display: grid;
  margin-top: 10px;
}

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

.form-grid > .field {
  align-self: start;
}

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

.form-grid > .upload-choice-field,
.form-grid > .field:has(.upload-choice-group) {
  grid-column: 1 / -1;
  width: 100%;
}

.form-grid > .document-type-field {
  grid-column: 1 / -1;
}

.accordion-field-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  min-width: 0;
}

.accordion-field-group[hidden] {
  display: none;
}

.accordion-field-group + .accordion-field-group {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 16px;
}

:where(.document-edit-form, .document-create-form, .service-edit-form, .service-create-form, .damage-create-form, .inspection-edit-form, .inspection-create-form, .stolen-report-form) > .accordion-field-group:first-of-type,
:where(.document-edit-form, .document-create-form, .service-edit-form, .service-create-form, .damage-create-form, .inspection-edit-form, .inspection-create-form, .stolen-report-form) > .context-note + .accordion-field-group {
  margin-top: 18px;
}

.record-action-row + form {
  margin-top: 18px;
}

.accordion-field-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.accordion-field-group > .field {
  margin: 0;
}

.form-section {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 20px;
}

.onboarding-form {
  gap: 14px;
  padding-bottom: 28px;
}

.form-accordion {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--motion-ui) var(--motion-ease), box-shadow var(--motion-ui) var(--motion-ease);
}

.form-accordion[open] {
  overflow: hidden;
}

.form-accordion + .form-accordion {
  margin-top: 10px;
}

.form-accordion summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: var(--font-weight-section-title);
  line-height: var(--line-height-section-title);
  list-style: none;
  padding: 0 16px;
  background: #f4f7fb;
  transition: background var(--motion-ui) var(--motion-ease), color var(--motion-ui) var(--motion-ease);
}

.form-accordion summary strong,
.inspection-accordion-title strong,
.inventory-accordion-title strong,
.place-row-copy strong,
.settings-summary-copy strong {
  font-size: 17px;
}

.form-accordion summary:hover {
  background: #eef4ff;
}

.form-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid #7a8799;
  border-bottom: 2px solid #7a8799;
  transform: rotate(45deg);
  transition: transform var(--motion-ui) var(--motion-ease), border-color var(--motion-ui) var(--motion-ease);
}

.form-accordion[open] summary {
  background: linear-gradient(135deg, #0566ff 0%, #0a7cff 100%);
  color: #fff;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.form-accordion[open] summary:hover {
  background: linear-gradient(135deg, #055fec 0%, #0572ef 100%);
}

.all-places-list > .place-view-accordion.form-accordion > summary.place-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 72px;
  align-items: center;
  justify-content: stretch;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.all-places-list > .place-view-accordion.form-accordion > summary.place-row:hover {
  background: #eef4ff;
}

.all-places-list > .place-view-accordion.form-accordion[open] > summary.place-row,
.all-places-list > .place-view-accordion.form-accordion[open] > summary.place-row:hover {
  background: linear-gradient(135deg, #0566ff 0%, #0a7cff 100%);
  color: #fff;
}

.all-places-list > .place-view-accordion.form-accordion > summary.place-row .place-row-copy strong {
  color: var(--ink);
}

.all-places-list > .place-view-accordion.form-accordion > summary.place-row .place-row-copy small {
  color: var(--muted);
}

.all-places-list > .place-view-accordion.form-accordion[open] > summary.place-row .place-row-copy strong,
.all-places-list > .place-view-accordion.form-accordion[open] > summary.place-row .place-row-copy small {
  color: #fff;
}

.all-places-list > .place-view-accordion.form-accordion > summary.place-row .place-row-actions {
  min-width: 0;
}

@media (max-width: 900px) {
  .all-places-list > .place-view-accordion.form-accordion > summary.place-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "photo copy"
      "photo actions";
    gap: 8px 16px;
    align-items: start;
    padding: 12px;
  }
}

.form-accordion[open] .accordion-chevron {
  border-color: #fff;
  transform: rotate(225deg);
}

.accordion-progress {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  margin-left: auto;
  padding: 0 10px;
}

.form-accordion[open] .accordion-progress {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.form-accordion-body {
  border-top: 1px solid #d9e7ff;
  padding: 16px;
}

.form-accordion.is-animating {
  overflow: hidden;
}

.form-accordion-content {
  overflow: hidden;
}

.form-accordion.is-ready:not([open]) .form-accordion-content {
  height: 0;
}

.form-accordion.is-ready .form-accordion-content {
  transition: height var(--motion-large) var(--motion-ease-out);
}

.accordion-save {
  justify-self: start;
  margin-top: 14px;
}

.accordion-edit-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.accordion-edit-actions.has-delete {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accordion-edit-actions.has-trip-finish {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accordion-edit-actions.has-trip-delete {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accordion-edit-actions.trip-edit-actions {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.accordion-edit-actions.equipment-add-actions {
  grid-template-columns: minmax(0, 5fr) minmax(84px, 1fr);
}

.accordion-edit-actions.equipment-add-actions .button {
  padding-inline: 10px;
  font-size: 14px;
}

.accordion-edit-actions.trip-edit-actions .accordion-trip-finish-action,
.accordion-edit-actions.trip-edit-actions .accordion-trip-delete-action {
  grid-column: 1 / -1;
}

.accordion-edit-actions .button {
  width: 100%;
}

.accordion-edit-actions .button[type="submit"] {
  min-width: 0;
}

.accordion-edit-actions .edit-cancel {
  margin-top: 0;
}

.accordion-edit-actions .accordion-save {
  margin-top: 0;
}

.accordion-edit-actions .accordion-delete-action {
  margin-top: 0;
}

.accordion-edit-actions .accordion-trip-finish-action {
  margin-top: 0;
}

.accordion-edit-actions .accordion-trip-delete-action {
  margin-top: 0;
}

@media (max-width: 900px) {
  .accordion-edit-actions:not(.has-delete):not(.has-trip-finish):not(.has-trip-delete) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .accordion-edit-actions.has-delete {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accordion-edit-actions.has-trip-finish {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accordion-edit-actions.has-trip-delete {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accordion-edit-actions.trip-edit-actions {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .accordion-edit-actions.equipment-add-actions {
    grid-template-columns: minmax(0, 5fr) minmax(84px, 1fr);
  }

  .accordion-edit-actions.has-delete .accordion-primary-action {
    grid-column: 1 / -1;
  }

  .accordion-edit-actions.has-trip-finish .accordion-trip-finish-action {
    grid-column: 1 / -1;
  }

  .accordion-edit-actions.has-trip-delete .accordion-trip-delete-action {
    grid-column: 1 / -1;
  }
}

.view-edit-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  margin-top: 18px;
  margin-bottom: 12px;
}

.button-compact {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
}

.form-accordion[open] summary .button-secondary {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
}

.business-vehicle-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.business-vehicle-filter {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.2;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.business-vehicle-filter.active {
  border-color: rgba(2, 99, 254, .32);
  background: #eef4ff;
  color: var(--primary);
}

.business-vehicle-accordion summary {
  min-height: 72px;
}

.business-vehicle-accordion summary .inspection-accordion-title {
  min-width: 0;
  flex: 1 1 auto;
}

.business-vehicle-accordion summary .inspection-accordion-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.business-vehicle-accordion[open] summary .inspection-accordion-title small {
  color: rgba(255, 255, 255, .86);
}

.business-vehicle-accordion[open] summary > .status {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.business-vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.business-vehicle-actions form {
  margin: 0;
}

.business-vehicle-nested {
  margin-top: 14px;
}

.business-inline-form {
  margin-top: 14px;
}

.business-modal {
  width: min(92vw, 560px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.business-modal::backdrop {
  background: rgba(7, 20, 38, .62);
}

.business-modal .split-head {
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .business-vehicle-accordion summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px;
  }

  .business-vehicle-accordion summary > .status {
    order: 2;
    margin-left: 0;
  }

  .business-vehicle-accordion summary > .accordion-chevron {
    margin-top: 10px;
    margin-left: auto;
  }

  .business-vehicle-actions,
  .business-vehicle-actions .button,
  .business-vehicle-actions form {
    width: 100%;
  }

  .business-modal {
    width: min(100%, 560px);
    padding: 18px;
  }
}

.view-panel {
  display: block;
}

.edit-panel {
  display: none;
}

.is-editing > .form-accordion-body > .view-panel,
.is-editing .view-panel {
  display: none;
}

.is-editing > .form-accordion-body > .edit-panel,
.is-editing .edit-panel {
  display: block;
}

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

.readonly-field {
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfcff;
  padding: 11px 12px;
}

.readonly-field span {
  color: var(--muted);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  line-height: var(--line-height-label);
}

.readonly-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.readonly-field small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.readonly-field.is-full-width {
  grid-column: 1 / -1;
}

#notizen .readonly-field-list {
  grid-template-columns: 1fr;
}

.readonly-field.has-media {
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
}

.readonly-field.has-media img {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 96px;
  height: 68px;
  border: 4px solid #fff;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(7, 20, 38, .14);
}

.document-download-field,
.damage-files-field,
.attachment-card {
  grid-column: 1 / -1;
}

.switch-line.damage-business-share-toggle {
  width: 100%;
  min-height: 50px;
  grid-template-columns: 48px minmax(0, 1fr);
  background: #fff;
  font-weight: 500;
  padding: 0 14px;
}

.switch-line.damage-business-share-toggle i {
  grid-column: 1;
}

.switch-line.damage-business-share-toggle span {
  grid-column: 2;
  min-width: 0;
  white-space: nowrap;
}

.damage-business-share-select {
  gap: 0;
}

.damage-business-share-hint {
  margin: -2px 0 0;
}

.document-download-field .button,
.damage-files-field .button,
.document-download-field .file-download-link,
.damage-files-field .file-download-link {
  justify-self: start;
  width: fit-content;
}

.file-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.file-preview-card {
  display: grid;
  width: 148px;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: zoom-in;
  padding: 6px;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.file-preview-card:hover,
.equipment-media:hover,
.upload-choice:hover,
.product-row:has(a:hover, button:hover),
.list-row:has(a:hover, button:hover),
.report-row:has(a:hover, button:hover) {
  border-color: rgba(2, 99, 254, .28);
}

.file-preview-card:active,
.equipment-media:active,
.upload-choice:active,
.dashboard-mode-card:active:not(:disabled):not(.is-disabled),
.product-toggle-button:active:not(:disabled) {
  transform: translateY(0);
}

.file-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #eef4ff;
  object-fit: cover;
}

.file-preview-card span {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-document-card {
  min-height: 124px;
  align-content: start;
  cursor: pointer;
}

.file-document-card i {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
}

.file-download-link {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-button);
  line-height: 1.35;
  text-decoration: none;
}

.file-download-link:hover {
  color: #0057dc;
  text-decoration: none;
}

.file-download-link img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.file-download-link span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.damage-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-card {
  align-content: start;
  margin-top: 10px;
}

.attachment-file-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.attachment-file-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 42px;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  padding: 3px 0;
  text-align: left;
  text-decoration: none;
}

.attachment-file-link:hover {
  color: #0057dc;
  text-decoration: none;
}

.attachment-file-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-file-icon,
.attachment-file-thumb {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 5px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.attachment-file-icon img,
.attachment-file-thumb {
  object-fit: cover;
}

.attachment-file-icon img {
  width: 100%;
  height: 100%;
}

.attachment-group-list {
  display: grid;
  gap: 14px;
}

.attachment-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.attachment-group > strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

#geteilte-schaeden,
.business-damage-accordion {
  scroll-margin-top: 24px;
}

.business-damage-resolution {
  margin-top: 16px;
}

.business-damage-resolution.is-open > .button {
  margin-bottom: 14px;
}

.business-damage-resolution > form[hidden] {
  display: none;
}

.existing-upload-cards {
  display: grid;
  gap: 8px;
}

.record-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.record-links h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.record-link-list {
  display: grid;
  gap: 8px;
}

.record-link-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.record-link-card:hover {
  border-color: rgba(2, 99, 254, .28);
  box-shadow: var(--shadow-sm);
}

.record-link-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 17px;
}

.record-link-card span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.record-link-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-link-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.record-action-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.context-note {
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--text);
  padding: 12px;
}

.insurance-documents-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.insurance-documents-note a:hover,
.insurance-documents-note a:focus-visible {
  color: var(--primary);
  text-decoration: none;
}

.readonly-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #cfe0ff;
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 16px;
  width: 100%;
}

.edit-cancel {
  display: flex;
  width: fit-content;
  margin-top: 14px;
  margin-left: 0;
}

.inspection-delete-form {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.accordion-alert {
  margin: 0 0 16px;
}

.vehicle-checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 14px;
}

.form-grid > .vehicle-checkbox-option {
  grid-column: 1 / -1;
  margin-top: 0;
}

.vehicle-checkbox-option span {
  display: grid;
  gap: 3px;
}

.vehicle-checkbox-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.equipment-list {
  display: grid;
  gap: 10px;
}

.equipment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.equipment-media {
  display: grid;
  width: 88px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #eef4ff;
  color: var(--primary);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  padding: 0;
}

.equipment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-attachments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.equipment-document-link {
  align-self: center;
  max-width: 260px;
}

.equipment-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.equipment-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.equipment-edit-fields {
  display: none;
  grid-column: 1 / -1;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.is-editing .equipment-edit-fields {
  display: grid;
}

.is-equipment-adding .equipment-edit-fields,
.is-equipment-editing .equipment-editor,
.is-equipment-editing .equipment-add-actions .accordion-primary-action {
  display: none;
}

.is-equipment-editing .equipment-add-actions {
  grid-template-columns: 1fr;
}

.equipment-item-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
}

.equipment-item-actions .button {
  width: 100%;
}

.inline-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

.inline-button {
  width: fit-content;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.equipment-editor {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  padding-top: 18px;
}

.equipment-editor h3 {
  margin: 0;
}

.equipment-note-field {
  color: inherit;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
}

.equipment-note-field textarea {
  height: 48px;
  min-height: 48px;
  overflow: hidden;
  resize: none;
}

.equipment-note-field textarea::placeholder {
  font-weight: 400;
}

.vehicle-photo-upload {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.vehicle-photo-preview {
  display: grid;
  width: 132px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cfd7e6;
  border-radius: var(--radius);
  background: #f8fbff;
  color: #5d6b80;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 12px;
  text-align: center;
}

.vehicle-photo-preview > span {
  display: block;
  max-width: 100%;
}

.vehicle-photo-preview.has-image {
  padding: 0;
  background: #fff;
}

.vehicle-photo-preview.has-image.is-portrait {
  width: 108px;
  aspect-ratio: 3 / 4;
}

.vehicle-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.vehicle-photo-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #d5e1f2;
  border-radius: var(--radius);
  background: #fff;
  cursor: default;
  padding: 14px;
  transition: border-color var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.vehicle-photo-dropzone:hover,
.vehicle-photo-dropzone:focus-within,
.vehicle-photo-dropzone.is-dragging {
  border-color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 0 0 4px rgba(2, 99, 254, .08);
}

.vehicle-photo-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vehicle-photo-dropzone .vehicle-photo-preview {
  width: 132px;
  border-style: solid;
  background: #f8fbff;
}

.vehicle-photo-dropzone .vehicle-photo-preview.has-image.is-portrait {
  width: 108px;
}

.vehicle-photo-copy {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.vehicle-photo-copy-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.vehicle-photo-copy strong {
  color: var(--primary);
  font-size: 15px;
}

.vehicle-photo-copy .field-hint {
  display: block;
  font-weight: 500;
}

.vehicle-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.vehicle-photo-actions .button {
  white-space: nowrap;
}

.vehicle-photo-delete {
  justify-self: start;
}

.vehicle-gallery-editor {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.vehicle-gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vehicle-gallery-head h3 {
  margin: 0 0 4px;
}

.vehicle-gallery-count {
  display: inline-grid;
  min-width: 54px;
  min-height: 32px;
  place-items: center;
  border: 1px solid #d5e1f2;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.vehicle-gallery-sort-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: -4px 0 0;
  border: 1px solid #d5e1f2;
  border-radius: var(--radius);
  background: #f8fbff;
  color: #40516a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 12px;
}

.vehicle-gallery-sort-hint small {
  color: #607086;
  font-size: 12px;
  font-weight: 600;
}

.vehicle-gallery-sort-hint small[data-state="saved"] {
  color: #067647;
}

.vehicle-gallery-sort-hint small[data-state="error"] {
  color: var(--red);
}

.vehicle-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.vehicle-gallery-view .vehicle-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 220px));
  justify-content: start;
}

.vehicle-gallery-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d5e1f2;
  border-radius: var(--radius);
  background: #fff;
}

.vehicle-gallery-item > strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.vehicle-photo-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-photo-slot {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 8px;
  border: 1px solid #d5e1f2;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.vehicle-photo-title {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 400;
}

.vehicle-photo-slot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: rgba(7, 20, 38, .74);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 0 8px;
}

.vehicle-photo-drag-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(7, 20, 38, .72);
  color: #fff;
  cursor: grab;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.vehicle-photo-slot.is-dragging {
  opacity: .58;
}

.vehicle-photo-title-field {
  gap: 5px;
  font-size: 12px;
}

.vehicle-photo-title-field input {
  min-height: 38px;
  padding: 0 10px;
}

.vehicle-gallery-lightbox {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: #edf3fb;
  cursor: zoom-in;
  padding: 0;
}

.vehicle-gallery-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-gallery-upload {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.vehicle-gallery-upload-button {
  position: relative;
}

.vehicle-gallery-upload-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vehicle-gallery-new-titles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
  gap: 12px;
}

.vehicle-gallery-new-photo {
  gap: 8px;
}

.vehicle-gallery-new-preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d5e1f2;
  border-radius: calc(var(--radius) - 2px);
  background: #edf3fb;
}

.vehicle-gallery-new-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 20, 38, .34);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-ui) var(--motion-ease);
}

.upload-progress-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.upload-progress-dialog {
  display: grid;
  width: min(420px, 90vw);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  padding: 18px;
}

.upload-progress-dialog strong {
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.upload-progress-dialog span {
  color: var(--muted);
  font-size: 13px;
}

.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8f7;
}

.upload-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0566ff, #18a0ff);
  transition: width 180ms var(--motion-ease);
}

.field-title {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  position: relative;
}

.help-tooltip {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: help;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  outline: none;
}

.help-tooltip::after {
  content: attr(aria-label);
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 10;
  width: min(340px, calc(100vw - 64px));
  border: 1px solid rgba(7, 20, 38, .08);
  border-radius: var(--radius);
  background: #071426;
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.help-tooltip:hover::after,
.help-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.onboarding-note {
  margin-top: 2px;
}

.compact-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.auth-page {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(460px, 1.12fr) minmax(440px, .98fr);
  background:
    radial-gradient(circle at 72% 18%, rgba(230, 248, 242, .68), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5f3 100%);
}

.auth-visual {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  color: #fff;
  background: url("/assets/img/auth-bg.png") center/cover;
}

.auth-visual-inner {
  position: relative;
  width: min(650px, calc(100% - 132px));
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  padding: 84px 0 72px 92px;
}

.auth-message {
  position: absolute;
  top: 50%;
  left: 92px;
  width: min(560px, calc(100vw - 184px));
  transform: translateY(-50%);
}

.auth-kicker {
  margin: 0 0 18px;
  color: #baf3da;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-message .auth-kicker {
  margin-top: 18px;
}

.auth-title {
  max-width: 540px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 3.65vw, 56px);
  line-height: 1.12;
  font-weight: 700;
}

.auth-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 21px;
  line-height: 1.45;
}

.auth-panel {
  display: grid;
  min-height: calc(100vh - 56px);
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(496px, 100%);
  border: 1px solid rgba(221, 227, 238, .94);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 76px rgba(7, 20, 38, .12);
  padding: 30px 34px;
}

.auth-business-register-card {
  width: min(760px, 100%);
}

.auth-card h1 {
  font-size: 29px;
  margin-bottom: 8px;
}

.auth-card p {
  color: #34466b;
}

.auth-card > p:not(.auth-kicker) {
  margin-bottom: 18px;
}

.auth-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #24405f;
  font-size: 14px;
}

.auth-actions a,
.auth-actions a:visited,
.auth-actions a:hover,
.auth-actions a:active {
  color: var(--primary) !important;
  font-weight: 650;
}

.auth-business-link {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #6b7b94;
}

.auth-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-choice label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7deea;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 600;
}

.auth-choice input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.code-input {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: .34em;
  text-align: center;
}

.otp-code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.otp-code-boxes input {
  min-height: 54px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 750;
}

.otp-code-boxes input.is-filled {
  border-color: rgba(2, 99, 254, .42);
  background: #f4f8ff;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 170px;
  height: auto;
}

.auth-visual .brand img {
  width: 214px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  padding: 18px 0;
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
}

.public-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-topbar .brand img {
  width: 194px;
  height: auto;
}

.static-wrap {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-page {
  padding: 56px 0 72px;
}

.legal-page h1 {
  font-size: 38px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-lead {
  max-width: 680px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 18px;
}

.legal-section h2 {
  font-size: var(--font-size-section-title);
  line-height: var(--line-height-section-title);
  margin-bottom: 6px;
}

.legal-section p {
  color: #42526a;
  margin-bottom: 0;
}

.contact-form-card {
  margin-top: 18px;
}

.contact-form-card h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

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

.contact-form-grid .field {
  gap: 6px;
}

.contact-form-grid .field-title {
  color: #031126;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
}

.contact-form-grid input,
.contact-form-grid select {
  min-height: 52px;
  border-radius: var(--radius);
}

.contact-form-grid textarea {
  min-height: 140px;
  border-radius: var(--radius);
  padding: 12px;
}

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

.contact-form-submit {
  justify-self: start;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.legal-nav a {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #31415a;
  font-size: 13px;
  font-weight: var(--font-weight-button);
  line-height: 1.2;
  padding: 8px 12px;
  overflow-wrap: anywhere;
  text-align: center;
}

.legal-nav a:hover {
  border-color: rgba(2, 99, 254, .35);
  color: var(--primary);
}

.dark-header {
  background: var(--ink);
  color: #fff;
  padding: 20px;
}

.mobile-wrap {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer {
  background: #fff;
  color: #48617f;
  padding: 18px 0 22px;
}

.site-footer-inner {
  width: min(1980px, calc(100% - 176px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 400;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.footer-meta nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-footer a,
.site-footer span,
.site-footer p {
  color: #48617f;
  white-space: nowrap;
}

.site-footer span + span,
.footer-meta nav::before,
.footer-meta nav a {
  color: #9aa8bb;
}

.footer-meta nav::before {
  content: "·";
}

.site-footer a:hover {
  color: var(--primary);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.app-layout {
  min-height: 100vh;
}

.mobile-appbar,
.sidebar-mobile-head,
.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 272px;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  padding: 24px;
  overflow: hidden auto;
}

.sidebar-desktop-brand {
  display: block;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.sidebar-camper-select {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.sidebar-camper-select label {
  color: #6d7b91;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sidebar-camper-select select,
.product-assign-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  padding: 0 44px 0 14px;
}

.side-nav-link,
.side-nav-group-link,
.side-nav-group-trigger {
  min-height: 44px;
  width: 100%;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  color: #344054;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  line-height: 1.25;
  padding: 0 14px;
  text-align: left;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.side-nav-link:hover,
.side-nav-group-link:hover,
.side-nav-group-trigger:hover,
.side-nav-toggle:hover,
.side-nav-link.is-active,
.side-nav-group-link.is-active {
  color: var(--primary);
}

.side-nav-group {
  display: grid;
  gap: 4px;
}

.side-nav-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 4px;
}

.side-nav-group-trigger {
  grid-column: 1 / -1;
}

.side-nav-group-trigger .nav-chevron {
  margin-left: auto;
}

.side-nav-toggle {
  display: grid;
  width: 38px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #6d7b91;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}

.side-nav-submenu {
  display: grid;
  gap: 3px;
  overflow: hidden;
  padding-left: 33px;
  transition: height var(--motion-ui) var(--motion-ease-out), opacity var(--motion-ui) var(--motion-ease);
}

.side-nav-submenu[hidden] {
  display: none;
}

.side-nav-subitem {
  min-height: 38px;
  padding-left: 12px;
  font-size: var(--font-size-body);
  font-weight: 500;
}

.side-nav-subitem .nav-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.side-nav-subitem .nav-icon svg {
  width: 17px;
  height: 17px;
}

.nav-chevron {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: currentColor;
  transition: transform var(--motion-ui) var(--motion-ease);
}

.nav-chevron svg {
  width: 18px;
  height: 18px;
}

.side-nav-group.is-open .nav-chevron {
  transform: rotate(90deg);
}

.side-nav-utility {
  border-top: 1px solid var(--line-soft);
  margin-top: 0;
  padding-top: 12px;
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--primary);
}

.nav-icon svg {
  width: 21px;
  height: 21px;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
}

.sidebar-logout {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  border-radius: var(--radius);
  color: var(--primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  padding: 0 10px;
}

.sidebar-logout:hover {
  background: #edf4ff;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  color: var(--muted);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  line-height: var(--line-height-label);
}

.user-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  margin-left: 272px;
  padding-bottom: 0;
}

.app-content {
  width: min(1160px, calc(100% - 44px));
  flex: 1;
  margin: 0 auto;
  padding: 42px 0 64px;
}

.page-head,
.intro-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.intro-panel {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.intro-panel h1 {
  max-width: 680px;
  font-size: 34px;
  margin-bottom: 10px;
}

.intro-panel p {
  max-width: 720px;
  margin-bottom: 0;
}

.camper-hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 24px;
  align-items: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(7, 20, 38, .96), rgba(16, 42, 72, .92)),
    var(--camper-hero-image, url("/assets/img/auth-bg.png")) center/cover;
  color: #fff;
  padding: 30px;
}

.camper-hero.has-photo {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 340px) minmax(260px, 360px);
  background:
    linear-gradient(135deg, rgba(7, 20, 38, .94), rgba(16, 42, 72, .88)),
    var(--camper-hero-image, url("/assets/img/auth-bg.png")) center/cover;
}

.camper-hero-photo {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.camper-hero-photo img {
  width: 100%;
  height: 230px;
  object-fit: contain;
}

.camper-hero h2 {
  color: #fff;
  margin: 18px 0 8px;
  font-size: 30px;
}

.camper-hero p {
  color: rgba(255, 255, 255, .78);
}

.vehicle-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  margin: 4px 0 14px;
  padding: 10px 14px;
}

.vehicle-id-pill span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.vehicle-id-pill strong {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  padding: 18px;
}

.hero-panel span,
.hero-panel p {
  color: rgba(255, 255, 255, .72);
}

.hero-panel strong {
  display: block;
  margin: 8px 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.button-light {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(2, 6, 23, .16);
}

.button-light:hover {
  background: #fff;
}

.dashboard-page-head {
  margin-bottom: 18px;
}

.dashboard-public-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-hero {
  position: relative;
  display: block;
  min-height: 232px;
  height: clamp(220px, 22vw, 250px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 0;
  background: #081426;
  color: #fff;
  box-shadow: none;
}

.dashboard-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, .58) 0%, rgba(7, 20, 38, .34) 30%, rgba(7, 20, 38, .10) 56%, rgba(7, 20, 38, 0) 78%),
    linear-gradient(0deg, rgba(2, 6, 23, .02), rgba(2, 6, 23, .02));
  pointer-events: none;
}

.dashboard-hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}

.dashboard-hero:not(.has-photo)::after {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, .42) 0%, rgba(7, 20, 38, .30) 46%, rgba(7, 20, 38, .12) 74%, rgba(7, 20, 38, .04) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
}

.dashboard-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 28px 30px;
  pointer-events: none;
}

.dashboard-hero:not(.has-license-plate) .dashboard-hero-content {
  justify-content: flex-end;
}

.dashboard-hero-content a,
.dashboard-hero-content button,
.dashboard-hero-content form {
  pointer-events: auto;
}

.dashboard-hero-content .status {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .90);
  font-size: 12px;
  padding: 6px 10px;
}

.dashboard-hero-content .status::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.dashboard-hero-content h2 {
  max-width: min(46%, 430px);
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
  margin-bottom: 0;
}

.dashboard-license-plate {
  display: inline-flex;
  width: 174px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin: -2px 0 0;
  padding: 3px 10px 3px 46px;
  background: url("/assets/img/kennzeichen.png") center / 100% 100% no-repeat;
  color: #071426;
  font-family: "DIN 1451 Mittelschrift", "Bahnschrift Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 6px 14px rgba(2, 6, 23, .32));
}

.dashboard-hero-content p {
  max-width: min(46%, 430px);
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  margin-bottom: 4px;
}

.dashboard-primary-vehicle-label,
.dashboard-primary-vehicle-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.dashboard-primary-vehicle-label {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  padding: 7px 11px;
}

.dashboard-primary-vehicle-form {
  margin: -2px 0 0;
}

.dashboard-primary-vehicle-action {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .88);
  padding: 7px 11px;
  transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.dashboard-primary-vehicle-action:hover {
  border-color: rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-hero-photo-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  background: rgba(255, 255, 255, .90);
  color: #071426;
  box-shadow: 0 10px 22px rgba(7, 20, 38, .16);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.dashboard-hero-photo-edit:hover {
  background: #fff;
}

.dashboard-hero-photo-edit.is-mobile-only {
  display: none;
}

.dashboard-hero-photo-action {
  margin-left: auto;
  min-height: 44px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}

.dashboard-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #111827;
  isolation: isolate;
}

.dashboard-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 54%;
  filter: saturate(1.02) contrast(1.02);
}

.dashboard-hero.has-portrait-photo .dashboard-hero-photo img {
  object-position: 58% 36%;
}

.dashboard-hero-photo.is-empty {
  background: #081426;
}

.dashboard-hero-photo.is-empty img {
  filter: brightness(.68) saturate(.96) contrast(1.02);
}

@media (min-width: 861px) {
  .dashboard-hero {
    min-height: 310px;
    height: clamp(310px, 30vw, 340px);
  }

  .dashboard-hero::after {
    background:
      linear-gradient(90deg, rgba(2, 6, 23, .60) 0%, rgba(7, 20, 38, .38) 32%, rgba(7, 20, 38, .14) 58%, rgba(7, 20, 38, 0) 82%);
  }

  .dashboard-hero:not(.has-photo)::after {
    background:
      linear-gradient(23deg, rgba(2, 6, 23, .42) 0%, rgba(7, 20, 38, .28) 32%, rgba(7, 20, 38, .10) 62%, rgba(7, 20, 38, .03) 100%),
      linear-gradient(180deg, rgba(2, 6, 23, .02) 0%, rgba(2, 6, 23, .26) 100%);
  }

  .dashboard-hero-content {
    justify-content: flex-end;
    gap: 10px;
    padding: 34px 32px 30px;
  }

  .dashboard-hero-content h2,
  .dashboard-hero-content p {
    max-width: min(58%, 560px);
  }

  .dashboard-hero-actions {
    align-items: flex-end;
  }

  .dashboard-hero-photo-action {
    align-self: flex-end;
  }

  .dashboard-hero-photo img {
    object-position: center 52%;
  }

  .dashboard-hero.has-portrait-photo .dashboard-hero-photo img {
    object-position: center 42%;
  }

}

.dashboard-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.key-find-service-card .split-head {
  align-items: flex-start;
}

.key-find-service-card form {
  flex: 0 0 auto;
}

.key-find-service-card .button {
  max-width: 100%;
  white-space: normal;
}

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

.dashboard-mode-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 16px;
  text-align: left;
  text-decoration: none;
  transition: transform var(--motion-ui) var(--motion-ease), border-color var(--motion-ui) var(--motion-ease), box-shadow var(--motion-ui) var(--motion-ease), background var(--motion-ui) var(--motion-ease);
}

.dashboard-mode-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dashboard-mode-card.is-disabled,
.dashboard-mode-card:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}

.dashboard-mode-card.is-entitlement-locked,
.entitlement-locked {
  position: relative;
  cursor: pointer;
  opacity: .62;
}

.dashboard-mode-card.is-entitlement-locked:hover,
.entitlement-locked:hover {
  opacity: .78;
}

.dashboard-mode-grid.is-locked .dashboard-mode-card {
  filter: saturate(.45);
  opacity: .46;
}

.dashboard-mode-grid.is-locked .dashboard-mode-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dashboard-mode-card.active {
  border-color: var(--mode-color, var(--primary));
  background: var(--mode-bg, #edf4ff);
  box-shadow: inset 0 0 0 1px var(--mode-color, var(--primary));
}

.dashboard-mode-card.is-standard {
  --mode-color: #1166f1;
  --mode-bg: #edf4ff;
}

.dashboard-mode-card.is-pet {
  --mode-color: #e08918;
  --mode-bg: #fff7e8;
}

.dashboard-mode-card.is-workshop {
  --mode-color: #28a764;
  --mode-bg: #ecfdf3;
}

.dashboard-mode-card.is-rental {
  --mode-color: #0f8ac7;
  --mode-bg: #ecf8ff;
}

.dashboard-mode-card.is-lost {
  --mode-color: #7b4de8;
  --mode-bg: #f4f0ff;
}

.dashboard-mode-card.is-stolen {
  --mode-color: #d92d20;
  --mode-bg: #fff1f0;
}

.mode-emoji {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mode-color, var(--primary));
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.dashboard-mode-card strong {
  font-size: 15px;
}

.mode-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(13, 31, 61, .12);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(7, 20, 38, .12);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.mode-lock svg {
  width: 17px;
  height: 17px;
}

.dashboard-mode-card span:not(.mode-emoji) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.dashboard-mode-card .mode-lock {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.mode-license-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe5f4;
  border-radius: var(--radius);
  background: #f7faff;
}

.mode-license-lock .mode-lock {
  position: static;
  width: 38px;
  height: 38px;
  box-shadow: none;
}

.mode-license-lock strong {
  display: block;
  margin-bottom: 2px;
}

.mode-license-lock p {
  margin: 0;
}

.license-lock-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #dbe5f4;
  border-radius: var(--radius);
  background: #f7faff;
}

.license-lock-banner.is-danger {
  border-color: #f5b5ad;
  background: #fff1f0;
  color: #7a271a;
}

.license-lock-banner.is-warning {
  border-color: #f6d58b;
  background: #fff8e7;
  color: #713f12;
}

.license-lock-banner.is-danger .license-lock-icon {
  border-color: #f3a29a;
  background: #fff7f6;
  color: #b42318;
  box-shadow: 0 8px 18px rgba(180, 35, 24, .12);
}

.license-lock-banner.is-warning .license-lock-icon {
  border-color: #f6d58b;
  background: #fffaf0;
  color: #b54708;
  box-shadow: 0 8px 18px rgba(181, 71, 8, .12);
}

.license-lock-banner.is-danger p {
  color: #912018;
}

.license-lock-banner.is-warning p {
  color: #854d0e;
}

.trial-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.license-lock-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(13, 31, 61, .12);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(7, 20, 38, .08);
}

.license-lock-banner strong {
  display: block;
  margin-bottom: 2px;
}

.license-lock-banner p {
  margin: 0;
  color: var(--muted);
}

.is-vehicle-locked .is-license-locked-action {
  opacity: .68;
  filter: saturate(.65);
  cursor: not-allowed;
  box-shadow: none;
}

.is-vehicle-locked .is-license-locked-action:hover {
  transform: none;
  box-shadow: none;
}

.mode-switch {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e8edf5;
  box-shadow: inset 0 1px 2px rgba(7, 20, 38, .08);
  transition: background var(--motion-ui) var(--motion-ease), border-color var(--motion-ui) var(--motion-ease);
}

.mode-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(7, 20, 38, .22);
  transition: transform var(--motion-ui) var(--motion-ease);
}

.dashboard-mode-card.active .mode-switch,
.mode-switch.is-on {
  border-color: var(--mode-color, var(--primary));
  background: var(--mode-color, var(--primary));
}

.dashboard-mode-card.active .mode-switch i,
.mode-switch.is-on i {
  transform: translateX(22px);
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-secondary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-secondary-grid > .section-card {
  margin-top: 0;
}

.dashboard-overdue-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: var(--radius);
  background: #fff1f2;
  color: #7f1d1d;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.dashboard-overdue-banner h2 {
  margin: 6px 0 10px;
  color: #7f1d1d;
  font-size: 22px;
}

.dashboard-service-approval-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(245, 159, 0, .32);
  border-radius: var(--radius);
  background: #fff8e8;
  color: #7a4a00;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}

.dashboard-service-approval-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #f59f00;
  color: #fff;
  font-weight: 900;
}

.dashboard-service-approval-banner strong {
  display: block;
  color: #5f3900;
  font-size: 16px;
  line-height: 1.3;
}

.dashboard-service-approval-banner p {
  margin: 3px 0 0;
  color: #7a4a00;
}

.dashboard-service-approval-banner .button-secondary {
  border-color: #d88700;
  color: #8a5400;
}

.dashboard-overdue-list {
  display: grid;
  gap: 8px;
}

.dashboard-overdue-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-overdue-list span {
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-deadline-list,
.dashboard-shortcut-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-deadline-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto 18px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
}

.dashboard-deadline-row:hover,
.dashboard-shortcut:hover {
  border-color: rgba(17, 102, 241, .30);
  background: #f8fbff;
}

.deadline-emoji,
.dashboard-shortcut span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef4ff;
  font-size: 21px;
}

.deadline-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.deadline-copy strong,
.dashboard-shortcut strong {
  color: var(--ink);
}

.deadline-copy small {
  color: var(--muted);
  font-size: 12px;
}

.deadline-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.deadline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  white-space: nowrap;
}

.deadline-badge.is-warning {
  background: #fff7e8;
  color: #b45309;
}

.deadline-badge.is-danger {
  background: #fff1f0;
  color: #b42318;
}

.deadline-badge.is-soft {
  background: #f3f6fb;
  color: var(--muted);
}

.deadline-badge.is-neutral {
  background: #f3f6fb;
  color: var(--muted);
}

.deadline-arrow,
.dashboard-shortcut em {
  color: var(--muted);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.dashboard-shortcut {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.dashboard-reports-card {
  display: grid;
  min-height: 100%;
  align-content: start;
  padding: 18px;
}

.dashboard-reports-card h2 {
  color: var(--ink);
  font-size: var(--font-size-section-title);
  line-height: var(--line-height-section-title);
  margin: 0 0 10px;
}

.dashboard-reports-card .list {
  display: grid;
  gap: 10px;
}

.dashboard-reports-card .list-row {
  gap: 12px;
  padding: 12px 14px;
}

.dashboard-reports-card .list-row strong,
.dashboard-reports-card .list-row span {
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-reports-card .list-row strong {
  color: var(--ink);
  font-weight: 650;
}

.dashboard-reports-card .list-row span {
  color: var(--ink);
  text-align: right;
}

.dashboard-products-card {
  margin-top: 18px;
}

.dashboard-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-product-chip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px;
}

.dashboard-product-chip > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 600;
}

.dashboard-product-chip em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #eef8f2;
  color: #157347;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  padding: 7px 9px;
}

.dashboard-product-chip em::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.dashboard-product-chip em.is-paused {
  background: #f3f6fb;
  color: var(--muted);
}

.mobile-user-link {
  display: none;
}

.upload-choice-group {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.upload-choice-group > .field-label {
  grid-column: 1 / -1;
}

.inventory-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  padding-top: 18px;
}

.inventory-upload-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.upload-choice {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  align-content: center;
  align-items: center;
  min-height: 64px;
  border: 1px dashed #b9cae5;
  border-radius: var(--radius);
  background: #f8fbff;
  cursor: pointer;
  padding: 12px;
}

.upload-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-choice > span:not(.upload-choice-preview) {
  display: grid;
  grid-row: span 2;
  align-self: center;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
}

.upload-choice:not(:has(small)) > span:not(.upload-choice-preview) {
  grid-row: auto;
}

.upload-choice strong,
.upload-choice small {
  min-width: 0;
}

.upload-choice small {
  color: var(--muted);
}

.upload-choice small + small {
  grid-column: 2;
  white-space: nowrap;
}

.upload-choice:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.upload-choice.has-file-preview {
  grid-template-columns: 38px minmax(0, 1fr);
  padding-bottom: 10px;
}

.upload-choice-preview {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.upload-choice-thumb {
  position: relative;
  display: block;
  width: 70px;
  height: 54px;
  overflow: visible;
}

.upload-choice-thumb img {
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 7px;
  background: #eef4ff;
  object-fit: cover;
  box-shadow: 0 7px 16px rgba(7, 20, 38, .12);
}

.upload-choice-file {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  width: min(100%, 260px);
  min-height: 46px;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 6px 32px 6px 7px;
  box-shadow: 0 7px 16px rgba(7, 20, 38, .08);
}

.upload-choice-file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.upload-choice-file-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-choice-file-image {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef4ff;
}

.upload-choice-file-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-choice-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-choice-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(217, 45, 32, .28);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
  padding: 0 0 2px;
  box-shadow: var(--shadow-sm);
}

.upload-choice-remove:hover {
  background: #fff1f0;
}

.business-proof-field {
  min-width: 0;
}

.business-register-grid {
  gap: 14px 16px;
}

.business-verification-section {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 16px;
}

.business-pending-card .status {
  margin-bottom: 8px;
}

.business-code-card h2 {
  margin-bottom: 8px;
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px;
  letter-spacing: .08em;
}

.business-relationship-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid #f6c344;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 20, 38, .05);
  padding: 14px;
}

.business-relationship-card.is-accepted {
  border-left-color: var(--green);
}

.business-relationship-card.is-rejected {
  border-left-color: var(--red);
}

.business-relationship-logo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.business-relationship-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.business-relationship-logo-placeholder {
  background: #eef4ff;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.business-relationship-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-relationship-main > span,
.business-relationship-main > small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.business-relationship-main > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-relationship-main .verified-inline-badge {
  margin-top: 3px;
}

.business-relationship-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.business-traffic-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid #efdca0;
  border-radius: 999px;
  background: #fff8e6;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 11px;
  white-space: nowrap;
}

.business-traffic-light i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f6c344;
  box-shadow: 0 0 0 4px rgba(246, 195, 68, .18);
}

.business-traffic-light.is-accepted {
  border-color: #bdebd1;
  background: #effaf4;
  color: #14643b;
}

.business-traffic-light.is-accepted i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 157, 90, .16);
}

.business-traffic-light.is-rejected {
  border-color: #ffd0ca;
  background: #fff3f1;
  color: #9f2418;
}

.business-traffic-light.is-rejected i {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, .14);
}

.business-relationship-action {
  justify-self: end;
  min-width: 132px;
  white-space: nowrap;
}

.business-code-lookup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .95fr);
  gap: 16px;
  align-items: end;
}

.business-code-field {
  min-width: 0;
}

.business-code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.business-code-boxes input {
  min-height: 50px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 750;
}

.business-code-boxes input.is-filled {
  border-color: rgba(2, 99, 254, .42);
  background: #f4f8ff;
}

.business-code-result {
  display: flex;
  min-height: 50px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  padding: 11px 14px;
}

.business-code-result.is-muted {
  color: var(--muted);
  font-weight: 650;
}

.business-code-result.is-success {
  border-color: rgba(23, 178, 106, .34);
  background: #f2fbf6;
  color: #067647;
}

.business-code-result.is-error {
  border-color: rgba(217, 45, 32, .32);
  background: #fff4f2;
  color: #b42318;
}

.business-proof-upload {
  grid-template-columns: 1fr;
}

.business-proof-upload .upload-choice {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 92px;
  border-style: solid;
  border-color: #c7d7ee;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  box-shadow: 0 10px 24px rgba(23, 43, 77, .06);
}

.business-proof-upload .upload-choice > span:not(.upload-choice-preview) {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--primary);
  font-size: 20px;
}

.business-proof-upload .upload-choice small {
  line-height: 1.35;
}

.business-proof-upload .upload-choice-preview {
  padding-top: 2px;
}

.business-proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.business-customer-view-button {
  margin-top: 14px;
}

.business-request-actions {
  margin-top: 16px;
}

.vehicle-edit-form .readonly-field-list.business-service-confirmation-card,
.business-service-confirmation-card {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-service-confirmation-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.business-service-confirmation-actions .button {
  width: 100%;
}

.servicebook-business-note {
  margin-top: 14px;
}

.file-download-link-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow: visible;
  white-space: normal;
}

.file-download-link-copy span {
  display: block;
}

.vehicle-camera-button {
  position: relative;
  justify-self: start;
  overflow: hidden;
}

.vehicle-camera-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .dashboard-mode-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

}

@media (max-width: 980px) {
  .dashboard-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .key-find-service-card .split-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .key-find-service-card form,
  .key-find-service-card .button {
    width: 100%;
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-service-approval-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-service-approval-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-hero {
    display: flex;
    min-height: 430px;
    height: auto;
    align-items: flex-end;
  }

  .dashboard-hero::after {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, .06) 38%, rgba(7, 20, 38, .42) 72%, rgba(2, 6, 23, .76) 100%);
  }

  .dashboard-hero-content {
    width: 100%;
    height: auto;
    justify-content: flex-end;
    padding: 188px 22px 22px;
  }

  .dashboard-hero-content h2,
  .dashboard-hero-content p {
    max-width: 100%;
  }

  .dashboard-primary-vehicle-label,
  .dashboard-primary-vehicle-action {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .dashboard-hero-photo {
    position: absolute;
    inset: 0;
  }

  .dashboard-hero-photo img {
    width: 100%;
    height: 100%;
    object-position: center 40%;
  }

  .dashboard-hero-photo-action {
    position: static;
    width: auto;
    margin-left: 0;
    backdrop-filter: none;
  }

  .dashboard-hero-photo-edit.is-mobile-only {
    display: grid;
  }

  .dashboard-hero-actions {
    display: none;
  }

  .vehicle-photo-copy {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .vehicle-photo-copy .button,
  .vehicle-photo-delete {
    justify-self: stretch;
    max-width: none;
  }

  .vehicle-photo-actions {
    justify-content: stretch;
  }

  .vehicle-photo-actions .button {
    flex: 1 1 180px;
  }

  .vehicle-photo-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .upload-choice-group {
    grid-template-columns: 1fr;
  }

  .upload-choice-group-2,
  .inventory-upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-choice small + small {
    white-space: normal;
  }

  .equipment-item {
    grid-template-columns: 1fr;
  }

  .equipment-media {
    width: 72px;
    height: 62px;
  }

  .equipment-attachments {
    justify-content: flex-start;
  }

  .equipment-delete {
    grid-column: 1 / -1;
  }

  .equipment-item-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .places-page {
    gap: 14px;
  }

  .places-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .places-head .button {
    width: 100%;
  }

  .places-filter-toggle {
    display: inline-flex;
    width: 100%;
  }

  .places-filter-shell .places-filter {
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .places-filter-shell.is-open .places-filter {
    display: grid;
  }

  .places-filter .field,
  .places-filter .button {
    width: 100%;
  }

  .places-map-shell,
  .places-empty-map {
    min-height: calc(100svh - 210px);
    margin-right: calc((100vw - 100%) / -2);
    margin-left: calc((100vw - 100%) / -2);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .places-empty-copy {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    left: max(14px, env(safe-area-inset-left, 0px));
    width: auto;
    padding: 16px;
  }

  .places-location-button {
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: auto;
  }

  .places-search-row {
    grid-template-columns: 1fr;
  }

  .places-search-row .button {
    width: 100%;
  }

  .places-picker {
    min-height: 300px;
  }

  .mobile-map-managed {
    touch-action: pan-y;
  }

  .mobile-map-managed.leaflet-container {
    touch-action: pan-y;
  }

  .mobile-map-managed .leaflet-control-zoom {
    display: none;
  }

  .place-memory {
    grid-template-columns: 1fr;
  }

  .trip-overview-card summary {
    min-height: 0;
  }

  .trip-cover-preview {
    height: 178px;
  }

  .trip-cover-overlay {
    gap: 12px;
    padding: 28px 16px 16px;
    background: linear-gradient(180deg, rgba(6, 16, 34, .12) 8%, rgba(6, 16, 34, .5) 52%, rgba(6, 16, 34, .9) 100%);
  }

  .trip-cover-copy {
    gap: 6px;
  }

  .trip-cover-copy strong {
    font-size: 25px;
  }

  .trip-cover-meta {
    font-size: 12px;
    gap: 4px 7px;
  }

  .trip-cover-chevron {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .trip-step-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .trip-step-content > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .trip-step-main {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .trip-step-media {
    width: 96px;
  }

  .trip-step-media .trip-gallery {
    min-height: 72px;
  }

  .trip-step-media .trip-gallery-prev,
  .trip-step-media .trip-gallery-next {
    display: none;
  }

  .trip-step-dot {
    margin-top: 31px;
  }

  .trip-step-timeline::before {
    top: 37px;
    bottom: 37px;
  }

  .place-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "photo copy"
      "photo actions";
    gap: 8px 16px;
    align-items: start;
    padding: 12px;
  }

  .place-row-photo {
    grid-area: photo;
    width: 72px;
  }

  .place-row-copy {
    grid-area: copy;
    min-width: 0;
  }

  .place-row-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .place-row-actions .button {
    min-height: 38px;
    width: auto;
  }

  .place-row-actions .place-trip-badge {
    justify-self: start;
  }

  .places-edit-head,
  .places-edit-actions,
  .trip-overview-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .places-edit-actions .button,
  .trip-overview-actions .button {
    width: 100%;
  }

  .place-share-link-card {
    grid-template-columns: 1fr;
  }

  .place-share-actions,
  .place-share-actions .button {
    width: 100%;
  }

  .place-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-share-actions {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  }

  .public-place-page {
    padding-block: 18px 30px;
  }

  .public-place-card {
    padding: 18px;
  }

  .public-place-map-shell {
    min-height: calc(100svh - 260px);
    margin-right: calc((100vw - 100%) / -2);
    margin-left: calc((100vw - 100%) / -2);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .places-location-button {
    right: max(12px, env(safe-area-inset-right, 0px));
    top: max(12px, env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  .app-toast-stack {
    top: var(--toast-mobile-top);
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: max(16px, env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    align-items: stretch;
  }

  body.has-active-toast::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 79;
    background: rgba(7, 20, 38, .32);
    pointer-events: none;
  }

  .app-toast {
    width: 100%;
    max-width: none;
    min-height: 84px;
  }

  .app-toast.is-hiding {
    transform: translateY(-8px);
  }

  .dashboard-products-card .split-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-products-card .split-head .button {
    width: 100%;
  }

  .dashboard-secondary-grid,
  .dashboard-product-list {
    grid-template-columns: 1fr;
  }

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

  .dashboard-mode-card {
    min-height: 174px;
    padding: 12px;
  }

  .mode-emoji {
    width: 42px;
    height: 42px;
  }

  .dashboard-hero-actions {
    width: 100%;
  }

  .dashboard-hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
  }

  .dashboard-hero {
    min-height: 408px;
  }

  .dashboard-hero-content {
    padding-top: 170px;
  }

  .dashboard-deadline-row {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
  }

  .deadline-date,
  .deadline-badge {
    grid-column: 2 / 3;
    justify-self: start;
  }

  .deadline-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / span 3;
  }
}

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 12px;
}

.status-danger {
  background: var(--red);
}

.status-success {
  background: var(--green);
}

.status-soft {
  background: #eef4ff;
  color: var(--primary);
}

.verified-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
}

.verified-icon.is-primary {
  color: var(--primary);
}

.verified-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
}

.workshop-verified-badge {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  line-height: 1;
}

.workshop-verified-badge .verified-icon {
  width: 21px;
  height: 21px;
}

.service-accordion > summary .workshop-verified-badge {
  margin-left: auto;
  color: var(--primary);
}

.service-accordion > summary .workshop-verified-badge .verified-icon {
  color: var(--primary);
}

.service-accordion[open] > summary .workshop-verified-badge {
  color: #fff;
}

.service-accordion[open] > summary .workshop-verified-badge .verified-icon {
  color: #fff;
}

.damage-accordion[open] > summary .workshop-verified-badge,
.damage-accordion[open] > summary .workshop-verified-badge .verified-icon {
  color: #fff;
}

.workshop-verified-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  color: #18345f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.workshop-verified-note .verified-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.vehicle-identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  padding: 24px;
}

.vehicle-identity-card h2 {
  margin: 4px 0 6px;
}

.vehicle-identity-card p {
  margin-bottom: 0;
}

.vehicle-identity-status {
  display: grid;
  min-width: min(100%, 320px);
  gap: 12px;
}

.vehicle-completeness {
  display: grid;
  gap: 8px;
}

.vehicle-completeness span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-completeness span strong {
  color: var(--ink);
  font-size: 13px;
}

.vehicle-completeness em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.vehicle-completeness-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.vehicle-completeness-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d92d20;
}

.vehicle-completeness-track i.is-low {
  background: linear-gradient(90deg, #d92d20 0%, #ef6c00 100%);
}

.vehicle-completeness-track i.is-medium {
  background: linear-gradient(90deg, #e34a22 0%, #f59f00 100%);
}

.vehicle-completeness-track i.is-almost {
  background: linear-gradient(90deg, #f59f00 0%, #f3c11a 100%);
}

.vehicle-completeness-track i.is-good {
  background: linear-gradient(90deg, #87b52f 0%, #1f9d5a 100%);
}

.vehicle-sale-panel {
  display: grid;
  gap: 18px;
}

.vehicle-standalone-accordion {
  margin-top: 18px;
}

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

.vehicle-sale-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 14px;
}

.vehicle-sale-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.vehicle-sale-option span {
  display: grid;
  gap: 4px;
}

.vehicle-sale-option strong {
  color: var(--ink);
}

.vehicle-sale-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.vehicle-sale-summary {
  border: 1px solid #dbe8ff;
  border-radius: var(--radius);
  background: #f3f8ff;
  color: #12396c;
  padding: 16px;
}

.vehicle-sale-summary strong {
  display: block;
  color: #0b2a4d;
  margin-bottom: 6px;
}

.vehicle-sale-summary p {
  margin: 0;
  line-height: 1.5;
}

.inventory-stats,
.inventory-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.inventory-breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.inventory-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.inventory-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.inventory-stat strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
  margin-top: 8px;
}

.inventory-stat strong.is-positive {
  color: #168a4a;
}

.inventory-stat strong.is-negative {
  color: var(--red);
}

.inventory-notice {
  margin-top: 18px;
}

.inventory-weight-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.inventory-weight-settings form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, auto);
  gap: 12px;
  align-items: end;
}

.inventory-weight-settings form .button {
  grid-column: auto;
  min-height: 50px;
}

.inventory-weight-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.inventory-weight-summary span,
.technical-payload {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
}

.inventory-weight-summary strong,
.technical-payload strong {
  color: var(--muted);
  font-size: 12px;
}

.inventory-weight-summary span span,
.technical-payload span {
  color: var(--ink);
  font-weight: 700;
}

.technical-payload small {
  color: var(--muted);
}

.inventory-weighing-link {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.inventory-weighing-link span {
  color: var(--muted);
}

.inventory-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, .55fr)) auto;
  gap: 10px;
  align-items: end;
}

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.inventory-create-section[hidden] {
  display: none;
}

.inventory-list-head {
  margin-bottom: 14px;
}

.inventory-list-head h2 {
  margin: 0;
}

.inventory-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inventory-summary-actions form {
  display: contents;
}

.inventory-summary-actions .inventory-status-button {
  min-height: 38px;
  padding: 0 10px;
}

.inventory-view-summary {
  display: grid;
  gap: 12px;
}

.inventory-photo-lightbox {
  width: min(100%, 420px);
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.inventory-view-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
}

.inventory-file-field {
  grid-column: 1 / -1;
}

.inventory-file-field .button {
  justify-self: start;
  width: fit-content;
}

.inventory-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.inventory-card > img,
.inventory-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.inventory-photo-placeholder {
  display: grid;
  place-items: center;
  background: #f3f8ff;
  color: var(--primary);
}

.inventory-photo-placeholder .inventory-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.inventory-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.inventory-card-body h2 {
  margin: 10px 0 4px;
}

.inventory-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: var(--radius);
  background: #edf4ff;
  color: var(--primary);
  font-size: 20px;
}

.inventory-status-off {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  background: #f2f4f7;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 12px;
}

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

.inventory-meta span {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--ink);
  font-weight: 650;
  padding: 10px;
}

.inventory-meta strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.inventory-details {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line-soft);
  color: #34466b;
  font-size: 14px;
  padding-top: 12px;
}

.inventory-details p {
  margin-bottom: 0;
}

.inventory-details a {
  color: var(--primary);
  font-weight: 650;
}

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

.inventory-edit {
  min-width: 0;
}

.inventory-edit[open] {
  grid-column: 1 / -1;
}

.inventory-actions > form {
  min-width: 0;
}

.inventory-actions .button {
  width: 100%;
}

.inventory-accordion {
  scroll-margin-top: 28px;
}

.inventory-accordion-title {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.inventory-accordion-title .inventory-icon {
  align-self: center;
}

.inventory-accordion-title .inventory-title-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.inventory-accordion-title .inventory-summary-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.inventory-accordion-title .inventory-summary-actions form {
  min-width: 0;
}

.inventory-edit summary,
.inventory-create-disclosure summary,
.inventory-transfer-settings summary {
  list-style: none;
  cursor: pointer;
}

.inventory-edit summary::-webkit-details-marker,
.inventory-create-disclosure summary::-webkit-details-marker,
.inventory-transfer-settings summary::-webkit-details-marker {
  display: none;
}

.inventory-edit-form,
.inventory-create-form {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.inventory-status-button {
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  box-shadow: none;
  padding: 0 10px;
}

.inventory-status-button.button-secondary,
.inventory-status-button:hover,
.inventory-status-button.button-secondary:hover {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.form-accordion[open] summary .inventory-status-button.button-secondary {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
}

.inventory-status-button .mode-switch {
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
}

.inventory-status-button .mode-switch i {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

.inventory-status-button .mode-switch.is-on i {
  transform: translateX(18px);
}

.inventory-create-disclosure {
  margin-top: 18px;
}

.inventory-create-disclosure > summary {
  width: fit-content;
}

.inventory-transfer-settings {
  margin-top: 18px;
}

.inventory-transfer-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-top: 3px;
}

.inventory-transfer-head small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 5px;
}

.inventory-transfer-settings form {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

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

.inventory-transfer-settings .switch-line,
.inventory-transfer-list .switch-line {
  width: 100%;
  min-height: 86px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  background: #fff;
  font-weight: 500;
  padding: 14px;
}

.inventory-transfer-settings .switch-line i,
.inventory-transfer-list .switch-line i {
  grid-column: 1;
}

.inventory-transfer-settings .switch-line span,
.inventory-transfer-list .switch-line span {
  display: block;
  grid-column: 2;
}

.inventory-transfer-settings .switch-line strong,
.inventory-transfer-list .switch-line strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
}

.inventory-transfer-settings .switch-line small,
.inventory-transfer-list .switch-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 4px;
}

.inventory-transfer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.inventory-transfer-list label {
  padding: 14px;
}

.danger-text {
  color: var(--red);
}

.button-danger {
  background: var(--red);
}

.button-danger:disabled,
.button-danger.is-waiting,
.button-danger.is-loading {
  background: #fff1f0;
  color: rgba(180, 35, 24, .58);
}

.vehicle-delete-zone {
  border-color: rgba(217, 45, 32, .34);
  background: #fffafa;
}

.vehicle-delete-zone summary,
.vehicle-delete-zone summary:hover,
.vehicle-delete-zone[open] summary,
.vehicle-delete-zone[open] summary:hover {
  background: #fff1f0;
  color: var(--red);
}

.vehicle-delete-zone .accordion-chevron,
.vehicle-delete-zone[open] .accordion-chevron {
  border-color: var(--red);
}

.vehicle-delete-zone h2,
.vehicle-delete-zone summary span:first-child {
  color: var(--red);
}

.vehicle-delete-zone form {
  max-width: 520px;
}

.vehicle-delete-page {
  display: grid;
  gap: 18px;
}

.vehicle-delete-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  align-items: stretch;
}

.vehicle-delete-summary {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(217, 45, 32, .22);
  border-radius: var(--radius);
  background: #fff1f0;
  color: #842018;
  padding: 18px;
}

.vehicle-delete-summary h2 {
  color: var(--red);
  margin: 0;
}

.vehicle-delete-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.vehicle-delete-summary p {
  margin: 0;
  color: #6f2a24;
}

.vehicle-delete-confirm {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.vehicle-delete-confirm h2 {
  margin-bottom: 4px;
}

.notice-danger {
  border: 1px solid rgba(217, 45, 32, .20);
  background: #fff1f0;
  color: #842018;
}

.stolen-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid rgba(217, 45, 32, .22);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.stolen-status h2 {
  margin: 12px 0 4px;
}

.stolen-status p {
  color: var(--muted);
  margin: 0;
}

.stolen-mode-lock {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(217, 45, 32, .22);
  border-radius: var(--radius);
  background: #fffafa;
  padding: 16px;
}

.stolen-mode-lock strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 4px;
}

.stolen-mode-lock p {
  margin: 0;
}

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

.notice + .stolen-actions {
  margin-top: 18px;
}

.stolen-report-form .upload-choice-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .stolen-report-form .upload-choice-group {
    grid-template-columns: 1fr;
  }
}

.stolen-public-card {
  margin-bottom: 16px;
  padding: 16px;
}

.stolen-public-card > .status-danger {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.stolen-public-card .readonly-grid {
  margin-top: 14px;
}

.stolen-public-card > .button {
  margin-top: 16px;
}

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

.readonly-grid span {
  min-height: 68px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
  padding: 12px;
}

.readonly-grid strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.qr-product-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}

.qr-product-url span {
  min-height: 68px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
  padding: 12px;
}

.qr-product-url strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.qr-product-url a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.qr-product-copy {
  width: 44px;
  min-height: 68px;
  padding: 0;
}

.qr-product-copy svg {
  width: 20px;
  height: 20px;
}

.qr-product-copy.is-copied {
  border-color: rgba(31, 157, 90, .28);
  background: #ecfdf3;
  color: var(--green);
}

.admin-product-delete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(217, 45, 32, .22);
  border-radius: var(--radius);
  background: #fffafa;
  padding: 14px;
}

.admin-product-delete div {
  display: grid;
  gap: 4px;
}

.admin-product-delete strong {
  color: var(--red);
}

.admin-product-delete span {
  color: #6f2a24;
  font-size: 14px;
}

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

.photo-strip-lightbox {
  display: block;
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.photo-strip img,
.stolen-qr-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.check-grid label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 600;
  padding: 14px 16px;
}

.check-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(217, 45, 32, .22);
}

.stolen-public-options {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}

.stolen-public-options h2 {
  margin-bottom: 0;
}

.stolen-public-options > .muted {
  margin-top: -8px;
}

.stolen-public-options .legal-check {
  min-height: 58px;
  margin: 0;
}

.stolen-public-details {
  display: grid;
  gap: 14px;
}

.stolen-public-details[hidden] {
  display: none;
}

.stolen-public-options .check-grid {
  margin-top: 2px;
}

.public-search .intro-panel {
  margin-bottom: 18px;
}

.finder-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 10px;
}

.servicebook-filter {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) minmax(160px, 200px);
}

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

.service-edit-form .upload-choice-field,
.service-create-form .upload-choice-field {
  grid-column: 1 / -1;
  width: 100%;
}

.service-edit-form .upload-choice-group,
.service-create-form .upload-choice-group {
  width: 100%;
}

.finder-filter select {
  min-height: 52px;
  border: 1px solid #cfd7e6;
  border-radius: var(--radius);
  color: var(--text);
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.finder-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.finder-card img,
.finder-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.finder-placeholder {
  display: grid;
  place-items: center;
  background: #fff1f0;
  color: var(--red);
  font-size: 24px;
  font-weight: 650;
}

.finder-card > div {
  padding: 18px;
}

.finder-card h2 {
  margin-top: 12px;
}

.finder-detail-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  align-items: stretch;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  margin-bottom: 18px;
}

.finder-detail-hero > div {
  padding: 30px;
}

.finder-detail-hero h1 {
  color: #fff;
  font-size: 42px;
  margin-top: 16px;
}

.finder-detail-hero p {
  color: rgba(255, 255, 255, .76);
}

.finder-detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.vin-warning {
  border: 1px solid rgba(217, 45, 32, .22);
  border-radius: var(--radius);
  background: #fff1f0;
  color: #842018;
  margin-top: 16px;
  padding: 16px;
}

.vin-warning strong {
  display: block;
  color: #7a1d17;
  font-size: 18px;
  margin-bottom: 6px;
}

.vin-warning .readonly-grid {
  margin: 14px 0;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 36px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mode-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.mode-card.active {
  border-color: var(--primary);
  background: #edf4ff;
}

.mode-card strong,
.mode-card span {
  display: block;
}

.mode-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workshop-order-panel {
  display: none;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.mode-settings-toggle {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--mode-settings-color, var(--line-soft));
  border-radius: 8px;
  background: var(--mode-settings-bg, #fff);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  line-height: 1.35;
  padding: 14px 16px;
  text-align: left;
}

.mode-settings-toggle.is-contact {
  --mode-settings-color: #e08918;
  --mode-settings-bg: #fff7e8;
  --mode-settings-hover-bg: #fff1d6;
}

.mode-settings-toggle.is-rental {
  --mode-settings-color: #0f8ac7;
  --mode-settings-bg: #ecf8ff;
  --mode-settings-hover-bg: #dff3ff;
}

.mode-settings-toggle span {
  line-height: 1.35;
  min-width: 0;
}

.mode-settings-line {
  display: inline;
}

.mode-settings-toggle::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--mode-settings-color, var(--muted));
  font-size: 20px;
  line-height: 1;
}

.mode-settings-toggle[aria-expanded="true"]::after {
  content: "-";
}

.mode-settings-toggle:hover {
  border-color: var(--mode-settings-color, var(--primary));
  background: var(--mode-settings-hover-bg, #f8fbff);
}

@media (max-width: 720px) {
  .mode-settings-line {
    display: block;
  }
}

.standard-settings-panel,
.pet-settings-panel,
.rental-settings-panel {
  display: none;
  gap: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.standard-settings-panel.is-visible,
.pet-settings-panel.is-visible,
.rental-settings-panel.is-visible {
  display: grid;
}

.standard-settings-panel h3,
.pet-settings-panel h3,
.rental-settings-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
}

.standard-mode-panel,
.pet-emergency-panel,
.rental-pin-panel,
.rental-sharing-panel {
  display: grid;
  gap: 12px;
}

.pet-emergency-panel {
  display: none;
}

.pet-emergency-panel.is-visible {
  display: grid;
}

.standard-mode-panel textarea,
.pet-emergency-panel textarea,
.rental-pin-panel textarea {
  min-height: 96px;
}

.rental-sharing-panel {
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.workshop-order-panel.is-visible {
  display: grid;
}

.workshop-order-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
}

.workshop-points {
  display: grid;
  gap: 12px;
}

.workshop-point {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 14px;
}

.workshop-point-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workshop-point-head strong {
  color: var(--ink);
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.workshop-remove-point {
  min-height: 36px;
  padding: 8px 12px;
}

.workshop-photo-field {
  display: grid;
  gap: 10px;
}

.workshop-file-picker {
  width: 100%;
}

.workshop-inline-thumb {
  display: none;
  width: 42px;
  height: 34px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.workshop-inline-thumb.has-image {
  display: block;
}

.workshop-inline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-add-point {
  justify-self: start;
}

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

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.quick-action {
  display: grid;
  gap: 5px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.quick-action strong {
  color: var(--ink);
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.quick-action span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-info-card {
  align-content: start;
}

.dashboard-info-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.dashboard-info-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.dashboard-info-card dt,
.dashboard-info-card dd {
  margin: 0;
  font-size: 13px;
}

.dashboard-info-card dt {
  color: var(--muted);
}

.dashboard-info-card dd {
  color: var(--ink);
  font-weight: 650;
  text-align: right;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.product-grid {
  gap: 22px;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: -6px 0 22px;
}

.setup-steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.setup-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 700;
}

.setup-steps strong {
  color: var(--ink);
  font-size: 14px;
}

.setup-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.setup-steps .active {
  border-color: rgba(2, 99, 254, .42);
  box-shadow: var(--shadow-sm);
}

.setup-steps .done span {
  background: #e9f8ef;
  color: var(--green);
}

.next-step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.next-step-panel h2 {
  margin-bottom: 8px;
}

.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.product-add-card {
  display: grid;
  gap: 18px;
}

.product-add-head {
  max-width: 760px;
}

.product-add-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(340px, .9fr);
  gap: 20px;
  align-items: stretch;
}

.product-scan-option,
.product-manual-option {
  min-width: 0;
}

.option-label {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.scan-stage {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(7, 20, 38, .76), rgba(7, 20, 38, .76)),
    url("/assets/img/auth-bg.png") center/cover;
}

.scan-window {
  width: min(210px, 58vw);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(7, 20, 38, .38);
}

.scan-line {
  position: absolute;
  left: 50%;
  top: calc(50% - 1px);
  width: min(210px, 58vw);
  height: 2px;
  transform: translateX(-50%);
  background: rgba(2, 99, 254, .88);
  box-shadow: 0 0 18px rgba(2, 99, 254, .75);
}

.scan-start-link {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  appearance: none;
  min-width: 190px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 18px;
  box-shadow: 0 14px 32px rgba(2, 99, 254, .22);
}

.scan-start-link:hover {
  background: var(--primary-dark);
}

.scan-start-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .94);
  outline-offset: 3px;
}

.scan-start-link .scan-button-success {
  color: #fff;
}

.scan-stage.is-scanned .scan-start-link {
  background: #067647;
  color: #fff;
}

.scan-success-code {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #067647;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 9px;
}

.product-code-boxes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.product-code-boxes input {
  min-height: 50px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-code-boxes input.is-filled {
  border-color: rgba(2, 99, 254, .42);
  background: #f4f8ff;
}

.input-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.input-divider::before,
.input-divider::after {
  content: "";
  width: 1px;
  min-height: 64px;
  flex: 1;
  background: var(--line-soft);
}

.input-divider span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  padding: 4px 10px;
}

.qr-scanner {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(7, 20, 38, .76);
  padding: 18px;
}

.qr-scanner[hidden] {
  display: none;
}

.qr-scanner-panel {
  width: min(560px, 100%);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.qr-scanner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.qr-scanner-head h2 {
  margin-bottom: 0;
}

.qr-video-wrap {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #071426;
}

.qr-video-wrap video {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.qr-video-wrap .scan-window {
  position: absolute;
  width: min(260px, 68vw);
}

.qr-scan-status {
  margin: 18px 0 0;
}

.quick-product-links,
.product-list {
  display: grid;
  gap: 10px;
}

.product-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.product-row-has-locked-feature {
  border-color: #dfe6f2;
  padding-left: 64px;
}

.product-row-has-locked-feature > .entitlement-lock-badge {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  transform: translateY(-50%);
}

.product-row-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  background: #edf4ff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.product-row-icon.is-sticker {
  background: #f3f8ff;
}

.product-row-title {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-row strong,
.product-row span {
  display: block;
}

.product-row p {
  margin: 2px 0;
}

.product-row-meta {
  display: grid;
  gap: 2px;
  margin: 3px 0;
  color: var(--muted);
}

.product-row-meta span {
  display: block;
}

.product-row-meta strong {
  display: inline;
  color: var(--muted);
}

.product-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31, 157, 85, .14);
}

.product-status-dot.is-paused {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.product-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  justify-content: flex-end;
}

.product-row-actions form {
  display: flex;
  align-items: stretch;
}

.product-row-actions .button,
.product-row-actions select,
.product-row-actions .product-toggle-button {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
}

.product-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  padding: 0 14px 0 16px;
  white-space: nowrap;
}

.product-toggle-button:hover {
  background: #f8fafc;
}

.product-toggle-button .mode-switch {
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
}

.product-toggle-button .mode-switch i {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

.product-toggle-button .mode-switch.is-on i {
  transform: translateX(18px);
}

.product-assign-form {
  display: flex;
  min-width: min(100%, 430px);
  align-items: stretch;
  gap: 8px;
}

@media (min-width: 901px) {
  .product-row {
    grid-template-columns: 52px minmax(170px, 1fr) minmax(650px, auto);
  }

  .product-row-actions {
    flex-wrap: nowrap;
  }

  .product-row-actions .button {
    white-space: nowrap;
  }

  .product-assign-form {
    min-width: 0;
  }

  .product-assign-form select {
    width: 190px;
  }
}

.referral-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.referral-entry-card h2 {
  margin-bottom: 6px;
}

.referral-entry-card .muted {
  margin: 0;
}

.referral-link-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 16px;
}

.referral-link-panel .field {
  margin: 0;
}

.referral-link-panel input[readonly] {
  color: var(--ink);
  font-weight: 650;
}

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

.referral-list-card {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.referral-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.referral-list-head h2 {
  margin-bottom: 0;
}

.referral-empty {
  text-align: left;
}

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

.referral-status-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.referral-progress {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.referral-progress li {
  position: relative;
  min-height: 22px;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.referral-progress li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  content: "";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.referral-progress li.is-done {
  color: var(--ink);
}

.referral-progress li.is-done::before {
  border-color: #12b76a;
  background: #ecfdf3;
  color: #067647;
  content: "✓";
}

.referral-reward-card {
  display: grid;
  gap: 18px;
}

.referral-reward-summary {
  display: grid;
  gap: 6px;
}

.referral-reward-summary h2 {
  margin-bottom: 0;
}

.referral-reward-summary strong {
  color: #067647;
  font-size: 18px;
}

.product-explain-section {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.product-explain-head {
  display: grid;
  max-width: 680px;
  gap: 6px;
}

.product-explain-head h2 {
  margin-bottom: 0;
}

.product-explain-head .muted {
  margin: 0;
}

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

.product-explain-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}

.product-explain-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #edf4ff;
  object-fit: cover;
}

.product-explain-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-explain-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 7px 10px;
}

.product-explain-copy h3 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.product-explain-copy p {
  color: var(--muted);
  margin: 0;
}

.product-explain-copy ul {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.product-explain-copy li {
  position: relative;
  min-height: 22px;
  padding-left: 26px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.product-explain-copy li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.product-card figure {
  margin: 0;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-body {
  padding: 22px;
}

.product-body h2 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.product-body p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.product-body strong {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  margin-top: 16px;
  padding: 0 16px;
}

.product-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: #edf4ff;
  color: var(--primary);
  margin-bottom: 14px;
}

.product-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 650;
  padding: 0 14px;
}

.admin-tabs a.active {
  border-color: rgba(2, 99, 254, .32);
  background: #eef4ff;
  color: var(--primary);
}

.admin-address-block {
  margin: 0;
  color: var(--text);
  font: inherit;
  white-space: pre-wrap;
}

.admin-shipped-toggle-form {
  display: flex;
  justify-content: flex-end;
}

.admin-shipped-toggle {
  display: inline-grid;
  grid-template-columns: auto 48px;
  gap: 10px;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.admin-shipped-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-shipped-toggle i {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background .18s ease, border-color .18s ease;
}

.admin-shipped-toggle i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
  content: "";
  transition: transform .18s ease;
}

.admin-shipped-toggle input:checked + i,
.admin-shipped-toggle.is-static i {
  border-color: #12b76a;
  background: #12b76a;
}

.admin-shipped-toggle input:checked + i::after,
.admin-shipped-toggle.is-static i::after {
  transform: translateX(20px);
}

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

.admin-stat {
  margin-top: 0;
}

.admin-stat strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.1;
}

.admin-stat span,
.admin-stat small {
  display: block;
}

.admin-stat span {
  margin-top: 8px;
  color: var(--text);
  font-weight: 650;
}

.admin-stat small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, auto)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-referral-filter {
  display: grid;
  grid-template-columns: 1fr;
}

.admin-referral-filter .field {
  margin: 0;
}

.admin-referral-filter select {
  min-height: 52px;
  width: 100%;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-bulk-form {
  margin-top: 14px;
}

.admin-bulk-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.admin-table th {
  color: var(--muted);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  text-transform: uppercase;
}

.admin-table td.admin-table-empty {
  padding-top: 16px;
  color: var(--muted);
}

.admin-table .admin-table-check {
  width: 34px;
  padding-right: 4px;
}

.admin-table-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.admin-table a {
  color: var(--primary);
  font-weight: var(--font-weight-button);
}

.admin-account-table {
  min-width: 1180px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-row-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.admin-row-actions input {
  width: 150px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

.table-actions {
  display: flex;
  gap: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 650;
}

.note-band {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  border: 1px solid #dbe8ff;
  border-radius: var(--radius);
  background: #f3f8ff;
  color: #12396c;
  padding: 18px;
}

.selected-product {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 14px;
}

.selected-product img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.list {
  display: grid;
  gap: 10px;
}

.list-row,
.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.document-row {
  display: block;
}

.document-row-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.document-row-main > div:first-child {
  display: grid;
  gap: 3px;
}

.document-actions {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.document-actions form {
  margin: 0;
}

.document-edit {
  max-width: 100%;
}

.document-edit[open] {
  flex-basis: 100%;
}

.document-edit summary {
  list-style: none;
  cursor: pointer;
}

.document-edit summary::-webkit-details-marker {
  display: none;
}

.document-edit-form {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.document-delete-button {
  color: var(--red);
}

.inspection-reminder-cell {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: min(100%, 360px);
}

.inspection-reminder-form {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.inspection-reminder-form label {
  display: grid;
  gap: 4px;
  min-width: 190px;
  color: var(--muted);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  line-height: var(--line-height-label);
}

.inspection-reminder-form select {
  min-height: 52px;
}

.inspection-reminder-form .button {
  min-height: 38px;
  padding-block: 8px;
}

.inspection-list,
.reminder-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.inspection-accordion-title {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.inspection-accordion-title span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.inspection-accordion-title small {
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: .86;
}

.inspection-accordion-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--font-weight-section-title);
  line-height: var(--line-height-section-title);
}

.business-request-title strong {
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.inspection-accordion-title em {
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  color: inherit;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 10px;
  white-space: nowrap;
}

.form-accordion:not([open]) .inspection-accordion-title em {
  background: #e8eef7;
  color: var(--primary);
}

.inspection-accordion.is-overdue {
  border-color: rgba(220, 38, 38, .34);
}

.inspection-accordion.is-overdue summary {
  background: #fff1f2;
  color: #7f1d1d;
}

.inspection-accordion.is-overdue .inspection-accordion-title em,
.form-accordion.inspection-accordion.is-overdue:not([open]) .inspection-accordion-title em,
.inspection-accordion.is-overdue .inspection-card-head > strong {
  background: #fee2e2;
  color: #991b1b;
}

.inspection-accordion.is-due-imminent .inspection-accordion-title em,
.form-accordion.inspection-accordion.is-due-imminent:not([open]) .inspection-accordion-title em {
  background: #fed7aa;
  color: #9a3412;
}

.status-note {
  margin: 0;
}

.status-note-danger {
  color: #991b1b;
  font-weight: 600;
}

.form-accordion summary .inspection-accordion-title.inventory-accordion-title {
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-items: start;
}

.form-accordion summary .inventory-accordion-title .inventory-icon {
  grid-column: 1;
}

.form-accordion summary .inventory-accordion-title .inventory-title-copy {
  grid-column: 2;
  justify-self: stretch;
}

.form-accordion summary .inventory-accordion-title .inventory-summary-actions {
  grid-column: 3;
  justify-self: end;
}

#frist-hinzufuegen {
  scroll-margin-top: 28px;
}

.inspection-create-form[hidden],
.damage-create-form[hidden],
.service-create-form[hidden],
[data-service-create-form][hidden],
.cost-create-form[hidden],
.document-create-form[hidden],
.product-add-card[hidden] {
  display: none;
}

.inspection-create-form,
.damage-create-form,
.service-create-form,
.cost-create-form,
.document-create-form,
.product-add-card {
  transition: opacity var(--motion-ui) var(--motion-ease), transform var(--motion-ui) var(--motion-ease-out);
}

.inspection-create-form.is-revealing,
.damage-create-form.is-revealing,
.service-create-form.is-revealing,
.cost-create-form.is-revealing,
.document-create-form.is-revealing,
.product-add-card.is-revealing {
  opacity: 0;
  transform: translateY(6px);
}

.inspection-create-form.is-revealing.is-visible,
.damage-create-form.is-revealing.is-visible,
.service-create-form.is-revealing.is-visible,
.cost-create-form.is-revealing.is-visible,
.document-create-form.is-revealing.is-visible,
.product-add-card.is-revealing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.damage-grid {
  display: grid;
  gap: 10px;
}

.damage-empty-state {
  margin-top: 22px;
}

.inspection-card,
.reminder-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.inspection-card-head,
.reminder-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inspection-card-head {
  display: grid;
  gap: 12px;
  align-items: start;
}

.inspection-card-head h3 {
  margin: 0 0 4px;
  font-size: var(--font-size-section-title);
  line-height: var(--line-height-section-title);
}

.inspection-card-head > strong {
  justify-self: end;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  padding: 8px 12px;
}

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

.inspection-edit-form input:disabled {
  background: #f5f7fb;
  color: var(--muted);
  cursor: not-allowed;
}

.inspection-passed-field {
  min-height: 52px;
  align-self: end;
  padding: 0 14px;
}

.inspection-edit-notes,
.inspection-card-actions {
  grid-column: 1 / -1;
}

.inspection-delete-form {
  justify-self: end;
  margin-top: 12px;
}

.reminder-card {
  align-items: center;
}

.reminder-card.is-generated {
  background: #f8fbff;
}

.reminder-card-main {
  display: grid;
  gap: 4px;
}

.reminder-card-main > span:last-child {
  color: var(--muted);
}

.reminder-type {
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.reminder-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.cost-summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 750;
  padding: 6px 12px;
  white-space: nowrap;
}

.cost-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

.cost-filter > .field {
  flex: 1 1 170px;
  max-width: 220px;
}

.cost-filter-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.cost-filter-actions .button {
  min-width: 174px;
}

.places-filter-shell .places-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  align-items: end;
}

.places-filter-shell .cost-filter-actions {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: 0;
  min-width: 0;
}

.places-filter-shell .places-filter > .field {
  width: 100%;
  max-width: none;
}

.places-filter-shell .cost-filter-actions .button {
  width: 100%;
  min-width: 0;
}

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

.cost-kpi {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96)),
    radial-gradient(circle at 90% 0%, rgba(5, 102, 255, .14), transparent 34%);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.cost-kpi span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cost-kpi strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.cost-kpi small {
  color: var(--muted);
  font-weight: 650;
}

.cost-insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.cost-chart-main,
.cost-donut-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.cost-chart-main {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .98)),
    linear-gradient(90deg, rgba(5, 102, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 102, 255, .05) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

.cost-chart-main .split-head strong {
  color: var(--primary);
  font-size: 24px;
}

.cost-month-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  min-height: 280px;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(238, 244, 255, .62), rgba(255, 255, 255, .4));
  padding: 18px 14px 12px;
}

.cost-month-bar {
  display: grid;
  min-width: 0;
  height: 240px;
  grid-template-rows: 34px 1fr 28px;
  align-items: end;
  justify-items: center;
  gap: 8px;
}

.cost-month-bar span {
  align-self: start;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.cost-month-bar i {
  display: block;
  width: min(100%, 42px);
  min-height: 8px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #0566ff 0%, #28a6ff 100%);
  box-shadow: 0 16px 28px rgba(5, 102, 255, .22);
}

.cost-month-bar em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.cost-donut-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  overflow: hidden;
}

.cost-donut-card > div {
  min-width: 0;
}

.cost-donut {
  display: grid;
  width: min(100%, 168px);
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background: var(--cost-donut);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08), 0 24px 45px rgba(15, 23, 42, .12);
}

.cost-donut > div {
  display: grid;
  width: 56%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
  padding: 14px;
}

.cost-donut span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cost-donut strong {
  color: var(--ink);
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.cost-legend {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin-top: 14px;
}

.cost-legend-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 12px minmax(0, 1fr) minmax(72px, auto) minmax(34px, auto);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 8px;
}

.cost-legend-row i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.cost-legend-row span,
.cost-legend-row strong,
.cost-legend-row em {
  font-size: 13px;
}

.cost-legend-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-legend-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-legend-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

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

@media (max-width: 1180px) {
  .cost-donut-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cost-donut {
    width: min(100%, 170px);
  }
}

.cost-bars {
  display: grid;
  gap: 12px;
}

.cost-bar-row {
  display: grid;
  gap: 8px;
}

.cost-bar-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cost-bar-row strong,
.cost-bar-row span {
  font-size: 14px;
}

.cost-bar-row span {
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.cost-bar-row i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #28a6ff);
}

.costs-table td:last-child {
  text-align: right;
}

.costs-table .button-small {
  min-height: 32px;
  padding: 6px 10px;
}

.costs-table small {
  display: block;
  max-width: 420px;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.service-history-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.service-history-meta strong {
  color: var(--ink);
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
}

.service-history-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.report-row {
  align-items: flex-start;
}

.report-row-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: var(--muted);
  font-weight: 650;
  text-align: right;
}

.report-row-actions .button {
  min-height: 36px;
  padding: 8px 12px;
}

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

.report-grid.is-single-option {
  grid-template-columns: 1fr;
}

.qr-public-page .qr-report-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  place-items: stretch;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  text-align: left;
}

.report-option {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.qr-public-page .qr-report-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.qr-public-page .qr-report-option input:checked ~ .qr-public-emoji {
  border-color: rgba(2, 99, 254, .22);
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(2, 99, 254, .18);
}

.qr-public-page .qr-report-option:has(input:checked) {
  border-color: rgba(2, 99, 254, .42);
  background: #f6faff;
  box-shadow: 0 0 0 3px rgba(2, 99, 254, .08);
}

.qr-public-page .qr-report-option strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.qr-report-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.qr-report-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.report-option input {
  margin-right: 8px;
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"]) {
  --toggle-track-width: 48px;
  --toggle-track-height: 28px;
  --toggle-knob-size: 22px;
  --toggle-knob-offset: 3px;
  --toggle-left: 14px;
  position: relative;
  display: grid;
  grid-template-columns: var(--toggle-track-width) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"]) > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"])::before {
  display: block;
  width: var(--toggle-track-width);
  height: var(--toggle-track-height);
  grid-column: 1;
  border-radius: 999px;
  background: #dce5f1;
  box-shadow: inset 0 0 0 1px rgba(7, 20, 38, .08);
  content: "";
  transition: background var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"])::after {
  position: absolute;
  left: calc(var(--toggle-left) + var(--toggle-knob-offset));
  top: 50%;
  width: var(--toggle-knob-size);
  height: var(--toggle-knob-size);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(7, 20, 38, .22);
  content: "";
  transform: translateY(-50%);
  transition: transform var(--motion-fast) var(--motion-ease);
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"]:checked)::before {
  background: var(--green);
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"]:checked)::after {
  transform: translate(20px, -50%);
}

:where(.legal-check, .checkbox-line, .vehicle-checkbox-option, .vehicle-sale-option, .stolen-public-options .check-grid label):has(> input[type="checkbox"]:focus-visible)::before {
  box-shadow: 0 0 0 4px rgba(2, 99, 254, .14), inset 0 0 0 1px rgba(7, 20, 38, .08);
}

.legal-check:has(> input[type="checkbox"]) {
  --toggle-left: 12px;
}

.stolen-public-options .check-grid label:has(> input[type="checkbox"]) {
  --toggle-left: 16px;
}

.qr-public-page {
  padding: 28px 0 48px;
}

.qr-public-brandbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 0 -18px 18px;
  background: linear-gradient(135deg, #071426, #0b2a4d);
}

.qr-public-brandbar .brand {
  margin: 0;
}

.qr-public-brandbar .brand img {
  width: 174px;
  height: auto;
}

.qr-public-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.qr-public-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.qr-public-hero .muted {
  line-height: 1.55;
}

.qr-public-hero-icon .qr-public-emoji {
  width: 54px;
  height: 54px;
  border-color: rgba(2, 99, 254, .16);
  background: #eef5ff;
}

.qr-public-hero.is-danger .qr-public-hero-icon .qr-public-emoji {
  border-color: rgba(217, 45, 32, .20);
  background: #fff0ee;
}

.qr-mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 8px 0 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  padding: 0 10px;
  text-transform: uppercase;
}

.qr-contact-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.qr-contact-disclosure {
  margin-bottom: 16px;
  overflow: hidden;
}

.qr-contact-disclosure summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
}

.qr-contact-disclosure summary::-webkit-details-marker {
  display: none;
}

.qr-contact-disclosure summary::marker {
  content: "";
}

.qr-contact-disclosure summary strong,
.qr-contact-disclosure summary small {
  display: block;
}

.qr-contact-disclosure summary strong {
  color: var(--ink);
  font-size: 18px;
}

.qr-contact-disclosure summary small {
  color: var(--muted);
  line-height: 1.35;
}

.qr-contact-disclosure[open] summary {
  border-bottom: 1px solid var(--line-soft);
  background: #f8fbff;
}

.qr-contact-head h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.qr-contact-head .muted {
  line-height: 1.5;
  margin: 0;
}

.qr-safety-notice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 159, 0, .34);
  border-radius: var(--radius-lg);
  background: #fffaf0;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}

.qr-safety-notice .qr-public-emoji {
  background: #fff7e6;
  border-color: rgba(245, 159, 0, .28);
}

.qr-safety-notice strong {
  display: block;
  color: #5f3b00;
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
  margin-bottom: 4px;
}

.qr-safety-notice p {
  color: #4f5262;
  line-height: 1.5;
  margin: 0;
}

.qr-key-found-disclosure {
  margin-bottom: 16px;
}

.qr-key-found-disclosure summary::-webkit-details-marker {
  display: none;
}

.qr-key-found-disclosure summary::marker {
  content: "";
}

.qr-key-found-compact {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

.qr-key-found-compact strong,
.qr-key-found-compact small {
  display: block;
}

.qr-key-found-compact strong {
  color: var(--ink);
  font-size: 18px;
}

.qr-key-found-compact small {
  color: var(--muted);
  line-height: 1.4;
}

.qr-key-found-compact .button {
  min-height: 38px;
  padding: 9px 14px;
}

.qr-key-found-form {
  margin-top: 12px;
}

.qr-technical-card {
  margin: 22px 0 16px;
  padding: 16px;
}

.qr-rental-card {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
}

.qr-rental-card .form-grid {
  align-items: end;
}

.qr-rental-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.qr-rental-section h3 {
  margin: 0;
}

.qr-pet-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  border: 1px solid rgba(245, 159, 0, .34);
  border-radius: var(--radius);
  background: #fff7e6;
  color: #523600;
  padding: 14px 16px;
}

.qr-pet-notice::before {
  content: "!";
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  flex: 0 0 auto;
}

.qr-pet-notice strong {
  display: block;
  color: #2b2100;
  font-size: var(--font-size-value);
  font-weight: var(--font-weight-value);
  line-height: var(--line-height-value);
  margin-bottom: 4px;
}

.qr-pet-notice p {
  margin: 0;
  line-height: 1.45;
}

.qr-pet-phone {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  border-radius: var(--radius);
  background: #fff;
  color: #8a5200;
  font-weight: var(--font-weight-button);
  padding: 8px 10px;
  text-decoration: none;
}

.qr-pet-phone:hover {
  color: #5f3900;
}

.qr-owner-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  border: 1px solid #b9d4ff;
  border-radius: var(--radius);
  background: #eaf3ff;
  box-shadow: inset 4px 0 0 var(--primary);
  color: #12396c;
  padding: 14px 16px 14px 18px;
}

.qr-owner-note > div {
  display: grid;
  gap: 4px;
}

.qr-owner-note strong {
  color: #071426;
  font-weight: var(--font-weight-value);
}

.qr-owner-note p {
  margin: 0;
  line-height: 1.5;
}

.qr-workshop-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.qr-workshop-card form {
  display: grid;
}

.qr-owner-access {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 22px;
}

.qr-owner-access h2 {
  margin: 0 0 6px;
}

.qr-owner-accordion {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.qr-rental-card .qr-owner-accordion:first-of-type,
.qr-owner-access .qr-owner-accordion:first-of-type {
  margin-top: 2px;
}

.qr-owner-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--font-size-section-title);
  font-weight: var(--font-weight-section-title);
  line-height: var(--line-height-section-title);
  list-style: none;
  padding: 14px 16px;
}

.qr-owner-accordion summary::-webkit-details-marker {
  display: none;
}

.qr-owner-accordion summary::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}

.qr-owner-accordion[open] summary {
  border-bottom: 1px solid var(--line-soft);
  background: #f8fbff;
}

.qr-owner-accordion[open] summary::after {
  content: "-";
}

.qr-owner-accordion > :not(summary) {
  margin: 14px 16px;
}

.qr-rental-damage-accordion {
  border-color: rgba(245, 159, 0, .42);
  background: #fffaf0;
  box-shadow: inset 3px 0 0 var(--orange);
}

.qr-rental-damage-accordion summary::after {
  color: #d97706;
}

.qr-rental-damage-accordion[open] summary {
  border-bottom-color: rgba(245, 159, 0, .28);
  background: #fff4dc;
}

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

.qr-rental-damage-form .muted {
  margin: 0;
}

.qr-rental-photo-choice {
  background: #fff;
}

.workshop-public-point {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.workshop-public-point p {
  margin: 0;
}

.workshop-public-photo {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: zoom-in;
  font-weight: var(--font-weight-button);
  padding: 0;
  text-decoration: none;
  text-align: left;
}

.workshop-public-photo img,
.workshop-public-point img {
  width: 100%;
  max-height: 320px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  object-fit: contain;
  background: #f8fbff;
}

.has-lightbox {
  overflow: hidden;
}

body.is-scroll-locked {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 20, 38, .82);
  opacity: 0;
  padding: 18px;
  transition: opacity var(--motion-ui) var(--motion-ease);
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox img {
  width: auto;
  max-width: min(90vw, 920px);
  max-height: calc(86vh - 42px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  object-fit: contain;
  transform: translateY(8px);
  transition: transform var(--motion-ui) var(--motion-ease-out);
}

.lightbox.is-visible img {
  transform: translateY(0);
}

.lightbox-caption {
  position: fixed;
  top: var(--lightbox-caption-top, auto);
  left: var(--lightbox-caption-left, 18px);
  width: var(--lightbox-caption-width, calc(100vw - 36px));
  margin: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-button);
  line-height: 1.35;
  padding: 10px 16px;
  text-align: left;
}

.lightbox-count {
  position: fixed;
  top: 22px;
  left: 50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-button);
  padding: 8px 12px;
  transform: translateX(-50%);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  cursor: pointer;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  padding: 0 0 4px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: max(18px, calc((100vw - min(90vw, 920px)) / 2 - 74px));
}

.lightbox-next {
  right: max(18px, calc((100vw - min(90vw, 920px)) / 2 - 74px));
}

.confirm-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 20, 38, .62);
  opacity: 0;
  padding: 18px;
  transition: opacity var(--motion-ui) var(--motion-ease);
}

.confirm-dialog.is-visible {
  opacity: 1;
}

.confirm-dialog-panel {
  box-sizing: border-box;
  width: min(90vw, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 22px;
  transform: translateY(8px);
  transition: transform var(--motion-ui) var(--motion-ease-out);
}

.confirm-dialog.is-visible .confirm-dialog-panel {
  transform: translateY(0);
}

.confirm-dialog-panel h2 {
  margin-bottom: 8px;
}

.confirm-dialog-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.confirm-dialog-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.confirm-dialog-actions .button {
  min-width: 0;
}

.entitlement-lock-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .22);
}

.dashboard-mode-card .entitlement-lock-badge,
.entitlement-locked > .entitlement-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.account-key-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #f8fafc;
}

.account-key-notice strong {
  display: block;
  color: #101828;
}

.account-key-notice p {
  margin: 3px 0 0;
}

.entitlement-dialog-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: #eef4ff;
}

@media (max-width: 420px) {
  .confirm-dialog {
    padding: 8px;
  }

  .confirm-dialog-panel {
    width: min(100%, 460px);
    padding: 18px;
  }

  .confirm-dialog-actions {
    gap: 8px;
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
  }

  .confirm-dialog-actions .button {
    min-height: 44px;
    padding: 0 9px;
  }
}

.qr-public-emoji {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fbff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.qr-public-emoji.is-small {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.qr-departure-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
}

.qr-departure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.qr-departure-head h2 {
  margin: 0;
}

.qr-departure-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.qr-departure-actions .button {
  min-height: 38px;
  padding: 9px 12px;
}

.qr-check-complete {
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  background: #ecfdf3;
  color: #067647;
  font-weight: var(--font-weight-button);
  margin: 0;
  padding: 12px 14px;
}

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

.qr-check-row > span:not(.mode-switch) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-departure-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 14px;
}

.qr-departure-check-row strong {
  min-width: 0;
  line-height: 1.35;
}

.qr-departure-check-row .qr-check-toggle {
  justify-self: end;
}

.qr-departure-check-row.is-done {
  background: #f7fef9;
  border-color: #bbf7d0;
}

.qr-check-toggle {
  position: relative;
  display: block;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
  cursor: pointer;
}

.qr-check-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.qr-check-toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e8edf5;
  box-shadow: inset 0 1px 2px rgba(7, 20, 38, .08);
  transition: background var(--motion-ui) var(--motion-ease), border-color var(--motion-ui) var(--motion-ease);
}

.qr-check-toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(7, 20, 38, .22);
  content: "";
  transition: transform var(--motion-ui) var(--motion-ease);
}

.qr-check-toggle input:checked + span {
  border-color: #20a464;
  background: #20a464;
}

.qr-check-toggle input:checked + span::after {
  transform: translateX(22px);
}

.qr-check-toggle input:focus-visible + span {
  outline: 3px solid rgba(17, 102, 241, .22);
  outline-offset: 3px;
}

.qr-message-field {
  display: grid;
  gap: 8px;
}

.qr-message-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.qr-message-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-report-photo {
  display: grid;
  gap: 16px;
}

.qr-report-photo .upload-choice > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.qr-message-card textarea {
  min-height: 104px;
  border-radius: var(--radius);
  background: #fbfdff;
}

.qr-contact-details p {
  margin: 0 0 14px;
}

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

.qr-contact-details .qr-message-field {
  gap: 10px;
}

.qr-submit-button {
  gap: 10px;
}

.qr-login-link {
  margin-top: 18px;
  text-align: center;
}

.qr-login-link a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.qr-login-link a:hover {
  color: var(--primary);
}

.notice {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  border-radius: var(--radius);
  background: #edf4ff;
  color: #0f3469;
  padding: 16px;
}

.notice.notice-warning {
  border: 1px solid rgba(234, 88, 12, .24);
  background: #fff7ed;
  color: #7c2d12;
}

.check-row {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.check-title-field {
  display: grid;
  gap: 6px;
}

.check-title-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.check-switches {
  display: flex;
  align-self: end;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.checklist-info {
  border: 1px solid #dbe8ff;
  border-radius: var(--radius);
  background: #f3f8ff;
  color: #12396c;
  padding: 16px;
}

.checklist-info strong {
  display: block;
  color: #0b2a4d;
  margin-bottom: 5px;
}

.checklist-info p {
  margin: 0;
  line-height: 1.5;
}

.switch-line {
  display: grid;
  width: 144px;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.switch-line input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-line i {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #dce5f1;
  box-shadow: inset 0 0 0 1px rgba(7, 20, 38, .06);
  transition: background var(--motion-fast) var(--motion-ease);
}

.switch-line i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(7, 20, 38, .22);
  transition: transform var(--motion-fast) var(--motion-ease);
}

.switch-line input:checked + i {
  background: var(--green);
}

.switch-line input:checked + i::after {
  transform: translateX(20px);
}

.switch-line input:focus-visible + i {
  box-shadow: 0 0 0 4px rgba(2, 99, 254, .14), inset 0 0 0 1px rgba(7, 20, 38, .06);
}

.check-auto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  white-space: nowrap;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 900px) {
  select {
    min-height: 48px;
    background:
      linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 21px) 19px / 6px 6px no-repeat,
      linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 17px) 19px / 6px 6px no-repeat,
      #fff;
    padding: 0 44px 0 16px;
  }

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

  .auth-visual {
    min-height: 320px;
  }

  .auth-visual-inner {
    position: relative;
    width: min(100% - 32px, 560px);
    min-height: 320px;
    padding: 28px 0 36px 20px;
  }

  .auth-message {
    position: static;
    width: auto;
    margin-top: auto;
    transform: none;
  }

  .auth-message .auth-kicker {
    margin-top: 20px;
  }

  .auth-copy {
    margin: 18px 0 0;
  }

  .auth-panel {
    min-height: auto;
    padding: 22px 16px 36px;
  }

  .auth-card {
    padding: 24px;
  }

  .business-pending-card .status {
    margin-bottom: 4px;
  }

  .license-lock-banner,
  .mode-license-lock {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .license-lock-banner .button,
  .mode-license-lock .button,
  .trial-banner-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .license-lock-banner p,
  .mode-license-lock p {
    line-height: 1.45;
  }

  .app-layout,
  .dashboard-grid,
  .quick-actions,
  .product-grid,
  .inventory-stats,
  .inventory-breakdown,
  .inventory-weight-settings,
  .inventory-filter,
  .inventory-grid,
  .form-grid,
  .camper-hero,
  .mode-grid,
  .report-grid,
  .product-action-grid,
  .setup-steps,
  .settings-grid,
  .selected-product,
  .readonly-grid,
  .admin-stat-grid,
  .admin-filter,
  .admin-referral-filter,
  .next-step-panel,
  .finder-grid,
  .finder-detail-hero,
  .finder-filter,
  .cost-kpis,
  .cost-insight-panel,
  .cost-donut-card,
  .cost-layout,
  .qr-contact-grid,
  .vehicle-delete-layout,
  .referral-entry-card,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .product-add-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-explain-grid {
    grid-template-columns: 1fr;
  }

  .cost-filter > .field,
  .cost-filter-actions,
  .cost-filter-actions .button {
    width: 100%;
    max-width: none;
  }

  .cost-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .cost-filter-actions .button {
    min-width: 0;
  }

  .places-filter-shell .places-filter {
    display: none;
    grid-template-columns: 1fr;
  }

  .places-filter-shell .cost-filter-actions {
    grid-column: auto;
  }

  .places-filter-shell.is-open .places-filter {
    display: grid;
  }

  .input-divider {
    min-height: 1px;
  }

  .cost-month-chart {
    overflow-x: auto;
    grid-template-columns: repeat(12, minmax(48px, 1fr));
  }

  .inventory-breakdown {
    grid-template-columns: 1fr;
  }

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

  .inventory-stats .inventory-stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .inventory-stat {
    padding: 16px;
  }

  .inventory-breakdown-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .inventory-breakdown-list .list-row {
    display: grid;
    align-items: start;
    justify-content: stretch;
    gap: 12px;
    min-width: 0;
    padding: 12px;
  }

  .admin-filter {
    align-items: stretch;
  }

  .next-step-actions {
    justify-content: stretch;
  }

  .next-step-actions .button {
    width: 100%;
  }

  .vehicle-photo-upload {
    grid-template-columns: 1fr;
  }

  .vehicle-photo-dropzone {
    grid-template-columns: 1fr;
  }

  .vehicle-photo-preview {
    width: 132px;
    max-width: 100%;
  }

  .vehicle-photo-dropzone .vehicle-photo-preview {
    width: 132px;
  }

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

  .product-add-options {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .input-divider {
    flex-direction: row;
  }

  .input-divider::before,
  .input-divider::after {
    width: auto;
    height: 1px;
    min-height: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  }

  .mobile-menu-button,
  .mobile-close-button {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 11px;
  }

  .mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .mobile-user-link {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-self: end;
    gap: 8px;
    color: var(--ink);
    font-weight: 500;
  }

  .mobile-user-link .user-avatar {
    width: 34px;
    height: 34px;
  }

  .mobile-user-link strong {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: block;
    background: rgba(7, 20, 38, .38);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--motion-ui) var(--motion-ease);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2210;
    display: flex;
    justify-content: flex-start;
    width: min(86vw, 336px);
    height: 100dvh;
    border-right: 1px solid var(--line);
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 24px 0 70px rgba(15, 23, 42, .18);
    padding: max(18px, env(safe-area-inset-top)) 18px 18px;
    transform: translateX(-104%);
    transition: transform var(--motion-large) var(--motion-ease);
    will-change: transform;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .sidebar-camper-select select {
    appearance: none;
    min-height: 48px;
    border-radius: 10px;
    background:
      linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 21px) 19px / 6px 6px no-repeat,
      linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 17px) 19px / 6px 6px no-repeat,
      #fff;
    line-height: 1.25;
    padding: 0 44px 0 16px;
  }

  .sidebar-desktop-brand {
    display: none;
  }

  .sidebar-bottom {
    margin-top: auto;
  }

  .side-nav {
    display: grid;
    margin-top: 22px;
  }

  .app-content {
    width: min(100% - 28px, 760px);
    padding: 22px 0 42px;
  }

  .app-main {
    margin-left: 0;
    min-height: calc(100vh - 65px);
  }

  .page-head,
  .intro-panel,
  .vehicle-identity-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-action-head {
    gap: 12px;
  }

  .mobile-action-head .button {
    width: 100%;
  }

  .mobile-action-head .button-secondary {
    border-color: var(--primary);
    background: #fff;
    color: var(--primary);
  }

  .mobile-action-head .button-secondary:hover:not(:disabled):not(.is-waiting):not(.is-loading) {
    border-color: var(--primary);
    background: #f8fbff;
    color: var(--primary);
  }

  .page-head-actions {
    width: 100%;
  }

  .page-head-actions .button {
    width: 100%;
  }

  .dashboard-public-links {
    width: 100%;
    justify-content: stretch;
  }

  .dashboard-public-links .button {
    width: 100%;
  }

  .qr-key-found-compact {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .qr-key-found-compact .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vehicle-identity-status {
    width: 100%;
  }

  .intro-panel {
    padding: 20px;
  }

  .camper-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .camper-hero.has-photo {
    grid-template-columns: 1fr;
  }

  .workshop-point {
    grid-template-columns: 1fr;
  }

  .check-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .check-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .switch-line {
    width: auto;
    min-height: 50px;
  }

  .checklist-info {
    padding: 14px;
  }

  .inspection-card-head,
  .inspection-edit-form,
  .reminder-card,
  .reminder-edit-form {
    grid-template-columns: 1fr;
  }

  .readonly-field-list {
    grid-template-columns: 1fr;
  }

  .qr-owner-accordion .readonly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-edit-actions {
    margin-left: 0;
  }

  .form-accordion summary {
    align-content: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .form-accordion summary > span:first-child,
  .inspection-accordion-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .inspection-accordion summary .inspection-accordion-title,
  .report-accordion summary .inspection-accordion-title {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .inspection-accordion summary .inspection-accordion-title em,
  .report-accordion summary .inspection-accordion-title em {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
  }

  .form-accordion summary .inspection-accordion-title.inventory-accordion-title {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
  }

  .form-accordion summary .inventory-accordion-title .inventory-icon {
    grid-row: 1 / span 2;
  }

  .form-accordion summary .inventory-accordion-title .inventory-title-copy {
    grid-column: 2;
  }

  .form-accordion summary .inventory-accordion-title .inventory-summary-actions {
    grid-column: 2;
    justify-self: start;
    margin-left: -8px;
  }

  .inventory-status-button {
    min-height: 30px;
  }

  .inventory-status-button .mode-switch {
    flex-basis: 38px;
    width: 38px;
    height: 22px;
  }

  .inventory-status-button .mode-switch i {
    width: 16px;
    height: 16px;
  }

  .inventory-status-button .mode-switch.is-on i {
    transform: translateX(16px);
  }

  .edit-toggle {
    min-height: 44px;
  }

  .inspection-card-head > strong,
  .inspection-delete-form {
    justify-self: stretch;
  }

  .inspection-delete-form .button,
  .reminder-card-actions .button,
  .reminder-edit-form .button {
    width: 100%;
  }

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

  .mobile-tabbar {
    display: none;
  }

  .site-footer {
    padding: 18px 0 22px;
  }

  .site-footer-inner {
    width: min(100% - 32px, 760px);
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }

  .site-footer p {
    text-align: left;
  }

  .footer-meta,
  .footer-meta nav {
    gap: 7px 10px;
  }

  .footer-meta nav::before {
    content: none;
  }
}

@media (max-width: 520px) {
  .public-topbar .brand img {
    width: 176px;
  }

  .auth-choice {
    gap: 8px;
  }

  .auth-choice label {
    gap: 8px;
    padding: 0 12px;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding: 34px 0 54px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-submit {
    justify-self: stretch;
  }

  .section-card,
  .product-body {
    padding: 18px;
  }

  .list-row,
  .report-row,
  .note-band,
  .product-row,
  .admin-product-delete,
  .stolen-status,
  .danger-zone,
  .inventory-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-product-delete .button {
    width: 100%;
  }

  .report-row-actions {
    align-self: flex-end;
    justify-items: end;
  }

  .inventory-weight-settings form {
    grid-template-columns: 1fr;
  }

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

  .inventory-transfer-mode {
    grid-template-columns: 1fr;
  }

  .stolen-mode-lock {
    grid-template-columns: 1fr;
  }

  .inventory-actions,
  .stolen-mode-lock .stolen-actions,
  .stolen-mode-lock .stolen-actions form,
  .stolen-mode-lock .stolen-actions .button,
  .inventory-actions form,
  .inventory-actions .button {
    width: 100%;
  }

  .inventory-actions {
    grid-template-columns: 1fr;
  }

  .inspection-reminder-cell,
  .inspection-reminder-form,
  .inspection-reminder-form label,
  .inspection-reminder-form .button {
    justify-items: stretch;
    width: 100%;
  }

  .inspection-reminder-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .stolen-actions {
    width: 100%;
  }

  .stolen-actions .button {
    width: 100%;
  }

  .product-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .product-row-has-locked-feature {
    padding-left: 46px;
  }

  .product-row-has-locked-feature > .entitlement-lock-badge {
    top: 16px;
    left: 10px;
    transform: none;
  }

  .product-row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .product-row-actions .button,
  .product-row-actions .product-toggle-button,
  .product-row-actions form {
    width: 100%;
  }
}

.vehicle-edit-form .readonly-field-list,
.vehicle-edit-form .form-accordion-body > .form-grid,
.vehicle-edit-form .vehicle-photo-board,
.document-accordion .readonly-field-list,
.document-accordion .form-grid,
.inspection-accordion .readonly-field-list,
.inspection-accordion .form-grid,
.service-accordion .readonly-field-list,
.service-accordion .form-grid,
.place-card .readonly-field-list,
.damage-accordion .readonly-field-list,
.damage-accordion .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-damage-accordion .readonly-field-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-edit-form #ausstattung .readonly-field-list,
.vehicle-edit-form #ausstattung .form-grid,
.vehicle-edit-form #ausstattung .equipment-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-edit-form #ausstattung.is-editing .equipment-list {
  grid-template-columns: 1fr;
}

.vehicle-edit-form #ausstattung.is-equipment-adding .equipment-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-edit-form #ausstattung.is-editing .equipment-edit-fields .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .vehicle-edit-form .readonly-field-list,
  .vehicle-edit-form .vehicle-photo-board,
  .document-accordion .readonly-field-list,
  .inspection-accordion .readonly-field-list,
  .service-accordion .readonly-field-list,
  .place-card .readonly-field-list,
  .damage-accordion .readonly-field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-edit-form .edit-panel .form-grid,
  .document-accordion .edit-panel .form-grid,
  .inspection-accordion .edit-panel .form-grid,
  .service-accordion .edit-panel .form-grid,
  .inventory-accordion .edit-panel .form-grid,
  .place-card .edit-panel .form-grid,
  .damage-accordion .edit-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .document-accordion .accordion-field-group .form-grid,
  .inspection-accordion .accordion-field-group .form-grid,
  .service-accordion .accordion-field-group .form-grid,
  .damage-accordion .accordion-field-group .form-grid,
  .stolen-report-form .accordion-field-group .form-grid {
    grid-template-columns: 1fr;
  }

  .business-code-lookup-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .business-relationship-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .business-relationship-logo {
    width: 56px;
    height: 56px;
  }

  .business-relationship-status {
    grid-column: 2;
    justify-items: start;
  }

  .business-relationship-action {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
  }

  .business-code-boxes {
    gap: 6px;
  }

  .business-code-boxes input {
    min-height: 48px;
    font-size: 18px;
  }

  .vehicle-edit-form #ausstattung .form-grid,
  .vehicle-edit-form #ausstattung .equipment-list,
  .vehicle-edit-form #ausstattung.is-equipment-adding .equipment-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .dashboard-mode-card:hover,
  .lightbox img,
  .confirm-dialog-panel,
  .sidebar,
  .app-toast,
  .inspection-create-form,
  .damage-create-form,
  .service-create-form,
  .document-create-form,
  .product-add-card {
    transform: none !important;
  }
}

