:root {
    --green-900: #0d5f2a;
    --green-700: #188536;
    --green-500: #42b72d;
    --lime: #82dd39;
    --ink: #17201a;
    --muted: #657569;
    --line: #e1eadf;
    --wash: #f0f7ef;
    --white: #ffffff;
    --amber: #ffad22;
    --coral: #e95439;
    --sky: #dff4ff;
    --shadow: 0 12px 30px rgba(23, 32, 26, .08);
}

.document-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.document-switcher a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    font-weight: 700;
}
.document-switcher a.is-active {
    border-color: var(--green-700);
    color: var(--green-900);
    background: var(--wash);
}
.document-preview {
    display: grid;
    justify-items: center;
    margin: 0 0 24px;
}
.a4-document {
    width: min(210mm, 100%);
    min-height: 297mm;
    padding: 16mm;
    background: #fff;
    border: 1px solid #dfe7dc;
    box-shadow: var(--shadow);
    color: #17201a;
}
.document-header,
.document-facts,
.document-footer,
.signature-grid,
.packing-meta {
    display: grid;
    gap: 12px;
}
.document-header {
    grid-template-columns: 1fr auto;
    align-items: start;
    border-bottom: 2px solid #17201a;
    padding-bottom: 12px;
}
.document-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}
.document-brand img,
.document-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.document-brand h2,
.document-title strong,
.thermal-print h2 {
    margin: 0;
}
.document-brand p,
.document-title span,
.document-tax-line,
.document-footer p {
    margin: 0;
    color: #566358;
    font-size: 13px;
}
.document-title {
    text-align: right;
}
.document-title span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 800;
}
.document-title strong {
    display: block;
    font-size: 22px;
}
.document-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}
.document-facts p,
.document-total-box p,
.packing-meta p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf1ea;
    padding: 6px 0;
}
.document-facts span,
.document-total-box span,
.packing-meta span {
    color: #637266;
}
.document-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.document-table th,
.document-table td {
    border: 1px solid #dfe7dc;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}
.document-table th {
    background: #f6f8f5;
}
.document-total-box {
    width: min(330px, 100%);
    margin-left: auto;
}
.document-total-box .total {
    border-top: 2px solid #17201a;
    font-size: 18px;
    font-weight: 800;
}
.check-cell::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border: 1.5px solid #17201a;
}
.signature-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}
.signature-grid span,
.document-footer span {
    border-top: 1px solid #17201a;
    padding-top: 8px;
    text-align: center;
    color: #566358;
}
.document-footer {
    grid-template-columns: auto 1fr 220px;
    align-items: end;
    margin-top: 28px;
}
.document-qr {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 2px solid #17201a;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}
.thermal-print {
    page: receipt;
    width: 58mm;
    padding: 4mm 5mm;
    background: #fff;
    border: 1px solid #ddd;
    color: #111;
    font: 12px/1.25 "Courier New", monospace;
}
.thermal-print h2,
.thermal-print p {
    text-align: center;
}
.thermal-order {
    display: block;
    text-align: center;
    font-size: 18px;
    margin: 6px 0;
}
.thermal-line {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin: 5px 0;
}
.thermal-line.total {
    font-size: 14px;
    font-weight: 900;
}
.thermal-print .document-qr {
    width: 38mm;
    height: 20mm;
    margin: 8px auto 0;
}
.bag-label-print {
    page: label;
    width: 57mm;
    height: 40mm;
    padding: 4mm;
    display: grid;
    align-content: center;
    gap: 2mm;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font: 11px/1.2 Arial, sans-serif;
}
.bag-label-print strong {
    font-size: 18px;
}
.bag-label-print .document-qr {
    width: 22mm;
    height: 12mm;
    justify-self: end;
}
.email-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.email-template-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.email-template-card h3 {
    margin: 0;
}
.notification-settings-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}
.notification-menu-toggle {
    display: none;
}
.notification-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-height: 38px;
    color: var(--ink);
}
.notification-nav-link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}
.notification-popover {
    width: min(360px, calc(100vw - 32px));
    padding: 0;
    overflow: hidden;
    font-weight: 400;
}
.notification-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--green-900);
    background: #f4faf2;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 400;
}
.notification-popover-list {
    display: grid;
    max-height: 340px;
    overflow-y: auto;
}
.notification-popover-item {
    display: grid;
    grid-template-columns: 9px 1fr;
    gap: 10px;
    padding: 12px 16px;
    color: var(--ink);
    border-bottom: 1px solid #eef4ec;
    text-decoration: none;
    font-weight: 400;
}
.notification-popover-item:hover,
.notification-popover-item:focus-visible {
    background: #fbfdf9;
}
.notification-popover-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--green-700);
}
.notification-popover-title,
.notification-popover-body,
.notification-popover-time {
    display: block;
    font-weight: 400;
}
.notification-popover-title {
    color: var(--green-900);
    font-size: 13px;
}
.notification-popover-body {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.notification-popover-time {
    margin-top: 5px;
    color: #7d8c82;
    font-size: 11px;
}
.notification-popover-empty {
    padding: 18px 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}
.notification-popover-all {
    display: block;
    padding: 13px 16px;
    color: var(--green-900);
    background: #fff;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 400;
}
.notification-popover-all:hover,
.notification-popover-all:focus-visible {
    background: #f4faf2;
}
.notification-page-head {
    align-items: end;
}
.notification-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.notification-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 18px;
    max-width: 1320px;
    padding: 0 40px;
}
.notification-filter-tabs a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #fff;
    font-weight: 800;
}
.notification-filter-tabs a.is-active {
    color: #fff;
    border-color: var(--green-700);
    background: var(--green-700);
}
.notification-center-list {
    display: grid;
    gap: 10px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px 36px;
}
.notification-center-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.notification-center-item.is-unread {
    border-color: #bfe4b7;
    box-shadow: 0 8px 20px rgba(23, 32, 26, .06);
}
.notification-center-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--green-900);
    background: #edf8e9;
    font-weight: 900;
}
.notification-center-copy {
    min-width: 0;
}
.notification-center-copy > div:first-child {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}
.notification-center-copy strong {
    color: var(--ink);
}
.notification-center-copy span {
    color: #6f7c72;
    font-size: 13px;
    white-space: nowrap;
}
.notification-center-copy p {
    margin: 6px 0 0;
    color: #425047;
}
.notification-center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-weight: 800;
}
.notification-empty-state {
    padding: 28px;
}
.notification-preference-panel {
    display: grid;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto 40px;
}
.notification-preference-panel h2 {
    margin-top: 0;
    color: var(--green-900);
}
.notification-preference-list {
    display: grid;
    gap: 10px;
}
.preference-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdf9;
}
.preference-toggle input {
    width: 18px;
    height: 18px;
}
.preference-toggle strong,
.preference-toggle small {
    display: block;
}
.preference-toggle small {
    color: #6f7c72;
}
.alert-settings-panel {
    gap: 18px;
}
.notification-alert-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.notification-alert-intro h2 {
    margin: 0 0 6px;
}
.notification-alert-intro p,
.notification-permission-note,
.ios-push-instructions,
.ios-push-instructions ol {
    margin: 0;
    color: #5f6d63;
    line-height: 1.45;
}
.notification-permission-note {
    padding: 10px 12px;
    border: 1px solid #f1d993;
    border-radius: 8px;
    background: #fff8e8;
    font-weight: 700;
}
.ios-push-instructions {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdf9;
}
.ios-push-instructions summary {
    cursor: pointer;
    color: var(--green-900);
    font-weight: 900;
}
.ios-push-instructions ol {
    padding: 8px 0 0 20px;
}
.alert-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.notification-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.alert-device-list {
    display: grid;
    gap: 10px;
}
.alert-device-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdf9;
}
.alert-device-list strong,
.alert-device-list small {
    display: block;
}
.alert-device-list small {
    color: #6f7c72;
}
.notification-mail-config {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.notification-mail-config article,
.notification-smtp-settings,
.notification-email-preview {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdf9;
}
.notification-mail-config span,
.notification-email-preview span {
    display: block;
    color: #657569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.notification-mail-config strong {
    display: block;
    margin: 4px 0;
    color: var(--green-900);
    overflow-wrap: anywhere;
}
.notification-mail-config small {
    color: #657569;
    line-height: 1.4;
}
.notification-smtp-settings {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.notification-template-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}
.notification-template-sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf6;
}
.notification-template-sidebar button {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.notification-template-sidebar button:hover,
.notification-template-sidebar button:focus-visible,
.notification-template-sidebar button.is-active {
    border-color: #bfe4b7;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 32, 26, .06);
}
.notification-template-sidebar button.is-active {
    color: var(--green-900);
}
.notification-template-sidebar span {
    color: #657569;
    font-size: 12px;
    line-height: 1.35;
}
.notification-template-sidebar .notification-sidebar-bottom {
    margin-top: 10px;
    border-top: 1px solid #dfeadd;
}
.notification-template-backdrop {
    display: none;
}
.notification-template-content {
    min-width: 0;
}
.notification-template-panel {
    display: grid;
    gap: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}
.notification-template-panel.is-active {
    opacity: 1;
    transform: translateY(0);
}
.notification-template-title {
    display: grid;
    gap: 12px;
}
.notification-template-title h3 {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}
.recipient-role-list,
.token-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.recipient-role-list span,
.token-chip-list code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.recipient-role-list span {
    border: 1px solid #cdecc8;
    color: var(--green-900);
    background: #f3fbef;
}
.token-chip-list code {
    border: 1px solid #e0e8dd;
    color: #435045;
    background: #fbfdf9;
    font-family: inherit;
}
.notification-template-panel textarea {
    min-height: 320px;
}
.notification-test-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}
.chime-alert-panel {
    gap: 12px;
}
.chime-alert-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 12px;
    border-bottom: 1px solid #e4eee2;
    color: #617268;
    font-size: 13px;
    font-weight: 800;
}
.chime-alert-summary-line strong {
    color: var(--green-900);
}
.chime-alert-list {
    display: grid;
}
.chime-alert-row {
    border-bottom: 1px solid #e4eee2;
}
.chime-alert-row summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
}
.chime-alert-row summary::-webkit-details-marker,
.chime-alert-reference summary::-webkit-details-marker {
    display: none;
}
.chime-alert-row summary > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.chime-alert-row strong {
    color: #183420;
}
.chime-alert-row small,
.chime-alert-detail p {
    color: #657569;
    font-size: 12px;
    line-height: 1.4;
}
.chime-alert-detail {
    display: grid;
    gap: 4px;
    padding: 0 0 13px 14px;
    border-left: 3px solid #d8ead4;
}
.chime-alert-detail p {
    margin: 0;
}
.chime-alert-detail b {
    color: var(--green-900);
}
.chime-mini-switch {
    display: inline-grid;
    grid-template-columns: 42px 28px;
    align-items: center;
    gap: 8px;
    color: #637367;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.chime-mini-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.chime-mini-switch span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d8e2d9;
    transition: background .16s ease;
}
.chime-mini-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.16);
    transition: transform .16s ease;
}
.chime-mini-switch input:checked + span {
    background: var(--green-700);
}
.chime-mini-switch input:checked + span::after {
    transform: translateX(18px);
}
.chime-mini-switch em {
    color: #4c5f52;
    font-style: normal;
    text-align: center;
}
.chime-alert-reference {
    margin-top: 4px;
    padding-top: 10px;
}
.chime-alert-reference summary {
    cursor: pointer;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 900;
}
.chime-alert-reference div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
}
.chime-alert-reference span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #57685c;
    background: #eef6ec;
    font-size: 11px;
    font-weight: 800;
}
.notification-email-preview {
    display: grid;
    gap: 12px;
    background: #fff;
}
.notification-email-preview strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.notification-email-preview pre {
    margin: 6px 0 0;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    color: #253029;
    font-family: inherit;
    line-height: 1.45;
}
.email-delivery-log {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .notification-page-head {
        align-items: start;
    }
    .notification-head-actions {
        justify-content: flex-start;
    }
    .notification-filter-tabs,
    .notification-center-list {
        padding-left: 18px;
        padding-right: 18px;
    }
    .notification-center-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }
    .notification-center-icon {
        width: 36px;
        height: 36px;
    }
    .notification-center-copy > div:first-child {
        display: grid;
        gap: 4px;
    }
    .notification-center-copy span {
        white-space: normal;
    }
    .notification-settings-head {
        align-items: center;
    }
    .notification-mail-config {
        grid-template-columns: 1fr;
    }
    .notification-menu-toggle {
        display: inline-flex;
    }
    .notification-template-shell {
        grid-template-columns: 1fr;
    }
    .notification-template-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 80;
        width: min(82vw, 320px);
        padding: 18px 12px;
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 20px 0 50px rgba(23, 32, 26, .18);
        overflow-y: auto;
    }
    .notification-template-shell.is-menu-open .notification-template-sidebar {
        transform: translateX(0);
    }
    .notification-template-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(23, 32, 26, .34);
    }
    .notification-template-shell.is-menu-open .notification-template-backdrop {
        display: block;
    }
    .notification-template-title h3 {
        font-size: 18px;
    }
    .notification-template-panel textarea {
        min-height: 360px;
    }
    .notification-test-row {
        grid-template-columns: 1fr;
    }
    .chime-alert-row summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .chime-mini-switch {
        justify-self: start;
    }
    .chime-alert-summary-line {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    body {
        background: #fff !important;
    }
    .no-print,
    .site-header,
    .site-footer,
    .page-preloader,
    .document-history {
        display: none !important;
    }
    .document-preview {
        margin: 0;
        display: block;
    }
    .a4-document,
    .thermal-print,
    .bag-label-print {
        box-shadow: none;
        border: 0;
        margin: 0;
    }
    .a4-document {
        width: auto;
        min-height: auto;
        padding: 10mm;
    }
    .document-preview.thermal {
        width: 58mm;
    }
    .document-preview.label {
        width: 57mm;
        height: 40mm;
    }
}

@page {
    size: A4;
    margin: 10mm;
}
@page receipt {
    size: 58mm auto;
    margin: 0;
}
@page label {
    size: 57mm 40mm;
    margin: 0;
}

/* Registration business application flow */
.register-page {
    min-height: 70vh;
    display: grid;
    justify-items: center;
    padding: 44px 16px 56px;
    background: #f6f8f5;
}
.registration-card {
    width: min(860px, 100%);
    display: grid;
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #dde6da;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(23, 32, 26, .1);
}
.registration-head { display: grid; gap: 8px; }
.registration-head h1 {
    margin: 0;
    color: var(--green-900);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
}
.registration-head p,
.business-accordion-trigger small,
.field-hint,
.registration-notice,
.auth-switch {
    margin: 0;
    color: #5f6d63;
    font-size: 14px;
    font-weight: 400;
}
.quiet-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #d9e5d6;
    border-radius: 999px;
    color: var(--green-900);
    background: #fbfdf9;
    font-size: 13px;
    font-weight: 600;
}
.registration-section { display: grid; gap: 14px; }
.registration-section.compact {
    padding-top: 18px;
    border-top: 1px solid #edf1ea;
}
.registration-section h2,
.application-status-list h2 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}
.registration-grid { display: grid; gap: 14px; }
.registration-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-card label,
.confirmation-card label {
    display: grid;
    gap: 7px;
    color: #25352a;
    font-size: 14px;
    font-weight: 600;
}
.registration-card input,
.registration-card textarea,
.registration-card select,
.confirmation-card input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cedccd;
    border-radius: 9px;
    background: #fff;
    color: #2f3b33;
    font-size: 16px;
    font-weight: 400;
}
.registration-card textarea { min-height: 92px; resize: vertical; }
.registration-card input::placeholder,
.registration-card textarea::placeholder {
    color: #748177;
    font-size: 15px;
    font-weight: 400;
}
.registration-card input:focus-visible,
.registration-card textarea:focus-visible,
.registration-card select:focus-visible,
.confirmation-card input:focus-visible {
    border-color: var(--green-700);
    outline: 3px solid rgba(255, 173, 34, .45);
    outline-offset: 1px;
}
.password-field.inline-toggle { position: relative; display: block; }
.password-field.inline-toggle input { padding-right: 72px; }
.password-field.inline-toggle button {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: var(--green-900);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}
.field-error { color: #9d2d18; font-size: 13px; font-weight: 500; }
.business-accordion {
    overflow: hidden;
    border: 1px solid #d9e3d6;
    border-radius: 12px;
    background: #fffdf8;
}
.business-accordion-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.business-accordion-trigger strong {
    display: block;
    color: var(--green-900);
    font-size: 16px;
    font-weight: 700;
}
.business-accordion-trigger em {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff4d6;
    color: #8b5d06;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}
.business-accordion-trigger b {
    color: var(--green-700);
    font-size: 14px;
    font-weight: 700;
}
.business-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #d8e4d4;
    color: var(--green-900);
    background: var(--white);
    font-size: 20px;
}
.business-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}
.business-accordion-body {
    display: grid;
    gap: 0;
    padding: 0 16px 18px;
    animation: registration-panel-in .18s ease-out;
}
.role-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.role-choice,
.check-tile {
    min-height: 82px;
    padding: 14px;
    border: 1px solid #d9e3d6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.role-choice { display: grid; gap: 6px; }
.role-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.role-choice strong { color: var(--green-900); font-size: 15px; font-weight: 700; }
.role-choice span { color: #607064; font-size: 13px; font-weight: 400; }
.role-choice.is-selected,
.role-choice:has(input:checked) {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(24, 133, 54, .12);
}
.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.segmented-control label,
.inline-check,
.check-tile {
    display: flex;
    align-items: center;
    gap: 9px;
}
.segmented-control input,
.inline-check input,
.check-tile input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
}
.inline-check { color: #405043; font-size: 13px; font-weight: 500; }
.strong-check { font-size: 14px; }
.registration-notice {
    padding: 12px 14px;
    border-left: 3px solid var(--green-700);
    border-radius: 8px;
    background: #fbfdf9;
}
.registration-consent { display: grid; gap: 10px; }
.registration-consent .inline-check {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    width: fit-content;
    max-width: 100%;
    line-height: 1.45;
}
.registration-consent .inline-check input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 1px 0 0;
    flex: 0 0 20px;
}
.registration-submit { min-height: 48px; font-size: 16px; }
.auth-switch { text-align: center; }
.auth-switch a { color: var(--green-700); font-weight: 700; }
.slug-field { display: grid; gap: 4px; }
.slug-field small {
    min-height: 18px;
    color: #66756a;
    font-size: 13px;
    font-weight: 500;
}
.slug-field small.is-available { color: var(--green-700); }
.slug-field small.is-taken { color: #9d2d18; }
.confirmation-page .confirmation-card { width: min(560px, 100%); }
.confirmation-card { gap: 16px; }
.confirmation-card h1 { margin: 0; color: var(--green-900); }
.confirmation-card p { margin: 0; color: #526158; font-weight: 400; }
.confirmation-actions,
.change-email-panel form,
.application-status-list { display: grid; gap: 12px; }
.change-email-panel summary {
    color: var(--green-700);
    cursor: pointer;
    font-weight: 700;
}
.application-status-list article {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dfe8dc;
    border-radius: 10px;
    background: #fbfdf9;
}
.application-status-list article span { color: var(--green-700); font-weight: 700; }
.application-status-grid .dash-tile small { color: #607064; font-size: 13px; font-weight: 500; }
.business-application-panel,
.business-application-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dfe8dc;
    border-radius: 12px;
    background: #fff;
}
.business-application-list { display: grid; gap: 14px; }
.business-application-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.business-application-card h3,
.business-application-card h4 {
    margin: 0;
    color: var(--green-900);
}
.business-application-card h3 { font-size: 19px; }
.business-application-card h4 { font-size: 15px; }
.business-application-card p { margin: 4px 0 0; color: #5f6d63; }
.business-application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.business-application-grid section {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    border: 1px solid #edf1ea;
    border-radius: 10px;
    background: #fbfcfa;
}
.business-application-actions {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}
.business-application-actions label {
    display: grid;
    gap: 6px;
    color: #25352a;
    font-size: 13px;
    font-weight: 700;
}
.business-application-actions select,
.business-application-actions textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #d4dfd2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
}
.audit-mini-list {
    margin: 0;
    padding-left: 18px;
    color: #607064;
    font-size: 13px;
}
.soft-status.status-pending_review,
.soft-status.status-more_info_required,
.soft-status.status-draft {
    color: #8b5d06;
    background: #fff4d6;
}
.soft-status.status-approved { color: var(--green-900); background: #e8f6e5; }
.soft-status.status-rejected { color: #9d2d18; background: #fff0ec; }
@keyframes registration-panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .business-accordion-body { animation: none; }
}
@media (max-width: 760px) {
    .register-page { padding: 28px 16px 42px; }
    .registration-card { padding: 20px; border-radius: 12px; }
    .registration-grid.two,
    .role-choice-grid,
    .segmented-control,
    .business-application-grid,
    .business-application-actions { grid-template-columns: 1fr; }
    .business-accordion-trigger { grid-template-columns: 38px minmax(0, 1fr); }
    .business-accordion-trigger em,
    .business-accordion-trigger b { grid-column: 2; }
    .registration-card .button,
    .registration-card input,
    .registration-card textarea,
    .registration-card select { min-height: 46px; }
    .business-application-card header { display: grid; }
    .business-application-actions .inline-actions,
    .business-application-actions .button { width: 100%; }
    .login-page {
        padding: 26px 16px 42px;
    }
    .login-card {
        width: 100%;
        gap: 18px;
        padding: 20px;
        border-radius: 12px;
    }
    .login-options-row {
        align-items: center;
    }
    .login-card input,
    .login-submit {
        min-height: 48px;
    }
    body:has(.login-page) .site-header {
        grid-template-columns: auto auto;
    }
    body:has(.login-page) .site-header .top-search,
    body:has(.login-page) .site-header .top-nav,
    body:has(.login-page) .site-header .mobile-header-actions {
        display: none;
    }
    body:has(.login-page) .site-header .menu-button {
        display: inline-flex;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}
body.is-page-leaving {
    opacity: .94;
    transition: opacity .12s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(249, 181, 0, .72);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 12px clamp(16px, 4vw, 42px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(225, 234, 223, .9);
    backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--green-900); text-transform: uppercase; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--lime));
}
.brand-mark.has-image, .settings-brand-preview.has-image, .preloader-mark.has-image {
    background: var(--white);
    overflow: hidden;
}
.brand-mark img, .settings-brand-preview img, .preloader-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: var(--green-900);
    background: rgba(255, 255, 255, .96);
    transition: opacity .28s ease, visibility .28s ease;
}
.page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--lime));
    font-weight: 900;
    font-size: 28px;
    box-shadow: var(--shadow);
    animation: loaderPulse 1.15s ease-in-out infinite;
}
.page-preloader span:last-child {
    font-weight: 900;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.top-search {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}
.top-search input, .page-search input, .page-search select, .auth-card input, .form-panel input, .form-panel textarea, .form-panel select, .detail-actions input, .inline-form input, .management-card input, .user-management-card input, .user-management-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--white);
    color: var(--ink);
    font-weight: 400;
}
input::placeholder,
textarea::placeholder {
    color: #77837a;
    font-weight: 400;
}
.password-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.password-field button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--green-900);
    background: #f7fbf5;
    font-weight: 900;
    cursor: pointer;
}
.login-card .password-field.inline-toggle {
    position: relative;
    display: block;
}
.login-card .password-field.inline-toggle input {
    padding-right: 72px;
}
.login-card .password-field.inline-toggle button {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    min-height: 34px;
    border: 0;
    padding: 0 10px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}
.top-search input { background: #f6faf5; }
.category-drawer {
    position: relative;
    min-width: 0;
}
.category-drawer summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #f6faf5;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.category-drawer summary::-webkit-details-marker { display: none; }
.category-drawer-icon {
    font-size: 18px;
    line-height: 1;
}
.category-drawer-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.category-drawer-panel a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--green-900);
    font-weight: 900;
}
.category-drawer-panel a:hover,
.category-drawer-panel a.is-active {
    background: #e5f7da;
}
.category-drawer-panel .depth-1 { padding-left: 24px; font-weight: 800; }
.category-drawer-panel .depth-2 { padding-left: 38px; color: var(--muted); }
.category-drawer-panel small {
    color: var(--muted);
    font-weight: 800;
}
.category-drawer-head {
    display: none;
}
.category-drawer-head strong {
    color: var(--green-900);
}
.category-drawer-head button {
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--green-900);
    background: #edf8e9;
    font-weight: 900;
    cursor: pointer;
}
.search-results {
    position: absolute;
    inset: calc(100% + 6px) 0 auto 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
}
.search-results a { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--wash); }
.search-result-row {
    display: grid;
    gap: 5px;
}
.search-result-row strong {
    color: var(--ink);
    font-weight: 400;
    overflow-wrap: anywhere;
}
.search-result-row span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}
.search-result-row small {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.search-result-row b {
    color: var(--green-900);
    font-weight: 400;
    white-space: nowrap;
}
.top-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; }
.nav-dropdown {
    position: relative;
}
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 79;
    display: none;
    width: max(100%, 320px);
    height: 14px;
}
.nav-dropdown:hover::after,
.nav-dropdown:focus-within::after,
.nav-dropdown.is-open::after {
    display: block;
}
.icon-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}
.icon-nav-trigger svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.cart-link {
    position: relative;
    width: 42px;
    justify-content: center;
}
.nav-count {
    position: absolute;
    right: -4px;
    top: -1px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--coral);
    border-radius: 999px;
    padding: 0 5px;
    font-size: 12px;
}
.nav-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    display: none;
    min-width: 300px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.cart-popover {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav-dropdown:hover .nav-popover,
.nav-dropdown:focus-within .nav-popover,
.nav-dropdown.is-open .nav-popover {
    display: grid;
    gap: 10px;
}
.mini-cart-context {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--green-900);
    background: #f3fbef;
    font-size: 13px;
}
.mini-cart-context span {
    color: var(--muted);
    font-weight: 800;
}
.mini-cart-list {
    display: grid;
    gap: 8px;
}
.mini-cart-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
}
.mini-cart-item:hover {
    background: var(--wash);
}
.mini-cart-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}
.mini-cart-item span {
    min-width: 0;
}
.mini-cart-item b,
.mini-cart-item small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mini-cart-item small,
.account-popover small {
    color: var(--muted);
}
.mini-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.mini-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.avatar-thumb,
.avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 999px;
}
.avatar-thumb {
    object-fit: cover;
}
.avatar-fallback {
    display: grid;
    place-items: center;
    color: var(--green-900);
    background: #e7f9df;
    font-size: 13px;
    font-weight: 900;
}
.avatar-fallback svg {
    width: 18px;
    height: 18px;
}
.account-popover a,
.account-popover .link-button {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}
.account-popover {
    min-width: 240px;
}
.account-popover a:hover,
.account-popover .link-button:hover {
    color: var(--green-700);
}
.mobile-header-actions {
    display: none;
}
.mobile-icon-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #f6faf5;
}
.mobile-icon-link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}
.menu-button { display: none; border: 0; background: var(--green-700); color: var(--white); border-radius: 8px; width: 40px; height: 40px; }
.mobile-menu { display: none; padding: 10px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: grid; gap: 10px; }
.cart-conflict-panel {
    color: var(--green-900);
}
.cart-conflict-panel strong { font-weight: 900; }
.conflict-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.conflict-actions form { margin: 0; }
.cart-conflict-panel {
    position: relative;
    margin: 12px clamp(16px, 4vw, 42px) 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 10px clamp(16px, 4vw, 42px);
    border: 1px solid #f1d191;
    border-radius: 8px;
    background: #fff9ea;
}
.cart-conflict-panel p { margin: 3px 0 0; color: var(--muted); }

.flash { margin: 14px clamp(16px, 4vw, 42px) 0; padding: 12px 14px; border-radius: 8px; font-weight: 700; }
.flash-success { background: #e7f9df; color: var(--green-900); }
.flash-warning { background: #fff3d8; color: #7b4b00; }
.flash-danger { background: #ffe7e1; color: #8b1d0d; }

.hero { position: relative; min-height: 500px; display: grid; place-items: center; overflow: hidden; background: #0d5f2a; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 55, 25, .78) 0%, rgba(13, 95, 42, .46) 52%, rgba(5, 28, 15, .2) 100%); }
.hero-media { position: absolute; inset: 0; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
    position: relative;
    z-index: 1;
    width: min(980px, 92vw);
    color: var(--white);
    text-align: center;
    padding: 36px 0;
}
.hero-title { margin: 12px 0 8px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
.hero p, .hero-copy { margin: 0 auto; max-width: 660px; font-size: clamp(16px, 2vw, 21px); font-weight: 700; }
.hero-copy p { margin: 0; }
.hero-location-picker {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--white);
    background: rgba(255,255,255,.16);
    font-weight: 900;
    cursor: pointer;
}
.share-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.compact-share-button {
    color: var(--green-900);
    background: #edf8e9;
    border-color: var(--line);
}
.home-share-section {
    display: flex;
    justify-content: center;
    padding: 0 clamp(16px, 4vw, 42px) 34px;
    background: var(--white);
}
.home-share-button {
    min-height: 40px;
    border-color: var(--line);
    color: var(--green-900);
    background: transparent;
}
.home-share-button:hover {
    background: #f3faf1;
}
.share-button.is-copied {
    background: var(--green-700);
    color: var(--white);
}
.cart-toast-stack {
    position: fixed;
    right: 18px;
    top: 92px;
    z-index: 120;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
}
.cart-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 32, 26, .14);
    font-weight: 800;
}
.cart-toast.warning {
    color: #6d4a00;
    background: #fff8e8;
    border-color: #f4d68a;
}
.cart-toast.danger {
    color: #8a1f16;
    background: #fff0ed;
    border-color: #f2b4aa;
}
.cart-toast button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--white);
    background: var(--green-700);
    font-weight: 900;
    cursor: pointer;
}
.qumpra-alert-toast {
    align-items: flex-start;
    border-left: 4px solid #f9b500;
    background: #fff;
}
.qumpra-alert-toast > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.qumpra-alert-toast strong {
    color: #16351f;
}
.qumpra-alert-toast small {
    color: #59695e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.qumpra-alert-toast .button {
    flex: 0 0 auto;
    white-space: nowrap;
}
.page-share-strip {
    display: flex;
    justify-content: flex-end;
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto -6px;
}

.pill, .chip, .segmented span, .segmented a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.pill { padding: 7px 12px; color: var(--green-900); background: #dff9cc; }
.storefront-hero-content .pill {
    justify-self: start;
    width: auto;
    min-height: 24px;
    padding: 3px 10px;
    line-height: 1.2;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
}
.button.primary { color: var(--white); background: var(--green-700); }
.button.primary:hover { background: var(--green-900); }
.button.ghost { color: var(--green-900); background: var(--white); }
.button.outline { color: var(--green-700); background: var(--white); border-color: #a8e58c; }
.button.danger { color: var(--white); background: var(--coral); }
.button.small { min-height: 34px; width: 100%; font-size: 12px; padding: 8px 10px; }
.button.small-fit { min-height: 34px; width: auto; font-size: 12px; padding: 8px 10px; }
.button.full { width: 100%; margin-top: 10px; }
.text-link { color: var(--green-700); font-weight: 900; }
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.status-badge.warning { color: #7b4b00; background: #fff3d8; }
.status-badge.success { color: var(--green-900); background: #def8cf; }
.status-badge.muted { color: var(--muted); background: #edf2ec; }

.section { padding: 42px clamp(16px, 4vw, 42px); }
.section.tinted, .location-hub { background: var(--wash); }
.location-hub {
    display: grid;
    justify-items: center;
    width: 100%;
    margin-left: 0;
    padding: 18px clamp(16px, 4vw, 42px) 42px;
    overflow-x: clip;
    text-align: center;
}
.location-hub-subtitle {
    width: min(850px, 100%);
    margin-inline: auto;
    color: var(--muted);
    font-size: 16px;
}
.location-hub-note {
    margin: 0 auto 20px;
    font-size: 13px;
    font-weight: 700;
}
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.section-heading.center { display: grid; justify-items: center; text-align: center; }
.section-heading h2, .page-head h1 { margin: 0; color: var(--green-900); font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: 0; }
.section-heading p, .page-head p { margin: 8px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.location-tools {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}
.location-filter-open {
    display: none;
}
.location-filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    gap: 9px;
    align-items: end;
    width: min(850px, 100%);
    margin-inline: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 18px rgba(23, 32, 26, .045);
}
.location-filter-head {
    display: none;
}
.location-filter-title {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    text-align: left;
    color: var(--green-900);
    font-weight: 900;
}
.location-clear-link {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.location-filter-panel label {
    display: grid;
    gap: 4px;
    text-align: left;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.location-filter-panel select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 34px 8px 12px;
    color: var(--ink);
    background: var(--white);
    font-weight: 400;
}
.location-filter-panel select option {
    font-weight: 400;
}
.location-nearby-button {
    display: grid;
    place-items: center;
    width: 40px;
    min-height: 40px;
    border: 1px solid #a8e58c;
    border-radius: 8px;
    color: var(--green-700);
    background: #edf8e9;
    cursor: pointer;
}
.location-filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
    justify-content: flex-start;
}
.location-go-button,
.location-clear-button {
    display: none;
}
.location-view-button {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 40px;
    padding: 9px 18px;
}
.location-nearby-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.location-filter-panel small {
    grid-column: 1 / -1;
    align-self: center;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}
.chip { min-height: 34px; padding: 8px 15px; background: #e5f7da; color: var(--green-900); }
.chip.active, .segmented .active { background: var(--green-700); color: var(--white); }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.segmented span, .segmented a { padding: 8px 12px; }

.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; width: min(1440px, 100%); margin-inline: auto; }
.location-card, .product-card, .benefit-grid article, .summary-card, .form-panel, .auth-card, .dash-tile, .stats-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
}
.location-cover { position: relative; height: 150px; overflow: hidden; border-radius: 8px 8px 0 0; }
.location-cover img { width: 100%; height: 100%; object-fit: cover; }
.location-cover span { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--green-900); font-size: 11px; font-weight: 900; }
.location-body { padding: 14px; display: grid; gap: 12px; }
.location-body h3, .product-body h3 { margin: 0 0 4px; color: var(--green-900); }
.location-body p { margin: 0; color: var(--muted); font-size: 13px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--green-900); font-weight: 800; }
.meta-row span { background: #e8f8e2; border-radius: 999px; padding: 4px 8px; }

.markets-shops-hero {
    padding: 34px clamp(16px, 4vw, 42px) 26px;
    background: var(--wash);
}
.markets-shops-hero > div,
.markets-shops-directory {
    width: min(1440px, 100%);
    margin-inline: auto;
}
.markets-shops-hero h1 {
    margin: 10px 0 8px;
    color: var(--green-900);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: 0;
}
.markets-shops-hero p {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    font-weight: 800;
}
.markets-shops-directory {
    padding: 18px clamp(16px, 4vw, 42px) 52px;
}
.markets-shops-filter-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(0, 2fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}
.markets-shops-search input,
.markets-shops-filter-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.markets-shops-filter-form select,
.markets-shops-filter-form select option {
    font-weight: 400;
}
.markets-shops-search input:focus-visible,
.markets-shops-filter-form select:focus-visible,
.filter-chip:focus-visible,
.markets-shops-results-head h2:focus-visible {
    outline: 3px solid rgba(249, 181, 0, .45);
    outline-offset: 2px;
}
.markets-shops-filter-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}
.markets-shops-filter-form label {
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.markets-shops-filter-form label span {
    display: block;
}
.markets-shops-filter-state,
.markets-shops-mobile-filter-button {
    display: none;
}
.markets-shops-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #f0c7b7;
    border-radius: 8px;
    color: #7b2d19;
    background: #fff5f0;
}
.markets-shops-error[hidden] {
    display: none;
}
.markets-shops-results {
    position: relative;
    transition: opacity .18s ease;
}
.markets-shops-results.is-loading {
    opacity: .62;
}
.markets-shops-results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    margin-bottom: 10px;
}
.markets-shops-results-head h2 {
    margin: 0 0 4px;
    color: var(--green-900);
    font-size: 22px;
}
.markets-shops-results-head p,
.markets-shops-loading {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.markets-shops-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin-bottom: 14px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e5f7da;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 900;
}
.filter-chip b {
    font-size: 16px;
    line-height: 1;
}
.markets-shops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.markets-shops-card {
    min-height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
    overflow: hidden;
}
.markets-shops-card > a {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    color: inherit;
}
.markets-shops-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 164px;
    overflow: hidden;
    background: #e7f3df;
}
.markets-shops-cover > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.markets-shops-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.markets-shops-card-badges span {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--green-900);
    font-size: 11px;
    font-weight: 900;
}
.markets-shops-logo {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    border: 3px solid var(--white);
    border-radius: 8px;
    object-fit: cover;
    background: var(--white);
}
.markets-shops-card-body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 14px;
}
.markets-shops-card-body h3 {
    margin: 0 0 5px;
    color: var(--green-900);
    font-size: 19px;
    line-height: 1.15;
}
.markets-shops-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.markets-shops-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-content: start;
}
.markets-shops-card-meta span,
.markets-shops-card-foot span {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f7ef;
    color: #385145;
    font-size: 12px;
    font-weight: 800;
}
.markets-shops-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--green-900);
    font-weight: 900;
}
.markets-shops-empty {
    margin-top: 18px;
}

@media (max-width: 920px) {
    .markets-shops-filter-form {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
    .markets-shops-filter-fields {
        display: none;
    }
    .markets-shops-mobile-filter-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--green-900);
        background: var(--white);
        font-weight: 900;
        cursor: pointer;
    }
    .markets-shops-mobile-filter-button b {
        display: inline-grid;
        place-items: center;
        min-width: 22px;
        height: 22px;
        border-radius: 999px;
        background: var(--yellow);
        color: var(--green-900);
        font-size: 12px;
    }
    .markets-shops-filter-state:checked ~ .markets-shops-filter-fields {
        display: grid;
    }
    .markets-shops-filter-fields {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        z-index: 20;
        width: min(330px, calc(100vw - 32px));
        grid-template-columns: 1fr;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .markets-shops-filter-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .markets-shops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .markets-shops-hero {
        padding-top: 26px;
        padding-bottom: 20px;
    }
    .markets-shops-directory {
        padding-top: 12px;
    }
    .markets-shops-filter-form {
        grid-template-columns: 1fr;
    }
    .markets-shops-mobile-filter-button {
        width: 100%;
    }
    .markets-shops-filter-fields {
        left: 0;
        right: auto;
        width: 100%;
    }
    .markets-shops-results-head {
        align-items: start;
        display: grid;
    }
    .markets-shops-grid {
        grid-template-columns: 1fr;
    }
    .markets-shops-card-foot {
        align-items: start;
        display: grid;
    }
}

.storefront-hero {
    position: relative;
    min-height: 330px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
}
.storefront-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.storefront-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 73, 34, .90), rgba(13, 95, 42, .62) 48%, rgba(13, 95, 42, .18) 100%);
}
.storefront-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 30px;
}
.storefront-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.storefront-hero-content h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(30px, 4.25vw, 58px);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.storefront-hero-content p { margin: 0; max-width: 820px; font-weight: 800; }
.storefront-description {
    max-width: 780px;
    color: #f4fff0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.storefront-description p,
.storefront-hero-note p {
    margin: 0;
}
.storefront-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.storefront-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    font-size: 13px;
    font-weight: 900;
}
.storefront-status::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background: #f9b500;
    display: inline-block;
}
.storefront-status.is-open::before { background: #4ba430; }
.storefront-status.is-closed::before { background: #e95439; }
.storefront-status.is-unavailable::before { background: #9aa6a0; }
.storefront-meta a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.storefront-owner { color: #e5f7da; }
.storefront-hero-note {
    display: grid;
    gap: 4px;
    max-width: 780px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
}
.storefront-hero-note strong {
    color: var(--white);
}
.storefront-details-section {
    width: min(1440px, calc(100% - 32px));
    margin: 14px auto 0;
}
.storefront-grid { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 24px; align-items: start; }
.storefront-info {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    box-shadow: 0 6px 18px rgba(23, 32, 26, .04);
}
.storefront-info summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    color: var(--green-900);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}
.storefront-info summary::-webkit-details-marker { display: none; }
.storefront-info summary::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
}
.storefront-info[open] summary::after { content: "-"; }
.storefront-extra-info {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}
.storefront-extra-info h3 {
    margin: 0;
    color: var(--green-900);
    font-size: 16px;
}

.catalog-search-bar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    width: min(840px, 100%);
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(174px, 1fr)); gap: 16px; }
.product-grid.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 240px)); }
.storefront-fulfillment-note {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    color: var(--green-900);
    background: #f0f8ed;
    font-weight: 800;
}
.storefront-products-section {
    padding: 18px clamp(10px, 2vw, 28px) 54px;
}
.storefront-mobile-search,
.storefront-mobile-control-row {
    display: none;
}
.storefront-products-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    width: min(1440px, 100%);
    margin-inline: auto;
}
.storefront-range {
    font-size: 13px;
}
.storefront-heading-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: end;
}
.storefront-heading-tools select,
.storefront-heading-tools input,
.storefront-mobile-search input,
.storefront-mobile-tool-form select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #f8fbf7;
}
.storefront-heading-tools select,
.storefront-mobile-tool-form select {
    min-width: 150px;
}
.storefront-per-page-control {
    display: grid;
    grid-template-columns: auto minmax(86px, auto);
    gap: 7px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.storefront-custom-page-size input {
    width: 92px;
}
.storefront-shopping-toolbar {
    position: sticky;
    top: 67px;
    z-index: 42;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto minmax(170px, auto) auto;
    gap: 8px;
    align-items: center;
    width: min(1440px, 100%);
    margin: 0 auto 22px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(23, 32, 26, .06);
    backdrop-filter: blur(12px);
}
.storefront-shopping-toolbar input[type="search"],
.storefront-shopping-toolbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #f8fbf7;
}
.storefront-toolbar-search {
    min-width: 0;
}
.storefront-filter-menu {
    position: relative;
}
.storefront-filter-menu summary {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #f6faf5;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}
.storefront-filter-menu summary::-webkit-details-marker { display: none; }
.storefront-filter-menu > div {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 82;
    display: grid;
    gap: 12px;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.storefront-filter-menu label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green-900);
    font-weight: 900;
}
.storefront-custom-apply[hidden] {
    display: none;
}
.storefront-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(1440px, 100%);
    margin-inline: auto;
    align-items: stretch;
}
.storefront-pagination {
    display: flex;
    justify-content: center;
    width: min(1440px, 100%);
    margin: 20px auto 0;
}
.storefront-pagination-top {
    display: none;
    margin: -4px auto 18px;
}
.storefront-pagination-desktop,
.storefront-pagination-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.storefront-pagination-mobile {
    display: none;
}
.pagination-page,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    color: #314039;
    font-weight: 500;
}
.storefront-pagination .button,
.pagination-page {
    border: 1px solid #dfe8dd;
    border-radius: 8px;
    color: #314039;
    background: var(--white);
    box-shadow: none;
    font-weight: 500;
}
.storefront-pagination .button {
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    color: #3f5047;
}
.storefront-pagination .button:hover,
.pagination-page:hover {
    border-color: #a8d69b;
    color: var(--green-900);
    background: #f6fbf4;
}
.storefront-pagination .button:focus-visible,
.pagination-page:focus-visible {
    outline: 3px solid rgba(249, 181, 0, .45);
    outline-offset: 2px;
}
.pagination-page.is-active {
    color: var(--green-900);
    background: #edf8e9;
    border-color: #8bcf77;
    font-weight: 600;
}
.storefront-pagination .disabled-button {
    color: #8d9991;
    background: #f3f6f2;
    border-color: #e4ebe2;
    opacity: 1;
}
@media (min-width: 720px) {
    .storefront-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .storefront-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .storefront-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1360px) {
    .storefront-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
.product-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.product-image { position: relative; display: block; aspect-ratio: 1 / 1; height: auto; padding: 14px; background: #fbfdfb; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.sale-badge { position: absolute; top: 9px; right: 9px; border-radius: 999px; padding: 4px 8px; background: var(--coral); color: var(--white); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.product-body { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 8px; padding: 12px; }
.product-body small { color: var(--green-700); font-weight: 800; }
.product-body h3 {
    margin: 0;
    color: #102318;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    min-height: 0;
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
}
.price { margin: 0; color: #4ba430; font-size: 16px; font-weight: 600; }
.product-card.has-discount .price { font-weight: 700; }
.price span, .detail-price span { color: #7d8982; font-size: 12px; font-weight: 400; }
.old-price { min-height: 18px; margin: 0; text-decoration: line-through; color: #9aa6a0; font-size: 12px; font-weight: 400; }
.old-price.is-placeholder { visibility: hidden; }
.product-price-row {
    display: grid;
    align-content: start;
    min-height: 50px;
    align-self: start;
}
.quick-add { display: grid; gap: 8px; align-self: end; margin-top: 2px; }
.product-body .product-source { display: block; color: var(--muted); font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.product-availability { color: #8a1f16; }
.qty-control { display: grid; grid-template-columns: 38px minmax(58px, 1fr) 38px; align-items: center; gap: 6px; }
.qty-control button, .icon-button { display: grid; place-items: center; border: 0; border-radius: 8px; background: #edf8e9; color: var(--green-700); font-weight: 700; min-height: 38px; cursor: pointer; }
.qty-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    border-radius: 8px;
    background: #f7fbf5;
    color: var(--green-900);
    font-weight: 600;
}
.qty-value span {
    padding-right: 7px;
    color: var(--muted);
    font-size: 12px;
}
.qty-control input { width: 100%; min-width: 0; max-width: none; height: 38px; padding: 0 2px; text-align: center; border: 0; background: transparent; color: var(--green-900); font-weight: 600; line-height: 1; }
.product-card.is-added {
    border-color: #a8e58c;
    box-shadow: 0 10px 24px rgba(75, 164, 48, .16);
}
.product-card.is-added .add-to-basket-button {
    background: #4ba430;
}

.benefit-grid, .dashboard-grid, .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.dashboard-application-notices {
    display: grid;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
}
.dashboard-application-notices article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid #dcead7;
    border-radius: 8px;
    background: #fbfdf9;
    color: #405043;
    font-size: 14px;
}
.dashboard-application-notices a {
    color: var(--green-700);
    font-weight: 800;
    white-space: nowrap;
}
.customer-profile-strip {
    padding: 16px clamp(16px, 4vw, 42px) 12px;
    background: linear-gradient(180deg, var(--wash), #fff);
}
.customer-profile-card {
    display: grid;
    gap: 14px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #dbe8d7;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 22px rgba(23, 32, 26, .055);
}
.customer-profile-card header,
.customer-profile-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.customer-profile-card h2 {
    margin: 2px 0 0;
    color: var(--green-900);
    font-size: 22px;
    line-height: 1.1;
}
.profile-kicker {
    color: #5e7464;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    align-items: end;
}
.profile-form-grid label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 900;
}
.profile-form-grid input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    background: var(--white);
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
}
.profile-promo-note {
    display: grid;
    gap: 3px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e3eadf;
    border-radius: 8px;
    background: #f8fbf6;
}
.profile-promo-note strong {
    color: var(--green-900);
    font-size: 13px;
}
.profile-promo-note span,
.customer-profile-card footer p {
    margin: 0;
    color: #607064;
    font-size: 12px;
    line-height: 1.35;
}
.customer-profile-card .button {
    min-width: 130px;
}
.field-error {
    color: #a5331f;
    font-size: 12px;
    font-weight: 800;
}
.customer-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    padding: 12px clamp(16px, 4vw, 42px) 18px;
}
.customer-dashboard-grid .dash-tile {
    min-height: 108px;
    padding: 16px;
}
.customer-dashboard-grid .dash-tile strong {
    font-size: 18px;
}
.customer-role-section {
    padding-top: 18px;
}
.customer-role-section .section-heading {
    margin-bottom: 12px;
}
.customer-role-form {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 16px;
    gap: 10px;
}
.customer-role-form textarea {
    min-height: 84px;
}
.compact-account-head {
    padding-top: 28px;
    padding-bottom: 20px;
}
.account-page-grid {
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr);
    gap: 16px;
    padding: 18px clamp(16px, 4vw, 42px) 38px;
}
.account-utility-section {
    padding-top: 18px;
}
.account-utility-form {
    align-content: start;
    padding: 16px;
}
.account-utility-form h2,
.account-list-panel h2,
.support-hours-panel h2 {
    margin: 0;
    color: var(--green-900);
    font-size: 22px;
}
.account-list-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}
.account-card-list {
    display: grid;
    gap: 10px;
}
.account-mini-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 6px 16px rgba(23, 32, 26, .045);
}
.account-mini-card strong,
.account-mini-card span,
.account-mini-card small {
    display: block;
}
.account-mini-card strong {
    color: var(--green-900);
    font-size: 18px;
}
.account-mini-card span,
.account-mini-card p,
.account-mini-card small {
    margin: 4px 0 0;
    color: #607064;
    line-height: 1.35;
}
.account-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.coupon-grid,
.account-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.coupon-card {
    min-height: 128px;
}
.coupon-card small,
.coupon-card em {
    display: block;
    color: #607064;
    font-style: normal;
    line-height: 1.35;
}
.support-hours-panel {
    width: min(720px, 100%);
    margin-top: 14px;
    padding: 16px;
}
.support-hours-panel p {
    margin: 4px 0 0;
    color: #607064;
}
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.management-card, .user-management-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
}
.management-card h3, .user-management-card h3 {
    margin: 0;
    color: var(--green-900);
}
.management-card p, .user-management-card p {
    margin: 0;
    color: var(--muted);
}
.user-management-list {
    display: grid;
    gap: 14px;
}
.user-management-card {
    grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr);
    align-items: start;
}
.account-actions {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}
.user-management-card label, .management-card label {
    display: grid;
    gap: 6px;
    color: var(--green-900);
    font-weight: 800;
}
.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.user-management-card .button.small,
.management-card .button.small {
    width: auto;
}
.account-actions .inline-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
}
.suspension-drawer {
    display: grid;
    gap: 10px;
}
.suspension-drawer summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #bce9a7;
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--green-900);
    background: #f7fff3;
    font-weight: 900;
    text-align: center;
}
.suspension-drawer summary::-webkit-details-marker {
    display: none;
}
.suspension-drawer[open] summary {
    background: #edf8e9;
}
.suspension-panel {
    display: grid;
    grid-template-columns: minmax(130px, .5fr) minmax(220px, 1fr) auto auto;
    gap: 8px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--green-50);
}
.multi-select {
    display: grid;
    gap: 8px;
}
.multi-select summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--green-900);
    background: var(--white);
    font-weight: 900;
}
.multi-select summary::-webkit-details-marker {
    display: none;
}
.multi-select-menu {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.multi-select-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}
.multi-select-menu input {
    width: auto;
}
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 18px;
}
.profile-panel {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
}
.profile-panel:first-child {
    grid-row: span 2;
}
.profile-panel h2 {
    margin-top: 0;
    color: var(--green-900);
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--green-900);
    background: #e8f8e2;
    font-size: 12px;
    font-weight: 900;
}
.status-pill.warning {
    color: #7b4b00;
    background: #fff3d8;
}
.status-pill.verified {
    color: var(--white);
    background: var(--green-700);
}
.status-pill.status-suspended {
    color: #7b4b00;
    background: #fff3d8;
}
.status-pill.status-inactive {
    color: #8b1d0d;
    background: #ffe7e1;
}
.admin-users-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 24px clamp(16px, 3vw, 40px) 34px;
}
.admin-users-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding: 0 0 20px;
}
.admin-users-head h1 {
    margin: 4px 0 0;
    color: var(--green-900);
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.06;
    letter-spacing: 0;
}
.admin-users-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.admin-users-kicker {
    min-height: 22px;
    padding: 4px 10px;
    font-size: 11px;
}
.admin-users-back {
    min-height: 38px;
    padding: 8px 14px;
    white-space: nowrap;
}
.admin-user-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 0;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.admin-user-metrics div {
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 11px 14px;
    border-right: 1px solid var(--line);
}
.admin-user-metrics div:last-child { border-right: 0; }
.admin-user-metrics span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.admin-user-metrics strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
}
.admin-accordion {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.admin-accordion-trigger,
.admin-accordion-empty {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--green-900);
    background: var(--white);
    font-weight: 900;
    cursor: pointer;
}
.admin-accordion-trigger:hover { background: #f8fbf7; }
.admin-accordion-trigger.subtle {
    min-height: 44px;
    color: var(--muted);
    font-size: 13px;
}
.admin-accordion-empty {
    justify-content: flex-start;
    color: var(--green-900);
    background: #f5fbf2;
    cursor: default;
}
.chevron {
    display: inline-grid;
    place-items: center;
    width: 18px;
    transition: transform .16s ease;
}
[aria-expanded="true"] > .chevron,
[aria-expanded="true"] .chevron {
    transform: rotate(90deg);
}
.count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--green-900);
    background: #e7f7df;
    font-size: 12px;
    font-weight: 900;
}
.count-badge.muted {
    color: var(--muted);
    background: #f0f3ef;
}
.admin-accordion-panel {
    border-top: 1px solid var(--line);
    padding: 8px;
}
.role-request-list,
.role-history-list {
    display: grid;
    gap: 6px;
}
.role-request-row {
    display: grid;
    grid-template-columns: 40px minmax(170px, .85fr) minmax(220px, 1fr) minmax(300px, 1.1fr);
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 9px 10px;
    border: 1px solid #edf2ec;
    border-radius: 8px;
    background: #fff;
}
.request-person,
.request-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.request-person strong {
    color: var(--green-900);
    font-size: 14px;
}
.request-person span,
.request-meta span,
.role-history-list span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-profile-button {
    justify-self: start;
    min-height: 32px;
    padding: 6px 10px;
}
.request-actions {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto auto;
    gap: 7px;
    align-items: center;
}
.request-actions input,
.admin-user-toolbar input,
.admin-user-toolbar select,
.compact-actions input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--white);
}
.test-account-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #34443a;
    font-size: 13px;
    font-weight: 800;
}
.test-account-toggle input {
    width: 18px;
    min-height: 18px;
}
.permanent-delete-box {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #f0b8ac;
    border-radius: 8px;
    background: #fff4f1;
}
.permanent-delete-box strong {
    color: #8b1d0d;
    font-size: 13px;
}
.permanent-delete-box p {
    margin: 0;
    color: #754034;
    font-size: 12px;
    line-height: 1.35;
}
.danger-outline {
    color: #a1301e;
    border-color: #f0b8ac;
}
.role-history-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f3ef;
}
.role-history-list > div:last-child { border-bottom: 0; }
.admin-user-toolbar {
    position: sticky;
    top: 66px;
    z-index: 35;
    display: block;
    margin: 16px 0 8px;
    padding: 10px;
    border: 1px solid rgba(225, 234, 223, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(23, 32, 26, .06);
    backdrop-filter: blur(12px);
}
.admin-search-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.admin-search-combobox {
    position: relative;
    min-width: 0;
}
.admin-user-toolbar input[type="search"] {
    min-height: 42px;
    padding-left: 14px;
}
.admin-filter-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #f7fbf5;
    font-weight: 900;
    cursor: pointer;
}
.admin-filter-button::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    clip-path: polygon(8% 14%, 92% 14%, 60% 50%, 60% 84%, 40% 84%, 40% 50%);
}
.admin-filter-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.admin-filter-button b {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    color: var(--white);
    background: var(--green-700);
    font-size: 10px;
    line-height: 1;
}
.admin-filter-button[aria-expanded="true"],
.admin-filter-button:hover {
    border-color: #a8d89a;
    background: #eef9e9;
}
.admin-filter-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    z-index: 62;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: min(320px, calc(100vw - 34px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.admin-filter-popover[hidden] {
    display: none;
}
.admin-filter-popover label {
    display: grid;
    gap: 5px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.admin-user-toolbar select {
    min-height: 38px;
    font-size: 13px;
    font-weight: 800;
}
.admin-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    max-height: 330px;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.admin-autocomplete button {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 9px;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    background: transparent;
    cursor: pointer;
}
.admin-autocomplete button:hover,
.admin-autocomplete button.is-active {
    background: #f4faf1;
}
.admin-autocomplete strong,
.admin-autocomplete small,
.admin-autocomplete em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-autocomplete strong {
    color: var(--green-900);
    font-size: 13px;
}
.admin-autocomplete small,
.admin-autocomplete em,
.autocomplete-state {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}
.admin-autocomplete mark {
    color: inherit;
    background: #dff9cc;
}
.autocomplete-state { padding: 10px; }
.active-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 8px 0;
    color: var(--muted);
    font-size: 12px;
}
.filter-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border: 1px solid #cfe6c9;
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--green-900);
    background: #f4fbf1;
    font-weight: 900;
}
.clear-filters {
    color: var(--green-700);
    font-weight: 900;
}
.result-count {
    margin: 10px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.admin-user-list {
    display: grid;
    gap: 6px;
}
.admin-user-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(23, 32, 26, .035);
    overflow: visible;
}
.admin-user-item.is-open {
    border-color: #cce6c5;
    box-shadow: 0 10px 24px rgba(23, 32, 26, .07);
}
.admin-user-summary {
    display: grid;
    grid-template-columns: 20px 40px minmax(180px, 1.35fr) minmax(170px, 1fr) auto auto 78px 24px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    border: 0;
    padding: 10px 14px;
    color: var(--ink);
    text-align: left;
    background: var(--white);
    cursor: pointer;
}
.admin-user-summary:hover { background: #fbfdfb; }
.avatar {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: hsl(var(--avatar-hue, 135), 52%, 23%);
    background: hsl(var(--avatar-hue, 135), 58%, 89%);
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
}
.avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-identity,
.role-inline {
    min-width: 0;
}
.user-identity strong,
.user-identity small,
.role-inline,
.last-activity {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-identity strong {
    color: var(--green-900);
    font-size: 15px;
    line-height: 1.15;
}
.user-identity small,
.last-activity {
    color: var(--muted);
    font-size: 12px;
}
.role-inline {
    color: #334139;
    font-size: 13px;
    font-weight: 800;
}
.status-pill.compact {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
}
.status-pill.status-active {
    color: #0d5f2a;
    background: #e8f8e2;
}
.overflow-dot {
    justify-self: end;
    color: var(--muted);
    font-weight: 900;
}
.admin-user-details {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, .9fr) minmax(300px, 1.15fr) minmax(240px, .85fr);
    gap: 14px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: #fbfdfb;
    overflow: visible;
}
.admin-user-details[hidden] { display: none; }
.admin-user-details section {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e8efe6;
    border-radius: 8px;
    background: var(--white);
}
.admin-user-details h2 {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 15px;
}
.compact-definition-list {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
}
.compact-definition-list div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
}
.compact-definition-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.compact-definition-list dd {
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.admin-modal-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.has-admin-modal {
    overflow: hidden;
}
.admin-profile-modal[hidden] {
    display: none;
}
.admin-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 28px);
}
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 22, 14, .42);
    opacity: 0;
    cursor: pointer;
    transition: opacity .14s ease;
}
.admin-profile-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(980px, 100%);
    max-height: min(86vh, 820px);
    overflow: hidden;
    border: 1px solid rgba(210, 226, 207, .9);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 22px 70px rgba(9, 24, 13, .24);
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: opacity .14s ease, transform .14s ease;
}
.admin-profile-modal.is-open .admin-modal-backdrop,
.admin-profile-modal.is-open .admin-profile-modal-panel {
    opacity: 1;
}
.admin-profile-modal.is-open .admin-profile-modal-panel {
    transform: translateY(0) scale(1);
}
.admin-profile-modal-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdfb;
}
.admin-profile-modal-panel h2 {
    margin: 3px 0 0;
    color: var(--green-900);
    font-size: 20px;
    line-height: 1.15;
}
.admin-modal-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: var(--white);
    font-weight: 900;
    cursor: pointer;
}
.admin-modal-close:hover {
    border-color: #b6dda7;
    background: #f2faee;
}
.admin-profile-modal-body {
    overflow: auto;
    padding: 16px;
}
.admin-modal-loading,
.admin-modal-empty {
    display: grid;
    gap: 6px;
    min-height: 180px;
    place-content: center;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}
.admin-modal-empty h3 {
    margin: 0;
    color: var(--green-900);
    font-size: 20px;
}
.admin-modal-empty p {
    margin: 0;
}
.admin-modal-profile {
    display: grid;
    gap: 14px;
}
.admin-modal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e4eee1;
    border-radius: 8px;
    background: #f8fcf6;
}
.admin-modal-hero > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}
.modal-avatar {
    width: 46px;
    height: 46px;
}
.admin-modal-hero h3,
.admin-modal-business h3 {
    margin: 0;
    color: var(--green-900);
    font-size: 20px;
    line-height: 1.15;
}
.admin-modal-hero p,
.admin-modal-business p,
.admin-modal-card-list p,
.admin-modal-card-list small {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.admin-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-modal-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-modal-grid > section,
.admin-modal-section {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e6efe3;
    border-radius: 8px;
    background: var(--white);
}
.admin-modal-grid h4,
.admin-modal-section h4 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 14px;
}
.admin-modal-card-list {
    display: grid;
    gap: 8px;
}
.admin-modal-card-list article {
    min-width: 0;
    padding: 10px;
    border: 1px solid #edf2ec;
    border-radius: 8px;
    background: #fbfdfb;
}
.admin-modal-card-list.compact article {
    padding: 8px 10px;
}
.admin-modal-card-list strong,
.admin-modal-card-list span,
.admin-modal-card-list small {
    display: block;
    overflow-wrap: anywhere;
}
.admin-modal-card-list strong {
    color: var(--green-900);
    font-size: 13px;
}
.admin-modal-card-list span {
    margin-top: 2px;
    color: #425047;
    font-size: 12px;
    font-weight: 900;
}
.admin-modal-business-list {
    display: grid;
    gap: 14px;
}
.admin-modal-business {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2eddf;
    border-radius: 8px;
    background: var(--white);
}
.admin-modal-business > img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    background: #eef5eb;
}
.admin-modal-business-body {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
}
.admin-modal-business-body > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}
.admin-modal-sales {
    display: flex;
    align-items: end;
    gap: 5px;
    min-height: 82px;
    padding: 8px;
    border: 1px solid #edf2ec;
    border-radius: 8px;
    background: #fbfdfb;
}
.admin-modal-sales span {
    flex: 1;
    min-width: 8px;
    border-radius: 999px 999px 2px 2px;
    background: linear-gradient(180deg, #2e9b52, #116c31);
}
.role-pill-form {
    display: grid;
    gap: 10px;
}
.role-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.role-pill-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid #dce8d8;
    border-radius: 999px;
    padding: 5px 10px;
    color: #34443a;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.role-pill-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.role-pill-option.is-selected {
    border-color: #a8d89a;
    color: var(--green-900);
    background: #eef9e9;
}
.role-pill-option.is-protected {
    box-shadow: inset 0 0 0 1px rgba(13, 95, 42, .08);
}
.role-assignment-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(180px, 1fr);
    gap: 10px;
    align-items: end;
    border: 1px solid #d9ecda;
    border-radius: 8px;
    padding: 10px;
    background: #f7fcf4;
}
.role-assignment-panel[hidden] {
    display: none;
}
.role-assignment-panel strong,
.role-assignment-panel span {
    display: block;
}
.role-assignment-panel strong {
    color: var(--green-900);
    font-size: 13px;
}
.role-assignment-panel span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.role-assignment-panel label {
    display: grid;
    gap: 5px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.role-assignment-panel input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--white);
}
.unsaved-indicator {
    min-height: 20px;
    border-radius: 999px;
    padding: 2px 7px;
    color: #7b4b00;
    background: #fff3d8;
    font-size: 11px;
}
.account-control-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}
.account-control-grid .admin-inline-feedback {
    flex-basis: 100%;
}
.admin-inline-feedback {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.compact-actions {
    width: auto;
}
.compact-actions[open] > div {
    position: absolute;
    right: 0;
    z-index: 20;
    gap: 8px;
}
.compact-actions label {
    display: grid;
    gap: 4px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.compact-actions span {
    color: var(--muted);
    font-size: 12px;
}
.admin-empty-state {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fbfdfb;
    text-align: center;
}
.admin-users-pagination {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.disabled-button {
    opacity: .48;
    pointer-events: none;
}
.admin-users-shell button:focus-visible,
.admin-users-shell a:focus-visible,
.admin-users-shell input:focus-visible,
.admin-users-shell select:focus-visible,
.role-pill-option:focus-within {
    outline: 3px solid rgba(24, 133, 54, .2);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .admin-users-shell *,
    .admin-users-shell *::before,
    .admin-users-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
.action-menu {
    position: relative;
}
.action-menu summary {
    display: grid;
    place-items: center;
    width: 38px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #f7fbf5;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}
.action-menu summary::-webkit-details-marker {
    display: none;
}
.action-menu[open] > div {
    display: grid;
    min-width: 170px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.admin-user-item.is-open:has(.action-menu[open]) {
    z-index: 5;
}
.action-menu a,
.action-menu button {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}
.action-menu a:hover,
.action-menu button:hover {
    background: var(--wash);
}
.business-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
}
.business-hero-panel {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.business-hero-panel img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: #fbfdfb;
}
.hero-image-manager {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
}
.hero-image-manager > img {
    width: 220px;
    height: 150px;
}
.hero-image-fields {
    display: grid;
    gap: 14px;
}
.hero-gallery-picker {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.hero-gallery-picker h3,
.hero-gallery-picker p {
    margin: 0;
}
.hero-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.hero-gallery-card {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}
.hero-gallery-card input {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    accent-color: var(--green-700);
}
.hero-gallery-card img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf8e9;
}
.hero-gallery-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.hero-gallery-card.is-selected,
.hero-gallery-card:has(input:checked) {
    border-color: var(--green-700);
    box-shadow: 0 0 0 2px rgba(24, 133, 54, .12);
}
.compact-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
}
.bar-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 160px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.bar-column {
    display: grid;
    gap: 8px;
    align-items: end;
    justify-items: center;
}
.bar-column span {
    width: 100%;
    max-width: 34px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--lime), var(--green-700));
}
.bar-column small {
    color: var(--muted);
    font-weight: 800;
}
.danger-button {
    color: #8b1d0d;
}
.benefit-grid article { padding: 28px; text-align: center; }
.benefit-icon { display: grid; place-items: center; margin: 0 auto 12px; width: 46px; height: 46px; border-radius: 8px; background: var(--sky); color: var(--green-900); font-weight: 900; }

.page-head { display: flex; justify-content: space-between; gap: 22px; align-items: end; padding: 42px clamp(16px, 4vw, 42px) 22px; background: var(--wash); }
.admin-page-head {
    align-items: center;
    padding-top: 44px;
    padding-bottom: 28px;
    background: #eef6ed;
}
.admin-page-head h1 {
    font-size: clamp(34px, 4.5vw, 54px);
    letter-spacing: 0;
}
.admin-title-row {
    display: flex;
    gap: 16px;
    align-items: center;
}
.admin-menu-button {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--green-900);
    background: transparent;
    cursor: pointer;
}
.admin-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.admin-hamburger-panel {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    padding: 0 clamp(16px, 4vw, 42px) 18px;
    background: #eef6ed;
}
.admin-hamburger-panel.open {
    display: grid;
}
.admin-hamburger-panel a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: var(--white);
    font-weight: 900;
}
.admin-overview-shell,
.admin-control-surface {
    background: #eef6ed;
}
.admin-overview-shell {
    display: grid;
    gap: 24px;
    padding: 0 clamp(16px, 4vw, 42px) 52px;
}
.admin-metric-grid,
.admin-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.admin-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-metric-card,
.admin-panel,
.admin-signal-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(23, 32, 26, .06);
}
.admin-metric-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 160px;
    padding: 22px;
    background: var(--white);
}
.admin-metric-card small {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--lime);
    background: #eefde6;
    font-weight: 900;
}
.admin-metric-card strong {
    align-self: end;
    color: #58745f;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-metric-card b {
    color: var(--green-900);
    font-size: 36px;
    line-height: 1;
}
.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--metric-color);
    box-shadow: inset 0 -8px 18px rgba(255,255,255,.14);
}
.admin-signal-card {
    display: grid;
    gap: 10px;
    min-height: 145px;
    padding: 24px;
    color: var(--white);
    background: var(--green-700);
}
.admin-signal-card.dark { background: #111827; }
.admin-signal-card.violet { background: #5145e8; }
.admin-signal-card.cyan { background: #0f98ae; }
.admin-signal-card small {
    opacity: .72;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-signal-card strong {
    font-size: 34px;
    line-height: 1;
}
.admin-signal-card span {
    opacity: .82;
    font-weight: 800;
}
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}
.admin-panel {
    padding: 24px;
    background: var(--white);
}
.admin-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.admin-attention-card {
    color: var(--white);
    background: var(--green-700);
}
.admin-attention-card h2,
.admin-attention-card p {
    color: var(--white);
}
.admin-attention-card .button {
    color: var(--green-900);
}
.page-search { display: grid; grid-template-columns: minmax(180px, 1fr) 170px auto; gap: 10px; width: min(680px, 100%); }
.product-detail { display: grid; grid-template-columns: minmax(280px, .8fr) 1fr; gap: 32px; padding: 42px clamp(16px, 4vw, 42px); align-items: start; }
.detail-media { border-radius: 8px; border: 1px solid var(--line); background: #fbfdfb; padding: 24px; }
.detail-media img { width: 100%; max-height: 520px; object-fit: contain; }
.detail-info {
    display: grid;
    gap: 14px;
}
.detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.detail-info h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 58px); color: var(--green-900); line-height: 1; letter-spacing: 0; }
.purchase-box {
    position: sticky;
    top: 92px;
    z-index: 5;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 24px rgba(23,32,26,.06);
}
.detail-price { margin: 0; font-size: 30px; color: var(--green-900); font-weight: 900; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.facts div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfb; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 3px 0 0; font-weight: 900; }
.storefront-info .facts dt {
    color: var(--green-900);
    font-weight: 900;
}
.storefront-info .facts dd {
    font-size: 14px;
    font-weight: 400;
}
.recent-product-list {
    display: grid;
    gap: 10px;
    max-width: 860px;
}
.recent-product-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
}
.recent-product-row img {
    width: 72px;
    height: 62px;
    object-fit: contain;
    border-radius: 6px;
    background: #fbfdfb;
}
.recent-product-row span {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.recent-product-row strong {
    color: var(--green-900);
}
.recent-product-row small {
    color: var(--muted);
}
.recent-product-row b {
    color: var(--green-900);
    white-space: nowrap;
}
.detail-actions {
    display: grid;
    grid-template-columns: minmax(130px, 160px) auto minmax(150px, 1fr) minmax(130px, .7fr);
    gap: 10px;
    align-items: center;
}
.detail-qty-control {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.qty-unit {
    color: var(--muted);
    font-weight: 900;
}
.product-facts {
    margin-top: 6px;
}

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 24px clamp(16px, 4vw, 42px) 52px; align-items: start; }
.basket-list { display: grid; gap: 14px; }
.basket-item { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 14px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.basket-item.simple { grid-template-columns: 1fr auto; }
.basket-item img { width: 92px; height: 80px; object-fit: contain; border-radius: 8px; background: #fbfdfb; }
.basket-item h3 { margin: 0; color: var(--green-900); }
.basket-item p { margin: 4px 0; color: var(--muted); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { max-width: 92px; }
.cart-qty-control {
    width: min(168px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.checkout-cart-accordion {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.checkout-cart-accordion summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: var(--green-900);
    font-weight: 900;
    cursor: pointer;
}
.checkout-cart-accordion summary span {
    color: var(--muted);
}
.checkout-cart-list {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}
.checkout-cart-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.checkout-cart-item img {
    width: 52px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fbfdfb;
}
.checkout-cart-item strong {
    display: block;
    color: var(--green-900);
}
.checkout-cart-item small {
    display: block;
    color: var(--muted);
}
.checkout-cart-item b {
    color: var(--green-900);
    white-space: nowrap;
}
.checkout-qty-form {
    margin-top: 8px;
    flex-wrap: wrap;
}
.summary-card, .form-panel { padding: 20px; }
.summary-card h2, .form-panel h2 { margin-top: 0; color: var(--green-900); }
.summary-card p { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.summary-card .total { font-size: 20px; color: var(--green-900); }
.checkout-step {
    display: grid;
    gap: 14px;
}
.step-kicker {
    color: var(--green-700);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.delivery-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pickup-preview {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px dashed #bce9a7;
    border-radius: 8px;
    color: var(--muted);
    background: #fbfffb;
    font-weight: 800;
}
.pickup-preview strong {
    color: var(--green-900);
}
.payment-method-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}
.payment-method-card {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px !important;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink) !important;
    background: #fbfdfb;
    cursor: pointer;
}
.payment-method-card input {
    width: 18px;
    height: 18px;
}
.payment-method-card span,
.payment-method-card strong,
.payment-method-card small {
    display: block;
    min-width: 0;
}
.payment-method-card strong {
    color: var(--green-900);
}
.payment-method-card small {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.payment-method-card:has(input:checked) {
    border-color: var(--green-700);
    background: #f2ffe9;
}
.inline-help {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border: 1px solid #bce9a7;
    border-radius: 999px;
    color: var(--green-900);
    background: #f2ffe9;
    font-size: 12px;
    font-weight: 900;
    cursor: help;
}
.help-popover {
    position: absolute;
    z-index: 120;
    bottom: calc(100% + 9px);
    left: 50%;
    display: none;
    width: min(260px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    transform: translateX(-50%);
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #bce9a7;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
}
.help-popover span {
    display: block;
    font-weight: 400;
}
.fee-help:hover .help-popover,
.fee-help:focus .help-popover,
.fee-help:focus-visible .help-popover {
    display: grid;
}
.document-note {
    display: block !important;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.payment-page {
    display: grid;
    justify-items: center;
    padding: 24px clamp(16px, 4vw, 42px) 52px;
}
.payment-modal-card {
    display: grid;
    gap: 18px;
    width: min(780px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.payment-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.payment-modal-head h2 {
    margin: 4px 0 0;
    color: var(--green-900);
    font-size: 28px;
}
.amount-due {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
}
.amount-due strong {
    color: var(--green-900);
    font-size: 30px;
}
.countdown-box {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    color: #7b4b00;
    background: #fff3d8;
    font-weight: 900;
}
.countdown-box strong {
    font-size: 24px;
}
.payment-account-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.payment-account-card h3 {
    margin: 0;
    color: var(--green-900);
}
.bank-account-list,
.payment-confirm-form {
    display: grid;
    gap: 12px;
}
.payment-account-card > input[type="radio"] {
    width: 18px;
    height: 18px;
}
.payment-qr {
    width: min(240px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.payment-qr-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5eee2;
    border-radius: 12px;
    background: #fbfdfb;
}
.payment-qr-panel .payment-qr {
    width: min(260px, 82vw);
}
.payment-page .payment-account-card .detail-list {
    gap: 0;
    border: 1px solid #e5eee2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.payment-page .payment-account-card .detail-list div {
    display: grid;
    grid-template-columns: minmax(118px, .72fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2eb;
}
.payment-page .payment-account-card .detail-list div:last-child {
    border-bottom: 0;
}
.payment-page .payment-account-card .detail-list dt,
.payment-page .payment-account-card .detail-list dd {
    font-size: 13px;
    font-weight: 400;
}
.payment-page .payment-account-card .detail-list dt {
    color: #66786e;
}
.payment-page .payment-account-card .detail-list dd {
    color: #243129;
    text-align: right;
}
.payment-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr);
    gap: 12px;
}
.payment-entry-grid label,
.payment-confirm-form > label {
    display: grid;
    gap: 7px;
    color: #2f3b34;
    font-size: 13px;
    font-weight: 600;
}
.payment-entry-grid input,
.payment-confirm-form > label input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dfe8dc;
    border-radius: 10px;
    padding: 12px 14px;
    color: #1f2a24;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
}
@media (max-width: 640px) {
    .payment-entry-grid {
        grid-template-columns: 1fr;
    }
    .payment-page .payment-account-card .detail-list div {
        grid-template-columns: 1fr;
        gap: 3px;
        justify-items: start;
    }
    .payment-page .payment-account-card .detail-list dd {
        text-align: left;
    }
}
.detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}
.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.detail-list dt {
    color: var(--muted);
    font-weight: 800;
}
.detail-list dd {
    margin: 0;
    color: var(--green-900);
    font-weight: 900;
    text-align: right;
    overflow-wrap: anywhere;
}
.detail-list-large div {
    padding: 12px 0;
}
.payment-admin-form {
    display: grid;
    gap: 8px;
    min-width: 260px;
}
.payment-admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
}
.form-panel { display: grid; gap: 14px; }
.form-panel label, .auth-card:not(.login-card) label { display: grid; gap: 6px; color: var(--green-900); font-weight: 800; }
.form-panel textarea { min-height: 110px; resize: vertical; }
.business-editor-form .form-panel input,
.business-editor-form .form-panel textarea,
.business-editor-form .form-panel select {
    font-size: 16px;
    font-weight: 400;
}
.business-editor-form .rte-editor {
    font-size: inherit;
    font-weight: inherit;
}
.repeat-editor {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.repeat-editor-head,
.repeat-card-head {
    display: flex;
    gap: 12px;
    align-items: end;
    justify-content: space-between;
}
.repeat-editor-head h3 {
    margin: 0;
    color: var(--green-900);
}
.repeat-editor-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 600;
}
.repeat-list,
.hours-slot-list,
.day-set-list,
.time-slot-list {
    display: grid;
    gap: 12px;
}
.repeat-card,
.hours-slot,
.day-set-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.day-set-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    color: var(--green-900);
    font-weight: 900;
}
.day-set-card summary::-webkit-details-marker {
    display: none;
}
.day-set-card summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #edf8e9;
    color: var(--green-900);
}
.day-set-card[open] summary::after {
    content: "-";
}
.day-set-card summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}
.day-set-days {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.time-slot-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) auto;
    gap: 12px;
    align-items: end;
}
.hours-slot {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, .35fr) minmax(130px, .35fr) auto;
    align-items: end;
}
.hours-slot fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.hours-slot legend {
    margin-bottom: 6px;
    color: var(--green-900);
    font-weight: 800;
}
.weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.weekday-grid .checkbox-label {
    justify-content: center;
    min-height: 36px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbf5;
}
.weekday-grid .checkbox-label input {
    width: auto;
}
.admin-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: start;
}
.form-grid {
    display: grid;
    gap: 12px;
}
.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkbox-label {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px !important;
    min-height: 44px;
}
.checkbox-label input {
    width: auto !important;
}
.notice-card {
    padding: 14px 16px;
    border: 1px solid #bce9a7;
    border-radius: 8px;
    background: #f2ffe9;
    color: var(--green-900);
}
.notice-card p {
    margin: 6px 0 0;
    color: var(--muted);
}
.form-error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ffb6a6;
    border-radius: 8px;
    background: #ffe7e1;
    color: #8b1d0d;
    font-weight: 800;
}
.form-error[hidden] {
    display: none;
}
.compact-empty-state {
    margin: 12px auto;
    max-width: 560px;
    padding: 28px 16px;
}
.compact-empty-state h2 {
    margin-top: 0;
    color: var(--green-900);
}
.product-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.product-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0 clamp(16px, 4vw, 42px);
    border-bottom: 1px solid var(--line);
}
.product-admin-nav a {
    padding: 11px 0 10px;
    border-bottom: 3px solid transparent;
    color: var(--green-900);
    font-weight: 800;
}
.product-admin-nav a.is-active {
    color: var(--green-700);
    border-bottom-color: var(--green-700);
}
.product-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.metric-group {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(23, 32, 26, .05);
}
.metric-group h2 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}
.metric-group > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.metric-stat strong {
    display: block;
    color: var(--green-900);
    font-size: 32px;
    line-height: 1;
}
.metric-stat b {
    display: block;
    margin-top: 5px;
    color: #243428;
    font-size: 13px;
    font-weight: 700;
}
.metric-stat small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}
.product-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(280px, 1.2fr);
    gap: 16px;
}
.vertical-actions {
    align-items: stretch;
    flex-direction: column;
}
.vertical-actions .button {
    justify-content: center;
}
.attention-list {
    display: grid;
    gap: 8px;
}
.attention-list a {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--green-900);
}
.attention-list strong {
    font-size: 24px;
    line-height: 1;
}
.attention-list span {
    color: #243428;
    font-weight: 800;
}
.product-toolbar {
    display: grid;
    gap: 10px;
}
.utility-menu {
    justify-self: start;
    position: relative;
}
.utility-menu summary,
.row-action-menu summary {
    cursor: pointer;
    list-style: none;
}
.utility-menu summary::-webkit-details-marker,
.row-action-menu summary::-webkit-details-marker {
    display: none;
}
.utility-menu summary {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    font-weight: 900;
    background: var(--white);
}
.utility-menu[open] summary {
    border-color: var(--green-700);
}
.utility-menu > div {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: min(520px, calc(100vw - 32px));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(23, 32, 26, .14);
}
.utility-menu form {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto;
    gap: 8px;
    align-items: end;
}
.utility-menu input {
    width: 100%;
}
.action-bar, .bulk-actions, .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.product-filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.compact-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(160px, .8fr) minmax(140px, .7fr) auto;
    gap: 9px;
    align-items: start;
}
.product-filter-bar input[type="search"] {
    grid-column: auto;
}
.product-filter-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}
.product-filter-primary input[type="search"] {
    flex: 1 1 220px;
    max-width: 360px;
}
.product-filter-primary input:not([type]),
.product-filter-primary input[type="text"],
.product-filter-primary select {
    flex: 0 1 190px;
    max-width: 220px;
}
.product-filter-primary .button,
.product-filter-primary .more-filters {
    flex: 0 0 auto;
}
.more-filters {
    grid-column: auto;
    position: relative;
}
.more-filters summary {
    cursor: pointer;
    min-height: 44px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--green-900);
    font-weight: 900;
}
.more-filters div {
    position: absolute;
    z-index: 15;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(620px, calc(100vw - 32px));
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(23, 32, 26, .14);
}
.compact-table th,
.compact-table td {
    padding: 10px 12px;
}
.bulk-form {
    display: grid;
    gap: 12px;
}
.table-wrap.admin-product-table {
    overflow: visible;
}
.bulk-actions {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    justify-content: flex-start;
}
.bulk-actions .button.small,
.table-actions .button.small,
.action-bar .button.small {
    width: auto;
}
.context-bulk-bar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid #bce9a7;
    border-radius: 8px;
    background: #f2ffe9;
    box-shadow: 0 8px 24px rgba(23, 32, 26, .07);
}
.context-bulk-bar[hidden] {
    display: none;
}
.context-bulk-bar strong {
    margin-right: auto;
    color: var(--green-900);
}
.context-bulk-bar select {
    width: auto;
    min-width: 190px;
}
.bulk-actions select,
.bulk-actions input {
    width: auto;
    min-width: 160px;
}
.bulk-actions select {
    min-width: 180px;
}
.bulk-actions input {
    max-width: 180px;
}
.table-thumb {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.table-actions .button.small {
    padding: 8px 10px;
}
.product-identity-cell {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 220px;
}
.product-identity-cell small {
    color: var(--muted);
}
.inline-master-input,
.inline-master-select,
.inline-listing-tools select,
.inline-listing-tools input {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}
.inline-master-input {
    font-weight: 900;
    color: var(--green-900);
}
.inline-master-select {
    min-width: 190px;
    max-width: 250px;
}
.inline-listing-tools {
    display: grid;
    min-width: 170px;
    gap: 6px;
}
.inline-listing-tools strong {
    color: var(--green-900);
}
.featured-products-panel {
    display: grid;
    gap: 14px;
}
.featured-search-results,
.featured-list {
    display: grid;
    gap: 10px;
}
.featured-search-results[hidden] {
    display: none;
}
.featured-search-row,
.featured-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 150px auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.featured-product-row {
    grid-template-columns: 54px minmax(0, 1fr) 150px 150px auto auto;
}
.featured-product-row img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
}
.featured-search-row span,
.featured-product-row span {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.featured-search-row strong,
.featured-product-row strong {
    color: var(--green-900);
    overflow-wrap: anywhere;
}
.featured-search-row small,
.featured-product-row small {
    color: var(--muted);
    font-weight: 500;
}
.featured-search-row label,
.featured-product-row label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.category-picker {
    position: relative;
    min-width: 220px;
}
.category-picker-button,
.listing-summary-button {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--green-900);
    text-align: left;
    cursor: pointer;
}
.category-picker-button span,
.listing-summary-button strong {
    display: block;
    font-weight: 900;
    line-height: 1.15;
}
.category-picker-button small,
.listing-summary-button span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}
.category-picker-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    width: min(340px, 80vw);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(23, 32, 26, .16);
}
.category-picker-popover[hidden],
.listing-seller-results[hidden] {
    display: none !important;
}
.category-picker-popover input,
.listing-seller-picker input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}
.category-picker-results,
.listing-seller-results {
    display: grid;
    gap: 4px;
    max-height: 280px;
    overflow: auto;
    padding-top: 8px;
}
.category-picker-result,
.listing-seller-results button {
    display: block;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.category-picker-result:hover,
.category-picker-result.is-active,
.listing-seller-results button:hover {
    background: #eefbe8;
}
.category-picker-result strong,
.listing-seller-results strong {
    display: block;
    color: var(--green-900);
}
.category-picker-result small,
.listing-seller-results small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.listing-summary-button {
    min-width: 120px;
    display: grid;
    text-decoration: none;
}
.listing-drawer-form {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.listing-drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.listing-drawer-form label,
.listing-management-row label {
    font-weight: 800;
    color: var(--green-900);
}
.listing-drawer-form input,
.listing-drawer-form select,
.listing-management-row input,
.listing-management-row select {
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}
.checkbox-line {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}
.checkbox-line input {
    width: auto;
    min-height: 0;
}
.listing-seller-picker {
    position: relative;
}
.listing-management-drawer .quick-drawer-panel {
    width: min(680px, 100%);
}
.listing-seller-results {
    position: absolute;
    z-index: 45;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(23, 32, 26, .14);
}
.listing-seller-results em {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    line-height: 1.25;
}
.listing-location-group {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.listing-location-group h4 {
    margin: 0 0 8px;
    color: var(--green-900);
}
.listing-management-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.listing-management-row > div:first-child {
    min-width: 0;
}
.listing-management-row small {
    display: block;
    color: var(--muted);
}
.listing-management-row form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
}
.listing-management-row form:last-child {
    display: flex;
    justify-content: flex-end;
}
.listing-management-row form .button {
    width: 100%;
}
.listing-management-row form:last-child .button {
    width: auto;
}
.listing-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}
.listing-link-actions span {
    color: var(--green-900);
    font-weight: 900;
}
.listing-management-drawer input,
.listing-management-drawer select,
.listing-management-drawer button {
    max-width: 100%;
}
.inline-save-state {
    display: inline-flex;
    min-width: 48px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.inline-save-state[data-tone="success"] {
    color: var(--green-700);
}
.inline-save-state[data-tone="danger"] {
    color: #9d1b1b;
}
.compact-row-actions {
    flex-wrap: nowrap;
    align-items: flex-start;
}
.row-action-menu {
    position: relative;
}
.row-action-menu summary {
    min-width: 38px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    text-align: center;
    font-weight: 900;
    background: var(--white);
}
.row-action-menu > div {
    position: absolute;
    z-index: 18;
    right: 0;
    top: calc(100% + 6px);
    display: grid;
    min-width: 150px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(23, 32, 26, .14);
}
.row-action-menu button {
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--green-900);
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}
.row-action-menu button:hover {
    background: #f2ffe9;
}
.row-action-menu .danger-menu-item {
    color: #9d1b1b;
}
.category-admin-grid {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: start;
}
.compact-panel {
    padding: 16px;
}
.compact-panel h3 {
    margin-top: 0;
    color: var(--green-900);
}
.stacked-form {
    display: grid;
    gap: 12px;
}
.category-sort-list,
.category-edit-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.category-sort-item {
    display: grid;
    grid-template-columns: auto auto minmax(130px, .7fr) minmax(160px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    margin-left: calc(var(--depth, 0) * 22px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.category-sort-item.is-inactive {
    opacity: .62;
}
.category-sort-item.is-dragging {
    border-color: var(--green-700);
    box-shadow: 0 8px 24px rgba(20, 90, 45, .14);
}
.drag-handle {
    color: var(--green-700);
    cursor: grab;
    font-weight: 900;
    letter-spacing: 0;
}
.category-sort-item small {
    color: var(--muted);
}
.category-edit-panel {
    margin-top: 14px;
}
.category-edit-panel summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--green-900);
}
.category-edit-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(120px, .6fr) auto auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.category-edit-row input,
.category-edit-row select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.business-admin-head {
    padding-bottom: 24px;
}
.business-admin-shell {
    display: grid;
    gap: 24px;
    width: min(1240px, calc(100% - clamp(28px, 6vw, 84px)));
    margin: 22px auto 54px;
}
.business-management-panel,
.business-category-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(23, 32, 26, .07);
}
.business-management-panel {
    border-color: #d4ead1;
    box-shadow: 0 16px 42px rgba(23, 32, 26, .09);
}
.business-category-section {
    margin-top: 6px;
    box-shadow: 0 8px 22px rgba(23, 32, 26, .05);
}
.business-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.business-panel-head h2 {
    margin: 0;
    color: var(--green-900);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.1;
}
.business-panel-head p,
.drawer-intro {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}
.title-with-count {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.title-with-count span {
    display: inline-flex;
    min-width: 30px;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid #d7ebd1;
    border-radius: 999px;
    color: var(--green-900);
    background: #f5fbf3;
    font-size: 13px;
    font-weight: 800;
}
.business-account-toolbar,
.category-toolbar {
    display: grid;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfb;
}
.business-account-toolbar {
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(132px, .75fr)) auto auto;
}
.category-toolbar {
    grid-template-columns: minmax(240px, 1fr) minmax(150px, .4fr) auto;
    width: min(720px, 100%);
}
.business-account-toolbar label,
.category-toolbar label,
.business-category-form label {
    display: grid;
    gap: 6px;
    color: #314139;
    font-size: 13px;
    font-weight: 500;
}
.business-account-toolbar label span,
.category-toolbar label span,
.business-category-form label span {
    font-weight: 500;
}
.business-account-toolbar input,
.business-account-toolbar select,
.category-toolbar input,
.category-toolbar select,
.business-category-form input,
.business-category-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #26332d;
    background: var(--white);
    font-size: 14px;
    font-weight: 400;
}
.business-account-toolbar input::placeholder,
.category-toolbar input::placeholder,
.business-category-form input::placeholder {
    color: #7f9488;
    font-weight: 400;
}
.search-control {
    min-width: 0;
}
.business-account-table,
.business-category-table {
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}
.business-account-table table,
.business-category-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.business-account-table th,
.business-account-table td,
.business-category-table th,
.business-category-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: #26332d;
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}
.business-account-table th,
.business-category-table th {
    color: #496257;
    background: #f7fbf5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.business-category-table th a {
    color: inherit;
}
.business-account-table tbody tr,
.business-category-table tbody tr {
    transition: background .16s ease, box-shadow .16s ease;
}
.business-account-table tbody tr[data-row-href] {
    cursor: pointer;
}
.business-account-table tbody tr:hover,
.business-category-table tbody tr:hover {
    background: #fbfff8;
}
.business-name-link,
.business-category-table td strong {
    display: block;
    color: var(--green-900);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}
.table-subtext {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}
.numeric {
    text-align: right !important;
}
.soft-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #486057;
    background: #eef4ef;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.soft-status.status-active {
    color: #12672d;
    background: #e8f8e2;
}
.soft-status.status-suspended {
    color: #8a5a00;
    background: #fff3d8;
}
.soft-status.status-inactive {
    color: #7d4b45;
    background: #fff0ec;
}
.business-admin-shell .action-menu {
    display: inline-grid;
    justify-content: end;
}
.business-admin-shell .action-menu[open] > div {
    position: absolute;
    right: 0;
    z-index: 25;
}
.business-admin-shell .action-menu form {
    margin: 0;
}
.business-admin-shell .action-menu a,
.business-admin-shell .action-menu button {
    font-weight: 500;
}
.business-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}
.business-pagination p {
    margin: 0;
}
.business-pagination form {
    margin-left: auto;
}
.business-pagination label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}
.business-pagination select {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 400;
}
.pager-links {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pager-links span {
    color: #496257;
}
.button.is-disabled {
    pointer-events: none;
    opacity: .45;
}
.business-category-drawer .quick-drawer-panel {
    width: min(460px, 100%);
}
.business-category-drawer h2 {
    margin: 4px 44px 0 0;
    color: var(--green-900);
}
.business-category-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}
.business-category-form small {
    min-height: 16px;
    color: #9d1b1b;
    font-size: 12px;
    font-weight: 400;
}
.drawer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
@media (max-width: 980px) {
    .business-admin-shell {
        width: min(100% - 28px, 1240px);
        margin-top: 16px;
    }
    .business-account-toolbar {
        grid-template-columns: minmax(220px, 1fr) minmax(140px, .6fr) minmax(140px, .6fr);
        overflow-x: auto;
    }
    .category-toolbar {
        grid-template-columns: 1fr minmax(140px, .5fr) auto;
    }
}
@media (max-width: 640px) {
    .business-admin-head {
        align-items: start;
    }
    .business-admin-head .head-actions,
    .business-admin-head .button {
        width: 100%;
    }
    .business-management-panel,
    .business-category-section {
        padding: 14px;
        border-radius: 10px;
    }
    .business-panel-head,
    .business-pagination,
    .pager-links {
        display: grid;
        align-items: start;
    }
    .business-panel-head .button,
    .drawer-actions .button {
        width: 100%;
    }
    .business-account-toolbar,
    .category-toolbar {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .business-account-table,
    .business-category-table {
        border: 0;
        background: transparent;
    }
    .business-account-table table,
    .business-account-table tbody,
    .business-account-table tr,
    .business-account-table td,
    .business-category-table table,
    .business-category-table tbody,
    .business-category-table tr,
    .business-category-table td {
        display: block;
        width: 100%;
    }
    .business-account-table thead,
    .business-category-table thead {
        display: none;
    }
    .business-account-table tr,
    .business-category-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(23, 32, 26, .06);
        overflow: visible;
    }
    .business-account-table td,
    .business-category-table td {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        text-align: left !important;
    }
    .business-account-table td::before,
    .business-category-table td::before {
        content: attr(data-label);
        color: #60736a;
        font-size: 12px;
        font-weight: 600;
    }
    .business-account-table td:last-child,
    .business-category-table td:last-child {
        border-bottom: 0;
    }
    .business-admin-shell .action-menu {
        justify-content: start;
    }
    .business-admin-shell .action-menu[open] > div {
        left: 0;
        right: auto;
    }
    .business-pagination form {
        margin-left: 0;
    }
    .business-category-drawer {
        align-items: flex-end;
    }
    .business-category-drawer .quick-drawer-panel {
        width: 100%;
        height: min(100%, 92vh);
        border-radius: 14px 14px 0 0;
    }
}
.category-utility-grid,
.category-manager-layout {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 16px;
    align-items: start;
}
.muted-copy {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.preview-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 8px;
    margin: 10px 0 14px;
}
.preview-stats span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.preview-stats strong {
    color: var(--green-900);
    font-size: 28px;
    line-height: 1;
}
.category-tree-panel {
    overflow: visible;
}
.category-tree-search {
    width: 100%;
    margin-bottom: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.category-bulk-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}
.category-tree-list,
.category-tree-children {
    display: grid;
    gap: 8px;
}
.category-tree-children {
    margin: 8px 0 2px 28px;
    padding-left: 12px;
    border-left: 2px solid #dcefd5;
}
.category-tree-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.category-tree-item.is-inactive {
    opacity: .65;
}
.category-tree-item.is-dragging {
    border-color: var(--green-700);
    box-shadow: 0 10px 26px rgba(20, 90, 45, .14);
}
.category-tree-item summary {
    display: grid;
    grid-template-columns: auto auto minmax(190px, 1fr) auto auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}
.category-tree-item summary::marker {
    color: var(--green-700);
}
.category-tree-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.category-tree-main strong,
.category-tree-main small {
    overflow-wrap: anywhere;
}
.category-tree-main small,
.category-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.category-tree-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
}
.category-tree-item .pill {
    margin: 0;
}
.category-tree-item .button.small {
    width: auto;
}
.check-row {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 800;
}
.check-row input {
    width: auto;
}
.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}
.quick-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    justify-content: flex-end;
    background: rgba(6, 38, 18, .28);
}
.quick-drawer.is-open {
    display: flex;
}
.quick-drawer-panel {
    width: min(520px, 100%);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: var(--white);
    box-shadow: -18px 0 40px rgba(23, 32, 26, .18);
}
.drawer-close {
    float: right;
    border: 1px solid var(--line);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    color: var(--green-900);
    background: #f7fbf5;
    font-size: 24px;
    cursor: pointer;
}
.drawer-hero {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    margin-bottom: 14px;
}
.quick-add-shell {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    overflow: visible;
}
.quick-add-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
    align-self: start;
}
.seller-selector-panel, .listing-catalog-drawer {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
}
.seller-selector-panel {
    display: grid;
    gap: 14px;
}
.seller-select-form {
    display: grid;
    gap: 12px;
}
.seller-owned-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
}
.seller-owned-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.seller-owned-head h3 {
    margin: 0;
    color: var(--green-900);
}
.seller-owned-head span {
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f8e2;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}
.seller-owned-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}
.seller-owned-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: #fbfdfb;
}
.seller-owned-item:hover {
    border-color: #9ee78a;
    background: #f2ffe9;
}
.seller-owned-item input[type="checkbox"] {
    margin: 0;
}
.seller-owned-item a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.seller-owned-item .table-thumb {
    width: 42px;
    height: 42px;
}
.seller-owned-item strong,
.seller-owned-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seller-owned-item strong {
    color: var(--green-900);
}
.seller-owned-item small {
    color: var(--muted);
    font-size: 12px;
}
.seller-owned-filter,
.seller-owned-bulk {
    display: grid;
    gap: 10px;
    min-height: 0;
}
.seller-owned-bulk {
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.seller-owned-filter {
    grid-template-columns: minmax(0, 1fr) auto;
}
.seller-owned-filter select {
    width: 100%;
}
.seller-owned-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.seller-owned-bulk > .danger-button {
    width: 100%;
}
.listing-catalog-drawer {
    min-height: 420px;
}
.drawer-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}
.quick-catalog-filters {
    grid-template-columns: minmax(300px, 2.4fr) minmax(150px, 1fr) repeat(3, minmax(128px, .8fr)) auto minmax(116px, .6fr) minmax(88px, .45fr) auto;
}
.quick-custom-page-size[hidden] {
    display: none;
}
.quick-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.quick-filter-chips a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--green-900);
    background: #e8f8e2;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
}
.quick-filter-chips a:hover,
.quick-filter-chips a.is-active {
    color: var(--white);
    background: var(--green-700);
}
.quick-sort-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 10px;
    border: 1px solid #bce9a7;
    border-radius: 999px;
    background: #f5fff0;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.quick-sort-select span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}
.quick-sort-select select {
    min-width: 92px;
    border: 0;
    background: transparent;
    color: var(--green-900);
    font: inherit;
    outline: 0;
    cursor: pointer;
}
.inline-create-listing summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    padding: 8px 10px;
    border: 1px solid #bce9a7;
    border-radius: 8px;
    color: var(--green-900);
    background: #f7fff3;
    font-weight: 900;
}
.inline-create-listing summary::-webkit-details-marker {
    display: none;
}
.inline-create-listing[open] summary {
    margin-bottom: 10px;
    background: #edf8e9;
}
.quick-add-catalog {
    display: grid;
    gap: 10px;
}
.quick-add-catalog-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
[data-quick-catalog-results] {
    transition: opacity .18s ease;
}
[data-quick-catalog-results].is-loading {
    opacity: .58;
}
.quick-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.quick-page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.quick-page-numbers a {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    background: #fff;
}
.quick-page-numbers a:hover,
.quick-page-numbers a.is-active {
    border-color: var(--green-700);
    color: #fff;
    background: var(--green-700);
}
.quick-pagination .is-disabled {
    pointer-events: none;
    opacity: .45;
}
.quick-product-search {
    position: relative;
    min-width: 0;
}
.quick-product-search input {
    width: 100%;
}
.quick-product-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    max-height: 360px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(23, 32, 26, .14);
}
.quick-product-results[hidden] {
    display: none;
}
.quick-product-results button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.quick-product-results button:hover,
.quick-product-results button.is-active {
    background: #eefbe8;
}
.quick-product-results strong,
.quick-product-results small {
    display: block;
}
.quick-product-results strong {
    color: var(--green-900);
}
.quick-product-results small {
    color: var(--muted);
    font-size: 12px;
}
.quick-add-card {
    border: 1px solid #dcebd7;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 5px 16px rgba(23, 32, 26, .035);
    overflow: hidden;
    transition: opacity .18s ease, transform .18s ease, max-height .22s ease, border-color .18s ease, background .18s ease;
}
.quick-add-card::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .24s ease, content-visibility .24s allow-discrete;
}
.quick-add-card[open]::details-content {
    block-size: auto;
}
.quick-add-card.is-saved {
    border-color: #73d94c;
    background: #f2ffe9;
}
.quick-add-card.is-removing {
    opacity: 0;
    transform: translateY(-6px);
}
.quick-add-card summary {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(260px, auto) 22px;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}
.quick-add-card summary::-webkit-details-marker {
    display: none;
}
.quick-add-card[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f7fcf4;
}
.quick-product-summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.quick-product-summary strong {
    display: block;
    overflow: visible;
    color: var(--green-900);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}
.quick-product-summary small {
    display: block;
    overflow: visible;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}
.quick-product-summary h3 {
    margin: 0 0 4px;
    color: var(--green-900);
}
.quick-product-summary p {
    margin: 0;
    color: var(--muted);
}
.quick-product-summary-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}
.quick-product-summary-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 800;
    background: #edf8e9;
}
.quick-product-summary-meta .status-pill {
    background: #f3f5f1;
    color: var(--muted);
}
.quick-product-summary-meta .status-pill.active {
    color: #fff;
    background: var(--green-700);
}
.quick-product-summary-meta .status-pill.is-muted {
    color: #5f6f64;
    background: #eef1ec;
}
.quick-accordion-cue {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--green-700);
    border-bottom: 2px solid var(--green-700);
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.quick-add-card[open] .quick-accordion-cue {
    transform: rotate(225deg);
}
.quick-add-card-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}
.quick-product-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.quick-product-meta span {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: var(--ink);
}
.quick-product-meta strong {
    color: var(--muted);
    font-size: 12px;
}
.quick-listing-form {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.quick-listing-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    align-items: end;
}
.quick-listing-fields label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.quick-listing-fields input,
.quick-listing-fields select {
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
}
.quick-listing-fields input::placeholder {
    font-weight: 400;
}
.quick-listing-fields .checkbox-label {
    align-content: center;
    min-height: 36px;
}
.quick-listing-submit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(120px, auto);
    gap: 10px;
    align-items: center;
}
.quick-listing-submit-row .button.primary {
    width: 100%;
}
.quick-listing-submit-row .danger-button {
    min-width: 110px;
}
.quick-listing-feedback {
    min-height: 18px;
    color: var(--green-700);
    font-size: 12px;
    font-weight: 800;
}
.quick-listing-feedback.is-error {
    color: #b42318;
}
.inline-create-listing {
    min-width: 0;
}
.inline-create-listing form {
    display: grid;
    gap: 10px;
    width: min(760px, 100%);
    max-width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.listing-modal[hidden], .media-modal[hidden] {
    display: none;
}
.listing-modal, .media-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(6, 38, 18, .34);
}
.listing-modal-panel, .media-modal-panel {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(760px, 100%);
    max-height: min(86vh, 840px);
    overflow: auto;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(23, 32, 26, .24);
}
.modal-product-summary {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.modal-product-summary img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.modal-product-summary h2 {
    margin: 6px 0 4px;
    color: var(--green-900);
}
.modal-product-summary p {
    margin: 0;
    color: var(--muted);
}
.modal-listing-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.media-picker-field {
    display: grid;
    gap: 12px;
}
.media-selected-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 12px;
    border: 1px dashed #bce9a7;
    border-radius: 8px;
    color: var(--muted);
    background: #fbfdfb;
}
.media-selected-preview img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
}
.file-button {
    position: relative;
    overflow: hidden;
}
.file-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.media-modal-panel {
    width: min(980px, 100%);
}
.media-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}
.media-thumb {
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fbfdfb;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.media-thumb.is-selected {
    border-color: #73d94c;
    box-shadow: 0 0 0 3px rgba(115, 217, 76, .24);
}
.media-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    background: var(--white);
}
.media-thumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.media-upload-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px dashed #bce9a7;
    border-radius: 8px;
    background: #fbfdfb;
}
.field-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}
.field-note.is-ready { color: var(--green-700); }
.field-note.is-warning { color: #8a5a00; }
.address-suggestions {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 32, 26, .1);
}
.address-suggestions[hidden] { display: none; }
.address-suggestions button {
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.address-suggestions button:hover,
.address-suggestions button:focus {
    background: #eef8ef;
    outline: none;
}
.media-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
    gap: 16px;
}
.media-admin-panel {
    margin: 0;
}
.media-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.media-admin-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(23, 32, 26, .05);
}
.media-admin-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: #fbfdfb;
}
.media-admin-card strong,
.media-admin-card p {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.media-admin-card p {
    color: var(--muted);
}
.inline-listing-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    min-width: 0;
}
.checkbox-label.compact {
    min-height: auto;
}
.empty-state {
    display: grid;
    place-items: center;
    min-height: 320px;
    text-align: center;
    color: var(--muted);
}
.code-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: #f7fbf5;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}
.pwa-install-sheet[hidden] {
    display: none;
}
.pwa-install-sheet {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 120;
    display: grid;
    place-items: end center;
    padding: 16px;
    pointer-events: none;
}
.pwa-install-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(760px, 100%);
    padding: 14px;
    border: 1px solid #bce9a7;
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -12px 38px rgba(23, 32, 26, .16);
    pointer-events: auto;
}
.pwa-install-card h2 {
    margin: 0 0 4px;
    color: var(--green-900);
    font-size: 20px;
}
.pwa-install-card p {
    margin: 0;
    color: var(--muted);
}
.pwa-install-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--lime));
    font-weight: 900;
}
.pwa-install-mark.has-image {
    background: var(--white);
    border: 1px solid var(--line);
}
.pwa-install-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pwa-install-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.settings-form {
    display: grid;
    gap: 20px;
    padding: 24px clamp(16px, 4vw, 42px) 52px;
}
.settings-tabs {
    position: sticky;
    top: 66px;
    z-index: 20;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}
.settings-tabs a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--green-900);
    background: #f3f8f1;
    font-weight: 900;
    font-size: 13px;
}
.settings-tabs a:hover,
.settings-tabs a:focus {
    background: #e8f8e2;
}
.settings-tabs a.is-active {
    color: var(--white);
    background: var(--green-700);
    box-shadow: 0 6px 16px rgba(13, 95, 42, .18);
}
.settings-form .form-panel {
    gap: 18px;
}
.settings-form.has-tab-controller .settings-tab-panel {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height .28s ease, opacity .18s ease, transform .22s ease, padding .22s ease, margin .22s ease, border-width .22s ease;
}
.settings-form.has-tab-controller .settings-tab-panel.is-active {
    max-height: 12000px;
    margin: initial;
    padding-top: 20px;
    padding-bottom: 20px;
    border-width: 1px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.fee-override-accordion {
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdf9, #f6faf4);
    overflow: clip;
    interpolate-size: allow-keywords;
}
.fee-override-accordion::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .28s ease, content-visibility .28s ease allow-discrete;
}
.fee-override-accordion[open]::details-content {
    block-size: auto;
}
.fee-override-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}
.fee-override-accordion summary::-webkit-details-marker { display: none; }
.fee-override-accordion summary strong {
    display: block;
    color: var(--green-900);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}
.fee-override-accordion summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}
.fee-override-accordion summary b {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e7f7df;
    position: relative;
    flex: 0 0 auto;
}
.fee-override-accordion summary b::before,
.fee-override-accordion summary b::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--green-700);
    transition: transform .18s ease;
}
.fee-override-accordion summary b::after { transform: rotate(90deg); }
.fee-override-accordion[open] summary b::after { transform: rotate(0deg); }
.fee-override-list {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}
.fee-override-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, .8fr) minmax(150px, .7fr) minmax(150px, .7fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e1ebdf;
    border-radius: 10px;
    background: #fff;
}
.fee-override-shop strong,
.fee-override-shop small {
    display: block;
}
.fee-override-shop small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.modern-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}
.modern-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.modern-switch-row span {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d9e7d5;
    position: relative;
    transition: background .18s ease;
}
.modern-switch-row span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(22, 48, 28, .18);
    transition: transform .18s ease;
}
.modern-switch-row input:checked + span {
    background: var(--green-700);
}
.modern-switch-row input:checked + span::after {
    transform: translateX(20px);
}
.modern-switch-row b {
    color: var(--green-900);
    font-size: 13px;
}
@media (max-width: 920px) {
    .fee-override-row {
        grid-template-columns: 1fr;
    }
    .fee-override-row input {
        width: 100%;
    }
}
.settings-form.has-tab-controller .marketplace-settings-panel.is-active {
    padding: 28px;
}
.app-settings-form input,
.app-settings-form textarea,
.app-settings-form select {
    font-weight: 400;
}
.app-settings-form .rte-editor {
    font-weight: 400;
}
.app-settings-form .rte-editor strong,
.app-settings-form .rte-editor b {
    font-weight: 800;
}
.marketplace-settings-panel {
    padding: 28px;
}
.compensation-heading {
    display: flex;
    gap: 14px;
    align-items: center;
}
.settings-icon-box {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: var(--green-700);
    background: #edf8e9;
    font-weight: 900;
}
.compensation-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.compensation-card {
    position: relative;
    display: grid !important;
    gap: 8px !important;
    align-content: start;
    min-height: 130px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink) !important;
    background: var(--white);
    cursor: pointer;
}
.compensation-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.compensation-card span {
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #dfe8ef;
    border-radius: 999px;
    color: #8a9aad;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.compensation-card strong {
    color: #233044;
}
.compensation-card small {
    color: #748294;
}
.compensation-card.is-selected,
.compensation-card:has(input:checked) {
    border-color: var(--green-700);
    background: #f6fff3;
    box-shadow: 0 10px 24px rgba(24, 133, 54, .14);
}
.compensation-card.is-selected span,
.compensation-card:has(input:checked) span {
    color: var(--green-700);
    border-color: #a8e58c;
    background: #effbe9;
}
.scheme-config,
.compensation-preview {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}
.scheme-config h3,
.compensation-preview strong {
    margin: 0;
    color: var(--green-900);
    text-transform: uppercase;
    letter-spacing: 0;
}
.compensation-preview {
    border-style: dashed;
    border-color: #bce9a7;
    background: #fbfffb;
}
.compensation-preview p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}
.compensation-preview > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.compensation-preview span {
    display: grid;
    gap: 6px;
    min-height: 78px;
    place-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #8a9aad;
    background: var(--white);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}
.compensation-preview b {
    color: var(--green-900);
    font-size: 22px;
}
.bank-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.bank-settings-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.settings-preview-grid, .three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.settings-preview-grid > div {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 120px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--muted);
    font-weight: 800;
}
.settings-brand-preview {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--lime));
    font-size: 22px;
    font-weight: 900;
}
.settings-image-preview {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--white);
}
.toggle-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
}
.toggle-row input {
    width: 18px;
    height: 18px;
}
.muted-text { color: var(--muted); margin-top: 0; }
.settings-actions {
    display: flex;
    justify-content: flex-end;
}
.sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 25;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
}
.settings-subgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.settings-subgrid article {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.qr-preview {
    width: 140px;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.rte-field {
    display: grid;
    gap: 8px;
}
.rte-field > label {
    color: var(--green-900);
    font-weight: 900;
}
.rte {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}
.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #f7fbf5;
    border-bottom: 1px solid var(--line);
}
.rte-toolbar button {
    min-width: 34px;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-900);
    background: var(--white);
    font-weight: 900;
    cursor: pointer;
}
.rte-editor {
    min-height: 150px;
    padding: 14px;
    outline: none;
    color: var(--ink);
}
.rte-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(66, 183, 45, .16);
}
.rte textarea {
    display: none;
}

.auth-page { min-height: 70vh; display: grid; place-items: center; padding: 44px 16px; background: var(--wash); }
.auth-card { width: min(460px, 100%); padding: 26px; display: grid; gap: 14px; }
.auth-card h1 { margin: 0; color: var(--green-900); }
.login-page {
    min-height: auto;
    align-items: start;
    padding: clamp(28px, 5vw, 54px) 16px 52px;
    background: #f6f8f5;
}
.login-card {
    width: min(480px, 100%);
    gap: 20px;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid #dde6da;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(23, 32, 26, .1);
}
.auth-card-head {
    display: grid;
    gap: 8px;
}
.auth-card-head h1 {
    margin: 0;
    color: var(--green-900);
    font-size: clamp(25px, 4vw, 32px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}
.auth-card-head p {
    margin: 0;
    color: #5f6d63;
    font-size: 15px;
    font-weight: 400;
}
.login-card label {
    display: grid;
    gap: 8px;
    color: #25352a;
    font-size: 14px;
    font-weight: 600;
}
.login-card input {
    width: 100%;
    min-height: 50px;
    padding: 12px 13px;
    border: 1px solid #cedccd;
    border-radius: 9px;
    background: #fff;
    color: #2f3b33;
    font-size: 16px;
    font-weight: 400;
}
.login-card input::placeholder {
    color: #748177;
    font-size: 15px;
    font-weight: 400;
}
.login-card input:focus-visible {
    border-color: var(--green-700);
    outline: 3px solid rgba(255, 173, 34, .42);
    outline-offset: 1px;
}
.login-options-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: -4px;
}
.remember-check {
    display: inline-flex !important;
    grid-template-columns: auto;
    gap: 8px !important;
    align-items: center;
    color: #4e5d53 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.remember-check input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
}
.login-options-row a,
.login-register-cta a,
.auth-switch a,
.change-email-panel summary {
    color: var(--green-700);
    font-weight: 700;
}
.login-submit {
    min-height: 50px;
    font-size: 16px;
    font-weight: 700;
}
.login-submit:disabled,
.verification-action-stack .button:disabled {
    opacity: .72;
    cursor: wait;
}
.auth-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #728075;
    font-size: 13px;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #e6eee3;
}
.login-register-cta {
    display: grid;
    gap: 5px;
    text-align: center;
}
.login-register-cta p,
.login-register-cta small {
    margin: 0;
    color: #5f6d63;
    font-size: 14px;
    font-weight: 400;
}
.login-register-cta small {
    font-size: 13px;
}
.auth-alert {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
}
.auth-alert strong {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 14px;
}
.auth-alert-danger {
    border: 1px solid #f1c4bb;
    color: #7d2415;
    background: #fff1ee;
}
.auth-alert-danger strong {
    color: #fff;
    background: #b33b25;
}
.verification-required-card {
    gap: 16px;
}
.verification-email {
    margin: 0;
    padding: 12px;
    border: 1px solid #e3eadf;
    border-radius: 9px;
    color: var(--green-900);
    background: #fbfdf9;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.verification-action-stack,
.verification-required-card > form,
.verification-required-card .change-email-panel form {
    display: grid;
    gap: 12px;
}
.verification-required-card .change-email-panel {
    border-top: 1px solid #edf1ea;
    padding-top: 12px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-tile { min-height: 132px; padding: 20px; display: grid; align-content: space-between; }
.app-settings-tile {
    border-color: #a8e58c;
    background: linear-gradient(180deg, #f7fff2, #ffffff);
}
.dash-tile strong { color: var(--green-900); font-size: 20px; }
.dash-tile span { color: var(--muted); }
.stats-grid { padding: 24px clamp(16px, 4vw, 42px); }
.stats-grid article { padding: 18px; }
.stats-grid span { color: var(--muted); display: block; }
.stats-grid strong { font-size: 34px; color: var(--green-900); }
.workflow-band { margin: 20px clamp(16px, 4vw, 42px); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; background: var(--green-900); color: var(--white); border-radius: 8px; }
.workflow-band span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 12px; font-weight: 900; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--green-900); background: #f7fbf5; }
.empty-state { margin: 48px auto; max-width: 620px; text-align: center; padding: 42px 18px; }
.center { text-align: center; }

.delivery-manager-shell,
.delivery-provider-shell,
.fulfillment-shell {
    gap: 14px;
}
.delivery-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
.delivery-metrics-panel {
    display: grid;
    gap: 10px;
}
.delivery-metrics-panel-head {
    display: none;
}
.metric-label-short {
    display: none;
}
.delivery-metric-card {
    min-width: 0;
    min-height: 92px;
    padding: 12px;
    overflow: hidden;
    color: #123a22;
    background: #eaf8dd;
    box-shadow: none;
}
.delivery-metric-card:nth-child(2) { background: #e5f3ff; color: #123452; }
.delivery-metric-card:nth-child(3) { background: #fff4d8; color: #4a3511; }
.delivery-metric-card:nth-child(4) { background: #f0ecff; color: #2f245f; }
.delivery-metric-card:nth-child(5) { background: #dcfce7; color: #123a22; }
.delivery-metric-card:nth-child(6) { background: #e0f7fa; color: #113b42; }
.delivery-metric-card:nth-child(7) { background: #fef2f2; color: #4a1c1c; }
.delivery-metric-card:nth-child(8) { background: #f6f7d7; color: #3c3d16; }
.delivery-metric-card:nth-child(9) { background: #e8f5e9; color: #173c20; }
.delivery-metric-card .metric-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: currentColor;
    opacity: .18;
}
.delivery-metric-card small {
    top: 10px;
    right: 10px;
    padding: 2px 7px;
    color: inherit;
    background: rgba(255,255,255,.5);
    font-size: 10px;
}
.delivery-metric-card strong {
    color: inherit;
    font-size: 11px;
    line-height: 1.25;
    text-transform: none;
    font-weight: 500;
    opacity: .78;
    overflow-wrap: anywhere;
}
.delivery-metric-card b {
    color: inherit;
    font-size: 24px;
    font-weight: 700;
}
.status-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #bce7a7;
    border-radius: 999px;
    color: var(--green-900);
    background: #f1fde9;
    font-size: 12px;
    font-weight: 900;
}
.config-workspace-shell {
    padding-top: 0;
}
.config-workspace {
    display: grid;
    gap: 12px;
}
.config-rail {
    order: -1;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 24px rgba(23, 32, 26, .05);
}
.config-rail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--green-900);
}
.config-rail-head span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.config-rail-head strong {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eefde6;
}
.config-nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.config-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #295b38;
    background: var(--white);
    text-align: left;
    cursor: pointer;
}
.config-nav-item.is-active {
    border-color: #89d36b;
    background: #f3fde9;
    box-shadow: inset 3px 0 0 var(--green-700);
}
.config-nav-item strong {
    display: block;
    color: var(--green-900);
    font-size: 14px;
    font-weight: 800;
}
.config-nav-item small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}
.status-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
}
.status-enabled { background: #22c55e; }
.status-coming_soon { background: #f59e0b; }
.status-future { background: #6366f1; }
.status-disabled { background: #94a3b8; }
.config-stage {
    min-width: 0;
}
.config-panel {
    display: none;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(23, 32, 26, .06);
    opacity: 0;
    transform: translateY(8px);
}
.config-panel.is-active {
    display: grid;
    animation: configPanelIn .22s ease forwards;
}
@keyframes configPanelIn {
    to { opacity: 1; transform: translateY(0); }
}
.config-panel-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}
.config-panel-head h2 {
    margin: 8px 0 4px;
    color: var(--green-900);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1;
}
.config-panel-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}
.config-panel-meta {
    display: grid;
    gap: 4px;
    min-width: 96px;
    padding: 10px;
    border-radius: 8px;
    background: #f6fbf4;
    text-align: right;
}
.config-panel-meta span {
    color: var(--muted);
    font-size: 11px;
}
.config-panel-meta strong {
    color: var(--green-900);
    font-size: 18px;
}
.config-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.config-summary-strip span {
    min-height: 64px;
    padding: 10px;
    border: 1px solid #e3ecdf;
    border-radius: 8px;
    color: #295b38;
    background: #fbfdf9;
    font-size: 13px;
}
.config-summary-strip small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.modern-config-form {
    display: grid;
    gap: 12px;
}
.config-panel .modern-config-form label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: #244c32;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.config-panel .modern-config-form input,
.config-panel .modern-config-form select,
.config-panel .modern-config-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #cddfcd;
    border-radius: 8px;
    padding: 9px 11px;
    color: #143c24;
    background: #fbfdf9;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.config-panel .modern-config-form input:focus,
.config-panel .modern-config-form select:focus,
.config-panel .modern-config-form textarea:focus {
    border-color: #16913c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 145, 60, .12);
}
.config-panel .modern-config-form textarea {
    min-height: 82px;
    resize: vertical;
}
.config-panel .modern-config-form .toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 6px 0;
    color: #244c32;
    font-size: 14px;
    font-weight: 600;
}
.config-panel .modern-config-form .toggle-row input {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: #188536;
}
.form-section-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}
.form-section-title h3 {
    margin: 0;
    color: var(--green-900);
    font-size: 18px;
}
.form-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.responsive-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}
.responsive-field-grid.compact {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}
.config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.delivery-driver-grid p {
    display: grid;
    gap: 2px;
    margin: 0;
}
.delivery-driver-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.delivery-driver-grid strong {
    margin: 0;
    color: var(--green-900);
}
.delivery-payment-options,
.preparation-estimate-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.preparation-estimate-box div,
.estimate-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.preparation-estimate-box span,
.estimate-reasons span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--green-900);
    background: #eefde6;
    font-size: 12px;
    font-weight: 900;
}
.delivery-tracking-panel {
    display: grid;
    gap: 14px;
}
.section-heading.compact {
    margin: 0;
}
.delivery-timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.delivery-timeline span {
    min-height: 42px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--white);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}
.delivery-timeline span.is-done {
    border-color: #9ddd77;
    color: var(--green-900);
    background: #eefde6;
}
.delivery-driver-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 920px) {
    .config-workspace {
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
        align-items: start;
    }
    .config-rail {
        position: sticky;
        top: 96px;
        order: -1;
        max-height: calc(100vh - 120px);
        overflow: hidden;
    }
    .config-nav-list {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow-y: auto;
        padding-right: 2px;
    }
}

@media (max-width: 900px) {
    .delivery-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .delivery-timeline,
    .delivery-driver-grid,
    .config-summary-strip,
    .responsive-field-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .delivery-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .delivery-metric-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        padding: 7px;
        align-content: space-between;
    }
    .delivery-metric-card small,
    .delivery-metric-card .metric-icon {
        display: none;
    }
    .delivery-metric-card strong {
        align-self: start;
        font-size: 9px;
        font-weight: 400;
        line-height: 1.15;
        text-transform: none;
        opacity: .82;
    }
    .delivery-metric-card b {
        align-self: end;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
    }
    .delivery-timeline,
    .delivery-driver-grid,
    .config-summary-strip,
    .responsive-field-grid,
    .responsive-field-grid.compact {
        grid-template-columns: 1fr;
    }
    .config-panel-head,
    .form-section-title {
        display: grid;
    }
    .config-panel-meta {
        text-align: left;
    }
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 34px clamp(16px, 4vw, 42px) 64px;
    color: #e8f8e2;
    background: var(--green-900);
}
.site-footer a, .site-footer p { display: block; color: #e8f8e2; margin: 8px 0; }
.footer-brand .brand-mark { background: var(--white); color: var(--green-900); }
.footer-copyright {
    grid-column: 1 / -1;
    align-self: end;
    font-size: 12px;
    opacity: .8;
}
.accepted-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.accepted-payments img {
    width: 58px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--white);
    padding: 5px;
}
.accepted-payments span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.delivery-shortcut-menu a {
    display: grid;
    gap: 2px;
    align-content: start;
}
.delivery-shortcut-menu a strong {
    display: block;
    font-size: 14px;
    line-height: 1.18;
}
.delivery-shortcut-menu a span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

@media (max-width: 620px) {
    .delivery-admin-head {
        overflow: hidden;
    }
    .delivery-admin-head .admin-title-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }
    .delivery-admin-head .admin-menu-button {
        width: 34px;
        height: 34px;
    }
    .delivery-shortcut-menu.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 0 8px 8px;
    }
    .delivery-shortcut-menu a {
        min-height: 58px;
        padding: 8px;
        min-width: 0;
    }
    .delivery-shortcut-menu a strong {
        font-size: 12px;
        overflow-wrap: anywhere;
    }
    .delivery-shortcut-menu a span {
        font-size: 10px;
        overflow-wrap: anywhere;
    }
    .delivery-manager-shell {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        overflow-x: hidden;
    }
    .delivery-manager-shell > *,
    .delivery-manager-shell .admin-panel,
    .delivery-manager-shell .table-wrap,
    .delivery-manager-shell .delivery-table {
        min-width: 0;
        max-width: 100%;
    }
    .delivery-metrics-panel {
        box-sizing: border-box;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 8px;
        border: 1px solid #d7ead2;
        border-radius: 10px;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 10px 24px rgba(23, 32, 26, .06);
        overflow: hidden;
    }
    .delivery-metrics-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        color: var(--green-900);
        font-size: 12px;
        font-weight: 700;
    }
    .delivery-metrics-panel-head small {
        padding: 2px 7px;
        border-radius: 999px;
        color: #15632a;
        background: #e8fbdf;
        font-size: 10px;
        font-weight: 700;
    }
    .delivery-manager-shell .delivery-metric-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible;
    }
    .delivery-manager-shell .delivery-metric-card {
        display: grid !important;
        grid-template-rows: auto auto;
        gap: 3px;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1;
        min-height: 0 !important;
        padding: 5px !important;
        border-radius: 7px;
        align-content: space-between;
        justify-items: start;
        box-shadow: none;
    }
    .delivery-manager-shell .delivery-metric-card small,
    .delivery-manager-shell .delivery-metric-card .metric-icon {
        display: none !important;
    }
    .delivery-manager-shell .metric-label-full {
        display: none;
    }
    .delivery-manager-shell .metric-label-short {
        display: inline;
    }
    .delivery-manager-shell .delivery-metric-card strong {
        align-self: start !important;
        color: inherit;
        font-size: clamp(7px, 2.05vw, 9px) !important;
        font-weight: 400 !important;
        line-height: 1.12 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        opacity: .86;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .delivery-manager-shell .delivery-metric-card b {
        align-self: end !important;
        color: inherit;
        font-size: clamp(10px, 3vw, 14px) !important;
        font-weight: 500 !important;
        line-height: 1 !important;
    }
}
.bottom-nav {
    position: fixed;
    z-index: 60;
    display: none;
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-top: 1px solid var(--line);
}
.bottom-nav a { padding: 10px 4px; text-align: center; color: var(--green-900); font-size: 12px; font-weight: 900; }
.return-top-button {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 70;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    width: 44px;
    height: 44px;
    border: 1px solid #a8e58c;
    border-radius: 999px;
    padding: 0;
    color: var(--green-900);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}
.return-top-button.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 920px) {
    .site-header { grid-template-columns: auto 1fr auto; }
    .top-nav { display: none; }
    .menu-button { display: block; }
    .checkout-grid, .product-detail, .business-profile-grid, .storefront-grid { grid-template-columns: 1fr; }
    .admin-metric-grid,
    .admin-signal-grid,
    .admin-dashboard-layout,
    .compensation-options,
    .compensation-preview > div {
        grid-template-columns: 1fr 1fr;
    }
    .admin-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .storefront-info { position: static; }
    .page-head { display: grid; }
    .page-search,
    .catalog-search-bar { grid-template-columns: 1fr; }
    .category-drawer-panel {
        position: fixed;
        inset: 62px 12px auto 12px;
        width: auto;
        max-height: calc(100vh - 92px);
    }
    .category-drawer-head {
        position: sticky;
        top: -8px;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        margin: -8px -8px 6px;
        padding: 10px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
    }
    .purchase-box {
        top: auto;
    }
    .site-footer { grid-template-columns: 1fr; }
    .footer-copyright {
        order: 99;
        margin-top: 18px;
    }
    .settings-preview-grid, .three-col, .settings-subgrid, .bank-settings-grid { grid-template-columns: 1fr; }
    .settings-tabs { top: 58px; }
    .hours-slot {
        grid-template-columns: 1fr;
    }
    .time-slot-row {
        grid-template-columns: 1fr;
    }
    .storefront-info summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        cursor: pointer;
    }
    .storefront-info summary::after {
        content: "+";
        font-size: 24px;
        line-height: 1;
    }
    .storefront-info[open] summary {
        margin-bottom: 12px;
    }
    .storefront-info[open] summary::after {
        content: "-";
    }
}

@media (max-width: 640px) {
    body { padding-bottom: 0; }
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        padding: 10px 14px;
    }
    .mobile-header-actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    .mobile-header-actions .icon-nav-trigger {
        width: 38px;
        min-height: 38px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--green-900);
        background: #f6faf5;
    }
    .mobile-header-actions .cart-link {
        justify-content: center;
    }
    .mobile-header-actions .nav-popover {
        position: fixed;
        top: 66px;
        right: 12px;
        left: 12px;
        min-width: 0;
        max-height: calc(100vh - 86px);
        overflow: auto;
    }
    .mobile-header-actions .nav-dropdown::after {
        display: none;
    }
    .mobile-cart-nav:not(.is-open) .nav-popover {
        display: none;
    }
    .site-header .brand {
        min-width: 0;
        font-size: 12px;
        overflow: hidden;
    }
    .site-header .brand span:last-child {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .site-header .top-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .top-search .category-drawer summary span:last-child {
        display: none;
    }
    .menu-button {
        width: auto;
        min-width: 48px;
        padding: 0 10px;
        font-size: 12px;
    }
    .hero {
        min-height: 390px;
        place-items: center;
    }
    .hero::after {
        background: linear-gradient(180deg, rgba(7, 55, 25, .74) 0%, rgba(13, 95, 42, .46) 56%, rgba(5, 28, 15, .26) 100%);
    }
    .hero-content {
        width: min(92vw, 520px);
        padding: 34px 0 30px;
    }
    .hero-title {
        margin: 10px 0 8px;
        font-size: clamp(34px, 10vw, 46px);
    }
    .hero p,
    .hero-copy {
        max-width: 340px;
        font-size: 16px;
        line-height: 1.35;
    }
    .hero-location-picker {
        margin-top: 12px;
    }
    .cart-conflict-panel {
        display: grid;
        padding: 10px 14px;
    }
    .storefront-hero { min-height: 390px; }
    .storefront-hero-content { padding: 78px 0 30px; }
    .storefront-hero-content h1 { font-size: clamp(34px, 12vw, 54px); }
    .section { padding: 32px 14px; }
    .section-heading { display: grid; align-items: start; }
    .location-tools {
        display: grid;
        justify-items: center;
    }
    .location-filter-open {
        display: inline-flex;
        min-height: 48px;
        padding: 12px 22px;
    }
    .location-filter-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: auto;
        max-height: calc(100vh - 96px);
        overflow: auto;
        padding: 14px;
        border-radius: 8px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px);
        transition: opacity .18s ease, transform .18s ease;
    }
    .location-filter-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .location-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--green-900);
    }
    .location-filter-head button {
        border: 0;
        border-radius: 8px;
        padding: 8px 10px;
        color: var(--green-900);
        background: #edf8e9;
        font-weight: 900;
    }
    .location-filter-title {
        display: none;
    }
    .location-filter-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 50px;
        gap: 10px;
        align-items: stretch;
    }
    .location-go-button {
        display: inline-flex;
        width: 100%;
        min-height: 46px;
    }
    .location-clear-button {
        display: inline-flex;
        width: auto;
        min-height: 46px;
        border-color: transparent;
        padding-inline: 8px;
        color: var(--muted);
        background: transparent;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .location-nearby-button {
        width: 100%;
        min-height: 46px;
    }
    .location-view-button {
        justify-self: stretch;
        width: 100%;
        min-height: 46px;
    }
    .location-filter-panel small {
        text-align: left;
    }
    .share-button {
        min-height: 40px;
        padding: 9px 12px;
    }
    .detail-title-row {
        display: grid;
        justify-items: start;
    }
    .admin-metric-grid,
    .admin-signal-grid,
    .compensation-options,
    .compensation-preview > div {
        grid-template-columns: 1fr;
    }
    .admin-page-head .inline-actions {
        width: 100%;
    }
    .admin-page-head .button {
        flex: 1 1 150px;
    }
    .product-grid,
    .storefront-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-image { height: 132px; }
    .product-body h3 { font-size: 15px; min-height: 0; }
    .basket-item { grid-template-columns: 76px 1fr; }
    .basket-item > strong, .basket-item > form { justify-self: start; }
    .basket-item img { width: 76px; height: 70px; }
    .basket-item .inline-form,
    .checkout-qty-form {
        display: grid;
        grid-template-columns: minmax(138px, 1fr) auto;
        width: 100%;
    }
    .basket-item .cart-qty-control,
    .checkout-qty-form .cart-qty-control {
        width: 100%;
    }
    .two-col, .facts, .delivery-method-grid { grid-template-columns: 1fr; }
    .product-detail {
        padding-bottom: 178px;
    }
    .purchase-box {
        position: fixed;
        inset: auto 0 0;
        top: auto;
        z-index: 65;
        gap: 8px;
        margin: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -10px 28px rgba(23,32,26,.12);
    }
    .detail-price {
        font-size: 20px;
    }
    .detail-actions {
        grid-template-columns: minmax(122px, 136px) auto minmax(0, 1fr);
        gap: 8px;
    }
    .detail-actions .button {
        grid-column: auto;
        min-height: 42px;
        padding: 10px 12px;
    }
    .detail-actions .button.outline {
        grid-column: 1 / -1;
        min-height: 36px;
        padding: 8px 12px;
    }
    .detail-qty-control {
        min-height: 42px;
    }
    .detail-qty-control button,
    .detail-qty-control input {
        min-height: 34px;
        height: 34px;
    }
    .recent-product-list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }
    .recent-product-row {
        min-width: 270px;
        scroll-snap-align: start;
    }
    .checkout-cart-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }
    .checkout-cart-item b {
        grid-column: 2;
    }
    .weekday-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .repeat-editor-head,
    .repeat-card-head,
    .recent-product-row {
        display: grid;
        align-items: start;
    }
    .recent-product-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .recent-product-row b {
        grid-column: 2;
        white-space: normal;
    }
    .payment-modal-head,
    .detail-list div {
        display: grid;
        justify-items: start;
    }
    .amount-due {
        justify-items: start;
    }
    .payment-admin-form {
        min-width: 0;
    }
    .return-top-button {
        right: 12px;
        bottom: 18px;
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 22px;
    }
    .admin-product-table {
        overflow: visible;
        border: 0;
        background: transparent;
    }
    .admin-product-table table,
    .admin-product-table tbody,
    .admin-product-table tr,
    .admin-product-table td {
        display: block;
        width: 100%;
    }
    .admin-product-table thead {
        display: none;
    }
    .admin-product-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
        overflow: hidden;
    }
    .admin-product-table td {
        display: grid;
        grid-template-columns: 74px 1fr;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        word-break: break-word;
    }
    .admin-product-table td::before {
        content: attr(data-label);
        color: var(--green-900);
        font-weight: 900;
    }
    .admin-product-table td:last-child {
        border-bottom: 0;
    }
    .user-management-card {
        grid-template-columns: 1fr;
    }
    .admin-two-column,
    .form-grid.two {
        grid-template-columns: 1fr;
    }
    .product-filter-bar,
    .product-dashboard-layout,
    .compact-filter-bar,
    .quick-catalog-filters,
    .quick-add-shell,
    .quick-add-card,
    .quick-product-meta,
    .media-admin-layout,
    .inline-listing-fields,
    .category-admin-grid,
    .category-edit-row {
        grid-template-columns: 1fr;
    }
    .featured-search-row,
    .featured-product-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .featured-product-row img {
        width: 70px;
        height: 70px;
    }
    .product-filter-bar input[type="search"] {
        grid-column: auto;
    }
    .utility-menu,
    .utility-menu > div,
    .more-filters,
    .more-filters div {
        position: static;
        width: 100%;
    }
    .utility-menu form,
    .more-filters div {
        grid-template-columns: 1fr;
    }
    .category-sort-item {
        grid-template-columns: auto auto minmax(0, 1fr);
        margin-left: 0;
    }
    .category-sort-item small {
        grid-column: 3;
    }
    .category-utility-grid,
    .category-manager-layout,
    .preview-stats {
        grid-template-columns: 1fr;
    }
    .category-tree-item summary {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
    }
    .category-tree-item .pill,
    .category-count,
    .category-tree-item .status-badge {
        grid-column: 3;
        justify-self: start;
    }
    .category-tree-item .button.small {
        grid-column: 1 / -1;
        width: 100%;
    }
    .category-tree-children {
        margin-left: 12px;
    }
    .quick-add-sidebar {
        position: static;
        height: auto;
        max-height: none;
    }
    .quick-add-card summary,
    .quick-product-summary-meta,
    .quick-pagination,
    .quick-listing-submit-row {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .quick-product-summary-meta {
        display: grid;
    }
    .quick-accordion-cue {
        justify-self: end;
    }
    .seller-owned-panel {
        overflow: visible;
    }
    .seller-owned-list {
        max-height: 360px;
    }
    .bulk-actions select,
    .bulk-actions input {
        width: 100%;
        max-width: none;
    }
    .product-filter-primary input[type="search"],
    .product-filter-primary input:not([type]),
    .product-filter-primary input[type="text"],
    .product-filter-primary select,
    .product-filter-primary .button,
    .product-filter-primary .more-filters {
        flex: 1 1 100%;
        max-width: none;
    }
    .category-picker {
        min-width: 0;
    }
    .category-picker-popover {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 14px 14px 0 0;
        padding: 14px;
    }
    .listing-drawer-grid,
    .listing-management-row,
    .listing-management-row form,
    .quick-listing-submit-row {
        grid-template-columns: 1fr;
    }
    .quick-drawer-panel {
        width: 100%;
    }
    .pwa-install-sheet {
        padding: 12px;
    }
    .pwa-install-card {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .pwa-install-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .pwa-install-actions .button {
        flex: 1 1 120px;
    }
    .listing-modal, .media-modal {
        align-items: end;
        padding: 10px;
    }
    .listing-modal-panel, .media-modal-panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 8px 8px 0 0;
    }
    .modal-product-summary,
    .media-toolbar {
        grid-template-columns: 1fr;
    }
    .modal-product-summary img {
        width: 86px;
        height: 86px;
    }
    .account-actions .inline-actions {
        grid-template-columns: 1fr;
    }
    .suspension-panel {
        grid-template-columns: 1fr;
    }
    .inline-actions .button {
        flex: 1 1 120px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profile-promo-note {
        grid-column: 1 / -1;
    }
    .account-page-grid {
        grid-template-columns: 1fr;
    }
    .business-hero-panel,
    .compact-stats {
        grid-template-columns: 1fr;
    }
    .business-hero-panel img,
    .hero-image-manager > img {
        width: 100%;
        height: 180px;
    }
    .hero-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profile-panel:first-child {
        grid-row: auto;
    }
}

@media (max-width: 920px) {
    .storefront-heading-tools {
        justify-content: flex-start;
    }
    .storefront-shopping-toolbar {
        top: 62px;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .storefront-toolbar-search {
        grid-column: 1 / -1;
    }
    .storefront-search-submit {
        display: none;
    }
    .storefront-sort-control {
        min-width: 0;
    }
    .storefront-shopping-toolbar .category-drawer summary,
    .storefront-filter-menu summary,
    .storefront-shopping-toolbar select {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .storefront-filter-menu > div {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        top: auto;
        min-width: 0;
    }
    .storefront-shopping-toolbar .category-drawer-panel {
        position: fixed;
        top: auto;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: auto;
        max-height: min(70vh, 520px);
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    .customer-profile-card header,
    .customer-profile-card footer {
        display: grid;
        align-items: start;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .customer-profile-card .button {
        width: 100%;
    }
    .customer-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .account-mini-card,
    .two-col {
        grid-template-columns: 1fr;
    }
    .account-card-actions {
        justify-content: stretch;
    }
    .account-card-actions .button,
    .account-card-actions form {
        width: 100%;
    }
    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 58px;
    }
    .site-header .menu-button {
        order: 1;
        grid-column: 1;
        grid-row: 1;
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 0;
    }
    .site-header .menu-button::before {
        content: "\2630";
        font-size: 20px;
        line-height: 1;
    }
    .site-header .brand {
        order: 2;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }
    .site-header .brand .brand-mark {
        width: 32px;
        height: 32px;
    }
    .site-header .mobile-header-actions {
        order: 3;
        grid-column: 3;
        grid-row: 1;
    }
    .mobile-header-actions .mobile-icon-link:last-child {
        display: none;
    }
    .site-header .top-search {
        display: none;
    }
    .storefront-hero {
        min-height: 0;
        display: block;
        overflow: visible;
        background: var(--wash);
        color: var(--ink);
    }
    .storefront-hero img {
        position: relative;
        width: 100%;
        height: 132px;
        object-fit: cover;
    }
    .storefront-hero-overlay {
        inset: 0 0 auto;
        height: 132px;
        background: linear-gradient(0deg, rgba(13, 95, 42, .55), rgba(13, 95, 42, .08));
    }
    .storefront-hero-content {
        width: min(100% - 24px, 560px);
        margin: -28px auto 0;
        gap: 7px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        background: var(--white);
        box-shadow: 0 10px 24px rgba(23,32,26,.1);
    }
    .storefront-hero-content .pill {
        color: var(--green-900);
        background: #dff9cc;
    }
    .storefront-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }
    .storefront-title-row h1 {
        font-size: clamp(24px, 8vw, 34px);
        color: var(--green-900);
        overflow-wrap: anywhere;
    }
    .storefront-share-button {
        width: 42px;
        min-height: 42px;
        padding: 0;
        color: var(--green-900);
        background: #edf8e9;
        border-color: var(--line);
    }
    .storefront-share-button span {
        display: none;
    }
    .storefront-description {
        display: none;
    }
    .storefront-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .storefront-meta span {
        padding: 0;
        border: 0;
        color: var(--muted);
        background: transparent;
        font-size: 13px;
        text-transform: none;
    }
    .storefront-status {
        color: var(--green-900) !important;
    }
    .storefront-details-section {
        width: min(100% - 24px, 560px);
        margin-top: 10px;
    }
    .storefront-info summary {
        min-height: 44px;
        padding: 11px 12px;
    }
    .storefront-extra-info {
        padding: 0 12px 12px;
    }
    .storefront-products-section {
        padding-top: 12px;
        padding-bottom: 112px;
    }
    .storefront-mobile-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        width: min(100%, 560px);
        margin: 0 auto 8px;
    }
    .storefront-mobile-search label {
        min-width: 0;
    }
    .storefront-mobile-search input {
        width: 100%;
        min-height: 44px;
    }
    .storefront-mobile-search .button {
        min-height: 44px;
        padding-inline: 12px;
    }
    .storefront-mobile-control-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: min(100%, 560px);
        margin: 0 auto 14px;
    }
    .storefront-mobile-tool-form {
        display: contents;
    }
    .storefront-mobile-control-row .category-drawer,
    .storefront-mobile-control-row .storefront-filter-menu,
    .storefront-mobile-control-row .storefront-sort-control {
        min-width: 0;
    }
    .storefront-mobile-control-row .category-drawer summary,
    .storefront-mobile-control-row .storefront-filter-menu summary,
    .storefront-mobile-control-row .storefront-sort-control select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        padding: 9px 8px;
        font-size: 12px;
    }
    .storefront-mobile-control-row .category-drawer summary span:last-child {
        display: inline;
    }
    .storefront-mobile-control-row .category-drawer-panel {
        position: fixed;
        top: auto;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: auto;
        max-height: min(70vh, 520px);
        border-radius: 8px;
    }
    .storefront-products-heading {
        gap: 10px;
        margin-top: 4px;
    }
    .storefront-heading-tools {
        width: 100%;
        justify-content: flex-start;
        gap: 7px;
    }
    .storefront-heading-tools > .storefront-filter-menu,
    .storefront-heading-tools > .storefront-sort-control {
        display: none;
    }
    .storefront-per-page-control {
        grid-template-columns: 1fr;
        gap: 3px;
        flex: 1 1 130px;
    }
    .storefront-per-page-control select {
        width: 100%;
        min-width: 0;
    }
    .storefront-custom-page-size input {
        width: 84px;
    }
    .storefront-shopping-toolbar {
        top: 58px;
        margin-bottom: 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        width: calc(100% + 28px);
        margin-left: -14px;
        margin-right: -14px;
        box-shadow: 0 8px 18px rgba(23,32,26,.08);
    }
    .storefront-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product-image {
        height: auto;
        min-height: 0;
        padding: 10px;
    }
    .product-body {
        padding: 10px;
        gap: 7px;
    }
    .product-body h3 {
        height: auto;
        min-height: 0;
        font-size: 14px;
    }
    .price {
        font-size: 15px;
    }
    .qty-control {
        grid-template-columns: 36px minmax(52px, 1fr) 36px;
        gap: 5px;
    }
    .qty-control button,
    .qty-value,
    .qty-control input {
        min-height: 40px;
        height: 40px;
    }
    .quick-add .button.small {
        min-height: 42px;
        padding-inline: 8px;
    }
    .product-card .add-to-basket-button span {
        font-size: clamp(12px, 3.4vw, 13px);
    }
    .storefront-pagination-desktop {
        display: none;
    }
    .storefront-pagination-mobile {
        display: grid;
        grid-template-columns: minmax(94px, 1fr) auto minmax(86px, 1fr);
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    .storefront-pagination-mobile span {
        color: #41524a;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }
    .storefront-pagination-mobile .button {
        min-height: 40px;
        padding: 8px 10px;
    }
}

@media (max-width: 374px) {
    .product-card .add-to-basket-button span {
        font-size: 0;
    }
    .product-card .add-to-basket-button span::after {
        content: "Add";
        font-size: 13px;
    }
    .qty-value span {
        padding-right: 5px;
        font-size: 11px;
    }
}

/* Market Management Office */
.workspace-switch-button {
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(24, 133, 54, 0.22);
    border-radius: 999px;
    color: var(--green-700);
    background: rgba(230, 247, 235, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
}

.market-office-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.2rem;
    width: min(1440px, calc(100% - 2rem));
    margin: 1rem auto 3rem;
    align-items: start;
}

.market-office-shell.is-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
}

.market-office-sidebar {
    position: sticky;
    top: 86px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0.75rem;
    overflow: hidden;
}

.office-brand {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.8rem;
}

.office-brand-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.office-brand-copy > span:last-child {
    color: var(--green-900);
    font-weight: 400;
}

.office-drawer-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f6faf5;
    color: var(--green-900);
    cursor: pointer;
}

.market-office-sidebar nav,
.office-sidebar-actions,
.market-office-main,
.office-operation-list,
.activity-list,
.office-price-list,
.catalog-candidate-grid,
.office-card-grid {
    display: grid;
    gap: 0.75rem;
}

.market-office-sidebar a,
.market-office-sidebar .link-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
}

.office-nav-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--green-700);
    background: rgba(230, 247, 235, 0.85);
    font-size: 0.85rem;
    font-weight: 700;
}

.office-nav-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.office-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-office-shell.is-collapsed .office-brand {
    justify-content: center;
}

.market-office-shell.is-collapsed .office-brand-copy,
.market-office-shell.is-collapsed .office-nav-label {
    display: none;
}

.market-office-shell.is-collapsed .market-office-sidebar a,
.market-office-shell.is-collapsed .market-office-sidebar .link-button {
    justify-content: center;
    padding-inline: 0.35rem;
}

.market-office-sidebar a.active,
.market-office-sidebar a:hover,
.market-office-sidebar .link-button:hover {
    background: rgba(230, 247, 235, 0.95);
    color: var(--green-700);
}

.office-sidebar-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.office-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fcf9);
    box-shadow: var(--shadow);
}

.office-topbar h1 {
    margin: 0.2rem 0;
    font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.office-topbar p,
.office-metric-card span,
.market-selector label,
.market-selector span {
    margin: 0;
    color: var(--muted);
}

.office-topbar-actions,
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    align-items: center;
}

.market-selector {
    display: grid;
    gap: 0.25rem;
    min-width: 220px;
}

.market-selector label,
.market-selector span {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.market-selector select,
.market-selector.static {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0.68rem 0.75rem;
}

.office-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.office-metric-card {
    min-height: 104px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    display: grid;
    align-content: space-between;
}

.office-metric-card span {
    font-weight: 800;
    font-size: 0.82rem;
}

.office-metric-card strong {
    color: var(--green-700);
    font-size: 2rem;
    line-height: 1;
}

.office-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

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

.office-operation-list a,
.activity-list a,
.catalog-candidate {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fff;
}

.office-operation-list a {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--ink);
}

.office-operation-list strong {
    color: var(--green-700);
    font-size: 1.2rem;
}

.activity-list a,
.catalog-candidate {
    display: grid;
    gap: 0.35rem;
}

.office-card-grid,
.catalog-candidate-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.office-panel {
    align-self: start;
    align-content: start;
    min-height: 0;
}

.compact-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.office-table-wrap small,
.table-wrap td small {
    display: block;
    color: var(--muted);
    margin-top: 0.15rem;
}

.checkbox-inline,
.checkbox-card {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    font-weight: 800;
}

.checkbox-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fff;
}

.office-orders-head {
    gap: 14px;
    padding: clamp(16px, 2vw, 22px);
}

.office-status-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.office-status-tabs a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid #dfeadd;
    border-radius: 999px;
    color: #415247;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
}

.office-status-tabs a.is-active {
    border-color: #9fd88e;
    color: var(--green-900);
    background: #eef9ea;
}

.office-filter-bar {
    grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
    align-items: center;
}

.office-fulfillment-list {
    gap: 8px;
}

.fulfillment-order-card {
    display: grid;
    gap: 10px;
    padding: 10px 12px;
}

.office-order-accordion {
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.office-order-accordion:not([open]) {
    box-shadow: 0 5px 14px rgba(23, 61, 35, .05);
}

.office-order-accordion[open] {
    border-color: #cce8c2;
    box-shadow: 0 12px 26px rgba(23, 61, 35, .09);
}

.office-order-accordion > summary {
    list-style: none;
    cursor: pointer;
    border-radius: 8px;
}

.office-order-accordion > summary::-webkit-details-marker {
    display: none;
}

.office-order-accordion > summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--green-700);
    background: #ecf8e8;
    font-weight: 800;
}

.office-order-accordion[open] > summary::after {
    content: "-";
}

.order-accordion-body {
    display: grid;
    gap: 10px;
}

.fulfillment-order-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 10px;
    align-items: center;
}

.fulfillment-order-head h3 {
    margin: 5px 0 3px;
    color: #17271d;
    font-size: 16px;
    line-height: 1.2;
}

.fulfillment-order-head p {
    margin: 0;
    color: #66766c;
    font-size: 12px;
    font-weight: 400;
}

.fulfillment-order-card .order-total-block strong {
    font-weight: 600;
}

.fulfillment-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.fulfillment-facts div {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fbf6;
}

.fulfillment-facts dt {
    margin: 0 0 4px;
    color: #66766c;
    font-size: 12px;
    font-weight: 600;
}

.fulfillment-facts dd {
    margin: 0;
    color: #1d2d22;
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.fulfillment-action-panel {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #dfeadd;
    border-radius: 8px;
    background: #fbfdfb;
}

.fulfillment-action-panel span {
    display: block;
    color: #66766c;
    font-size: 12px;
    font-weight: 600;
}

.fulfillment-action-panel strong {
    display: block;
    margin-top: 3px;
    color: #1d2d22;
    font-size: 14px;
    font-weight: 500;
}

.fulfillment-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.order-document-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.order-card-actions .order-document-actions .button {
    justify-content: center;
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
}

.fulfillment-action-row form {
    margin: 0;
}

.fulfillment-action-row .button,
.order-card-actions .button {
    white-space: nowrap;
}

.office-shopping-head {
    gap: 14px;
}

.office-shopping-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5f1e2;
}

.office-shopping-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green-700);
}

.office-shopping-facts {
    margin: 0;
}

.office-shopping-items {
    display: grid;
    gap: 8px;
}

.office-shopping-item {
    gap: 10px;
    padding: 10px 12px;
}

.office-shopping-accordion {
    display: grid;
}

.office-shopping-accordion > summary {
    list-style: none;
    cursor: pointer;
    border-radius: 8px;
}

.office-shopping-accordion > summary::-webkit-details-marker {
    display: none;
}

.office-shopping-item-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    gap: 10px;
    align-items: center;
    min-height: 48px;
}

.office-shopping-item-head .table-thumb {
    width: 48px;
    height: 48px;
}

.office-shopping-item-head h3 {
    margin: 5px 0 2px;
    color: #17271d;
    font-size: 15px;
    line-height: 1.25;
}

.office-shopping-item-head p {
    margin: 0;
    color: #66766c;
    font-size: 12px;
    font-weight: 400;
}

.office-shopping-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #fff;
    background: var(--green-700);
    font-size: 15px;
    font-weight: 700;
}

.office-shopping-actions,
.office-shopping-form {
    display: grid;
    gap: 10px;
}

.office-shopping-accordion:not([open]) .office-shopping-actions {
    display: none;
}

.office-shopping-accordion[open] {
    box-shadow: 0 10px 24px rgba(20, 68, 34, .08);
}

.office-shopping-accordion[open] .office-shopping-item-head {
    padding-bottom: 8px;
    border-bottom: 1px solid #e4efdf;
}

.office-shopping-form {
    padding: 12px;
    border: 1px solid #dfeadd;
    border-radius: 8px;
    background: #fbfdfb;
}

.office-shopping-form label {
    color: #26372c;
    font-size: 13px;
    font-weight: 600;
}

.office-shopping-form input,
.office-shopping-form textarea,
.office-shopping-form select {
    font-weight: 400;
}

.office-shopping-secondary {
    border: 1px solid #dfeadd;
    border-radius: 8px;
    background: #fff;
}

.office-shopping-secondary summary {
    min-height: 42px;
    padding: 11px 12px;
    color: var(--green-900);
    font-weight: 600;
    cursor: pointer;
}

.office-shopping-secondary .office-shopping-form {
    border: 0;
    border-top: 1px solid #dfeadd;
    border-radius: 0 0 12px 12px;
}

.inline-unavailable {
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: center;
}

.office-shopping-ready {
    bottom: 12px;
    min-height: 0;
    padding: 10px 12px;
}

.office-shopping-ready .office-shopping-ready-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.office-shopping-ready strong {
    white-space: nowrap;
}

.office-shopping-ready .office-shopping-ready-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(255,255,255,.82);
}

.office-shopping-ready .office-shopping-ready-stats > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    font-size: 13px;
    line-height: 1;
}

.office-shopping-ready .button {
    min-height: 42px;
    padding-inline: 18px;
}

.office-settings-form {
    gap: 18px;
    padding: clamp(18px, 3vw, 34px);
}

.office-settings-form .office-settings-head {
    align-items: center;
    margin-bottom: 4px;
}

.office-settings-form .office-settings-head h2 {
    color: #15261c;
    font-size: clamp(28px, 3.3vw, 40px);
    letter-spacing: 0;
}

.office-settings-form .office-settings-head p,
.office-settings-section p {
    max-width: 720px;
    color: #627268;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.office-settings-form label {
    display: grid;
    gap: 8px;
    color: #26372c;
    font-size: 14px;
    font-weight: 600;
}

.office-settings-form input,
.office-settings-form textarea,
.office-settings-form select {
    min-height: 48px;
    border-color: #dce8d9;
    border-radius: 10px;
    color: #162219;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    background: #fff;
}

.office-settings-form textarea {
    min-height: 94px;
    resize: vertical;
}

.office-settings-form input::placeholder,
.office-settings-form textarea::placeholder {
    color: #87978d;
    font-weight: 400;
}

.office-settings-form .checkbox-card {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: flex-start;
    border-color: #dce8d9;
    border-radius: 10px;
    color: #24352a;
    font-weight: 500;
}

.office-settings-form .checkbox-card input {
    min-height: auto;
}

.office-field-grid {
    align-items: start;
    column-gap: clamp(18px, 3vw, 30px);
    row-gap: 18px;
}

.office-settings-section {
    display: grid;
    gap: 16px;
    padding: clamp(16px, 2.4vw, 22px);
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: #fbfdfb;
}

.office-settings-section h3 {
    margin: 0;
    color: #17271d;
    font-size: 18px;
    line-height: 1.2;
}

.office-settings-section p {
    margin: 6px 0 0;
}

.office-payment-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.office-payment-status-grid article {
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid #e4ece2;
    border-radius: 10px;
    background: #fff;
}

.office-payment-status-grid span {
    color: #627268;
    font-size: 12px;
    font-weight: 600;
}

.office-payment-status-grid strong {
    color: #1f3426;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.office-payment-status-grid small {
    color: #6c7b71;
    font-size: 13px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.office-topbar {
    border: 1px solid #e1ebdf;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 32, 26, .04);
}
.office-topbar h1 {
    font-size: clamp(24px, 2.8vw, 34px);
}
.office-settings-workspace {
    display: grid;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}
.office-settings-sticky {
    position: sticky;
    top: 74px;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #dfeadd;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(23, 32, 26, .06);
    backdrop-filter: blur(8px);
}
.office-settings-sticky h2 {
    margin: 0;
    color: #15261c;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1;
}
.office-settings-sticky p {
    margin: 7px 0 0;
    max-width: 720px;
    color: #627268;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}
.unsaved-indicator {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #805200;
    background: #fff4d8;
    font-size: 12px;
    font-weight: 600;
}
.office-settings-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    border: 1px solid #e2ecdf;
    border-radius: 999px;
    background: #f7fbf5;
}
.office-settings-tabs button {
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    color: #4f6257;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.office-settings-tabs button.is-active {
    color: #fff;
    background: var(--green-700);
}
.pricing-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pricing-mode-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #dfeadd;
    border-radius: 10px;
    background: #f9fcf7;
    cursor: pointer;
}
.pricing-mode-card:has(input:checked),
.pricing-mode-card.is-selected {
    border-color: #8bd86a;
    background: #eefbe8;
    box-shadow: 0 8px 20px rgba(31, 132, 55, .08);
}
.pricing-mode-card input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    accent-color: var(--green-700);
}
.pricing-mode-card strong,
.pricing-mode-card small {
    display: block;
    line-height: 1.25;
}
.pricing-mode-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}
.office-settings-tab-panel {
    display: none;
    gap: 18px;
}
.office-settings-tab-panel.is-active {
    display: grid;
}
.office-settings-card {
    display: grid;
    gap: 16px;
    padding: clamp(16px, 2.6vw, 24px);
    border: 1px solid #dfeadd;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 32, 26, .04);
}
.settings-card-head h3,
.office-settings-card h4 {
    margin: 0;
    color: #17271d;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}
.settings-card-head p,
.office-settings-card p,
.office-settings-card small,
.closure-helper,
.muted-copy {
    color: #627268;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}
.settings-card-head p,
.office-settings-card h4 + p {
    margin: 6px 0 0;
}
.settings-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}
.office-settings-workspace label {
    display: grid;
    gap: 7px;
    color: #26372c;
    font-size: 14px;
    font-weight: 500;
}
.office-settings-workspace input,
.office-settings-workspace textarea,
.office-settings-workspace select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #dce8d9;
    border-radius: 10px;
    color: #162219;
    background: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}
.office-settings-workspace textarea {
    min-height: 94px;
    resize: vertical;
}
.office-settings-workspace input::placeholder,
.office-settings-workspace textarea::placeholder {
    color: #87978d;
    font-weight: 400;
}
.office-settings-workspace select,
.office-settings-workspace option {
    font-weight: 400;
}
.input-with-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.input-with-unit input {
    border-radius: 10px 0 0 10px;
}
.input-with-unit span {
    display: grid;
    min-height: 46px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid #dce8d9;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: #627268;
    background: #f7fbf5;
    font-size: 13px;
    font-weight: 400;
}
.toggle-card-list {
    display: grid;
    gap: 10px;
}
.toggle-setting-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 12px !important;
    align-items: center;
    min-height: 66px;
    padding: 12px;
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: #fbfdfb;
    cursor: pointer;
}
.toggle-setting-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #d8e2d9;
    transition: background .16s ease;
}
.toggle-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.16);
    transition: transform .16s ease;
}
.toggle-setting-row input:checked + .toggle-switch {
    background: var(--green-700);
}
.toggle-setting-row input:checked + .toggle-switch::after {
    transform: translateX(20px);
}
.toggle-setting-row strong {
    display: block;
    color: #1f3426;
    font-size: 15px;
    font-weight: 700;
}
.toggle-setting-row small {
    display: block;
    margin-top: 3px;
}
.toggle-setting-row em {
    color: #627268;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}
.closure-helper,
.approval-banner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 10px;
}
.closure-helper {
    border: 1px solid #dfeadd;
    background: #f7fbf5;
}
.closure-helper p {
    margin: 0;
}
.approval-banner {
    display: block;
    color: #75510b;
    border: 1px solid #ffe0a6;
    background: #fff8e8;
    font-size: 13px;
    font-weight: 400;
}
.account-status-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.account-status-summary article {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #e4ece2;
    border-radius: 12px;
    background: #fbfdfb;
}
.account-status-summary strong {
    color: #1f3426;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.account-status-summary small {
    overflow-wrap: anywhere;
}
.qr-upload-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
    gap: 16px;
    align-items: start;
    padding: 14px;
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: #fbfdfb;
}
.qr-upload-card img {
    width: 120px;
    max-width: 100%;
    margin-top: 12px;
    border: 1px solid #dfeadd;
    border-radius: 10px;
    background: #fff;
}
.styled-upload {
    min-height: 120px;
    align-content: center;
    justify-items: center;
    padding: 16px;
    border: 1px dashed #b8d7b4;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
}
.styled-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.styled-upload span {
    color: var(--green-900);
    font-weight: 700;
}
.advanced-settings {
    border: 1px solid #e4ece2;
    border-radius: 10px;
    padding: 0;
    background: #fbfdfb;
}
.advanced-settings summary {
    padding: 12px;
    color: var(--green-900);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.advanced-settings label {
    padding: 0 12px 12px;
}
.reuse-account-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 12px;
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: #fbfdfb;
}
.reuse-account-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}
.reuse-account-row small {
    grid-column: 2;
}
.section-submit-row,
.drawer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.notice-preview {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #dfeadd;
    border-radius: 10px;
    background: #fbfdfb;
}
.notice-preview span {
    color: #627268;
    font-size: 12px;
    font-weight: 600;
}
.notice-preview p {
    margin: 0;
    color: #26372c;
}
.office-settings-mobile-save {
    display: none;
}

.visibility-note {
    padding: 12px 14px;
    border: 1px solid #dce8d9;
    border-radius: 10px;
    color: #4f6257;
    background: #f7fbf5;
    font-size: 13px;
    font-weight: 400;
}

.company-profile-intro-card {
    gap: 12px;
}

.company-branding-grid,
.public-profile-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.profile-logo-preview {
    display: grid;
    width: 104px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce8d9;
    border-radius: 14px;
    color: var(--green-900);
    background: #f2faef;
    font-size: 28px;
    font-weight: 700;
}

.profile-logo-preview.is-small {
    width: 68px;
    border-radius: 12px;
    font-size: 20px;
}

.profile-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-upload-stack {
    display: grid;
    gap: 10px;
}

.plain-check {
    display: inline-grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px !important;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    color: #26372c;
    font-size: 14px;
    font-weight: 400 !important;
    cursor: pointer;
}

.plain-check input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--green-700);
}

.visibility-checks {
    display: flex;
    gap: 10px 18px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: #fbfdfb;
}

.profile-preview-panel {
    background: linear-gradient(180deg, #fff, #fbfdfb);
}

.public-profile-preview strong {
    display: block;
    color: #17271d;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.public-profile-preview span {
    display: block;
    margin-top: 4px;
    color: #52665b;
    font-size: 13px;
    font-weight: 400;
}

.public-profile-preview p {
    margin: 8px 0 0;
    color: #334439;
    font-size: 14px;
    font-weight: 400;
}

.public-profile-preview ul {
    display: flex;
    gap: 7px 12px;
    flex-wrap: wrap;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.public-profile-preview li {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    color: #52665b;
    background: #f0f7ed;
    font-size: 12px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.profile-status-note {
    display: inline-flex;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #52665b;
    background: #f0f7ed;
    font-size: 12px;
    font-weight: 500;
}

.seller-account-review-section {
    display: grid;
    gap: 16px;
}

.seller-account-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.seller-account-review-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dfeadd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(21, 44, 29, .07);
}

.seller-account-review-main {
    display: grid;
    gap: 7px;
}

.seller-account-review-main h3 {
    margin: 0;
    color: #17271d;
    font-size: 18px;
    line-height: 1.25;
}

.seller-account-review-main p,
.seller-account-note {
    margin: 0;
    color: #66766c;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.seller-account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
}

.seller-account-detail-grid div {
    min-width: 0;
}

.seller-account-detail-grid dt {
    margin: 0 0 4px;
    color: #66766c;
    font-size: 12px;
    font-weight: 600;
}

.seller-account-detail-grid dd {
    margin: 0;
    color: #18271e;
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.seller-account-review-form {
    display: grid;
    gap: 10px;
}

.seller-account-review-form textarea {
    min-height: 76px;
    border-radius: 10px;
    font-weight: 400;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 180px;
}

.price-update-row {
    display: grid;
    grid-template-columns: 64px minmax(220px, 1fr) minmax(110px, 150px) minmax(130px, 170px) auto auto;
    gap: 0.8rem;
    align-items: end;
}

.price-update-row img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.office-order-list {
    display: grid;
    gap: 0.85rem;
}

.office-order-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0.95rem;
    display: grid;
    gap: 0.85rem;
}

.office-order-card summary {
    list-style: none;
}

.office-order-card summary::-webkit-details-marker {
    display: none;
}

.order-card-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
}

.order-card-summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--green-700);
    background: rgba(230, 247, 235, 0.95);
    font-weight: 800;
}

.office-order-card[open] .order-card-summary::after {
    content: "-";
}

.order-summary-number {
    display: block;
    margin-top: 0.35rem;
    color: var(--green-900);
    font-size: 1rem;
}

.order-card-main {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.order-card-main h2 {
    margin: 0.35rem 0 0.1rem;
    color: var(--green-900);
    font-size: 1.15rem;
}

.order-card-main p {
    margin: 0;
    color: var(--muted);
}

.order-total-block {
    min-width: 130px;
    text-align: right;
}

.order-total-block span,
.order-card-facts dt {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.order-total-block strong {
    color: var(--green-700);
    font-size: 1.25rem;
}

.order-card-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.order-card-facts div {
    min-width: 0;
}

.order-card-facts dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.order-card-actions,
.inline-order-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.inline-order-form select {
    max-width: 220px;
}

.print-heading {
    display: none;
}

.ledger-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.collectible-card strong {
    color: #0f5132;
}

.disabled-button,
.disabled-button:hover {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #a6aea8 !important;
    background: #a6aea8 !important;
    color: #ffffff !important;
}

.minimum-order-note {
    display: block;
    text-align: left;
}

.category-drawer summary,
.category-drawer-head strong,
.category-drawer-panel a,
.category-drawer-panel .depth-1,
.category-drawer-panel small,
.top-nav,
.top-nav a,
.icon-nav-trigger,
.account-trigger span,
.account-popover strong,
.account-popover a,
.account-popover .link-button,
.mobile-menu,
.mobile-menu a,
.market-office-sidebar nav a,
.office-sidebar-actions a,
.office-sidebar-actions button {
    font-weight: 400;
}

.auth-card input,
.auth-card textarea,
.auth-card select,
.qty-control input,
.cart-qty-control input,
.checkout-flow input,
.checkout-flow textarea,
.checkout-flow select,
.checkout-flow .checkout-cart-item strong,
.checkout-flow .checkout-cart-item small,
.checkout-flow .checkout-cart-item b,
.checkout-flow .summary-card p,
.checkout-flow .summary-card strong,
.checkout-flow .payment-method-card strong,
.checkout-flow .payment-method-card small,
.checkout-flow .muted-text,
.checkout-flow .field-note,
.checkout-flow .document-note,
.checkout-flow .minimum-order-note,
.minimum-order-note,
.app-settings-form input,
.app-settings-form textarea,
.app-settings-form select {
    font-weight: 400;
}

@media (max-width: 1080px) {
    .market-office-shell {
        grid-template-columns: 1fr;
    }

    .market-office-shell.is-collapsed {
        grid-template-columns: 1fr;
    }

    .market-office-sidebar {
        position: static;
        width: 100%;
    }

    .market-office-sidebar nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .market-office-shell.is-collapsed .office-brand {
        justify-content: flex-start;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .market-office-shell.is-collapsed .office-brand-copy {
        display: grid;
    }

    .market-office-shell.is-collapsed .market-office-sidebar nav,
    .market-office-shell.is-collapsed .office-sidebar-actions {
        display: none;
    }

    .market-office-shell.is-mobile-open .office-brand {
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid var(--border);
    }

    .market-office-shell.is-mobile-open .market-office-sidebar nav,
    .market-office-shell.is-mobile-open .office-sidebar-actions {
        display: grid;
    }

    .market-office-shell.is-mobile-open .office-nav-label {
        display: inline;
    }

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

    .office-two-column {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .market-office-shell {
        width: min(100% - 1rem, 100%);
        gap: 0.75rem;
        overflow-x: hidden;
    }

    .office-topbar,
    .office-topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .market-selector {
        min-width: 0;
    }

    .office-summary-grid,
    .office-operation-list,
    .catalog-candidate-grid,
    .office-card-grid {
        grid-template-columns: 1fr;
    }

    .price-update-row {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
    }

    .price-update-row label,
    .price-update-row .checkbox-inline,
    .price-update-row button {
        grid-column: 1 / -1;
    }

    .order-card-main,
    .order-card-actions,
    .inline-order-form {
        align-items: stretch;
        flex-direction: column;
    }

    .order-card-summary {
        align-items: flex-start;
    }

    .order-total-block {
        min-width: 0;
        text-align: left;
    }

    .order-card-facts,
    .ledger-summary-grid {
        grid-template-columns: 1fr;
    }

    .inline-order-form select,
    .inline-order-form button,
    .order-card-actions .button {
        width: 100%;
        max-width: none;
    }

    .workspace-switch-button {
        display: flex;
        width: fit-content;
        margin: 0.45rem 0 0;
    }

    .ledger-print-table {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .ledger-print-table table,
    .ledger-print-table tbody,
    .ledger-print-table tr,
    .ledger-print-table td {
        display: block;
        width: 100%;
    }

    .ledger-print-table thead {
        display: none;
    }

    .ledger-print-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 6px 18px rgba(23, 32, 26, .05);
        overflow: hidden;
    }

    .ledger-print-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        word-break: break-word;
    }

    .ledger-print-table td::before {
        content: attr(data-label);
        color: var(--green-900);
        font-weight: 800;
    }

    .ledger-print-table td:last-child {
        border-bottom: 0;
    }
}

@media print {
    header,
    footer,
    .market-office-sidebar,
    .office-topbar,
    .no-print,
    .pagination-bar,
    .page-preloader,
    .return-top-button {
        display: none !important;
    }

    main,
    .market-office-shell,
    .market-office-main {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .print-heading {
        display: block;
        margin-bottom: 1rem;
    }

    .office-order-card,
    .form-panel,
    .office-metric-card,
    .table-wrap {
        box-shadow: none !important;
        border-color: #d7ded9 !important;
        break-inside: avoid;
    }

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

.work-pad-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 76vh;
    background: #f7fbf5;
}

.checkout-page-head {
    justify-content: center;
    padding: 30px 16px 12px;
    background: #f7faf6;
}
.checkout-page-head > div {
    width: min(1220px, 100%);
}
.checkout-page-head h1 {
    color: #1f2a24;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.08;
}
.checkout-page-head p {
    max-width: 640px;
    color: #66746b;
    font-size: 14px;
    font-weight: 400;
}
.checkout-grid.checkout-flow {
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, .95fr);
    gap: clamp(24px, 3vw, 32px);
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 64px;
}
.checkout-flow .checkout-form {
    gap: 16px;
    min-width: 0;
}
.checkout-flow .checkout-step,
.checkout-flow .checkout-summary {
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2eadf;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 32, 26, .05);
}
.checkout-flow .checkout-summary {
    position: sticky;
    top: 86px;
    align-self: start;
}
.checkout-step-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}
.step-marker {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: #4ba430;
    font-size: 13px;
    font-weight: 700;
}
.checkout-flow .step-kicker {
    color: #5e6f63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.checkout-flow .checkout-step h2,
.checkout-flow .checkout-summary h2 {
    margin: 1px 0 0;
    color: #1f2a24;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}
.checkout-flow .form-panel label {
    gap: 7px;
    color: #2f3b34;
    font-size: 13px;
    font-weight: 600;
}
.checkout-flow input,
.checkout-flow textarea,
.checkout-flow select {
    min-height: 46px;
    border-color: #dfe8dc;
    border-radius: 10px;
    color: #1f2a24;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}
.checkout-flow textarea {
    min-height: 86px;
}
.checkout-flow textarea[rows="2"] {
    min-height: 64px;
}
.checkout-flow input:focus-visible,
.checkout-flow textarea:focus-visible,
.checkout-flow select:focus-visible,
.payment-method-card:focus-within {
    outline: 3px solid rgba(249, 181, 0, .42);
    outline-offset: 2px;
}
.checkout-flow [aria-invalid="true"] {
    border-color: #d54a36;
}
.optional-label,
.checkout-flow .field-note {
    color: #687970;
    font-size: 12px;
    font-weight: 400;
}
.checkout-flow .field-note.compact {
    margin: -1px 0 0;
}
.address-confirm-note {
    margin: -4px 0 0;
}
.field-error {
    min-height: 16px;
    color: #b3261e;
    font-size: 12px;
    font-weight: 500;
}
.field-error:empty {
    min-height: 0;
}
.checkout-address-entry {
    display: grid;
    gap: 14px;
    max-height: 720px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .24s ease, opacity .18s ease, transform .18s ease, margin .18s ease;
}
.checkout-address-entry.is-collapsed {
    max-height: 0;
    margin-top: -8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}
.address-save-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.checkout-flow .toggle-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    color: #34423a;
    font-size: 13px;
    font-weight: 400;
}
.checkout-flow .toggle-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-height: 0;
    accent-color: #4ba430;
}
.checkout-flow .delivery-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.checkout-flow .payment-method-list {
    gap: 10px;
    margin: 0;
}
.checkout-flow .payment-method-card {
    min-height: 52px;
    gap: 11px !important;
    padding: 12px;
    border-color: #dfe8dc;
    border-radius: 12px;
    background: #fff;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.checkout-flow .payment-method-card input[type="radio"] {
    width: 19px;
    height: 19px;
    min-height: 0;
    accent-color: #4ba430;
}
.checkout-flow .payment-method-card strong {
    color: #243129;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}
.checkout-flow .payment-method-card small {
    margin-top: 2px;
    color: #66786e;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}
.checkout-flow .payment-method-card:has(input:checked) {
    border-color: #4ba430;
    background: #eef9ea;
    box-shadow: 0 0 0 1px rgba(75, 164, 48, .1);
}
.checkout-flow .info-panel,
.checkout-flow .preparation-estimate-box,
.checkout-flow .location-panel,
.checkout-flow .payment-disclosure {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 12px;
    border: 1px solid #e3ece0;
    border-radius: 12px;
    background: #f9fbf8;
}
.checkout-flow .info-panel strong,
.checkout-flow .preparation-estimate-box strong,
.checkout-flow .payment-disclosure strong {
    color: #243129;
    font-size: 14px;
    font-weight: 600;
}
.checkout-flow .info-panel p,
.checkout-flow .payment-disclosure p {
    margin: 0;
    color: #66786e;
    font-size: 13px;
    font-weight: 400;
}
.checkout-flow .preparation-estimate-box {
    border-color: #d7ead0;
    background: #f3fbf0;
}
.checkout-flow .preparation-estimate-box strong {
    color: #2d6f22;
}
.checkout-flow .location-panel {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    color: #5e7167;
}
.location-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef6ec;
}
.location-icon::before {
    content: "";
    width: 11px;
    height: 11px;
    border: 2px solid #4ba430;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.checkout-flow .location-panel strong,
.checkout-flow .location-panel span {
    display: block;
}
.checkout-flow .location-panel strong {
    color: #243129;
    font-size: 14px;
    font-weight: 700;
}
.checkout-flow .location-panel span {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
}
.checkout-flow .location-panel .pickup-instruction {
    color: #25352c;
    font-weight: 600;
}
.checkout-flow .payment-disclosure {
    overflow: hidden;
}
.checkout-flow .payment-disclosure.is-active {
    animation: checkoutReveal .18s ease-out;
}
@keyframes checkoutReveal {
    from { opacity: .72; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
.checkout-flow .checkout-account-preview h3 {
    margin: 0;
    color: #243129;
    font-size: 15px;
    font-weight: 700;
}
.checkout-flow .checkout-account-preview .detail-list div {
    display: grid;
    grid-template-columns: minmax(110px, .72fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
}
.checkout-flow .checkout-account-preview .detail-list dt,
.checkout-flow .checkout-account-preview .detail-list dd {
    font-size: 13px;
    font-weight: 400;
}
.checkout-flow .checkout-account-preview .detail-list dd {
    color: #243129;
    text-align: right;
}
.checkout-flow .checkout-account-preview .detail-list div:last-child dd {
    color: #2d7b20;
    font-weight: 600;
}
.checkout-flow .checkout-cart-accordion {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.checkout-flow .checkout-cart-accordion summary {
    min-height: 42px;
    padding: 0;
    color: #243129;
    font-size: 14px;
    font-weight: 600;
}
.checkout-flow .checkout-cart-accordion summary span {
    color: #66786e;
    font-weight: 400;
}
.checkout-flow .checkout-cart-list {
    gap: 10px;
    padding: 8px 0 0;
}
.checkout-flow .checkout-cart-item {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid #edf2eb;
    border-radius: 0;
    background: transparent;
}
.checkout-flow .checkout-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f8f2;
}
.checkout-item-main {
    min-width: 0;
}
.checkout-flow .checkout-cart-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #243129;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.checkout-flow .checkout-cart-item small {
    color: #66786e;
    font-size: 12px;
    font-weight: 400;
}
.checkout-flow .checkout-cart-item b {
    color: #243129;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.checkout-flow .checkout-qty-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.checkout-flow .checkout-qty-form .cart-qty-control {
    width: 132px;
}
.checkout-flow .checkout-qty-form .button {
    min-height: 36px;
    font-weight: 600;
}
.checkout-summary-lines {
    display: grid;
    gap: 0;
}
.checkout-flow .checkout-summary-lines p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid #edf2eb;
    color: #3b473f;
    font-size: 14px;
    font-weight: 400;
}
.checkout-flow .checkout-summary-lines p span {
    min-width: 0;
}
.checkout-flow .checkout-summary-lines p strong {
    color: #243129;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}
.checkout-flow .checkout-summary-lines .total {
    margin-top: 4px;
    padding-top: 13px;
    border-top: 1px solid #dce7d9;
    border-bottom: 0;
    color: #243129;
    font-size: 17px;
}
.checkout-flow .checkout-summary-lines .total strong {
    color: #2f821f;
    font-size: 18px;
    font-weight: 700;
}
.checkout-flow .credits-toggle {
    margin: 4px 0;
    padding: 10px;
    border: 1px solid #e3ece0;
    border-radius: 10px;
    background: #f9fbf8;
}
.checkout-summary > .document-note,
.checkout-summary > .minimum-order-note {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    color: #66786e;
    font-size: 13px;
    font-weight: 400;
}
.checkout-flow .checkout-submit-main {
    min-height: 48px;
    margin-top: 0;
    border-radius: 10px;
    background: #4ba430;
    font-weight: 700;
}
.checkout-mobile-bar {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    .checkout-flow .payment-method-card,
    .checkout-address-entry,
    .checkout-flow .payment-disclosure.is-active {
        animation: none;
        transition: none;
    }
}
@media (max-width: 920px) {
    .checkout-grid.checkout-flow {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 32px));
    }
    .checkout-flow .checkout-summary {
        position: static;
    }
}
@media (max-width: 640px) {
    .checkout-page-head {
        padding: 24px 16px 8px;
    }
    .checkout-page-head h1 {
        font-size: 27px;
    }
    .checkout-page-head p {
        font-size: 13px;
    }
    .checkout-grid.checkout-flow {
        width: 100%;
        gap: 14px;
        padding: 14px 16px calc(126px + env(safe-area-inset-bottom));
    }
    .checkout-flow .checkout-step,
    .checkout-flow .checkout-summary {
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(23, 32, 26, .045);
    }
    .checkout-flow .two-col,
    .checkout-flow .delivery-method-grid {
        grid-template-columns: 1fr;
    }
    .checkout-flow .checkout-cart-item {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .checkout-flow .checkout-cart-item img {
        width: 56px;
        height: 56px;
    }
    .checkout-flow .checkout-cart-item b {
        grid-column: 2;
        justify-self: start;
    }
    .checkout-flow .checkout-qty-form {
        display: grid;
        grid-template-columns: minmax(124px, 1fr) auto;
        width: 100%;
    }
    .checkout-flow .checkout-qty-form .cart-qty-control {
        width: 100%;
    }
    .checkout-flow .checkout-account-preview .detail-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .checkout-flow .checkout-account-preview .detail-list dd {
        text-align: left;
    }
    .checkout-flow .checkout-submit-main {
        display: none;
    }
    .checkout-mobile-bar {
        position: fixed;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 95;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 10px;
        border: 1px solid rgba(75, 164, 48, .22);
        border-radius: 14px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -8px 26px rgba(23, 32, 26, .16);
        backdrop-filter: blur(12px);
    }
    .checkout-mobile-bar span,
    .checkout-mobile-bar strong {
        display: block;
    }
    .checkout-mobile-bar span {
        color: #66786e;
        font-size: 12px;
        font-weight: 500;
    }
    .checkout-mobile-bar strong {
        color: #2f821f;
        font-size: 18px;
        font-variant-numeric: tabular-nums;
        font-weight: 700;
        line-height: 1.15;
    }
    .checkout-mobile-bar .button {
        min-height: 46px;
        min-width: 116px;
        padding: 10px 14px;
        border-radius: 10px;
        background: #4ba430;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }
}

.work-pad-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 24px;
    background: #143f2a;
    color: var(--white);
}

.work-pad-menu {
    max-width: 1180px;
    margin: 0 auto;
}

.work-pad-menu summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.work-pad-menu summary::-webkit-details-marker {
    display: none;
}

.work-pad-menu .office-nav-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--green-700);
    background: #d8eadf;
    font-weight: 900;
}

.work-pad-menu .office-brand-copy strong {
    color: var(--white);
}

.work-pad-menu .office-brand-copy > span:last-child {
    color: #cfe6d6;
}

.work-menu-chevron {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    transition: transform .18s ease;
}

.work-pad-menu[open] .work-menu-chevron {
    transform: rotate(180deg);
}

.work-menu-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.07);
}

.work-menu-overview div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.work-menu-overview span,
.work-menu-overview small {
    color: #cfe6d6;
    font-size: 13px;
}

.work-menu-overview strong {
    color: var(--white);
    font-size: 18px;
}

.work-location-select {
    margin-top: 10px;
}

.work-location-select summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255,255,255,.08);
    cursor: pointer;
    list-style: none;
}

.work-location-select summary::-webkit-details-marker {
    display: none;
}

.work-location-select summary span {
    color: #cfe6d6;
    font-size: 12px;
    font-weight: 800;
}

.work-location-select summary strong {
    overflow: hidden;
    color: var(--white);
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-location-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.work-location-options a {
    justify-content: flex-start;
    gap: 8px;
}

.work-location-options a span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    color: var(--green-900);
    background: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 900;
}

.work-pad-sidebar nav,
.work-pad-sidebar .office-sidebar-actions {
    display: none;
    gap: 8px;
}

.work-pad-menu[open] nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 10px;
}

.work-pad-menu[open] .office-sidebar-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
}

.work-pad-sidebar a,
.work-pad-sidebar .link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255,255,255,.08);
    text-align: left;
}

.work-pad-sidebar a.active,
.work-pad-sidebar a:hover,
.work-pad-sidebar .link-button:hover {
    background: var(--white);
    color: var(--green-900);
}

.work-pad-main {
    display: grid;
    gap: 20px;
    align-content: start;
    padding: 24px;
    width: min(100%, 1480px);
    margin: 0 auto;
}

.work-topbar {
    margin: 0;
}

.work-location-strip {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d8edcd;
    border-radius: 8px;
    background: var(--white);
}

.work-location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-location-chips a {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #bde8a9;
    border-radius: 999px;
    color: var(--green-900);
    background: #f3fbef;
    font-weight: 800;
}

.work-location-chips a.active {
    color: var(--white);
    background: var(--green-700);
    border-color: var(--green-700);
}

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

.work-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dcebd5;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(24, 61, 41, .06);
}

.work-task-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.work-task-main h3,
.work-item-body h3 {
    margin: 0;
    color: var(--green-900);
}

.work-item-body h3 {
    color: #1f2d24;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.work-task-main p,
.work-task-main small {
    margin: 0;
    color: var(--muted);
}

.work-attention {
    color: #9b4c00;
}

.work-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6f3df;
}

.work-progress.big {
    height: 7px;
}

.work-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green-700);
}

.work-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.work-shopping-head {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #dcebd5;
}

.work-shopping-head p {
    margin: 0;
}

.work-shopping-meta {
    color: var(--green-900);
    font-size: 13px;
    font-weight: 400;
}

.work-shopping-order {
    color: #26342b;
    font-size: 14px;
    font-weight: 400;
}

.work-shopping-location {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.work-shopping-grid {
    display: grid;
    gap: 14px;
}

.work-item-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid #dcebd5;
    border-radius: 8px;
    background: var(--white);
}

.work-item-accordion {
    grid-template-columns: 1fr;
}

.work-item-accordion > summary {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    list-style: none;
    cursor: pointer;
}

.work-item-accordion > summary::-webkit-details-marker {
    display: none;
}

.work-item-card > img,
.work-item-accordion > summary > img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef7e8;
}

.work-item-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.work-item-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 12px;
    align-items: start;
}

.work-item-title-row p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.work-item-actions-rail {
    display: grid;
    gap: 3px;
    justify-items: center;
}

.work-item-body .work-bought-form {
    display: block;
}

.work-item-check-form {
    margin-top: 4px;
}

.work-bought-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 132px;
    min-height: 42px;
    border: 2px solid #a8e58c;
    border-radius: 8px;
    color: var(--green-900);
    background: var(--white);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(24, 133, 54, .12);
    cursor: pointer;
}

.work-bought-button span {
    display: inline-grid;
    place-items: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    color: inherit;
}

.work-bought-button.is-checked {
    color: var(--white);
    background: var(--green-700);
    border-color: var(--green-700);
}

.work-bought-button:disabled {
    opacity: 1;
    cursor: default;
}

.work-item-action-menu {
    position: relative;
    min-height: 0;
    margin-top: -6px;
}

.work-item-action-menu > summary {
    position: absolute;
    top: -2px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 38px;
    min-height: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #cfe9c3;
    border-radius: 999px;
    color: var(--green-900);
    background: #f7fcf3;
    box-shadow: 0 6px 14px rgba(24, 61, 41, .07);
}

.work-item-action-menu > summary span {
    font-size: 18px;
    line-height: 1;
    transform: translateY(-2px);
}

.work-item-action-menu[open] {
    padding-top: 28px;
}

.work-item-action-menu[open] > summary {
    border-color: var(--green-700);
    background: var(--white);
}

.work-item-action-panel {
    display: grid;
    gap: 8px;
}

.work-item-body details {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.work-item-body summary {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    cursor: pointer;
    font-weight: 900;
    color: var(--green-900);
    padding: 8px 12px 8px 8px;
    border: 1px solid #cfe9c3;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f2faee);
    box-shadow: 0 8px 18px rgba(24, 61, 41, .06);
    list-style: none;
}

.work-item-body summary::-webkit-details-marker {
    display: none;
}

.work-item-action-panel > details > summary {
    position: static;
}

.work-action-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: var(--white);
    background: var(--green-700);
    font-size: 13px;
    line-height: 1;
}

.work-item-body details[open] > summary {
    border-color: var(--green-700);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(24, 133, 54, .12);
}

.work-item-body form,
.work-final-review form,
.work-pad-main .form-panel form {
    display: grid;
    gap: 12px;
}

.work-modern-form {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid #d5ebca;
    border-radius: 8px;
    background: #fbfef9;
}

.work-modern-form label {
    display: grid;
    gap: 6px;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 900;
}

.work-modern-form input,
.work-modern-form select,
.work-modern-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cfe6c5;
    border-radius: 8px;
    color: #17251b;
    background: var(--white);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.work-modern-form textarea {
    min-height: 82px;
    resize: vertical;
}

.work-modern-form input:focus,
.work-modern-form select:focus,
.work-modern-form textarea:focus {
    border-color: var(--green-700);
    outline: 3px solid rgba(24, 133, 54, .14);
}

.work-modern-form .button {
    min-height: 46px;
    border-radius: 8px;
}

.work-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.work-final-review {
    position: static;
    padding: 12px;
}

.work-final-review h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.work-progress-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin: 0;
}

.work-progress-facts div {
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid #e2efd9;
    border-radius: 8px;
    background: #fbfef9;
}

.work-progress-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.work-progress-facts dd {
    margin: 0;
    color: var(--green-900);
    font-size: 16px;
    font-weight: 900;
}

.work-filters .inline-actions {
    align-items: end;
}

.work-pad-substitution-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dcebd5;
    border-radius: 8px;
    background: #fbfef9;
}

.work-pad-substitution-card small {
    display: block;
    color: var(--muted);
}

@media (max-width: 980px) {
    .work-pad-shell {
        grid-template-columns: 1fr;
    }
    .work-pad-sidebar {
        position: static;
        padding: 14px;
    }
    .work-pad-menu[open] nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .work-pad-sidebar a,
    .work-pad-sidebar .link-button {
        justify-content: center;
        text-align: center;
        font-size: 13px;
    }
    .work-pad-main {
        padding: 14px;
    }
}

@media (max-width: 680px) {
    .work-pad-main {
        padding-bottom: 170px;
    }
    .work-pad-menu summary {
        grid-template-columns: 42px minmax(0, 1fr) 34px;
        min-height: 54px;
        padding: 4px;
    }
    .work-menu-overview {
        grid-template-columns: 1fr;
    }
    .work-location-select summary {
        grid-template-columns: 1fr;
        gap: 2px;
        min-height: 44px;
        padding: 10px 12px;
    }
    .work-location-select summary strong {
        text-align: left;
    }
    .work-location-options {
        grid-template-columns: 1fr;
    }
    .work-pad-menu[open] nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .work-pad-menu[open] .office-sidebar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .work-task-card {
        grid-template-columns: 1fr;
    }
    .work-task-actions {
        justify-content: stretch;
    }
    .work-task-actions .button {
        width: 100%;
    }
    .work-item-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .work-item-accordion {
        grid-template-columns: 1fr;
    }
    .work-item-card > img,
    .work-item-accordion > summary > img {
        width: 72px;
        height: 72px;
    }
    .work-item-accordion > summary {
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .work-item-title-row {
        grid-template-columns: minmax(0, 1fr) 46px;
    }
    .work-bought-button {
        min-width: 126px;
        min-height: 40px;
        font-size: 13px;
    }
    .work-form-grid {
        grid-template-columns: 1fr;
    }
    .work-progress-facts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        overflow: visible;
        padding-bottom: 0;
    }
    .work-final-review {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 40;
        display: grid;
        gap: 6px;
        padding: 8px;
        border: 1px solid #bfe6ac;
        border-radius: 12px;
        box-shadow: 0 18px 42px rgba(9, 46, 25, .22);
    }
    .work-final-review h2 {
        margin: 0;
        font-size: 14px;
    }
    .work-progress-facts div {
        min-width: 0;
        padding: 5px 6px;
    }
    .work-progress-facts dt {
        font-size: 9px;
        line-height: 1.15;
        white-space: normal;
    }
    .work-progress-facts dd {
        font-size: 12px;
        line-height: 1.15;
    }
    .work-final-review form .button {
        min-height: 38px;
        font-size: 12px;
    }
}

@media (max-width: 1100px) {
    .admin-user-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .admin-user-metrics div {
        border-bottom: 1px solid var(--line);
    }
    .admin-user-toolbar {
        display: block;
    }
    .admin-search-wrap {
        grid-template-columns: minmax(0, 1fr) 42px;
    }
    .role-request-row {
        grid-template-columns: 40px minmax(180px, 1fr) minmax(220px, 1fr);
    }
    .review-profile-button {
        margin-top: 4px;
    }
    .request-actions {
        grid-column: 2 / -1;
    }
    .admin-user-summary {
        grid-template-columns: 20px 40px minmax(170px, 1.4fr) minmax(150px, 1fr) auto auto 24px;
    }
    .last-activity {
        display: none;
    }
    .admin-user-details {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .admin-user-details section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .admin-users-shell {
        padding: 18px 12px 28px;
    }
    .admin-users-head {
        display: grid;
        gap: 12px;
        align-items: start;
    }
    .admin-users-back {
        justify-self: start;
    }
    .admin-user-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-user-metrics div {
        min-height: 54px;
        padding: 10px;
    }
    .admin-user-toolbar {
        top: 58px;
        padding: 8px;
    }
    .admin-search-wrap {
        grid-template-columns: minmax(0, 1fr) 40px;
    }
    .admin-filter-button {
        width: 40px;
        height: 40px;
    }
    .admin-filter-popover {
        right: 8px;
        left: 8px;
        width: auto;
    }
    .role-request-row {
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: start;
    }
    .role-request-row .avatar {
        width: 34px;
        height: 34px;
    }
    .request-meta,
    .request-actions {
        grid-column: 2;
    }
    .request-actions {
        grid-template-columns: 1fr auto auto;
    }
    .admin-profile-modal {
        align-items: end;
        padding: 10px;
    }
    .admin-profile-modal-panel {
        width: 100%;
        max-height: calc(100vh - 20px);
    }
    .admin-profile-modal-panel > header {
        padding: 12px;
    }
    .admin-profile-modal-body {
        padding: 12px;
    }
    .admin-modal-hero,
    .admin-modal-business-body > header {
        display: grid;
        align-items: start;
    }
    .admin-modal-grid,
    .admin-modal-grid.three {
        grid-template-columns: 1fr;
    }
    .admin-modal-business {
        grid-template-columns: 1fr;
    }
    .admin-modal-business > img {
        min-height: 170px;
        max-height: 220px;
    }
    .admin-modal-business-body > header .inline-actions,
    .admin-modal-business-body > header .button,
    .admin-modal-link-row .button {
        width: 100%;
    }
    .admin-user-summary {
        grid-template-columns: 38px minmax(0, 1fr) 22px;
        gap: 8px;
        min-height: 66px;
        padding: 10px;
    }
    .admin-user-summary > .chevron {
        grid-column: 3;
        grid-row: 1;
    }
    .admin-user-summary > .avatar {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .user-identity {
        grid-column: 2;
    }
    .role-inline {
        grid-column: 2 / 4;
        font-size: 12px;
    }
    .status-pill.compact {
        grid-row: 3;
        justify-self: start;
    }
    .status-pill.compact[data-user-status] {
        grid-column: 2;
    }
    .status-pill.compact[data-user-verification] {
        grid-column: 3;
        justify-self: end;
    }
    .overflow-dot {
        display: none;
    }
    .admin-user-details {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    .admin-user-details section:first-child {
        grid-column: auto;
    }
    .compact-definition-list div {
        grid-template-columns: 78px minmax(0, 1fr);
    }
    .account-control-grid .button,
    .account-control-grid .action-menu {
        width: auto;
    }
    .compact-actions[open] > div {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
    }
    .admin-users-pagination,
    .admin-users-pagination .inline-actions {
        display: grid;
        justify-items: stretch;
    }
}

@media (max-width: 760px) {
    .office-settings-workspace {
        max-width: 100%;
        padding-bottom: 84px;
    }
    .office-settings-sticky {
        position: static;
        display: grid;
        padding: 16px;
    }
    .office-settings-sticky > .button {
        display: none;
    }
    .office-settings-tabs {
        border-radius: 12px;
        justify-content: flex-start;
    }
    .office-settings-card {
        padding: 16px;
        border-radius: 12px;
    }
    .settings-field-grid,
    .account-status-summary,
    .qr-upload-card,
    .company-branding-grid,
    .public-profile-preview {
        grid-template-columns: 1fr;
    }
    .profile-logo-preview {
        width: 88px;
    }
    .visibility-checks {
        display: grid;
        gap: 6px;
    }
    .toggle-setting-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .toggle-setting-row .toggle-switch {
        grid-column: 1;
    }
    .toggle-setting-row > span:last-of-type {
        grid-column: 2;
    }
    .closure-helper {
        display: grid;
    }
    .office-settings-mobile-save {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 70;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 12px 16px;
        border-top: 1px solid #dfeadd;
        background: rgba(255,255,255,.96);
        box-shadow: 0 -10px 24px rgba(23, 32, 26, .1);
    }
    .office-settings-mobile-save .button {
        min-height: 44px;
    }
    .office-settings-mobile-save .unsaved-indicator,
    .office-settings-mobile-save [data-unsaved-indicator] {
        margin: 0;
    }
}

@media (max-width: 460px) {
    .admin-user-metrics {
        grid-template-columns: 1fr;
    }
    .admin-user-metrics div {
        border-right: 0;
    }
    .admin-user-toolbar {
        display: block;
    }
    .request-actions {
        grid-template-columns: 1fr 1fr;
    }
    .request-actions input {
        grid-column: 1 / -1;
    }
    .status-pill.compact[data-user-status],
    .status-pill.compact[data-user-verification] {
        grid-column: 2 / 4;
        justify-self: start;
    }
    .status-pill.compact[data-user-verification] {
        margin-left: 88px;
    }
}

.admin-user-metrics {
    gap: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
}
.admin-user-metrics div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
}
.admin-user-metrics div:nth-child(1) {
    border-color: #cde9d0;
    background: #f0fbf1;
}
.admin-user-metrics div:nth-child(2) {
    border-color: #f2ddb0;
    background: #fff8e8;
}
.admin-user-metrics div:nth-child(3) {
    border-color: #bfe3d5;
    background: #ecfbf5;
}
.admin-user-metrics div:nth-child(4) {
    border-color: #f4cdbf;
    background: #fff1ec;
}
.admin-user-metrics div:nth-child(5) {
    border-color: #d6d2f4;
    background: #f4f2ff;
}

@media (max-width: 760px) {
    .admin-user-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
        margin-bottom: 14px;
    }
    .admin-user-metrics div {
        aspect-ratio: 1 / 1;
        min-height: 0;
        justify-items: center;
        align-content: center;
        gap: 3px;
        padding: 4px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        text-align: center;
    }
    .admin-user-metrics span {
        max-width: 100%;
        color: #536258;
        font-size: 7px;
        font-weight: 800;
        line-height: 1.05;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }
    .admin-user-metrics strong {
        font-size: 18px;
        line-height: 1;
    }
}

@media (max-width: 380px) {
    .admin-user-metrics {
        gap: 4px;
    }
    .admin-user-metrics div {
        padding: 3px;
    }
    .admin-user-metrics span {
        font-size: 6.5px;
    }
    .admin-user-metrics strong {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .notification-alert-intro,
    .alert-device-list article {
        align-items: stretch;
        flex-direction: column;
    }
    .notification-alert-intro .button,
    .alert-device-list .button {
        width: 100%;
    }
    .alert-admin-grid {
        grid-template-columns: 1fr;
    }
    .qumpra-alert-toast {
        display: grid;
    }
    .qumpra-alert-toast .button {
        width: 100%;
    }
}

/* Vendor Office */
.vendor-office-drawer-state {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}
.vendor-office-shell .office-topbar h1 { margin-bottom: 4px; }
.vendor-office-shell {
    transition: grid-template-columns .22s ease;
}
.vendor-office-drawer-state:checked + .vendor-office-shell {
    grid-template-columns: 76px minmax(0, 1fr);
}
.vendor-office-drawer-state:checked + .vendor-office-shell .office-brand {
    justify-content: center;
}
.vendor-office-drawer-state:checked + .vendor-office-shell .office-brand-copy,
.vendor-office-drawer-state:checked + .vendor-office-shell .office-nav-label {
    display: none;
}
.vendor-office-drawer-state:checked + .vendor-office-shell .market-office-sidebar a,
.vendor-office-drawer-state:checked + .vendor-office-shell .market-office-sidebar .link-button {
    justify-content: center;
    padding-inline: 0.35rem;
}
.vendor-office-drawer-scrim {
    display: none;
}
.vendor-office-sidebar {
    transition: transform .22s ease, width .22s ease, box-shadow .22s ease;
}
.vendor-office-topbar {
    position: relative;
}
.vendor-office-top-toggle {
    display: none;
    flex: 0 0 42px;
    margin-top: 2px;
}
.vendor-office-drawer-toggle span,
.vendor-office-top-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.vendor-office-drawer-toggle span::before,
.vendor-office-drawer-toggle span::after,
.vendor-office-top-toggle span::before,
.vendor-office-top-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.vendor-office-drawer-toggle span::before,
.vendor-office-top-toggle span::before { top: -6px; }
.vendor-office-drawer-toggle span::after,
.vendor-office-top-toggle span::after { top: 6px; }
.vendor-office-sidebar .office-brand {
    justify-content: space-between;
}
.vendor-office-sidebar .link-button .office-nav-icon {
    flex: 0 0 30px;
}
.vendor-office-topbar {
    gap: 0.75rem;
    align-items: center;
}
.vendor-office-kicker {
    display: flex;
    align-items: center;
    min-width: max-content;
}
.vendor-identity-panel {
    flex: 1;
}
.vendor-identity-panel .market-selector {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: min(360px, 100%);
}
.vendor-identity-panel .market-selector label,
.vendor-identity-panel .market-selector span {
    margin: 0;
    white-space: nowrap;
}
.vendor-identity-panel .market-selector select,
.vendor-identity-panel .market-selector.static {
    flex: 1;
    min-width: 180px;
}
.vendor-office-shell input,
.vendor-office-shell select,
.vendor-office-shell textarea,
.vendor-office-shell option {
    font-weight: 400;
}
.vendor-office-shell input::placeholder,
.vendor-office-shell textarea::placeholder {
    font-weight: 400;
}
.vendor-shop-request-panel {
    margin-top: 16px;
}
.vendor-shop-request-form {
    display: grid;
    gap: 14px;
}
.vendor-package-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.vendor-package-choice {
    position: relative;
    display: block;
    min-height: 142px;
    border: 1px solid #dbead7;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}
.vendor-package-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vendor-package-choice:has(input:checked) {
    border-color: #9fd88e;
    background: #f2faee;
    box-shadow: inset 0 0 0 1px rgba(13, 95, 42, .1);
}
.vendor-package-choice strong,
.vendor-package-choice em,
.vendor-package-choice small {
    display: block;
}
.vendor-package-choice strong {
    color: var(--green-900);
    font-size: 15px;
}
.vendor-package-choice em {
    margin: 4px 0 8px;
    color: var(--ink);
    font-style: normal;
    font-weight: 900;
}
.vendor-package-choice small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.vendor-request-history {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.vendor-request-history h3 {
    margin: 0;
    color: var(--green-900);
    font-size: 16px;
}
.vendor-request-history div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e6efe3;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fbfdfb;
}
.vendor-request-history span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.vendor-settings-panel {
    scroll-margin-top: 110px;
}
.vendor-package-editor {
    display: grid;
    gap: 12px;
}
.vendor-package-row {
    display: grid;
    gap: 10px;
    border: 1px solid #dfeadd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.vendor-package-row.is-empty-template {
    background: #fbfdfb;
}
.vendor-package-row-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.vendor-package-row-head strong {
    color: var(--green-900);
}
.compact-toggle {
    min-height: auto;
}
.vendor-office-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f7d77a;
    border-radius: 8px;
    color: #5a3a00;
    background: #fff6d8;
}
.vendor-office-alert span { color: #665018; }
.vendor-summary-grid .office-metric-card { min-height: 118px; }
.office-summary-grid a.office-metric-card { display: flex; color: inherit; }
.quota-card { gap: 8px; }
.quota-card small { color: var(--muted); font-weight: 700; }
.quota-card.warning { background: #fff8df; }
.quota-card.limit { background: #fff0ec; }
.quota-meter {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 95, 42, .12);
}
.quota-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-700), var(--amber));
}
.quota-card.limit .quota-meter i { background: var(--coral); }
.inline-quota { margin-bottom: 16px; padding: 12px; border-radius: 8px; background: var(--wash); }
.vendor-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}
.vendor-order-mini-list,
.vendor-packing-grid,
.vendor-pack-items {
    display: grid;
    gap: 12px;
}
.vendor-mini-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--wash);
}
.vendor-mini-order strong,
.vendor-mini-order small { display: block; }
.vendor-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    background: #f8fbf6;
}
.vendor-reject-form { grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) auto; }
.status-pill.danger { color: #8c2718; background: #fff0ec; }
.catalog-candidate-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: var(--wash);
}
.vendor-own-product-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.vendor-inventory-actions {
    display: grid;
    gap: 12px;
}
.inventory-head-panel .section-heading h2 {
    color: var(--green-700);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}
.inventory-head-panel .section-heading p {
    color: var(--muted);
    font-size: 15px;
}
.inventory-filter-form {
    position: relative;
}
.inventory-filter-search-row,
.inventory-filter-modal,
.inventory-filter-sheet {
    display: contents;
}
.inventory-mobile-filter-button,
.inventory-filter-scrim,
.inventory-filter-sheet header {
    display: none;
}
.inventory-tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.inventory-tool-panel .section-heading h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.15;
}
.vendor-inventory-actions.has-tool-controller .inventory-tool-panel {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height .32s ease, opacity .18s ease, transform .22s ease, padding .22s ease, margin .22s ease, border-width .22s ease;
}
.vendor-inventory-actions.has-tool-controller .inventory-tool-panel.is-open {
    max-height: 9000px;
    margin: initial;
    padding-top: 20px;
    padding-bottom: 20px;
    border-width: 1px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.vendor-catalog-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
}
.vendor-catalog-accordion,
.vendor-inventory-accordion {
    display: grid;
    gap: 10px;
}
.vendor-catalog-item,
.inventory-listing-item {
    border: 1px solid #dcebd7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23, 32, 26, .035);
    overflow: hidden;
}
.vendor-catalog-item::details-content,
.inventory-listing-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .28s ease, content-visibility .28s allow-discrete;
}
.vendor-catalog-item[open]::details-content,
.inventory-listing-item[open]::details-content {
    block-size: auto;
}
.vendor-catalog-item summary,
.inventory-listing-item summary {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(110px, auto) minmax(120px, auto);
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.inventory-listing-item summary {
    grid-template-columns: 28px minmax(240px, 1fr) minmax(150px, auto);
}
.inventory-head-panel .section-heading h2 {
    color: var(--green-700);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.inventory-listing-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
    color: var(--muted);
    font-size: 0.9rem;
}
.inventory-listing-meta > span:first-child {
    color: var(--green-700);
    font-weight: 700;
}
.vendor-catalog-item summary::-webkit-details-marker,
.inventory-listing-item summary::-webkit-details-marker {
    display: none;
}
.vendor-catalog-item[open] summary,
.inventory-listing-item[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f7fcf4;
}
.catalog-summary-name,
.inventory-listing-item summary strong {
    color: var(--green-900);
    font-weight: 400;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.25;
}
.vendor-inventory-accordion .table-product {
    min-width: 0;
    align-items: flex-start;
}
.vendor-catalog-item .status-pill,
.inventory-listing-item .status-pill {
    font-weight: 400;
}
.vendor-catalog-item-body {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) minmax(260px, .9fr);
    gap: 14px;
    align-items: start;
    padding: 14px;
}
.vendor-catalog-item-body p {
    margin: 8px 0 0;
    color: var(--muted);
}
.vendor-catalog-item-body strong,
.vendor-inventory-accordion .table-product strong {
    font-weight: 400;
}
.vendor-own-product-form input,
.vendor-own-product-form textarea,
.vendor-own-product-form select,
.vendor-own-product-form .rte-editor,
.catalog-add-form input,
.catalog-add-form select,
.inventory-listing-edit input,
.inventory-listing-edit select {
    font-weight: 400;
}
.vendor-own-product-form input::placeholder,
.vendor-own-product-form textarea::placeholder,
.catalog-add-form input::placeholder,
.inventory-listing-edit input::placeholder {
    font-weight: 400;
}
.vendor-own-product-form .rte-field label {
    font-weight: 800;
}
.catalog-add-form,
.inventory-report-form {
    display: grid;
    gap: 10px;
}
.inventory-listing-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
    gap: 14px;
    padding: 14px;
}
.inventory-listing-edit {
    min-width: 0;
}
.inventory-listing-edit label,
.inventory-report-form label {
    display: grid;
    gap: 5px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.inventory-listing-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vendor-bulk-accordion {
    margin-top: 12px;
    border: 1px solid #dcebd7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 61, 35, .055);
    overflow: hidden;
}
.vendor-bulk-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    align-items: center;
    min-height: 54px;
    padding: 12px 14px;
    color: var(--green-900);
    cursor: pointer;
    list-style: none;
}
.vendor-bulk-accordion summary::-webkit-details-marker {
    display: none;
}
.vendor-bulk-accordion summary span {
    font-weight: 800;
}
.vendor-bulk-accordion summary small {
    grid-column: 1;
    color: var(--muted);
    font-size: 12px;
}
.vendor-bulk-accordion summary b {
    grid-row: 1 / 3;
    grid-column: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #eef9ea;
    color: var(--green-700);
    transition: transform .18s ease;
}
.vendor-bulk-accordion[open] summary b {
    transform: rotate(45deg);
}
.vendor-bulk-accordion .bulk-form {
    padding: 0 14px 14px;
}
.bulk-update-grid {
    display: grid;
    grid-template-columns: minmax(160px, .65fr) minmax(300px, 1.05fr) minmax(360px, 1.25fr);
    gap: 12px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid #dfeadd;
    border-radius: 10px;
    background: #fbfdf9;
}
.bulk-update-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e3eedf;
    border-radius: 10px;
    background: #fff;
}
.bulk-update-kicker {
    color: var(--green-700);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bulk-update-card label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 800;
}
.bulk-update-card select,
.bulk-update-card input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 400;
}
.bulk-update-fields {
    display: grid;
    gap: 10px;
}
.bulk-update-fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bulk-update-fields.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modern-check-row {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: var(--ink) !important;
}
.modern-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: var(--green-700);
}
.bulk-update-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}
.bulk-update-submit .button {
    min-height: 42px;
}
.pricing-recalculate-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dfeadd;
    border-radius: 10px;
    background: #fbfdf9;
}
.pricing-recalculate-panel span,
.pricing-recalculate-panel strong,
.pricing-recalculate-panel small {
    display: block;
}
.pricing-recalculate-panel strong {
    color: var(--green-900);
    font-size: 14px;
}
.pricing-recalculate-panel small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}
@media (max-width: 1100px) {
    .bulk-update-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .bulk-update-fields.two,
    .bulk-update-fields.three {
        grid-template-columns: 1fr;
    }
    .bulk-update-submit,
    .pricing-recalculate-panel {
        display: grid;
        justify-content: stretch;
    }
    .bulk-update-submit .button,
    .pricing-recalculate-panel .button {
        width: 100%;
    }
}
@keyframes inventoryFilterIn {
    to {
        transform: translateY(0);
    }
}
.inline-listing-edit {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
    min-width: 520px;
}
.inline-listing-edit input,
.inline-listing-edit select { min-width: 0; }
.packing-desk-head .packing-progress-grid { margin-top: 14px; }
.pack-item-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}
.pack-item-head h3 { margin: 4px 0; }
.pack-item-head p { margin: 0; color: var(--muted); }
.pack-item-forms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.pack-item-form {
    padding: 12px;
    border-radius: 8px;
    background: #f8fbf6;
}
.pack-item-form strong { display: block; margin-bottom: 8px; }
.compact-unavailable-form {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vendor-ready-bar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    color: var(--white);
    background: #102416;
    box-shadow: var(--shadow);
}
.vendor-ready-bar span { display: block; color: rgba(255,255,255,.76); }
.vendor-ready-bar .office-shopping-ready-stats {
    display: flex;
    color: rgba(255,255,255,.82);
}
.vendor-ready-bar .office-shopping-ready-stats > span {
    display: inline-flex;
}
.vendor-ready-bar .office-shopping-ready-stats > span > span {
    display: inline;
    color: inherit;
}

@media (max-width: 860px) {
    .office-filter-bar,
    .fulfillment-order-head,
    .fulfillment-facts,
    .fulfillment-action-panel {
        grid-template-columns: 1fr;
    }
    .office-order-accordion .fulfillment-order-head {
        grid-template-columns: minmax(0, 1fr) auto 32px;
    }
    .office-order-accordion .fulfillment-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .order-document-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .order-card-actions .order-document-actions .button {
        width: 100%;
        min-width: 0;
        padding-inline: 4px;
        font-size: 10px;
    }
    .fulfillment-action-row {
        justify-content: stretch;
    }
    .fulfillment-action-row form,
    .fulfillment-action-row .button,
    .order-card-actions .inline-order-form,
    .order-card-actions .button {
        width: 100%;
    }
    .fulfillment-order-card .order-total-block {
        align-items: flex-start;
        text-align: left;
    }
    .inline-unavailable {
        grid-template-columns: 1fr;
    }
    .office-shopping-item-head .table-thumb {
        width: 44px;
        height: 44px;
    }
    .office-shopping-toggle {
        justify-self: start;
    }
    .office-settings-form {
        padding: 16px;
    }
    .office-settings-form .office-settings-head {
        display: grid;
        gap: 14px;
        align-items: start;
    }
    .office-settings-form .office-settings-head .button {
        width: 100%;
    }
    .office-settings-form .form-grid.two,
    .office-payment-status-grid,
    .seller-account-detail-grid {
        grid-template-columns: 1fr;
    }
    .office-settings-section {
        padding: 16px;
    }
    .seller-account-review-card {
        padding: 16px;
    }
    .vendor-office-alert,
    .vendor-mini-order,
    .vendor-ready-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .office-shopping-ready .office-shopping-ready-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .vendor-package-choice-grid {
        grid-template-columns: 1fr;
    }
    .vendor-catalog-item summary,
    .inventory-listing-item summary,
    .vendor-catalog-item-body,
    .inventory-listing-body {
        grid-template-columns: 1fr;
    }
    .inventory-head-panel .section-heading h2 {
        font-size: 18px;
    }
    .inventory-listing-item summary {
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: start;
    }
    .inventory-listing-item summary .table-product,
    .inventory-listing-meta {
        min-width: 0;
    }
    .inventory-listing-meta {
        grid-column: 2;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
        white-space: nowrap;
    }
    .inventory-listing-meta .status-pill {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .inventory-filter-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .inventory-filter-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
    }
    .inventory-filter-search-row input[type="search"] {
        width: 100%;
        min-width: 0;
    }
    .inventory-mobile-filter-button {
        position: relative;
        display: grid;
        min-width: 44px;
        min-height: 44px;
        place-items: center;
        border: 1px solid #cfe3cc;
        border-radius: 8px;
        background: #fff;
        color: var(--green-700);
    }
    .inventory-mobile-filter-button span,
    .inventory-mobile-filter-button span::before,
    .inventory-mobile-filter-button span::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }
    .inventory-mobile-filter-button span {
        position: relative;
    }
    .inventory-mobile-filter-button span::before,
    .inventory-mobile-filter-button span::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .inventory-mobile-filter-button span::before {
        top: -6px;
        width: 13px;
    }
    .inventory-mobile-filter-button span::after {
        top: 6px;
        width: 10px;
    }
    .inventory-mobile-filter-button b {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .inventory-filter-modal {
        position: fixed;
        inset: 0;
        z-index: 180;
        display: none;
        align-items: end;
    }
    .inventory-filter-modal.is-open {
        display: grid;
    }
    .inventory-filter-scrim {
        position: absolute;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(8, 32, 17, .46);
        backdrop-filter: blur(2px);
    }
    .inventory-filter-sheet {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 9px;
        width: 100%;
        padding: 12px;
        border-radius: 14px 14px 0 0;
        background: #fff;
        box-shadow: 0 -16px 40px rgba(8, 32, 17, .18);
        transform: translateY(10px);
        animation: inventoryFilterIn .16s ease forwards;
    }
    .inventory-filter-sheet header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .inventory-filter-sheet header strong {
        color: var(--green-900);
        font-weight: 800;
    }
    .inventory-filter-sheet header button {
        min-height: 34px;
        border: 1px solid #dcebd7;
        border-radius: 8px;
        background: #fff;
        color: var(--green-700);
    }
    .inventory-filter-sheet select,
    .inventory-filter-sheet .button {
        width: 100%;
    }
    .inventory-tool-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .inventory-tool-buttons .button {
        min-width: 0;
        width: 100%;
        padding-inline: 8px;
        font-size: 12px;
        white-space: normal;
    }
    .vendor-bulk-accordion .bulk-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .vendor-bulk-accordion .bulk-actions .button {
        width: 100%;
    }
    .vendor-catalog-item-body .catalog-candidate-image {
        width: min(220px, 100%);
    }
    .vendor-request-history div,
    .vendor-package-row-head {
        display: grid;
    }
    .vendor-reject-form,
    .inline-listing-edit {
        grid-template-columns: 1fr;
        min-width: 0;
    }
    .pack-item-head {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .pack-item-head > strong { grid-column: 2; }
    .pack-item-forms { grid-template-columns: 1fr; }
    .compact-unavailable-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 1080px) {
    .vendor-office-shell,
    .vendor-office-drawer-state:checked + .vendor-office-shell {
        display: block;
        width: min(100%, calc(100% - 1rem));
        margin-top: .75rem;
    }
    .vendor-office-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 130;
        width: min(320px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        height: 100vh;
        overflow-y: auto;
        border-radius: 0 8px 8px 0;
        transform: translateX(-105%);
    }
    .vendor-office-drawer-state:checked + .vendor-office-shell .vendor-office-sidebar {
        transform: translateX(0);
    }
    .vendor-office-shell.is-mobile-open .vendor-office-sidebar {
        transform: translateX(0);
    }
    .vendor-office-drawer-state:checked + .vendor-office-shell .office-brand-copy,
    .vendor-office-drawer-state:checked + .vendor-office-shell .office-nav-label,
    .vendor-office-shell.is-mobile-open .office-brand-copy,
    .vendor-office-shell.is-mobile-open .office-nav-label {
        display: grid;
    }
    .vendor-office-drawer-state:checked + .vendor-office-shell .market-office-sidebar a,
    .vendor-office-drawer-state:checked + .vendor-office-shell .market-office-sidebar .link-button,
    .vendor-office-shell.is-mobile-open .market-office-sidebar a,
    .vendor-office-shell.is-mobile-open .market-office-sidebar .link-button {
        justify-content: flex-start;
        padding: 0.65rem 0.7rem;
    }
    .vendor-office-sidebar nav {
        grid-template-columns: 1fr;
    }
    .vendor-office-drawer-state:checked + .vendor-office-shell .vendor-office-drawer-scrim {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: block;
        background: rgba(8, 32, 17, .42);
        backdrop-filter: blur(2px);
    }
    .vendor-office-shell.is-mobile-open .vendor-office-drawer-scrim {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: block;
        background: rgba(8, 32, 17, .42);
        backdrop-filter: blur(2px);
    }
    .vendor-office-topbar {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
    }
    .vendor-office-kicker {
        min-height: 42px;
    }
    .vendor-office-topbar .office-topbar-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .vendor-identity-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .vendor-identity-panel .market-selector {
        grid-column: 1 / -1;
        min-width: 0;
    }
    .vendor-identity-panel .market-selector select,
    .vendor-identity-panel .market-selector.static {
        min-width: 0;
    }
    .vendor-identity-panel .button {
        width: 100%;
    }
    .vendor-office-top-toggle {
        display: grid;
    }
}

.admin-home-head {
    align-items: center;
    padding: 24px clamp(16px, 3vw, 40px) 18px;
}
.admin-home-head .admin-title-row {
    align-items: center;
}
.admin-home-head h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.02;
}
.admin-home-head p {
    margin-top: 5px;
    font-size: 14px;
}
.admin-home-head .pill {
    min-height: 22px;
    padding: 4px 10px;
    font-size: 11px;
}
.admin-home-head .inline-actions .button {
    min-height: 38px;
    padding: 8px 14px;
}
.admin-home-shell {
    gap: 14px;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px) 34px;
}
.admin-home-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.admin-home-metrics .admin-metric-card {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 6px 10px;
    padding: 14px;
    overflow: hidden;
}
.admin-home-metrics .admin-metric-card:nth-child(1) {
    border-color: #c9dcff;
    background: #f2f7ff;
}
.admin-home-metrics .admin-metric-card:nth-child(2) {
    border-color: #bfe8cf;
    background: #effbf4;
}
.admin-home-metrics .admin-metric-card:nth-child(3) {
    border-color: #f3dbad;
    background: #fff8e8;
}
.admin-home-metrics .admin-metric-card:nth-child(4) {
    border-color: #dfccfa;
    background: #f7f1ff;
}
.admin-home-metrics .metric-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    align-self: start;
    opacity: .92;
}
.admin-home-metrics .admin-metric-card small {
    position: static;
    grid-column: 1;
    justify-self: start;
    min-height: 20px;
    padding: 2px 7px;
    color: var(--green-900);
    background: rgba(255,255,255,.65);
    font-size: 11px;
    line-height: 1.1;
}
.admin-home-metrics .admin-metric-card strong {
    grid-column: 1;
    align-self: start;
    color: #52685a;
    font-size: 12px;
    line-height: 1.15;
}
.admin-home-metrics .admin-metric-card b {
    grid-column: 1;
    color: var(--green-900);
    font-size: 28px;
}
.admin-home-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.admin-home-signals .admin-signal-card {
    min-height: 86px;
    gap: 4px;
    padding: 14px 16px;
    border: 0;
    box-shadow: 0 8px 20px rgba(23, 32, 26, .08);
}
.admin-home-signals .admin-signal-card small {
    font-size: 11px;
}
.admin-home-signals .admin-signal-card strong {
    font-size: 28px;
}
.admin-home-signals .admin-signal-card span {
    font-size: 13px;
    line-height: 1.25;
}
.admin-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: 14px;
}
.admin-home-operations,
.admin-home-catalog {
    padding: 18px;
}
.admin-home-operations .section-heading,
.admin-home-catalog .section-heading {
    margin-bottom: 12px;
}
.admin-home-operations .section-heading h2,
.admin-home-catalog .section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}
.admin-home-operations .section-heading p,
.admin-home-catalog .section-heading p {
    margin-top: 4px;
    font-size: 13px;
}
.admin-home-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}
.admin-home-links .dash-tile {
    min-height: 92px;
    gap: 8px;
    align-content: start;
    padding: 13px;
    box-shadow: 0 6px 16px rgba(23, 32, 26, .04);
}
.admin-home-links .dash-tile strong {
    font-size: 15px;
    line-height: 1.2;
}
.admin-home-links .dash-tile span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.admin-home-attention {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 0;
    padding: 18px;
}
.admin-home-attention h2 {
    font-size: 20px;
}
.admin-home-attention p {
    font-size: 13px;
}
.admin-home-attention .button {
    min-height: 38px;
}
.admin-home-catalog .admin-product-table table {
    min-width: 680px;
}
.admin-home-catalog th,
.admin-home-catalog td {
    padding: 10px 12px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .admin-home-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .admin-home-layout {
        grid-template-columns: 1fr;
    }
    .admin-home-attention {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
    .admin-home-attention .button {
        width: auto;
        min-width: 170px;
    }
}

@media (max-width: 760px) {
    .admin-home-head {
        padding: 18px 12px 12px;
    }
    .admin-home-head .inline-actions {
        gap: 6px;
    }
    .admin-home-head .inline-actions .button {
        flex: 1 1 0;
        min-height: 36px;
        padding: 7px 9px;
        font-size: 12px;
    }
    .admin-home-shell {
        gap: 10px;
        padding: 0 12px 28px;
    }
    .admin-home-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }
    .admin-home-metrics .admin-metric-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        justify-items: center;
        align-content: center;
        gap: 3px;
        padding: 5px 3px;
        text-align: center;
    }
    .admin-home-metrics .metric-icon,
    .admin-home-metrics .admin-metric-card small {
        display: none;
    }
    .admin-home-metrics .admin-metric-card strong {
        grid-column: auto;
        max-width: 100%;
        color: #536258;
        font-size: 8px;
        font-weight: 900;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }
    .admin-home-metrics .admin-metric-card b {
        grid-column: auto;
        font-size: 20px;
        line-height: 1;
    }
    .admin-home-signals {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }
    .admin-home-signals .admin-signal-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        justify-items: center;
        align-content: center;
        gap: 3px;
        padding: 6px 4px;
        text-align: center;
    }
    .admin-home-signals .admin-signal-card small {
        font-size: 7.5px;
        line-height: 1.05;
    }
    .admin-home-signals .admin-signal-card strong {
        font-size: 18px;
    }
    .admin-home-signals .admin-signal-card span {
        display: none;
    }
    .admin-home-operations,
    .admin-home-catalog,
    .admin-home-attention {
        padding: 12px;
    }
    .admin-home-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .admin-home-links .dash-tile {
        min-height: 78px;
        padding: 10px;
    }
    .admin-home-links .dash-tile strong {
        font-size: 13px;
    }
    .admin-home-links .dash-tile span {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    .admin-home-attention {
        grid-template-columns: 1fr;
    }
    .admin-home-attention .button {
        width: 100%;
        min-width: 0;
    }
    .admin-home-catalog .admin-product-table table,
    .admin-home-catalog .admin-product-table tbody,
    .admin-home-catalog .admin-product-table tr,
    .admin-home-catalog .admin-product-table td {
        display: revert;
    }
    .admin-home-catalog .admin-product-table thead {
        display: table-header-group;
    }
    .admin-home-catalog .admin-product-table tr {
        border: 0;
        box-shadow: none;
    }
    .admin-home-catalog .admin-product-table td {
        border-bottom: 1px solid var(--line);
    }
    .admin-home-catalog .admin-product-table td::before {
        content: none;
    }
}

@media (max-width: 380px) {
    .admin-home-metrics {
        gap: 4px;
    }
    .admin-home-metrics .admin-metric-card strong {
        font-size: 7px;
    }
    .admin-home-metrics .admin-metric-card b {
        font-size: 18px;
    }
    .admin-home-links .dash-tile span {
        display: none;
    }
    .admin-home-links .dash-tile {
        min-height: 56px;
        align-content: center;
    }
}

/* Compact admin home correction layer. Keep this after earlier dashboard rules. */
.admin-home-head,
.admin-home-shell,
.admin-home-shell * {
    max-width: 100%;
}
.admin-home-shell {
    overflow-x: clip;
}
.admin-home-links {
    display: grid;
    gap: 7px;
}
.admin-operation-accordion {
    border: 1px solid #dfeade;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(23, 32, 26, .035);
    overflow: hidden;
}
.admin-operation-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--green-900);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}
.admin-operation-accordion summary::-webkit-details-marker {
    display: none;
}
.admin-operation-accordion summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-operation-accordion summary b {
    display: grid;
    place-items: center;
    transition: transform .16s ease;
}
.admin-operation-accordion[open] summary b {
    transform: rotate(90deg);
}
.admin-operation-accordion > div {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}
.admin-operation-accordion p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.admin-operation-accordion .button {
    justify-self: start;
}
.admin-home-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 clamp(16px, 3vw, 40px) 10px;
}
.admin-home-menu a {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 58px;
    align-content: center;
    padding: 9px 11px;
}
.admin-home-menu a strong,
.admin-home-menu a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-home-menu a strong {
    color: var(--green-900);
    font-size: 13px;
    line-height: 1.18;
    white-space: nowrap;
}
.admin-home-menu a span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.admin-home-shell > .admin-home-attention {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    min-height: 0;
}
.admin-home-shell > .admin-home-attention h2 {
    margin: 0;
}
.admin-home-shell > .admin-home-attention p {
    margin: 0;
}
.admin-home-shell > .admin-home-attention .button {
    width: auto;
    min-width: 180px;
    grid-row: 1 / span 2;
    grid-column: 2;
}

@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }
    .flash {
        margin: 8px 8px 0;
        padding: 9px 10px;
        font-size: 12px;
    }
    .admin-home-head {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 8px 10px;
        overflow: hidden;
    }
    .admin-home-head .admin-title-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
    }
    .admin-home-head .admin-menu-button {
        width: 28px;
        height: 28px;
        padding: 5px;
    }
    .admin-home-head h1 {
        font-size: 28px;
        line-height: 1;
        overflow-wrap: anywhere;
    }
    .admin-home-head p {
        font-size: 11px;
        line-height: 1.25;
    }
    .admin-home-head .inline-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .admin-home-head .inline-actions .button {
        width: 100%;
        min-width: 0;
        font-size: 11px;
        white-space: nowrap;
    }
    .admin-home-shell {
        gap: 8px;
        width: 100%;
        padding: 0 8px 22px;
        overflow-x: hidden;
    }
    .admin-home-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 0 8px 8px;
    }
    .admin-home-menu a {
        min-height: 36px;
        padding: 7px 8px;
    }
    .admin-home-menu a strong {
        font-size: 11px;
    }
    .admin-home-menu a span {
        display: none;
    }
    .admin-home-metrics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px;
        width: 100%;
    }
    .admin-home-metrics .admin-metric-card {
        width: auto;
        min-width: 0;
        min-height: 58px;
        aspect-ratio: auto;
        gap: 2px;
        padding: 5px 2px;
        border-radius: 7px;
        box-shadow: none;
    }
    .admin-home-metrics .admin-metric-card strong {
        display: block;
        min-width: 0;
        font-size: clamp(6px, 2vw, 8px);
        line-height: 1.08;
        letter-spacing: 0;
        text-align: center;
        white-space: normal;
    }
    .admin-home-metrics .admin-metric-card b {
        font-size: clamp(15px, 5vw, 20px);
    }
    .admin-home-signals {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px;
        width: 100%;
    }
    .admin-home-signals .admin-signal-card {
        width: auto;
        min-width: 0;
        min-height: 58px;
        aspect-ratio: auto;
        padding: 6px 3px;
        border-radius: 7px;
        box-shadow: none;
    }
    .admin-home-signals .admin-signal-card small {
        font-size: clamp(6px, 2vw, 8px);
        line-height: 1.05;
    }
    .admin-home-signals .admin-signal-card strong {
        font-size: clamp(15px, 5vw, 20px);
    }
    .admin-home-operations,
    .admin-home-attention,
    .admin-home-catalog {
        padding: 10px;
        border-radius: 8px;
    }
    .admin-home-operations .section-heading,
    .admin-home-catalog .section-heading {
        margin-bottom: 8px;
    }
    .admin-home-operations .section-heading h2,
    .admin-home-catalog .section-heading h2 {
        font-size: 22px;
        line-height: 1.05;
    }
    .admin-home-operations .section-heading p,
    .admin-home-catalog .section-heading p {
        font-size: 11px;
    }
    .admin-operation-accordion summary {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }
    .admin-home-attention {
        grid-template-columns: 1fr;
        gap: 7px;
        min-height: 0;
    }
    .admin-home-attention h2 {
        margin: 0;
        font-size: 17px;
    }
    .admin-home-attention p {
        margin: 0;
        font-size: 11px;
        line-height: 1.35;
    }
    .admin-home-attention .button {
        grid-row: auto;
        grid-column: auto;
        width: 100%;
        min-width: 0;
        min-height: 34px;
        font-size: 11px;
    }
    .admin-home-catalog .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }
    .admin-home-catalog .admin-product-table table,
    .admin-home-catalog .admin-product-table tbody {
        display: grid;
        min-width: 0;
        width: 100%;
        gap: 6px;
    }
    .admin-home-catalog .admin-product-table thead {
        display: none;
    }
    .admin-home-catalog .admin-product-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3px 8px;
        padding: 8px 9px;
        border: 1px solid #e3eee1;
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 3px 10px rgba(23, 32, 26, .035);
    }
    .admin-home-catalog .admin-product-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 11px;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-home-catalog .admin-product-table td::before {
        content: none;
    }
    .admin-home-catalog .admin-product-table td[data-label="Product"] {
        grid-column: 1 / -1;
        color: var(--ink);
        font-weight: 900;
    }
    .admin-home-catalog .admin-product-table td[data-label="Source"] {
        color: var(--muted);
    }
    .admin-home-catalog .admin-product-table td[data-label="Price"] {
        color: var(--green-900);
        font-weight: 900;
        text-align: right;
    }
    .admin-home-catalog .admin-product-table td[data-label="Status"] {
        grid-column: 1 / -1;
        width: max-content;
        max-width: 100%;
        padding: 2px 7px;
        border-radius: 999px;
        color: var(--green-900);
        background: #eef9e9;
        font-size: 10px;
        font-weight: 900;
    }
}

@media (max-width: 380px) {
    .admin-home-head h1 {
        font-size: 26px;
    }
    .admin-home-shell {
        padding-inline: 7px;
    }
    .admin-home-metrics,
    .admin-home-signals {
        gap: 3px;
    }
    .admin-home-metrics .admin-metric-card,
    .admin-home-signals .admin-signal-card {
        min-height: 54px;
    }
}
/* Qumpra Vendor POS */
.pos-surface .site-header,
.pos-surface .mobile-menu,
.pos-surface .page-share-strip,
.pos-surface .cart-conflict-panel,
.pos-surface .cart-toast-stack {
    display: none !important;
}

.pos-surface main {
    padding: 0;
}

.vendor-pos-shell {
    --pos-ink: #132018;
    --pos-muted: #637067;
    --pos-line: #dbe3dc;
    --pos-bg: #f6f8f4;
    --pos-panel: #ffffff;
    --pos-green: #188536;
    --pos-blue: #235f9f;
    --pos-amber: #b26a00;
    --pos-red: #b42318;
    min-height: 100vh;
    background: var(--pos-bg);
    color: var(--pos-ink);
}

.pos-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    min-height: 54px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--pos-line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.pos-shop {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.pos-logo {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--pos-green);
    color: #fff;
    font-weight: 800;
}

.pos-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-shop span:last-child {
    min-width: 0;
}

.pos-shop strong,
.pos-shop small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-shop strong {
    font-size: 14px;
}

.pos-shop small {
    color: var(--pos-muted);
    font-size: 11px;
}

.pos-status {
    display: none;
    align-items: center;
    gap: 5px;
    color: var(--pos-muted);
    font-size: 12px;
}

.pos-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pos-green);
}

.pos-header-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pos-header-actions a,
.pos-header-actions button,
.pos-header-actions select,
.pos-search button,
.pos-icon-button,
.pos-section-title button,
.pos-section-title a,
.pos-payment-tabs button,
.pos-denoms button,
.pos-bottom-cart,
.pos-complete,
.pos-close,
.pos-receipt-actions button,
.pos-receipt-actions select,
.pos-custom-item {
    min-height: 38px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pos-header-actions a,
.pos-header-actions button {
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    white-space: nowrap;
}

.pos-header-actions select {
    max-width: 170px;
    padding: 0 8px;
}

.pos-feedback {
    position: fixed;
    top: 58px;
    left: 10px;
    right: 10px;
    z-index: 80;
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--pos-line);
    background: #fff;
    box-shadow: 0 12px 35px rgba(19, 32, 24, .14);
    font-size: 13px;
    font-weight: 700;
}

.pos-feedback.show {
    display: block;
}

.pos-feedback[data-type="error"] {
    border-color: #f0aaa5;
    color: var(--pos-red);
}

.pos-feedback[data-type="warning"] {
    border-color: #ffd88a;
    color: var(--pos-amber);
}

.pos-workspace {
    display: grid;
    gap: 10px;
    padding: 10px 10px 90px;
}

.pos-register,
.pos-cart-panel,
.pos-panel-sheet,
.pos-empty {
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: var(--pos-panel);
}

.pos-register {
    min-width: 0;
    padding: 8px;
}

.pos-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
}

.pos-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}

.pos-search input,
.pos-customer-row input,
.pos-customer-row select,
.pos-adjustments input,
.pos-adjustments select,
.pos-payment input,
.pos-payment select,
.pos-payment textarea,
.pos-cart-item input,
.pos-cart-item select,
.pos-history-filters input,
.pos-history-filters select,
.pos-settings-form input,
.pos-settings-form select,
.pos-settings-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    font-size: 14px;
    padding: 7px 9px;
}

.pos-category-menu {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 8px 0;
    padding: 6px 8px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
}

.pos-category-menu span {
    color: var(--pos-muted);
    font-size: 12px;
    font-weight: 500;
}

.pos-category-menu select {
    width: 100%;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: var(--pos-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: 0;
}

.pos-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.pos-section-title h2,
.pos-section-title h3 {
    margin: 0;
    font-size: 14px;
}

.pos-section-title button,
.pos-section-title a {
    min-height: 32px;
    padding: 0 10px;
}

.pos-product-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.pos-chip-product {
    flex: 0 0 132px;
    display: grid;
    gap: 4px;
    min-height: 62px;
    padding: 8px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fdfefe;
    text-align: left;
}

.pos-chip-product span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.pos-chip-product strong {
    color: var(--pos-green);
    font-size: 13px;
}

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

.pos-product button {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    gap: 5px 8px;
    width: 100%;
    min-height: 82px;
    padding: 7px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

.pos-product img {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    object-fit: cover;
    background: #eef2ee;
}

.pos-product span,
.pos-product strong,
.pos-product small {
    min-width: 0;
}

.pos-product strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.15;
}

.pos-product small {
    display: block;
    overflow: hidden;
    color: var(--pos-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-product b {
    grid-column: 2;
    color: var(--pos-blue);
    font-size: 13px;
}

.pos-cart-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    height: 84vh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transform: translateY(calc(100% - 74px));
    transition: transform .2s ease;
}

.vendor-pos-shell.cart-open .pos-cart-panel {
    transform: translateY(0);
}

.pos-cart-items {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 7px;
    min-height: 0;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-color: rgba(24, 133, 54, .38) transparent;
    scrollbar-width: thin;
}

.pos-cart-items::-webkit-scrollbar {
    width: 6px;
}

.pos-cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.pos-cart-items::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(24, 133, 54, .28);
}

.pos-cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 133, 54, .48);
}

.pos-cart-empty {
    display: grid;
    align-self: stretch;
    min-height: 90px;
    place-items: center;
    color: var(--pos-muted);
    font-size: 13px;
}

.pos-cart-close {
    display: inline-flex;
}

.pos-customer-row,
.pos-adjustments {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.pos-adjustments input:last-child {
    grid-column: 1 / -1;
}

.pos-cart-item {
    min-width: 0;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fbfcfb;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(19, 32, 24, .02);
}

.pos-cart-item[open] {
    border-color: rgba(24, 133, 54, .42);
    background: #eff8f1;
    box-shadow: inset 3px 0 0 rgba(24, 133, 54, .72);
}

.pos-cart-item[open] summary {
    background: #e8f6ec;
}

.pos-cart-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name qty"
        "meta total";
    gap: 2px 8px;
    align-items: center;
    min-height: 47px;
    padding: 7px 9px;
    cursor: pointer;
    list-style: none;
}

.pos-cart-item summary::-webkit-details-marker {
    display: none;
}

.pos-cart-summary-name,
.pos-cart-summary-meta,
.pos-cart-summary-qty,
.pos-cart-item summary strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-cart-summary-name {
    grid-area: name;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.pos-cart-summary-meta {
    grid-area: meta;
    color: var(--pos-muted);
    font-size: 11px;
    font-weight: 500;
}

.pos-cart-summary-qty {
    grid-area: qty;
    justify-self: end;
    max-width: 92px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--pos-blue);
    font-size: 11px;
    font-weight: 700;
}

.pos-cart-item summary strong {
    grid-area: total;
    justify-self: end;
    max-width: 128px;
    color: var(--pos-blue);
    font-size: 12px;
}

.pos-cart-detail {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--pos-line);
    background: #fbfffc;
}

.pos-cart-main {
    min-width: 0;
}

.pos-cart-main strong,
.pos-cart-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-cart-main small {
    color: var(--pos-muted);
    font-size: 11px;
}

.pos-qty {
    display: grid;
    grid-template-columns: 32px 64px 32px;
    gap: 4px;
}

.pos-qty button,
.pos-cart-item button {
    min-height: 34px;
    border: 1px solid var(--pos-line);
    border-radius: 7px;
    background: #fff;
    font-weight: 900;
}

.pos-cart-detail > input,
.pos-cart-detail > select {
    min-height: 34px;
}

.pos-cart-detail b {
    align-self: center;
    color: var(--pos-blue);
}

.pos-summary-drawer {
    align-self: end;
    position: relative;
    z-index: 2;
    max-height: min(68vh, 620px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #f4f7f4;
    overflow: hidden;
    box-shadow: 0 -10px 24px rgba(19, 32, 24, .05);
}

.pos-summary-drawer[open] {
    min-height: 0;
}

.pos-summary-content {
    display: none;
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-color: rgba(24, 133, 54, .34) transparent;
    scrollbar-width: thin;
}

.pos-summary-content::-webkit-scrollbar {
    width: 6px;
}

.pos-summary-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(24, 133, 54, .28);
}

.pos-summary-drawer[open] .pos-summary-content {
    display: block;
}

.pos-summary-drawer summary {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 12px;
    cursor: pointer;
    list-style: none;
}

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

.pos-summary-label {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    gap: 10px;
}

.pos-summary-label span {
    color: var(--pos-muted);
    font-size: 13px;
    font-weight: 500;
}

.pos-summary-label strong {
    color: var(--pos-green);
    font-size: 18px;
    font-weight: 800;
}

.pos-summary-checkout {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--pos-green);
    border-radius: 8px;
    background: var(--pos-green);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.pos-summary-drawer[open] summary {
    border-top: 1px solid var(--pos-line);
}

.pos-summary-drawer .pos-adjustments,
.pos-summary-drawer .pos-fees,
.pos-summary-drawer .pos-totals {
    margin: 8px;
}

.pos-fees {
    display: grid;
    gap: 6px;
}

.pos-fees-head,
.pos-fee-row {
    display: grid;
    align-items: center;
    gap: 6px;
}

.pos-fees-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

.pos-fees-head span {
    color: var(--pos-muted);
    font-size: 12px;
    font-weight: 500;
}

.pos-fees-head button {
    min-height: 32px;
    padding: 0 10px;
    border-color: rgba(24, 133, 54, .28);
    color: var(--pos-green);
    font-size: 12px;
    font-weight: 700;
}

.pos-fee-list {
    display: grid;
    gap: 5px;
}

.pos-fee-row {
    grid-template-columns: minmax(0, 1fr) minmax(86px, .46fr) 34px;
}

.pos-fee-row input {
    min-height: 34px;
    font-size: 12px;
}

.pos-fee-row button {
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-color: #f0c1bd;
    color: #b42318;
    font-size: 15px;
    font-weight: 800;
}

.pos-summary-drawer .pos-payment {
    margin: 8px;
}

.pos-payment-label {
    display: block;
    margin-bottom: 6px;
    color: var(--pos-muted);
    font-size: 12px;
    font-weight: 600;
}

.pos-totals {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: #f4f7f4;
}

.pos-totals div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.pos-totals dt,
.pos-totals dd {
    margin: 0;
}

.pos-totals .strong {
    color: var(--pos-green);
    font-size: 17px;
    font-weight: 900;
}

.pos-payment-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 4px;
    margin-bottom: 7px;
}

.pos-payment-tabs button {
    min-width: 0;
    min-height: 36px;
    padding: 0 4px;
    font-size: 11px;
}

.pos-payment-tabs button.active {
    border-color: var(--pos-green);
    background: #eaf7ee;
    color: var(--pos-green);
}

.pos-payment-pane {
    display: none;
    gap: 7px;
}

.pos-payment-pane.active {
    display: grid;
}

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

.pos-gcash-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
}

.pos-gcash-box img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.pos-gcash-box span {
    display: grid;
    min-width: 0;
}

.pos-gcash-box small {
    color: var(--pos-muted);
}

.pos-credit-line {
    padding: 7px 9px;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--pos-blue);
    font-weight: 800;
}

.pos-complete {
    min-height: 48px;
    border-color: var(--pos-green);
    background: var(--pos-green);
    color: #fff;
    font-size: 15px;
}

.pos-complete:disabled {
    opacity: .65;
}

.pos-checkout-modal[hidden] {
    display: none !important;
}

.pos-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    align-items: end;
}

.pos-checkout-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 20, 13, .48);
}

.pos-checkout-sheet {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    width: 100%;
    max-height: min(88vh, 720px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: 0 -18px 44px rgba(9, 20, 13, .2);
    scrollbar-color: rgba(24, 133, 54, .34) transparent;
    scrollbar-width: thin;
}

.pos-checkout-sheet::-webkit-scrollbar {
    width: 6px;
}

.pos-checkout-sheet::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(24, 133, 54, .28);
}

.pos-checkout-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.pos-checkout-head span {
    display: grid;
    min-width: 0;
}

.pos-checkout-head small {
    color: var(--pos-muted);
    font-size: 11px;
}

.pos-checkout-head strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-checkout-head b {
    color: var(--pos-green);
    font-size: 16px;
}

.pos-checkout-head button {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.pos-checkout-panes {
    display: grid;
}

.pos-payment-tabs-modal {
    margin-bottom: 0;
}

.pos-checkout-balance {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: #f4f7f4;
}

.pos-checkout-balance div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.pos-checkout-balance dt,
.pos-checkout-balance dd {
    margin: 0;
}

.pos-checkout-sheet .pos-complete {
    width: 100%;
}

.pos-bottom-cart {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 12px;
    border-color: var(--pos-green);
    background: #102718;
    color: #fff;
}

.pos-bottom-cart span,
.pos-bottom-cart strong,
.pos-bottom-cart em {
    font-style: normal;
}

.vendor-pos-shell.cart-open .pos-bottom-cart {
    display: none;
}

.pos-panel-overlay,
.pos-scanner {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(9, 20, 13, .54);
}

.pos-panel-sheet {
    position: absolute;
    inset: auto 0 0;
    max-height: 88vh;
    overflow: auto;
    padding: 12px;
    border-radius: 12px 12px 0 0;
}

.pos-close {
    position: sticky;
    top: 0;
    z-index: 3;
    float: right;
    min-height: 34px;
    padding: 0 10px;
}

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

.pos-dashboard-grid div,
.pos-dashboard-tables section {
    padding: 9px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
}

.pos-dashboard-grid span,
.pos-dashboard-grid strong {
    display: block;
}

.pos-dashboard-grid span {
    color: var(--pos-muted);
    font-size: 11px;
}

.pos-dashboard-grid strong {
    margin-top: 4px;
    font-size: 16px;
}

.pos-dashboard-tables {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.pos-dashboard-tables h3 {
    margin: 0 0 6px;
    font-size: 13px;
}

.pos-dashboard-tables p {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 5px 0;
    border-top: 1px solid #eef2ee;
    font-size: 12px;
}

.pos-history-filters,
.pos-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.pos-history-filters input:first-child,
.pos-settings-form textarea,
.pos-settings-form input[name="receipt_message"],
.pos-settings-form input[name="receipt_disclaimer"] {
    grid-column: 1 / -1;
}

.pos-settings-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.pos-settings-form label input {
    width: auto;
    min-height: auto;
}

.pos-history-list {
    display: grid;
    gap: 7px;
}

.pos-history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
}

.pos-history-item small {
    display: block;
    color: var(--pos-muted);
    font-size: 11px;
}

.pos-history-item button {
    min-height: 32px;
    border: 1px solid var(--pos-line);
    border-radius: 7px;
    background: #fff;
    font-weight: 800;
}

.pos-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.pos-receipt-actions button,
.pos-receipt-actions select {
    min-height: 36px;
    padding: 0 10px;
}

.pos-receipt-frame {
    width: 100%;
    min-height: 64vh;
    border: 1px solid var(--pos-line);
    border-radius: 8px;
    background: #fff;
}

.pos-scanner {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    padding: 14px;
}

.pos-scanner[hidden],
.pos-panel-overlay[hidden] {
    display: none;
}

.pos-scanner video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

.pos-scanner div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
}

.pos-empty {
    margin: 20px auto;
    max-width: 520px;
    padding: 20px;
}

.pos-print-preview {
    min-height: 100vh;
    padding: 12px;
    background: #e9ece9;
    color: #111;
}

.pos-receipt-paper {
    width: min(100%, 720px);
    margin: 0 auto 12px;
    padding: 16px;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.pos-receipt-paper.thermal {
    width: 80mm;
    padding: 4mm;
    font-size: 10px;
}

.pos-receipt-paper.paper-58mm {
    width: 58mm;
    padding: 3mm;
    font-size: 9px;
}

.pos-receipt-paper.paper-a4 {
    width: 210mm;
    min-height: auto;
}

.pos-receipt-paper.paper-short {
    width: 8.5in;
}

.pos-receipt-paper.paper-long {
    width: 8.5in;
}

.receipt-reprint,
.receipt-copy-label {
    text-align: center;
    font-weight: 900;
    letter-spacing: .08em;
}

.receipt-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.receipt-head img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.thermal .receipt-head img {
    width: 24px;
    height: 24px;
}

.receipt-head strong,
.receipt-head span {
    display: block;
}

.receipt-title {
    margin: 8px 0;
    text-align: center;
}

.receipt-title h1 {
    margin: 0;
    font-size: 16px;
}

.thermal .receipt-title h1 {
    font-size: 13px;
}

.receipt-title p {
    margin: 2px 0 0;
    font-weight: 800;
}

.receipt-meta,
.receipt-summary {
    display: grid;
    gap: 2px;
    margin: 8px 0;
}

.receipt-meta div,
.receipt-summary div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.receipt-meta dt,
.receipt-meta dd,
.receipt-summary dt,
.receipt-summary dd {
    margin: 0;
}

.receipt-summary .strong {
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    padding: 4px 0;
    font-weight: 900;
}

.receipt-items {
    width: 100%;
    border-collapse: collapse;
}

.receipt-items th,
.receipt-items td {
    padding: 4px 3px;
    border-bottom: 1px solid #d6d6d6;
    text-align: right;
    vertical-align: top;
}

.receipt-items th:first-child,
.receipt-items td:first-child {
    text-align: left;
}

.receipt-items small {
    display: block;
}

.receipt-unit-price {
    color: #555;
    font-size: .88em;
}

.thermal .receipt-items th,
.thermal .receipt-items td {
    padding: 3px 1px;
}

.thermal .receipt-items th:nth-child(3),
.thermal .receipt-items td:nth-child(3) {
    display: none;
}

.receipt-foot {
    margin-top: 10px;
    text-align: center;
}

.receipt-foot p {
    margin: 4px 0;
}

.receipt-foot small {
    color: #444;
}

.receipt-qr {
    display: inline-grid;
    min-width: 64px;
    min-height: 64px;
    margin: 6px auto;
    place-items: center;
    border: 1px solid #111;
    font-size: 8px;
}

@media (min-width: 760px) {
    .pos-header {
        grid-template-columns: minmax(240px, 1fr) auto auto;
    }

    .pos-status {
        display: inline-flex;
    }

    .pos-header-actions {
        grid-column: auto;
    }

    .pos-workspace {
        grid-template-columns: minmax(0, 1fr) 390px;
        align-items: start;
        padding-bottom: 12px;
    }

    .pos-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pos-cart-panel {
        position: sticky;
        top: 66px;
        height: calc(100vh - 76px);
        max-height: calc(100vh - 76px);
        border-radius: 8px;
        transform: none;
    }

    .pos-cart-close {
        display: none;
    }

    .pos-bottom-cart {
        display: none;
    }

    .pos-checkout-modal {
        align-items: center;
        padding: 18px;
    }

    .pos-checkout-sheet {
        width: min(520px, 100%);
        margin: 0 auto;
        border-radius: 12px;
    }

    .pos-panel-sheet {
        inset: 7vh 4vw;
        border-radius: 8px;
    }

    .pos-dashboard-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .pos-dashboard-tables {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pos-history-item {
        grid-template-columns: 1fr auto auto repeat(4, auto);
    }
}

@media (max-width: 759px) {
    .pos-summary-drawer:not([open]) summary {
        display: block;
        min-height: 0;
        padding: 7px;
    }

    .pos-summary-drawer:not([open]) .pos-summary-label {
        display: none;
    }

    .pos-summary-drawer:not([open]) .pos-summary-checkout {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
    }

    .pos-summary-drawer[open] summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pos-summary-drawer[open] .pos-summary-label {
        gap: 7px;
    }

    .pos-summary-drawer[open] .pos-summary-label strong {
        font-size: 15px;
    }

    .pos-summary-drawer[open] .pos-summary-checkout {
        min-height: 38px;
        padding: 0 11px;
    }
}

@media (min-width: 1080px) {
    .pos-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media print {
    @page {
        margin: 0;
    }

    body.pos-surface,
    .pos-print-preview {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .pos-receipt-paper {
        box-shadow: none;
        margin: 0 auto;
        break-inside: avoid;
    }

    .paper-58mm {
        page: paper-58mm;
    }

    .paper-80mm {
        page: paper-80mm;
    }

    .paper-a4 {
        page: paper-a4;
    }

    .paper-short {
        page: paper-short;
    }

    .paper-long {
        page: paper-long;
    }

    .pos-print-preview.mm,
    .pos-print-preview .thermal {
        color: #000;
    }
}

@page paper-58mm {
    size: 58mm 297mm;
    margin: 0;
}

@page paper-80mm {
    size: 80mm 297mm;
    margin: 0;
}

@page paper-a4 {
    size: A4;
    margin: 12mm;
}

@page paper-short {
    size: 8.5in 11in;
    margin: .45in;
}

@page paper-long {
    size: 8.5in 13in;
    margin: .45in;
}

.mobile-product-back,
.mobile-product-summary,
.mobile-product-accordions,
.mobile-purchase-bar,
.product-image-viewer {
    display: none;
}

.product-detail-marketplace {
    max-width: 1440px;
    margin-inline: auto;
}

.product-image-button,
.mobile-product-thumb {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-image-button img,
.mobile-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-button img {
    max-height: 520px;
    object-fit: contain;
}

.skeleton-media {
    position: relative;
    overflow: hidden;
    background: #f3f8f1;
}

.skeleton-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.72), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: qumpra-skeleton 1.1s ease-in-out infinite;
}

.skeleton-media.is-loaded::before {
    display: none;
}

@keyframes qumpra-skeleton {
    to {
        transform: translateX(100%);
    }
}

.market-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 8px;
    align-items: center;
    margin: 0;
}

.market-identity span {
    grid-row: span 2;
    font-size: 18px;
}

.market-identity small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.market-identity strong {
    min-width: 0;
    color: var(--green-900);
    font-weight: 900;
    line-height: 1.16;
}

.desktop-market-identity {
    width: fit-content;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #bde9aa;
    border-radius: 999px;
    padding: 5px 11px;
    color: var(--green-900);
    background: #edf8e9;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.product-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}

.product-trust-strip span {
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid #d8ecd1;
    border-radius: 999px;
    background: #f5fbf2;
}

.product-rail-section {
    padding-top: 22px;
    padding-bottom: 22px;
}

.product-image-viewer[hidden] {
    display: none !important;
}

.product-image-viewer.is-open {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(10, 18, 12, .86);
    opacity: 1;
    touch-action: none;
}

.product-image-viewer-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image-viewer img {
    max-width: min(100%, 920px);
    max-height: 88vh;
    border-radius: 12px;
    background: var(--white);
    object-fit: contain;
    box-shadow: 0 20px 70px rgba(0,0,0,.36);
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform .24s ease;
    will-change: transform;
}

.product-image-viewer-close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255,255,255,.14);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.product-image-viewer-open {
    overflow: hidden;
}

.qty-control input.qty-pulse {
    animation: qumpra-qty-pop .22s ease;
}

@keyframes qumpra-qty-pop {
    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 640px) {
    body.has-mobile-purchase-bar {
        padding-bottom: 122px;
    }

    .product-detail-marketplace {
        display: block;
        padding: 10px 12px 8px;
    }

    .product-detail-main-media,
    .desktop-product-heading,
    .desktop-product-description,
    .desktop-seller-notes,
    .desktop-product-facts,
    .desktop-purchase-box {
        display: none;
    }

    .mobile-product-back {
        display: block;
        margin: 0 0 8px;
    }

    .mobile-product-back a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        color: var(--green-900);
        font-weight: 900;
        text-decoration: none;
    }

    .mobile-product-summary {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
    }

    .mobile-product-thumb {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(23, 32, 26, .12);
    }

    .mobile-product-thumb img {
        border-radius: 12px;
        object-fit: contain;
        background: #fbfdfb;
    }

    .mobile-product-title-stack {
        display: grid;
        gap: 6px;
        min-width: 0;
    }

    .mobile-product-title-stack h1 {
        margin: 0;
        color: var(--green-900);
        font-size: 22px;
        line-height: 1.06;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .mobile-product-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
        align-items: center;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .mobile-product-meta span:first-child {
        color: #bf7a00;
    }

    .mobile-share-button {
        min-height: 28px;
        padding: 3px 7px;
        gap: 4px;
        border-radius: 999px;
        font-size: 12px;
    }

    .mobile-share-button svg {
        width: 14px;
        height: 14px;
    }

    .product-trust-strip {
        gap: 5px;
        margin: 8px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .product-trust-strip::-webkit-scrollbar {
        display: none;
    }

    .product-trust-strip span {
        flex: 0 0 auto;
        min-height: 26px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .mobile-product-accordions {
        display: grid;
        gap: 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .mobile-product-accordions details {
        border-bottom: 1px solid var(--line);
    }

    .mobile-product-accordions details:last-child {
        border-bottom: 0;
    }

    .mobile-product-accordions summary {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        padding: 12px 0;
        color: var(--green-900);
        font-weight: 900;
        cursor: pointer;
        list-style: none;
    }

    .mobile-product-accordions summary::-webkit-details-marker {
        display: none;
    }

    .mobile-product-accordions summary::after {
        content: "▼";
        color: var(--muted);
        font-size: 11px;
        transition: transform .22s ease;
    }

    .mobile-product-accordions details[open] summary::after {
        transform: rotate(180deg);
    }

    .mobile-product-accordions p,
    .mobile-product-accordions .rich-copy {
        margin: 0;
        padding: 0 0 12px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.4;
    }

    .product-rail-section {
        padding: 14px 12px;
    }

    .product-rail-section .section-heading {
        margin-bottom: 8px;
    }

    .product-rail-section .section-heading h2 {
        font-size: 18px;
        line-height: 1.12;
    }

    .product-scroll-rail {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        padding: 0 2px 8px;
        scrollbar-width: none;
    }

    .product-scroll-rail::-webkit-scrollbar {
        display: none;
    }

    .related-product-grid.product-scroll-rail {
        grid-template-columns: none;
    }

    .product-scroll-rail .product-card {
        flex: 0 0 154px;
        min-width: 154px;
        scroll-snap-align: start;
        box-shadow: none;
    }

    .product-scroll-rail .product-image {
        height: 112px;
        padding: 8px;
    }

    .product-scroll-rail .product-body {
        padding: 9px;
        gap: 6px;
    }

    .product-scroll-rail .product-body h3 {
        font-size: 13px;
        line-height: 1.18;
    }

    .product-scroll-rail .quick-add {
        display: none;
    }

    .recent-product-list.product-scroll-rail {
        display: flex;
    }

    .recent-product-list.product-scroll-rail .recent-product-row {
        flex: 0 0 238px;
        min-width: 238px;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 9px;
        padding: 8px;
        box-shadow: none;
    }

    .recent-product-list.product-scroll-rail .recent-product-row img {
        width: 58px;
        height: 56px;
    }

    .recent-product-list.product-scroll-rail .recent-product-row strong {
        font-size: 13px;
        line-height: 1.18;
    }

    .recent-product-list.product-scroll-rail .recent-product-row small {
        font-size: 11px;
    }

    .recent-product-list.product-scroll-rail .recent-product-row b {
        grid-column: 2;
        font-size: 12px;
        white-space: normal;
    }

    .mobile-purchase-bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 75;
        display: grid;
        gap: 7px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        border-radius: 8px 8px 0 0;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -10px 28px rgba(23,32,26,.14);
    }

    .mobile-bar-price {
        margin: 0;
        color: var(--green-900);
        font-size: 19px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-bar-price span {
        margin-left: 2px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-bar-actions {
        display: grid;
        grid-template-columns: minmax(118px, 136px) auto minmax(0, 1fr);
        gap: 8px;
        align-items: center;
    }

    .mobile-bar-actions small {
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-bar-qty {
        grid-template-columns: 34px minmax(40px, 1fr) 34px;
        gap: 4px;
        min-height: 42px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fbfdfb;
    }

    .mobile-bar-qty button,
    .mobile-bar-qty input {
        min-height: 38px;
        height: 38px;
    }

    .mobile-purchase-bar .button {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .product-image-viewer.is-open {
        padding: 16px;
    }
}
