: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);
}

* { 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;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }

.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);
}
.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;
}
.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: 800;
    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);
    white-space: nowrap;
}
.top-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; }
.nav-dropdown {
    position: relative;
}
.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);
}
.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;
    max-height: 300px;
    overflow: auto;
}
.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);
}
.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: 560px; display: grid; place-items: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 95, 42, .72), rgba(13, 95, 42, .25), rgba(0, 0, 0, .18)); }
.hero img { position: absolute; inset: 0; 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: 42px 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 22px; max-width: 740px; font-size: clamp(16px, 2vw, 22px); font-weight: 700; }
.hero-copy p { margin: 0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-location-picker {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
}
.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);
}
.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;
}
.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: 20px 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;
}
.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: 20px 0; }
.location-tools {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 18px auto 0;
}
.location-filter-open {
    display: none;
}
.location-filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    width: min(850px, 100%);
    margin-inline: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 20px rgba(23, 32, 26, .05);
}
.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: 5px;
    text-align: left;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 900;
}
.location-filter-panel select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 34px 8px 12px;
    color: var(--ink);
    background: var(--white);
}
.location-nearby-button {
    display: grid;
    place-items: center;
    width: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--green-700);
    cursor: pointer;
}
.location-filter-actions {
    display: contents;
}
.location-go-button,
.location-clear-button {
    display: none;
}
.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; }

.storefront-hero {
    position: relative;
    min-height: 460px;
    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, 95, 42, .92), rgba(24, 133, 54, .58) 45%, rgba(24, 133, 54, .08) 88%);
}
.storefront-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 42px;
}
.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(38px, 6vw, 78px);
    line-height: 1;
    letter-spacing: 0;
}
.storefront-hero-content p { margin: 0; max-width: 820px; font-weight: 800; }
.storefront-description {
    max-width: 780px;
    color: #f4fff0;
}
.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: 999px;
    background: rgba(255,255,255,.14);
    font-size: 13px;
    font-weight: 900;
}
.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-grid { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 24px; align-items: start; }
.storefront-info {
    position: sticky;
    top: 92px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.storefront-info summary {
    list-style: none;
    margin: 0 0 12px;
    color: var(--green-900);
    font-size: 26px;
    font-weight: 900;
    cursor: default;
}
.storefront-info summary::-webkit-details-marker { display: none; }
.storefront-extra-info {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    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-products-section {
    padding-inline: clamp(10px, 2vw, 28px);
}
.storefront-search-bar {
    width: min(1120px, 100%);
    margin-bottom: 22px;
}
.storefront-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
}
@media (min-width: 1280px) {
    .storefront-product-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}
.product-card { overflow: hidden; }
.product-image { position: relative; display: block; height: 170px; padding: 10px; 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; gap: 8px; padding: 12px; }
.product-body small { color: var(--green-700); font-weight: 800; }
.product-body h3 { margin: 0; color: var(--green-900); font-size: 17px; line-height: 1.25; min-height: 0; overflow-wrap: anywhere; }
.price { margin: 0; color: var(--green-900); font-size: 16px; font-weight: 900; }
.price span, .detail-price span { color: var(--muted); font-size: 12px; }
.old-price { margin: 0; text-decoration: line-through; color: var(--muted); font-size: 12px; }
.quick-add { display: grid; gap: 8px; margin-top: 2px; }
.product-body .product-source { display: block; color: var(--muted); font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.qty-control { display: grid; grid-template-columns: 32px minmax(42px, 1fr) 32px; 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: 900; min-height: 32px; cursor: pointer; }
.qty-control input { width: 100%; min-width: 0; max-width: none; height: 32px; padding: 0 2px; text-align: center; border: 0; background: transparent; color: var(--green-900); font-weight: 900; line-height: 1; }

.benefit-grid, .dashboard-grid, .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.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;
}
.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);
}
.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);
}
.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 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);
}
.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(180px, 1.4fr) repeat(4, minmax(120px, 1fr)) auto auto;
}
.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);
}
.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: 12px;
}
.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 {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.quick-add-card.is-saved {
    border-color: #73d94c;
    background: #f2ffe9;
}
.quick-product-summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.quick-product-summary h3 {
    margin: 0 0 4px;
    color: var(--green-900);
}
.quick-product-summary p {
    margin: 0;
    color: var(--muted);
}
.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;
    grid-column: 1 / -1;
    gap: 12px;
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.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;
}
.quick-listing-fields .checkbox-label {
    align-content: center;
    min-height: 36px;
}
.quick-listing-submit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.quick-listing-submit-row .button.primary {
    width: 100%;
}
.quick-listing-submit-row .danger-button {
    min-width: 110px;
}
.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-form .form-panel {
    gap: 18px;
}
.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); }
.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; }

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 44px clamp(16px, 4vw, 42px) 90px;
    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;
}
.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-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: 500px; }
    .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;
    }
    .location-filter-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: auto;
        max-height: calc(100vh - 96px);
        overflow: auto;
        padding: 16px;
        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: 1fr 1fr 52px;
        gap: 10px;
        align-items: stretch;
    }
    .location-go-button,
    .location-clear-button {
        display: inline-flex;
        width: 100%;
        min-height: 46px;
    }
    .location-nearby-button {
        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;
    }
    .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;
    }
    .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;
    }
}

/* 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-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;
}

.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;
}

.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-card > 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-bought-button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid #a8e58c;
    border-radius: 999px;
    color: var(--green-900);
    background: var(--white);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(24, 133, 54, .12);
    cursor: pointer;
}

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

.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-card > img {
        width: 72px;
        height: 72px;
    }
    .work-item-title-row {
        grid-template-columns: minmax(0, 1fr) 46px;
    }
    .work-bought-button {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    .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;
    }
}
