@charset "UTF-8";

:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --canvas: #f5f6f1;
  --paper: #fff;
  --ink: #18281f;
  --muted: #536358;
  --line: #dfe6dc;
  --field-line: #cfd9ce;
  --soft: #f1f4ee;
  --pine: #1b4432;
  --pine-hover: #143426;
  --lime: #e4f2b8;
  --lime-line: #ccde9c;
  --radius: 16px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --font: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; }
fieldset { min-width: 0; padding: 0; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { border: 0; background: transparent; }
button, a { touch-action: manipulation; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #477650; outline-offset: 3px; }
[hidden] { display: none !important; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--pine); }

.sr-only, .icon-sprite {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap { width: min(1280px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
main.wrap { flex: 1; padding-block: 28px 48px; }
main:focus { outline: 0; }
.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 10;
  padding: 8px 16px;
  transform: translateY(-200%);
  border-radius: 8px;
  background: var(--pine);
  color: white;
}
.skip-link:focus { transform: none; }

.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--pine);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button:hover, .icon-button:hover { border-color: #a9bca7; background: var(--soft); }
.button.primary { border-color: var(--pine); background: var(--pine); color: white; }
.button.primary:hover { border-color: var(--pine-hover); background: var(--pine-hover); }
.button.primary:disabled { border-color: var(--line); background: #e5ebe1; color: var(--muted); opacity: 1; }
.button.subtle { border-color: transparent; background: transparent; }
.button.subtle:hover { background: var(--soft); }
.icon-button { width: 42px; padding: 0; }
.full { width: 100%; }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--pine);
  font-size: 14px;
  font-weight: 650;
}
.text-button:hover, .footer a:hover, .delivery a:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand, .brand-title, .main-nav, .top-actions, .service-health { display: flex; align-items: center; }
.brand { justify-self: start; gap: 10px; white-space: nowrap; }
.brand-emblem {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.brand-emblem img { display: block; }
.brand-title { gap: 9px; }
.brand-title strong { font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.brand-title > span { color: var(--muted); font-size: 13px; font-weight: 630; }
.main-nav { gap: 5px; }
.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
}
.nav-item .icon { width: 16px; height: 16px; }
.nav-item:hover, .nav-item.active { background: #edf3e9; color: var(--pine); }
.nav-item.active { font-weight: 700; }
.nav-count {
  padding: 1px 6px;
  border-radius: 5px;
  background: #dfeadd;
  color: var(--pine);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.top-actions { justify-self: end; gap: 16px; white-space: nowrap; }
.service-health { gap: 7px; color: var(--muted); font-size: 12px; }
#serviceDot { width: 7px; height: 7px; border-radius: 50%; background: #8a948a; }
#serviceDot.online { background: #428154; box-shadow: 0 0 0 3px #e5f0e3; }
.account-button .icon { width: 16px; height: 16px; }

.catalog-hero {
  display: flex;
  align-items: center;
  min-height: 250px;
  padding: 32px clamp(24px, 4.3vw, 56px);
  border-radius: 22px;
  background:
    linear-gradient(90deg, #142e23 0%, #142e23 21%, #142e23ed 32%, #142e2350 59%, #142e230a 100%),
    url("/assets/victoria-harbour.webp") right 34% / 84% auto no-repeat,
    #142e23;
  color: #fff;
  box-shadow: 0 14px 30px -24px #142e23b8;
}
.hero-content { width: min(100%, 425px); }
.hero-content h1 {
  font-size: clamp(39px, 4vw, 56px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: .01em;
}
.hero-content p { margin-top: 10px; color: #dfebe0; font-size: 16px; }
.catalog-search {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-top: 23px;
  padding: 0 12px 0 15px;
  border: 1px solid #ffffffe0;
  border-radius: 11px;
  background: var(--paper);
  color: var(--pine);
}
.catalog-search:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.catalog-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.catalog-search input::placeholder { color: var(--muted); }
.catalog-search kbd {
  flex: none;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font: 12px/21px var(--font);
}

.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 23px 21px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.category-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: #354a3d;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.category-button .icon { width: 16px; height: 16px; }
.category-button:hover { border-color: #a9bca7; }
.category-button.active { border-color: var(--lime-line); background: var(--lime); color: var(--pine); }
.category-count, .result-count {
  border-radius: 20px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.category-count { min-width: 22px; padding: 0 5px; text-align: center; }
.category-button.active .category-count { background: #d5e8a3; color: var(--pine); }

.list-heading, .page-heading, .orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-heading { margin-bottom: 16px; }
.title-line, .catalog-meta, .lookup-form { display: flex; align-items: center; }
.title-line { gap: 9px; }
.title-line h2 { font-size: 24px; font-weight: 710; line-height: 1.25; }
.result-count { padding: 2px 9px; background: #e7eee2; color: #3e5947; }
.result-count:empty { display: none; }
.catalog-meta { flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; }
.source-note, .footnote { color: var(--muted); font-size: 12px; }
#clearFilters { font-size: 12px; }
.list-tools { display: grid; grid-template-columns: repeat(3, max-content) auto; gap: 7px; }
.select-wrap { position: relative; display: block; min-width: 0; }
.select-wrap select, .lookup-form input, .form-input, .account-dialog textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
}
.select-wrap select { padding-right: 32px; appearance: none; color: #34493d; }
.select-wrap select:hover { border-color: #a9bca7; }
.sort-control select { min-width: 112px; }
.select-wrap::after, .faq summary::after, .connection-help summary::after, .plan-detail summary::after, .technical-details summary::after {
  content: "";
  display: block;
  flex: none;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--muted);
}
.select-wrap::after { position: absolute; top: calc(50% - 5px); right: 14px; pointer-events: none; }
.refresh-button { width: 42px; padding: 0; }
.refresh-button span { display: none; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .18s, box-shadow .18s;
}
.plan-card:hover, .plan-card:focus-within { border-color: #aabcaa; box-shadow: 0 6px 20px #24392b0c; }
.plan-type { display: flex; align-items: center; gap: 9px; }
.plan-icon, .status-icon, .empty-icon {
  display: inline-grid;
  flex: none;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 10px;
  background: #e9f1df;
  color: #3b6944;
}
.plan-icon.tone-travel { background: #e5f0ed; color: #2f6462; }
.plan-icon.tone-voice { background: #f7eddb; color: #805d28; }
.plan-icon.tone-other { background: #efebf5; color: #635478; }
.plan-kind { color: var(--muted); font-size: 13px; font-weight: 590; }
.plan-network {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #435649;
  font-size: 11px;
  font-weight: 650;
}
.plan-name {
  margin: 11px 0 14px;
  font-size: 18px;
  font-weight: 670;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.plan-metrics, .detail-metrics {
  display: grid;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--soft);
}
.plan-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; }
.plan-metrics > div + div, .detail-metrics > div + div { padding-left: 11px; border-left: 1px solid #dce4d9; }
.plan-metrics dt, .detail-metrics dt { color: var(--muted); font-size: 11px; }
.plan-metrics dd, .detail-metrics dd { margin-top: 1px; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.plan-price {
  color: var(--pine);
  font-size: 27px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.plan-price small { margin-right: 4px; font-size: 12px; font-weight: 640; letter-spacing: 0; }
.choose-plan {
  min-height: 38px;
  padding-inline: 12px;
  border-color: var(--lime);
  background: var(--lime);
  white-space: nowrap;
}
.choose-plan:hover { border-color: var(--lime-line); background: #d7eca4; }
.choose-plan .icon { width: 15px; height: 15px; }
.catalog-pagination { display: flex; justify-content: center; }
.more-button { margin-top: 21px; }
.more-button span { color: var(--muted); font-size: 12px; font-weight: 500; }
.more-button .icon { width: 15px; height: 15px; transform: rotate(90deg); }
.skeleton {
  min-height: 218px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(105deg, #fbfcfa 40%, #eff3eb 50%, #fbfcfa 60%);
  background-size: 240% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -171% 0; } }

.page-heading { margin: 4px 0 22px; }
.page-heading h1 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 730; line-height: 1.2; }
.page-heading .button { flex: none; }
.order-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 17px 19px; }
.stat-card dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 620; }
.stat-card dt .icon { color: var(--pine); }
.stat-card dd {
  margin-top: 9px;
  color: var(--pine);
  font-size: clamp(23px, 3.1vw, 35px);
  font-weight: 730;
  font-variant-numeric: tabular-nums;
  line-height: 1.24;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.orders-toolbar { margin: 24px 0 12px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: #e8eee5; }
.segmented button { min-height: 36px; padding: 5px 13px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.segmented button.active { background: var(--paper); color: var(--pine); font-weight: 650; box-shadow: 0 1px 3px #1a332018; }
.lookup-form { gap: 7px; }
.lookup-form label { min-width: 0; }
.lookup-form input { width: 210px; }
.lookup-form .button { flex: none; }
.order-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 13px 19px; text-align: left; }
.order-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.order-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.order-row:only-child { border-radius: var(--radius); }
.order-row:focus-visible { outline-offset: -3px; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row:hover { background: #f8faf5; }
.order-info { flex: 1; min-width: 0; }
.order-info b, .order-info small { display: block; overflow-wrap: anywhere; }
.order-info b { font-weight: 650; }
.order-info small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.order-amount { color: var(--pine); font-weight: 700; white-space: nowrap; }
.status-tag { padding: 4px 9px; border-radius: 20px; background: #f8eed6; color: #705320; font-size: 12px; }
.status-tag.success { background: #e4f0df; color: #315c3b; }
.status-tag.failed { background: #f9e7e2; color: #8d402b; }
.footnote { margin-top: 12px; }

.empty-state { display: grid; justify-items: center; gap: 7px; padding: clamp(32px, 5.5vw, 66px) 20px; text-align: center; }
.catalog-list .empty-state { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.empty-icon { width: 50px; height: 50px; margin-bottom: 5px; border-radius: 14px; }
.empty-icon .icon, .status-icon .icon { width: 23px; height: 23px; }
.empty-state h3 { font-size: 21px; }
.empty-state p { max-width: 42em; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.empty-state .button { margin-top: 8px; }
.notice, .inline-message, .delivery {
  padding: 11px 14px;
  border: 1px solid #ecdbb6;
  border-radius: 10px;
  background: #fff7e6;
  color: #745624;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notice { margin-bottom: 12px; }

.guide-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.guide-panel, .faq { padding: clamp(18px, 2.6vw, 32px); }
.guide-layout h2 { font-size: 23px; font-weight: 690; line-height: 1.3; }
.guide-steps { display: grid; margin-top: 11px; padding: 0; list-style: none; counter-reset: step; }
.guide-steps li { display: flex; align-items: flex-start; gap: 13px; padding-block: 17px; counter-increment: step; }
.guide-steps li + li, .faq details + details { border-top: 1px solid var(--line); }
.guide-steps li:last-child { padding-bottom: 0; }
.guide-steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--lime);
  color: var(--pine);
  font-weight: 700;
}
.guide-steps h3 { font-size: 16px; line-height: 1.65; }
.guide-steps p, .faq p, .dialog-intro, .connection-help ol { color: var(--muted); line-height: 1.7; }
.guide-steps p, .faq p { margin-top: 3px; font-size: 14px; }
.guide-steps .text-button { margin-top: 6px; }
.faq h2 { margin-bottom: 12px; }
.faq p { padding-bottom: 16px; }
.footer { display: flex; justify-content: flex-end; padding-block: 18px 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer a, .delivery a { display: inline-flex; align-items: center; gap: 6px; color: var(--pine); }
.footer .icon { width: 14px; height: 14px; }

.faq summary, .connection-help summary, .plan-detail summary, .technical-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding-block: 8px;
  list-style: none;
  font-weight: 650;
}
summary::-webkit-details-marker { display: none; }
details[open] > summary::after { transform: rotate(225deg); }
.faq summary { min-height: 52px; }

body:has(dialog[open]) { overflow: hidden; }
dialog {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 80px #10251d47;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #12291f85; backdrop-filter: blur(2px); }
.account-dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 34px); border-radius: 19px; }
.checkout-dialog {
  inset: 0 0 0 auto;
  width: min(540px, 100%);
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  border-width: 0 0 0 1px;
  overflow-y: auto;
}
.dialog-top, .drawer-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 23px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dialog-top h2 { font-size: 22px; font-weight: 700; }
#drawerLabel { color: var(--pine); font-size: 15px; font-weight: 700; }
.account-body, .drawer-body { padding: 22px 24px 26px; }
.dialog-intro { margin-bottom: 15px; font-size: 14px; }
.connection-help, .plan-detail, .technical-details { padding-inline: 12px; border-radius: 9px; background: var(--soft); }
.connection-help { margin-bottom: 17px; }
.connection-help summary, .plan-detail summary, .technical-details summary { color: var(--pine); font-size: 14px; }
.connection-help ol { padding: 2px 2px 12px 19px; font-size: 14px; }
.connection-help li + li { margin-top: 5px; }
.connection-help a { color: var(--pine); text-decoration: underline; }
.connection-help code, .technical-details pre { font-family: ui-monospace, monospace; }
.field-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.account-dialog textarea { display: block; min-height: 91px; resize: vertical; margin-bottom: 14px; font-family: ui-monospace, monospace; }
.account-body .full + .full { margin-top: 8px; }
.account-facts, .payment-facts { margin-block: 16px; padding: 3px 13px; border: 1px solid var(--line); border-radius: 12px; }
.fact { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-block: 10px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact span { flex: none; color: var(--muted); font-size: 13px; }
.fact b { font-size: 14px; font-weight: 630; text-align: right; overflow-wrap: anywhere; }
.inline-message { margin: 10px 0; }
.inline-message:empty, .form-hint:empty { display: none; }
.inline-message.success, .delivery { border-color: #d4e5cc; background: #eff7eb; color: #31583b; }

.selected-plan { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf5; }
.checkout-heading { display: flex; align-items: flex-start; gap: 11px; }
.checkout-heading .plan-icon { width: 41px; height: 41px; }
.checkout-heading h2 { font-size: 22px; font-weight: 690; line-height: 1.35; overflow-wrap: anywhere; }
.checkout-heading small { color: var(--muted); font-size: 12px; }
.detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 14px 8px; }
.detail-metrics dd { color: var(--pine); font-size: 16px; }
.plan-detail { padding-inline: 1px; background: transparent; }
.plan-detail summary { min-height: 36px; }
.plan-detail p { padding-bottom: 10px; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.form-section { margin-top: 19px; }
.form-section legend, .quantity-row .field-label { font-size: 15px; font-weight: 680; }
.form-section legend { margin-bottom: 8px; padding: 0; }
.flow-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option-card, .payment-option { display: flex; align-items: center; gap: 7px; border: 1px solid var(--field-line); border-radius: 10px; cursor: pointer; }
.option-card { padding: 10px; }
.option-card input, .confirm-label input { flex: none; width: 16px; height: 16px; margin: 0; }
.option-card b, .option-card small { display: block; }
.option-card b { font-size: 14px; }
.option-card small, .form-hint { color: var(--muted); font-size: 12px; }
.option-card:has(input:checked), .payment-option:has(input:checked) { border-color: #94b088; background: #edf4e7; color: var(--pine); }
.flow-input { margin-top: 11px; }
.form-hint { margin-top: 7px; }
.form-hint.warning { color: #8e4628; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.quantity-row .field-label { margin: 0; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: 9px; }
.quantity-control button { width: 40px; min-height: 39px; border-radius: 8px; color: var(--pine); font-size: 20px; }
.quantity-control button:hover { background: var(--soft); }
.quantity-control input { width: 38px; padding: 0; border: 0; text-align: center; font-size: 15px; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.payments { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-option { min-height: 40px; padding: 7px 9px; font-size: 13px; white-space: nowrap; }
.payment-option input { flex: none; width: 13px; height: 13px; margin: 0; }
.checkout-summary { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f5f8f1; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--pine); }
.checkout-total span { display: block; font-size: 14px; font-weight: 680; }
.checkout-total small { color: var(--muted); font-size: 12px; }
.checkout-total strong { font-size: 28px; font-weight: 750; line-height: 1.2; letter-spacing: -.04em; }
.checkout-password { margin-top: 13px; }
.checkout-password code { overflow-wrap: anywhere; }
.confirm-label { display: flex; align-items: flex-start; gap: 8px; margin-block: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; cursor: pointer; }
.confirm-label input { margin-top: 2px; }
.checkout-actions { display: grid; gap: 8px; }
.checkout-actions .button { min-height: 43px; }
.payment-status { margin-bottom: 15px; }
.payment-status h2 { margin: 9px 0 4px; font-size: 26px; font-weight: 720; }
.payment-status p, .delivery p, .qr-caption { color: var(--muted); font-size: 14px; }
.status-icon { width: 46px; height: 46px; border-radius: 13px; background: #f8eed6; color: #795620; }
.payment-status.success .status-icon { background: #e4f0df; color: #315c3b; }
.payment-status.failed .status-icon { background: #f9e7e2; color: #8d402b; }
.qr-box, .qr-caption { text-align: center; }
.qr-box { margin-top: 12px; }
.qr-box svg { display: block; width: min(200px, 100%); height: auto; margin: auto; }
.delivery { margin: 13px 0; }
.delivery h3 { font-size: 16px; }
.delivery p { margin-block: 5px; }
.technical-details { margin-top: 14px; }
.technical-details pre { max-height: 260px; margin: 0; padding-bottom: 12px; overflow: auto; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast {
  position: fixed;
  bottom: 21px;
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 17px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: var(--pine);
  color: white;
  font-size: 14px;
  box-shadow: 0 3px 18px #15291d22;
  pointer-events: none;
}
.toast.error { background: #783d35; }
.checkout-dialog > .toast { right: 16px; left: auto; max-width: min(500px, calc(100% - 32px)); transform: none; }
.account-dialog > .toast { position: sticky; bottom: 12px; left: auto; margin: 0 auto 12px; transform: none; }

@media (max-width: 1000px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-health { display: none; }
}
@media (max-width: 700px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 5px 10px; padding-top: 9px; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 0; }
  .nav-item { flex: 1; gap: 5px; min-height: 42px; padding-inline: 5px; border-bottom: 2px solid transparent; border-radius: 0; font-size: 13px; }
  .nav-item.active { border-color: var(--pine); background: transparent; }
  .nav-item .icon { width: 15px; height: 15px; }
  main.wrap { padding-block: 16px 30px; }
  .catalog-hero {
    min-height: 213px;
    padding: 22px;
    border-radius: 16px;
    background:
      linear-gradient(90deg, #142e23f5, #142e2385),
      url("/assets/victoria-harbour.webp") right 38% / cover no-repeat,
      #142e23;
  }
  .hero-content h1 { font-size: clamp(34px, 8vw, 42px); }
  .hero-content p { margin-top: 7px; font-size: 14px; }
  .catalog-search { gap: 7px; margin-top: 16px; padding-inline: 10px; }
  .catalog-search input { min-height: 44px; font-size: 16px; }
  .catalog-search kbd { display: none; }
  .catalog-categories { gap: 6px; margin-block: 16px; padding-bottom: 14px; }
  .category-button { gap: 5px; min-height: 39px; padding: 5px 8px; font-size: 13px; }
  .category-button .icon { width: 14px; height: 14px; }
  .category-count { min-width: 18px; padding-inline: 3px; font-size: 11px; }
  .list-heading { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .title-line h2 { font-size: 21px; }
  .catalog-meta { margin-top: 3px; }
  .list-tools { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px; }
  .list-tools select { min-width: 0; min-height: 42px; padding-inline: 8px 19px; font-size: 13px; }
  .select-wrap::after { right: 8px; width: 6px; height: 6px; }
  .refresh-button { width: 42px; }
  .plan-card { padding: 14px; }
  .plan-name { margin: 9px 0 10px; font-size: 17px; }
  .plan-footer { margin-top: 11px; }
  .page-heading { margin-block: 5px 17px; }
  .order-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 12px; }
  .orders-toolbar { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .segmented { align-self: flex-start; }
  .lookup-form label { flex: 1; }
  .lookup-form input { width: 100%; font-size: 16px; }
  .order-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 12px 13px; }
  .order-row > .plan-icon, .order-row > .icon { display: none; }
  .order-amount { align-self: start; }
  .order-row .status-tag { justify-self: start; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .dialog-top, .drawer-top { padding-inline: 16px; }
  .account-body, .drawer-body { padding: 16px; }
  .checkout-dialog { border: 0; }
  .checkout-heading h2 { font-size: 20px; }
  .account-dialog textarea, .form-input, .quantity-control input { font-size: 16px; }
}
@media (max-width: 540px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .catalog-categories, .payments { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .category-button, .payment-option { grid-column: span 2; justify-content: center; padding-inline: 6px; }
  .category-button:nth-child(n + 4), .payment-option:nth-child(n + 4) { grid-column: span 3; }
  .brand-emblem { width: 36px; height: 36px; }
  .brand-emblem img { width: 26px; height: 26px; }
  .brand-title { gap: 6px; }
  .brand-title strong { font-size: 20px; }
  .brand-title > span { font-size: 12px; }
  .account-button { padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 385px) {
  .category-button .icon { display: none; }
}
@media (max-width: 365px) {
  .list-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refresh-button { width: 100%; font-size: 13px; }
  .refresh-button span { display: inline; }
  .catalog-hero { padding-inline: 17px; }
  .catalog-search input { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
