:root {
  --ink: #17293d;
  --muted: #607080;
  --line: #d6e0e4;
  --panel: #ffffff;
  --soft: #f3f6f8;
  --brand: #1f7a76;
  --brand-dark: #155f5c;
  --accent: #d9a441;
  --blue: #315c85;
  --steel: #8090a0;
  --danger: #c94c4c;
  --shadow: 0 16px 42px rgba(23, 41, 61, 0.09);
}

/* PC marketplace homepage — selected concept 3 */
.home-v3-body {
  background: #f4f7f8;
  color: #102238;
}

.home-v3-body .topbar {
  min-height: 78px;
  padding: 0 max(36px, calc((100vw - 1360px) / 2));
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #dfe7ea;
  box-shadow: none;
}

.home-v3-body .brand {
  gap: 14px;
  color: #102238;
  font-size: 20px;
  line-height: 1.06;
}

.home-v3-body .brand-mark {
  width: 52px;
  height: 44px;
  border-radius: 7px;
  background: #176e70;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.home-v3-body .brand small {
  display: block;
  margin-top: 4px;
  color: #667689;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-v3-body .nav {
  gap: 22px;
  color: #17293d;
  font-size: 14px;
  font-weight: 700;
}

.home-v3-body .nav a {
  padding: 10px 2px;
  border-radius: 0;
}

.home-v3-body .nav a:hover {
  background: transparent;
  color: #176e70;
}

.home-v3-body .nav-primary {
  padding-inline: 15px !important;
  border: 1px solid #176e70;
  border-radius: 5px !important;
  background: transparent;
  color: #176e70;
}

.market-home {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 34, 56, 0.04);
}

.market-hero {
  position: relative;
  display: block;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid #dfe7ea;
  background: #08131f;
}

.market-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(49%, 650px);
  min-height: 560px;
  justify-content: center;
  flex-direction: column;
  padding: 54px 32px 54px max(48px, calc((100vw - 1360px) / 2));
}

.market-kicker,
.market-section-head > div > p {
  margin: 0 0 12px;
  color: #176e70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.market-hero .market-kicker {
  color: #72c9c2;
}

.market-hero h1 {
  max-width: 580px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 4.1vw, 65px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.045em;
}

.market-hero-title-line {
  display: block;
  white-space: nowrap;
}

.market-hero-copy > p:not(.market-kicker) {
  max-width: 520px;
  margin: 22px 0 0;
  color: #b5c0ca;
  font-size: 17px;
  line-height: 1.75;
}

.market-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.market-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.market-button:hover {
  transform: translateY(-1px);
}

.market-button-primary {
  background: #176e70;
  color: #fff;
  box-shadow: 0 7px 18px rgba(23, 110, 112, 0.16);
}

.market-button-primary:hover {
  background: #125b5d;
}

.market-button-secondary {
  border-color: #cbd8dc;
  background: #fff;
  color: #23384d;
}

.market-button-link {
  padding-inline: 8px;
  color: #253a50;
}

.market-hero .market-button-link {
  color: #ffffff;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  background: rgba(7, 25, 47, 0.78);
  color: #d4dce3;
  font-size: 14px;
}

.availability-pill > i {
  color: #176e70;
  font-size: 17px;
}

.availability-pill strong {
  color: #ffffff;
  font-size: 17px;
}

.pill-divider {
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.28);
}

.market-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #08131f;
}

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

.market-process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px max(44px, calc((100vw - 1340px) / 2));
  border-bottom: 1px solid #dfe7ea;
  background: #fff;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.process-icon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eaf1f3;
  color: #13283e;
  font-size: 20px;
}

.process-step strong,
.process-step p {
  display: block;
  margin: 0;
}

.process-step strong {
  color: #102238;
  font-size: 15px;
  white-space: nowrap;
}

.process-step strong b {
  margin-right: 4px;
  font-weight: 900;
}

.process-step p {
  margin-top: 5px;
  color: #657487;
  font-size: 12px;
  line-height: 1.55;
}

.process-arrow {
  color: #28778b;
  font-size: 24px;
}

.market-catalog {
  padding: 30px max(44px, calc((100vw - 1340px) / 2)) 18px;
  background: #fff;
}

.market-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.market-section-head h2 {
  margin: 0;
  color: #102238;
  font-size: 27px;
  line-height: 1.15;
}

.market-section-head > div > p {
  margin-bottom: 7px;
}

.market-search {
  display: grid;
  grid-template-columns: auto minmax(200px, 310px) auto;
  align-items: center;
  min-height: 42px;
  border: 1px solid #cbd8dc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.market-search > i {
  padding-left: 14px;
  color: #748393;
}

.market-search input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #102238;
  font: inherit;
}

.market-search button {
  align-self: stretch;
  min-width: 72px;
  border: 0;
  background: #176e70;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.featured-list {
  display: grid;
  gap: 16px;
}

.featured-device {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 250px;
  height: 292px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dbe4e7;
  background: #fff;
}

.featured-image {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  background: #f6f8f9;
}

.featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.featured-main {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 22px 26px;
}

.featured-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.featured-title-row h3 {
  margin: 0;
  color: #102238;
  font-size: 25px;
  line-height: 1.25;
}

.featured-title-row > div > span {
  display: block;
  margin-top: 7px;
  color: #657487;
  font-size: 13px;
  font-weight: 700;
}

.stock-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 3px;
  background: #f0f3f4;
  color: #687786;
  font-size: 11px;
  font-weight: 800;
}

.stock-pill.in-stock {
  background: #e7f4ef;
  color: #1a705b;
}

.featured-description {
  display: -webkit-box;
  max-width: 650px;
  margin: 14px 0 18px;
  overflow: hidden;
  color: #58697a;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-points > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.feature-points i {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cbd7dc;
  border-radius: 50%;
  color: #364c61;
  font-size: 16px;
}

.feature-points span,
.feature-points strong,
.feature-points small {
  display: block;
  min-width: 0;
}

.feature-points strong {
  overflow: hidden;
  color: #22374c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-points small {
  margin-top: 3px;
  color: #778594;
  font-size: 10px;
}

.featured-offer {
  display: flex;
  align-self: stretch;
  justify-content: center;
  flex-direction: column;
  padding: 22px 24px;
  border-left: 1px solid #dbe4e7;
}

.featured-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 11px;
}

.featured-price strong {
  color: #ee5b16;
  font-size: 35px;
  line-height: 1;
}

.featured-price span {
  color: #536477;
  font-size: 14px;
}

.featured-offer > p {
  margin: 7px 0;
  color: #536477;
  font-size: 13px;
}

.offer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.offer-actions .market-button {
  min-height: 42px;
  padding-inline: 20px;
}

.spec-link {
  color: #176e70;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.market-filter {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-filter label {
  max-width: 250px;
  margin-right: auto;
  color: #536477;
  font-size: 12px;
  font-weight: 700;
}

.market-filter select {
  min-width: 220px;
  margin-top: 6px;
}

.market-filter .market-button {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 13px;
}

.market-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px max(44px, calc((100vw - 1340px) / 2));
  border-top: 1px solid #dfe7ea;
  border-bottom: 1px solid #dfe7ea;
  background: #fbfcfc;
}

.market-trust > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 24px;
}

.market-trust > div + div {
  border-left: 1px solid #d7e0e4;
}

.market-trust i {
  color: #24394e;
  font-size: 30px;
}

.market-trust span,
.market-trust strong,
.market-trust small {
  display: block;
}

.market-trust strong {
  color: #1d3247;
  font-size: 14px;
}

.market-trust small {
  margin-top: 5px;
  color: #6a7988;
  font-size: 11px;
}

.home-v3-supporting {
  display: none !important;
}

.home-v3-body .payment-rule-dock-spacer {
  height: 84px;
}

.home-v3-body .payment-rule-dock {
  left: auto;
  right: 28px;
  bottom: 24px;
  width: min(420px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid #cbd8dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(16, 34, 56, 0.16);
}

.home-v3-body .payment-rule-dock strong {
  color: #1d3247;
  font-size: 13px;
}

.home-v3-body .payment-rule-dock span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
}

.home-v3-body .payment-rule-dock .button {
  flex: 0 0 auto;
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .home-v3-body .topbar {
    padding-inline: 28px;
  }

  .home-v3-body .nav {
    gap: 12px;
  }

  .market-hero-copy {
    width: 56%;
    padding-left: 42px;
  }

  .market-process,
  .market-catalog,
  .market-trust {
    padding-inline: 32px;
  }

  .featured-device {
    grid-template-columns: 260px minmax(0, 1fr) 235px;
  }

  .feature-points {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .feature-points small {
    display: none;
  }
}

@media (min-width: 100000px) and (max-width: 920px) {
  .home-v3-body .topbar {
    position: relative;
    flex-wrap: wrap;
    padding: 14px 22px;
  }

  .home-v3-body .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .market-hero {
    min-height: 520px;
  }

  .market-hero-copy {
    width: 100%;
    max-width: 560px;
    min-height: 520px;
    padding: 48px 26px;
  }

  .market-hero h1 {
    font-size: clamp(38px, 9vw, 56px);
  }

  .market-hero-visual img {
    min-height: 520px;
    object-position: 64% center;
  }

  .market-process {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 26px;
  }

  .process-arrow {
    display: none;
  }

  .market-catalog {
    padding: 28px 20px 18px;
  }

  .market-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .market-search {
    width: 100%;
  }

  .featured-device {
    grid-template-columns: 1fr;
    height: auto;
  }

  .featured-image img {
    height: 320px;
    min-height: 320px;
  }

  .featured-offer {
    border-top: 1px solid #dbe4e7;
    border-left: 0;
  }

  .feature-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .market-trust {
    grid-template-columns: 1fr;
    padding: 10px 20px;
  }

  .market-trust > div {
    justify-content: flex-start;
    padding: 16px 8px;
  }

  .market-trust > div + div {
    border-top: 1px solid #d7e0e4;
    border-left: 0;
  }
}

@media (min-width: 100000px) and (max-width: 560px) {
  .home-v3-body .brand {
    font-size: 17px;
  }

  .home-v3-body .brand-mark {
    width: 46px;
    height: 40px;
  }

  .market-hero-copy {
    padding-top: 38px;
  }

  .market-hero h1 {
    font-size: 38px;
  }

  .market-hero-copy > p:not(.market-kicker) {
    font-size: 15px;
  }

  .market-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .availability-pill {
    width: 100%;
    justify-content: center;
  }

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

  .market-process {
    grid-template-columns: 1fr;
  }

  .feature-points {
    grid-template-columns: 1fr;
  }

  .featured-image img {
    height: 240px;
    min-height: 240px;
  }

  .market-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .market-filter label,
  .market-filter select {
    width: 100%;
    max-width: none;
  }

  .home-v3-body .payment-rule-dock {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .home-v3-body .payment-rule-dock div {
    min-width: 0;
  }

  .home-v3-body .payment-rule-dock span {
    display: none;
  }
}

/* Admin order workspace — task-first concept 2 */
.manage-main .admin-order-workspace {
  width: min(1480px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.admin-order-workspace-head {
  margin-bottom: 14px;
}

.admin-order-title-row,
.admin-order-title-line {
  display: flex;
  align-items: center;
}

.admin-order-title-row {
  justify-content: space-between;
  gap: 24px;
}

.admin-order-title-row > div {
  min-width: 0;
}

.admin-order-title-line {
  flex-wrap: wrap;
  gap: 10px 14px;
}

.admin-order-title-line h1 {
  margin: 2px 6px 0 0;
  color: var(--manage-navy);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.admin-order-title-row .eyebrow {
  margin: 0 0 4px;
  color: #6e7e8f;
  font-size: 11px;
}

.admin-order-number {
  color: #647587;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.admin-order-status {
  padding: 6px 10px;
  border: 1px solid #cce3e0;
  border-radius: 7px;
  background: #eff8f6;
  color: var(--manage-teal);
  font-size: 12px;
  font-weight: 850;
}

.admin-order-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #647587;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-back-link {
  order: 2;
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--manage-line);
  border-radius: 8px;
  background: #ffffff;
  color: #475a6d;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.admin-back-link:hover {
  border-color: #8abbb7;
  color: var(--manage-teal);
}

.admin-order-workflow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 16px 22px 14px;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 37, 58, 0.035);
}

.admin-order-workflow-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: #93a0ac;
  text-align: center;
}

.admin-order-workflow-step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 14px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  border-top: 2px solid #e1e7ea;
  content: "";
}

.admin-order-workflow-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #dfe6e9;
  border-radius: 50%;
  background: #ffffff;
  color: #8593a0;
  font-size: 11px;
  font-weight: 900;
}

.admin-order-workflow-step strong {
  margin-top: 2px;
  color: #5d6d7d;
  font-size: 12px;
}

.admin-order-workflow-step small {
  max-width: 140px;
  overflow: hidden;
  color: #8a98a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-workflow-step.is-complete > span,
.admin-order-workflow-step.is-current > span {
  border-color: var(--manage-teal);
  color: var(--manage-teal);
}

.admin-order-workflow-step.is-complete:not(:last-child)::after {
  border-color: #79b5b0;
}

.admin-order-workflow-step.is-current > span {
  background: var(--manage-teal);
  color: #ffffff;
}

.admin-order-workflow-step.is-current strong {
  color: var(--manage-teal);
}

.admin-current-task {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 2.3fr);
  align-items: stretch;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 37, 58, 0.045);
}

.admin-current-task-context {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-right: 1px solid var(--manage-line);
  background: #f7faf9;
}

.admin-current-task-context:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr);
}

.admin-current-task-context img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid #e2e9eb;
  border-radius: 10px;
  background: #ffffff;
}

.admin-current-task-context > div {
  min-width: 0;
}

.admin-current-task-context :is(h2, strong, small) {
  display: block;
}

.admin-current-task-context h2 {
  margin: 4px 0 9px;
  color: var(--manage-navy);
  font-size: 21px;
  line-height: 1.2;
}

.admin-current-task-context strong {
  overflow: hidden;
  color: #2d4053;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-current-task-context small {
  margin-top: 5px;
  color: #748596;
  font-size: 11px;
}

.task-kicker {
  color: var(--manage-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-current-task-action {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 20px 22px;
}

.admin-task-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
}

.admin-task-inline-form.inspection-form {
  grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1.35fr) minmax(140px, 0.7fr) auto;
}

.admin-task-inline-form.settlement-form {
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
}

.admin-task-inline-form.settlement-form .task-field-wide {
  grid-column: span 2;
}

.admin-task-inline-form.compact {
  grid-template-columns: minmax(260px, 1fr) auto;
  max-width: 720px;
}

.admin-task-inline-form label,
.stacked-mini-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #536577;
  font-size: 12px;
  font-weight: 800;
}

.admin-task-inline-form :is(input, select),
.admin-record-drawer :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d7e2e6;
  border-radius: 8px;
  background: #fbfcfd;
  color: #172b3f;
  font: inherit;
}

.admin-task-inline-form :is(input, select):focus,
.admin-record-drawer :is(input, select):focus {
  border-color: #4c9691;
  outline: 3px solid rgba(31, 122, 118, 0.1);
}

.admin-task-inline-form .button {
  min-width: 130px;
  min-height: 44px;
  white-space: nowrap;
}

.admin-task-inline-form .task-form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
}

.admin-task-minor-form {
  margin: 10px 0 0;
  text-align: right;
}

.admin-task-message {
  padding: 14px 16px;
  border-left: 3px solid #7b8c9c;
  background: #f6f8f9;
}

.admin-task-message.success {
  border-left-color: var(--manage-teal);
  background: #f1f8f6;
}

.admin-task-message strong {
  color: var(--manage-navy);
}

.admin-task-message p {
  margin: 5px 0 0;
  color: #657687;
  font-size: 12px;
}

.admin-extension-inline,
.admin-refund-task {
  display: flex;
  align-items: end;
  gap: 16px;
}

.admin-extension-inline > div,
.admin-refund-task > div {
  display: grid;
  gap: 3px;
  min-width: 105px;
}

.admin-extension-inline span,
.admin-refund-task span {
  color: #6e7f8f;
  font-size: 11px;
}

.admin-extension-inline strong,
.admin-refund-task strong {
  color: var(--manage-navy);
  font-size: 17px;
}

.admin-extension-inline small {
  color: #788897;
}

.overdue-deduction-panel {
  align-items: center;
}

.overdue-deduction-form.admin-task-inline-form.compact {
  grid-template-columns: minmax(130px, 0.55fr) minmax(300px, 1.45fr) auto;
  width: 100%;
  max-width: none;
}

.admin-order-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-order-fact-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
}

.admin-order-fact-card header,
.admin-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-order-fact-card header {
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e6ecee;
}

.admin-order-fact-card h2 {
  margin: 0;
  color: var(--manage-navy);
  font-size: 17px;
}

.admin-order-fact-card header :is(a, span) {
  color: var(--manage-teal);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-order-fact-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-order-fact-card dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.admin-order-fact-card dt {
  color: #718191;
  font-size: 12px;
}

.admin-order-fact-card dd {
  min-width: 0;
  margin: 0;
  color: #26394d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-order-record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
  gap: 14px;
}

.admin-logistics-workspace,
.admin-order-record-aside {
  min-width: 0;
}

.admin-logistics-workspace {
  min-height: 420px;
  padding: 20px 22px;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
}

.admin-record-header {
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5ecef;
}

.admin-record-header > div > span {
  color: var(--manage-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-record-header h2 {
  margin: 3px 0 2px;
  color: var(--manage-navy);
  font-size: 21px;
}

.admin-record-header p {
  margin: 0;
  color: #768695;
  font-size: 11px;
}

.admin-logistics-content {
  margin-top: 2px;
}

.admin-logistics-content .shipment-timeline {
  margin-top: 18px;
  padding-top: 18px;
}

.admin-logistics-content .shipment-summary {
  padding: 12px 14px;
  border: 1px solid #e0e8eb;
  border-radius: 9px;
  background: #f8fafb;
}

.admin-logistics-content .shipment-latest {
  margin-top: 14px;
}

.admin-logistics-content .shipment-trace-details {
  margin-top: 12px;
}

.admin-order-record-aside {
  display: grid;
  gap: 9px;
}

.admin-record-drawer {
  overflow: hidden;
  border: 1px solid var(--manage-line);
  border-radius: 10px;
  background: #ffffff;
}

.admin-record-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  color: #314559;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.admin-record-drawer summary::-webkit-details-marker {
  display: none;
}

.admin-record-drawer summary::after {
  margin-left: 4px;
  color: #758695;
  content: "+";
  font-size: 17px;
  font-weight: 500;
}

.admin-record-drawer[open] summary::after {
  content: "−";
}

.admin-record-drawer summary span {
  margin-right: auto;
}

.admin-record-drawer summary small {
  color: #82909d;
  font-size: 11px;
  font-weight: 650;
}

.admin-record-drawer > div {
  padding: 0 17px 17px;
  border-top: 1px solid #e7edef;
  color: #4e6072;
  font-size: 12px;
  line-height: 1.6;
}

.admin-record-drawer > div > p:first-child {
  margin-top: 14px;
}

.admin-rental-refund {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e7edef;
}

.admin-status-log-list {
  max-height: 290px;
  overflow: auto;
}

.admin-status-log-list p {
  display: grid;
  grid-template-columns: 112px minmax(130px, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f3;
}

.admin-status-log-list time,
.admin-status-log-list small {
  color: #7b8996;
}

@media (min-width: 100000px) and (max-width: 1180px) {
  .admin-current-task {
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 2.2fr);
  }

  .admin-task-inline-form,
  .admin-task-inline-form.inspection-form,
  .admin-task-inline-form.settlement-form,
  .overdue-deduction-form.admin-task-inline-form.compact {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .admin-task-inline-form .button {
    width: 100%;
  }

  .admin-order-record-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (min-width: 100000px) and (max-width: 900px) {
  .manage-main .admin-order-workspace {
    width: calc(100% - 32px);
    padding-top: 20px;
  }

  .admin-order-workflow {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    overflow-x: auto;
  }

  .admin-current-task,
  .admin-order-record-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-current-task-context {
    border-right: 0;
    border-bottom: 1px solid var(--manage-line);
  }

  .admin-order-fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-logistics-workspace {
    min-height: 0;
  }
}

@media (min-width: 100000px) and (max-width: 620px) {
  .admin-order-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-back-link {
    order: -1;
  }

  .admin-current-task-context {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-current-task-context img {
    width: 64px;
    height: 64px;
  }

  .admin-task-inline-form,
  .admin-task-inline-form.inspection-form,
  .admin-task-inline-form.settlement-form,
  .admin-task-inline-form.compact,
  .overdue-deduction-form.admin-task-inline-form.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-task-inline-form.settlement-form .task-field-wide {
    grid-column: auto;
  }

  .admin-extension-inline,
  .admin-refund-task {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-order-fact-card dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .admin-status-log-list p {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef3f5;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 7vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.manage-body {
  display: block;
  min-height: 100vh;
  background: #eef3f5;
}

.manage-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 14px 32px;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(36, 49, 63, 0.08);
}

.manage-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  margin-bottom: 0;
}

.manage-brand .brand-mark {
  background: var(--ink);
  color: #fff;
}

.manage-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.manage-nav a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.manage-nav a:hover {
  background: #e5f3f1;
  color: var(--brand-dark);
}

.manage-main {
  min-width: 0;
}

.manage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(36, 49, 63, 0.04);
}

.manage-topbar span,
.manage-topbar strong {
  display: block;
}

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

.manage-messages {
  margin-top: 18px;
}

.manage-main .section {
  max-width: none;
  padding: 30px 32px 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}

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

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover,
.nav-primary {
  background: #e5f2f0;
  color: var(--brand-dark);
}

.messages {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.message {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e5f3f1;
  border: 1px solid #b9ddda;
}

.message-error {
  background: #fff1f1;
  border-color: #e7b4b4;
  color: var(--danger);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 32px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 24px;
}

.hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.hero-text,
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.hero-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  box-shadow: var(--shadow);
}

.hero-visual img,
.detail-media img,
.device-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-checks,
.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-checks {
  margin-top: 22px;
}

.hero-checks span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.workflow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.workflow div {
  flex: 1 1 220px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 41, 61, 0.05);
}

.workflow span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #eef3f5;
  color: var(--brand-dark);
  font-weight: 900;
}

.workflow strong,
.workflow p {
  display: block;
  margin: 0;
}

.workflow p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-dark);
}

.button.ghost {
  background: #fff;
  color: var(--brand-dark);
}

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

.button.small {
  min-height: 38px;
  padding: 0 14px;
}

.button.tiny {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.metrics div {
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-size: 30px;
}

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

.section,
.detail-layout,
.auth-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 70px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-head.compact {
  margin-top: 30px;
  align-items: center;
}

.section-note {
  color: var(--muted);
  font-size: 14px;
}

.section h1,
.section h2,
.detail-panel h1,
.auth-card h1 {
  margin: 6px 0 0;
}

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

.device-card,
.panel,
.auth-card,
.detail-panel,
.detail-media {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.device-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.device-image {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 18px;
  background: #edf4f5;
}

.device-body {
  padding: 22px;
}

.device-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.device-title-row h3 {
  margin: 0;
  font-size: 20px;
}

.device-body p {
  color: var(--muted);
  line-height: 1.7;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status.ok {
  background: #e5f2f0;
  color: var(--brand-dark);
}

.status.warning {
  background: #fff4d9;
  color: #866414;
}

.status.danger-soft {
  background: #fff0ee;
  color: #a9473d;
}

.status.muted {
  background: #eef1f2;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price small,
.info-grid span,
.detail-facts span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.price strong {
  font-size: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.detail-media {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 34px;
  position: sticky;
  top: 96px;
  align-self: start;
  background: #edf4f5;
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.media-caption strong,
.media-caption span {
  display: block;
}

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

.detail-panel {
  padding: 30px;
}

.detail-facts,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

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

.rule-grid section {
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.rule-grid h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.rule-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-facts div,
.info-grid div {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.detail-facts strong,
.info-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.order-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #cfdde1;
  border-radius: 8px;
  background: #fbfcfd;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-title h2 {
  margin: 4px 0 0;
}

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

.auth-card {
  max-width: 480px;
  margin-top: 54px;
  padding: 34px;
}

.auth-card form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 8px;
  background: #eef3f4;
}

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

.auth-tab.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(36, 49, 63, 0.08);
}

.login-panel.hidden {
  display: none;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
}

.form-note {
  color: var(--muted);
}

.form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.form-note a {
  color: var(--brand-dark);
  font-weight: 800;
}

.account-hints {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.account-hints div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.account-hints strong,
.account-hints span {
  display: block;
}

.account-hints span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.6fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.order-finance-panels {
  margin-top: 18px;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 24px;
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.progress-step strong {
  color: inherit;
  font-size: 14px;
}

.progress-step.done,
.progress-step.current {
  border-color: #b9ddda;
  color: var(--brand-dark);
}

.progress-step.current {
  box-shadow: 0 10px 28px rgba(43, 140, 133, 0.16);
}

.panel {
  padding: 20px;
}

.panel h2 {
  margin: 0 0 12px;
}

.shipment-block {
  padding: 12px 0;
  border-top: 1px solid #e4ecef;
}

.shipment-block:first-of-type {
  border-top: 0;
}

.trace-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.trace-list li {
  margin: 8px 0;
  line-height: 1.55;
}

.trace-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.inline-return {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-bar label {
  min-width: 190px;
  flex: 1 1 190px;
}

.catalog-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.75fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid #d7e2e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 42, 61, 0.07);
}

.catalog-result {
  margin: -6px 0 18px;
  color: var(--muted);
}

.catalog-result strong {
  margin-left: 8px;
  color: var(--ink);
}

.manage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.manage-grid > * {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.manage-grid a {
  cursor: pointer;
}

.manage-grid a:hover {
  border-color: #b9ddda;
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(36, 49, 63, 0.10);
}

.manage-grid strong {
  font-size: 34px;
  position: relative;
  z-index: 1;
}

.manage-grid span,
.table-like {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.manage-grid small {
  color: #8795a1;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.device-state-list {
  display: grid;
  gap: 14px;
}

.device-state-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 41, 61, 0.06);
}

.device-state-main,
.state-facts {
  display: grid;
  gap: 14px;
}

.device-state-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.device-state-main h2 {
  margin: 4px 0;
}

.device-state-main p {
  margin: 0;
  color: var(--muted);
}

.state-facts {
  grid-template-columns: 1fr 1.25fr 0.9fr;
}

.state-facts div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.state-facts span,
.state-facts small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.state-facts strong {
  display: block;
  margin: 6px 0 4px;
  overflow-wrap: anywhere;
}

.table-like {
  display: grid;
  gap: 8px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-head {
  color: var(--ink);
  font-weight: 800;
  background: #edf4f5;
  border-color: #d5e4e6;
}

.table-row {
  box-shadow: 0 8px 26px rgba(36, 49, 63, 0.05);
}

.table-row:hover {
  border-color: #bfd9dc;
  box-shadow: 0 12px 34px rgba(36, 49, 63, 0.08);
}

.table-head.enterprise,
.table-row.enterprise {
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr 1fr;
}

.table-head.iot,
.table-row.iot {
  grid-template-columns: 1fr 0.8fr 0.6fr 1fr 0.6fr 1fr;
}

.table-head.users,
.table-row.users {
  grid-template-columns: 1fr 1fr 0.8fr 0.8fr 0.6fr 1fr;
}

.table-head.products,
.table-row.products {
  grid-template-columns: 1.4fr 0.85fr 0.75fr 0.65fr 0.55fr 1fr 0.6fr 1.1fr;
}

.table-head.invoices,
.table-row.invoices,
.table-head.audit,
.table-row.audit {
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.7fr 0.9fr 1fr;
}

.table-head.devices,
.table-row.devices {
  grid-template-columns: 1fr 1.4fr 0.8fr 0.7fr 1fr 0.5fr;
}

.inline-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 8px;
  align-items: center;
}

.inline-admin-form input,
.inline-admin-form .button {
  grid-column: 1 / -1;
}

.user-row-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.user-row-actions > form:not(.inline-admin-form) .button {
  width: 100%;
}

.protected-note {
  color: var(--muted);
  line-height: 1.45;
}

.table-row.invoices .inline-admin-form {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.table-row.invoices .inline-admin-form .button {
  width: 100%;
}

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

.invoice-guide {
  margin-bottom: 16px;
}

.inline-admin-form input,
.inline-admin-form select {
  min-height: 34px;
  font-size: 13px;
}

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

.system-create-form,
.system-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.settlement-deposit-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #dbe5e9;
  border-radius: 8px;
  background: #f6f9fa;
}

.settlement-deposit-summary span,
.settlement-deposit-summary small {
  color: #69798a;
}

.settlement-deposit-summary strong {
  color: #102032;
  font-size: 24px;
}

.deposit-review-card {
  border-top: 4px solid #2d7772;
}

.system-create-form h2,
.system-note h2 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0;
}

.system-note {
  border-left: 4px solid var(--danger);
}

.system-note p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.table-head.system-account,
.table-row.system-account,
.table-head.system-order,
.table-row.system-order,
.table-head.system-product,
.table-row.system-product {
  grid-template-columns: minmax(150px, 1.3fr) minmax(110px, .9fr) minmax(100px, .8fr) minmax(70px, .5fr) minmax(120px, .9fr) minmax(120px, .8fr);
}

.system-table form {
  margin: 0;
}

@media (min-width: 100000px) and (max-width: 980px) {
  .system-admin-grid {
    grid-template-columns: 1fr;
  }

  .table-head.system-account,
  .table-head.system-order,
  .table-head.system-product {
    display: none;
  }

  .table-row.system-account,
  .table-row.system-order,
  .table-row.system-product {
    grid-template-columns: 1fr 1fr;
  }
}

.table-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.log-panel {
  margin-top: 18px;
}

.product-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.checkbox-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.agreement-line {
  align-items: flex-start;
  line-height: 1.6;
}

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

.address-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.address-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.address-title strong {
  font-size: 18px;
}

.address-title span {
  color: var(--muted);
}

.address-title em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e5f3f1;
  color: var(--brand-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.address-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef1f2;
  color: var(--ink);
}

.inline-return input {
  width: 210px;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

/* Premium visual pass */
body {
  background: #edf2f5;
}

.topbar {
  min-height: 78px;
  padding: 0 clamp(28px, 6vw, 88px);
  background: #0f2335;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7fafb;
  box-shadow: 0 18px 38px rgba(13, 30, 46, 0.18);
}

.topbar .brand {
  color: #fff;
}

.topbar .brand-mark {
  background: #1f7a76;
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 122, 118, 0.32);
}

.topbar .nav {
  color: #c9d5df;
}

.topbar .nav a {
  min-height: 38px;
  padding: 0 13px;
  color: #dbe5ec;
}

.topbar .nav a:hover,
.topbar .nav-primary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.hero {
  max-width: none;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.72fr);
  padding: 58px clamp(28px, 6vw, 88px) 48px;
  background: #10263a;
  color: #f7fafb;
}

.hero .eyebrow {
  color: #70d0c7;
}

.hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.hero-text {
  max-width: 720px;
  color: #d2dde6;
}

.hero .button {
  border-color: #62b8b1;
  background: #2d948d;
}

.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-checks span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #dce8ee;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f4f8fa;
  box-shadow: 0 24px 60px rgba(2, 12, 22, 0.32);
}

.hero-visual img {
  max-width: 84%;
  max-height: 76%;
}

.hero-visual-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dae5e9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(23, 41, 61, 0.12);
}

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

.hero-visual-panel span {
  color: var(--muted);
  font-size: 13px;
}

.workflow,
.metrics,
.section,
.detail-layout,
.messages {
  max-width: 1240px;
}

.workflow {
  margin-top: -22px;
  position: relative;
  z-index: 2;
}

.workflow div,
.metrics div,
.device-card,
.panel,
.auth-card,
.detail-panel,
.detail-media,
.address-card,
.device-state-card {
  border-color: #d7e2e6;
  box-shadow: 0 18px 46px rgba(20, 42, 61, 0.08);
}

.workflow div {
  background: #fff;
}

.workflow span {
  background: #10263a;
  color: #fff;
}

.metrics {
  padding-top: 6px;
}

.metrics div {
  border: 0;
}

.metrics strong {
  color: #10263a;
}

.section-head h1,
.section-head h2,
.detail-panel h1,
.auth-card h1 {
  color: #12263a;
}

.section-note {
  padding: 8px 12px;
  border: 1px solid #d7e2e6;
  border-radius: 8px;
  background: #fff;
}

.device-card {
  border: 0;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.device-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(20, 42, 61, 0.13);
}

.device-image,
.detail-media {
  background: #e8f0f3;
}

.device-title-row h3,
.device-body .price strong {
  color: #10263a;
}

.tags span {
  background: #f6f8fa;
}

.detail-panel,
.order-card {
  background: #fff;
}

.order-card {
  border-color: #cbdbe0;
  box-shadow: inset 0 4px 0 #1f7a76;
}

.detail-facts div,
.info-grid div,
.rule-grid section,
.state-facts div {
  background: #f7fafb;
}

.manage-body {
  background: #eef3f6;
}

.manage-sidebar {
  min-height: 74px;
  background: #10263a;
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 16px 36px rgba(10, 27, 43, 0.18);
}

.manage-brand .brand-mark {
  background: #2d948d;
}

.manage-brand strong {
  color: #fff;
}

.manage-nav a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe5ec;
}

.manage-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.manage-topbar {
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 41, 61, 0.06);
}

.dashboard-grid > * {
  min-height: 128px;
  border: 0;
  background: #fff;
}

.dashboard-grid > *:nth-child(-n+4) {
  background: #10263a;
  color: #fff;
}

.dashboard-grid > *:nth-child(-n+4) span,
.dashboard-grid > *:nth-child(-n+4) small {
  color: #d7e4ec;
}

.dashboard-grid > *:nth-child(-n+4) strong {
  color: #fff;
}

.quick-links,
.filter-bar,
.catalog-filter,
.table-row,
.table-head {
  border-color: #d7e2e6;
  box-shadow: 0 10px 26px rgba(23, 41, 61, 0.05);
}

.table-head {
  background: #10263a;
  color: #fff;
  border-color: #10263a;
}

.table-head span {
  color: #fff;
}

.device-state-card {
  border: 0;
}

.device-state-main h2 {
  color: #10263a;
}

.row-actions .button.ghost,
.quick-links .button.ghost,
.filter-bar .button.ghost {
  background: #fff;
}

@media (min-width: 100000px) and (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 24px;
  }

  .manage-sidebar {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px 16px 12px;
  }

  .manage-brand {
    margin-bottom: 12px;
  }

  .manage-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .manage-nav a {
    flex: 0 0 auto;
  }

  .manage-topbar {
    min-height: 62px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .manage-topbar .header-actions {
    width: 100%;
  }

  .manage-topbar .button.small {
    flex: 1 1 140px;
  }

  .manage-main .section {
    padding: 22px 16px 56px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .detail-layout,
  .device-grid,
  .content-columns,
  .address-grid,
  .state-facts {
    grid-template-columns: 1fr;
  }

  .detail-media {
    position: static;
    min-height: 260px;
  }

  .device-state-main {
    grid-template-columns: 1fr;
  }

  .device-card {
    grid-template-columns: 1fr;
  }

  .metrics,
  .detail-facts,
  .info-grid,
  .rule-grid,
  .progress-steps,
  .form-grid,
  .code-row,
  .order-row,
  .manage-grid,
  .table-head,
  .table-row,
  .table-head.enterprise,
  .table-row.enterprise,
  .table-head.iot,
  .table-row.iot,
  .table-head.users,
  .table-row.users,
  .table-head.products,
  .table-row.products,
  .table-head.invoices,
  .table-row.invoices,
  .table-head.audit,
  .table-row.audit,
  .table-head.devices,
  .table-row.devices,
  .inline-admin-form,
  .catalog-filter {
    grid-template-columns: 1fr;
  }
}

/* Order checkout: credit assessment, deposit and rent are separate tasks. */
.rental-checkout {
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  padding-top: 48px;
}

.checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.checkout-heading h1 {
  margin: 8px 0 10px;
  color: #102032;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.checkout-heading p:last-child {
  margin: 0;
  color: #667789;
  font-weight: 700;
}

.order-status-chip {
  display: grid;
  gap: 6px;
  min-width: 240px;
  padding: 18px 20px;
  border: 1px solid #d8e4e8;
  border-radius: 8px;
  background: #ffffff;
}

.order-status-chip span,
.payment-task-head > span,
.checkout-section-head span,
.order-service-grid article > span,
.fulfillment-action > div > span {
  color: #69798a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.order-status-chip strong {
  color: #102032;
  font-size: 20px;
}

.order-status-chip small {
  color: #778696;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 18px;
}

.checkout-product,
.checkout-section,
.payment-task-panel,
.order-service-grid article,
.fulfillment-action {
  border: 1px solid #dbe5e9;
  border-radius: 8px;
  background: #ffffff;
}

.checkout-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
}

.checkout-product:not(:has(img)) {
  grid-template-columns: 1fr;
}

.checkout-product img {
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: #eef3f5;
}

.checkout-product-copy h2 {
  margin: 10px 0;
  color: #102032;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.checkout-product-copy > p {
  margin: 0;
  color: #657587;
  line-height: 1.7;
}

.product-code {
  color: #24736e;
  font-size: 13px;
  font-weight: 900;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.product-facts div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid #e3eaed;
}

.product-facts dt {
  color: #748393;
  font-size: 12px;
  font-weight: 800;
}

.product-facts dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: #213247;
  font-weight: 850;
  line-height: 1.45;
}

.checkout-section {
  padding: 26px 28px;
}

.checkout-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.checkout-section-head h2,
.order-service-grid h2,
.fulfillment-action h2 {
  margin: 6px 0 0;
  color: #102032;
  font-size: 22px;
  letter-spacing: 0;
}

.checkout-section-head > small {
  color: #748393;
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  color: #5d6d7e;
}

.cost-row + .cost-row {
  border-top: 1px solid #edf1f3;
}

.cost-row strong {
  color: #17283c;
  font-size: 18px;
}

.cost-total {
  margin-top: 4px;
}

.cost-total span,
.cost-total strong {
  color: #102032;
  font-size: 22px;
  font-weight: 900;
}

.cost-note,
.delivery-lines p {
  margin: 14px 0 0;
  color: #6c7b8b;
  font-size: 13px;
  line-height: 1.7;
}

.delivery-lines strong {
  color: #203146;
}

.payment-task-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.payment-task-head {
  padding: 26px;
  background: #10263a;
  color: #ffffff;
}

.payment-task-head > span {
  color: #9fb1c0;
}

.payment-task-head h2 {
  margin: 8px 0 14px;
  color: #ffffff;
  font-size: 25px;
  letter-spacing: 0;
}

.payment-task-head > strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 34px;
}

.payment-task-head p {
  margin: 0;
  color: #c8d3dc;
  font-size: 14px;
  line-height: 1.6;
}

.payment-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 20px 24px 8px;
  list-style: none;
}

.payment-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  position: relative;
  min-height: 64px;
}

.payment-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cad6dc;
  border-radius: 50%;
  background: #ffffff;
  color: #687989;
  font-size: 12px;
  font-weight: 900;
}

.payment-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 13px;
  width: 1px;
  background: #dce5e9;
}

.payment-steps li strong,
.payment-steps li small {
  display: block;
}

.payment-steps li strong {
  margin: 3px 0 5px;
  color: #24364a;
}

.payment-steps li small {
  color: #778696;
  line-height: 1.4;
}

.payment-steps li.done > span {
  border-color: #2d7772;
  background: #2d7772;
  color: #ffffff;
}

.payment-steps li.current > span {
  border-color: #10263a;
  background: #10263a;
  color: #ffffff;
}

.payment-steps li.failed > span {
  border-color: #b44b52;
  background: #fff4f4;
  color: #a23c44;
}

.payment-steps li.locked {
  opacity: 0.58;
}

.pay-provider-list {
  display: grid;
  gap: 10px;
  padding: 10px 24px 22px;
}

.pay-provider-list form {
  margin: 0;
}

.payment-block-title {
  display: grid;
  gap: 4px;
  padding: 8px 24px 0;
}

.payment-block-title span {
  color: #24364a;
  font-size: 15px;
  font-weight: 900;
}

.payment-block-title small {
  color: #748393;
  font-size: 12px;
  line-height: 1.5;
}

.pay-provider {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.pay-provider.alipay {
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(31, 122, 118, 0.16);
}

.pay-provider.alipay:hover {
  background: var(--brand-dark);
}

.pay-provider.wechat {
  border-color: #cbd8de;
  background: #f4f7f8;
  color: #687989;
  box-shadow: none;
}

.pay-provider:disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.credit-provider-reserve {
  padding: 18px 24px 20px;
  border-top: 1px solid #e4ebee;
  background: #ffffff;
}

.credit-provider-reserve > span {
  display: block;
  margin-bottom: 10px;
  color: #748393;
  font-size: 12px;
  font-weight: 900;
}

.credit-provider-reserve > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.credit-provider-reserve form {
  margin: 0;
}

.credit-provider-reserve form button {
  width: 100%;
}

.credit-provider-reserve button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbd8de;
  border-radius: 6px;
  background: #ffffff;
  color: #24364a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.credit-provider-reserve form button {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(31, 122, 118, 0.14);
  cursor: pointer;
}

.credit-provider-reserve form button:hover {
  background: var(--brand-dark);
}

.zhima-scan-modal[hidden] {
  display: none;
}

.zhima-scan-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 31, 48, 0.56);
}

.zhima-scan-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 26px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(14, 31, 48, 0.24);
}

.zhima-scan-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #748393;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.zhima-scan-kicker {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.zhima-scan-dialog h2 {
  margin: 0 28px 10px 0;
  font-size: 24px;
}

.zhima-scan-dialog p {
  margin: 0;
  color: #596a7b;
  line-height: 1.65;
}

.zhima-qr-frame {
  display: grid;
  place-items: center;
  margin: 22px auto 16px;
  padding: 16px;
  width: 236px;
  min-height: 236px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #f7fafb;
}

.zhima-qr-frame img {
  display: block;
  width: 204px;
  height: 204px;
}

.zhima-scan-status {
  padding: 12px 14px;
  border-radius: 6px;
  background: #eef8f5;
  color: #1f6f6a;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.zhima-scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.zhima-scan-actions form {
  margin: 0;
}

.zhima-scan-actions .button {
  width: 100%;
}

.payment-secondary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px 22px;
  border-top: 1px solid #e4ebee;
}

.payment-secondary-actions form {
  margin: 0;
}

.danger-text {
  color: #a23c44;
}

.checkout-status-line {
  margin: 28px 0;
}

.fulfillment-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px 24px;
}

.order-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.order-service-grid article {
  min-height: 190px;
  padding: 22px;
}

.order-service-grid article p {
  color: #596a7b;
  line-height: 1.65;
}

@media (min-width: 100000px) and (max-width: 1050px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

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

@media (min-width: 100000px) and (max-width: 820px) {
  .topbar {
    align-items: stretch;
    padding: 12px 14px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .topbar .nav a {
    flex: 0 0 auto;
  }

  .rental-checkout {
    width: min(100% - 28px, 1240px);
    padding: 28px 0 54px;
  }

  .checkout-heading,
  .checkout-section-head,
  .fulfillment-action {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-heading h1 {
    font-size: 32px;
  }

  .order-status-chip {
    min-width: 0;
  }

  .checkout-layout,
  .product-facts,
  .order-service-grid {
    grid-template-columns: 1fr;
  }

  .checkout-main {
    display: contents;
  }

  .checkout-product {
    order: 1;
  }

  .payment-task-panel {
    order: 2;
  }

  .cost-summary {
    order: 3;
  }

  .delivery-summary {
    order: 4;
  }

  .checkout-product {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .checkout-product img {
    width: 100%;
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .payment-task-panel {
    position: static;
  }
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.payment-tags span {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid #c7e2de;
  border-radius: 8px;
  background: #edf8f6;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.payment-tags span.muted {
  border-color: var(--line);
  background: #f5f8f9;
  color: var(--muted);
}

.payment-rule-dock {
  max-width: 1180px;
  margin: 24px auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #c7e2de;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(23, 41, 61, 0.14);
  backdrop-filter: blur(10px);
}

.payment-rule-dock-spacer {
  display: none;
}

.payment-rule-dock strong,
.payment-rule-dock span {
  display: block;
}

.payment-rule-dock strong {
  font-size: 16px;
}

.payment-rule-dock span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.payment-rule-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 41, 61, 0.24);
}

.payment-rule-dialog::backdrop {
  background: rgba(23, 41, 61, 0.42);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 6px 0 0;
}

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

.dialog-grid section,
.payment-method-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.dialog-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.dialog-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dialog-actions {
  padding: 0 24px 24px;
}

.payment-method-panel {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #c7e2de;
  border-radius: 8px;
  background: #f3fbfa;
}

.panel-headline h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.payment-method-grid div {
  background: #fff;
}

.payment-method-grid div.muted {
  background: #f6f8f9;
}

.payment-method-grid strong,
.payment-method-grid span {
  display: block;
}

.payment-method-grid strong {
  font-size: 15px;
}

.payment-method-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 100000px) and (max-width: 920px) {
  .payment-rule-dock {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 14px 34px;
  }

  .payment-rule-dock-spacer {
    display: none;
  }

  .dialog-head,
  .dialog-grid,
  .dialog-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dialog-grid,
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
}

/* Payment and renewal console */
.payment-console {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(23, 35, 52, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 246, 246, 0.72)),
    #fff;
  box-shadow: 0 22px 52px rgba(23, 35, 52, 0.08);
}

.payment-console h2,
.admin-user-console h2 {
  margin: 0 0 10px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: rgba(23, 35, 52, 0.12);
  border: 1px solid rgba(23, 35, 52, 0.10);
}

.payment-grid article {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.payment-grid span,
.pay-callout span,
.user-profile-grid span {
  color: #647184;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-grid strong,
.pay-callout strong {
  color: #172334;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
}

.payment-grid small,
.pay-callout small {
  color: #657385;
  font-weight: 750;
}

.pay-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 22px;
  border-left: 5px solid #2e7772;
  background: #f3f8f7;
}

.pay-callout > div:first-child {
  display: grid;
  gap: 7px;
}

.pay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stacked-mini-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stacked-mini-form label {
  display: grid;
  gap: 8px;
  color: #637184;
  font-weight: 850;
}

.inline-link {
  color: #1f6f6a;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 111, 106, 0.32);
}

.inline-link:hover {
  color: #172334;
  border-bottom-color: currentColor;
}

.extension-review-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  background: #f5f8f8;
  border: 1px solid rgba(23, 35, 52, 0.10);
}

.extension-review-box > span {
  color: #2e7772;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.extension-review-box > strong {
  font-size: 26px;
}

.admin-user-console .user-hero {
  align-items: end;
}

.user-workbench {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.user-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(23, 35, 52, 0.10);
  background: rgba(23, 35, 52, 0.10);
}

.user-profile-grid div {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.user-profile-grid .span-2,
.user-detail-grid .span-2 {
  grid-column: span 2;
}

.user-profile-grid strong {
  color: #172334;
  font-size: 18px;
  line-height: 1.35;
}

.user-detail-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.user-detail-grid .admin-mini-card p {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 35, 52, 0.08);
}

@media (min-width: 100000px) and (max-width: 920px) {
  .payment-grid,
  .user-workbench,
  .user-profile-grid,
  .user-detail-grid {
    grid-template-columns: 1fr;
  }

  .pay-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .user-profile-grid .span-2,
  .user-detail-grid .span-2 {
    grid-column: auto;
  }
}

.account-section {
  max-width: 1180px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}

.profile-summary {
  display: grid;
  gap: 16px;
}

.profile-score,
.summary-block {
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #ffffff;
}

.profile-score {
  padding: 28px;
  background: #123044;
  color: #ffffff;
}

.profile-score span {
  display: block;
  margin-bottom: 18px;
  color: #77c7bd;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.profile-score strong,
.summary-block strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.profile-score p,
.summary-block p {
  margin: 10px 0 0;
  color: inherit;
  opacity: 0.72;
  line-height: 1.7;
}

.summary-block {
  padding: 22px;
}

.summary-block span {
  display: block;
  margin-bottom: 10px;
  color: #667789;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-block a {
  display: inline-block;
  margin-top: 12px;
  color: #123044;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-form {
  display: grid;
  gap: 22px;
}

.form-block-title {
  padding-top: 6px;
  border-top: 1px solid #e4ecef;
}

.form-block-title:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-block-title h2 {
  margin: 0;
  color: #102032;
  font-size: 22px;
}

.form-block-title p {
  margin: 8px 0 0;
  color: #667789;
  line-height: 1.7;
}

.form-grid .span-2 {
  grid-column: span 2;
}

@media (min-width: 100000px) and (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: span 1;
  }
}

.order-detail-v2 {
  max-width: 1180px;
}

.order-hero,
.invoice-hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  padding: 24px 0 36px;
  border-bottom: 1px solid #dfe8ec;
}

.order-hero h1,
.invoice-hero h1 {
  max-width: 850px;
  margin: 8px 0 14px;
  color: #102032;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04;
}

.order-hero p,
.invoice-hero p {
  max-width: 720px;
  margin: 0;
  color: #667789;
  font-size: 18px;
  line-height: 1.8;
}

.order-state-card,
.invoice-hero-note {
  padding: 24px;
  border-left: 4px solid #2f817b;
  background: rgba(255, 255, 255, 0.68);
}

.order-state-card span,
.invoice-hero-note span,
.order-kpi-strip span,
.order-finance-band span {
  display: block;
  color: #667789;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-state-card strong,
.invoice-hero-note strong {
  display: block;
  margin-top: 8px;
  color: #102032;
  font-size: 28px;
  font-weight: 900;
}

.order-state-card small {
  display: block;
  margin-top: 10px;
  color: #667789;
}

.order-kpi-strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  border-bottom: 1px solid #dfe8ec;
}

.order-kpi-strip div {
  min-height: 118px;
  padding: 26px 30px;
}

.order-kpi-strip div + div {
  border-left: 1px solid #dfe8ec;
}

.order-kpi-strip strong,
.order-finance-band strong {
  display: block;
  margin-top: 10px;
  color: #102032;
  font-size: 22px;
  font-weight: 900;
}

.professional-steps {
  margin: 30px 0;
}

.order-action-panel,
.sandbox-pay-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid #dfe8ec;
  border-bottom: 1px solid #dfe8ec;
}

.order-action-panel strong,
.sandbox-pay-panel strong {
  color: #102032;
  font-size: 22px;
  font-weight: 900;
}

.order-action-panel p,
.sandbox-pay-panel p {
  margin: 8px 0 0;
  color: #667789;
  line-height: 1.7;
}

.order-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.service-panel {
  min-height: 210px;
  padding: 28px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.service-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.service-panel-head span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #edf4f5;
  color: #2f817b;
  font-weight: 900;
}

.service-panel h2,
.invoice-side-card h2 {
  margin: 0;
  color: #102032;
  font-size: 26px;
}

.service-panel p,
.invoice-summary p {
  color: #24313f;
  line-height: 1.75;
}

.empty-copy {
  color: #667789;
}

.invoice-summary + .invoice-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4ecef;
}

.order-finance-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0;
  border-top: 1px solid #dfe8ec;
  border-bottom: 1px solid #dfe8ec;
}

.order-finance-band div {
  padding: 24px 28px;
}

.order-finance-band div + div {
  border-left: 1px solid #dfe8ec;
}

.order-finance-band small {
  display: block;
  margin-top: 8px;
  color: #667789;
  line-height: 1.6;
}

.invoice-center {
  max-width: 1180px;
}

.invoice-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  margin-top: 30px;
}

.invoice-apply-card,
.invoice-side-card {
  padding: 30px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #ffffff;
}

.invoice-apply-card {
  display: grid;
  gap: 20px;
}

.invoice-side-card ul {
  margin: 18px 0 22px;
  padding-left: 20px;
  color: #24313f;
  line-height: 1.8;
}

.invoice-records {
  display: grid;
  gap: 14px;
}

.invoice-record {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #ffffff;
}

.invoice-record h3 {
  margin: 12px 0 8px;
  color: #102032;
  font-size: 24px;
}

.invoice-record p {
  margin: 0;
  color: #667789;
}

.invoice-record-meta span,
.invoice-record-meta small {
  display: block;
  color: #667789;
  font-weight: 800;
}

.invoice-record-meta strong {
  display: block;
  margin: 6px 0 14px;
  color: #102032;
  font-size: 18px;
}

@media (min-width: 100000px) and (max-width: 980px) {
  .order-hero,
  .invoice-hero,
  .invoice-workspace,
  .invoice-record {
    grid-template-columns: 1fr;
  }

  .order-kpi-strip,
  .order-finance-band,
  .order-service-grid {
    grid-template-columns: 1fr;
  }

  .order-kpi-strip div + div,
  .order-finance-band div + div {
    border-left: 0;
    border-top: 1px solid #dfe8ec;
  }

  .order-action-panel,
  .sandbox-pay-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Account/order/invoice console redesign */
.account-console,
.rental-command,
.invoice-console {
  width: min(1180px, calc(100vw - 64px));
  max-width: none;
  margin: 0 auto;
  padding-top: 64px;
}

.console-hero,
.rental-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(16, 32, 50, 0.12);
}

.console-hero h1,
.rental-hero h1 {
  margin: 8px 0 0;
  color: #102032;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

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

.info-popover {
  position: relative;
}

.info-popover summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfdde2;
  border-radius: 999px;
  background: #ffffff;
  color: #102032;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.info-popover summary::-webkit-details-marker {
  display: none;
}

.info-popover[open] summary {
  border-color: #2f817b;
}

.info-popover div {
  position: absolute;
  right: 0;
  z-index: 5;
  width: 280px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(16, 32, 50, 0.14);
}

.info-popover strong {
  color: #102032;
  font-size: 16px;
}

.info-popover p {
  margin: 8px 0 0;
  color: #667789;
  font-size: 14px;
  line-height: 1.7;
}

.console-strip,
.rental-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0;
  border-top: 1px solid rgba(16, 32, 50, 0.12);
  border-bottom: 1px solid rgba(16, 32, 50, 0.12);
}

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

.console-strip div,
.rental-summary div {
  min-height: 96px;
  padding: 22px 26px;
}

.console-strip div + div,
.rental-summary div + div {
  border-left: 1px solid rgba(16, 32, 50, 0.12);
}

.console-strip span,
.rental-summary span,
.status-dialog span,
.command-dialog span,
.command-card > span,
.address-preview > span,
.finance-grid span,
.ledger-head span {
  display: block;
  color: #667789;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-strip strong,
.rental-summary strong {
  display: block;
  margin-top: 8px;
  color: #102032;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.console-grid,
.invoice-console-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.address-preview,
.console-form,
.invoice-ledger {
  border: 1px solid #dce5e8;
  border-radius: 10px;
  background: #ffffff;
}

.address-preview {
  padding: 26px;
}

.address-preview h2,
.console-form h2,
.ledger-head h2,
.command-card h2 {
  margin: 8px 0 16px;
  color: #102032;
  font-size: 26px;
  line-height: 1.15;
}

.address-preview p {
  color: #667789;
  line-height: 1.7;
}

.address-preview strong {
  display: block;
  margin-bottom: 16px;
  color: #102032;
  line-height: 1.7;
}

.console-form {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.console-form section {
  padding: 28px;
}

.console-form section + section {
  border-top: 1px solid #e5ecef;
}

.console-form > .button,
.console-form section > .button {
  margin: 0 28px 28px;
}

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

.console-form label {
  display: grid;
  gap: 8px;
  color: #667789;
  font-weight: 900;
}

.console-form input,
.console-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8e4e8;
  border-radius: 8px;
  background: #fbfdfe;
  color: #102032;
  font: inherit;
  font-weight: 800;
}

.console-form .span-2 {
  grid-column: span 2;
}

.status-dialog {
  min-width: 250px;
  padding: 24px;
  border-radius: 14px;
  background: #102032;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(16, 32, 50, 0.18);
}

.status-dialog strong {
  display: block;
  margin: 10px 0;
  color: #ffffff;
  font-size: 30px;
}

.status-dialog small {
  color: rgba(255, 255, 255, 0.68);
}

.command-dialog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #123044, #1d4f5d);
  color: #ffffff;
}

.command-dialog strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 26px;
}

.command-dialog span {
  color: rgba(255, 255, 255, 0.64);
}

.command-dialog .button {
  background: #ffffff;
  color: #102032;
}

.command-dialog .button.ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
  color: #ffffff;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.status-line span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #edf4f5;
  color: #667789;
  font-size: 13px;
  font-weight: 900;
}

.status-line .done,
.status-line .current {
  background: #dfeeed;
  color: #1f6f6a;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.command-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  background: #ffffff;
}

.command-card p {
  color: #24313f;
  line-height: 1.65;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f6f6a;
  font-weight: 900;
  cursor: pointer;
}

.finance-drawer {
  margin-top: 18px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  background: #ffffff;
}

.finance-drawer summary {
  padding: 20px 24px;
  color: #102032;
  font-weight: 900;
  cursor: pointer;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e5ecef;
}

.finance-grid div {
  padding: 20px 24px;
}

.finance-grid div + div {
  border-left: 1px solid #e5ecef;
}

.finance-grid strong {
  display: block;
  margin-top: 8px;
  color: #102032;
  font-size: 20px;
}

.finance-drawer .actions-bar {
  padding: 0 24px 24px;
}

.invoice-console-grid {
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  margin-top: 28px;
}

.invoice-request-form section {
  display: grid;
  gap: 18px;
}

.invoice-request-form .button {
  margin: 4px 0 0;
}

.invoice-ledger {
  padding: 24px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr 120px 110px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #e5ecef;
}

.ledger-row strong {
  color: #102032;
}

.ledger-row p,
.ledger-row small {
  margin: 5px 0 0;
  color: #667789;
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 100000px) and (max-width: 860px) {
  .account-console,
  .rental-command,
  .invoice-console {
    width: min(100% - 28px, 1180px);
    padding-top: 34px;
  }

  .console-hero,
  .rental-hero,
  .command-dialog {
    align-items: stretch;
    flex-direction: column;
  }

  .console-strip,
  .rental-summary,
  .console-grid,
  .invoice-console-grid,
  .command-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .console-strip div + div,
  .rental-summary div + div,
  .finance-grid div + div {
    border-left: 0;
    border-top: 1px solid rgba(16, 32, 50, 0.12);
  }

  .console-form .form-grid,
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .console-form .span-2 {
    grid-column: span 1;
  }
}

.manage-main .admin-order-console {
  width: min(1180px, calc(100vw - 340px));
  max-width: none;
}

.admin-order-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 0 28px;
  border-bottom: 1px solid rgba(16, 32, 50, 0.12);
}

.admin-order-hero h1 {
  margin: 8px 0 0;
  color: #102032;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.02;
}

.admin-status-card {
  min-width: 250px;
  padding: 22px;
  border-radius: 14px;
  background: #102032;
  color: #ffffff;
}

.admin-status-card span,
.admin-order-strip span,
.card-kicker,
.admin-mini-card > span {
  display: block;
  color: #667789;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-status-card span {
  color: rgba(255, 255, 255, 0.6);
}

.admin-status-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.admin-status-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
}

.admin-order-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  border-top: 1px solid rgba(16, 32, 50, 0.12);
  border-bottom: 1px solid rgba(16, 32, 50, 0.12);
}

.admin-order-strip div {
  min-height: 96px;
  padding: 22px 26px;
}

.admin-order-strip div + div {
  border-left: 1px solid rgba(16, 32, 50, 0.12);
}

.admin-order-strip strong {
  display: block;
  margin-top: 8px;
  color: #102032;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.admin-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  margin-bottom: 20px;
}

.admin-action-card,
.admin-side-panel,
.admin-mini-card,
.admin-log-drawer {
  border: 1px solid #dce5e8;
  border-radius: 10px;
  background: #ffffff;
}

.admin-action-card,
.admin-side-panel,
.admin-mini-card {
  padding: 26px;
}

.admin-action-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
}

.admin-action-card h2,
.admin-side-panel h2,
.admin-mini-card h2 {
  margin: 8px 0 18px;
  color: #102032;
  font-size: 28px;
  line-height: 1.15;
}

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

.admin-task-form label {
  display: grid;
  gap: 8px;
  color: #667789;
  font-weight: 900;
}

.admin-task-form input,
.admin-task-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d8e4e8;
  border-radius: 8px;
  background: #fbfdfe;
  color: #102032;
  font: inherit;
  font-weight: 800;
}

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

.admin-secondary-action {
  margin-top: 14px;
}

.admin-side-panel p,
.admin-mini-card p {
  color: #24313f;
  line-height: 1.65;
}

.admin-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-mini-card {
  min-height: 190px;
}

.admin-log-drawer {
  margin-top: 18px;
}

.admin-log-drawer summary {
  padding: 20px 24px;
  color: #102032;
  font-weight: 900;
  cursor: pointer;
}

.admin-log-drawer div {
  padding: 0 24px 22px;
  border-top: 1px solid #e5ecef;
}

.admin-log-drawer p {
  margin: 14px 0 0;
  color: #667789;
  line-height: 1.65;
}

@media (min-width: 100000px) and (max-width: 1180px) {
  .manage-main .admin-order-console {
    width: min(100% - 40px, 1180px);
  }

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

@media (min-width: 100000px) and (max-width: 760px) {
  .admin-order-hero,
  .admin-workbench {
    grid-template-columns: 1fr;
  }

  .admin-order-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-order-strip,
  .admin-order-grid,
  .admin-task-form .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-strip div + div {
    border-left: 0;
    border-top: 1px solid rgba(16, 32, 50, 0.12);
  }
}

/* 2026-07-25 account and manual-invoice density pass. */
.profile-page-body,
.invoice-page-body {
  background: #f4f7f8;
}

.profile-page-body .account-console,
.invoice-page-body .invoice-console {
  width: min(1180px, calc(100% - 48px));
  padding-top: 24px;
}

.profile-page-body .account-nav,
.invoice-page-body .account-nav {
  margin-bottom: 20px;
}

.profile-page-body .console-hero,
.invoice-page-body .console-hero {
  min-height: 82px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.profile-page-body .console-hero h1,
.invoice-page-body .console-hero h1 {
  font-size: clamp(34px, 3.2vw, 46px);
}

.profile-page-body .console-strip {
  margin: 0 0 16px;
}

.profile-page-body .console-strip div {
  min-height: 78px;
  padding: 16px 22px;
}

.profile-page-body .console-strip strong {
  margin-top: 5px;
  font-size: 20px;
}

.profile-page-body .console-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.profile-page-body .profile-address-bar {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
}

.profile-address-bar .address-preview-head span,
.invoice-form-heading span {
  display: block;
  color: var(--market-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-address-bar .address-preview-head h2 {
  margin: 5px 0 0;
  font-size: 19px;
}

.profile-address-bar .address-preview-copy {
  min-width: 0;
}

.profile-address-bar .address-preview-copy strong {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.4;
}

.profile-address-bar .address-preview-copy p {
  overflow: hidden;
  margin: 0;
  color: #65798a;
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-address-bar .text-link {
  padding: 10px 14px;
  border: 1px solid #c9d8dc;
  border-radius: 7px;
  white-space: nowrap;
}

.profile-page-body .console-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page-body .console-form section {
  padding: 24px;
}

.profile-page-body .console-form section + section {
  border-top: 0;
  border-left: 1px solid #e5ecef;
}

.form-section-head,
.invoice-form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.form-section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-head > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e6f2f1;
  color: var(--market-teal);
  font-size: 11px;
  font-weight: 900;
}

.profile-page-body .console-form .form-section-head h2,
.invoice-page-body .invoice-form-heading h2 {
  margin: 0;
  font-size: 21px;
}

.form-section-head p,
.invoice-form-heading p {
  margin: 0;
  color: #7a8996;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.profile-page-body .console-form .form-grid {
  gap: 14px;
}

.profile-page-body .console-form label,
.invoice-page-body .console-form label {
  gap: 6px;
  font-size: 13px;
}

.profile-page-body .console-form input,
.profile-page-body .console-form select,
.invoice-page-body .console-form input,
.invoice-page-body .console-form select {
  min-height: 46px;
}

.profile-save-bar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid #e5ecef;
  background: #fbfcfc;
}

.profile-save-bar p {
  margin: 0;
  color: #738493;
  font-size: 12px;
}

.profile-page-body .console-form .profile-save-bar .button {
  min-width: 136px;
  margin: 0;
}

.invoice-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--market-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 37, 56, 0.04);
}

.invoice-process > div {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
}

.invoice-process > div + div {
  border-left: 1px solid #e3eaed;
}

.invoice-process b {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--market-navy);
  color: #fff;
  font-size: 12px;
}

.invoice-process span,
.invoice-process strong,
.invoice-process small {
  display: block;
}

.invoice-process strong {
  color: var(--market-navy);
  font-size: 14px;
}

.invoice-process small {
  margin-top: 4px;
  color: #758594;
  font-size: 12px;
  line-height: 1.45;
}

.invoice-page-body .invoice-console-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

.invoice-page-body .invoice-request-form section {
  gap: 14px;
  padding: 24px;
}

.invoice-form-heading {
  align-items: center;
  margin-bottom: 2px;
}

.invoice-form-heading > div h2 {
  margin-top: 5px;
}

.invoice-page-body .invoice-request-form .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.invoice-form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 11px 13px;
  border-radius: 7px;
  background: #f0f6f5;
  color: #5d726f;
  font-size: 12px;
  line-height: 1.6;
}

.invoice-page-body .invoice-request-form .button {
  width: fit-content;
  min-width: 154px;
}

.invoice-page-body .invoice-ledger {
  padding: 20px 24px;
}

.invoice-page-body .ledger-head {
  margin-bottom: 4px;
}

.invoice-page-body .ledger-head h2 {
  margin: 5px 0 12px;
  font-size: 21px;
}

.invoice-page-body .invoice-ledger .empty-state.compact {
  min-height: 170px;
  padding: 24px;
}

.invoice-page-body .invoice-ledger .empty-state.compact > i {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  font-size: 20px;
}

.invoice-page-body .invoice-ledger .empty-state.compact p {
  max-width: 560px;
  margin: 7px 0 0;
  font-size: 13px;
}

@media (min-width: 100000px) and (max-width: 1080px) {
  .profile-page-body .console-form,
  .invoice-page-body .invoice-request-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page-body .console-form section + section {
    border-left: 0;
    border-top: 1px solid #e5ecef;
  }

  .profile-page-body .console-form section {
    grid-column: 1 / -1;
  }
}

@media (min-width: 100000px) and (max-width: 760px) {
  .profile-page-body .account-console,
  .invoice-page-body .invoice-console {
    width: min(100% - 28px, 720px);
  }

  .profile-page-body .profile-address-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-address-bar .address-preview-copy p {
    overflow: visible;
    white-space: normal;
  }

  .profile-address-bar .text-link {
    justify-self: start;
  }

  .invoice-process {
    grid-template-columns: 1fr;
  }

  .invoice-process > div + div {
    border-top: 1px solid #e3eaed;
    border-left: 0;
  }

  .invoice-page-body .invoice-request-form .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section-head,
  .invoice-form-heading,
  .profile-save-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-section-head p,
  .invoice-form-heading p {
    text-align: left;
  }

  .profile-save-bar .button {
    width: 100%;
  }
}

/* 2026-07-25 PC marketplace system polish.
   Presentation-only overrides: shared navigation, account center, forms and states. */
:root {
  --market-navy: #10243a;
  --market-navy-deep: #091827;
  --market-teal: #14766f;
  --market-teal-dark: #0f5e59;
  --market-orange: #e85b16;
  --market-bg: #f4f7f8;
  --market-panel: #ffffff;
  --market-line: #dce5e8;
  --market-copy: #526578;
  --market-radius: 12px;
  --market-shadow: 0 18px 48px rgba(15, 37, 56, 0.08);
}

body:not(.manage-body) {
  min-height: 100vh;
  background: var(--market-bg);
  color: var(--market-navy);
}

body:not(.manage-body) .site-main {
  min-height: calc(100vh - 78px);
}

body:not(.manage-body) .topbar {
  min-height: 76px;
  padding-inline: max(32px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(214, 224, 228, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(15, 37, 56, 0.035);
}

body:not(.manage-body) .brand {
  gap: 13px;
  color: var(--market-navy);
  font-size: 19px;
  letter-spacing: -0.01em;
}

body:not(.manage-body) .brand-mark {
  width: 46px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1b817a, #115f5b);
  box-shadow: 0 9px 22px rgba(20, 118, 111, 0.18);
}

body:not(.manage-body) .brand small {
  color: #738190;
  font-size: 10px;
  letter-spacing: 0.09em;
}

body:not(.manage-body) .nav {
  gap: 7px;
  color: #43576a;
  font-weight: 760;
}

body:not(.manage-body) .topbar .nav a {
  position: relative;
  min-height: 38px;
  padding: 10px 11px;
  border-radius: 7px;
  color: #43576a;
}

body:not(.manage-body) .topbar .nav a:hover,
body:not(.manage-body) .topbar .nav a.active {
  background: #edf5f4;
  color: var(--market-teal-dark);
}

body:not(.manage-body) .topbar .nav a.active::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--market-teal);
  content: "";
}

body:not(.manage-body) .topbar .nav .nav-primary {
  margin-left: 2px;
  padding-inline: 16px;
  border: 1px solid var(--market-teal);
  background: var(--market-teal);
  color: #fff;
}

body:not(.manage-body) .topbar .nav .nav-primary:hover,
body:not(.manage-body) .topbar .nav .nav-primary.active {
  background: var(--market-teal-dark);
  color: #fff;
}

body:not(.manage-body) .topbar .nav .nav-primary::after {
  display: none;
}

body:not(.manage-body) .button {
  min-height: 44px;
  padding-inline: 20px;
  border: 1px solid var(--market-teal);
  border-radius: 7px;
  background: var(--market-teal);
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body:not(.manage-body) .button:hover {
  border-color: var(--market-teal-dark);
  background: var(--market-teal-dark);
  transform: translateY(-1px);
}

body:not(.manage-body) .button.ghost {
  border-color: #cfdade;
  background: #fff;
  color: #385064;
}

body:not(.manage-body) .button.ghost:hover {
  border-color: #aac3c1;
  background: #f3f8f7;
  color: var(--market-teal-dark);
}

body:not(.manage-body) .button.danger {
  border-color: #d55b55;
  background: #fff;
  color: #b83f39;
}

body:not(.manage-body) .button.danger:hover {
  background: #fff4f3;
}

body:not(.manage-body) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(20, 118, 111, 0.24);
  outline-offset: 2px;
}

body:not(.manage-body) :is(input, select, textarea) {
  min-height: 48px;
  border: 1px solid #cfdae0;
  border-radius: 7px;
  background: #fff;
  color: var(--market-navy);
  font-size: 14px;
}

body:not(.manage-body) :is(input, select, textarea):hover {
  border-color: #aebec7;
}

body:not(.manage-body) :is(input, select, textarea):focus {
  outline: 3px solid rgba(20, 118, 111, 0.13);
  border-color: #62aaa5;
}

body:not(.manage-body) label {
  color: #43586b;
  font-size: 14px;
  font-weight: 760;
}

body:not(.manage-body) .messages {
  position: relative;
  z-index: 12;
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  margin-top: 16px;
  padding: 0;
}

body:not(.manage-body) .message {
  padding: 13px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 38, 58, 0.05);
}

/* Compact marketplace footer for non-home pages. */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid #dce5e8;
  background: #fff;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  gap: 28px;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  min-height: 116px;
  margin: 0 auto;
}

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

.site-footer-brand > span:last-child,
.site-footer-brand strong,
.site-footer-brand small {
  display: block;
}

.site-footer-brand strong {
  color: var(--market-navy);
  font-size: 15px;
}

.site-footer-brand small,
.site-footer-inner > span {
  margin-top: 4px;
  color: #7a8895;
  font-size: 12px;
}

.site-footer-inner nav {
  display: flex;
  gap: 20px;
  color: #526578;
  font-size: 13px;
  font-weight: 780;
}

.site-footer-inner nav a:hover {
  color: var(--market-teal);
}

.site-footer-inner > span {
  justify-self: end;
  text-align: right;
}

/* Shared account navigation — familiar marketplace account-center pattern. */
.account-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 30px;
  padding: 8px;
  border: 1px solid var(--market-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 37, 56, 0.045);
}

.account-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  color: #5f7181;
  font-size: 14px;
  font-weight: 820;
  transition: background 150ms ease, color 150ms ease;
}

.account-nav a:hover {
  background: #f3f7f7;
  color: var(--market-navy);
}

.account-nav a.active {
  background: var(--market-navy);
  color: #fff;
}

.account-nav i {
  font-size: 17px;
}

.account-page-body .section,
.account-page-body .account-console,
.account-page-body .invoice-console,
.account-page-body .rental-checkout {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  padding-top: 36px;
}

.account-page-body .section-head,
.account-page-body .console-hero {
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--market-line);
}

.account-page-body .section-head h1,
.account-page-body .console-hero h1 {
  margin-top: 7px;
  color: var(--market-navy);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.account-page-body .eyebrow {
  color: var(--market-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-page-body .form-help {
  margin: 10px 0 0;
  color: #758493;
  font-size: 13px;
}

/* Orders: dense enough to scan, spacious enough to trust. */
.order-list-page .order-list {
  display: grid;
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.order-list-page .order-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(260px, 1fr) minmax(180px, 0.72fr) 112px;
  gap: 24px;
  align-items: center;
  min-height: 138px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 37, 56, 0.045);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.order-list-page .order-row::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--market-teal);
  content: "";
}

.order-list-page .order-row:hover {
  border-color: #b8cbc9;
  box-shadow: var(--market-shadow);
  transform: translateY(-1px);
}

.order-list-page .order-row > div {
  min-width: 0;
  color: #3f5366;
  line-height: 1.65;
}

.order-list-page .order-row > div:first-child strong {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--market-navy);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-list-page .order-row span {
  display: block;
  margin-top: 3px;
  color: #718190;
  font-size: 12px;
}

.order-list-page .order-row .price {
  margin-bottom: 6px;
  color: var(--market-orange);
  font-size: 25px;
  font-weight: 900;
}

.order-list-page .order-row .status {
  justify-self: end;
  min-width: 96px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
}

/* Address and account forms. */
.address-page .address-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.address-page .address-card {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--market-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 37, 56, 0.045);
}

.address-page .address-title {
  align-items: center;
}

.address-page .address-title strong {
  color: var(--market-navy);
  font-size: 18px;
}

.address-page .address-title em {
  border-radius: 4px;
  background: #e5f3f1;
  color: var(--market-teal-dark);
  font-style: normal;
}

.address-page .address-card p {
  min-height: 44px;
  color: var(--market-copy);
  line-height: 1.7;
}

.account-form-card {
  max-width: 900px;
  padding: 30px;
  border: 1px solid var(--market-line);
  border-radius: 11px;
  box-shadow: var(--market-shadow);
}

.account-form-card .form-grid {
  gap: 20px;
}

.account-form-card label {
  gap: 9px;
}

.account-form-card > .button {
  min-width: 160px;
  margin-top: 8px;
}

.account-page-body .console-strip {
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--market-line);
  border-radius: 10px;
  background: #fff;
}

.account-page-body :is(.address-preview, .console-form, .invoice-ledger) {
  border-color: var(--market-line);
  border-radius: 11px;
  box-shadow: 0 12px 34px rgba(15, 37, 56, 0.05);
}

.account-page-body .console-form section {
  padding: 30px;
}

.account-page-body .console-form h2,
.account-page-body .ledger-head h2,
.account-page-body .address-preview h2 {
  color: var(--market-navy);
  font-size: 23px;
}

.account-page-body .info-popover summary {
  min-height: 42px;
  border-radius: 7px;
  color: #43586b;
  font-size: 13px;
}

.invoice-page-body .invoice-console-grid {
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.invoice-page-body .ledger-row {
  grid-template-columns: minmax(0, 1fr) 128px 112px;
  padding: 19px 0;
}

/* Empty states should always explain the next useful action. */
.empty-state {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 24px;
  border: 1px dashed #cbd8dd;
  border-radius: 11px;
  background: #fff;
  color: var(--market-copy);
  text-align: center;
}

.empty-state > i {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4f3;
  color: var(--market-teal);
  font-size: 25px;
}

.empty-state strong {
  color: var(--market-navy);
  font-size: 20px;
}

.empty-state p {
  max-width: 460px;
  margin: 9px 0 20px;
  line-height: 1.7;
}

.empty-state.compact {
  min-height: 240px;
}

/* Authentication: product context and form remain visible together. */
.auth-page-body .site-main {
  display: flex;
  align-items: center;
  padding: 46px 24px 62px;
  background: linear-gradient(135deg, #eef3f4 0%, #f7f9fa 52%, #edf2f3 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(480px, 1.15fr) minmax(390px, 0.85fr);
  width: min(1120px, 100%);
  min-height: 610px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d7e1e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 31, 48, 0.13);
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 610px;
  overflow: hidden;
  padding: 46px;
  background: #08131f url("/static/web/home-hero-dark-desktop-v1.7dc36831d8b2.jpg") center / cover no-repeat;
  color: #fff;
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 16, 27, 0.12), rgba(5, 16, 27, 0.9));
  content: "";
}

.auth-visual > div {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-visual .eyebrow {
  color: #7dd2cb;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.auth-visual h2 {
  margin: 12px 0 24px;
  color: #fff;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.auth-visual ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  color: #d6dfe6;
  list-style: none;
}

.auth-visual li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
}

.auth-visual li i {
  color: #6fc8c0;
  font-size: 18px;
}

.auth-shell .auth-card {
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-kicker {
  margin: 0 0 7px !important;
  color: var(--market-teal) !important;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-shell .auth-card h1 {
  margin: 0;
  color: var(--market-navy);
  font-size: 34px;
  letter-spacing: -0.025em;
}

.auth-shell .auth-card > p:not(.auth-kicker):not(.form-note),
.auth-shell .form-note {
  color: #647587;
  line-height: 1.7;
}

.auth-shell .auth-tabs {
  margin: 24px 0 20px;
  padding: 4px;
  border-radius: 8px;
  background: #edf2f4;
}

.auth-shell .auth-tab {
  min-height: 42px;
  border-radius: 6px;
  color: #657587;
}

.auth-shell .auth-tab.active {
  background: #fff;
  color: var(--market-teal-dark);
  box-shadow: 0 4px 14px rgba(15, 37, 56, 0.08);
}

.auth-shell .login-panel,
.auth-shell .auth-card > form {
  gap: 17px;
}

.auth-shell .form-note {
  margin-bottom: 0;
}

.auth-shell .form-note a {
  color: var(--market-teal-dark);
  font-weight: 900;
}

/* Product and checkout finishing details. */
.product-page-body .product-detail-page {
  padding-top: 34px;
}

.product-page-body :is(.product-gallery, .product-summary, .product-info-section, .order-card) {
  border-color: var(--market-line);
}

.product-page-body .product-section-nav {
  border: 1px solid var(--market-line);
  border-radius: 9px;
  background: #eef3f4;
}

.product-page-body .product-section-nav a {
  min-height: 58px;
}

.product-page-body .order-card {
  box-shadow: 0 14px 38px rgba(15, 37, 56, 0.055);
}

.home-v3-body .featured-device {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 37, 56, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.home-v3-body .featured-device:hover {
  border-color: #b9cbcf;
  box-shadow: 0 18px 44px rgba(15, 37, 56, 0.085);
  transform: translateY(-1px);
}

.home-v3-body .featured-offer {
  padding-inline: 20px;
}

.home-v3-body .offer-actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.home-v3-body .offer-actions .market-button {
  min-width: 132px;
  white-space: nowrap;
}

.home-v3-body .spec-link {
  font-size: 12px;
}

.order-detail-body .rental-checkout > .account-nav {
  margin-bottom: 22px;
}

.order-detail-body .checkout-created-banner,
.order-detail-body .checkout-stagebar,
.order-detail-body :is(.checkout-section, .checkout-product, .payment-task-panel, .order-service-center) {
  border-color: var(--market-line);
  border-radius: 10px;
}

.order-detail-body .checkout-created-banner {
  background: #f2f8f7;
}

.order-detail-body .payment-task-panel {
  top: 94px;
  overflow: hidden;
}

.checkout-page-body .wechat-checkout-card {
  border-radius: 14px;
  box-shadow: 0 24px 68px rgba(15, 37, 56, 0.12);
}

@media (min-width: 100000px) and (max-width: 1080px) {
  body:not(.manage-body) .topbar {
    padding-inline: 24px;
  }

  body:not(.manage-body) .nav {
    gap: 2px;
  }

  body:not(.manage-body) .topbar .nav a {
    padding-inline: 8px;
  }

  .order-list-page .order-row {
    grid-template-columns: minmax(240px, 1.2fr) minmax(230px, 1fr) minmax(160px, 0.7fr) 100px;
    gap: 16px;
  }

  .auth-shell {
    grid-template-columns: minmax(400px, 1fr) minmax(370px, 0.92fr);
  }
}

@media (min-width: 100000px) and (max-width: 860px) {
  body:not(.manage-body) .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px 18px;
  }

  body:not(.manage-body) .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body:not(.manage-body) .topbar .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .site-footer-inner > span {
    justify-self: start;
    text-align: left;
  }

  .account-page-body .section,
  .account-page-body .account-console,
  .account-page-body .invoice-console,
  .account-page-body .rental-checkout {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

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

  .account-page-body .section-head,
  .account-page-body .console-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-list-page .order-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-list-page .order-row .status {
    justify-self: start;
  }

  .address-page .address-grid,
  .invoice-page-body .invoice-console-grid {
    grid-template-columns: 1fr;
  }

  .auth-page-body .site-main {
    padding: 24px 14px 40px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-visual {
    min-height: 300px;
    padding: 30px;
  }

  .auth-visual h2 {
    font-size: 34px;
  }

  .auth-shell .auth-card {
    padding: 34px 28px;
  }
}

@media (min-width: 100000px) and (max-width: 560px) {
  .account-nav {
    display: flex;
    overflow-x: auto;
  }

  .account-nav a {
    flex: 0 0 136px;
  }

  .site-footer-inner,
  body:not(.manage-body) .messages {
    width: calc(100% - 28px);
  }

  .site-footer-inner nav {
    flex-wrap: wrap;
  }

  .auth-visual {
    min-height: 250px;
  }

  .auth-visual h2 {
    font-size: 29px;
  }

  .auth-visual li {
    font-size: 13px;
  }

  .auth-shell .auth-card {
    padding: 28px 20px;
  }

  .account-form-card {
    padding: 22px;
  }
}

/* Homepage contact layer — selected Product Design direction 1. */
.home-v3-body .market-contact-footer {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(245px, 1fr) minmax(245px, 1fr) minmax(230px, 1fr);
  gap: 0;
  align-items: center;
  padding: 28px max(44px, calc((100vw - 1340px) / 2));
  border-top: 1px solid #dbe5e8;
  background: #fff;
}

.mobile-rental-intro,
.mini-program-card,
.company-contact {
  min-height: 116px;
}

.mobile-rental-intro,
.company-contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.mobile-rental-intro {
  padding-right: 30px;
}

.mobile-rental-intro p {
  margin: 0 0 6px;
  color: #176e70;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.mobile-rental-intro h2 {
  margin: 0;
  color: #102238;
  font-size: 21px;
}

.mobile-rental-intro > span {
  max-width: 260px;
  margin-top: 9px;
  color: #68788a;
  font-size: 12px;
  line-height: 1.65;
}

.mini-program-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-left: 1px solid #e0e8eb;
  color: #24384b;
}

.mini-program-card:hover {
  background: #f8fbfb;
}

.mini-program-card img {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  padding: 4px;
  border: 1px solid #d6e1e5;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.mini-program-card span,
.mini-program-card strong,
.mini-program-card small {
  display: block;
}

.mini-program-card strong {
  color: #1d3448;
  font-size: 14px;
}

.mini-program-card strong i {
  margin-right: 6px;
  color: #176e70;
  font-size: 16px;
}

.mini-program-card small {
  margin-top: 7px;
  color: #758492;
  font-size: 11px;
}

.company-contact {
  gap: 7px;
  padding-left: 28px;
  border-left: 1px solid #e0e8eb;
}

.company-contact strong {
  margin-bottom: 3px;
  color: #25394d;
  font-size: 13px;
  line-height: 1.45;
}

.company-contact span,
.company-contact a {
  color: #6b7a89;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.company-contact i {
  width: 18px;
  color: #176e70;
}

.market-copyright {
  padding: 12px 24px;
  border-top: 1px solid #e3eaed;
  background: #f8fafb;
  color: #86919c;
  font-size: 10px;
  text-align: center;
}

.home-v3-body .payment-rule-dock-spacer {
  display: none;
  height: 0;
}

.home-v3-body .payment-rule-dock {
  position: fixed;
  z-index: 54;
  right: auto;
  bottom: 20px;
  left: 24px;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ccd9de;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: #22384c;
  box-shadow: 0 10px 28px rgba(16, 34, 56, 0.13);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.home-v3-body .payment-rule-dock:hover {
  border-color: #9fc6c2;
  color: #176e70;
  transform: translateY(-1px);
}

.home-v3-body .payment-rule-dock > i:first-child {
  color: #176e70;
  font-size: 17px;
}

.home-v3-body .payment-rule-dock > i:last-child {
  color: #84929f;
  font-size: 11px;
}

.home-v3-body .payment-rule-dock span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.home-v3-body .payment-rule-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid #d9e3e7;
  border-radius: 12px;
  background: #fff;
  color: #17293d;
  box-shadow: 0 28px 80px rgba(15, 32, 51, 0.25);
}

.home-v3-body .payment-rule-dialog::backdrop {
  background: rgba(15, 32, 51, 0.38);
  backdrop-filter: blur(3px);
}

.home-v3-body .payment-rule-dialog .dialog-head {
  align-items: center;
  padding: 19px 22px 17px;
  border-bottom: 1px solid #e0e8eb;
}

.home-v3-body .payment-rule-dialog .dialog-head .eyebrow {
  margin: 0 0 4px;
  color: #176e70;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.home-v3-body .payment-rule-dialog .dialog-head h2 {
  margin: 0;
  color: #102238;
  font-size: 21px;
}

.home-v3-body .payment-rule-dialog .dialog-head p:last-child {
  margin: 5px 0 0;
  color: #71808e;
  font-size: 12px;
}

.dialog-close,
.consult-head > button {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d9e3e7;
  border-radius: 50%;
  background: #fff;
  color: #607182;
  cursor: pointer;
}

.dialog-close:hover,
.consult-head > button:hover {
  border-color: #a8c9c6;
  color: #176e70;
}

.payment-rule-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 17px 22px;
  background: #f5f9f9;
}

.payment-rule-flow > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.payment-rule-flow b {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #176e70;
  color: #fff;
  font-size: 11px;
}

.payment-rule-flow span,
.payment-rule-flow strong,
.payment-rule-flow small {
  display: block;
  min-width: 0;
}

.payment-rule-flow strong {
  color: #20364a;
  font-size: 12px;
  white-space: nowrap;
}

.payment-rule-flow small {
  margin-top: 2px;
  overflow: hidden;
  color: #7a8996;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-rule-flow > i {
  color: #9ba8b2;
  font-size: 10px;
}

.payment-rule-details {
  padding: 8px 22px 0;
}

.payment-rule-details details {
  border-bottom: 1px solid #e4eaed;
}

.payment-rule-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: #263a4e;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.payment-rule-details summary::-webkit-details-marker {
  display: none;
}

.payment-rule-details details[open] summary i {
  transform: rotate(180deg);
}

.payment-rule-details summary i {
  color: #7b8996;
  font-size: 11px;
  transition: transform 160ms ease;
}

.payment-rule-details p {
  margin: -3px 0 15px;
  color: #687989;
  font-size: 12px;
  line-height: 1.75;
}

.home-v3-body .payment-rule-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 17px 22px 20px;
}

.home-v3-body .payment-rule-dialog .dialog-actions .market-button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
}

.rental-consult {
  position: fixed;
  z-index: 56;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.consult-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #176e70;
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 110, 112, 0.28);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.consult-trigger:hover {
  background: #125b5d;
  transform: translateY(-1px);
}

.consult-trigger i {
  font-size: 18px;
}

.consult-trigger b {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #69cf72;
}

.consult-panel {
  width: min(342px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid #d8e3e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(15, 32, 51, 0.2);
}

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

.consult-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.consult-icon {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9f4f2;
  color: #176e70;
  font-size: 18px;
}

.consult-head > div {
  min-width: 0;
  margin-right: auto;
}

.consult-head strong,
.consult-head small {
  display: block;
}

.consult-head strong {
  color: #1b3145;
  font-size: 15px;
}

.consult-head small {
  margin-top: 4px;
  color: #73828f;
  font-size: 11px;
  line-height: 1.5;
}

.consult-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid #e4eaed;
  border-bottom: 1px solid #e4eaed;
}

.consult-meta span,
.consult-meta a {
  color: #526678;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.consult-meta i {
  width: 20px;
  color: #176e70;
}

.consult-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.consult-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid #a8cbc8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}

.consult-secondary {
  background: #fff;
  color: #176e70;
}

.consult-primary {
  background: #176e70;
  color: #fff;
}

.consult-primary:hover {
  background: #125b5d;
}

/* Management page for homepage visuals and contact details. */
.site-contact-form {
  display: grid;
  gap: 24px;
}

.site-title-settings {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.site-title-settings h2 {
  margin: 0 0 8px;
}

.site-title-settings > div > span {
  color: var(--muted);
  line-height: 1.6;
}

.site-contact-form-title {
  margin: 8px 0 -10px;
  color: #17293d;
  font-size: 21px;
}

.site-hero-upload {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid #d8e3e6;
  border-radius: 10px;
  background: #f8fbfb;
}

.site-hero-upload h2 {
  margin: 0;
}

.site-hero-upload > div > span {
  display: block;
  margin: 9px 0 18px;
  color: #667888;
  line-height: 1.7;
}

.site-hero-upload > img {
  display: block;
  width: 100%;
  max-height: 260px;
  border: 1px solid #d4dfe3;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.site-code-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-code-upload-grid > section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 16px 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid #d8e3e6;
  border-radius: 10px;
  background: #f8fbfb;
}

.site-code-upload-grid h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.site-code-upload-grid p {
  margin: 0;
  color: #687989;
  font-size: 12px;
  line-height: 1.6;
}

.site-code-upload-grid img {
  grid-area: 1 / 2 / 4 / 3;
  width: 130px;
  height: 130px;
  padding: 5px;
  border: 1px solid #d4dfe3;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.site-code-upload-grid label {
  margin: 0;
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .home-v3-body .market-contact-footer {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }

  .mobile-rental-intro,
  .mini-program-card:nth-of-type(1) {
    border-bottom: 1px solid #e0e8eb;
  }

  .mini-program-card:nth-of-type(1) {
    border-left: 1px solid #e0e8eb;
  }

  .mini-program-card:nth-of-type(2) {
    border-left: 0;
  }

  .site-title-settings,
  .site-hero-upload,
  .site-code-upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 100000px) and (max-width: 700px) {
  .home-v3-body .market-contact-footer {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .mobile-rental-intro,
  .mini-program-card,
  .company-contact {
    min-height: auto;
    padding: 18px 0;
    border-top: 1px solid #e0e8eb;
    border-bottom: 0;
    border-left: 0 !important;
  }

  .mobile-rental-intro {
    padding-top: 0;
    border-top: 0;
  }

  .mini-program-card {
    justify-content: flex-start;
  }

  .company-contact {
    padding-bottom: 0;
  }

  .home-v3-body .payment-rule-dock {
    bottom: 12px;
    left: 12px;
    min-height: 42px;
    padding-inline: 13px;
  }

  .rental-consult {
    right: 12px;
    bottom: 12px;
  }

  .consult-trigger {
    min-height: 44px;
    padding-inline: 14px;
  }

  .payment-rule-flow {
    grid-template-columns: 1fr;
  }

  .payment-rule-flow > i {
    display: none;
  }

  .payment-rule-flow small {
    white-space: normal;
  }

  .site-hero-upload {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-code-upload-grid > section {
    grid-template-columns: 1fr 110px;
    padding: 18px;
  }

  .site-code-upload-grid img {
    width: 110px;
    height: 110px;
  }
}

@media (min-width: 921px) {
  .hero h1 {
    max-width: none;
    font-size: 46px;
    line-height: 1.08;
    white-space: nowrap;
  }
}

/* 2026 polish pass: calmer rental portal and operations surfaces. */
.rental-status-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(28px, 4.5vw, 70px) 58px;
  background: #fff;
}

.status-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
  padding: 28px 34px 28px 0;
  border-top: 1px solid #dbe4e7;
  border-bottom: 1px solid #dbe4e7;
}

.status-copy span {
  color: #2b7771;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-copy strong {
  margin-top: 10px;
  color: #172334;
  font-size: 22px;
  line-height: 1.35;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dbe4e7;
  border-bottom: 1px solid #dbe4e7;
}

.status-metrics div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
  padding: 26px 34px;
}

.status-metrics div + div {
  border-left: 1px solid #dbe4e7;
}

.status-metrics strong {
  color: #172334;
  font-size: 42px;
  line-height: 1;
}

.status-metrics span {
  margin-top: 8px;
  color: #5d6a76;
  font-size: 15px;
  font-weight: 800;
}

.metrics {
  display: none;
}

.service-overview {
  align-items: start;
  border-top: 1px solid #dbe4e7;
  border-bottom: 1px solid #dbe4e7;
}

.service-list div {
  padding-top: 4px;
}

.service-list strong {
  font-size: 18px;
}

.service-list span {
  max-width: 220px;
  color: #687686;
  line-height: 1.65;
}

.manage-body {
  background: #f4f6f7;
}

.manage-sidebar {
  background: #101c2b;
  border-right: 0;
  box-shadow: 18px 0 44px rgba(16, 28, 43, 0.12);
}

.manage-brand {
  color: #fff;
}

.manage-brand .brand-mark {
  background: #2c8f88;
  box-shadow: none;
}

.manage-brand small {
  color: #8ea0b3;
}

.manage-nav a {
  border-radius: 6px;
  color: #c5d0dc;
  font-weight: 800;
}

.manage-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.manage-main {
  background: #f4f6f7;
}

.manage-topbar {
  border-bottom: 1px solid #dce4e8;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.manage-main .section {
  max-width: none;
  padding: 38px clamp(26px, 3vw, 44px) 64px;
  background: transparent;
}

.manage-main .section-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce4e8;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 10px;
  background: #dce4e8;
  box-shadow: none;
}

.dashboard-grid > * {
  min-height: 152px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.dashboard-grid > *:hover {
  transform: none;
  background: #f9fbfb;
}

.dashboard-grid > *:nth-child(-n+4) {
  background: #132032;
}

.dashboard-grid > *:nth-child(-n+4) span,
.dashboard-grid > *:nth-child(-n+4) small {
  color: #c6d1dd;
}

.dashboard-grid > *:nth-child(-n+4) strong {
  color: #fff;
}

.quick-links {
  gap: 10px;
  margin: 24px 0 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.quick-links .button.ghost {
  min-height: 38px;
  border-color: #d4dfe3;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.table-like,
.order-list {
  border: 1px solid #dce4e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.table-head,
.table-row,
.order-row {
  border-radius: 0;
  border-width: 0 0 1px;
  box-shadow: none;
}

.table-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}

@media (min-width: 100000px) and (max-width: 920px) {
  .rental-status-band {
    grid-template-columns: 1fr;
    padding: 0 20px 34px;
  }

  .status-copy {
    min-height: auto;
    padding: 24px 0;
    border-bottom: 0;
  }

  .status-metrics {
    grid-template-columns: 1fr;
  }

  .status-metrics div {
    min-height: 96px;
    padding: 20px 0;
  }

  .status-metrics div + div {
    border-left: 0;
    border-top: 1px solid #dbe4e7;
  }

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

/* United Rentals inspired hero: full-bleed section with integrated capacity band. */
.home-hero-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 70px) 0 0;
  background:
    linear-gradient(90deg, #f8faf9 0%, #f8faf9 50%, #dfe9eb 50%, #dfe9eb 100%),
    linear-gradient(180deg, #ffffff 0%, #eef3f5 100%);
}

.home-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 107, 103, 0.10), transparent 24%),
    linear-gradient(102deg, transparent 0%, transparent 51%, rgba(23, 35, 52, 0.10) 51%, rgba(23, 35, 52, 0.04) 100%),
    linear-gradient(180deg, transparent 0%, rgba(23, 35, 52, 0.05) 100%);
  pointer-events: none;
}

.home-hero-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: max(35vw, 420px);
  background: #dfe9eb;
  pointer-events: none;
}

.home-hero-shell .hero,
.home-hero-shell .rental-status-band {
  position: relative;
  z-index: 2;
}

.home-hero-shell .hero {
  max-width: 1420px;
  padding: clamp(46px, 5.5vw, 86px) clamp(36px, 5.5vw, 96px) 58px;
  background: transparent;
}

.home-hero-shell .hero-copy {
  align-self: center;
}

.home-hero-shell .hero h1 {
  font-size: clamp(46px, 4.1vw, 72px);
}

.home-hero-shell .hero-text {
  max-width: 720px;
  color: #526273;
  font-size: 18px;
}

.home-hero-shell .hero-search {
  max-width: 740px;
  min-height: 70px;
  margin-top: 34px;
  border: 3px solid #172334;
  box-shadow: 0 16px 36px rgba(23, 35, 52, 0.10);
}

.home-hero-shell .hero-search input {
  min-height: 64px;
  padding-left: 24px;
  font-size: 18px;
}

.home-hero-shell .hero-search .button {
  min-width: 138px;
  min-height: 64px;
  background: #2b8b84;
}

.home-hero-shell .portal-visual {
  min-height: clamp(450px, 37vw, 600px);
  border: 0;
  background: #e7eff1;
  box-shadow: none;
}

.home-hero-shell .portal-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 15%;
  background: #e7eff1;
  pointer-events: none;
}

.home-hero-shell .portal-visual img {
  position: relative;
  z-index: 1;
  object-position: center 42%;
}

.home-hero-shell .rental-status-band {
  max-width: 1420px;
  padding: 0 clamp(36px, 5.5vw, 96px) clamp(30px, 3vw, 46px);
  background: transparent;
}

.home-hero-shell .status-copy,
.home-hero-shell .status-metrics {
  border-color: rgba(23, 35, 52, 0.16);
}

.home-hero-shell .status-copy {
  background: rgba(248, 250, 249, 0.72);
}

.home-hero-shell .status-metrics {
  background: rgba(248, 250, 249, 0.55);
}

.home-hero-shell .status-metrics div + div {
  border-left-color: rgba(23, 35, 52, 0.16);
}

@media (min-width: 100000px) and (max-width: 920px) {
  .home-hero-shell {
    padding-top: 0;
    background: #fff;
  }

  .home-hero-shell .hero {
    margin: 0;
    padding: 38px 20px 30px;
  }

  .home-hero-shell .hero h1 {
    font-size: 40px;
    white-space: normal;
  }

  .home-hero-shell .hero-search {
    min-height: 0;
    border-width: 2px;
  }

  .home-hero-shell .portal-visual {
    min-height: 300px;
  }

  .home-hero-shell .rental-status-band {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 2026 premium redesign layer */
:root {
  --ink: #102032;
  --muted: #667789;
  --line: #dbe5ea;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --brand: #136f6b;
  --brand-dark: #0c5653;
  --accent: #c9973d;
  --blue: #274b6d;
  --danger: #ba4141;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(16, 32, 50, 0.10);
  --shadow-strong: 0 28px 72px rgba(7, 22, 36, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% -10%, rgba(19, 111, 107, 0.14), transparent 34%),
    linear-gradient(180deg, #eef4f6 0%, #f8fafb 48%, #eef3f6 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.brand span,
.manage-brand strong {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand small,
.manage-brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar {
  min-height: 82px;
  background: rgba(12, 30, 47, 0.94);
  backdrop-filter: blur(18px);
}

.brand-mark {
  border-radius: 9px;
}

.button {
  min-height: 44px;
  border-radius: 999px;
  border-color: transparent;
  background: linear-gradient(135deg, #167b76 0%, #0f5f5c 100%);
  box-shadow: 0 12px 26px rgba(19, 111, 107, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(19, 111, 107, 0.28);
}

.button.ghost {
  border-color: #d8e5e8;
  background: #fff;
  color: #0f5f5c;
  box-shadow: none;
}

.button.ghost:hover {
  background: #eef7f6;
}

.button.danger {
  background: linear-gradient(135deg, #c94c4c, #a93737);
}

.hero {
  position: relative;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(13, 31, 49, 0.94) 0%, rgba(16, 43, 65, 0.90) 48%, rgba(20, 74, 75, 0.72) 100%),
    radial-gradient(circle at 85% 18%, rgba(93, 204, 193, 0.24), transparent 34%),
    #10263a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 82%);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero .eyebrow,
.section .eyebrow,
.detail-panel .eyebrow,
.auth-card .eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  font-size: 18px;
}

.hero-visual {
  min-height: 430px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 36%, #ffffff 0%, #f1f7f8 46%, #dfeaec 100%);
  box-shadow: var(--shadow-strong);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(16, 32, 50, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.hero-visual img {
  filter: drop-shadow(0 28px 30px rgba(16, 32, 50, 0.20));
}

.hero-visual-panel {
  border-radius: 10px;
  border-color: rgba(207, 221, 225, 0.86);
  backdrop-filter: blur(16px);
}

.trust-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
  margin: -42px auto 30px;
  padding: 0 24px;
  counter-reset: trust-step;
}

.trust-strip div {
  position: relative;
  min-height: 116px;
  padding: 22px 22px 20px 72px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 251, 0.92));
  border: 1px solid rgba(216, 228, 232, 0.86);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(16, 32, 50, 0.09);
  counter-increment: trust-step;
}

.trust-strip div::before {
  content: "0" counter(trust-step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8f4f1;
  color: #126b67;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.trust-strip div::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: rgba(19, 111, 107, 0.07);
  pointer-events: none;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: #102032;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-strip span {
  margin-top: 10px;
  color: #607384;
  font-size: 15px;
  line-height: 1.55;
}

.workflow {
  margin-top: 0;
}

.workflow div,
.metrics div,
.device-card,
.panel,
.auth-card,
.detail-panel,
.detail-media,
.address-card,
.device-state-card,
.order-row,
.table-row {
  border-radius: var(--radius);
}

.workflow div {
  padding: 22px;
  border: 0;
}

.workflow span {
  border-radius: 999px;
  background: linear-gradient(135deg, #10263a, #1b5360);
}

.metrics {
  gap: 14px;
  padding-bottom: 34px;
}

.metrics div {
  border: 0;
  border-left: 4px solid #136f6b;
  box-shadow: 0 14px 34px rgba(16, 32, 50, 0.06);
}

.section {
  padding-top: 46px;
}

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

.section-head h1,
.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.catalog-filter,
.filter-bar,
.quick-links {
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

input,
select,
textarea {
  border-color: #d8e4e8;
  border-radius: 9px;
  background: #fbfdfe;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(19, 111, 107, 0.20);
  border-color: #72b8b2;
}

.device-grid {
  gap: 28px;
}

.device-card {
  grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1fr);
  border: 1px solid rgba(216, 228, 232, 0.68);
  overflow: hidden;
}

.device-image {
  min-height: 260px;
  background:
    linear-gradient(145deg, #f5f8fa 0%, #e2ecef 100%);
}

.device-body {
  padding: 26px;
}

.device-title-row h3 {
  font-size: 22px;
  line-height: 1.25;
}

.device-meta {
  margin-top: 8px;
  color: #81909d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tags span {
  border: 0;
  background: #edf4f5;
  color: #51697a;
  font-weight: 800;
}

.price strong {
  color: #102032;
  font-size: 28px;
}

.status {
  border: 1px solid transparent;
}

.status.ok {
  border-color: #bfe1dc;
  background: #eaf7f4;
  color: #0f5f5c;
}

.detail-layout {
  gap: 34px;
  padding-top: 48px;
}

.detail-media {
  min-height: 500px;
  border: 0;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0%, #edf5f6 48%, #dde8eb 100%);
}

.detail-panel {
  border: 0;
}

.detail-panel h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.detail-facts div,
.info-grid div,
.rule-grid section,
.state-facts div {
  border: 0;
  border-radius: var(--radius);
  background: #f5f8fa;
}

.order-card {
  border: 0;
  box-shadow: inset 0 5px 0 #136f6b, var(--shadow);
}

.auth-card {
  border: 0;
}

.auth-tabs {
  border-radius: 999px;
}

.auth-tab {
  border-radius: 999px;
}

.order-row {
  border: 0;
  box-shadow: 0 12px 34px rgba(16, 32, 50, 0.07);
}

.progress-step {
  border-radius: 999px;
}

.manage-sidebar {
  background:
    linear-gradient(135deg, rgba(13, 31, 49, 0.98), rgba(18, 58, 75, 0.96));
}

.manage-topbar {
  min-height: 72px;
}

.dashboard-grid {
  gap: 18px;
}

.dashboard-grid > * {
  min-height: 142px;
  border-radius: var(--radius);
}

.dashboard-grid > *::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -26px;
  top: -26px;
  border-radius: 50%;
  background: rgba(19, 111, 107, 0.10);
}

.dashboard-grid > *:nth-child(-n+4)::after {
  background: rgba(255, 255, 255, 0.12);
}

.table-head {
  border-radius: var(--radius);
}

.table-row {
  background: rgba(255, 255, 255, 0.96);
}

@media (min-width: 100000px) and (max-width: 920px) {
  .hero {
    min-height: auto;
    padding: 42px 22px 58px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding: 0 22px;
  }

  .trust-strip div {
    min-height: 102px;
    padding-left: 66px;
  }
}

/* 2026 editorial equipment-rental refinement */
:root {
  --ink: #172334;
  --muted: #667180;
  --line: #d9e0e5;
  --panel: #ffffff;
  --soft: #f5f7f8;
  --brand: #126b67;
  --brand-dark: #0f4f4c;
  --accent: #b98a34;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(23, 35, 52, 0.07);
  --shadow-strong: 0 18px 46px rgba(23, 35, 52, 0.10);
}

body {
  background: #f4f6f7;
  color: var(--ink);
}

.topbar {
  min-height: 78px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.brand {
  color: var(--ink);
}

.brand > span:last-child {
  color: var(--ink);
}

.brand-mark {
  background: #172334;
  color: #fff;
  box-shadow: none;
}

.brand small {
  color: #788491;
}

.nav {
  color: #526070;
}

.topbar .nav a {
  color: #526070;
}

.nav a {
  border-radius: 6px;
}

.nav a:hover,
.nav-primary {
  background: #edf2f3;
  color: var(--ink);
}

.button {
  min-height: 42px;
  border-radius: 6px;
  border-color: #172334;
  background: #172334;
  box-shadow: none;
  letter-spacing: 0;
}

.button:hover {
  transform: none;
  background: #0f1927;
  box-shadow: none;
}

.button.ghost {
  border-color: #cfd8de;
  background: #fff;
  color: #172334;
}

.button.ghost:hover {
  background: #f1f4f5;
}

.hero {
  max-width: 1240px;
  min-height: 0;
  margin: 28px auto 0;
  padding: 58px 40px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.hero::before {
  display: none;
}

.hero .eyebrow,
.section .eyebrow,
.detail-panel .eyebrow,
.auth-card .eyebrow {
  color: var(--brand);
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 690px;
  color: #536170;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 30px;
}

.hero-checks {
  gap: 8px;
  margin-top: 22px;
}

.hero-checks span {
  border-color: #dce4e8;
  border-radius: 6px;
  background: #f7f9fa;
  color: #526070;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  border: 1px solid #dfe6ea;
  border-radius: 8px;
  background: #f5f7f8;
  box-shadow: none;
}

.hero-visual::before {
  inset: 18px;
  border-color: rgba(23, 35, 52, 0.07);
  border-radius: 6px;
}

.hero-visual img {
  max-width: 86%;
  filter: none;
}

.hero-visual-panel {
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
}

.trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1240px;
  margin: 18px auto 24px;
  padding: 0;
}

.trust-strip div {
  min-height: 104px;
  padding: 20px 18px 18px 60px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.trust-strip div::before {
  left: 18px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eff4f4;
  color: #126b67;
  font-size: 11px;
}

.trust-strip div::after {
  display: none;
}

.trust-strip strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.trust-strip span {
  margin-top: 8px;
  color: #667180;
  font-size: 14px;
  line-height: 1.55;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1240px;
  padding: 0 0 24px;
}

.workflow div {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.workflow span {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #172334;
  color: #fff;
}

.metrics {
  max-width: 1240px;
  gap: 12px;
  padding: 0 0 42px;
}

.metrics div {
  min-height: 96px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: #fff;
  box-shadow: none;
}

.metrics strong {
  color: var(--ink);
}

.section {
  max-width: 1240px;
  padding-top: 42px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: 0;
}

.section-note {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.catalog-filter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

input,
select,
textarea {
  border-radius: 6px;
  background: #fff;
}

.device-grid {
  gap: 18px;
}

.device-card {
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.device-card:hover {
  border-color: #bcc9d1;
}

.device-image {
  min-height: 230px;
  background: #f3f6f7;
}

.device-body {
  padding: 24px;
}

.device-title-row h3 {
  font-size: 21px;
}

.device-meta {
  color: #71808f;
}

.tags span {
  border: 1px solid #dfe6ea;
  border-radius: 6px;
  background: #fff;
  color: #5e6d7a;
}

.price strong {
  color: #172334;
  font-size: 26px;
}

.status.ok {
  border-color: #cbdedb;
  background: #f0f6f5;
  color: #126b67;
}

@media (min-width: 100000px) and (max-width: 920px) {
  .topbar {
    background: #fff;
  }

  .hero {
    margin: 16px 16px 0;
    padding: 34px 22px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .trust-strip,
  .workflow,
  .metrics {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .trust-strip div {
    min-height: 96px;
    padding-left: 58px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Interaction clarity refinement: text should not look like controls. */
.hero-service-line {
  margin: 24px 0 0;
  color: #667180;
  font-size: 14px;
  line-height: 1.8;
}

.hero-checks,
.trust-strip,
.workflow {
  display: none;
}

.service-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 56px;
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-intro h2 {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.service-list div {
  min-width: 0;
}

.service-list strong,
.service-list span {
  display: block;
}

.service-list strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.service-list span {
  margin-top: 10px;
  color: #667180;
  font-size: 14px;
  line-height: 1.7;
}

.process-line {
  display: flex;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 0 34px;
  color: #526070;
  font-weight: 800;
}

.process-line span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.process-line span + span::before {
  content: "";
  width: 52px;
  height: 1px;
  margin: 0 18px;
  background: #cfd8de;
}

.metrics {
  padding-top: 0;
}

.section-note {
  padding: 0;
  border: 0;
  background: transparent;
  color: #71808f;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: #526070;
}

.hero .button.ghost {
  border-color: transparent;
  background: transparent;
  color: #526070;
  padding-left: 4px;
  padding-right: 4px;
}

.button.ghost:hover,
.hero .button.ghost:hover {
  background: transparent;
  color: var(--ink);
}

@media (min-width: 100000px) and (max-width: 920px) {
  .hero-service-line {
    font-size: 13px;
  }

  .service-overview {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 16px 0;
    padding: 28px 0;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .process-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 0 16px;
    padding-bottom: 28px;
  }

  .process-line span + span::before {
    width: 1px;
    height: 14px;
    margin: 0 0 10px 0;
  }
}

/* 2026 rental portal redesign: search-first, fewer frames, clearer intent. */
body {
  background: #f5f7f8;
}

.topbar {
  min-height: 76px;
  padding: 0 clamp(28px, 5vw, 78px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #dfe5e8;
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 34px;
  background: #126b67;
  border-radius: 5px;
}

.nav {
  gap: 10px;
}

.topbar .nav a {
  min-height: 36px;
  padding: 0 9px;
  color: #3f4d5d;
  font-weight: 800;
}

.topbar .nav a:hover,
.topbar .nav-primary {
  background: transparent;
  color: #126b67;
}

.hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.68fr);
  gap: clamp(40px, 6vw, 86px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px clamp(28px, 4.5vw, 70px) 56px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.hero h1 {
  max-width: 740px;
  margin-top: 12px;
  font-size: clamp(40px, 3.7vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: keep-all;
  white-space: nowrap;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4f5f6f;
  font-size: 17px;
  line-height: 1.75;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 680px;
  min-height: 62px;
  margin: 30px 0 0;
  border: 2px solid #172334;
  border-radius: 4px;
  background: #fff;
}

.hero-search input {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172334;
  font-size: 17px;
}

.hero-search input:focus {
  outline: none;
}

.hero-search .button {
  min-width: 112px;
  min-height: 58px;
  border-radius: 0;
}

.portal-actions {
  gap: 22px;
  margin-top: 18px;
}

.text-link {
  color: #172334;
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: #126b67;
}

.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 700px;
  margin-top: 28px;
  color: #5e6b79;
  font-size: 14px;
  line-height: 1.8;
}

.popular-links span {
  margin-right: 14px;
  color: #172334;
  font-weight: 900;
}

.popular-links a {
  color: #526070;
  font-weight: 800;
}

.popular-links a + a::before {
  content: "/";
  margin: 0 10px;
  color: #a1abb4;
  font-weight: 500;
}

.popular-links a:hover {
  color: #126b67;
}

.portal-visual {
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #eef3f4;
}

.portal-visual::before,
.portal-visual .hero-visual-panel {
  display: none;
}

.portal-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(28px, 4.5vw, 70px) 34px;
  background: #fff;
}

.metrics div {
  min-height: 88px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid #dfe5e8;
  border-left: 0;
  box-shadow: none;
}

.metrics div + div {
  padding-left: 28px;
  border-left: 1px solid #dfe5e8;
}

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

.section {
  max-width: 1280px;
  padding: 58px clamp(28px, 4.5vw, 70px) 72px;
  background: #f5f7f8;
}

.section-head {
  align-items: end;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.catalog-filter {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.7fr) auto auto;
  gap: 12px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-filter label {
  color: #445364;
}

.catalog-filter input,
.catalog-filter select {
  border-radius: 4px;
  background: #fff;
}

.catalog-filter .button {
  align-self: end;
  min-height: 44px;
  border-radius: 4px;
}

.device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #d9e0e5;
  background: #fff;
}

.device-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border: 0;
  border-bottom: 1px solid #d9e0e5;
  border-radius: 0;
  box-shadow: none;
}

.device-card:hover {
  border-color: #d9e0e5;
  background: #fbfcfc;
}

.device-image {
  min-height: 178px;
  padding: 20px;
  background: #f0f4f5;
}

.device-image img {
  object-fit: cover;
  border-radius: 2px;
}

.device-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
}

.device-title-row {
  display: block;
}

.device-title-row h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.device-meta {
  margin-top: 0;
  color: #6d7b88;
}

.device-body p {
  max-width: 660px;
  margin: 10px 0 0;
}

.tags {
  margin: 14px 0 0;
}

.tags span {
  padding: 0;
  border: 0;
  background: transparent;
  color: #526070;
}

.tags span + span::before {
  content: "/";
  margin: 0 8px 0 2px;
  color: #a0aab3;
}

.card-foot {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-self: stretch;
}

.price {
  text-align: right;
}

.status {
  display: inline-flex;
  margin-top: 0;
  border-radius: 4px;
}

.button.small {
  border-radius: 4px;
}

.service-overview {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px clamp(28px, 4.5vw, 70px);
  background: #fff;
}

.process-line {
  max-width: 1280px;
  padding: 0 clamp(28px, 4.5vw, 70px) 56px;
  background: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 100000px) and (max-width: 920px) {
  .hero,
  .device-card,
  .device-body,
  .catalog-filter,
  .metrics,
  .service-overview {
    grid-template-columns: 1fr;
  }

  .hero {
    margin: 0;
    padding: 40px 20px 32px;
  }

  .hero h1 {
    font-size: 42px;
    white-space: normal;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .portal-visual {
    min-height: 300px;
  }

  .metrics {
    padding: 0 20px 28px;
  }

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

  .section {
    padding: 40px 20px 56px;
  }

  .device-image {
    min-height: 220px;
  }

  .device-body {
    padding: 22px;
  }

  .card-foot,
  .price {
    justify-items: start;
    text-align: left;
  }

  .service-overview,
  .process-line {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Final hero polish: broad industrial split background inspired by United Rentals. */
.home-hero-shell {
  isolation: isolate;
  padding: clamp(42px, 5vw, 76px) 0 0;
  background:
    linear-gradient(90deg, #f8faf8 0%, #f8faf8 57%, #d9e5e8 57%, #d9e5e8 100%);
}

.home-hero-shell::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 107, 103, 0.10) 0%, rgba(18, 107, 103, 0.03) 22%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 248, 248, 0.68) 64%, rgba(232, 239, 241, 0.96) 100%);
}

.home-hero-shell::after {
  z-index: 1;
  width: min(44vw, 760px);
  background:
    linear-gradient(180deg, #e8f0f2 0%, #d2e0e4 58%, #c7d7dc 100%);
  box-shadow: inset 1px 0 0 rgba(23, 35, 52, 0.08);
}

.home-hero-shell .hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(500px, 0.78fr);
  gap: clamp(34px, 5vw, 84px);
  max-width: 1480px;
  padding: clamp(48px, 5.6vw, 88px) clamp(32px, 5.5vw, 92px) 48px;
}

.home-hero-shell .hero-copy {
  padding: clamp(10px, 2vw, 24px) 0;
}

.home-hero-shell .eyebrow {
  color: #2a746f;
}

.home-hero-shell .hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 4.45vw, 80px);
  letter-spacing: 0;
}

.home-hero-shell .hero-text {
  max-width: 760px;
  margin-top: 22px;
  color: #4b5d6f;
  font-size: 18px;
}

.home-hero-shell .hero-search {
  max-width: 780px;
  margin-top: 38px;
  border: 3px solid #132234;
  border-radius: 2px;
  box-shadow: 0 24px 42px rgba(23, 35, 52, 0.11);
}

.home-hero-shell .portal-actions {
  margin-top: 22px;
}

.home-hero-shell .popular-links {
  margin-top: 32px;
}

.home-hero-shell .portal-visual {
  min-height: clamp(510px, 39vw, 650px);
  margin-right: clamp(-86px, -4vw, -38px);
  background:
    linear-gradient(180deg, #e8f0f2 0 13%, transparent 13% 86%, #dce8eb 86% 100%),
    #d9e5e8;
  box-shadow: -18px 28px 54px rgba(23, 35, 52, 0.12);
}

.home-hero-shell .portal-visual::after {
  display: none;
}

.home-hero-shell .portal-visual img {
  object-position: center 50%;
  filter: saturate(0.96) contrast(1.02);
}

.home-hero-shell .rental-status-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  max-width: 1480px;
  padding: 0 clamp(32px, 5.5vw, 92px) clamp(32px, 3.2vw, 50px);
}

.home-hero-shell .status-copy,
.home-hero-shell .status-metrics {
  min-height: 142px;
  border-top: 1px solid rgba(23, 35, 52, 0.17);
  border-bottom: 1px solid rgba(23, 35, 52, 0.17);
  background: rgba(248, 250, 249, 0.70);
  backdrop-filter: blur(10px);
}

.home-hero-shell .status-copy {
  padding-right: clamp(28px, 4vw, 58px);
}

.home-hero-shell .status-metrics {
  box-shadow: inset 1px 0 0 rgba(23, 35, 52, 0.12);
}

.home-hero-shell .status-metrics div {
  padding: 28px clamp(22px, 3.2vw, 48px);
}

.home-hero-shell .status-metrics strong {
  font-size: clamp(42px, 3.8vw, 66px);
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .home-hero-shell .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  }

  .home-hero-shell .hero h1 {
    white-space: normal;
  }

  .home-hero-shell .portal-visual {
    margin-right: 0;
  }
}

@media (min-width: 100000px) and (max-width: 920px) {
  .home-hero-shell {
    background: linear-gradient(180deg, #f8faf8 0%, #eef5f6 100%);
  }

  .home-hero-shell::after {
    display: none;
  }

  .home-hero-shell .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 30px;
  }

  .home-hero-shell .hero h1 {
    font-size: 42px;
  }

  .home-hero-shell .hero-search {
    grid-template-columns: 1fr;
  }

  .home-hero-shell .portal-visual {
    min-height: 320px;
    box-shadow: 0 18px 34px rgba(23, 35, 52, 0.10);
  }

  .home-hero-shell .rental-status-band {
    grid-template-columns: 1fr;
    padding: 0 20px 32px;
  }

  .home-hero-shell .status-copy,
  .home-hero-shell .status-metrics {
    min-height: 0;
    background: rgba(255, 255, 255, 0.62);
  }
}

/* Refined editorial hero: remove hard stats and make the equipment visual feel built in. */
.home-hero-shell {
  padding-top: clamp(34px, 4.5vw, 64px);
  background:
    radial-gradient(circle at 7% 52%, rgba(18, 107, 103, 0.12), transparent 32%),
    linear-gradient(90deg, #f8fbfa 0%, #f8fbfa 55%, #d6e2e5 55%, #d6e2e5 100%);
}

.home-hero-shell::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.62) 46%, rgba(214, 226, 229, 0.22) 54%, rgba(188, 205, 211, 0.72) 100%),
    linear-gradient(180deg, transparent 0%, rgba(222, 234, 237, 0.72) 100%);
}

.home-hero-shell::after {
  width: min(46vw, 820px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48) 0 22%, transparent 22% 100%),
    linear-gradient(180deg, #dfeaec 0%, #c9d9de 100%);
  box-shadow: inset 1px 0 0 rgba(23, 35, 52, 0.06);
}

.home-hero-shell .hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(520px, 0.86fr);
  align-items: stretch;
  padding-bottom: 36px;
}

.home-hero-shell .portal-visual {
  min-height: clamp(520px, 37vw, 640px);
  margin: 0 clamp(-112px, -5vw, -46px) 0 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.home-hero-shell .portal-visual::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0 -5% 0 8%;
  z-index: 0;
  background: linear-gradient(180deg, rgba(238, 245, 246, 0.95), rgba(203, 218, 224, 0.92));
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: -22px 30px 56px rgba(23, 35, 52, 0.10);
}

.home-hero-shell .portal-visual img {
  position: absolute;
  inset: -4% -14% -4% 3%;
  z-index: 1;
  width: 118%;
  height: 108%;
  object-fit: cover;
  object-position: center 50%;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  mix-blend-mode: multiply;
  filter: saturate(0.98) contrast(1.08);
  box-shadow: -14px 22px 40px rgba(23, 35, 52, 0.08);
}

.home-hero-shell .rental-status-band {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  padding-bottom: clamp(34px, 3.8vw, 58px);
}

.home-hero-shell .status-copy,
.home-hero-shell .status-metrics {
  min-height: 128px;
  border-top-color: rgba(23, 35, 52, 0.14);
  border-bottom-color: rgba(23, 35, 52, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

.home-hero-shell .status-copy strong {
  max-width: 390px;
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 1.25;
}

.home-hero-shell .status-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-hero-shell .status-metrics div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 26px clamp(20px, 3vw, 42px);
}

.home-hero-shell .status-metrics strong {
  color: #172334;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.2;
}

.home-hero-shell .status-metrics span {
  color: #5f6f7f;
  font-size: 15px;
  font-weight: 800;
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .home-hero-shell .portal-visual {
    margin-right: 0;
  }

  .home-hero-shell .portal-visual::before {
    inset: 0;
    clip-path: none;
  }

  .home-hero-shell .portal-visual img {
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: none;
    mix-blend-mode: normal;
  }
}

@media (min-width: 100000px) and (max-width: 920px) {
  .home-hero-shell .portal-visual {
    min-height: 330px;
    overflow: hidden;
  }

  .home-hero-shell .portal-visual::before {
    inset: 0;
    clip-path: none;
  }

  .home-hero-shell .portal-visual img {
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: none;
  }

  .home-hero-shell .status-metrics {
    grid-template-columns: 1fr;
  }

  .home-hero-shell .status-metrics div + div {
    border-left: 0;
    border-top: 1px solid rgba(23, 35, 52, 0.12);
  }
}

/* Keep checkout content inside narrow mobile viewports after legacy overrides. */
@media (min-width: 100000px) and (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar,
  .brand,
  .nav,
  .rental-checkout,
  .checkout-layout,
  .checkout-main,
  .checkout-heading > *,
  .checkout-product,
  .checkout-product-copy,
  .checkout-section,
  .payment-task-panel,
  .pay-provider-list,
  .pay-provider {
    min-width: 0;
    max-width: 100%;
  }

  .topbar {
    width: 100%;
    padding: 12px 14px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .rental-checkout {
    width: calc(100% - 28px);
  }

  .checkout-product,
  .checkout-section,
  .payment-task-panel {
    width: calc(100vw - 68px);
  }

  .checkout-layout,
  .product-facts,
  .order-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-product-copy h2,
  .checkout-product-copy p,
  .payment-task-head h2,
  .payment-task-head p,
  .pay-provider span,
  .pay-provider strong {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .pay-provider {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
  }

  .credit-provider-reserve > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin order detail follows the customer order workspace hierarchy. */
.manage-main .admin-order-detail {
  width: min(1240px, calc(100% - 72px));
  max-width: none;
  margin: 0 auto;
  padding: 44px 0 64px;
}

.admin-detail-heading h1 {
  margin: 8px 0 10px;
  color: #102032;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-detail-heading .order-status-chip .inline-link {
  color: #136f6b;
}

.admin-detail-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.admin-order-product {
  min-height: 250px;
}

.admin-order-product img {
  width: 190px;
}

.admin-task-panel {
  top: 92px;
}

.admin-task-panel-body {
  padding: 22px 24px 24px;
}

.admin-task-panel-body .admin-task-form {
  gap: 14px;
}

.admin-task-panel-body .admin-task-form label,
.stacked-mini-form label {
  display: grid;
  gap: 7px;
  color: #5f7081;
  font-size: 13px;
  font-weight: 850;
}

.admin-task-panel-body .admin-task-form input,
.admin-task-panel-body .admin-task-form select,
.admin-detail-service-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d8e3e7;
  border-radius: 6px;
  background: #fbfcfd;
  color: #102032;
  font: inherit;
}

.admin-task-panel-body .button.wide {
  width: 100%;
  margin-top: 2px;
}

.admin-task-panel-body .admin-secondary-action {
  margin: 14px 0 0;
  text-align: center;
}

.task-form-note {
  color: #758494;
  line-height: 1.55;
}

.deposit-task-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e0e8eb;
  border-radius: 7px;
  background: #e0e8eb;
}

.deposit-task-summary div {
  padding: 15px;
  background: #f8fafb;
}

.deposit-task-summary span,
.deposit-task-summary strong {
  display: block;
}

.deposit-task-summary span {
  color: #748393;
  font-size: 12px;
  font-weight: 800;
}

.deposit-task-summary strong {
  margin-top: 6px;
  color: #17283c;
  font-size: 20px;
}

.task-complete-note {
  padding: 18px;
  border-left: 3px solid #2f817b;
  background: #f2f8f7;
}

.task-complete-note p {
  margin-bottom: 0;
}

.admin-detail-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 18px;
  padding-top: 28px;
  border-top: 1px solid #dbe5e9;
}

.admin-detail-section-head span,
.admin-detail-service-grid article > span {
  color: #69798a;
  font-size: 12px;
  font-weight: 900;
}

.admin-detail-section-head h2,
.admin-detail-service-grid h2 {
  margin: 6px 0 0;
  color: #102032;
  font-size: 22px;
  letter-spacing: 0;
}

.admin-detail-section-head small {
  color: #748393;
}

.admin-detail-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-detail-service-grid article {
  min-width: 0;
  min-height: 210px;
  padding: 22px;
  border: 1px solid #dbe5e9;
  border-radius: 8px;
  background: #ffffff;
}

.admin-detail-service-grid article p {
  color: #596a7b;
  line-height: 1.65;
}

.admin-detail-service-grid .deposit-record-card,
.admin-detail-service-grid .rental-refund-card {
  min-height: 250px;
}

.refund-record {
  display: grid;
  gap: 5px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5ecef;
}

.refund-record strong {
  color: #203146;
}

.refund-record small {
  color: #778696;
  line-height: 1.55;
}

.admin-order-detail .admin-log-drawer {
  margin-top: 18px;
  border-radius: 8px;
}

@media (min-width: 100000px) and (max-width: 1180px) {
  .manage-main .admin-order-detail {
    width: min(100% - 40px, 1240px);
  }

  .admin-detail-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

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

@media (min-width: 100000px) and (max-width: 820px) {
  .manage-main .admin-order-detail {
    width: calc(100% - 28px);
    padding: 28px 0 48px;
  }

  .admin-detail-heading,
  .admin-detail-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-detail-heading h1 {
    font-size: 32px;
  }

  .admin-detail-layout,
  .admin-detail-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-order-detail .checkout-product,
  .admin-order-detail .checkout-section,
  .admin-order-detail .payment-task-panel {
    width: 100%;
  }

  .admin-order-detail .checkout-main {
    display: contents;
  }

  .admin-order-product {
    order: 1;
  }

  .admin-task-panel {
    position: static;
    order: 2;
  }

  .admin-finance-summary {
    order: 3;
  }

  .admin-order-detail .delivery-summary {
    order: 4;
  }
}

/* Full carrier tracking on customer and operations order pages. */
.order-service-grid article.logistics-timeline-card,
.admin-detail-service-grid article.logistics-timeline-card {
  grid-column: span 2;
  min-height: 0;
}

.shipment-timeline {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e1e9ec;
}

.shipment-timeline:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.shipment-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.shipment-summary > div {
  min-width: 0;
}

.shipment-summary > div > span,
.shipment-summary strong,
.shipment-summary small {
  display: block;
}

.shipment-summary > div > span {
  color: #68798a;
  font-size: 12px;
  font-weight: 850;
}

.shipment-summary strong {
  margin-top: 5px;
  color: #17283c;
  font-size: 18px;
}

.shipment-summary small {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #758494;
}

.shipment-state {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #cfe0df;
  border-radius: 999px;
  background: #eef7f5;
  color: #176e69;
  font-size: 12px;
  font-weight: 900;
}

.shipment-latest {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid #207a75;
  background: #f2f8f7;
}

.shipment-latest > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.shipment-latest span {
  color: #207a75;
  font-size: 12px;
  font-weight: 900;
}

.shipment-latest strong {
  color: #17283c;
  font-size: 17px;
}

.shipment-latest time {
  margin-left: auto;
  color: #6d7d8d;
  font-size: 12px;
  font-weight: 750;
}

.shipment-latest p {
  margin: 9px 0 0 !important;
  color: #35475a !important;
  line-height: 1.65;
}

.shipment-trace-details {
  margin-top: 12px;
  border-top: 1px solid #e3eaed;
}

.shipment-trace-details summary {
  padding: 14px 0;
  color: #24374b;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.shipment-trace-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #e3eaed;
}

.shipment-trace-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid #edf1f3;
}

.shipment-trace-list li:first-child {
  border-top: 0;
}

.shipment-trace-list time {
  color: #7a8896;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.shipment-trace-list strong {
  display: block;
  color: #2b3e52;
  font-size: 14px;
}

.shipment-trace-list li.latest strong {
  color: #176e69;
}

.shipment-trace-list p {
  margin: 5px 0 0 !important;
  color: #5d6e7f !important;
  font-size: 13px;
  line-height: 1.65 !important;
}

.shipment-empty {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 3px solid #b8c5cb;
  background: #f7f9fa;
}

.shipment-empty strong {
  color: #304356;
}

.shipment-empty p,
.shipment-sync-time {
  margin: 6px 0 0 !important;
  color: #778696 !important;
  font-size: 12px;
}

.logistics-timeline-card > form {
  margin-top: 16px;
}

@media (min-width: 100000px) and (max-width: 820px) {
  .order-service-grid article.logistics-timeline-card,
  .admin-detail-service-grid article.logistics-timeline-card {
    grid-column: span 1;
  }

  .shipment-summary,
  .shipment-latest > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipment-latest time {
    margin-left: 0;
  }

  .shipment-trace-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Product detail refresh: gallery-led page with fixed purchase actions. */
.product-detail-page {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 42px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  align-items: start;
}

.product-gallery,
.product-summary,
.product-info-section,
.order-card {
  border: 1px solid #dbe7ea;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 31, 47, 0.06);
}

.product-gallery {
  overflow: hidden;
  border-radius: 10px;
}

.gallery-main {
  aspect-ratio: 4 / 3;
  padding: 18px;
  background: #f7f9fa;
}

.gallery-main img {
  object-fit: cover;
}

.gallery-main img.show-contain {
  padding: 12px;
  object-fit: contain;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
  border-top: 1px solid #e5ecef;
}

.gallery-thumb {
  appearance: none;
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #dce7ea;
  border-radius: 6px;
  background: #f6f9fa;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gallery-thumb:hover {
  border-color: #78aaa7;
  transform: translateY(-1px);
}

.gallery-thumb.active {
  border-color: #207a75;
  box-shadow: 0 0 0 2px rgba(32, 122, 117, 0.14);
}

.gallery-thumb:focus-visible {
  outline: 3px solid rgba(32, 122, 117, 0.25);
  outline-offset: 2px;
}

.gallery-note {
  display: flex;
  align-items: center;
  min-width: 260px;
  color: #6f7f8f;
  font-size: 13px;
  font-weight: 750;
}

.product-summary {
  min-height: 100%;
  padding: clamp(26px, 3.2vw, 42px);
  border-radius: 10px;
}

.product-summary h1 {
  max-width: 16em;
  margin: 10px 0 16px;
  color: #102033;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.product-summary .lead {
  max-width: 760px;
  color: #526476;
  font-size: 16px;
  line-height: 1.72;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.commerce-price-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 8px;
  background: linear-gradient(110deg, #f3f8f7 0%, #edf5f4 100%);
}

.primary-price span {
  display: block;
  margin-bottom: 4px;
  color: #65788a;
  font-size: 12px;
  font-weight: 900;
}

.primary-price strong {
  color: #b54b32;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1;
}

.primary-price small {
  margin-right: 3px;
  font-size: 20px;
}

.commerce-price-panel p {
  margin: 0 0 4px;
  color: #4f6b69;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.product-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid #e2eaed;
  border-bottom: 1px solid #e2eaed;
}

.product-facts > div {
  min-height: 88px;
  padding: 16px 18px;
  border-right: 1px solid #e2eaed;
  background: transparent;
}

.product-facts > div:last-child {
  border-right: 0;
}

.product-facts span {
  color: #65788a;
  font-size: 12px;
  font-weight: 900;
}

.product-facts strong {
  color: #102033;
  font-size: clamp(18px, 1.7vw, 24px);
}

.support-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.support-list span {
  padding: 8px 12px;
  border: 1px solid #d5e6e4;
  border-radius: 999px;
  background: #f1f8f7;
  color: #1f6f6a;
  font-size: 13px;
  font-weight: 900;
}

.product-info-stack {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.product-overview,
.product-info-section,
.order-card {
  scroll-margin-top: 92px;
}

.product-info-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 10px;
}

.product-info-section h2,
.form-title h2 {
  margin: 4px 0 0;
  color: #102033;
  font-size: 28px;
  line-height: 1.15;
}

.product-info-section p,
.product-overview p {
  margin: 0;
  color: #44576a;
  font-size: 16px;
  line-height: 1.8;
}

.info-section-heading {
  position: sticky;
  top: 86px;
}

.info-section-heading > p:last-child {
  margin-top: 14px;
  color: #738293;
  font-size: 13px;
  line-height: 1.65;
}

.product-info-section.muted-section {
  background: #f6faf9;
}

.info-subsection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.info-subsection-list {
  display: grid;
  gap: 16px;
}

.info-subsection {
  position: relative;
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid #dfe8eb;
  border-radius: 8px;
  background: #fff;
}

.info-subsection h3 {
  margin: 0 0 16px;
  padding-right: 42px;
  color: #102033;
  font-size: 19px;
  line-height: 1.3;
}

.info-subsection-index {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #2b7c76;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.admin-preserved-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.overview-copy {
  padding: 0;
  border: 0;
}

.overview-copy h3 {
  margin-bottom: 12px;
}

.order-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 10px;
}

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

.form-hint {
  margin: 4px 0 18px;
  color: #6c7e90;
  font-weight: 750;
}

.product-action-spacer {
  height: 112px;
}

.product-action-bar {
  position: fixed;
  right: 24px;
  bottom: 18px;
  left: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(32, 122, 117, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 46px rgba(15, 32, 47, 0.16);
  backdrop-filter: blur(14px);
}

.product-action-bar strong,
.product-action-bar span {
  display: block;
}

.product-action-bar strong {
  color: #102033;
  font-size: 24px;
  line-height: 1;
}

.product-action-bar span {
  margin-top: 5px;
  color: #647688;
  font-size: 13px;
  font-weight: 800;
}

.product-action-bar .button {
  white-space: nowrap;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.gallery-preview-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e5e8;
  border-radius: 8px;
  background: #fff;
}

.gallery-preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-preview-grid figcaption {
  padding: 8px 10px;
  color: #647789;
  font-size: 12px;
  font-weight: 800;
}

@media (min-width: 100000px) and (max-width: 920px) {
  .product-detail-page {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

  .product-hero,
  .product-info-section,
  .spec-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-summary {
    padding: 26px;
  }

  .product-summary h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .commerce-price-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .commerce-price-panel p {
    text-align: left;
  }

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

  .product-facts > div {
    border-right: 0;
    border-bottom: 1px solid #e2eaed;
  }

  .product-facts > div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .product-action-bar {
    right: 12px;
    bottom: 10px;
    left: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .product-action-bar .button {
    width: 100%;
  }
}

@media (min-width: 100000px) and (max-width: 560px) {
  .gallery-main {
    padding: 10px;
  }

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

  .product-facts > div,
  .product-facts > div:nth-last-child(-n + 3) {
    min-height: 72px;
    border-bottom: 1px solid #e2eaed;
  }

  .product-facts > div:last-child {
    border-bottom: 0;
  }
}

/* Marketplace product detail: selected Product Design direction 1. */
.product-action-bar,
.product-action-spacer {
  display: none;
}

.product-detail-page {
  width: min(1440px, calc(100% - 56px));
  padding: 30px 0 44px;
}

.product-hero {
  grid-template-columns: minmax(480px, 1fr) minmax(520px, 1fr);
  gap: 36px;
}

.product-gallery,
.product-summary {
  border: 0;
  box-shadow: none;
}

.product-gallery {
  border-radius: 8px;
  background: #fff;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1.28 / 1;
  padding: 22px;
  border: 1px solid #dbe5e9;
  border-radius: 8px;
  background: #fff;
}

.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 32, 51, 0.74);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.gallery-count b {
  font-weight: 800;
}

.gallery-strip {
  gap: 12px;
  padding: 14px 4px 0;
  border-top: 0;
}

.gallery-thumb {
  flex-basis: 104px;
  width: 104px;
  height: 82px;
  border-radius: 7px;
  background: #fff;
}

.gallery-thumb.active {
  border-color: #14766f;
  box-shadow: 0 0 0 2px rgba(20, 118, 111, 0.12);
}

.product-summary {
  padding: 10px 0 0;
  border-radius: 0;
}

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

.product-kicker span {
  padding: 6px 10px;
  border-radius: 5px;
  background: #14766f;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.product-kicker small {
  color: #647588;
  font-size: 14px;
  font-weight: 750;
}

.product-summary h1 {
  max-width: none;
  margin: 17px 0 12px;
  font-size: clamp(30px, 2.55vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.product-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-tag-row span {
  padding: 5px 9px;
  border: 1px solid #b9d7d4;
  border-radius: 4px;
  background: #f5faf9;
  color: #176d67;
  font-size: 12px;
  font-weight: 800;
}

.product-summary .lead {
  margin: 0;
  color: #596b7d;
  font-size: 15px;
  line-height: 1.72;
  -webkit-line-clamp: 3;
}

.commerce-price-panel {
  align-items: center;
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid #f0d9c3;
  border-radius: 7px;
  background: #fff8f1;
}

.primary-price span {
  color: #b75324;
}

.primary-price strong {
  color: #db5411;
  font-size: clamp(38px, 3.3vw, 52px);
}

.primary-price strong em {
  margin-left: 5px;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.price-note {
  display: grid;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid #efd7c3;
  color: #7b6757;
  text-align: left;
}

.price-note span {
  font-size: 14px;
  font-weight: 850;
}

.price-note small {
  font-size: 12px;
}

.product-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 0;
}

.product-facts > div {
  min-height: 94px;
  padding: 14px 16px;
  border-right: 1px solid #e1e8eb;
  border-bottom: 0;
}

.product-facts span,
.product-facts small,
.product-facts strong {
  display: block;
}

.product-facts strong {
  margin-top: 5px;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.2;
}

.product-facts small {
  margin-top: 4px;
  color: #7a8997;
  font-size: 12px;
  font-weight: 700;
}

.commerce-assurances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #d8e6e5;
  border-radius: 7px;
  background: #d8e6e5;
}

.commerce-assurances div {
  min-height: 62px;
  padding: 12px 13px;
  background: #f2f8f7;
}

.commerce-assurances strong,
.commerce-assurances span {
  display: block;
}

.commerce-assurances strong {
  color: #176d67;
  font-size: 13px;
}

.commerce-assurances span {
  margin-top: 3px;
  color: #687b89;
  font-size: 11px;
}

.deposit-tip {
  margin: 12px 0;
  padding: 10px 13px;
  border-radius: 5px;
  background: #edf5fb;
  color: #356a9a;
  font-size: 13px;
  font-weight: 750;
}

.hero-rental-choice {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.hero-rental-choice label {
  color: #26384a;
  font-size: 15px;
  font-weight: 900;
}

.hero-rental-choice select {
  min-height: 46px;
  border-color: #cbd9de;
  background: #fff;
}

.product-primary-cta {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  border-color: #102b51;
  border-radius: 6px;
  background: #102b51;
  font-size: 19px;
}

.product-primary-cta:hover {
  border-color: #0a213f;
  background: #0a213f;
}

.product-primary-cta.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.checkout-note {
  margin: 10px 0 0;
  color: #6a7a89;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.product-section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 36px;
  margin-top: 34px;
  padding: 0 18px;
  border-bottom: 1px solid #dbe4e8;
  background: rgba(237, 242, 245, 0.96);
  backdrop-filter: blur(12px);
}

.product-section-nav a {
  position: relative;
  padding: 18px 4px 16px;
  color: #33485b;
  font-weight: 900;
}

.product-section-nav a.active,
.product-section-nav a:hover {
  color: #14766f;
}

.product-section-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #14766f;
  content: "";
}

.product-overview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  margin-top: 22px;
  padding: 30px 34px;
  border: 1px solid #dbe7ea;
  border-radius: 8px;
  background: #fff;
}

.product-overview h2 {
  margin: 4px 0 0;
  color: #102033;
}

.product-overview > p {
  margin: 0;
  color: #4b5f70;
  line-height: 1.8;
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .product-detail-page {
    width: min(100% - 32px, 820px);
  }

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

  .product-summary {
    padding-top: 0;
  }
}

@media (min-width: 100000px) and (max-width: 700px) {
  .product-detail-page {
    width: min(100% - 22px, 620px);
    padding-top: 18px;
  }

  .gallery-main {
    padding: 10px;
  }

  .gallery-thumb {
    flex-basis: 82px;
    width: 82px;
    height: 64px;
  }

  .product-summary h1 {
    font-size: 30px;
  }

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

  .product-facts > div,
  .product-facts > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #e2eaed;
  }

  .product-facts > div:nth-child(odd) {
    border-right: 1px solid #e2eaed;
  }

  .product-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .product-section-nav {
    gap: 22px;
    overflow-x: auto;
    padding: 0 4px;
  }

  .product-section-nav a {
    flex: 0 0 auto;
  }

  .product-overview {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .product-info-section,
  .info-subsection-grid {
    grid-template-columns: 1fr;
  }

  .product-info-section {
    gap: 18px;
    padding: 24px;
  }

  .info-section-heading {
    position: static;
  }

  .info-subsection {
    padding: 22px 20px;
  }
}

/* Guided order confirmation and payment: selected Product Design direction 2. */
.rental-checkout {
  width: min(1440px, calc(100% - 56px));
  padding: 22px 0 52px;
}

.checkout-created-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 22px;
  border: 1px solid #d8e6e5;
  border-radius: 7px;
  background: #f5faf9;
  color: #24374a;
}

.checkout-created-banner strong {
  color: #14766f;
  font-size: 17px;
}

.checkout-created-banner span {
  font-size: 15px;
  font-weight: 750;
}

.checkout-created-banner small {
  margin-left: auto;
  color: #6e7f8f;
  font-size: 12px;
  font-weight: 750;
}

.checkout-stagebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
  padding: 0 38px;
  list-style: none;
}

.checkout-stagebar li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.checkout-stagebar li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  right: 24px;
  left: 155px;
  height: 2px;
  background: #d1dbe0;
  content: "";
}

.checkout-stagebar li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #cbd7dd;
  border-radius: 50%;
  background: #fff;
  color: #6e7f8f;
  font-weight: 900;
}

.checkout-stagebar li strong,
.checkout-stagebar li small {
  display: block;
}

.checkout-stagebar li strong {
  color: #213348;
  font-size: 15px;
}

.checkout-stagebar li small {
  margin-top: 2px;
  color: #748595;
  font-size: 12px;
}

.checkout-stagebar li.done > span {
  border-color: #14766f;
  background: #14766f;
  color: #fff;
}

.checkout-stagebar li.current > span {
  border-color: #102b51;
  background: #102b51;
  color: #fff;
}

.checkout-stagebar li.failed > span {
  border-color: #d46835;
  background: #fff6f1;
  color: #c95722;
}

.checkout-stagebar li.locked {
  opacity: 0.58;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 22px;
}

.checkout-main {
  gap: 12px;
}

.checkout-main .cost-summary {
  display: none;
}

.checkout-order-meta {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 22px;
  padding: 18px 20px;
}

.checkout-order-meta div {
  min-width: 0;
}

.checkout-order-meta span,
.checkout-order-meta strong {
  display: block;
}

.checkout-order-meta span {
  margin-bottom: 6px;
  color: #748494;
  font-size: 12px;
  font-weight: 800;
}

.checkout-order-meta strong {
  overflow-wrap: anywhere;
  color: #203247;
  font-size: 14px;
}

.checkout-order-meta .checkout-state-text {
  color: #d25620;
}

.checkout-product {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
}

.checkout-product img {
  width: 230px;
  height: 200px;
  padding: 8px;
  border: 1px solid #e0e8eb;
  object-fit: contain;
  background: #fff;
}

.checkout-product-copy {
  align-self: center;
}

.checkout-product-copy h2 {
  margin: 8px 0;
  font-size: 24px;
}

.checkout-product-copy > p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 700px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.checkout-product .product-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.checkout-product .product-facts div {
  min-height: auto;
  padding: 12px 16px 0 0;
  border-right: 1px solid #e2eaed;
  border-bottom: 0;
}

.checkout-product .product-facts div:last-child {
  border-right: 0;
}

.checkout-product .product-facts dd {
  font-size: 18px;
}

.rental-period-summary,
.delivery-summary,
.shipping-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.summary-row-label {
  padding-right: 18px;
  border-right: 1px solid #e1e8eb;
  color: #203247;
}

.summary-row-label strong {
  font-size: 15px;
}

.summary-row-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: #40566b;
  font-weight: 750;
}

.summary-row-content b {
  color: #82909d;
}

.summary-row-content small {
  padding: 4px 8px;
  border-radius: 4px;
  background: #eef5f4;
  color: #1e706b;
  font-weight: 800;
}

.delivery-summary .delivery-lines p,
.shipping-summary p {
  margin: 4px 0 0;
  color: #6b7c8b;
  line-height: 1.55;
}

.payment-task-panel {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 38, 58, 0.08);
}

.payment-task-head {
  order: 1;
  padding: 24px 26px;
  background: #102b51;
}

.payment-task-head h2 {
  margin-bottom: 8px;
  font-size: 23px;
}

.payment-task-head > strong {
  margin-bottom: 8px;
  color: #ff6a21;
  font-size: 42px;
}

.payment-cost-summary {
  order: 2;
  padding: 16px 20px 14px;
}

.payment-cost-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  color: #526679;
}

.payment-cost-summary > div + div {
  border-top: 1px solid #e4ebee;
}

.payment-cost-summary strong {
  color: #203247;
}

.payment-cost-summary .payment-cost-total {
  margin-top: 3px;
  color: #203247;
  font-weight: 900;
}

.payment-cost-summary .payment-cost-total strong {
  color: #e95b18;
  font-size: 24px;
}

.payment-cost-summary > p {
  margin: 2px 0 10px;
  color: #6f8090;
  font-size: 12px;
  line-height: 1.55;
}

.payment-cost-summary .future-rent-note {
  padding: 10px 12px;
  border: 1px solid #d5e3f1;
  border-radius: 6px;
  background: #eef5fb;
  color: #416987;
  font-size: 12px;
}

.payment-block-title {
  order: 3;
  padding: 4px 20px 0;
}

.pay-provider-list {
  order: 4;
  padding: 10px 20px 14px;
}

.pay-provider {
  min-height: 56px;
  font-size: 17px;
}

.pay-provider.alipay {
  background: #f15b12;
  box-shadow: none;
}

.pay-provider.alipay:hover {
  background: #d94d08;
}

.pay-provider.wechat {
  min-height: 44px;
  font-size: 13px;
}

.payment-steps {
  order: 6;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 20px 14px;
  border-top: 1px solid #e4ebee;
}

.payment-steps li {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 5px;
  min-height: 82px;
  text-align: center;
}

.payment-steps li:not(:last-child)::after {
  top: 14px;
  right: -30%;
  bottom: auto;
  left: 63%;
  width: auto;
  height: 1px;
}

.payment-steps li > div {
  min-width: 0;
}

.payment-steps li strong {
  margin-top: 0;
  font-size: 13px;
}

.payment-steps li small {
  font-size: 11px;
}

.credit-provider-reserve {
  order: 5;
  padding: 14px 20px;
}

.payment-secondary-actions {
  order: 7;
  justify-content: space-between;
  padding: 14px 20px 18px;
}

.checkout-status-line {
  display: none;
}

@media (min-width: 100000px) and (max-width: 1080px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .checkout-stagebar li:not(:last-child)::after {
    left: 135px;
  }
}

@media (min-width: 100000px) and (max-width: 820px) {
  .rental-checkout {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .checkout-created-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .checkout-created-banner small {
    margin-left: 0;
  }

  .checkout-stagebar {
    gap: 6px;
    padding: 0;
  }

  .checkout-stagebar li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
  }

  .checkout-stagebar li > span {
    width: 30px;
    height: 30px;
  }

  .checkout-stagebar li:not(:last-child)::after {
    display: none;
  }

  .checkout-stagebar li strong {
    font-size: 12px;
  }

  .checkout-stagebar li small {
    font-size: 10px;
  }

  .checkout-layout,
  .checkout-order-meta {
    grid-template-columns: 1fr;
  }

  .checkout-main {
    order: 2;
    display: grid;
  }

  .checkout-order-meta {
    order: 1;
    gap: 12px;
  }

  .checkout-product {
    order: 2;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 18px;
  }

  .checkout-product img {
    width: 100%;
    height: 230px;
  }

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

  .payment-task-panel {
    order: 1;
    width: 100%;
  }

  .rental-period-summary {
    order: 4;
  }

  .delivery-summary {
    order: 5;
  }

  .shipping-summary {
    order: 6;
  }

  .rental-period-summary,
  .delivery-summary,
  .shipping-summary {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .summary-row-label {
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid #e1e8eb;
  }
}

/* Persistent marketplace purchase rail and compact customer order workspace. */
.product-action-spacer {
  display: block;
  height: 104px;
}

.product-action-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px auto minmax(220px, 260px);
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-color: rgba(25, 78, 86, 0.2);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(calc(100% + 34px));
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.product-action-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-action-price {
  min-width: 0;
}

.product-action-price strong {
  color: #d95518;
  font-size: 25px;
}

.product-action-period {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #35495b;
  font-size: 13px;
  font-weight: 900;
}

.product-action-period span {
  margin: 0;
  color: #35495b;
  font-size: 13px;
}

.product-action-period select {
  min-height: 44px;
  border-color: #ccd9de;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.product-action-rules {
  align-self: center;
  color: #27596a;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.product-action-rules:hover {
  color: #14766f;
}

.product-action-submit {
  grid-column: -2 / -1;
  min-height: 48px;
  border-color: #102b51;
  background: #102b51;
  font-size: 16px;
  white-space: nowrap;
}

.product-action-submit:hover {
  border-color: #0a213f;
  background: #0a213f;
}

.product-action-submit.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.rental-checkout {
  width: min(1280px, calc(100% - 48px));
}

.checkout-stagebar {
  margin: 16px 0 20px;
  padding: 16px 26px;
  border: 1px solid #dde6e9;
  border-radius: 8px;
  background: #fff;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}

.payment-task-panel {
  position: sticky;
  top: 18px;
}

.order-service-center {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dbe5e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 38, 58, 0.055);
}

.order-service-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #e2e9ec;
}

.order-service-head span {
  color: #14766f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.order-service-head h2 {
  margin: 6px 0 0;
  color: #13263a;
  font-size: 24px;
}

.order-service-head p {
  max-width: 560px;
  margin: 0;
  color: #6b7c8b;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.order-logistics-panel {
  padding: 22px 26px 24px;
  border-bottom: 1px solid #e2e9ec;
}

.service-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.service-card-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: #edf6f5;
  color: #14766f;
  font-size: 19px;
}

.service-card-heading small,
.service-card-heading h3 {
  display: block;
}

.service-card-heading small {
  color: #758696;
  font-size: 11px;
  font-weight: 850;
}

.service-card-heading h3 {
  margin: 3px 0 0;
  color: #172a3d;
  font-size: 18px;
}

.order-service-grid.order-service-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  background: #f6f8f9;
}

.order-service-grid.order-service-grid-compact .order-service-card {
  min-height: 0;
  padding: 20px;
  border: 1px solid #dde6e9;
  border-radius: 8px;
  background: #fff;
}

.service-card-body {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e7edef;
}

.service-card-body p {
  margin: 0;
  color: #43576a;
  font-size: 13px;
  line-height: 1.65;
}

.service-card-body p + p,
.service-card-body form {
  margin-top: 10px;
}

.order-logistics-panel .shipment-empty {
  margin-top: 18px;
  padding: 14px 16px;
}

@media (min-width: 100000px) and (max-width: 1080px) {
  .product-action-bar {
    grid-template-columns: minmax(220px, 1fr) 210px minmax(210px, 240px);
  }

  .product-action-rules {
    display: none;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (min-width: 100000px) and (max-width: 820px) {
  .product-action-spacer {
    height: 92px;
  }

  .product-action-bar {
    right: 10px;
    bottom: 8px;
    left: 10px;
    grid-template-columns: 150px minmax(0, 1fr);
    width: calc(100% - 20px);
    padding: 10px;
  }

  .product-action-price,
  .product-action-rules {
    display: none;
  }

  .product-action-period {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-action-period > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .product-action-submit {
    grid-column: auto;
    min-height: 46px;
    font-size: 14px;
  }

  .payment-task-panel {
    position: static;
  }

  .order-service-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
  }

  .order-service-head p {
    text-align: left;
  }

  .order-logistics-panel {
    padding: 20px;
  }

  .order-service-grid.order-service-grid-compact {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

/* WeChat Pay Native checkout. */
.wechat-checkout-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 56px auto;
}

.wechat-checkout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: center;
  padding: 48px;
  border: 1px solid #d9e5e3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(16, 32, 50, 0.1);
}

.wechat-checkout-copy > span {
  color: #078b5c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wechat-checkout-copy h1 {
  margin: 10px 0 14px;
  color: #102032;
  font-size: 38px;
}

.wechat-checkout-copy > p {
  color: #627586;
  line-height: 1.75;
}

.wechat-checkout-copy dl {
  margin: 28px 0;
  border-top: 1px solid #e2e9eb;
}

/* Customer order detail: delivery-progress center (Product Design option 1). */
.customer-order-detail-v3 {
  background: #f4f7f8;
}

.customer-order-detail-v3 .rental-checkout {
  width: min(1440px, calc(100% - 48px));
  padding: 20px 0 48px;
}

.customer-order-detail-v3 .account-nav {
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.order-status-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 330px);
  gap: 30px;
  align-items: center;
  min-height: 132px;
  padding: 24px 30px;
  border: 1px solid #d6e6e5;
  border-radius: 10px 10px 0 0;
  background: #f5faf9;
}

.order-status-primary {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.order-status-icon {
  display: grid;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background: #14766f;
  color: #fff;
  font-size: 29px;
}

.order-status-kicker {
  display: block;
  margin-bottom: 3px;
  color: #14766f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.order-status-primary h1 {
  margin: 0;
  color: #13273d;
  font-size: clamp(26px, 2.25vw, 36px);
  line-height: 1.2;
}

.order-status-primary p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #526779;
  font-size: 14px;
  line-height: 1.6;
}

.order-hero-meta {
  display: grid;
  gap: 10px;
  min-width: 280px;
  padding: 8px 28px;
  border-left: 1px solid #d5e1e3;
  color: #748595;
  font-size: 12px;
}

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

.order-hero-meta strong {
  margin-top: 3px;
  color: #31475b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.order-hero-actions {
  position: relative;
  display: grid;
  gap: 9px;
  justify-items: stretch;
}

.order-primary-action,
.order-payment-picker > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid #14766f;
  border-radius: 7px;
  background: #14766f;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.order-primary-action:hover,
.order-payment-picker > summary:hover {
  border-color: #0f625c;
  background: #0f625c;
  color: #fff;
}

.order-payment-picker {
  position: relative;
}

.order-payment-picker > summary {
  list-style: none;
}

.order-payment-picker > summary::-webkit-details-marker {
  display: none;
}

.order-payment-picker[open] > summary i {
  transform: rotate(180deg);
}

.order-payment-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d6e1e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 38, 58, 0.16);
}

.order-payment-menu > strong {
  color: #53697c;
  font-size: 12px;
}

.order-pay-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #ccd9de;
  border-radius: 6px;
  background: #fff;
  color: #203348;
  font-weight: 850;
  cursor: pointer;
}

.order-pay-option.alipay {
  border-color: #e15c1c;
  background: #e15c1c;
  color: #fff;
}

.order-pay-option.wechat:not(:disabled) {
  border-color: #13805c;
  color: #137052;
}

.order-pay-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.order-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.order-hero-links form {
  margin: 0;
}

.order-hero-links .order-cancel-form {
  position: relative;
  z-index: 40;
}

.order-hero-links button,
.order-hero-links a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #376474;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.order-hero-links .danger-text {
  color: #b04b37;
}

.order-hero-links .order-hero-disabled {
  color: #8a98a4;
  font-size: 12px;
  font-weight: 750;
}

.order-hero-links .order-credit-action,
.order-hero-links .order-cancel-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #bfd8d5;
  border-radius: 7px;
  background: #fff;
  color: #1d625e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.order-hero-links .order-credit-action.alipay-credit {
  border-color: #b7d9d5;
  background: #eaf6f4;
  color: #126f68;
}

.order-hero-links .order-credit-action.wechat-credit {
  border-color: #d5dde2;
  background: #f4f7f8;
  color: #657786;
}

.order-hero-links .order-cancel-action {
  border-color: #e7bdb5;
  background: #fff8f6;
  color: #a54434;
}

.order-hero-links .order-credit-action:hover,
.order-hero-links .order-cancel-action:hover {
  filter: brightness(0.97);
}

.order-lifecycle {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 22px 30px 20px;
  border: 1px solid #dce5e8;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  list-style: none;
}

.order-lifecycle li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.order-lifecycle li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 20px;
  right: -50%;
  left: 50%;
  height: 2px;
  background: #dce4e8;
  content: "";
}

.order-lifecycle li.done:not(:last-child)::after {
  background: #14766f;
}

.order-lifecycle li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #cdd8de;
  border-radius: 50%;
  background: #fff;
  color: #7d8e9d;
  font-size: 17px;
}

.order-lifecycle li.done > span,
.order-lifecycle li.current > span {
  border-color: #14766f;
  background: #14766f;
  color: #fff;
}

.order-lifecycle li.current > span {
  box-shadow: 0 0 0 5px #e4f1ef;
}

.order-lifecycle li.upcoming {
  opacity: 0.62;
}

.order-lifecycle strong,
.order-lifecycle small {
  display: block;
}

.order-lifecycle strong {
  color: #22364a;
  font-size: 13px;
}

.order-lifecycle small {
  margin-top: 3px;
  color: #758696;
  font-size: 10px;
  line-height: 1.45;
}

.customer-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.customer-order-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.customer-order-product,
.customer-fulfillment,
.customer-order-summary,
.customer-extension-payment {
  overflow: hidden;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  background: #fff;
}

.customer-section-title {
  padding: 14px 18px;
  border-bottom: 1px solid #e1e8eb;
  color: #203348;
  font-size: 15px;
  font-weight: 900;
}

.customer-product-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 214px;
}

.customer-product-row > img {
  width: 230px;
  height: 214px;
  padding: 22px;
  border-right: 1px solid #e1e8eb;
  background: #fff;
  object-fit: contain;
}

.customer-product-row.no-image {
  grid-template-columns: 1fr;
}

.customer-product-copy {
  align-self: center;
  padding: 22px 28px;
}

.customer-product-copy > span {
  color: #14766f;
  font-size: 12px;
  font-weight: 900;
}

.customer-product-copy h2 {
  margin: 8px 0 20px;
  color: #13273d;
  font-size: 23px;
  line-height: 1.35;
}

.customer-product-copy dl {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(120px, 0.8fr);
  margin: 0;
  border-top: 1px solid #e4eaed;
}

.customer-product-copy dl > div {
  padding: 14px 16px 0 0;
}

.customer-product-copy dl > div + div {
  padding-left: 22px;
  border-left: 1px solid #e4eaed;
}

.customer-product-copy dt {
  margin-bottom: 5px;
  color: #748696;
  font-size: 11px;
  font-weight: 850;
}

.customer-product-copy dd {
  margin: 0;
  color: #263a4e;
  font-size: 14px;
  font-weight: 850;
}

.customer-product-copy dd small {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #edf5f4;
  color: #14766f;
}

.customer-logistics-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4eaed;
}

.customer-logistics-icon,
.customer-service-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #edf5f4;
  color: #14766f;
  font-size: 19px;
}

.customer-logistics-summary strong,
.customer-logistics-summary small {
  display: block;
}

.customer-logistics-summary strong {
  color: #24384b;
  font-size: 15px;
}

.customer-logistics-summary small {
  margin-top: 4px;
  color: #748696;
  font-size: 12px;
}

.customer-logistics-detail {
  padding: 0 20px;
}

.customer-logistics-detail > .muted {
  margin: 0;
  padding: 11px 0 16px 58px;
  color: #83919d;
  font-size: 12px;
}

.customer-logistics-detail .shipment-timeline {
  margin: 16px 0;
}

.customer-logistics-detail > form {
  padding: 0 0 14px 58px;
}

.customer-service-list {
  border-top: 1px solid #e1e8eb;
}

.customer-service-row {
  display: block;
  border-bottom: 1px solid #e4eaed;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

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

.customer-service-row > summary,
.customer-contact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 13px 20px;
  list-style: none;
  cursor: pointer;
}

.customer-service-row > summary::-webkit-details-marker {
  display: none;
}

.customer-service-row > summary:hover,
.customer-contact-row:hover {
  background: #f7fafb;
}

.customer-service-row > summary > span:nth-child(2) strong,
.customer-service-row > summary > span:nth-child(2) small,
.customer-contact-row > span:nth-child(2) strong,
.customer-contact-row > span:nth-child(2) small {
  display: block;
}

.customer-service-row > summary > span:nth-child(2) strong,
.customer-contact-row > span:nth-child(2) strong {
  color: #24384b;
  font-size: 14px;
}

.customer-service-row > summary > span:nth-child(2) small,
.customer-contact-row > span:nth-child(2) small {
  margin-top: 3px;
  color: #748696;
  font-size: 12px;
  line-height: 1.45;
}

.customer-service-row > summary > .bi-chevron-right,
.customer-contact-row > .bi-chevron-right {
  color: #758696;
  transition: transform 160ms ease;
}

.customer-service-row[open] > summary > .bi-chevron-right {
  transform: rotate(90deg);
}

.customer-service-content {
  padding: 0 20px 20px 76px;
  color: #465b6e;
  font-size: 13px;
}

.customer-service-content > p {
  margin: 0 0 8px;
}

.customer-service-content > .button {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  margin-top: 8px;
}

.customer-return-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.customer-return-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfdbe0;
  border-radius: 6px;
}

.customer-return-form .button {
  min-height: 44px;
}

.customer-order-summary {
  position: sticky;
  top: 18px;
}

.customer-order-summary > section {
  padding: 20px 22px;
  border-bottom: 1px solid #e1e8eb;
}

.customer-order-summary > section:last-child {
  border-bottom: 0;
}

.customer-order-summary h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  color: #203348;
  font-size: 16px;
}

.customer-order-costs {
  margin: 0;
}

.customer-order-costs > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  color: #33495c;
  font-size: 13px;
}

.customer-order-costs dt small {
  color: #7e8d99;
  font-weight: 500;
}

.customer-order-costs dd {
  margin: 0;
  color: #203348;
  font-weight: 900;
}

.customer-order-costs .customer-cost-state {
  padding-top: 0;
  color: #14766f;
  font-size: 11px;
  font-weight: 850;
}

.customer-order-costs .customer-cost-state.pending {
  color: #d15724;
}

.customer-current-due {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: end;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #e1e8eb;
}

.customer-current-due span {
  color: #203348;
  font-size: 14px;
  font-weight: 900;
}

.customer-current-due strong {
  color: #d95518;
  font-size: 26px;
}

.customer-current-due small {
  grid-column: 1 / -1;
  color: #748696;
  font-size: 11px;
}

.customer-address strong {
  color: #2a4054;
  font-size: 13px;
}

.customer-address p {
  margin: 7px 0;
  color: #516679;
  font-size: 12px;
  line-height: 1.65;
}

.customer-address small,
.customer-order-summary > section > small {
  color: #84929e;
  font-size: 11px;
}

.customer-period-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: #2f4558;
  font-size: 13px;
  font-weight: 850;
}

.customer-period-line i {
  color: #7d8d99;
}

.customer-extension-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.customer-extension-payment > div:first-child span,
.customer-extension-payment > div:first-child strong,
.customer-extension-payment > div:first-child small {
  display: block;
}

.customer-extension-payment > div:first-child strong {
  margin: 4px 0;
  color: #d95518;
  font-size: 22px;
}

.customer-extension-payment > div:last-child {
  display: flex;
  gap: 8px;
}

@media (min-width: 100000px) and (max-width: 1180px) {
  .order-status-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .order-hero-meta {
    display: none;
  }

  .customer-order-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (min-width: 100000px) and (max-width: 900px) {
  .customer-order-detail-v3 .rental-checkout {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .order-status-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .order-hero-meta {
    display: grid;
    min-width: 0;
    padding: 0;
    border-left: 0;
  }

  .order-lifecycle {
    grid-template-columns: repeat(7, 120px);
    overflow-x: auto;
    justify-content: start;
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .customer-order-summary {
    position: static;
    order: -1;
  }
}

@media (min-width: 100000px) and (max-width: 620px) {
  .order-status-primary {
    align-items: flex-start;
  }

  .order-status-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .order-status-primary h1 {
    font-size: 25px;
  }

  .customer-product-row {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 160px;
  }

  .customer-product-row > img {
    width: 118px;
    height: 160px;
    padding: 12px;
  }

  .customer-product-copy {
    padding: 18px;
  }

  .customer-product-copy h2 {
    margin-bottom: 12px;
    font-size: 18px;
  }

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

  .customer-product-copy dl > div {
    padding-top: 9px;
  }

  .customer-product-copy dl > div + div {
    display: none;
  }

  .customer-product-copy dd {
    font-size: 12px;
  }

  .customer-product-copy dd small {
    margin: 5px 0 0;
  }

  .customer-service-row > summary,
  .customer-contact-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .customer-logistics-icon,
  .customer-service-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .customer-service-content {
    padding-right: 14px;
    padding-left: 62px;
  }

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

.wechat-checkout-copy dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e9eb;
}

.wechat-checkout-copy dt {
  color: #71808d;
  font-size: 13px;
  font-weight: 800;
}

.wechat-checkout-copy dd {
  margin: 0;
  color: #263b4c;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wechat-checkout-copy .wechat-checkout-amount {
  color: #d74d21;
  font-size: 26px;
}

.wechat-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wechat-checkout-actions .button {
  min-height: 48px;
  padding: 0 22px;
}

.wechat-qr-panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: #f2f8f6;
  text-align: center;
}

.wechat-qr-panel img {
  width: 260px;
  height: 260px;
  border: 12px solid #ffffff;
  border-radius: 12px;
}

.wechat-qr-panel strong {
  margin-top: 18px;
  color: #087b53;
  font-size: 20px;
}

.wechat-qr-panel span {
  margin-top: 8px;
  color: #687a88;
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 100000px) and (max-width: 760px) {
  .wechat-checkout-shell {
    width: min(100% - 24px, 520px);
    margin: 20px auto;
  }

  .wechat-checkout-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }

  .wechat-checkout-copy h1 {
    font-size: 30px;
  }

  .wechat-qr-panel img {
    width: min(240px, 70vw);
    height: min(240px, 70vw);
  }
}

/* Final cascade guard: keep the manual-invoice workspace full width. */
.invoice-page-body .invoice-console-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

.invoice-page-body .invoice-request-form .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.invoice-page-body .invoice-request-form section {
  padding: 24px;
}

.invoice-page-body .invoice-ledger .empty-state.compact {
  min-height: 170px;
}

@media (min-width: 100000px) and (max-width: 1080px) {
  .invoice-page-body .invoice-request-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 100000px) and (max-width: 760px) {
  .invoice-page-body .invoice-request-form .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the selected task-first order workspace compact after global manager rules. */
.manage-main .section.admin-order-workspace {
  width: min(1480px, calc(100% - 48px));
  padding: 24px 0 56px;
}

@media (min-width: 100000px) and (max-width: 900px) {
  .manage-main .section.admin-order-workspace {
    width: calc(100% - 32px);
    padding: 20px 0 48px;
  }
}

/* Admin order detail — progressive-disclosure ledger, 2026-07-26 */
.manage-main .admin-order-workspace {
  width: min(1480px, calc(100% - 48px));
  padding-top: 22px;
}

.admin-order-title-row {
  justify-content: flex-start;
  gap: 20px;
}

.admin-back-link {
  order: 0;
}

.admin-order-workflow {
  margin-bottom: 14px;
  padding: 13px 24px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-order-workflow-step {
  gap: 4px;
}

.admin-order-workflow-step > span {
  width: 27px;
  height: 27px;
}

.admin-order-workflow-step:not(:last-child)::after {
  top: 13px;
  left: calc(50% + 15px);
  width: calc(100% - 30px);
}

.admin-order-workflow-step small {
  display: none;
}

.admin-current-task {
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 2.38fr);
  margin-bottom: 14px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-current-task-context {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 20px;
}

.admin-current-task-context img {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
}

.admin-current-task-context h2 {
  margin: 3px 0 6px;
  font-size: 19px;
}

.admin-current-task-action {
  padding: 17px 20px;
}

.admin-order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 14px;
}

.order-quantity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 22px;
  border: 1px solid #dbe5e7;
  border-radius: 12px;
  background: #f7faf9;
  overflow: hidden;
}

.order-quantity-summary > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid #dbe5e7;
}

.order-quantity-summary > div:last-child { border-right: 0; }
.order-quantity-summary span,
.order-quantity-summary small { color: #6b7a86; font-size: 13px; }
.order-quantity-summary strong { color: #102032; font-size: 20px; }

@media (min-width: 100000px) and (max-width: 720px) {
  .order-quantity-summary { grid-template-columns: 1fr; }
  .order-quantity-summary > div { border-right: 0; border-bottom: 1px solid #dbe5e7; }
  .order-quantity-summary > div:last-child { border-bottom: 0; }
}

.admin-order-tabs-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--manage-line);
  border-radius: 10px;
  background: #ffffff;
}

.admin-assigned-assets {
  display: grid;
  gap: 5px;
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--manage-line);
  border-radius: 8px;
  background: #f7faf9;
}

.admin-assigned-assets span { color: #667887; font-size: 12px; }
.admin-assigned-assets strong { color: #102032; font-size: 13px; line-height: 1.45; }

.admin-order-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 0 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--manage-line);
  scrollbar-width: none;
}

.admin-order-tabs::-webkit-scrollbar {
  display: none;
}

.admin-order-tabs button {
  position: relative;
  flex: none;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #657586;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
}

.admin-order-tabs button::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: transparent;
  content: "";
}

.admin-order-tabs button:hover {
  color: var(--manage-navy);
}

.admin-order-tabs button[aria-selected="true"] {
  color: var(--manage-teal);
}

.admin-order-tabs button[aria-selected="true"]::after {
  background: var(--manage-teal);
}

.admin-order-tab-panel {
  min-height: 530px;
  padding: 8px 26px 26px;
}

.admin-order-tab-panel[hidden] {
  display: none !important;
}

.admin-order-ledger-section {
  padding: 22px 0;
  border-bottom: 1px solid #e5ecef;
}

.admin-order-ledger-section:last-child {
  border-bottom: 0;
}

.admin-order-ledger-section header,
.admin-service-record-grid > section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-order-ledger-section h2,
.admin-service-record-grid h2 {
  margin: 0;
  color: var(--manage-navy);
  font-size: 17px;
}

.admin-order-ledger-section header :is(a, span),
.admin-service-record-grid header span {
  color: var(--manage-teal);
  font-size: 11px;
  font-weight: 800;
}

.admin-order-ledger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 38px;
  row-gap: 0;
  margin: 0;
}

.admin-order-ledger-list.finance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-order-ledger-list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-width: 0;
  padding: 8px 0;
}

.admin-order-ledger-list > div.wide {
  grid-column: 1 / -1;
}

.admin-order-ledger-list dt {
  color: #748494;
  font-size: 12px;
}

.admin-order-ledger-list dd {
  min-width: 0;
  margin: 0;
  color: #25394d;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-order-tab-panel .admin-logistics-workspace,
.admin-finance-workspace {
  min-height: 0;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
}

.admin-order-tab-panel .admin-record-drawer {
  margin-top: 14px;
  border-radius: 8px;
  box-shadow: none;
}

.admin-finance-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #e5ecef;
  color: #33475a;
  font-size: 13px;
}

.admin-finance-summary p {
  margin: 0;
}

.admin-finance-record-grid,
.admin-service-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.admin-finance-record-grid > section,
.admin-service-record-grid > section {
  min-width: 0;
  padding: 22px 24px 22px 0;
}

.admin-finance-record-grid > section + section,
.admin-service-record-grid > section + section {
  padding-right: 0;
  padding-left: 24px;
  border-left: 1px solid #e5ecef;
}

.admin-finance-record-grid h3 {
  margin: 0 0 14px;
  color: var(--manage-navy);
  font-size: 15px;
}

.admin-finance-record-grid .admin-rental-refund {
  margin: 0;
  border-top: 0;
}

.admin-finance-record-grid .stacked-mini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.admin-finance-record-grid .stacked-mini-form .text-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-service-record-grid {
  min-height: 470px;
}

.admin-service-record {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid #e8eef0;
  color: #35495c;
  font-size: 13px;
}

.admin-service-record p {
  margin: 0;
}

.admin-service-record small {
  color: #758596;
}

.admin-status-log-table {
  max-height: none;
  padding: 8px 0 0;
}

.admin-status-log-table p {
  padding: 13px 0;
}

.admin-order-summary-rail {
  position: sticky;
  top: 92px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--manage-line);
  border-radius: 10px;
  background: #ffffff;
}

.admin-order-summary-rail section {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ecef;
}

.admin-order-summary-rail section:last-child {
  border-bottom: 0;
}

.admin-order-summary-rail span {
  color: #748494;
  font-size: 11px;
  font-weight: 760;
}

.admin-order-summary-rail strong {
  color: var(--manage-navy);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-order-summary-rail strong.status {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eaf6f3;
  color: var(--manage-teal);
}

.admin-order-summary-rail strong.amount {
  font-size: 21px;
}

.admin-order-summary-rail small {
  color: #7a8997;
  font-size: 11px;
}

@media (min-width: 100000px) and (max-width: 1100px) {
  .admin-order-detail-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

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

@media (min-width: 100000px) and (max-width: 900px) {
  .admin-order-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-order-summary-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: -1;
  }

  .admin-order-summary-rail section {
    border-right: 1px solid #e5ecef;
  }

  .admin-order-workflow-step strong {
    font-size: 11px;
  }
}

@media (min-width: 100000px) and (max-width: 700px) {
  .admin-order-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-order-workflow {
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    overflow-x: auto;
  }

  .admin-current-task {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-current-task-context {
    border-right: 0;
    border-bottom: 1px solid var(--manage-line);
  }

  .admin-order-tabs {
    padding: 0 8px;
  }

  .admin-order-tabs button {
    padding: 0 13px;
  }

  .admin-order-tab-panel {
    min-height: 0;
    padding: 6px 18px 20px;
  }

  .admin-order-ledger-list,
  .admin-order-ledger-list.finance,
  .admin-finance-record-grid,
  .admin-service-record-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-finance-record-grid > section + section,
  .admin-service-record-grid > section + section {
    padding-left: 0;
    border-top: 1px solid #e5ecef;
    border-left: 0;
  }

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

/* 2026-07-25 unified operations workspace
   Extends the customer-facing navy + teal system to every manager screen. */
.manage-body {
  --manage-navy: #10253a;
  --manage-navy-soft: #173149;
  --manage-teal: #167a73;
  --manage-teal-dark: #0f625d;
  --manage-bg: #f3f6f7;
  --manage-panel: #ffffff;
  --manage-soft: #f7f9fa;
  --manage-line: #dbe5e8;
  --manage-muted: #68798a;
  min-height: 100vh;
  background: var(--manage-bg);
  color: var(--manage-navy);
}

.manage-body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(22, 122, 115, 0.24);
  outline-offset: 2px;
}

.manage-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(24px, 3vw, 44px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--manage-navy);
  box-shadow: 0 12px 34px rgba(16, 37, 58, 0.16);
}

.manage-brand {
  gap: 12px;
  min-width: 205px;
  color: #ffffff;
}

.manage-brand .brand-mark {
  width: 50px;
  height: 40px;
  border-radius: 8px;
  background: var(--manage-teal);
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.manage-brand strong {
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.manage-brand small {
  margin-top: 3px;
  color: #9fb0bf;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.manage-nav {
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  scrollbar-width: none;
}

.manage-nav::-webkit-scrollbar {
  display: none;
}

.manage-nav a {
  position: relative;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #bdc9d4;
  font-size: 13px;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}

.manage-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.manage-nav a.active,
.manage-nav a[aria-current="page"] {
  background: var(--manage-teal);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.manage-main {
  min-height: calc(100vh - 74px);
  background: var(--manage-bg);
}

.manage-topbar {
  position: sticky;
  top: 74px;
  z-index: 20;
  min-height: 58px;
  padding: 0 clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--manage-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(16, 37, 58, 0.04);
  backdrop-filter: blur(12px);
}

.manage-topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manage-topbar span,
.manage-topbar strong,
.manage-topbar small {
  display: inline-flex;
  align-items: center;
}

.manage-topbar span {
  color: var(--manage-muted);
  font-size: 12px;
}

.manage-topbar strong {
  color: var(--manage-navy);
  font-size: 14px;
}

.manage-topbar small {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #cce2df;
  border-radius: 999px;
  background: #eef7f5;
  color: var(--manage-teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.manage-topbar .header-actions {
  gap: 8px;
}

.manage-body .button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--manage-teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.manage-body .button:hover {
  background: var(--manage-teal-dark);
  box-shadow: none;
  transform: translateY(-1px);
}

.manage-body .button.ghost {
  border-color: #cfdcdf;
  background: #ffffff;
  color: #294156;
}

.manage-body .button.ghost:hover {
  border-color: #a9cbc7;
  background: #f0f7f6;
  color: var(--manage-teal-dark);
}

.manage-body .button.danger {
  border-color: #e4bcbc;
  background: #fff7f7;
  color: #a93b3b;
}

.manage-body .button.danger:hover {
  border-color: #c94c4c;
  background: #c94c4c;
  color: #ffffff;
}

.manage-body .button.small {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 12px;
}

.manage-body .button.tiny {
  min-height: 32px;
  padding-inline: 11px;
  border-radius: 6px;
  font-size: 12px;
}

.manage-main > main {
  width: 100%;
}

.manage-main .section {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 34px clamp(24px, 3vw, 44px) 62px;
  background: transparent;
}

.manage-main .section + .section {
  padding-top: 0;
}

.manage-main .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--manage-line);
}

.manage-main .section-head.compact {
  margin-top: 34px;
  padding-bottom: 14px;
}

.manage-main .section-head h1,
.manage-main .section-head h2 {
  margin: 4px 0 0;
  color: var(--manage-navy);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.manage-main .section-head h2 {
  font-size: 25px;
}

.manage-main .eyebrow,
.manage-main .card-kicker {
  margin: 0;
  color: var(--manage-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.manage-messages {
  width: min(1480px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 0;
}

.manage-messages .message {
  border: 1px solid #c9e1de;
  border-radius: 8px;
  background: #eef8f6;
  color: #1c5d59;
  box-shadow: none;
}

.manage-body :is(input, select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d2dfe3;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--manage-navy);
  font: inherit;
  box-sizing: border-box;
}

.manage-body textarea {
  min-height: 112px;
  line-height: 1.65;
}

.manage-body :is(input, select, textarea):hover {
  border-color: #b8cbd0;
}

.manage-body :is(input, select, textarea):focus {
  border-color: #6dafaa;
  outline: 3px solid rgba(22, 122, 115, 0.12);
  background: #ffffff;
}

.manage-body label {
  color: #526779;
  font-size: 12px;
  font-weight: 800;
}

.manage-body label > :is(input, select, textarea) {
  margin-top: 7px;
}

.filter-bar,
.catalog-filter {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(150px, 0.8fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 37, 58, 0.05);
}

.filter-bar label,
.catalog-filter label {
  min-width: 0;
}

.filter-bar .button,
.catalog-filter .button {
  width: auto;
}

.table-like,
.order-list {
  display: grid;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(16, 37, 58, 0.05);
}

.table-head,
.table-row,
.order-row {
  min-width: 900px;
  border: 0;
  border-bottom: 1px solid #e5ecef;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.table-head {
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: #eef3f5;
  color: #40566a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.table-row,
.order-row {
  min-height: 64px;
  color: #334a5e;
}

.table-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}

.table-row:hover,
.order-row:hover {
  border-color: #dce7ea;
  background: #f8fbfb;
  box-shadow: none;
}

.table-row > span,
.table-row > div,
.order-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-row small,
.order-row span {
  display: block;
  margin-top: 4px;
  color: #7b8b99;
  font-size: 11px;
  line-height: 1.45;
}

.inline-link {
  color: var(--manage-teal-dark);
  font-weight: 850;
}

.inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manage-body .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cddcdf;
  border-radius: 999px;
  background: #f5f8f9;
  color: #53697a;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.manage-body .status.ok {
  border-color: #c2dedb;
  background: #eef8f6;
  color: #11655f;
}

.manage-body .status.warning {
  border-color: #e8d7ad;
  background: #fffaf0;
  color: #8a651b;
}

.manage-body .status.danger-soft {
  border-color: #ebc7c7;
  background: #fff5f5;
  color: #a43e3e;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-grid > * {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 37, 58, 0.05);
}

.dashboard-grid > *::after {
  display: none;
}

.dashboard-grid > *:nth-child(-n+4) {
  border-color: var(--manage-navy);
  background: var(--manage-navy);
}

.dashboard-grid > *:hover {
  border-color: #a9cbc7;
  background: #f8fbfb;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 37, 58, 0.08);
}

.dashboard-grid > *:nth-child(-n+4):hover {
  border-color: var(--manage-navy-soft);
  background: var(--manage-navy-soft);
}

.dashboard-grid strong {
  color: var(--manage-navy);
  font-size: 32px;
}

.dashboard-grid > *:nth-child(-n+4) strong {
  color: #ffffff;
}

.dashboard-grid span {
  color: #526779;
  font-weight: 750;
}

.dashboard-grid small {
  color: #7a8b99;
  line-height: 1.45;
}

.quick-links {
  gap: 9px;
  margin: 18px 0 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.quick-links .button.ghost {
  min-height: 36px;
  border-radius: 8px;
}

.panel,
.admin-action-card,
.admin-side-panel,
.admin-mini-card,
.device-state-card,
.system-create-form,
.system-note,
.admin-log-drawer {
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 37, 58, 0.05);
}

.panel,
.admin-action-card,
.admin-side-panel,
.admin-mini-card,
.system-create-form,
.system-note {
  padding: 22px;
}

.form-grid,
.product-form .form-grid {
  gap: 16px;
}

.form-section,
.form-card {
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
}

.info-grid {
  gap: 12px;
}

.info-grid div,
.state-facts div,
.user-profile-grid div {
  border: 1px solid #e0e8eb;
  border-radius: 10px;
  background: var(--manage-soft);
}

.device-state-card {
  padding: 20px;
}

.device-state-card + .device-state-card {
  margin-top: 2px;
}

.site-contact-form {
  padding: 24px;
}

.site-hero-upload {
  gap: 22px;
  padding: 22px;
  border: 1px solid #e0e8eb;
  border-radius: 12px;
  background: var(--manage-soft);
}

.site-hero-upload img {
  border-radius: 10px;
  background: #ffffff;
}

.site-contact-form-title {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--manage-line);
  color: var(--manage-navy);
  font-size: 20px;
}

.site-code-upload-grid {
  gap: 16px;
}

.site-code-upload-grid > section {
  border: 1px solid #e0e8eb;
  border-radius: 12px;
  background: var(--manage-soft);
}

.invoice-guide {
  padding: 20px;
  border: 1px solid #d7e5e6;
  border-left: 4px solid var(--manage-teal);
  border-radius: 10px;
  background: #f7fbfa;
  box-shadow: none;
}

.invoice-guide h2 {
  margin-top: 0;
  color: var(--manage-navy);
}

.inline-admin-form {
  gap: 7px;
}

.inline-admin-form :is(input, select) {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.system-admin-grid {
  gap: 16px;
}

.system-note {
  border-left: 4px solid #bd5a5a;
  background: #fffafa;
}

.system-note h2 {
  margin-top: 0;
}

.admin-order-hero,
.admin-detail-heading {
  border-radius: 14px;
  background: var(--manage-navy);
  color: #ffffff;
  box-shadow: none;
}

.admin-order-hero h1,
.admin-detail-heading h1,
.admin-order-hero .muted {
  color: #ffffff;
}

.admin-order-hero .eyebrow,
.admin-detail-heading .eyebrow {
  color: #7fc5bf;
}

.admin-status-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-order-strip {
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 37, 58, 0.04);
}

.admin-order-strip div + div {
  border-left-color: var(--manage-line);
}

.admin-workbench,
.admin-order-grid,
.admin-detail-service-grid {
  gap: 16px;
}

.admin-detail-service-grid article {
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 37, 58, 0.04);
}

.admin-task-panel {
  top: 148px;
}

.admin-task-panel-body :is(input, select),
.admin-detail-service-grid input {
  border-radius: 8px;
}

.admin-log-drawer summary {
  border-radius: 12px;
}

.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #7b8b99;
  font-size: 14px;
}

@media (min-width: 100000px) and (max-width: 1180px) {
  .manage-sidebar {
    gap: 16px;
    padding-inline: 20px;
  }

  .manage-brand {
    min-width: 180px;
  }

  .manage-nav a {
    padding-inline: 9px;
  }

  .filter-bar,
  .catalog-filter {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (min-width: 100000px) and (max-width: 860px) {
  .manage-sidebar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 14px;
  }

  .manage-nav {
    justify-content: flex-start;
  }

  .manage-topbar {
    position: static;
    padding-inline: 18px;
  }

  .manage-main .section {
    padding: 26px 18px 48px;
  }

  .manage-main .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar,
  .catalog-filter,
  .dashboard-grid,
  .state-facts,
  .system-admin-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-order-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--manage-line);
  }

  .admin-task-panel {
    top: auto;
  }
}

@media (min-width: 100000px) and (max-width: 560px) {
  .manage-brand strong {
    font-size: 16px;
  }

  .manage-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px;
  }

  .manage-topbar .header-actions {
    width: 100%;
  }

  .manage-topbar .header-actions .button {
    flex: 1;
  }

  .dashboard-grid,
  .admin-order-strip {
    grid-template-columns: 1fr;
  }

  .manage-main .section-head h1 {
    font-size: 30px;
  }
}

/* Final order-workspace sizing guard. */
.manage-main .section.admin-order-workspace {
  width: min(1480px, calc(100% - 48px));
  padding: 24px 0 56px;
}

@media (min-width: 100000px) and (max-width: 900px) {
  .manage-main .section.admin-order-workspace {
    width: calc(100% - 32px);
    padding: 20px 0 48px;
  }
}
.required-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf5f3;
  color: #167a73;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}

.site-profile-requirements {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid #e1e8ea;
  border-bottom: 1px solid #e1e8ea;
}

.site-profile-requirements h2 { margin: 6px 0 8px; }
.site-profile-requirements > div > span { color: #687a89; line-height: 1.65; }
.profile-requirement-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-requirement-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d8e3e6;
  border-radius: 10px;
  background: #f8fafb;
  color: #24384b;
  font-weight: 750;
}
.profile-requirement-options input { width: 18px; height: 18px; accent-color: #167a73; }

@media (min-width: 100000px) and (max-width: 820px) {
  .site-profile-requirements { grid-template-columns: 1fr; }
  .profile-requirement-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/*
 * PC web surfaces intentionally keep their desktop canvas on narrow browsers.
 * All legacy max-width rules above are retained for reference but disabled by
 * an impossible min-width condition. Narrow browsers pan horizontally instead
 * of mixing desktop and mobile layouts.
 */
html.desktop-fixed-root {
  overflow-x: auto;
}

html.desktop-fixed-root,
html.desktop-fixed-root body {
  width: 100%;
  overflow-x: auto;
}

html.desktop-fixed-user,
html.desktop-fixed-user body {
  min-width: 1280px;
}

html.desktop-fixed-manage,
html.desktop-fixed-manage body {
  min-width: 1440px;
}

/* Platform gateway and purchase domain. Rental pages keep their existing rules. */
.platform-gateway-page {
  background: #edf2f3;
}

.platform-gateway-page .site-main {
  padding-top: 24px;
}

.platform-gateway {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid #d8e2e4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(15, 35, 51, .1);
}

.platform-hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background-color: #07111c;
  background-image:
    linear-gradient(90deg, rgba(5, 14, 24, .96) 0%, rgba(5, 14, 24, .82) 34%, rgba(5, 14, 24, .26) 68%, rgba(5, 14, 24, .18) 100%),
    var(--platform-hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.platform-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 28, .04) 60%, rgba(7, 17, 28, .46) 100%);
  pointer-events: none;
}

.platform-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 640px;
  min-height: 510px;
  padding: 72px 70px 62px;
  flex-direction: column;
  justify-content: center;
}

.platform-hero-copy .eyebrow {
  color: #73c7bd;
}

.platform-hero-copy h1 {
  margin: 12px 0 22px;
  color: #fff;
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.platform-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #d7e0e6;
  font-size: 17px;
  line-height: 1.8;
}

.platform-hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 30px;
  color: #dce5ea;
  font-size: 13px;
  font-weight: 780;
}

.platform-hero-meta i {
  margin-right: 7px;
  color: #73c7bd;
}

.platform-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #dce5e7;
}

.platform-service {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 222px;
  padding: 38px 42px;
  overflow: hidden;
  background: #fff;
  color: #10283c;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.platform-service:hover {
  background: #f9fbfb;
}

.platform-service-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 17px;
  background: #e7f4f2;
  color: #177a72;
  font-size: 29px;
}

.platform-service.purchase .platform-service-icon {
  background: #eaf0f6;
  color: #173b62;
}

.platform-service-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.platform-service-copy small {
  color: #6b7d8b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
}

.platform-service-copy strong {
  color: #10283c;
  font-size: 29px;
  line-height: 1.2;
}

.platform-service-copy > span {
  max-width: 480px;
  color: #647584;
  font-size: 14px;
  line-height: 1.7;
}

.platform-service-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: #177a72;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.platform-service.purchase .platform-service-action {
  background: #173b62;
}

.platform-assurance {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #dce5e7;
  background: #f5f8f8;
}

.platform-assurance > span {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 3px 11px;
  align-items: center;
  min-height: 84px;
  padding: 17px 24px;
}

.platform-assurance > span + span {
  border-left: 1px solid #dce5e7;
}

.platform-assurance i {
  grid-row: 1 / 3;
  color: #177a72;
  font-size: 22px;
}

.platform-assurance b {
  color: #263b4d;
  font-size: 13px;
}

.platform-assurance small {
  color: #788792;
  font-size: 11px;
}

.platform-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1440px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto 24px;
  color: #687987;
  font-size: 12px;
}

.platform-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-footer > div > span:last-child {
  display: grid;
  gap: 2px;
}

.platform-footer > div strong {
  color: #263b4d;
  font-size: 13px;
}

.platform-footer nav {
  display: flex;
  gap: 26px;
}

.platform-footer a {
  color: #42586a;
  font-weight: 800;
  text-decoration: none;
}

.platform-footer > span:last-child {
  justify-self: end;
}

.purchase-hero { display: flex; align-items: end; justify-content: space-between; min-height: 280px; padding: 54px 60px; border-radius: 16px; background: linear-gradient(120deg, #10283c 0%, #173c56 70%, #176e70 140%); color: #fff; }
.purchase-hero h1 { margin: 6px 0 14px; font-size: 48px; }
.purchase-hero p:not(.eyebrow) { max-width: 720px; color: #c7d2da; }
.purchase-hero .button { border-color: rgba(255,255,255,.45); color: #fff; }
.purchase-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.purchase-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(23,41,61,.06); }
.purchase-product-card > a { display: block; height: 260px; padding: 18px; background: #f7f9fa; }
.purchase-product-card img { width: 100%; height: 100%; object-fit: contain; }
.purchase-product-card > div { padding: 24px; }
.purchase-product-card small { color: #176e70; font-weight: 800; }
.purchase-product-card h2 { min-height: 62px; margin: 10px 0; font-size: 23px; }
.purchase-product-card h2 a { color: var(--ink); text-decoration: none; }
.purchase-product-card p { min-height: 70px; color: var(--muted); line-height: 1.65; }
.purchase-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.purchase-price-row > strong { color: #dc5718; font-size: 28px; }

.purchase-detail-layout { display: grid; grid-template-columns: minmax(480px, .95fr) minmax(520px, 1.05fr); gap: 38px; align-items: start; }
.purchase-detail-media { display: grid; min-height: 560px; padding: 36px; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.purchase-detail-media img { width: 100%; max-height: 500px; object-fit: contain; }
.purchase-detail-info { padding: 12px 0; }
.purchase-detail-info h1 { margin: 8px 0 18px; font-size: 42px; line-height: 1.25; }
.purchase-description { color: var(--muted); font-size: 16px; line-height: 1.8; }
.purchase-price { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; margin: 24px 0; padding: 22px 24px; border-radius: 12px; background: #fff5ed; }
.purchase-price small { color: #a94b1e; font-weight: 800; }
.purchase-price strong { grid-row: span 2; color: #dc5718; font-size: 40px; }
.purchase-price span { color: #816f65; }
.purchase-checkout-box { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.purchase-checkout-box label { display: grid; gap: 8px; color: var(--ink); font-weight: 800; }
.purchase-checkout-box :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; font: inherit; }
.purchase-spec-section { display: grid; grid-template-columns: 300px 1fr; gap: 60px; padding-top: 42px; border-top: 1px solid var(--line); }
.preserve-copy { white-space: pre-wrap; color: #465b6d; line-height: 1.9; }

.purchase-order-list, .purchase-manage-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.purchase-order-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 24px 28px; color: var(--ink); text-decoration: none; }
.purchase-order-row + .purchase-order-row { border-top: 1px solid var(--line); }
.purchase-order-row h2 { margin: 6px 0 0; font-size: 20px; }
.purchase-order-row > div:last-child { display: grid; gap: 4px; text-align: right; }
.purchase-order-row > div:last-child strong { color: #dc5718; font-size: 23px; }
.purchase-order-detail { padding-top: 34px; }
.purchase-status-track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.purchase-status-track span { position: relative; color: #82909c; text-align: center; font-weight: 800; }
.purchase-status-track span::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 8px; border: 3px solid #cfdadd; border-radius: 50%; background: #fff; }
.purchase-status-track span.done { color: #176e70; }
.purchase-status-track span.done::before { border-color: #176e70; background: #176e70; }
.purchase-order-columns { display: grid; grid-template-columns: 1fr 390px; gap: 20px; align-items: start; }
.purchase-order-product { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; }
.purchase-order-product + .purchase-order-product { border-top: 1px solid var(--line); }
.purchase-order-product img { width: 110px; height: 92px; padding: 8px; border-radius: 9px; background: #f4f7f8; object-fit: contain; }
.purchase-order-product h2, .purchase-order-product h3 { margin: 4px 0; }
.purchase-address { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.purchase-summary { position: sticky; top: 104px; }
.purchase-summary > p { display: flex; justify-content: space-between; }
.purchase-summary .total { padding-top: 16px; border-top: 1px solid var(--line); font-size: 20px; }
.purchase-summary .total strong { color: #dc5718; }
.purchase-summary form .button { width: 100%; }

.purchase-manage-section, .purchase-manage-detail { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.purchase-filter { grid-template-columns: minmax(300px, 1fr) 240px auto auto; }
.purchase-manage-list-head, .purchase-manage-row { display: grid; grid-template-columns: 1.8fr 1fr .7fr .8fr 70px; gap: 24px; align-items: center; }
.purchase-manage-list-head { padding: 13px 22px; background: #f1f5f6; color: #6b7d8b; font-size: 12px; font-weight: 800; }
.purchase-manage-row { padding: 20px 22px; color: var(--ink); text-decoration: none; }
.purchase-manage-row + .purchase-manage-row { border-top: 1px solid var(--line); }
.purchase-manage-row > div { display: grid; gap: 4px; }
.purchase-manage-row small { color: var(--muted); }
.purchase-state { width: max-content; padding: 5px 9px; border-radius: 999px; background: #e8f4f2; color: #176e70; font-size: 12px; font-weight: 900; }
.purchase-state-cancelled, .purchase-state-refunded { background: #f0f2f3; color: #758491; }
.purchase-manage-heading { padding: 30px 34px; border-radius: 14px; background: #10283c; color: #fff; }
.purchase-manage-heading h1 { color: #fff; }
.purchase-manage-heading p { color: #c1ccd4; }
.purchase-manage-detail-grid { display: grid; grid-template-columns: 1fr 390px; gap: 20px; align-items: start; }
.purchase-manage-ledger { display: grid; gap: 20px; }
.purchase-manage-ledger .panel header { display: flex; align-items: center; justify-content: space-between; }
.purchase-manage-ledger .panel header h2 { margin: 4px 0; }
.purchase-manage-facts { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.purchase-manage-facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.purchase-manage-task { position: sticky; top: 100px; display: grid; gap: 16px; background: #10283c; color: #fff; }
.purchase-manage-task :is(h2,p,label,small) { color: inherit; }
.purchase-manage-task form { display: grid; gap: 14px; }
.purchase-manage-task label { display: grid; gap: 7px; font-weight: 800; }
.purchase-manage-task :is(input,select) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d6da; border-radius: 8px; font: inherit; }

/* Purchase experience v2 — aligned with the established rental design language. */
.purchase-store-body,
.purchase-product-page-body,
.purchase-orders-page-body,
.purchase-customer-order-body {
  background: #f2f6f7;
}

.purchase-market-home .market-hero {
  background: #0d2235;
}

.purchase-market-hero .market-hero-copy {
  z-index: 2;
}

.purchase-market-hero .market-hero-visual::after {
  background: linear-gradient(90deg, #0d2235 0%, rgba(13, 34, 53, .72) 24%, rgba(13, 34, 53, .12) 62%, rgba(13, 34, 53, .28) 100%);
}

.purchase-process .process-step strong b {
  color: #218b83;
}

.purchase-featured-device .featured-image {
  background: #fff;
}

.purchase-featured-offer {
  background: #f8fbfb;
}

.purchase-offer-label {
  color: #657888;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.purchase-featured-offer .featured-price {
  margin: 8px 0 14px;
}

.purchase-featured-offer .featured-price strong {
  color: #d95819;
  font-size: 42px;
}

.purchase-featured-offer > p {
  margin: 7px 0;
  color: #627484;
  font-size: 13px;
}

.purchase-product-detail-page {
  padding-bottom: 72px;
}

.purchase-product-hero {
  align-items: start;
}

.purchase-product-summary .lead {
  max-height: 7.3em;
  overflow: hidden;
}

.purchase-commerce-price-panel {
  border-color: #f1d5c4;
}

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

.purchase-buy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px 24px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #cfdcdf;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 47, 64, .06);
}

.purchase-buy-panel-wide {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px 30px;
  margin-top: 24px;
  padding: 28px 32px;
}

.purchase-buy-panel-wide .purchase-buy-fields {
  grid-template-columns: minmax(190px, .35fr) minmax(360px, 1fr);
}

.purchase-buy-panel-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe7e9;
}

.purchase-buy-panel-head h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.purchase-buy-panel-head > span {
  color: #647584;
  font-size: 13px;
}

.purchase-buy-panel-head > span strong {
  margin-left: 5px;
  color: #d95819;
  font-size: 20px;
}

.purchase-buy-fields {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.purchase-buy-fields label {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #263a4d;
  font-size: 13px;
  font-weight: 850;
}

.purchase-buy-fields :is(select, textarea, input) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cedadd;
  border-radius: 9px;
  background: #fbfcfc;
  color: #172c40;
  font: inherit;
  font-weight: 650;
}

.purchase-remark-field {
  grid-column: 1 / -1;
}

.quantity-field {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  overflow: hidden;
  border: 1px solid #cedadd;
  border-radius: 9px;
  background: #fbfcfc;
}

.quantity-field button {
  border: 0;
  background: #edf6f5;
  color: #176e70;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.quantity-field input {
  min-width: 0;
  border: 0;
  border-inline: 1px solid #dbe4e6;
  border-radius: 0;
  text-align: center;
  appearance: textfield;
}

.purchase-buy-total {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border-radius: 10px;
  background: #fff6ef;
}

.purchase-buy-total > span,
.purchase-buy-total > small {
  color: #7b6a60;
  font-size: 12px;
}

.purchase-buy-total > strong {
  color: #d95819;
  font-size: 30px;
}

.purchase-submit-button {
  grid-column: 1 / -1;
  min-height: 54px;
}

.purchase-action-spacer {
  height: 112px;
}

.purchase-action-bar {
  grid-template-columns: minmax(260px, 1fr) 190px auto minmax(220px, 250px);
}

.purchase-action-price {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
}

.purchase-action-price > span {
  grid-column: 1 / -1;
  margin: 0;
  color: #657786;
  font-size: 11px;
  letter-spacing: .04em;
}

.purchase-action-price strong {
  color: #d95819;
  font-size: 26px;
}

.purchase-action-price strong b {
  font: inherit;
}

.purchase-action-price small {
  color: #74838e;
  font-size: 12px;
}

.purchase-action-quantity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: #34495b;
  font-size: 13px;
  font-weight: 850;
}

.purchase-action-quantity > div {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid #cdd9dd;
  border-radius: 8px;
  background: #fff;
}

.purchase-action-quantity button {
  border: 0;
  background: #edf6f5;
  color: #176e70;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.purchase-action-quantity b {
  display: grid;
  place-items: center;
  border-inline: 1px solid #dfe7e9;
  color: #142b3f;
}

.purchase-action-submit {
  grid-column: auto;
}

.purchase-address-help {
  grid-column: 2;
  margin: -8px 0 0;
  color: #b24c2a;
  font-size: 12px;
}

.purchase-section-nav {
  top: 84px;
}

.purchase-info-stack {
  gap: 18px;
}

.purchase-orders-shell {
  width: min(1320px, calc(100% - 64px));
  padding: 34px 0 72px;
}

.purchase-orders-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 38px 42px;
  border-radius: 16px 16px 0 0;
  background: #10283c;
  color: #fff;
}

.purchase-orders-heading h1 {
  margin: 6px 0 10px;
  color: #fff;
  font-size: 44px;
}

.purchase-orders-heading p:last-child {
  margin: 0;
  color: #c4d0d8;
}

.purchase-order-guide,
.purchase-manage-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d9e3e5;
}

.purchase-order-guide > span,
.purchase-manage-scope > span {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  padding: 20px 24px;
  background: #fff;
}

.purchase-order-guide i,
.purchase-manage-scope i {
  grid-row: span 2;
  align-self: center;
  color: #188077;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.purchase-order-guide strong,
.purchase-manage-scope strong {
  color: #1c3246;
  font-size: 14px;
}

.purchase-order-guide small,
.purchase-manage-scope small {
  color: #768693;
  font-size: 12px;
}

.purchase-order-list-v2 {
  display: grid;
  gap: 16px;
  padding-top: 24px;
}

.purchase-order-card-v2 {
  overflow: hidden;
  border: 1px solid #d4e0e3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 45, 62, .045);
}

.purchase-order-card-v2 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid #e2e9eb;
  background: #f8fafb;
}

.purchase-order-card-v2 > header div {
  display: flex;
  gap: 20px;
  color: #405568;
  font-size: 13px;
}

.purchase-order-card-v2 > header small {
  color: #758593;
}

.purchase-order-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.purchase-order-card-product {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  color: #152a3e;
  text-decoration: none;
}

.purchase-order-card-product img {
  width: 110px;
  height: 92px;
  padding: 7px;
  border-radius: 10px;
  background: #f2f6f7;
  object-fit: contain;
}

.purchase-order-card-product > span {
  display: grid;
  gap: 6px;
}

.purchase-order-card-product small {
  color: #188077;
  font-size: 12px;
  font-weight: 850;
}

.purchase-order-card-product strong {
  font-size: 20px;
}

.purchase-order-card-product em {
  color: #6d7e8c;
  font-size: 13px;
  font-style: normal;
}

.purchase-order-card-payment {
  display: grid;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid #e0e8ea;
}

.purchase-order-card-payment small,
.purchase-order-card-payment span {
  color: #748491;
  font-size: 12px;
}

.purchase-order-card-payment strong {
  color: #d95819;
  font-size: 24px;
}

.purchase-order-card-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  text-align: center;
}

.purchase-order-card-actions .text-link {
  font-size: 12px;
}

.purchase-orders-empty {
  display: grid;
  justify-items: center;
  padding: 70px 24px;
  border: 1px solid #d6e1e3;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.purchase-orders-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 12px;
  background: #e8f4f2;
  color: #176e70;
  font-weight: 900;
}

.purchase-orders-empty h2 {
  margin: 18px 0 6px;
}

.purchase-orders-empty p {
  margin: 0 0 20px;
  color: #6a7c8b;
}

.purchase-customer-order {
  width: min(1320px, calc(100% - 64px));
  padding: 28px 0 72px;
}

.purchase-customer-order-topline,
.purchase-manage-detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #6d7d8b;
  font-size: 13px;
}

.purchase-customer-order-topline a,
.purchase-manage-detail-topline a {
  color: #176e70;
  font-weight: 850;
  text-decoration: none;
}

.purchase-order-status-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 30px 34px;
  border-radius: 16px 16px 0 0;
  background: #10283c;
  color: #fff;
}

.purchase-order-status-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 16px;
  background: #1a8078;
  color: #fff;
  font-size: 30px;
}

.purchase-order-status-hero h1 {
  margin: 3px 0 6px;
  color: #fff;
  font-size: 34px;
}

.purchase-order-status-hero p:last-child {
  margin: 0;
  color: #c3cfd7;
}

.purchase-order-status-meta {
  display: grid;
  gap: 5px;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.purchase-order-status-meta span {
  color: #9fb1bf;
  font-size: 12px;
}

.purchase-order-status-cancelled,
.purchase-order-status-refunded {
  border-color: #d6e6e5;
  background: #f5faf9;
}

.purchase-order-status-cancelled .purchase-order-status-icon,
.purchase-order-status-refunded .purchase-order-status-icon {
  background: #687783;
}

.purchase-order-lifecycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 22px 30px;
  border: 1px solid #d4e0e3;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  list-style: none;
}

.purchase-order-lifecycle li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1px 11px;
  color: #87949e;
}

.purchase-order-lifecycle li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 58px;
  height: 1px;
  background: #d9e2e4;
  content: "";
}

.purchase-order-lifecycle i {
  z-index: 1;
  display: grid;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #d6e0e2;
  border-radius: 50%;
  background: #fff;
  color: #89959f;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.purchase-order-lifecycle strong {
  align-self: end;
  font-size: 14px;
}

.purchase-order-lifecycle small {
  font-size: 11px;
}

.purchase-order-lifecycle .done {
  color: #176e70;
}

.purchase-order-lifecycle .done i {
  border-color: #188077;
  background: #188077;
  color: #fff;
}

.purchase-order-lifecycle .done:not(:last-child)::after {
  background: #73b2ad;
}

.purchase-customer-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.purchase-customer-order-main {
  display: grid;
  gap: 18px;
}

.purchase-order-section-card,
.purchase-order-checkout-summary {
  border: 1px solid #d4e0e3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 47, 64, .045);
}

.purchase-order-section-card {
  padding: 24px 28px;
}

.purchase-order-section-card > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e8ea;
}

.purchase-order-section-card > header h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.purchase-order-section-card > header > span {
  color: #6b7d8b;
  font-size: 13px;
  font-weight: 750;
}

.purchase-order-section-card.compact > header {
  border-bottom: 0;
}

.purchase-order-line-v2 {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
}

.purchase-order-line-v2 + .purchase-order-line-v2 {
  border-top: 1px solid #e2e9eb;
}

.purchase-order-line-v2 img {
  width: 110px;
  height: 94px;
  padding: 7px;
  border-radius: 10px;
  background: #f1f5f6;
  object-fit: contain;
}

.purchase-order-line-v2 > div {
  display: grid;
  gap: 6px;
}

.purchase-order-line-v2 small {
  color: #188077;
  font-size: 12px;
  font-weight: 850;
}

.purchase-order-line-v2 h3 {
  margin: 0;
  font-size: 20px;
}

.purchase-order-line-v2 p {
  margin: 0;
  color: #6d7d8a;
}

.purchase-order-line-v2 > strong {
  color: #d95819;
  font-size: 21px;
}

.purchase-delivery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  padding-top: 20px;
}

.purchase-delivery-grid > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.purchase-delivery-grid > div + div {
  padding-left: 30px;
  border-left: 1px solid #e0e8ea;
}

.purchase-delivery-grid small {
  color: #71818e;
  font-size: 12px;
}

.purchase-delivery-grid strong {
  color: #1c3145;
}

.purchase-delivery-grid p {
  margin: 0;
  color: #637584;
  line-height: 1.7;
}

.purchase-order-checkout-summary {
  position: sticky;
  top: 104px;
  overflow: hidden;
}

.purchase-order-summary-head {
  padding: 24px 26px;
  background: #10283c;
  color: #fff;
}

.purchase-order-summary-head h2 {
  margin: 4px 0 0;
  color: #fff;
}

.purchase-order-checkout-summary dl {
  margin: 0;
  padding: 22px 26px 10px;
}

.purchase-order-checkout-summary dl > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.purchase-order-checkout-summary dt {
  color: #667887;
}

.purchase-order-checkout-summary dd {
  margin: 0;
  color: #22374a;
  font-weight: 800;
}

.purchase-order-checkout-summary .total {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #dfe7e9;
  font-size: 18px;
}

.purchase-order-checkout-summary .total dd {
  color: #d95819;
  font-size: 24px;
}

.purchase-order-payment-state {
  display: flex;
  justify-content: space-between;
  margin: 0 26px 18px;
  padding: 14px 0;
  border-top: 1px solid #e1e8ea;
  border-bottom: 1px solid #e1e8ea;
}

.purchase-order-payment-state span {
  color: #697b89;
}

.purchase-order-payment-state strong {
  color: #176e70;
}

.purchase-order-checkout-summary > :is(.notice, form, button, small) {
  margin-right: 26px;
  margin-left: 26px;
}

.purchase-order-checkout-summary > .notice {
  margin-bottom: 14px;
}

.purchase-order-checkout-summary > form {
  margin-bottom: 12px;
}

.purchase-order-checkout-summary > form .button,
.purchase-order-checkout-summary > button {
  width: calc(100% - 52px);
  min-height: 50px;
}

.purchase-order-checkout-summary > small {
  display: block;
  margin-bottom: 22px;
  color: #6f808d;
  line-height: 1.55;
}

.button.disabled {
  border-color: #d1dadd;
  background: #e7edef;
  color: #8a979f;
  cursor: not-allowed;
}

.purchase-state {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f4f2;
  color: #176e70;
  font-size: 12px;
  font-weight: 850;
}

.purchase-state-payment_pending { background: #fff1e7; color: #b85424; }
.purchase-state-ship_pending { background: #eaf3f8; color: #2f6485; }
.purchase-state-shipped { background: #e7f4f2; color: #176e70; }
.purchase-state-completed { background: #e9f4eb; color: #327146; }
.purchase-state-cancelled,
.purchase-state-refunded { background: #edf0f2; color: #6d7b85; }
.purchase-state-refunding { background: #fff5dd; color: #8a6827; }

.purchase-manage-list-v2,
.purchase-manage-detail-v2 {
  width: min(1480px, calc(100% - 48px));
  padding: 30px 0 64px;
}

.purchase-manage-page-head {
  align-items: end;
}

.purchase-manage-page-head h1 {
  font-size: 42px;
}

.purchase-manage-page-head .header-actions {
  display: flex;
  gap: 10px;
}

.purchase-manage-scope {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  border: 1px solid #d3dfe2;
  border-radius: 12px;
  overflow: hidden;
}

.purchase-filter-v2 {
  grid-template-columns: minmax(360px, 1fr) 230px auto auto;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #d3dfe2;
  border-radius: 12px;
  background: #fff;
}

.purchase-manage-table-v2 {
  overflow: hidden;
  border: 1px solid #d3dfe2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 47, 64, .045);
}

.purchase-manage-table-head,
.purchase-manage-row-v2 {
  display: grid;
  grid-template-columns: minmax(360px, 1.6fr) minmax(190px, .8fr) minmax(150px, .6fr) minmax(140px, .6fr) 84px;
  gap: 24px;
  align-items: center;
}

.purchase-manage-table-head {
  padding: 13px 22px;
  background: #edf3f4;
  color: #687987;
  font-size: 12px;
  font-weight: 850;
}

.purchase-manage-row-v2 {
  min-height: 112px;
  padding: 18px 22px;
  color: #192e42;
  text-decoration: none;
}

.purchase-manage-row-v2 + .purchase-manage-row-v2 {
  border-top: 1px solid #e0e8ea;
}

.purchase-manage-row-v2:hover {
  background: #f8fbfb;
}

.purchase-manage-row-v2 > span {
  display: grid;
  align-content: center;
  gap: 5px;
}

.purchase-manage-row-v2 small,
.purchase-manage-row-v2 em {
  color: #70818f;
  font-size: 12px;
  font-style: normal;
}

.purchase-manage-order-cell {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 15px !important;
}

.purchase-manage-order-cell img {
  width: 84px;
  height: 72px;
  padding: 5px;
  border-radius: 9px;
  background: #f1f5f6;
  object-fit: contain;
}

.purchase-manage-order-cell > span {
  display: grid;
  gap: 4px;
}

.purchase-manage-row-action {
  color: #176e70;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.purchase-manage-empty {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 60px 20px;
  color: #667887;
}

.purchase-manage-detail-topline {
  margin-bottom: 16px;
}

.purchase-manage-detail-head {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(250px, .85fr) minmax(220px, .7fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 30px;
  border-radius: 14px 14px 0 0;
  background: #10283c;
  color: #fff;
}

.purchase-manage-detail-head h1 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 34px;
}

.purchase-manage-detail-head > div {
  display: grid;
  gap: 5px;
}

.purchase-manage-detail-head > div > small {
  color: #93a6b4;
  font-size: 11px;
}

.purchase-manage-detail-head > div > strong {
  color: #fff;
}

.purchase-order-lifecycle-admin {
  margin-bottom: 20px;
}

.purchase-manage-current-task {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d3dfe2;
  border-radius: 14px;
  background: #fff;
}

.purchase-manage-current-product {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-right: 1px solid #dce5e7;
}

.purchase-manage-current-product img {
  width: 96px;
  height: 80px;
  padding: 5px;
  border-radius: 10px;
  background: #f1f5f6;
  object-fit: contain;
}

.purchase-manage-current-product h2 {
  margin: 4px 0;
  font-size: 24px;
}

.purchase-manage-current-product span {
  color: #697b89;
  font-size: 13px;
}

.purchase-manage-current-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
  gap: 20px;
  align-items: center;
  padding: 24px 30px;
  background: #f8fbfb;
}

.purchase-manage-current-action h3 {
  margin: 0;
  font-size: 21px;
}

.purchase-manage-current-action > p {
  margin: 8px 0 0;
  color: #657786;
  line-height: 1.65;
}

.purchase-manage-current-action form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.purchase-manage-current-action form label {
  display: grid;
  gap: 6px;
  color: #30465a;
  font-size: 12px;
  font-weight: 800;
}

.purchase-manage-current-action form :is(input, select) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c9d6da;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.purchase-manage-current-action form small {
  grid-column: 1 / -1;
  color: #71818e;
}

.purchase-manage-tabs {
  display: flex;
  gap: 30px;
  margin: 20px 0;
  padding: 0 22px;
  border-bottom: 1px solid #d6e1e3;
}

.purchase-manage-tabs a {
  padding: 14px 0 13px;
  border-bottom: 3px solid transparent;
  color: #667887;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.purchase-manage-tabs a:first-child {
  border-bottom-color: #188077;
  color: #176e70;
}

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

.purchase-manage-detail-main {
  display: grid;
  gap: 18px;
}

.purchase-manage-card {
  padding: 24px 28px;
  border: 1px solid #d3dfe2;
  border-radius: 14px;
  background: #fff;
}

.purchase-manage-card > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e8ea;
}

.purchase-manage-card > header h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.purchase-manage-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 30px;
  padding-top: 22px;
}

.purchase-manage-info-grid > div {
  display: grid;
  gap: 6px;
}

.purchase-manage-info-grid .wide {
  grid-column: 1 / -1;
}

.purchase-manage-info-grid small,
.purchase-manage-ledger-grid small,
.purchase-manage-shipment small,
.purchase-manage-order-rail small {
  color: #71818e;
  font-size: 11px;
}

.purchase-manage-shipment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #d9e3e5;
  border-radius: 10px;
  background: #d9e3e5;
}

.purchase-manage-shipment > span,
.purchase-manage-ledger-grid > span {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #f8fbfb;
}

.purchase-manage-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 20px;
  background: #d9e3e5;
}

.purchase-manage-order-rail {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border: 1px solid #d3dfe2;
  border-radius: 14px;
  background: #fff;
}

.purchase-manage-order-rail > div {
  display: grid;
  gap: 7px;
  padding: 20px 22px;
}

.purchase-manage-order-rail > div + div {
  border-top: 1px solid #e0e8ea;
}

.purchase-manage-order-rail > div:first-child {
  background: #10283c;
}

.purchase-manage-order-rail > div:first-child :is(small, strong) {
  color: #fff;
}

/* 2026-08-01: clearer admin data hierarchy and editable front-page covers */
.manage-body .table-head,
.manage-body .table-head span {
  color: #263f54 !important;
}

.manage-body .table-head {
  background: #e8f0f2;
  border-color: #cad9dd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

.front-setting-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.front-setting-nav a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 3px 12px;
  align-items: center;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #fff;
  color: var(--manage-navy);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(16, 37, 58, .04);
}

.front-setting-nav a > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e7f3f1;
  color: var(--manage-teal);
  font-weight: 900;
}

.front-setting-nav strong {
  align-self: end;
  font-size: 16px;
}

.front-setting-nav small {
  align-self: start;
  color: #71818e;
}

.site-contact-form.front-setting-form {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.front-setting-section {
  scroll-margin-top: 96px;
  padding: 26px 28px;
  border: 1px solid var(--manage-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 37, 58, .045);
}

.front-setting-section > header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #e3eaec;
}

.front-setting-section > header h2 {
  margin: 3px 0 5px;
  color: var(--manage-navy);
  font-size: 24px;
}

.front-setting-section > header span {
  color: #6d7f8d;
}

.front-setting-section > header > a {
  flex: none;
  color: var(--manage-teal);
  font-weight: 850;
  text-decoration: none;
}

.hero-setting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
}

.hero-setting-fields {
  display: grid;
  gap: 16px;
}

.front-setting-form label {
  display: grid;
  gap: 7px;
  color: #334b5e;
  font-size: 13px;
  font-weight: 850;
}

.front-setting-form :is(input:not([type="checkbox"]), textarea, select) {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd8dc;
  border-radius: 9px;
  background: #fff;
  color: #193248;
  font: inherit;
  font-weight: 650;
}

.front-setting-form textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.65;
}

.front-setting-form .form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.front-setting-form .form-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-setting-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d5e0e3;
  border-radius: 12px;
  background: #10283c;
}

.hero-setting-preview img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.hero-setting-preview figcaption {
  padding: 12px 15px;
  background: #f5f8f9;
  color: #607483;
  font-size: 12px;
  font-weight: 800;
}

.front-setting-section.compact .profile-requirement-options,
.front-setting-section.compact .site-code-upload-grid {
  margin-top: 22px;
}

.front-setting-save {
  position: sticky;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid #cbdcdf;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(16, 37, 58, .12);
  backdrop-filter: blur(10px);
}

.front-setting-save p {
  margin: 0;
  color: #657888;
  font-size: 13px;
}

.front-setting-save .button {
  min-width: 220px;
}

.system-management-page {
  display: block;
}

.system-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 18px;
}

.system-overview-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--manage-line);
  border-radius: 14px;
  background: #fff;
  color: #1c374d;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 37, 58, .045);
}

.system-overview-card.active {
  border-color: #1a827a;
  background: #10283c;
  color: #fff;
}

.system-overview-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e7f3f1;
  color: #167b73;
  font-size: 22px;
}

.system-overview-card.active .system-overview-icon {
  background: #19877e;
  color: #fff;
}

.system-overview-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.system-overview-card small {
  color: #6f8290;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.system-overview-card strong {
  font-size: 18px;
}

.system-overview-card em {
  color: #718492;
  font-size: 12px;
  font-style: normal;
}

.system-overview-card.active :is(small, em) {
  color: #b8ccd5;
}

.system-section-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 18px;
  padding: 0 20px;
  border-bottom: 1px solid #d4e0e3;
  background: #fff;
}

.system-section-tabs a {
  padding: 15px 2px 12px;
  border-bottom: 3px solid transparent;
  color: #607485;
  font-weight: 850;
  text-decoration: none;
}

.system-section-tabs a.active {
  border-bottom-color: #188078;
  color: #176f69;
}

.system-data-section {
  padding: 24px;
  border: 1px solid var(--manage-line);
  border-radius: 14px;
  background: #fff;
}

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

.system-section-heading h2 {
  margin: 3px 0 5px;
  color: var(--manage-navy);
  font-size: 25px;
}

.system-section-heading span {
  color: #687b89;
}

.system-create-details {
  position: relative;
  flex: none;
}

.system-create-details > summary,
.system-protection-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #c8d9dc;
  border-radius: 9px;
  background: #f4f9f8;
  color: #176f69 !important;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.system-create-details[open] > summary {
  border-color: #188078;
}

.system-create-details .system-create-form {
  position: absolute;
  z-index: 6;
  top: 50px;
  right: 0;
  width: 430px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 52px rgba(16, 37, 58, .18);
}

.system-create-details .system-create-form label {
  display: grid;
  gap: 6px;
  color: #334a5e;
  font-size: 12px;
  font-weight: 850;
}

.system-create-details .system-create-form :is(input, select) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cad7db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.system-filter-bar {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 220px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #dbe5e8;
  border-radius: 11px;
  background: #f7fafb;
}

.system-filter-bar label {
  display: grid;
  gap: 6px;
  color: #40566a;
  font-size: 12px;
  font-weight: 850;
}

.system-filter-bar :is(input, select) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd8dc;
  border-radius: 8px;
  background: #fff;
  color: #263f54;
  font: inherit;
}

.table-head.system-account,
.table-row.system-account {
  grid-template-columns: minmax(170px, 1.25fr) minmax(110px, .8fr) 90px 100px minmax(110px, .75fr) minmax(130px, .9fr) minmax(130px, .8fr);
}

.table-head.system-order,
.table-row.system-order,
.table-head.system-product,
.table-row.system-product {
  grid-template-columns: minmax(175px, 1.3fr) minmax(120px, .85fr) minmax(170px, 1.2fr) minmax(105px, .7fr) minmax(100px, .6fr) minmax(135px, .8fr);
}

.system-table .table-head,
.system-table .table-row {
  min-width: 1120px;
}

.system-table .table-row strong {
  color: #173348;
}

.system-table .button.tiny {
  width: 100%;
}

.system-pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

.system-pagination a,
.system-pagination span {
  min-width: 88px;
  padding: 9px 12px;
  border: 1px solid #d0dde0;
  border-radius: 8px;
  background: #fff;
  color: #40566a;
  text-align: center;
  text-decoration: none;
}

.system-pagination a {
  color: #176f69;
  font-weight: 850;
}

/* 2026-08-01 — Wide visual canvas with a controlled reading measure.
   The three public landing pages share this rule so large monitors feel
   immersive without stretching product copy and operational content. */
:root {
  --public-canvas-gutter: clamp(24px, 2.35vw, 48px);
  --public-content-width: 1560px;
}

.home-v3-body .topbar,
.platform-gateway-page .topbar {
  padding-inline: calc(var(--public-canvas-gutter) + 32px);
}

.home-v3-body .market-home {
  width: calc(100% - var(--public-canvas-gutter) - var(--public-canvas-gutter));
  max-width: none;
  margin-inline: auto;
}

.home-v3-body .market-hero-copy {
  width: min(50%, 720px);
  padding-left: clamp(58px, 5.4vw, 112px);
}

.home-v3-body .market-process,
.home-v3-body .market-catalog,
.home-v3-body .market-trust {
  padding-inline: max(44px, calc((100% - var(--public-content-width)) / 2));
}

.platform-gateway-page .site-main {
  padding-top: var(--public-canvas-gutter);
}

.platform-gateway-page .platform-gateway,
.platform-gateway-page .platform-footer {
  width: calc(100% - var(--public-canvas-gutter) - var(--public-canvas-gutter));
  max-width: none;
}

.platform-gateway-page .platform-hero-copy {
  width: min(50%, 720px);
  padding-left: clamp(58px, 5.4vw, 112px);
  padding-right: 42px;
}

.platform-gateway-page .platform-footer {
  padding-inline: max(24px, calc((100% - var(--public-content-width)) / 2));
  box-sizing: border-box;
}

/* 2026-08-01 — Purchase order detail aligned with the rental order workspace. */
.purchase-customer-order-v3 {
  width: min(1440px, calc(100% - 48px));
  padding: 20px 0 54px;
}

.purchase-customer-order-v3 .purchase-customer-order-topline {
  margin-bottom: 14px;
}

.purchase-customer-order-v3 .order-status-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 290px) minmax(240px, 300px);
}

.purchase-customer-order-v3 .order-hero-meta {
  min-width: 0;
}

.purchase-customer-order-v3 .order-hero-actions form {
  margin: 0;
}

.purchase-customer-order-v3 .order-primary-action:disabled {
  border-color: #9caaaf;
  background: #9caaaf;
  cursor: not-allowed;
}

.purchase-order-lifecycle-v3 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purchase-product-row + .purchase-product-row {
  border-top: 1px solid #e1e8eb;
}

.purchase-product-row .customer-product-copy dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.purchase-product-row .customer-product-copy dl > div {
  display: block;
  padding: 14px 16px 0 0;
}

.purchase-product-row .customer-product-copy dl > div + div {
  padding-left: 18px;
  border-left: 1px solid #e4eaed;
}

.purchase-product-row .customer-product-copy dt {
  color: #758696;
  font-size: 12px;
}

.purchase-product-row .customer-product-copy dd {
  margin: 5px 0 0;
  color: #22364a;
  font-weight: 850;
}

.purchase-product-row .line-total dd {
  color: #d95518;
  font-size: 18px;
}

.purchase-delivery-detail-v3 {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  border-top: 1px solid #e1e8eb;
}

.purchase-delivery-detail-v3 > div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.purchase-delivery-detail-v3 > div + div {
  border-left: 1px solid #e1e8eb;
}

.purchase-delivery-detail-v3 span {
  color: #758696;
  font-size: 12px;
}

.purchase-delivery-detail-v3 strong {
  color: #263b4e;
  font-size: 14px;
  line-height: 1.65;
}

.purchase-order-note-card p {
  margin: 0;
  padding: 20px;
  color: #4f6374;
  line-height: 1.75;
}

.purchase-order-summary-v3 .button {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}

.purchase-order-summary-v3 form {
  margin: 10px 0 0;
}

.purchase-summary-notice {
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid #dbe5e8;
  border-radius: 7px;
  background: #f7f9fa;
  color: #5c7080;
  font-size: 13px;
  line-height: 1.65;
}

.purchase-summary-notice.success {
  border-color: #c8e2de;
  background: #edf7f5;
  color: #176e70;
}

.purchase-summary-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #176e70;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

/* Shared purchase consultation entry on shop home and product detail. */
.purchase-consult {
  transition: bottom 180ms ease;
}

.purchase-product-page-body.purchase-sticky-active .purchase-consult {
  bottom: 112px;
}

.purchase-consult-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 7px;
  background: #f3f7f8;
  color: #637584;
  font-size: 12px;
  line-height: 1.6;
}

.purchase-consult .consult-actions > :only-child {
  grid-column: 1 / -1;
}

/* Product availability controls: keep each checkbox attached to its meaning. */
.product-availability-settings {
  overflow: hidden;
  border: 1px solid var(--manage-line);
  border-radius: 12px;
  background: #f7fafb;
}

.product-availability-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid #dfe8eb;
  background: #fff;
}

.product-availability-heading h2 {
  margin: 4px 0 0;
  color: var(--manage-navy);
  font-size: 19px;
}

.product-availability-heading > p {
  max-width: 520px;
  margin: 0;
  color: #6c7e8d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  text-align: right;
}

.product-availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.manage-body .product-availability-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #dce6e9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.manage-body .product-availability-option:has(input:checked) {
  border-color: #9fcac5;
  background: #edf7f5;
  box-shadow: inset 3px 0 0 var(--manage-teal);
}

.manage-body .product-availability-option input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--manage-teal);
}

.product-availability-option > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-availability-option strong,
.product-availability-option small {
  display: block;
}

.product-availability-option strong {
  color: var(--manage-navy);
  font-size: 14px;
}

.product-availability-option small {
  color: #718291;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

/* Rental address and agreement controls share one explicit control height. */
.product-page-body .order-card .rental-address-control,
.product-page-body .order-card .rental-address-grid :is(input, select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 14px;
  line-height: normal;
}

.product-page-body label.checkbox-line.agreement-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  line-height: 1.55;
}

.product-page-body .agreement-line input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #19766f;
}

.product-page-body .agreement-line > span {
  min-width: 0;
}

/* Purchase quantity/address controls and policy confirmation. */
.purchase-buy-fields > label > select,
.purchase-buy-fields .quantity-field {
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
}

.purchase-buy-fields .quantity-field :is(button, input) {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.purchase-buy-fields .purchase-agreement-line {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d9e4e6;
  border-radius: 9px;
  background: #f5f9f9;
  color: #334b5e;
  line-height: 1.55;
}

.purchase-buy-fields .purchase-agreement-line input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #19766f;
}

.purchase-buy-fields .purchase-agreement-line > span {
  min-width: 0;
}

/* Keep purchase and rental activity equally visible on the dashboard. */
.dashboard-orders-heading > span {
  color: #718392;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.dashboard-order-column {
  min-width: 0;
}

.dashboard-order-column > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 2px 12px;
}

.dashboard-order-column > header h3 {
  margin: 3px 0 0;
  color: var(--manage-navy);
  font-size: 20px;
}

.dashboard-order-column > header a {
  color: var(--manage-teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.dashboard-order-list .order-row {
  grid-template-columns: minmax(170px, 1fr) minmax(105px, .45fr) auto auto;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 14px 16px;
  text-decoration: none;
}

.dashboard-order-list .order-row strong {
  color: var(--manage-navy);
  font-size: 13px;
}

.dashboard-order-list .dashboard-order-phone,
.dashboard-order-list .price {
  color: #4a6072;
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-order-list .price {
  font-weight: 850;
}

/* Shared customer order center: rental and purchase stay visibly separate. */
.order-type-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.order-type-nav > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid var(--market-line);
  border-radius: 10px;
  background: #fff;
  color: #536779;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 37, 56, 0.04);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.order-type-nav > a:hover {
  border-color: #b3cbc8;
  transform: translateY(-1px);
}

.order-type-nav > a.active {
  border-color: #8ebdb8;
  background: #edf7f5;
  box-shadow: inset 4px 0 0 var(--market-teal), 0 8px 24px rgba(15, 37, 56, 0.04);
}

.order-type-nav i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background: #eef3f4;
  color: var(--market-teal);
  font-size: 19px;
}

.order-type-nav > a.active i {
  background: var(--market-teal);
  color: #fff;
}

.order-type-nav span,
.order-type-nav strong,
.order-type-nav small {
  display: block;
}

.order-type-nav strong {
  color: var(--market-navy);
  font-size: 16px;
}

.order-type-nav small {
  margin-top: 5px;
  color: #758594;
  font-size: 12px;
}

.order-type-nav b {
  display: grid;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  place-items: center;
  border-radius: 999px;
  background: #edf1f3;
  color: #536779;
  font-size: 12px;
}

.order-type-nav > a.active b {
  background: #d3ebe7;
  color: #176e70;
}

.order-type-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--market-line);
}

.order-type-section-head h2 {
  margin: 4px 0 0;
  color: var(--market-navy);
  font-size: 24px;
}

.order-type-section-head > span {
  color: #718291;
  font-size: 12px;
  font-weight: 800;
}

.purchase-order-list-page .purchase-order-guide {
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid #d9e3e5;
  border-radius: 10px;
}

.purchase-order-list-page .purchase-order-list-v2 {
  padding-top: 0;
}

/* Purchase returns: customer application and refund progress. */
.purchase-return-service {
  border-color: #cfe0de;
  background: #fbfdfd;
}

.purchase-return-policy {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--market-teal);
  background: #eef7f5;
  color: #4f6474;
  font-size: 13px;
  line-height: 1.7;
}

.purchase-return-policy strong {
  color: var(--market-navy);
}

.purchase-return-policy.expired {
  border-left-color: #b98a58;
  background: #faf5ee;
}

.purchase-return-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.purchase-return-form label {
  display: grid;
  gap: 7px;
  color: #40576a;
  font-size: 12px;
  font-weight: 800;
}

.purchase-return-form label.wide,
.purchase-return-form button {
  grid-column: 1 / -1;
}

.purchase-return-form input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d5e1e3;
  border-radius: 8px;
  background: #fff;
  color: var(--market-navy);
}

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

.purchase-return-status-card > div {
  padding: 13px 15px;
  border: 1px solid #dce6e7;
  border-radius: 8px;
  background: #f7fafb;
}

.purchase-return-status-card small,
.purchase-return-status-card strong {
  display: block;
}

.purchase-return-status-card small {
  color: #7b8b97;
  font-size: 11px;
}

.purchase-return-status-card strong {
  margin-top: 6px;
  color: var(--market-navy);
  font-size: 13px;
  line-height: 1.55;
}

.purchase-refund-result {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf6f3;
  color: #30615d;
}

.purchase-refund-result strong {
  color: #d7501b;
  font-size: 18px;
}

.purchase-refund-result small {
  text-align: right;
}

/* Admin entry and review workspace for purchase returns. */
.purchase-return-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.purchase-return-summary a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 17px 19px;
  border: 1px solid #d8e3e5;
  border-radius: 10px;
  background: #fff;
  color: var(--manage-navy);
  text-decoration: none;
}

.purchase-return-summary span {
  font-size: 13px;
  font-weight: 850;
}

.purchase-return-summary strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--manage-teal-dark);
  font-size: 28px;
}

.purchase-return-summary small {
  color: #788995;
  font-size: 11px;
}

.purchase-return-case-list {
  display: grid;
  gap: 14px;
}

.purchase-return-case {
  overflow: hidden;
  border: 1px solid #d8e3e5;
  border-radius: 10px;
  background: #fff;
}

.purchase-return-case > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px;
  border-bottom: 1px solid #e2eaec;
  background: #f8fafb;
}

.purchase-return-case > header div,
.purchase-return-case > header span,
.purchase-return-case > header strong {
  display: block;
}

.purchase-return-case > header div > span {
  color: #7a8a96;
  font-size: 10px;
}

.purchase-return-case > header div > strong {
  margin-top: 3px;
  color: var(--manage-navy);
  font-size: 12px;
}

.purchase-return-case-body {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(170px, 1fr) minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px;
}

.purchase-return-case-body small,
.purchase-return-case-body strong,
.purchase-return-case-body span {
  display: block;
}

.purchase-return-case-body small {
  color: #7b8b97;
  font-size: 10px;
}

.purchase-return-case-body strong {
  margin-top: 4px;
  color: var(--manage-navy);
  font-size: 13px;
}

.purchase-return-case-body span {
  margin-top: 4px;
  color: #657886;
  font-size: 11px;
}

.purchase-return-review {
  margin: 20px 0;
}

.purchase-return-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.purchase-return-review-grid > div {
  padding: 13px;
  border: 1px solid #dce5e7;
  border-radius: 8px;
  background: #f7fafb;
}

.purchase-return-review-grid small,
.purchase-return-review-grid strong {
  display: block;
}

.purchase-return-review-grid small {
  color: #7a8a96;
  font-size: 10px;
}

.purchase-return-review-grid strong {
  margin-top: 6px;
  color: var(--manage-navy);
  font-size: 12px;
  line-height: 1.5;
}

.purchase-return-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  padding: 0 18px 18px;
}

.purchase-return-decision-grid form {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 16px;
  border: 1px solid #dbe5e7;
  border-radius: 9px;
  background: #fbfcfc;
}

.purchase-return-decision-grid h3,
.purchase-return-decision-grid p {
  margin: 0;
}

.purchase-return-decision-grid h3 {
  color: var(--manage-navy);
  font-size: 15px;
}

.purchase-return-decision-grid p,
.purchase-return-decision-grid small {
  color: #6e808d;
  font-size: 11px;
  line-height: 1.6;
}

.purchase-return-decision-grid label {
  display: grid;
  gap: 6px;
  color: #43596a;
  font-size: 11px;
  font-weight: 800;
}

.purchase-return-decision-grid input {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 12px;
}

.purchase-return-review-result {
  display: grid;
  gap: 5px;
  margin: 0 18px 18px;
  padding: 15px;
  border-left: 3px solid var(--manage-teal);
  background: #eff7f5;
}

.purchase-return-review-result small,
.purchase-return-review-result span {
  color: #667b88;
  font-size: 11px;
}

.purchase-refund-records {
  display: grid;
  gap: 9px;
  padding: 0 18px 18px;
}

.purchase-refund-records > div {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #dde6e8;
  border-radius: 7px;
}

.purchase-refund-records > div strong {
  color: #d7501b;
}

.purchase-refund-records > div small {
  color: #72838f;
  text-align: right;
}
