/*
 * Alkemist Pro visual polish.
 * Loaded last so broad improvements can support the whole theme without
 * disturbing the PHP templates or data flows.
 */

:root {
    --primary: #0b4b60;
    --primary-deep: #071923;
    --secondary: #16856f;
    --accent: #ffb23f;
    --info: #2563eb;
    --surface: #f3f7f8;
    --surface-strong: #e8f0ef;
    --card: #ffffff;
    --text: #122632;
    --muted: #627582;
    --border: #d8e5e3;
    --shadow: 0 18px 44px rgba(9, 27, 39, 0.11);
    --shadow-soft: 0 10px 26px rgba(9, 27, 39, 0.07);
    --ring: 0 0 0 3px rgba(255, 178, 63, 0.34);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 247, 248, 0.92) 24%, rgba(238, 245, 244, 0.95) 100%),
        url("../images/site-science-background.svg") center 88px / min(1320px, 118vw) auto repeat-y,
        radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.08), transparent 24%),
        radial-gradient(circle at 92% 4%, rgba(255, 178, 63, 0.14), transparent 26%);
    color: var(--text);
    text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.container {
    width: min(1240px, calc(100% - 40px));
}

.card,
.feature-card,
.brand-tile,
.entry-card,
.page-card,
.archive-summary-card,
.detail-summary-card,
.portal-card,
.portal-hero,
.resource-card,
.widget,
.sticky-card {
    border-color: rgba(216, 229, 227, 0.98);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.feature-card,
.brand-tile,
.entry-card,
.page-card,
.resource-card,
.directory-product-card,
.alkemist-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.brand-tile:hover,
.entry-card:hover,
.page-card:hover,
.resource-card:hover,
.directory-product-card:hover,
.alkemist-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 133, 111, 0.28);
    box-shadow: 0 18px 38px rgba(9, 27, 39, 0.12);
}

.compact-heading span,
.section-heading > span,
.section-heading-row .section-heading > span,
.card-type,
.eyebrow {
    letter-spacing: 0.08em;
}

.section-heading h2,
.cta-panel h2,
.page-hero h1,
.archive-hero-grid h1,
.detail-hero-grid h1 {
    color: #0d2a37;
}

.section-heading p,
.archive-description,
.detail-prose,
.internal-records-subtext {
    color: #5f7280;
}

.header-shell {
    background:
        linear-gradient(180deg, rgba(7, 25, 35, 0.98), rgba(8, 36, 49, 0.94)),
        linear-gradient(90deg, rgba(255, 178, 63, 0.12), rgba(22, 133, 111, 0.12));
}

.topbar {
    padding: 16px 0;
}

.site-nav .menu,
.site-nav ul {
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.1);
}

.header-chip,
.mobile-header-icon-button,
.menu-toggle {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 781px) {
    .site-header .topbar,
    .site-header .header-search-desktop__inner {
        width: calc(100% - 48px);
        max-width: none;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(230px, auto) minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
    }

    .brand-lockup {
        max-width: 340px;
    }

    .site-title,
    .site-tagline {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-title {
        font-size: 1.18rem;
    }

    .site-tagline {
        max-width: 280px;
        font-size: 0.82rem;
    }

    .site-nav {
        min-width: 0;
    }

    .site-nav .menu,
    .site-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .site-nav a {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 0.84rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .header-actions {
        flex-wrap: nowrap;
        gap: 7px;
        min-width: max-content;
    }

    .header-chip {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
    }
}

@media (min-width: 781px) and (max-width: 1280px) {
    .site-header .topbar,
    .site-header .header-search-desktop__inner {
        width: calc(100% - 28px);
    }

    .topbar {
        grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-content: center;
        min-width: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .brand-kicker,
    .site-tagline {
        display: none;
    }
}

.universal-search input,
.sidebar-search input,
.portal-login-form input[type="text"],
.portal-login-form input[type="password"],
.portal-login-form input[type="email"],
.chemical-autofill-form input,
.chemical-autofill-form select,
.chemical-bulk-import-form input,
.chemical-bulk-import-form select,
.chemical-bulk-import-form textarea,
.chemical-draft-form input,
.chemical-draft-form textarea,
.chemical-draft-form select,
.frontend-editor-form input[type="text"],
.frontend-editor-form input[type="email"],
.frontend-editor-form input[type="tel"],
.frontend-editor-form input[type="url"],
.frontend-editor-form input[type="search"],
.frontend-editor-form input[type="number"],
.frontend-editor-form input[type="date"],
.frontend-editor-form input[type="datetime-local"],
.frontend-editor-form select,
.frontend-editor-form textarea,
.internal-records-controls input[type="search"],
.internal-records-controls select,
.supplier-access-form input[type="password"],
.supplier-bulk-import-form input[type="file"],
.supplier-bulk-import-form textarea,
.supplier-ai-prompt-builder input,
.supplier-ai-prompt-builder textarea {
    border-color: rgba(202, 217, 216, 0.98);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px rgba(9, 27, 39, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.universal-search input:focus,
.sidebar-search input:focus,
.portal-login-form input:focus,
.chemical-autofill-form input:focus,
.chemical-autofill-form select:focus,
.chemical-bulk-import-form input:focus,
.chemical-bulk-import-form select:focus,
.chemical-bulk-import-form textarea:focus,
.chemical-draft-form input:focus,
.chemical-draft-form textarea:focus,
.chemical-draft-form select:focus,
.frontend-editor-form input:focus,
.frontend-editor-form select:focus,
.frontend-editor-form textarea:focus,
.internal-records-controls input[type="search"]:focus,
.internal-records-controls select:focus,
.supplier-access-form input[type="password"]:focus,
.supplier-bulk-import-form input[type="file"]:focus,
.supplier-bulk-import-form textarea:focus,
.supplier-ai-prompt-builder input:focus,
.supplier-ai-prompt-builder textarea:focus {
    border-color: rgba(22, 133, 111, 0.58);
    box-shadow: var(--ring), 0 12px 24px rgba(9, 27, 39, 0.06);
}

.btn,
.universal-search button,
.sidebar-search button {
    min-height: var(--site-button-height, 46px);
    min-width: 0;
    max-width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(9, 27, 39, 0.08);
    font-size: 0.92rem;
    line-height: 1.22;
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn:hover,
.universal-search button:hover,
.sidebar-search button:hover {
    transform: translateY(-2px);
}

.btn-primary,
.universal-search button,
.sidebar-search button {
    background: linear-gradient(135deg, #ffc247, #ff8a2a);
    color: #10202a;
}

.btn-secondary {
    background: linear-gradient(135deg, #0b4b60, #16856f);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(11, 75, 96, 0.18);
}

.slide {
    min-height: clamp(560px, 76vh, 780px);
}

.slide picture,
.slide img {
    height: clamp(560px, 76vh, 780px);
}

.slide-overlay {
    background:
        linear-gradient(90deg, rgba(7, 18, 25, 0.9), rgba(7, 18, 25, 0.5) 52%, rgba(7, 18, 25, 0.22)),
        linear-gradient(180deg, rgba(7, 18, 25, 0.2), rgba(7, 18, 25, 0.38));
}

.slide-content h1 {
    max-width: 860px;
    line-height: 1;
}

.hero-actions .btn,
.archive-hero-actions .btn,
.detail-hero-actions .btn,
.portal-actions .btn {
    min-width: min(100%, 132px);
    justify-content: center;
}

.hero-actions,
.archive-hero-actions,
.detail-hero-actions,
.portal-actions,
.frontend-submit-row,
.alkemist-product-card__actions,
.brand-tile__actions,
.home-intent-advisor__actions {
    gap: 10px;
}

.portal-actions .btn,
.frontend-submit-row .btn,
.document-list-actions .btn,
.alkemist-product-card__actions .btn,
.brand-tile__actions .btn,
.home-mini-card-grid .btn {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.22;
}

.portal-actions .frontend-inline-action-form {
    display: inline-flex;
    margin: 0;
}

.portal-actions .frontend-inline-action-form .btn {
    width: auto;
}

.alkemist-product-card .alkemist-product-card__cart-button {
    justify-content: center;
    width: 100%;
}

.home-section {
    padding: 70px 0;
}

.home-intent-advisor {
    position: relative;
    z-index: 4;
    margin-top: clamp(18px, 2.4vw, 34px);
    margin-bottom: clamp(20px, 2.6vw, 34px);
}

.home-intent-advisor__shell {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(216, 229, 227, 0.98);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 250, 0.96)),
        radial-gradient(circle at 0 0, rgba(255, 178, 63, 0.14), transparent 34%),
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.08), transparent 32%);
    box-shadow: 0 16px 38px rgba(9, 27, 39, 0.11);
    backdrop-filter: blur(14px);
}

.home-intent-advisor__copy,
.home-intent-advisor__panel,
.home-intent-advisor__state,
.home-intent-advisor__recent {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.home-intent-advisor__copy {
    align-content: center;
    padding: 4px 6px;
}

.home-intent-advisor__copy h2 {
    margin: 0;
    color: #07344a;
    font-size: clamp(1.42rem, 2.35vw, 2.1rem);
    line-height: 1.08;
    text-wrap: balance;
}

.home-intent-advisor__copy p {
    max-width: 620px;
    margin: 0;
    color: #536a76;
    font-size: 0.9rem;
    line-height: 1.56;
}

.home-intent-advisor__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.home-intent-advisor__actions .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.78rem;
}

.home-intent-advisor__signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 2px;
}

.home-intent-advisor__signals span,
.home-intent-advisor__state,
.home-intent-advisor__recent {
    padding: 9px;
    border: 1px solid rgba(11, 75, 96, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
}

.home-intent-advisor__signals span {
    display: grid;
    gap: 2px;
    color: #657986;
    font-size: 0.66rem;
    font-weight: 800;
}

.home-intent-advisor__signals strong {
    color: #0b4b60;
    font-size: 0.98rem;
}

.home-intent-advisor__panel {
    align-content: start;
    padding: 11px;
    border: 1px solid rgba(11, 75, 96, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.home-intent-advisor__state strong,
.home-intent-advisor__recent > span {
    color: #0b4b60;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-intent-advisor__state span {
    color: #536a76;
    font-size: 0.76rem;
    line-height: 1.42;
}

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

.home-intent-route {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 106px;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.98);
    border-radius: 13px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.96));
    color: var(--text);
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-intent-route:hover,
.home-intent-route:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(22, 133, 111, 0.3);
    color: var(--text);
    box-shadow: 0 16px 30px rgba(9, 27, 39, 0.1);
}

.home-intent-route.is-suggested {
    border-color: rgba(255, 178, 63, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(241, 250, 248, 0.96));
    box-shadow: 0 18px 34px rgba(255, 178, 63, 0.15);
}

.home-intent-route.is-suggested::after {
    content: "Suggested";
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 178, 63, 0.2);
    color: #7a4a00;
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-intent-route span {
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(22, 133, 111, 0.09);
    color: #0b7665;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-intent-route strong {
    padding-right: 62px;
    color: #0d3450;
    font-size: 0.82rem;
    line-height: 1.24;
    text-wrap: balance;
}

.home-intent-route:not(.is-suggested) strong {
    padding-right: 0;
}

.home-intent-route small {
    color: #5f7280;
    font-size: 0.68rem;
    line-height: 1.42;
}

.home-intent-advisor__recent [data-home-intent-pill-list] {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.home-intent-advisor__recent [data-home-intent-pill-list] span {
    max-width: 100%;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(11, 75, 96, 0.08);
    color: #0b4b60;
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.division-grid,
.card-grid.three,
.product-card-grid,
.home-mini-card-grid {
    align-items: stretch;
}

.division-card,
.category-card,
.brand-tile,
.resource-card {
    position: relative;
    overflow: hidden;
}

.division-card::after,
.brand-tile::after,
.resource-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.86;
}

.card-thumb,
.category-card__media {
    background: linear-gradient(180deg, #f9fcfd, #edf5f5);
}

body.home .home-section {
    padding-block: clamp(38px, 4.6vw, 58px);
}

body.home .home-section + .home-section {
    margin-top: clamp(6px, 1.4vw, 18px);
}

body.home .section-heading,
body.home .section-heading-row {
    margin-bottom: clamp(15px, 1.8vw, 22px);
}

body.home .section-heading p {
    max-width: 620px;
    font-size: 0.9rem;
    line-height: 1.56;
}

.resource-card.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.resource-card .card-thumb {
    aspect-ratio: 16 / 9;
    max-height: 156px;
}

.resource-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.resource-card h3,
.entry-card h3,
.page-card h3,
.brand-tile h3,
.category-card h3,
.division-card h3,
.alkemist-product-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.resource-card .card-body > p,
.entry-card p,
.page-card p,
.brand-tile > p,
.category-card p,
.division-card p,
.alkemist-product-card__support {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-card .card-body > p,
.entry-card p,
.page-card p,
.brand-tile > p,
.category-card p,
.division-card p {
    -webkit-line-clamp: 3;
}

.alkemist-product-card__support {
    -webkit-line-clamp: 3;
}

.resource-card .card-body > p {
    margin: 0;
    color: #5f7280;
    font-size: 0.8rem;
    line-height: 1.48;
}

.resource-card .alkemist-product-card__availability {
    margin: -2px 0 0;
    font-size: 0.72rem;
    line-height: 1.34;
}

.resource-card-signals {
    gap: 6px;
    margin: 0;
}

.resource-card-signal {
    min-height: 29px;
    padding: 4px 7px;
    border-radius: 11px;
}

.resource-card-signal__icon {
    width: 21px;
    height: 21px;
}

.resource-card-signal__copy strong {
    font-size: 0.52rem;
}

.resource-card-signal__copy span {
    max-width: 116px;
    font-size: 0.66rem;
}

.gig-card-meta {
    gap: 6px;
    margin: 0;
}

.gig-card-meta span,
.term-pill {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.68rem;
    line-height: 1.25;
}

.resource-card .meta-list.compact {
    gap: 6px;
    margin-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.36;
}

.resource-card .meta-list.compact li {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.resource-card .portal-actions {
    margin-top: auto;
}

body.home .card-grid.three,
body.home .division-grid,
body.home .product-card-grid,
body.home .home-mini-card-grid {
    gap: clamp(14px, 1.7vw, 22px);
}

body.home .card-grid.three .resource-card,
body.home .division-card,
body.home .category-card,
body.home .brand-tile,
body.home .alkemist-product-card {
    border-radius: 15px;
}

body.home .card-grid.three .resource-card .meta-list.compact {
    display: none;
}

body.home .resource-card-signals .resource-card-signal:nth-child(n+3),
body.home .term-row .term-pill:nth-child(n+4) {
    display: none;
}

body.home .resource-card-signals .resource-card-signal:nth-child(n+2),
body.home .term-row .term-pill:nth-child(n+3) {
    display: none;
}

body.home .alkemist-product-card__media {
    min-height: 154px;
    aspect-ratio: 4 / 3;
}

body.home .alkemist-product-card__content {
    gap: 7px;
    padding: 13px;
}

body.home .alkemist-product-card__title {
    font-size: 0.88rem;
    line-height: 1.28;
}

body.home .alkemist-product-card__availability,
body.home .alkemist-product-card__meta-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.34;
}

body.home .alkemist-product-card__meta-row {
    gap: 7px;
}

body.home .alkemist-product-card__actions,
body.home .resource-card .portal-actions {
    gap: 8px;
}

body.home .alkemist-product-card__actions .btn,
body.home .resource-card .portal-actions .btn {
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.7rem;
}

body.home .division-card,
body.home .category-card,
body.home .brand-tile {
    padding: 18px;
}

body.home .division-card h3,
body.home .category-card h3,
body.home .brand-tile h3,
body.home .resource-card h3 {
    margin: 6px 0;
    font-size: 0.92rem;
    line-height: 1.28;
}

body.home .division-card p,
body.home .category-card p,
body.home .brand-tile > p {
    font-size: 0.78rem;
    line-height: 1.46;
}

body.home .card-type {
    font-size: 0.6rem;
}

body.home .division-card strong,
body.home .category-card strong {
    font-size: 0.76rem;
    line-height: 1.32;
}

.portal-shell {
    padding-top: 28px;
}

body.alkemist-editor-session {
    background:
        linear-gradient(180deg, rgba(237, 243, 244, 0.94), rgba(246, 250, 250, 0.96)),
        url("../images/site-science-background.svg") center 56px / min(1180px, 120vw) auto repeat-y,
        #edf3f4;
}

body.alkemist-editor-session .dashboard-shell {
    padding: 10px 0;
}

body.alkemist-editor-session .dashboard-app {
    min-height: calc(100dvh - 20px);
}

body.alkemist-editor-session .dashboard-workspace-card {
    border-radius: 22px;
    contain: layout paint;
}

body.alkemist-editor-session .dashboard-workspace-body {
    scroll-behavior: smooth;
}

.dashboard-nav-item,
.dashboard-record-card,
.frontend-record-item,
.frontend-choice-card,
.internal-record-card,
.resource-card,
.brand-tile,
.feature-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 180px;
}

.portal-card,
.portal-hero,
.dashboard-workspace-card,
.frontend-editor-card,
.frontend-record-browser,
.frontend-field-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.96));
}

.portal-note {
    border-radius: 16px;
    border-color: rgba(22, 133, 111, 0.18);
    background: linear-gradient(135deg, rgba(239, 249, 246, 0.96), rgba(255, 255, 255, 0.96));
}

.internal-records-head {
    align-items: center;
}

.internal-records-controls,
.supplier-browser-filter-grid {
    padding: 14px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 18px;
    background: rgba(248, 251, 251, 0.9);
}

.internal-records-card--suppliers .internal-records-controls,
.internal-records-card--suppliers .supplier-bulk-delete-bar:not(.supplier-bulk-delete-bar--footer) {
    border-color: rgba(22, 133, 111, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 251, 0.94));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.internal-records-card--suppliers .supplier-bulk-delete-bar:not(.supplier-bulk-delete-bar--footer) .supplier-delete-selected-button {
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(180, 35, 24, 0.14);
}

.supplier-floating-table-actions {
    border-color: rgba(22, 133, 111, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.94));
}

.supplier-floating-table-actions__search input {
    border-color: rgba(202, 217, 216, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 22px rgba(9, 27, 39, 0.05);
}

.supplier-floating-table-actions__search input:focus {
    border-color: rgba(22, 133, 111, 0.58);
    box-shadow: var(--ring), 0 12px 24px rgba(9, 27, 39, 0.08);
}

.supplier-floating-table-actions .supplier-floating-table-actions__delete {
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(180, 35, 24, 0.16);
}

.supplier-directory-pagination {
    gap: 8px;
    padding: 2px 0 10px;
}

.supplier-directory-pagination button {
    min-height: 34px;
    padding: 7px 12px;
    border-color: rgba(207, 223, 221, 0.94);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.055);
    font-size: 0.78rem;
}

.supplier-directory-pagination span {
    color: #667783;
    font-size: 0.78rem;
}

.internal-records-shell,
.internal-records-card--suppliers,
.supplier-bulk-delete-form,
.internal-records-cards--suppliers {
    overflow: visible;
}

body.supplier-directory-sticky-ready .portal-page-wrapper,
body.supplier-directory-sticky-ready .portal-page-layout,
body.supplier-directory-sticky-ready .portal-shell,
body.supplier-directory-sticky-ready .dashboard-shell,
body.supplier-directory-sticky-ready .dashboard-app,
body.supplier-directory-sticky-ready .dashboard-workspace,
body.supplier-directory-sticky-ready .dashboard-workspace-card {
    overflow: visible;
}

body.supplier-directory-sticky-ready.alkemist-editor-session .dashboard-workspace-card {
    contain: none;
}

.internal-records-shell {
    padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 84px));
}

.supplier-directory-metrics span {
    border-color: rgba(22, 133, 111, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 250, 0.94));
    box-shadow: 0 10px 20px rgba(9, 27, 39, 0.04);
}

.supplier-directory-metrics strong {
    color: var(--secondary);
}

.supplier-records-toolbar {
    gap: 14px;
}

.supplier-records-tool {
    border-color: rgba(22, 133, 111, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95));
    box-shadow: 0 12px 26px rgba(9, 27, 39, 0.055);
}

.supplier-records-tool summary {
    min-height: 58px;
    background: linear-gradient(90deg, rgba(239, 249, 246, 0.96), rgba(255, 255, 255, 0.96));
}

.supplier-records-tool[open] summary {
    border-bottom-color: rgba(22, 133, 111, 0.12);
}

.supplier-records-tool__body {
    background: rgba(255, 255, 255, 0.64);
}

.supplier-ai-prompt-builder {
    border-color: rgba(37, 99, 235, 0.14);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.supplier-ai-prompt-builder .compact-heading h3 {
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.22;
}

.supplier-ai-prompt-builder [data-supplier-ai-prompt] {
    font-size: 0.84rem;
}

.supplier-ai-prompt-actions .btn {
    justify-content: center;
    padding-inline: 12px;
    text-align: center;
}

.internal-records-table-wrap {
    box-shadow: var(--shadow-soft);
}

.internal-records-table--suppliers {
    min-width: 1660px;
}

.internal-records-table--suppliers th:last-child,
.internal-records-table--suppliers td:last-child {
    width: 168px;
    min-width: 168px;
}

.internal-records-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f0f6f5;
}

.frontend-record-browser {
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 75, 96, 0.42) rgba(232, 240, 239, 0.92);
}

.frontend-record-browser::-webkit-scrollbar,
.frontend-taxonomy-grid--cards::-webkit-scrollbar,
.frontend-editor-scroll-list::-webkit-scrollbar {
    width: 10px;
}

.frontend-record-browser::-webkit-scrollbar-track,
.frontend-taxonomy-grid--cards::-webkit-scrollbar-track,
.frontend-editor-scroll-list::-webkit-scrollbar-track {
    background: rgba(232, 240, 239, 0.92);
    border-radius: 999px;
}

.frontend-record-browser::-webkit-scrollbar-thumb,
.frontend-taxonomy-grid--cards::-webkit-scrollbar-thumb,
.frontend-editor-scroll-list::-webkit-scrollbar-thumb {
    border: 2px solid rgba(232, 240, 239, 0.92);
    border-radius: 999px;
    background: rgba(11, 75, 96, 0.46);
}

.frontend-record-list {
    min-height: 0;
}

.frontend-taxonomy-grid--cards {
    max-height: min(680px, 62vh);
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 75, 96, 0.42) rgba(232, 240, 239, 0.92);
}

.frontend-taxonomy-selector .frontend-editor-smartbar__chips {
    max-height: 168px;
    overflow: auto;
    padding: 2px 4px 2px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 75, 96, 0.42) rgba(232, 240, 239, 0.92);
}

.internal-records-cards--suppliers {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
    gap: 12px;
    content-visibility: visible;
    contain: none;
    contain-intrinsic-size: auto;
}

.internal-record-card--supplier {
    gap: 11px;
    padding: 14px 14px 13px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 251, 0.97));
    box-shadow: 0 12px 26px rgba(9, 27, 39, 0.055);
    content-visibility: visible;
    contain: none;
    contain-intrinsic-size: auto;
}

.internal-record-card--supplier.is-directory-search-match {
    border-color: rgba(255, 178, 63, 0.72);
    box-shadow: 0 14px 30px rgba(255, 178, 63, 0.16), 0 10px 24px rgba(9, 27, 39, 0.06);
}

.supplier-search-highlight {
    display: inline;
    padding: 0 3px;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(255, 226, 126, 0.95), rgba(255, 178, 63, 0.72));
    color: #10202a;
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(255, 178, 63, 0.28);
}

.internal-records-table--suppliers tr.is-directory-search-match {
    background: rgba(255, 248, 220, 0.72);
}

.internal-record-card--supplier::before {
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, var(--secondary), var(--accent));
}

.internal-record-card--supplier .internal-record-card__head {
    gap: 10px;
    padding-left: 4px;
}

.internal-record-card--supplier .internal-record-card__head > div {
    min-width: 0;
}

.internal-record-card--supplier .supplier-card-kicker {
    gap: 6px;
}

.internal-record-card--supplier .supplier-country-flag {
    width: 25px;
    height: 25px;
    border-color: rgba(22, 133, 111, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 14px rgba(9, 27, 39, 0.06);
    font-size: 0.95rem;
}

.internal-record-card--supplier .eyebrow {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(22, 133, 111, 0.14);
    border-radius: 999px;
    background: rgba(239, 249, 246, 0.95);
    color: var(--secondary);
    font-size: 0.64rem;
    line-height: 1;
}

.internal-record-card--supplier .internal-record-card__head h3 {
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.22;
}

.internal-record-card--supplier .internal-records-subtext {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: #667783;
    font-size: 0.74rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.internal-record-card--supplier .supplier-bulk-check--card {
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid rgba(216, 229, 227, 0.86);
    border-radius: 11px;
    background: rgba(248, 251, 251, 0.82);
    font-size: 0.74rem;
}

.internal-record-card--supplier .internal-record-card__grid {
    gap: 8px;
}

.internal-record-card--supplier .internal-record-card__grid > div {
    gap: 5px;
    padding: 9px 10px;
    border-color: rgba(216, 229, 227, 0.88);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.internal-record-card--supplier .internal-record-card__grid strong {
    color: #6b7e89;
    font-size: 0.63rem;
    letter-spacing: 0.06em;
}

.internal-record-card--supplier .internal-record-card__grid span,
.internal-record-card--supplier .supplier-contact-number,
.internal-record-card--supplier .supplier-email-link,
.internal-record-card--supplier .supplier-website-link {
    color: #16313e;
    font-size: 0.8rem;
    line-height: 1.34;
}

.internal-record-card--supplier .internal-record-card__grid > div.is-wide > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.internal-record-card--supplier .btn.btn-small {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.74rem;
}

.supplier-contact-stack {
    gap: 6px;
}

.supplier-website-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.supplier-card-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.supplier-card-actions form,
.supplier-database-actions form {
    display: inline-flex;
    margin: 0;
}

.supplier-icon-button,
.supplier-icon-button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(13, 68, 87, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.06);
    cursor: pointer;
    text-decoration: none;
}

.supplier-icon-button:hover,
.supplier-icon-button:focus-visible {
    background: #0b4b60;
    color: #ffffff;
    transform: translateY(-1px);
}

.supplier-icon-button svg {
    width: 17px;
    height: 17px;
}

.supplier-icon-button--edit {
    color: var(--secondary);
}

.supplier-icon-button--web {
    color: var(--info);
}

.supplier-icon-button--ai {
    color: #7c3aed;
}

.supplier-icon-button--ai:hover,
.supplier-icon-button--ai:focus-visible {
    background: #6d28d9;
    color: #ffffff;
}

.supplier-icon-button--deepseek {
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
}

.supplier-icon-button--deepseek:hover,
.supplier-icon-button--deepseek:focus-visible {
    background: #0f766e;
    color: #ffffff;
}

.supplier-icon-button--delete {
    color: #b42318;
}

.supplier-icon-button--delete:hover,
.supplier-icon-button--delete:focus-visible {
    background: #b42318;
    color: #ffffff;
}

.supplier-icon-button[disabled],
.supplier-icon-button.btn[disabled] {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
}

.supplier-icon-button[disabled]:hover,
.supplier-icon-button.btn[disabled]:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #b42318;
}

.internal-records-table--suppliers .supplier-card-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.supplier-contact-actions {
    gap: 6px;
}

.supplier-contact-chip {
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.supplier-contact-chip.is-website {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.supplier-contact-chip.is-edit {
    border-color: rgba(11, 75, 96, 0.18);
    background: rgba(11, 75, 96, 0.08);
    color: var(--primary);
}

.supplier-database-shell {
    padding-bottom: 38px;
}

.supplier-database-app {
    display: grid;
    gap: 16px;
}

.supplier-database-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.supplier-database-head h2 {
    margin: 5px 0 6px;
    color: #0d2a37;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.supplier-database-head p {
    max-width: 760px;
    margin: 0;
    color: #5f7280;
}

.supplier-database-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.supplier-database-toolbar {
    position: sticky;
    top: var(--supplier-sticky-top, 12px);
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(132px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 18px;
    background: rgba(248, 251, 251, 0.96);
    box-shadow: 0 16px 34px rgba(9, 27, 39, 0.08);
    backdrop-filter: blur(14px);
}

.supplier-database-toolbar label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.supplier-database-toolbar span {
    color: #667783;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.supplier-database-toolbar input,
.supplier-database-toolbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(202, 217, 216, 0.98);
    border-radius: 12px;
    background: #ffffff;
    color: #16313e;
    font: inherit;
    font-size: 0.86rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 18px rgba(9, 27, 39, 0.04);
}

.supplier-database-search input {
    font-weight: 800;
}

.supplier-database-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.supplier-database-status-row .internal-records-summary {
    margin: 0;
}

.supplier-database-results {
    display: grid;
    gap: 10px;
}

.supplier-database-app[data-supplier-database-ready="1"] [data-supplier-db-static] {
    display: none;
}

.supplier-database-row {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 251, 0.96));
    box-shadow: 0 12px 26px rgba(9, 27, 39, 0.055);
}

.supplier-database-row.is-directory-search-match {
    border-color: rgba(255, 178, 63, 0.7);
    box-shadow: 0 16px 32px rgba(255, 178, 63, 0.15), 0 10px 24px rgba(9, 27, 39, 0.06);
}

.supplier-database-row__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.supplier-database-row__title {
    min-width: 0;
}

.supplier-database-row__title h3 {
    margin: 5px 0 4px;
    color: #0d2a37;
    font-size: 1rem;
    line-height: 1.25;
}

.supplier-database-row__title p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #607481;
    font-size: 0.78rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.supplier-database-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.supplier-database-actions .supplier-icon-button {
    width: auto;
    min-width: 44px;
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
}

.supplier-database-row__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.supplier-database-row__grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(216, 229, 227, 0.86);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.supplier-database-row__grid > div.is-wide {
    grid-column: span 2;
}

.supplier-database-row__grid strong {
    color: #6b7e89;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.supplier-database-row__grid span,
.supplier-database-row__grid a {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #16313e;
    font-size: 0.78rem;
    line-height: 1.34;
}

.supplier-database-contact-value {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.supplier-database-contact-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(11, 75, 96, 0.16);
    border-radius: 8px;
    background: rgba(239, 249, 246, 0.96);
    color: var(--primary);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0;
}

.supplier-database-contact-icon svg {
    width: 14px;
    height: 14px;
}

.supplier-database-contact-icon--wa {
    border-color: rgba(22, 133, 111, 0.2);
    background: rgba(22, 133, 111, 0.1);
    color: var(--secondary);
}

.supplier-database-empty {
    margin: 0;
}

.supplier-database-pagination {
    justify-content: flex-end;
}

.supplier-database-editor-form .frontend-field-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-database-editor-form label {
    display: grid;
    gap: 6px;
}

.supplier-database-editor-form label.is-wide {
    grid-column: 1 / -1;
}

.supplier-compact-table-card {
    gap: 12px;
}

.supplier-compact-table {
    min-width: 820px;
}

.supplier-compact-table td {
    vertical-align: top;
}

.supplier-compact-name {
    color: #16313e;
    font-size: 0.9rem;
    line-height: 1.3;
}

.supplier-compact-chemicals,
.supplier-compact-contact a,
.supplier-compact-contact span {
    font-size: 0.78rem;
    line-height: 1.4;
}

.supplier-compact-contact {
    gap: 5px;
}

.supplier-compact-commands {
    gap: 6px;
}

.supplier-bulk-delete-bar {
    border-radius: 14px;
}

.supplier-records-tool {
    border-radius: 18px;
}

.supplier-card-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}

.supplier-card-modal[hidden] {
    display: none;
}

.supplier-card-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 18, 25, 0.58);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.supplier-card-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(740px, 100%);
    max-height: min(760px, calc(100dvh - 28px));
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 34px 80px rgba(7, 18, 25, 0.28);
    -webkit-overflow-scrolling: touch;
}

.supplier-card-modal--editor .supplier-card-modal__dialog {
    width: min(860px, 100%);
}

.supplier-card-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.supplier-card-modal__head h2 {
    margin: 4px 0 0;
    color: #0d2a37;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.16;
}

.supplier-card-modal__body {
    min-width: 0;
}

.supplier-popup-editor-form {
    display: grid;
    gap: 14px;
}

.supplier-popup-editor-form .frontend-field-grid.two {
    gap: 12px;
}

.supplier-popup-editor-form__actions {
    position: sticky;
    bottom: -16px;
    margin: 0 -16px -16px;
    padding: 12px 16px 0;
    border-top: 1px solid rgba(216, 229, 227, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 34%);
}

.supplier-card-modal .internal-record-card--supplier-floating {
    width: 100%;
    margin: 0;
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.supplier-card-modal .internal-record-card--supplier-floating .internal-record-card__grid > div.is-wide > span,
.supplier-card-modal .internal-record-card--supplier-floating .internal-records-subtext {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

body.supplier-card-modal-open {
    overflow: hidden;
}

.mobile-header-lower {
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(7, 18, 25, 0.18);
}

.dashboard-command-button,
.dashboard-command-action {
    cursor: pointer;
}

.dashboard-command-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
}

.dashboard-command-palette {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: start center;
    padding: max(54px, 8vh) 16px 24px;
}

.dashboard-command-palette[hidden] {
    display: none;
}

.dashboard-command-palette__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 25, 0.62);
    backdrop-filter: blur(10px);
}

.dashboard-command-palette__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(720px, 100%);
    max-height: min(720px, calc(100dvh - 96px));
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 34px 70px rgba(7, 18, 25, 0.28);
}

.dashboard-command-palette__field {
    display: grid;
    gap: 8px;
}

.dashboard-command-palette__field span {
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-command-palette__field input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(202, 217, 216, 0.98);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.dashboard-command-palette__list {
    display: grid;
    gap: 8px;
    max-height: min(540px, calc(100dvh - 210px));
    overflow: auto;
    padding-right: 4px;
}

.dashboard-command-palette__item,
.dashboard-command-palette__empty {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 14px;
    background: rgba(248, 251, 251, 0.96);
    color: var(--text);
}

.dashboard-command-palette__item:hover,
.dashboard-command-palette__item.is-active {
    border-color: rgba(22, 133, 111, 0.32);
    background: linear-gradient(180deg, rgba(239, 249, 246, 0.98), rgba(255, 255, 255, 0.98));
    color: var(--primary);
}

.dashboard-command-palette__item strong {
    font-size: 0.95rem;
}

.dashboard-command-palette__item small,
.dashboard-command-palette__empty {
    color: var(--muted);
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

body.dashboard-command-open {
    overflow: hidden;
}

.mobile-footer-nav__item {
    border-radius: 14px;
}

.mobile-footer-nav__item:hover,
.mobile-footer-nav__item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

@media (max-width: 1180px) {
    .division-grid,
    .product-card-grid,
    .card-grid.four,
    .home-mini-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .container,
    .narrow {
        width: min(100%, calc(100% - 28px));
    }

    .section-heading-row,
    .internal-records-head,
    .portal-hero,
    .dashboard-inline-hero {
        align-items: stretch;
    }

    .section-heading-row .btn,
    .internal-records-head .portal-actions .btn,
    .portal-actions .btn {
        flex: 1 1 180px;
    }

    .site-nav.open {
        border-color: rgba(255, 255, 255, 0.12);
        background:
            linear-gradient(180deg, rgba(7, 25, 35, 0.98), rgba(9, 43, 58, 0.98));
        box-shadow: 0 24px 46px rgba(7, 18, 25, 0.28);
    }

    .site-nav.open a {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }
}

@media (max-width: 768px) {
    body {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 248, 0.95) 28%, rgba(238, 245, 244, 0.98) 100%),
            url("../images/site-science-background.svg") center 72px / 960px auto repeat-y,
            radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.06), transparent 22%),
            radial-gradient(circle at 92% 4%, rgba(255, 178, 63, 0.1), transparent 24%);
    }

    body.alkemist-editor-session {
        background:
            linear-gradient(180deg, rgba(237, 243, 244, 0.96), rgba(246, 250, 250, 0.98)),
            url("../images/site-science-background.svg") center 64px / 900px auto repeat-y,
            #edf3f4;
    }

    .container,
    .narrow {
        width: min(100%, calc(100% - 18px));
    }

    .header-announcement-inner {
        gap: 8px;
    }

    .mobile-header-upper {
        padding: 12px 0;
    }

    .mobile-header-lower-inner {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(68px, 1fr);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    body.alkemist-editor-session .dashboard-shell {
        padding: 8px 0;
    }

    body.alkemist-editor-session .dashboard-workspace-card {
        contain: none;
    }

    .mobile-footer-nav__item {
        scroll-snap-align: start;
    }

    .slide,
    .slide picture,
    .slide img {
        min-height: 560px;
        height: 68vh;
    }

    .slide-content {
        justify-content: flex-end;
        padding-bottom: 54px;
    }

    .slide-content h1 {
        font-size: clamp(2rem, 11vw, 3.2rem);
        line-height: 1.04;
    }

    .slide-content p {
        font-size: 0.98rem;
    }

    .hero-actions,
    .archive-hero-actions,
    .detail-hero-actions,
    .portal-actions,
    .brand-tile__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .archive-hero-actions .btn,
    .detail-hero-actions .btn,
    .portal-actions .btn,
    .brand-tile__actions .btn {
        width: 100%;
    }

    .portal-actions:not(.frontend-submit-row) {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .portal-actions:not(.frontend-submit-row) .btn {
        flex: 1 1 calc(50% - 8px);
        width: auto;
        min-width: min(100%, 128px);
        max-width: 220px;
        min-height: 40px;
        padding: 8px 11px;
        border-radius: 12px;
        font-size: 0.8rem;
        line-height: 1.22;
    }

    .portal-actions:not(.frontend-submit-row) .btn:only-child {
        flex: 0 1 auto;
        min-width: 132px;
    }

    .portal-actions:not(.frontend-submit-row) .frontend-inline-action-form {
        flex: 1 1 128px;
        width: auto;
    }

    .portal-actions:not(.frontend-submit-row) .frontend-inline-action-form .btn {
        width: 100%;
    }

    .home-section {
        padding: 46px 0;
    }

    .division-grid,
    .product-card-grid,
    .card-grid.three,
    .card-grid.four,
    .home-mini-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card,
    .brand-tile,
    .entry-card,
    .page-card,
    .resource-card,
    .portal-card,
    .portal-hero {
        border-radius: 16px;
    }

    .internal-records-controls,
    .supplier-browser-filter-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .internal-records-cards--suppliers {
        grid-template-columns: 1fr;
    }

    .frontend-taxonomy-grid--cards,
    .frontend-taxonomy-selector .frontend-editor-smartbar__chips {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .supplier-contact-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .supplier-contact-chip {
        width: 100%;
    }

    .internal-record-card--supplier .supplier-contact-actions {
        display: flex;
        width: auto;
    }

    .internal-record-card--supplier .supplier-contact-chip {
        width: auto;
    }

    .dashboard-command-palette {
        align-items: stretch;
        padding: 12px;
    }

    .dashboard-command-palette__dialog {
        max-height: calc(100dvh - 24px);
    }
}

@media (max-width: 560px) {
    .container,
    .narrow {
        width: min(100%, calc(100% - 14px));
    }

    .brand-mark .custom-logo {
        max-height: 38px;
    }

    .site-title {
        font-size: 1rem;
    }

    .mobile-header-icon-button,
    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .mobile-footer-nav__item {
        min-height: 58px;
        padding: 8px 6px;
    }

    .mobile-footer-nav__icon,
    .mobile-footer-nav__icon svg {
        width: 20px;
        height: 20px;
    }

    .slide,
    .slide picture,
    .slide img {
        min-height: 520px;
    }

    .slide-content {
        padding-bottom: 42px;
    }

    .section-heading h2,
    .cta-panel h2 {
        font-size: clamp(1.55rem, 9vw, 2rem);
    }

    .portal-shell {
        gap: 14px;
        padding-bottom: 44px;
    }

    .portal-card,
    .portal-hero,
    .frontend-editor-card,
    .frontend-record-browser,
    .frontend-field-section {
        padding: 14px;
    }

    .internal-record-card--supplier {
        padding: 14px;
    }

    .internal-record-card--supplier .internal-record-card__head {
        padding-left: 6px;
    }

    .internal-record-card--supplier .internal-record-card__grid {
        grid-template-columns: 1fr;
    }

    .supplier-contact-actions {
        grid-template-columns: 1fr;
    }

    .internal-record-card--supplier .supplier-contact-actions {
        display: flex;
    }
}

body.alkemist-editor-session {
    --editor-edge-gap: clamp(6px, 1vw, 14px);
    --editor-panel-radius: clamp(16px, 1.8vw, 24px);
    --editor-control-height: 40px;
}

body.alkemist-editor-session .portal-page-layout {
    padding-right: var(--editor-edge-gap) !important;
    padding-left: var(--editor-edge-gap) !important;
}

body.alkemist-editor-session .dashboard-shell {
    gap: clamp(10px, 1.2vw, 18px);
    padding-top: var(--editor-edge-gap);
}

body.alkemist-editor-session .dashboard-app {
    gap: clamp(12px, 1.35vw, 22px);
}

body.alkemist-editor-session .dashboard-workspace-card,
body.alkemist-editor-session .frontend-editor-card,
body.alkemist-editor-session .frontend-record-browser,
body.alkemist-editor-session .frontend-field-section {
    border-radius: var(--editor-panel-radius);
}

body.alkemist-editor-session .dashboard-workspace-head {
    padding: clamp(16px, 1.8vw, 26px);
}

body.alkemist-editor-session .dashboard-workspace-body {
    gap: clamp(14px, 1.4vw, 22px);
    padding: clamp(12px, 1.35vw, 22px);
}

body.alkemist-editor-session .dashboard-workspace-head h2 {
    font-size: clamp(1.55rem, 2.2vw, 2.45rem);
}

body.alkemist-editor-session .portal-actions,
body.alkemist-editor-session .dashboard-head-tools .portal-actions,
body.alkemist-editor-session .dashboard-workspace-head .portal-actions,
body.alkemist-editor-session .frontend-browser-head .portal-actions,
body.alkemist-editor-session .frontend-submit-row,
body.alkemist-editor-session .frontend-editor-smartbar__actions,
body.alkemist-editor-session .frontend-media-input__actions,
body.alkemist-editor-session .frontend-media-gallery-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: auto;
}

body.alkemist-editor-session .btn,
body.alkemist-editor-session a.btn,
body.alkemist-editor-session button.btn,
body.alkemist-editor-session .portal-actions .btn,
body.alkemist-editor-session .frontend-gallery-field__action,
body.alkemist-editor-session .frontend-editor-smartlink,
body.alkemist-editor-session .dashboard-command-button,
body.alkemist-editor-session .dashboard-mobile-strip .sidebar-mobile-toggle {
    width: auto;
    min-width: 0;
    min-height: var(--editor-control-height);
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.2;
}

body.alkemist-editor-session .dashboard-workspace-head .portal-actions .btn,
body.alkemist-editor-session .frontend-browser-head .portal-actions .btn,
body.alkemist-editor-session .frontend-submit-row .btn,
body.alkemist-editor-session .frontend-submit-row a.btn,
body.alkemist-editor-session .frontend-submit-row button.btn {
    flex: 1 1 136px;
    max-width: 220px;
}

body.alkemist-editor-session .dashboard-mobile-bar {
    width: 100%;
}

body.alkemist-editor-session .dashboard-mobile-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 17px;
}

body.alkemist-editor-session .dashboard-mobile-copy {
    min-width: 0;
}

body.alkemist-editor-session .dashboard-mobile-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.alkemist-editor-session .dashboard-command-button,
body.alkemist-editor-session .dashboard-mobile-strip .sidebar-mobile-toggle {
    height: auto;
    min-height: 40px;
    padding: 0 11px;
    align-self: center;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    body.alkemist-editor-session .frontend-editor-shell {
        grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
        align-items: start;
    }

    body.alkemist-editor-session .frontend-record-browser {
        position: sticky;
        top: 12px;
        order: 0;
        max-height: calc(100dvh - 72px);
        overflow: auto;
    }

    body.alkemist-editor-session .frontend-editor-card {
        order: 0;
    }
}

@media (max-width: 768px) {
    body.alkemist-editor-session {
        --editor-edge-gap: 6px;
        --editor-control-height: 38px;
    }

    body.alkemist-editor-session .dashboard-shell {
        padding-top: 6px;
    }

    body.alkemist-editor-session .dashboard-workspace-card {
        border-radius: 18px;
    }

    body.alkemist-editor-session .dashboard-workspace-head,
    body.alkemist-editor-session .dashboard-workspace-body {
        padding: 12px;
    }

    body.alkemist-editor-session .portal-card,
    body.alkemist-editor-session .frontend-editor-card,
    body.alkemist-editor-session .frontend-record-browser,
    body.alkemist-editor-session .frontend-field-section,
    body.alkemist-editor-session .frontend-resource-group {
        padding: 12px;
    }

    body.alkemist-editor-session .dashboard-head-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body.alkemist-editor-session .portal-actions,
    body.alkemist-editor-session .dashboard-head-tools .portal-actions,
    body.alkemist-editor-session .dashboard-workspace-head .portal-actions,
    body.alkemist-editor-session .frontend-browser-head .portal-actions,
    body.alkemist-editor-session .frontend-submit-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    body.alkemist-editor-session .dashboard-workspace-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-browser-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-submit-row .btn,
    body.alkemist-editor-session .frontend-submit-row a.btn,
    body.alkemist-editor-session .frontend-submit-row button.btn {
        flex: 1 1 calc(50% - 8px);
        max-width: none;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    body.alkemist-editor-session .portal-actions:not(.frontend-submit-row) .btn,
    body.alkemist-editor-session .dashboard-head-tools .portal-actions:not(.frontend-submit-row) .btn,
    body.alkemist-editor-session .frontend-media-input__actions .btn,
    body.alkemist-editor-session .frontend-media-gallery-actions .btn {
        flex: 1 1 128px;
        width: auto;
        max-width: 210px;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body.alkemist-editor-session .portal-actions:not(.frontend-submit-row) .btn:only-child,
    body.alkemist-editor-session .dashboard-head-tools .portal-actions:not(.frontend-submit-row) .btn:only-child {
        flex: 0 1 auto;
        min-width: 128px;
    }

    body.alkemist-editor-session .frontend-editor-form input[type="text"],
    body.alkemist-editor-session .frontend-editor-form input[type="email"],
    body.alkemist-editor-session .frontend-editor-form input[type="tel"],
    body.alkemist-editor-session .frontend-editor-form input[type="url"],
    body.alkemist-editor-session .frontend-editor-form input[type="search"],
    body.alkemist-editor-session .frontend-editor-form input[type="number"],
    body.alkemist-editor-session .frontend-editor-form input[type="date"],
    body.alkemist-editor-session .frontend-editor-form input[type="datetime-local"],
    body.alkemist-editor-session .frontend-editor-form select {
        min-height: 42px;
        padding: 9px 11px;
        border-radius: 12px;
        font-size: 0.94rem;
    }

    body.alkemist-editor-session .frontend-editor-form textarea {
        padding: 10px 11px;
        border-radius: 12px;
        font-size: 0.94rem;
    }
}

@media (max-width: 430px) {
    body.alkemist-editor-session {
        --editor-edge-gap: 4px;
    }

    body.alkemist-editor-session .dashboard-mobile-strip {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 8px;
    }

    body.alkemist-editor-session .dashboard-mobile-copy span {
        font-size: 0.64rem;
    }

    body.alkemist-editor-session .dashboard-mobile-copy strong {
        font-size: 0.86rem;
    }

    body.alkemist-editor-session .dashboard-command-button,
    body.alkemist-editor-session .dashboard-mobile-strip .sidebar-mobile-toggle {
        height: auto;
        min-height: 36px;
        padding: 0 9px;
        border-radius: 11px;
        font-size: 0.72rem;
    }

    body.alkemist-editor-session .dashboard-mobile-strip .sidebar-mobile-toggle::before {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    body.alkemist-editor-session .dashboard-workspace-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-browser-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-submit-row .btn,
    body.alkemist-editor-session .frontend-submit-row a.btn,
    body.alkemist-editor-session .frontend-submit-row button.btn {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 0.74rem;
        border-radius: 10px;
    }

    .portal-actions:not(.frontend-submit-row) .btn,
    body.alkemist-editor-session .portal-actions:not(.frontend-submit-row) .btn,
    body.alkemist-editor-session .dashboard-head-tools .portal-actions:not(.frontend-submit-row) .btn {
        flex-basis: calc(50% - 6px);
        min-width: 0;
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.72rem;
        border-radius: 10px;
    }

    .portal-actions:not(.frontend-submit-row) .btn:only-child,
    body.alkemist-editor-session .portal-actions:not(.frontend-submit-row) .btn:only-child {
        flex: 0 1 auto;
        min-width: 124px;
    }
}

@media (max-width: 640px) {
    .internal-records-shell {
        width: 100%;
        padding-inline: 0;
        padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 72px));
        overflow-x: clip;
    }

    .internal-records-card--suppliers {
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
        overflow: visible;
    }

    .internal-records-card--suppliers .internal-records-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
    }

    .internal-records-card--suppliers .internal-records-head .portal-actions,
    .internal-records-card--suppliers .portal-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .internal-records-card--suppliers .internal-records-head .portal-actions .btn,
    .internal-records-card--suppliers .portal-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        justify-content: center;
        padding: 9px 12px;
        white-space: normal;
    }

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

    .supplier-directory-metrics span {
        padding: 10px;
        border-radius: 12px;
        font-size: 0.68rem;
    }

    .supplier-directory-metrics strong {
        font-size: 1.02rem;
    }

    .supplier-database-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .supplier-database-head .btn {
        width: 100%;
        justify-content: center;
    }

    .supplier-database-toolbar {
        position: static;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 10px;
        border-radius: 14px;
    }

    .supplier-database-status-row {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .supplier-database-row {
        padding: 12px;
        border-radius: 14px;
    }

    .supplier-database-row__main,
    .supplier-database-row__grid {
        grid-template-columns: 1fr;
    }

    .supplier-database-row__grid > div.is-wide {
        grid-column: auto;
    }

    .supplier-database-actions {
        justify-content: flex-start;
    }

    .supplier-database-actions .supplier-icon-button,
    body.alkemist-editor-session .supplier-database-actions .supplier-icon-button {
        width: auto;
        min-width: 50px;
        height: 38px;
        min-height: 38px;
        padding: 0 11px;
    }

    .supplier-records-tool {
        border-radius: 14px;
    }

    .supplier-records-tool summary {
        min-height: 48px;
        padding: 12px;
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .supplier-records-tool__body,
    .supplier-ai-prompt-builder {
        padding: 12px;
        border-radius: 14px;
    }

    .supplier-ai-prompt-grid,
    .supplier-ai-prompt-actions {
        grid-template-columns: 1fr;
    }

    .supplier-ai-prompt-builder [data-supplier-ai-prompt],
    .supplier-bulk-import-form textarea {
        min-height: 156px;
        max-height: 48dvh;
        font-size: 0.78rem;
    }

    .internal-records-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .internal-records-controls label {
        min-width: 0;
    }

    .internal-records-controls input[type="search"],
    .internal-records-controls select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .supplier-floating-table-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .supplier-floating-table-actions__count {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        min-height: 28px;
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    .supplier-floating-table-actions__search input {
        min-height: 40px;
        border-radius: 12px;
        font-size: 0.86rem;
    }

    .supplier-floating-table-actions .supplier-icon-button,
    .supplier-floating-table-actions .supplier-icon-button.btn,
    body.alkemist-editor-session .supplier-floating-table-actions .supplier-icon-button,
    body.alkemist-editor-session .supplier-floating-table-actions .supplier-icon-button.btn {
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .supplier-bulk-delete-bar,
    .supplier-bulk-delete-bar--footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
        padding: 12px;
        border-radius: 14px;
    }

    .supplier-bulk-delete-meta {
        width: 100%;
        justify-content: space-between;
    }

    .internal-records-cards--suppliers {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 10px;
    }

    .internal-record-card--supplier {
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .internal-record-card--supplier::before {
        width: 4px;
        border-radius: 14px 0 0 14px;
    }

    .internal-record-card--supplier .internal-record-card__head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 5px;
    }

    .internal-record-card--supplier .internal-record-card__head h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .internal-record-card--supplier .internal-records-subtext {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .supplier-card-actions {
        justify-content: flex-start;
        gap: 7px;
    }

    .supplier-icon-button,
    .supplier-icon-button.btn,
    body.alkemist-editor-session .supplier-icon-button,
    body.alkemist-editor-session .supplier-icon-button.btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    .internal-record-card--supplier .internal-record-card__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .internal-record-card--supplier .internal-record-card__grid > div {
        padding: 10px;
        border-radius: 12px;
    }

    .supplier-contact-actions,
    .internal-record-card--supplier .supplier-contact-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .supplier-contact-chip {
        min-height: 30px;
        border-radius: 10px;
        font-size: 0.68rem;
    }

    .supplier-directory-pagination {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 8px;
    }

    .supplier-directory-pagination span {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .supplier-card-modal {
        align-items: end;
        place-items: end stretch;
        padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    }

    .supplier-card-modal__dialog {
        width: 100%;
        max-height: min(92dvh, calc(100dvh - 16px));
        padding: 12px;
        border-radius: 18px 18px 12px 12px;
    }

    .supplier-card-modal__head {
        position: sticky;
        top: -12px;
        z-index: 2;
        align-items: center;
        margin: -12px -12px 0;
        padding: 12px;
        border-bottom: 1px solid rgba(216, 229, 227, 0.82);
        background: rgba(255, 255, 255, 0.98);
    }

    .supplier-card-modal__head h2 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .supplier-popup-editor-form .frontend-field-grid.two {
        grid-template-columns: 1fr;
    }

    .supplier-popup-editor-form input,
    .supplier-popup-editor-form textarea {
        min-height: 42px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .supplier-popup-editor-form textarea {
        min-height: 96px;
    }

    .supplier-popup-editor-form__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        bottom: -12px;
        margin: 0 -12px -12px;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .supplier-directory-metrics {
        grid-template-columns: 1fr;
    }

    .supplier-card-actions {
        display: grid;
        grid-template-columns: repeat(4, 38px);
        justify-content: start;
    }

    .supplier-floating-table-actions {
        grid-template-columns: 1fr 40px;
    }
}

body.alkemist-editor-session .supplier-icon-button,
body.alkemist-editor-session .supplier-icon-button.btn,
body.alkemist-editor-session .portal-actions .supplier-icon-button.btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    flex: 0 0 auto;
}

body.alkemist-editor-session .supplier-database-actions .supplier-icon-button,
body.alkemist-editor-session .supplier-database-actions .supplier-icon-button.btn {
    width: auto;
    min-width: 44px;
    padding: 0 10px;
    border-radius: 10px;
}

.supplier-floating-table-actions .supplier-icon-button,
.supplier-floating-table-actions .supplier-icon-button.btn,
body.alkemist-editor-session .supplier-floating-table-actions .supplier-icon-button,
body.alkemist-editor-session .supplier-floating-table-actions .supplier-icon-button.btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
}

@media (max-width: 640px) {
    body.alkemist-editor-session .supplier-icon-button,
    body.alkemist-editor-session .supplier-icon-button.btn,
    body.alkemist-editor-session .portal-actions .supplier-icon-button.btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    .supplier-floating-table-actions .supplier-icon-button,
    .supplier-floating-table-actions .supplier-icon-button.btn,
    body.alkemist-editor-session .supplier-floating-table-actions .supplier-icon-button,
    body.alkemist-editor-session .supplier-floating-table-actions .supplier-icon-button.btn {
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 999px;
    }

    body.alkemist-editor-session .supplier-database-actions .supplier-icon-button,
    body.alkemist-editor-session .supplier-database-actions .supplier-icon-button.btn {
        width: auto;
        min-width: 50px;
        padding: 0 11px;
        border-radius: 12px;
    }
}

body.alkemist-editor-session .page-shortcuts,
.page-shortcuts--editor {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: auto;
    z-index: 96;
    gap: 7px;
}

body.alkemist-editor-session .page-shortcuts__button,
.page-shortcuts--editor .page-shortcuts__button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(7, 25, 35, 0.96), rgba(11, 75, 96, 0.92));
    box-shadow: 0 12px 26px rgba(7, 18, 25, 0.2);
}

body.alkemist-editor-session .page-shortcuts__icon,
body.alkemist-editor-session .page-shortcuts__icon svg,
.page-shortcuts--editor .page-shortcuts__icon,
.page-shortcuts--editor .page-shortcuts__icon svg {
    width: 19px;
    height: 19px;
}

body.dashboard-sidebar-open .page-shortcuts--editor,
body.dashboard-command-open .page-shortcuts--editor {
    opacity: 0;
    pointer-events: none;
}

.enquiry-contact-panel {
    display: grid;
    gap: 14px;
    border-color: rgba(13, 68, 87, 0.14);
    background: linear-gradient(180deg, rgba(248, 252, 252, 0.98), rgba(255, 255, 255, 0.98));
}

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

.enquiry-contact-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e1ecea;
    border-radius: 14px;
    background: #ffffff;
}

.enquiry-contact-grid strong {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enquiry-contact-grid span {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}

.enquiry-contact-actions {
    align-items: stretch;
}

.enquiry-contact-actions .btn {
    flex: 1 1 150px;
    min-width: 0;
    text-align: center;
}

.enquiry-contact-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.6;
}

.frontend-status-badge--portal {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.frontend-status-badge--whatsapp {
    border-color: rgba(22, 133, 111, 0.2);
    background: rgba(22, 133, 111, 0.1);
    color: var(--secondary);
}

.quote-thread-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.quote-thread-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.quote-thread-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e1ecea;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
}

.quote-thread-summary strong {
    margin-right: 4px;
    color: var(--primary);
}

.quote-thread-list--ruled {
    position: relative;
    gap: 16px;
    padding: 14px;
}

.quote-thread-list--ruled::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 29px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(13, 68, 87, 0.18), rgba(27, 135, 110, 0.26));
}

.quote-thread-list--compact {
    max-height: 420px;
}

.quote-thread-list--ruled .quote-thread-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    justify-content: stretch;
}

.quote-thread-list--ruled .quote-thread-item--staff,
.quote-thread-list--ruled .quote-thread-item--customer,
.quote-thread-list--ruled .quote-thread-item--system {
    justify-content: stretch;
}

.quote-thread-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(13, 68, 87, 0.96), rgba(27, 135, 110, 0.96));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.14);
}

.quote-thread-list--ruled .quote-thread-bubble {
    width: 100%;
    border-radius: 18px;
}

.quote-thread-list--ruled .quote-thread-item--staff .quote-thread-bubble {
    border-left: 4px solid rgba(27, 135, 110, 0.54);
}

.quote-thread-list--ruled .quote-thread-item--customer .quote-thread-bubble {
    border-left: 4px solid rgba(54, 139, 224, 0.5);
}

.quote-thread-list--ruled .quote-thread-item--system .quote-thread-bubble {
    border-left: 4px solid rgba(255, 183, 3, 0.58);
}

body.alkemist-editor-session .dashboard-nav-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 11px 12px;
    border-radius: 16px;
}

body.alkemist-editor-session .dashboard-nav-icon,
body.alkemist-editor-session .dashboard-mobile-chip__icon,
body.alkemist-editor-session .dashboard-active-icon,
body.alkemist-editor-session .dashboard-head-icon,
body.alkemist-editor-session .dashboard-command-icon,
.dashboard-command-palette__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body.alkemist-editor-session .dashboard-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(13, 68, 87, 0.08);
    color: var(--secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.alkemist-editor-session .dashboard-nav-item:hover .dashboard-nav-icon,
body.alkemist-editor-session .dashboard-nav-item.is-active .dashboard-nav-icon {
    background: linear-gradient(180deg, rgba(13, 68, 87, 0.96), rgba(22, 133, 111, 0.94));
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 68, 87, 0.18);
}

body.alkemist-editor-session .dashboard-nav-icon svg,
body.alkemist-editor-session .dashboard-active-icon svg,
body.alkemist-editor-session .dashboard-head-icon svg,
body.alkemist-editor-session .dashboard-command-icon svg,
body.alkemist-editor-session .dashboard-mobile-chip__icon svg,
.dashboard-command-palette__item-icon svg {
    width: 18px;
    height: 18px;
}

body.alkemist-editor-session .dashboard-nav-copy {
    min-width: 0;
}

body.alkemist-editor-session .dashboard-nav-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.alkemist-editor-session .dashboard-nav-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.alkemist-editor-session .dashboard-nav-badge {
    align-self: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.78rem;
}

body.alkemist-editor-session .dashboard-mobile-copy strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.alkemist-editor-session .dashboard-mobile-copy strong > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.alkemist-editor-session .dashboard-active-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

body.alkemist-editor-session .dashboard-workspace-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.alkemist-editor-session .dashboard-workspace-head h2 > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.alkemist-editor-session .dashboard-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(13, 68, 87, 0.96), rgba(22, 133, 111, 0.94));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(13, 68, 87, 0.16);
}

body.alkemist-editor-session .dashboard-mobile-chip {
    gap: 7px;
    border-radius: 14px;
}

body.alkemist-editor-session .dashboard-mobile-chip__icon {
    width: 18px;
    height: 18px;
}

body.alkemist-editor-session .dashboard-command-button,
body.alkemist-editor-session .dashboard-command-action {
    gap: 7px;
}

body.alkemist-editor-session .dashboard-command-button {
    position: relative;
}

body.alkemist-editor-session .dashboard-command-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.alkemist-editor-session .dashboard-command-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.dashboard-command-palette__item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.dashboard-command-palette__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(13, 68, 87, 0.08);
    color: var(--secondary);
}

.dashboard-command-palette__item:hover .dashboard-command-palette__item-icon,
.dashboard-command-palette__item.is-active .dashboard-command-palette__item-icon {
    background: rgba(22, 133, 111, 0.13);
    color: var(--primary);
}

.dashboard-command-palette__item-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dashboard-command-palette__item-copy strong,
.dashboard-command-palette__item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .enquiry-contact-grid,
    .quote-thread-head {
        grid-template-columns: 1fr;
    }

    .quote-thread-summary {
        justify-content: flex-start;
    }

    body.alkemist-editor-session .page-shortcuts,
    .page-shortcuts--editor {
        right: max(7px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        left: auto;
    }

    body.alkemist-editor-session .page-shortcuts__button,
    .page-shortcuts--editor .page-shortcuts__button {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    body.alkemist-editor-session .dashboard-nav-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 9px;
        min-height: 52px;
        padding: 10px;
    }

    body.alkemist-editor-session .dashboard-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    body.alkemist-editor-session .dashboard-mobile-quicknav {
        scroll-snap-type: x proximity;
    }

    body.alkemist-editor-session .dashboard-mobile-chip {
        scroll-snap-align: start;
    }
}

@media (max-width: 540px) {
    body.alkemist-editor-session .dashboard-mobile-quicknav {
        gap: 8px;
        margin-right: calc(var(--editor-edge-gap) * -1);
        margin-left: calc(var(--editor-edge-gap) * -1);
        padding-right: var(--editor-edge-gap);
        padding-left: var(--editor-edge-gap);
    }

    body.alkemist-editor-session .dashboard-mobile-chip {
        max-width: min(78vw, 220px);
        padding: 8px 10px;
    }

    body.alkemist-editor-session .dashboard-mobile-chip span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {
    body.alkemist-editor-session .dashboard-command-button {
        width: 38px;
        min-width: 38px;
        padding: 0;
        gap: 0;
    }

    body.alkemist-editor-session .dashboard-command-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    body.alkemist-editor-session .dashboard-mobile-strip .sidebar-mobile-toggle {
        width: 38px;
        min-width: 38px;
        padding: 0;
        font-size: 0;
    }

    body.alkemist-editor-session .dashboard-mobile-strip .sidebar-mobile-toggle::before {
        margin-right: 0;
    }
}

.social-share-panel.social-share-panel--compact-icons,
.social-share-panel--compact-icons.detail-social-share {
    position: fixed;
    right: max(10px, calc(8px + env(safe-area-inset-right)));
    top: 50%;
    bottom: auto;
    z-index: 130;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
}

.social-share-panel--compact-icons .social-share-panel__toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(7, 23, 31, 0.24);
}

.social-share-panel--compact-icons.is-open .social-share-panel__toggle {
    opacity: 1;
    pointer-events: auto;
    transform: scale(0.94);
    box-shadow: 0 10px 22px rgba(7, 23, 31, 0.22);
}

.social-share-panel--compact-icons .social-share-panel__toggle-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    background: transparent;
}

.social-share-panel--compact-icons .social-share-panel__toggle-icon svg {
    width: 14px;
    height: 14px;
}

.social-share-panel--compact-icons .social-share-panel__toggle-label,
.social-share-panel--compact-icons .social-share-button__label,
.social-share-panel--compact-icons .social-share-panel__topbar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.social-share-panel--compact-icons .social-share-panel__dialog {
    position: absolute;
    inset: auto 0 calc(100% + 8px) auto;
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}

.social-share-panel--compact-icons .social-share-panel__dialog[hidden] {
    display: none;
}

.social-share-panel--compact-icons .social-share-panel__backdrop {
    display: none;
}

.social-share-panel--compact-icons .social-share-panel__sheet {
    width: auto;
    max-height: none;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    pointer-events: auto;
    transform-origin: 50% 100%;
    animation: alkemist-share-strip-unfold .22s cubic-bezier(.2, .8, .2, 1) both;
}

.social-share-panel--compact-icons .social-share-panel__grid {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.social-share-panel--compact-icons .social-share-button {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 9px 18px rgba(9, 27, 39, 0.16);
    transform-origin: 50% 100%;
    animation: alkemist-share-icon-pop .24s cubic-bezier(.2, .8, .2, 1) both;
}

.social-share-panel--compact-icons .social-share-button__icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
}

.social-share-panel--compact-icons .social-share-button__icon img {
    width: 12px;
    height: 12px;
}

.social-share-panel--compact-icons .social-share-button__icon svg {
    width: 12px;
    height: 12px;
}

.social-share-panel--compact-icons .social-share-button:nth-child(2) {
    animation-delay: .025s;
}

.social-share-panel--compact-icons .social-share-button:nth-child(3) {
    animation-delay: .05s;
}

.social-share-panel--compact-icons .social-share-button:nth-child(4) {
    animation-delay: .075s;
}

.social-share-panel--compact-icons .social-share-button:nth-child(5) {
    animation-delay: .1s;
}

.social-share-panel--compact-icons .social-share-button:nth-child(6) {
    animation-delay: .125s;
}

.social-share-panel--compact-icons .social-share-panel__native {
    width: 26px;
    margin-bottom: 6px;
}

.social-share-panel--compact-icons .social-share-panel__status {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(220px, calc(100vw - 32px));
    padding: 8px 10px;
    border-radius: 12px;
    background: #0d4457;
    color: #fff;
    box-shadow: 0 14px 30px rgba(7, 23, 31, 0.22);
}

.detail-breadcrumb-wrap {
    padding-top: 26px;
}

.detail-breadcrumb {
    width: fit-content;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(216, 229, 227, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(9, 27, 39, 0.06);
}

.detail-hero {
    position: relative;
    isolation: isolate;
    margin-top: 18px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 247, 0.95) 62%, rgba(255, 249, 236, 0.9)),
        radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.16), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.08), transparent 30%);
    box-shadow: 0 26px 64px rgba(9, 27, 39, 0.12);
    overflow: hidden;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--secondary), var(--info));
    opacity: 0.9;
}

.detail-hero-grid {
    align-items: stretch;
    gap: clamp(18px, 3vw, 34px);
}

.detail-hero-grid > div:first-child {
    display: grid;
    align-content: center;
    gap: 14px;
}

.detail-hero .eyebrow {
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(22, 133, 111, 0.18);
    border-radius: 999px;
    background: rgba(239, 249, 246, 0.94);
    color: var(--secondary);
}

.detail-hero-grid h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2.15rem, 4.4vw, 4.6rem);
    line-height: 0.98;
    text-wrap: balance;
}

.detail-hero .archive-description {
    max-width: 760px;
    margin: 0;
    color: #415865;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.detail-market-tags,
.term-row {
    gap: 8px;
}

.detail-market-tag,
.term-pill {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border-color: rgba(13, 68, 87, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.05);
}

.detail-summary-card {
    position: relative;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.96)),
        linear-gradient(135deg, rgba(255, 178, 63, 0.12), transparent 46%);
    box-shadow: 0 22px 52px rgba(9, 27, 39, 0.1);
}

.detail-summary-card h2 {
    margin: 0;
    color: #0d2a37;
}

.detail-summary-card .summary-list div {
    position: relative;
    min-height: 78px;
    padding: 13px 13px 13px 16px;
    border-color: rgba(216, 229, 227, 0.9);
    border-radius: 16px;
    box-shadow: inset 4px 0 0 rgba(255, 178, 63, 0.8), 0 10px 22px rgba(9, 27, 39, 0.04);
}

.detail-summary-card .summary-list strong {
    color: #0b4b60;
    font-size: 1.06rem;
}

.detail-layout {
    gap: clamp(16px, 2vw, 24px);
    padding-top: 20px;
}

.detail-content {
    padding: clamp(16px, 2.4vw, 26px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 58px rgba(9, 27, 39, 0.1);
}

.detail-image,
.product-detail-gallery--resource {
    margin: calc(clamp(16px, 2.4vw, 26px) * -1) calc(clamp(16px, 2.4vw, 26px) * -1) 18px;
    border-radius: 26px 26px 0 0;
}

.detail-section-nav {
    position: sticky;
    top: 86px;
    z-index: 18;
    margin: 0 -6px 18px;
    padding: 8px 6px;
    border: 1px solid rgba(216, 229, 227, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(9, 27, 39, 0.07);
    backdrop-filter: blur(12px);
}

.detail-section-nav a {
    min-height: 34px;
    padding: 7px 12px;
    background: rgba(244, 249, 248, 0.92);
}

.detail-section-nav a:hover,
.detail-section-nav a:focus-visible {
    background: #0b4b60;
    color: #ffffff;
}

.detail-prose {
    padding: 4px 2px;
    color: #213846;
    font-size: 0.98rem;
    line-height: 1.78;
}

.detail-prose h2,
.detail-prose h3,
.detail-prose h4 {
    color: #0d2a37;
    line-height: 1.18;
    text-wrap: balance;
}

.detail-prose ul,
.detail-prose ol {
    padding-left: 1.2rem;
}

.detail-prose li + li {
    margin-top: 0.34rem;
}

.info-section {
    margin-top: 22px;
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid rgba(216, 229, 227, 0.9);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.96));
}

.info-section + .info-section {
    border-top: 1px solid rgba(216, 229, 227, 0.9);
    padding-top: clamp(16px, 2vw, 22px);
}

.info-section-heading {
    position: relative;
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding-left: 14px;
}

.info-section-heading::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
}

.info-section-heading h2 {
    margin: 0;
    color: #0d2a37;
    font-size: clamp(1.24rem, 1.8vw, 1.62rem);
    line-height: 1.15;
}

.info-section-heading p {
    max-width: 760px;
}

.resource-snapshot-card,
.resource-highlight-card,
.resource-richtext-card,
.resource-download-card,
.resource-term-card,
.gig-highlight-card,
.gig-mini-metric,
.gig-package-card {
    border-color: rgba(216, 229, 227, 0.94);
    box-shadow: 0 12px 28px rgba(9, 27, 39, 0.06);
}

.resource-snapshot-card {
    min-height: 122px;
    align-content: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 251, 250, 0.96));
}

.resource-snapshot-card::before {
    content: "";
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.resource-term-card,
.resource-download-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resource-term-card:hover,
.resource-download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(9, 27, 39, 0.1);
}

.resource-richtext-card {
    border-left: 4px solid rgba(22, 133, 111, 0.65);
}

.detail-data-table-wrap {
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 28px rgba(9, 27, 39, 0.05);
}

.detail-data-table {
    font-size: 0.9rem;
}

.detail-data-table th,
.detail-data-table td {
    padding: 11px 12px;
}

.detail-data-table tr:nth-child(even) td,
.detail-data-table tr:nth-child(even) th {
    background-color: rgba(248, 251, 251, 0.72);
}

.detail-data-table th {
    width: 190px;
    color: #0b4b60;
}

.detail-sidebar .sticky-card,
.detail-sidebar .compact-panel,
.testing-kit-sidebar-card {
    border-radius: 22px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 44px rgba(9, 27, 39, 0.09);
}

.detail-sidebar .sticky-card .eyebrow,
.testing-kit-sidebar-card .eyebrow {
    color: var(--secondary);
}

.sidebar-actions .btn,
.detail-sidebar .btn {
    justify-content: center;
}

.archive-hero {
    position: relative;
    isolation: isolate;
    margin-top: 22px;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 247, 0.96) 58%, rgba(255, 249, 236, 0.9)),
        radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.18), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.08), transparent 30%);
    box-shadow: 0 28px 68px rgba(9, 27, 39, 0.12);
    overflow: hidden;
}

.archive-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--secondary), var(--info));
}

.archive-hero-grid {
    gap: clamp(18px, 3vw, 34px);
    align-items: stretch;
}

.archive-hero-grid > div:first-child {
    display: grid;
    align-content: center;
    gap: 14px;
}

.archive-hero .eyebrow {
    width: fit-content;
    border: 1px solid rgba(22, 133, 111, 0.18);
    background: rgba(239, 249, 246, 0.94);
}

.archive-hero-grid h1 {
    margin: 0;
    font-size: clamp(2.15rem, 4.2vw, 4.2rem);
    line-height: 0.98;
    text-wrap: balance;
}

.archive-hero .archive-description {
    max-width: 780px;
    margin: 0;
    color: #415865;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.75;
}

.archive-summary-card {
    border-radius: 24px;
    box-shadow: 0 22px 52px rgba(9, 27, 39, 0.1);
}

.archive-summary-card--visual {
    align-content: start;
    padding: 18px;
}

.archive-summary-visual {
    min-height: 150px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 244, 0.96));
    box-shadow: inset 0 0 0 1px rgba(216, 229, 227, 0.86);
}

.archive-summary-badge {
    width: fit-content;
    background: rgba(239, 249, 246, 0.98);
    color: var(--secondary);
}

.content-grid {
    gap: clamp(18px, 2.4vw, 30px);
    padding-top: 22px;
}

.archive-library-section {
    border-radius: 24px;
}

.archive-library-grid,
.archive-linked-product-grid {
    align-items: stretch;
}

.archive-library-grid .resource-card,
.archive-library-grid .entry-card,
.archive-library-grid .brand-tile,
.archive-linked-product-grid .resource-card,
.archive-linked-product-grid .entry-card,
.archive-linked-product-grid .brand-tile,
.archive-linked-product-grid .alkemist-product-card {
    min-height: 100%;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 251, 0.96));
    box-shadow: 0 14px 34px rgba(9, 27, 39, 0.08);
}

.archive-library-grid .resource-card:hover,
.archive-library-grid .entry-card:hover,
.archive-library-grid .brand-tile:hover,
.archive-linked-product-grid .resource-card:hover,
.archive-linked-product-grid .entry-card:hover,
.archive-linked-product-grid .brand-tile:hover,
.archive-linked-product-grid .alkemist-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(9, 27, 39, 0.12);
}

.archive-library-grid .alkemist-product-card__media-shell,
.archive-linked-product-grid .alkemist-product-card__media-shell {
    border-radius: 18px;
}

.archive-library-grid .alkemist-product-card__title,
.archive-linked-product-grid .alkemist-product-card__title,
.archive-library-grid .resource-card h3,
.archive-linked-product-grid .resource-card h3 {
    font-size: 1.08rem;
    line-height: 1.32;
}

.archive-library-grid .alkemist-product-card__support,
.archive-linked-product-grid .alkemist-product-card__support,
.archive-library-grid .resource-card p,
.archive-linked-product-grid .resource-card p {
    color: #5f7280;
    line-height: 1.6;
}

.content-grid .sidebar-column .widget,
.content-grid .sidebar-column .sticky-card,
.content-grid .sidebar-column .card {
    border-radius: 22px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 38px rgba(9, 27, 39, 0.08);
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover {
    border-color: rgba(13, 68, 87, 0.28);
    background: #0b4b60;
    color: #ffffff;
}

body.alkemist-editor-session .dashboard-workspace-card:has(.frontend-record-browser--enquiries) {
    contain: none;
}

body.alkemist-editor-session .frontend-editor-shell--enquiries,
body.alkemist-editor-session .frontend-record-browser--enquiries {
    min-height: 0;
}

body.alkemist-editor-session .frontend-record-browser--enquiries {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    max-height: calc(100dvh - 72px);
    overflow: hidden;
    overscroll-behavior: contain;
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-browser-head {
    grid-row: 1;
    min-height: 0;
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-section-search {
    grid-row: 2;
    min-height: 0;
    margin: 0;
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-section-search__summary,
body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-section-search__empty {
    margin: 6px 0 0;
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-record-list {
    grid-row: 3;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    overscroll-behavior: contain;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(11, 75, 96, 0.42) rgba(232, 240, 239, 0.92);
    scrollbar-width: thin;
    touch-action: pan-y;
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-record-list::-webkit-scrollbar {
    width: 8px;
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-record-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(232, 240, 239, 0.92);
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-record-list::-webkit-scrollbar-thumb {
    border: 2px solid rgba(232, 240, 239, 0.92);
    border-radius: 999px;
    background: rgba(11, 75, 96, 0.46);
}

body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-record-item {
    contain: none;
    content-visibility: visible;
    contain-intrinsic-size: none;
}

@media (max-width: 1360px) {
    body.alkemist-editor-session .frontend-record-browser--enquiries {
        max-height: min(760px, calc(100dvh - 112px));
    }
}

@media (max-width: 768px) {
    body.alkemist-editor-session .frontend-record-browser--enquiries {
        max-height: calc(100dvh - 132px);
    }

    body.alkemist-editor-session .frontend-record-browser--enquiries .frontend-record-list {
        padding-right: 2px;
    }
}

@media (max-width: 430px) {
    body.alkemist-editor-session .frontend-record-browser--enquiries {
        max-height: calc(100dvh - 118px);
    }
}

@media (max-width: 780px) {
    .site-header {
        top: 8px;
        width: min(100% - 16px, 720px);
        margin-inline: auto;
        border-radius: 24px;
        overflow: visible;
    }

    .site-header .header-shell {
        overflow: visible;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(7, 25, 35, 0.96), rgba(8, 42, 55, 0.94)),
            linear-gradient(135deg, rgba(255, 178, 63, 0.13), rgba(22, 133, 111, 0.16));
        box-shadow: 0 18px 42px rgba(7, 18, 25, 0.28);
        backdrop-filter: blur(18px);
    }

    .mobile-header-upper {
        padding: 10px 12px;
    }

    .brand-lockup {
        gap: 9px;
    }

    .brand-mark .custom-logo {
        max-height: 34px;
    }

    .brand-mark span {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 0.7rem;
    }

    .site-title {
        font-size: 0.98rem;
    }

    .mobile-header-upper-actions {
        gap: 7px;
    }

    .mobile-header-icon-button,
    .menu-toggle {
        width: 36px;
        height: 36px;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-header-icon-button svg,
    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }

    .mobile-header-lower {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
    }

    .mobile-header-lower-inner {
        grid-auto-columns: minmax(44px, 1fr);
        gap: 7px;
        width: 100%;
        padding: 8px 10px;
    }

    .mobile-footer-nav__item {
        position: relative;
        min-height: 44px;
        align-content: center;
        gap: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        font-size: 0.68rem;
    }

    .mobile-header-lower .mobile-footer-nav__item > span:not(.mobile-footer-nav__icon) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .mobile-footer-nav__item:hover,
    .mobile-footer-nav__item:focus-visible {
        background: rgba(255, 178, 63, 0.16);
        color: #ffffff;
    }

    .mobile-footer-nav__icon {
        width: 21px;
        height: 21px;
    }

    .mobile-footer-nav__icon svg {
        width: 21px;
        height: 21px;
    }

    .site-nav {
        position: fixed;
        inset: 92px 10px 10px;
        z-index: 210;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 14px;
        overflow: auto;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(7, 25, 35, 0.98), rgba(9, 43, 58, 0.98));
        box-shadow: 0 28px 70px rgba(7, 18, 25, 0.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(18px) scale(0.98);
        transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.open {
        position: fixed;
        inset: 92px 10px 10px;
        z-index: 210;
        width: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: auto;
        padding: 14px;
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(7, 25, 35, 0.98), rgba(9, 43, 58, 0.98));
        box-shadow: 0 28px 70px rgba(7, 18, 25, 0.38);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .site-nav.open a {
        min-height: 48px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.07);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .site-nav.open a:hover,
    .site-nav.open a:focus-visible {
        background: rgba(255, 178, 63, 0.14);
    }

    .site-nav .menu,
    .site-nav ul {
        display: grid;
        gap: 8px;
        padding-top: 0;
    }

    .site-nav-extra {
        margin-top: 10px;
        padding-top: 10px;
    }

    .sidebar-column {
        gap: 10px;
        overflow: visible;
    }

    .sidebar-mobile-toggle {
        position: fixed;
        top: 50%;
        left: 0;
        z-index: 135;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        min-width: 34px;
        height: 58px;
        min-height: 58px;
        padding: 0;
        overflow: hidden;
        border-radius: 0 16px 16px 0;
        border: 1px solid rgba(13, 68, 87, 0.16);
        border-left: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 246, 0.96));
        color: var(--primary);
        box-shadow: 0 14px 32px rgba(9, 27, 39, 0.18);
        font-size: 0;
        line-height: 1;
        transform: translateY(-50%);
    }

    .sidebar-mobile-toggle::after {
        content: ">";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        border-radius: 999px;
        background: transparent;
        color: var(--secondary);
        font-size: 1.25rem;
        font-weight: 900;
        line-height: 1;
    }

    .sidebar-mobile-toggle[aria-expanded="true"]::after {
        content: "<";
        background: transparent;
        color: var(--primary);
    }

    .dashboard-mobile-strip {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .dashboard-mobile-copy {
        order: 2;
    }

    .dashboard-command-button {
        order: 3;
    }

    .dashboard-mobile-strip .sidebar-mobile-toggle {
        position: static;
        order: 1;
        top: auto;
        left: auto;
        z-index: auto;
        width: auto;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0 14px;
        overflow: visible;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 15px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
        color: #ffffff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 22px rgba(7, 18, 25, 0.2);
        font-size: 0.84rem;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1;
        transform: none;
        white-space: nowrap;
    }

    .dashboard-mobile-strip .sidebar-mobile-toggle::before {
        content: "";
        width: 16px;
        height: 16px;
        margin-right: 8px;
        border: 2px solid currentColor;
        border-radius: 4px;
        box-shadow: inset 5px 0 0 currentColor;
        opacity: 0.94;
    }

    .dashboard-mobile-strip .sidebar-mobile-toggle::after,
    .dashboard-mobile-strip .sidebar-mobile-toggle[aria-expanded="true"]::after {
        content: none;
    }

    .dashboard-mobile-strip .sidebar-mobile-toggle[aria-expanded="true"] {
        background: #ffffff;
        color: var(--primary);
        border-color: rgba(255, 255, 255, 0.72);
    }

    .js-ready .main-sidebar:not(.is-open),
    .js-ready .detail-sidebar:not(.is-open),
    .main-sidebar,
    .detail-sidebar {
        position: fixed;
        top: 104px;
        bottom: 14px;
        left: 8px;
        z-index: 134;
        display: grid;
        align-content: start;
        width: min(86vw, 350px);
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 118px);
        margin: 0;
        padding: 12px;
        overflow: auto;
        border: 1px solid rgba(216, 229, 227, 0.92);
        border-radius: 0 20px 20px 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 22px 0 54px rgba(7, 18, 25, 0.22);
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.24s ease;
        -webkit-overflow-scrolling: touch;
    }

    .main-sidebar.is-open,
    .detail-sidebar.is-open {
        position: fixed;
        display: grid;
        width: min(86vw, 350px);
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 118px);
        margin: 0;
        padding: 12px;
        overflow: auto;
        border: 1px solid rgba(216, 229, 227, 0.92);
        border-radius: 0 20px 20px 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 24px 0 64px rgba(7, 18, 25, 0.26);
        transform: none;
    }

    .main-sidebar.is-open > *,
    .detail-sidebar.is-open > * {
        width: 100%;
        min-width: 0;
    }

    body.search-open .site-header {
        z-index: 60;
    }

    body.search-open .sidebar-mobile-toggle {
        opacity: 0;
        pointer-events: none;
    }

    body.search-open .main-sidebar,
    body.search-open .detail-sidebar {
        pointer-events: none;
        transform: translateX(calc(-100% - 18px));
    }

    body.search-open .header-search-overlay {
        position: fixed;
        inset: 0;
        z-index: 220;
        display: grid;
        align-items: start;
        padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
    }

    .header-search-overlay__dialog {
        width: min(100%, 760px);
        max-height: calc(100dvh - 24px);
        margin: 0 auto;
        overflow: hidden;
        padding: 14px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(8, 23, 32, 0.98), rgba(12, 39, 53, 0.98));
        box-shadow: 0 28px 70px rgba(7, 18, 25, 0.34);
        -webkit-overflow-scrolling: touch;
    }

    .header-search-overlay__top {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .header-search-overlay__top h2 {
        margin: 0;
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.08;
    }

    .header-search-overlay__top p {
        display: none;
    }

    .header-search-overlay__close {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .header-search-wrap {
        padding-top: 12px;
    }

    .header-search-wrap,
    .header-search-row,
    .header-search-overlay .universal-search {
        min-width: 0;
        overflow: visible;
    }

    .header-search-overlay .universal-search {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08);
    }

    .header-search-overlay .universal-search input {
        height: 46px;
        min-height: 46px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.94rem;
        box-shadow: none;
    }

    .header-search-overlay .universal-search button {
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 13px;
        box-shadow: none;
        font-size: 0.84rem;
    }

    .header-search-overlay .search-suggestions {
        position: static;
        z-index: 2;
        grid-column: 1 / -1;
        max-height: min(62dvh, 560px);
        margin-top: 2px;
        overflow: auto;
        border-radius: 15px;
        border-color: rgba(216, 229, 227, 0.92);
        background: rgba(255, 255, 255, 0.99);
        box-shadow: 0 18px 38px rgba(7, 18, 25, 0.2);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .header-search-overlay .search-item {
        position: relative;
        padding: 10px 12px 10px 42px;
        min-height: 54px;
        border-bottom-color: rgba(229, 238, 236, 0.92);
        text-decoration: none;
    }

    .header-search-overlay .search-item::before {
        content: "";
        position: absolute;
        top: 14px;
        left: 12px;
        width: 18px;
        height: 18px;
        border-radius: 7px;
        background:
            linear-gradient(135deg, rgba(255, 178, 63, 0.92), rgba(22, 133, 111, 0.88));
        box-shadow: 0 6px 14px rgba(9, 27, 39, 0.12);
    }

    .header-search-overlay .search-item:hover,
    .header-search-overlay .search-item:focus-visible {
        background: rgba(239, 249, 246, 0.94);
    }

    .header-search-overlay .search-item-head {
        align-items: flex-start;
        gap: 5px;
        flex-direction: column;
    }

    .header-search-overlay .search-item-head strong,
    .header-search-overlay .search-item > strong {
        color: #0d2a37;
        font-size: 0.92rem;
        line-height: 1.22;
    }

    .header-search-overlay .search-item-head span {
        width: fit-content;
        padding: 3px 7px;
        border-radius: 999px;
        background: rgba(22, 133, 111, 0.1);
        color: var(--secondary);
        font-size: 0.62rem;
        line-height: 1;
    }

    .header-search-overlay .search-item small {
        margin-top: 3px;
        color: #607481;
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .header-search-overlay .search-item--status::before {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(22, 133, 111, 0.84));
    }

    .header-search-overlay .search-item-view-all {
        min-height: 48px;
        background: linear-gradient(180deg, rgba(239, 249, 246, 0.98), rgba(255, 255, 255, 0.98));
        font-weight: 800;
    }

    .social-share-panel.social-share-panel--compact-icons,
    .social-share-panel--compact-icons.detail-social-share {
        right: max(9px, calc(7px + env(safe-area-inset-right)));
        top: auto;
        bottom: calc(76px + env(safe-area-inset-bottom));
        transform: none;
    }

    .social-share-panel--compact-icons .social-share-panel__toggle {
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
    }

    .social-share-panel--compact-icons .social-share-button {
        width: 24px;
        min-width: 24px;
        height: 24px;
        min-height: 24px;
    }

    .detail-hero {
        margin-top: 12px;
        padding: 18px;
        border-radius: 20px;
    }

    .detail-hero-grid h1 {
        font-size: clamp(1.92rem, 10vw, 3rem);
        line-height: 1.04;
    }

    .detail-summary-card,
    .detail-content,
    .info-section {
        border-radius: 18px;
    }

    .detail-section-nav {
        top: 8px;
        margin-inline: 0;
        border-radius: 15px;
    }

    .detail-prose {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .detail-data-table th {
        width: auto;
    }

    .archive-hero {
        margin-top: 12px;
        padding: 18px;
        border-radius: 20px;
    }

    .archive-hero-grid h1 {
        font-size: clamp(1.95rem, 10vw, 3rem);
        line-height: 1.04;
    }

    .archive-summary-card--visual {
        padding: 14px;
        border-radius: 18px;
    }

    .archive-summary-visual {
        min-height: 112px;
        border-radius: 16px;
    }

    .content-grid {
        padding-top: 16px;
    }

    .archive-library-section {
        padding: 14px;
    }

    .archive-library-grid,
    .archive-linked-product-grid {
        gap: 14px;
    }

    .archive-library-grid .resource-card,
    .archive-library-grid .entry-card,
    .archive-library-grid .brand-tile,
    .archive-linked-product-grid .resource-card,
    .archive-linked-product-grid .entry-card,
    .archive-linked-product-grid .brand-tile,
    .archive-linked-product-grid .alkemist-product-card {
        border-radius: 18px;
    }
}

/*
 * Visitor heading color system.
 * Keeps headings professional, brighter, and easier to scan across public pages.
 */
:root {
    --visitor-heading-ink: #07344a;
    --visitor-heading-blue: #0f5b95;
    --visitor-heading-teal: #0b7d7b;
    --visitor-heading-green: #14856e;
    --visitor-heading-gold: #c98116;
    --visitor-heading-soft: rgba(15, 91, 149, 0.1);
    --visitor-heading-line: linear-gradient(90deg, #ffb23f 0%, #14856e 46%, #2563eb 100%);
    --visitor-heading-gradient: linear-gradient(90deg, #07344a 0%, #0f6f86 48%, #c98116 100%);
}

body:not(.alkemist-editor-session) .site-main :where(h1, h2, h3) {
    color: var(--visitor-heading-ink);
    letter-spacing: 0;
}

body:not(.alkemist-editor-session) .site-main :where(
    .page-hero h1,
    .archive-hero-grid h1,
    .detail-hero-grid h1,
    .directory-page-hero__heading h1,
    .product-detail-hero h1,
    .single-product .woocommerce div.product .product_title
) {
    color: var(--visitor-heading-ink);
    background: var(--visitor-heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

body:not(.alkemist-editor-session) .site-main :where(.slide-content h1, .hero-slider h1) {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

body:not(.alkemist-editor-session) .site-main :where(
    .section-heading h2,
    .cta-panel h2,
    .info-section-heading h2,
    .detail-summary-card h2,
    .detail-prose h2,
    .directory-page-section .info-section-heading h2,
    .single-product .woocommerce div.product .related.products > h2,
    .single-product .woocommerce div.product .upsells.products > h2,
    .alkemist-product-spec-section .info-section-heading h2
) {
    color: var(--visitor-heading-teal);
    text-wrap: balance;
}

body:not(.alkemist-editor-session) .site-main :where(
    .section-heading h2,
    .cta-panel h2,
    .info-section-heading h2,
    .detail-prose h2,
    .water-treatment-master__intro h2,
    .water-treatment-quote h2,
    .water-treatment-archive-panel h2,
    .specialty-system-core__intro h2,
    .specialty-system-quote h2,
    .specialty-system-archive-panel h2
)::after {
    content: "";
    display: block;
    width: min(74px, 32%);
    height: 4px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--visitor-heading-line);
    box-shadow: 0 7px 18px rgba(20, 133, 110, 0.18);
}

body:not(.alkemist-editor-session) .site-main :where(
    .resource-card h3,
    .brand-tile h3,
    .entry-card h3,
    .category-directory-card__copy h3,
    .directory-product-card h3,
    .water-treatment-program-card h3,
    .water-solution-home-card h3,
    .water-solution-home-panel h3,
    .water-solution-sidebar-widget h3,
    .gig-highlight-card h3,
    .gig-package-card__head h3,
    .woocommerce ul.products li.product .woocommerce-loop-product__title
) {
    color: var(--visitor-heading-blue);
    text-wrap: balance;
}

body:not(.alkemist-editor-session) .site-main :where(.detail-prose h3, .info-section h3) {
    position: relative;
    padding-left: 14px;
    color: var(--visitor-heading-blue);
}

body:not(.alkemist-editor-session) .site-main :where(.detail-prose h3, .info-section h3)::before {
    content: "";
    position: absolute;
    top: 0.22em;
    bottom: 0.18em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--visitor-heading-gold), var(--visitor-heading-teal));
}

body:not(.alkemist-editor-session) .site-main :where(
    .feature-card:hover h3,
    .brand-tile:hover h3,
    .entry-card:hover h3,
    .resource-card:hover h3,
    .directory-product-card:hover h3,
    .alkemist-product-card:hover h3,
    .woocommerce ul.products li.product:hover .woocommerce-loop-product__title
) {
    color: var(--visitor-heading-green);
}

body:not(.alkemist-editor-session) .site-main :where(
    .page-card,
    .archive-summary-card,
    .detail-summary-card,
    .info-section,
    .resource-card,
    .brand-tile,
    .entry-card,
    .directory-product-card,
    .alkemist-product-card
) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 252, 251, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.08), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.055), transparent 30%);
}

body:not(.alkemist-editor-session) .directory-page-shell--water-treatment :where(
    .directory-page-hero__heading h1,
    .archive-hero-grid h1
) {
    background: linear-gradient(90deg, #06384a 0%, #0a7c86 44%, #d08a1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:not(.alkemist-editor-session) .directory-page-shell--water-treatment :where(
    .directory-page-section .info-section-heading h2,
    .water-treatment-master__intro h2,
    .water-treatment-quote h2,
    .water-treatment-archive-panel h2
) {
    color: #08767c;
}

body:not(.alkemist-editor-session) .directory-page-shell--water-treatment :where(
    .water-treatment-program-card h3,
    .water-solution-home-card h3,
    .water-solution-home-panel h3,
    .water-solution-sidebar-widget h3
) {
    color: #0f5b95;
}

@media (max-width: 760px) {
    :root {
        --site-button-height: 42px;
    }

    .container {
        width: min(100% - 28px, 1240px);
    }

    body.home .home-section {
        padding-block: 28px;
    }

    body.home .home-section + .home-section {
        margin-top: 6px;
    }

    body.home .section-heading,
    body.home .section-heading-row {
        margin-bottom: 12px;
    }

    body.home .section-heading p {
        font-size: 0.78rem;
        line-height: 1.46;
    }

    body.home .card-grid.three,
    body.home .division-grid,
    body.home .product-card-grid,
    body.home .home-mini-card-grid {
        gap: 10px;
    }

    body.home .feature-card,
    body.home .brand-tile,
    body.home .entry-card,
    body.home .page-card,
    body.home .resource-card,
    body.home .alkemist-product-card {
        border-radius: 16px;
    }

    body.home .division-card,
    body.home .category-card {
        gap: 7px;
    }

    body.home .category-card__media {
        aspect-ratio: 16 / 8;
    }

    body.home .resource-card .card-thumb {
        max-height: 120px;
        margin-bottom: 0;
    }

    body.home .resource-card .card-body {
        gap: 6px;
        padding: 11px;
    }

    body.home .resource-card h3,
    body.home .brand-tile h3,
    body.home .category-card h3,
    body.home .division-card h3,
    body.home .alkemist-product-card__title {
        font-size: 0.82rem;
        line-height: 1.24;
    }

    body.home .resource-card .card-body > p,
    body.home .category-card p,
    body.home .division-card p,
    body.home .brand-tile > p,
    body.home .alkemist-product-card__support {
        -webkit-line-clamp: 2;
        font-size: 0.72rem;
        line-height: 1.4;
    }

    body.home .resource-card-signals {
        gap: 5px;
    }

    body.home .resource-card-signals .resource-card-signal:nth-child(n+2) {
        display: none;
    }

    body.home .term-row {
        margin-bottom: 0;
    }

    body.home .term-row .term-pill:nth-child(n+3) {
        display: none;
    }

    body.home .gig-card-meta span,
    body.home .term-pill,
    body.home .resource-card-signal {
        min-height: 25px;
        padding: 4px 7px;
        border-radius: 999px;
        font-size: 0.62rem;
    }

    body.home .alkemist-product-card__media {
        min-height: 118px;
        padding: 24px 10px 10px;
    }

    body.home .alkemist-product-card__badge {
        min-height: 26px;
        padding: 4px 8px;
        font-size: 0.62rem;
    }

    body.home .alkemist-product-card__content {
        gap: 6px;
        padding: 10px;
    }

    body.home .alkemist-product-card__availability,
    body.home .alkemist-product-card__meta-note {
        -webkit-line-clamp: 1;
    }

    body.home .compact-pictogram-strip span {
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    body.home .alkemist-product-card__actions,
    body.home .resource-card .portal-actions,
    body.home .brand-tile__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    body.home .alkemist-product-card__actions .btn,
    body.home .resource-card .portal-actions .btn,
    body.home .brand-tile__actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        padding: 7px 8px;
        font-size: 0.66rem;
    }

    body.home .division-card,
    body.home .category-card,
    body.home .brand-tile {
        padding: 13px;
    }

    body.home .category-card__media {
        margin: -13px -13px 2px;
    }

    body.home .card-type {
        font-size: 0.54rem;
    }

    .home-intent-advisor {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    .home-intent-advisor__shell {
        gap: 10px;
        padding: 11px;
        border-radius: 16px;
    }

    .home-intent-advisor__copy h2 {
        font-size: clamp(1.22rem, 6.4vw, 1.7rem);
    }

    .home-intent-advisor__copy p {
        font-size: 0.78rem;
        line-height: 1.46;
    }

    .home-intent-advisor__signals span {
        padding: 8px;
        font-size: 0.6rem;
    }

    .home-intent-advisor__signals strong {
        font-size: 0.9rem;
    }

    .home-intent-advisor__panel {
        padding: 9px;
        border-radius: 14px;
    }

    .home-intent-route {
        min-height: 0;
        padding: 9px;
    }

    .home-intent-route strong {
        font-size: 0.76rem;
        line-height: 1.24;
    }

    .home-intent-route small {
        font-size: 0.64rem;
        line-height: 1.38;
    }

    .btn,
    .universal-search button,
    .sidebar-search button {
        padding: 10px 13px;
        border-radius: 12px;
        font-size: 0.84rem;
        line-height: 1.24;
    }

    .hero-actions .btn,
    .archive-hero-actions .btn,
    .detail-hero-actions .btn,
    .portal-actions .btn,
    .home-intent-advisor__actions .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: min(100%, 126px);
        max-width: none;
    }

    .home-intent-advisor {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    .home-intent-advisor__shell {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 11px;
        border-radius: 16px;
    }

    .home-intent-advisor__copy {
        padding: 0;
    }

    .home-intent-advisor__copy h2 {
        font-size: clamp(1.22rem, 6.4vw, 1.7rem);
    }

    .home-intent-advisor__signals,
    .home-intent-advisor__routes {
        grid-template-columns: 1fr;
    }

    .home-intent-route {
        min-height: 0;
        padding: 9px;
    }

    .home-intent-route strong {
        padding-right: 0;
        font-size: 0.76rem;
    }

    .home-intent-route.is-suggested::after {
        position: static;
        justify-self: start;
        order: -1;
    }

    body:not(.alkemist-editor-session) .site-main :where(
        .section-heading h2,
        .cta-panel h2,
        .info-section-heading h2,
        .detail-prose h2
    )::after {
        width: 56px;
        height: 3px;
        margin-top: 7px;
    }

    body:not(.alkemist-editor-session) .site-main :where(.detail-prose h3, .info-section h3) {
        padding-left: 11px;
    }
}

@keyframes alkemist-share-strip-unfold {
    from {
        opacity: 0;
        transform: translateY(8px) scaleY(.72);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes alkemist-share-icon-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.65);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/*
 * Compact editor dashboard polish.
 * Gives the workspace more room while keeping navigation, tabs, and related links easy to scan.
 */
body.alkemist-editor-session {
    --editor-edge-gap: clamp(4px, 0.7vw, 10px);
    --editor-panel-radius: clamp(12px, 1vw, 18px);
    --editor-control-height: 34px;
    --editor-compact-shadow: 0 10px 24px rgba(9, 27, 39, 0.07);
    font-size: 0.92rem;
}

body.alkemist-editor-session .dashboard-shell {
    gap: 8px;
    padding-top: var(--editor-edge-gap);
}

body.alkemist-editor-session .dashboard-app {
    grid-template-columns: minmax(236px, 292px) minmax(0, 1fr);
    gap: 10px;
    min-height: calc(100dvh - (var(--editor-edge-gap) * 2));
    max-height: calc(100dvh - (var(--editor-edge-gap) * 2));
}

body.alkemist-editor-session .dashboard-sidebar,
body.alkemist-editor-session .dashboard-sidebar-inner {
    max-height: calc(100dvh - (var(--editor-edge-gap) * 2));
}

body.alkemist-editor-session .dashboard-sidebar-inner {
    gap: 8px;
    padding-right: 4px;
}

body.alkemist-editor-session .dashboard-user-card,
body.alkemist-editor-session .dashboard-sidebar-tools,
body.alkemist-editor-session .dashboard-nav-group {
    gap: 7px;
}

body.alkemist-editor-session .dashboard-user-card {
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--editor-compact-shadow);
}

body.alkemist-editor-session .dashboard-user-copy {
    gap: 6px;
}

body.alkemist-editor-session .dashboard-user-copy .eyebrow,
body.alkemist-editor-session .dashboard-role-chiplist,
body.alkemist-editor-session .dashboard-user-copy p {
    display: none;
}

body.alkemist-editor-session .dashboard-panel-label,
body.alkemist-editor-session .dashboard-section-label,
body.alkemist-editor-session .dashboard-nav-label,
body.alkemist-editor-session .dashboard-workspace-finder span {
    padding-left: 6px;
    font-size: 0.6rem;
    letter-spacing: 0.09em;
}

body.alkemist-editor-session .dashboard-user-copy h2 {
    font-size: 0.98rem;
    line-height: 1.15;
}

body.alkemist-editor-session .dashboard-user-email {
    font-size: 0.68rem;
    line-height: 1.3;
}

body.alkemist-editor-session .dashboard-role-pill,
body.alkemist-editor-session .frontend-user-role-badge {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.62rem;
}

body.alkemist-editor-session .dashboard-workspace-finder input {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 11px;
    font-size: 0.78rem;
}

body.alkemist-editor-session .dashboard-sidebar-highlights {
    gap: 5px;
}

body.alkemist-editor-session .dashboard-sidebar-highlights span {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    line-height: 1.25;
}

body.alkemist-editor-session .dashboard-sidebar-highlights span:nth-child(2) {
    display: none;
}

body.alkemist-editor-session .dashboard-nav-list {
    gap: 6px;
}

body.alkemist-editor-session .dashboard-nav-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 12px;
    box-shadow: 0 7px 16px rgba(9, 27, 39, 0.045);
}

body.alkemist-editor-session .dashboard-nav-item:hover,
body.alkemist-editor-session .dashboard-nav-item.is-active {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(9, 27, 39, 0.08);
}

body.alkemist-editor-session .dashboard-nav-item.is-active::before {
    inset: 8px auto 8px 0;
    width: 3px;
}

body.alkemist-editor-session .dashboard-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

body.alkemist-editor-session .dashboard-nav-icon svg,
body.alkemist-editor-session .dashboard-active-icon svg,
body.alkemist-editor-session .dashboard-head-icon svg,
body.alkemist-editor-session .dashboard-command-icon svg,
body.alkemist-editor-session .dashboard-workspace-tab__icon svg,
body.alkemist-editor-session .dashboard-workspace-tabbar__icon svg {
    width: 15px;
    height: 15px;
}

body.alkemist-editor-session .dashboard-nav-copy {
    gap: 1px;
}

body.alkemist-editor-session .dashboard-nav-copy strong {
    font-size: 0.76rem;
    line-height: 1.15;
}

body.alkemist-editor-session .dashboard-nav-copy small {
    font-size: 0.64rem;
    line-height: 1.28;
    -webkit-line-clamp: 1;
}

body.alkemist-editor-session .dashboard-nav-item.is-active .dashboard-nav-copy strong::after {
    min-height: 16px;
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 0.52rem;
}

body.alkemist-editor-session .dashboard-nav-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 0.64rem;
}

body.alkemist-editor-session .dashboard-workspace-card {
    min-height: calc(100dvh - (var(--editor-edge-gap) * 2));
    height: calc(100dvh - (var(--editor-edge-gap) * 2));
    border-radius: var(--editor-panel-radius);
    box-shadow: var(--editor-compact-shadow);
}

body.alkemist-editor-session .dashboard-workspace-head {
    grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
    gap: 10px;
    padding: 9px 12px;
    border-bottom-color: rgba(216, 229, 227, 0.9);
}

body.alkemist-editor-session .dashboard-workspace-head > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.alkemist-editor-session .dashboard-workspace-head h2 {
    gap: 7px;
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.42rem);
    line-height: 1.12;
}

body.alkemist-editor-session .dashboard-head-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(13, 68, 87, 0.13);
}

body.alkemist-editor-session .dashboard-workspace-head p {
    display: -webkit-box;
    max-width: 880px;
    overflow: hidden;
    color: #607381;
    font-size: 0.72rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

body.alkemist-editor-session .dashboard-head-tools {
    gap: 6px;
    align-items: start;
}

body.alkemist-editor-session .dashboard-head-tools .portal-actions,
body.alkemist-editor-session .dashboard-workspace-head .portal-actions,
body.alkemist-editor-session .frontend-browser-head .portal-actions {
    gap: 5px;
}

body.alkemist-editor-session .btn,
body.alkemist-editor-session a.btn,
body.alkemist-editor-session button.btn,
body.alkemist-editor-session .portal-actions .btn,
body.alkemist-editor-session .dashboard-command-action,
body.alkemist-editor-session .dashboard-command-button,
body.alkemist-editor-session .frontend-gallery-field__action,
body.alkemist-editor-session .frontend-editor-smartlink {
    min-height: var(--editor-control-height);
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.15;
}

body.alkemist-editor-session .dashboard-workspace-head .portal-actions .btn,
body.alkemist-editor-session .frontend-browser-head .portal-actions .btn,
body.alkemist-editor-session .frontend-submit-row .btn,
body.alkemist-editor-session .frontend-submit-row a.btn,
body.alkemist-editor-session .frontend-submit-row button.btn {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 172px;
}

body.alkemist-editor-session .dashboard-command-icon {
    width: 15px;
    height: 15px;
}

body.alkemist-editor-session .dashboard-workspace-tabbar {
    gap: 7px;
    padding: 6px;
    border-radius: 13px;
    box-shadow: 0 8px 16px rgba(9, 27, 39, 0.045);
}

body.alkemist-editor-session .dashboard-workspace-tabbar__active {
    max-width: 178px;
    padding: 6px 8px;
    border-radius: 11px;
}

body.alkemist-editor-session .dashboard-workspace-tabbar__active small {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
}

body.alkemist-editor-session .dashboard-workspace-tabbar__active strong {
    font-size: 0.72rem;
    line-height: 1.15;
}

body.alkemist-editor-session .dashboard-workspace-tabbar__icon,
body.alkemist-editor-session .dashboard-workspace-tab__icon {
    width: 15px;
    height: 15px;
}

body.alkemist-editor-session .dashboard-workspace-tabbar__links {
    gap: 5px;
    padding-bottom: 0;
    scrollbar-width: none;
}

body.alkemist-editor-session .dashboard-workspace-tabbar__links::-webkit-scrollbar {
    display: none;
}

body.alkemist-editor-session .dashboard-workspace-tab {
    min-height: 30px;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    box-shadow: none;
}

body.alkemist-editor-session .dashboard-workspace-tab.is-active {
    background: #fff6df;
    box-shadow: inset 0 0 0 1px rgba(255, 183, 3, 0.34);
}

body.alkemist-editor-session .dashboard-workspace-body {
    gap: 10px;
    padding: 10px 12px 12px;
}

body.alkemist-editor-session .portal-card,
body.alkemist-editor-session .frontend-editor-card,
body.alkemist-editor-session .frontend-record-browser,
body.alkemist-editor-session .frontend-field-section,
body.alkemist-editor-session .frontend-resource-group {
    padding: 12px;
    border-radius: 14px;
}

body.alkemist-editor-session .compact-heading {
    gap: 4px;
}

body.alkemist-editor-session .compact-heading span,
body.alkemist-editor-session .section-heading > span,
body.alkemist-editor-session .card-type {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

body.alkemist-editor-session .compact-heading h3,
body.alkemist-editor-session .section-heading h2,
body.alkemist-editor-session .portal-card h2,
body.alkemist-editor-session .portal-card h3,
body.alkemist-editor-session .frontend-browser-head h3 {
    font-size: clamp(0.94rem, 1.15vw, 1.18rem);
    line-height: 1.18;
}

body.alkemist-editor-session .section-heading,
body.alkemist-editor-session .section-heading-row,
body.alkemist-editor-session .frontend-browser-head,
body.alkemist-editor-session .frontend-editor-card .frontend-browser-head,
body.alkemist-editor-session .frontend-record-browser .frontend-browser-head {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

body.alkemist-editor-session .section-heading p,
body.alkemist-editor-session .portal-card p,
body.alkemist-editor-session .frontend-browser-head p,
body.alkemist-editor-session .dashboard-overview-welcome p,
body.alkemist-editor-session .dashboard-overview-links p {
    font-size: 0.78rem;
    line-height: 1.48;
}

body.alkemist-editor-session .dashboard-overview,
body.alkemist-editor-session .dashboard-overview-grid,
body.alkemist-editor-session .dashboard-record-grid,
body.alkemist-editor-session .portal-grid,
body.alkemist-editor-session .dashboard-stats-grid {
    gap: 10px;
}

body.alkemist-editor-session .dashboard-quick-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 146px), 1fr));
    gap: 8px;
}

body.alkemist-editor-session .dashboard-quick-link {
    min-height: 54px;
    gap: 3px;
    padding: 8px 9px;
    border-radius: 12px;
    box-shadow: 0 7px 15px rgba(9, 27, 39, 0.045);
}

body.alkemist-editor-session .dashboard-quick-link strong {
    font-size: 0.78rem;
    line-height: 1.22;
}

body.alkemist-editor-session .dashboard-quick-link span {
    font-size: 0.64rem;
    line-height: 1.25;
}

body.alkemist-editor-session .dashboard-overview-points {
    gap: 7px;
}

body.alkemist-editor-session .dashboard-overview-points span,
body.alkemist-editor-session .mini-card,
body.alkemist-editor-session .dashboard-stat-card {
    padding: 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.4;
}

body.alkemist-editor-session .frontend-editor-form input[type="text"],
body.alkemist-editor-session .frontend-editor-form input[type="email"],
body.alkemist-editor-session .frontend-editor-form input[type="tel"],
body.alkemist-editor-session .frontend-editor-form input[type="url"],
body.alkemist-editor-session .frontend-editor-form input[type="search"],
body.alkemist-editor-session .frontend-editor-form input[type="number"],
body.alkemist-editor-session .frontend-editor-form input[type="date"],
body.alkemist-editor-session .frontend-editor-form input[type="datetime-local"],
body.alkemist-editor-session .frontend-editor-form select,
body.alkemist-editor-session .chemical-autofill-form input,
body.alkemist-editor-session .chemical-autofill-form select,
body.alkemist-editor-session .internal-records-controls input[type="search"],
body.alkemist-editor-session .internal-records-controls select {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
}

body.alkemist-editor-session .frontend-editor-form textarea {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
}

@media (min-width: 1440px) {
    body.alkemist-editor-session .dashboard-app {
        grid-template-columns: minmax(244px, 304px) minmax(0, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    body.alkemist-editor-session .dashboard-app {
        grid-template-columns: minmax(220px, 254px) minmax(0, 1fr);
    }

    body.alkemist-editor-session .dashboard-workspace-head {
        grid-template-columns: 1fr;
    }

    body.alkemist-editor-session .dashboard-head-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body.alkemist-editor-session {
        --editor-edge-gap: 5px;
        --editor-control-height: 38px;
        font-size: 0.9rem;
    }

    body.alkemist-editor-session .dashboard-shell {
        gap: 6px;
        padding-top: 5px;
    }

    body.alkemist-editor-session .dashboard-mobile-strip {
        min-height: 46px;
        padding: 7px;
        border-radius: 14px;
    }

    body.alkemist-editor-session .dashboard-mobile-copy span {
        font-size: 0.58rem;
    }

    body.alkemist-editor-session .dashboard-mobile-copy strong {
        font-size: 0.82rem;
    }

    body.alkemist-editor-session .dashboard-mobile-chip {
        min-height: 34px;
        max-width: min(72vw, 190px);
        padding: 7px 9px;
        border-radius: 12px;
        font-size: 0.72rem;
    }

    body.alkemist-editor-session .dashboard-app,
    body.alkemist-editor-session .dashboard-workspace-card {
        min-height: calc(100dvh - 58px);
        max-height: calc(100dvh - 58px);
    }

    body.alkemist-editor-session .dashboard-workspace-card {
        height: calc(100dvh - 58px);
    }

    body.alkemist-editor-session .dashboard-workspace-head {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    body.alkemist-editor-session .dashboard-workspace-head h2 {
        font-size: 1rem;
    }

    body.alkemist-editor-session .dashboard-workspace-head p {
        display: none;
    }

    body.alkemist-editor-session .dashboard-head-icon {
        width: 28px;
        height: 28px;
    }

    body.alkemist-editor-session .dashboard-head-tools {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    body.alkemist-editor-session .dashboard-workspace-head .portal-actions,
    body.alkemist-editor-session .frontend-browser-head .portal-actions,
    body.alkemist-editor-session .frontend-submit-row {
        gap: 6px;
    }

    body.alkemist-editor-session .dashboard-workspace-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-browser-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-submit-row .btn,
    body.alkemist-editor-session .frontend-submit-row a.btn,
    body.alkemist-editor-session .frontend-submit-row button.btn {
        flex: 1 1 calc(50% - 6px);
        max-width: none;
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.72rem;
    }

    body.alkemist-editor-session .dashboard-workspace-tabbar {
        margin-right: -2px;
        margin-left: -2px;
        padding: 5px;
    }

    body.alkemist-editor-session .dashboard-workspace-tabbar__active {
        display: none;
    }

    body.alkemist-editor-session .dashboard-workspace-tab {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 0.66rem;
        scroll-snap-align: start;
    }

    body.alkemist-editor-session .dashboard-workspace-tabbar__links {
        scroll-snap-type: x proximity;
    }

    body.alkemist-editor-session .dashboard-workspace-body {
        gap: 8px;
        padding: 8px;
    }

    body.alkemist-editor-session .portal-card,
    body.alkemist-editor-session .frontend-editor-card,
    body.alkemist-editor-session .frontend-record-browser,
    body.alkemist-editor-session .frontend-field-section,
    body.alkemist-editor-session .frontend-resource-group {
        padding: 10px;
        border-radius: 12px;
    }
}

@media (max-width: 430px) {
    body.alkemist-editor-session .dashboard-workspace-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-browser-head .portal-actions .btn,
    body.alkemist-editor-session .frontend-submit-row .btn,
    body.alkemist-editor-session .frontend-submit-row a.btn,
    body.alkemist-editor-session .frontend-submit-row button.btn {
        flex-basis: calc(50% - 5px);
        min-height: 36px;
        padding: 6px 7px;
        border-radius: 9px;
        font-size: 0.68rem;
    }
}

@media (max-width: 760px) {
    body:not(.alkemist-editor-session) .site-main :where(
        .product-card-grid,
        .card-grid.three,
        .archive-library-grid,
        .archive-linked-product-grid
    ),
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body:not(.alkemist-editor-session) .site-main :where(
        .product-card-grid,
        .card-grid.three,
        .archive-library-grid,
        .archive-linked-product-grid
    ) > * {
        min-width: 0;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card {
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(9, 27, 39, 0.07);
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 26px rgba(9, 27, 39, 0.1);
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__media-shell {
        padding-top: 0;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__media {
        min-height: 116px !important;
        aspect-ratio: 1 / 0.92;
        padding: 24px 8px 8px !important;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__media img {
        object-fit: contain;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__placeholder {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 1.45rem;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__badge {
        top: 7px;
        left: 7px;
        gap: 6px;
        max-width: calc(100% - 14px);
        min-height: 25px;
        padding: 4px 8px;
        font-size: 0.58rem;
        line-height: 1;
        box-shadow: 0 8px 16px rgba(8, 23, 32, 0.1);
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__badge-dot {
        width: 6px;
        height: 6px;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__content {
        gap: 6px !important;
        padding: 10px !important;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__title {
        -webkit-line-clamp: 2;
        min-height: 2.44em;
        font-size: 0.8rem !important;
        line-height: 1.22 !important;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__availability {
        align-self: stretch;
        min-height: 28px;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 0.63rem !important;
        line-height: 1.2;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__support {
        -webkit-line-clamp: 2;
        font-size: 0.66rem !important;
        line-height: 1.34 !important;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card-signals,
    body:not(.alkemist-editor-session) .site-main .compact-pictogram-strip {
        display: none;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__meta-row {
        gap: 4px;
        min-height: 0;
        padding-top: 0;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__price,
    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__meta-note,
    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__rating {
        font-size: 0.68rem !important;
        line-height: 1.25;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__meta-note {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__rating {
        gap: 4px;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px !important;
        margin-top: auto;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card .alkemist-product-card__detail-button {
        display: none;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).woocommerce ul.products li.product .alkemist-product-card__quote-button {
        width: 100%;
        min-height: 34px !important;
        padding: 7px 8px !important;
        border-radius: 11px !important;
        font-size: 0.72rem !important;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) {
        padding: 0;
        border-radius: 14px;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .card-thumb {
        max-height: 112px;
        aspect-ratio: 1 / 0.82;
        margin: 0;
        border-radius: 14px 14px 0 0;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .card-body {
        gap: 6px;
        padding: 10px;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) h3 {
        min-height: 2.44em;
        margin: 0;
        font-size: 0.8rem !important;
        line-height: 1.22;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .card-body > p,
    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .meta-list,
    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .term-row {
        display: none;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .portal-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: auto;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .portal-actions .btn:first-child {
        display: none;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card:not(.alkemist-product-card) .portal-actions .btn {
        width: 100%;
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 11px;
        font-size: 0.72rem;
    }
}

/*
 * Compact public archive and directory hero.
 * Keeps the first viewport focused on navigation, stats, and quick product access.
 */
body:not(.alkemist-editor-session) .archive-hero {
    margin-top: clamp(8px, 1.2vw, 16px);
    padding: clamp(14px, 1.8vw, 22px);
    border-radius: 22px;
}

body:not(.alkemist-editor-session) .archive-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(12px, 1.8vw, 18px);
    align-items: start;
}

body:not(.alkemist-editor-session) .archive-hero-grid > div:first-child {
    gap: 9px;
}

body:not(.alkemist-editor-session) .archive-hero .eyebrow,
body:not(.alkemist-editor-session) .directory-page-hero .eyebrow {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.66rem;
    letter-spacing: 0;
}

body:not(.alkemist-editor-session) .archive-hero-grid h1 {
    margin: 0;
    font-size: 2.45rem;
    line-height: 1.02;
}

body:not(.alkemist-editor-session) .archive-hero .archive-description {
    display: -webkit-box;
    max-width: 760px;
    overflow: hidden;
    color: #415865;
    font-size: 0.95rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body:not(.alkemist-editor-session) .archive-hero-actions,
body:not(.alkemist-editor-session) .detail-hero-actions {
    margin-top: 4px;
}

body:not(.alkemist-editor-session) .archive-summary-card {
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
}

body:not(.alkemist-editor-session) .archive-summary-card--visual,
body:not(.alkemist-editor-session) .archive-summary-card--compact {
    gap: 8px;
}

body:not(.alkemist-editor-session) .archive-summary-visual {
    min-height: 58px;
    max-height: 76px;
    border-radius: 15px;
}

body:not(.alkemist-editor-session) .archive-summary-visual span {
    font-size: 1.7rem;
}

body:not(.alkemist-editor-session) .archive-summary-badge {
    width: fit-content;
    min-height: 27px;
    padding: 5px 9px;
    font-size: 0.6rem;
    letter-spacing: 0;
    line-height: 1;
}

body:not(.alkemist-editor-session) .archive-summary-card__title,
body:not(.alkemist-editor-session) .archive-summary-card h2 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.2;
}

body:not(.alkemist-editor-session) .archive-summary-card .summary-list {
    gap: 7px;
}

body:not(.alkemist-editor-session) .archive-summary-card .summary-list--compact,
body:not(.alkemist-editor-session) .archive-summary-card .summary-list:not(.summary-list--compact) {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

body:not(.alkemist-editor-session) .archive-summary-card .summary-list--compact::-webkit-scrollbar,
body:not(.alkemist-editor-session) .archive-summary-card .summary-list:not(.summary-list--compact)::-webkit-scrollbar {
    display: none;
}

body:not(.alkemist-editor-session) .archive-summary-card .summary-list div,
body:not(.alkemist-editor-session) .archive-summary-card .summary-list--compact div {
    flex: 0 0 104px;
    min-height: 48px;
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    scroll-snap-align: start;
}

body:not(.alkemist-editor-session) .archive-summary-card .summary-list strong {
    font-size: 0.95rem;
    line-height: 1.08;
}

body:not(.alkemist-editor-session) .archive-summary-card .summary-list span {
    font-size: 0.66rem;
    line-height: 1.28;
}

.archive-smart-access {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-top: 2px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(13, 68, 87, 0.12);
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.94)),
        radial-gradient(circle at 100% 0, rgba(255, 178, 63, 0.12), transparent 36%);
    box-shadow: 0 12px 26px rgba(9, 27, 39, 0.06);
}

.archive-smart-access__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.archive-smart-access__head span {
    color: var(--secondary);
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.archive-smart-access__head strong {
    min-width: 0;
    overflow: hidden;
    color: #0d2a37;
    font-size: 0.78rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-smart-access__viewport {
    position: relative;
    min-height: 116px;
}

.archive-smart-access__item {
    display: none;
    grid-template-areas:
        "media copy"
        "actions actions";
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.archive-smart-access__item.is-active {
    display: grid;
    animation: alkemist-archive-product-fade 0.24s ease both;
}

.archive-smart-access__media {
    grid-area: media;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 13px;
    background: #ffffff;
}

.archive-smart-access__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.archive-smart-access__media span {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 900;
}

.archive-smart-access__copy {
    grid-area: copy;
    display: grid;
    gap: 3px;
    min-width: 0;
}

.archive-smart-access__copy small {
    color: #0b7665;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.archive-smart-access__copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0d2a37;
    font-size: 0.78rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.archive-smart-access__copy strong a {
    color: inherit;
    text-decoration: none;
}

.archive-smart-access__copy span {
    display: -webkit-box;
    overflow: hidden;
    color: #607481;
    font-size: 0.66rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.archive-smart-access__actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.archive-smart-access__actions .btn,
body:not(.alkemist-editor-session) .archive-smart-access__actions .btn {
    width: 100%;
    min-height: 31px;
    padding: 6px 8px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.66rem;
    line-height: 1.15;
}

.archive-smart-access__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.archive-smart-access__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(13, 68, 87, 0.2);
    cursor: pointer;
}

.archive-smart-access__dots button.is-active {
    width: 18px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

body:not(.alkemist-editor-session) .directory-page-hero {
    padding: 8px 0 12px;
}

body:not(.alkemist-editor-session) .directory-page-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(12px, 1.8vw, 18px);
    align-items: start;
}

body:not(.alkemist-editor-session) .directory-page-hero__copy {
    gap: 10px;
    padding: clamp(14px, 1.8vw, 20px);
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 247, 0.94)),
        radial-gradient(circle at 100% 0, rgba(255, 178, 63, 0.12), transparent 34%);
    box-shadow: 0 18px 42px rgba(9, 27, 39, 0.09);
}

body:not(.alkemist-editor-session) .directory-page-hero__heading {
    gap: 7px;
}

body:not(.alkemist-editor-session) .directory-page-hero__heading h1 {
    font-size: 2.35rem;
    line-height: 1.02;
}

body:not(.alkemist-editor-session) .directory-page-hero__summary {
    display: -webkit-box;
    max-width: 760px;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.56;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body:not(.alkemist-editor-session) .directory-page-hero__meta {
    gap: 6px;
}

body:not(.alkemist-editor-session) .directory-page-chip {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.62rem;
    letter-spacing: 0;
    line-height: 1.15;
}

body:not(.alkemist-editor-session) .directory-page-hero__visual {
    min-height: 168px;
    border-radius: 20px;
}

.directory-page-hero__smart {
    min-width: 0;
}

.directory-page-hero__smart .archive-smart-access {
    min-height: 100%;
}

@media (max-width: 780px) {
    body:not(.alkemist-editor-session) .archive-hero {
        margin-top: 8px;
        padding: 11px;
        border-radius: 18px;
    }

    body:not(.alkemist-editor-session) .archive-hero-grid,
    body:not(.alkemist-editor-session) .directory-page-hero__grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    body:not(.alkemist-editor-session) .archive-hero-grid h1,
    body:not(.alkemist-editor-session) .directory-page-hero__heading h1 {
        font-size: 1.72rem;
        line-height: 1.04;
    }

    body:not(.alkemist-editor-session) .archive-hero .archive-description,
    body:not(.alkemist-editor-session) .directory-page-hero__summary {
        font-size: 0.82rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    body:not(.alkemist-editor-session) .archive-summary-card {
        padding: 9px;
        border-radius: 15px;
    }

    body:not(.alkemist-editor-session) .archive-summary-visual {
        display: none;
    }

    body:not(.alkemist-editor-session) .archive-summary-card .summary-list div,
    body:not(.alkemist-editor-session) .archive-summary-card .summary-list--compact div {
        flex: 0 0 104px;
        min-height: 47px;
        padding: 7px;
    }

    body:not(.alkemist-editor-session) .archive-summary-card .summary-list strong {
        font-size: 0.86rem;
    }

    body:not(.alkemist-editor-session) .archive-summary-card .summary-list span {
        font-size: 0.6rem;
    }

    .archive-smart-access {
        gap: 7px;
        padding: 8px;
        border-radius: 13px;
    }

    .archive-smart-access__viewport {
        min-height: 96px;
    }

    .archive-smart-access__item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 7px;
    }

    .archive-smart-access__media {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .archive-smart-access__copy strong {
        font-size: 0.72rem;
    }

    .archive-smart-access__copy span {
        display: none;
    }

    .archive-smart-access__actions .btn,
    body:not(.alkemist-editor-session) .archive-smart-access__actions .btn {
        min-height: 30px;
        padding: 6px 7px;
        font-size: 0.64rem;
    }

    body:not(.alkemist-editor-session) .directory-page-hero {
        padding: 6px 0 10px;
    }

    body:not(.alkemist-editor-session) .directory-page-hero__copy {
        gap: 8px;
        padding: 11px;
        border-radius: 16px;
    }

    body:not(.alkemist-editor-session) .directory-page-hero__meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body:not(.alkemist-editor-session) .directory-page-hero__meta::-webkit-scrollbar {
        display: none;
    }

    body:not(.alkemist-editor-session) .directory-page-chip {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 5px 8px;
        font-size: 0.58rem;
    }
}

@keyframes alkemist-archive-product-fade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .archive-smart-access__item.is-active {
        animation: none;
    }
}

/*
 * Client chat system.
 * Keeps resource-linked conversations visible on single pages, in the client
 * dashboard, and inside the staff workspace.
 */
.client-chat-panel,
.client-chat-dashboard,
.staff-chat-workspace {
    display: grid;
    gap: 14px;
}

.client-chat-layout {
    align-items: start;
}

.client-chat-records,
.client-chat-detail,
.client-chat-thread,
.client-chat-start-form,
.client-chat-reference,
.client-chat-login-card {
    min-width: 0;
}

.client-chat-reference {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.94));
}

.client-chat-reference strong {
    color: #0d2a37;
    font-size: 0.95rem;
    line-height: 1.24;
}

.client-chat-reference a {
    width: fit-content;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.client-chat-bid-summary {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 178, 63, 0.28);
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(248, 251, 251, 0.95));
    box-shadow: 0 10px 22px rgba(255, 178, 63, 0.08);
}

.client-chat-bid-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
    gap: 8px;
}

.client-chat-bid-summary__grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(216, 229, 227, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.client-chat-bid-summary__grid strong {
    color: #7a4a00;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-chat-bid-summary__grid span,
.client-chat-bid-summary p {
    margin: 0;
    color: #16313e;
    font-size: 0.78rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.client-chat-messages {
    display: grid;
    gap: 9px;
    max-height: min(520px, 54dvh);
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.9);
    border-radius: 15px;
    background: rgba(244, 249, 248, 0.72);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.client-chat-message {
    display: grid;
    gap: 5px;
    width: min(86%, 680px);
    padding: 10px 12px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.05);
}

.client-chat-message--staff {
    justify-self: start;
    border-left: 4px solid rgba(22, 133, 111, 0.62);
}

.client-chat-message--client {
    justify-self: end;
    border-right: 4px solid rgba(37, 99, 235, 0.5);
}

.client-chat-message__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #667783;
    font-size: 0.68rem;
}

.client-chat-message__meta strong {
    color: #0b4b60;
    font-size: 0.74rem;
}

.client-chat-message p {
    margin: 0;
    color: #213846;
    font-size: 0.86rem;
    line-height: 1.52;
    white-space: pre-wrap;
}

.client-chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.client-chat-attachment {
    display: inline-flex;
    max-width: 100%;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(13, 68, 87, 0.12);
    border-radius: 999px;
    background: rgba(239, 248, 255, 0.92);
    color: #0f5b95;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.client-chat-attachment span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-chat-attachment small {
    flex: 0 0 auto;
    color: #667783;
    font-size: 0.64rem;
}

.client-chat-search {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 14px;
    background: rgba(248, 251, 251, 0.86);
}

.client-chat-search .frontend-submit-row {
    margin: 0;
}

.client-chat-record-count {
    color: #667783;
    font-size: 0.72rem;
    font-weight: 800;
}

.client-chat-lab-summary {
    border-color: rgba(37, 99, 235, 0.2);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(22, 133, 111, 0.08), transparent 34%);
}

.client-chat-lab-summary .client-chat-bid-summary__grid strong {
    color: #0f5b95;
}

.client-chat-reply-form,
.client-chat-start-form {
    display: grid;
    gap: 10px;
}

.client-chat-start-form--dashboard {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(22, 133, 111, 0.14);
    border-radius: 14px;
    background: rgba(239, 249, 246, 0.74);
}

.client-chat-delete-button {
    color: #b42318;
}

.client-submit-actions--activity {
    align-items: flex-start;
}

.client-submit-actions .client-submit-actions__note + .client-dashboard-cta {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .client-chat-panel,
    .client-chat-dashboard,
    .staff-chat-workspace {
        gap: 10px;
    }

    .client-chat-messages {
        max-height: 48dvh;
        padding: 8px;
        border-radius: 13px;
    }

    .client-chat-message {
        width: min(94%, 100%);
        padding: 9px 10px;
        border-radius: 12px;
    }

    .client-chat-reference,
    .client-chat-start-form--dashboard {
        padding: 9px;
        border-radius: 12px;
    }
}

/*
 * Standalone live chat shortcode app.
 * Used by [alkemist_chat_app] for visitor lab chat and staff chat records.
 */
.alkemist-chat-app {
    position: relative;
    display: grid;
    gap: 16px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px) 0;
}

.alkemist-chat-app__anchor {
    position: absolute;
    top: -112px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alkemist-chat-app__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: clamp(18px, 2.6vw, 30px);
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 247, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.14), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.08), transparent 30%);
    box-shadow: 0 24px 58px rgba(9, 27, 39, 0.11);
}

.alkemist-chat-app__hero h2 {
    margin: 8px 0 8px;
    color: #07344a;
    font-size: clamp(1.85rem, 4vw, 3.45rem);
    line-height: 1.02;
    text-wrap: balance;
}

.alkemist-chat-app__hero p {
    max-width: 720px;
    margin: 0;
    color: #536a76;
    font-size: 0.98rem;
    line-height: 1.62;
}

.alkemist-chat-app__signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.alkemist-chat-app__signals span {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 82px;
    align-content: center;
    padding: 11px;
    border: 1px solid rgba(13, 68, 87, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    color: #667783;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
}

.alkemist-chat-app__signals strong {
    color: #0b4b60;
    font-size: 1rem;
    line-height: 1.1;
}

.alkemist-chat-app__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.alkemist-chat-app__intake,
.alkemist-chat-app__side,
.alkemist-chat-app__thread {
    min-width: 0;
    border-radius: 20px;
}

.alkemist-chat-app__form {
    display: grid;
    gap: 12px;
}

.alkemist-chat-app__fields {
    gap: 11px;
}

.alkemist-chat-app__fields label {
    min-width: 0;
}

.alkemist-chat-app__fields .is-wide {
    grid-column: 1 / -1;
}

.alkemist-chat-app__fields textarea {
    min-height: 142px;
    resize: vertical;
}

.alkemist-chat-app__fields input[type="file"] {
    padding: 10px;
}

.alkemist-chat-app__fields small {
    color: #667783;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.alkemist-chat-app__side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 12px;
}

.alkemist-chat-app__steps {
    display: grid;
    gap: 9px;
}

.alkemist-chat-app__steps span {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 13px;
    background: rgba(248, 251, 251, 0.9);
    color: #536a76;
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.42;
}

.alkemist-chat-app__steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(11, 75, 96, 0.96), rgba(22, 133, 111, 0.94));
    color: #ffffff;
    font-size: 0.82rem;
}

.alkemist-chat-app--staff .staff-chat-workspace {
    gap: 12px;
}

.alkemist-chat-app--staff .staff-chat-workspace > .section-heading-row {
    margin-bottom: 0;
}

.alkemist-chat-app--staff .client-chat-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
}

.alkemist-chat-app--staff .client-chat-records,
.alkemist-chat-app--staff .client-chat-detail {
    min-width: 0;
}

.alkemist-chat-app--staff .client-chat-records {
    position: sticky;
    top: 92px;
}

.alkemist-chat-app--staff .client-chat-detail .client-chat-messages,
.alkemist-chat-app__thread .client-chat-messages {
    max-height: min(620px, 62dvh);
}

@media (max-width: 900px) {
    .alkemist-chat-app {
        gap: 12px;
        padding: 10px 0;
    }

    .alkemist-chat-app__hero,
    .alkemist-chat-app__layout,
    .alkemist-chat-app--staff .client-chat-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .alkemist-chat-app__hero {
        gap: 12px;
        padding: 15px;
        border-radius: 18px;
    }

    .alkemist-chat-app__hero h2 {
        font-size: clamp(1.62rem, 8vw, 2.45rem);
    }

    .alkemist-chat-app__hero p {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .alkemist-chat-app__signals {
        grid-template-columns: 1fr;
    }

    .alkemist-chat-app__signals span {
        min-height: 0;
        padding: 10px;
    }

    .alkemist-chat-app__fields,
    .alkemist-chat-app__fields.frontend-field-grid.two {
        grid-template-columns: minmax(0, 1fr);
    }

    .alkemist-chat-app__fields .is-wide {
        grid-column: auto;
    }

    .alkemist-chat-app__side,
    .alkemist-chat-app--staff .client-chat-records {
        position: static;
    }
}

/*
 * Category signal badges.
 * Small, separate icons help visitors identify each card's category without
 * relying on the larger category or product imagery.
 */
.alkemist-product-card__media-shell,
.directory-product-card__media-wrap,
.card-thumb {
    position: relative;
}

.category-signal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(13, 68, 87, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    box-shadow: 0 12px 24px rgba(9, 27, 39, 0.12);
    pointer-events: none;
}

.category-signal-badge svg {
    width: 18px;
    height: 18px;
}

.alkemist-product-card__badge,
.directory-product-card__eyebrow {
    max-width: calc(100% - 58px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card > .category-signal-badge,
.brand-tile > .category-signal-badge {
    top: 11px;
    right: 11px;
}

.resource-card > .category-signal-badge + .card-body {
    padding-right: 56px;
}

body:not(.alkemist-editor-session) .site-main .resource-card > .category-signal-badge + .card-body {
    padding-right: 56px;
}

.category-signal-badge--water-drop {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(239, 248, 255, 0.95);
    color: #0f5b95;
}

.category-signal-badge--home {
    border-color: rgba(22, 133, 111, 0.18);
    background: rgba(239, 249, 246, 0.96);
    color: #0b7665;
}

.category-signal-badge--plane,
.category-signal-badge--ship,
.category-signal-badge--zap {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(237, 246, 255, 0.95);
    color: #2563eb;
}

.category-signal-badge--factory,
.category-signal-badge--building {
    border-color: rgba(13, 68, 87, 0.18);
    background: rgba(240, 246, 245, 0.96);
    color: #0b4b60;
}

.category-signal-badge--car,
.category-signal-badge--utensils,
.category-signal-badge--sparkles {
    border-color: rgba(255, 178, 63, 0.28);
    background: rgba(255, 249, 236, 0.97);
    color: #b86a0d;
}

.category-signal-badge--medical,
.category-signal-badge--shield,
.category-signal-badge--file {
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(248, 251, 255, 0.97);
    color: #1d4ed8;
}

.category-signal-badge--leaf {
    border-color: rgba(22, 133, 111, 0.2);
    background: rgba(239, 249, 246, 0.96);
    color: #14856e;
}

.category-signal-badge--flask,
.category-signal-badge--beaker {
    border-color: rgba(124, 58, 237, 0.14);
    background: rgba(250, 247, 255, 0.96);
    color: #6d28d9;
}

@media (max-width: 760px) {
    .category-signal-badge {
        top: 6px;
        right: 6px;
        width: 27px;
        height: 27px;
        border-radius: 9px;
        box-shadow: 0 8px 16px rgba(9, 27, 39, 0.1);
    }

    .category-signal-badge svg {
        width: 14px;
        height: 14px;
    }

    body:not(.alkemist-editor-session) .site-main .alkemist-product-card__badge,
    .directory-product-card__eyebrow {
        max-width: calc(100% - 44px);
    }

    .resource-card > .category-signal-badge + .card-body {
        padding-right: 42px;
    }

    body:not(.alkemist-editor-session) .site-main .resource-card > .category-signal-badge + .card-body {
        padding-right: 42px;
    }
}

/*
 * Mobile editor viewport fit.
 * The polish stylesheet is loaded last, so these rules pin the editor workspace
 * back to one mobile column after desktop compaction rules have run.
 */
@media (max-width: 991px) {
    body.alkemist-editor-session {
        overflow-x: hidden;
    }

    body.alkemist-editor-session .site-main,
    body.alkemist-editor-session .site-content,
    body.alkemist-editor-session .portal-page-wrapper,
    body.alkemist-editor-session .portal-page-layout,
    body.alkemist-editor-session .portal-shell,
    body.alkemist-editor-session .dashboard-shell,
    body.alkemist-editor-session .dashboard-app,
    body.alkemist-editor-session .dashboard-workspace,
    body.alkemist-editor-session .dashboard-workspace-card,
    body.alkemist-editor-session .dashboard-workspace-body,
    body.alkemist-editor-session .dashboard-mobile-bar,
    body.alkemist-editor-session .dashboard-mobile-strip,
    body.alkemist-editor-session .dashboard-mobile-quicknav,
    body.alkemist-editor-session .dashboard-workspace-tabbar {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.alkemist-editor-session .portal-page-layout {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: max(6px, env(safe-area-inset-right)) !important;
        padding-left: max(6px, env(safe-area-inset-left)) !important;
    }

    body.alkemist-editor-session .dashboard-app {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible;
    }

    body.alkemist-editor-session .dashboard-workspace,
    body.alkemist-editor-session .dashboard-workspace-card {
        width: 100%;
    }

    body.alkemist-editor-session .dashboard-workspace-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden;
    }

    body.alkemist-editor-session .dashboard-workspace-body {
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden;
    }

    body.alkemist-editor-session .dashboard-mobile-quicknav,
    body.alkemist-editor-session .dashboard-workspace-tabbar__links {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.alkemist-editor-session .dashboard-mobile-chip,
    body.alkemist-editor-session .dashboard-workspace-tab {
        flex: 0 0 auto;
        max-width: min(74vw, 240px);
    }

    body.alkemist-editor-session .dashboard-workspace-tabbar {
        overflow: hidden;
    }

    body.alkemist-editor-session .frontend-editor-shell,
    body.alkemist-editor-session .frontend-field-grid,
    body.alkemist-editor-session .frontend-field-grid.two,
    body.alkemist-editor-session .dashboard-overview-grid,
    body.alkemist-editor-session .dashboard-quick-link-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 640px) {
    body.alkemist-editor-session .portal-page-layout {
        padding-right: max(4px, env(safe-area-inset-right)) !important;
        padding-left: max(4px, env(safe-area-inset-left)) !important;
    }

    body.alkemist-editor-session .portal-shell.dashboard-shell {
        gap: 6px;
        padding-top: 6px;
        padding-bottom: 26px;
    }

    body.alkemist-editor-session .dashboard-mobile-strip {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 7px;
        padding: 8px;
        border-radius: 15px;
    }

    body.alkemist-editor-session .dashboard-mobile-copy {
        min-width: 0;
    }

    body.alkemist-editor-session .dashboard-workspace-card {
        border-radius: 16px;
    }

    body.alkemist-editor-session .dashboard-workspace-head,
    body.alkemist-editor-session .dashboard-workspace-body {
        padding: 9px;
    }
}

/*
 * Mobile product archive cards.
 * Keeps WooCommerce product cards as compact, readable cards like the resource
 * and gig cards instead of stretching the desktop product layout vertically.
 */
@media (max-width: 760px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products {
        align-items: start !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product {
        align-self: start;
        min-height: 0 !important;
        height: auto !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card {
        display: grid;
        grid-template-rows: auto auto;
        min-height: 0 !important;
        height: auto !important;
        overflow: hidden;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.985);
        box-shadow: 0 10px 22px rgba(9, 27, 39, 0.07);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card:hover,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card:hover,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 26px rgba(9, 27, 39, 0.1);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media-shell,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media-shell,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media-shell {
        min-height: 0;
        padding-top: 0;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media {
        min-height: 0 !important;
        aspect-ratio: 1 / 0.76;
        padding: 28px 8px 8px !important;
        border-radius: 14px 14px 0 0;
        background: linear-gradient(180deg, #ffffff, #f6faf9);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media img {
        width: 100%;
        height: 100%;
        max-height: 96px;
        object-fit: contain;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__placeholder {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 1.35rem;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__badge {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 43px);
        min-height: 25px;
        padding: 4px 8px;
        gap: 5px;
        font-size: 0.58rem;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__badge-dot,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__badge-dot,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__badge-dot {
        width: 6px;
        height: 6px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .category-signal-badge,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .category-signal-badge,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .category-signal-badge {
        top: 6px;
        right: 6px;
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .category-signal-badge svg,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .category-signal-badge svg,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .category-signal-badge svg {
        width: 14px;
        height: 14px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__content {
        display: grid !important;
        grid-template-rows: auto auto auto auto;
        align-content: start;
        gap: 7px !important;
        min-height: 0;
        padding: 10px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__title,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__title {
        min-height: 0 !important;
        margin: 0;
        font-size: 0.82rem !important;
        line-height: 1.24 !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__availability {
        align-self: start;
        max-width: 100%;
        min-height: 0;
        padding: 5px 8px;
        border-radius: 10px;
        font-size: 0.62rem !important;
        line-height: 1.22;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__support {
        -webkit-line-clamp: 2;
        min-height: 0;
        font-size: 0.66rem !important;
        line-height: 1.34 !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-row,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-row,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__meta-row {
        min-height: 0;
        margin-top: 0;
        padding-top: 0;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px !important;
        margin-top: 2px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__quote-button {
        width: 100%;
        min-height: 34px !important;
        padding: 7px 8px !important;
        border-radius: 11px !important;
        font-size: 0.72rem !important;
        line-height: 1.2;
    }
}

@media (max-width: 380px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
    }
}

/*
 * WooCommerce mobile finish.
 * Keeps shop archives in the intended two-column product rhythm and gives
 * single product detail pages a full-width, readable mobile flow.
 */
@media (max-width: 760px) {
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell {
        gap: 10px;
    }

    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > .woocommerce-result-count,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > .woocommerce-result-count,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > .woocommerce-result-count {
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > .woocommerce-ordering select,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > .woocommerce-ordering select,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > .woocommerce-ordering select {
        min-height: 42px;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start !important;
        gap: 10px !important;
        width: 100%;
        margin: 0;
        padding: 0 !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr);
        align-self: start;
        min-width: 0;
        min-height: 0 !important;
        height: auto !important;
        overflow: hidden;
        border: 1px solid rgba(216, 229, 227, 0.98);
        border-radius: 15px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 251, 0.97)),
            radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.08), transparent 34%),
            radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.05), transparent 32%);
        box-shadow: 0 10px 22px rgba(9, 27, 39, 0.075);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media-shell,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media-shell {
        min-width: 0;
        min-height: 0;
        padding: 0;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media {
        min-height: 0 !important;
        aspect-ratio: 1 / 0.72;
        padding: 28px 7px 8px !important;
        border-radius: 15px 15px 0 0;
        border-bottom-color: rgba(216, 229, 227, 0.92);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 249, 0.96));
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media img {
        width: 100%;
        height: 100%;
        max-height: 88px;
        object-fit: contain;
        object-position: center;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__content {
        display: grid !important;
        grid-template-rows: auto auto auto auto;
        align-content: start;
        gap: 7px !important;
        min-width: 0;
        min-height: 0;
        padding: 10px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title {
        display: -webkit-box;
        min-height: 0 !important;
        margin: 0;
        overflow: hidden;
        color: var(--visitor-heading-blue);
        font-size: 0.82rem !important;
        line-height: 1.24 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title a,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title a {
        color: inherit;
        text-decoration: none;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__availability {
        display: inline-flex;
        align-items: center;
        align-self: start;
        max-width: 100%;
        min-height: 28px;
        padding: 5px 8px;
        border-radius: 10px;
        background: rgba(239, 248, 255, 0.96);
        color: #0f5b95;
        font-size: 0.62rem !important;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__support {
        display: -webkit-box;
        min-height: 2.58em;
        margin: 0;
        overflow: hidden;
        color: #657783;
        font-size: 0.66rem !important;
        line-height: 1.34 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-row:empty,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-row:empty {
        display: none;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-row,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-row {
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0 !important;
        margin-top: 1px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__quote-button {
        width: 100%;
        min-height: 34px !important;
        padding: 7px 8px !important;
        border-radius: 11px !important;
        background: linear-gradient(135deg, #2f7cc5, #1b69b1);
        box-shadow: 0 9px 18px rgba(31, 114, 196, 0.2);
        font-size: 0.72rem !important;
        line-height: 1.2;
    }

    body:not(.alkemist-editor-session).single-product .commerce-shell.commerce-shell--single {
        gap: 10px;
        padding-bottom: 34px;
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-detail-page,
    body:not(.alkemist-editor-session).single-product .product-detail-layout,
    body:not(.alkemist-editor-session).single-product .product-detail-main,
    body:not(.alkemist-editor-session).single-product .product-detail-hero,
    body:not(.alkemist-editor-session).single-product .product-detail-overview,
    body:not(.alkemist-editor-session).single-product .product-detail-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-spec-section,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .woocommerce-tabs,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
        padding-top: 10px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-main {
        gap: 10px;
        width: 100%;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero {
        gap: 10px;
        width: 100%;
        padding: 14px;
        overflow: hidden;
        border-radius: 17px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 247, 0.96)),
            radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.12), transparent 36%);
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__eyebrow {
        width: fit-content;
        max-width: 100%;
        min-height: 28px;
        padding: 5px 9px;
        font-size: 0.58rem;
        line-height: 1;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero h1,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .product_title {
        width: 100%;
        max-width: none;
        margin: 0;
        font-size: clamp(1.58rem, 7.4vw, 2.18rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
        text-wrap: balance;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__chips {
        flex-wrap: nowrap;
        gap: 7px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__chips::-webkit-scrollbar {
        display: none;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__chip {
        flex: 0 0 auto;
        max-width: min(78vw, 260px);
        min-height: 30px;
        padding: 6px 9px;
        border-radius: 999px;
        font-size: 0.66rem;
        line-height: 1.18;
        scroll-snap-align: start;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-overview {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
        padding: 10px;
        border-radius: 17px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-gallery,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product div.images {
        padding: 9px;
        border-radius: 15px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-gallery .woocommerce-product-gallery--custom,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product div.images .woocommerce-product-gallery--custom {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__stage {
        min-height: clamp(220px, 64vw, 330px);
        padding: 9px;
        border-radius: 15px;
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__slide,
    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__image-link {
        min-height: clamp(204px, 60vw, 300px);
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__slide img {
        max-height: clamp(204px, 60vw, 300px);
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__thumbs {
        grid-auto-columns: 70px;
        gap: 7px;
        padding: 0 0 3px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary,
    body:not(.alkemist-editor-session).single-product .product-detail-overview__summary {
        gap: 10px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__pricing {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__label,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__stock .stock,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__chips span {
        min-height: 30px;
        padding: 6px 9px;
        border-radius: 12px;
        font-size: 0.68rem;
        line-height: 1.2;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__copy,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__support,
    body:not(.alkemist-editor-session).single-product .detail-prose {
        font-size: 0.88rem;
        line-height: 1.62;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__actions,
    body:not(.alkemist-editor-session).single-product .alkemist-enquiry-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__actions .btn,
    body:not(.alkemist-editor-session).single-product .alkemist-enquiry-buttons .btn {
        width: 100%;
        min-height: 40px;
        padding: 8px 9px;
        border-radius: 12px;
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-spec-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-video-section,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .woocommerce-tabs,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products {
        padding: 12px;
        border-radius: 16px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-section-nav,
    body:not(.alkemist-editor-session).single-product .detail-section-nav {
        margin: 0 0 10px;
        padding: 6px;
        overflow-x: auto;
        border-radius: 14px;
        scrollbar-width: none;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-section-nav::-webkit-scrollbar,
    body:not(.alkemist-editor-session).single-product .detail-section-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 430px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__content {
        gap: 6px !important;
        padding: 9px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title {
        font-size: 0.78rem !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__support {
        font-size: 0.61rem !important;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__actions,
    body:not(.alkemist-editor-session).single-product .alkemist-enquiry-buttons {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products {
        gap: 7px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media {
        padding-top: 27px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__quote-button {
        min-height: 32px !important;
        font-size: 0.68rem !important;
    }
}

/*
 * Product card presentation refresh.
 * Final override so shop archives and product grids keep fuller, more premium
 * cards on desktop while staying two-up and readable on mobile.
 */
body:not(.alkemist-editor-session).woocommerce ul.products,
body:not(.alkemist-editor-session).woocommerce-page ul.products,
body:not(.alkemist-editor-session) .site-main .product-card-grid,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid {
    display: grid !important;
    align-items: stretch !important;
    gap: clamp(16px, 1.8vw, 24px) !important;
    width: 100%;
}

@media (min-width: 1281px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session) .site-main .product-card-grid,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 961px) and (max-width: 1280px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session) .site-main .product-card-grid,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 761px) and (max-width: 960px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session) .site-main .product-card-grid,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card,
body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card {
    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    min-height: 100% !important;
    height: auto !important;
    overflow: hidden;
    border: 1px solid rgba(198, 218, 216, 0.94);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 251, 0.98)),
        radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.12), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.07), transparent 32%);
    box-shadow: 0 16px 36px rgba(9, 27, 39, 0.095);
}

body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card::before,
body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card::before,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card::before,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.9;
}

body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card:hover,
body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card:hover,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card:hover,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 133, 111, 0.34);
    box-shadow: 0 24px 48px rgba(9, 27, 39, 0.14);
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media-shell,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media-shell,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media-shell,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__media-shell {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__media {
    min-height: clamp(196px, 16vw, 238px) !important;
    aspect-ratio: 4 / 3;
    padding: 42px 18px 18px !important;
    border-radius: 22px 22px 0 0;
    border-bottom: 1px solid rgba(216, 229, 227, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 247, 248, 0.98)),
        radial-gradient(circle at 50% 36%, rgba(22, 133, 111, 0.08), transparent 42%);
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media img,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media img,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media img,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__media img {
    width: 100%;
    height: 100%;
    max-height: 178px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 14px 18px rgba(9, 27, 39, 0.12));
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__placeholder,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__placeholder,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__placeholder,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__placeholder {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 1.8rem;
    box-shadow: 0 14px 30px rgba(9, 27, 39, 0.08);
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__badge,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__badge,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__badge,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__badge {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 62px);
    min-height: 29px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(9, 27, 39, 0.1);
    font-size: 0.64rem;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.alkemist-editor-session).woocommerce ul.products .category-signal-badge,
body:not(.alkemist-editor-session).woocommerce-page ul.products .category-signal-badge,
body:not(.alkemist-editor-session) .site-main .product-card-grid .category-signal-badge,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .category-signal-badge {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__content,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__content,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__content,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__content {
    display: grid !important;
    flex: 1 1 auto;
    grid-template-rows: auto auto auto auto auto;
    align-content: start;
    gap: 10px !important;
    min-width: 0;
    min-height: 0;
    padding: 16px !important;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title,
body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__title,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__title,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__title,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__title {
    display: -webkit-box;
    min-height: 2.58em !important;
    margin: 0;
    overflow: hidden;
    color: var(--visitor-heading-blue);
    font-size: 1rem !important;
    line-height: 1.29 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title a,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title a,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__title a,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__title a {
    color: inherit;
    text-decoration: none;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__availability,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__availability,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__availability,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__availability {
    display: inline-flex;
    align-items: center;
    align-self: start;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 31px;
    padding: 7px 10px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(239, 248, 255, 0.98);
    color: #0f5b95;
    font-size: 0.72rem !important;
    font-weight: 850;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__support,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__support,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__support,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__support {
    display: -webkit-box;
    min-height: 3em;
    margin: 0;
    overflow: hidden;
    color: #657783;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-row,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-row,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__meta-row,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__meta-row {
    gap: 7px;
    min-height: 0;
    margin: 0;
    padding: 0;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-row:empty,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-row:empty,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__meta-row:empty,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__meta-row:empty {
    display: none;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__price,
body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-note,
body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__rating,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__price,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-note,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__rating,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__price,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__meta-note,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__rating,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__price,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__meta-note,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__rating {
    font-size: 0.78rem !important;
    line-height: 1.28;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__actions,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__actions,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__actions,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    margin-top: auto;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__detail-button,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__detail-button,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__detail-button,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__detail-button,
body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__quote-button,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__quote-button,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__quote-button,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__quote-button {
    width: 100%;
    min-width: 0;
    min-height: 40px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.18;
    text-align: center;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__quote-button,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__quote-button,
body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__quote-button,
body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__quote-button {
    background: linear-gradient(135deg, #2f7cc5, #16856f);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(31, 114, 196, 0.22);
}

@media (max-width: 760px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products,
    body:not(.alkemist-editor-session) .site-main .product-card-grid,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card {
        min-height: 100% !important;
        border-radius: 16px;
        box-shadow: 0 12px 26px rgba(9, 27, 39, 0.09);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card:hover,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card:hover,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card:hover,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card:hover {
        transform: translateY(-2px);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__media {
        min-height: clamp(136px, 38vw, 168px) !important;
        aspect-ratio: 1 / 0.9;
        padding: 32px 9px 10px !important;
        border-radius: 16px 16px 0 0;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__media img,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__media img {
        max-height: 128px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__placeholder {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 1.38rem;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__badge,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__badge {
        top: 7px;
        left: 7px;
        max-width: calc(100% - 45px);
        min-height: 24px;
        padding: 4px 8px;
        font-size: 0.56rem;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .category-signal-badge,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .category-signal-badge,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .category-signal-badge,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .category-signal-badge {
        top: 7px;
        right: 7px;
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .category-signal-badge svg,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .category-signal-badge svg,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .category-signal-badge svg,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .category-signal-badge svg {
        width: 14px;
        height: 14px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__content,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__content {
        gap: 8px !important;
        padding: 11px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__title,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__title,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__title {
        min-height: 2.58em !important;
        font-size: 0.86rem !important;
        line-height: 1.29 !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__availability,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__availability {
        width: 100%;
        min-height: 30px;
        padding: 6px 8px;
        border-radius: 12px;
        font-size: 0.66rem !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__support,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__support {
        min-height: 2.72em;
        font-size: 0.7rem !important;
        line-height: 1.36 !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__price,
    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__meta-note,
    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__rating,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__price,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__meta-note,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__rating,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__price,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__meta-note,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__rating,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__price,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__meta-note,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__rating {
        font-size: 0.68rem !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__actions,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__actions {
        grid-template-columns: 1fr;
        gap: 7px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__detail-button,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__detail-button,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__detail-button,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__detail-button {
        display: none;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__quote-button {
        min-height: 36px !important;
        padding: 8px 9px !important;
        border-radius: 12px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 380px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products,
    body:not(.alkemist-editor-session) .site-main .product-card-grid,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__content,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__content {
        gap: 7px !important;
        padding: 9px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__title,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__title {
        font-size: 0.8rem !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session) .site-main .product-card-grid .alkemist-product-card__availability,
    body:not(.alkemist-editor-session) .site-main .archive-linked-product-grid .alkemist-product-card__availability {
        font-size: 0.62rem !important;
    }
}

/*
 * Single product mobile finish.
 * Related product cards become one polished row each on product detail pages,
 * while the main shop archive keeps its two-card mobile grid.
 */
body:not(.alkemist-editor-session).single-product .related-product-panel {
    gap: 10px;
}

body:not(.alkemist-editor-session).single-product .related-product-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

body:not(.alkemist-editor-session).single-product .related-product-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 251, 0.97)),
        radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.09), transparent 36%);
    box-shadow: 0 10px 22px rgba(9, 27, 39, 0.06);
}

body:not(.alkemist-editor-session).single-product .related-product-thumb {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 12px;
    background: #ffffff;
}

body:not(.alkemist-editor-session).single-product .related-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body:not(.alkemist-editor-session).single-product .related-product-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body:not(.alkemist-editor-session).single-product .related-product-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--visitor-heading-blue);
    font-size: 0.86rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body:not(.alkemist-editor-session).single-product .related-product-copy small {
    color: #0b7665;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.25;
}

@media (max-width: 760px) {
    body:not(.alkemist-editor-session).single-product .commerce-shell.commerce-shell--single {
        width: min(100% - 18px, 1240px);
        gap: 12px;
        padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 24px));
    }

    body:not(.alkemist-editor-session).single-product .detail-breadcrumb-wrap {
        padding-top: 8px;
    }

    body:not(.alkemist-editor-session).single-product .detail-breadcrumb {
        padding: 7px 10px;
        border-radius: 999px;
        font-size: 0.72rem;
        line-height: 1.2;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px;
        padding-top: 8px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-main {
        gap: 12px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero,
    body:not(.alkemist-editor-session).single-product .product-detail-overview,
    body:not(.alkemist-editor-session).single-product .product-detail-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-spec-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-video-section,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .woocommerce-tabs,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products {
        border-radius: 18px;
        box-shadow: 0 14px 32px rgba(9, 27, 39, 0.08);
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero {
        gap: 11px;
        padding: 15px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 247, 0.97)),
            radial-gradient(circle at 100% 0%, rgba(255, 178, 63, 0.14), transparent 36%),
            radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.06), transparent 30%);
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__eyebrow {
        min-height: 28px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero h1,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .product_title {
        font-size: clamp(1.72rem, 8vw, 2.36rem);
        line-height: 1.05;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__chips {
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-hero__chip {
        flex: 0 0 auto;
        max-width: min(78vw, 280px);
        min-height: 30px;
        padding: 6px 9px;
        border-radius: 999px;
        font-size: 0.66rem;
        line-height: 1.18;
        scroll-snap-align: start;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-overview {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px;
        padding: 10px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-gallery,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product div.images {
        padding: 8px;
        border-radius: 16px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 250, 0.98));
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__stage {
        min-height: clamp(236px, 66vw, 360px);
        padding: 10px;
        border-radius: 15px;
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__slide,
    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__image-link {
        min-height: clamp(216px, 60vw, 326px);
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__slide img {
        max-height: clamp(216px, 60vw, 326px);
        object-fit: contain;
    }

    body:not(.alkemist-editor-session).single-product .alkemist-product-gallery__thumbs {
        grid-auto-columns: 72px;
        gap: 7px;
        padding-bottom: 3px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary {
        gap: 11px;
        padding: 2px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__pricing {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 11px;
        border: 1px solid rgba(216, 229, 227, 0.92);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.82);
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary .price,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__quote-mode {
        margin-top: 6px;
        font-size: clamp(1.18rem, 5vw, 1.48rem);
        line-height: 1.12;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__copy,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__support,
    body:not(.alkemist-editor-session).single-product .detail-prose {
        font-size: 0.9rem;
        line-height: 1.64;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__chips {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__chips span,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__stock .stock,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__label {
        width: fit-content;
        max-width: 100%;
        min-height: 30px;
        padding: 6px 9px;
        border-radius: 999px;
        font-size: 0.68rem;
        line-height: 1.18;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__cart form.cart,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product form.cart {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__cart form.cart .quantity,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product form.cart .quantity {
        width: 100%;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__cart form.cart .quantity input,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product form.cart .quantity input {
        width: 100%;
        min-height: 40px;
        border-radius: 12px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__cart form.cart .single_add_to_cart_button,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product form.cart .single_add_to_cart_button,
    body:not(.alkemist-editor-session).single-product .product-detail-summary__actions .btn,
    body:not(.alkemist-editor-session).single-product .alkemist-enquiry-buttons .btn {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        padding: 9px 11px;
        border-radius: 12px;
        font-size: 0.78rem;
        line-height: 1.2;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-summary__actions,
    body:not(.alkemist-editor-session).single-product .alkemist-enquiry-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body:not(.alkemist-editor-session).single-product .product-detail-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-spec-section,
    body:not(.alkemist-editor-session).single-product .alkemist-product-video-section {
        padding: 13px;
    }

    body:not(.alkemist-editor-session).single-product .detail-data-table {
        display: block;
        width: 100%;
    }

    body:not(.alkemist-editor-session).single-product .detail-data-table tbody,
    body:not(.alkemist-editor-session).single-product .detail-data-table tr,
    body:not(.alkemist-editor-session).single-product .detail-data-table th,
    body:not(.alkemist-editor-session).single-product .detail-data-table td {
        display: block;
        width: 100%;
    }

    body:not(.alkemist-editor-session).single-product .detail-data-table th,
    body:not(.alkemist-editor-session).single-product .detail-data-table td {
        padding: 9px 10px;
    }

    body:not(.alkemist-editor-session).single-product .detail-data-table th {
        border-bottom: 0;
        background: rgba(239, 249, 246, 0.82);
        font-size: 0.7rem;
        text-transform: uppercase;
    }

    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products ul.products,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products ul.products,
    body:not(.alkemist-editor-session).single-product .related.products ul.products,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).single-product .related.products ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products li.product.alkemist-product-card {
        display: grid !important;
        grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
        min-height: 0 !important;
        border-radius: 16px;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__media {
        min-height: 100% !important;
        height: 100%;
        aspect-ratio: auto;
        padding: 30px 8px 8px !important;
        border-radius: 16px 0 0 16px;
        border-right: 1px solid rgba(216, 229, 227, 0.92);
        border-bottom: 0;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__media img {
        max-height: 108px;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__badge {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 12px);
        min-height: 23px;
        padding: 4px 7px;
        font-size: 0.54rem;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .category-signal-badge,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .category-signal-badge {
        display: none;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__content {
        gap: 7px !important;
        padding: 10px !important;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__title,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__title {
        min-height: 0 !important;
        font-size: 0.86rem !important;
        line-height: 1.25 !important;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__availability {
        width: fit-content;
        min-height: 26px;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 0.62rem !important;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__support {
        min-height: 0;
        -webkit-line-clamp: 2;
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__actions {
        margin-top: 0;
    }
}

@media (max-width: 380px) {
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).single-product .related.products ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products li.product.alkemist-product-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    body:not(.alkemist-editor-session).single-product .related.products ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products .alkemist-product-card__support {
        display: none;
    }
}

/*
 * Shop mobile card standard view.
 * Prevents skinny archive cards on phone widths and keeps product imagery
 * centered inside a stable frame.
 */
@media (max-width: 760px) {
    body:not(.alkemist-editor-session).woocommerce-shop ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products li.product.alkemist-product-card {
        justify-self: stretch !important;
        align-self: stretch !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100% !important;
        border-radius: 17px;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__media-shell,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__media-shell,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__media-shell,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__media-shell {
        width: 100%;
        min-width: 0;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__media {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        min-height: 148px !important;
        aspect-ratio: 1 / 0.88;
        padding: 34px 10px 12px !important;
        overflow: hidden;
        border-radius: 17px 17px 0 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 247, 248, 0.98)),
            radial-gradient(circle at 50% 46%, rgba(22, 133, 111, 0.08), transparent 46%);
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__media img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: min(88%, 150px) !important;
        max-height: 112px !important;
        margin: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__placeholder {
        margin: auto;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__content {
        gap: 8px !important;
        padding: 11px !important;
    }
}

@media (max-width: 520px) {
    body:not(.alkemist-editor-session).woocommerce-shop ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 13px !important;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products li.product.alkemist-product-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 19px;
        box-shadow: 0 15px 32px rgba(9, 27, 39, 0.1);
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__media {
        min-height: 198px !important;
        aspect-ratio: 16 / 10;
        padding: 40px 18px 16px !important;
        border-radius: 19px 19px 0 0;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__media img {
        max-width: min(84%, 250px) !important;
        max-height: 156px !important;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__placeholder,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__placeholder {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        font-size: 1.82rem;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__badge,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__badge {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 58px);
        min-height: 27px;
        padding: 5px 9px;
        font-size: 0.62rem;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .category-signal-badge,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .category-signal-badge,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .category-signal-badge,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .category-signal-badge {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__content,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__content {
        gap: 10px !important;
        padding: 14px !important;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card .alkemist-product-card__title,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card .alkemist-product-card__title {
        min-height: 0 !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__availability,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__availability {
        width: fit-content;
        min-height: 30px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 0.7rem !important;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__support,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__support {
        display: -webkit-box;
        min-height: 0;
        color: #607481;
        font-size: 0.78rem !important;
        line-height: 1.44 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card__actions {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 2px;
    }

    body:not(.alkemist-editor-session).woocommerce-shop ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products .alkemist-product-card .alkemist-product-card__quote-button,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products .alkemist-product-card .alkemist-product-card__quote-button {
        min-height: 42px !important;
        border-radius: 13px !important;
        font-size: 0.82rem !important;
    }
}

/*
 * Compact subscription, login, and editor actions.
 * These controls are loaded late so mobile popups and dashboard forms do not
 * inherit oversized button treatments from broader portal/card rules.
 */
.subscription-popup {
    width: min(330px, calc(100vw - 24px));
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
}

.subscription-popup__close {
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    font-size: 1.15rem;
}

.subscription-popup__copy {
    gap: 6px;
    padding-right: 32px;
}

.subscription-popup__eyebrow {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}

.subscription-popup__copy h3 {
    font-size: 1.02rem;
    line-height: 1.15;
}

.subscription-popup__copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.subscription-popup__form {
    gap: 8px;
}

.subscription-popup__form label {
    gap: 4px;
}

.subscription-popup__form label span {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.subscription-popup__form input {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.84rem;
}

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

.subscription-popup__actions .btn,
body:not(.alkemist-editor-session) .subscription-popup__actions .btn {
    width: 100%;
    min-height: 34px !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
    box-shadow: none;
    font-size: 0.7rem !important;
    line-height: 1.14;
}

.subscription-card,
.subscription-record-browser,
.subscription-editor-card,
.login-card {
    display: grid;
}

.subscription-card {
    gap: 12px;
}

.subscription-card > p,
.subscription-browser-summary {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.48;
}

.subscription-form,
.subscription-browser-form,
.subscription-editor-form {
    display: grid;
    gap: 11px;
    margin-top: 0;
}

.subscription-form__preferences,
.subscription-form__note,
.subscription-form__hint {
    gap: 8px;
}

.subscription-form__hint {
    padding: 9px 10px;
    border-radius: 12px;
}

.subscription-form__hint span,
.subscription-form__preferences > strong,
.subscription-form__note strong {
    font-size: 0.78rem;
    line-height: 1.25;
}

.subscription-form__hint small,
.subscription-form__choice-copy small,
.subscription-form__note span {
    font-size: 0.72rem;
    line-height: 1.38;
}

.subscription-form__choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 8px;
}

.subscription-form__choice {
    gap: 8px;
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
}

.subscription-form__choice input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-top: 2px;
}

.subscription-form__choice-copy {
    gap: 3px;
}

.subscription-form__choice-copy strong {
    font-size: 0.82rem;
    line-height: 1.24;
}

.subscription-form__note {
    padding: 10px 12px;
    border-radius: 12px;
}

.subscription-manage-meta,
.subscription-stats-grid,
.subscription-editor-meta {
    gap: 8px;
}

.subscription-manage-meta > div,
.subscription-stats-grid article,
.subscription-editor-meta article {
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
}

.subscription-stats-grid strong,
.subscription-editor-meta strong {
    font-size: 0.92rem;
}

.subscription-record-actions {
    gap: 5px;
}

.subscription-card .frontend-submit-row,
.subscription-browser-form .portal-actions,
.subscription-editor-card .portal-actions,
.subscription-record-actions {
    gap: 6px;
}

.subscription-card .frontend-submit-row .btn,
.subscription-browser-form .portal-actions .btn,
.subscription-editor-card .portal-actions .btn,
.subscription-record-actions .btn,
body.alkemist-editor-session .subscription-workspace-shell .btn:not(.supplier-icon-button) {
    min-height: 34px !important;
    padding: 7px 9px !important;
    border-radius: 10px !important;
    font-size: 0.7rem !important;
    line-height: 1.14;
}

body.alkemist-staff-login-page .portal-page-layout {
    width: min(760px, calc(100vw - 24px));
}

body.alkemist-staff-login-page .portal-shell {
    min-height: calc(100dvh - 24px);
    padding: 12px 0 28px;
}

.login-card,
body.alkemist-staff-login-page .login-card {
    gap: 12px;
    max-width: min(560px, 100%);
    padding: clamp(18px, 2vw, 24px);
    border-radius: 22px;
}

.login-card-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.login-card-brand__mark {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(9, 27, 39, 0.08);
}

.login-card-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card-brand__fallback {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.login-card-brand__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.login-card-brand__copy strong,
.login-card-brand__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-card-brand__copy strong {
    color: #0d2a37;
    font-size: 0.94rem;
    line-height: 1.15;
}

.login-card-brand__copy span {
    color: var(--secondary);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.portal-login-error {
    border-color: rgba(180, 35, 24, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 247, 246, 0.98), rgba(255, 255, 255, 0.96));
}

.portal-login-error strong {
    color: #b42318;
}

.portal-login-error span {
    color: #70413b;
}

.login-card .eyebrow {
    width: fit-content;
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
}

.login-card h2 {
    margin: 0;
    font-size: clamp(1.24rem, 2.2vw, 1.65rem);
    line-height: 1.12;
}

.login-card > p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.48;
}

.portal-login-form form,
body.alkemist-staff-login-page .portal-login-form form {
    gap: 10px;
}

.portal-login-form #loginform > p {
    margin: 0;
}

.portal-login-form label {
    gap: 4px;
    font-size: 0.78rem;
}

.portal-login-form input[type="text"],
.portal-login-form input[type="password"],
.portal-login-form input[type="email"] {
    min-height: 42px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 0.88rem;
}

.portal-login-form .login-remember,
body.alkemist-staff-login-page .portal-login-form .login-remember {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.portal-login-form .login-remember input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
}

.portal-login-form .button,
.portal-login-form input[type="submit"],
body.alkemist-staff-login-page .portal-login-form .button {
    width: auto;
    min-height: 40px !important;
    padding: 8px 13px !important;
    border-radius: 11px !important;
    font-size: 0.8rem !important;
    line-height: 1.14;
}

.portal-login-form .login-submit {
    display: flex;
    justify-content: flex-start;
}

body.alkemist-staff-login-page .portal-login-form .login-submit .button,
body.alkemist-staff-login-page .portal-login-form .login-submit input[type="submit"] {
    width: 100%;
}

.login-card .portal-links,
body.alkemist-staff-login-page .portal-links {
    gap: 8px;
    font-size: 0.78rem;
}

body.alkemist-editor-session {
    --editor-control-height: 32px;
}

body.alkemist-editor-session .portal-actions,
body.alkemist-editor-session .dashboard-head-tools .portal-actions,
body.alkemist-editor-session .dashboard-workspace-head .portal-actions,
body.alkemist-editor-session .frontend-browser-head .portal-actions,
body.alkemist-editor-session .frontend-submit-row {
    gap: 5px !important;
}

body.alkemist-editor-session .btn:not(.supplier-icon-button),
body.alkemist-editor-session .dashboard-command-action,
body.alkemist-editor-session .dashboard-command-button,
body.alkemist-editor-session .frontend-gallery-field__action,
body.alkemist-editor-session .frontend-editor-smartlink {
    min-height: var(--editor-control-height) !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    font-size: 0.68rem !important;
    line-height: 1.14;
}

@media (max-width: 640px) {
    .subscription-popup {
        left: max(8px, env(safe-area-inset-left));
        bottom: max(8px, env(safe-area-inset-bottom));
        width: min(330px, calc(100% - 16px));
        max-height: min(86dvh, calc(100dvh - 16px));
        overflow: auto;
        padding: 11px;
        border-radius: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .subscription-popup__copy {
        padding-right: 28px;
    }

    .subscription-popup__copy h3 {
        font-size: 0.94rem;
    }

    .subscription-popup__copy p {
        font-size: 0.72rem;
        line-height: 1.36;
    }

    .subscription-popup__form input {
        min-height: 36px;
        font-size: 0.82rem;
    }

    .subscription-popup__actions .btn,
    body:not(.alkemist-editor-session) .subscription-popup__actions .btn {
        min-height: 32px !important;
        padding: 6px 7px !important;
        font-size: 0.66rem !important;
    }

    .subscription-card,
    .subscription-record-browser,
    .subscription-editor-card {
        gap: 9px;
        padding: 11px !important;
        border-radius: 15px !important;
    }

    .subscription-card .compact-heading h3,
    .subscription-editor-card .compact-heading h3,
    .subscription-record-browser .compact-heading h3 {
        font-size: 0.96rem;
        line-height: 1.16;
    }

    .subscription-card > p,
    .subscription-browser-summary {
        font-size: 0.76rem;
        line-height: 1.38;
    }

    .subscription-form,
    .subscription-browser-form,
    .subscription-editor-form {
        gap: 8px;
    }

    .subscription-form__choice-grid,
    .subscription-manage-meta,
    .subscription-stats-grid,
    .subscription-editor-meta {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px;
    }

    .subscription-form__choice {
        align-items: flex-start;
        padding: 8px 9px;
    }

    .subscription-form__choice-copy small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .subscription-form__hint,
    .subscription-form__note,
    .subscription-manage-meta > div,
    .subscription-stats-grid article,
    .subscription-editor-meta article {
        padding: 8px 9px;
        border-radius: 11px;
    }

    .subscription-form__note span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .subscription-card .frontend-field-grid.two,
    .subscription-browser-form .frontend-field-grid.three,
    .subscription-editor-form .frontend-field-grid.two {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px;
    }

    .subscription-card .frontend-submit-row,
    .subscription-browser-form .portal-actions,
    .subscription-editor-card .portal-actions,
    .subscription-record-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .subscription-card .frontend-submit-row .btn,
    .subscription-browser-form .portal-actions .btn,
    .subscription-editor-card .portal-actions .btn,
    .subscription-record-actions .btn,
    body.alkemist-editor-session .subscription-workspace-shell .btn:not(.supplier-icon-button) {
        width: 100%;
        min-height: 32px !important;
        padding: 6px 7px !important;
        border-radius: 9px !important;
        font-size: 0.66rem !important;
    }

    body.alkemist-staff-login-page .portal-page-layout {
        width: min(100%, calc(100% - 12px)) !important;
        min-height: auto;
    }

    body.alkemist-staff-login-page .portal-shell {
        min-height: calc(100dvh - 12px);
        padding: 8px 0 18px;
    }

    .login-card,
    body.alkemist-staff-login-page .login-card {
        gap: 8px;
        max-width: min(430px, 100%);
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .login-card .eyebrow {
        min-height: 23px;
        padding: 4px 8px;
        font-size: 0.56rem;
    }

    .login-card h2 {
        font-size: 1.08rem;
    }

    .login-card > p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.74rem;
        line-height: 1.36;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .portal-login-form form,
    body.alkemist-staff-login-page .portal-login-form form {
        gap: 7px;
    }

    .portal-login-form label {
        font-size: 0.72rem;
    }

    .portal-login-form input[type="text"],
    .portal-login-form input[type="password"],
    .portal-login-form input[type="email"] {
        min-height: 36px !important;
        padding: 0 9px !important;
        border-radius: 10px !important;
        font-size: 0.84rem !important;
    }

    .portal-login-form .login-remember,
    body.alkemist-staff-login-page .portal-login-form .login-remember {
        min-height: 31px;
        padding: 6px 8px;
        border-radius: 10px;
        font-size: 0.7rem;
    }

    .portal-login-form .button,
    .portal-login-form input[type="submit"],
    body.alkemist-staff-login-page .portal-login-form .button {
        min-height: 32px !important;
        padding: 6px 9px !important;
        border-radius: 9px !important;
        font-size: 0.7rem !important;
    }

    .login-card .portal-links,
    body.alkemist-staff-login-page .portal-links {
        gap: 6px;
        font-size: 0.7rem;
    }

    body.alkemist-editor-session {
        --editor-control-height: 31px;
    }

    body.alkemist-editor-session .dashboard-workspace-head .portal-actions,
    body.alkemist-editor-session .frontend-browser-head .portal-actions,
    body.alkemist-editor-session .dashboard-head-tools .portal-actions,
    body.alkemist-editor-session .frontend-submit-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
        width: 100%;
    }

    body.alkemist-editor-session .btn:not(.supplier-icon-button),
    body.alkemist-editor-session .dashboard-command-action,
    body.alkemist-editor-session .dashboard-command-button,
    body.alkemist-editor-session .frontend-gallery-field__action,
    body.alkemist-editor-session .frontend-editor-smartlink {
        min-height: var(--editor-control-height) !important;
        padding: 5px 7px !important;
        border-radius: 8px !important;
        font-size: 0.64rem !important;
    }
}

/*
 * Fiverr-style service marketplace.
 * Service archive cards and single gig pages use a tighter buyer marketplace
 * rhythm with visible seller, rating, price, media, and quote actions.
 */
.gig-market-toolbar {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.gig-market-filter {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 0.9fr) minmax(150px, 0.8fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(216, 229, 227, 0.96);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(9, 27, 39, 0.08);
}

.gig-market-filter label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.gig-market-filter label span {
    color: #5e6d76;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.gig-market-filter input,
.gig-market-filter select {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid rgba(202, 217, 216, 0.98);
    border-radius: 11px;
    background: #ffffff;
    color: #142632;
    font: inherit;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gig-market-filter__actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.gig-market-filter__actions .btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.gig-market-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gig-market-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #637583;
    font-size: 0.72rem;
    font-weight: 800;
}

.gig-market-stats strong {
    color: #108a00;
}

.gig-market-category-strip {
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
}

.gig-market-category-strip .term-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.gig-market-category-strip .term-row::-webkit-scrollbar {
    display: none;
}

.gig-market-category-strip .term-pill {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.gig-market-grid.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
    gap: 16px;
}

.gig-market-card,
body:not(.alkemist-editor-session) .site-main .gig-market-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(216, 229, 227, 0.96);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(9, 27, 39, 0.075);
}

.gig-market-card::after {
    display: none;
}

.gig-market-card:hover,
body:not(.alkemist-editor-session) .site-main .gig-market-card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 191, 115, 0.36);
    box-shadow: 0 18px 34px rgba(9, 27, 39, 0.12);
}

.gig-market-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(240, 248, 247, 0.96), rgba(255, 249, 236, 0.92)),
        #f6faf9;
    color: #0b4b60;
    text-decoration: none;
}

.gig-market-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.gig-market-card:hover .gig-market-card__media img {
    transform: scale(1.035);
}

.gig-market-card__media > span:not(.gig-market-card__badge) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #ffffff;
    color: #108a00;
    font-size: 1.6rem;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(9, 27, 39, 0.1);
}

.gig-market-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    min-height: 25px;
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0b4b60;
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(9, 27, 39, 0.12);
}

.gig-market-card__body {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding: 12px;
}

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

.gig-market-card__avatar,
.gig-marketplace-seller__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b4b60, #16856f);
    color: #ffffff;
    font-weight: 950;
}

.gig-market-card__avatar {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}

.gig-market-card__seller strong,
.gig-market-card__seller small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-market-card__seller strong {
    color: #263238;
    font-size: 0.78rem;
    line-height: 1.15;
}

.gig-market-card__seller small {
    color: #73828b;
    font-size: 0.64rem;
    line-height: 1.2;
}

.gig-market-card__title {
    min-height: 2.54em;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.27;
}

.gig-market-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1f2933;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gig-market-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffb23f;
    font-size: 0.76rem;
    line-height: 1;
}

.gig-market-card__rating strong {
    color: #263238;
}

.gig-market-card__rating small {
    color: #778892;
}

.gig-market-card__summary {
    display: -webkit-box;
    min-height: 2.86em;
    margin: 0;
    overflow: hidden;
    color: #667783;
    font-size: 0.74rem;
    line-height: 1.43;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gig-market-card__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
}

.gig-market-card__chips span {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 24px;
    padding: 5px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(239, 249, 246, 0.96);
    color: #0b7665;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-market-card__footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding-top: 9px;
    border-top: 1px solid rgba(216, 229, 227, 0.86);
}

.gig-market-card__quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1dbf73;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    text-decoration: none;
}

.gig-market-card__quote.gig-market-card__cart {
    background: linear-gradient(135deg, #ffc247, #ff8a2a);
    color: #10202a;
    box-shadow: 0 8px 17px rgba(255, 138, 42, 0.2);
}

.gig-market-card__price {
    display: grid;
    justify-items: end;
    min-width: 0;
    color: #1f2933;
}

.gig-market-card__price small {
    color: #7a8992;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.gig-market-card__price strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-marketplace-hero {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.gig-marketplace-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: #71828c;
    font-size: 0.76rem;
    font-weight: 800;
}

.gig-marketplace-breadcrumbs a {
    color: #0b4b60;
    text-decoration: none;
}

.gig-marketplace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 20px;
    align-items: start;
}

.gig-marketplace-main,
.gig-marketplace-order-card {
    min-width: 0;
}

.gig-marketplace-main {
    display: grid;
    gap: 13px;
}

.gig-marketplace-kicker,
.gig-marketplace-tags,
.gig-marketplace-package-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gig-marketplace-kicker span,
.gig-marketplace-tags span,
.gig-marketplace-tags .term-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 249, 246, 0.96);
    color: #0b7665;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
}

.gig-marketplace-main h1 {
    max-width: 900px;
    margin: 0;
    color: #1f2933;
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 1.03;
    text-wrap: balance;
}

.gig-marketplace-seller {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.gig-marketplace-seller__avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.gig-marketplace-seller__copy {
    display: grid;
    gap: 2px;
}

.gig-marketplace-seller__copy strong {
    color: #263238;
    font-size: 0.92rem;
    line-height: 1.15;
}

.gig-marketplace-seller__copy small {
    color: #70818c;
    font-size: 0.72rem;
    font-weight: 800;
}

.gig-marketplace-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff8e8;
    color: #b86a0d;
    font-size: 0.76rem;
    font-weight: 900;
}

.gig-marketplace-rating em {
    color: #7a8992;
    font-style: normal;
    font-weight: 800;
}

.gig-marketplace-intro {
    max-width: 780px;
    margin: 0;
    color: #526775;
    font-size: 1rem;
    line-height: 1.62;
}

.gig-marketplace-media {
    overflow: hidden;
    border: 1px solid rgba(216, 229, 227, 0.96);
    border-radius: 18px;
    background: #f6faf9;
    box-shadow: 0 18px 42px rgba(9, 27, 39, 0.1);
}

.gig-marketplace-media .product-detail-gallery,
.gig-marketplace-media__single,
.gig-marketplace-media__placeholder {
    margin: 0;
    border-radius: 18px;
}

.gig-marketplace-media__single {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #ffffff;
}

.gig-marketplace-media__single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gig-marketplace-media__placeholder {
    display: grid;
    min-height: clamp(260px, 46vw, 480px);
    place-items: center;
    background:
        linear-gradient(135deg, rgba(239, 249, 246, 0.96), rgba(255, 249, 236, 0.92)),
        #ffffff;
}

.gig-marketplace-media__placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: #ffffff;
    color: #108a00;
    font-size: 2.4rem;
    font-weight: 950;
    box-shadow: 0 20px 44px rgba(9, 27, 39, 0.12);
}

.gig-marketplace-order-card {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(9, 27, 39, 0.14);
}

.gig-marketplace-order-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(216, 229, 227, 0.92);
}

.gig-marketplace-order-card__head span {
    color: #687984;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gig-marketplace-order-card__head strong {
    color: #1f2933;
    font-size: 1.2rem;
    line-height: 1.1;
    text-align: right;
}

.gig-marketplace-order-card h2 {
    margin: 0;
    color: #1f2933;
    font-size: 1.06rem;
    line-height: 1.22;
}

.gig-marketplace-order-card p {
    margin: 0;
    color: #607481;
    font-size: 0.84rem;
    line-height: 1.52;
}

.gig-marketplace-scope-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gig-marketplace-scope-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid rgba(216, 229, 227, 0.88);
    border-radius: 11px;
    background: #f9fcfb;
}

.gig-marketplace-scope-list strong {
    color: #687984;
    font-size: 0.66rem;
    text-transform: uppercase;
}

.gig-marketplace-scope-list span {
    color: #263238;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: right;
}

.gig-marketplace-package-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.gig-marketplace-package-strip a {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 11px;
    background: rgba(239, 249, 246, 0.62);
    color: #263238;
    text-decoration: none;
}

.gig-marketplace-package-strip span,
.gig-marketplace-package-strip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-marketplace-package-strip span {
    color: #0b7665;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gig-marketplace-package-strip strong {
    font-size: 0.74rem;
}

.gig-marketplace-order-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gig-marketplace-order-card__actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 0.78rem;
}

.gig-marketplace-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.gig-marketplace-mini-stats div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px;
    border-radius: 11px;
    background: #f6faf9;
}

.gig-marketplace-mini-stats strong,
.gig-marketplace-mini-stats span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-marketplace-mini-stats strong {
    color: #0b4b60;
    font-size: 0.78rem;
}

.gig-marketplace-mini-stats span {
    color: #72838d;
    font-size: 0.62rem;
    font-weight: 850;
}

@media (max-width: 960px) {
    .gig-market-filter {
        grid-template-columns: minmax(0, 1fr) minmax(140px, 0.8fr);
    }

    .gig-market-filter__search,
    .gig-market-filter__actions {
        grid-column: 1 / -1;
    }

    .gig-market-filter__actions {
        justify-content: flex-start;
    }

    .gig-marketplace-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gig-marketplace-order-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 760px) {
    .gig-market-toolbar {
        margin-top: 9px;
    }

    .gig-market-filter {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 9px;
        border-radius: 14px;
    }

    .gig-market-filter input,
    .gig-market-filter select {
        min-height: 36px;
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .gig-market-filter__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gig-market-filter__actions .btn {
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 9px;
        font-size: 0.68rem;
    }

    .gig-market-stats {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .gig-market-stats::-webkit-scrollbar {
        display: none;
    }

    .gig-market-stats span {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 5px 8px;
        font-size: 0.66rem;
    }

    .gig-market-category-strip {
        padding: 10px;
        border-radius: 14px;
    }

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

    .gig-market-card__body {
        gap: 6px;
        padding: 9px;
    }

    .gig-market-card__seller {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 6px;
    }

    .gig-market-card__avatar {
        width: 24px;
        height: 24px;
        font-size: 0.66rem;
    }

    .gig-market-card__seller strong {
        font-size: 0.7rem;
    }

    .gig-market-card__seller small {
        font-size: 0.58rem;
    }

    .gig-market-card__title {
        min-height: 2.46em;
        font-size: 0.78rem;
    }

    .gig-market-card__summary,
    .gig-market-card__chips {
        display: none;
    }

    .gig-market-card__rating {
        font-size: 0.68rem;
    }

    .gig-market-card__footer {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-top: 7px;
    }

    .gig-market-card__quote {
        width: 100%;
        min-height: 30px;
        padding: 6px 8px;
        font-size: 0.66rem;
    }

    .gig-market-card__price {
        justify-items: start;
    }

    .gig-market-card__price strong {
        font-size: 0.78rem;
    }

    .gig-marketplace-hero {
        gap: 9px;
        margin-top: 10px;
    }

    .gig-marketplace-breadcrumbs {
        font-size: 0.68rem;
    }

    .gig-marketplace-main {
        gap: 9px;
    }

    .gig-marketplace-main h1 {
        font-size: clamp(1.6rem, 8vw, 2.25rem);
    }

    .gig-marketplace-seller__avatar {
        width: 36px;
        height: 36px;
    }

    .gig-marketplace-intro {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .gig-marketplace-media,
    .gig-marketplace-media .product-detail-gallery,
    .gig-marketplace-media__single,
    .gig-marketplace-media__placeholder {
        border-radius: 14px;
    }

    .gig-marketplace-order-card {
        gap: 9px;
        padding: 12px;
        border-radius: 14px;
    }

    .gig-marketplace-order-card__head strong {
        font-size: 1rem;
    }

    .gig-marketplace-order-card h2 {
        font-size: 0.94rem;
    }

    .gig-marketplace-package-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .gig-marketplace-package-strip a {
        padding: 7px 6px;
    }

    .gig-marketplace-order-card__actions .btn {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .gig-market-grid.card-grid.three {
        grid-template-columns: minmax(0, 1fr);
    }

    .gig-market-card__media {
        aspect-ratio: 16 / 8.6;
    }

    .gig-marketplace-order-card__actions,
    .gig-marketplace-mini-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .gig-marketplace-package-strip {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*
 * Interactive Fiverr-style gig package selector.
 */
.gig-marketplace-order-card[data-gig-package-card] {
    gap: 12px;
    max-height: calc(100dvh - 112px);
    overflow: hidden;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__head {
    padding-bottom: 0;
    border-bottom: 0;
}

.gig-marketplace-package-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(202, 217, 216, 0.98);
    border-radius: 13px 13px 0 0;
    background: #f8fbfb;
}

.gig-marketplace-package-tabs--1 {
    grid-template-columns: minmax(0, 1fr);
}

.gig-marketplace-package-tabs--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gig-marketplace-package-tab {
    position: relative;
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 54px;
    padding: 9px 7px;
    border: 0;
    border-right: 1px solid rgba(202, 217, 216, 0.8);
    border-radius: 0;
    background: #ffffff;
    color: #6b7280;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.gig-marketplace-package-tab:last-child {
    border-right: 0;
}

.gig-marketplace-package-tab span,
.gig-marketplace-package-tab strong {
    min-width: 0;
    overflow: hidden;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.gig-marketplace-package-tab span {
    display: -webkit-box;
    color: inherit;
    font-size: 0.73rem;
    font-weight: 950;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gig-marketplace-package-tab strong {
    display: block;
    color: #108a00;
    font-size: 0.66rem;
    font-weight: 900;
    white-space: nowrap;
}

.gig-marketplace-package-tab.is-active {
    z-index: 1;
    background: #ffffff;
    color: #111827;
    box-shadow: inset 0 -3px 0 #111827, 0 0 0 1px #111827;
}

.gig-marketplace-package-tab:focus-visible {
    z-index: 2;
    outline: none;
    box-shadow: var(--ring), inset 0 -3px 0 #111827;
}

.gig-marketplace-package-panels {
    min-height: 0;
    border: 1px solid rgba(202, 217, 216, 0.98);
    border-top: 0;
    background: #ffffff;
}

.gig-marketplace-package-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
}

.gig-marketplace-package-panel[hidden] {
    display: none;
}

.gig-marketplace-package-title {
    display: grid;
    gap: 4px;
    padding: 13px 14px 9px;
}

.gig-marketplace-package-title h2 {
    margin: 0;
    color: #1f2933;
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    line-height: 1.08;
}

.gig-marketplace-package-title > strong {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.08;
}

.gig-marketplace-package-scroll {
    max-height: min(286px, 38dvh);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 14px 10px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(17, 24, 39, 0.42) rgba(232, 240, 239, 0.82);
    scrollbar-width: thin;
}

.gig-marketplace-package-scroll::-webkit-scrollbar {
    width: 7px;
}

.gig-marketplace-package-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(232, 240, 239, 0.82);
}

.gig-marketplace-package-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.42);
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list li {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 30px;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list li::before {
    content: "";
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin-top: 0.47em;
    border-radius: 999px;
    background: #111827;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list strong {
    color: #4b5563;
    font-size: 0.76rem;
    letter-spacing: 0;
    text-transform: none;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list span {
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
}

.gig-marketplace-package-offer,
.gig-marketplace-package-features {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    color: #4b5563;
    font-size: 0.78rem;
    line-height: 1.45;
}

.gig-marketplace-package-offer strong,
.gig-marketplace-package-features strong {
    color: #263238;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gig-marketplace-package-offer p,
.gig-marketplace-package-features p {
    margin: 0;
    color: #4b5563;
}

.gig-marketplace-package-features ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 1.05rem;
}

.gig-marketplace-selected-total {
    display: grid;
    gap: 4px;
    padding: 11px 14px 13px;
    border-top: 1px solid rgba(202, 217, 216, 0.86);
    background: #f6f8fa;
}

.gig-marketplace-selected-total span {
    color: #66758a;
    font-size: 0.64rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gig-marketplace-selected-total strong {
    color: #111827;
    font-size: 1.45rem;
    line-height: 1.05;
}

.gig-marketplace-selected-total small {
    color: #5f6f7b;
    font-size: 0.72rem;
    font-weight: 750;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions {
    grid-template-columns: 1fr;
    gap: 8px;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions .btn {
    min-height: 40px;
    border-radius: 11px;
    font-size: 0.76rem;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions .btn-primary {
    background: #111827;
    color: #ffffff;
}

.gig-market-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(10, 22, 30, 0.16));
    pointer-events: none;
}

.gig-market-card__body {
    grid-template-rows: auto auto auto auto auto;
}

body.home .gig-market-card__summary,
.gig-archive-layout .gig-market-card__summary,
.gig-detail-card .gig-market-card__summary {
    -webkit-line-clamp: 2;
}

body.home .gig-market-card__media {
    aspect-ratio: 16 / 9;
}

@media (max-width: 960px) {
    .gig-marketplace-order-card[data-gig-package-card] {
        max-height: none;
    }

    .gig-marketplace-package-scroll {
        max-height: min(248px, 34dvh);
    }
}

@media (max-width: 760px) {
    .gig-marketplace-order-card[data-gig-package-card] {
        gap: 8px;
        padding: 10px;
    }

    .gig-marketplace-package-tabs {
        border-radius: 12px 12px 0 0;
    }

    .gig-marketplace-package-tab {
        min-height: 48px;
        padding: 7px 5px;
    }

    .gig-marketplace-package-tab span {
        font-size: 0.66rem;
    }

    .gig-marketplace-package-tab strong {
        font-size: 0.58rem;
    }

    .gig-marketplace-package-title {
        padding: 10px 11px 7px;
    }

    .gig-marketplace-package-title h2 {
        font-size: 1rem;
    }

    .gig-marketplace-package-title > strong {
        font-size: 1.12rem;
    }

    .gig-marketplace-package-scroll {
        max-height: min(218px, 36dvh);
        padding: 0 11px 8px;
    }

    .gig-marketplace-package-scroll .gig-marketplace-scope-list li {
        gap: 7px;
        padding: 4px 0;
    }

    .gig-marketplace-package-scroll .gig-marketplace-scope-list strong,
    .gig-marketplace-package-scroll .gig-marketplace-scope-list span,
    .gig-marketplace-package-offer,
    .gig-marketplace-package-features {
        font-size: 0.7rem;
    }

    .gig-marketplace-selected-total {
        padding: 9px 11px 10px;
    }

    .gig-marketplace-selected-total strong {
        font-size: 1.16rem;
    }

    .gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions {
        gap: 7px;
    }

    .gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions .btn {
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 10px;
        font-size: 0.68rem;
    }

    .gig-market-card {
        border-radius: 13px;
    }

    .gig-market-card__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 430px) {
    .gig-marketplace-package-tab span {
        -webkit-line-clamp: 2;
    }

    .gig-marketplace-package-scroll {
        max-height: 206px;
    }

    .gig-market-card__body {
        padding: 8px;
    }
}

/*
 * Premium compact gig refinement.
 * A cooler blue/teal layer improves hierarchy while keeping Fiverr-style
 * package choices, cards, and mobile views compact and readable.
 */
:root {
    --gig-blue-ink: #0c1f33;
    --gig-blue: #1261a6;
    --gig-blue-deep: #071827;
    --gig-teal: #12a37f;
    --gig-line: #d9e5ec;
    --gig-soft-blue: #eef7ff;
    --gig-glow: 0 18px 44px rgba(7, 24, 39, 0.12);
}

.gig-marketplace-hero {
    padding-top: clamp(6px, 1vw, 12px);
}

.gig-marketplace-breadcrumbs {
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(217, 229, 236, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(7, 24, 39, 0.055);
}

.gig-marketplace-main {
    padding: clamp(15px, 2vw, 22px);
    border: 1px solid rgba(217, 229, 236, 0.94);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(238, 247, 255, 0.94) 58%, rgba(239, 250, 247, 0.9)),
        radial-gradient(circle at 100% 0, rgba(18, 97, 166, 0.14), transparent 32%),
        radial-gradient(circle at 0 100%, rgba(18, 163, 127, 0.12), transparent 34%);
    box-shadow: var(--gig-glow);
}

.gig-marketplace-main h1 {
    color: var(--gig-blue-ink);
    font-size: clamp(1.86rem, 3.6vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.gig-marketplace-kicker {
    gap: 6px;
}

.gig-marketplace-kicker span,
.gig-marketplace-tags span,
.gig-marketplace-tags .term-pill {
    min-height: 27px;
    padding: 6px 9px;
    border: 1px solid rgba(18, 97, 166, 0.1);
    background: rgba(238, 247, 255, 0.92);
    color: #0f5b95;
    box-shadow: none;
}

.gig-marketplace-kicker span:first-child {
    border-color: rgba(18, 163, 127, 0.18);
    background: rgba(237, 250, 247, 0.95);
    color: #08775f;
}

.gig-marketplace-seller {
    padding: 9px;
    border: 1px solid rgba(217, 229, 236, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.gig-marketplace-seller__avatar,
.gig-market-card__avatar {
    background: linear-gradient(135deg, var(--gig-blue), var(--gig-teal));
}

.gig-marketplace-rating {
    border: 1px solid rgba(255, 178, 63, 0.24);
    background: #fff8e7;
    color: #ad6508;
}

.gig-marketplace-intro {
    display: -webkit-box;
    overflow: hidden;
    color: #405665;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gig-marketplace-media {
    max-height: min(480px, 54vw);
    border-color: rgba(196, 213, 223, 0.96);
    background:
        linear-gradient(145deg, rgba(245, 250, 255, 0.98), rgba(239, 250, 247, 0.96)),
        #ffffff;
    box-shadow: 0 16px 34px rgba(7, 24, 39, 0.1);
}

.gig-marketplace-media__gallery,
.gig-marketplace-media__single {
    max-height: min(480px, 54vw);
}

.gig-marketplace-media img {
    object-fit: cover;
}

.gig-marketplace-order-card,
.gig-marketplace-order-card[data-gig-package-card] {
    border: 1px solid rgba(196, 213, 223, 0.98);
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff, #f7fbff 62%, #ffffff),
        radial-gradient(circle at 100% 0, rgba(18, 97, 166, 0.11), transparent 34%);
    box-shadow: 0 24px 58px rgba(7, 24, 39, 0.16);
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__head {
    align-items: center;
    min-height: 38px;
    padding: 0 2px;
}

.gig-marketplace-order-card__head span {
    color: var(--gig-blue-ink);
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: none;
}

.gig-marketplace-order-card__head strong[data-gig-package-price] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    max-width: 46%;
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(238, 247, 255, 0.96);
    color: var(--gig-blue);
    font-size: 0.8rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-marketplace-package-tabs {
    border-color: rgba(196, 213, 223, 0.98);
    border-radius: 15px 15px 0 0;
    background: #eef5fa;
}

.gig-marketplace-package-tab {
    min-height: 50px;
    border-right-color: rgba(196, 213, 223, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    color: #657282;
}

.gig-marketplace-package-tab strong {
    color: var(--gig-blue);
}

.gig-marketplace-package-tab.is-active {
    color: var(--gig-blue-ink);
    background:
        linear-gradient(180deg, #ffffff, #eef7ff),
        linear-gradient(135deg, rgba(18, 97, 166, 0.12), rgba(18, 163, 127, 0.1));
    box-shadow: inset 0 -3px 0 var(--gig-blue-deep), inset 0 0 0 1px rgba(7, 24, 39, 0.72);
}

.gig-marketplace-package-tab.is-active strong {
    color: #08775f;
}

.gig-marketplace-package-panels {
    border-color: rgba(196, 213, 223, 0.98);
    background: #ffffff;
}

.gig-marketplace-package-title {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 12px 13px 8px;
}

.gig-marketplace-package-title h2 {
    color: var(--gig-blue-ink);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.gig-marketplace-package-title > strong {
    color: var(--gig-blue);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    white-space: nowrap;
}

.gig-marketplace-package-scroll {
    max-height: min(248px, 34dvh);
    padding: 0 13px 9px;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list {
    gap: 0;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list li {
    display: grid;
    grid-template-columns: 8px minmax(70px, 0.66fr) minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    min-height: 26px;
    padding: 4px 0;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list li::before {
    margin-top: 0.46em;
    background: linear-gradient(135deg, var(--gig-blue), var(--gig-teal));
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list strong {
    color: #2f4354;
    font-size: 0.72rem;
    font-weight: 900;
}

.gig-marketplace-package-scroll .gig-marketplace-scope-list span {
    color: #4f6070;
    font-size: 0.72rem;
}

.gig-marketplace-package-offer,
.gig-marketplace-package-features {
    gap: 5px;
    margin-top: 8px;
    padding: 9px;
    border: 1px solid rgba(217, 229, 236, 0.9);
    border-radius: 11px;
    background: rgba(247, 251, 255, 0.82);
    color: #465b6d;
    font-size: 0.73rem;
}

.gig-marketplace-package-features ul {
    gap: 5px;
}

.gig-marketplace-selected-total {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3px 10px;
    padding: 10px 13px;
    border-top-color: rgba(196, 213, 223, 0.86);
    background:
        linear-gradient(135deg, #eef7ff, #f5fbff 58%, #edf9f5);
}

.gig-marketplace-selected-total span,
.gig-marketplace-selected-total small {
    grid-column: 1;
}

.gig-marketplace-selected-total strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--gig-blue-ink);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    text-align: right;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions {
    gap: 7px;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions .btn {
    min-height: 38px;
    border-radius: 12px;
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions .btn-primary {
    background: linear-gradient(135deg, var(--gig-blue-deep), #0d2f52);
    box-shadow: 0 12px 24px rgba(7, 24, 39, 0.16);
}

.gig-marketplace-order-card[data-gig-package-card] .gig-marketplace-order-card__actions .btn-outline {
    border-color: rgba(18, 97, 166, 0.22);
    color: #123855;
    box-shadow: none;
}

.gig-market-card,
body:not(.alkemist-editor-session) .site-main .gig-market-card {
    border-color: rgba(196, 213, 223, 0.96);
    border-radius: 15px;
    background:
        linear-gradient(180deg, #ffffff, #f9fcff),
        radial-gradient(circle at 100% 0, rgba(18, 97, 166, 0.08), transparent 34%);
}

.gig-market-card__media {
    aspect-ratio: 16 / 9.4;
    background:
        linear-gradient(135deg, rgba(238, 247, 255, 0.96), rgba(237, 250, 247, 0.9));
}

.gig-market-card__badge {
    border: 1px solid rgba(18, 97, 166, 0.12);
    color: var(--gig-blue);
}

.gig-market-card__body {
    gap: 7px;
    padding: 11px;
}

.gig-market-card__title {
    min-height: 2.42em;
    font-size: 0.86rem;
}

.gig-market-card__summary {
    min-height: 2.7em;
    color: #5c6f7c;
    font-size: 0.72rem;
}

.gig-market-card__chips span {
    background: rgba(238, 247, 255, 0.94);
    color: #0f5b95;
}

.gig-market-card__quote {
    background: linear-gradient(135deg, var(--gig-blue), var(--gig-teal));
    box-shadow: 0 8px 17px rgba(18, 97, 166, 0.18);
}

.gig-market-card__price strong {
    color: var(--gig-blue-ink);
}

@media (min-width: 1180px) {
    .gig-marketplace-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 372px);
        gap: 16px;
    }
}

@media (max-width: 960px) {
    .gig-marketplace-main {
        padding: 13px;
        border-radius: 18px;
    }

    .gig-marketplace-media,
    .gig-marketplace-media__gallery,
    .gig-marketplace-media__single {
        max-height: none;
    }

    .gig-marketplace-package-scroll {
        max-height: min(232px, 34dvh);
    }
}

@media (max-width: 760px) {
    .gig-marketplace-hero {
        padding-top: 5px;
    }

    .gig-marketplace-breadcrumbs {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 0.64rem;
    }

    .gig-marketplace-main {
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
    }

    .gig-marketplace-main h1 {
        font-size: clamp(1.42rem, 7.2vw, 2rem);
        line-height: 1.05;
    }

    .gig-marketplace-kicker span,
    .gig-marketplace-tags span,
    .gig-marketplace-tags .term-pill {
        min-height: 25px;
        padding: 5px 8px;
        font-size: 0.58rem;
    }

    .gig-marketplace-seller {
        gap: 7px;
        padding: 7px;
        border-radius: 13px;
    }

    .gig-marketplace-seller__copy strong {
        font-size: 0.78rem;
    }

    .gig-marketplace-seller__copy small,
    .gig-marketplace-rating {
        font-size: 0.66rem;
    }

    .gig-marketplace-intro {
        font-size: 0.78rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .gig-marketplace-order-card__head strong[data-gig-package-price] {
        max-width: 50%;
        min-height: 28px;
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .gig-marketplace-package-title {
        padding: 9px 10px 6px;
    }

    .gig-marketplace-package-title h2 {
        font-size: 0.96rem;
    }

    .gig-marketplace-package-title > strong {
        font-size: 0.96rem;
    }

    .gig-marketplace-package-scroll {
        max-height: 194px;
        padding: 0 10px 7px;
    }

    .gig-marketplace-package-scroll .gig-marketplace-scope-list li {
        grid-template-columns: 7px minmax(62px, 0.6fr) minmax(0, 1fr);
        gap: 6px;
        min-height: 24px;
    }

    .gig-marketplace-package-scroll .gig-marketplace-scope-list strong,
    .gig-marketplace-package-scroll .gig-marketplace-scope-list span,
    .gig-marketplace-package-offer,
    .gig-marketplace-package-features {
        font-size: 0.66rem;
    }

    .gig-marketplace-selected-total {
        padding: 8px 10px;
    }

    .gig-market-grid.card-grid.three,
    body.home .card-grid.three:has(.gig-market-card),
    .gig-detail-card .card-grid.three:has(.gig-market-card) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .gig-market-card__media {
        aspect-ratio: 16 / 9.8;
    }

    .gig-market-card__body {
        gap: 5px;
        padding: 8px;
    }

    .gig-market-card__title {
        font-size: 0.74rem;
        line-height: 1.23;
    }

    .gig-market-card__seller small,
    .gig-market-card__summary,
    .gig-market-card__chips {
        display: none;
    }

    .gig-market-card__footer {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .gig-market-card__quote {
        min-height: 29px;
        font-size: 0.62rem;
    }

    .gig-market-card__price strong {
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .gig-market-grid.card-grid.three,
    body.home .card-grid.three:has(.gig-market-card),
    .gig-detail-card .card-grid.three:has(.gig-market-card) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .gig-marketplace-package-scroll {
        max-height: 184px;
    }
}

/*
 * Single gig mobile order and stable section tabs.
 * Keeps mobile reading order as title/media, package selector, then details.
 */
.gig-detail-card {
    overflow: visible;
}

.gig-detail-card > .detail-section-nav {
    position: sticky;
    top: 92px;
    z-index: 28;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: -4px -4px 18px;
    padding: 8px;
    border: 1px solid rgba(196, 213, 223, 0.98);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 14px 30px rgba(7, 24, 39, 0.09);
    backdrop-filter: blur(14px);
}

.gig-detail-card > .detail-section-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid rgba(18, 97, 166, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 249, 252, 0.96));
    color: #064765;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.gig-detail-card > .detail-section-nav a:hover,
.gig-detail-card > .detail-section-nav a:focus-visible {
    border-color: rgba(18, 97, 166, 0.3);
    background: linear-gradient(135deg, var(--gig-blue), var(--gig-teal));
    color: #ffffff;
}

.gig-detail-card > :where(section, .info-section) {
    scroll-margin-top: 154px;
}

@media (min-width: 1180px) {
    .gig-detail-card > .detail-section-nav {
        top: 98px;
    }
}

@media (max-width: 960px) {
    .gig-marketplace-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gig-marketplace-main {
        order: 1;
    }

    .gig-marketplace-order-card,
    .gig-marketplace-order-card[data-gig-package-card] {
        order: 2;
    }

    .gig-detail-card > .detail-section-nav {
        top: 10px;
    }
}

@media (max-width: 760px) {
    .gig-marketplace-grid {
        gap: 9px;
    }

    .gig-marketplace-main {
        order: 1;
    }

    .gig-marketplace-order-card,
    .gig-marketplace-order-card[data-gig-package-card] {
        order: 2;
    }

    .gig-detail-card > .detail-section-nav {
        position: static;
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0 0 10px;
        padding: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(7, 24, 39, 0.06);
        scrollbar-width: none;
    }

    .gig-detail-card > .detail-section-nav::-webkit-scrollbar {
        display: none;
    }

    .gig-detail-card > .detail-section-nav a {
        min-height: 30px;
        padding: 7px 10px;
        font-size: 0.64rem;
        white-space: nowrap;
    }

    .gig-detail-card > :where(section, .info-section) {
        scroll-margin-top: 18px;
    }
}

/*
 * Gig package checkout flow.
 * Opens directly under Continue so customers can sign in, create an account,
 * or finish the selected package request as a guest without leaving context.
 */
.gig-marketplace-order-anchor {
    position: relative;
    top: -96px;
    height: 0;
    overflow: hidden;
}

.gig-marketplace-order-notice,
.gig-marketplace-checkout-panel {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid rgba(206, 220, 224, 0.96);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 251, 0.97));
    box-shadow: 0 10px 22px rgba(7, 24, 39, 0.055);
}

.gig-marketplace-checkout-panel[hidden],
.gig-marketplace-guest-form[hidden] {
    display: none;
}

.gig-marketplace-order-notice--success {
    border-color: rgba(22, 133, 111, 0.24);
    background:
        linear-gradient(180deg, rgba(240, 251, 247, 0.99), rgba(255, 255, 255, 0.97));
}

.gig-marketplace-order-notice--warning {
    border-color: rgba(217, 119, 6, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 249, 236, 0.99), rgba(255, 255, 255, 0.97));
}

.gig-marketplace-order-notice strong,
.gig-marketplace-checkout-panel__intro strong {
    color: #0b1425;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.28;
}

.gig-marketplace-order-notice span,
.gig-marketplace-checkout-panel__intro span {
    color: #5f6b7a;
    font-size: 0.72rem;
    line-height: 1.45;
}

.gig-marketplace-checkout-panel__intro {
    display: grid;
    gap: 4px;
}

.gig-marketplace-checkout-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(18, 97, 166, 0.12);
    border-radius: 12px;
    background: rgba(239, 248, 252, 0.8);
}

.gig-marketplace-checkout-summary span {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.gig-marketplace-checkout-summary strong {
    min-width: 0;
    overflow: hidden;
    color: #0b1425;
    font-size: 0.82rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gig-marketplace-checkout-summary em {
    color: #1261a6;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

.gig-marketplace-checkout-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.gig-marketplace-checkout-actions .btn,
.gig-marketplace-guest-form .btn {
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.68rem;
    line-height: 1.14;
    text-align: center;
}

.gig-marketplace-guest-form {
    display: grid;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid rgba(206, 220, 224, 0.8);
}

.gig-marketplace-guest-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.gig-marketplace-guest-form label span {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.gig-marketplace-guest-form input,
.gig-marketplace-guest-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(206, 220, 224, 0.96);
    border-radius: 11px;
    background: #ffffff;
    color: #122632;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.gig-marketplace-guest-form textarea {
    min-height: 74px;
    resize: vertical;
}

.gig-marketplace-guest-form input:focus,
.gig-marketplace-guest-form textarea:focus {
    border-color: rgba(18, 97, 166, 0.38);
    box-shadow: var(--ring);
    outline: none;
}

@media (max-width: 760px) {
    .gig-marketplace-order-notice,
    .gig-marketplace-checkout-panel {
        gap: 7px;
        margin-top: 8px;
        padding: 10px;
        border-radius: 13px;
    }

    .gig-marketplace-checkout-actions {
        gap: 6px;
    }

    .gig-marketplace-checkout-actions .btn,
    .gig-marketplace-guest-form .btn {
        min-height: 34px;
        padding: 6px 7px;
        border-radius: 9px;
        font-size: 0.64rem;
    }

    .gig-marketplace-guest-form {
        gap: 7px;
    }
}

@media (max-width: 380px) {
    .gig-marketplace-checkout-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .gig-marketplace-checkout-summary em {
        white-space: normal;
    }

    .gig-marketplace-checkout-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .gig-marketplace-checkout-actions .btn {
        min-height: 32px;
        padding: 5px 6px;
        font-size: 0.6rem;
    }
}

/*
 * Client dashboard order flow.
 * Keeps quote requests, gig package orders, bids, and Woo orders readable in
 * the same client hub path.
 */
.client-login-access,
.client-hub-shell,
.client-account-overview {
    display: grid;
    gap: 16px;
}

.client-login-access {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
}

.client-login-access__hero {
    min-height: 100%;
}

.client-login-access__form {
    display: grid;
    gap: 12px;
}

.client-login-access__form form,
.client-login-access__form .login-username,
.client-login-access__form .login-password,
.client-login-access__form .login-remember,
.client-login-access__form .login-submit {
    display: grid;
    gap: 7px;
    margin: 0;
}

.client-login-access__form form {
    gap: 10px;
}

.client-login-access__form label {
    color: #536a76;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-login-access__form input[type="text"],
.client-login-access__form input[type="password"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(202, 217, 216, 0.98);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.client-login-access__form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    accent-color: var(--secondary);
}

.client-login-access__form .button,
.client-login-access__form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b4b60, #16856f);
    color: #ffffff;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.client-login-access__form .portal-note {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.client-hub-order-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.client-hub-order-card__actions {
    display: grid;
    justify-items: end;
    gap: 5px;
    min-width: 0;
}

.client-hub-order-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 8px;
    border: 1px solid rgba(11, 75, 96, 0.14);
    border-radius: 999px;
    background: rgba(239, 249, 246, 0.95);
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 900;
    text-decoration: none;
}

.client-record-kind {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(239, 248, 255, 0.94);
    color: #0f5b95;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1.1;
}

.client-package-summary-card,
.client-flow-card {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.client-package-summary-card__total {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 178, 63, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.client-package-summary-card__total span {
    color: #7a4a00;
    font-size: 0.64rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-package-summary-card__total strong {
    color: #0d2a37;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1;
}

.client-package-summary-card__features {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.client-package-summary-card__features li {
    position: relative;
    padding-left: 18px;
    color: #536a76;
    font-size: 0.82rem;
    line-height: 1.45;
}

.client-package-summary-card__features li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.client-flow-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.client-flow-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.86);
}

.client-flow-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(11, 75, 96, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 950;
}

.client-flow-step strong,
.client-flow-step small {
    display: block;
    min-width: 0;
}

.client-flow-step strong {
    color: #0d2a37;
    font-size: 0.76rem;
    line-height: 1.22;
}

.client-flow-step small {
    margin-top: 3px;
    color: #657986;
    font-size: 0.66rem;
    line-height: 1.34;
}

.client-flow-step.is-done {
    border-color: rgba(22, 133, 111, 0.2);
    background: rgba(239, 249, 246, 0.96);
}

.client-flow-step.is-done > span {
    background: var(--secondary);
    color: #ffffff;
}

.client-flow-step.is-active {
    border-color: rgba(255, 178, 63, 0.48);
    background: rgba(255, 249, 236, 0.96);
    box-shadow: 0 12px 24px rgba(255, 178, 63, 0.12);
}

.client-flow-step.is-active > span {
    background: linear-gradient(135deg, #ffc247, #ff8a2a);
    color: #10202a;
}

.client-hub-detail .detail-data-table-wrap,
.client-hub-form,
.client-hub-detail .quote-history-card {
    margin-top: 12px;
}

@media (max-width: 1180px) {
    .client-flow-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .client-login-access {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .client-flow-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .client-flow-step {
        padding: 9px;
    }

    .client-hub-order-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-hub-order-card__actions {
        justify-items: start;
    }
}

/*
 * Client login and compact full-screen dashboard.
 * Extends the editor-style workspace pattern to customer order, bid, quote,
 * and account activity management.
 */
body.alkemist-staff-login-page .portal-page-layout {
    width: min(1180px, calc(100vw - 24px));
}

body.alkemist-staff-login-page .portal-shell.login-choice-shell {
    min-height: calc(100dvh - 24px);
    padding: 12px 0 28px;
}

.login-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.login-choice-grid .login-card {
    max-width: none;
    min-width: 0;
}

.login-card--staff,
.login-card--client {
    position: relative;
    overflow: hidden;
}

.login-card--staff::before,
.login-card--client::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--info));
}

.login-card--client {
    border-color: rgba(37, 99, 235, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(255, 178, 63, 0.09), transparent 30%);
}

.login-card--client .eyebrow {
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(239, 248, 255, 0.96);
    color: #0f5b95;
}

.login-card--client h2 {
    color: #0f4f7f;
}

.login-card .portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-card .portal-actions .btn {
    flex: 1 1 150px;
    justify-content: center;
    min-width: 0;
}

.login-card .portal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.login-card .portal-links a {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page {
    width: 100% !important;
    max-width: none !important;
    padding-right: max(6px, env(safe-area-inset-right)) !important;
    padding-left: max(6px, env(safe-area-inset-left)) !important;
    padding-bottom: 8px !important;
}

body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
    gap: 8px;
    min-height: calc(100dvh - 12px);
    padding-top: 6px;
    padding-bottom: 8px;
}

body.alkemist-client-dashboard-page .customer-dashboard-app {
    grid-template-columns: minmax(224px, 286px) minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
    overflow: hidden !important;
}

body.alkemist-client-dashboard-page .customer-dashboard-sidebar,
body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-inner {
    max-height: calc(100dvh - 18px);
}

body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-inner {
    gap: 7px;
    padding-right: 4px;
    overflow: auto;
    overscroll-behavior: contain;
}

body.alkemist-client-dashboard-page .customer-dashboard-user-card {
    gap: 7px;
    padding: 10px;
    border-radius: 15px;
}

body.alkemist-client-dashboard-page .customer-dashboard-user-card .eyebrow,
body.alkemist-client-dashboard-page .customer-dashboard-user-card p,
body.alkemist-client-dashboard-page .customer-dashboard-user-card .dashboard-role-chiplist {
    display: none;
}

body.alkemist-client-dashboard-page .customer-dashboard-user-card h2 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.15;
}

body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-workspace-finder input {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 11px;
    font-size: 0.78rem;
}

body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-highlights {
    gap: 5px;
}

body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-highlights span {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    line-height: 1.25;
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-list {
    gap: 6px;
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 12px;
    box-shadow: 0 7px 16px rgba(9, 27, 39, 0.045);
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-copy strong {
    font-size: 0.76rem;
    line-height: 1.15;
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-copy small {
    font-size: 0.64rem;
    line-height: 1.28;
    -webkit-line-clamp: 1;
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-badge {
    align-self: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 0.64rem;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0 !important;
    height: calc(100dvh - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
    overflow: hidden !important;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(9, 27, 39, 0.07);
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-head {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    gap: 8px;
    padding: 8px 10px;
    border-bottom-color: rgba(216, 229, 227, 0.9);
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-head h2 {
    margin: 0;
    font-size: clamp(1rem, 1.15vw, 1.35rem);
    line-height: 1.12;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-head p {
    display: -webkit-box;
    max-width: 920px;
    overflow: hidden;
    color: #607381;
    font-size: 0.72rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .eyebrow {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 0.56rem;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools,
body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

body.alkemist-client-dashboard-page .customer-dashboard-command-action,
body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions .btn,
body.alkemist-client-dashboard-page .customer-dashboard-content .btn,
body.alkemist-client-dashboard-page .customer-dashboard-content .button,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 0.72rem !important;
    line-height: 1.15;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-body {
    min-height: 0;
    max-height: 100%;
    overflow: auto !important;
    overscroll-behavior: contain;
    gap: 8px;
    padding: 8px !important;
}

body.alkemist-client-dashboard-page .customer-dashboard-content {
    gap: 8px !important;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-account-overview,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-shell,
body.alkemist-client-dashboard-page .customer-dashboard-content .business-advisor-shell {
    gap: 8px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .portal-card,
body.alkemist-client-dashboard-page .customer-dashboard-content .portal-hero,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-hero,
body.alkemist-client-dashboard-page .customer-dashboard-content .business-advisor-hero,
body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-record-browser,
body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-editor-card,
body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-field-section {
    padding: 10px;
    border-radius: 12px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-layout {
    grid-template-columns: minmax(226px, 300px) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-list {
    max-height: calc(100dvh - 266px);
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-order-grid,
body.alkemist-client-dashboard-page .customer-dashboard-content .dashboard-stats-grid,
body.alkemist-client-dashboard-page .customer-dashboard-content .portal-grid {
    gap: 8px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metric,
body.alkemist-client-dashboard-page .customer-dashboard-content .dashboard-stat-card,
body.alkemist-client-dashboard-page .customer-dashboard-content .mini-card,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-order-card,
body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-record-item {
    padding: 9px;
    border-radius: 12px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .compact-heading {
    gap: 4px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .compact-heading h3,
body.alkemist-client-dashboard-page .customer-dashboard-content .section-heading h2,
body.alkemist-client-dashboard-page .customer-dashboard-content .portal-card h2,
body.alkemist-client-dashboard-page .customer-dashboard-content .portal-card h3,
body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-browser-head h3 {
    font-size: clamp(0.94rem, 1.15vw, 1.18rem);
    line-height: 1.18;
}

body.alkemist-client-dashboard-page .customer-dashboard-content p,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-card__summary,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-order-card__meta {
    font-size: 0.78rem;
    line-height: 1.48;
}

body.alkemist-client-dashboard-page .customer-dashboard-content input[type="text"],
body.alkemist-client-dashboard-page .customer-dashboard-content input[type="email"],
body.alkemist-client-dashboard-page .customer-dashboard-content input[type="tel"],
body.alkemist-client-dashboard-page .customer-dashboard-content input[type="url"],
body.alkemist-client-dashboard-page .customer-dashboard-content input[type="password"],
body.alkemist-client-dashboard-page .customer-dashboard-content input[type="search"],
body.alkemist-client-dashboard-page .customer-dashboard-content select {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
}

body.alkemist-client-dashboard-page .customer-dashboard-content textarea {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
}

@media (min-width: 1440px) {
    body.alkemist-client-dashboard-page .customer-dashboard-app {
        grid-template-columns: minmax(236px, 302px) minmax(0, 1fr) !important;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    body.alkemist-client-dashboard-page .customer-dashboard-app {
        grid-template-columns: minmax(210px, 252px) minmax(0, 1fr) !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head {
        grid-template-columns: minmax(0, 1fr);
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    body.alkemist-staff-login-page .portal-page-layout {
        width: min(100%, calc(100% - 14px));
    }

    .login-choice-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.alkemist-client-dashboard-page {
        overflow-x: hidden;
    }

    body.alkemist-client-dashboard-page .site-main,
    body.alkemist-client-dashboard-page .site-content,
    body.alkemist-client-dashboard-page .portal-page-wrapper,
    body.alkemist-client-dashboard-page .portal-page-layout,
    body.alkemist-client-dashboard-page .portal-shell,
    body.alkemist-client-dashboard-page .customer-dashboard-app,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-body,
    body.alkemist-client-dashboard-page .dashboard-mobile-bar,
    body.alkemist-client-dashboard-page .dashboard-mobile-strip,
    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: max(6px, env(safe-area-inset-right)) !important;
        padding-left: max(6px, env(safe-area-inset-left)) !important;
    }

    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
        min-height: 0;
        padding-top: 6px;
        padding-bottom: 26px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-app {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        width: 100%;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        border-radius: 16px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-body {
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-strip {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 7px;
        padding: 8px;
        border-radius: 15px;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-copy {
        min-width: 0;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-chip {
        flex: 0 0 auto;
        max-width: min(74vw, 240px);
        scroll-snap-align: start;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head p {
        display: none;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions {
        justify-content: flex-start;
        width: 100%;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-layout,
    body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-editor-shell,
    body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-field-grid,
    body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-field-grid.two,
    body.alkemist-client-dashboard-page .customer-dashboard-content .dashboard-overview-grid,
    body.alkemist-client-dashboard-page .customer-dashboard-content .dashboard-quick-link-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-list {
        max-height: none;
    }
}

@media (max-width: 640px) {
    body.alkemist-staff-login-page .portal-page-layout {
        width: min(100%, calc(100% - 10px));
    }

    body.alkemist-staff-login-page .portal-shell.login-choice-shell {
        padding: 6px 0 22px;
    }

    .login-choice-grid {
        gap: 8px;
    }

    .login-choice-grid .login-card {
        gap: 10px;
        padding: 14px;
        border-radius: 16px;
    }

    .login-card .portal-actions,
    .login-card .portal-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .login-card .portal-actions .btn {
        width: 100%;
    }

    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page {
        padding-right: max(4px, env(safe-area-inset-right)) !important;
        padding-left: max(4px, env(safe-area-inset-left)) !important;
    }

    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
        gap: 6px;
        padding-top: 5px;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-strip {
        padding: 7px;
        border-radius: 14px;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-copy span {
        font-size: 0.58rem;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-copy strong {
        font-size: 0.82rem;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-chip {
        min-height: 34px;
        max-width: min(72vw, 190px);
        padding: 7px 9px;
        border-radius: 12px;
        font-size: 0.72rem;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-body {
        padding: 8px !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head h2 {
        font-size: 1rem;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-command-action,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions .btn,
    body.alkemist-client-dashboard-page .customer-dashboard-content .btn,
    body.alkemist-client-dashboard-page .customer-dashboard-content .button,
    body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Button {
        flex: 1 1 calc(50% - 6px);
        max-width: none;
        min-height: 36px !important;
        padding: 7px 8px !important;
        font-size: 0.7rem !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .portal-card,
    body.alkemist-client-dashboard-page .customer-dashboard-content .portal-hero,
    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-hero,
    body.alkemist-client-dashboard-page .customer-dashboard-content .business-advisor-hero,
    body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-record-browser,
    body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-editor-card,
    body.alkemist-client-dashboard-page .customer-dashboard-content .frontend-field-section {
        padding: 9px;
        border-radius: 12px;
    }
}

@media (max-width: 430px) {
    body.alkemist-client-dashboard-page .customer-dashboard-command-button {
        width: 38px;
        min-width: 38px;
        padding: 0;
        gap: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-command-button span:not(.dashboard-command-icon) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions .btn,
    body.alkemist-client-dashboard-page .customer-dashboard-command-action {
        flex-basis: calc(50% - 5px);
        min-height: 34px !important;
        padding: 6px 7px !important;
        border-radius: 9px !important;
        font-size: 0.66rem !important;
    }
}

/*
 * Client submission and dashboard action finish.
 * Adds a direct dashboard path after requests are sent and keeps account
 * navigation compact with icon-led tabs on desktop and mobile.
 */
.client-submit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.portal-message .client-submit-actions,
.gig-marketplace-order-notice .client-submit-actions {
    margin-top: 5px;
}

.client-dashboard-cta,
.client-submit-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
}

.client-dashboard-cta .dashboard-command-icon,
.client-submit-actions .dashboard-command-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.client-dashboard-cta .dashboard-command-icon svg,
.client-submit-actions .dashboard-command-icon svg {
    width: 15px;
    height: 15px;
}

.client-submit-actions__note {
    max-width: 420px;
    color: #607481;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
}

body.alkemist-client-dashboard-page .dashboard-nav-icon,
body.alkemist-client-dashboard-page .dashboard-mobile-chip__icon,
body.alkemist-client-dashboard-page .dashboard-command-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

body.alkemist-client-dashboard-page .dashboard-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(13, 68, 87, 0.08);
    color: var(--secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.alkemist-client-dashboard-page .dashboard-nav-item:hover .dashboard-nav-icon,
body.alkemist-client-dashboard-page .dashboard-nav-item.is-active .dashboard-nav-icon {
    background: linear-gradient(180deg, rgba(13, 68, 87, 0.96), rgba(22, 133, 111, 0.94));
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 68, 87, 0.16);
}

body.alkemist-client-dashboard-page .dashboard-nav-icon svg,
body.alkemist-client-dashboard-page .dashboard-mobile-chip__icon svg,
body.alkemist-client-dashboard-page .dashboard-command-icon svg {
    width: 15px;
    height: 15px;
}

body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-copy {
    min-width: 0;
}

body.alkemist-client-dashboard-page .dashboard-mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.alkemist-client-dashboard-page .dashboard-mobile-chip span:not(.dashboard-mobile-chip__icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.alkemist-client-dashboard-page .dashboard-mobile-chip__icon {
    width: 16px;
    height: 16px;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions .btn,
body.alkemist-client-dashboard-page .customer-dashboard-command-action,
body.alkemist-client-dashboard-page .customer-dashboard-content .portal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metric {
    min-height: 74px;
}

@media (max-width: 760px) {
    .client-submit-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .client-submit-actions .btn,
    .client-dashboard-cta {
        width: 100%;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .client-submit-actions__note {
        max-width: none;
        font-size: 0.68rem;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.alkemist-client-dashboard-page .customer-dashboard-nav .dashboard-nav-item {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        min-height: 40px;
    }

    body.alkemist-client-dashboard-page .dashboard-nav-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }
}

@media (max-width: 430px) {
    body.alkemist-client-dashboard-page .dashboard-mobile-chip {
        max-width: min(70vw, 182px);
        padding-inline: 8px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics {
        gap: 7px;
    }
}

/*
 * Client dashboard smooth workspace parity.
 * Mirrors the editor dashboard rhythm for tabs, drawer navigation, scrolling,
 * and profile completion while keeping WooCommerce account forms compact.
 */
body.alkemist-client-dashboard-page {
    --client-dashboard-edge-gap: clamp(4px, 0.7vw, 10px);
    --client-dashboard-control-height: 34px;
}

body.alkemist-client-dashboard-page .customer-dashboard-shell,
body.alkemist-client-dashboard-page .customer-dashboard-workspace-body,
body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-inner,
body.alkemist-client-dashboard-page .dashboard-mobile-quicknav,
body.alkemist-client-dashboard-page .dashboard-workspace-tabbar__links {
    scroll-behavior: smooth;
}

body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-inner,
body.alkemist-client-dashboard-page .customer-dashboard-workspace-body,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-list {
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(11, 75, 96, 0.42) rgba(232, 240, 239, 0.92);
    scrollbar-width: thin;
}

body.alkemist-client-dashboard-page .dashboard-mobile-copy strong,
body.alkemist-client-dashboard-page .customer-dashboard-workspace-head h2 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

body.alkemist-client-dashboard-page .dashboard-mobile-copy strong > span:last-child,
body.alkemist-client-dashboard-page .customer-dashboard-workspace-head h2 > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.alkemist-client-dashboard-page .dashboard-active-icon,
body.alkemist-client-dashboard-page .dashboard-head-icon,
body.alkemist-client-dashboard-page .dashboard-workspace-tabbar__icon,
body.alkemist-client-dashboard-page .dashboard-workspace-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

body.alkemist-client-dashboard-page .dashboard-active-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

body.alkemist-client-dashboard-page .dashboard-head-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(13, 68, 87, 0.96), rgba(22, 133, 111, 0.94));
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(13, 68, 87, 0.13);
}

body.alkemist-client-dashboard-page .dashboard-active-icon svg,
body.alkemist-client-dashboard-page .dashboard-head-icon svg,
body.alkemist-client-dashboard-page .dashboard-workspace-tabbar__icon svg,
body.alkemist-client-dashboard-page .dashboard-workspace-tab__icon svg {
    width: 15px;
    height: 15px;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar {
    grid-column: 1 / -1;
    gap: 7px;
    padding: 6px;
    overflow: hidden;
    border-radius: 13px;
    box-shadow: 0 8px 16px rgba(9, 27, 39, 0.045);
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__active {
    max-width: 190px;
    padding: 6px 8px;
    border-radius: 11px;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__active small {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__active strong {
    font-size: 0.72rem;
    line-height: 1.15;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__links {
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__links::-webkit-scrollbar {
    display: none;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tab {
    flex: 0 0 auto;
    max-width: min(74vw, 220px);
    min-height: 30px;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    line-height: 1.15;
    scroll-snap-align: start;
    box-shadow: none;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tab span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tab.is-active {
    background: #fff6df;
    color: #6f4800;
    box-shadow: inset 0 0 0 1px rgba(255, 183, 3, 0.34);
}

body.alkemist-client-dashboard-page .client-profile-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
    gap: 10px;
    align-items: center;
}

body.alkemist-client-dashboard-page .client-profile-panel__copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

body.alkemist-client-dashboard-page .client-profile-panel__copy h3,
body.alkemist-client-dashboard-page .client-profile-panel__copy p {
    margin: 0;
}

body.alkemist-client-dashboard-page .client-profile-panel__meter {
    display: grid;
    gap: 5px;
    min-width: 112px;
    padding: 9px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.9);
}

body.alkemist-client-dashboard-page .client-profile-panel__meter strong {
    color: var(--secondary);
    font-size: 1.18rem;
    line-height: 1;
}

body.alkemist-client-dashboard-page .client-profile-panel__meter span {
    color: #657986;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.alkemist-client-dashboard-page .client-profile-panel__bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 68, 87, 0.1);
}

body.alkemist-client-dashboard-page .client-profile-panel__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

body.alkemist-client-dashboard-page .client-profile-panel--17 .client-profile-panel__bar span {
    width: 17%;
}

body.alkemist-client-dashboard-page .client-profile-panel--20 .client-profile-panel__bar span {
    width: 20%;
}

body.alkemist-client-dashboard-page .client-profile-panel--33 .client-profile-panel__bar span {
    width: 33%;
}

body.alkemist-client-dashboard-page .client-profile-panel--40 .client-profile-panel__bar span {
    width: 40%;
}

body.alkemist-client-dashboard-page .client-profile-panel--50 .client-profile-panel__bar span {
    width: 50%;
}

body.alkemist-client-dashboard-page .client-profile-panel--60 .client-profile-panel__bar span {
    width: 60%;
}

body.alkemist-client-dashboard-page .client-profile-panel--67 .client-profile-panel__bar span {
    width: 67%;
}

body.alkemist-client-dashboard-page .client-profile-panel--80 .client-profile-panel__bar span {
    width: 80%;
}

body.alkemist-client-dashboard-page .client-profile-panel--83 .client-profile-panel__bar span {
    width: 83%;
}

body.alkemist-client-dashboard-page .client-profile-panel--100 .client-profile-panel__bar span {
    width: 100%;
}

body.alkemist-client-dashboard-page .client-profile-panel__missing,
body.alkemist-client-dashboard-page .client-profile-panel__actions {
    grid-column: 1 / -1;
}

body.alkemist-client-dashboard-page .client-profile-panel__missing {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.alkemist-client-dashboard-page .client-profile-panel__missing span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 178, 63, 0.24);
    border-radius: 999px;
    background: rgba(255, 249, 236, 0.96);
    color: #7a4a00;
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1.2;
}

body.alkemist-client-dashboard-page .client-profile-panel__missing--complete span {
    border-color: rgba(22, 133, 111, 0.2);
    background: rgba(239, 249, 246, 0.96);
    color: var(--secondary);
}

body.alkemist-client-dashboard-page .client-profile-panel__actions {
    justify-content: flex-start;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-address-fields,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Addresses {
    display: grid;
    gap: 10px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm fieldset {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 13px;
    background: rgba(248, 251, 251, 0.86);
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm fieldset legend {
    padding: 0 6px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 900;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .form-row,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-form-row,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-address-fields__field-wrapper p {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .form-row-wide,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm > p:last-child,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm fieldset .form-row-wide {
    grid-column: 1 / -1;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Address {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(216, 229, 227, 0.92);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Address-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Address-title h2,
body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-column__title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.18;
}

body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-Address-title a {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(11, 75, 96, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 850;
    text-decoration: none;
}

body.alkemist-client-dashboard-page .customer-dashboard-content address {
    color: #607481;
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 991px) {
    body.alkemist-client-dashboard-page .dashboard-mobile-bar {
        position: sticky;
        top: max(5px, env(safe-area-inset-top));
        z-index: 98;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 135;
        display: grid !important;
        width: min(360px, 86vw) !important;
        max-width: calc(100vw - 28px) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        overflow: hidden !important;
        border-radius: 0 22px 22px 0 !important;
        background: rgba(248, 251, 251, 0.98);
        box-shadow: 24px 0 64px rgba(7, 18, 25, 0.26);
        opacity: 1;
        visibility: visible;
        transform: translateX(calc(-100% - 20px));
        transition: transform 0.24s ease;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-inner {
        height: 100%;
        max-height: none;
        padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.alkemist-client-dashboard-page .dashboard-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 132;
        background: rgba(7, 18, 25, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    body.alkemist-client-dashboard-page.dashboard-sidebar-open .dashboard-sidebar-overlay,
    body.dashboard-sidebar-open.alkemist-client-dashboard-page .dashboard-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar {
        margin-right: -2px;
        margin-left: -2px;
        padding: 5px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__active {
        display: none;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tab {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 0.66rem;
    }

    body.alkemist-client-dashboard-page .client-profile-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    body.alkemist-client-dashboard-page .client-profile-panel__meter {
        min-width: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm,
    body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-EditAccountForm fieldset,
    body.alkemist-client-dashboard-page .customer-dashboard-content .woocommerce-address-fields__field-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        align-items: stretch;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-command-action,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions .btn {
        width: 100%;
    }

    body.alkemist-client-dashboard-page .client-profile-panel__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    body.alkemist-client-dashboard-page .client-profile-panel__actions .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    body.alkemist-client-dashboard-page .dashboard-active-icon,
    body.alkemist-client-dashboard-page .dashboard-head-icon {
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tab {
        max-width: min(72vw, 190px);
    }

    body.alkemist-client-dashboard-page .client-profile-panel__actions,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*
 * Client hub full-viewport workspace finish.
 * Locks the client dashboard to the screen edges on desktop and gives the hub
 * list/detail panes independent, smooth scrolling.
 */
body.alkemist-client-dashboard-page .dashboard-mobile-quicknav,
body.alkemist-client-dashboard-page .dashboard-workspace-tabbar__links {
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

body.alkemist-client-dashboard-page .customer-dashboard-workspace-body,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-list,
body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-detail,
body.alkemist-client-dashboard-page .customer-dashboard-content .quote-thread-list--compact {
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
    body.alkemist-client-dashboard-page {
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .portal-page-wrapper,
    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page,
    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell,
    body.alkemist-client-dashboard-page .customer-dashboard-app,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
        gap: 0;
        height: 100dvh;
        min-height: 100dvh;
        padding: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-app {
        grid-template-columns: minmax(248px, 306px) minmax(0, 1fr) !important;
        gap: 0 !important;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow: hidden !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar {
        align-self: stretch;
        height: 100dvh;
        max-height: 100dvh;
        border-width: 0 1px 0 0;
        border-radius: 0 !important;
        box-shadow: none;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar .dashboard-sidebar-inner {
        max-height: 100dvh;
        padding: 10px 9px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        border-width: 0;
        border-radius: 0 !important;
        box-shadow: none;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head {
        position: relative;
        z-index: 20;
        padding: 8px 10px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 251, 0.97));
        box-shadow: 0 1px 0 rgba(216, 229, 227, 0.92);
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-body {
        min-height: 0;
        height: 100%;
        max-height: none;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content {
        display: grid;
        align-content: start;
        min-height: 100%;
        padding: 10px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content:has(.client-hub-layout) {
        height: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-shell:has(.client-hub-layout) {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100%;
        min-height: 0;
        padding: 8px;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-shell:has(.client-hub-layout) > .portal-message {
        margin: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-hero,
    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics,
    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-orders {
        min-height: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-hero {
        padding: 10px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-metrics .mini-card,
    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-order-card {
        min-height: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-layout {
        display: grid;
        flex: 1 1 auto;
        grid-template-columns: minmax(276px, 320px) minmax(0, 1fr);
        align-items: stretch;
        gap: 0 !important;
        min-height: 0;
        height: 100%;
        overflow: hidden;
        border: 1px solid rgba(216, 229, 227, 0.92);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.76);
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-records,
    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-detail {
        min-height: 0;
        height: 100%;
        border: 0;
        box-shadow: none;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-records {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
        overflow: hidden;
        border-right: 1px solid rgba(216, 229, 227, 0.92);
        border-radius: 16px 0 0 16px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-list {
        min-height: 0;
        max-height: none !important;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 4px;
        touch-action: pan-y;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-detail {
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        touch-action: pan-y;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__links,
    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav {
        padding-bottom: 4px;
        scrollbar-color: rgba(11, 75, 96, 0.38) transparent;
        scrollbar-width: thin;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__links::-webkit-scrollbar,
    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__links::-webkit-scrollbar-track,
    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav::-webkit-scrollbar-track {
        background: transparent;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-tabbar .dashboard-workspace-tabbar__links::-webkit-scrollbar-thumb,
    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(11, 75, 96, 0.34);
    }
}

@media (min-width: 1281px) {
    body.alkemist-client-dashboard-page .customer-dashboard-app {
        grid-template-columns: minmax(258px, 316px) minmax(0, 1fr) !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-layout {
        grid-template-columns: minmax(292px, 340px) minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    body.alkemist-client-dashboard-page .customer-dashboard-content:has(.client-hub-layout) {
        min-height: 0;
        padding: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-shell:has(.client-hub-layout) {
        gap: 7px;
        padding: 7px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        overflow: visible;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-records {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 0;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-record-list {
        max-height: min(52dvh, 460px) !important;
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 3px;
        touch-action: pan-y;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-content .client-hub-detail {
        overflow: visible;
    }
}

/*
 * Mobile client dashboard app shell.
 * When a client is signed in, remove the public site chrome and let the
 * dashboard workspace own the viewport like a standalone mobile app.
 */
@media (max-width: 991px) {
    body.alkemist-client-dashboard-page {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .site-header,
    body.alkemist-client-dashboard-page .site-footer,
    body.alkemist-client-dashboard-page .header-search-overlay,
    body.alkemist-client-dashboard-page .mobile-panel-overlay {
        display: none !important;
    }

    body.alkemist-client-dashboard-page .site-main,
    body.alkemist-client-dashboard-page .portal-page-wrapper,
    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page,
    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell,
    body.alkemist-client-dashboard-page .customer-dashboard-app,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    body.alkemist-client-dashboard-page .site-main,
    body.alkemist-client-dashboard-page .portal-page-wrapper,
    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page,
    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .portal-page-layout.commerce-account-dashboard-page {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
        gap: 0;
        padding: 0 !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-app {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr);
        gap: 0 !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace {
        min-height: 0;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-body {
        min-height: 0;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 98;
        margin: 0;
    }
}

/*
 * Client CMS mobile controls.
 * Keeps account navigation in the drawer so the workspace is not crowded by
 * duplicate tab rows and quick-open controls on small screens.
 */
body.alkemist-client-dashboard-page .customer-dashboard-sidebar-actions {
    display: none;
}

@media (max-width: 991px) {
    body.alkemist-client-dashboard-page .portal-shell.customer-dashboard-shell {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-bar {
        display: grid;
        grid-row: 1;
        gap: 0;
        padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) 6px max(6px, env(safe-area-inset-left));
        background: rgba(237, 243, 244, 0.98);
        box-shadow: 0 1px 0 rgba(216, 229, 227, 0.9);
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-strip {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 7px;
        align-items: center;
        padding: 7px;
        border-radius: 15px;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-strip .sidebar-mobile-toggle {
        order: 1;
        width: auto;
        min-width: 44px;
        min-height: 40px;
        padding: 0 12px;
        white-space: nowrap;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-copy {
        order: 2;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-command-button {
        order: 3;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-quicknav,
    body.alkemist-client-dashboard-page .customer-dashboard-tabbar {
        display: none !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-app {
        grid-row: 2;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace,
    body.alkemist-client-dashboard-page .customer-dashboard-workspace-card {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 8px;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-command-action {
        display: none !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .portal-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar-actions {
        display: grid;
        gap: 8px;
        padding: 9px;
        border: 1px solid rgba(216, 229, 227, 0.92);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.72);
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar-actions .dashboard-nav-label {
        padding-left: 0;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar-actions .portal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-sidebar-actions .btn {
        width: 100%;
        justify-content: flex-start;
        min-height: 34px !important;
        padding: 7px 9px !important;
        border-radius: 10px !important;
        font-size: 0.7rem !important;
    }

    body.alkemist-client-dashboard-page .customer-dashboard-workspace-head .dashboard-head-tools > .portal-actions {
        display: none !important;
    }
}

@media (max-width: 430px) {
    body.alkemist-client-dashboard-page .dashboard-mobile-strip {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-strip .sidebar-mobile-toggle {
        width: 40px;
        min-width: 40px;
        padding: 0;
        font-size: 0;
    }

    body.alkemist-client-dashboard-page .dashboard-mobile-strip .sidebar-mobile-toggle::before {
        margin-right: 0;
    }
}

/*
 * Runtime speed guardrails.
 * Keep expensive paint work away from app-style dashboards and let long public
 * pages skip off-screen layout until the visitor scrolls near it.
 */
body.alkemist-editor-session,
body.alkemist-client-dashboard-page {
    background:
        linear-gradient(180deg, rgba(237, 243, 244, 0.97), rgba(246, 250, 250, 0.99)),
        #edf3f4;
}

@supports (content-visibility: auto) {
    body:not(.alkemist-editor-session) .site-main :where(
        .home-section:nth-of-type(n+3),
        .archive-library-section,
        .archive-linked-product-grid,
        .info-section,
        .related.products,
        .upsells.products,
        .client-chat-panel,
        .client-chat-dashboard,
        .staff-chat-workspace
    ) {
        content-visibility: auto;
        contain-intrinsic-size: 1px 560px;
    }

    body.alkemist-editor-session :where(
        .dashboard-overview-grid,
        .dashboard-record-grid,
        .portal-grid,
        .frontend-record-list,
        .internal-records-cards,
        .client-chat-record-list
    ) > * {
        content-visibility: auto;
        contain-intrinsic-size: 1px 180px;
    }
}

@media (max-width: 760px), (prefers-reduced-data: reduce) {
    body:not(.alkemist-editor-session):not(.alkemist-client-dashboard-page) {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 248, 0.98) 28%, rgba(238, 245, 244, 1) 100%),
            #eef5f4;
    }
}

@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .brand-tile:hover,
    .entry-card:hover,
    .page-card:hover,
    .resource-card:hover,
    .directory-product-card:hover,
    .alkemist-product-card:hover {
        transform: none;
    }
}

/*
 * Mixed gig media and tighter Woo product card finish.
 * Keeps gig previews useful for images, PDFs, and videos while preventing
 * WooCommerce product lists from becoming skinny two-up cards on phones.
 */
.alkemist-product-gallery__thumb-preview {
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1;
    place-items: center;
    gap: 3px;
    padding: 8px;
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(239, 248, 255, 0.98), rgba(239, 249, 246, 0.96));
    color: #0f5b95;
    text-align: center;
}

.alkemist-product-gallery__thumb-preview strong {
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.alkemist-product-gallery__thumb-preview small {
    max-width: 100%;
    overflow: hidden;
    color: #607481;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alkemist-product-gallery__thumb-preview--pdf {
    background: linear-gradient(135deg, rgba(255, 246, 236, 0.98), rgba(255, 255, 255, 0.96));
    color: #b45309;
}

.alkemist-product-gallery__thumb-preview--video,
.alkemist-product-gallery__thumb-preview--embed {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(239, 248, 255, 0.96));
    color: #0f766e;
}

.alkemist-product-gallery__media-frame {
    display: flex;
    width: 100%;
    min-height: inherit;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.alkemist-product-gallery__media-frame iframe,
.alkemist-product-gallery__media-frame video {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(216, 229, 227, 0.92);
}

.alkemist-product-gallery__media-frame--pdf iframe {
    min-height: min(620px, 64vh);
}

.alkemist-product-gallery__media-frame--video video {
    max-height: min(620px, 64vh);
    background: #071923;
}

.alkemist-product-gallery__media-frame .alkemist-video-frame {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

.alkemist-product-gallery__media-frame .alkemist-video-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.alkemist-product-gallery__open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0b4b60;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.alkemist-product-gallery__open-link:hover,
.alkemist-product-gallery__open-link:focus-visible {
    background: #16856f;
    color: #ffffff;
}

.alkemist-product-gallery__file-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    width: min(100%, 420px);
    min-height: 240px;
    padding: 22px;
    border: 1px solid rgba(216, 229, 227, 0.94);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 251, 0.96));
    text-align: center;
}

.alkemist-product-gallery__file-preview span {
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alkemist-product-gallery__file-preview strong {
    color: #0d2a37;
    font-size: 1rem;
    line-height: 1.25;
}

.gig-marketplace-media,
.gig-marketplace-media__gallery,
.gig-marketplace-media__single {
    max-height: none;
}

.gig-marketplace-media .woocommerce-product-gallery--custom {
    width: 100%;
}

.gig-marketplace-media .alkemist-product-gallery__stage {
    min-height: clamp(320px, 48vw, 540px);
}

.gig-marketplace-media .alkemist-product-gallery__slide,
.gig-marketplace-media .alkemist-product-gallery__image-link,
.gig-marketplace-media .alkemist-product-gallery__media-frame {
    min-height: clamp(280px, 44vw, 500px);
}

.gig-marketplace-media .alkemist-product-gallery__slide img {
    max-height: clamp(280px, 44vw, 500px);
    object-fit: contain;
}

.frontend-gallery-field__file-preview {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 78px;
    place-items: center;
    gap: 3px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(239, 248, 255, 0.96);
    color: #0f5b95;
    text-align: center;
}

.frontend-gallery-field__file-preview strong {
    font-size: 0.7rem;
    font-weight: 950;
    line-height: 1;
}

.frontend-gallery-field__file-preview small {
    max-width: 100%;
    overflow: hidden;
    color: #607481;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frontend-gallery-field__file-preview--pdf {
    background: rgba(255, 246, 236, 0.98);
    color: #b45309;
}

.frontend-gallery-field__file-preview--video {
    background: rgba(236, 253, 245, 0.98);
    color: #0f766e;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__cart-button,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__cart-button {
    width: 100%;
    min-width: 0;
    min-height: 40px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.18;
    justify-content: center;
    text-align: center;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media img,
body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media img {
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 760px) {
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .related.products ul.products,
    body:not(.alkemist-editor-session).single-product .woocommerce div.product .upsells.products ul.products,
    body:not(.alkemist-editor-session).single-product .related.products ul.products,
    body:not(.alkemist-editor-session).single-product .upsells.products ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .gig-marketplace-media .woocommerce-product-gallery--custom {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .gig-marketplace-media .alkemist-product-gallery__thumbs {
        display: flex;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 3px;
    }

    .gig-marketplace-media .alkemist-product-gallery__thumb {
        flex: 0 0 68px;
        width: 68px;
        padding: 5px;
        border-radius: 13px;
    }

    .gig-marketplace-media .alkemist-product-gallery__stage {
        min-height: clamp(240px, 68vw, 360px);
        padding: 9px;
        border-radius: 15px;
    }

    .gig-marketplace-media .alkemist-product-gallery__slide,
    .gig-marketplace-media .alkemist-product-gallery__image-link,
    .gig-marketplace-media .alkemist-product-gallery__media-frame {
        min-height: clamp(220px, 64vw, 330px);
    }

    .gig-marketplace-media .alkemist-product-gallery__slide img,
    .gig-marketplace-media .alkemist-product-gallery__media-frame--video video {
        max-height: clamp(220px, 64vw, 330px);
    }

    .gig-marketplace-media .alkemist-product-gallery__media-frame--pdf iframe {
        min-height: clamp(260px, 70vw, 420px);
    }
}

@media (max-width: 560px) {
    body:not(.alkemist-editor-session).woocommerce ul.products,
    body:not(.alkemist-editor-session).woocommerce-page ul.products,
    body:not(.alkemist-editor-session).woocommerce-shop ul.products,
    body:not(.alkemist-editor-session).post-type-archive-product .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_cat .commerce-shell > ul.products,
    body:not(.alkemist-editor-session).tax-product_tag .commerce-shell > ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products li.product.alkemist-product-card,
    body:not(.alkemist-editor-session).woocommerce-page ul.products li.product.alkemist-product-card {
        border-radius: 18px;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media {
        min-height: clamp(190px, 58vw, 280px) !important;
        aspect-ratio: 4 / 3;
        padding: 36px 14px 14px !important;
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__media img,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__media img {
        max-height: clamp(160px, 48vw, 240px);
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__cart-button,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__cart-button {
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 0.74rem !important;
    }
}

@media (max-width: 420px) {
    body:not(.alkemist-editor-session).woocommerce ul.products .alkemist-product-card__actions,
    body:not(.alkemist-editor-session).woocommerce-page ul.products .alkemist-product-card__actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
