:root {
  --ink: #17211d;
  --muted: #68736d;
  --line: #dce2de;
  --soft: #f3f6f4;
  --paper: #ffffff;
  --green: #087a52;
  --green-dark: #055a3e;
  --green-soft: #e6f4ed;
  --red: #bd382e;
  --red-soft: #fbecea;
  --amber: #a55c08;
  --amber-soft: #fff3dc;
  --blue: #24699b;
  --blue-soft: #e8f2f9;
  --shadow: 0 12px 36px rgba(18, 31, 25, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.notification-preferences { display: grid; gap: 0; max-width: 680px; }
.notification-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-option > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notification-option svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--green); }
.notification-option strong, .notification-option small { display: block; overflow-wrap: anywhere; }
.notification-option small { color: var(--muted); }
.notification-option input[type="checkbox"] { appearance: none; flex: 0 0 44px; width: 44px; height: 26px; min-height: 0; margin: 0; padding: 3px; border: 1px solid var(--muted); border-radius: 20px; background: var(--soft); cursor: pointer; }
.notification-option input[type="checkbox"]::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.notification-option input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.notification-option input[type="checkbox"]:checked::before { background: white; transform: translateX(18px); }
.notification-option input[type="checkbox"]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 68px;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(220, 226, 222, .85);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; line-height: 1; }
.brand > span:last-child > span { color: var(--green); }
.brand-mark { display: grid; width: 34px; height: 38px; place-items: center; color: white; background: var(--green); clip-path: polygon(50% 0, 94% 17%, 88% 74%, 50% 100%, 12% 74%, 6% 17%); }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 2.3; }
.brand-image { display: block; width: auto; max-width: 146px; height: 38px; object-fit: contain; }
[data-site-logo-slot]:empty { display: none; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: 64px; }
.main-nav a { position: relative; color: #39463f; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { color: white; border-color: var(--green); background: var(--green); }
.button-primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.button-secondary { color: var(--green); border-color: #a9cdbd; background: white; }
.button-secondary:hover { background: var(--green-soft); }
.button-ghost { border-color: var(--line); background: white; }
.button-ghost:hover { border-color: #aeb8b2; background: var(--soft); }
.button-danger { color: var(--red); border-color: #efc6c2; background: var(--red-soft); }
.button-on-dark { color: white; border-color: rgba(255,255,255,.55); background: rgba(11, 20, 16, .2); }
.button-on-dark:hover { background: rgba(255,255,255,.13); }
.button-large { min-height: 48px; padding: 0 23px; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.icon-button { display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 18px; height: 18px; }
.mobile-nav-button { display: none; }
.account-button { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 4px 8px 4px 5px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; font-weight: 700; }
.account-trigger { gap: 7px; padding-right: 9px; }
.account-trigger svg { width: 15px; height: 15px; }
.account-name { max-width: 260px; overflow-wrap: anywhere; text-align: left; }
.account-menu { position: relative; display: flex; align-items: center; gap: 6px; }
.account-dropdown { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 194px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 12px 32px rgba(24, 39, 31, .16); }
.account-menu-item { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.account-menu-item:hover { background: var(--soft); color: var(--green); }
.account-menu-item svg { width: 17px; height: 17px; }
.account-menu-divider { height: 1px; margin: 5px 4px; background: var(--line); }
.account-menu-logout { color: var(--red); }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.avatar.large { width: 44px; height: 44px; font-size: 16px; }

.hero { position: relative; display: flex; min-height: 510px; align-items: center; overflow: hidden; color: white; background: #16211d; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; background-position: center 48%; background-size: cover; transition: opacity .55s ease; }
.hero-slide.active { opacity: 1; }
.hero-dots { position: absolute; z-index: 2; right: 24px; bottom: 22px; display: flex; gap: 7px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot.active { background: white; }
.hero-shade { position: absolute; inset: 0; background: rgba(5, 17, 12, .72); }
.hero-content { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 70px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #c6d7cf; font-size: 13px; font-weight: 700; }
.hero-kicker span { width: 26px; height: 2px; background: #50c594; }
.hero h1 { max-width: 760px; margin: 15px 0 14px; font-size: 56px; line-height: 1.08; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 0; color: #dfe8e3; font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-metrics { display: flex; gap: 0; margin-top: 43px; }
.hero-metrics > div { display: flex; min-width: 170px; flex-direction: column; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.25); }
.hero-metrics > div:last-child { border-right: 0; }
.hero-metrics strong { font-size: 21px; }
.hero-metrics span { color: #bccbc4; font-size: 12px; }

.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 90px; border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-band > div { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 17px; border-right: 1px solid var(--line); }
.trust-band > div:last-child { border-right: 0; }
.trust-band svg { width: 25px; color: var(--green); }
.trust-band span { display: flex; flex-direction: column; color: var(--muted); font-size: 12px; }
.trust-band b { color: var(--ink); font-size: 14px; }

.page-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 4px 0 0; font-size: 30px; line-height: 1.25; letter-spacing: 0; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.segmented { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.segmented button { min-width: 56px; height: 34px; padding: 0 13px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(18,31,25,.1); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-grid > .empty-state { grid-column: 1 / -1; width: 100%; }
.product-controls { display: flex; justify-content: center; min-height: 44px; margin-top: 24px; }
.product-controls:empty { display: none; }
.product-controls .button { min-width: 168px; }
.product-card { position: relative; display: flex; min-height: 390px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: white; transition: border .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #a7b8af; box-shadow: var(--shadow); }
.product-card.featured { border-top: 3px solid var(--green); }
.product-badge { position: absolute; top: 17px; right: 17px; padding: 3px 8px; border-radius: 3px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 800; }
.product-brand { color: var(--muted); font-size: 12px; font-weight: 700; }
.product-card h3 { margin: 8px 0 4px; padding-right: 54px; font-size: 20px; line-height: 1.35; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 20px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 3px; color: #4e5b54; background: var(--soft); font-size: 11px; font-weight: 700; }
.product-price { display: flex; align-items: baseline; gap: 7px; padding: 17px 0; border-top: 1px solid var(--line); }
.product-price strong { color: var(--red); font-size: 30px; line-height: 1; }
.product-price small { color: var(--muted); }
.product-price del { color: #98a29c; font-size: 12px; }
.feature-list { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; color: #4e5a54; font-size: 13px; }
.feature-list svg { width: 15px; color: var(--green); }
.product-card .button { width: 100%; margin-top: auto; }

.process-band { padding: 64px max(24px, calc((100vw - 1240px) / 2)); color: white; background: #18231f; }
.section-heading.light h2 { color: white; }
.section-heading.light .eyebrow { color: #60d4a2; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.process-list li { display: flex; min-height: 100px; align-items: center; gap: 16px; padding: 18px 26px; border-left: 1px solid #3b4842; }
.process-list li:last-child { border-right: 1px solid #3b4842; }
.process-list > li > span { color: #65cda2; font-size: 25px; font-weight: 800; }
.process-list div { display: flex; flex-direction: column; }
.process-list b { font-size: 15px; }
.process-list small { color: #9eaca5; }
.footer { display: grid; min-height: 150px; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 28px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); background: #f7f9f8; }
.footer-brand { font-size: 18px; }
.footer-brand .brand-mark { width: 28px; height: 31px; }
.footer-brand svg { width: 17px; }
.footer p, .footer small { color: var(--muted); }

.workspace { display: grid; min-height: calc(100vh - 68px); grid-template-columns: 245px minmax(0, 1fr); background: var(--soft); }
.workspace-nav { position: sticky; top: 68px; display: flex; height: calc(100vh - 68px); flex-direction: column; padding: 25px 17px; border-right: 1px solid var(--line); background: white; }
.workspace-user { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.workspace-user div { min-width: 0; display: flex; flex-direction: column; }
.workspace-user b, .workspace-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-user small { color: var(--muted); font-size: 11px; }
.workspace-nav nav, .admin-sidebar nav { display: grid; gap: 4px; margin-top: 18px; }
.workspace-nav nav button, .admin-sidebar nav button, .logout-button, .admin-link, .back-store { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 5px; color: #536059; background: none; cursor: pointer; font-weight: 650; text-align: left; }
.workspace-nav nav button:hover, .workspace-nav nav button.active, .admin-sidebar nav button:hover, .admin-sidebar nav button.active { color: var(--green-dark); background: var(--green-soft); }
.workspace-nav svg, .admin-sidebar svg { width: 18px; }
.admin-link { margin-top: auto; color: var(--green-dark); background: var(--green-soft); }
.logout-button { margin-top: 8px; color: var(--muted); }
.workspace-main { min-width: 0; padding: 33px clamp(22px, 4vw, 56px) 60px; }
.workspace-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.workspace-top h1, .admin-topbar h1 { margin: 2px 0 0; font-size: 27px; line-height: 1.25; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { min-height: 124px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.stat-card-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-card-head span:last-child { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 5px; color: var(--green); background: var(--green-soft); }
.stat-card svg { width: 16px; }
.stat-card strong { display: block; margin-top: 16px; font-size: 25px; line-height: 1; }
.panel { min-width: 0; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.panel-head { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-body { padding: 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-action { display: flex; min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); cursor: pointer; font-weight: 700; }
.quick-action:hover { border-color: #9cb9aa; background: var(--green-soft); }
.quick-action svg { width: 21px; color: var(--green); }

.table-wrap { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-gutter: stable; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fafbfa; font-size: 11px; font-weight: 800; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.order-table { min-width: 1120px; }
.order-table td, .order-table th { white-space: nowrap; }
.order-quote { margin-top: 8px; padding: 9px 11px; border-left: 3px solid var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.data-table .actions { display: flex; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; color: #4f5c55; background: var(--soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: #79857e; content: ""; }
.status-issued, .status-paid, .status-active, .status-approved, .status-delivered, .status-succeeded { color: var(--green-dark); background: var(--green-soft); }
.status-issued::before, .status-paid::before, .status-active::before, .status-approved::before, .status-delivered::before, .status-succeeded::before { background: var(--green); }
.status-pending_payment, .status-pending_validation, .status-validating, .status-issuing, .status-pending, .status-review_required { color: var(--amber); background: var(--amber-soft); }
.status-pending_payment::before, .status-pending_validation::before, .status-validating::before, .status-issuing::before, .status-pending::before, .status-review_required::before { background: var(--amber); }
.status-failed, .status-disabled, .status-rejected, .status-cancelled { color: var(--red); background: var(--red-soft); }
.status-failed::before, .status-disabled::before, .status-rejected::before, .status-cancelled::before { background: var(--red); }
.empty-state { display: grid; min-height: 220px; place-items: center; padding: 40px 20px; color: var(--muted); text-align: center; }
.empty-state svg { width: 38px; height: 38px; margin-bottom: 8px; color: #9eaaa3; }
.loading-state { display: flex; min-height: 180px; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid #ccdad2; border-top-color: var(--green); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.docs-layout { display: grid; min-height: calc(100vh - 68px); grid-template-columns: 240px minmax(0, 860px); gap: 54px; justify-content: center; padding: 48px 24px 90px; }
.docs-nav { position: sticky; top: 100px; display: grid; align-content: start; gap: 5px; height: max-content; padding-right: 24px; border-right: 1px solid var(--line); }
.docs-nav b { margin-bottom: 10px; font-size: 15px; }
.docs-nav a { padding: 7px 9px; border-radius: 4px; color: var(--muted); }
.docs-nav a:hover { color: var(--green); background: var(--green-soft); }
.docs-content h1 { margin: 5px 0 8px; font-size: 36px; }
.docs-content h2 { margin: 38px 0 10px; font-size: 21px; }
.docs-content p { color: #4e5b54; }
pre { max-width: 100%; overflow: auto; padding: 19px; border: 1px solid #2f3b35; border-radius: 6px; color: #dbebe3; background: #18231f; font: 12px/1.7 "SFMono-Regular", Consolas, monospace; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(12, 19, 16, .62); }
.modal { position: relative; width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 8px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal.wide { width: min(820px, 100%); }
.modal-close { position: absolute; z-index: 2; top: 15px; right: 15px; }
.modal-header { padding: 25px 64px 19px 25px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0 0 3px; font-size: 22px; }
.modal-header p { margin: 0; color: var(--muted); }
.modal-body { padding: 24px 25px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 25px; border-top: 1px solid var(--line); background: #fafbfa; }
.auth-tabs { display: flex; gap: 20px; margin-top: 17px; }
.auth-tabs button { padding: 0 0 7px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: none; cursor: pointer; font-weight: 700; }
.auth-tabs button.active { color: var(--green); border-bottom-color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.deployment-form > .modal-body > .form-grid { gap: 18px; }
.form-grid[data-provider-account-fields], .form-grid[data-task-fields] { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf9; }
.form-field { display: grid; align-content: start; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #3c4842; font-size: 12px; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd6d2; border-radius: 5px; outline: none; background: white; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,82,.1); }
.deployment-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf9; }
.banner-setting-card { display: grid; align-content: start; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.banner-setting-card input, .banner-setting-card textarea { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #cfd6d2; border-radius: 4px; }
.banner-setting-card textarea { resize: vertical; }
.form-field .deployment-radio-option { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #cfd6d2; border-radius: 5px; color: #46534c; background: white; cursor: pointer; font-size: 13px; font-weight: 600; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.form-field .deployment-radio-option:hover { border-color: #9ab9aa; background: #fbfdfc; }
.form-field .deployment-radio-option:has(input:checked) { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.form-field .deployment-radio-option input[type="radio"] { flex: 0 0 16px; width: 16px; min-width: 16px; min-height: 16px; height: 16px; margin: 0; padding: 0; border: 0; accent-color: var(--green); }
.form-field .deployment-radio-option input[type="radio"]:focus { box-shadow: none; }
.form-field .deployment-radio-option input[type="radio"]:focus-visible { outline: 2px solid rgba(8,122,82,.35); outline-offset: 2px; }
.form-field small { color: var(--muted); }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input-action .button { min-height: 42px; }
.input-prefix { display: grid; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; border: 1px solid #cfd6d2; border-radius: 5px; background: white; }
.input-prefix:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,82,.1); }
.input-prefix span { display: flex; max-width: 360px; align-items: center; padding: 0 11px; overflow: hidden; border-right: 1px solid #dce3df; color: var(--muted); background: var(--soft); text-overflow: ellipsis; white-space: nowrap; }
.form-field .input-prefix input { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.captcha-question { display: inline-flex; min-width: 110px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); color: var(--ink); font-weight: 700; }
.captcha-widget { display: grid; gap: 9px; max-width: 360px; }
.captcha-answer-row { grid-template-columns: 1fr auto; }
.captcha-answer-row .icon-button { min-height: 42px; }
.captcha-answer-row .icon-button svg { width: 18px; }
.captcha-remote { display: flex; }
.captcha-remote .button { min-width: 180px; justify-content: flex-start; }
.captcha-remote .button svg { width: 17px; }
.captcha-remote .button.captcha-passed { color: var(--green-dark); border-color: #9dc9b3; background: var(--green-soft); }
.custom-code-field { margin-top: 18px; }
.form-error { min-height: 21px; color: var(--red); font-size: 12px; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.payment-option { position: relative; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option label { display: flex; min-height: 60px; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; font-weight: 700; }
.payment-option input:checked + label { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); }
.payment-option svg { width: 20px; }
.code-box { position: relative; }
.code-box button { position: absolute; top: 8px; right: 8px; }
.code-box pre { margin: 0; padding-right: 52px; }
.notice { padding: 11px 13px; border-left: 3px solid var(--blue); color: #31556d; background: var(--blue-soft); font-size: 12px; }
.danger-notice { border-left-color: var(--red); color: #7b302a; background: var(--red-soft); }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.check-list label, .check-field { display: flex; align-items: center; gap: 9px; color: #3c4842; font-size: 13px; }
.check-list input, .check-field input { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.news-page { min-height: calc(100vh - 218px); background: var(--paper); }
.news-masthead { border-bottom: 1px solid var(--line); background: var(--soft); }
.news-masthead-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 39px; }
.news-masthead h1 { margin: 5px 0 0; font-size: 34px; line-height: 1.25; }
.news-shell { width: min(1000px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 80px; }
.news-category-nav { display: flex; gap: 3px; margin-bottom: 29px; padding-bottom: 13px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.news-category-nav a { min-width: max-content; padding: 8px 13px; border-radius: 4px; color: var(--muted); font-weight: 700; }
.news-category-nav a:hover, .news-category-nav a.active { color: var(--green-dark); background: var(--green-soft); }
.news-list { border-top: 1px solid var(--line); }
.news-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.news-row:hover h2 { color: var(--green); }
.news-row-main { min-width: 0; }
.news-row > svg { width: 19px; flex: 0 0 auto; color: #95a099; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; }
.news-meta span { color: var(--green-dark); font-weight: 800; }
.news-row h2 { margin: 5px 0 3px; font-size: 19px; line-height: 1.4; transition: color .18s ease; }
.news-row p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.news-detail { max-width: 820px; margin: 0 auto; }
.news-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 29px; color: var(--green); font-weight: 700; }
.news-back svg { width: 17px; }
.news-detail h1 { margin: 10px 0 13px; font-size: 32px; line-height: 1.35; overflow-wrap: anywhere; }
.news-summary { margin: 0 0 27px; padding: 13px 16px; border-left: 3px solid var(--green); color: #526059; background: var(--soft); }
.news-content { padding-top: 27px; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; }
.news-content img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 4px; }
.news-content figure { max-width: 100%; margin: 20px 0; }
.news-content figcaption { color: var(--muted); text-align: center; font-size: 13px; }
.news-content h1, .news-content h2 { margin: 24px 0 12px; font-size: 23px; }
.news-content h3, .news-content h4, .news-content h5, .news-content h6 { margin: 22px 0 10px; font-size: 18px; }
.news-content p { margin: 0 0 16px; }
.news-content a { color: var(--green); text-decoration: underline; }
.news-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.news-content blockquote { margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--green); background: var(--soft); }
.news-content table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.news-content th, .news-content td { padding: 8px 12px; border: 1px solid var(--line); }

.contact-page { min-height: calc(100vh - 218px); background: var(--paper); }
.contact-masthead { color: white; background: #17231e; }
.contact-masthead-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 42px; }
.contact-masthead h1 { margin: 6px 0 11px; font-size: 36px; line-height: 1.2; }
.contact-masthead p { max-width: 720px; margin: 0; color: #c7d2cc; font-size: 16px; line-height: 1.75; }
.contact-hours { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); background: var(--soft); }
.contact-hours > div { display: flex; min-height: 84px; align-items: center; justify-content: center; gap: 14px; padding: 17px 24px; border-right: 1px solid var(--line); }
.contact-hours > div:last-child { border-right: 0; }
.contact-hours svg { width: 24px; color: var(--green); }
.contact-hours span { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
.contact-hours b { margin-bottom: 2px; color: var(--ink); font-size: 15px; }
.contact-shell { display: grid; width: min(1120px, calc(100% - 48px)); grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 52px; margin: 0 auto; padding: 62px 0 54px; }
.contact-section-heading { margin-bottom: 20px; }
.contact-section-heading h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.3; }
.contact-directory { min-width: 0; }
.contact-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 17px; min-height: 112px; padding: 19px 4px; border-bottom: 1px solid var(--line); }
.contact-row:first-of-type { border-top: 1px solid var(--line); }
.contact-row-featured { padding: 22px 18px; border: 0; border-left: 3px solid var(--green); background: var(--green-soft); }
.contact-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #bcd1c6; border-radius: 50%; color: var(--green-dark); background: white; }
.contact-icon svg { width: 21px; }
.contact-row h3 { margin: 0 0 5px; font-size: 17px; }
.contact-row p { margin: 0; color: var(--muted); line-height: 1.65; }
.contact-row small { display: block; margin-top: 3px; color: var(--muted); }
.contact-row .button svg { width: 16px; }
.contact-value { color: var(--ink) !important; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.contact-value span { color: var(--muted); font-weight: 400; }
.contact-action { flex: 0 0 auto; }
.contact-copy-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.wechat-contact { align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.wechat-qr { aspect-ratio: 700 / 682; overflow: hidden; border: 1px solid var(--line); background: white; }
.wechat-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wechat-contact p { margin: 18px 0 12px; color: var(--muted); text-align: center; }
.wechat-contact p b { color: var(--ink); font-family: "SFMono-Regular", Consolas, monospace; }
.wechat-contact .button { width: 100%; }
.contact-delivery-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 34px max(24px, calc((100vw - 1120px) / 2)); color: white; background: #243028; }
.contact-delivery-band > div:first-child { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #66736c; border-radius: 50%; }
.contact-delivery-band svg { width: 25px; color: #6bd5a8; }
.contact-delivery-band h2 { margin: 5px 0; font-size: 22px; }
.contact-delivery-band p { margin: 0; color: #bdc8c2; line-height: 1.65; }
.announcement-editor { min-width: 0; }
.announcement-editor-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.announcement-editor-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.announcement-editor-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.announcement-editor-tabs button.active { background: white; color: var(--green-dark); box-shadow: 0 1px 3px #18231f12; }
.announcement-editor-tabs svg { width: 16px; height: 16px; }
.announcement-image-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
.announcement-image-url { display: flex; align-items: center; flex: 1 1 210px; min-width: 0; gap: 6px; }
.announcement-image-url input { flex: 1; min-width: 0; }
.announcement-image-url .icon-button { flex-shrink: 0; }
#announcement-content { min-height: 260px; font-family: Consolas, monospace; font-size: 13px; line-height: 1.7; }
.announcement-preview { min-height: 260px; max-height: 520px; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 5px; }
.toast-stack { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; width: min(360px, calc(100% - 40px)); gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; background: white; box-shadow: var(--shadow); animation: toast-in .2s ease both; }
.toast.error { border-left-color: var(--red); }
.toast svg { width: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.toast.error svg { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.admin-body { background: var(--soft); }
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 236px minmax(0, 1fr); }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 236px; flex-direction: column; padding: 24px 16px 18px; color: #d9e3de; background: #19231f; }
.admin-brand { padding: 0 9px; color: white; }
.admin-caption { margin: 17px 9px 12px; color: #829088; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-sidebar nav { margin-top: 0; }
.admin-sidebar nav button { color: #abb8b1; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { color: white; background: #2c3a33; }
.admin-sidebar nav button.active { box-shadow: inset 3px 0 var(--green); }
.back-store { margin-top: auto; color: #aab7b0; border-top: 1px solid #344039; border-radius: 0; padding-top: 13px; }
.admin-main { min-width: 0; grid-column: 2; padding: 0 32px 60px; }
.admin-topbar { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.admin-account { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.admin-menu { display: none; }
#admin-content { padding-top: 26px; }
.admin-grid { display: grid; min-width: 0; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; }
.admin-grid > * { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; }
.order-list-toolbar { margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.order-list-toolbar .toolbar-left { align-items: center; }
.order-list-toolbar .toolbar-left .icon-button { width: 39px; height: 39px; }
.order-pager { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.order-pager > div { display: flex; align-items: center; gap: 10px; }
.order-pager b { min-width: 58px; color: var(--ink); text-align: center; }
.search-box { position: relative; }
.search-box svg { position: absolute; top: 11px; left: 11px; width: 16px; color: var(--muted); }
.search-box input { width: 240px; height: 39px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.search-box + .button + .icon-button:disabled { visibility: hidden; pointer-events: none; }
.filter-select { height: 39px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 12px 18px; margin: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.text-button { padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font: inherit; }
.text-button:hover { text-decoration: underline; }
.order-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-actions .muted { font-size: 12px; }
.order-actions .button:disabled { cursor: not-allowed; }
.deployment-security { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #bcdaca; border-left: 4px solid var(--green); border-radius: 6px; color: #244b3a; background: #f1f8f4; }
.deployment-security > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; color: var(--green-dark); background: white; }
.deployment-security svg { width: 20px; }
.deployment-security strong { display: block; margin-bottom: 4px; color: var(--ink); }
.deployment-security p { margin: 0; color: #557064; font-size: 12px; line-height: 1.7; }
.deployment-nav { position: sticky; z-index: 3; top: 68px; display: flex; gap: 3px; margin-bottom: 18px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.96); box-shadow: 0 6px 16px rgba(20,45,34,.05); }
.deployment-nav button { display: inline-flex; flex: 1 0 auto; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.deployment-nav button:hover, .deployment-nav button.active { color: var(--green-dark); background: var(--green-soft); }
.deployment-nav svg { width: 17px; }
.deployment-section { scroll-margin-top: 128px; }
.deployment-section .panel-head > div { min-width: 0; }
.deployment-section .panel-head > .actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.deployment-section .panel-head h2 { margin-top: 2px; }
.deployment-section .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-kicker { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.least-privilege-note { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); color: #57655e; background: #fafcfb; font-size: 11px; line-height: 1.55; }
.least-privilege-note svg { flex: 0 0 auto; width: 16px; color: var(--green); }
.certificate-reminder { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; margin-bottom: 18px; padding: 17px 19px; border: 1px solid #ead39b; border-left: 4px solid #d89b13; border-radius: 6px; color: #6b531c; background: #fff9e9; }
.certificate-reminder-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #a46a00; background: #fff; }
.certificate-reminder-icon svg { width: 19px; }
.certificate-reminder strong { display: block; color: #4b3b17; }
.certificate-reminder p { margin: 5px 0 0; font-size: 12px; line-height: 1.7; }
.certificate-reminder-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; }
.certificate-reminder-actions a, .certificate-reminder-actions .text-button { color: #8a5b00; font-size: 12px; font-weight: 750; text-decoration: none; }
.certificate-reminder-actions a:hover, .certificate-reminder-actions .text-button:hover { color: #5d3e00; text-decoration: underline; }
.automation-card { margin-top: 24px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.automation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 15px; }
.automation-heading h3 { margin: 4px 0 3px; font-size: 18px; }
.automation-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.automation-state { padding: 5px 8px; border-radius: 3px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.delivery-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 22px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.delivery-summary > div { display: grid; gap: 4px; min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); }
.delivery-summary > div:last-child { border-right: 0; }
.delivery-summary span { color: var(--muted); font-size: 11px; }
.delivery-summary strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.delivery-progress { height: 5px; margin: 14px 22px 18px; overflow: hidden; border-radius: 3px; background: #e5ebe8; }
.delivery-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.automation-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: stretch; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.automation-option { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.automation-option b, .automation-option small { display: block; }
.automation-option b { font-size: 13px; }
.automation-option small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.automation-option input[role="switch"] { width: 36px; min-width: 36px; height: 20px; margin: 0; appearance: none; border-radius: 10px; outline: none; background: #c9d2cd; cursor: pointer; transition: background .16s ease; }
.automation-option input[role="switch"]::before { display: block; width: 16px; height: 16px; margin: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); content: ""; transition: transform .16s ease; }
.automation-option input[role="switch"]:checked { background: var(--green); }
.automation-option input[role="switch"]:checked::before { transform: translateX(16px); }
.automation-option input[role="switch"]:disabled { cursor: not-allowed; opacity: .55; }
.automation-settings > .button { align-self: center; }
.automation-error { margin: 12px 22px 0; }
.delivery-plan { margin: 0; padding: 10px 22px 0; list-style: none; }
.delivery-plan li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; min-height: 66px; padding: 11px 0; }
.delivery-plan li:not(:last-child)::after { position: absolute; top: 39px; bottom: -11px; left: 13px; width: 1px; background: var(--line); content: ""; }
.delivery-node { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #b4c3bb; border-radius: 50%; color: var(--muted); background: white; }
.delivery-delivered .delivery-node { color: white; border-color: var(--green); background: var(--green); }
.delivery-node svg { width: 14px; }
.delivery-plan b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1px; font-size: 13px; }
.delivery-plan b em { padding: 3px 6px; border-radius: 3px; color: #166744; background: var(--green-soft); font-size: 10px; font-style: normal; }
.delivery-plan small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.automation-footnote { margin: 0; padding: 13px 22px 18px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.task-toggle { position: relative; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: #cbd5d0; cursor: pointer; }
.task-toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.task-toggle.active { background: var(--green); }
.task-toggle.active span { transform: translateX(18px); }
.recent-orders-scroll { max-height: 390px; overflow: auto; }
.recent-orders-scroll .data-table thead th { position: sticky; top: 0; z-index: 1; background: white; }
.task-health { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.task-command-panel { margin-bottom: 18px; }
.task-command-panel .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.task-command-panel pre { margin: 0; border: 0; border-radius: 0 0 6px 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-table td:first-child { min-width: 220px; }
.task-table td:first-child small { display: block; max-width: 340px; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.task-table td:first-child .task-error { color: var(--red); }
.task-result { min-width: 190px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.button:disabled, .icon-button:disabled { cursor: wait; opacity: .62; }
.certificate-center { display: grid; min-width: 0; gap: 22px; }
.certificate-center > * { min-width: 0; }
.certificate-download-controls { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(190px, 1fr) auto; align-items: end; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.certificate-download-controls .button { min-height: 42px; }
.certificate-field { display: grid; min-width: 0; gap: 8px; }
.certificate-label { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; }
.certificate-label .icon-button { width: 34px; height: 34px; }
.certificate-field textarea { width: 100%; min-width: 0; min-height: 180px; padding: 13px; resize: vertical; border: 1px solid #cfd6d2; border-radius: 5px; color: #26322c; background: #fafbfa; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 22px 25px; border-left: 1px solid var(--line); }
.timeline li::before { position: absolute; top: 3px; left: -5px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); content: ""; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline b { display: block; font-size: 13px; }
.timeline small { color: var(--muted); }

@media (max-width: 980px) {
  .main-nav { margin-left: 34px; gap: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-band { grid-template-columns: repeat(2, 1fr); }
  .trust-band > div:nth-child(2) { border-right: 0; }
  .trust-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li:nth-child(2) { border-right: 1px solid #3b4842; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 16px 0 40px rgba(0,0,0,.22); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-main { grid-column: 1; padding: 0 22px 50px; }
  .admin-menu { display: grid; }
  .admin-topbar { justify-content: flex-start; }
  .admin-account { margin-left: auto; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 30px; height: 33px; }
  .main-nav { position: absolute; top: 62px; right: 0; left: 0; display: none; margin: 0; padding: 10px 16px 15px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 9px; }
  .mobile-nav-button { display: grid; }
  .header-actions .button { display: none; }
  .account-name { max-width: max(64px, calc(100vw - 270px)); font-size: 13px; line-height: 1.25; }
  .hero { min-height: 500px; align-items: flex-end; background-position: 62% center; }
  .hero-content { width: calc(100% - 32px); padding: 58px 0 38px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 16px; line-height: 1.65; }
  .hero-actions { flex-wrap: wrap; }
  .hero-metrics { gap: 18px; margin-top: 32px; }
  .hero-metrics > div { min-width: 0; padding: 0; margin: 0; border: 0; }
  .hero-metrics strong { font-size: 17px; }
  .hero-metrics span { font-size: 10px; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .trust-band > div { justify-content: flex-start; padding: 14px; }
  .trust-band svg { width: 21px; }
  .page-section { width: calc(100% - 32px); padding: 49px 0; }
  .news-masthead-inner, .news-shell { width: calc(100% - 32px); }
  .news-masthead-inner { padding: 35px 0 30px; }
  .news-masthead h1 { font-size: 28px; }
  .news-shell { padding: 25px 0 55px; }
  .news-row { align-items: flex-start; gap: 12px; padding: 20px 2px; }
  .news-row h2 { font-size: 17px; }
  .news-detail h1 { font-size: 26px; }
  .contact-masthead-inner, .contact-shell { width: calc(100% - 32px); }
  .contact-masthead-inner { padding: 36px 0 32px; }
  .contact-masthead h1 { font-size: 29px; }
  .contact-hours { grid-template-columns: 1fr; }
  .contact-hours > div { min-height: 72px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-shell { grid-template-columns: 1fr; gap: 34px; padding: 42px 0; }
  .contact-row { grid-template-columns: 44px minmax(0, 1fr); min-height: 0; padding: 18px 2px; }
  .contact-row-featured { padding: 20px 15px; }
  .contact-row > .button, .contact-row > .contact-action, .contact-copy-actions { grid-column: 2; justify-self: start; }
  .contact-copy-actions { justify-content: flex-start; }
  .wechat-contact { max-width: 420px; width: 100%; margin: 0 auto; }
  .contact-delivery-band { grid-template-columns: auto minmax(0, 1fr); padding: 31px 16px; }
  .contact-delivery-band .button { grid-column: 2; justify-self: start; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 25px; }
  .segmented { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .segmented button { flex: 0 0 auto; min-width: 56px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 360px; }
  .process-band { padding: 48px 16px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:nth-child(2), .process-list li:last-child { border-right: 0; border-bottom: 1px solid #3b4842; }
  .footer { grid-template-columns: 1fr; gap: 8px; padding: 32px 16px; }
  .footer p { margin: 8px 0; }
  .workspace { display: block; min-height: calc(100vh - 62px); }
  .workspace-nav { position: static; height: auto; padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-user, .admin-link, .logout-button { display: none; }
  .workspace-nav nav { display: flex; gap: 4px; margin: 0; overflow-x: auto; }
  .workspace-nav nav button { width: auto; min-width: max-content; }
  .workspace-main { padding: 25px 16px 50px; }
  .workspace-top { align-items: flex-start; }
  .workspace-top h1, .admin-topbar h1 { font-size: 23px; }
  .workspace-top .button { min-width: 40px; padding: 0 10px; font-size: 0; }
  .workspace-top .button svg { width: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 108px; padding: 15px; }
  .stat-card strong { font-size: 21px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { display: block; padding: 35px 16px 70px; }
  .docs-nav { position: static; display: flex; gap: 4px; margin-bottom: 30px; padding: 0 0 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-nav b { display: none; }
  .docs-nav a { min-width: max-content; }
  .docs-content h1 { font-size: 31px; }
  .form-grid { grid-template-columns: 1fr; }
  .banner-settings-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .form-grid[data-provider-account-fields], .form-grid[data-task-fields] { grid-column: 1 / -1; padding: 12px; }
  .payment-options { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { width: 100%; max-height: calc(100vh - 20px); }
  .modal-footer { position: sticky; bottom: 0; }
  .admin-main { padding: 0 14px 40px; }
  .admin-topbar { min-height: 72px; }
  .admin-topbar .eyebrow { display: none; }
  .admin-account > span:not(.status-dot) { display: none; }
  #admin-content { padding-top: 18px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .order-list-toolbar .toolbar-left { flex-wrap: nowrap; }
  .order-list-toolbar .toolbar-left .button { flex: 0 0 auto; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .detail-list { grid-template-columns: 100px 1fr; }
  .order-actions { align-items: stretch; flex-direction: column; }
  .deployment-security, .certificate-reminder { grid-template-columns: 30px minmax(0, 1fr); padding: 14px; }
  .deployment-security > span, .certificate-reminder-icon { width: 30px; height: 30px; }
  .deployment-nav { top: 0; margin-right: -16px; margin-left: -16px; border-right: 0; border-left: 0; border-radius: 0; }
  .deployment-nav button { min-width: max-content; padding: 0 13px; }
  .deployment-section .panel-head { align-items: flex-start; flex-direction: column; }
  .deployment-section .panel-head > .actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .deployment-section .panel-head > .actions .button { width: 100%; }
  .delivery-summary { grid-template-columns: 1fr; margin-right: 16px; margin-left: 16px; }
  .delivery-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .delivery-summary > div:last-child { border-bottom: 0; }
  .delivery-progress { margin-right: 16px; margin-left: 16px; }
  .automation-heading { padding-right: 16px; padding-left: 16px; }
  .automation-settings { grid-template-columns: 1fr; padding-right: 16px; padding-left: 16px; }
  .automation-settings > .button { width: 100%; }
  .delivery-plan { padding-right: 16px; padding-left: 16px; }
  .automation-footnote { padding-right: 16px; padding-left: 16px; }
  .certificate-download-controls { grid-template-columns: 1fr; }
  .certificate-field textarea { min-height: 150px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .hero-metrics { justify-content: space-between; }
  .hero-metrics > div:last-child { display: none; }
  .trust-band { grid-template-columns: 1fr; }
  .trust-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-grid, .quick-grid { grid-template-columns: 1fr; }
}

.api-doc-shell { min-height: 100vh; padding: 34px 20px 80px; background: #f3f7f5; }
.api-doc-page { width: min(1120px, 100%); margin: 0 auto; padding: 32px 44px 56px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.api-doc-hero { padding: 14px 0 30px; border-bottom: 1px solid var(--line); }
.api-doc-hero h1 { margin: 10px 0 12px; font-size: 34px; }
.api-doc-hero > p { max-width: 780px; color: var(--muted); line-height: 1.8; }
.api-doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.api-doc-tags span { padding: 6px 10px; border: 1px solid #cfe4d8; border-radius: 4px; color: #08794e; background: #eff8f3; font-size: 12px; }
.api-doc-toc { position: sticky; z-index: 2; top: 0; display: flex; gap: 6px; margin: 0 -44px; padding: 12px 44px; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.api-doc-toc a { flex: 0 0 auto; padding: 7px 9px; border-radius: 4px; color: var(--muted); font-size: 12px; }
.api-doc-toc a:hover { color: #08794e; background: #eff8f3; }
.api-doc-page section { padding: 24px 0 4px; scroll-margin-top: 74px; }
.api-doc-page h2 { margin: 12px 0; font-size: 22px; }
.api-doc-page h3 { margin: 24px 0 9px; font-size: 16px; }
.api-doc-page p, .api-doc-page li { color: #4e5b54; line-height: 1.8; }
.api-doc-page code { overflow-wrap: anywhere; }
.api-doc-page pre { margin: 12px 0 18px; }
.api-doc-page .notice { margin: 18px 0; }
.api-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.api-benefit-grid article { padding: 17px 18px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfb; }
.api-benefit-grid article > span { color: #078153; font: 600 12px/1.2 "SFMono-Regular", Consolas, monospace; }
.api-benefit-grid h3 { margin: 9px 0 4px; }
.api-benefit-grid p { margin: 0; font-size: 13px; }
.api-flow-list { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; padding: 0; list-style: none; }
.api-flow-list li { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px; border-top: 3px solid #0b8a5c; background: #f4f8f6; }
.api-flow-list b { color: #17251f; }
.api-flow-list span { font-size: 12px; }
.api-doc-footer { display: grid; gap: 5px; margin-top: 32px; padding: 18px; border-left: 3px solid #0b8a5c; background: #f2f7f4; }
.api-doc-footer span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.detail-json { max-height: 300px; margin: 10px 0 18px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 5px; color: #263a31; background: #f5f8f6; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 Consolas, monospace; }

@media (max-width: 700px) {
  .api-doc-shell { padding: 12px 10px 40px; }
  .api-doc-page { padding: 22px 18px 38px; }
  .api-doc-hero h1 { font-size: 28px; }
  .api-doc-toc { margin: 0 -18px; padding: 10px 18px; }
  .api-benefit-grid { grid-template-columns: 1fr; }
  .api-flow-list { grid-template-columns: 1fr; }
}
