:root {
  --ink: #1d1f1f;
  --muted: #6f7674;
  --line: #e4e8e6;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --teal: #1b6b67;
  --teal-dark: #0f4745;
  --brick: #b84a3a;
  --gold: #c69a35;
  --mist: #eef5f2;
  --shadow: 0 18px 45px rgba(20, 30, 32, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 96px;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 9px 14px;
  border: 1px solid #d8e3df;
  background: #f4faf8;
  color: var(--ink);
  font-size: 14px;
}

.notice-bar strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.notice-marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.notice-marquee span {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  color: var(--muted);
  white-space: nowrap;
  animation: notice-scroll 22s linear infinite;
}

@keyframes notice-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-marquee span {
    padding-left: 0;
    animation: none;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, serif;
  font-weight: 700;
}

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

.brand strong {
  font-size: 17px;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.language-toggle,
.auth-button,
.auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.auth-button {
  max-width: 180px;
}

.auth-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-button.is-logged-in {
  border-color: rgba(27, 107, 103, 0.28);
  background: var(--mist);
  color: var(--teal-dark);
}

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

.cart-chip,
.text-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.cart-chip strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 12px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 26px;
  align-items: stretch;
  padding: 30px 0 28px;
}

.hero-copy {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0;
  font-style: italic;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.14;
  font-weight: 500;
}

html[data-lang="en"] h1 {
  font-size: 39px;
}

.hero-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.primary-link,
.ghost-link,
.support-button,
.pay-button,
.mobile-cart-bar button,
.modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
}

.primary-link,
.pay-button,
.mobile-cart-bar button,
.modal-action.primary {
  background: var(--ink);
  color: white;
}

.ghost-link,
.support-button,
.modal-action.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.hero-visual figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: min(320px, calc(100% - 40px));
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.hero-visual span,
.hero-visual strong {
  display: block;
}

.hero-visual span {
  color: var(--brick);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-visual strong {
  margin-top: 3px;
  font-size: 18px;
}

.coverage-section {
  margin: 0 0 28px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
}

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

.coverage-heading h2 {
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
}

.coverage-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.coverage-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 88px;
}

.coverage-count strong {
  font-size: 34px;
  line-height: 1;
}

.coverage-count span {
  color: var(--muted);
  font-size: 13px;
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: stretch;
}

.coverage-map-card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background: #f8faf9;
  overflow: hidden;
}

#coverageMap {
  display: block;
  width: 100%;
  height: 430px;
  min-height: 430px;
}

#coverageMap.real-map,
#coverageMap.real-map .leaflet-container {
  background: #edf3f1;
}

.map-callout-card {
  position: absolute;
  z-index: 500;
  left: 16px;
  top: 16px;
  display: grid;
  gap: 3px;
  width: min(390px, calc(100% - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(228, 232, 230, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(20, 30, 32, 0.12);
  pointer-events: none;
}

.map-callout-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-callout-card strong {
  font-size: 17px;
  line-height: 1.22;
}

.map-callout-card small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 30, 32, 0.12);
}

.legend-dot.port {
  background: #c43d32;
}

.legend-dot.destination {
  background: #2368b4;
}

.legend-area {
  display: inline-block;
  width: 16px;
  height: 10px;
  border: 1px dashed #147dcc;
  background: rgba(79, 179, 255, 0.58);
}

.map-tooltip {
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(20, 30, 32, 0.12);
}

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

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

.coverage-card {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}

.coverage-card.is-active {
  border-color: var(--teal);
  background: var(--mist);
}

.coverage-card-head {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.coverage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--zone-color);
}

.coverage-card-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coverage-card-main strong,
.coverage-card-main small,
.coverage-card-main em {
  display: block;
}

.coverage-card-main small,
.coverage-card-main em {
  color: var(--muted);
}

.coverage-card-main em {
  font-style: normal;
  font-size: 13px;
}

.menu-shell {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 340px;
  align-items: start;
  min-height: 720px;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.zone-rail {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 720px;
  border-right: 1px solid var(--line);
  background: #f8faf9;
}

.zone-tab {
  width: 100%;
  min-height: 104px;
  padding: 18px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--muted);
}

.zone-tab span,
.zone-tab em,
.zone-tab small {
  display: block;
}

.zone-tab span {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.28;
}

.zone-tab em {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.zone-tab small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.zone-tab.is-active {
  border-left: 4px solid var(--ink);
  background: white;
}

.menu-panel {
  min-width: 0;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.cart-heading h2,
.support-section h2 {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 500;
}

.panel-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.secure-badge {
  flex: 0 0 auto;
  border: 1px solid #b9d7d2;
  background: var(--mist);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.item-list {
  display: grid;
}

.item-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 152px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.route-thumb {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(27, 107, 103, 0.10), rgba(198, 154, 53, 0.12)),
    #fff;
  padding: 0;
}

.route-thumb span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 50%;
  font-weight: 800;
}

.route-thumb:hover {
  border-color: var(--teal);
}

.item-copy {
  min-width: 0;
}

.item-copy h3 {
  margin-bottom: 4px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
}

.item-copy .en-name {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.package-line {
  margin-bottom: 0;
  color: #4c5452;
  font-size: 14px;
}

.item-action {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.price {
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
}

.add-button,
.qty-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.add-button {
  min-width: 86px;
  height: 40px;
  border-color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 36px 52px 36px;
  align-items: center;
  height: 38px;
  border: 1px solid var(--line);
}

.qty-control span,
.qty-input {
  text-align: center;
  font-weight: 700;
}

.qty-input {
  width: 52px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: white;
  color: var(--ink);
  appearance: textfield;
}

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

.qty-button {
  height: 36px;
  border: 0;
  background: #f8faf9;
  font-size: 20px;
}

.cart-qty-control {
  margin-top: 8px;
}

.checkout-panel {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 720px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #fbfcfb;
}

.cart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.text-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}

.cart-lines {
  display: grid;
  gap: 10px;
  min-height: 74px;
}

.empty-cart {
  margin: 0;
  padding: 16px;
  border: 1px dashed #cbd5d1;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line small {
  display: block;
}

.cart-line small {
  color: var(--muted);
}

.quote-form {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.quote-form label {
  display: grid;
  gap: 6px;
}

.quote-form span {
  color: var(--muted);
  font-size: 13px;
}

.quote-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.quote-form input:focus,
.add-button:focus,
.qty-button:focus,
.pay-button:focus,
.modal-close:focus,
.mobile-cart-bar button:focus {
  outline: 3px solid rgba(27, 107, 103, 0.18);
  outline-offset: 2px;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary span,
.cart-tip {
  color: var(--muted);
  font-size: 14px;
}

.cart-summary strong {
  font-size: 22px;
}

.cart-tip {
  margin: 16px 0;
}

.pay-button {
  width: 100%;
  min-height: 50px;
  border: 0;
}

.pay-button.is-account {
  background: var(--brick);
}

.support-section {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 28px;
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.support-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.support-section {
  align-items: center;
}

.support-button {
  justify-self: end;
  min-width: 190px;
}

.mobile-nav,
.mobile-cart-bar {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(18, 23, 24, 0.42);
}

.modal.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.modal-card h2 {
  margin: 0 34px 12px 0;
  font-size: 28px;
  line-height: 1.18;
}

.modal-card p {
  color: var(--muted);
}

.payment-preview {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

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

.payment-row span {
  color: var(--muted);
}

.masked-card {
  padding: 14px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-family: "Courier New", monospace;
}

.payment-unavailable {
  display: grid;
  gap: 14px;
}

.payment-unavailable > p {
  margin: 0;
  color: var(--muted);
}

.payment-unavailable .payment-preview {
  border-left: 4px solid var(--teal);
  background: var(--mist);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.lane-detail {
  display: grid;
  gap: 16px;
}

.detail-subtitle {
  margin-top: -8px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.route-detail-section {
  gap: 8px;
}

.route-map-caption {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.route-detail-map {
  width: 100%;
  height: 320px;
  min-height: 320px;
  border: 1px solid var(--line);
  background: #edf3f1;
}

.detail-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.detail-summary div,
.fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.detail-summary span {
  color: var(--muted);
  font-size: 13px;
}

.detail-summary strong,
.fee-row b {
  text-align: right;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-section h3 {
  margin: 0;
  font-size: 18px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
}

.fee-table {
  display: grid;
  border: 1px solid var(--line);
}

.fee-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.fee-row:last-child {
  border-bottom: 0;
}

.fee-row strong,
.fee-row small {
  display: block;
}

.fee-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.fee-summary {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: var(--mist);
  color: var(--teal-dark);
  font-weight: 800;
}

.billing-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 14px 32px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--muted);
}

.price-history-section {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

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

.price-history-head h3,
.price-history-head p {
  margin: 0;
}

.price-history-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.price-current-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #cfe2dd;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.price-chart {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
}

.price-chart svg {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}

.price-chart-grid {
  stroke: #e4ebe8;
  stroke-width: 1;
}

.price-chart-area {
  fill: rgba(31, 119, 111, 0.12);
}

.price-chart-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-chart-point {
  fill: white;
  stroke: var(--teal-dark);
  stroke-width: 3;
}

.price-chart-axis,
.price-chart-month {
  fill: var(--muted);
  font-size: 12px;
}

.price-chart-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.price-history-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.price-history-table div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
}

.price-history-table span {
  color: var(--muted);
  font-size: 12px;
}

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

.order-info-form h2 {
  margin-bottom: 0;
}

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

.form-section h3 {
  margin: 0;
  font-size: 18px;
}

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

.field-grid label {
  display: grid;
  gap: 6px;
}

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

.field-grid input,
.field-grid select,
.chat-composer input,
.auth-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.field-grid .is-invalid,
.auth-form .is-invalid {
  border-color: var(--brick);
  background: #fff8f6;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #efc3ba;
  border-radius: 4px;
  background: #fff8f6;
  color: var(--brick);
  font-weight: 700;
}

.document-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px dashed #b9c8c5;
  border-radius: 6px;
  background: #fbfcfb;
  text-align: center;
}

.document-drop span {
  color: var(--muted);
}

.document-drop.is-dragging,
.document-drop.has-file {
  border-color: var(--teal);
  background: var(--mist);
}

.file-pick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}

.file-pick-button input {
  display: none;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.auth-tab {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.is-active {
  background: var(--ink);
  color: white;
}

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

.auth-fields label {
  display: grid;
  gap: 6px;
}

.auth-fields span {
  color: var(--muted);
  font-size: 13px;
}

.chat-window {
  display: grid;
  gap: 16px;
}

.account-match {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9d7d2;
  border-radius: 6px;
  background: var(--mist);
}

.account-match > strong {
  color: var(--teal-dark);
}

.account-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}

.account-grid span {
  color: var(--muted);
}

.account-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-thread {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.chat-message {
  width: min(86%, 390px);
  padding: 11px 13px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.chat-message span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
}

.chat-message.customer {
  justify-self: end;
  background: var(--ink);
  color: white;
}

.chat-message.customer span,
.chat-message.customer p {
  color: white;
}

.chat-message.system {
  justify-self: center;
  width: 100%;
  background: #fff8ea;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.field-grid input:focus,
.field-grid select:focus,
.chat-composer input:focus {
  outline: 3px solid rgba(27, 107, 103, 0.18);
  outline-offset: 2px;
}

.is-admin-view .cart-chip,
.is-admin-view .top-actions > a,
.is-admin-view .mobile-nav,
.is-admin-view .mobile-cart-bar {
  display: none !important;
}

.admin-dashboard[hidden] {
  display: none;
}

.admin-dashboard {
  padding: 28px 0 0;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-hero h1 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
}

.admin-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.admin-metrics div {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-metrics strong {
  font-size: 32px;
  line-height: 1;
}

.admin-metrics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-sidebar h2,
.admin-board h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

.admin-sidebar section {
  display: grid;
  gap: 12px;
}

.admin-filter-list,
.admin-section-list,
.admin-customer-list,
.admin-card-list,
.admin-worklists {
  display: grid;
  gap: 12px;
}

.admin-filter,
.admin-nav-button,
.admin-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}

.admin-filter.is-active {
  border-color: var(--teal);
  background: var(--mist);
  color: var(--teal-dark);
  font-weight: 800;
}

.admin-nav-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.admin-filter span,
.admin-nav-button span,
.admin-customer-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-filter b,
.admin-nav-button b,
.admin-customer-row b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  border-radius: 999px;
  background: #edf1ef;
  color: var(--ink);
  font-size: 12px;
}

.admin-nav-button.is-active b {
  background: white;
  color: var(--ink);
}

.admin-board {
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.admin-board-head p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-card-list {
  padding: 16px;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
}

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

.admin-card-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
}

.admin-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #d7c18b;
  border-radius: 999px;
  background: #fff8ea;
  color: #725614;
  font-size: 12px;
  font-weight: 800;
}

.admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-card-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-total-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-total-row span {
  color: var(--muted);
}

.admin-total-row b {
  color: var(--ink);
}

.admin-detail-block {
  display: grid;
  gap: 8px;
}

.admin-detail-block > strong,
.admin-thread > strong {
  font-size: 14px;
}

.admin-detail-block p {
  margin: 0;
  color: var(--muted);
}

.admin-line-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-line-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.admin-line-list li:last-child {
  border-bottom: 0;
}

.admin-line-list span {
  min-width: 0;
}

.admin-info-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 12px;
  color: var(--muted);
  font-size: 13px;
}

.admin-info-grid b {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.admin-card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-select-label {
  display: grid;
  gap: 6px;
  min-width: min(260px, 100%);
}

.admin-select-label span {
  color: var(--muted);
  font-size: 13px;
}

.admin-select-label select,
.admin-reply-form textarea,
.admin-notice-form textarea,
.admin-notice-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.admin-select-label select {
  height: 42px;
  padding: 0 10px;
}

.admin-notice-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.admin-check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.admin-check-row input {
  width: 18px;
  height: 18px;
}

.admin-notice-grid textarea {
  min-height: 108px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-notice-grid input[type="text"] {
  height: 42px;
  padding: 0 12px;
}

.admin-notice-preview {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-notice-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-notice-preview strong,
.admin-notice-preview p {
  margin: 0;
}

.admin-notice-preview p {
  color: var(--muted);
}

.admin-price-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-price-card {
  gap: 16px;
}

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

.admin-price-form > strong {
  font-size: 14px;
}

.admin-price-grid {
  display: grid;
  gap: 10px;
}

.admin-price-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(140px, 0.5fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-price-row.is-new {
  border-style: dashed;
  background: var(--mist);
}

.admin-price-row.is-invalid {
  border-color: #b84235;
  background: #fff3f1;
}

.admin-price-row label {
  display: grid;
  gap: 6px;
}

.admin-price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-price-row input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
}

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

.admin-missing-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-missing-grid input {
  width: 16px;
  height: 16px;
}

.admin-message-field {
  display: grid;
  gap: 7px;
}

.admin-message-field span {
  color: var(--muted);
  font-size: 13px;
}

.admin-message-field textarea {
  width: 100%;
  min-height: 112px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  resize: vertical;
  font: inherit;
}

.admin-users-shell {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.admin-user-form,
.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-form {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-user-form h3,
.admin-user-list h3 {
  margin: 0;
  font-size: 18px;
}

.admin-user-form select,
.admin-role-select select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(100px, 0.8fr) minmax(100px, 0.8fr) minmax(170px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-user-row > span,
.admin-user-row div span,
.admin-role-select span {
  color: var(--muted);
  font-size: 13px;
}

.admin-role-select {
  display: grid;
  gap: 5px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-thread {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.admin-thread-message {
  display: grid;
  gap: 4px;
  width: min(88%, 520px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
}

.admin-thread-message.agent {
  justify-self: end;
  background: var(--mist);
}

.admin-thread-message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-thread-message p {
  margin: 0;
  color: var(--ink);
}

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

.admin-reply-form textarea {
  min-height: 74px;
  resize: vertical;
  padding: 10px 12px;
}

.admin-note,
.admin-muted,
.admin-empty {
  margin: 0;
  color: var(--muted);
}

.admin-empty {
  padding: 18px;
  border: 1px dashed #cbd5d1;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 50;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  min-width: min(360px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 1050px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .menu-shell {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .coverage-layout {
    grid-template-columns: 1fr;
  }

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

  .checkout-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 35;
    width: min(380px, 100%);
    min-height: 100vh;
    transform: translateX(105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  .checkout-panel.is-open {
    transform: translateX(0);
  }

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

  .support-button {
    justify-self: start;
  }

  .admin-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

@media (max-width: 720px) {
  body {
    background: white;
  }

  .site-shell {
    width: 100%;
    padding: 0 0 130px;
  }

  .notice-bar {
    align-items: center;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .topbar {
    padding: 14px 18px;
    min-height: 62px;
    border-bottom: 1px solid var(--line);
    background: white;
  }

  .brand small,
  .top-actions a,
  .auth-logout,
  .cart-chip span {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .auth-button {
    max-width: 112px;
    padding: 0 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-section {
    padding: 0;
    gap: 0;
  }

  .hero-copy {
    min-height: auto;
    padding: 30px 22px;
    border-left: 0;
    border-right: 0;
  }

  h1 {
    font-size: 31px;
  }

  html[data-lang="en"] h1 {
    font-size: 29px;
  }

  .hero-note {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 210px;
    border-left: 0;
    border-right: 0;
  }

  .hero-visual img {
    min-height: 210px;
  }

  .hero-visual figcaption {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 12px 14px;
  }

  .coverage-section {
    padding: 24px 18px;
    border-left: 0;
    border-right: 0;
  }

  .coverage-heading {
    display: block;
  }

  .coverage-heading h2 {
    font-size: 26px;
  }

  .coverage-count {
    display: none;
  }

  .coverage-map-card,
  #coverageMap {
    height: 310px;
    min-height: 310px;
  }

  .map-callout-card {
    left: 12px;
    top: 12px;
    width: calc(100% - 24px);
    padding: 11px 12px;
  }

  .map-callout-card strong {
    font-size: 14px;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .menu-shell {
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 680px;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }

  .zone-rail {
    min-height: 680px;
  }

  .zone-tab {
    min-height: 96px;
    padding: 16px 12px;
  }

  .zone-tab span {
    font-size: 17px;
  }

  .panel-heading {
    display: block;
    padding: 22px 18px 14px;
  }

  .panel-heading h2 {
    font-size: 25px;
  }

  .secure-badge {
    display: inline-flex;
    margin-top: 12px;
  }

  .item-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    min-height: 132px;
    padding: 18px 16px;
  }

  .route-thumb {
    width: 72px;
    height: 72px;
  }

  .route-thumb span {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .item-copy h3 {
    font-size: 21px;
  }

  .package-line {
    font-size: 13px;
  }

  .item-action {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    gap: 12px;
  }

  .price {
    font-size: 20px;
  }

  .checkout-panel {
    padding: 22px;
  }

  .modal-card {
    padding: 28px;
  }

  .modal-card h2 {
    font-size: 24px;
  }

  .route-detail-map {
    height: 260px;
    min-height: 260px;
  }

  .price-history-head {
    display: grid;
  }

  .price-current-pill {
    justify-self: start;
  }

  .account-grid,
  .field-grid,
  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-message {
    width: 100%;
  }

  .support-section {
    margin-top: 0;
    padding: 26px 20px;
    border-left: 0;
    border-right: 0;
  }

  .admin-dashboard {
    padding: 0;
  }

  .admin-hero,
  .admin-sidebar,
  .admin-board {
    border-left: 0;
    border-right: 0;
  }

  .admin-hero {
    margin-bottom: 0;
    padding: 24px 18px;
  }

  .admin-hero h1 {
    font-size: 29px;
  }

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

  .admin-layout {
    gap: 0;
  }

  .admin-sidebar {
    padding: 18px;
  }

  .admin-filter-list {
    grid-template-columns: 1fr;
  }

  .admin-board-head {
    padding: 18px;
  }

  .admin-card-list {
    padding: 12px;
  }

  .admin-card {
    padding: 15px;
  }

  .admin-card-head,
  .admin-card-tools,
  .admin-total-row,
  .admin-reply-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-status {
    justify-self: start;
  }

  .admin-missing-grid,
  .admin-price-row,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 68px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-nav svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
  }

  .mobile-cart-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 78px;
    z-index: 31;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 8px 8px 8px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow);
  }

  .mobile-cart-bar button {
    min-height: 38px;
    padding: 0 16px;
    background: white;
    color: var(--ink);
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 15px;
  }

  .top-actions {
    gap: 10px;
  }

  .language-toggle {
    min-width: 48px;
    font-size: 12px;
    padding: 0 10px;
  }

  .menu-shell {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .zone-tab span {
    font-size: 16px;
  }

  .item-card {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 16px 12px;
  }

  .route-thumb {
    width: 62px;
    height: 62px;
  }

  .route-thumb span {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .item-copy h3 {
    font-size: 19px;
  }
}
