[hidden] {
  display: none !important;
}
:root {
  --ink: #203930;
  --muted: #687369;
  --teal: #315747;
  --line: #dedfd6;
  --bg: #f7f6f1;
  --nav: #203d31;
  --orange: #a95e40;
  --control-height: 44px;
  --control-height-compact: 32px;
  --control-font-size: 13px;
  --control-line-height: 20px;
  --control-radius: 6px;
  --harbor-backdrop:
    linear-gradient(90deg, #f7f6f1ba, #f7f6f14d 45%, #f7f6f138),
    url("/frontend/4659c24667c070d3e1586438/assets/container-ship.webp");
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
}
.acceptance-banner {
  padding: 10px 18px;
  background: #fff3cd;
  color: #634c0d;
  border-bottom: 1px solid #e4ce82;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.proxy-lines-table {
  min-width: 640px;
  table-layout: fixed;
}
.proxy-lines-table th:first-child {
  width: 40%;
}
.proxy-lines-table th:nth-child(2) {
  width: 90px;
}
.proxy-lines-table th,
.proxy-lines-table td {
  padding: 10px 8px;
}
.proxy-row select,
.proxy-row input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: var(--control-font-size);
  line-height: var(--control-line-height);
}
.proxy-section + .proxy-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
.proxy-search,
.proxy-line-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.proxy-search input {
  flex: 1 1 200px;
  min-width: 0;
  height: var(--control-height);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
}
.proxy-line-footer {
  justify-content: space-between;
}
@media (max-width: 600px) {
  .proxy-search input {
    flex-basis: 100%;
  }
}
button,
input,
select,
textarea {
  font: inherit;
  font-size: var(--control-font-size);
  line-height: var(--control-line-height);
}
/* Explicit geometry avoids macOS/WebKit's intrinsic 20px menu rendering. */
:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
      [type="color"]
    ):not([type="hidden"]):not([type="submit"]):not([type="button"]):not(
      [type="reset"]
    ),
  select
) {
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d3ded9;
  border-radius: var(--control-radius);
  background-color: #fff;
  color: var(--ink);
  font-size: var(--control-font-size);
  line-height: var(--control-line-height);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23315747' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
}
select[multiple],
select[size]:not([size="1"]) {
  height: auto;
  min-height: calc(var(--control-height) * 2);
  padding: 10px 12px;
  background-image: none;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #95bca5;
  outline-offset: 2px;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.pulse,
.online-dot {
  width: 6px;
  height: 6px;
  background: #5ca68a;
  border-radius: 50%;
  display: inline-block;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 32px);
}
.sidebar {
  background: var(--nav);
  color: #e5efed;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}
.space-label {
  font-size: 10px;
  color: #8da7a6;
  letter-spacing: 0.15em;
  margin: 45px 10px 12px;
}
.workspace {
  padding: 12px;
  border: 1px solid #345054;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 27px;
  font-size: 12px;
}
.avatar {
  background: #e6d6bb;
  color: #344548;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 18px;
  flex-shrink: 0;
}
.workspace small {
  display: block;
  font-size: 10px;
  color: #99b2b0;
  margin-top: 5px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  border: 0;
  color: #a9bebe;
  background: transparent;
  padding: 13px 14px;
  text-align: left;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-item.active {
  color: #fff;
  background: #2b5151;
}
.nav-item:hover {
  background: #234647;
}
.nav-symbol {
  font-size: 16px;
  width: 19px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 80px 4px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #b0c4c2;
}
.sidebar-bottom small {
  display: block;
  color: #819e9c;
  font-size: 9px;
  margin-top: 5px;
}
.main-wrap {
  min-width: 0;
}
.topbar {
  min-height: 72px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 35px 38px 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 12px;
}
.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}
.page-title > div,
.section-head > h2,
.form-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 9px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--teal);
  min-height: var(--control-height);
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  padding: 10px 16px;
  font-size: var(--control-font-size);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 20px;
}
.button:hover {
  background: #254738;
}
.button.secondary {
  color: #415b5a;
  background: white;
  border-color: #dce5e3;
}
.button.small {
  min-height: var(--control-height-compact);
  padding: 5px 10px;
  font-size: 12px;
}
.button.ghost {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 5px;
}
.button.danger {
  color: #b85143;
  border-color: #ebcbc5;
  background: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 21px 22px;
}
.stat-label {
  font-size: 11px;
  color: #6e8183;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label span {
  color: #adbab9;
  font-size: 15px;
}
.stat-value {
  font-size: 29px;
  font-weight: 600;
  margin: 16px 0 10px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 12px;
  color: #81918f;
  font-weight: 400;
  margin-inline-start: 6px;
}
.stat-note {
  font-size: 10px;
  color: #8b9898;
}
.stat:first-child {
  background: #eaf3ef;
  border-color: #d9e8e0;
}
.stat:first-child .stat-value {
  color: #156554;
}
.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 20px;
  background: #f5f1e8;
  border: 1px solid #ece4d4;
  border-radius: 8px;
  margin: 0 0 25px;
  color: #796748;
  font-size: 11px;
  line-height: 1.8;
}
.notice b {
  font-weight: 600;
}
.notice-symbol {
  font-size: 17px;
}
.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 23px 24px 18px;
  gap: 12px;
}
.section-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.section-head .count {
  font-size: 10px;
  background: #edf4f1;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--teal);
  margin-inline-start: 7px;
}
.section > p.subtitle {
  padding-inline: 24px;
  margin-bottom: 16px;
}
.table-wrap,
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
table .button {
  white-space: nowrap;
  overflow-wrap: normal;
  flex-shrink: 0;
}
th {
  padding: 12px 24px;
  background: #fafbfb;
  border-top: 1px solid #f0f3f2;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #7c8d90;
  font-weight: 500;
}
td {
  padding: 18px 24px;
  font-size: 12px;
  border-bottom: 1px solid #eff2f1;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  font-size: 10px;
  color: #91a09f;
  margin-top: 6px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  background: #eef3f1;
  color: #557570;
}
.badge.pending {
  background: #fbf0df;
  color: #a77a36;
}
.badge.ready {
  background: #e8f3ed;
  color: #427b60;
}
.badge.shipped {
  background: #e9effb;
  color: #597da6;
}
.badge.refund {
  background: #f9eae6;
  color: #b26d62;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.empty {
  text-align: center;
  padding: 44px 20px 46px;
}
.empty-symbol {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce7e2;
  color: #7b9d93;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 15px;
}
.empty p {
  font-size: 11px;
  color: #8c9b9b;
  line-height: 1.9;
  max-width: 420px;
  margin: 10px auto 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.steps {
  padding: 4px 24px 25px;
  display: flex;
  gap: 15px;
}
.step {
  flex: 1;
  font-size: 11px;
  line-height: 1.8;
}
.step-number {
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf3ef;
  color: #5c8977;
  font-size: 11px;
  margin-bottom: 10px;
}
.step small {
  display: block;
  color: #8c9998;
  font-size: 10px;
  margin-top: 5px;
}
.tip-body {
  padding: 0 24px 22px;
  font-size: 11px;
  line-height: 2;
  color: #81908d;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.product-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece9e2;
  position: relative;
}
.product-visual.bottle {
  background: #e6eeeb;
}
.product-visual.lamp {
  background: #ece9e2;
}
.product-visual.bag {
  background: #eae8e1;
}
.product-visual.speaker {
  background: #e9ecf0;
}
.product-visual svg {
  width: 108px;
  height: 108px;
  filter: drop-shadow(4px 12px 5px #223a3020);
}
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-category {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #587067;
  margin-bottom: 8px;
}
.product-info p {
  font-size: 12px;
  color: #526b62;
  line-height: 1.8;
  margin: 8px 0 13px;
}
/* Cards show excerpts. The detail page retains the full title and description. */
.product-info > h3,
.product-info > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.product-info > h3 {
  line-height: 1.5;
}
.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: end;
  margin: 15px 0;
}
.prices strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.prices small {
  color: var(--muted);
  font-size: 9px;
  display: block;
  margin-bottom: 5px;
}
.product-info .button {
  width: 100%;
}
.product-info > .prices {
  margin-top: auto;
  padding-top: 15px;
}
.product-info > .button + .button {
  margin-top: 8px;
}
.product-info > .button.ghost {
  min-height: var(--control-height);
}
.product-info > .button.ghost bdi {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
}
.owned-line {
  font-size: 10px;
  color: #62867a;
  border-top: 1px solid #edf0ee;
  padding: 12px 0;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.store-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.store-cover {
  height: 195px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #dce5dd;
  color: #3b5949;
  position: relative;
}
.store-cover.form {
  background: #e9e1d4;
  color: #695a47;
}
.store-cover .store-wordmark {
  font-family: Georgia, serif;
  font-size: 40px;
  letter-spacing: -1px;
}
.store-cover .cover-label {
  font-size: 9px;
  letter-spacing: 0.22em;
}
.store-cover .cover-shape {
  position: absolute;
  right: 30px;
  bottom: 15px;
  width: 95px;
  height: 120px;
  border-radius: 55px 55px 0 0;
  background: #ffffff50;
  border: 1px solid #ffffff80;
}
.store-info {
  padding: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.store-info p {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0;
}
.store-hero {
  background: #dce9e2;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store-hero h1 {
  font-family: Georgia, serif;
  font-size: 36px;
}
.store-hero .avatar {
  width: 65px;
  height: 65px;
  font-size: 35px;
  background: #f6f7ed;
}
.ledger-label {
  display: inline-block;
  margin-inline-end: 12px;
  min-width: 115px;
  font-size: 11px;
  color: #647c76;
}
.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 0 24px 24px;
}
.balance-item {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
}
.balance-item strong {
  display: block;
  font-size: 23px;
  margin-top: 10px;
}
.audit {
  padding: 0 24px 20px;
  font-size: 11px;
  color: #698079;
}
.audit-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
footer {
  margin: 25px 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #9ba9a8;
  display: flex;
  justify-content: space-between;
}
footer span {
  letter-spacing: 0.02em;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #193c35;
  color: #fff;
  border-radius: 9px;
  padding: 14px 24px;
  font-size: 12px;
  box-shadow: 0 10px 35px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
  z-index: 10;
  max-width: 85vw;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #864e40;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overflow-wrap: anywhere;
  box-shadow: 0 20px 90px #0003;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #122f3266;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  background: none;
  font-size: 25px;
  color: #81908b;
}
.field {
  display: block;
  min-width: 0;
  font-size: 12px;
  margin: 18px 0;
}
.field input {
  display: block;
  margin-top: 9px;
  width: 100%;
  border: 1px solid #d3ded9;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  min-height: var(--control-height);
}
input[type="file"],
.field input[type="file"] {
  padding: 0;
  line-height: 42px;
}
input[type="file"]::file-selector-button {
  height: 42px;
  margin-right: 12px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #edf0e7;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0 6px 0 0;
  padding: 0;
  accent-color: var(--teal);
}
.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #087f7012;
}
.dialog-note {
  font-size: 11px;
  color: #7c8c85;
  line-height: 1.9;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.loading {
  padding: 80px;
  color: #8ca19a;
  text-align: center;
  font-size: 13px;
}
.inline-link {
  color: var(--teal);
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #95bca5;
  outline-offset: 3px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .product-visual {
    height: 220px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  main {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .sidebar {
    padding: 25px 15px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 24px;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .steps {
    padding-bottom: 20px;
  }
}
@media (max-width: 740px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 16px;
    display: block;
  }
  .brand {
    font-size: 23px;
  }
  .space-label,
  .workspace,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    margin-top: 15px;
    overflow: auto;
  }
  .nav-item {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .topbar > div:first-child {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  .page-title {
    align-items: flex-start;
  }
  h1 {
    font-size: 22px;
  }
  .page-title > .button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-value {
    font-size: 24px;
  }
  .section-head {
    padding: 18px;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
  .store-cover {
    height: 165px;
  }
  .products {
    gap: 12px;
  }
  .product-visual {
    height: 135px;
  }
  .product-info {
    padding: 13px;
  }
  .product-info h3 {
    font-size: 12px;
  }
  .prices {
    display: block;
  }
  .prices > div + div {
    margin-top: 8px;
  }
  .steps {
    gap: 10px;
    padding: 0 18px 20px;
  }
  .step {
    font-size: 10px;
  }
  .balance-grid {
    grid-template-columns: 1fr;
  }
  footer {
    margin: 20px 16px;
  }
  footer span {
    display: none;
  }
  .store-hero {
    padding: 25px;
  }
  .store-hero h1 {
    font-size: 28px;
  }
  .store-info {
    padding: 18px;
  }
}

#dialog-error {
  background: #f8eae6;
  color: #9d4a3c;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.8;
}
.shell {
  min-height: 100vh;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 18px;
}
.account-actions > span {
  min-width: 0;
  max-width: 180px;
  overflow-wrap: anywhere;
}
.form-body {
  padding: 16px 28px 28px;
  max-width: 720px;
}
.auth-panel {
  max-width: 520px;
}
.form-error {
  color: #9d4a3c;
  font-size: 12px;
  line-height: 1.8;
}
.field select {
  display: block;
  width: 100%;
  padding: 10px 36px 10px 12px;
  margin-top: 9px;
  border: 1px solid #d3ded9;
  border-radius: 6px;
  background-color: #fff;
  color: var(--ink);
  min-height: var(--control-height);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.wrappable {
  white-space: normal;
  min-width: 180px;
  max-width: 360px;
}
button:disabled {
  cursor: not-allowed;
}
.product {
  content-visibility: auto;
  contain-intrinsic-size: auto 430px;
}
.store-wordmark {
  overflow-wrap: anywhere;
  z-index: 1;
}
.workspace > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 740px) {
  .account-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-body {
    padding: 12px 18px 24px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-info {
    flex-wrap: wrap;
  }
}
/* Physical layout remains LTR for every language; only text uses Unicode bidi. */
.shell {
  min-height: 100vh;
}
.language-control select {
  width: 120px;
  max-width: 145px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.nav-item,
th,
td {
  text-align: start;
}
.product-visual img,
.cart-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 22px;
}
.product-gallery {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 14px;
}
.product-gallery > svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}
.product-detail-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-gallery img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
}
.product-detail-copy h1 {
  font-size: 32px;
}
.detail-price {
  font-size: 28px;
  color: var(--teal);
  font-weight: 650;
  margin: 20px 0;
}
.product-detail dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.product-detail dd {
  margin: 0;
}
.preserve-lines {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.cart-lines {
  padding: 0 24px;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child {
  border: 0;
}
.cart-image {
  flex: 0 0 82px;
  height: 82px;
  background: var(--bg);
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.cart-image svg {
  width: 50px;
  height: 50px;
}
.cart-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cart-copy h3 {
  margin: 0;
}
.cart-copy small {
  display: block;
}
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.quote-summary {
  margin-top: 24px;
  max-width: 680px;
}
.quote-summary p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.quote-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 20px;
}
.quote-summary .subtitle {
  display: block;
}
html[data-text-direction] p.order-detail-line,
html[data-text-direction] .quote-summary p:not(.subtitle) {
  direction: ltr;
  unicode-bidi: isolate;
}
.order-detail-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.order-detail-line > span {
  flex: 1 1 160px;
  min-width: 0;
}
.order-detail-line strong,
.quote-summary strong {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.search-bar {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.translation-fields {
  margin: 20px 0;
}
.translation-fields fieldset,
.management-profile {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
}
.translation-fields legend {
  font-size: 13px;
}
.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.image-previews img {
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
}
textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 90px;
  resize: vertical;
  max-width: 100%;
}
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 9px;
}
input[type="email"],
input[type="tel"],
.mono {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .eyebrow {
  letter-spacing: normal;
}
@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .cart-line {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cart-line .actions {
    width: 100%;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
    padding-block: 16px;
  }
  .language-control select {
    max-width: 112px;
  }
  .address-grid {
    grid-template-columns: 1fr;
  }
}
[dir="rtl"] .owned-line,
[dir="rtl"] .prices {
  text-align: start;
}
/* One layout for every market. Only Arabic text blocks use RTL. */
[data-booting] .shell {
  visibility: hidden;
}
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(20px, 4vw, 48px);
  background: #f3f5f9;
  color: #1e293b;
}
.boot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.boot-brand small {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.boot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.boot-nav {
  display: none;
}
body[data-entry="merchant"] .boot-layout,
body[data-entry="admin"] .boot-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}
body[data-entry="merchant"] .boot-nav,
body[data-entry="admin"] .boot-nav {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px 20px;
  background: #101b2d;
  border-radius: 8px;
}
.boot-nav span {
  display: block;
  height: 12px;
  background: #334155;
  border-radius: 4px;
}
.boot-content,
.page-skeleton {
  min-width: 0;
}
.skeleton-heading {
  display: block;
  width: 34%;
  min-width: 140px;
  height: 24px;
  margin: 8px 0 28px;
}
.skeleton-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.skeleton-tiles span {
  display: block;
  height: 112px;
}
.skeleton-rows {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.skeleton-rows span {
  display: block;
  height: 32px;
}
:is(.skeleton-heading, .skeleton-tiles span, .skeleton-rows span) {
  border-radius: 6px;
  background: linear-gradient(110deg, #e8edf3 30%, #f5f7fa 50%, #e8edf3 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.6s linear infinite;
}
.boot-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}
.boot-progress {
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: #2563eb;
  animation: page-progress 1s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  to {
    background-position: -220% 0;
  }
}
@media (max-width: 650px) {
  #boot-screen {
    gap: 24px;
  }
  body[data-entry] .boot-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-entry] .boot-nav {
    display: none;
  }
  .skeleton-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .skeleton-tiles span {
    height: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(
    .skeleton-heading,
    .skeleton-tiles span,
    .skeleton-rows span,
    .boot-progress
  ) {
    animation: none;
  }
}
/* A paragraph may contain buttons or prices: Arabic must not reverse its children. */
html[data-text-direction] :is(h1, h2, h3, p, .nav-label, .subtitle) {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: match-parent;
}
/* Keep field alignment, native controls and textarea resize handles in one place. */
html[data-text-direction] :is(input, textarea, select) {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}
#main {
  position: relative;
}
#main.is-loading::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--teal);
  animation: page-progress 1s ease-in-out infinite;
  z-index: 2;
}
@keyframes page-progress {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #main.is-loading::before {
    animation: none;
  }
}

#dialog-body time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
#dialog-body .actions {
  flex-wrap: wrap;
  margin: 12px 0;
}
#dialog-body .actions .button {
  max-width: 100%;
  white-space: normal;
  line-height: 1.5;
}
#order-filter-form {
  align-items: flex-end;
  flex-wrap: wrap;
}
#order-filter-form .field {
  flex: 1 1 170px;
  margin: 0;
}
#order-filter-form > .button {
  flex-shrink: 0;
  min-height: var(--control-height);
  white-space: nowrap;
}
.order-table td .actions .button {
  flex-shrink: 0;
  white-space: nowrap;
  overflow-wrap: normal;
}
#task-filter-form {
  align-items: flex-end;
  flex-wrap: wrap;
}
#task-filter-form .field {
  margin: 0;
  min-width: 180px;
}
.task-summary {
  padding-top: 24px;
}
@media (min-width: 960px) {
  .task-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

#audit-filter-form {
  align-items: flex-end;
  flex-wrap: wrap;
}
#audit-filter-form .field {
  margin: 0;
  min-width: 180px;
}

.marketplace-search {
  align-items: flex-end;
  flex-wrap: wrap;
}
.marketplace-search > input {
  height: var(--control-height);
  flex: 1 1 240px;
}
.marketplace-search > .field {
  flex: 0 1 200px;
  margin: 0;
}
.marketplace-search > .button {
  height: var(--control-height);
}

/* Shared harbor identity; each surface keeps its own functional layout. */
.storefront {
  position: relative;
  isolation: isolate;
  background: var(--bg);
}
.marketplace-controls {
  display: flow-root;
}

.storefront .shell {
  display: block;
  min-height: calc(100vh - 120px);
}
.storefront .sidebar,
.storefront .topbar {
  display: none;
}
.storefront .main-wrap {
  min-width: 0;
}
.storefront main {
  max-width: 1440px;
  margin: auto;
  padding: 28px 40px 48px;
}
.storefront .page-title :is(h1, p) {
  text-align: left;
}

.storefront .page-title .eyebrow {
  display: none;
}
.storefront .empty p {
  color: var(--muted);
  font-size: 13px;
}
#retail-header {
  background: transparent;
}
.retail-top {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  max-width: 1440px;
  margin: auto;
  padding: 22px 40px;
  color: var(--ink);
}
.retail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: var(--control-height);
  padding: 0;
  background: none;
  border: 0;
  color: #254738;
  text-align: left;
}
.retail-brand > .harbor-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.harbor-wordmark {
  display: block;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.3px;
  line-height: 1;
}
.harbor-wordmark small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.retail-search-form {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 1px solid #d9ddd2;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  height: var(--control-height);
}
.retail-search-form:focus-within {
  outline: 2px solid #758c72;
  outline-offset: 2px;
}
.retail-search-form input {
  height: 100%;
  min-height: 0;
  width: 100%;
  min-width: 0;
  border: 0;
  background: #fff;
  padding: 12px 15px;
  outline: 0;
  color: var(--ink);
  font-size: 13px;
}
.retail-search-form button {
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  width: 48px;
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid #e6e7de;
  background: #edf0e7;
  color: #315747;
}
#retail-actions {
  min-width: 0;
}
#retail-actions .account-actions {
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 12px;
}
#retail-actions .button {
  color: #315747;
  border-color: #d4d9ce;
  white-space: nowrap;
}
#retail-actions select {
  background-color: #fcfbf7;
  border-color: #d4d9ce;
  color: var(--ink);
}
.retail-cart {
  border: 1px solid #cdd6c9;
  border-radius: 5px;
  background: #f2f4ec;
  color: #315747;
  padding: 10px 13px;
  white-space: nowrap;
  font-size: 12px;
  min-height: var(--control-height);
  line-height: 20px;
}
.retail-nav {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-width: 1440px;
  margin: auto;
  padding: 0 40px;
  background: transparent;
  overflow-x: auto;
}
.retail-nav button {
  flex: 0 0 auto;
  width: auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  padding: 10px 8px;
  min-height: var(--control-height);
  font-size: 13px;
}
.retail-nav button.active {
  color: #254738;
  border-bottom-color: #a95e40;
}
.retail-nav > .retail-cart-nav {
  display: none;
}
.retail-nav > .retail-seller-link {
  margin-left: auto;
  color: var(--teal);
  font-weight: 600;
}
/* Search-first marketplace layout, aligned to the user's Alibaba.com reference. */
.storefront-home {
  --teal: #e75d13;
  --ink: #202321;
  --muted: #727571;
  --bg: #fff;
  --line: #e8e8e8;
  background: #fff;
}
.storefront-home main {
  max-width: 1680px;
  padding: 0 40px 44px;
}
.storefront-home #retail-header {
  background: linear-gradient(90deg, #fffdfa, #fff4ef);
}
.storefront-home .retail-top,
.storefront-home .retail-nav {
  max-width: 1680px;
}
.storefront-home .retail-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-top: 16px;
  padding-bottom: 16px;
}
.storefront-home #retail-search {
  display: none;
}
.storefront-home #retail-actions {
  justify-self: end;
}
.storefront-home #retail-actions .button {
  color: #242824;
}
.storefront-home #retail-actions .home-create-account {
  color: #fff;
  background: #ff6500;
  border-color: #ff6500;
  border-radius: 24px;
  padding-inline: 22px;
}
.storefront-home .retail-cart {
  color: #242824;
  background: transparent;
  border-color: transparent;
}
.storefront-home .retail-nav button.active {
  border-bottom-color: #f56518;
  color: #e55a10;
}
.home-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 32px;
  padding: 0 40px;
  background: linear-gradient(100deg, #a60e32, #dd3654 72%, #ff98aa);
  color: #fff;
  font-size: 12px;
}
.home-announcement a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 18px;
  background: #ffffff22;
  color: inherit;
  text-decoration: none;
}
.market-home {
  display: grid;
  gap: 0;
}
.home-search-stage {
  position: relative;
  isolation: isolate;
  padding: 24px 0 56px;
}
.home-search-stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc((100% - 100vw) / 2);
  background: linear-gradient(100deg, #fffefa, #fff2ed);
  pointer-events: none;
}
.home-search-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 12px;
  width: 18%;
  height: 70px;
  background: url("/frontend/4659c24667c070d3e1586438/assets/container-ship.webp") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.workspace-view .storefront-domain-row.green {
  background: #eefaf3;
  box-shadow: inset 3px 0 #16834a;
}
.workspace-view .storefront-domain-row.red {
  background: #fff2f2;
  box-shadow: inset 3px 0 #c02d36;
}
.storefront-domain-row.green .domain-activity {
  color: #166534;
}
.storefront-domain-row.red .domain-activity {
  color: #b91c1c;
}
.domain-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.domain-choice input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
}
.domain-choice small {
  display: block;
  margin-top: 4px;
}
.storefront-picker .pagination {
  margin: 20px 0;
}
.domain-choice-summary {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding: 8px 0;
}
.domain-choice-summary .notice {
  margin: 0;
}
.home-search-modes {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 20px;
}
.home-search-modes button {
  position: relative;
  min-height: 44px;
  padding: 4px 2px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #545753;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.2;
}
.home-search-modes button.active {
  color: #ff6500;
  border-bottom-color: #ff6500;
}
.home-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 960px;
  width: 78%;
  margin: 0 auto;
  padding: 12px 16px;
  border: 2px solid #ff7012;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 5px 12px #8c3a1512;
}
#home-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  border: 0;
  background: #fff;
  padding: 8px 0;
  font-size: 16px;
  line-height: 24px;
  color: #262b26;
  outline-offset: 2px;
}
.home-search-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.home-search-tools > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #545a54;
  font-size: 13px;
  text-decoration: none;
}
.home-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(100deg, #ffae26, #ff5a19);
  color: #fff;
  padding: 10px 20px;
}
/* Independent consumer home only; the procurement hero keeps its original layout. */
.storefront-home[data-page-surface="consumer"] .home-search-stage {
  padding: 20px 0 28px;
}
.storefront-home[data-page-surface="consumer"] .home-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 720px);
  max-width: 720px;
  height: 56px;
  padding: 4px 6px 4px 16px;
  border-radius: 12px;
}
.storefront-home[data-page-surface="consumer"] #home-search input {
  height: 44px;
  min-height: 44px;
  font-size: 15px;
}
.storefront-home[data-page-surface="consumer"] .home-search-tools {
  display: contents;
}
.storefront-home[data-page-surface="consumer"] .home-search-submit {
  min-width: 96px;
  padding: 10px 16px;
  border-radius: 8px;
}
.home-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 24px 0 32px;
}
.home-service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 76px;
  padding: 4px 22px;
  color: #282c28;
  text-decoration: none;
}
.home-service + .home-service {
  border-left: 1px solid #e5e5e5;
}
.home-service > span:last-child {
  min-width: 0;
}
.home-service strong {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}
.home-service small {
  display: block;
  margin-top: 3px;
  color: #666c66;
  font-size: 12px;
  line-height: 1.6;
}
.home-service-icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  border-radius: 10px;
  color: #f16c20;
  background: #fff5e4;
}
.home-service-icon svg {
  width: 30px;
  height: 30px;
}
.home-opening {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}
.home-categories {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f7f7f7;
}
.home-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
}
.home-panel-heading h2 {
  font-size: 15px;
}
.home-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 4px;
  border-radius: 4px;
  color: #272c27;
  text-decoration: none;
  font-size: 13px;
}
.home-category:hover {
  color: #e65c16;
  background: #fff;
}
.home-category-all {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  margin-top: 8px;
  border-top: 1px solid #e4e4e4;
  color: #555d55;
  font-size: 12px;
  text-decoration: none;
}
.home-discovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.home-panel-count-0,
.home-panel-count-1 {
  grid-template-columns: minmax(0, 1fr);
}
.home-panel-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-discovery-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 8px;
  background: #f7f7f7;
}
.home-discovery-card > p {
  margin: 0 0 4px;
  color: #626762;
  font-size: 13px;
}
.home-discovery-card > h3 {
  min-height: 26px;
  margin: 0 0 12px;
  font-size: 16px;
}
.home-discovery-photo {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex: 0 0 auto;
  height: 180px;
  padding: 12px;
  background: #fff;
  border-radius: 7px;
}
.home-discovery-photo img,
.home-showcase-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
  max-height: 100%;
}
.home-discovery-photo svg {
  width: 120px;
  height: 120px;
}
.home-discovery-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin: 10px 0 4px;
  color: #292e29;
  font-size: 12px;
  text-decoration: none;
}
.home-discovery-card > strong {
  font-size: 16px;
  font-weight: 650;
}
.home-search-modes > .active {
  padding: 8px 4px;
  color: #ff6500;
  border-bottom: 3px solid currentColor;
  font-size: 28px;
  font-weight: 700;
}
.retail-nav > .retail-seller-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: #c74d00;
  text-decoration: none;
  font-weight: 600;
}
body.portal-login,
body.application-portal {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  background: #f4f6fa;
}
.portal-login .shell,
.application-portal .shell {
  display: block;
  height: auto;
  min-height: 100dvh;
}
.portal-login .sidebar,
.application-portal .sidebar,
.portal-login footer,
.application-portal footer {
  display: none;
}
.portal-login .main-wrap,
.application-portal .main-wrap {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  margin: 0;
  padding: 0 20px 40px;
}
.portal-login .topbar,
.application-portal .topbar {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 0;
  min-height: 96px;
  border: 0;
  background: transparent;
  flex-wrap: wrap;
  gap: 16px;
}
.portal-login #main,
.application-portal #main {
  max-width: 480px;
  margin: 24px auto 0;
  padding: 0;
}
.application-portal #main {
  max-width: 620px;
}
.portal-login .page-title,
.application-portal .page-title {
  display: block;
  text-align: center;
  margin: 0 0 24px;
  padding: 0;
}
.portal-login .page-title h1,
.application-portal .page-title h1 {
  font-size: 28px;
  margin: 10px 0;
}
.portal-login .page-title .eyebrow,
.application-portal .page-title .eyebrow {
  display: none;
}
.portal-login .auth-panel,
.application-portal .auth-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}
.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172235;
  text-decoration: none;
}
.portal-brand strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.5px;
}
.portal-brand small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.home-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(150deg, #fff6ef, #f7e9db);
  overflow: hidden;
}
.home-showcase > p {
  margin: 0 0 5px;
  color: #9a4e24;
  font-size: 13px;
}
.home-showcase h2 {
  font-size: 22px;
  color: #a75022;
  text-align: center;
}
.home-showcase-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 190px;
  padding: 12px 0;
}
.home-showcase-art a {
  display: block;
  min-width: 0;
  width: 33.333%;
  height: 145px;
  background: #fff9;
  border-radius: 40% 40% 10% 10%;
}
.home-showcase-art a:nth-child(2) {
  height: 175px;
}
.home-showcase-art > svg {
  width: 120px;
  height: 120px;
  color: #bc764b;
}
.home-showcase .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
  max-width: 230px;
  border: 0;
  border-radius: 24px;
  background: #c65d0b;
  color: #fff;
  white-space: nowrap;
}
.home-catalog-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  border-radius: 8px;
  background: #f7f7f7;
}
.home-catalog-notice h2 {
  font-size: 20px;
}
.home-catalog-notice p {
  max-width: 420px;
  margin: 12px 0 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #687068;
}
.home-catalog-notice .button {
  background: #ff6500;
  border-color: #ff6500;
  border-radius: 22px;
}
.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
}
.home-section-heading h2 {
  font-size: 22px;
  font-weight: 600;
}
.home-view-all {
  color: #626962;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
}
.storefront .home-products .products {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.home-products .product-visual {
  height: 180px;
  padding: 12px;
}
.home-products .product-info {
  padding: 12px;
}
.home-products .product-info h3 {
  font-size: 14px;
}
.home-products .product-info .prices strong {
  font-size: 20px;
}
.home-products .product-info > .button.secondary {
  display: none;
}
.product-seller {
  display: block;
  padding-top: 8px;
  min-height: 28px;
  color: #6b746b;
  font-size: 12px;
  text-decoration: none;
}
.retail-footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}
.retail-footer-links button {
  min-height: 44px;
  padding: 10px 6px;
  border: 0;
  background: none;
  color: #596959;
  font-size: 12px;
}
@media (max-width: 1300px) {
  .home-opening {
    grid-template-columns: 180px minmax(0, 1fr) 230px;
    gap: 12px;
  }
  .home-discovery {
    gap: 10px;
  }
  .home-discovery-photo {
    height: 150px;
  }
  .home-discovery-card {
    padding: 12px;
  }
  .home-service {
    padding-inline: 12px;
    gap: 12px;
  }
  .home-service strong {
    font-size: 16px;
  }
  .home-showcase {
    padding: 14px;
  }
  .home-showcase h2 {
    font-size: 20px;
  }
  .home-showcase-art {
    height: 170px;
  }
  .home-showcase-art a {
    height: 125px;
  }
  .home-showcase-art a:nth-child(2) {
    height: 155px;
  }
  .storefront .home-products .products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .home-opening {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .home-categories {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
  }
  .home-panel-heading {
    display: none;
  }
  .home-category {
    flex: 0 0 auto;
    gap: 18px;
  }
  .home-category-all {
    flex: 0 0 auto;
    margin: 0;
    border: 0;
  }
  .home-service {
    align-items: flex-start;
    gap: 8px;
  }
  .home-service-icon {
    flex-basis: 30px;
    width: 30px;
    height: 38px;
  }
  .home-service-icon svg {
    width: 24px;
    height: 24px;
  }
  .home-service strong {
    font-size: 14px;
  }
  .home-discovery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-discovery-photo {
    height: 110px;
    padding: 8px;
  }
  .home-panel-count-0,
  .home-panel-count-1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-panel-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .storefront .home-products .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .storefront-home main {
    padding: 0 16px 30px;
  }
  .storefront-home .retail-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home-announcement {
    padding: 0 12px;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
  }
  .home-announcement a {
    padding-inline: 8px;
    flex-shrink: 0;
  }
  .home-search-stage {
    padding: 18px 0 28px;
  }
  .home-search-modes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  [data-page-surface="procurement"] .home-search-modes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-search-modes button {
    height: 44px;
    font-size: 14px;
    line-height: 16px;
    padding: 4px 2px;
  }
  .home-search-form {
    width: 100%;
    padding: 10px 12px;
    border-radius: 16px;
  }
  #home-search input {
    font-size: 15px;
  }
  .home-search-tools {
    gap: 8px;
  }
  .home-search-tools > a {
    font-size: 12px;
  }
  .home-search-submit {
    min-width: 96px;
  }
  .home-search-stage::before {
    display: none;
  }
  .home-services {
    padding: 14px 0 20px;
  }
  .home-service {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px;
  }
  .home-service strong {
    font-size: 12px;
  }
  .home-service small {
    display: none;
  }
  .home-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .home-showcase {
    display: none;
  }
  .home-discovery-card {
    padding: 10px;
  }
  .home-discovery-card > p {
    font-size: 10px;
  }
  .home-discovery-card > h3 {
    min-height: 32px;
    font-size: 12px;
  }
  .home-discovery-photo {
    height: 95px;
    padding: 6px;
  }
  .home-discovery-name {
    font-size: 11px;
  }
  .home-discovery-card > strong {
    font-size: 13px;
  }
  .home-section-heading h2 {
    font-size: 20px;
  }
  .home-view-all {
    font-size: 12px;
  }
  .storefront .home-products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .home-products .product-visual {
    height: 156px;
  }
  .storefront footer {
    flex-wrap: wrap;
    height: auto;
    gap: 14px;
  }
  .retail-footer-links {
    justify-content: flex-start;
    margin: 0;
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .storefront-home #retail-actions .account-actions {
    gap: 8px;
  }
  .storefront-home .language-control select {
    width: 100px;
  }
  .storefront-home #retail-actions .home-create-account {
    padding-inline: 12px;
  }
}
.catalog-results {
  padding-top: 24px;
}
.catalog-results > .retail-section-head {
  margin-bottom: 12px;
}
.catalog-results > .marketplace-filter {
  margin-bottom: 24px;
}
.retail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
}
.retail-section-head h2,
.retail-section-head h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.4px;
}
.retail-section-head > span {
  background: #fbfaf5de;
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 11px;
}
.storefront .marketplace-search {
  margin: 12px 0 18px;
  padding: 16px;
  background: transparent;
  border-radius: 0;
}
.storefront .products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.storefront .product {
  border: 1px solid #e2e3da;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.storefront .product:hover {
  border-color: #a7b49c;
  box-shadow: 0 4px 15px #26372b0a;
}
.storefront .product-visual {
  height: 210px;
  background: #fcfcf8;
  padding: 18px;
  border-bottom: 1px solid #efefe8;
}
.storefront .product-visual svg {
  width: 170px;
  height: 170px;
}
.storefront .product-info {
  padding: 18px;
}
.storefront .product-info h3 {
  font-size: 16px;
  font-weight: 600;
}
.storefront .product-category {
  color: #7b8372;
  font-size: 10px;
}
.storefront .product-info .prices strong {
  font-size: 23px;
  font-weight: 600;
}
.storefront .product-info > .button.secondary {
  border-color: #d4ddcb;
  color: #315747;
  background: #f6f7f1;
  border-radius: 4px;
}
.storefront footer {
  max-width: 1440px;
  margin: auto;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
}
.storefront footer > span {
  display: none;
}
@media (max-width: 1200px) {
  .retail-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px 24px;
  }
  #retail-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  #retail-actions {
    justify-self: end;
  }
}
@media (max-width: 1050px) {
  .retail-top {
    gap: 12px;
    padding: 16px;
  }
  #retail-actions .account-actions > span {
    display: none;
  }
  .storefront .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .retail-nav > .retail-seller-link {
    margin-left: 0;
  }
  .retail-nav > .retail-cart-nav {
    display: block;
  }
  .retail-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #retail-search {
    grid-row: 3;
  }
  .retail-brand {
    margin-right: auto;
  }
  .harbor-wordmark {
    font-size: 26px;
  }
  .retail-brand > .harbor-mark {
    width: 28px;
    height: 28px;
  }
  #retail-actions .account-actions {
    display: flex;
    justify-content: space-between;
  }
  #retail-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }
  .retail-cart {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-self: end;
  }
  .retail-nav {
    padding: 0 8px;
  }
  .storefront main {
    padding: 16px;
  }
  .storefront .marketplace-search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
  .storefront .marketplace-search > input,
  .storefront .marketplace-search > .field:has(select) {
    grid-column: 1 / -1;
  }
  .storefront .marketplace-search > .button {
    height: auto;
    min-height: var(--control-height);
  }
  #retail-search {
    margin: 0;
  }

  .storefront .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .storefront .product-visual {
    height: 155px;
  }
  .storefront .product-visual svg {
    width: 100%;
    height: 100%;
  }
  .storefront .product-info {
    padding: 14px;
  }
  .storefront .product-info h3 {
    font-size: 14px;
  }
  .storefront .product-info .prices strong {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .cart-lines {
    padding-inline: 16px;
  }
  .cart-line {
    display: grid;
    grid-template-columns: 20px 60px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-image {
    width: 60px;
    height: 60px;
  }
  .cart-line .actions {
    grid-column: 2 / -1;
  }
}
@media (max-width: 360px) {
  .storefront .products,
  .products {
    grid-template-columns: minmax(0, 1fr);
  }
  .pagination {
    flex-wrap: wrap;
  }
  dialog {
    padding: 18px;
  }
}
html:lang(ar),
html:lang(ta) {
  letter-spacing: normal;
}
html:lang(ar) :is(h1, h2, h3),
html:lang(ta) :is(h1, h2, h3) {
  letter-spacing: normal;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .storefront .product {
    transition: none;
  }
}
.retail-nav {
  flex-direction: row;
}
.retail-nav button {
  width: auto;
  flex: 0 0 auto;
  text-align: left;
}
#retail-actions .button {
  background: transparent;
}

.cart-select {
  flex: 0 0 20px;
  align-self: center;
}
.cart-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.category-browser {
  margin: 12px 0 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.category-browser nav,
.category-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.category-choices {
  margin-top: 8px;
}
.category-choices > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.category-browser bdi {
  overflow-wrap: anywhere;
}

#variant-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
#variant-selectors h2 {
  width: 100%;
  margin: 0;
  font-size: 17px;
}
#variant-selectors .field {
  flex: 1 1 120px;
  min-width: 0;
}
#variant-selectors select {
  max-width: 100%;
}
.variant-editor {
  margin: 16px 0;
  border-top: 1px solid var(--line, #e4e4e4);
  padding-top: 12px;
}
.variant-editor summary {
  cursor: pointer;
  padding: 8px 0;
}

.store-filters {
  align-items: flex-end;
  padding: 20px 24px 0;
}
.store-filters .field {
  flex: 0 1 210px;
  margin: 0;
}
.store-summary {
  margin: 20px 24px;
}

.content-editor {
  min-width: 0;
}
.content-tabs,
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.content-tabs {
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.content-tabs button {
  min-height: var(--control-height);
  padding: 10px 2px;
  font-size: var(--control-font-size);
  line-height: 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
}
.content-tabs button[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}
.content-panel[hidden] {
  display: none !important;
}
.content-panel .field:first-child {
  margin-top: 12px;
}
.field textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid #d3ded9;
  border-radius: 6px;
  color: var(--ink);
  resize: vertical;
}
.record-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.receiving-account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}
.receiving-account-grid .stat-value {
  font-size: 16px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.category-choices {
  gap: 8px;
}
.category-choices .button {
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  min-height: var(--control-height);
  padding: 10px 14px;
  font-size: var(--control-font-size);
}
#dialog-form {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
#dialog-form .dialog-actions {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  z-index: 1;
}
.logistics-settings > summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
}
.form-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.tracking-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.tracking-steps li {
  border-left: 2px solid var(--line);
  padding: 0 0 20px 18px;
  position: relative;
}
.tracking-steps li::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  left: -6px;
  top: 5px;
}
.tracking-steps li.current::before {
  background: var(--teal);
}
.tracking-steps time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.marketplace-filter {
  margin: 12px 0;
}
.marketplace-filter summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 13px;
  padding: 8px 0;
}
.storefront .marketplace-filter .marketplace-search {
  margin: 8px 0;
}
.storefront .category-choices .button {
  border-radius: 4px;
  background: #fbfbf6;
  padding: 10px 12px;
}
.storefront .product-info > h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.retail-nav:has(.retail-account-menu) {
  overflow: visible;
  flex-wrap: wrap;
}
.retail-account-menu {
  position: relative;
  margin-left: auto;
}
.retail-account-menu summary {
  padding: 14px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
}
.retail-account-menu > div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  width: 210px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px #1233;
  padding: 8px;
}
.retail-nav .retail-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--ink);
  padding: 10px 14px;
}
@media (max-width: 650px) {
  .retail-account-menu {
    margin-left: 0;
  }
  .retail-nav {
    gap: 0;
  }
  .retail-nav > button {
    padding: 10px;
    font-size: 12px;
  }
}

/* Shared management geometry across role workspaces. */
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.workspace-tabs .button {
  min-height: var(--control-height);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 28px;
  padding: 5px 10px;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
}
td .badge {
  margin: 0;
}
.status-awaiting_procurement,
.status-refund_pending {
  color: #85601c;
  background: #faf2df;
}
.status-shipped,
.status-ready_to_ship {
  color: #275e89;
  background: #eaf2f9;
}
.status-completed {
  color: #276353;
  background: #e9f3ef;
}
.status-refunded {
  color: #59636a;
  background: #edf0f1;
}
.search-bar .field,
.store-filters .field,
#warehouse-filter .field {
  margin: 0;
  min-width: 0;
}
.search-bar,
.store-filters,
#warehouse-filter {
  align-items: end;
  gap: 12px;
}
.search-bar input,
.search-bar select,
.store-filters input,
.store-filters select,
#warehouse-filter input,
#warehouse-filter select {
  min-height: var(--control-height);
  margin-bottom: 0;
  box-sizing: border-box;
}
.search-bar > .button,
.store-filters > .button,
#warehouse-filter > .button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: var(--control-height);
}
.order-reference {
  min-width: 165px;
}
.order-reference strong {
  font-size: 13px;
}
.order-items {
  min-width: 210px;
  max-width: 360px;
}
.order-line-name {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}
.order-line-name bdi {
  overflow-wrap: anywhere;
}
.order-line-name > span {
  flex-shrink: 0;
  color: #64736e;
}
.order-actions {
  max-width: 265px;
  min-width: 190px;
}
.order-amount {
  font-weight: 600;
  white-space: nowrap;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.order-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid #e7ece9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.order-thumb img,
.order-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.record-grid dt {
  color: #6c7c76;
  font-size: 12px;
  margin-bottom: 6px;
}
.record-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.record-grid dd > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.order-detail-items {
  min-width: 0;
  width: 100%;
}
.order-detail-items th,
.order-detail-items td {
  padding: 12px 8px;
}
.order-total {
  border-top: 1px solid #dfe7e4;
  padding-top: 12px;
  font-weight: 600;
}
#managed-profile-form {
  max-width: 920px;
}
#managed-profile-form .form-body {
  padding: 28px;
}
@media (max-width: 600px) {
  .workspace-tabs {
    gap: 6px;
    padding: 0;
    margin-bottom: 18px;
  }
  .workspace-tabs .button {
    flex: 1 1 auto;
    padding-inline: 10px;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  #managed-profile-form .form-body {
    padding: 18px;
  }
  .order-detail-items {
    font-size: 12px;
  }
  .order-detail-items th,
  .order-detail-items td {
    padding: 8px 4px;
  }
}
.managed-workspace > .page-title {
  margin-top: 10px;
  margin-bottom: 20px;
}
.managed-workspace > .page-title h1 {
  font-size: 26px;
  margin: 8px 0;
}
.managed-workspace > .workspace-tabs {
  padding: 0;
  margin-bottom: 20px;
}
.managed-workspace > .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.order-table table {
  table-layout: fixed;
  min-width: 740px;
  white-space: normal;
}
.order-table th,
.order-table td {
  padding: 14px 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-table th:nth-child(1) {
  width: 20%;
}
.order-table th:nth-child(2) {
  width: 24%;
}
.order-table th:nth-child(3) {
  width: 13%;
}
.order-table th:nth-child(4) {
  width: 20%;
}
.order-table th:nth-child(5) {
  width: 23%;
}
.order-table .order-items {
  min-width: 0;
}
.order-table .order-actions {
  min-width: 0;
  max-width: none;
}
.order-table td small {
  white-space: normal;
  overflow-wrap: anywhere;
}
.order-detail-items {
  white-space: normal;
}
.order-detail-items td:first-child {
  overflow-wrap: anywhere;
}
#dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
}
#dialog:is(.order-dialog, .dialog-wide) {
  width: min(960px, calc(100vw - 32px));
}
#dialog-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 34px);
  min-height: 0;
}
#dialog .dialog-header {
  flex-shrink: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
#dialog-title {
  flex: 1;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  outline: none;
}
#dialog-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 24px;
}
#dialog .quote-summary {
  width: min(100%, 400px);
  max-width: none;
  margin-left: auto;
}
#dialog .dialog-actions {
  flex-shrink: 0;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}
#dialog-error {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 24px;
}
@media (max-width: 600px) {
  #dialog .dialog-header,
  #dialog-body,
  #dialog .dialog-actions {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .managed-workspace > .stats {
    grid-template-columns: 1fr;
  }
}
.new-order-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Customer records stay compact even when names or email addresses are long. */
.customer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}
.customer-search {
  display: flex;
  flex: 1 1 280px;
  gap: 8px;
  max-width: 380px;
  min-width: 0;
}
.customer-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: var(--control-font-size);
}
.customer-table {
  table-layout: fixed;
  min-width: 800px;
}
.customer-name-col {
  width: 20%;
}
.customer-contact-col {
  width: 27%;
}
.customer-info-col {
  width: 16%;
}
.customer-status-col {
  width: 8%;
}
.customer-date-col {
  width: 10%;
}
.customer-actions-col {
  width: 19%;
}
.customer-table th,
.customer-table td {
  padding: 8px 10px;
  vertical-align: middle;
}
.customer-table td {
  height: auto;
  line-height: 1.5;
}
.customer-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.customer-name {
  font-weight: 500;
}
.customer-secondary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.customer-actions {
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
}
.customer-actions .button {
  flex: 0 0 auto;
  min-height: var(--control-height-compact);
  padding: 5px;
  font-size: 12px;
  white-space: nowrap;
}
.customer-table .badge {
  min-height: 28px;
  padding: 3px 5px;
  font-size: 11px;
}
.customer-wall .pagination {
  justify-content: flex-end;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .customer-search {
    max-width: none;
  }
}

.harbor-mark {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar .brand .harbor-mark {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: 8px;
}
.brand {
  line-height: 1;
}
.sidebar .harbor-wordmark small {
  color: #c9d6c9;
}
.workspace-view {
  --ink: #1e293b;
  --muted: #64748b;
  --teal: #2563eb;
  --line: #e2e8f0;
  --bg: #f3f5f9;
  --nav: #101b2d;
  --orange: #60a5fa;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
  /* The viewport owns the shell; each column owns its scroll position. */
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
.workspace-view > .acceptance-banner {
  flex: 0 0 auto;
}
.workspace-view .shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.workspace-view .sidebar {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.workspace-view .main-wrap {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.workspace-view .main-wrap::before {
  content: none;
}
.workspace-view .topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}
.workspace-view :is(#breadcrumb, .account-actions, .page-title > div) {
  background: transparent;
  padding: 8px 10px;
}
.workspace-view .page-title > div {
  flex: 0 1 auto;
}
.workspace-view .nav-item:hover {
  background: #1b2a40;
  color: #fff;
}
.workspace-view .nav-item.active {
  background: #213e65;
  color: #fff;
  box-shadow: inset 3px 0 #60a5fa;
}
.workspace-view :is(.workspace, .nav-item, .stat, .section) {
  border-radius: 5px;
}
/* Management palette is scoped to both workspaces, including top-layer dialogs. */
.workspace-view .sidebar {
  color: #f8fafc;
  border-right: 1px solid #1e293b;
}
.workspace-view .sidebar .harbor-mark {
  background: transparent;
  filter: brightness(0) invert(1);
}
.workspace-view .sidebar .harbor-wordmark small,
.workspace-view .sidebar-bottom,
.workspace-view .nav-item {
  color: #cbd5e1;
}
.workspace-view :is(.space-label, .workspace small, .sidebar-bottom small) {
  color: #a5b4c8;
}
.workspace-view .workspace {
  border-color: #334155;
  background: #17253b;
}
.workspace-view .avatar {
  color: #f8fafc;
  background: #334155;
}
.workspace-view .nav-item.active {
  color: #fff;
}
.workspace-view :is(.pulse, .online-dot) {
  background: #60a5fa;
}
.workspace-view .button:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.workspace-view .button.secondary {
  background: #fff;
  color: #334155;
  border-color: #cbd5e1;
}
.workspace-view .button.secondary:hover:not(:disabled) {
  background: #f1f5f9;
  color: #1e40af;
  border-color: #94a3b8;
}
.workspace-view .button.ghost {
  background: transparent;
  color: var(--teal);
  border-color: transparent;
}
.workspace-view .button.ghost:hover:not(:disabled) {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: transparent;
}
.workspace-view .button.danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
}
.workspace-view .button.danger:hover:not(:disabled) {
  background: #fef2f2;
  color: #991b1b;
  border-color: #f87171;
}
.workspace-view :is(input, select, textarea) {
  border-color: #cbd5e1;
  color: var(--ink);
}
.workspace-view select:not([multiple]):not([size]),
.workspace-view select[size="1"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}
.workspace-view :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--teal);
}
.workspace-view input[type="file"]::file-selector-button {
  color: #334155;
  background: #f1f5f9;
}
.workspace-view .field :is(input, select, textarea):focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #2563eb1a;
}
.workspace-view :is(input, textarea, button, a, select):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.workspace-view :is(.stat, .stat:first-child) {
  background: #fff;
  border-color: var(--line);
}
.workspace-view .stat:first-child .stat-value {
  color: #1d4ed8;
}
.workspace-view
  :is(
    .stat-label,
    .stat-note,
    .stat-value small,
    td small,
    .ledger-label,
    .audit,
    .dialog-note,
    .loading,
    .record-grid dt,
    .order-line-name > span,
    .empty p,
    .step small,
    .tip-body,
    .product-category,
    .product-info p,
    .product-seller
  ) {
  color: #64748b;
}
.workspace-view .stat-label span {
  color: #94a3b8;
}
.workspace-view .notice {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.workspace-view :is(.section-head .count, .step-number) {
  color: #1d4ed8;
  background: #eff6ff;
}
.workspace-view th {
  color: #475569;
  background: #f8fafc;
  border-top-color: var(--line);
}
.workspace-view td {
  border-bottom-color: #edf1f5;
}
.workspace-view tbody tr:hover {
  background: #f8fafc;
}
.workspace-view :is(.badge, .status-refunded) {
  color: #475569;
  background: #f1f5f9;
}
.workspace-view
  :is(.badge.pending, .status-awaiting_procurement, .status-refund_pending) {
  color: #92400e;
  background: #fffbeb;
}
.workspace-view :is(.badge.ready, .status-ready_to_ship) {
  color: #4338ca;
  background: #eef2ff;
}
.workspace-view :is(.badge.shipped, .status-shipped, .status-completed) {
  color: #1e40af;
  background: #eff6ff;
}
.workspace-view .badge.refund {
  color: #b91c1c;
  background: #fef2f2;
}
.workspace-view :is(.empty-symbol, .order-thumb) {
  border-color: var(--line);
  color: #64748b;
  background: #f8fafc;
}
.workspace-view .owned-line {
  color: #1d4ed8;
}
.workspace-view :is(.store-cover, .store-hero) {
  color: #334155;
  background: #eef2f6;
}
.workspace-view .product-visual {
  background: #f8fafc;
}
.workspace-view .icon-button {
  color: #64748b;
}
.workspace-view .icon-button:hover {
  color: #1e293b;
  background: #f1f5f9;
}
.workspace-view dialog {
  border-color: var(--line);
  box-shadow: 0 24px 64px #0f172a33;
}
.workspace-view dialog::backdrop {
  background: #0f172a66;
}
.workspace-view #dialog .dialog-actions {
  background: #f8fafc;
}
.workspace-view :is(.form-error, #dialog-error) {
  color: #b91c1c;
}
.workspace-view #dialog-error {
  background: #fef2f2;
}
.workspace-view #toast {
  background: #1e293b;
}
.workspace-view #toast.error {
  background: #b91c1c;
}
.workspace-view footer {
  color: #64748b;
}
.workspace-view .footer-brand .harbor-mark {
  filter: grayscale(1);
}
@media (max-width: 740px) {
  .workspace-view .shell {
    display: flex;
    flex-direction: column;
  }
  .workspace-view .sidebar {
    flex: 0 0 auto;
    max-height: 35dvh;
  }
  .workspace-view .main-wrap {
    flex: 1 1 auto;
  }
  .sidebar .brand .harbor-mark {
    width: 28px;
    height: 28px;
  }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.6px;
  text-transform: none;
}
.footer-brand .harbor-mark {
  width: 28px;
  height: 28px;
}
.footer-brand small {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.payment-instructions {
  min-width: 0;
  margin: 16px 0;
}
.payment-instructions dd {
  overflow-wrap: anywhere;
}
.payment-figure {
  margin: 16px 0;
}
.payment-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.payment-image {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.payment-submission {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.payment-proof-details {
  margin: 16px 0;
}
.payment-proof-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.storefront .product-info h3 a {
  color: inherit;
  text-decoration: none;
}

/* Customer account and shopping pages share the new commerce palette. */
.storefront:not(.storefront-home) {
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #f5f7fa;
  --line: #e2e8f0;
  --teal: #c74805;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
}
.storefront:not(.storefront-home) #retail-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.storefront:not(.storefront-home)
  :is(.button.secondary, #retail-actions .button, .retail-cart) {
  color: #334155;
  border-color: #cbd5e1;
  background: #fff;
}
.storefront:not(.storefront-home) .button:hover:not(:disabled) {
  background: #a93d04;
  border-color: #a93d04;
}
.storefront:not(.storefront-home) .button.secondary:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}
.storefront:not(.storefront-home) .button.ghost {
  background: transparent;
  color: var(--teal);
  border-color: transparent;
}
.storefront:not(.storefront-home) .button.ghost:hover:not(:disabled) {
  background: #fff7ed;
  color: #9a3412;
  border-color: transparent;
}
.storefront:not(.storefront-home)
  :is(input, select, textarea, #retail-actions select) {
  color: var(--ink);
  border-color: #cbd5e1;
  background-color: #fff;
}
.storefront:not(.storefront-home)
  :is(input, textarea, select, button, a):focus-visible {
  outline-color: var(--teal);
}
.storefront:not(.storefront-home) .field :is(input, select, textarea):focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #c748051a;
}
.storefront:not(.storefront-home) :is(.stat, .stat:first-child) {
  background: #fff;
  border-color: var(--line);
}
.storefront:not(.storefront-home)
  :is(
    .stat-label,
    .stat-note,
    .stat-value small,
    td small,
    .dialog-note,
    .empty p,
    .product-category,
    .product-info p,
    .record-grid dt
  ) {
  color: #64748b;
}
.storefront:not(.storefront-home) .stat:first-child .stat-value {
  color: var(--teal);
}
.storefront:not(.storefront-home) .badge {
  color: #475569;
  background: #f1f5f9;
}
.storefront:not(.storefront-home) :is(.badge.ready, .status-completed) {
  color: #1e40af;
  background: #eff6ff;
}
.storefront:not(.storefront-home)
  :is(.badge.pending, .status-awaiting_procurement, .status-refund_pending) {
  color: #92400e;
  background: #fffbeb;
}
.storefront:not(.storefront-home) .badge.refund {
  color: #b91c1c;
  background: #fef2f2;
}
.storefront:not(.storefront-home) #dialog .dialog-actions {
  background: #f8fafc;
}
.storefront:not(.storefront-home) :is(.empty-symbol, .order-thumb) {
  color: #64748b;
  border-color: var(--line);
  background: #f8fafc;
}
.storefront:not(.storefront-home) select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}
.auth-view #main {
  max-width: 620px;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}
.auth-view .page-title {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}
.auth-view .page-title .eyebrow {
  letter-spacing: normal;
}
.auth-view .auth-panel {
  max-width: none;
}
.auth-view #retail-search {
  display: none;
}
.auth-view .retail-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
#auth-form .form-body {
  max-width: none;
  padding: 12px 28px 28px;
}
#auth-form .field {
  text-align: left;
}
#auth-form .field input {
  text-align: left;
}
#auth-form input[type="password"] {
  direction: ltr;
  unicode-bidi: isolate;
}
#auth-form :is(.form-error, .subtitle) {
  margin: 14px 0;
  text-align: left;
}
#auth-form [aria-invalid="true"] {
  border-color: #dc2626;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.auth-actions .button {
  width: 100%;
}
@media (max-width: 650px) {
  .auth-view #main {
    padding: 28px 16px;
  }
  #auth-form .form-body {
    padding: 8px 20px 24px;
  }
}
.auth-view #retail-actions .button {
  display: none;
}
.auth-view .retail-top {
  display: flex;
  flex-wrap: wrap;
}
.auth-view #retail-actions {
  margin-left: auto;
  width: auto;
}

.storefront:not(.storefront-home)
  :is(.store-cover, .store-cover.form, .store-hero) {
  color: #334155;
  background: #eef2f6;
}
.storefront:not(.storefront-home) .product-visual {
  background: #f8fafc;
}
.storefront:not(.storefront-home)
  :is(.owned-line, .ledger-label, .audit, .step small, .tip-body) {
  color: #64748b;
}
.storefront:not(.storefront-home) .step-number {
  color: #9a3412;
  background: #fff7ed;
}
.storefront:not(.storefront-home) .notice {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}
.storefront:not(.storefront-home) input[type="file"]::file-selector-button {
  color: #334155;
  background: #f1f5f9;
}
.storefront:not(.storefront-home) .retail-search-form button {
  color: #475569;
  background: #f1f5f9;
  border-color: var(--line);
}
.storefront:not(.storefront-home) .button.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}
.storefront:not(.storefront-home) .button.danger:hover:not(:disabled) {
  color: #991b1b;
  border-color: #f87171;
  background: #fef2f2;
}
.storefront:not(.storefront-home) .form-error {
  color: #b91c1c;
}
.storefront dialog::backdrop {
  background: #0f172a66;
}
.storefront #toast {
  background: #1e293b;
}
.storefront #toast.error {
  background: #b91c1c;
}
.storefront-home
  :is(
    .home-search-submit,
    .home-showcase .button,
    .home-catalog-notice .button
  ):hover:not(:disabled) {
  background: #d64c05;
  border-color: #d64c05;
}
@media (max-width: 650px) {
  .storefront:not(.storefront-home) #retail-actions .account-actions {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }
}
