:root {
  --page: #f5f7f6;
  --surface: #ffffff;
  --surface-muted: #edf2ef;
  --ink: #17211d;
  --muted: #64716b;
  --line: #d8e0dc;
  --line-strong: #c2cec8;
  --green: #0a6c52;
  --green-dark: #07523f;
  --green-soft: #dcefe8;
  --blue: #356d8b;
  --blue-soft: #e1edf3;
  --amber: #a86112;
  --amber-soft: #f7ead7;
  --red: #b94436;
  --red-soft: #f6e3df;
  --shadow: 0 10px 28px rgba(25, 44, 36, 0.08);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--page);
}

/* Project logistics product selector and shared form selects. */
.form-field select {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
}

.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 109, 139, 0.12);
}

.product-type-band {
  border-top: 1px solid #dce4e1;
  border-bottom: 1px solid #d2dcd7;
  background: #edf2ef;
}

.product-type-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.product-type-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #53635b;
  text-align: left;
  cursor: pointer;
}

.product-type-nav button:hover {
  border-color: #c7d3cd;
  background: #fff;
}

.product-type-nav button.is-active {
  border-color: var(--green);
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(34, 72, 55, 0.09);
}

.product-type-nav button > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.product-type-nav button span {
  display: grid;
  gap: 2px;
}

.product-type-nav button strong,
.product-type-nav button small {
  letter-spacing: 0;
}

.product-type-nav button small {
  color: #73817a;
  font-size: 12px;
}

@media (max-width: 640px) {
  .product-type-nav {
    grid-template-columns: 1fr;
  }

  .product-type-nav button {
    min-width: 0;
    padding: 8px 10px;
  }

  .product-type-nav button small {
    display: none;
  }
}

.multimodal-workspace {
  padding: 28px 0 54px;
  background: var(--page);
}

.multimodal-layout {
  display: grid;
  min-height: 680px;
  gap: 18px;
  grid-template-columns: minmax(370px, 0.9fr) minmax(520px, 1.55fr);
}

.multimodal-planner,
.multimodal-map-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.multimodal-planner {
  padding: 20px;
}

.multimodal-planner__heading h2 {
  margin: 6px 0 7px;
  font-size: 21px;
  letter-spacing: 0;
}

.multimodal-planner__heading p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#multimodalSearchForm {
  display: grid;
  gap: 14px;
}

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

.multimodal-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.multimodal-container-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.multimodal-container-field legend {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.multimodal-container-field legend b {
  color: var(--red);
}

.multimodal-container-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multimodal-container-option {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr) minmax(96px, 0.8fr);
}

.multimodal-container-option.is-selected {
  border-color: #8db8a5;
  background: #f1f8f4;
  box-shadow: inset 3px 0 var(--green);
}

.multimodal-container-option > input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.multimodal-container-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.multimodal-container-option strong {
  font-size: 12px;
}

.multimodal-container-option small {
  color: var(--muted);
  font-size: 9px;
}

.multimodal-container-option .input-unit input:disabled {
  color: #8b9691;
  background: #edf1ef;
  cursor: not-allowed;
}

.address-autocomplete {
  position: relative;
  min-width: 0;
}

.address-autocomplete .input-shell {
  width: 100%;
}

.address-autocomplete .input-shell input {
  min-width: 0;
}

.address-suggestion-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 16px 38px rgba(24, 54, 42, 0.18);
}

.address-suggestion-panel[hidden] {
  display: none;
}

.address-suggestion-panel button {
  display: grid;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.address-suggestion-panel button:last-child {
  border-bottom: 0;
}

.address-suggestion-panel button:hover,
.address-suggestion-panel button.is-active {
  background: #edf4f1;
}

.address-suggestion-panel button > svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.address-suggestion-panel button span,
.address-suggestion-panel button strong,
.address-suggestion-panel button small {
  display: block;
  min-width: 0;
}

.address-suggestion-panel button strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-suggestion-panel button small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-suggestion-panel button em {
  color: var(--blue);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.address-suggestion-status {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.address-suggestion-status svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--green);
}

.address-suggestion-status [data-lucide="loader-circle"] {
  animation: multimodal-spin 0.9s linear infinite;
}

@keyframes multimodal-spin {
  to { transform: rotate(360deg); }
}

.multimodal-field > span:first-child,
.coordinate-details summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.multimodal-field b {
  color: var(--red);
}

.multimodal-field > input,
.coordinate-details input,
.input-unit {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.multimodal-field > input,
.coordinate-details input {
  padding: 0 12px;
  outline: 0;
}

.multimodal-field > input:focus,
.coordinate-details input:focus,
.input-unit:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 109, 139, 0.12);
}

.input-unit {
  display: flex;
  align-items: center;
}

.input-unit input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
}

.input-unit em {
  padding-right: 12px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.coordinate-details {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
}

.coordinate-details summary {
  cursor: pointer;
}

.coordinate-details[open] summary {
  margin-bottom: 12px;
}

.multimodal-search-button {
  width: 100%;
}

.multimodal-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px -20px 0;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f9f8;
}

.multimodal-results-summary span {
  color: var(--muted);
  font-size: 12px;
}

.multimodal-results-summary strong {
  color: var(--green-dark);
  font-size: 13px;
}

.multimodal-sort-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 -20px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.multimodal-sort-bar[hidden] {
  display: none;
}

.multimodal-sort-bar > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.multimodal-sort-options {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.multimodal-sort-options::-webkit-scrollbar {
  display: none;
}

.multimodal-sort-options button {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  color: #5c6963;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.multimodal-sort-options button:hover {
  color: var(--green-dark);
  background: #f3f7f5;
}

.multimodal-sort-options button[aria-pressed="true"] {
  color: var(--green-dark);
  border-color: #b9d1c6;
  background: var(--green-soft);
  font-weight: 750;
}

.multimodal-sort-options svg {
  width: 12px;
  height: 12px;
}

.multimodal-results {
  display: grid;
  max-height: 430px;
  overflow: auto;
}

.multimodal-empty {
  display: grid;
  min-height: 150px;
  padding: 25px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.multimodal-empty svg {
  width: 27px;
  height: 27px;
}

.multimodal-empty p {
  max-width: 320px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.multimodal-result {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
}

.multimodal-result:hover {
  background: #f7faf8;
}

.multimodal-result.is-selected {
  background: var(--green-soft);
  box-shadow: inset 3px 0 var(--green);
}

.multimodal-result__rank {
  color: #8a9690;
  font-size: 11px;
  font-weight: 750;
}

.multimodal-result__body,
.multimodal-result__price {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.multimodal-result__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.multimodal-result__title strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multimodal-result__title em {
  padding: 2px 5px;
  color: var(--blue);
  border: 1px solid #bcd1dc;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.multimodal-result__body > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multimodal-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #55645d;
  font-size: 10px;
}

.multimodal-result__price {
  justify-items: end;
}

.multimodal-result__price small,
.multimodal-result__price em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.multimodal-result__price strong {
  color: var(--green-dark);
  font-size: 13px;
  white-space: nowrap;
}

.multimodal-result > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.multimodal-map-panel {
  display: grid;
  grid-template-rows: auto auto minmax(430px, 1fr) auto;
}

.multimodal-map-toolbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.multimodal-map-toolbar > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.multimodal-map-heading-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.map-provider-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(10, 108, 82, 0.24);
  border-radius: 4px;
  background: #eef7f3;
  color: #075e48;
  font-size: 9px;
  white-space: nowrap;
}

.map-provider-status svg {
  width: 11px;
  height: 11px;
}

.map-provider-status b {
  font-weight: 760;
}

.map-provider-status[data-state="loading"] svg {
  animation: spin 1s linear infinite;
}

.map-provider-status[data-state="fallback"] {
  border-color: rgba(168, 97, 18, 0.28);
  background: #fff8ee;
  color: #884b0e;
}

.multimodal-map-toolbar strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multimodal-route-strip {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}

.multimodal-route-strip span {
  color: #405048;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.multimodal-route-strip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--green);
}

.multimodal-map-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #e8eeeb;
}

.multimodal-route-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 430px;
  overflow: hidden;
  background: #eef3f0;
  font-size: 10px;
}

.multimodal-route-map.leaflet-container,
.multimodal-route-map.amap-container {
  font-size: 10px;
}

.multimodal-route-map .leaflet-tile-pane,
.multimodal-route-map .amap-layer {
  filter: saturate(0.76) contrast(0.92) brightness(1.04);
  opacity: 0.88;
}

.multimodal-route-map .leaflet-control-container {
  font-family: inherit;
}

.multimodal-route-map .leaflet-popup-content {
  margin: 11px 14px;
  font-size: 12px;
  line-height: 1.55;
}

.multimodal-route-map .leaflet-popup-content strong {
  color: var(--green-dark);
}

.multimodal-route-map .amap-logo,
.multimodal-route-map .amap-copyright {
  opacity: 0.72;
  font-size: 9px !important;
}

.multimodal-route-map .amap-place-marker {
  display: grid;
  width: max-content;
  max-width: min(280px, 60vw);
  justify-items: center;
  gap: 3px;
  pointer-events: auto;
}

.multimodal-route-map .amap-place-marker b {
  display: block;
  box-sizing: border-box;
  max-width: min(280px, 60vw);
  padding: 6px 9px;
  border: 1px solid rgba(19, 43, 33, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 10px rgba(19, 43, 33, 0.16);
  color: #18352b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.multimodal-route-map .amap-place-marker i {
  display: block;
  width: 19px;
  height: 19px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #356d8b;
  box-shadow: 0 2px 7px rgba(19, 43, 33, 0.3);
}

.multimodal-route-map .amap-place-marker.is-origin b {
  border-color: rgba(168, 97, 18, 0.45);
  color: #884b0e;
}

.multimodal-route-map .amap-place-marker.is-origin i {
  background: #a86112;
}

.multimodal-route-map .amap-place-marker.is-station b {
  border-color: rgba(53, 109, 139, 0.45);
  color: #285b77;
}

.multimodal-route-map .amap-place-marker.is-water b {
  border-color: rgba(24, 120, 165, 0.45);
  color: #12658c;
}

.multimodal-route-map .amap-place-marker.is-water i {
  background: #1878a5;
}

.multimodal-route-map .amap-place-marker.is-port b {
  border-color: rgba(10, 108, 82, 0.45);
  color: #075e48;
}

.multimodal-route-map .amap-place-marker.is-port i {
  background: #0a6c52;
}

.multimodal-route-map .amap-place-marker.is-destination b {
  border-color: rgba(10, 108, 82, 0.6);
  box-shadow: 0 4px 12px rgba(10, 76, 58, 0.2);
}

.multimodal-route-map .amap-info-content {
  min-width: 150px;
  color: #3a4a43;
  font-size: 12px;
  line-height: 1.55;
}

.multimodal-route-map .amap-info-content strong {
  color: var(--green-dark);
}

.multimodal-route-map .multimodal-place-label {
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, 60vw);
  padding: 6px 9px;
  border: 1px solid rgba(19, 43, 33, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(19, 43, 33, 0.16);
  color: #18352b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.multimodal-route-map .multimodal-place-label::before {
  display: none;
}

.multimodal-route-map .multimodal-place-label.is-origin {
  border-color: rgba(168, 97, 18, 0.45);
  color: #884b0e;
}

.multimodal-route-map .multimodal-place-label.is-station {
  border-color: rgba(53, 109, 139, 0.45);
  color: #285b77;
}

.multimodal-route-map .multimodal-place-label.is-water {
  border-color: rgba(24, 120, 165, 0.45);
  color: #12658c;
}

.multimodal-route-map .multimodal-place-label.is-port {
  border-color: rgba(10, 108, 82, 0.45);
  color: #075e48;
}

.multimodal-route-map .multimodal-place-label.is-destination {
  border-color: rgba(10, 108, 82, 0.6);
  box-shadow: 0 4px 12px rgba(10, 76, 58, 0.2);
}

.multimodal-route-map .leaflet-overlay-pane svg {
  width: auto;
  height: auto;
}

.multimodal-route-map .leaflet-overlay-pane canvas {
  width: auto;
  height: auto;
}

.multimodal-route-map[hidden] {
  display: none;
}

.multimodal-map-legend {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 51, 40, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(23, 51, 40, 0.13);
}

.multimodal-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #42554c;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.multimodal-map-legend i {
  display: block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: #a86112;
}

.multimodal-map-legend [data-legend="rail"] i {
  height: 9px;
  border-radius: 0;
  background:
    linear-gradient(#315d4e, #315d4e) 0 1px / 100% 2px no-repeat,
    linear-gradient(#315d4e, #315d4e) 0 6px / 100% 2px no-repeat,
    repeating-linear-gradient(
      90deg,
      transparent 0 3px,
      #315d4e 3px 5px,
      transparent 5px 9px
    );
}

.multimodal-map-legend [data-legend="water"] i {
  background: repeating-linear-gradient(90deg, #1878a5 0 8px, transparent 8px 12px);
}

.multimodal-map-legend[data-mode="default"] [data-legend],
.multimodal-map-legend[data-mode="rail"] [data-legend="water"],
.multimodal-map-legend[data-mode="water"] [data-legend="rail"] {
  display: none;
}

.route-map__grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(#d4dfd9 1px, transparent 1px),
    linear-gradient(90deg, #d4dfd9 1px, transparent 1px);
  background-size: 42px 42px;
}

.route-map__water {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22%;
  padding: 18px;
  color: #4f7990;
  background: #dce9ef;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.route-map__line {
  position: absolute;
  z-index: 2;
  height: 4px;
  border-radius: 4px;
  transform-origin: left center;
}

.route-map__line--road {
  top: 66%;
  left: 20%;
  width: 35%;
  background: var(--amber);
  transform: rotate(-28deg);
}

.route-map__line--main {
  top: 42%;
  left: 50%;
  width: 37%;
  background: var(--green);
  transform: rotate(23deg);
}

.route-map__line::after {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 0;
  height: 0;
  color: inherit;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  content: "";
}

.route-map__line--road::after {
  color: var(--amber);
}

.route-map__line--main::after {
  color: var(--green);
}

.route-map__point {
  position: absolute;
  z-index: 3;
  display: grid;
  width: min(190px, 28%);
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 44, 36, 0.12);
}

.route-map__point svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  color: var(--green);
}

.route-map__point small {
  color: var(--muted);
  font-size: 9px;
}

.route-map__point strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.route-map__point--origin {
  bottom: 17%;
  left: 8%;
}

.route-map__point--node {
  top: 18%;
  left: 43%;
}

.route-map__point--port {
  right: 5%;
  bottom: 11%;
}

.route-map__legend {
  position: absolute;
  bottom: 13px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #405048;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 9px;
}

.route-map__legend svg {
  width: 13px;
  height: 13px;
}

.multimodal-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    linear-gradient(#dfe7e3 1px, transparent 1px),
    linear-gradient(90deg, #dfe7e3 1px, transparent 1px),
    #eef3f0;
  background-size: 38px 38px;
  color: #52635a;
  text-align: center;
}

.multimodal-map-placeholder[hidden] {
  display: none;
}

.multimodal-map-placeholder svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--green);
}

.multimodal-map-placeholder p {
  max-width: 360px;
  margin: 7px 20px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.multimodal-route-facts {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.multimodal-route-facts > span {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.multimodal-route-facts > span:last-child {
  border-right: 0;
}

.multimodal-route-facts small {
  color: var(--muted);
  font-size: 10px;
}

.multimodal-route-facts strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

  .multimodal-results {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .multimodal-workspace {
    padding-top: 16px;
  }

  .multimodal-layout {
    gap: 12px;
  }

  .multimodal-planner {
    padding: 16px;
  }

  .multimodal-form-row {
    grid-template-columns: 1fr;
  }

  .multimodal-container-options {
    grid-template-columns: 1fr;
  }

  .multimodal-results-summary {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .multimodal-sort-bar {
    align-items: flex-start;
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .multimodal-sort-options {
    flex-wrap: wrap;
    overflow: visible;
  }

  .multimodal-result {
    grid-template-columns: 24px minmax(0, 1fr) 16px;
  }

  .multimodal-result__price {
    grid-column: 2 / 3;
    justify-items: start;
  }

  .multimodal-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .multimodal-map-toolbar .button {
    width: 100%;
  }

  .multimodal-map-stage,
  .multimodal-route-map {
    min-height: 360px;
  }

  .multimodal-map-legend {
    right: 8px;
    bottom: 8px;
    gap: 7px;
  }

  .route-map__point {
    width: 31%;
    padding: 8px;
  }

  .route-map__point strong {
    font-size: 10px;
  }

  .route-map__legend {
    right: 10px;
    left: 10px;
    justify-content: center;
  }

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

  .multimodal-route-facts > span:nth-child(2) {
    border-right: 0;
  }

  .multimodal-route-facts > span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(53, 109, 139, 0.26);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.shell {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar__inner,
.topbar__actions,
.brand {
  display: flex;
  align-items: center;
}

.topbar__inner {
  height: 100%;
  justify-content: space-between;
}

.brand {
  min-width: 0;
  gap: 11px;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border-radius: 6px;
}

.brand__mark svg {
  width: 21px;
  height: 21px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.topbar__actions {
  flex: 0 0 auto;
  gap: 8px;
}

.demo-badge,
.status-badge,
.service-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.demo-badge {
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.icon-button:hover {
  color: var(--green-dark);
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.history-button {
  margin-right: 2px;
}

.counter {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 750;
}

.overview {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.overview__copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.overview h1 {
  margin: 7px 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.overview__copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.metrics {
  display: grid;
  min-width: 620px;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
}

.metrics div {
  min-width: 0;
  padding: 6px 28px;
  border-left: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.metrics dd {
  margin: 5px 0 0;
  font-size: 30px;
  font-weight: 760;
  line-height: 1.1;
}

.metrics__interactive dd {
  margin-top: 1px;
}

.metrics__interactive button {
  display: flex;
  min-height: 38px;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  text-align: left;
}

.metrics__interactive button:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metrics__interactive span {
  font-size: 25px;
  font-weight: 760;
}

.metrics__interactive small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.filters {
  display: grid;
  align-items: end;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
  grid-template-columns: minmax(220px, 1.35fr) minmax(160px, 0.75fr) minmax(160px, 0.75fr) auto;
}

.filters label,
.status-filter {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.input-shell,
.select-shell {
  position: relative;
  display: flex;
  height: 42px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.input-shell:focus-within,
.select-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 109, 139, 0.12);
}

.input-shell > svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.input-shell input,
.select-shell select {
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.input-shell input {
  padding: 0 12px 0 40px;
}

.input-shell input::placeholder {
  color: #8a9690;
}

.select-shell select {
  position: relative;
  z-index: 1;
  padding: 0 36px 0 12px;
  appearance: none;
}

.select-shell > svg {
  position: absolute;
  right: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.segmented {
  display: grid;
  height: 42px;
  padding: 3px;
  background: #dde5e1;
  border-radius: 6px;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
}

.segmented button {
  min-width: 0;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 5px rgba(27, 48, 39, 0.1);
}

.catalog {
  padding-top: 34px;
  padding-bottom: 54px;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-kicker svg {
  width: 14px;
  height: 14px;
}

.catalog__heading h2 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.25;
}

.catalog__heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(29, 48, 40, 0.04);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce3df;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card.is-soldout .product-card__media img {
  filter: grayscale(0.65) saturate(0.7);
  opacity: 0.82;
}

.product-card__badges {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.service-badge {
  color: #fff;
  background: rgba(23, 33, 29, 0.82);
  backdrop-filter: blur(6px);
}

.status-badge.is-available {
  color: var(--green-dark);
  background: var(--green-soft);
}

.status-badge.is-low {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-badge.is-soldout {
  color: var(--red);
  background: var(--red-soft);
}

.product-card__body {
  display: flex;
  min-height: 288px;
  padding: 17px;
  flex: 1;
  flex-direction: column;
}

.route-code {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.route-title {
  display: grid;
  align-items: center;
  gap: 7px;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  font-size: 16px;
  line-height: 1.35;
}

.route-title span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.route-title span:last-child {
  text-align: right;
}

.route-title svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.route-details {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.route-details div {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 8px;
  grid-template-columns: 18px 52px minmax(0, 1fr);
}

.route-details dt,
.route-details dd {
  margin: 0;
  font-size: 12px;
}

.route-details dt {
  color: var(--muted);
}

.route-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.route-details svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.inventory {
  margin-top: auto;
  padding-top: 18px;
}

.inventory__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.inventory__header span {
  color: var(--muted);
  font-size: 11px;
}

.inventory__header strong {
  font-size: 19px;
  white-space: nowrap;
}

.inventory__header strong em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 550;
}

.stock-track {
  height: 5px;
  margin: 9px 0 14px;
  overflow: hidden;
  background: #e5eae7;
  border-radius: 3px;
}

.stock-track span {
  display: block;
  width: var(--stock-percent);
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 260ms ease;
}

.product-card.is-low .stock-track span {
  background: var(--amber);
}

.product-card.is-soldout .stock-track span {
  background: var(--red);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 720;
}

.button--primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button--secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button--secondary:hover {
  background: var(--surface-muted);
}

.button:disabled {
  cursor: not-allowed;
  color: #7c8983;
  background: #e2e7e4;
  border-color: #e2e7e4;
}

.product-card .button {
  width: 100%;
}

.empty-state {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state > svg {
  width: 30px;
  height: 30px;
  color: var(--muted);
}

.empty-state h3 {
  margin: 13px 0 4px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(12, 28, 21, 0.24);
}

.dialog::backdrop {
  background: rgba(13, 27, 22, 0.52);
  backdrop-filter: blur(3px);
}

.dialog form,
.dialog--history {
  padding: 24px;
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog__header h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.route-summary {
  display: grid;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  font-size: 16px;
}

.route-summary span,
.route-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.route-summary strong {
  text-align: right;
}

.route-summary svg {
  color: var(--green);
}

.booking-stock,
.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.booking-stock {
  padding: 18px 0 0;
}

.booking-stock span,
.quantity-field > span:first-child {
  color: var(--muted);
  font-size: 13px;
}

.booking-stock strong {
  font-size: 18px;
}

.quantity-field {
  margin-top: 20px;
}

.stepper {
  display: grid;
  width: 168px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  grid-template-columns: 42px 1fr 42px;
}

.stepper button,
.stepper input {
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
}

.stepper button {
  display: grid;
  place-items: center;
}

.stepper button:hover {
  background: var(--surface-muted);
}

.stepper button:first-child {
  border-right: 1px solid var(--line);
}

.stepper button:last-child {
  border-left: 1px solid var(--line);
}

.stepper input {
  text-align: center;
  appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
  text-align: right;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.history-list {
  margin-top: 20px;
}

.history-item {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.history-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}

.history-item__route {
  min-width: 0;
}

.history-item__route strong,
.history-item__route small {
  display: block;
}

.history-item__route strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item__route small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.history-item__quantity {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.history-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.history-empty svg {
  width: 28px;
  height: 28px;
}

.history-empty p {
  margin: 12px 0 0;
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-height: 48px;
  max-width: min(420px, calc(100% - 32px));
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #fff;
  background: #183b30;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(10, 32, 24, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  color: #91dec2;
}

@media (max-width: 1180px) {
  .filters {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .status-filter {
    grid-column: 1 / -1;
  }

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

@media (max-width: 900px) {
  .overview {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .metrics {
    width: 100%;
    min-width: 0;
  }

  .metrics div:first-child {
    padding-left: 0;
    border-left: 0;
  }

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1420px);
  }

  .topbar {
    height: 62px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand small,
  .demo-badge {
    display: none;
  }

  .overview {
    min-height: 0;
  }

  .overview h1 {
    font-size: 29px;
  }

  .metrics div {
    padding: 12px 14px;
  }

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

  .metrics div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metrics div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .metrics dt {
    min-height: 34px;
    line-height: 1.4;
  }

  .metrics dd {
    font-size: 25px;
  }

  .filters {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }

  .search-field,
  .status-filter {
    grid-column: 1 / -1;
  }

  .segmented {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .catalog {
    padding-top: 28px;
  }

  .catalog__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .product-card__body {
    min-height: 274px;
  }

  .footer__inner {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .dialog form,
  .dialog--history {
    padding: 19px;
  }

  .dialog__actions .button {
    flex: 1;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}

.brand--link {
  color: inherit;
  text-decoration: none;
}

.admin-link {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
}

.admin-link:hover {
  color: var(--green-dark);
  background: var(--surface-muted);
}

.login-button {
  min-height: 38px;
  height: 38px;
}

.account-button {
  display: grid;
  min-width: 188px;
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  text-align: left;
}

.account-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.account-button > svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 760;
}

.account-button__copy {
  min-width: 0;
}

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

.account-button__copy strong {
  font-size: 12px;
}

.account-button__copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.loading-state {
  display: grid;
  min-height: 370px;
  align-items: stretch;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
}

.loading-state span {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #e7ece9;
  animation: loading-pulse 1.2s ease-in-out infinite alternate;
}

.loading-state span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-state span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes loading-pulse {
  to {
    background: #f1f4f2;
  }
}

.system-error {
  display: grid;
  min-height: 180px;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-error > svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.system-error strong {
  display: block;
  font-size: 16px;
}

.system-error p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.buyer-summary {
  display: grid;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 38px minmax(0, 1fr);
}

.buyer-summary__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
}

.buyer-summary small,
.buyer-summary strong,
.buyer-summary em {
  display: block;
}

.buyer-summary small {
  color: var(--muted);
  font-size: 10px;
}

.buyer-summary strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.buyer-summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.dialog--auth {
  width: min(700px, calc(100% - 32px));
  padding: 24px;
}

.dialog--account {
  width: min(680px, calc(100% - 32px));
  padding: 24px;
}

.auth-dialog__header {
  margin-bottom: 20px;
}

.auth-tabs {
  display: grid;
  height: 44px;
  padding: 3px;
  background: var(--surface-muted);
  border-radius: 6px;
  grid-template-columns: 1fr 1fr;
}

.auth-tabs button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.auth-tabs button.is-active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 5px rgba(27, 48, 39, 0.1);
}

.dialog--auth .auth-form {
  display: grid;
  gap: 14px;
  padding: 20px 0 0;
}

.dialog--auth .auth-form[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.form-field > span b {
  color: var(--red);
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
}

.form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 109, 139, 0.12);
}

.company-field input {
  border-color: #9db7aa;
  background: #fbfdfc;
}

.form-error--left {
  margin: 0;
  text-align: left;
}

.button--full {
  width: 100%;
}

.account-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.account-profile-heading h3 {
  margin: 0;
  font-size: 15px;
}

.profile-grid {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}

.profile-field {
  min-width: 0;
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-field:nth-child(even) {
  padding-right: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.profile-field span,
.profile-field strong {
  display: block;
}

.profile-field span {
  color: var(--muted);
  font-size: 10px;
}

.profile-field strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.pending-email-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #e7c979;
  border-radius: 6px;
  color: #76540b;
  background: #fff9e8;
  font-size: 11px;
  line-height: 1.6;
}

.profile-change-history {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}

.profile-change-history > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
}

.profile-change-history > summary::-webkit-details-marker {
  display: none;
}

.profile-change-history > summary svg {
  width: 16px;
  height: 16px;
}

.profile-change-history > summary em {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.profile-change-history .customer-revision-history__list {
  max-height: 240px;
  padding: 0 10px 10px;
}

.dialog--profile-edit {
  width: min(680px, calc(100vw - 28px));
}

.email-change-guidance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #c8dadd;
  border-radius: 6px;
  color: #38555c;
  background: #f3f8f9;
}

.email-change-guidance svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.email-change-guidance p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.profile-password-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}

.profile-password-section > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}

.profile-password-section > summary::-webkit-details-marker {
  display: none;
}

.profile-password-section > summary > svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex: 0 0 auto;
}

.profile-password-section > summary > svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--muted);
  transition: transform 160ms ease;
}

.profile-password-section[open] > summary > svg:last-child {
  transform: rotate(180deg);
}

.profile-password-section > summary span,
.profile-password-section > summary strong,
.profile-password-section > summary small {
  display: block;
}

.profile-password-section > summary strong {
  color: var(--ink);
  font-size: 12px;
}

.profile-password-section > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.profile-password-section__fields {
  display: grid;
  gap: 14px;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}

#profileEmailActivationHint a {
  color: inherit;
  font-weight: 750;
}

.account-orders__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.account-orders__heading h3 {
  margin: 0;
  font-size: 15px;
}

.account-orders__heading span {
  color: var(--muted);
  font-size: 11px;
}

.account-orders {
  max-height: 290px;
  margin-top: 9px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.account-order {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.account-order__actions {
  align-self: center;
}

.account-order__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 5px;
}

.account-order__main {
  min-width: 0;
}

.account-order__main strong,
.account-order__main small {
  display: block;
}

.account-order__main strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order__main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.account-order__status {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.account-order__status strong {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.order-edit-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  color: #245e50;
  background: #f4faf7;
  border: 1px solid #a9c8bd;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.order-edit-button:hover {
  color: #fff;
  background: #245e50;
  border-color: #245e50;
}

.order-edit-button:disabled,
.order-edit-button:disabled:hover {
  color: #92999c;
  background: #eceff0;
  border-color: #d2d7d9;
  cursor: not-allowed;
  opacity: 0.82;
}

.order-edit-button svg {
  width: 13px;
  height: 13px;
}

.order-edit-button--compact {
  min-height: 26px;
  padding: 0 8px;
  font-size: 9px;
}

.order-stage {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.order-stage.is-upcoming {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #e5c493;
}

.order-stage.is-in_transit {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bfd4df;
}

.order-stage.is-arrived {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #bdd5c9;
}

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

.mini-loading {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .admin-link span,
  .account-button__copy,
  .account-button > svg {
    display: none;
  }

  .admin-link {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .account-button {
    min-width: 44px;
    width: 44px;
    grid-template-columns: 34px;
  }

  .login-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .login-button svg {
    width: 18px;
    height: 18px;
  }

  .loading-state {
    min-height: 900px;
    grid-template-columns: 1fr;
  }

  .loading-state span:nth-child(3) {
    display: none;
  }

  .dialog--auth,
  .dialog--account {
    padding: 19px;
  }

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

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

  .form-field--full {
    grid-column: auto;
  }

  .system-error {
    align-items: start;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .system-error .button {
    grid-column: 1 / -1;
  }
}

.product-list-header,
.product-list-row {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns:
    minmax(250px, 1.45fr)
    minmax(120px, 0.75fr)
    minmax(120px, 0.75fr)
    112px
    105px
    116px
    120px
    110px
    126px;
}

.product-list-header {
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted);
  background: #e9efec;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  font-size: 10px;
  font-weight: 720;
}

.sort-heading {
  display: inline-flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sort-heading:hover,
.sort-heading.is-active {
  color: var(--green-dark);
}

.sort-heading svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.product-list {
  display: grid;
  gap: 7px;
}

.catalog-pagination {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #f7f9f8;
}

.catalog-pagination[hidden] {
  display: none;
}

.catalog-pagination__summary {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  font-size: 11px;
}

.catalog-pagination__summary strong {
  color: var(--green-dark);
  font-size: 13px;
}

.catalog-pagination__summary b {
  color: var(--ink);
}

.catalog-pagination__controls,
.catalog-pagination__controls > label,
.catalog-pagination__pages,
.catalog-page-numbers {
  display: flex;
  align-items: center;
}

.catalog-pagination__controls {
  gap: 14px;
}

.catalog-pagination__controls > label {
  gap: 7px;
  font-size: 10px;
  white-space: nowrap;
}

.select-shell--compact {
  min-width: 94px;
}

.select-shell--compact select {
  min-height: 34px;
  padding: 0 30px 0 10px;
  font-size: 11px;
}

.catalog-pagination__pages {
  gap: 5px;
}

.catalog-page-numbers {
  gap: 3px;
}

.catalog-page-arrow,
.catalog-page-number {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  place-items: center;
  color: #53615a;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.catalog-page-arrow:hover:not(:disabled),
.catalog-page-number:hover,
.catalog-page-number[aria-current="page"] {
  color: var(--green-dark);
  border-color: #b9d1c6;
  background: var(--green-soft);
}

.catalog-page-number[aria-current="page"] {
  font-weight: 800;
}

.catalog-page-arrow:disabled {
  color: #aeb7b3;
  cursor: not-allowed;
}

.catalog-page-arrow svg {
  width: 16px;
  height: 16px;
}

.catalog-page-ellipsis {
  display: grid;
  width: 22px;
  height: 34px;
  place-items: center;
  color: #929d98;
  font-size: 11px;
}

.product-list-header + .product-list .product-list-row:first-child {
  border-radius: 0 0 7px 7px;
}

.product-list-row {
  min-width: 0;
  min-height: 94px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(29, 48, 40, 0.03);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.product-list-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 7px 20px rgba(29, 48, 40, 0.07);
}

.product-list-product {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 12px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.product-list-media {
  width: 112px;
  height: 70px;
  overflow: hidden;
  background: #e2e9e5;
  border-radius: 5px;
}

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

.product-list-row.is-soldout .product-list-media img {
  filter: grayscale(0.65) saturate(0.7);
  opacity: 0.82;
}

.product-list-copy {
  min-width: 0;
}

.product-list-copy span,
.product-list-copy strong,
.product-list-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-copy span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
}

.product-list-copy strong {
  margin-top: 4px;
  font-size: 14px;
}

.product-list-copy small {
  display: none;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.product-list-cell {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 6px;
  grid-template-columns: 16px minmax(0, 1fr);
}

.product-list-cell svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.product-list-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.product-list-stock {
  min-width: 0;
}

.product-list-stock > strong {
  font-size: 19px;
}

.product-list-stock > strong em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 550;
}

.product-list-stockbar {
  width: 86px;
  max-width: 100%;
}

.product-list-stockbar .stock-track {
  height: 4px;
  margin: 7px 0 0;
}

.product-list-row.is-low .stock-track span {
  background: var(--amber);
}

.product-list-row.is-soldout .stock-track span {
  background: var(--red);
}

.product-list-status {
  display: grid;
  gap: 4px;
  justify-items: start;
  justify-content: flex-start;
}

.release-status-summary,
.space-release-status {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.release-status-summary.is-pending,
.space-release-status.is-pending {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #e4c28d;
}

.release-status-summary.is-released,
.space-release-status.is-released {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #b7d2c5;
}

.release-status-summary.is-revision-pending,
.space-release-status.is-revision-pending {
  color: #9e2626;
  background: #fff0f0;
  border-color: #e4a0a0;
}

.product-list-booking {
  min-width: 0;
}

.product-booking-empty {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.product-booking-toggle {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 8px;
  color: var(--green-dark);
  background: #eef5f1;
  border: 1px solid #cadbd2;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.product-booking-toggle:hover {
  background: #e5f0ea;
  border-color: #9fbbae;
}

.product-booking-toggle svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 150ms ease;
}

.product-booking-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.product-booking-detail {
  min-width: 0;
  padding: 11px 12px;
  background: #f4f7f5;
  border: 1px solid #d9e3de;
  border-radius: 5px;
  grid-column: 1 / -1;
}

.product-booking-detail__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.product-booking-detail__heading strong {
  font-size: 11px;
}

.product-booking-detail__heading span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
}

.product-booking-detail__list {
  display: grid;
  gap: 6px;
}

.product-booking-order {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(125px, 0.9fr) 88px minmax(150px, 1fr) 112px minmax(165px, 1.1fr) auto;
}

.product-booking-order > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-booking-order em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.product-booking-order strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.product-booking-order strong.is-pending {
  color: var(--muted);
  font-weight: 620;
}

.order-revision-count {
  display: block;
  margin-top: 3px;
  color: #8a6262;
  font-size: 8px;
  line-height: 1.35;
  white-space: nowrap;
}

.product-booking-order__actions {
  grid-column: 7;
}

.product-booking-order__number {
  grid-column: 1;
}

.product-booking-order__bill {
  grid-column: 2;
}

.product-booking-order__quantity {
  grid-column: 3;
}

.product-booking-order__cargo {
  grid-column: 4;
}

.product-booking-order__note {
  grid-column: 1 / -1;
  padding: 6px 8px;
  background: #f7f9f8;
  border-left: 3px solid #9db9ae;
}

.booking-business-note {
  margin: 14px 0;
}

.booking-business-note textarea {
  min-height: 64px;
  resize: vertical;
}

.product-booking-order__confirmation {
  grid-column: 5;
}

.product-booking-order__schedule {
  grid-column: 6;
}

.customer-revision-history--inline {
  grid-column: 1 / -1;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.account-order__history {
  grid-column: 1 / -1;
}

.customer-revision-history__toggle {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #356b5d;
  background: #f6faf8;
  border: 1px solid #c9ddd4;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
}

.customer-revision-history__toggle:hover {
  background: #edf6f1;
  border-color: #9ebfb1;
}

.customer-revision-history__toggle > svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.customer-revision-history__toggle > span {
  flex: 1 1 auto;
  text-align: left;
}

.customer-revision-history__toggle > em {
  color: #855c5c;
  font-style: normal;
}

.customer-revision-history__toggle > svg:last-child {
  transition: transform 150ms ease;
}

.customer-revision-history__toggle[aria-expanded="true"] {
  margin-bottom: 8px;
}

.customer-revision-history__toggle[aria-expanded="true"] > svg:last-child {
  transform: rotate(180deg);
}

.customer-revision-history__list {
  display: grid;
  gap: 7px;
}

.customer-revision-history__item {
  padding: 8px 10px;
  background: #f8faf9;
  border-left: 3px solid #8cb3a6;
  border-radius: 0 4px 4px 0;
}

.customer-revision-history__item.is-confirmed {
  border-left-color: #32745f;
}

.customer-revision-history__item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-revision-history__item strong {
  color: var(--green-dark);
  font-size: 10px;
}

.customer-revision-history__item span {
  color: var(--muted);
  font-size: 8px;
}

.customer-revision-history__item p {
  margin: 5px 0 0;
  color: #4c585d;
  font-size: 9px;
  line-height: 1.55;
}

.customer-revision-history__empty {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  background: #f7f9f8;
  font-size: 9px;
}

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

.customer-revision-history__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.customer-revision-history__heading h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.customer-revision-history__heading > strong {
  color: var(--green-dark);
  font-size: 11px;
}

.product-booking-order__schedule {
  gap: 4px !important;
}

.product-booking-order__confirmation {
  gap: 4px !important;
}

.product-booking-order__confirmation .space-release-status {
  justify-self: start;
}

.product-booking-order__schedule .order-stage {
  justify-self: start;
}

.product-booking-order__schedule small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.status-badge.is-departed {
  color: #5d6670;
  background: #edf0f2;
  border-color: #d8dde1;
}

.product-list-row.is-departed {
  background: #fafbfb;
}

.product-list-row.is-departed .product-list-media img {
  filter: saturate(0.55);
  opacity: 0.82;
}

.special-booking-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#bookingDialog {
  width: min(1040px, calc(100vw - 32px));
}

.special-booking-heading,
.cargo-config-group__heading,
.cargo-category-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.special-booking-heading h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.cargo-quantity-check {
  min-width: 158px;
  padding: 8px 10px;
  border: 1px solid #d7dde1;
  border-radius: 6px;
  color: #5f6970;
  background: #f8f9fa;
  text-align: center;
  font-size: 13px;
}

.cargo-quantity-check.is-valid {
  color: #176442;
  border-color: #add7c2;
  background: #eef8f2;
}

.cargo-quantity-check.is-invalid {
  color: #9c4d25;
  border-color: #e8c3ad;
  background: #fff7f2;
}

.special-booking-fields textarea {
  width: 100%;
  resize: vertical;
  min-height: 70px;
}

.cargo-category-summary {
  justify-content: flex-start;
  margin: 14px 0;
}

.cargo-category-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 145px;
  padding: 8px 10px;
  border-left: 3px solid #1f6e59;
  background: #f3f7f5;
  font-size: 13px;
}

.cargo-category-summary svg {
  width: 17px;
  height: 17px;
}

.cargo-config-groups {
  display: grid;
  gap: 14px;
}

.cargo-config-group {
  padding: 14px 0 0;
  border-top: 1px solid #e3e7e8;
}

.cargo-config-group__heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cargo-config-group__heading > div > svg {
  width: 22px;
  height: 22px;
  color: #1f6e59;
}

.cargo-config-group__heading span {
  display: grid;
  gap: 2px;
}

.cargo-config-group__heading small {
  color: #69747a;
  font-size: 12px;
}

.cargo-item-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.cargo-item-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(105px, 0.55fr) minmax(180px, 1.2fr) minmax(130px, 0.7fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce2e3;
  border-radius: 6px;
  background: #fbfcfc;
}

.cargo-item-row__heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cargo-item-row .row-icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e1c9c4;
  border-radius: 5px;
  place-items: center;
  color: #9c3f30;
  background: #fff;
  cursor: pointer;
}

.cargo-item-row .row-icon-button svg {
  width: 16px;
  height: 16px;
}

.cargo-manual-entry {
  display: grid;
  gap: 5px;
}

.cargo-manual-entry[hidden] {
  display: none;
}

.cargo-manual-entry > span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
}

.cargo-manual-entry > button {
  justify-self: start;
  padding: 0;
  color: #2f6b5b;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}

.measurement-input {
  position: relative;
  display: block;
  min-width: 0;
}

.measurement-input input {
  width: 100%;
  padding-right: 38px !important;
}

.measurement-input em {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--muted);
  transform: translateY(-50%);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
  pointer-events: none;
}

.product-booking-order__cargo {
  grid-column: 4;
}

.product-booking-order__cargo strong {
  white-space: normal;
}

.account-order__cargo {
  color: #356b5d;
}

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

.verification-copy {
  margin: 0 0 18px;
  color: #5f6970;
  line-height: 1.6;
}

.local-code-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #b67c22;
  color: #72501a;
  background: #fff8e9;
}

.verification-actions {
  justify-content: space-between;
}

@media (max-width: 780px) {
  .special-booking-heading,
  .cargo-config-group__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cargo-item-row {
    grid-template-columns: 1fr;
  }

  .cargo-item-row__heading {
    grid-column: 1;
  }

  .cargo-category-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-revision-history__item > div,
  .customer-revision-history__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.product-list-action .button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.list-loading {
  display: grid;
  gap: 7px;
}

.list-loading span {
  display: block;
  height: 94px;
  background: #e7ece9;
  border: 1px solid var(--line);
  border-radius: 7px;
  animation: loading-pulse 1.2s ease-in-out infinite alternate;
}

.list-loading span:nth-child(2) {
  animation-delay: 100ms;
}

.list-loading span:nth-child(3) {
  animation-delay: 200ms;
}

.list-loading span:nth-child(4) {
  animation-delay: 300ms;
}

@media (max-width: 1360px) {
  .product-list-header,
  .product-list-row {
    grid-template-columns: minmax(250px, 1fr) 110px 110px 100px 112px 100px 118px;
  }

  .product-list-header span:nth-child(4),
  .product-list-header span:nth-child(5),
  .product-list-sailing,
  .product-list-transit {
    display: none;
  }

  .product-list-copy small {
    display: block;
  }
}

@media (max-width: 1050px) {
  .product-list-header,
  .product-list-row {
    grid-template-columns: minmax(220px, 1fr) 90px 105px 90px 110px;
  }

  .product-list-header span:nth-child(2),
  .product-list-header span:nth-child(3),
  .product-list-origin,
  .product-list-destination {
    display: none;
  }
}

@media (max-width: 760px) {
  .product-list-header {
    display: none;
  }

  .product-list {
    gap: 8px;
  }

  .catalog-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 11px 0;
    background: transparent;
  }

  .catalog-pagination__summary {
    justify-content: center;
  }

  .catalog-pagination__controls {
    justify-content: space-between;
    gap: 8px;
  }

  .catalog-pagination__controls > label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .catalog-page-arrow,
  .catalog-page-number {
    width: 32px;
    height: 32px;
  }

  .catalog-page-ellipsis {
    width: 14px;
    height: 32px;
  }

  .product-list-header + .product-list .product-list-row:first-child {
    border-radius: 7px;
  }

  .product-list-row {
    min-height: 0;
    align-items: center;
    gap: 9px 10px;
    padding: 10px;
    grid-template-areas:
      "product product product"
      "stock booking status"
      "action action action";
    grid-template-columns: 58px minmax(112px, 1fr) 92px;
  }

  .product-list-product {
    grid-area: product;
    gap: 9px;
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .product-list-media {
    width: 84px;
    height: 64px;
  }

  .product-list-copy strong {
    font-size: 12px;
  }

  .product-list-copy small {
    display: block;
    white-space: normal;
    line-height: 1.45;
  }

  .product-list-origin,
  .product-list-destination,
  .product-list-sailing,
  .product-list-transit {
    display: none;
  }

  .product-list-stock {
    grid-area: stock;
  }

  .product-list-booking {
    grid-area: booking;
  }

  .product-booking-toggle {
    width: min(132px, 100%);
  }

  .product-list-stock > strong {
    font-size: 16px;
  }

  .product-list-stockbar {
    width: 50px;
  }

  .product-list-status {
    grid-area: status;
    justify-content: end;
    justify-items: end;
  }

  .product-list-status .status-badge {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 9px;
  }

  .product-list-action {
    grid-area: action;
  }

  .product-list-action .button {
    min-height: 34px;
  }

  .product-booking-detail {
    padding: 9px;
    grid-column: 1 / -1;
  }

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

  .product-booking-order__actions,
  .product-booking-order__number,
  .product-booking-order__bill,
  .product-booking-order__quantity,
  .product-booking-order__cargo,
  .product-booking-order__note,
  .product-booking-order__confirmation,
  .product-booking-order__schedule {
    grid-column: auto;
  }

  .product-booking-order__cargo,
  .product-booking-order__note,
  .product-booking-order__schedule,
  .customer-revision-history--inline {
    grid-column: 1 / -1;
  }

  .product-booking-order__actions .order-edit-button {
    width: 100%;
  }

  .list-loading span {
    height: 118px;
  }
}
