:root {
    --ink: #141414;
    --muted: #6d7280;
    --line: #e8e8e8;
    --surface: #ffffff;
    --soft: #f6f7f8;
    --accent: #0f766e;
    --accent-dark: #0b4f49;
    --danger: #b42318;
    --success: #087443;
    --shadow: 0 18px 55px rgba(20, 20, 20, .08);
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
}

/* Admin categories rebrand */
.categories-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.categories-workbench > * {
    min-width: 0;
}

.category-demo-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
}

.category-demo-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.category-demo-alert strong,
.category-demo-alert span {
    display: block;
}

.category-demo-alert span {
    color: #a16207;
    font-size: 13px;
    margin-top: 2px;
}

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

.category-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.category-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ecfeff;
    color: #0f766e;
}

.category-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.category-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.category-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 18px;
    align-items: stretch;
}

.category-editor-panel,
.category-guidance-panel,
.category-table-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.category-editor-panel {
    display: grid;
    gap: 18px;
}

.category-panel-heading,
.category-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-panel-heading {
    justify-content: flex-start;
}

.category-panel-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    flex: 0 0 auto;
}

.category-panel-heading h3,
.category-guidance-panel h3,
.category-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.category-form-grid,
.category-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-editor-panel label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.category-editor-panel input,
.category-editor-panel select {
    margin-top: 7px;
}

.category-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 4px;
}

.category-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.category-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.category-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #94a3b8;
    background: #f8fafc;
    transition: all .2s ease;
}

.category-switch input:checked + span {
    border-color: #14b8a6;
    background: #ccfbf1;
    color: #0f766e;
}

.category-guidance-panel {
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.category-guidance-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .12);
}

.category-guidance-panel > .ui-icon {
    width: 38px;
    height: 38px;
    color: #0f766e;
    margin-bottom: 18px;
}

.category-guidance-panel p {
    color: #64748b;
    line-height: 1.65;
    margin: 10px 0 22px;
}

.category-guidance-panel ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: auto 0 0;
    list-style: none;
}

.category-guidance-panel li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e6ebf2;
}

.category-guidance-panel li strong {
    color: #0f172a;
    font-size: 20px;
}

.category-guidance-panel li span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.category-table-surface {
    padding: 18px;
}

.category-section-bar {
    margin-bottom: 14px;
}

.category-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.category-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.category-tree-table {
    min-width: 900px;
}

.category-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.category-name-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0f766e;
    flex: 0 0 auto;
}

.category-name-cell strong,
.category-name-cell small {
    display: block;
}

.category-name-cell strong {
    color: #0f172a;
}

.category-name-cell small {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.category-slug {
    display: inline-flex;
    max-width: 220px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-status,
.category-visual-pills span,
.category-locked-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.category-status.is-active {
    background: #ecfdf5;
    color: #047857;
}

.category-status.is-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.category-visual-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-visual-pills span {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.category-visual-pills span.is-ready {
    background: #ecfeff;
    border-color: #99f6e4;
    color: #0f766e;
}

.category-row-actions {
    min-width: 220px;
}

.category-row-actions .table-icon-link,
.category-row-actions form button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.category-locked-action {
    background: #f8fafc;
    color: #94a3b8;
}

@media (max-width: 1180px) {
    .category-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .category-command-strip,
    .category-form-grid,
    .category-upload-grid {
        grid-template-columns: 1fr;
    }

    .category-panel-heading,
    .category-section-bar,
    .category-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-form-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .category-table-surface,
    .category-editor-panel,
    .category-guidance-panel {
        border-radius: 18px;
    }
}

/* Admin product studio */
.product-studio-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.product-studio-workbench > * {
    min-width: 0;
}

.product-studio-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
}

.product-studio-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.product-studio-alert strong,
.product-studio-alert span {
    display: block;
}

.product-studio-alert span {
    color: #a16207;
    font-size: 13px;
    margin-top: 2px;
}

.product-studio-form {
    margin: 0;
}

.product-studio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
    align-items: start;
}

.product-studio-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.product-studio-panel,
.product-publish-card {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.product-studio-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    min-width: 0;
}

.product-studio-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.product-studio-heading-split {
    align-items: center;
}

.product-studio-heading-split .btn {
    margin-left: auto;
}

.product-studio-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    flex: 0 0 auto;
}

.product-studio-heading h3,
.product-publish-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

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

.product-studio-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-studio-wide {
    grid-column: 1 / -1;
}

.product-studio-panel label,
.product-publish-card label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.product-studio-panel input,
.product-studio-panel select,
.product-studio-panel textarea {
    margin-top: 7px;
}

.product-media-editor {
    display: grid;
    grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.product-media-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 240px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    overflow: hidden;
}

.product-media-preview img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
}

.product-media-preview > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #ecfeff;
    color: #0f766e;
}

.product-media-preview strong,
.product-media-preview small {
    display: block;
}

.product-media-fields {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.product-variant-studio .variant-editor-list {
    display: grid;
    gap: 14px;
}

.product-variant-studio .variant-editor-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #f8fafc;
}

.product-variant-studio .variant-remove {
    align-self: end;
}

.product-publish-rail {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.product-publish-card {
    padding: 22px;
    overflow: hidden;
}

.product-publish-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #ecfeff;
    color: #0f766e;
    margin-bottom: 16px;
}

.product-publish-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.product-publish-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eef2f7;
    color: #b45309;
    font-size: 13px;
    font-weight: 900;
}

.product-publish-card li.is-ready {
    color: #047857;
}

.product-publish-card li .ui-icon {
    order: 2;
}

.product-publish-actions {
    display: grid;
    gap: 12px;
}

.product-publish-actions .btn {
    width: 100%;
    justify-content: center;
}

.product-feature-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: #f8fafc;
}

.product-feature-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-feature-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #94a3b8;
    background: #fff;
    transition: all .2s ease;
}

.product-feature-switch input:checked + span {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}

@media (max-width: 1180px) {
    .product-studio-layout {
        grid-template-columns: 1fr;
    }

    .product-publish-rail {
        position: static;
    }
}

@media (max-width: 820px) {
    .product-studio-grid,
    .product-studio-grid-three,
    .product-media-editor,
    .product-variant-studio .variant-editor-row {
        grid-template-columns: 1fr;
    }

    .product-studio-heading,
    .product-studio-heading-split {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-studio-heading-split .btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .product-studio-panel,
    .product-publish-card {
        border-radius: 18px;
        padding: 18px;
    }
}

/* Admin brand registry */
.brand-registry-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.brand-registry-workbench > * {
    min-width: 0;
}

.brand-registry-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
}

.brand-registry-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.brand-registry-alert strong,
.brand-registry-alert span {
    display: block;
}

.brand-registry-alert span {
    color: #a16207;
    font-size: 13px;
    margin-top: 2px;
}

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

.brand-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.brand-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    flex: 0 0 auto;
}

.brand-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.brand-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.brand-registry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
}

.brand-editor-panel,
.brand-standards-panel,
.brand-library-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.brand-editor-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.brand-editor-heading,
.brand-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-editor-heading {
    justify-content: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.brand-editor-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    flex: 0 0 auto;
}

.brand-editor-heading h3,
.brand-standards-panel h3,
.brand-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.brand-editor-body {
    display: grid;
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.brand-logo-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 230px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background:
        linear-gradient(135deg, #f8fafc 25%, transparent 25%) 0 0 / 22px 22px,
        linear-gradient(135deg, transparent 75%, #f8fafc 75%) 0 0 / 22px 22px,
        #fff;
    color: #64748b;
    text-align: center;
    overflow: hidden;
}

.brand-logo-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.brand-logo-preview > span {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 30px;
    font-weight: 900;
}

.brand-logo-preview strong,
.brand-logo-preview small {
    display: block;
}

.brand-editor-fields {
    display: grid;
    gap: 14px;
}

.brand-editor-panel label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.brand-editor-panel input {
    margin-top: 7px;
}

.brand-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 2px;
}

.brand-visibility-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.brand-visibility-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.brand-visibility-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #94a3b8;
    background: #f8fafc;
    transition: all .2s ease;
}

.brand-visibility-switch input:checked + span {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.brand-standards-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.brand-standards-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .12);
}

.brand-standards-panel > .ui-icon {
    width: 42px;
    height: 42px;
    color: #1d4ed8;
    margin-bottom: 18px;
}

.brand-standards-panel ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.brand-standards-panel li {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.brand-standards-panel li strong {
    color: #0f172a;
}

.brand-standards-panel li span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.brand-library-surface {
    padding: 18px;
}

.brand-section-bar {
    margin-bottom: 14px;
}

.brand-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.brand-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.brand-library-table {
    min-width: 820px;
}

.brand-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-name-cell > span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
}

.brand-slug {
    display: inline-flex;
    max-width: 220px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-logo-state,
.brand-status,
.brand-locked-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-logo-state {
    background: #fff7ed;
    color: #c2410c;
}

.brand-logo-state.is-ready {
    background: #eff6ff;
    color: #1d4ed8;
}

.brand-status.is-active {
    background: #ecfdf5;
    color: #047857;
}

.brand-status.is-inactive,
.brand-locked-action {
    background: #f1f5f9;
    color: #64748b;
}

.brand-row-actions {
    min-width: 220px;
}

.brand-row-actions .table-icon-link,
.brand-row-actions form button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 1180px) {
    .brand-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-registry-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .brand-command-strip,
    .brand-editor-body {
        grid-template-columns: 1fr;
    }

    .brand-editor-footer,
    .brand-section-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-editor-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .brand-editor-panel,
    .brand-standards-panel,
    .brand-library-surface {
        border-radius: 18px;
    }
}

/* Admin customer command center */
.customer-command-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.customer-command-workbench > * {
    min-width: 0;
}

.customer-command-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
}

.customer-command-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.customer-command-alert strong,
.customer-command-alert span {
    display: block;
}

.customer-command-alert span {
    color: #a16207;
    font-size: 13px;
    margin-top: 2px;
}

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

.customer-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f6fffd 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.customer-command-strip article:hover {
    border-color: #99f6e4;
    box-shadow: 0 22px 54px rgba(15, 118, 110, .1);
    transform: translateY(-1px);
}

.customer-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.customer-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.customer-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.customer-lifecycle-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border: 1px solid #ccfbf1;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(240, 253, 250, .96) 0%, rgba(255, 255, 255, .98) 54%, rgba(239, 246, 255, .96) 100%);
    box-shadow: 0 22px 60px rgba(15, 118, 110, .08);
}

.customer-lifecycle-band h3 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.06;
}

.customer-lifecycle-band div > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.customer-lifecycle-band ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(104px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-lifecycle-band li {
    display: grid;
    gap: 4px;
    min-width: 116px;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
}

.customer-lifecycle-band li strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.customer-lifecycle-band li span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.customer-ops-layout {
    display: grid;
    grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.customer-insight-panel,
.customer-directory-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.customer-insight-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    overflow: hidden;
}

.customer-insight-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0f766e, #38bdf8);
}

.customer-insight-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .12);
}

.customer-insight-panel > .ui-icon {
    width: 42px;
    height: 42px;
    color: #0f766e;
    margin-bottom: 18px;
}

.customer-insight-panel h3,
.customer-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.customer-insight-panel ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.customer-insight-panel li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
}

.customer-insight-panel li strong {
    color: #0f172a;
    font-size: 18px;
}

.customer-insight-panel li span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.customer-directory-surface {
    padding: 18px;
    min-width: 0;
}

.customer-directory-surface {
    border-top-color: #ccfbf1;
}

.customer-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.customer-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.customer-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    contain: inline-size;
    overflow: auto;
}

.customer-directory-table {
    min-width: 980px;
}

.customer-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.customer-name-cell > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #0369a1);
    color: #fff;
    font-weight: 900;
}

.customer-name-cell strong,
.customer-name-cell small {
    display: block;
}

.customer-name-cell small {
    color: #64748b;
    margin-top: 3px;
}

.customer-contact-pill,
.customer-status,
.customer-locked-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-contact-pill {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.customer-status.is-active {
    background: #ecfdf5;
    color: #047857;
}

.customer-status.is-suspended {
    background: #fef2f2;
    color: #b42318;
}

.customer-status.is-pending,
.customer-locked-action {
    background: #f1f5f9;
    color: #64748b;
}

.customer-row-actions {
    min-width: 220px;
}

.customer-row-actions .table-icon-link,
.customer-row-actions form button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.customer-directory-table tbody tr {
    transition: background .18s ease;
}

.customer-directory-table tbody tr:hover td {
    background: #f8fffd;
}

/* Admin customer detail command center */
.customer-profile-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.customer-profile-workbench > * {
    min-width: 0;
}

.customer-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr);
    gap: 18px;
    align-items: end;
    position: relative;
    padding: 24px;
    border: 1px solid #ccfbf1;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(240, 253, 250, .98) 0%, rgba(255, 255, 255, .98) 56%, rgba(239, 246, 255, .96) 100%);
    box-shadow: 0 24px 70px rgba(15, 118, 110, .1);
    overflow: hidden;
}

.customer-profile-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .1);
}

.customer-profile-back {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.customer-profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.customer-profile-identity img {
    width: 108px;
    height: 108px;
    border: 4px solid #fff;
    border-radius: 28px;
    object-fit: cover;
    background: #f8fafc;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.customer-profile-identity h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 54px);
    line-height: .96;
}

.customer-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.customer-profile-contact > span,
.customer-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.customer-profile-status.is-active {
    background: #ecfdf5;
    color: #047857;
}

.customer-profile-status.is-suspended {
    background: #fef2f2;
    color: #b42318;
}

.customer-profile-status.is-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.customer-profile-status-form {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
    padding: 16px;
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
}

.customer-profile-status-form label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.customer-profile-status-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    padding: 0 12px;
    font-weight: 800;
}

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

.customer-profile-metrics article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f6fffd 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.customer-profile-metrics article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.customer-profile-metrics small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.customer-profile-metrics strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.customer-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .34fr);
    gap: 18px;
    align-items: start;
}

.customer-profile-panel {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
    padding: 18px;
    min-width: 0;
}

.customer-profile-side {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.customer-profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.customer-profile-section-head.compact {
    align-items: flex-start;
}

.customer-profile-section-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.customer-profile-section-head > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.customer-detail-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    contain: inline-size;
    overflow: auto;
}

.customer-orders-panel .data-table-toolbar,
.customer-orders-panel .data-table-footer {
    margin-top: 12px;
}

.customer-orders-panel .data-table-toolbar {
    margin-bottom: 12px;
}

.customer-orders-panel .data-table-footer {
    margin-bottom: 0;
}

.customer-detail-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.customer-detail-table th {
    background: #f8fafc;
}

.customer-detail-table th,
.customer-detail-table td {
    vertical-align: middle;
}

.customer-order-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 900;
}

.customer-order-cell {
    min-width: 220px;
}

.customer-order-cell > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.customer-order-cell strong,
.customer-order-cell small {
    display: block;
}

.customer-order-cell strong {
    color: #0f172a;
    font-size: 13px;
    letter-spacing: .02em;
}

.customer-order-cell small {
    margin-top: 3px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.customer-order-total {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    white-space: nowrap;
}

.customer-order-date {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.customer-address-list,
.customer-wishlist-list {
    display: grid;
    gap: 10px;
}

.customer-address-list p,
.customer-wishlist-list p {
    margin: 0;
    color: #64748b;
}

.customer-address-list article,
.customer-wishlist-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #fff;
}

.customer-address-list article > span,
.customer-wishlist-list a > span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.customer-address-list strong,
.customer-wishlist-list strong,
.customer-wishlist-list small {
    display: block;
}

.customer-address-list strong,
.customer-wishlist-list strong {
    color: #0f172a;
}

.customer-address-list article p,
.customer-wishlist-list small {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

/* Admin coupon command center */
.coupon-command-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.coupon-command-workbench > * {
    min-width: 0;
}

.coupon-command-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: #fff7ed;
    color: #9a3412;
}

.coupon-command-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.coupon-command-alert strong,
.coupon-command-alert span {
    display: block;
}

.coupon-command-alert span {
    margin-top: 2px;
    color: #c2410c;
    font-size: 13px;
}

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

.coupon-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.coupon-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff7ed;
    color: #c2410c;
    flex: 0 0 auto;
}

.coupon-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.coupon-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.coupon-ops-layout {
    display: grid;
    grid-template-columns: minmax(300px, .4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.coupon-rule-panel,
.coupon-ledger-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.coupon-rule-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.coupon-panel-head,
.coupon-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.coupon-panel-head {
    justify-content: flex-start;
}

.coupon-panel-head > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff7ed;
    color: #c2410c;
    flex: 0 0 auto;
}

.coupon-panel-head h3,
.coupon-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.coupon-rule-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coupon-rule-panel input,
.coupon-rule-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 13px;
    text-transform: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.coupon-rule-panel input:focus,
.coupon-rule-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, .16);
    outline: 0;
}

.coupon-code-field input {
    min-height: 58px;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coupon-form-grid,
.coupon-window-grid {
    display: grid;
    gap: 12px;
}

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

.coupon-window-grid {
    grid-template-columns: 1fr;
}

.coupon-rule-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 6px;
}

.coupon-toggle {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    color: #0f172a !important;
    cursor: pointer;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.coupon-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.coupon-toggle span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #94a3b8;
    transition: all .18s ease;
}

.coupon-toggle input:checked + span {
    border-color: #86efac;
    background: #ecfdf5;
    color: #047857;
}

.coupon-ledger-surface {
    padding: 18px;
    min-width: 0;
}

.coupon-section-bar {
    margin-bottom: 14px;
}

.coupon-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.coupon-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    contain: inline-size;
    overflow: auto;
}

.coupon-ledger-table {
    min-width: 920px;
}

.coupon-code-cell strong,
.coupon-code-cell small,
.coupon-window-cell span,
.coupon-window-cell small {
    display: block;
}

.coupon-code-cell strong {
    color: #0f172a;
    font-size: 14px;
    letter-spacing: .08em;
}

.coupon-code-cell small,
.coupon-window-cell small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.coupon-discount-pill,
.coupon-state,
.coupon-locked-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.coupon-discount-pill {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.coupon-state.is-live {
    background: #ecfdf5;
    color: #047857;
}

.coupon-state.is-paused,
.coupon-locked-action {
    background: #f1f5f9;
    color: #64748b;
}

.coupon-state.is-scheduled {
    background: #eff6ff;
    color: #1d4ed8;
}

.coupon-state.is-expired {
    background: #fef2f2;
    color: #b42318;
}

.coupon-usage-cell {
    display: grid;
    gap: 8px;
    min-width: 130px;
}

.coupon-usage-cell strong {
    color: #0f172a;
    font-size: 13px;
}

.coupon-usage-cell > span {
    display: block;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.coupon-usage-cell > span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb923c, #0f766e);
}

.coupon-row-actions {
    min-width: 96px;
}

/* Admin shipping command center */
.shipping-command-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.shipping-command-workbench > * {
    min-width: 0;
}

.shipping-command-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #bae6fd;
    border-radius: 18px;
    background: #f0f9ff;
    color: #075985;
}

.shipping-command-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.shipping-command-alert strong,
.shipping-command-alert span {
    display: block;
}

.shipping-command-alert span {
    margin-top: 2px;
    color: #0369a1;
    font-size: 13px;
}

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

.shipping-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.shipping-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0f9ff;
    color: #0369a1;
    flex: 0 0 auto;
}

.shipping-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.shipping-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.shipping-ops-layout {
    display: grid;
    grid-template-columns: minmax(300px, .4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.shipping-rate-panel,
.shipping-ledger-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.shipping-rate-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.shipping-panel-head,
.shipping-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shipping-panel-head {
    justify-content: flex-start;
}

.shipping-panel-head > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #f0f9ff;
    color: #0369a1;
    flex: 0 0 auto;
}

.shipping-panel-head h3,
.shipping-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.shipping-rate-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shipping-rate-panel input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 13px;
    text-transform: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.shipping-rate-panel input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .16);
    outline: 0;
}

.shipping-name-field input {
    min-height: 58px;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 950;
}

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

.shipping-rate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 6px;
}

.shipping-toggle {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    color: #0f172a !important;
    cursor: pointer;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.shipping-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-toggle span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #94a3b8;
    transition: all .18s ease;
}

.shipping-toggle input:checked + span {
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: #0369a1;
}

.shipping-ledger-surface {
    padding: 18px;
    min-width: 0;
}

.shipping-section-bar {
    margin-bottom: 14px;
}

.shipping-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.shipping-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    contain: inline-size;
    overflow: auto;
}

.shipping-ledger-table {
    min-width: 980px;
}

.shipping-method-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.shipping-method-cell > span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #f0f9ff;
    color: #0369a1;
    flex: 0 0 auto;
}

.shipping-method-cell strong,
.shipping-method-cell small {
    display: block;
}

.shipping-method-cell small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.shipping-code-pill,
.shipping-threshold-pill,
.shipping-eta-pill,
.shipping-state,
.shipping-locked-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.shipping-code-pill {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.shipping-threshold-pill {
    border: 1px solid #ccfbf1;
    background: #f0fdfa;
    color: #0f766e;
}

.shipping-eta-pill {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.shipping-state.is-live {
    background: #ecfdf5;
    color: #047857;
}

.shipping-state.is-hidden,
.shipping-locked-action {
    background: #f1f5f9;
    color: #64748b;
}

.shipping-row-actions {
    min-width: 96px;
}

/* Admin CMS command center */
.cms-command-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.cms-command-workbench > * {
    min-width: 0;
}

.cms-command-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    background: #eef2ff;
    color: #3730a3;
}

.cms-command-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.cms-command-alert strong,
.cms-command-alert span {
    display: block;
}

.cms-command-alert span {
    margin-top: 2px;
    color: #4338ca;
    font-size: 13px;
}

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

.cms-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.cms-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef2ff;
    color: #4338ca;
    flex: 0 0 auto;
}

.cms-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cms-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.cms-ops-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
    gap: 18px;
    align-items: start;
}

.cms-studio-panel,
.cms-home-command-panel,
.cms-pages-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.cms-studio-panel,
.cms-home-command-panel form {
    display: grid;
    gap: 18px;
}

.cms-studio-panel {
    padding: 24px;
}

.cms-home-command-panel {
    padding: 0;
    overflow: hidden;
}

.cms-home-command-panel form {
    padding: 24px;
}

.cms-panel-head,
.cms-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cms-panel-head {
    justify-content: flex-start;
}

.cms-panel-head > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #eef2ff;
    color: #4338ca;
    flex: 0 0 auto;
}

.cms-panel-head h3,
.cms-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.cms-panel-head .btn {
    margin-left: auto;
}

.cms-studio-panel label,
.cms-home-command-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cms-studio-panel input,
.cms-studio-panel select,
.cms-studio-panel textarea,
.cms-home-command-panel input,
.cms-home-command-panel textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 13px;
    text-transform: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.cms-studio-panel textarea,
.cms-home-command-panel textarea {
    padding: 13px;
}

.cms-studio-panel input:focus,
.cms-studio-panel select:focus,
.cms-studio-panel textarea:focus,
.cms-home-command-panel input:focus,
.cms-home-command-panel textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, .16);
    outline: 0;
}

.cms-form-grid,
.cms-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cms-body-input {
    border-radius: 18px !important;
    background: #0f172a !important;
    color: #dbeafe !important;
    font-size: 13px !important;
}

.cms-toolbar {
    border-color: #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
}

.cms-toolbar button {
    border-radius: 12px;
}

.cms-preview-panel {
    border-radius: 18px;
    background: #fff;
}

.cms-home-preview {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.cms-home-preview small,
.cms-home-preview span {
    color: #4338ca;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cms-home-preview strong {
    color: #0f172a;
    font-size: 20px;
}

.cms-home-preview span {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
}

.cms-pages-surface {
    padding: 18px;
}

.cms-section-bar {
    margin-bottom: 14px;
}

.cms-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.cms-table-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    contain: inline-size;
    overflow: auto;
}

.cms-pages-table {
    min-width: 900px;
}

.cms-page-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.cms-page-cell > span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #eef2ff;
    color: #4338ca;
    flex: 0 0 auto;
}

.cms-page-cell strong,
.cms-page-cell small {
    display: block;
}

.cms-page-cell small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.cms-slug-pill,
.cms-state,
.cms-locked-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.cms-slug-pill {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.cms-state.is-published {
    background: #ecfdf5;
    color: #047857;
}

.cms-state.is-draft,
.cms-locked-action {
    background: #f1f5f9;
    color: #64748b;
}

.cms-row-actions {
    min-width: 190px;
}

/* Admin media command center */
.media-command-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.media-command-workbench > * {
    min-width: 0;
}

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

.media-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.media-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.media-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.media-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.media-ops-layout {
    display: grid;
    grid-template-columns: minmax(320px, .42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.media-upload-panel,
.media-inspector-panel,
.media-library-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.media-upload-panel,
.media-inspector-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.media-panel-head,
.media-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.media-panel-head {
    justify-content: flex-start;
}

.media-panel-head > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.media-panel-head h3,
.media-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.media-drop-zone {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 230px;
    padding: 24px;
    border: 1px dashed #99f6e4;
    border-radius: 24px;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    color: #0f766e;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.media-drop-zone:hover {
    border-color: #14b8a6;
    box-shadow: 0 18px 42px rgba(15, 118, 110, .12);
    transform: translateY(-1px);
}

.media-drop-zone input {
    width: 100%;
    max-width: 250px;
}

.media-drop-zone > span {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.media-drop-zone strong,
.media-drop-zone small {
    display: block;
}

.media-drop-zone strong {
    color: #0f172a;
    font-size: 18px;
}

.media-drop-zone small {
    max-width: 320px;
    color: #64748b;
    line-height: 1.55;
}

.media-upload-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-upload-rules span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.media-inspector-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.media-inspector-panel li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid #eef2f7;
}

.media-inspector-panel li span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.media-inspector-panel li strong {
    color: #0f172a;
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
}

.media-library-surface {
    padding: 18px;
}

.media-section-bar {
    margin-bottom: 14px;
}

.media-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.media-asset-card {
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.media-asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .1);
}

.media-asset-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
}

.media-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.media-asset-card:hover .media-asset-preview img {
    transform: scale(1.04);
}

.media-asset-preview span {
    position: absolute;
    top: 10px;
    right: 10px;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.media-asset-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.media-asset-body strong,
.media-asset-body small {
    display: block;
}

.media-asset-body strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.media-asset-body small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.media-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.media-url-row input {
    min-width: 0;
    min-height: 38px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.media-url-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 900;
}

.media-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 32px;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.media-empty-state > .ui-icon {
    width: 46px;
    height: 46px;
    color: #0f766e;
}

.media-empty-state strong {
    color: #0f172a;
    font-size: 18px;
}

/* Admin reports command center */
.reports-command-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}

.reports-command-workbench > * {
    min-width: 0;
}

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

.reports-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.reports-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.reports-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reports-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.reports-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, .32fr)) minmax(300px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.reports-signal-panel,
.reports-export-panel,
.reports-product-surface {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.reports-signal-panel,
.reports-export-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.reports-export-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.reports-export-panel h3,
.reports-panel-head h3,
.reports-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.reports-export-panel p:not(.eyebrow),
.reports-signal-panel > p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.reports-panel-head,
.reports-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reports-panel-head {
    justify-content: flex-start;
}

.reports-panel-head > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #f0fdfa;
    color: #0f766e;
    flex: 0 0 auto;
}

.reports-score-ring {
    display: grid;
    place-items: center;
    place-content: center;
    width: 148px;
    height: 148px;
    margin: 0 auto;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(#0f766e var(--score), #e2e8f0 0);
}

.reports-score-ring.is-stock {
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(#0369a1 var(--score), #e2e8f0 0);
}

.reports-score-ring strong,
.reports-score-ring span {
    display: block;
    text-align: center;
}

.reports-score-ring strong {
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.reports-score-ring span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reports-product-surface {
    padding: 18px;
}

.reports-section-bar {
    margin-bottom: 14px;
}

.reports-product-list {
    gap: 12px;
}

.reports-product-item {
    border-color: #e6ebf2;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
    transition: transform .18s ease, box-shadow .18s ease;
}

.reports-product-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.reports-product-item .report-product-rank {
    background: #f0fdfa;
    color: #0f766e;
}

.reports-product-item .report-product-bar i {
    background: linear-gradient(90deg, #0f766e, #0369a1);
}

.reports-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 32px;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.reports-empty-state > .ui-icon {
    width: 46px;
    height: 46px;
    color: #0f766e;
}

.reports-empty-state strong {
    color: #0f172a;
    font-size: 18px;
}

@media (max-width: 1180px) {
    .customer-profile-hero,
    .customer-profile-layout {
        grid-template-columns: 1fr;
    }

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

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

    .customer-lifecycle-band {
        grid-template-columns: 1fr;
    }

    .customer-ops-layout {
        grid-template-columns: 1fr;
    }

    .customer-insight-panel {
        position: static;
    }

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

    .coupon-ops-layout {
        grid-template-columns: 1fr;
    }

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

    .shipping-ops-layout {
        grid-template-columns: 1fr;
    }

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

    .cms-ops-layout {
        grid-template-columns: 1fr;
    }

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

    .media-ops-layout {
        grid-template-columns: 1fr;
    }

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

    .reports-health-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .customer-profile-hero,
    .customer-profile-panel {
        border-radius: 18px;
    }

    .customer-profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-profile-identity img {
        width: 86px;
        height: 86px;
        border-radius: 22px;
    }

    .customer-profile-metrics {
        grid-template-columns: 1fr;
    }

    .customer-profile-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-profile-status-form .btn {
        width: 100%;
        justify-content: center;
    }

    .customer-detail-table-wrap {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .customer-detail-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .customer-detail-table thead {
        display: none;
    }

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

    .customer-detail-table tr {
        padding: 12px;
        border: 1px solid #e6ebf2;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    }

    .customer-detail-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        border-bottom: 1px solid #eef2f7;
    }

    .customer-detail-table td:last-child {
        border-bottom: 0;
    }

    .customer-detail-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .customer-detail-table td:first-child {
        display: block;
    }

    .customer-detail-table td:first-child::before {
        display: none;
    }

    .customer-order-cell {
        min-width: 0;
        width: 100%;
    }

    .customer-command-strip {
        grid-template-columns: 1fr;
    }

    .customer-lifecycle-band {
        padding: 18px;
        border-radius: 18px;
    }

    .customer-lifecycle-band ul {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .customer-section-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-insight-panel,
    .customer-directory-surface {
        border-radius: 18px;
    }

    .coupon-command-strip,
    .coupon-form-grid {
        grid-template-columns: 1fr;
    }

    .coupon-panel-head,
    .coupon-section-bar,
    .coupon-rule-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .coupon-rule-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .coupon-rule-panel,
    .coupon-ledger-surface {
        border-radius: 18px;
    }

    .shipping-command-strip,
    .shipping-form-grid {
        grid-template-columns: 1fr;
    }

    .shipping-panel-head,
    .shipping-section-bar,
    .shipping-rate-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .shipping-rate-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .shipping-rate-panel,
    .shipping-ledger-surface {
        border-radius: 18px;
    }

    .cms-command-strip,
    .cms-form-grid,
    .cms-home-grid {
        grid-template-columns: 1fr;
    }

    .cms-panel-head,
    .cms-section-bar,
    .cms-editor-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cms-panel-head .btn,
    .cms-editor-footer .btn,
    .cms-home-command-panel .btn {
        width: 100%;
        justify-content: center;
    }

    .cms-studio-panel,
    .cms-home-command-panel,
    .cms-pages-surface {
        border-radius: 18px;
    }

    .media-command-strip {
        grid-template-columns: 1fr;
    }

    .media-panel-head,
    .media-section-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-upload-panel .btn {
        width: 100%;
        justify-content: center;
    }

    .media-upload-panel,
    .media-inspector-panel,
    .media-library-surface {
        border-radius: 18px;
    }

    .media-url-row {
        grid-template-columns: 1fr;
    }

    .reports-command-strip {
        grid-template-columns: 1fr;
    }

    .reports-section-bar,
    .reports-export-panel {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .reports-export-panel .btn,
    .reports-section-bar .btn {
        width: 100%;
        justify-content: center;
    }

    .reports-signal-panel,
    .reports-export-panel,
    .reports-product-surface {
        border-radius: 18px;
    }

    .reports-product-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .reports-product-item .report-product-meta {
        grid-column: 2;
        justify-items: start;
    }
}

/* Admin reviews command center */
.reviews-workbench {
    display: grid;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.reviews-workbench > * {
    min-width: 0;
}

.reviews-mode-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
}

.reviews-mode-alert > .ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.reviews-mode-alert strong,
.reviews-mode-alert span {
    display: block;
}

.reviews-mode-alert span {
    color: #a16207;
    font-size: 13px;
    margin-top: 2px;
}

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

.reviews-command-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.reviews-command-strip article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fffbeb;
    color: #b45309;
    flex: 0 0 auto;
}

.reviews-command-strip small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.reviews-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.reviews-moderation-layout {
    display: grid;
    grid-template-columns: minmax(260px, .38fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.reviews-policy-panel,
.reviews-queue-panel {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.reviews-policy-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    overflow: hidden;
}

.reviews-policy-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
}

.reviews-policy-panel > .ui-icon {
    width: 42px;
    height: 42px;
    color: #b45309;
    margin-bottom: 18px;
}

.reviews-policy-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
}

.reviews-policy-panel ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.reviews-policy-panel li {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.reviews-policy-panel li strong {
    color: #0f172a;
}

.reviews-policy-panel li span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.reviews-queue-panel {
    padding: 18px;
    min-width: 0;
    overflow-x: clip;
}

.reviews-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.reviews-section-bar h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.reviews-section-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.reviews-card-list {
    max-width: 100%;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
}

.reviews-table {
    min-width: 980px;
}

.review-copy-cell {
    min-width: 280px;
    max-width: 420px;
}

.review-copy-cell strong,
.review-copy-cell p {
    display: block;
}

.review-copy-cell strong {
    color: #0f172a;
}

.review-copy-cell p {
    margin: 5px 0 0;
    color: #64748b;
    line-height: 1.5;
}

.review-product-cell,
.review-customer-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.review-product-cell > span,
.review-customer-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: #f8fafc;
    color: #0f766e;
    flex: 0 0 auto;
}

.review-customer-cell strong,
.review-customer-cell small {
    display: block;
}

.review-customer-cell small {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.review-stars {
    display: inline-flex;
    letter-spacing: 1px;
    color: #d97706;
    white-space: nowrap;
}

.review-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.review-status.is-approved {
    background: #ecfdf5;
    color: #047857;
}

.review-status.is-pending {
    background: #fff7ed;
    color: #c2410c;
}

.review-decision-actions {
    min-width: 210px;
}

.review-decision-actions form button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.reviews-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 18px;
    margin-bottom: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
}

.reviews-empty-state > .ui-icon {
    width: 38px;
    height: 38px;
    color: #d97706;
}

.reviews-empty-state h3 {
    margin: 0;
    color: #0f172a;
}

.reviews-empty-state p {
    max-width: 460px;
    margin: 0;
    color: #64748b;
}

@media (max-width: 1180px) {
    .reviews-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-moderation-layout {
        grid-template-columns: 1fr;
    }

    .reviews-policy-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .reviews-command-strip {
        grid-template-columns: 1fr;
    }

    .reviews-section-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviews-policy-panel,
    .reviews-queue-panel {
        border-radius: 18px;
    }

    .reviews-table {
        min-width: 720px;
    }
}

/* Admin multi-module rebrand */
.admin-workbench-grid,
.product-form-workbench {
    gap: 22px;
    min-width: 0;
}

.admin-workbench-grid > *,
.product-form-workbench > * {
    min-width: 0;
}

.admin-workbench-form,
.admin-workbench-table,
.admin-workbench-panel,
.product-editor-panel,
.notifications-workbench-panel,
.security-workbench-panel {
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.admin-workbench-form .section-heading,
.admin-workbench-table .section-heading,
.product-editor-panel .section-heading,
.notifications-workbench-panel .section-heading,
.security-workbench-panel .section-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.admin-workbench-form label,
.product-editor-panel label,
.security-workbench-panel label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.admin-workbench-form input,
.admin-workbench-form select,
.admin-workbench-form textarea,
.product-editor-panel input,
.product-editor-panel select,
.product-editor-panel textarea,
.security-workbench-panel input,
.security-workbench-panel textarea {
    margin-top: 7px;
}

.admin-workbench-table .responsive-table {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.admin-workbench-table table,
.review-workbench-table table {
    min-width: 820px;
}

.admin-workbench-table tbody td,
.review-workbench-table tbody td {
    vertical-align: middle;
}

.admin-code-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.product-form-workbench .admin-form {
    display: grid;
    gap: 18px;
}

.product-editor-panel .variant-editor {
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
}

.product-editor-panel .variant-editor-row {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #f8fafc;
}

.product-editor-panel .variant-remove {
    align-self: end;
}

.review-workbench-table .rating-stars {
    display: inline-flex;
    letter-spacing: 1px;
    color: #d97706;
    white-space: nowrap;
}

.media-library-panel .media-grid {
    gap: 16px;
}

.media-library-panel .media-card {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.media-library-panel .media-card img {
    background: #f8fafc;
}

.notifications-workbench-panel .movement-list {
    gap: 12px;
}

.notifications-workbench-panel .notification-item {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.notifications-workbench-panel .notification-item.is-unread {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.security-workbench-panel form {
    display: grid;
    gap: 12px;
}

.security-workbench-panel .recovery-box {
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    padding: 18px;
}

.security-workbench-panel .recovery-box pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.reports-workbench-grid {
    align-items: start;
}

.reports-workbench-grid .report-products-card {
    grid-column: span 2;
}

.permission-grid {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
}

.permission-option {
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 10px;
    background: #f8fafc;
}

.permission-option small {
    color: #64748b;
}

@media (max-width: 980px) {
    .reports-workbench-grid .report-products-card {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .admin-workbench-form,
    .admin-workbench-table,
    .admin-workbench-panel,
    .product-editor-panel,
    .notifications-workbench-panel,
    .security-workbench-panel {
        border-radius: 18px;
    }

    .admin-workbench-table table,
    .review-workbench-table table {
        min-width: 760px;
    }
}

[hidden] {
    display: none !important;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
main { min-height: 58vh; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.topline {
    min-height: 34px;
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
    background: #111;
    color: #fff;
    font-size: 13px;
}

.navbar {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 0 5vw;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-links, .nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #333;
    font-size: 15px;
}

.search-form {
    position: relative;
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--soft);
}

.search-form input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 13px 16px;
    outline: 0;
}

.search-form button {
    border: 0;
    background: var(--ink);
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
}

.live-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    overflow: hidden;
}

.live-results a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cart-pill, .account-link, .icon-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
}
.ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    pointer-events: none;
}
.cart-pill strong {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
}

.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

.hero {
    min-height: calc(100svh - 108px);
    display: flex;
    align-items: center;
    padding: 7vw 5vw;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .25), rgba(0, 0, 0, .04)),
        url("https://images.unsplash.com/photo-1607082349566-187342175e2f?auto=format&fit=crop&w=2200&q=85") center/cover;
}

.hero-copy { width: min(620px, 92vw); }
.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
.hero .eyebrow { color: #b8fff5; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 12vw, 156px);
    line-height: .9;
    letter-spacing: 0;
}
.hero-line {
    max-width: 560px;
    margin: 24px 0 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 22px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.wide { width: 100%; }
.text-link { color: var(--accent-dark); font-weight: 700; }

.section { padding: 82px 5vw; }
.band { background: #fbfbfb; }
.section-heading {
    max-width: 1120px;
    margin: 0 auto 30px;
}
.section-heading h2, .page-head h1 {
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: 0;
    line-height: 1;
}
.split { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.category-grid, .product-grid, .testimonials {
    width: min(1120px, 90vw);
    margin: 0 auto;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ddd;
}
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255,255,255,.94);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    background: #fff;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}
.product-info { padding: 16px; }
.product-info span, .product-info small { color: var(--muted); font-size: 13px; }
.product-info a { display: block; margin: 6px 0; font-weight: 800; }
.product-info p { min-height: 42px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-row, .price-row, .rating-row, .mini-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.load-more-region {
    display: grid;
    gap: 20px;
}

.load-more-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 4px;
}

.load-more-footer span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.promo-strip {
    width: min(1120px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 28px;
    align-items: center;
    border-block: 1px solid var(--line);
    padding: 42px 0;
}
.promo-strip h2 { font-size: clamp(30px, 4vw, 48px); margin: 0; }
.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 70px 0 90px;
}
blockquote {
    margin: 0;
    padding: 34px;
    border-left: 4px solid var(--accent);
    background: var(--soft);
    font-size: 20px;
    line-height: 1.55;
}
cite { display: block; margin-top: 18px; color: var(--muted); font-size: 14px; }

.page-head {
    width: min(1120px, 90vw);
    margin: 0 auto;
    padding: 64px 0 24px;
}
.page-head p { max-width: 650px; color: var(--muted); }
.catalog-layout, .cart-layout, .checkout-layout, .product-detail, .profile-layout, .contact-layout {
    width: min(1120px, 90vw);
    margin: 0 auto;
    padding: 24px 0 82px;
    display: grid;
    gap: 32px;
}
.catalog-layout { grid-template-columns: 260px 1fr; align-items: start; }
.filters, .summary, .auth-panel form, .checkout-form, .workspace-section, .profile-nav {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 22px;
}
label { display: grid; gap: 7px; margin-bottom: 15px; color: #343434; font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    background: #fff;
    outline-color: var(--accent);
    font-weight: 400;
}
.inline { display: flex; align-items: center; gap: 8px; }
.inline input, .choice-row input { width: auto; }
.catalog { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skeleton-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}
.skeleton-list span {
    height: 260px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #f2f2f2, #fff, #f2f2f2);
    background-size: 220% 100%;
    animation: shimmer 1.1s linear infinite;
}

.product-detail { grid-template-columns: 1fr 1fr; align-items: start; padding-top: 58px; }
.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--soft);
}
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb-row button { width: 74px; height: 74px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: pointer; }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1; }
.detail-copy > p { color: var(--muted); line-height: 1.65; }
.price-row { justify-content: flex-start; margin: 24px 0; }
.price-row strong { font-size: 30px; }
.price-row del { color: var(--muted); }
.product-buy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.product-buy button { grid-column: span 1; }
.assurance-list { padding-left: 18px; color: var(--muted); line-height: 1.8; }

.cart-layout, .checkout-layout { grid-template-columns: 1fr 360px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr 90px auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius); }
.cart-item a { font-weight: 800; }
.cart-item span { display: block; color: var(--muted); margin: 6px 0; }
.cart-item button { border: 0; color: var(--danger); background: transparent; cursor: pointer; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 800; }
.coupon-form {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}
.coupon-form button:not(.btn) {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    padding: 0;
}
.empty-state { padding: 40px; background: var(--soft); border-radius: var(--radius); }
.checkout-form h2 { margin: 24px 0 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 14px; }
.choice-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}
.confirmation, .auth-panel {
    width: min(900px, 90vw);
    margin: 0 auto;
    padding: 86px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.confirmation { display: block; text-align: center; }
.confirmation h1, .auth-panel h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1; }

.profile-layout { grid-template-columns: 260px 1fr; align-items: start; }
.profile-nav { position: sticky; top: 130px; }
.profile-nav img { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; margin-bottom: 18px; }
.profile-nav a, .profile-nav button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.profile-main, .admin-grid, .settings-grid { display: grid; gap: 20px; }
.metric-row, .admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.metric-row span, .admin-metrics article {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 18px;
}
.metric-row strong, .admin-metrics strong { display: block; font-size: 27px; margin-top: 8px; }
.responsive-table,
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; }
.status { border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.paid { background: #e6f7ee; color: var(--success); }
.shipped { background: #e9f2ff; color: #175cd3; }
.admin-note, .admin-alert {
    border-radius: var(--radius);
    padding: 13px 15px;
    margin-bottom: 18px;
}
.admin-note { background: #fff8e6; color: #7a4d00; }
.admin-alert.success { background: #e6f7ee; color: var(--success); }
.admin-alert.error { background: #fdecec; color: var(--danger); }
.admin-alert.warning { background: #fff8e6; color: #7a4d00; }
.table-product { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.table-product img {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--soft);
}
.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.table-actions form { margin: 0; }
.table-actions a, .table-actions button {
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}
.admin-form { display: grid; gap: 10px; }
.inline-order-form {
    display: grid;
    grid-template-columns: 140px 160px auto;
    gap: 8px;
    align-items: center;
}
.inline-order-form select,
.inline-order-form input { min-width: 0; padding: 9px; }
.inline-order-form button {
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    min-height: 38px;
    padding: 0 14px;
    cursor: pointer;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.permission-option {
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}
.permission-option small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}
.review-layout {
    width: min(1120px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 22px;
}
.review-item {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.review-item p { color: var(--muted); line-height: 1.6; }
.recovery-box {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--soft);
}
.recovery-box pre {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.7;
}

.contact-layout { grid-template-columns: 1fr 1fr; }
.faq-list { width: min(860px, 90vw); margin: 0 auto 90px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 20px; }
details p { color: var(--muted); line-height: 1.6; }

.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 28px;
    padding: 56px 5vw;
    border-top: 1px solid var(--line);
    background: #111;
    color: #fff;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,.72); line-height: 1.7; }
.site-footer a { display: block; margin-bottom: 8px; }
.footer-brand { color: #fff !important; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.newsletter button { border: 0; border-radius: var(--radius); padding: 0 16px; background: #fff; color: #111; }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.toast {
    max-width: 360px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: #111;
    color: #fff;
    box-shadow: var(--shadow);
    animation: slideUp .25s ease both;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

.admin-body { background: #f8f8f8; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    background: #111;
    color: #fff;
}
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 34px; }
.admin-sidebar a { padding: 11px 0; color: rgba(255,255,255,.78); }
.admin-sidebar .brand { color: #fff; padding: 0; }
.admin-logout { margin-top: 28px; }
.admin-logout button {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.admin-main { padding: 32px; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.admin-topbar h1 { margin: 0; font-size: 42px; }
.admin-metrics { margin-bottom: 20px; }
.admin-grid { grid-template-columns: 1.4fr .8fr; }
.chart-bars {
    height: 280px;
    display: flex;
    align-items: end;
    gap: 14px;
    padding-top: 22px;
}
.chart-bars span {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: var(--accent);
}
.activity-list { line-height: 2.1; color: var(--muted); }
.settings-grid { grid-template-columns: 1fr 1fr; }

.report-products-card {
    overflow: hidden;
}

.report-product-list {
    display: grid;
    gap: 12px;
}

.report-product-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
}

.report-product-rank {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0fdfa;
    color: var(--accent-dark);
    font-weight: 900;
}

.report-product-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.report-product-copy strong,
.report-product-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-product-copy strong {
    color: #101828;
}

.report-product-copy span {
    color: #667085;
    font-size: 13px;
}

.report-product-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.report-product-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-dark), #111827);
}

.report-product-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
    white-space: nowrap;
}

.report-product-meta strong {
    color: #101828;
    font-size: 14px;
}

.report-product-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.report-product-meta .is-stocked {
    background: #ecfdf3;
    color: #15803d;
}

.report-product-meta .is-low-stock {
    background: #fff7ed;
    color: #b45309;
}

.variant-editor {
    display: grid;
    gap: 14px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fbfcfe;
}

.variant-editor-list {
    display: grid;
    gap: 12px;
}

.variant-editor-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
}

.variant-editor-row label {
    margin-bottom: 0;
}

.admin-color-preview {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-color-preview i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(16, 24, 40, .16);
    background: #e5e7eb;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}

.variant-remove {
    min-height: 44px;
}

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1060px) {
    .navbar { grid-template-columns: auto auto 1fr; }
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 108px;
        left: 0;
        right: 0;
        padding: 18px 5vw;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }
    .nav-links.is-open { display: grid; }
    .nav-actions { grid-column: span 3; justify-content: space-between; padding-bottom: 14px; }
    .search-form { grid-column: span 1; }
    .product-grid, .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .metric-row, .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout, .product-detail, .cart-layout, .checkout-layout, .profile-layout, .contact-layout, .auth-panel, .admin-grid, .settings-grid { grid-template-columns: 1fr; }
    .profile-nav { position: static; }
}

@media (max-width: 700px) {
    .topline { display: none; }
    .navbar { min-height: auto; padding: 14px 4vw; gap: 12px; }
    .brand { font-size: 26px; }
    .search-form { grid-column: 1 / -1; order: 4; }
    .nav-actions { grid-column: 1 / -1; overflow-x: auto; }
    .nav-links { top: 70px; }
    .hero { min-height: calc(100svh - 140px); padding: 18vw 5vw; }
    .hero h1 { font-size: 64px; }
    .section { padding: 56px 5vw; }
    .product-grid, .catalog, .category-grid, .testimonials, .form-grid, .metric-row, .admin-metrics { grid-template-columns: 1fr; }
    .promo-strip { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 76px 1fr; }
    .cart-item input, .cart-item button { grid-column: 2; }
    .product-buy { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-main { padding: 18px; }
}

.invoice-body { background: #f5f5f5; }
.invoice-page {
    width: min(960px, 94vw);
    margin: 32px auto;
    padding: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.invoice-header,
.invoice-title,
.invoice-parties {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.invoice-title h1 { font-size: clamp(34px, 6vw, 64px); margin: 0; }
.invoice-title dl,
.invoice-total dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 24px;
    margin: 0;
}
.invoice-title dd,
.invoice-total dd { margin: 0; font-weight: 800; }
.invoice-parties h2 { font-size: 18px; }
.invoice-parties p { color: var(--muted); margin-bottom: 6px; }
.invoice-table { margin-bottom: 24px; }
.invoice-total {
    display: flex;
    justify-content: flex-end;
}

@media print {
    .no-print { display: none !important; }
    .invoice-body { background: #fff; }
    .invoice-page { width: 100%; margin: 0; border: 0; padding: 0; }
    a { color: #000; }
}

/* Refined storefront and admin polish */
:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --shadow: 0 18px 45px rgba(17, 24, 39, .07);
}

body {
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

.site-header {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 0 rgba(17, 24, 39, .04);
}

.topline {
    min-height: 32px;
    background: #101828;
    font-size: 12px;
}

.navbar {
    min-height: 70px;
    gap: 20px;
}

.nav-links a,
.nav-actions a {
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.nav-links a:hover,
.account-link:hover {
    color: var(--accent-dark);
}

.search-form {
    border-color: #d8dee8;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(17, 24, 39, .03);
}

.search-form:focus-within {
    border-color: rgba(15, 118, 110, .45);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .08);
}

.search-form button {
    background: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-pill,
.account-link,
.icon-link,
.hamburger {
    border-color: #d8dee8;
    background: #fff;
}

.cart-pill:hover,
.icon-link:hover,
.hamburger:hover {
    border-color: rgba(15, 118, 110, .35);
    background: #f0fdfa;
}

.icon-link {
    width: 42px;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.icon-link .ui-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
}

.hero {
    min-height: min(760px, calc(100svh - 102px));
}

.section {
    padding-top: 76px;
    padding-bottom: 76px;
}

.band {
    background: #f9fafb;
}

.category-tile,
.product-card,
.filters,
.summary,
.auth-panel form,
.checkout-form,
.workspace-section,
.profile-nav,
.cart-item,
.choice-row label,
.invoice-page {
    border-color: #e6eaf0;
}

.product-card {
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(17, 24, 39, .09);
}

.product-info {
    padding: 15px;
}

.product-info a {
    color: #101828;
}

.product-info p {
    margin-bottom: 12px;
}

.badge,
.status {
    box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
}

input,
select,
textarea {
    border-color: #d8dee8;
    color: #101828;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .08);
    outline: 0;
}

.btn {
    font-weight: 800;
    box-shadow: none;
    gap: 8px;
}

.btn:hover {
    box-shadow: 0 10px 24px rgba(17, 24, 39, .1);
}

.empty-state {
    border: 1px dashed #d8dee8;
    background: #fbfcfe;
    color: var(--muted);
}

blockquote {
    border-left-color: #0f766e;
    background: #f8fafc;
}

.site-footer {
    background: #101828;
}

.admin-body {
    background: #f5f7fa;
}

.admin-shell {
    grid-template-columns: 272px minmax(0, 1fr);
}

.admin-sidebar {
    padding: 24px 18px;
    background: #0f172a;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
    overflow-y: auto;
}

.admin-sidebar .brand {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-left: 8px;
    font-size: 29px;
}

.admin-sidebar nav {
    gap: 3px;
    margin-top: 28px;
}

.admin-nav-label {
    display: block;
    margin: 18px 10px 7px;
    color: rgba(255, 255, 255, .46);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-nav-label:first-child {
    margin-top: 0;
}

.admin-sidebar a:not(.brand) {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .76);
    font-weight: 700;
}

.admin-sidebar .ui-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    opacity: .78;
}

.admin-sidebar a:not(.brand):hover .ui-icon {
    opacity: 1;
}

.admin-sidebar a:not(.brand):hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-logout {
    margin-top: 24px;
    padding: 14px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-logout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    font-weight: 800;
}

.admin-logout button:hover {
    background: rgba(255, 255, 255, .1);
}

.admin-main {
    min-width: 0;
    padding: 28px clamp(18px, 3vw, 42px);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -28px calc(clamp(18px, 3vw, 42px) * -1) 24px;
    padding: 18px clamp(18px, 3vw, 42px);
    border-bottom: 1px solid #e6eaf0;
    background: rgba(245, 247, 250, .94);
    backdrop-filter: blur(14px);
}

.admin-topbar h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: 0;
}

.admin-metrics article,
.metric-row span,
.workspace-section,
.summary,
.filters,
.checkout-form,
.auth-panel form,
.profile-nav {
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.admin-metrics article,
.metric-row span {
    border: 1px solid #e6eaf0;
}

.admin-metrics strong,
.metric-row strong {
    color: #101828;
}

.responsive-table,
.table-wrap {
    border: 1px solid #e6eaf0;
    border-radius: var(--radius);
    background: #fff;
}

table {
    min-width: 760px;
}

th {
    background: #f9fafb;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

td {
    color: #344054;
}

tr:hover td {
    background: #fcfcfd;
}

.table-actions {
    gap: 10px;
}

.table-actions a,
.table-actions button {
    border-radius: 999px;
    padding: 6px 9px;
}

.table-actions a:hover,
.table-actions button:hover {
    background: #f0fdfa;
}

.admin-note,
.admin-alert {
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.admin-note {
    border-color: #fedf89;
}

.admin-alert.success {
    border-color: #abefc6;
}

.admin-alert.error {
    border-color: #fecdca;
}

.chart-bars {
    gap: 10px;
}

.chart-bars span {
    background: linear-gradient(180deg, #14b8a6, #0f766e);
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
    padding: 26px;
    border: 1px solid #dbe4ea;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 62%, #eef8f7 100%);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
}

.dashboard-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.admin-module-hero,
.inventory-hero,
.cms-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .98)),
        radial-gradient(circle at 88% 14%, rgba(20, 184, 166, .14), transparent 34%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .055);
}

.admin-module-hero::after,
.inventory-hero::after,
.cms-hero::after {
    content: "";
    position: absolute;
    inset: auto 22px 0 auto;
    width: 180px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, .55));
}

.admin-module-identity {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
}

.admin-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 14px 26px rgba(15, 118, 110, .2);
}

.admin-module-icon .ui-icon {
    width: 22px;
    height: 22px;
}

.admin-module-hero h2,
.inventory-hero h2,
.cms-hero h2 {
    margin: 4px 0 8px;
    font-size: clamp(30px, 3.2vw, 46px);
    letter-spacing: 0;
    line-height: 1;
}

.admin-module-hero p,
.inventory-hero p,
.cms-hero p {
    max-width: 700px;
    margin: 0;
    color: #667085;
}

.admin-module-side {
    display: grid;
    justify-items: end;
    gap: 12px;
    flex: 0 0 auto;
}

.admin-module-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-module-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.admin-module-meta strong {
    color: #101828;
}

.admin-module-actions,
.inventory-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.rating-stars {
    color: #b54708;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.workspace-section > .section-heading:first-child {
    margin-bottom: 16px;
}

.metric-cards article {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff, #fbfcfe),
        radial-gradient(circle at top right, rgba(15, 118, 110, .11), transparent 36%);
}

.metric-cards article::after {
    content: "";
    position: absolute;
    inset: auto -18px -28px auto;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .07);
}

.metric-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid #d9eeeb;
    border-radius: var(--radius);
    background: #f0fdfa;
    color: var(--accent-dark);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-panel {
    min-width: 0;
}

.chart-panel-wide {
    grid-row: span 2;
}

.chart-panel .section-heading {
    margin-bottom: 16px;
}

.chart-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #d9eeeb;
    border-radius: 999px;
    background: #f0fdfa;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.line-chart {
    min-height: 340px;
    display: grid;
    align-content: end;
    gap: 12px;
}

.line-chart svg {
    width: 100%;
    min-height: 280px;
    overflow: visible;
}

.line-chart-grid {
    fill: none;
    stroke: #e6eaf0;
    stroke-width: .8;
}

.line-chart-area {
    fill: url(#revenueFill);
}

.line-chart-line {
    fill: none;
    stroke: #0f766e;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-chart-dot {
    fill: #fff;
    stroke: #0f766e;
    stroke-width: 2;
}

.chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.modern-bars {
    height: 220px;
    display: flex;
    align-items: end;
    gap: 9px;
    padding: 18px 2px 0;
}

.modern-bars span {
    flex: 1;
    min-width: 8px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.modern-bars span:nth-child(3n) {
    background: linear-gradient(180deg, #2dd4bf, #0f766e);
}

.modern-bars span:nth-child(4n) {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.dense {
    padding-top: 10px;
}

.donut-layout {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    align-items: center;
}

.donut-chart {
    width: 170px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle, #fff 0 54%, transparent 55%),
        conic-gradient(#0f766e 0 var(--paid), #2563eb var(--paid) var(--processing), #f59e0b var(--processing) 100%);
    box-shadow: inset 0 0 0 1px #e6eaf0;
}

.donut-chart strong,
.donut-chart span {
    grid-area: 1 / 1;
}

.donut-chart strong {
    margin-top: -12px;
    font-size: 30px;
}

.donut-chart span {
    margin-top: 42px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.chart-legend {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chart-legend li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.chart-legend li span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.chart-legend strong {
    color: #101828;
}

.modern-activity {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.modern-activity li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    color: var(--muted);
}

.modern-activity li:last-child {
    border-bottom: 0;
}

.modern-activity strong {
    min-width: 0;
    color: #344054;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.data-table-toolbar,
.data-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.data-table-toolbar {
    margin-top: 0;
}

.data-table-search,
.data-table-size {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.data-table-search {
    width: min(420px, 100%);
}

.data-table-search input {
    min-height: 40px;
}

.data-table-size select {
    min-width: 76px;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.data-table th.is-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sort-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .32;
    transform: rotate(45deg) translateY(-2px);
}

.data-table th.sort-asc .sort-indicator {
    opacity: 1;
    transform: rotate(225deg) translateY(-1px);
}

.data-table th.sort-desc .sort-indicator {
    opacity: 1;
}

.data-table-info {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.data-table-pages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.data-table-pages button {
    min-height: 36px;
    border: 1px solid #d8dee8;
    border-radius: var(--radius);
    background: #fff;
    color: #101828;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 800;
}

.data-table-pages button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.data-table-pages span {
    min-width: 56px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.native-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #d8dee8;
    border-radius: var(--radius);
    background: #fff;
}

.file-picker.is-dragover {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .1);
}

.file-picker-btn {
    min-height: 34px;
    border: 0;
    border-radius: var(--radius);
    background: #111827;
    color: #fff;
    padding: 0 13px;
    cursor: pointer;
    font-weight: 900;
}

.file-picker-name {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-preview,
.table-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-preview {
    margin-top: -6px;
    margin-bottom: 14px;
}

.tag-preview span,
.table-tags em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #d9eeeb;
    border-radius: 999px;
    background: #f0fdfa;
    color: var(--accent-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.table-tags {
    margin-top: 6px;
}

.data-table-server tbody td {
    vertical-align: middle;
}

.field-error {
    display: block;
    margin-top: -6px;
    margin-bottom: 12px;
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
}

input.has-error,
select.has-error,
textarea.has-error,
.file-picker.has-error {
    border-color: #f97066;
    box-shadow: 0 0 0 4px rgba(240, 68, 56, .08);
}

.csv-preview,
.import-report {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: var(--radius);
    background: #fbfcfe;
}

.csv-preview strong,
.import-report strong {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
}

.csv-preview table {
    min-width: 520px;
}

.csv-preview th,
.csv-preview td {
    padding: 8px 10px;
    font-size: 12px;
}

.import-report {
    border-color: #fedf89;
    background: #fffbeb;
}

.import-report ul {
    margin: 0;
    padding-left: 18px;
    color: #7a4d00;
    font-size: 13px;
    line-height: 1.7;
}

.data-table-columns {
    position: relative;
}

.data-table-columns > button,
.data-table-filters button {
    min-height: 36px;
    border: 1px solid #d8dee8;
    border-radius: var(--radius);
    background: #fff;
    color: #344054;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
}

.data-table-columns > button:hover,
.data-table-filters button:hover,
.data-table-filters button.is-active {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: var(--accent-dark);
}

.column-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    display: none;
    padding: 8px;
    border: 1px solid #e6eaf0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .12);
}

.data-table-columns.is-open .column-menu {
    display: grid;
    gap: 4px;
}

.column-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 8px;
    border-radius: var(--radius);
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.column-menu label:hover {
    background: #f8fafc;
}

.column-menu input {
    width: auto;
}

.data-table-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 980px) {
    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        display: grid;
        align-items: start;
    }

    .chart-panel-wide {
        grid-row: auto;
    }

    .line-chart {
        min-height: 280px;
    }

    .line-chart svg {
        min-height: 220px;
    }
}

/* Admin inventory rebrand */
.inventory-workbench {
    display: grid;
    gap: 18px;
}

.inventory-workbench .admin-module-hero {
    margin-bottom: 0;
}

.inventory-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
}

.inventory-notice > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inventory-notice .ui-icon {
    width: 19px;
    height: 19px;
    color: #b54708;
}

.inventory-command-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.inventory-command-strip article {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 142px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .045);
}

.inventory-command-strip article::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 94px;
    height: 94px;
    border-radius: 999px;
    background: #eefbf8;
}

.inventory-command-strip span {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #101828;
    color: #fff;
}

.inventory-command-strip span .ui-icon {
    width: 19px;
    height: 19px;
}

.inventory-command-strip small {
    position: relative;
    z-index: 1;
    color: #667085;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.inventory-command-strip strong {
    position: relative;
    z-index: 1;
    color: #101828;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.inventory-control-deck {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .72fr);
    gap: 14px;
    align-items: stretch;
}

.inventory-filter-dock,
.inventory-threshold-card,
.inventory-tool-panel,
.inventory-stock-surface,
.inventory-ledger-panel {
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .045);
}

.inventory-filter-dock {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) minmax(190px, .8fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
}

.inventory-filter-dock h2,
.inventory-threshold-card h2,
.inventory-panel-head h2,
.inventory-section-bar h2 {
    margin: 2px 0 0;
    color: #101828;
    font-size: 20px;
    line-height: 1.16;
}

.inventory-filter-dock label,
.inventory-threshold-card label,
.inventory-tool-panel label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 900;
}

.inventory-threshold-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
}

.inventory-threshold-card p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.inventory-threshold-card label span {
    color: #667085;
    font-size: 12px;
    text-transform: uppercase;
}

.inventory-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
    gap: 14px;
    align-items: start;
}

.inventory-tool-panel {
    padding: 18px;
}

.inventory-panel-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5;
}

.inventory-panel-head > span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.inventory-panel-head .ui-icon {
    width: 20px;
    height: 20px;
}

.inventory-form-row {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
    gap: 12px;
}

.inventory-template-note {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfcfd;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.inventory-template-note .ui-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.inventory-import-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.inventory-import-actions .btn,
.inventory-tool-panel > form > .btn {
    width: 100%;
}

.inventory-stock-surface,
.inventory-ledger-panel {
    overflow: hidden;
}

.inventory-section-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #edf1f5;
}

.inventory-section-bar > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fbfcfd;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.inventory-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.inventory-stock-table {
    margin: 0;
    border: 0;
}

.inventory-stock-table th {
    background: #f7f9fb;
    color: #475467;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.inventory-stock-table th,
.inventory-stock-table td {
    padding: 15px 14px;
    vertical-align: middle;
}

.inventory-product-cell {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 210px;
}

.inventory-product-cell span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #101828;
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
}

.inventory-product-cell strong {
    color: #101828;
    line-height: 1.25;
}

.inventory-stock-table code {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fbfcfd;
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.inventory-available-cell {
    display: grid;
    gap: 7px;
    min-width: 118px;
}

.inventory-available-cell strong {
    color: #101828;
}

.inventory-available-cell i {
    position: relative;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.inventory-available-cell i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--level);
    border-radius: inherit;
    background: #0f766e;
}

.inventory-stock-table .status {
    min-width: 76px;
    justify-content: center;
    text-transform: capitalize;
}

.inventory-ledger-panel {
    margin-bottom: 20px;
}

.inventory-movement-list {
    padding: 14px;
}

.inventory-movement-item {
    border-color: #edf1f5;
    box-shadow: none;
}

.inventory-movement-item time {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.inventory-empty-ledger {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 34px 18px;
    text-align: center;
}

.inventory-empty-ledger .ui-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.inventory-empty-ledger h3 {
    margin: 0;
    color: #101828;
    font-size: 22px;
}

.inventory-empty-ledger p {
    max-width: 520px;
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .inventory-control-deck,
    .inventory-action-grid {
        grid-template-columns: 1fr;
    }

    .inventory-filter-dock {
        grid-template-columns: 1fr 1fr;
    }

    .inventory-filter-dock > div,
    .inventory-filter-dock button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .inventory-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-threshold-card,
    .inventory-form-row {
        grid-template-columns: 1fr;
    }

    .inventory-section-bar,
    .inventory-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .inventory-command-strip,
    .inventory-filter-dock,
    .inventory-import-actions {
        grid-template-columns: 1fr;
    }

    .inventory-command-strip article {
        min-height: 118px;
    }

    .inventory-filter-dock .btn,
    .inventory-threshold-card .btn {
        width: 100%;
    }

    .inventory-movement-item {
        grid-template-columns: 1fr;
    }
}

/* Admin orders rebrand */
.orders-workbench {
    display: grid;
    gap: 18px;
}

.orders-demo-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.orders-demo-alert .ui-icon {
    width: 19px;
    height: 19px;
    color: #b54708;
}

.orders-command-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.orders-command-strip article {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 136px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .045);
}

.orders-command-strip article::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 98px;
    height: 98px;
    border-radius: 999px;
    background: #eefbf8;
}

.orders-command-strip span {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #101828;
    color: #fff;
}

.orders-command-strip span .ui-icon {
    width: 19px;
    height: 19px;
}

.orders-command-strip small {
    position: relative;
    z-index: 1;
    color: #667085;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.orders-command-strip strong {
    position: relative;
    z-index: 1;
    color: #101828;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1;
}

.orders-ops-panel,
.orders-table-surface {
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .045);
}

.orders-ops-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.orders-ops-panel h2,
.orders-section-bar h2 {
    margin: 2px 0 0;
    color: #101828;
    font-size: 22px;
    line-height: 1.15;
}

.orders-ops-panel p:not(.eyebrow) {
    max-width: 680px;
    margin: 8px 0 0;
    color: #667085;
    line-height: 1.6;
}

.orders-latest-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfffd;
}

.orders-latest-card > span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.orders-latest-card .ui-icon {
    width: 20px;
    height: 20px;
}

.orders-latest-card small {
    color: #667085;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.orders-latest-card strong {
    display: block;
    margin-top: 2px;
    color: #101828;
}

.orders-latest-card p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 13px;
}

.orders-table-surface {
    overflow: hidden;
}

.orders-section-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #edf1f5;
}

.orders-section-bar > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fbfcfd;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.orders-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.orders-table {
    margin: 0;
    border: 0;
}

.orders-table th {
    background: #f7f9fb;
    color: #475467;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.orders-table th,
.orders-table td {
    padding: 15px 14px;
    vertical-align: middle;
}

.order-number-cell,
.order-customer-cell {
    display: grid;
    gap: 3px;
    min-width: 160px;
}

.order-number-cell {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.order-number-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #101828;
    color: #fff;
}

.order-number-cell .ui-icon {
    width: 17px;
    height: 17px;
}

.order-number-cell strong,
.order-customer-cell strong {
    color: #101828;
    line-height: 1.25;
}

.order-customer-cell small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.order-status {
    min-width: 88px;
    justify-content: center;
    text-transform: capitalize;
}

.order-gateway-pill,
.order-tracking-note {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fbfcfd;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}

.orders-inline-form {
    min-width: 420px;
    align-items: center;
}

.orders-inline-form select,
.orders-inline-form input {
    min-height: 40px;
}

.orders-inline-form button {
    gap: 7px;
    min-height: 40px;
    border-radius: 8px;
}

.orders-inline-form button .ui-icon,
.order-row-actions button .ui-icon,
.order-print-link .ui-icon {
    width: 16px;
    height: 16px;
}

.order-row-actions {
    margin-bottom: 8px;
}

.order-row-actions button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
}

.order-print-link {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9eeeb;
    border-radius: 8px;
    background: #f6fffd;
    color: #0f766e;
    justify-content: center;
}

.order-print-link:hover {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

@media (max-width: 1180px) {
    .orders-ops-panel {
        grid-template-columns: 1fr;
    }

    .orders-latest-card {
        max-width: 420px;
    }
}

@media (max-width: 820px) {
    .orders-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orders-section-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .orders-command-strip {
        grid-template-columns: 1fr;
    }

    .orders-command-strip article {
        min-height: 116px;
    }

    .orders-latest-card {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .dashboard-hero {
        padding: 20px;
    }

    .dashboard-hero .btn {
        width: 100%;
    }

    .donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .chart-legend {
        width: 100%;
    }

    .modern-activity li {
        grid-template-columns: 10px minmax(0, 1fr);
    }

    .modern-activity li > span:last-child {
        grid-column: 2;
    }

    .data-table-toolbar,
    .data-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .data-table-search,
    .data-table-size {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .data-table-pages {
        justify-content: space-between;
        width: 100%;
    }

    .data-table-pages button {
        flex: 1;
    }
}

.profile-nav a:hover,
.profile-nav button:hover {
    color: var(--accent-dark);
}

@media (max-width: 1060px) {
    .admin-shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .admin-sidebar {
        padding: 20px 14px;
    }
}

@media (max-width: 700px) {
    .navbar {
        padding: 14px 4vw;
    }

    .hero {
        min-height: 620px;
    }

    .hero h1 {
        font-size: clamp(54px, 18vw, 86px);
    }

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

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 18px 4vw;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .admin-nav-label {
        grid-column: 1 / -1;
        margin-left: 0;
    }

    .admin-sidebar a:not(.brand) {
        padding: 0 10px;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar {
        position: static;
        margin: -18px -18px 20px;
        padding: 18px;
        align-items: flex-start;
    }

    .table-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Responsive hardening pass */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.navbar,
.catalog-layout,
.cart-layout,
.checkout-layout,
.product-detail,
.profile-layout,
.contact-layout,
.auth-panel,
.admin-shell,
.admin-grid,
.settings-grid,
.form-grid,
.product-buy,
.promo-strip,
.site-footer {
    min-width: 0;
}

.search-form,
.nav-links,
.nav-actions,
.product-info,
.detail-copy,
.workspace-section,
.checkout-form,
.summary,
.filters,
.admin-main,
.responsive-table {
    min-width: 0;
}

.product-grid,
.catalog {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.testimonials,
.settings-grid,
.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metric-row,
.admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.promo-strip {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr) auto;
}

.product-row,
.price-row,
.rating-row,
.mini-line,
.choice-row,
.table-actions,
.hero-actions {
    flex-wrap: wrap;
}

.cart-item {
    grid-template-columns: 92px minmax(0, 1fr) 90px auto;
}

.cart-item input {
    min-width: 0;
}

.auth-panel {
    min-height: calc(100svh - 104px);
    align-content: center;
}

.auth-panel > div,
.auth-panel form {
    min-width: 0;
}

.auth-panel > div p,
.page-head p,
.detail-copy > p,
.product-info p {
    overflow-wrap: anywhere;
}

.responsive-table,
.table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.responsive-table table,
.table-wrap table {
    width: max-content;
    min-width: 100%;
}

.table-product {
    min-width: 210px;
}

.inline-order-form {
    grid-template-columns: minmax(120px, 150px) minmax(140px, 1fr) auto;
}

.invoice-page {
    max-width: calc(100vw - 24px);
}

@media (max-width: 1180px) {
    .navbar {
        grid-template-columns: auto auto minmax(220px, 1fr) auto;
        gap: 16px;
    }

    .nav-links,
    .nav-actions {
        gap: 10px;
    }

    .catalog-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1060px) {
    .site-header {
        isolation: isolate;
    }

    .navbar {
        position: relative;
        grid-template-columns: auto 44px minmax(0, 1fr);
        grid-auto-rows: auto;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .hamburger {
        display: inline-block;
        grid-column: 2;
        grid-row: 1;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-actions {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        padding-bottom: 0;
        overflow: visible;
    }

    .search-form {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 4px;
    }

    .nav-links {
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 45;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 14px 5vw 18px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 16px 34px rgba(17, 24, 39, .1);
    }

    .nav-links a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e6eaf0;
        border-radius: var(--radius);
        background: #fff;
        font-weight: 800;
    }

    .catalog-layout,
    .product-detail,
    .cart-layout,
    .checkout-layout,
    .profile-layout,
    .contact-layout,
    .auth-panel,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .filters,
    .summary,
    .profile-nav {
        position: static;
    }

    .summary {
        order: -1;
    }

    .product-detail {
        padding-top: 32px;
    }

    .gallery-main {
        max-height: 620px;
    }

    .promo-strip {
        grid-template-columns: 1fr 1fr;
    }

    .promo-strip .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .page-head,
    .catalog-layout,
    .cart-layout,
    .checkout-layout,
    .product-detail,
    .profile-layout,
    .contact-layout {
        width: min(100% - 28px, 1120px);
    }

    .section {
        width: auto;
        padding-top: 52px;
        padding-bottom: 52px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-head {
        padding-top: 40px;
    }

    .section-heading h2,
    .page-head h1,
    .detail-copy h1,
    .confirmation h1,
    .auth-panel h1 {
        line-height: 1.04;
    }

    .auth-panel {
        width: min(100% - 28px, 900px);
        min-height: calc(100svh - 132px);
        padding: 44px 0;
    }

    .auth-panel form,
    .checkout-form,
    .workspace-section,
    .filters,
    .summary,
    .profile-nav {
        padding: 18px;
    }

    .form-grid,
    .settings-grid,
    .testimonials,
    .promo-strip,
    .site-footer,
    .invoice-header,
    .invoice-title,
    .invoice-parties {
        grid-template-columns: 1fr;
    }

    .invoice-header,
    .invoice-title,
    .invoice-parties {
        display: grid;
    }

    .product-buy {
        grid-template-columns: 1fr 1fr;
    }

    .product-buy button {
        grid-column: 1 / -1;
    }

    .thumb-row {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .thumb-row button {
        flex: 0 0 72px;
    }

    .choice-row label {
        flex: 1 1 220px;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: start;
    }

    .cart-item img {
        width: 76px;
        height: 76px;
    }

    .cart-item input,
    .cart-item button {
        grid-column: 2;
        justify-self: start;
    }

    .inline-order-form {
        grid-template-columns: 1fr;
    }

    .inline-order-form button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .navbar {
        grid-template-columns: auto 42px auto;
        gap: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand {
        font-size: 25px;
    }

    .nav-actions {
        gap: 6px;
    }

    .account-link {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-left: 10px;
        padding-right: 10px;
    }

    .cart-pill {
        padding: 0 8px;
    }

    .cart-pill span {
        display: none;
    }

    .search-form input {
        min-width: 0;
        padding-left: 12px;
    }

    .search-form button {
        padding: 0 12px;
    }

    .nav-links {
        grid-template-columns: 1fr 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        min-height: 540px;
        padding: 74px 18px 56px;
    }

    .hero-line {
        font-size: 17px;
    }

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

    .product-grid,
    .catalog,
    .category-grid,
    .metric-row,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .product-media {
        aspect-ratio: 5 / 4;
    }

    .product-buy {
        grid-template-columns: 1fr;
    }

    .summary dl,
    .invoice-title dl,
    .invoice-total dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .admin-topbar {
        display: grid;
        gap: 12px;
    }

    .admin-topbar .btn {
        width: 100%;
    }

    .invoice-page {
        margin: 12px auto;
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .navbar {
        grid-template-columns: 1fr 42px;
    }

    .nav-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
    }

    .search-form {
        grid-row: 3;
    }

    .icon-link,
    .cart-pill,
    .account-link {
        min-height: 38px;
    }

    .account-link {
        max-width: 132px;
    }
}

/* Admin dashboard responsive corrections */
.dashboard-hero,
.dashboard-grid,
.metric-cards,
.chart-panel,
.line-chart,
.modern-bars,
.donut-layout,
.modern-activity {
    min-width: 0;
}

.dashboard-hero > div,
.chart-panel .section-heading,
.chart-legend,
.modern-activity strong {
    min-width: 0;
}

.dashboard-hero h2,
.chart-panel h2 {
    overflow-wrap: anywhere;
}

.chart-panel {
    overflow: hidden;
}

.line-chart svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.modern-bars {
    min-width: 0;
}

.modern-bars span {
    min-width: 5px;
}

@media (max-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart-panel-wide {
        grid-row: auto;
    }

    .line-chart {
        min-height: 300px;
    }

    .line-chart svg {
        min-height: 230px;
    }

    .donut-layout {
        grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .dashboard-hero {
        display: grid;
        align-items: start;
        padding: 22px;
    }

    .dashboard-hero .btn {
        justify-self: start;
    }

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

    .line-chart {
        min-height: 240px;
    }

    .line-chart svg {
        min-height: 180px;
    }

    .modern-bars {
        height: 180px;
        gap: 6px;
    }

    .chart-axis {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 640px) {
    .dashboard-hero {
        padding: 18px;
    }

    .dashboard-hero h2 {
        font-size: clamp(28px, 11vw, 42px);
    }

    .dashboard-hero .btn {
        width: 100%;
    }

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

    .chart-panel .section-heading.split {
        align-items: flex-start;
        flex-direction: column;
    }

    .line-chart {
        min-height: 210px;
    }

    .line-chart svg {
        min-height: 150px;
    }

    .modern-bars {
        height: 150px;
    }

    .donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .donut-chart {
        width: min(170px, 70vw);
    }

    .chart-legend {
        width: 100%;
    }

    .modern-activity li {
        grid-template-columns: 10px minmax(0, 1fr);
        align-items: start;
    }

    .modern-activity li > span:last-child {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    .chart-panel,
    .workspace-section {
        padding: 16px;
    }

    .line-chart {
        min-height: 180px;
    }

    .line-chart svg {
        min-height: 125px;
    }

    .modern-bars {
        height: 125px;
        gap: 4px;
    }
}

/* Fixed admin sidebar */
@media (min-width: 701px) {
    .admin-shell {
        display: block;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 30;
        width: 272px;
        height: 100vh;
    }

    .admin-main {
        margin-left: 272px;
        min-height: 100vh;
    }
}

@media (min-width: 701px) and (max-width: 1060px) {
    .admin-sidebar {
        width: 230px;
    }

    .admin-main {
        margin-left: 230px;
    }
}

@media (max-width: 700px) {
    .admin-sidebar {
        position: static;
        width: auto;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
    }
}

/* Recent activity feed polish */
.activity-panel {
    position: relative;
    overflow: hidden;
}

.activity-panel::before {
    content: "";
    position: absolute;
    top: 74px;
    bottom: 28px;
    left: 31px;
    width: 1px;
    background: linear-gradient(180deg, rgba(20, 184, 166, .35), rgba(20, 184, 166, 0));
}

.activity-panel .section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.modern-activity {
    position: relative;
    z-index: 1;
    gap: 0;
}

.modern-activity li {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 64px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.modern-activity li:hover .activity-dot {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(20, 184, 166, .14);
}

.activity-dot {
    align-self: center;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    background: #0f766e;
    transition: transform .18s ease, box-shadow .18s ease;
}

.activity-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.activity-copy strong {
    color: #101828;
    font-size: 15px;
    line-height: 1.25;
}

.activity-copy span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.modern-activity time {
    align-self: center;
    max-width: 180px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.activity-empty {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    border: 1px dashed #d8dee8;
    border-radius: var(--radius);
    background: #fbfcfe;
}

.activity-empty .ui-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    color: var(--accent-dark);
}

.activity-empty strong {
    display: block;
    color: #101828;
}

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

@media (max-width: 640px) {
    .activity-panel::before {
        left: 25px;
    }

    .modern-activity li {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 12px;
    }

    .modern-activity time {
        grid-column: 2;
        justify-self: start;
        max-width: 100%;
        text-align: left;
        white-space: normal;
    }
}

/* Polished scrollbar thumbs */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 118, 110, .48) rgba(17, 24, 39, .06);
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, .04);
}

::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(20, 184, 166, .86), rgba(15, 118, 110, .9)) border-box;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(45, 212, 191, .95), rgba(17, 94, 89, .98)) border-box;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.admin-sidebar {
    scrollbar-color: rgba(255, 255, 255, .42) rgba(255, 255, 255, .08);
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .28)) border-box;
    background-clip: padding-box;
}

.responsive-table::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
    height: 9px;
}

/* Refined DataTable controls */
.data-table-toolbar,
.data-table-footer {
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: var(--radius);
    background: #fbfcfe;
}

.data-table-toolbar {
    margin-bottom: 12px;
}

.data-table-footer {
    margin-top: 12px;
}

.data-table-search span,
.data-table-size span,
.data-table-info {
    color: #475467;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table-search input,
.data-table-size select {
    border-color: #d6dde8;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.data-table-search input {
    min-width: min(320px, 100%);
    padding-left: 14px;
}

.data-table-size select {
    cursor: pointer;
    font-weight: 800;
}

.data-table-pages {
    padding: 4px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.data-table-pages button {
    min-width: 82px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #344054;
    padding: 0 14px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.data-table-pages button:not(:disabled):hover {
    background: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.data-table-pages button:focus-visible {
    outline: 3px solid rgba(20, 184, 166, .22);
    outline-offset: 2px;
}

.data-table-pages button:disabled {
    background: #f2f4f7;
    color: #98a2b3;
    opacity: 1;
}

.data-table-pages span {
    min-width: 64px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f0fdfa;
    color: var(--accent-dark);
}

.data-table th.is-sortable {
    transition: color .18s ease, background .18s ease;
}

.data-table th.is-sortable:hover {
    background: #eef8f7;
    color: var(--accent-dark);
}

.data-table th.sort-asc,
.data-table th.sort-desc {
    color: var(--accent-dark);
}

@media (max-width: 640px) {
    .data-table-toolbar,
    .data-table-footer {
        padding: 10px;
    }

    .data-table-search input,
    .data-table-size select {
        width: 100%;
    }

    .data-table-pages {
        border-radius: var(--radius);
    }

    .data-table-pages button,
    .data-table-pages span {
        min-width: 0;
    }
}

/* Unified application button system */
button,
.btn,
.table-actions a,
.table-actions button,
.data-table td > a,
.data-table td > form button,
.inline-order-form button,
.coupon-form button:not(.btn),
.file-picker-btn,
.newsletter button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

button:focus-visible,
.btn:focus-visible,
.table-actions a:focus-visible,
.table-actions button:focus-visible,
.data-table td > a:focus-visible,
.data-table td > form button:focus-visible,
.inline-order-form button:focus-visible,
.coupon-form button:not(.btn):focus-visible,
.file-picker-btn:focus-visible,
.newsletter button:focus-visible {
    outline: 3px solid rgba(20, 184, 166, .22);
    outline-offset: 2px;
}

.btn {
    min-height: 46px;
    padding: 0 20px;
    border-color: #d8dee8;
}

.btn-dark {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.btn-dark:hover {
    border-color: #0f766e;
    background: #0f766e;
}

.btn-light {
    border-color: #d8dee8;
    background: #fff;
    color: #101828;
}

.btn-light:hover,
.data-table td > a:hover,
.table-actions a:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: var(--accent-dark);
}

.btn:hover,
.file-picker-btn:hover,
.newsletter button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, .1);
}

button:disabled,
.btn:disabled,
.data-table td > form button:disabled,
.table-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.is-loading,
.btn.is-loading {
    position: relative;
    color: transparent !important;
}

button.is-loading::after,
.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    color: #fff;
    animation: spin .7s linear infinite;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-actions form,
.data-table td > form {
    display: inline-flex;
    margin: 0;
}

.table-actions a,
.data-table td > a {
    min-height: 34px;
    padding: 0 12px;
    border-color: #d9eeeb;
    background: #f8fefc;
    color: var(--accent-dark);
    font-size: 13px;
}

.table-actions button,
.data-table td > form button {
    min-height: 34px;
    padding: 0 12px;
    border-color: #fecdca;
    background: #fff7f7;
    color: #b42318;
    font-size: 13px;
}

.table-actions button:hover,
.data-table td > form button:hover {
    border-color: #f97066;
    background: #fef3f2;
    color: #912018;
}

.inline-order-form button {
    min-height: 38px;
    padding: 0 14px;
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.inline-order-form button:hover {
    border-color: #0f766e;
    background: #0f766e;
}

.coupon-form button:not(.btn) {
    min-height: 32px;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b42318;
}

.file-picker-btn {
    min-height: 36px;
    padding: 0 14px;
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.newsletter button {
    min-height: 42px;
    padding: 0 16px;
    border-color: #fff;
    background: #fff;
    color: #111827;
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #667085;
    box-shadow: none;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f0fdfa;
    color: var(--accent-dark);
    transform: translateY(-50%);
    box-shadow: none;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(20, 184, 166, .22);
    outline-offset: 2px;
}

.password-toggle .ui-icon {
    width: 18px;
    height: 18px;
}

.cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    display: grid;
    gap: 14px;
    width: min(560px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid #d8dee8;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(17, 24, 39, .18);
    backdrop-filter: blur(14px);
    transition: opacity .18s ease, transform .18s ease;
}

.cookie-consent.is-hiding {
    opacity: 0;
    transform: translateY(12px);
}

.cookie-consent-copy {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
}

.cookie-consent-copy strong {
    color: #101828;
    font-size: 16px;
}

.cookie-consent-copy p {
    margin: 4px 0 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
}

.cookie-consent-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
    background: #f0fdfa;
    color: var(--accent-dark);
}

.cookie-consent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: var(--radius);
    background: #fbfcfe;
}

.cookie-consent-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent-actions .btn {
    min-height: 40px;
    padding-inline: 14px;
}

.legal-page {
    max-width: 880px;
}

.legal-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.legal-list article {
    padding-top: 16px;
    border-top: 1px solid #e6eaf0;
}

.legal-list h2 {
    margin-bottom: 6px;
    color: #101828;
    font-size: 18px;
}

.legal-list p {
    color: #475467;
    line-height: 1.7;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.product-breadcrumbs a {
    color: #475467;
}

.product-breadcrumbs strong {
    color: #101828;
}

.product-detail-modern {
    width: min(1180px, calc(100% - 32px));
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
    gap: clamp(26px, 4.4vw, 60px);
    padding-top: 18px;
    padding-bottom: 56px;
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.product-gallery-main {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fafc, #eef4f3);
    box-shadow: none;
}

.product-preview-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery-main .gallery-main {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
    object-fit: cover;
    transition: transform .28s ease;
}

.product-preview-trigger:hover .gallery-main,
.product-preview-trigger:focus-visible .gallery-main {
    transform: scale(1.015);
}

.product-sale-badge {
    top: 16px;
    left: 16px;
    background: #111827;
    color: #fff;
}

.product-thumbs {
    margin-top: 0;
}

.product-thumbs button {
    width: 82px;
    height: 82px;
    border-color: #d8dee8;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.product-thumbs button:hover,
.product-thumbs button:focus-visible,
.product-thumbs button.is-active {
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, .08);
}

.gallery-preview-cta {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #101828;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .14);
    cursor: zoom-in;
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-preview-cta:hover,
.gallery-preview-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(17, 24, 39, .18);
}

.product-gallery-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 12px;
    border: 1px solid #d9eeeb;
    border-radius: 999px;
    background: #f8fefc;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.product-purchase-panel {
    position: sticky;
    top: 110px;
    padding: 10px 0 0 clamp(12px, 3vw, 30px);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.product-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-kicker span,
.product-rating-strip span,
.product-rating-strip a,
.product-rating-strip strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    background: #fbfcfe;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.product-kicker span {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #667085;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.product-purchase-panel h1 {
    margin: 0 0 12px;
    color: #101828;
    font-size: clamp(32px, 4.2vw, 58px);
    letter-spacing: 0;
    line-height: 1.03;
}

.product-purchase-panel > p {
    margin-bottom: 18px;
    color: #475467;
}

.product-rating-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-rating-strip .ui-icon {
    width: 15px;
    height: 15px;
    color: #f59e0b;
}

.product-rating-strip .is-stocked {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.product-rating-strip .is-low-stock {
    border-color: #fecdca;
    background: #fff7f7;
    color: #b42318;
}

.product-price-row {
    align-items: baseline;
    margin: 22px 0;
}

.product-price-row strong {
    color: #101828;
    font-size: clamp(30px, 4vw, 42px);
}

.product-buy-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.product-buy-modern > * {
    min-width: 0;
    grid-column: 1 / -1;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.variant-grid .product-option {
    margin-bottom: 0;
    gap: 8px;
    min-width: 0;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.variant-grid .product-option select,
.variant-grid .product-option input {
    min-height: 50px;
    border-color: #d8dee8;
    border-radius: 14px;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.product-option-quantity {
    grid-column: 1 / -1;
    max-width: 220px;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 42px minmax(48px, 1fr) 42px;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
}

.quantity-stepper button {
    display: inline-grid;
    place-items: center;
    grid-column: auto;
    width: 42px;
    border: 0;
    background: #f8fafc;
    color: #101828;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.quantity-stepper button:hover,
.quantity-stepper button:focus-visible {
    background: #f0fdfa;
    color: var(--accent-dark);
}

.quantity-stepper input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 6px;
    border: 0;
    border-right: 1px solid #e6eaf0;
    border-left: 1px solid #e6eaf0;
    border-radius: 0;
    text-align: center;
}

.product-buy .quantity-stepper button {
    grid-column: auto;
}

.quantity-stepper input:focus {
    box-shadow: none;
}

.select2-container {
    min-width: 0;
    max-width: 100%;
    color: #101828;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .08);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0 42px 0 14px;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
    line-height: 48px;
    letter-spacing: 0;
    text-transform: none;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #98a2b3;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 12px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 28px;
    color: #667085;
    font-weight: 900;
}

.select2-dropdown {
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(17, 24, 39, .14);
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 40px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 8px 10px;
    outline: 0;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    color: #344054;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #f0fdfa;
    color: var(--accent-dark);
}

.select2-container--default .select2-results__option--selected {
    background: #f8fafc;
    color: #101828;
    font-weight: 900;
}

.variant-grid .select2-container--default .select2-selection--single,
.filters .select2-container--default .select2-selection--single {
    min-height: 48px;
}

.product-option-color {
    gap: 8px;
}

.color-swatch-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.color-swatch:hover {
    border-color: #98a2b3;
    transform: translateY(-1px);
}

.color-swatch.is-selected {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, .1);
}

.color-swatch span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(16, 24, 40, .16);
    background: var(--swatch-color);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}

.variant-stock-hint {
    margin: -4px 0 2px;
    color: #475467;
    font-size: 13px;
    font-weight: 850;
}

.variant-stock-hint.is-low-stock {
    color: #b54708;
}

.variant-stock-hint.is-out-stock {
    color: #b42318;
}

.inventory-toolbar,
.threshold-form,
.inline-threshold-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-metrics {
    margin-bottom: 18px;
}

.inventory-layout {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(280px, .58fr);
    gap: 18px;
    align-items: start;
}

.inventory-adjust-panel,
.inventory-import-panel,
.inventory-table-section,
.inventory-ledger {
    margin-top: 18px;
}

.inline-threshold-form {
    flex-wrap: nowrap;
    align-items: center;
}

.inline-threshold-form input {
    width: 82px;
    min-height: 38px;
    padding: 8px 10px;
}

.inline-threshold-form .btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
}

.inventory-status-healthy {
    background: #ecfdf3;
    color: #027a48;
}

.inventory-status-low {
    background: #fffaeb;
    color: #b54708;
}

.inventory-status-out {
    background: #fef3f2;
    color: #b42318;
}

.movement-list {
    display: grid;
    gap: 10px;
}

.movement-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fff;
}

.movement-delta {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 950;
}

.movement-delta.is-positive {
    background: #ecfdf3;
    color: #027a48;
}

.movement-delta.is-negative {
    background: #fef3f2;
    color: #b42318;
}

.movement-item strong {
    display: block;
    color: #101828;
}

.movement-item p,
.movement-item small {
    display: block;
    margin: 4px 0 0;
    color: #667085;
}

.movement-item time {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cms-metrics {
    margin-bottom: 18px;
}

.cms-layout {
    display: grid;
    grid-template-columns: minmax(340px, .72fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cms-editor-panel,
.cms-pages-panel {
    min-width: 0;
}

.cms-body-input {
    min-height: 280px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.65;
}

.cms-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cms-editor-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cms-editor-hints span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.cms-editor-hints .ui-icon {
    width: 15px;
    height: 15px;
    color: var(--accent-dark);
}

.cms-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    background: #f8fafc;
}

.cms-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    cursor: pointer;
    font-weight: 900;
}

.cms-toolbar button.is-active {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.cms-preview-panel {
    min-height: 180px;
    padding: 18px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    line-height: 1.7;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.media-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    background: #fff;
}

.media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #f2f4f7;
}

.media-card input {
    margin-top: 8px;
    font-size: 12px;
}

.inventory-setup-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audit-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.audit-modal[hidden] {
    display: none;
}

.audit-dialog {
    width: min(680px, 100%);
    max-height: min(760px, calc(100svh - 36px));
    overflow: auto;
    padding: 24px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
    position: relative;
}

.audit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid #e6eaf0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
}

.audit-row {
    display: grid;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #eef1f5;
}

.audit-row span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.audit-row pre {
    overflow: auto;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 12px;
}

.cms-pages-table td strong,
.cms-pages-table td small {
    display: block;
}

.cms-pages-table td small {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.admin-muted {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 900;
}

.inline-order-form .select2-container {
    min-width: 150px;
}

.product-action-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(128px, .58fr);
    gap: 12px;
    width: min(100%, 430px);
    align-items: start;
}

.product-action-row .btn {
    width: 100%;
    min-height: 46px;
    gap: 10px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
}

.product-form-feedback {
    min-height: 20px;
    margin: -4px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.product-form-feedback.is-success {
    color: #0f766e;
}

.product-form-feedback.is-error {
    color: #b42318;
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 16px 0;
    border-top: 1px solid #e6eaf0;
    border-bottom: 1px solid #e6eaf0;
}

.assurance-grid span {
    display: grid;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.assurance-grid .ui-icon {
    color: var(--accent-dark);
}

.assurance-grid strong {
    color: #101828;
    font-size: 13px;
}

.assurance-grid small {
    color: #667085;
    line-height: 1.45;
}

.product-reviews-section,
.related-products-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    border-top: 1px solid #eef1f5;
}

.product-review-layout {
    width: 100%;
    grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
    gap: 20px;
}

.review-form-panel,
.review-list-panel {
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.review-list-panel {
    display: grid;
    gap: 14px;
}

.product-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    padding: 24px;
    border: 1px dashed #d8dee8;
    border-radius: 16px;
    background: #fbfcfe;
    color: #667085;
    text-align: center;
}

.product-empty-state .ui-icon {
    color: #f59e0b;
}

.product-empty-state strong {
    color: #101828;
}

.related-products-section .section-heading,
.product-reviews-section .section-heading {
    margin-bottom: 20px;
}

.review-item strong {
    color: #101828;
}

.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
}

.image-preview-modal[hidden] {
    display: none !important;
}

.image-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .76);
    backdrop-filter: blur(10px);
}

.image-preview-dialog {
    position: relative;
    display: grid;
    place-items: center;
    width: min(1040px, calc(100vw - 32px));
    max-height: calc(100svh - 32px);
}

.image-preview-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(100svh - 122px);
    border-radius: 18px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
}

.image-preview-close,
.image-preview-nav {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #101828;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.image-preview-close:hover,
.image-preview-nav:hover,
.image-preview-close:focus-visible,
.image-preview-nav:focus-visible {
    transform: translateY(-1px);
    background: #fff;
}

.image-preview-close {
    top: -8px;
    right: -8px;
}

.image-preview-prev {
    left: 12px;
}

.image-preview-next {
    right: 12px;
}

.image-preview-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: min(720px, calc(100vw - 42px));
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(15, 23, 42, .7);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
}

.image-preview-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview-meta span {
    color: rgba(255, 255, 255, .76);
    white-space: nowrap;
}

body.preview-open {
    overflow: hidden;
}

@media (min-width: 1061px) {
    .product-purchase-panel {
        border-left: 1px solid #e6eaf0;
    }
}

.account-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 70px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(17, 24, 39, .08);
}

.account-identity {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.account-identity img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
}

.account-identity span,
.account-identity small,
.account-muted {
    color: #667085;
}

.account-identity span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

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

.account-identity strong {
    color: #101828;
    font-size: 16px;
}

.account-nav,
.account-logout {
    display: grid;
    gap: 8px;
}

.account-nav a,
.account-logout button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: #344054;
    font-weight: 900;
    text-decoration: none;
}

.account-nav a:hover,
.account-nav a.is-active {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: var(--accent-dark);
}

.account-logout {
    padding-top: 12px;
    border-top: 1px solid #eef1f5;
}

.account-logout button {
    width: 100%;
    color: #b42318;
}

.account-logout button:hover {
    border-color: #fecdca;
    background: #fff7f7;
}

.account-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.account-hero,
.account-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfb 58%, #edfdf9 100%);
}

.account-hero h1,
.account-page-head h1 {
    margin: 4px 0 8px;
    color: #101828;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0;
}

.account-hero p,
.account-page-head p {
    max-width: 640px;
    color: #475467;
}

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

.account-stats a {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-stats a:hover {
    transform: translateY(-2px);
    border-color: #99f6e4;
    box-shadow: 0 16px 42px rgba(17, 24, 39, .08);
}

.account-stats .ui-icon {
    color: var(--accent-dark);
}

.account-stats span {
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.account-stats strong {
    color: #101828;
    font-size: 28px;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
    align-items: start;
}

.account-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .06);
}

.account-panel-large {
    grid-column: span 1;
}

.account-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.account-panel h2 {
    color: #101828;
    font-size: 20px;
}

.account-panel p {
    color: #475467;
    line-height: 1.65;
}

.saved-preview {
    display: grid;
    gap: 10px;
}

.saved-preview a,
.account-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #101828;
    font-weight: 900;
    text-decoration: none;
}

.saved-preview img,
.account-product-cell img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    object-fit: cover;
    background: #f2f4f7;
}

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

@media (max-width: 1060px) {
    .product-detail-modern,
    .product-review-layout {
        grid-template-columns: 1fr;
    }

    .product-purchase-panel {
        position: static;
        padding-left: 0;
        border-left: 0;
    }

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

    .account-shell {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-nav {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

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

@media (max-width: 640px) {
    .account-shell {
        width: min(100% - 20px, 1220px);
        margin-top: 18px;
    }

    .account-hero,
    .account-page-head,
    .account-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-hero,
    .account-page-head,
    .account-panel {
        padding: 16px;
        border-radius: 14px;
    }

    .account-stats,
    .account-grid,
    .form-grid-tight {
        grid-template-columns: 1fr;
    }

    .account-nav {
        grid-template-columns: repeat(5, minmax(132px, 1fr));
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border-color: #d8dee8;
    border-radius: 999px;
    background: #fff;
}

.hamburger span {
    margin: 0 auto;
}

@media (max-width: 1060px) {
    .hamburger {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .product-breadcrumbs,
    .product-detail-modern,
    .product-review-layout {
        width: min(100% - 20px, 1180px);
    }

    .product-gallery-main {
        border-radius: 16px;
    }

    .product-purchase-panel {
        padding: 0;
        border-radius: 0;
    }

    .variant-grid,
    .assurance-grid,
    .product-action-row {
        grid-template-columns: 1fr;
    }

    .product-option-quantity {
        max-width: none;
    }

    .product-action-row .btn {
        min-height: 48px;
    }

    .report-product-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .report-product-meta {
        grid-column: 2;
        justify-items: start;
    }

    .variant-editor-row {
        grid-template-columns: 1fr;
    }

    .inventory-hero,
    .cms-hero,
    .cms-layout,
    .inventory-layout,
    .movement-item {
        grid-template-columns: 1fr;
    }

    .admin-module-hero,
    .inventory-hero,
    .cms-hero {
        display: grid;
        align-items: start;
    }

    .admin-module-side {
        justify-items: start;
    }

    .admin-module-meta,
    .admin-module-actions,
    .inventory-hero-actions {
        justify-content: flex-start;
    }

    .cms-editor-footer {
        align-items: stretch;
    }

    .cms-editor-footer .btn {
        width: 100%;
    }

    .movement-item time {
        white-space: normal;
    }

    .product-thumbs button {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .gallery-preview-cta {
        right: 10px;
        bottom: 10px;
        min-height: 36px;
        padding: 0 12px;
    }

    .image-preview-modal {
        padding: 12px;
    }

    .image-preview-dialog {
        width: calc(100vw - 24px);
    }

    .image-preview-dialog img {
        max-height: calc(100svh - 132px);
        border-radius: 14px;
    }

    .image-preview-close {
        top: 6px;
        right: 6px;
    }

    .image-preview-nav {
        width: 40px;
        height: 40px;
    }

    .image-preview-prev {
        left: 6px;
    }

    .image-preview-next {
        right: 6px;
    }

    .image-preview-meta {
        max-width: calc(100vw - 24px);
        border-radius: 14px;
    }

    .load-more-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .load-more-footer .btn {
        width: 100%;
    }

    .cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 14px;
    }

    .cookie-consent-copy {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }

    .table-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-actions a,
    .table-actions button,
    .data-table td > a,
    .data-table td > form button {
        width: 100%;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Payment callback result */
.payment-result {
    width: min(100% - 48px, 1120px);
    min-height: calc(100svh - 160px);
    margin: 0 auto;
    padding: 68px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: center;
}

.payment-result-copy {
    min-width: 0;
}

.payment-result-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 18px;
}

.payment-result.is-success .payment-result-icon {
    background: #eefbf8;
    color: var(--accent);
}

.payment-result.is-failed .payment-result-icon {
    background: #fff1f0;
    color: var(--danger);
}

.payment-result-icon svg {
    width: 30px;
    height: 30px;
}

.payment-result h1 {
    max-width: 760px;
    margin: 8px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: .98;
    letter-spacing: 0;
}

.payment-result-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: #596272;
    font-size: 17px;
    line-height: 1.7;
}

.payment-reference-panel {
    width: min(100%, 760px);
    margin: 28px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 20, 20, .05);
}

.payment-reference-panel span {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    color: #667085;
    border-right: 1px solid #edf1f5;
    font-size: 13px;
}

.payment-reference-panel span:last-child {
    border-right: 0;
}

.payment-reference-panel strong {
    color: #101828;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.payment-result-actions {
    justify-content: flex-start;
}

.payment-receipt-card {
    min-width: 0;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 24px 75px rgba(20, 20, 20, .08);
}

.payment-receipt-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f5;
}

.payment-receipt-head > svg {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
    background: #eefbf8;
    color: var(--accent);
}

.payment-result.is-failed .payment-receipt-head > svg {
    background: #fff1f0;
    color: var(--danger);
}

.payment-receipt-head h2 {
    margin: 2px 0 0;
    font-size: 24px;
}

.payment-receipt-card dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px;
    margin: 20px 0;
}

.payment-receipt-card dt {
    color: #667085;
}

.payment-receipt-card dd {
    max-width: 210px;
    margin: 0;
    color: #101828;
    font-weight: 900;
    text-align: right;
    overflow-wrap: anywhere;
}

.payment-next-steps {
    display: grid;
    gap: 10px;
}

.payment-next-steps span {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    background: #fcfcfd;
}

.payment-next-steps svg {
    color: var(--accent);
}

.payment-result.is-failed .payment-next-steps svg {
    color: var(--danger);
}

.payment-next-steps strong {
    color: #101828;
}

.payment-next-steps small {
    color: #667085;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .payment-result {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 1120px);
        padding: 44px 0;
    }

    .payment-receipt-card {
        order: -1;
    }
}

@media (max-width: 680px) {
    .payment-result h1 {
        font-size: clamp(36px, 12vw, 52px);
    }

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

    .payment-reference-panel span {
        border-right: 0;
        border-bottom: 1px solid #edf1f5;
    }

    .payment-reference-panel span:last-child {
        border-bottom: 0;
    }

    .payment-receipt-card {
        padding: 16px;
    }
}

/* Cart and checkout rebrand */
.commerce-hero {
    width: min(100% - 48px, 1180px);
    margin: 42px auto 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: end;
    border-bottom: 1px solid #e6ebf0;
    padding-bottom: 28px;
}

.commerce-hero h1 {
    max-width: 760px;
    margin: 8px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
    letter-spacing: 0;
}

.commerce-hero p:not(.eyebrow) {
    max-width: 640px;
    color: #596272;
    font-size: 17px;
    line-height: 1.7;
}

.commerce-hero-meta,
.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.commerce-hero-meta span,
.checkout-steps span {
    min-width: 0;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    display: grid;
    gap: 6px;
    box-shadow: 0 14px 35px rgba(20, 20, 20, .045);
}

.commerce-hero-meta svg,
.checkout-steps svg {
    color: var(--accent);
}

.commerce-hero-meta strong,
.checkout-steps strong {
    font-size: 18px;
    color: #101828;
}

.commerce-hero-meta small,
.checkout-steps small {
    color: #667085;
}

.checkout-steps span {
    position: relative;
}

.checkout-steps span.is-active {
    border-color: rgba(15, 118, 110, .32);
    background: #f8fffd;
}

.commerce-layout {
    width: min(100% - 48px, 1180px);
    margin: 0 auto 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.cart-workspace,
.commerce-checkout-form {
    min-width: 0;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 18px 55px rgba(20, 20, 20, .045);
}

.commerce-section-heading,
.checkout-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.commerce-section-heading h2,
.checkout-form-head h2,
.summary-title h2 {
    margin: 2px 0 0;
    font-size: 24px;
    letter-spacing: 0;
}

.checkout-form-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 800;
    font-size: 13px;
}

.checkout-form-head.compact {
    margin-top: 28px;
    margin-bottom: 12px;
}

.commerce-empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 34px;
}

.commerce-empty-state > svg {
    width: 42px;
    height: 42px;
    color: var(--accent);
}

.commerce-empty-state h2,
.commerce-empty-state p {
    margin: 0;
}

.commerce-empty-state p {
    color: #667085;
}

.commerce-cart-list {
    gap: 12px;
}

.commerce-cart-item {
    grid-template-columns: 104px minmax(0, 1fr) 98px 132px auto;
    border-color: #e4eaf0;
    border-radius: 8px;
    padding: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.commerce-cart-item:hover {
    border-color: rgba(15, 118, 110, .32);
    box-shadow: 0 16px 40px rgba(20, 20, 20, .06);
    transform: translateY(-1px);
}

.cart-item-media,
.cart-item-media img {
    width: 104px;
    height: 104px;
}

.cart-item-media {
    overflow: hidden;
    border-radius: 8px;
    background: #f6f7f8;
}

.cart-item-media img {
    object-fit: cover;
}

.cart-item-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.cart-item-copy a {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.cart-item-copy span,
.cart-item-copy small,
.cart-line-total span,
.cart-qty-control span {
    color: #667085;
    font-size: 13px;
}

.cart-item-copy strong,
.cart-line-total strong {
    color: #101828;
    font-size: 16px;
}

.cart-qty-control,
.cart-line-total {
    display: grid;
    gap: 7px;
    align-content: center;
}

.cart-qty-control input {
    width: 76px;
    height: 42px;
    border-radius: 8px;
    text-align: center;
    font-weight: 900;
}

.cart-remove-button {
    align-self: center;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #fee4e2;
    border-radius: 8px;
    color: #b42318;
    background: #fffafa;
    padding: 0 12px;
    font-weight: 900;
    cursor: pointer;
}

.commerce-cart-item .cart-remove-button {
    border: 1px solid #fee4e2;
    color: #b42318;
    background: #fffafa;
}

.commerce-cart-item .cart-remove-button span {
    display: inline;
    margin: 0;
    color: inherit;
}

.commerce-assurance-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.commerce-assurance-strip span,
.checkout-trust-list span {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    background: #fcfcfd;
}

.commerce-assurance-strip svg,
.checkout-trust-list svg {
    color: var(--accent);
}

.commerce-assurance-strip strong {
    color: #101828;
}

.commerce-assurance-strip small {
    color: #667085;
}

.commerce-summary {
    position: sticky;
    top: 112px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 22px 70px rgba(20, 20, 20, .08);
}

.summary-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5;
}

.summary-title > svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 8px;
    background: #eefbf8;
    color: var(--accent);
}

.summary-list {
    margin: 18px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.summary-list dt {
    color: #667085;
}

.summary-list dd {
    margin: 0;
    font-weight: 900;
}

.summary-total-label,
.summary-total-value {
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
    color: #101828 !important;
    font-size: 20px;
}

.shipping-progress {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    color: #0f766e;
    font-weight: 900;
    font-size: 13px;
}

.shipping-progress i {
    position: relative;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ebf0;
}

.shipping-progress i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress);
    border-radius: inherit;
    background: var(--accent);
}

.commerce-coupon-form label {
    display: grid;
    gap: 8px;
    color: #475467;
    font-weight: 800;
}

.commerce-coupon-form input {
    height: 46px;
}

.commerce-coupon-form button:not(.btn) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-cta,
.checkout-pay-button {
    min-height: 52px;
}

.commerce-summary-note {
    margin: 13px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.commerce-checkout-form {
    display: grid;
    gap: 16px;
}

.commerce-checkout-form label {
    font-weight: 800;
    color: #344054;
}

.commerce-checkout-form input,
.commerce-checkout-form textarea {
    margin-top: 8px;
}

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

.commerce-choice {
    position: relative;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "radio title"
        "icon detail";
    align-items: start !important;
    gap: 8px 12px !important;
    border: 1px solid #dfe7ef !important;
    border-radius: 8px !important;
    background: #fff;
    padding: 14px !important;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.commerce-choice:hover,
.commerce-choice.is-selected {
    border-color: rgba(15, 118, 110, .42) !important;
    background: #fbfffd;
    box-shadow: 0 14px 34px rgba(15, 118, 110, .08);
}

.commerce-choice input {
    grid-area: radio;
    margin: 3px 0 0;
    accent-color: var(--accent);
}

.commerce-choice > span {
    grid-area: icon;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eefbf8;
    color: var(--accent);
}

.commerce-choice strong {
    grid-area: title;
    color: #101828;
    font-size: 16px;
}

.commerce-choice small {
    grid-area: detail;
    color: #667085;
    line-height: 1.45;
}

.checkout-mini-lines {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.commerce-mini-line {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f5;
    padding-bottom: 10px;
}

.commerce-mini-line span {
    display: grid;
    gap: 3px;
    color: #101828;
    font-weight: 800;
}

.commerce-mini-line small {
    color: #667085;
    font-weight: 700;
}

.checkout-trust-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.checkout-trust-list span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475467;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .commerce-hero,
    .commerce-layout {
        width: min(100% - 32px, 1180px);
    }

    .commerce-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .commerce-cart-item {
        grid-template-columns: 94px minmax(0, 1fr) 86px auto;
    }

    .cart-line-total {
        grid-column: 2 / 3;
    }
}

@media (max-width: 920px) {
    .commerce-hero,
    .commerce-layout {
        grid-template-columns: 1fr;
    }

    .commerce-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 720px) {
    .commerce-hero {
        margin-top: 28px;
    }

    .commerce-hero-meta,
    .checkout-steps,
    .commerce-assurance-strip,
    .commerce-choice-grid {
        grid-template-columns: 1fr;
    }

    .commerce-hero h1 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .cart-workspace,
    .commerce-checkout-form,
    .commerce-summary {
        padding: 16px;
    }

    .commerce-section-heading,
    .checkout-form-head {
        display: grid;
    }

    .commerce-cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-media,
    .cart-item-media img {
        width: 82px;
        height: 82px;
    }

    .cart-qty-control,
    .cart-line-total,
    .cart-remove-button {
        grid-column: 2;
        justify-self: start;
    }

    .cart-remove-button {
        width: auto;
    }

    .summary-total-label,
    .summary-total-value {
        font-size: 18px;
    }
}

/* Products rebrand */
.products-hero {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    align-items: stretch;
    gap: 28px;
    border-bottom: 1px solid #edf1f5;
    padding-bottom: 28px;
}

.products-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
}

.products-hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #101828;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .95;
    letter-spacing: 0;
}

.products-hero-copy > p:not(.eyebrow) {
    max-width: 560px;
    margin: 20px 0 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}

.products-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.products-hero-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7fafc 0%, #eefbf8 100%);
}

.products-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transform: scale(1.01);
}

.products-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0) 45%, rgba(16, 24, 40, .22) 100%);
    pointer-events: none;
}

.products-hero-placeholder {
    height: 100%;
    min-height: 360px;
    display: grid;
    place-items: center;
    color: #0f766e;
}

.products-hero-placeholder .ui-icon {
    width: 72px;
    height: 72px;
}

.products-hero-stamp {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    display: grid;
    gap: 2px;
    min-width: 154px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 48px rgba(16, 24, 40, .14);
    backdrop-filter: blur(12px);
}

.products-hero-stamp strong {
    color: #101828;
    font-size: 28px;
    line-height: 1;
}

.products-hero-stamp span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.products-category-rail {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 22px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: thin;
}

.products-category-rail a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-weight: 900;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.products-category-rail a:hover,
.products-category-rail a.is-active {
    border-color: rgba(15, 118, 110, .35);
    background: #eefbf8;
    color: #0f766e;
    transform: translateY(-1px);
}

.product-catalog-layout {
    width: min(1180px, calc(100% - 40px));
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 24px;
    margin-top: 0;
}

.product-filter-panel {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
    border-color: #e4eaf1;
    box-shadow: none;
}

.filter-panel-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5;
}

.filter-panel-head > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.filter-panel-head strong {
    display: block;
    color: #101828;
    font-size: 16px;
}

.filter-panel-head small {
    color: #667085;
    font-weight: 800;
}

.product-filter-panel form {
    display: grid;
    gap: 15px;
}

.product-filter-panel label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 900;
}

.input-with-icon {
    position: relative;
    display: block;
}

.input-with-icon .ui-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #98a2b3;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 42px;
}

.filter-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 4px;
}

.filter-panel-actions .btn {
    width: 100%;
    min-height: 46px;
}

.product-catalog-main {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.product-catalog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 0 14px;
    border-bottom: 1px solid #edf1f5;
}

.product-catalog-toolbar h2 {
    margin: 2px 0 0;
    color: #101828;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
}

.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.active-filter-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.product-card-premium {
    position: relative;
    border-color: #e5ebf2;
    background: #fff;
    box-shadow: none;
}

.product-card-premium:hover {
    border-color: rgba(15, 118, 110, .28);
    box-shadow: 0 18px 50px rgba(16, 24, 40, .10);
    transform: translateY(-4px);
}

.product-card-media {
    position: relative;
    aspect-ratio: 1 / 1.08;
    background: #f6f8fa;
}

.product-card-media img {
    filter: saturate(1.02);
}

.product-card-premium:hover .product-card-media img {
    transform: scale(1.06);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #0f766e;
}

.product-card-placeholder .ui-icon {
    width: 48px;
    height: 48px;
}

.product-card-category,
.product-card-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0;
}

.product-card-category {
    left: 12px;
    top: 12px;
    background: rgba(255, 255, 255, .9);
    color: #344054;
    backdrop-filter: blur(10px);
}

.product-card-badge {
    right: 12px;
    top: 12px;
    background: #101828;
    color: #fff;
}

.product-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.product-card-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-card-kicker > span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.product-card-kicker small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.product-card-kicker .ui-icon {
    width: 14px;
    height: 14px;
    color: #f59e0b;
    fill: currentColor;
}

.product-card-title {
    color: #101828;
    font-size: 17px;
    font-weight: 1000;
    line-height: 1.25;
    text-decoration: none;
}

.product-card-title:hover {
    color: #0f766e;
}

.product-card-body p {
    min-height: 42px;
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f7f9fb;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
}

.stock-pill.is-ready {
    background: #eefbf8;
    color: #0f766e;
}

.stock-pill.is-low {
    background: #fff7ed;
    color: #b45309;
}

.stock-pill.is-out {
    background: #fff1f3;
    color: #b42318;
}

.product-card-footer {
    align-items: center;
    padding-top: 4px;
}

.product-price-stack {
    display: grid;
    gap: 3px;
}

.product-price-stack strong {
    color: #101828;
    font-size: 17px;
}

.product-price-stack del {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}

.product-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #d9e3ed;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    font-weight: 1000;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.product-card-cta:hover {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.product-card-cta .ui-icon {
    width: 16px;
    height: 16px;
}

.catalog-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 320px;
    padding: 36px 20px;
    border: 1px dashed #cfd8e3;
    border-radius: 8px;
    background: #fbfcfd;
    text-align: center;
}

.catalog-empty-state .ui-icon {
    width: 42px;
    height: 42px;
    color: #0f766e;
}

.catalog-empty-state h3 {
    margin: 0;
    color: #101828;
    font-size: 24px;
}

.catalog-empty-state p {
    max-width: 380px;
    margin: 0;
    color: #667085;
}

@media (max-width: 980px) {
    .products-hero,
    .product-catalog-layout {
        width: min(100% - 32px, 1180px);
        grid-template-columns: 1fr;
    }

    .products-hero-copy {
        min-height: 0;
    }

    .products-hero-visual,
    .products-hero-visual img,
    .products-hero-placeholder {
        min-height: 300px;
    }

    .product-filter-panel {
        position: static;
    }

    .product-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .active-filter-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .products-hero,
    .products-category-rail,
    .product-catalog-layout {
        width: min(100% - 24px, 1180px);
    }

    .products-hero {
        margin-top: 24px;
        gap: 18px;
    }

    .products-hero-copy h1 {
        font-size: clamp(36px, 13vw, 52px);
    }

    .products-hero-actions,
    .filter-panel-actions,
    .product-card-footer {
        grid-template-columns: 1fr;
    }

    .products-hero-actions {
        display: grid;
    }

    .products-hero-actions .btn,
    .filter-panel-actions .btn {
        width: 100%;
    }

    .products-hero-visual,
    .products-hero-visual img,
    .products-hero-placeholder {
        min-height: 240px;
    }

    .products-hero-stamp {
        left: 14px;
        right: 14px;
        bottom: 14px;
        min-width: 0;
    }

    .product-card-body p {
        min-height: 0;
    }

    .product-card-cta {
        width: 100%;
    }
}

/* Invoice rebrand */
.invoice-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f7fafc 0%, #fff 42%),
        #fff;
    color: #101828;
}

.invoice-shell {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.invoice-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.invoice-back-link,
.table-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 900;
    text-decoration: none;
}

.invoice-back-link:hover,
.table-icon-link:hover {
    color: #0f766e;
}

.invoice-back-link .ui-icon,
.table-icon-link .ui-icon {
    width: 17px;
    height: 17px;
}

.invoice-command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.invoice-command-actions .btn {
    min-height: 44px;
}

.invoice-document {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(26px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .09);
}

.invoice-document::before {
    content: "";
    display: block;
    height: 8px;
    margin: calc(clamp(26px, 5vw, 58px) * -1) calc(clamp(26px, 5vw, 58px) * -1) 34px;
    background: linear-gradient(90deg, #101828, #0f766e 48%, #f59e0b);
}

.invoice-brand-block {
    display: grid;
    gap: 5px;
}

.invoice-brand-block .brand {
    width: max-content;
    color: #101828;
}

.invoice-brand-block p,
.invoice-title p,
.invoice-note p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.invoice-status-badge {
    display: grid;
    justify-items: end;
    align-self: start;
    gap: 4px;
}

.invoice-status-badge span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: #eefbf8;
    color: #0f766e;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.invoice-status-badge small {
    color: #667085;
    font-weight: 800;
}

.invoice-document .invoice-header,
.invoice-document .invoice-title,
.invoice-document .invoice-parties {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #edf1f5;
}

.invoice-document .invoice-title {
    align-items: end;
}

.invoice-title h1 {
    margin: 0;
    max-width: 720px;
    color: #101828;
    font-size: clamp(38px, 7vw, 82px);
    line-height: .95;
    letter-spacing: 0;
}

.invoice-title dl {
    min-width: 260px;
    padding: 18px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfcfd;
}

.invoice-title dt,
.invoice-total dt {
    color: #667085;
    font-weight: 800;
}

.invoice-title dd,
.invoice-total dd {
    color: #101828;
    font-weight: 1000;
}

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

.invoice-parties > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon details";
    align-items: start;
    gap: 4px 14px;
}

.invoice-parties > div > span {
    grid-area: icon;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.invoice-parties h2 {
    grid-area: title;
    margin: 0 0 5px;
    color: #101828;
    font-size: 17px;
}

.invoice-parties p {
    grid-column: 2;
    margin: 0 0 4px;
    color: #667085;
    line-height: 1.55;
}

.invoice-parties strong {
    color: #101828;
}

.invoice-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.invoice-section-heading h2 {
    margin: 2px 0 0;
    color: #101828;
    font-size: 24px;
}

.invoice-table-wrap {
    overflow-x: auto;
    border: 1px solid #edf1f5;
    border-radius: 8px;
}

.invoice-table table {
    margin: 0;
    min-width: 720px;
    border: 0;
}

.invoice-table th {
    background: #f7f9fb;
    color: #475467;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.invoice-table th,
.invoice-table td {
    padding: 16px;
    border-bottom: 1px solid #edf1f5;
}

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

.invoice-table td {
    color: #344054;
}

.invoice-table td:last-child,
.invoice-table th:last-child,
.invoice-table td:nth-child(3),
.invoice-table th:nth-child(3),
.invoice-table td:nth-child(4),
.invoice-table th:nth-child(4) {
    text-align: right;
}

.invoice-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: 28px;
    margin-top: 30px;
}

.invoice-note {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfffd;
}

.invoice-note .ui-icon {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 8px;
    background: #eefbf8;
    color: #0f766e;
}

.invoice-note strong {
    display: block;
    margin-bottom: 4px;
    color: #101828;
}

.invoice-document .invoice-total {
    display: block;
    padding: 18px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
}

.invoice-total dl {
    gap: 12px 28px;
}

.invoice-total dt:last-of-type,
.invoice-total dd:last-of-type {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
    color: #101828;
    font-size: 20px;
}

@media (max-width: 760px) {
    .invoice-shell {
        width: min(100% - 24px, 1080px);
        padding-top: 18px;
    }

    .invoice-command-bar,
    .invoice-document .invoice-header,
    .invoice-document .invoice-title,
    .invoice-document .invoice-parties,
    .invoice-footer {
        grid-template-columns: 1fr;
    }

    .invoice-command-bar {
        display: grid;
    }

    .invoice-command-actions {
        justify-content: stretch;
    }

    .invoice-command-actions .btn {
        flex: 1 1 120px;
    }

    .invoice-status-badge {
        justify-items: start;
    }

    .invoice-title dl {
        min-width: 0;
    }

    .invoice-parties > div {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .invoice-parties > div > span {
        width: 38px;
        height: 38px;
    }
}

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

    html,
    body {
        background: #fff !important;
    }

    .no-print,
    .invoice-command-bar {
        display: none !important;
    }

    .invoice-shell {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-document {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .invoice-document::before {
        margin: 0 0 18px !important;
        height: 5px !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .invoice-table-wrap {
        overflow: visible !important;
    }

    .invoice-table table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .invoice-note,
    .invoice-title dl,
    .invoice-document .invoice-total,
    .invoice-table-wrap {
        break-inside: avoid;
    }
}

/* Skincare-first homepage refresh */
.skincare-hero {
    position: relative;
    min-height: min(760px, calc(100svh - 96px));
    overflow: hidden;
    color: #101828;
    background:
        linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 35%, rgba(255,255,255,.24) 64%, rgba(255,255,255,.06) 100%),
        url("https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?auto=format&fit=crop&w=1800&q=86") center right / cover no-repeat;
}

.skincare-hero::after {
    content: "";
    position: absolute;
    inset: auto 5vw 36px auto;
    width: min(360px, 38vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, .75), transparent);
}

.skincare-hero-copy {
    position: relative;
    z-index: 1;
    color: #101828;
}

.skincare-hero .eyebrow {
    color: #0f766e;
}

.skincare-hero h1 {
    max-width: 760px;
    color: #101828;
    font-size: clamp(58px, 10vw, 132px);
}

.skincare-hero .hero-line {
    max-width: 620px;
    color: #344054;
}

.skincare-hero .btn-light {
    border-color: rgba(15, 118, 110, .22);
    background: rgba(255,255,255,.76);
    color: #0f766e;
    backdrop-filter: blur(14px);
}

.skincare-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.skincare-hero-notes span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(15, 118, 110, .16);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #344054;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.section-note {
    max-width: 420px;
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.skincare-routine-band {
    background: linear-gradient(180deg, #fff 0%, #f8fbfb 100%);
}

.routine-grid {
    width: min(1120px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #e4eceb;
    border-radius: 8px;
    overflow: hidden;
    background: #e4eceb;
}

.routine-grid article {
    min-height: 230px;
    padding: clamp(24px, 4vw, 38px);
    background: #fff;
}

.routine-grid span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 34px;
    border-radius: 999px;
    background: #ecfdf9;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.routine-grid h3 {
    margin: 0 0 12px;
    color: #101828;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0;
}

.routine-grid p {
    max-width: 300px;
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.skincare-category-section {
    background: #fff;
}

.skincare-category-grid .category-tile {
    border-radius: 8px;
}

.skincare-category-grid .category-tile img {
    filter: saturate(.95) contrast(.98);
    transition: transform .45s ease, filter .25s ease;
}

.skincare-category-grid .category-tile:hover img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1);
}

.skincare-promo-strip {
    border-radius: 8px;
    background: linear-gradient(135deg, #101828 0%, #0f766e 62%, #f7b7c5 140%);
}

.skincare-promo-strip .eyebrow,
.skincare-promo-strip h2,
.skincare-promo-strip p {
    color: #fff;
}

.testimonial-carousel-section {
    width: min(1120px, 90vw);
    margin: 0 auto;
    padding: 72px 0 96px;
}

.testimonial-controls {
    display: inline-flex;
    gap: 8px;
}

.testimonial-controls button,
.testimonial-pagination button {
    appearance: none;
    border: 1px solid #d7e4e1;
    background: #fff;
    color: #0f766e;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.testimonial-controls button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.testimonial-controls button:hover,
.testimonial-pagination button.is-active {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.testimonial-window {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid #e4eceb;
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(236,253,249,.86), rgba(255,255,255,.98) 42%),
        #fff;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 34px;
    margin: 0;
    padding: clamp(28px, 7vw, 74px);
    opacity: 0;
    transform: translateX(26px);
    pointer-events: none;
    transition: opacity .42s ease, transform .42s ease;
}

.testimonial-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-slide p {
    max-width: 860px;
    margin: 0;
    color: #101828;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.14;
}

.testimonial-slide cite {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #667085;
    font-style: normal;
}

.testimonial-slide cite strong {
    color: #101828;
}

.testimonial-slide cite span::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 10px 2px 0;
    border-radius: 999px;
    background: #0f766e;
}

.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.testimonial-pagination button {
    width: 34px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
}

@media (max-width: 860px) {
    .skincare-hero {
        min-height: 640px;
        background:
            linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 50%, rgba(255,255,255,.42) 100%),
            url("https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?auto=format&fit=crop&w=1200&q=84") center right / cover no-repeat;
    }

    .routine-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-carousel-section .section-heading.split,
    .skincare-routine-band .section-heading.split {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-window {
        min-height: 360px;
    }

    .testimonial-slide cite {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .testimonial-slide cite span::before {
        display: none;
    }
}

@media (max-width: 520px) {
    .skincare-hero h1 {
        font-size: 54px;
    }

    .skincare-hero-notes span {
        width: 100%;
        justify-content: center;
    }

    .testimonial-slide p {
        font-size: 26px;
    }
}

/* Homepage premium skincare touch */
.skincare-hero {
    justify-content: space-between;
    gap: clamp(28px, 6vw, 84px);
}

.skincare-hero-copy {
    width: min(700px, 58vw);
}

.skincare-hero h1 {
    max-width: 820px;
    font-size: clamp(56px, 9.2vw, 124px);
}

.skincare-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(680px, 100%);
    margin-top: 26px;
    border-top: 1px solid rgba(15, 118, 110, .18);
    border-bottom: 1px solid rgba(15, 118, 110, .18);
}

.skincare-hero-proof span {
    display: grid;
    gap: 3px;
    padding: 16px 18px 16px 0;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.skincare-hero-proof span + span {
    padding-left: 18px;
    border-left: 1px solid rgba(15, 118, 110, .18);
}

.skincare-hero-proof strong {
    color: #101828;
    font-size: 18px;
    line-height: 1;
}

.skincare-shelf-preview {
    position: relative;
    z-index: 1;
    width: min(360px, 34vw);
    margin-top: 120px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    backdrop-filter: blur(18px);
}

.skincare-shelf-preview > p {
    margin: 0 0 12px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.skincare-shelf-preview a {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid rgba(15, 118, 110, .15);
    color: #101828;
}

.skincare-shelf-preview span {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.skincare-shelf-preview strong {
    color: #344054;
    font-size: 15px;
    line-height: 1.35;
}

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

.routine-grid-feature {
    background:
        linear-gradient(135deg, rgba(16, 24, 40, .96), rgba(15, 118, 110, .94)) !important;
}

.routine-grid-feature span {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.routine-grid-feature h3,
.routine-grid-feature p {
    color: #fff;
}

.skincare-category-section .section-heading,
.testimonial-carousel-section .section-heading {
    align-items: end;
}

.testimonial-carousel-section {
    padding-top: 84px;
}

.testimonial-window {
    min-height: 340px;
    border-color: #dce7e6;
    background:
        linear-gradient(115deg, rgba(16, 24, 40, .96) 0%, rgba(16, 24, 40, .93) 36%, rgba(15, 118, 110, .10) 36.2%, rgba(255,255,255,.98) 62%),
        #fff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .08);
}

.testimonial-slide {
    grid-template-rows: auto 1fr auto;
}

.testimonial-rating {
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #f5c451;
    font-size: 13px;
    letter-spacing: 2px;
}

.testimonial-slide p {
    max-width: 780px;
    color: #101828;
    font-size: clamp(30px, 4vw, 52px);
}

.testimonial-slide cite {
    width: max-content;
    padding: 12px 16px;
    border: 1px solid #e4eceb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

@media (max-width: 980px) {
    .skincare-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .skincare-hero-copy,
    .skincare-shelf-preview {
        width: min(100%, 680px);
    }

    .skincare-shelf-preview {
        margin-top: 10px;
    }

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

@media (max-width: 640px) {
    .skincare-hero-proof,
    .routine-grid {
        grid-template-columns: 1fr;
    }

    .skincare-hero-proof span,
    .skincare-hero-proof span + span {
        padding: 12px 0;
        border-left: 0;
        border-top: 1px solid rgba(15, 118, 110, .12);
    }

    .skincare-hero-proof span:first-child {
        border-top: 0;
    }

    .skincare-shelf-preview {
        display: none;
    }

    .testimonial-window {
        min-height: 420px;
        background: #fff;
    }

    .testimonial-rating {
        background: #fff7e0;
    }

    .testimonial-slide cite {
        width: 100%;
        border-radius: 8px;
    }
}

/* Homepage testimonial and promo refinement */
.skincare-promo-strip {
    width: min(1120px, 90vw);
    min-height: 0;
    align-items: center;
    gap: clamp(22px, 4vw, 46px);
    margin: 34px auto 28px;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
}

.skincare-promo-strip h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.04;
}

.skincare-promo-strip p {
    max-width: 390px;
    margin: 0;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
}

.skincare-promo-strip .btn {
    white-space: nowrap;
}

.testimonial-carousel-section {
    width: min(1120px, 90vw);
    padding: 78px 0 92px;
}

.testimonial-carousel-section .section-heading.split {
    align-items: flex-end;
    margin-bottom: 24px;
}

.testimonial-carousel-section .section-heading h2 {
    max-width: 620px;
}

.testimonial-window {
    position: relative;
    min-height: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.testimonial-page {
    position: relative;
    inset: auto;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.testimonial-page.is-active {
    display: grid;
}

.testimonial-card {
    min-height: 310px;
    display: grid;
    align-content: space-between;
    gap: 24px;
    margin: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #e1ebe8;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.testimonial-card:hover {
    border-color: #b7d9d2;
    box-shadow: 0 18px 56px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.testimonial-rating {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf9;
    color: #0f766e;
    font-size: 12px;
    letter-spacing: 1px;
}

.testimonial-card p {
    max-width: none;
    color: #101828;
    font-family: inherit;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.24;
}

.testimonial-card cite {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0 0;
    border: 0;
    border-top: 1px solid #e6eeec;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.testimonial-card cite strong {
    color: #101828;
    font-size: 14px;
}

.testimonial-card cite span {
    color: #667085;
    font-size: 13px;
    text-align: right;
}

.testimonial-card cite span::before {
    display: none;
}

.testimonial-pagination {
    justify-content: flex-start;
    margin-top: 20px;
}

.testimonial-pagination button {
    width: 44px;
    height: 7px;
    border: 0;
    background: #d9e7e4;
}

.testimonial-pagination button.is-active {
    background: #0f766e;
}

@media (max-width: 900px) {
    .skincare-promo-strip {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .skincare-promo-strip .btn {
        width: max-content;
    }

    .testimonial-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .skincare-promo-strip {
        width: min(100% - 24px, 1120px);
        padding: 24px;
    }

    .skincare-promo-strip h2 {
        font-size: 34px;
    }

    .skincare-promo-strip .btn {
        width: 100%;
    }

    .testimonial-card {
        min-height: 280px;
    }

    .testimonial-card cite {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-card cite span {
        text-align: left;
    }
}

/* Storefront footer rebrand */
.site-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(130px, .55fr) minmax(130px, .55fr) minmax(320px, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(48px, 7vw, 82px) 5vw 28px;
    border-top: 0;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .16), transparent 42%),
        #101828;
    color: #fff;
}

.footer-brand-panel {
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.footer-brand {
    width: max-content;
    color: #fff !important;
    font-size: clamp(38px, 4vw, 54px);
    line-height: .9;
}

.footer-brand-panel p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 17px;
    line-height: 1.75;
}

.footer-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.footer-trust-list span,
.footer-payment-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 900;
}

.footer-trust-list .ui-icon {
    width: 15px;
    height: 15px;
    color: #9ee8dc;
}

.footer-link-group {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-link-group h3,
.footer-newsletter-panel h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 20px;
    letter-spacing: 0;
}

.footer-link-group a {
    width: max-content;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    line-height: 1.4;
    transition: color .18s ease, transform .18s ease;
}

.footer-link-group a:hover {
    color: #9ee8dc;
    transform: translateX(3px);
}

.footer-newsletter-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

.footer-newsletter-panel .eyebrow {
    margin: 0;
    color: #9ee8dc;
}

.footer-newsletter-panel h3 {
    max-width: 410px;
    margin-bottom: 2px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
}

.newsletter input {
    min-height: 52px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, .48);
}

.newsletter button {
    min-height: 52px;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-weight: 1000;
}

.newsletter button .ui-icon {
    width: 16px;
    height: 16px;
}

.footer-microcopy {
    margin: 0;
    color: rgba(255, 255, 255, .54);
    font-size: 13px;
    line-height: 1.55;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .54);
    font-size: 13px;
}

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

@media (max-width: 1040px) {
    .site-footer {
        grid-template-columns: 1.2fr .8fr .8fr;
    }

    .footer-newsletter-panel {
        grid-column: 1 / -1;
        max-width: 680px;
    }
}

@media (max-width: 720px) {
    .site-footer {
        grid-template-columns: 1fr;
        padding-inline: 22px;
    }

    .footer-link-group a,
    .footer-brand,
    .footer-newsletter-panel {
        width: auto;
    }

    .newsletter {
        grid-template-columns: 1fr;
    }

    .newsletter button {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-payment-row {
        justify-content: flex-start;
    }
}
