/* 2026-07-15 final requirements pass.
   Loaded after the legacy/theme cascade so these agreed rules remain stable. */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.gold-bottom-widget {
    width: 100%;
    margin: 1.25rem auto;
    box-sizing: border-box;
}

.gold-widget-strip {
    overflow: hidden !important;
    scrollbar-width: none;
    padding: .5rem 0;
}

.gold-widget-strip::-webkit-scrollbar {
    display: none;
}

.gold-widget-strip-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.gold-widget-strip-set {
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    padding-right: 1rem;
}

.gold-widget-strip-item {
    flex: 0 0 var(--gold-widget-width, 220px);
    width: var(--gold-widget-width, 220px);
    height: var(--gold-widget-height, 92px);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gold-widget-strip-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.gold-widget-book {
    perspective: 1600px;
}

.gold-widget-book-pages {
    max-width: min(100%, calc(var(--gold-widget-width, 220px) * 2 + 4rem));
    margin: 0 auto;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--shop-card, #fff);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .18);
}

.gold-widget-book-spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    transform-origin: right center;
    animation: gold-book-forward .38s ease-out;
}

.gold-widget-book-spread[hidden] { display: none; }

@keyframes gold-book-forward {
    from { opacity: .35; transform: perspective(1000px) rotateY(-10deg); }
    to { opacity: 1; transform: perspective(1000px) rotateY(0); }
}

.gold-widget-book-page {
    margin: 0;
    padding: .75rem;
    background: var(--shop-card, #fff);
    border: 1px solid var(--shop-border, #ddd);
    border-radius: .75rem;
}

.gold-widget-book-page img {
    display: block;
    width: 100%;
    height: min(70vh, var(--gold-widget-height, 520px));
    object-fit: contain;
    background: transparent;
    border-radius: .45rem;
}

.gold-widget-image-manager {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gold-widget-image-manager .asset-card { padding: .55rem; }
.gold-widget-image-manager .asset-preview { min-height: 90px; height: 110px; }
.gold-widget-image-manager .asset-preview img { object-fit: contain; background: transparent; }

.gold-widget-book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 700px) {
    .gold-widget-strip-item {
        flex-basis: 130px;
        width: 130px;
        height: 62px;
    }

    .gold-widget-book-spread { grid-template-columns: 1fr; }
    .gold-widget-book-spread .gold-widget-book-page:nth-child(2) { display: none; }
    .gold-widget-book-page img {
        height: min(52vh, 360px);
    }
}

.gold-widget-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .85rem;
    margin: 1rem 0 1.25rem;
}

.gold-widget-template-card {
    display: grid;
    gap: .45rem;
    align-content: start;
    padding: .85rem;
    border: 2px solid #c7d2df;
    border-radius: .8rem;
    background: #fff;
    color: #172033;
    cursor: pointer;
}

.gold-widget-template-card:has(input:checked) {
    border-color: #0f6cbd;
    box-shadow: 0 0 0 3px rgba(15, 108, 189, .16);
}

.gold-widget-template-card input {
    justify-self: end;
}

.gold-widget-template-card small {
    color: #5c677a;
}

.gold-widget-template-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-height: 74px;
    padding: .4rem;
    overflow: hidden;
    border-radius: .55rem;
    background: #edf3f9;
}

.gold-widget-template-preview i {
    display: block;
    border-radius: .25rem;
    background: #0f6cbd;
}

.preview-strip i {
    width: 30%;
    height: 42px;
}

.preview-book i {
    width: 42%;
    height: 58px;
}

.preview-book i:first-child { transform: perspective(150px) rotateY(8deg); }
.preview-book i:last-child { transform: perspective(150px) rotateY(-8deg); }

.preview-code {
    color: #0f6cbd;
    font: 700 1.35rem/1 monospace;
}

.gold-widget-images-heading {
    margin-top: 1.25rem;
}

body.plant-body:not(.route-branding) #main-content :is(
    button,
    input[type="button"],
    input[type="submit"],
    a.btn,
    .btn,
    .pager-link,
    .mode-switch-btn,
    .admin-tool-link
):disabled,
body.plant-body:not(.route-branding) #main-content :is(.btn, .pager-link, .mode-switch-btn, .admin-tool-link).disabled {
    background: var(--shop-button-bg, #111111) !important;
    border-color: var(--shop-button-bg, #111111) !important;
    color: var(--theme-safe-button-text, var(--shop-button-text, #fff)) !important;
    opacity: 1 !important;
    filter: none !important;
}

.global-developer-credit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 13rem);
}

.global-developer-credit .shop-developer-credit-logo {
    width: clamp(4.5rem, 7vw, 6.5rem) !important;
}

.admin-header-user-label {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.72);
    border-radius: var(--theme-radius-pill, 48px);
    background: rgba(var(--theme-card-rgb, 255, 255, 255), 0.16);
    color: var(--theme-safe-primary-text, #fff);
    font-weight: 800;
    white-space: nowrap;
}

body.plant-body:not(.route-branding) #main-content .shop-storefront-title h2,
body.plant-body:not(.route-branding) #main-content .shop-storefront-title .shop-page-subtitle,
body.plant-body:not(.route-branding) #main-content .shop-developer-credit-text,
body.plant-body:not(.route-branding) .global-developer-credit .shop-developer-credit-text {
    color: var(--shop-header-text, var(--theme-safe-primary-text, #fff)) !important;
    -webkit-text-fill-color: var(--shop-header-text, var(--theme-safe-primary-text, #fff)) !important;
}

body.plant-body:not(.route-branding) #main-content .shop-storefront-title .shop-page-subtitle {
    font-size: var(--shop-header-slogan-size, 1rem) !important;
}

/* Checkout intentionally uses a clean light surface. */
body.plant-body.route-shop.route-checkout #main-content :is(
    .checkout-card,
    .checkout-summary,
    .signed-in-checkout-card,
    .checkout-form-section,
    .checkout-address-confirm
) {
    background: #fff !important;
    background-image: none !important;
    border-color: #c7d2df !important;
    color: #172033 !important;
}

body.plant-body.route-shop.route-checkout #main-content :is(
    .checkout-card,
    .checkout-summary,
    .signed-in-checkout-card,
    .checkout-form-section,
    .checkout-address-confirm
) :is(h2, h3, h4, strong, span, label, small, p) {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
}

body.plant-body.route-shop.route-checkout #main-content :is(input, select, textarea, .form-control, .form-select) {
    background: #f7f9fc !important;
    border-color: #9fb2c7 !important;
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
}

@keyframes checkout-error-flash-twice-final {
    0%, 100% { background-color: #fff1f0; box-shadow: 0 0 0 0 rgba(180, 35, 24, 0); }
    50% { background-color: #ffd7d2; box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.22); }
}

body.plant-body.route-shop.route-checkout #main-content .checkout-critical-error {
    color: #b42318 !important;
    -webkit-text-fill-color: #b42318 !important;
    border-color: #b42318 !important;
    animation: checkout-error-flash-twice-final 0.55s ease-in-out 2;
}

/* Online Sales */
body.plant-body.route-shop.route-orders #main-content .admin-date-filter-title,
body.plant-body.route-shop.route-orders #main-content .admin-date-filter-title * {
    color: var(--theme-safe-card-secondary-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-secondary-text, #172033) !important;
}

body.plant-body.route-shop.route-orders #main-content :is(.admin-date-filter-panel, .inline-search-strip, .admin-empty-card) {
    border-radius: var(--theme-radius-panel, 17px) !important;
}

body.plant-body.route-shop.route-orders #main-content .admin-empty-card {
    display: grid;
    gap: 0.45rem;
    padding: clamp(1.1rem, 2vw, 1.75rem) !important;
}

body.plant-body.route-shop.route-orders #main-content .admin-empty-card :is(h3, p) {
    margin: 0 !important;
    line-height: 1.35 !important;
}

body.plant-body.route-shop.route-orders #main-content .js-clear-order-date {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: var(--theme-radius-icon, 50%) !important;
    line-height: 1 !important;
}

/* Product Photos stays on the same normal themed admin surface. */
body.plant-body.route-productphotos.route-index #main-content .product-photo-admin-shell {
    background: rgba(var(--theme-card-secondary-rgb, 243, 246, 250), var(--theme-panel-alpha, 1)) !important;
    background-image: none !important;
    border-color: rgba(var(--theme-border-rgb, 199, 210, 223), 0.76) !important;
    color: var(--theme-safe-card-secondary-text, #172033) !important;
}

body.plant-body.route-productphotos.route-index #main-content .photo-upload-accordion > summary,
body.plant-body.route-productphotos.route-index #main-content .photo-upload-accordion > summary :is(span, small) {
    color: var(--theme-safe-card-secondary-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-secondary-text, #172033) !important;
}

body.plant-body.route-productphotos.route-index #main-content :is(.server-search-strip, .inline-search-box) {
    border-radius: var(--theme-radius-panel, 17px) !important;
}

/* I let an expanded photo uploader use the whole desktop row. Keeping an open
   details element in one of the compact toolbar columns can crush its file
   input and help text into a narrow strip. */
body.plant-body.route-productphotos.route-index #main-content .photo-upload-toolbar > .photo-upload-accordion[open] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.plant-body.route-productphotos.route-index #main-content .photo-upload-accordion[open] :is(
    .photo-upload-mini-form,
    .bulk-upload-mini-form,
    .photo-upload-field,
    .form-control
) {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.plant-body.route-productphotos.route-index #main-content .photo-upload-accordion[open] :is(
    summary,
    summary span,
    summary small,
    .photo-upload-field label,
    .photo-upload-field small,
    .photo-upload-file-error
) {
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.plant-body.route-productphotos.route-index #main-content .bulk-upload-mini-form {
    grid-template-columns: minmax(20rem, 1fr) auto auto !important;
}

body.plant-body.route-productphotos.route-index #main-content .bulk-upload-mini-form > .photo-upload-field,
body.plant-body.route-productphotos.route-index #main-content .bulk-upload-mini-form > :is(
    .bulk-photo-match-summary,
    .admin-order-table-wrap,
    .bulk-photo-match-preview
) {
    grid-column: 1 / -1 !important;
}

@media (max-width: 60rem) {
    body.plant-body.route-productphotos.route-index #main-content .bulk-upload-mini-form {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.plant-body.route-productphotos.route-index #main-content .bulk-upload-mini-form > .btn-upload-compact {
        width: 100% !important;
    }
}

/* Delivery and System Settings title copy. Keep this scoped to the title
   column so it cannot override the shared action-button contrast. */
body.plant-body.route-shop.route-deliverysettings #main-content .admin-inline-page-heading > :first-child,
body.plant-body.route-shop.route-deliverysettings #main-content .admin-inline-page-heading > :first-child *,
body.plant-body.route-shop.route-systemsettings #main-content .admin-inline-page-heading > :first-child,
body.plant-body.route-shop.route-systemsettings #main-content .admin-inline-page-heading > :first-child * {
    color: var(--theme-safe-primary-text, #fff) !important;
    -webkit-text-fill-color: var(--theme-safe-primary-text, #fff) !important;
}

body.plant-body.route-shop.route-deliverysettings #main-content :is(.checkout-form-section-title, .admin-panel-card h3, .admin-sub-card h4),
body.plant-body.route-shop.route-systemsettings #main-content :is(.checkout-form-section-title, .admin-panel-card h3, .admin-sub-card h4) {
    color: var(--theme-safe-card-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-text, #172033) !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-two-column-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)) !important;
    gap: clamp(0.9rem, 1.8vw, 1.35rem) !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-sub-card {
    display: grid;
    align-content: start;
    gap: 0.75rem !important;
    min-width: 0 !important;
    padding: clamp(0.9rem, 1.7vw, 1.3rem) !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-sub-card :is(h4, p) {
    margin: 0 !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-sub-card label:not(.admin-inline-check) {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-sub-card :is(input, select, textarea, .form-control) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-inline-check,
body.plant-body.route-shop.route-systemsettings #main-content .admin-inline-check span {
    color: var(--theme-safe-card-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-text, #172033) !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-inline-check {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    min-height: 2.75rem !important;
    padding: 0.65rem 0.85rem !important;
    white-space: normal !important;
    border: 1px solid #c7d2df !important;
    background: #f4f6f8 !important;
    box-shadow: none !important;
}

/* Tier-aware commerce modules. */
.commerce-shell {
    display: grid;
    gap: 1rem;
}

.commerce-kpis,
.commerce-feature-grid,
.commerce-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

.commerce-kpi,
.commerce-feature-card,
.commerce-card,
.commerce-order-card,
.commerce-list-row {
    min-width: 0;
    padding: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--theme-safe-card-text, #172033);
    background: rgba(var(--theme-card-rgb, 255, 255, 255), var(--theme-panel-alpha, 0.94));
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.9);
    border-radius: var(--theme-radius-card, var(--shop-radius, 1rem));
}

.commerce-feature-card {
    display: grid;
    gap: 0.35rem;
    color: var(--theme-safe-card-text, #172033) !important;
    text-decoration: none;
}

.commerce-feature-card p,
.commerce-feature-card small {
    margin: 0;
    line-height: 1.45;
}

.commerce-feature-card small {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.7);
    color: var(--theme-safe-muted-text, #526071);
}

.commerce-how-it-works {
    display: grid;
    gap: 0.75rem;
    padding: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--theme-safe-card-text, #172033);
    background: rgba(var(--theme-card-rgb, 255, 255, 255), var(--theme-panel-alpha, 0.94));
    border: 1px solid rgba(var(--theme-primary-rgb, 48, 121, 181), 0.45);
    border-radius: var(--theme-radius-card, var(--shop-radius, 1rem));
}

.commerce-how-it-works :is(h3, p) { margin: 0; }

.commerce-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem;
}

.commerce-info-grid > div {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(var(--theme-secondary-card-rgb, 244, 246, 248), 0.85);
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.75);
    border-radius: var(--theme-radius-control, 0.65rem);
    color: var(--theme-safe-card-text, #172033);
}

.commerce-info-grid > div > strong {
    color: var(--theme-safe-card-text, #172033);
}

.commerce-info-grid > div > span {
    color: var(--theme-safe-muted-text, #526071);
}

.commerce-order-state-row,
.commerce-card-title-row,
.commerce-picker-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.commerce-state-pill {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(var(--theme-secondary-card-rgb, 244, 246, 248), 0.95);
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.9);
    font-size: 0.78rem;
    font-weight: 800;
}

.commerce-state-pill.paid { border-color: #2f855a; color: #1f6b46; }
.commerce-state-pill.unpaid { border-color: #c77d18; color: #8a520d; }

.commerce-sub-form,
.commerce-product-picker,
.commerce-payment-history {
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
    background: rgba(var(--theme-secondary-card-rgb, 244, 246, 248), 0.7);
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.85);
    border-radius: var(--theme-radius-control, 0.65rem);
}

.commerce-sub-form h4,
.commerce-product-picker h4,
.commerce-card-title-row :is(h3, span) { margin: 0; }

.commerce-payment-form { border-color: rgba(var(--theme-primary-rgb, 48, 121, 181), 0.6); }

.commerce-payment-history summary { cursor: pointer; font-weight: 800; }
.commerce-payment-history > div,
.commerce-target-line { display: flex; justify-content: space-between; gap: 0.6rem; padding-top: 0.4rem; font-size: 0.82rem; }
.commerce-target-line { display: block; }

.commerce-document-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 0.65rem;
    align-items: end;
}

.commerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.commerce-pagination .disabled { pointer-events: none; opacity: 0.45; }

.commerce-feature-card:hover,
.commerce-feature-card:focus-visible {
    border-color: rgb(var(--theme-primary-rgb, 48, 121, 181));
    transform: translateY(-1px);
}

.commerce-kpi {
    display: grid;
    gap: 0.25rem;
}

.commerce-kpi strong {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.commerce-two-column {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.4fr);
    gap: 1rem;
    align-items: start;
}

.commerce-form,
.commerce-list,
.commerce-card,
.commerce-order-card,
.commerce-list-row {
    display: grid;
    gap: 0.8rem;
}

.commerce-form-grid,
.commerce-inline-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 0.75rem;
}

.commerce-form label,
.commerce-form-grid label,
.commerce-inline-fields label {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.commerce-form :is(input, select, textarea),
.commerce-form-grid :is(input, select, textarea),
.commerce-inline-fields :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
}

.commerce-chip-row,
.commerce-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.commerce-chip {
    padding: 0.35rem 0.65rem;
    color: var(--theme-safe-primary-text, #fff);
    background: rgb(var(--theme-primary-rgb, 48, 121, 181));
    border-radius: var(--theme-radius-pill, 999px);
    font-size: 0.82rem;
    font-weight: 700;
}

.commerce-chart-wrap {
    position: relative;
    min-height: 16rem;
}

.return-item-picker {
    display: grid;
    gap: 0.5rem;
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.9);
    border-radius: var(--theme-radius-control, 0.65rem);
}

@media (max-width: 800px) {
    .commerce-two-column {
        grid-template-columns: 1fr;
    }

    .commerce-kpis,
    .commerce-feature-grid,
    .commerce-order-grid {
        grid-template-columns: 1fr;
    }
}

body.plant-body.route-shop.route-systemsettings #main-content .admin-inline-check input[type="checkbox"] {
    appearance: auto !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    min-width: 1.2rem !important;
    margin: 0 !important;
    accent-color: #0f6cbd !important;
    flex: 0 0 1.2rem !important;
}

body.plant-body.route-shop.route-systemsettings #main-content .email-field-hint {
    color: #44546a !important;
    -webkit-text-fill-color: #44546a !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
}

/* User list */
body.plant-body.route-users.route-index #main-content .user-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.85rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.72);
    border-radius: var(--theme-radius-panel, 17px);
    background: rgba(var(--theme-card-secondary-rgb, 243, 246, 250), var(--theme-panel-alpha, 1));
}

body.plant-body.route-users.route-index #main-content .user-list-toolbar h3 {
    margin: 0 !important;
    color: var(--theme-safe-card-secondary-text, #172033) !important;
}

body.plant-body.route-users.route-index #main-content .user-list-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

body.plant-body.route-users.route-index #main-content .users-search-strip {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(0.55rem, 1.2vw, 0.72rem) !important;
    border-radius: var(--theme-radius-panel, 17px) !important;
    background-clip: padding-box !important;
    overflow: hidden !important;
}

body.plant-body.route-users.route-index #main-content .users-search-strip :is(.inline-search-box, .form-control, .btn-inline-clear) {
    border-radius: var(--theme-radius-pill, 48px) !important;
    background-clip: padding-box !important;
}

body.plant-body.route-users.route-index #main-content .admin-order-table :is(th, td) {
    padding-block: 0.75rem !important;
    line-height: 1.35 !important;
}

body.plant-body.route-users.route-index #main-content .admin-order-table th {
    background: rgba(var(--theme-primary-rgb, 15, 108, 189), 0.88) !important;
    color: var(--theme-safe-primary-text, #fff) !important;
    -webkit-text-fill-color: var(--theme-safe-primary-text, #fff) !important;
}

.user-select-column,
.user-select-cell {
    width: 5.5rem;
    text-align: center !important;
}

.user-select-cell input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
}

/* Lockout-safe Branding editor */
body.plant-body.route-branding #main-content .branding-field-help {
    display: block;
    margin-top: 0.35rem;
    color: #5c677a !important;
    -webkit-text-fill-color: #5c677a !important;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
}

body.plant-body.route-branding #main-content .branding-inline-range {
    margin-top: 0.55rem;
}

body.plant-body.route-branding #main-content .branding-version-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #c7d2df;
    border-radius: 14px;
    background: #fff;
    color: #172033;
}

body.plant-body.route-branding #main-content .branding-version-actions span,
body.plant-body.route-branding #main-content .branding-check > span small {
    color: #5c677a !important;
    -webkit-text-fill-color: #5c677a !important;
}

body.plant-body.route-branding #main-content .branding-settings-form input[type="color"] {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.25rem !important;
    border: 1px solid #9fb2c7 !important;
    border-radius: 12px !important;
    background: #f7f5ef !important;
    overflow: hidden !important;
}

body.plant-body.route-branding #main-content .branding-settings-form input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0 !important;
}

body.plant-body.route-branding #main-content .branding-settings-form input[type="color"]::-webkit-color-swatch {
    border: 0 !important;
    border-radius: 8px !important;
}

body.plant-body.route-branding #main-content .asset-preview {
    background-color: #f7f5ef !important;
}

body.plant-body.route-branding #main-content :is(.logo-theme-generator-heading span, .theme-card span) {
    font-weight: 400 !important;
}

body.plant-body.route-branding #main-content .branding-check > span {
    display: grid;
    gap: 0.2rem;
}

body.plant-body.route-branding #main-content .live-preview-browser :is(
    .live-preview-title-wrap h3,
    .live-preview-title-wrap small,
    .live-preview-developer,
    .live-preview-developer span
) {
    color: var(--live-header-text, #172033) !important;
    -webkit-text-fill-color: var(--live-header-text, #172033) !important;
}

/* Login/readability, including browser autofill. */
body.plant-body.route-account #main-content :is(.auth-card, .auth-panel, .login-context-note, .checkout-gate-note) :is(p, span, label, strong, small) {
    color: var(--theme-safe-card-secondary-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-secondary-text, #172033) !important;
}

body.plant-body.route-account #main-content :is(input, textarea, select, .form-control),
body.plant-body.route-account #main-content input:-webkit-autofill,
body.plant-body.route-account #main-content input:-webkit-autofill:hover,
body.plant-body.route-account #main-content input:-webkit-autofill:focus {
    color: var(--theme-safe-card-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-text, #172033) !important;
    caret-color: var(--theme-safe-card-text, #172033) !important;
}

/* The Login, Create Account and Forgot Password fields stay predictable even
   when a client theme uses dark or low-contrast form colors. */
body.plant-body.route-account:is(.route-login, .route-forgotpassword, .route-activate, .route-resetpassword) #main-content :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    textarea,
    select,
    .form-control,
    .form-select
),
body.plant-body.route-account:is(.route-login, .route-forgotpassword, .route-activate, .route-resetpassword) #main-content input:-webkit-autofill,
body.plant-body.route-account:is(.route-login, .route-forgotpassword, .route-activate, .route-resetpassword) #main-content input:-webkit-autofill:hover,
body.plant-body.route-account:is(.route-login, .route-forgotpassword, .route-activate, .route-resetpassword) #main-content input:-webkit-autofill:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    caret-color: #111111 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Account activation follows the same card hierarchy and contrast rules as
   Login/Create Account/Forgot Password. */
body.plant-body.route-account.route-activate #main-content .login-context-note {
    box-sizing: border-box !important;
    width: min(100%, 52rem) !important;
    max-width: 52rem !important;
    margin-inline: auto !important;
}

body.plant-body.route-account.route-activate #main-content .activate-account-auth-card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(0.85rem, 1.8vw, 1.15rem) !important;
    padding: clamp(1rem, 2.5vw, 1.65rem) !important;
    background: #f3f4f6 !important;
    background-image: none !important;
    border: 1px solid rgba(var(--theme-border-rgb, 210, 218, 230), 0.86) !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    box-shadow: 0 18px 42px rgba(12, 25, 45, 0.16) !important;
    overflow: hidden !important;
}

body.plant-body.route-account.route-activate #main-content .activate-account-auth-card :is(.auth-card-heading, .auth-field-group) {
    min-width: 0 !important;
    display: grid !important;
    gap: 0.38rem !important;
}

body.plant-body.route-account.route-activate #main-content .activate-account-auth-card :is(h3, p, label, small, strong, .auth-card-kicker, .auth-account-switch > span) {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

body.plant-body.route-account.route-activate #main-content .activate-account-auth-card .auth-card-kicker,
body.plant-body.route-account.route-activate #main-content .activate-account-auth-card .auth-field-group label {
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

body.plant-body.route-account.route-activate #main-content .activate-account-auth-card .form-control {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 3rem !important;
    border-radius: 0.95rem !important;
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

body.plant-body.route-account.route-activate #main-content .activate-account-auth-card .auth-primary-submit {
    width: 100% !important;
    min-height: 3rem !important;
    border-radius: 999px !important;
}

body.plant-body.route-account:is(.route-login, .route-forgotpassword) #main-content :is(input, textarea)::placeholder {
    color: #5f6670 !important;
    -webkit-text-fill-color: #5f6670 !important;
    opacity: 1 !important;
}

body.plant-body.route-shop.route-index #main-content .shop-user-developer-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-width: 0;
}

body.plant-body.route-shop.route-index #main-content .shop-user-developer-group .shop-developer-credit {
    margin: 0 !important;
}

/* Give desktop category choices the same visual separation already used by
   the responsive grid at smaller sizes. */
@media (min-width: 48.01rem) {
    body.plant-body.route-shop.route-index #main-content :is(.right-category-panel, .category-panel) .category-item + .category-item {
        margin-top: 0.55rem !important;
    }
}

/* Package level indicator is an IQTech-controlled identity element. Its
   palette remains fixed so the level stays recognisable in every client theme. */
body.plant-body .shop-package-badge {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.28rem !important;
    min-height: 1.65rem !important;
    padding: 0.22rem 0.55rem !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: 999px !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 0.66rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.045em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24) !important;
}

body.plant-body .shop-package-badge :is(span, b) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font: inherit !important;
}

body.plant-body .shop-package-badge.package-bronze {
    background: #a95c31 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.plant-body .shop-package-badge.package-silver {
    background: #c7ced6 !important;
    border-color: #eef2f6 !important;
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
}

body.plant-body .shop-package-badge.package-gold {
    background: #d6a93b !important;
    border-color: #ffe6a3 !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

body.plant-body .shop-package-badge-icon {
    font-size: 0.58rem !important;
}

/* The saved Corner roundness value is the final authority for every common
   interactive control and visible form surface outside the lockout-safe
   Branding editor. */
body.plant-body:not(.route-branding) :is(
    .btn,
    button:not(.category-close):not(.image-preview-close):not(.photo-picker-close):not(.inline-clear-btn):not(.shop-card-qty-btn):not(.cart-qty-btn):not(.photo-drag-handle):not(.back-to-top-button),
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    a[role="button"],
    summary[role="button"],
    details > summary,
    .shop-cart-link,
    .shop-developer-credit-link,
    .mode-switch-btn,
    .admin-tool-link,
    .admin-command-link,
    .category-item,
    .shop-mode-switch,
    .shop-context-pill,
    .plant-account-label,
    .status-pill,
    .customer-status-pill,
    .admin-payment-badge
) {
    border-radius: var(--theme-radius-pill, 48px) !important;
}

body.plant-body:not(.route-branding) #main-content :is(
    form:not(.plant-logout-form):not(.plant-mobile-logout-form):not(.inline-logout-form),
    fieldset,
    dialog,
    .card,
    .modal-content,
    .dropdown-menu,
    .admin-tools-menu-panel,
    .form-panel,
    .form-card,
    .checkout-card,
    .auth-card,
    .delivery-settings-card,
    .photo-edit-panel,
    .asset-card
) {
    border-radius: var(--theme-radius-card, 22px) !important;
    background-clip: padding-box !important;
}

body.plant-body:not(.route-branding) :is(
    .category-close,
    .image-preview-close,
    .photo-picker-close,
    .inline-clear-btn,
    .shop-card-qty-btn,
    .cart-qty-btn,
    .photo-drag-handle,
    .back-to-top-button
) {
    border-radius: var(--theme-radius-icon, 50%) !important;
}

@media (max-width: 48rem) {
    .global-developer-credit {
        display: none !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-user-developer-group {
        justify-content: center;
        width: 100%;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2 {
        font-size: clamp(2rem, var(--shop-header-mobile-title-vw, 12vw), var(--shop-header-mobile-title-max, 4rem)) !important;
    }

    body.plant-body.route-users.route-index #main-content :is(.user-list-toolbar, .user-list-toolbar-actions) {
        align-items: stretch;
        width: 100%;
    }

    body.plant-body.route-users.route-index #main-content .user-list-toolbar-actions > * {
        flex: 1 1 100%;
    }
}

/* 2026-07-15 identity and heading consistency pass. */
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill,
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill * {
    color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
    text-shadow: none !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill {
    border-color: rgba(var(--theme-page-header-rgb, var(--theme-primary-rgb, 17, 17, 17)), var(--theme-page-header-opacity, 1)) !important;
    background: rgba(var(--theme-page-header-rgb, var(--theme-primary-rgb, 17, 17, 17)), var(--theme-page-header-opacity, 1)) !important;
    background-image: none !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form label {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form .shop-page-size-select {
    font-size: 1rem !important;
    font-weight: 800 !important;
}

body.plant-body.route-shop.route-index #main-content .shop-storefront-title .shop-page-subtitle {
    display: block !important;
    width: 100% !important;
    text-align: var(--shop-slogan-alignment, left) !important;
}

/* Signed-in controls keep the identity/logout line at the top-right and the
   cart/order/mode/tools line at the bottom-right. This starts at tablet width
   while the phone layout remains a full-width vertical stack. */
@media (min-width: 48.01rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-right {
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        margin-left: auto !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav {
        display: grid !important;
        grid-template-columns: repeat(4, max-content) !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "identity identity identity logout"
            "cart orders mode tools" !important;
        align-content: space-between !important;
        align-items: center !important;
        justify-content: end !important;
        justify-items: end !important;
        gap: clamp(0.55rem, 1vw, 0.8rem) !important;
        width: max-content !important;
        max-width: 100% !important;
        min-height: clamp(6.8rem, 9vw, 8rem) !important;
        margin: 0 0 0 auto !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-user-developer-group {
        grid-area: identity !important;
        justify-self: end !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .inline-logout-form {
        grid-area: logout !important;
        justify-self: end !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .cart-link-with-icon {
        grid-area: cart !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-my-orders-link {
        grid-area: orders !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-mode-switch {
        grid-area: mode !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-admin-tools-menu {
        grid-area: tools !important;
    }
}

/* Page title columns span the full available header area, matching Admin
   Shop. Long text stays on one line when space permits and wraps cleanly when
   it does not. */
body.plant-body #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading,
    .branding-header
) > :first-child {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.plant-body #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading,
    .branding-header
) :is(h1, h2) {
    max-width: none !important;
    font-family: var(--theme-font-heading, "Montserrat", "Segoe UI", Arial, sans-serif) !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* Branding uploads retain the locked Branding palette, but both the file
   control and native Browse button now have complete, matching corners. */
body.plant-body.route-branding #main-content .asset-card input[type="file"] {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0.25rem !important;
    overflow: hidden !important;
    border: 1px solid #aeb8c7 !important;
    border-radius: 12px !important;
    background: #f5f3ee !important;
    color: #172033 !important;
}

body.plant-body.route-branding #main-content .asset-card input[type="file"]::file-selector-button,
body.plant-body.route-branding #main-content .asset-card input[type="file"]::-webkit-file-upload-button {
    min-height: 2.4rem !important;
    margin: 0 0.65rem 0 0 !important;
    padding: 0.55rem 0.85rem !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #172033 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

/* Saved typography choices. The Branding editor stays on its fixed product
   font, while the unsaved browser preview uses its own --live-font variables. */
body.plant-body:not(.route-branding) {
    font-family: var(--theme-font-general, "Open Sans", "Segoe UI", Arial, sans-serif) !important;
}

body.plant-body:not(.route-branding) :is(
    button,
    input,
    select,
    textarea,
    table,
    .btn,
    .plant-menu,
    .shop-result-strip,
    .shop-pager,
    .shop-card,
    .product-card,
    .auth-card,
    .checkout-card
) {
    font-family: var(--theme-font-general, "Open Sans", "Segoe UI", Arial, sans-serif) !important;
}

body.plant-body:not(.route-branding) :is(
    h1,
    h2,
    .shop-title,
    .shop-page-title,
    .shop-storefront-title h2,
    .auth-card > h2,
    .checkout-heading-row h1
) {
    font-family: var(--theme-font-heading, "Montserrat", "Segoe UI", Arial, sans-serif) !important;
}

body.plant-body:not(.route-branding) :is(
    h3,
    h4,
    h5,
    h6,
    .shop-page-subtitle,
    .product-card-title,
    .shop-card-title,
    .admin-collapsible-title
) {
    font-family: var(--theme-font-subheading, "Poppins", "Segoe UI", Arial, sans-serif) !important;
}

/* Admin Shop catalogue toolbar: one balanced control line followed by a
   genuinely centred pager. */
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip {
    display: grid !important;
    grid-template-columns: auto auto minmax(15rem, 1fr) auto !important;
    grid-template-areas:
        "title count notice pagesize"
        "pager pager pager pager" !important;
    align-items: center !important;
    column-gap: clamp(0.65rem, 1.35vw, 1.15rem) !important;
    row-gap: 0.8rem !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip > .shop-result-title-wrap {
    grid-area: title;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    min-height: 3rem !important;
    white-space: nowrap;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip > .shop-result-title-wrap > span,
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-result-actions > strong,
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill {
    font-size: clamp(0.95rem, 1vw, 1.08rem) !important;
    line-height: 1.15 !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip > .shop-result-title-wrap .category-toggle-inline {
    min-height: 3rem !important;
    padding-block: 0.65rem !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip > .shop-result-actions {
    display: contents !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-result-actions > strong {
    grid-area: count;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 3rem !important;
    min-width: 7.25rem !important;
    margin: 0 !important;
    padding: 0.65rem 0.85rem !important;
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.72) !important;
    border-radius: var(--theme-radius-control, 13px) !important;
    background: rgba(var(--theme-card-secondary-rgb, 243, 246, 250), var(--theme-panel-alpha, 0.96)) !important;
    color: var(--theme-safe-card-secondary-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-secondary-text, #172033) !important;
    white-space: nowrap !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill {
    grid-area: notice;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 3rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.65rem 0.9rem !important;
    white-space: nowrap !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form {
    grid-area: pagesize;
    justify-self: end;
    width: auto !important;
    margin: 0 !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form label {
    min-height: 3rem !important;
    padding: 0.28rem 0.3rem 0.28rem 0.72rem !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form .shop-page-size-select {
    width: 4.5rem !important;
    min-width: 4.5rem !important;
    height: 2.2rem !important;
    font-size: 0.98rem !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-pager-inline {
    grid-area: pager;
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

body.plant-body.route-shop.route-index #main-content :is(.shop-pager-inline, .shop-pager-bottom) {
    margin-inline: auto !important;
    justify-content: center !important;
}

@media (max-width: 74rem) {
    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip {
        grid-template-columns: auto auto minmax(0, 1fr) !important;
        grid-template-areas:
            "title count pagesize"
            "notice notice notice"
            "pager pager pager" !important;
    }

    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill {
        justify-self: stretch !important;
    }
}

@media (max-width: 48rem) {
    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "title title"
            "count pagesize"
            "notice notice"
            "pager pager" !important;
    }

    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip > .shop-result-title-wrap {
        justify-content: space-between !important;
        white-space: normal;
    }

    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-result-actions > strong {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.plant-body.route-shop.route-index #main-content :is(.admin-shop-result-strip .shop-pager-inline, .client-shop-pager) {
        justify-content: center !important;
    }
}

@media (max-width: 30rem) {
    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "title"
            "count"
            "pagesize"
            "notice"
            "pager" !important;
    }

    body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form {
        justify-self: center;
    }
}

/* Bulk online picker: selected rows must remain unmistakable after the
   theme-compliance table colors have been applied. */
body.plant-body.route-shop.route-index #main-content [data-online-picker-modal] .photo-picker-table tbody tr[data-barcode] {
    cursor: pointer;
}

body.plant-body.route-shop.route-index #main-content [data-online-picker-modal] .photo-picker-table tbody tr.is-selected td {
    background: var(--shop-button-bg, #0f6cbd) !important;
    background-image: none !important;
    border-color: var(--shop-button-bg, #0f6cbd) !important;
    color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    font-weight: 800 !important;
}

body.plant-body.route-shop.route-index #main-content [data-online-picker-modal] .photo-picker-table tbody tr.is-selected td:first-child {
    position: relative;
    padding-left: 2.45rem !important;
    box-shadow: inset 0.35rem 0 0 var(--plant-gold, #d6e4f2) !important;
}

body.plant-body.route-shop.route-index #main-content [data-online-picker-modal] .photo-picker-table tbody tr.is-selected td:first-child::before {
    content: "✓";
    position: absolute;
    left: 0.85rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: var(--theme-radius-icon, 50%);
    background: var(--plant-gold, #d6e4f2);
    color: var(--theme-safe-secondary-text, #172033);
    -webkit-text-fill-color: var(--theme-safe-secondary-text, #172033);
    font-size: 0.78rem;
    font-weight: 900;
    transform: translateY(-50%);
}

body.plant-body.route-shop.route-index #main-content [data-online-picker-modal] .photo-picker-table tbody tr.is-selected .online-state {
    background: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    border-color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    color: var(--shop-button-bg, #0f6cbd) !important;
    -webkit-text-fill-color: var(--shop-button-bg, #0f6cbd) !important;
}

/* Storefront pagination follows the compact Plant Paradise layout: category
   controls left, page controls centered and the item total on the right. */
body.plant-body.route-shop.route-index #main-content .client-shop-result-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(0.65rem, 1.4vw, 1rem) !important;
}

body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-title-wrap {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
}

body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-actions {
    display: contents !important;
}

body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-actions > strong {
    grid-column: 3;
    justify-self: end;
    min-height: 2.65rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.78);
    border-radius: var(--theme-radius-control, 13px);
    background: rgba(var(--theme-card-secondary-rgb, 243, 246, 250), var(--theme-panel-alpha, 0.96));
    color: var(--theme-safe-card-secondary-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-card-secondary-text, #172033) !important;
}

body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .client-shop-pager {
    grid-column: 2;
    justify-self: center;
}

body.plant-body.route-shop.route-index #main-content .client-shop-pager {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(0.32rem, 0.75vw, 0.55rem) !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0.42rem 0.52rem !important;
    overflow-x: auto;
    border: 1px solid rgba(var(--theme-border-rgb, 199, 210, 223), 0.88) !important;
    border-radius: var(--theme-radius-pill, 48px) !important;
    background: rgba(var(--theme-card-secondary-rgb, 243, 246, 250), var(--theme-panel-alpha, 0.96)) !important;
    background-image: none !important;
    box-shadow: 0 0.35rem 1rem rgba(17, 32, 51, 0.12) !important;
    scrollbar-width: thin;
}

body.plant-body.route-shop.route-index #main-content .client-shop-pager .btn,
body.plant-body.route-shop.route-index #main-content .client-shop-pager .btn.disabled {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.7rem !important;
    min-height: 2.7rem !important;
    width: auto !important;
    padding: 0.55rem 0.85rem !important;
    border: 1px solid var(--plant-gold, #d6e4f2) !important;
    border-radius: var(--theme-radius-pill, 48px) !important;
    background: var(--plant-gold, #d6e4f2) !important;
    background-image: none !important;
    color: var(--theme-safe-secondary-text, #172033) !important;
    -webkit-text-fill-color: var(--theme-safe-secondary-text, #172033) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

body.plant-body.route-shop.route-index #main-content .client-shop-pager .btn.active,
body.plant-body.route-shop.route-index #main-content .client-shop-pager .btn[aria-current="page"] {
    border-color: var(--shop-button-bg, #0f6cbd) !important;
    background: var(--shop-button-bg, #0f6cbd) !important;
    color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    box-shadow: inset 0 0 0 2px var(--theme-safe-button-text, #ffffff), 0 0 0 2px var(--shop-button-bg, #0f6cbd) !important;
    transform: translateY(-1px);
}

body.plant-body.route-shop.route-index #main-content .client-shop-pager .btn:not(.disabled):not(.active):hover,
body.plant-body.route-shop.route-index #main-content .client-shop-pager .btn:not(.disabled):not(.active):focus-visible {
    filter: brightness(1.07) !important;
    transform: translateY(-1px);
}

body.plant-body.route-shop.route-index #main-content .client-shop-pager :is(.pager-status, .pager-status-bottom) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.plant-body.route-shop.route-index #main-content .client-shop-pager.shop-pager-bottom {
    margin: 1rem auto 0.45rem !important;
}

@media (max-width: 62rem) {
    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-title-wrap {
        grid-column: 1;
        grid-row: 1;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-actions > strong {
        grid-column: 2;
        grid-row: 1;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .client-shop-pager {
        grid-column: 1 / -1;
        grid-row: 2;
        width: fit-content !important;
        max-width: 100% !important;
    }
}

@media (max-width: 42rem) {
    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-title-wrap,
    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-actions > strong,
    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .client-shop-pager {
        grid-column: 1;
        justify-self: stretch;
        width: 100% !important;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-title-wrap {
        grid-row: 1;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .shop-result-actions > strong {
        grid-row: 2;
        text-align: center;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-result-strip .client-shop-pager {
        grid-row: 3;
    }

    body.plant-body.route-shop.route-index #main-content .client-shop-pager {
        justify-content: flex-start !important;
    }
}

/* Optional storefront categories. Admin Shop keeps the category tools even
   when the customer-facing category navigation is disabled. */
body.plant-body.route-shop.route-index #main-content .right-category-layout.categories-disabled {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.plant-body.route-shop.route-index #main-content .right-category-layout.categories-disabled .product-area {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Signed-in desktop header order:
   row 1 = user/developer, logout
   row 2 = cart, orders, shop switch, admin tools. */
@media (min-width: 64rem) {
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav {
        display: grid !important;
        grid-template-columns: repeat(4, max-content) !important;
        grid-template-areas:
            "identity identity identity logout"
            "cart orders mode tools" !important;
        align-items: center !important;
        justify-content: end !important;
        gap: 0.7rem !important;
        width: max-content !important;
        max-width: 100% !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-user-developer-group {
        grid-area: identity;
        justify-self: end;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .inline-logout-form {
        grid-area: logout;
        justify-self: end;
        margin: 0 !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .cart-link-with-icon {
        grid-area: cart;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-my-orders-link {
        grid-area: orders;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-mode-switch {
        grid-area: mode;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-admin-tools-menu {
        grid-area: tools;
    }
}

/* ========================================================================== 
   Unified Admin Tools design system
   --------------------------------------------------------------------------
   This is intentionally the final stylesheet authority. Admin Shop and the
   customer Shop established the visual language; every administrative route
   now reuses the same theme surfaces, contrast-safe headings, controls,
   spacing and responsive breakpoints.
   ========================================================================== */

body.plant-body.admin-workspace {
    --admin-unity-header-bg: rgba(var(--theme-page-header-rgb, var(--theme-primary-rgb, 31, 58, 95)), var(--theme-page-header-opacity, 1));
    --admin-unity-header-text: var(--shop-header-text, var(--theme-admin-header-text, #ffffff));
    --admin-unity-card-bg: rgba(var(--theme-card-rgb, 255, 255, 255), 0.98);
    --admin-unity-card-text: var(--theme-admin-card-text, var(--theme-safe-card-text, #111111));
    --admin-unity-panel-bg: rgba(var(--theme-card-secondary-rgb, 245, 247, 251), 0.96);
    --admin-unity-panel-text: var(--theme-admin-card-secondary-text, var(--theme-safe-card-secondary-text, #111111));
    --admin-unity-border: rgba(var(--theme-border-rgb, 210, 218, 230), 0.82);
    --admin-unity-shell-bg: rgba(var(--theme-primary-rgb, 31, 58, 95), 0.16);
}

/* Branding remains lockout-safe but follows the same layout and hierarchy. */
body.plant-body.admin-workspace.route-branding {
    --admin-unity-header-bg: #243a57;
    --admin-unity-header-text: #ffffff;
    --admin-unity-card-bg: #ffffff;
    --admin-unity-card-text: #172033;
    --admin-unity-panel-bg: #eef3f8;
    --admin-unity-panel-text: #172033;
    --admin-unity-border: #c7d2df;
    --admin-unity-shell-bg: rgba(36, 58, 87, 0.1);
}

body.plant-body.admin-workspace #main-content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page) {
    box-sizing: border-box !important;
    width: min(120rem, calc(100vw - clamp(0.8rem, 2.4vw, 2.5rem))) !important;
    max-width: min(120rem, calc(100vw - clamp(0.8rem, 2.4vw, 2.5rem))) !important;
    min-width: 0 !important;
    margin: clamp(0.45rem, 1.2vw, 1rem) auto !important;
    padding: clamp(0.55rem, 1.2vw, 1rem) !important;
    border: 1px solid var(--admin-unity-border) !important;
    border-radius: var(--theme-radius-shell, 25px) !important;
    background: var(--admin-unity-shell-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-panel-text) !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* One page-heading component on every admin route. */
body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
    > :is(.shop-section-heading, .branding-header):first-child {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 8rem !important;
    margin: 0 0 clamp(0.75rem, 1.3vw, 1rem) !important;
    padding: clamp(0.9rem, 2vw, 1.35rem) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: clamp(0.8rem, 1.8vw, 1.4rem) !important;
    border: 1px solid var(--admin-unity-border) !important;
    border-radius: var(--theme-radius-shell, 25px) !important;
    background: var(--admin-unity-header-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-header-text) !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
    > :is(.shop-section-heading, .branding-header):first-child > :first-child,
body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
    > :is(.shop-section-heading, .branding-header):first-child > :first-child * {
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
    text-shadow: none !important;
}

body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
    > :is(.shop-section-heading, .branding-header):first-child :is(h1, h2) {
    margin: 0 !important;
    font-size: clamp(1.8rem, 2.6vw, 3rem) !important;
    line-height: 1.05 !important;
}

body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
    > :is(.shop-section-heading, .branding-header):first-child > :first-child :is(p, span, .shop-muted) {
    display: block !important;
    margin: 0.35rem 0 0 !important;
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
    opacity: 0.88 !important;
    font-size: clamp(0.78rem, 1vw, 0.95rem) !important;
    line-height: 1.35 !important;
}

body.plant-body.admin-workspace #main-content .admin-inline-heading-actions,
body.plant-body.admin-workspace #main-content .online-sales-header-actions,
body.plant-body.admin-workspace #main-content .branding-header-actions,
body.plant-body.admin-workspace #main-content .admin-command-header-actions {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
}

body.plant-body.admin-workspace #main-content .admin-header-user-label {
    min-height: 2.65rem !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
}

/* Shared cards, forms and toolbars. */
body.plant-body.admin-workspace #main-content :is(
    .admin-settings-form,
    .system-settings-card,
    .delivery-settings-card,
    .responsive-form-card,
    .online-sales-dashboard,
    .reports-dashboard-content,
    .reports-filter-card,
    .shop-filter-panel,
    .delivery-distance-layout,
    .photo-upload-toolbar,
    .user-list-toolbar,
    .permission-help-card,
    .admin-note-card,
    .admin-sticky-actions,
    .sticky-admin-actions
) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 1px solid var(--admin-unity-border) !important;
    border-radius: var(--theme-radius-card, 22px) !important;
    background: var(--admin-unity-panel-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-panel-text) !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(.admin-settings-form, .system-settings-card, .delivery-settings-card) {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(0.85rem, 1.5vw, 1.15rem) !important;
    padding: clamp(0.75rem, 1.4vw, 1.1rem) !important;
}

body.plant-body.admin-workspace #main-content :is(
    .admin-panel-card,
    .admin-sub-card,
    .checkout-form-section,
    .delivery-pricing-example-card,
    .delivery-distance-card,
    .delivery-distance-summary,
    .delivery-distance-result-card,
    .email-test-card,
    .reports-filter-card,
    .report-chart-card,
    .report-summary-card,
    .admin-summary-card,
    .shop-card,
    .photo-upload-accordion,
    .inline-search-strip,
    .server-search-strip,
    .admin-date-filter-panel,
    .admin-empty-card
) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 1px solid var(--admin-unity-border) !important;
    border-radius: var(--theme-radius-panel, 17px) !important;
    background: var(--admin-unity-card-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-card-text) !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(.admin-panel-card, .admin-sub-card, .checkout-form-section) {
    padding: clamp(0.75rem, 1.4vw, 1.05rem) !important;
}

body.plant-body.admin-workspace #main-content :is(
    .delivery-distance-card,
    .delivery-distance-summary,
    .delivery-distance-result-card,
    .reports-filter-card,
    .report-chart-card,
    .report-summary-card,
    .shop-filter-panel,
    .shop-card
) {
    padding: clamp(0.75rem, 1.4vw, 1.05rem) !important;
}

/* Section headings use the same high-contrast primary treatment as page headers. */
body.plant-body.admin-workspace #main-content :is(
    .admin-date-filter-title,
    .checkout-form-section-title,
    .delivery-example-heading,
    .online-sales-brand,
    .admin-panel-card > h3,
    .admin-sub-card > h4,
    .email-test-card > h4,
    .user-list-toolbar > h3
) {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 0.7rem !important;
    padding: 0.7rem 0.85rem !important;
    border: 1px solid rgba(var(--theme-border-rgb, 210, 218, 230), 0.72) !important;
    border-radius: var(--theme-radius-control, 13px) !important;
    background: var(--admin-unity-header-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
    font-size: clamp(0.92rem, 1.2vw, 1.08rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(
    .admin-date-filter-title,
    .checkout-form-section-title,
    .delivery-example-heading,
    .online-sales-brand,
    .admin-panel-card > h3,
    .admin-sub-card > h4,
    .email-test-card > h4,
    .user-list-toolbar > h3
) * {
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
    text-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(
    .admin-panel-card,
    .admin-sub-card,
    .checkout-form-section,
    .admin-summary-card,
    .delivery-distance-card,
    .delivery-distance-summary,
    .delivery-distance-result-card,
    .reports-filter-card,
    .report-chart-card,
    .report-summary-card,
    .shop-filter-panel,
    .shop-card
)
    :is(p, span, label, small, strong) {
    color: var(--admin-unity-card-text) !important;
    -webkit-text-fill-color: var(--admin-unity-card-text) !important;
    text-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(.admin-panel-card, .admin-sub-card, .checkout-form-section)
    :is(.shop-muted, .small-muted, small) {
    opacity: 0.78 !important;
}

/* The heading blocks above remain white/high-contrast instead of inheriting
   the normal card text from the broader content rule. */
body.plant-body.admin-workspace #main-content :is(
    .admin-date-filter-title,
    .checkout-form-section-title,
    .delivery-example-heading,
    .online-sales-brand,
    .admin-panel-card > h3,
    .admin-sub-card > h4,
    .email-test-card > h4,
    .user-list-toolbar > h3
),
body.plant-body.admin-workspace #main-content :is(
    .admin-date-filter-title,
    .checkout-form-section-title,
    .delivery-example-heading,
    .online-sales-brand,
    .admin-panel-card > h3,
    .admin-sub-card > h4,
    .email-test-card > h4,
    .user-list-toolbar > h3
) * {
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
}

/* Online Sales dashboard and its previously unreadable filter title. */
body.plant-body.admin-workspace.route-orders #main-content .online-sales-dashboard-layout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.15fr) !important;
    gap: clamp(0.7rem, 1.4vw, 1rem) !important;
    padding: clamp(0.7rem, 1.4vw, 1rem) !important;
}

body.plant-body.admin-workspace.route-orders #main-content :is(.online-sales-summary-stack, .online-sales-totals-row, .online-sales-status-row) {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.plant-body.admin-workspace.route-orders #main-content .admin-summary-card,
body.plant-body.admin-workspace.route-reports #main-content .admin-summary-card {
    background: var(--admin-unity-card-bg) !important;
    color: var(--admin-unity-card-text) !important;
}

body.plant-body.admin-workspace.route-orders #main-content .admin-summary-card *,
body.plant-body.admin-workspace.route-reports #main-content .admin-summary-card * {
    color: var(--admin-unity-card-text) !important;
    -webkit-text-fill-color: var(--admin-unity-card-text) !important;
}

/* Tables follow one card/body/header treatment on every administrative page. */
body.plant-body.admin-workspace #main-content :is(
    .admin-orders-table-wrap,
    .admin-order-table-wrap,
    .permission-table-wrap,
    .shop-table-wrap,
    .audit-log-table-wrap
) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid var(--admin-unity-border) !important;
    border-radius: var(--theme-radius-panel, 17px) !important;
    background: var(--admin-unity-card-bg) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(
    .admin-orders-table,
    .admin-order-table,
    .permission-table,
    .shop-table,
    .audit-log-table
) {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    background: var(--admin-unity-card-bg) !important;
    color: var(--admin-unity-card-text) !important;
}

body.plant-body.admin-workspace #main-content :is(
    .admin-orders-table,
    .admin-order-table,
    .permission-table,
    .shop-table,
    .audit-log-table
) thead th {
    background: var(--admin-unity-header-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-header-text) !important;
    -webkit-text-fill-color: var(--admin-unity-header-text) !important;
    border-color: var(--admin-unity-border) !important;
    text-shadow: none !important;
}

body.plant-body.admin-workspace #main-content :is(
    .admin-orders-table,
    .admin-order-table,
    .permission-table,
    .shop-table,
    .audit-log-table
) tbody :is(tr, td) {
    background: var(--admin-unity-card-bg) !important;
    color: var(--admin-unity-card-text) !important;
    -webkit-text-fill-color: var(--admin-unity-card-text) !important;
    border-color: var(--admin-unity-border) !important;
    text-shadow: none !important;
}

/* Controls and checkbox rows retain client colours but always receive a
   contrast-safe text colour. */
body.plant-body.admin-workspace:not(.route-branding) #main-content :is(input, select, textarea, .form-control, .form-select) {
    box-sizing: border-box !important;
    max-width: 100% !important;
    background: var(--admin-unity-card-bg) !important;
    background-image: none !important;
    border-color: var(--admin-unity-border) !important;
    color: var(--admin-unity-card-text) !important;
    -webkit-text-fill-color: var(--admin-unity-card-text) !important;
    caret-color: var(--admin-unity-card-text) !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace:not(.route-branding) #main-content :is(input, textarea)::placeholder {
    color: var(--admin-unity-card-text) !important;
    -webkit-text-fill-color: var(--admin-unity-card-text) !important;
    opacity: 0.62 !important;
}

body.plant-body.admin-workspace:not(.route-branding) #main-content :is(
    .admin-inline-check,
    .admin-display-check,
    .delivery-enabled-check,
    .permission-toggle
) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.75rem !important;
    margin: 0.35rem 0 !important;
    padding: 0.65rem 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    border: 1px solid var(--shop-button-bg, #111111) !important;
    border-radius: var(--theme-radius-control, 13px) !important;
    background: var(--shop-button-bg, #111111) !important;
    background-image: none !important;
    color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: none !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace:not(.route-branding) #main-content :is(
    .admin-inline-check,
    .admin-display-check,
    .delivery-enabled-check,
    .permission-toggle
) > span,
body.plant-body.admin-workspace:not(.route-branding) #main-content :is(
    .admin-inline-check,
    .admin-display-check,
    .delivery-enabled-check,
    .permission-toggle
) > span * {
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
    font: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace:not(.route-branding) #main-content :is(
    .admin-inline-check,
    .admin-display-check,
    .delivery-enabled-check,
    .permission-toggle
) input[type="checkbox"] {
    flex: 0 0 1.15rem !important;
    width: 1.15rem !important;
    min-width: 1.15rem !important;
    height: 1.15rem !important;
    margin: 0 !important;
    accent-color: var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
}

/* System and Delivery Settings share exactly the same form rhythm. */
body.plant-body.admin-workspace #main-content :is(.admin-form-grid, .checkout-grid, .responsive-form-grid) {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
    gap: clamp(0.7rem, 1.3vw, 1rem) !important;
    align-items: start !important;
}

body.plant-body.admin-workspace.route-systemsettings #main-content .admin-two-column-grid,
body.plant-body.admin-workspace.route-systemsettings #main-content .email-settings-grid {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(0.8rem, 1.5vw, 1.1rem) !important;
    align-items: start !important;
}

body.plant-body.admin-workspace #main-content .admin-sticky-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    padding: 0.75rem !important;
}

body.plant-body.admin-workspace #main-content .admin-sticky-actions > * {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 64rem) {
    body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
        > :is(.shop-section-heading, .branding-header):first-child {
        min-height: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
    }

    body.plant-body.admin-workspace #main-content :is(
        .admin-inline-heading-actions,
        .online-sales-header-actions,
        .branding-header-actions,
        .admin-command-header-actions
    ) {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    body.plant-body.admin-workspace.route-orders #main-content .online-sales-dashboard-layout,
    body.plant-body.admin-workspace.route-systemsettings #main-content :is(.admin-two-column-grid, .email-settings-grid) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 42rem) {
    body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page) {
        width: calc(100vw - 0.5rem) !important;
        max-width: calc(100vw - 0.5rem) !important;
        margin: 0.25rem auto !important;
        padding: 0.4rem !important;
    }

    body.plant-body.admin-workspace #main-content > :is(.shop-section, .shop-page)
        > :is(.shop-section-heading, .branding-header):first-child {
        padding: 0.85rem !important;
    }

    body.plant-body.admin-workspace #main-content .admin-command-header-actions,
    body.plant-body.admin-workspace #main-content .admin-sticky-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.plant-body.admin-workspace #main-content .admin-command-header-actions > *,
    body.plant-body.admin-workspace #main-content .admin-sticky-actions > *,
    body.plant-body.admin-workspace #main-content .shared-admin-tools-menu,
    body.plant-body.admin-workspace #main-content .shared-admin-tools-menu > button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* The IQTech ownership badge is product-owned, not client-themeable. */
body.plant-body :is(
    .shop-developer-credit-link,
    .global-developer-credit,
    .live-preview-developer,
    .mobile-developer-credit
) {
    border-color: #4fb8d1 !important;
    background: #112b3a !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

body.plant-body:not(.route-branding) #main-content .shop-developer-credit-text,
body.plant-body:not(.route-branding) .global-developer-credit .shop-developer-credit-text,
body.plant-body.route-branding #main-content .live-preview-developer span,
body.plant-body .plant-mobile-menu a.mobile-developer-credit {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

body.plant-body .plant-mobile-menu a.mobile-developer-credit {
    border: 1px solid #4fb8d1 !important;
    background: #112b3a !important;
    background-image: none !important;
}

body.plant-body :is(
    .shop-developer-credit-link,
    .global-developer-credit,
    .live-preview-developer,
    .mobile-developer-credit
) :is(span, strong, small) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

body.plant-body :is(
    .shop-developer-credit-link,
    .global-developer-credit,
    .live-preview-developer,
    .mobile-developer-credit
):is(:hover, :focus-visible) {
    border-color: #84d8ea !important;
    background: #193b4c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Shop/Admin Shop heading width and long-name fit.
   The company identity owns the larger desktop column and may extend toward
   the centre; the action area remains aligned at the right. */
body.plant-body.route-shop.route-index #main-content .shop-storefront-title,
body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2,
body.plant-body.route-shop.route-index #main-content .shop-storefront-title .shop-page-subtitle {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2 {
    font-size: var(--shop-fit-title-size, clamp(2rem, var(--shop-header-mobile-title-vw, 12vw), var(--shop-header-mobile-title-max, 4rem))) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

@media (min-width: 48.01rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2 {
        font-size: var(--shop-fit-title-size, clamp(2.35rem, var(--shop-header-title-vw, 4.2vw), var(--shop-header-title-max, 4.5rem))) !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 68.01rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-heading {
        grid-template-columns: minmax(0, 1.35fr) minmax(24rem, 0.65fr) !important;
        grid-template-areas: "brand actions" !important;
        align-items: center !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand {
        display: grid !important;
        grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) !important;
        grid-template-areas: "logo title" !important;
        align-items: center !important;
        gap: clamp(0.9rem, 1.6vw, 1.5rem) !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand .shop-page-logo-link {
        grid-area: logo !important;
        width: min(13rem, 14vw) !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand .shop-page-logo,
    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand .shop-page-logo.logo-left {
        width: 100% !important;
        max-width: 13rem !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-title {
        grid-area: title !important;
        align-self: center !important;
        text-align: left !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2 {
        margin-inline: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-title .shop-page-subtitle {
        margin-inline: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-right {
        width: 100% !important;
        max-width: 48rem !important;
        justify-self: end !important;
    }
}

@media (min-width: 48.01rem) and (max-width: 68rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2 {
        white-space: nowrap !important;
    }
}

@media (max-width: 48rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-title h2,
    body.plant-body.route-shop.route-index #main-content .shop-storefront-title .shop-page-subtitle {
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* Final typography authority. This sits after legacy page-specific font rules
   so the three saved font categories remain consistent on every live page. */
body.plant-body:not(.route-branding) #main-content *,
body.plant-body:not(.route-branding) .plant-nav * {
    font-family: var(--theme-font-general, "Open Sans", "Segoe UI", Arial, sans-serif) !important;
}

body.plant-body:not(.route-branding) #main-content :is(
    h1,
    h2,
    .shop-title,
    .shop-page-title,
    .shop-storefront-title h2,
    .auth-card > h2,
    .checkout-heading-row h1
),
body.plant-body:not(.route-branding) .plant-nav :is(.plant-logo-fallback, h1, h2) {
    font-family: var(--theme-font-heading, "Montserrat", "Segoe UI", Arial, sans-serif) !important;
}

body.plant-body:not(.route-branding) #main-content :is(
    h3,
    h4,
    h5,
    h6,
    .shop-page-subtitle,
    .product-card-title,
    .shop-card-title,
    .admin-collapsible-title
) {
    font-family: var(--theme-font-subheading, "Poppins", "Segoe UI", Arial, sans-serif) !important;
}

/* A dedicated, opacity-aware page-header surface. It applies consistently to
   Shop, customer account and Admin page headings, while Themes & Branding
   remains on its fixed lockout-safe palette. */
body.plant-body:not(.route-branding) #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading
) {
    background: rgba(var(--theme-page-header-rgb, var(--theme-primary-rgb, 17, 17, 17)), var(--theme-page-header-opacity, var(--theme-panel-alpha, 1))) !important;
    background-image: none !important;
}

/* Logout keeps a concise label but now matches the visual scale of the other
   Shop header controls. */
body.plant-body.route-shop.route-index #main-content .local-shop-nav .inline-logout-form {
    display: inline-flex !important;
    align-items: stretch !important;
    margin: 0 !important;
}

body.plant-body.route-shop.route-index #main-content .local-shop-nav .inline-logout-form > button {
    box-sizing: border-box !important;
    min-width: clamp(7rem, 8vw, 8.25rem) !important;
    min-height: 3.3rem !important;
    padding: 0.72rem 1.15rem !important;
    font-size: clamp(0.9rem, 0.9vw, 1rem) !important;
    line-height: 1.1 !important;
}

@media (max-width: 48rem) {
    body.plant-body.route-shop.route-index #main-content .local-shop-nav .inline-logout-form,
    body.plant-body.route-shop.route-index #main-content .local-shop-nav .inline-logout-form > button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Final authority for the current identity/header pass. */
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill,
body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill * {
    color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
    text-shadow: none !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .admin-view-pill {
    border-color: rgba(var(--theme-page-header-rgb, var(--theme-primary-rgb, 17, 17, 17)), var(--theme-page-header-opacity, 1)) !important;
    background: rgba(var(--theme-page-header-rgb, var(--theme-primary-rgb, 17, 17, 17)), var(--theme-page-header-opacity, 1)) !important;
    background-image: none !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form label {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

body.plant-body.route-shop.route-index #main-content .admin-shop-result-strip .shop-page-size-form .shop-page-size-select {
    font-size: 1rem !important;
    font-weight: 800 !important;
}

body.plant-body.route-shop.route-index #main-content .shop-storefront-title .shop-page-subtitle {
    display: block !important;
    width: min(100%, var(--shop-heading-content-width, 100%)) !important;
    margin-inline: 0 !important;
    text-align: var(--shop-slogan-alignment, left) !important;
}

body.plant-body #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading,
    .branding-header
) > :first-child {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.plant-body #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading,
    .branding-header
) :is(h1, h2) {
    max-width: none !important;
    font-family: var(--theme-font-heading, "Montserrat", "Segoe UI", Arial, sans-serif) !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

body.plant-body.route-branding #main-content .asset-card input[type="file"] {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0.25rem !important;
    overflow: hidden !important;
    border: 1px solid #aeb8c7 !important;
    border-radius: 12px !important;
    background: #f5f3ee !important;
    color: #172033 !important;
}

body.plant-body.route-branding #main-content .asset-card input[type="file"]::file-selector-button,
body.plant-body.route-branding #main-content .asset-card input[type="file"]::-webkit-file-upload-button {
    min-height: 2.4rem !important;
    margin: 0 0.65rem 0 0 !important;
    padding: 0.55rem 0.85rem !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #172033 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

@media (min-width: 48.01rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-right {
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        margin-left: auto !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav {
        display: grid !important;
        grid-template-columns: repeat(4, max-content) !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "identity identity identity logout"
            "cart orders mode tools" !important;
        align-content: space-between !important;
        align-items: center !important;
        justify-content: end !important;
        justify-items: end !important;
        gap: clamp(0.55rem, 1vw, 0.8rem) !important;
        width: max-content !important;
        max-width: 100% !important;
        min-height: clamp(6.8rem, 9vw, 8rem) !important;
        margin: 0 0 0 auto !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-user-developer-group { grid-area: identity !important; justify-self: end !important; }
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .inline-logout-form { grid-area: logout !important; justify-self: end !important; }
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .cart-link-with-icon { grid-area: cart !important; }
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-my-orders-link { grid-area: orders !important; }
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-mode-switch { grid-area: mode !important; }
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav .shop-admin-tools-menu { grid-area: tools !important; }
}

/* One action-button treatment for every admin page header. This intentionally
   excludes the signed-in user pill, which remains a transparent identity
   label on the header card. */
body.plant-body.admin-workspace #main-content .admin-command-header-actions :is(
    .admin-tools-summary,
    a.btn,
    button.btn,
    .admin-header-admin-shop-link,
    .admin-header-logout-button
) {
    background: var(--shop-button-bg, #e2e5e9) !important;
    background-image: none !important;
    border-color: var(--shop-button-bg, #e2e5e9) !important;
    color: var(--theme-safe-button-text, var(--shop-button-text, #111111)) !important;
    -webkit-text-fill-color: var(--theme-safe-button-text, var(--shop-button-text, #111111)) !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body.plant-body.admin-workspace #main-content .admin-command-header-actions :is(
    .admin-tools-summary,
    a.btn,
    button.btn,
    .admin-header-admin-shop-link,
    .admin-header-logout-button
) :is(span, strong) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* 2026-07-16 shared surface contrast and identity layout authority. */
body.plant-body.admin-workspace:not(.route-branding) {
    --admin-unity-header-text: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff));
    --admin-unity-card-text: var(--theme-safe-card-text, #111111);
    --admin-unity-panel-text: var(--theme-safe-card-secondary-text, #111111);
}

body.plant-body:not(.route-branding) #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading
) {
    color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
}

body.plant-body:not(.route-branding) #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading
) > :first-child,
body.plant-body:not(.route-branding) #main-content :is(
    .shop-section-heading,
    .shop-storefront-heading,
    .shop-page-header,
    .shop-hero-header,
    .auth-heading-row,
    .checkout-heading-row,
    .admin-inline-page-heading,
    .online-sales-heading,
    .inner-heading
) > :first-child * {
    color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--theme-safe-page-header-text, var(--shop-header-text, #ffffff)) !important;
    text-shadow: none !important;
}

/* Online Sales keeps the rounded search control but drops the second square
   card surface which was visible behind it. */
body.plant-body.admin-workspace.route-shop.route-orders #main-content .inline-search-strip {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.plant-body.admin-workspace.route-shop.route-orders #main-content .inline-search-strip .inline-search-box {
    min-height: 3rem !important;
    padding: 0.2rem 0.65rem !important;
    border: 1px solid var(--admin-unity-border) !important;
    border-radius: var(--theme-radius-control, 13px) !important;
    background: var(--admin-unity-card-bg) !important;
    background-image: none !important;
    color: var(--admin-unity-card-text) !important;
    overflow: hidden !important;
}

@media (min-width: 48.01rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand:is(.shop-heading-right, .shop-heading-under) .shop-page-logo-link {
        grid-area: logo !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand:is(.shop-heading-right, .shop-heading-under) .shop-storefront-title {
        grid-area: title !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand.shop-heading-right {
        display: grid !important;
        grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) !important;
        grid-template-areas: "logo title" !important;
        align-items: center !important;
        justify-items: start !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand.shop-heading-under {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "logo"
            "title" !important;
        align-content: center !important;
        justify-items: start !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand.shop-heading-under .shop-storefront-title {
        width: 100% !important;
        max-width: 100% !important;
        justify-self: start !important;
    }
}

@media (max-width: 48rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand:is(.shop-heading-right, .shop-heading-under) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "logo"
            "title" !important;
        justify-items: center !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand:is(.shop-heading-right, .shop-heading-under) .shop-page-logo-link {
        grid-area: logo !important;
    }

    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand:is(.shop-heading-right, .shop-heading-under) .shop-storefront-title {
        grid-area: title !important;
    }
}

/* 2026-07-17 storefront sizing and signed-in layout corrections. */
body.plant-body.route-shop.route-index #main-content .shop-storefront-brand .shop-page-logo-link {
    box-sizing: border-box !important;
    width: min(100%, clamp(7rem, var(--shop-logo-width-vw, 18vw), var(--shop-logo-width-max, 15rem))) !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.plant-body.route-shop.route-index #main-content .shop-storefront-brand :is(.shop-page-logo, .shop-page-logo.logo-left, .shop-page-logo-placeholder) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* A one-result category keeps the selected card at its configured card size
   instead of stretching it across the complete desktop content area. */
body.plant-body.route-shop.route-index #main-content .shop-grid-small {
    --shop-product-card-max: 16rem;
}

body.plant-body.route-shop.route-index #main-content .shop-grid-medium {
    --shop-product-card-max: 20rem;
}

body.plant-body.route-shop.route-index #main-content .shop-grid-large {
    --shop-product-card-max: 24rem;
}

body.plant-body.route-shop.route-index #main-content :is(.product-grid, .product-grid.takealot-grid) {
    grid-template-columns: repeat(
        auto-fill,
        minmax(
            min(100%, var(--shop-product-grid-min, 15.5rem)),
            var(--shop-product-card-max, 20rem)
        )
    ) !important;
    justify-content: start !important;
    justify-items: stretch !important;
}

body.plant-body.route-shop.route-index #main-content :is(.product-grid, .product-grid.takealot-grid) > .product-card {
    width: 100% !important;
    max-width: var(--shop-product-card-max, 20rem) !important;
    justify-self: start !important;
}

/* The cart action already has an accessible label. Suppress the old hover
   bubble (which rendered as an empty pill in some states) and make the mobile
   icon a strong, fixed-size target with theme-aware contrast. */
body.plant-body.route-shop.route-index #main-content .btn-cart-icon::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 48rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-brand .shop-page-logo-link {
        width: min(var(--shop-logo-mobile-width-vw, 52vw), var(--shop-logo-mobile-width-max, 13.5rem), 82vw) !important;
        max-width: 82vw !important;
    }

    body.plant-body.route-shop.route-index #main-content :is(.product-grid, .product-grid.takealot-grid) {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center !important;
    }

    body.plant-body.route-shop.route-index #main-content :is(.product-grid, .product-grid.takealot-grid) > .product-card {
        width: min(100%, 28rem) !important;
        max-width: 28rem !important;
        justify-self: center !important;
    }

    body.plant-body.route-shop.route-index #main-content .product-card .btn-cart-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 3.1rem !important;
        width: 3.1rem !important;
        min-width: 3.1rem !important;
        height: 3.1rem !important;
        min-height: 3.1rem !important;
        padding: 0 !important;
        border: 2px solid var(--theme-safe-button-text, var(--shop-button-text, #ffffff)) !important;
        background: var(--shop-button-bg, #111111) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.plant-body.route-shop.route-index #main-content .product-card .btn-cart-icon :is(.cart-plus-icon, .cart-plus-img) {
        display: block !important;
        flex: 0 0 1.7rem !important;
        width: 1.7rem !important;
        min-width: 1.7rem !important;
        height: 1.7rem !important;
        min-height: 1.7rem !important;
        max-width: 1.7rem !important;
        max-height: 1.7rem !important;
        object-fit: contain !important;
        filter: var(--theme-button-icon-filter, brightness(0) invert(1)) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (min-width: 48.01rem) {
    body.plant-body.route-shop.route-index #main-content .shop-storefront-right {
        width: max-content !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline-start: auto !important;
        justify-self: end !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav {
        justify-self: end !important;
        margin-inline-start: auto !important;
    }

    /* Customer accounts have no admin controls. Put Cart and My Orders in the
       two rightmost cells so they align with Logout instead of leaving blank
       admin-only columns on the right. */
    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav.shopper-controls-only {
        grid-template-areas:
            "identity identity identity logout"
            ". . cart orders" !important;
    }

    body.plant-body.route-shop.route-index #main-content .local-shop-nav.signed-shop-nav :is(
        .shop-cart-link,
        .mode-switch-btn,
        .admin-tools-summary
    ) {
        min-height: 2.9rem !important;
        box-sizing: border-box !important;
    }
}
/* Gold can start on the application schema before the separate UltiSales sync is connected. */
.database-integration-warning {
    width: min(1180px, calc(100% - 32px));
    margin: 12px auto 0;
    position: relative;
    z-index: 3;
}

.database-integration-warning a {
    margin-left: .4rem;
    font-weight: 800;
}
/* Bronze/Silver local stock management */
.stock-management-page,
.stock-editor-page {
    display: grid;
    gap: 1rem;
}

.stock-management-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.stock-management-summary > div {
    display: grid;
    gap: .2rem;
    padding: .8rem;
    border: 1px solid var(--shop-border, #c7d2df);
    border-radius: var(--shop-radius, 12px);
    background: var(--shop-card-secondary-bg, rgba(255,255,255,.06));
}

.stock-management-summary strong {
    font-size: 1.4rem;
}

.stock-danger-summary strong,
.stock-management-table tr.is-low-stock > td:nth-child(3),
.stock-management-table tr.is-low-stock > td:nth-child(4) {
    color: #d94841;
}

.stock-management-filter {
    display: flex;
    align-items: end;
    gap: .75rem;
    flex-wrap: wrap;
}

.stock-management-filter label {
    display: grid;
    gap: .3rem;
}

.stock-management-search {
    flex: 1 1 320px;
}

.stock-management-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--shop-border, #c7d2df);
    border-radius: var(--shop-radius, 12px);
}

.stock-management-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: inherit;
}

.stock-management-table th,
.stock-management-table td {
    padding: .75rem;
    border-bottom: 1px solid var(--shop-border, #c7d2df);
    text-align: left;
    vertical-align: middle;
}

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

.stock-management-table td:first-child {
    display: grid;
    gap: .2rem;
}

.stock-management-table small {
    color: var(--shop-muted-font, currentColor);
    opacity: .8;
}

.stock-management-empty {
    text-align: center !important;
    padding: 2rem !important;
}

.stock-status-pill {
    display: inline-flex;
    padding: .25rem .55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}

.stock-status-pill.hidden {
    opacity: .65;
}

.stock-editor-form {
    display: grid;
    gap: 1rem;
}

.stock-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.stock-editor-grid label {
    display: grid;
    gap: .35rem;
}

.stock-editor-toggles,
.stock-editor-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stock-editor-toggles small {
    flex-basis: 100%;
}

.database-tier-error {
    border-width: 2px;
}

@media (max-width: 720px) {
    .stock-management-summary,
    .stock-editor-grid {
        grid-template-columns: 1fr;
    }

    .stock-management-filter > * {
        width: 100%;
    }
}

.go-live-checklist {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.go-live-checklist-head,
.go-live-check-item > div,
.go-live-checklist-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.go-live-checklist-head h3,
.go-live-check-item p,
.go-live-checklist-result {
    margin: 0;
}

.go-live-stage-pill,
.go-live-check-item > div > span {
    display: inline-flex;
    padding: .28rem .6rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.go-live-progress {
    height: .65rem;
    overflow: hidden;
    border: 1px solid var(--plant-border, currentColor);
    border-radius: 999px;
    background: var(--shop-card-secondary-bg, rgba(127, 127, 127, .16));
}

.go-live-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--shop-button-bg, #2878bd);
}

.go-live-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: .75rem;
}

.go-live-check-item {
    display: grid;
    align-content: start;
    gap: .55rem;
    padding: .8rem;
    border: 1px solid var(--plant-border, currentColor);
    border-left-width: .4rem;
    border-radius: .75rem;
}

.go-live-check-item.ready {
    border-left-color: #17823b;
}

.go-live-check-item.blocked {
    border-left-color: #c02d2d;
}

.go-live-check-item.pending {
    border-left-color: #d58b00;
}

.go-live-check-item p {
    font-size: .87rem;
    opacity: .82;
}

/* Safe pre-launch storefront state. */
.storefront-publishing-settings > label:not(.admin-inline-check) {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
}

.storefront-unavailable-shell {
    min-height: min(70vh, 46rem);
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 5vw, 4rem);
}

.storefront-unavailable-card {
    width: min(100%, 44rem);
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid var(--plant-border, currentColor);
    border-radius: var(--shop-corner-radius, 1.5rem);
    background: var(--shop-card-bg, rgba(255, 255, 255, .92));
    color: var(--shop-font, inherit);
    text-align: center;
}

.storefront-unavailable-logo {
    display: block;
    width: auto;
    max-width: min(100%, 16rem);
    max-height: 8rem;
    object-fit: contain;
}

.storefront-unavailable-kicker {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .72;
}

.storefront-unavailable-card :is(h1, p) {
    margin: 0;
}

.order-print-meta {
    display: none;
}

.deployment-stage-banner {
    position: relative;
    z-index: 1100;
    width: 100%;
    padding: .4rem 1rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    color: #111 !important;
}

.deployment-stage-banner.development-testing {
    background: #ffd966 !important;
}

.deployment-stage-banner.live-testing {
    background: #ff9f43 !important;
}

.simulated-data-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: .25rem;
    padding: .2rem .45rem;
    border: 1px solid #9b5de5;
    border-radius: 999px;
    background: #efe3ff !important;
    color: #3d136d !important;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.simulated-data-alert {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.stock-import-page {
    display: grid;
    gap: 1rem;
}

.stock-import-upload-form,
.stock-import-confirm {
    display: flex;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.stock-import-upload-form label {
    display: grid;
    gap: .4rem;
    flex: 1 1 24rem;
}

.stock-import-columns summary {
    cursor: pointer;
    font-weight: 800;
}

.stock-import-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.stock-import-column-grid > span {
    display: grid;
    gap: .2rem;
    padding: .65rem;
    border: 1px solid var(--plant-border, currentColor);
    border-radius: .65rem;
}

.stock-import-column-grid small {
    opacity: .75;
}

.stock-import-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}

.stock-import-summary > div {
    display: grid;
    gap: .2rem;
    text-align: center;
}

.stock-import-summary strong {
    font-size: 1.4rem;
}

.stock-import-confirm span {
    opacity: .8;
}

.stock-import-preview-table td:first-child {
    display: table-cell;
}

.stock-import-preview-table td:nth-child(3),
.stock-import-preview-table td:last-child {
    display: grid;
    gap: .25rem;
}

.stock-import-errors ul {
    margin: .5rem 0 0;
}

@media (max-width: 720px) {
    .stock-import-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-import-upload-form > *,
    .stock-import-confirm > * {
        width: 100%;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body.plant-body {
        background: #fff !important;
        color: #111 !important;
    }

    body.plant-body > :not(.container):not(main),
    body.plant-body .plant-nav,
    body.plant-body .plant-footer {
        display: none !important;
    }

    body.plant-body main,
    body.plant-body .container,
    #order-details {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    #order-details .shop-heading-actions,
    #order-details .admin-status-update-card,
    #order-details .admin-note-card.manual-takeover-summary,
    #order-details .manual-takeover-modal-backdrop,
    #order-details .alert,
    #order-details .order-status-history-card {
        display: none !important;
    }

    #order-details .order-print-meta {
        display: block !important;
        margin: 0 0 10mm;
        color: #444 !important;
        font-size: 9pt;
    }

    #order-details .admin-order-detail-scroll,
    #order-details .admin-orders-table-wrap {
        overflow: visible !important;
        max-height: none !important;
    }

    #order-details .admin-order-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #order-details :is(.admin-detail-card, .admin-orders-table-wrap, .admin-detail-section-head) {
        break-inside: avoid;
        background: #fff !important;
        color: #111 !important;
        border-color: #777 !important;
        box-shadow: none !important;
    }

    #order-details :is(h2, h3, span, strong, td, th, p, button) {
        color: #111 !important;
        text-shadow: none !important;
    }

    #order-details button.copy-value-btn {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    #order-details table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 9pt;
    }

    #order-details :is(th, td) {
        border: 1px solid #999 !important;
        padding: 5px !important;
    }
}
