:root {
  --ink: #151515;
  --muted: #6f6a61;
  --line: #d8d0c1;
  --paper: #fff;
  --soft: #f5f0e6;
  --accent: #b11f2e;
  --accent-soft: #fae9e9;
  --danger: #a63d3d;
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.link-unavailable-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--soft);
}
.link-unavailable-card {
  width: min(100%, 560px);
  padding: 44px 44px 30px;
  text-align: center;
  background: #fffdf9;
  border: 1px solid #e4ded3;
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 16px 48px #34231808;
}
.link-unavailable-eyebrow {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.link-unavailable-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #f8e9e8;
  color: var(--accent);
}
.link-unavailable-card h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.link-unavailable-description {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.error-card-actions {
  margin-top: 28px;
}
.error-card-actions .button {
  min-width: 160px;
  min-height: 44px;
  border-radius: 8px;
}
.error-card-actions .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.link-unavailable-next {
  padding: 22px;
  background: var(--soft);
  border-radius: 10px;
  text-align: left;
}
.link-unavailable-next strong {
  font-size: 15px;
}
.link-unavailable-next p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.link-unavailable-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 480px) {
  .link-unavailable-card {
    padding: 32px 24px 24px;
  }
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a.button {
  cursor: pointer;
}
button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary:hover {
  background: #901824;
  color: white;
}
.subtle {
  border-color: transparent;
  background: transparent;
  padding: 7px 10px;
}
.subtle:hover {
  background: var(--soft);
  border-color: transparent;
}
.wide {
  width: 100%;
}
.small {
  padding: 7px 12px;
}
.danger {
  color: var(--danger);
}
.account-confirm {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  line-height: 1.6;
}
.account-confirm::backdrop {
  background: rgb(0 0 0 / 45%);
}
.account-confirm .authorization-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}
.account-confirm input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.account-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
input,
select,
textarea {
  border: 1px solid #d9dde2;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
  width: 100%;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #b11f2e15;
}
textarea {
  min-height: 70px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 500;
  line-height: 1.8;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 5px;
}
label:has(> input[type='checkbox']),
.account-confirm .authorization-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}
label > input[type='checkbox'] {
  display: inline-block;
  flex: 0 0 18px;
  margin: calc(0.9em - 9px) 0 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.75;
}
.muted {
  color: var(--muted);
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.empty {
  padding: 45px 12px;
  text-align: center;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #151515;
  color: white;
  padding: 12px 22px;
  border-radius: 7px;
  z-index: 200;
  max-width: min(90vw, 600px);
  box-shadow: 0 7px 28px #0002;
}
.brand {
  font-size: 27px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand .company-logo {
  display: block;
  width: 195px;
  max-width: 45vw;
  height: auto;
  background: #fff;
}
.brand-header,
.catalog-header,
.staff-header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fff;
}
.brand-header {
  justify-content: flex-start;
  gap: 28px;
}
.brand-header > span {
  color: var(--muted);
}
.brand-pair {
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand-pair > span {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header-actions .button {
  border-color: var(--accent);
  color: var(--accent);
  padding: 10px 22px;
}
.text-link {
  color: var(--ink);
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 80px);
}
.catalog-main {
  padding: 38px 38px 60px;
}
.catalog-title h1 {
  font-family: 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
  font-size: 34px;
  font-weight: 700;
}
.catalog-title p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 16px;
}
.recipient {
  display: block;
  color: #8a9299;
  font-size: 12px;
  margin: 8px 0 24px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 14px;
}
.search-field input {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 13px 0;
  box-shadow: none;
}
.category-tabs {
  display: flex;
  gap: 28px;
  margin: 22px 0 20px;
  border-bottom: 1px solid transparent;
  overflow-x: auto;
}
.category-tabs button {
  border: 0;
  border-radius: 0;
  padding: 10px 10px 9px;
  white-space: nowrap;
  color: #59636e;
  background: transparent;
  font-weight: 500;
}
.category-tabs button.active {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.product {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px;
  transition: border-color 0.15s;
}
.product.selected {
  border-color: var(--accent);
}
.product-photo {
  aspect-ratio: 1.55;
  background: #f7f8f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product h3 {
  margin: 12px 0 5px;
  font-size: 16px;
  font-weight: 650;
}
.product p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 5px;
}
.product .spec {
  font-size: 12px;
}
.product .market-price {
  color: var(--ink);
}
.add-product {
  width: 100%;
  border-color: var(--accent);
  color: var(--accent);
  padding: 8px;
  margin-top: 12px;
  border-radius: 3px;
}
.selected .add-product {
  background: var(--accent-soft);
  border-color: transparent;
}
.cart {
  border-left: 1px solid var(--line);
  padding: 37px 30px 24px;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: auto;
  background: #fff;
}
.cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.cart-title h2 {
  font-size: 25px;
  margin: 0;
}
.cart-empty {
  padding: 36px 0 44px;
  color: var(--muted);
  line-height: 1.9;
}
.cart-item {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cart-item-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
}
.cart-item img {
  width: 96px;
  height: 78px;
  object-fit: cover;
  background: var(--soft);
}
.catalog-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.catalog-image-frame > img {
  grid-area: 1 / 1;
}
.catalog-image-frame:not([data-image-state='loaded']) > img {
  visibility: hidden;
}
.catalog-image-feedback {
  grid-area: 1 / 1;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px;
  color: #716b61;
  text-align: center;
  font-size: 12px;
}
.catalog-image-feedback[hidden],
.catalog-image-feedback button[hidden] {
  display: none;
}
.catalog-image-feedback button {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
  border: 1px solid #b11f2e;
  color: #b11f2e;
  background: #fff;
  border-radius: 8px;
}
.cart-item-top > .catalog-image-frame {
  width: 96px;
  min-height: 78px;
}
.cart-item h3 {
  margin: 4px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.cart-item p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.cart-remove {
  border: 0;
  padding: 0;
  background: none;
  font-size: 23px;
  line-height: 1;
  color: #65717c;
  font-weight: 400;
}
.quantity-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.quantity-line label {
  font-size: 13px;
}
.quantity-line input {
  width: 80px;
  padding: 6px 10px;
  margin: 0;
}
.cart-item textarea {
  font-size: 13px;
  min-height: 60px;
  height: 60px;
}
.cart-footer > strong {
  display: block;
  font-size: 18px;
  margin: 8px 0 20px;
}
.cart-footer > label {
  margin-bottom: 22px;
}
.cart-footer .primary {
  padding: 13px;
}
.sample-note {
  text-align: center;
  margin: 18px 0 0;
  font-size: 11px;
}
.inline-error {
  background: #fff3f2;
  border: 1px solid #efd0ca;
  color: #923b32;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.download-list {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.download-list h2 {
  font-size: 17px;
}
.download-list a {
  display: block;
  margin: 8px 0;
}
.mobile-only,
.mobile-cart-button {
  display: none;
}
.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.pdf-viewer {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}
.pdf-viewer canvas {
  display: block;
  width: 100%;
  height: auto;
}
.pdf-hotspot {
  position: absolute;
  border: 2px solid #b11f2e70;
  background: #b11f2e08;
  padding: 0;
  border-radius: 3px;
  align-items: flex-end;
  justify-content: flex-start;
}
.pdf-hotspot:hover {
  background: #b11f2e18;
  border-color: var(--accent);
}
.pdf-hotspot span {
  background: var(--accent);
  color: #fff;
  padding: 4px 7px;
  font-size: 11px;
  border-radius: 0 3px 0 0;
}
.pdf-viewer + .muted {
  font-size: 12px;
  margin: 12px 0;
}
.staff-header {
  padding: 0 30px;
  height: 72px;
}
.staff-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.staff-identity form {
  margin: 0;
}
.staff-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.staff-nav {
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: #fcfcfd;
}
.staff-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 3px 0;
  color: #5c6772;
  border-radius: 5px;
  font-weight: 500;
}
.staff-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}
.staff-nav a:hover {
  background: var(--soft);
  text-decoration: none;
}
.nav-note {
  margin: 40px 16px;
  color: #8d969f;
  font-size: 12px;
  line-height: 1.9;
}
.workspace-nav-group {
  margin: 22px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #8b7d71;
  letter-spacing: 0.08em;
}
.workspace-nav-group:first-child {
  margin-top: 0;
}
@media (max-width: 760px) {
  .workspace-nav-group {
    display: none;
  }
}
.unread-badge {
  border-radius: 20px;
  background: #c74d42;
  color: #fff;
  padding: 1px 6px;
  font-size: 11px;
  min-width: 18px;
  text-align: center;
}
.staff-main {
  padding: 36px 40px;
  max-width: 1500px;
  width: 100%;
  overflow: hidden;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 28px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 30px 0 18px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
}
.section-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.overview {
  display: flex;
  border-block: 1px solid var(--line);
  padding: 25px 0;
  gap: 80px;
}
.overview > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview strong {
  font-size: 30px;
  font-weight: 600;
}
.overview span {
  color: var(--muted);
  font-size: 13px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: #f8f9fa;
  padding: 13px 16px;
  white-space: nowrap;
}
td {
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.7;
}
td strong {
  font-weight: 550;
  overflow-wrap: anywhere;
}
td small {
  margin-top: 4px;
}
.table-image {
  width: 75px;
  height: 55px;
  object-fit: cover;
}
.form-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 24px;
  background: #fff;
}
.form-panel summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 10px 20px 24px;
  align-items: end;
}
.form-grid > button {
  align-self: end;
  justify-self: start;
}
.form-hint {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.record-note {
  padding: 24px 0;
  color: #5c6772;
}
.login-layout {
  max-width: 1160px;
  padding: 100px 40px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 100px;
}
.login-intro {
  padding-top: 35px;
}
.login-intro h1 {
  font-family: 'Noto Serif CJK SC', SimSun, serif;
  font-size: 47px;
  line-height: 1.5;
  margin-bottom: 30px;
}
.login-intro > p {
  color: var(--muted);
  font-size: 15px;
}
.login-flow {
  display: flex;
  gap: 20px;
  padding-top: 26px;
}
.login-flow i {
  font-style: normal;
  color: #a2a9b1;
}
.login-form {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.login-form h2 {
  margin-bottom: 8px;
}
.login-form form label {
  margin: 24px 0;
}
.login-form form .primary {
  margin-top: 8px;
}
.demo-box {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.demo-box p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.demo-box .subtle {
  font-size: 12px;
  background: var(--soft);
  padding: 8px;
}
.demo-box small {
  margin-top: 12px;
}
.result-page {
  max-width: 600px;
  margin: 100px auto;
  padding: 30px;
  text-align: center;
}
.result-page h1 {
  font-size: 30px;
}
.result-page .button {
  margin-top: 20px;
}
.success-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 35px;
  display: grid;
  place-items: center;
}
@media (min-width: 1500px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
  .catalog-main {
    padding-inline: 44px;
  }
  .cart {
    padding-inline: 36px;
  }
  .product-photo {
    aspect-ratio: 1.65;
  }
}
@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .catalog-main {
    padding: 30px 22px;
  }
  .cart {
    padding: 30px 20px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-title h1 {
    font-size: 28px;
  }
  .staff-main {
    padding: 30px 24px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-layout {
    gap: 35px;
    padding-top: 70px;
  }
  .login-intro h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .catalog-header,
  .brand-header,
  .staff-header {
    height: 66px;
    padding: 0 18px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-pair > span {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions .button {
    padding: 8px 11px;
    font-size: 12px;
  }
  .desktop-only {
    display: none;
  }
  .catalog-layout {
    display: block;
  }
  .catalog-main {
    padding: 28px 15px 95px;
  }
  .catalog-title h1 {
    font-size: 27px;
  }
  .catalog-title p {
    font-size: 13px;
  }
  .recipient {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .category-tabs {
    gap: 14px;
    margin: 16px 0;
  }
  .category-tabs button {
    font-size: 13px;
  }
  .product-grid {
    gap: 16px 10px;
  }
  .product {
    padding: 4px;
  }
  .product-photo {
    aspect-ratio: 1.15;
  }
  .product h3 {
    font-size: 13px;
  }
  .product p {
    font-size: 11px;
  }
  .product .spec {
    font-size: 10px;
  }
  .add-product {
    font-size: 12px;
    padding: 8px 4px;
    margin-top: 8px;
  }
  .cart {
    display: none;
    position: fixed;
    inset: 66px 0 0 0;
    padding: 24px 22px 90px;
    max-height: none;
    z-index: 60;
    border-left: 0;
    overflow: auto;
  }
  .cart.open {
    display: block;
  }
  .mobile-only {
    display: inline-flex;
  }
  .mobile-cart-button {
    display: flex;
    position: fixed;
    z-index: 70;
    bottom: 14px;
    left: 16px;
    right: 16px;
    background: var(--accent);
    color: white;
    border: 0;
    box-shadow: 0 6px 22px #b11f2e33;
    padding: 14px;
  }
  .mobile-cart-button:hover {
    color: #fff;
    background: #901824;
  }
  .mobile-cart-button span {
    background: #ffffff20;
    padding: 1px 8px;
    border-radius: 20px;
  }
  .staff-header {
    height: auto;
    min-height: 66px;
    gap: 10px;
  }
  .staff-identity {
    gap: 6px;
    font-size: 10px;
  }
  .staff-identity .subtle {
    font-size: 11px;
    padding: 5px;
  }
  .staff-layout {
    display: block;
  }
  .staff-nav {
    display: flex;
    gap: 3px;
    padding: 10px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .staff-nav a {
    white-space: nowrap;
    padding: 9px 13px;
    font-size: 12px;
  }
  .nav-note {
    display: none;
  }
  .staff-main {
    padding: 24px 15px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .overview {
    gap: 35px;
  }
  .overview strong {
    font-size: 25px;
  }
  .overview span {
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    padding: 10px 16px 20px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .login-layout {
    display: block;
    padding: 35px 25px;
    max-width: 430px;
  }
  .login-intro {
    display: none;
  }
  .login-form {
    border: 0;
    padding: 0;
  }
  .brand-header > span {
    font-size: 11px;
  }
  .result-page {
    margin: 70px auto;
  }
  .result-page h1 {
    font-size: 26px;
  }
  .cart-item-top {
    grid-template-columns: 100px minmax(0, 1fr) 24px;
  }
  .table-wrap td,
  .table-wrap th {
    padding: 12px;
    min-width: 90px;
  }
  .toast {
    bottom: 85px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  body.cart-open {
    overflow: hidden;
  }
  .cart.open {
    inset: 0;
    padding-top: 26px;
    padding-bottom: 28px;
  }
  .cart.open .cart-title {
    position: sticky;
    top: -26px;
    background: #fff;
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 2;
  }
}
@media (max-width: 760px) {
  .cart.open {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    align-self: stretch;
  }
}
.dealer-site-logo {
  display: block;
  width: auto;
  max-width: min(240px, 55vw);
  height: 48px;
  object-fit: contain;
}
.dealer-site-name {
  color: #b11f2e;
  overflow-wrap: anywhere;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.language-switch a[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .catalog-header,
  .brand-header,
  .staff-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.quote-stock-warning {
  color: #b11f2e;
  font-weight: 700;
}

.customer-table td {
  vertical-align: top;
}
.customer-table td:last-child {
  width: 48%;
  min-width: 320px;
}
.customer-sharing {
  max-width: 760px;
}
.link-create-panel {
  margin-bottom: 16px;
}
.link-create-panel summary {
  display: inline-block;
  cursor: pointer;
}
.link-create-panel form {
  padding: 16px;
  border: 1px solid var(--line, #ddd);
  margin-top: 12px;
}
.link-create-panel select {
  width: 100%;
  margin: 8px 0;
}
.share-link-card {
  border: 1px solid #d8d0c4;
  padding: 16px;
  margin: 12px 0;
  border-radius: 8px;
  background: #faf8f3;
}
.share-link-url {
  width: 100%;
  min-width: 0;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.share-status {
  color: #68645e;
}

.product-import-page .table-wrap table {
  min-width: 1500px;
  table-layout: auto;
}
.product-import-page td {
  white-space: nowrap;
}
.product-import-page td:last-child {
  white-space: normal;
  min-width: 230px;
}

.voided-badge {
  color: #b11f2e;
  font-weight: 700;
}
[data-void-selection] {
  display: inline-block;
  margin-left: 1rem;
}

.white-review {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
}
.white-review input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
}

.upload-limits {
  display: block;
  margin-top: 8px;
  color: #6c655e;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.staff-header.import-header {
  gap: 24px;
  height: auto;
  min-height: 88px;
  padding-block: 14px;
}
.import-header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.import-header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #e4ded5;
  border-radius: 10px;
  background: #fff;
  color: #282521;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.import-header-nav a:hover {
  background: #f5f0e6;
  border-color: #c9bdb1;
}
.import-header-nav a[aria-current='page'] {
  background: #b11f2e;
  border-color: #b11f2e;
  color: #fff;
}
.import-header-nav a:focus-visible {
  outline: 3px solid #b11f2e;
  outline-offset: 3px;
}
.import-header-nav .import-header-back {
  margin-left: 10px;
}
@media (max-width: 700px) {
  .staff-header.import-header {
    padding: 14px 16px;
    gap: 14px;
  }
  .import-header-nav {
    width: 100%;
    gap: 6px;
  }
  .import-header-nav a {
    flex: 1;
    padding: 10px 7px;
    gap: 5px;
    font-size: 12px;
  }
  .import-header-nav .import-header-back {
    margin-left: 0;
  }
}

/* Customer-provided identity; kept local to this browser tab until submission. */
.customer-intake-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e5dfd6;
}
.customer-intake-heading h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.customer-intake-heading p,
.customer-intake-heading small {
  color: #746c65;
  line-height: 1.6;
}
.customer-intake-heading small {
  display: block;
  margin-bottom: 16px;
}
.customer-intake-fields {
  display: grid;
  gap: 14px;
}
.customer-intake-fields label {
  font-size: 13px;
  font-weight: 600;
}
.customer-intake-fields input {
  margin-top: 7px;
  min-width: 0;
  width: 100%;
}
.customer-intake-notes {
  padding: 16px;
  margin: 20px 0;
  border: 1px solid #e5dfd6;
  border-radius: 12px;
  background: #faf8f4;
}
.country-field {
  min-width: 0;
}
.country-input-wrap {
  display: block;
  position: relative;
}
.country-input-wrap > img {
  position: absolute;
  width: 24px;
  height: 18px;
  object-fit: contain;
  left: 14px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  pointer-events: none;
}
.country-field.has-country input {
  padding-left: 48px;
}
.country-field > small {
  display: block;
  margin-top: 7px;
  color: #77716a;
  font-size: 12px;
  line-height: 1.5;
}
.country-options {
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #ded7ce;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #2820180d;
}
.country-options > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #292622;
  text-align: left;
  font-weight: 500;
}
.country-options > button img {
  flex-shrink: 0;
  width: 24px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
}
.country-options > button small {
  margin-left: auto;
  color: #8b847b;
  font-size: 11px;
}
.country-options > button:hover,
.country-options > button[aria-selected='true'] {
  background: #f9edef;
  color: #b11f2e;
}
.country-search-status {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f0e6;
  color: #77716a;
  font-size: 13px;
}
.customer-intake-notes textarea {
  min-height: 96px;
  margin-top: 10px;
}
