: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);
}

* {
  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%;
}

.profile-grid {
  display: grid;
  gap: 0;
  margin-top: 22px;
  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;
}

.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: 36px minmax(0, 1fr) auto;
}

.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-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;
  }

  .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;
}

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

.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;
}

.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(160px, 1.2fr) minmax(140px, 1fr) 70px 120px minmax(170px, 1.1fr);
}

.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;
}

.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;
}

.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;
  }

  .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__schedule {
    grid-column: 1 / -1;
  }

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