:root {
    --ink: #0b0b0c;
    --ink-soft: #2f3033;
    --muted: #6e6e73;
    --line: #dedfe2;
    --line-soft: #ececef;
    --surface: #ffffff;
    --surface-soft: #f5f5f7;
    --surface-deep: #e9e9ec;
    --success: #137a42;
    --success-bg: #eef8f2;
    --warning: #9a5b00;
    --warning-bg: #fff7e8;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --shell: 1240px;
    --admin-shell: 1560px;
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.07);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.dialog-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

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

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.narrow-shell {
    max-width: 960px;
}

.site-header {
    position: sticky;
    z-index: 80;
    top: 0;
    height: 76px;
    border-bottom: 1px solid rgba(222, 223, 226, 0.88);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.brand img,
.admin-brand img {
    flex: 0 0 auto;
    border-radius: 8px;
}

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

.site-nav a {
    padding: 26px 0 23px;
    border-bottom: 2px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.header-contact {
    justify-self: end;
    padding: 11px 23px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
}

.home-hero {
    display: grid;
    min-height: 610px;
    place-items: center;
    padding: 74px 0 56px;
    overflow: hidden;
    background: var(--surface);
}

.hero-content {
    text-align: center;
}

.eyebrow,
.product-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: 68px;
    font-weight: 760;
    line-height: 1.08;
}

.hero-content > p:not(.hero-product-title) {
    margin: 25px auto 0;
    color: var(--muted);
    font-size: 21px;
}

.hero-product-title {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 38px;
    font-weight: 750;
    line-height: 1.15;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-brand-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.button:active {
    transform: scale(0.985);
}

.button-dark {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.button-dark:hover {
    border-color: #2d2d2f;
    background: #2d2d2f;
}

.button-outline,
.button-quiet {
    border-color: #cfcfd3;
    background: white;
    color: var(--ink);
}

.button-outline:hover,
.button-quiet:hover {
    border-color: var(--ink);
}

.button-large {
    min-height: 54px;
    padding-inline: 31px;
}

.button-block {
    width: 100%;
}

.hero-assurances {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 48px auto 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.hero-assurances span {
    position: relative;
    padding: 0 20px;
}

.hero-assurances span + span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a8a8ad;
    content: "";
}

.section {
    padding: 112px 0;
}

.section-muted {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 54px;
    text-align: center;
}

.section-heading h2,
.contact-layout h2,
.product-copy h2,
.included-block h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.18;
}

.section-heading p,
.contact-layout p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.left-heading {
    margin-inline: 0;
    text-align: left;
}

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

.price-card {
    position: relative;
    display: flex;
    min-height: 535px;
    flex-direction: column;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.price-card.is-featured {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-size: 12px;
    font-weight: 650;
}

.price-card-head h3 {
    margin: 4px 0 6px;
    font-size: 30px;
    line-height: 1.2;
}

.price-card-head p,
.price-note {
    margin: 0;
    color: var(--muted);
}

.price {
    margin-top: 34px;
    font-size: 50px;
    font-weight: 750;
    line-height: 1;
}

.price span,
.buy-price span {
    margin-right: 3px;
    font-size: 22px;
    vertical-align: top;
}

.price small {
    margin-left: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.price-note {
    margin-top: 9px;
    font-size: 14px;
}

.feature-list,
.included-list {
    display: grid;
    gap: 13px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 15px;
}

.feature-list li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--ink);
    font-weight: 700;
}

.price-card > .button {
    margin-top: auto;
}

.service-band {
    border-block: 1px solid var(--line);
    background: var(--surface-soft);
}

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

.service-grid > div {
    display: grid;
    gap: 4px;
    min-height: 118px;
    align-content: center;
    padding: 20px 28px;
}

.service-grid > div + div {
    border-left: 1px solid var(--line);
}

.service-grid strong {
    font-size: 16px;
}

.service-grid span {
    color: var(--muted);
    font-size: 14px;
}

.steps {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ink);
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.steps > li > span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 21px;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.guide-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 100px;
}

.guide-steps {
    border-top: 1px solid var(--ink);
}

.guide-steps > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 18px;
    align-items: start;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.guide-steps span {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.guide-steps span b {
    display: block;
    font: inherit;
    line-height: 1;
    transform: translateY(-0.5px);
}

.guide-steps p {
    margin: 2px 0 0;
}

.contact-section {
    border-bottom: 1px solid var(--line);
}

.contact-layout {
    align-items: center;
}

.qr-wrap {
    justify-self: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.qr-wrap img {
    width: 176px;
    aspect-ratio: 1;
    object-fit: cover;
}

.qr-wrap span {
    display: block;
    margin-top: 11px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    padding: 48px 0 24px;
    background: white;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.footer-brand p {
    margin: 10px 0 0 49px;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 28px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    color: #929297;
    font-size: 12px;
}

/* Product */
.product-page {
    min-height: 800px;
    padding: 48px 0 112px;
    background: var(--surface-soft);
}

.back-link {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 14px;
}

.back-link:hover {
    color: var(--ink);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.72fr);
    gap: 42px;
    align-items: start;
}

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

.product-visual {
    display: grid;
    min-height: 570px;
    place-items: center;
    padding: 64px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: white;
}

.membership-card {
    display: flex;
    width: min(100%, 530px);
    aspect-ratio: 1.58;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    border-radius: 8px;
    background: #111214;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.19);
    color: white;
}

.membership-pro {
    background: #333438;
}

.membership-pro-max {
    background: #171719;
    box-shadow: inset 0 0 0 1px #66666c, 0 24px 70px rgba(0, 0, 0, 0.2);
}

.membership-top,
.membership-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.membership-top img {
    border: 1px solid #47484b;
}

.membership-top span,
.membership-bottom {
    color: #c9c9cc;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
}

.membership-name {
    font-size: 30px;
    line-height: 1.2;
}

.membership-name strong {
    font-size: 50px;
}

.buy-panel {
    position: sticky;
    top: 108px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.buy-status {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: var(--success);
    font-size: 13px;
    font-weight: 650;
}

.buy-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-bg);
}

.buy-panel h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.buy-panel > p {
    margin: 11px 0 0;
    color: var(--muted);
}

.buy-price {
    margin-top: 30px;
    font-size: 50px;
    font-weight: 750;
    line-height: 1;
}

.buy-price small {
    margin-left: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.buy-panel .buy-price-note {
    margin-top: 10px;
    font-size: 13px;
}

.buy-divider {
    height: 1px;
    margin: 30px 0 22px;
    background: var(--line);
}

.delivery-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

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

.delivery-payment {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.delivery-payment img {
    width: 20px;
    height: 20px;
}

.buy-panel > .button-dark {
    margin-top: 24px;
}

.buy-panel > .button-quiet {
    margin-top: 10px;
}

.buy-panel .buy-footnote {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.product-copy,
.included-block {
    padding: 86px 0 10px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--ink);
}

.promise-grid > div {
    display: grid;
    gap: 5px;
    padding: 26px 22px 26px 0;
    border-bottom: 1px solid var(--line);
}

.promise-grid > div:nth-child(even) {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.promise-grid strong {
    font-size: 16px;
}

.promise-grid span {
    color: var(--muted);
    font-size: 14px;
}

.included-block {
    padding-top: 80px;
}

.included-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
}

.included-list li {
    display: flex;
    gap: 11px;
    align-items: center;
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.included-list li span {
    font-weight: 800;
}

.buy-dialog {
    width: min(calc(100% - 32px), 540px);
    max-height: min(90vh, 760px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
    overflow: auto;
}

.mobile-purchase-bar {
    display: none;
}

.buy-dialog::backdrop {
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(5px);
}

.buy-dialog.is-open {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
}

.buy-form {
    padding: 30px;
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dialog-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
}

.dialog-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.dialog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0;
    padding: 19px 0;
    border-block: 1px solid var(--line);
}

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

.dialog-summary strong {
    font-size: 27px;
}

.field-label {
    display: block;
    margin: 19px 0 8px;
    font-size: 14px;
    font-weight: 650;
}

.text-input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #c8c8cd;
    border-radius: 6px;
    outline: none;
    background: white;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.field-help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.payment-fieldset {
    display: block;
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.payment-title {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 650;
}

.payment-method-static {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px var(--ink);
}

.payment-method-static .alipay-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.payment-method-static > span {
    display: grid;
    gap: 1px;
}

.payment-method-static em {
    margin-left: auto;
    color: var(--success);
    font-size: 12px;
    font-style: normal;
    font-weight: 650;
}

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

.payment-method-static small,
.payment-help {
    color: var(--muted);
    font-size: 12px;
}

.payment-help {
    margin: 7px 0 0;
}

.payment-fieldset legend {
    grid-column: 1 / -1;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 650;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option > span {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 650;
}

.payment-option input:checked + span {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.pay-mark {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 5px;
    background: #111;
    color: white;
    font-size: 12px;
    font-style: normal;
}

.pay-mark-wx {
    background: var(--success);
}

.confirm-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 22px 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
}

.confirm-line input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 2px 0 0;
    accent-color: var(--ink);
}

.form-error,
.notice {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #f2c8c5;
    border-radius: 6px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 13px;
}

.notice-success {
    border-color: #baddc7;
    background: var(--success-bg);
    color: var(--success);
}

/* Orders */
.account-page,
.order-page {
    min-height: 650px;
    padding: 92px 0 120px;
    background: var(--surface-soft);
}

.account-shell {
    max-width: 560px;
}

.account-heading {
    margin-bottom: 36px;
}

.account-heading h1,
.order-title-row h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.15;
}

.account-heading p,
.order-title-row p {
    margin: 13px 0 0;
    color: var(--muted);
}

.query-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.query-form .button {
    margin-top: 24px;
}

.account-help {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.order-shell {
    max-width: 860px;
}

.order-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.status-pill,
.table-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-success,
.status-delivered {
    background: var(--success-bg);
    color: var(--success);
}

.status-warning,
.status-paid_waiting_stock {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-muted,
.status-closed {
    background: #ededf0;
    color: #67676d;
}

.status-pending {
    background: #f1f1f3;
    color: #444448;
}

.card-delivery,
.order-details {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.card-delivery {
    margin-bottom: 18px;
    border-color: #baddc7;
}

.delivery-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.delivery-heading strong {
    color: var(--success);
    font-size: 13px;
}

.code-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 62px;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: #fafafa;
}

.code-box code {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 15px;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.code-box button {
    min-width: 82px;
    border: 0;
    background: var(--ink);
    color: white;
    cursor: pointer;
    font-weight: 650;
}

.card-delivery p {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.order-details h2 {
    margin: 0 0 15px;
    font-size: 20px;
}

.order-details dl {
    margin: 0;
}

.order-details dl > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}

.order-details dt {
    color: var(--muted);
}

.order-details dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

/* Admin */
.admin-body,
.admin-login-body {
    min-height: 100vh;
    background: #f6f7f8;
}

.admin-shell {
    width: min(calc(100% - 40px), var(--admin-shell));
    margin-inline: auto;
}

.admin-header {
    height: 72px;
    border-bottom: 1px solid var(--line);
    background: white;
}

.admin-header-inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.admin-brand {
    font-size: 16px;
}

.admin-brand > span {
    display: grid;
    gap: 3px;
}

.admin-brand small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    font-size: 13px;
}

.admin-user button {
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.admin-nav {
    border-bottom: 1px solid var(--line);
    background: white;
}

.admin-nav .admin-shell {
    display: flex;
    gap: 30px;
}

.admin-nav a {
    padding: 16px 3px 14px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.admin-main {
    padding: 38px 0 70px;
}

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

.admin-page-heading span {
    color: var(--muted);
    font-size: 13px;
}

.admin-page-heading h1 {
    margin: 3px 0 0;
    font-size: 30px;
    line-height: 1.25;
}

.admin-page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

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

.metric-grid article {
    display: grid;
    min-height: 142px;
    align-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

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

.metric-grid strong {
    font-size: 30px;
    line-height: 1.1;
}

.metric-grid small {
    color: #99999e;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(310px, 0.78fr);
    gap: 14px;
    margin-top: 14px;
}

.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.panel-head {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    margin: 0;
    font-size: 16px;
}

.panel-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.panel-head a {
    font-size: 13px;
    font-weight: 650;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    height: 54px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
}

.admin-table th {
    background: #fafafa;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover td {
    background: #fcfcfc;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.empty-cell {
    height: 150px !important;
    color: var(--muted);
    text-align: center !important;
}

.inventory-summary {
    padding-bottom: 5px;
}

.inventory-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
    margin: 0 20px;
    border-bottom: 1px solid var(--line-soft);
}

.inventory-row:last-child {
    border-bottom: 0;
}

.inventory-row > div {
    display: grid;
    gap: 4px;
}

.inventory-row strong {
    font-size: 14px;
}

.inventory-row span {
    color: var(--muted);
    font-size: 12px;
}

.inventory-row b {
    font-size: 24px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
}

.filter-tabs a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.filter-tabs a.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

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

.stock-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.stock-grid article > div {
    display: grid;
}

.stock-grid article > div > span {
    font-size: 14px;
    font-weight: 650;
}

.stock-grid article > div > strong {
    margin-top: 15px;
    font-size: 35px;
    line-height: 1;
}

.stock-grid article > div > small {
    margin-top: 5px;
    color: var(--muted);
}

.stock-grid dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line-soft);
}

.stock-grid dl > div {
    display: grid;
    gap: 3px;
}

.stock-grid dt {
    color: var(--muted);
    font-size: 11px;
}

.stock-grid dd {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}

.import-panel {
    max-width: 860px;
}

.import-form {
    padding: 5px 22px 24px;
}

.card-textarea {
    min-height: 230px;
    resize: vertical;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
}

.import-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.import-actions span {
    color: var(--muted);
    font-size: 12px;
}

.admin-login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 16px;
}

.admin-login-shell {
    width: min(100%, 430px);
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.admin-login-brand > div {
    display: grid;
}

.admin-login-brand strong {
    font-size: 19px;
}

.admin-login-brand span {
    color: var(--muted);
    font-size: 13px;
}

.admin-login-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.admin-login-form .field-label:first-of-type {
    margin-top: 0;
}

.admin-login-form .button {
    margin-top: 25px;
}

.admin-back {
    display: block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        gap: 24px;
    }

    .header-contact {
        display: none;
    }

    .pricing-grid {
        gap: 12px;
    }

    .price-card {
        padding: 26px;
    }

    .product-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.75fr);
        gap: 20px;
    }

    .product-visual {
        min-height: 480px;
        padding: 38px;
    }

    .buy-panel {
        padding: 28px;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .site-header {
        height: 68px;
    }

    .brand {
        font-size: 17px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .nav-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        gap: 6px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 21px;
        height: 1.5px;
        background: var(--ink);
        transition: transform 160ms ease;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .site-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        gap: 0;
        padding: 8px 16px 18px;
        border-bottom: 1px solid var(--line);
        background: white;
        box-shadow: 0 18px 28px rgba(0, 0, 0, 0.06);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 14px 7px;
        border-bottom: 1px solid var(--line-soft);
    }

    .home-hero {
        min-height: 560px;
        padding: 68px 0 44px;
    }

    .hero-content h1 {
        font-size: 47px;
    }

    .hero-product-title {
        font-size: 30px;
    }

    .hero-content > p:not(.hero-product-title) {
        max-width: 420px;
        font-size: 18px;
    }

    .hero-assurances span {
        width: 50%;
        padding: 8px 6px;
    }

    .hero-assurances span + span::before {
        display: none;
    }

    .section {
        padding: 78px 0;
    }

    .section-heading h2,
    .contact-layout h2,
    .product-copy h2,
    .included-block h2 {
        font-size: 34px;
    }

    .pricing-grid,
    .guide-layout,
    .contact-layout,
    .product-layout {
        grid-template-columns: 1fr;
    }

    .price-card {
        min-height: auto;
    }

    .price-card .button {
        margin-top: 4px;
    }

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

    .service-grid > div + div {
        border-left: 0;
    }

    .service-grid > div:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .service-grid > div:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .guide-layout,
    .contact-layout {
        gap: 42px;
    }

    .qr-wrap {
        justify-self: start;
    }

    .product-page {
        padding: 28px 0 80px;
    }

    .product-visual {
        min-height: 430px;
    }

    .buy-panel {
        position: static;
        grid-row: 1;
    }

    .product-main {
        grid-row: 2;
    }

    .product-copy,
    .included-block {
        padding-top: 64px;
    }

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

@media (max-width: 560px) {
    .shell,
    .admin-shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-product-title {
        margin-bottom: 14px;
        font-size: 27px;
    }

    .hero-content > p:not(.hero-product-title) {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        gap: 9px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-heading h2,
    .contact-layout h2,
    .product-copy h2,
    .included-block h2,
    .account-heading h1,
    .order-title-row h1 {
        font-size: 31px;
    }

    .price-card {
        padding: 25px;
    }

    .service-grid > div {
        min-height: 106px;
        padding: 17px;
    }

    .steps li {
        grid-template-columns: 48px 1fr;
        gap: 10px;
    }

    .footer-inner,
    .order-title-row,
    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;
    }

    .footer-brand p {
        margin-left: 0;
    }

    .product-visual {
        min-height: 315px;
        padding: 22px;
    }

    .membership-card {
        padding: 23px;
    }

    .membership-top img {
        width: 38px;
        height: 38px;
    }

    .membership-name {
        font-size: 22px;
    }

    .membership-name strong {
        font-size: 36px;
    }

    .membership-bottom {
        font-size: 9px;
    }

    .promise-grid,
    .included-list {
        grid-template-columns: 1fr;
    }

    .promise-grid > div:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .buy-form,
    .query-form,
    .card-delivery,
    .order-details {
        padding: 22px;
    }

    .payment-fieldset {
        grid-template-columns: 1fr;
    }

    .account-page,
    .order-page {
        padding: 60px 0 80px;
    }

    .order-details dl > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .order-details dd {
        text-align: left;
    }

    .order-actions {
        display: grid;
    }

    .admin-header {
        height: 66px;
    }

    .admin-brand small,
    .admin-user > span {
        display: none;
    }

    .admin-nav .admin-shell {
        gap: 19px;
        overflow-x: auto;
    }

    .admin-nav a {
        white-space: nowrap;
    }

    .admin-main {
        padding-top: 28px;
    }

    .metric-grid,
    .stock-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid article {
        min-height: 126px;
    }

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

    .import-actions .button {
        width: 100%;
    }
}

/* Admin v6.5: compact inventory and mobile-first operations. */
.admin-stock-overview {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    max-width: 860px;
    min-height: 116px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.admin-stock-primary {
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 22px 26px;
    border-right: 1px solid #d9ebe0;
    background: #f0f8f3;
    color: var(--ink);
}

.admin-stock-primary > span {
    color: #52705f;
    font-size: 12px;
}

.admin-stock-primary > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-stock-primary strong {
    color: #137443;
    font-size: 38px;
    line-height: 1;
}

.admin-stock-primary small {
    color: #52705f;
    font-size: 12px;
}

.admin-stock-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    margin: 0;
    padding: 22px 10px;
}

.admin-stock-details > div {
    display: grid;
    gap: 7px;
    padding: 4px 22px;
    border-left: 1px solid var(--line-soft);
}

.admin-stock-details > div:first-child {
    border-left: 0;
}

.admin-stock-details dt {
    color: var(--muted);
    font-size: 12px;
}

.admin-stock-details dd {
    margin: 0;
    font-size: 23px;
    font-weight: 720;
    line-height: 1.1;
}

.import-panel {
    max-width: 860px;
}

.import-form {
    padding: 18px 20px 20px;
}

.card-textarea {
    height: 164px;
    min-height: 140px;
    max-height: 360px;
}

.import-actions {
    margin-top: 14px;
}

.import-actions .button {
    min-width: 126px;
}

@media (max-width: 700px) {
    .admin-shell {
        width: min(calc(100% - 24px), var(--admin-shell));
    }

    .admin-header {
        height: 60px;
    }

    .admin-brand img {
        width: 32px;
        height: 32px;
    }

    .admin-brand strong {
        font-size: 14px;
    }

    .admin-brand small,
    .admin-user > span {
        display: none;
    }

    .admin-user {
        gap: 0;
    }

    .admin-user button {
        min-height: 40px;
        padding: 7px 13px;
    }

    .admin-nav .admin-shell {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .admin-nav a {
        display: flex;
        min-height: 47px;
        align-items: center;
        justify-content: center;
        padding: 10px 4px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .admin-nav .admin-front-link {
        display: none;
    }

    .admin-main {
        padding: 22px 0 44px;
    }

    .admin-page-heading {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .admin-page-heading h1 {
        font-size: 25px;
    }

    .admin-page-heading > p {
        display: none;
    }

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

    .metric-grid article {
        min-height: 88px;
        padding: 14px;
    }

    .metric-grid strong {
        font-size: 24px;
    }

    .metric-grid small {
        display: none;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-tabs {
        margin: 0 -12px 12px;
        padding: 0 12px;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tabs a {
        min-height: 40px;
        padding: 9px 13px;
    }

    .admin-recent,
    .admin-orders-panel {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .admin-recent .panel-head {
        padding: 10px 2px;
        border-bottom: 0;
    }

    .admin-recent .table-wrap,
    .admin-orders-panel .table-wrap {
        overflow: visible;
    }

    .admin-recent .admin-table,
    .admin-orders-panel .admin-table,
    .admin-recent .admin-table tbody,
    .admin-orders-panel .admin-table tbody {
        display: block;
        width: 100%;
        white-space: normal;
    }

    .admin-recent .admin-table thead,
    .admin-orders-panel .admin-table thead {
        display: none;
    }

    .admin-recent .admin-table tr,
    .admin-orders-panel .admin-table tr {
        display: grid;
        gap: 9px;
        margin-bottom: 9px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .admin-recent .admin-table td,
    .admin-orders-panel .admin-table td {
        display: flex;
        width: 100%;
        min-width: 0;
        height: auto;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .admin-recent .admin-table td::before,
    .admin-orders-panel .admin-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted);
        font-family: inherit;
        font-size: 12px;
        font-weight: 400;
    }

    .admin-recent .admin-table td.mono,
    .admin-orders-panel .admin-table td.mono {
        align-items: flex-start;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line-soft);
        font-size: 11px;
    }

    .admin-recent .admin-table td.admin-mobile-optional,
    .admin-orders-panel .admin-table td.admin-mobile-optional {
        display: none;
    }

    .admin-recent .admin-table .empty-cell,
    .admin-orders-panel .admin-table .empty-cell {
        display: block;
        min-height: 96px;
        padding-top: 34px;
        text-align: center;
    }

    .admin-recent .admin-table .empty-cell::before,
    .admin-orders-panel .admin-table .empty-cell::before {
        display: none;
    }

    .inventory-summary .panel-head {
        padding-inline: 15px;
    }

    .inventory-row {
        min-height: 64px;
        margin-inline: 15px;
    }

    .admin-stock-overview {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .admin-stock-primary {
        min-height: 96px;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid #d9ebe0;
    }

    .admin-stock-primary > div {
        justify-content: flex-end;
    }

    .admin-stock-primary strong {
        font-size: 34px;
    }

    .admin-stock-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px 8px;
    }

    .admin-stock-details > div {
        padding: 2px 16px;
    }

    .admin-stock-total {
        display: none !important;
    }

    .import-panel .panel-head {
        padding: 13px 15px;
    }

    .import-form {
        padding: 15px;
    }

    .card-textarea {
        height: 150px;
        min-height: 130px;
        font-size: 16px;
    }

    .import-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .import-actions .button {
        width: 100%;
        min-height: 46px;
    }
}

/* Phone layout */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }

    body {
        overflow-x: hidden;
    }

    .shell,
    .admin-shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .site-header {
        height: 62px;
    }

    .brand {
        gap: 9px;
        font-size: 16px;
    }

    .brand img {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        margin-right: -8px;
    }

    .nav-toggle:focus-visible {
        border-radius: 6px;
        outline: 2px solid var(--ink);
        outline-offset: -5px;
    }

    .site-nav {
        top: 62px;
        padding: 6px 16px calc(18px + env(safe-area-inset-bottom));
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    }

    .site-nav a {
        min-height: 49px;
        padding: 13px 4px;
        font-size: 15px;
    }

    .home-hero {
        min-height: auto;
        padding: 48px 0 38px;
    }

    .hero-product-title {
        margin-bottom: 12px;
        font-size: 26px;
    }

    .hero-content h1 {
        font-size: 40px;
        line-height: 1.12;
    }

    .hero-content > p:not(.hero-product-title) {
        max-width: 340px;
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 26px;
    }

    .hero-actions .button {
        width: 100%;
        min-height: 50px;
        padding-inline: 12px;
    }

    .hero-assurances {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
        margin-top: 30px;
        padding-top: 14px;
        border-top: 1px solid var(--line-soft);
        text-align: left;
    }

    .hero-assurances span {
        display: flex;
        width: auto;
        align-items: center;
        gap: 7px;
        padding: 8px 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-assurances span::before,
    .hero-assurances span + span::before {
        position: static;
        display: block;
        width: auto;
        height: auto;
        flex: 0 0 auto;
        border-radius: 0;
        background: none;
        color: var(--ink);
        content: "✓";
        font-size: 12px;
        font-weight: 800;
        transform: none;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading,
    .left-heading {
        max-width: none;
        margin: 0 0 28px;
        text-align: left;
    }

    .section-heading h2,
    .contact-layout h2,
    .product-copy h2,
    .included-block h2,
    .account-heading h1,
    .order-title-row h1 {
        font-size: 30px;
        line-height: 1.22;
    }

    .section-heading p,
    .contact-layout p {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.75;
    }

    #pricing {
        overflow: hidden;
    }

    .pricing-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-columns: min(84vw, 332px);
        grid-auto-flow: column;
        gap: 12px;
        margin-inline: -16px;
        padding: 0 16px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .price-card {
        min-height: 458px;
        padding: 24px;
        scroll-snap-align: start;
    }

    .price-card-head h3 {
        font-size: 29px;
    }

    .price {
        margin-top: 28px;
        font-size: 46px;
    }

    .feature-list {
        gap: 11px;
        margin: 27px 0 24px;
    }

    .price-card .button {
        min-height: 50px;
        margin-top: auto;
    }

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

    .service-grid > div {
        min-height: 96px;
        padding: 15px 12px;
    }

    .service-grid strong {
        font-size: 14px;
    }

    .service-grid span {
        font-size: 12px;
        line-height: 1.55;
    }

    .steps {
        border-top-color: var(--line);
    }

    .steps li {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 14px;
        padding: 24px 0;
    }

    .steps > li > span {
        display: grid;
        width: 32px;
        height: 32px;
        place-items: center;
        border: 1px solid var(--ink);
        border-radius: 50%;
        color: var(--ink);
        font-size: 11px;
        line-height: 1;
    }

    .steps h3 {
        margin-bottom: 5px;
        font-size: 18px;
    }

    .steps p {
        font-size: 14px;
        line-height: 1.7;
    }

    .guide-layout,
    .contact-layout {
        gap: 24px;
    }

    .guide-steps > div {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding: 20px 0;
    }

    .guide-steps span {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .guide-steps p {
        margin-top: 0;
        font-size: 14px;
        line-height: 1.75;
    }

    .contact-section {
        padding-bottom: 56px;
    }

    .qr-wrap {
        display: grid;
        width: 100%;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        justify-self: stretch;
        gap: 18px;
        padding: 14px;
        text-align: left;
    }

    .qr-wrap img {
        width: 112px;
    }

    .qr-wrap span {
        margin-top: 0;
        color: var(--ink);
        font-size: 14px;
        font-weight: 650;
    }

    .site-footer {
        padding: 36px 0 20px;
    }

    .footer-inner {
        gap: 26px;
    }

    .footer-links {
        width: 100%;
        gap: 12px 18px;
    }

    .footer-bottom {
        margin-top: 26px;
    }

    .product-page {
        padding: 20px 0 calc(104px + env(safe-area-inset-bottom));
    }

    .back-link {
        margin-bottom: 16px;
    }

    .product-layout {
        gap: 36px;
    }

    .buy-panel {
        padding: 24px;
        box-shadow: none;
    }

    .buy-status {
        margin-bottom: 17px;
    }

    .buy-panel h1 {
        font-size: 30px;
    }

    .buy-price {
        margin-top: 22px;
        font-size: 46px;
    }

    .buy-price small {
        display: inline-block;
        margin-left: 7px;
    }

    .buy-divider {
        margin: 24px 0 20px;
    }

    .delivery-row {
        gap: 12px;
        margin-bottom: 13px;
    }

    .buy-panel > .button-dark {
        display: none;
    }

    .buy-panel > .button-quiet {
        min-height: 48px;
        margin-top: 22px;
    }

    .buy-panel .buy-footnote {
        margin-top: 14px;
        text-align: left;
    }

    .product-visual {
        min-height: auto;
        padding: 16px;
    }

    .membership-card {
        padding: 22px;
    }

    .product-copy,
    .included-block {
        padding-top: 52px;
    }

    .promise-grid {
        margin-top: 28px;
    }

    .promise-grid > div {
        padding: 20px 0;
    }

    .included-list {
        margin-top: 26px;
    }

    .mobile-purchase-bar {
        position: fixed;
        z-index: 75;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        min-height: 76px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: saturate(180%) blur(18px);
    }

    .mobile-purchase-bar > div {
        display: grid;
        gap: 1px;
        min-width: 0;
    }

    .mobile-purchase-bar span {
        color: var(--muted);
        font-size: 11px;
        white-space: nowrap;
    }

    .mobile-purchase-bar strong {
        font-size: 22px;
        line-height: 1.15;
    }

    .mobile-purchase-bar .button {
        min-width: 154px;
        min-height: 50px;
        padding-inline: 18px;
    }

    .buy-dialog {
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        max-height: min(88dvh, 720px);
        margin: 0;
        border-radius: 14px 14px 0 0;
    }

    .buy-dialog::backdrop {
        background: rgba(0, 0, 0, 0.48);
        backdrop-filter: none;
    }

    .buy-form {
        padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    }

    .dialog-head h2 {
        font-size: 23px;
    }

    .dialog-close {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .dialog-summary {
        margin: 18px 0;
        padding: 15px 0;
    }

    .dialog-summary strong {
        font-size: 25px;
    }

    .text-input {
        min-height: 52px;
        font-size: 16px;
    }

    .payment-fieldset {
        margin-top: 18px;
    }

    .confirm-line {
        margin: 18px 0;
        line-height: 1.6;
    }

    .account-page,
    .order-page {
        min-height: calc(100vh - 62px);
        padding: 38px 0 72px;
    }

    .account-heading {
        margin-bottom: 26px;
    }

    .query-form,
    .card-delivery,
    .order-details {
        padding: 20px;
        box-shadow: none;
    }

    .query-form .button {
        min-height: 52px;
    }

    .account-help {
        text-align: left;
        line-height: 1.7;
    }

    .order-title-row {
        gap: 14px;
        margin-bottom: 28px;
    }

    .delivery-heading {
        gap: 12px;
    }

    .code-box {
        grid-template-columns: 1fr;
    }

    .code-box button {
        min-height: 46px;
    }

    .order-actions {
        gap: 9px;
    }

    .order-actions .button {
        width: 100%;
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Admin v6: compact Plus-only operations. */
.admin-header {
    height: 64px;
}

.admin-nav .admin-shell {
    gap: 26px;
}

.admin-nav a {
    padding: 13px 3px 11px;
}

.admin-main {
    padding: 28px 0 58px;
}

.admin-page-heading {
    margin-bottom: 20px;
}

.admin-page-heading h1 {
    font-size: 27px;
}

.metric-grid {
    gap: 12px;
}

.metric-grid article {
    min-height: 112px;
    padding: 18px;
}

.metric-grid strong {
    font-size: 27px;
}

.admin-dashboard-grid {
    gap: 12px;
    margin-top: 12px;
}

.panel-head {
    min-height: 52px;
    padding: 11px 17px;
}

.admin-table th,
.admin-table td {
    height: 48px;
    padding: 9px 15px;
}

.inventory-row {
    min-height: 68px;
    margin-inline: 17px;
}

.stock-summary-panel,
.import-panel {
    max-width: 860px;
}

.stock-summary-panel {
    margin-bottom: 12px;
}

.stock-summary-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 20px;
}

.stock-summary-metrics > div {
    display: grid;
    gap: 7px;
    padding-inline: 18px;
    border-left: 1px solid var(--line-soft);
}

.stock-summary-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.stock-summary-metrics dt {
    color: var(--muted);
    font-size: 12px;
}

.stock-summary-metrics dd {
    margin: 0;
    font-size: 27px;
    font-weight: 720;
}

.card-textarea {
    min-height: 190px;
}

.import-panel > .notice {
    margin: 14px 20px 0;
}

.recharge-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f7f7f8;
}

.recharge-entry > div {
    display: grid;
    gap: 5px;
}

.recharge-entry span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.recharge-entry .button {
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .admin-main {
        padding-top: 22px;
    }

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

    .metric-grid article {
        min-height: 104px;
        padding: 15px;
    }

    .metric-grid strong {
        font-size: 24px;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stock-summary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
        padding: 18px;
    }

    .stock-summary-metrics > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .recharge-entry {
        align-items: stretch;
        flex-direction: column;
        padding: 15px;
    }

    .recharge-entry .button {
        width: 100%;
    }
}

/* Admin v6.15: balanced inventory workspace. */
.admin-cards-heading,
.admin-cards-layout {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
}

/* Storefront v6.18: focused order lookup, delivery and inline tutorial. */
.order-result-page {
    padding-top: 68px;
}

.order-result-page .order-shell {
    max-width: 1080px;
}

.order-result-head {
    align-items: center;
    margin-bottom: 28px;
}

.order-result-head .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
}

.order-result-head h1 {
    font-size: 42px;
}

.order-delivery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 14px;
}

.order-key-panel,
.order-site-panel {
    display: flex;
    min-width: 0;
    min-height: 270px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.order-key-panel {
    border-color: #b9ddc6;
}

.order-panel-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-panel-heading > div {
    display: grid;
    gap: 5px;
}

.order-panel-heading span {
    color: var(--muted);
    font-size: 12px;
}

.order-panel-heading strong {
    font-size: 19px;
    line-height: 1.35;
}

.order-ready-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success) !important;
    font-weight: 700;
    line-height: 1;
}

.order-code-value {
    display: flex;
    min-height: 92px;
    align-items: center;
    margin: 20px 0 16px;
    padding: 18px;
    border: 1px solid #d9e9df;
    border-radius: 7px;
    background: #f4faf6;
}

.order-code-value code {
    width: 100%;
    color: #111214;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
    user-select: all;
}

.order-key-panel .button,
.order-site-panel .button {
    min-height: 50px;
    margin-top: auto;
}

.order-site-url {
    display: block;
    margin: 25px 0 18px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: #b7b7bb;
    text-underline-offset: 4px;
}

.order-site-url:hover {
    text-decoration-color: var(--ink);
}

.order-tutorial {
    margin-top: 16px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.order-section-heading > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.order-section-heading h2 {
    margin: 7px 0 0;
    font-size: 30px;
    line-height: 1.2;
}

.order-section-heading p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.order-tutorial-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid var(--ink);
    list-style: none;
}

.order-tutorial-list li {
    min-width: 0;
    padding: 24px 23px 4px;
    border-left: 1px solid var(--line);
}

.order-tutorial-list li:first-child {
    padding-left: 0;
    border-left: 0;
}

.order-step-number {
    display: block;
    margin-bottom: 28px;
    color: #9a9aa0;
    font-size: 26px;
    font-weight: 750;
    line-height: 1;
}

.order-tutorial-list h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.order-tutorial-list p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.order-tutorial-list a {
    display: inline-block;
    max-width: 100%;
    margin-top: 13px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-meta-panel {
    margin-top: 16px;
}

.order-meta-panel dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.order-meta-panel dl > div {
    display: block;
    min-width: 0;
    padding: 15px 18px;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
}

.order-meta-panel dl > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.order-meta-panel dd {
    margin-top: 8px;
    font-weight: 650;
    text-align: left;
}

@media (max-width: 820px) {
    .order-delivery-grid,
    .order-tutorial-list {
        grid-template-columns: 1fr;
    }

    .order-key-panel,
    .order-site-panel {
        min-height: 0;
    }

    .order-tutorial-list li,
    .order-tutorial-list li:first-child {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 0 16px;
        padding: 22px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .order-tutorial-list li:last-child {
        border-bottom: 0;
    }

    .order-step-number {
        grid-row: 1 / span 3;
        margin: 2px 0 0;
    }

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

    .order-meta-panel dl > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .order-result-page,
    .order-lookup-page {
        padding: 34px 0 64px;
    }

    .order-result-head {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .order-result-head h1 {
        font-size: 34px;
    }

    .order-key-panel,
    .order-site-panel,
    .order-tutorial,
    .order-meta-panel {
        padding: 19px;
    }

    .order-panel-heading strong {
        font-size: 17px;
    }

    .order-code-value {
        min-height: 82px;
        margin-top: 17px;
        padding: 15px;
    }

    .order-code-value code {
        font-size: 15px;
    }

    .order-section-heading h2 {
        font-size: 25px;
    }

    .order-tutorial-list {
        margin-top: 22px;
    }

    .order-tutorial-list li,
    .order-tutorial-list li:first-child {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0 11px;
        padding: 19px 0;
    }

    .order-step-number {
        font-size: 21px;
    }

    .order-tutorial-list h3 {
        font-size: 16px;
    }

    .order-meta-panel dl {
        grid-template-columns: 1fr;
    }

    .order-meta-panel dl > div,
    .order-meta-panel dl > div:first-child,
    .order-meta-panel dl > div:nth-child(3) {
        padding: 13px 0;
        border-left: 0;
    }
}

.admin-cards-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.admin-cards-layout .import-panel {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
}

.admin-cards-layout .admin-stock-overview {
    display: block;
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    min-height: 0;
    margin: 0;
}

.admin-cards-layout .admin-stock-primary {
    min-height: 126px;
    padding: 23px 24px;
    border-right: 0;
    border-bottom: 1px solid #d9ebe0;
}

.admin-cards-layout .admin-stock-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 19px 8px;
}

.admin-cards-layout .admin-stock-details > div {
    padding-inline: 16px;
}

.admin-cards-layout .card-textarea {
    height: 176px;
    min-height: 150px;
    max-height: 320px;
}

@media (max-width: 980px) {
    .admin-cards-heading,
    .admin-cards-layout {
        max-width: 760px;
    }

    .admin-cards-layout {
        grid-template-columns: 1fr;
    }

    .admin-cards-layout .admin-stock-overview,
    .admin-cards-layout .import-panel {
        grid-column: 1;
        grid-row: auto;
    }

    .admin-cards-layout .admin-stock-overview {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .admin-cards-layout .admin-stock-primary {
        min-height: 112px;
        border-right: 1px solid #d9ebe0;
        border-bottom: 0;
    }
}

@media (max-width: 700px) {
    .admin-cards-layout {
        gap: 12px;
    }

    .admin-cards-layout .admin-stock-overview {
        grid-template-columns: 1fr;
    }

    .admin-cards-layout .admin-stock-primary {
        min-height: 92px;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 17px 18px;
        border-right: 0;
        border-bottom: 1px solid #d9ebe0;
    }

    .admin-cards-layout .admin-stock-primary > div {
        justify-content: flex-end;
    }

    .admin-cards-layout .admin-stock-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 15px 7px;
    }

    .admin-cards-layout .admin-stock-total {
        display: none;
    }

    .admin-cards-layout .card-textarea {
        height: 148px;
        min-height: 128px;
    }
}

/* System v6.16: branded fallback page. */
.site-error-body {
    min-height: 100vh;
    background: #fff;
}

/* Storefront v6.19: sticky delivery details beside the recharge guide. */
.order-workspace {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    gap: 16px;
    align-items: start;
}

.order-workspace .order-delivery-grid {
    position: sticky;
    top: 88px;
    grid-template-columns: 1fr;
}

.order-workspace .order-key-panel,
.order-workspace .order-site-panel {
    min-height: 238px;
}

.order-workspace .order-tutorial {
    margin-top: 0;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
}

.order-workspace .order-tutorial-list {
    grid-template-columns: 1fr;
    gap: 10px;
    border-top: 0;
}

.order-workspace .order-tutorial-list li,
.order-workspace .order-tutorial-list li:first-child {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.order-workspace .order-tutorial-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.order-workspace .order-step-number {
    display: grid;
    width: 42px;
    height: 42px;
    grid-row: 1 / span 3;
    place-items: center;
    margin: 0;
    border-radius: 8px;
    background: #111214;
    color: white;
    font-size: 13px;
}

.order-workspace .order-tutorial-list h3 {
    font-size: 18px;
}

.order-workspace .order-tutorial-list p {
    margin-top: 6px;
}

.order-step-action {
    display: flex !important;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px !important;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7f7f8;
    text-decoration: none !important;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.order-step-action:hover {
    border-color: #aaaab0;
    background: #f1f1f3;
}

.order-step-action > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.order-step-action strong {
    font-size: 13px;
}

.order-step-action small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.order-step-action > img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

@media (max-width: 820px) {
    .order-workspace {
        grid-template-columns: 1fr;
    }

    .order-workspace .order-delivery-grid {
        position: static;
    }

    .order-workspace .order-tutorial {
        padding-top: 12px;
    }
}

@media (max-width: 560px) {
    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0 12px;
        padding: 16px;
    }

    .order-workspace .order-step-number {
        width: 38px;
        height: 38px;
    }

    .order-step-action {
        min-height: 50px;
    }
}

.site-error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 48px 24px;
}

.site-error-content {
    width: min(100%, 520px);
    text-align: center;
}

.site-error-content > img {
    width: 52px;
    height: 52px;
    margin: 0 auto 26px;
    border-radius: 12px;
}

.site-error-code {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.site-error-content h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
}

.site-error-content h1 + p {
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.site-error-content .button {
    min-width: 168px;
    margin-top: 30px;
}

@media (max-width: 640px) {
    .site-error-page {
        padding: 40px 20px;
    }

    .site-error-content h1 {
        font-size: 30px;
    }
}

/* Storefront v6.20: compact order workspace and semantic tutorial icons. */
.order-result-page {
    padding: 48px 0 96px;
}

.order-result-head {
    align-items: flex-start;
    margin-bottom: 24px;
}

.order-result-head > div {
    width: 100%;
}

.order-result-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-result-title-line h1 {
    font-size: 38px;
}

.order-result-title-line .status-pill {
    flex: 0 0 auto;
}

.order-workspace {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 24px;
}

.order-workspace .order-delivery-grid {
    gap: 12px;
}

.order-workspace .order-key-panel,
.order-workspace .order-site-panel {
    min-height: 0;
    padding: 18px;
}

.order-workspace .order-key-panel {
    min-height: 0;
}

.order-workspace .order-site-panel {
    min-height: 0;
}

.order-panel-heading strong {
    font-size: 16px;
}

.order-panel-heading-simple {
    align-items: center;
}

.order-code-value {
    min-height: 56px;
    margin: 13px 0 12px;
    padding: 11px 13px;
}

.order-code-value code {
    font-size: 14px;
}

.order-key-panel .button,
.order-site-panel .button {
    min-height: 44px;
}

.order-site-url {
    margin: 13px 0 14px;
    font-size: 14px;
}

.order-button-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.order-button-with-icon img {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.order-button-with-icon.button-dark img {
    filter: invert(1);
}

.order-workspace .order-tutorial {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.order-workspace .order-section-heading h2 {
    font-size: 28px;
}

.order-workspace .order-tutorial-list {
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid var(--line-soft);
}

.order-workspace .order-tutorial-list li,
.order-workspace .order-tutorial-list li:first-child {
    grid-template-columns: 42px minmax(0, 1fr) minmax(200px, 240px);
    gap: 0 15px;
    align-items: center;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
}

.order-workspace .order-tutorial-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.order-step-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: #f0f0f2;
}

.order-step-icon img {
    width: 20px;
    height: 20px;
}

.order-step-content {
    min-width: 0;
}

.order-step-label {
    display: block;
    margin-bottom: 4px;
    color: #8b8b91;
    font-size: 10px;
    font-weight: 700;
}

.order-workspace .order-tutorial-list h3 {
    font-size: 17px;
}

.order-workspace .order-tutorial-list p {
    margin-top: 5px;
}

.order-workspace .order-step-instruction {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.65;
}

.order-step-action {
    width: 100%;
    min-height: 50px;
    margin-top: 0 !important;
    background: #f7f7f8;
}

@media (max-width: 820px) {
    .order-workspace {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
    }

    .order-step-icon {
        grid-row: 1 / span 2;
    }

    .order-step-action {
        grid-column: 2;
        margin-top: 12px !important;
    }
}

@media (max-width: 560px) {
    .order-result-page {
        padding: 30px 0 64px;
    }

    .order-result-title-line {
        align-items: flex-start;
        gap: 9px;
    }

    .order-result-title-line h1 {
        font-size: 31px;
    }

    .order-workspace .order-key-panel,
    .order-workspace .order-site-panel,
    .order-workspace .order-tutorial {
        padding: 18px;
    }

    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0 11px;
        padding: 18px 0;
    }

    .order-step-icon {
        width: 36px;
        height: 36px;
    }

    .order-step-icon img {
        width: 18px;
        height: 18px;
    }

    .order-step-action {
        width: 100%;
    }
}

/* Storefront v6.22: use the order heading space for the tutorial. */
@media (min-width: 821px) {
    .order-result-page {
        padding: 34px 0 72px;
    }

    .order-result-page.has-delivery .order-shell {
        display: grid;
        max-width: 1180px;
        grid-template-columns: 340px minmax(0, 1fr);
        column-gap: 36px;
        align-items: start;
    }

    .order-result-head {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .order-workspace {
        display: contents;
    }

    .order-delivery-column {
        position: sticky;
        top: 88px;
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        margin-top: 24px;
    }

    .order-workspace .order-delivery-grid {
        position: static;
    }

    .order-workspace .order-tutorial {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .order-result-page.is-pending .order-shell {
        display: block;
        max-width: 680px;
    }
}

/* Storefront v6.24: balanced columns and aligned tutorial sections. */
@media (min-width: 821px) {
    .order-result-page {
        padding: 44px 0 76px;
    }

    .order-result-page.has-delivery .order-shell {
        max-width: 1200px;
        grid-template-columns: 380px minmax(0, 1fr);
        column-gap: 42px;
    }

    .order-result-head .eyebrow,
    .order-section-heading > span {
        min-height: 17px;
        margin: 0 0 8px;
        line-height: 17px;
    }

    .order-result-title-line h1 {
        font-size: 38px;
        line-height: 1.15;
    }

    .order-workspace .order-section-heading h2 {
        margin-top: 0;
        font-size: 34px;
        line-height: 1.15;
    }

    .order-delivery-column {
        margin-top: 30px;
    }
}

/* Storefront v6.25: symmetrical section headings and lightweight support. */
.order-result-page.has-delivery .order-result-head h1,
.order-workspace .order-section-heading h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

/* Storefront v6.26: single-purpose order lookup. */
.order-lookup-page {
    display: grid;
    min-height: 620px;
    place-items: center;
    padding: 64px 0 88px;
}

.order-lookup-shell {
    display: block;
    width: min(calc(100% - 40px), 540px);
    max-width: 540px;
}

.order-query-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.order-query-head {
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line-soft);
}

.order-query-head h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.order-query-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.order-query-card .query-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.order-query-card .field-label {
    margin-top: 23px;
}

.order-query-card .query-form .button {
    min-height: 52px;
    margin-top: 24px;
}

@media (max-width: 560px) {
    .order-lookup-page {
        min-height: calc(100svh - 62px);
        padding: 32px 0 58px;
    }

    .order-lookup-shell {
        width: min(calc(100% - 28px), 540px);
    }

    .order-query-card {
        padding: 23px 20px;
        box-shadow: none;
    }

    .order-query-head h1 {
        font-size: 28px;
    }
}

.order-workspace .order-tutorial-list {
    margin-top: 28px;
}

.order-tutorial-support {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 14px 2px 0;
    color: var(--muted);
    font-size: 12px;
}

.order-tutorial-support button {
    padding: 0;
    border: 0;
    border-bottom: 1px solid #96969c;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.order-tutorial-support button:hover {
    border-color: var(--ink);
}

@media (min-width: 821px) {
    .order-delivery-column {
        margin-top: 28px;
    }
}

@media (max-width: 640px) {
    .order-result-page.has-delivery .order-result-head h1,
    .order-workspace .order-section-heading h2 {
        font-size: 29px;
    }

    .order-tutorial-support {
        justify-content: flex-start;
        margin-top: 12px;
    }
}

.order-workspace .order-tutorial {
    padding: 0;
    border: 0;
    background: transparent;
}

.order-workspace .order-tutorial-list {
    margin-top: 30px;
    padding: 0 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035);
}

.order-workspace .order-tutorial-list li,
.order-workspace .order-tutorial-list li:first-child {
    grid-template-columns: 46px minmax(0, 1fr) minmax(220px, 260px);
    gap: 0 18px;
    min-height: 126px;
    padding: 25px 0;
}

.order-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.order-step-icon img {
    width: 21px;
    height: 21px;
}

.order-step-label {
    margin-bottom: 7px;
}

.order-workspace .order-step-instruction {
    font-size: 14px;
    line-height: 1.75;
}

.order-step-action {
    min-height: 56px;
    padding: 10px 14px;
    background: #f8f8f9;
}

.order-workspace .order-key-panel,
.order-workspace .order-site-panel {
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.order-workspace .order-key-panel {
    border-color: #c9e4d3;
}

.order-code-value {
    min-height: 66px;
    margin: 17px 0 15px;
    padding: 14px 15px;
}

.order-key-panel .button,
.order-site-panel .button {
    min-height: 50px;
}

.order-site-url {
    margin: 17px 0 18px;
    font-size: 15px;
}

@media (max-width: 820px) {
    .order-workspace .order-tutorial {
        padding: 0;
    }

    .order-workspace .order-tutorial-list {
        padding: 0 22px;
    }
}

@media (max-width: 640px) {
    .order-workspace .order-tutorial-list {
        margin-top: 22px;
        padding: 0 18px;
    }

    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0 13px;
        min-height: 0;
        padding: 22px 0;
    }

    .order-step-icon {
        width: 38px;
        height: 38px;
    }
}

/* Storefront v6.29: calmer order details and a practical inventory workspace. */
.order-result-page {
    color: #292a2e;
}

.order-result-page.has-delivery .order-result-head h1,
.order-workspace .order-section-heading h2 {
    color: #191a1d;
    font-weight: 720;
}

.order-workspace .order-delivery-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

/* Order delivery information should scroll with the rest of the page. */
.order-delivery-column,
.order-workspace .order-delivery-grid {
    position: static !important;
    top: auto !important;
}

.order-workspace .order-key-panel,
.order-workspace .order-site-panel {
    height: 100%;
    min-height: 0;
}

.order-panel-heading strong,
.order-site-url,
.order-step-action strong {
    color: #292a2e;
}

.order-code-value {
    min-height: 50px;
    margin: 14px 0;
    padding: 10px 14px;
    background: #f1f8f4;
}

.order-code-value code {
    color: #242529;
}

.order-workspace .order-tutorial-list {
    padding-inline: 34px;
}

.order-workspace .order-tutorial-list li,
.order-workspace .order-tutorial-list li:first-child {
    min-height: 146px;
    gap: 0 22px;
    padding: 32px 0;
}

.order-workspace .order-step-instruction {
    color: #45464d;
    font-weight: 500;
    line-height: 1.9;
}

.order-step-label,
.order-step-action small,
.order-tutorial-support {
    color: #77787f;
}

.order-tutorial-support button {
    color: #34353a;
}

.admin-body {
    color: #292a2e;
}

.admin-cards-heading,
.admin-cards-layout {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}

.admin-cards-heading {
    margin-bottom: 22px;
}

.admin-cards-heading h1,
.admin-cards-layout h2,
.admin-cards-layout dd {
    color: #191a1d;
}

.admin-cards-layout {
    grid-template-columns: 1fr;
    gap: 16px;
}

.admin-cards-layout .admin-stock-overview {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-color: #dedfe2;
    box-shadow: 0 8px 24px rgba(18, 19, 22, 0.035);
}

.admin-cards-layout .admin-stock-primary {
    min-height: 112px;
    padding: 20px 24px;
    border-right: 1px solid #d9ebe0;
    border-bottom: 0;
    background: #eef7f1;
}

.admin-cards-layout .admin-stock-primary strong {
    font-size: 34px;
}

.admin-cards-layout .admin-stock-details {
    display: contents;
}

.admin-cards-layout .admin-stock-details > div {
    min-height: 112px;
    align-content: center;
    gap: 9px;
    padding: 20px 24px;
    border-left: 1px solid var(--line-soft);
}

.admin-cards-layout .admin-stock-details > div:first-child {
    border-left: 0;
}

.admin-cards-layout .import-panel {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    box-shadow: 0 8px 24px rgba(18, 19, 22, 0.025);
}

.admin-cards-layout .import-panel .panel-head {
    min-height: 62px;
    padding: 14px 22px;
}

.admin-cards-layout .import-form {
    padding: 22px;
}

.admin-cards-layout .card-textarea {
    height: 136px;
    min-height: 112px;
    max-height: 260px;
    line-height: 1.7;
    background: #fbfbfc;
}

.admin-cards-layout .import-actions {
    margin-top: 16px;
}

.admin-cards-layout .import-actions .button {
    min-width: 132px;
    min-height: 42px;
    border-radius: 7px;
}

@media (max-width: 820px) {
    .order-workspace .order-tutorial-list {
        padding-inline: 24px;
    }

    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        min-height: 0;
        padding: 28px 0;
    }
}

@media (max-width: 760px) {
    .admin-cards-layout .admin-stock-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-cards-layout .admin-stock-primary,
    .admin-cards-layout .admin-stock-details > div {
        min-height: 96px;
        padding: 17px 18px;
    }

    .admin-cards-layout .admin-stock-primary {
        display: grid;
        grid-template-columns: 1fr;
        border-right: 1px solid #d9ebe0;
        border-bottom: 0;
    }

    .admin-cards-layout .admin-stock-primary > div {
        justify-content: flex-start;
    }

    .admin-cards-layout .admin-stock-details > div:nth-child(2),
    .admin-cards-layout .admin-stock-details > div:nth-child(3) {
        border-top: 1px solid var(--line-soft);
    }

    .admin-cards-layout .admin-stock-details > div:nth-child(2) {
        border-left: 0;
    }

    .admin-cards-layout .admin-stock-total {
        display: grid;
    }
}

@media (max-width: 560px) {
    .order-workspace .order-tutorial-list {
        padding-inline: 18px;
    }

    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        padding: 25px 0;
    }

    .order-workspace .order-step-instruction {
        line-height: 1.85;
    }

    .admin-cards-heading {
        margin-bottom: 18px;
    }

    .admin-cards-layout {
        gap: 12px;
    }

    .admin-cards-layout .admin-stock-primary,
    .admin-cards-layout .admin-stock-details > div {
        min-height: 88px;
        padding: 15px;
    }

    .admin-cards-layout .admin-stock-primary strong {
        font-size: 30px;
    }

    .admin-cards-layout .import-panel .panel-head,
    .admin-cards-layout .import-form {
        padding-inline: 17px;
    }

    .admin-cards-layout .card-textarea {
        height: 120px;
        min-height: 104px;
    }
}

/* Admin card inventory management */
.admin-health-strip,
.admin-cards-notice {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 16px;
}

.admin-health-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 13px 18px;
    border: 1px solid #d9dadd;
    border-radius: 8px;
    background: #fff;
    color: #4f5056;
    font-size: 13px;
}

.admin-health-strip.is-ready {
    border-color: #cce5d5;
    background: #f1f8f3;
    color: #087a43;
}

.admin-health-strip.is-ready strong {
    font-size: 14px;
}

.admin-health-strip.is-error {
    align-items: flex-start;
    border-color: #f0c8c5;
    background: #fff6f5;
    color: #a8241c;
}

.admin-health-strip.is-error div {
    display: grid;
    gap: 4px;
}

.admin-health-strip.is-error ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
}

.admin-card-list-panel {
    grid-column: 1;
    grid-row: 3;
    overflow: hidden;
}

.admin-card-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-card-filters {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e0e1e4;
    border-radius: 7px;
    background: #f5f5f6;
}

.admin-card-filters a {
    padding: 7px 12px;
    border-radius: 5px;
    color: #66676d;
    font-size: 13px;
    line-height: 1;
}

.admin-card-filters a.is-active {
    background: #fff;
    color: #191a1d;
    box-shadow: 0 1px 3px rgba(20, 21, 24, 0.09);
}

.admin-card-table-wrap {
    overflow-x: auto;
}

.admin-card-table {
    min-width: 920px;
}

.admin-card-table th:first-child,
.admin-card-table td:first-child {
    width: 74px;
}

.admin-card-code-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
}

.admin-card-code {
    max-width: 420px;
    overflow-wrap: anywhere;
    color: #303136;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
}

.admin-card-code.is-error {
    color: #b42318;
}

.admin-card-copy,
.admin-card-delete {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #d7d8dc;
    border-radius: 6px;
    background: #fff;
    color: #494a50;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.admin-card-copy:hover {
    border-color: #aeb0b6;
    color: #18191c;
}

.admin-card-delete {
    border-color: #ebc5c2;
    color: #a8241c;
}

.admin-card-delete:hover {
    border-color: #d9918b;
    background: #fff7f6;
}

.admin-card-protected {
    color: #929399;
    font-size: 12px;
}

.table-status.status-available {
    background: #e8f5ed;
    color: #087a43;
}

.table-status.status-reserved {
    background: #fff4dc;
    color: #8a5700;
}

.table-status.status-assigned {
    background: #eff0f2;
    color: #5e6067;
}

.admin-delete-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 18, 21, 0.2);
}

.admin-delete-dialog::backdrop {
    background: rgba(17, 18, 21, 0.45);
}

.admin-delete-dialog form {
    padding: 28px;
}

.admin-delete-dialog h2 {
    margin: 0;
    color: #202126;
    font-size: 22px;
}

.admin-delete-dialog p {
    margin: 10px 0 0;
    color: #6d6e74;
    font-size: 14px;
    line-height: 1.7;
}

.admin-delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.button-danger {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

@media (max-width: 760px) {
    .admin-health-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-card-list-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-card-filters {
        width: 100%;
        overflow-x: auto;
    }

    .admin-card-filters a {
        flex: 1 0 auto;
        text-align: center;
    }

    .admin-card-table {
        min-width: 0;
    }

    .admin-card-table,
    .admin-card-table tbody {
        display: block;
    }

    .admin-card-table thead {
        display: none;
    }

    .admin-card-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 18px;
        margin: 12px;
        padding: 17px;
        border: 1px solid #e0e1e4;
        border-radius: 8px;
        background: #fff;
    }

    .admin-card-table td,
    .admin-card-table td:first-child {
        display: grid;
        width: auto;
        gap: 6px;
        padding: 0;
        border: 0;
    }

    .admin-card-table td::before {
        content: attr(data-label);
        color: #8a8b91;
        font-size: 11px;
    }

    .admin-card-table td:nth-child(2),
    .admin-card-table .empty-cell {
        grid-column: 1 / -1;
    }

    .admin-card-code-wrap {
        min-width: 0;
    }

    .admin-card-code {
        flex: 1 1 auto;
        min-width: 0;
    }

    .admin-card-table .empty-cell::before {
        content: none;
    }
}

@media (max-width: 440px) {
    .admin-card-table tr {
        grid-template-columns: 1fr;
    }

    .admin-card-table td:nth-child(2) {
        grid-column: auto;
    }

    .admin-delete-dialog form {
        padding: 23px;
    }
}

/* Order tutorial: direct sequence numbers and stronger reading contrast. */
.order-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d7d8dc;
    border-radius: 8px;
    background: #f4f4f5;
    color: #28292d;
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.order-workspace .order-step-instruction {
    color: #303136;
    font-size: 16px;
    font-weight: 520;
    line-height: 1.9;
}

.order-step-action strong {
    color: #25262a;
    font-size: 15px;
}

.order-step-action small {
    color: #66686f;
    font-size: 12px;
}

@media (max-width: 640px) {
    .order-step-number {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .order-workspace .order-step-instruction {
        font-size: 15px;
        line-height: 1.85;
    }
}

/* Admin v6.35: compact navigation and inventory operations. */
.admin-header {
    height: auto;
    min-height: 68px;
}

.admin-header-inner {
    display: grid;
    grid-template-columns: minmax(230px, auto) minmax(0, 1fr) auto;
    gap: 28px;
    min-height: 68px;
}

.admin-brand {
    gap: 10px;
}

.admin-nav {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 4px;
    border: 0;
    background: transparent;
}

.admin-nav a,
.admin-nav a.is-active,
.admin-nav a:hover {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.admin-nav a {
    color: #66686f;
}

.admin-nav a:hover {
    background: #f5f5f6;
    color: #292a2e;
}

.admin-nav a.is-active {
    background: #eff0f2;
    color: #191a1d;
    font-weight: 650;
}

.admin-nav img {
    opacity: 0.68;
}

.admin-nav a.is-active img,
.admin-nav a:hover img {
    opacity: 1;
}

.admin-user {
    gap: 12px;
}

.admin-user button {
    min-height: 36px;
    border-radius: 6px;
}

.admin-main {
    padding-top: 30px;
}

.admin-cards-heading,
.admin-cards-layout,
.admin-cards-notice {
    max-width: 1320px;
}

.admin-cards-heading {
    margin-bottom: 16px;
}

.admin-cards-heading h1 {
    font-size: 29px;
}

.admin-cards-layout {
    gap: 12px;
}

.admin-cards-layout .admin-stock-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dedfe2;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.admin-cards-layout .admin-stock-primary,
.admin-cards-layout .admin-stock-details > div {
    min-height: 76px;
    align-content: center;
    gap: 5px;
    padding: 12px 20px;
    border: 0;
    border-left: 1px solid #e5e6e8;
    background: #fff;
}

.admin-cards-layout .admin-stock-primary {
    border-left: 0;
}

.admin-cards-layout .admin-stock-primary > span,
.admin-cards-layout .admin-stock-details dt {
    color: #73757c;
    font-size: 12px;
}

.admin-cards-layout .admin-stock-primary > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.admin-cards-layout .admin-stock-primary strong,
.admin-cards-layout .admin-stock-details dd {
    color: #25262a;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
}

.admin-cards-layout .admin-stock-primary small {
    color: #73757c;
    font-size: 12px;
}

.admin-cards-layout .admin-stock-details {
    display: contents;
}

.admin-cards-layout .import-panel {
    display: grid;
    grid-row: 2;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border-color: #dedfe2;
    box-shadow: none;
}

.admin-cards-layout .import-panel .panel-head {
    min-height: 0;
    align-items: center;
    padding: 18px 20px;
    border-right: 1px solid #e5e6e8;
    border-bottom: 0;
    background: #fafafa;
}

.admin-cards-layout .import-panel .panel-head h2 {
    font-size: 17px;
}

.admin-cards-layout .import-panel .panel-head p {
    margin-top: 5px;
    font-size: 12px;
}

.admin-cards-layout .import-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 14px;
    align-items: end;
    padding: 14px;
}

.admin-import-field {
    display: grid;
    gap: 7px;
}

.admin-cards-layout .admin-import-field .field-label {
    font-size: 12px;
}

.admin-cards-layout .card-textarea {
    height: 82px;
    min-height: 82px;
    max-height: 180px;
    padding: 12px 14px;
    background: #fbfbfc;
    line-height: 1.55;
}

.admin-cards-layout .import-actions {
    display: grid;
    gap: 8px;
    margin: 0;
}

.admin-cards-layout .import-actions span {
    color: #85868c;
    font-size: 11px;
    text-align: center;
}

.admin-cards-layout .import-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 6px;
}

.admin-card-list-panel {
    grid-row: 3;
    border-color: #dedfe2;
    box-shadow: none;
}

/* Admin v6.40: consistent Lucide navigation and action icons. */
.admin-nav svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    opacity: 0.72;
}

.admin-nav a:hover svg,
.admin-nav a.is-active svg {
    opacity: 1;
}

.admin-user button,
.admin-icon-button,
.admin-card-copy,
.admin-card-delete,
.admin-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.admin-user button svg,
.admin-icon-button svg,
.admin-card-copy svg,
.admin-card-delete svg,
.admin-back svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.admin-back {
    width: fit-content;
    margin-inline: auto;
}

.order-button-with-icon svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.order-button-with-icon.button-dark svg {
    color: #fff;
}

@media (max-width: 920px) {
    .admin-header-inner {
        gap: 16px;
    }

    .admin-nav a,
    .admin-nav a.is-active,
    .admin-nav a:hover {
        padding-inline: 9px;
    }

    .admin-nav svg {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }
}

@media (max-width: 760px) {
    .admin-header {
        height: auto;
        min-height: 0;
    }

    .admin-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px 12px;
        min-height: 0;
        padding-top: 10px;
    }

    .admin-user {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .admin-brand img {
        width: 34px;
        height: 34px;
    }

    .admin-user button {
        min-height: 36px;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-column: 1 / -1;
        justify-self: stretch;
        gap: 3px;
        width: calc(100% + 24px);
        margin-inline: -12px;
        padding: 8px 12px 9px;
        overflow: hidden;
        border-top: 1px solid #ededee;
    }

    .admin-nav a,
    .admin-nav a.is-active,
    .admin-nav a:hover,
    .admin-nav .admin-front-link {
        display: inline-flex;
        justify-content: center;
        min-height: 36px;
        gap: 4px;
        min-width: 0;
        padding-inline: 3px;
        font-size: 12px;
    }

    .admin-nav svg {
        display: block;
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .admin-main {
        padding-top: 22px;
    }

    .admin-cards-layout .admin-stock-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-cards-layout .admin-stock-primary,
    .admin-cards-layout .admin-stock-details > div {
        min-height: 70px;
        padding: 12px 15px;
        border-top: 1px solid #e5e6e8;
        border-left: 1px solid #e5e6e8;
    }

    .admin-cards-layout .admin-stock-primary {
        border-top: 0;
        border-left: 0;
    }

    .admin-cards-layout .admin-stock-details > div:first-child {
        border-top: 0;
    }

    .admin-cards-layout .admin-stock-details > div:nth-child(2) {
        border-left: 0;
    }

    .admin-cards-layout .import-panel {
        grid-template-columns: 1fr;
    }

    .admin-cards-layout .import-panel .panel-head {
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid #e5e6e8;
        background: #fff;
    }

    .admin-cards-layout .import-form {
        grid-template-columns: 1fr;
        padding: 14px 16px 16px;
    }

    .admin-cards-layout .card-textarea {
        height: 92px;
        min-height: 92px;
    }

    .admin-cards-layout .import-actions {
        grid-template-columns: 1fr 126px;
        align-items: center;
    }

    .admin-cards-layout .import-actions span {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .admin-brand small {
        display: none;
    }

    .admin-cards-heading h1 {
        font-size: 26px;
    }

    .admin-cards-layout .admin-stock-primary strong,
    .admin-cards-layout .admin-stock-details dd {
        font-size: 24px;
    }
}

/* Button-level loading feedback for navigation and form submissions. */
.button.is-loading,
button.is-loading {
    pointer-events: none;
    cursor: progress;
}

.button-spinner {
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-loading-spin 680ms linear infinite;
}

.button-dark .button-spinner,
.button-danger .button-spinner {
    border-color: rgba(255, 255, 255, 0.62);
    border-right-color: transparent;
}

@keyframes button-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button-spinner {
        animation-duration: 1.4s;
    }
}

/* Store v6.44: mobile order spacing and consistent action feedback. */
.button,
button {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.button:active,
button:active {
    transform: scale(0.985);
}

.button.is-loading,
button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

@media (max-width: 820px) {
    .order-result-page.has-delivery .order-workspace {
        gap: 30px;
    }

    .order-workspace .order-tutorial-list {
        margin-top: 26px;
    }
}

@media (max-width: 640px) {
    .order-workspace .order-tutorial-list li,
    .order-workspace .order-tutorial-list li:first-child {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 16px;
        padding: 26px 0;
    }

    .order-workspace .order-tutorial-list li:last-child {
        padding-bottom: 26px;
    }

    .order-step-action {
        grid-column: 2;
        align-self: stretch;
        margin-top: 16px !important;
    }

    .order-tutorial-support {
        margin-top: 18px;
    }
}

/* Admin v6.64: mail diagnostics and exact order lookup. */
.admin-dashboard-notice {
    margin: 0 0 14px;
}

.admin-mail-summary {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 17px;
    padding: 10px 0;
    border-top: 1px solid var(--line-soft);
}

.admin-mail-summary-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-mail-summary-state > svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    stroke-width: 1.8;
}

.admin-mail-summary-state > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-mail-summary-state span {
    color: var(--muted);
    font-size: 12px;
}

.admin-mail-summary-state strong {
    font-size: 14px;
}

.admin-mail-summary button,
.admin-order-search > button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.admin-mail-summary button {
    min-height: 36px;
    padding-inline: 12px;
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 12px;
}

.admin-mail-summary button svg,
.admin-order-search > button svg,
.admin-order-search-field > svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.9;
}

.admin-order-search {
    display: grid;
    grid-template-columns: minmax(300px, 620px) auto auto;
    gap: 8px;
    max-width: 850px;
    margin-bottom: 14px;
}

.admin-order-search-field {
    position: relative;
    min-width: 0;
}

.admin-order-search-field > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #777980;
    transform: translateY(-50%);
    pointer-events: none;
}

.admin-order-search-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.admin-order-search-field input:focus {
    border-color: #777980;
    box-shadow: 0 0 0 3px rgba(17, 18, 20, 0.06);
}

.admin-order-search-field input::-webkit-search-cancel-button {
    display: none;
}

.admin-order-search-clear {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 560px) {
    .admin-dashboard-notice {
        margin-bottom: 10px;
    }

    .admin-mail-summary {
        min-height: 60px;
        margin-inline: 15px;
    }

    .admin-mail-summary button {
        min-width: 44px;
        padding-inline: 12px;
    }

    .admin-order-search {
        grid-template-columns: minmax(0, 1fr) 46px auto;
        gap: 7px;
        margin-bottom: 11px;
    }

    .admin-order-search > button {
        width: 46px;
        padding: 0;
    }

    .admin-order-search > button span {
        display: none;
    }

    .admin-order-search-clear {
        padding-inline: 5px;
    }
}

/* Admin v6.80: compact card inventory workflow on phones. */
@media (max-width: 760px) {
    .admin-header-inner {
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .admin-cards-heading {
        margin-bottom: 14px;
    }

    .admin-cards-heading > div {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .admin-cards-heading h1 {
        margin-top: 0;
        font-size: 25px;
    }

    .admin-cards-heading span {
        font-size: 11px;
    }

    .admin-cards-layout {
        gap: 10px;
    }

    .admin-cards-layout .admin-stock-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 7px;
    }

    .admin-cards-layout .admin-stock-primary,
    .admin-cards-layout .admin-stock-details > div {
        min-height: 64px;
        gap: 6px;
        padding: 11px 12px;
        border-top: 0;
        border-left: 1px solid #e5e6e8;
    }

    .admin-cards-layout .admin-stock-primary {
        border-left: 0;
    }

    .admin-cards-layout .admin-stock-details > div:first-child,
    .admin-cards-layout .admin-stock-details > div:nth-child(2) {
        border-top: 0;
        border-left: 1px solid #e5e6e8;
    }

    .admin-cards-layout .admin-stock-total {
        display: none;
    }

    .admin-cards-layout .admin-stock-primary > span,
    .admin-cards-layout .admin-stock-details dt {
        font-size: 11px;
        white-space: nowrap;
    }

    .admin-cards-layout .admin-stock-primary strong,
    .admin-cards-layout .admin-stock-details dd {
        font-size: 23px;
    }

    .admin-cards-layout .admin-stock-primary small {
        display: none;
    }

    .admin-cards-layout .import-panel {
        border-radius: 7px;
    }

    .admin-cards-layout .import-panel .panel-head {
        min-height: 0;
        padding: 12px 14px;
    }

    .admin-cards-layout .import-panel .panel-head > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .admin-cards-layout .import-panel .panel-head h2 {
        font-size: 15px;
        white-space: nowrap;
    }

    .admin-cards-layout .import-panel .panel-head p {
        margin: 0;
        font-size: 11px;
        text-align: right;
    }

    .admin-cards-layout .import-form {
        gap: 10px;
        padding: 12px 14px 14px;
    }

    .admin-cards-layout .admin-import-field {
        gap: 6px;
    }

    .admin-cards-layout .admin-import-field .field-label {
        font-size: 11px;
    }

    .admin-cards-layout .card-textarea {
        height: 76px;
        min-height: 76px;
        max-height: 140px;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.5;
    }

    .admin-cards-layout .import-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .admin-cards-layout .import-actions span {
        font-size: 11px;
        text-align: left;
        white-space: nowrap;
    }

    .admin-cards-layout .import-actions .button {
        width: auto;
        min-width: 116px;
        min-height: 42px;
        padding-inline: 15px;
        white-space: nowrap;
    }

    .admin-card-list-panel {
        overflow: hidden;
        border-radius: 7px;
    }

    .admin-card-list-head {
        gap: 12px;
        padding: 13px 14px 12px;
    }

    .admin-card-list-head > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .admin-card-list-head h2 {
        font-size: 15px;
        white-space: nowrap;
    }

    .admin-card-list-head p {
        margin: 0;
        font-size: 11px;
        text-align: right;
    }

    .admin-card-filters {
        gap: 2px;
        padding: 3px;
        overflow: visible;
        border-radius: 6px;
    }

    .admin-card-filters a {
        flex: 1 1 25%;
        min-height: 32px;
        padding: 0 5px;
        font-size: 12px;
        line-height: 32px;
        white-space: nowrap;
    }

    .admin-card-table-wrap {
        padding: 0 12px 12px;
        overflow: visible;
    }

    .admin-card-table tr {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 11px 12px;
        margin: 10px 0 0;
        padding: 14px;
        border-radius: 7px;
    }

    .admin-card-table td,
    .admin-card-table td:first-child {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 8px;
    }

    .admin-card-table td::before {
        display: none;
    }

    .admin-card-table td.admin-card-id-cell,
    .admin-card-table td.admin-card-created-cell {
        display: none;
    }

    .admin-card-table .admin-card-code-cell {
        grid-column: 1 / -1;
    }

    .admin-card-code-wrap {
        width: 100%;
        gap: 10px;
    }

    .admin-card-code {
        color: #292a2e;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.45;
    }

    .admin-card-copy,
    .admin-card-delete {
        min-height: 34px;
        padding-inline: 10px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .admin-card-status-cell {
        grid-column: 1;
    }

    .admin-card-status-cell .table-status {
        padding: 6px 9px;
        font-size: 11px;
    }

    .admin-card-order-cell {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        color: #66686f;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    .admin-card-order-cell::before {
        display: inline;
        content: "关联订单";
        flex: 0 0 auto;
        color: #8a8b91;
        font-family: inherit;
        font-size: 11px;
    }

    .admin-card-order-cell.is-empty {
        display: none;
    }

    .admin-card-action-cell {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .admin-card-action-cell .admin-card-protected {
        display: none;
    }

    .admin-card-action-cell.is-protected {
        display: none;
    }

    .admin-card-table .empty-cell {
        display: block;
        grid-column: 1 / -1;
        padding: 18px 8px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .admin-cards-layout .import-panel .panel-head p,
    .admin-card-list-head p {
        display: none;
    }

    .admin-cards-layout .import-actions .button {
        min-width: 108px;
        padding-inline: 12px;
    }
}
