/*
 * Trasentana commerce UI — 2026-07-27
 *
 * A focused visual layer over the original MVP stylesheet. Keeping this as a
 * separate, versioned asset makes browser cache invalidation explicit while
 * preserving the existing functional layout contracts.
 */

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

.catalog-edit-disclosure {
  position: relative;
}

.catalog-edit-disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--color-border, #e4e4e7);
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
}

.catalog-edit-form {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(420px, calc(100vw - 2rem));
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border, #e4e4e7);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgb(24 24 27 / 14%);
}

.catalog-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cart-configuration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--color-border, #e4e4e7);
  border-radius: 6px;
  background: #fafafa;
}

.cart-configuration div {
  min-width: 0;
}

.cart-configuration dt {
  color: #71717a;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-configuration dd {
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 600;
}

.confirmation-items small,
.customer-order-items small {
  display: block;
  margin-top: 0.25rem;
  color: #71717a;
  font-size: 0.78rem;
}

.preorder-configurations {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  color: #52525b;
  font-size: 0.8rem;
}

.catalog-category-manager {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #e4e4e7);
}

.catalog-category-manager > summary {
  cursor: pointer;
  font-weight: 650;
}

@media (max-width: 640px) {
  .catalog-edit-form {
    position: fixed;
    inset: 1rem;
    width: auto;
    overflow-y: auto;
  }

  .cart-configuration {
    grid-template-columns: 1fr;
  }
}

@font-face {
    font-family: "Source Serif 4";
    src: url("/assets/fonts/source-serif-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --ui-font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --ui-font-editorial: "Source Serif 4", Georgia, serif;
    --ui-marketplace-accent: #0b8f55;
    --ui-marketplace-accent-dark: #087043;
    --ui-marketplace-highlight: #ff6b35;
    --ui-marketplace-promo: #fff3e8;
    --ui-ink: #202522;
    --ui-muted: #667069;
    --ui-subtle: #8b938e;
    --ui-canvas: #f7f8f7;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f1f4f2;
    --ui-line: #dfe4e1;
    --ui-line-strong: #cbd3ce;
    --ui-green: #176b4a;
    --ui-green-dark: #0f5339;
    --ui-green-soft: #e8f3ed;
    --ui-orange: #c75b32;
    --ui-warning-soft: #fff5e8;
    --ui-shadow-sm: 0 1px 2px rgba(19, 35, 27, .05);
    --ui-shadow-md: 0 12px 36px rgba(19, 35, 27, .09);
    --ui-radius-sm: 8px;
    --ui-radius: 12px;
    --ui-radius-lg: 18px;
    --ink: var(--ui-ink);
    --muted: var(--ui-muted);
    --paper: var(--ui-canvas);
    --accent: var(--ui-green);
    --green: var(--ui-green-dark);
    --line: var(--ui-line);
    color: var(--ui-ink);
    background: var(--ui-canvas);
    font-family: var(--ui-font-sans);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    color: var(--ui-ink);
    background: var(--ui-canvas);
    -webkit-font-smoothing: antialiased;
}

.storefront-body :is(
    .hero-copy h1,
    .catalog-heading h1,
    .product-detail-buybox h1,
    .section-heading h2,
    .auth-visual h1
) {
    font-family: var(--ui-font-editorial);
    font-optical-sizing: auto;
    letter-spacing: -.025em;
}

.product-badge,
.status,
.tenant-chip {
    font-variant-numeric: tabular-nums;
}

.marketplace-promo {
    border: 1px solid color-mix(in srgb, var(--ui-marketplace-highlight) 24%, white);
    background: linear-gradient(135deg, var(--ui-marketplace-promo), #fff);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(23, 107, 74, .2);
    outline-offset: 2px;
}

.brand {
    gap: .72rem;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 9px;
    color: #fff;
    background: var(--ui-green-dark);
    font-family: Georgia, serif;
    font-size: .95rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.brand-copy {
    display: grid;
    gap: .05rem;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: .96rem;
}

.brand-copy small {
    color: var(--ui-muted);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .035em;
}

.button {
    min-height: 2.9rem;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-sm);
    transition: background .16s ease, border-color .16s ease,
        box-shadow .16s ease, transform .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--ui-green);
    box-shadow: 0 1px 2px rgba(15, 83, 57, .2);
}

.button-primary:hover {
    background: var(--ui-green-dark);
    box-shadow: 0 5px 14px rgba(15, 83, 57, .18);
}

.commerce-announcement {
    min-height: 34px;
    padding: .5rem 5vw;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 4rem);
    color: rgba(255, 255, 255, .82);
    background: #15251e;
    font-size: .7rem;
    font-weight: 650;
    letter-spacing: .035em;
}

.commerce-announcement span + span::before {
    content: "•";
    margin-right: clamp(1rem, 4vw, 4rem);
    color: rgba(255, 255, 255, .3);
}

.site-header {
    position: relative;
    z-index: 20;
    min-height: 72px;
    padding: 0 clamp(1.25rem, 5vw, 5rem);
    grid-template-columns: 1fr auto 1fr;
    border-bottom: 1px solid var(--ui-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--ui-shadow-sm);
}

.commerce-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
}

.site-header nav,
.commerce-header nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
}

.site-header nav a,
.primary-nav a {
    position: relative;
    color: #4f5953;
    font-size: .82rem;
    font-weight: 650;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.primary-nav a:hover {
    color: var(--ui-green);
}

.site-header nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1.55rem;
    left: 0;
    height: 2px;
    background: var(--ui-green);
}

.commerce-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.account-link,
.cart-link {
    min-height: 2.45rem;
    padding: 0 .8rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: var(--ui-radius-sm);
    color: #3f4943;
    font-size: .79rem;
    font-weight: 700;
}

.account-link:hover,
.cart-link:hover {
    background: var(--ui-surface-soft);
}

.account-link > span:first-child {
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: .65rem;
}

.cart-count {
    width: 1.45rem;
    height: 1.45rem;
    border: 0;
    color: #fff;
    background: var(--ui-green);
    font-size: .68rem;
}

/* Storefront home */

.storefront-body {
    background: #fff;
}

.storefront-body h1,
.storefront-body h2,
.storefront-body h3 {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.hero {
    min-height: 610px;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(3.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem);
    grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-copy {
    max-width: 610px;
}

.eyebrow {
    margin-bottom: .8rem;
    color: var(--ui-green);
    font-size: .68rem;
    letter-spacing: .12em;
}

.hero h1 {
    margin-bottom: 1.4rem;
    color: var(--ui-ink);
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: clamp(3.7rem, 6.3vw, 6.6rem);
    font-weight: 720;
    line-height: .91;
    letter-spacing: -.072em;
}

.hero h1 span {
    color: var(--ui-green);
}

.hero-summary {
    max-width: 590px;
    color: var(--ui-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 1.9rem;
    gap: 1.15rem;
}

.hero-actions .text-link {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    color: #3f4943;
}

.hero-visual {
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--ui-radius-lg);
    background: #e7ece9;
    box-shadow: var(--ui-shadow-md);
}

.hero-visual::before,
.hero-visual::after,
.visual-grid {
    display: none;
}

.hero-visual > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.visual-note {
    left: 1rem;
    bottom: 1rem;
    padding: .9rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(20, 37, 29, .12);
    backdrop-filter: blur(12px);
}

.visual-note span {
    color: var(--ui-muted);
    font-size: .62rem;
}

.visual-note strong {
    font-size: .77rem;
}

.trust-strip {
    max-width: 1330px;
    margin: 0 auto;
    padding: 1.1rem clamp(1.25rem, 5vw, 5rem);
    gap: 1rem;
    border: 0;
}

.trust-strip p {
    position: relative;
    padding: 1.05rem 1.2rem 1.05rem 3.1rem;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface-soft);
}

.trust-strip p:first-child {
    padding-left: 3.1rem;
}

.trust-strip p::before {
    content: "✓";
    position: absolute;
    top: 1rem;
    left: 1.15rem;
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--ui-green);
    font-size: .66rem;
    font-weight: 800;
}

.trust-strip strong {
    font-size: .8rem;
}

.trust-strip span {
    font-size: .72rem;
}

.product-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(5rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}

.section-heading {
    margin-bottom: 2.2rem;
}

.section-heading h2,
.project-callout h2 {
    max-width: 780px;
    color: var(--ui-ink);
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.product-grid {
    gap: 1.25rem;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease,
        transform .18s ease;
}

.product-card:hover {
    border-color: var(--ui-line-strong);
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-3px);
}

.product-art {
    position: relative;
    height: auto;
    aspect-ratio: 1.12 / 1;
    display: block;
    overflow: hidden;
    background: #e7ece9 !important;
}

.product-art > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.product-card:hover .product-art > img {
    transform: scale(1.025);
}

.product-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    padding: .42rem .62rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    color: #26342d;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 10px rgba(19, 35, 27, .08);
    font-size: .65rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.product-copy {
    min-height: 210px;
    padding: 1.2rem 1.25rem 1.35rem;
}

.product-copy h3 {
    margin: .3rem 0 .55rem;
    color: var(--ui-ink);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.product-copy > p:not(.product-type) {
    color: var(--ui-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.product-copy a {
    color: var(--ui-green);
    font-size: .77rem;
}

.product-type {
    color: var(--ui-green);
    font-size: .64rem;
    letter-spacing: .09em;
}

.process-section {
    padding: clamp(5rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem);
    background: #15251e;
}

.process-section .section-heading {
    max-width: 1330px;
    margin-right: auto;
    margin-left: auto;
}

.process-section .section-heading h2 {
    color: #fff;
}

.process-list {
    max-width: 1330px;
    margin-right: auto;
    margin-left: auto;
}

.process-list li {
    border-color: rgba(255, 255, 255, .14);
}

.process-list strong {
    color: #fff;
}

.process-list p {
    color: rgba(255, 255, 255, .62);
}

.project-callout {
    max-width: 1330px;
    margin: clamp(1.25rem, 3vw, 3rem) auto;
    padding: clamp(3rem, 6vw, 6rem);
    border-radius: var(--ui-radius-lg);
    background: #dfece5;
}

.project-callout h2 {
    color: #183628;
}

.commerce-footer {
    max-width: none;
    padding: 3rem 5vw;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 3rem;
    color: #dbe5e0;
    background: #101c17;
}

.commerce-footer div:first-child {
    max-width: 430px;
}

.commerce-footer div:first-child strong {
    color: #fff;
    font-size: 1rem;
}

.commerce-footer div:first-child p {
    margin: .55rem 0 0;
}

.commerce-footer div:nth-child(2) {
    display: grid;
    gap: .65rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 650;
}

/* Catalog and product detail */

.catalog-page,
.product-detail {
    width: min(100%, 1360px);
    max-width: none;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem)
        clamp(5rem, 8vw, 8rem);
}

.breadcrumb {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    color: var(--ui-subtle);
    font-size: .73rem;
}

.breadcrumb a:hover {
    color: var(--ui-green);
}

.catalog-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.catalog-heading h1,
.product-detail h1 {
    margin: .45rem 0 .85rem;
    color: var(--ui-ink);
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.06em;
}

.catalog-heading > p:last-child,
.product-detail-description {
    color: var(--ui-muted);
    font-size: .96rem;
    line-height: 1.65;
}

.catalog-toolbar {
    min-height: 62px;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
}

.catalog-toolbar > div {
    display: flex;
    align-items: baseline;
    gap: .6rem;
}

.catalog-toolbar strong {
    font-size: .9rem;
}

.catalog-toolbar span,
.catalog-toolbar p {
    margin: 0;
    color: var(--ui-muted);
    font-size: .72rem;
}

.catalog-toolbar p span {
    margin-right: .35rem;
    color: var(--ui-green);
}

.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.catalog-card {
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease,
        transform .18s ease;
}

.catalog-card:hover {
    border-color: var(--ui-line-strong);
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-2px);
}

.catalog-card-media {
    position: relative;
    aspect-ratio: 1.12 / 1;
    display: block;
    overflow: hidden;
    background: #e7ece9;
}

.catalog-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.catalog-card:hover .catalog-card-media img {
    transform: scale(1.025);
}

.catalog-card-body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.catalog-card h2 {
    margin: .3rem 0 .55rem;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.catalog-card-body > p:not(.product-type) {
    min-height: 2.7rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: .78rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-card-commercial {
    margin: 0 0 .9rem;
    padding: .9rem 0 0;
    grid-template-columns: 1fr auto;
    align-items: end;
    border-top: 1px solid var(--ui-line);
    font-size: .7rem;
}

.catalog-card-commercial strong {
    display: block;
    margin-top: .15rem;
    color: var(--ui-ink);
    font-size: .98rem;
}

.catalog-card-link {
    display: flex;
    justify-content: space-between;
    color: var(--ui-green);
    font-size: .75rem;
    font-weight: 750;
}

.empty-catalog {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface-soft);
}

.empty-catalog .button {
    margin-top: 1rem;
}

.shopping-benefits {
    margin-top: clamp(3rem, 6vw, 6rem);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-line);
    overflow: hidden;
}

.shopping-benefits article {
    min-height: 140px;
    padding: 1.35rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .9rem;
    background: var(--ui-surface);
}

.shopping-benefits article > span {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ui-green);
    background: var(--ui-green-soft);
    font-size: .65rem;
    font-weight: 800;
}

.shopping-benefits strong {
    font-size: .84rem;
}

.shopping-benefits p {
    margin: .45rem 0 0;
    color: var(--ui-muted);
    font-size: .74rem;
    line-height: 1.55;
}

.product-detail-grid {
    margin-top: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5.5rem);
}

.product-detail-media {
    position: sticky;
    top: 100px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--ui-radius-lg);
    background: #e7ece9;
    box-shadow: var(--ui-shadow-sm);
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-detail-buybox {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
}

.product-detail-buybox h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.product-rating-note {
    margin-bottom: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    color: var(--ui-muted);
    font-size: .69rem;
}

.product-rating-note span:first-child {
    color: #e5a92f;
    letter-spacing: .08em;
}

.commercial-facts {
    margin: 1.6rem 0;
    gap: .65rem;
}

.commercial-facts div {
    padding: .9rem;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface-soft);
}

.commercial-facts dt {
    font-size: .63rem;
    letter-spacing: .07em;
}

.commercial-facts dd {
    font-size: .92rem;
}

.product-assurance {
    margin: 0 0 1.3rem;
    padding: .85rem 1rem;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-green-soft);
}

.product-assurance p {
    margin: .42rem 0;
    color: #315443;
    font-size: .72rem;
}

.product-assurance span {
    margin-right: .45rem;
    color: var(--ui-green);
    font-weight: 800;
}

.add-cart-form {
    padding: 1.1rem 0;
    flex-wrap: nowrap;
    align-items: end;
    border-top: 1px solid var(--ui-line);
}

.add-cart-form label {
    flex: 0 0 82px;
    color: var(--ui-ink);
}

.add-cart-form input,
.cart-item-actions input {
    width: 100%;
    min-height: 2.9rem;
    border-color: var(--ui-line-strong);
    border-radius: var(--ui-radius-sm);
}

.add-cart-form .button {
    flex: 1 1 auto;
}

.estimate-note {
    margin: .25rem 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ui-muted);
    font-size: .68rem;
    line-height: 1.55;
}

.project-help-link {
    padding: .9rem 0 0;
    display: grid;
    gap: .2rem;
    border-top: 1px solid var(--ui-line);
}

.project-help-link strong {
    font-size: .76rem;
}

.project-help-link span {
    color: var(--ui-green);
    font-size: .7rem;
}

/* Authentication */

.auth-body {
    min-height: 100vh;
    background: #f3f5f4;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(500px, 1.18fr);
}

.auth-story,
.auth-layout .auth-story,
.customer-auth .auth-story,
.admin-auth-layout .auth-story {
    padding: clamp(2rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(71, 151, 112, .28), transparent 28%),
        linear-gradient(145deg, #10271d, #173e2c);
}

.customer-auth .auth-story {
    background:
        radial-gradient(circle at 85% 15%, rgba(113, 162, 136, .25), transparent 28%),
        linear-gradient(145deg, #17382a, #244c38);
}

.auth-story .brand-copy small {
    color: rgba(255, 255, 255, .58);
}

.auth-story .brand-mark {
    color: var(--ui-green-dark);
    background: #fff;
}

.auth-story h1 {
    max-width: 630px;
    margin: .75rem 0 1rem;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: clamp(2.6rem, 4.6vw, 5.3rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.06em;
}

.auth-story p:not(.eyebrow) {
    max-width: 560px;
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
    line-height: 1.65;
}

.auth-workspace-pill {
    width: fit-content;
    padding: .45rem .7rem;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #d7e9df;
    background: rgba(255, 255, 255, .08);
    font-size: .64rem;
    font-weight: 700;
}

.auth-feature-list {
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: .72rem;
    color: rgba(255, 255, 255, .76);
    font-size: .77rem;
    list-style: none;
}

.auth-feature-list span {
    width: 1.15rem;
    height: 1.15rem;
    margin-right: .55rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #d7eee2;
    background: rgba(255, 255, 255, .12);
    font-size: .58rem;
}

.auth-panel {
    padding: clamp(2rem, 6vw, 6rem);
    display: grid;
    place-items: center;
    background: #f3f5f4;
}

.auth-card {
    width: min(100%, 460px);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-md);
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.auth-card-header .eyebrow {
    margin-bottom: .25rem;
}

.auth-lock {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--ui-green-dark);
    font-family: Georgia, serif;
    font-size: .9rem;
}

.auth-card h2,
.auth-card-header h2 {
    margin: 0;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 720;
    letter-spacing: -.04em;
}

.auth-card > p:not(.eyebrow, .auth-switch, .auth-admin-link) {
    margin: 1rem 0 0;
    font-size: .8rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-form label {
    display: grid;
    gap: .4rem;
}

.auth-form label span {
    font-size: .74rem;
}

.auth-form input {
    width: 100%;
    min-height: 3rem;
    padding: .8rem .9rem;
    border: 1px solid var(--ui-line-strong);
    border-radius: var(--ui-radius-sm);
    background: #fff;
    font-size: .85rem;
}

.auth-form input::placeholder {
    color: #a0a7a3;
}

.auth-form input:focus {
    outline: 3px solid rgba(23, 107, 74, .14);
    border-color: var(--ui-green);
}

.auth-form .button {
    width: 100%;
    margin-top: .35rem;
}

.auth-security-note {
    margin-top: 1.2rem;
    padding: .75rem .8rem;
    display: flex;
    gap: .65rem;
    border-radius: var(--ui-radius-sm);
    color: #315443;
    background: var(--ui-green-soft);
}

.auth-security-note > span {
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--ui-green);
    font-size: .6rem;
}

.auth-security-note p {
    margin: 0;
    display: grid;
    gap: .15rem;
}

.auth-security-note strong {
    font-size: .7rem;
}

.auth-security-note small {
    color: #5f796b;
    font-size: .63rem;
    line-height: 1.4;
}

.auth-switch,
.auth-admin-link {
    margin: 1.25rem 0 0;
    font-size: .72rem;
    text-align: center;
}

.auth-switch a,
.auth-admin-link a {
    color: var(--ui-green);
}

.form-alert,
.form-success {
    border: 0;
    border-radius: var(--ui-radius-sm);
    font-size: .75rem;
}

/* Admin application shell */

.admin-body {
    min-height: 100vh;
    padding-left: 252px;
    color: #222825;
    background: #f5f6f5;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.admin-header {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 252px;
    height: 100vh;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.25rem;
    border: 0;
    color: #dce7e1;
    background: #14211b;
    box-shadow: inset -1px 0 rgba(255, 255, 255, .06);
}

.admin-header .brand {
    width: 100%;
    padding: 0 .35rem .8rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.admin-header .brand-mark {
    color: #163a29;
    background: #e8f3ed;
}

.admin-header .brand-copy small {
    color: rgba(255, 255, 255, .48);
}

.admin-header nav {
    width: 100%;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .18rem;
    overflow-y: auto;
}

.admin-nav-section {
    margin: .5rem .7rem .35rem;
    color: rgba(255, 255, 255, .38);
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-header nav a {
    min-height: 2.45rem;
    padding: 0 .75rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: var(--ui-radius-sm);
    color: rgba(255, 255, 255, .67);
    font-size: .77rem;
    font-weight: 620;
}

.admin-header nav a::before {
    content: "";
    width: .48rem;
    height: .48rem;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: .65;
}

.admin-header nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.admin-header nav a[aria-current="page"] {
    color: #fff;
    background: rgba(57, 151, 103, .22);
    box-shadow: inset 3px 0 #55b884;
}

.admin-header nav a[aria-current="page"]::before {
    border-color: #71c99c;
    background: #71c99c;
}

.admin-header nav a:last-child {
    margin-top: auto;
    color: #b7d6c6;
    border: 1px solid rgba(255, 255, 255, .1);
}

.admin-logout {
    width: 100%;
}

.admin-logout button {
    width: 100%;
    min-height: 2.4rem;
    padding: 0 .75rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--ui-radius-sm);
    color: rgba(255, 255, 255, .62);
    text-align: left;
}

.admin-logout button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.admin-shell {
    width: min(1220px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2.4rem 0 5rem;
    gap: 1.15rem;
}

.admin-title {
    margin-bottom: .45rem;
    align-items: center;
}

.admin-title .eyebrow {
    margin-bottom: .45rem;
}

.admin-title h1 {
    margin: 0 0 .45rem;
    color: #222825;
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    font-weight: 720;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.admin-title > div > p:last-child {
    max-width: 720px;
    margin: 0;
    color: #727b76;
    font-size: .82rem;
    line-height: 1.55;
}

.tenant-chip,
.status {
    padding: .4rem .62rem;
    border: 1px solid #cfe1d7;
    color: #2f5b45;
    background: #edf6f1;
    font-size: .61rem;
}

.admin-panel,
.dashboard-kpi {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
}

.admin-panel {
    padding: clamp(1.15rem, 2.8vw, 1.7rem);
}

.admin-panel-heading {
    margin-bottom: 1.35rem;
    align-items: center;
}

.admin-panel-heading h2 {
    margin: .1rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.admin-panel-heading > p {
    margin-bottom: 0;
    font-size: .74rem;
}

.dashboard-kpis {
    gap: .8rem;
}

.dashboard-kpi {
    padding: 1.15rem;
}

.dashboard-kpi > span {
    color: #727b76;
    font-size: .64rem;
}

.dashboard-kpi strong {
    margin: .5rem 0;
    font-size: 1.15rem;
}

.dashboard-kpi a {
    color: var(--ui-green);
    font-size: .69rem;
}

.dashboard-columns {
    gap: .8rem;
}

.dashboard-financial-grid {
    border-color: var(--ui-line);
    border-radius: var(--ui-radius-sm);
    overflow: hidden;
}

.dashboard-action {
    border-color: var(--ui-line);
}

.dashboard-action:hover {
    background: #f7faf8;
}

.admin-form {
    gap: 1rem;
}

.admin-form label span,
.compact-form label span {
    color: #424a45;
    font-size: .72rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.compact-form input,
.compact-form select,
.compact-form textarea {
    border: 1px solid var(--ui-line-strong);
    border-radius: var(--ui-radius-sm);
    background: #fff;
    font-size: .8rem;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.compact-form input:focus,
.compact-form select:focus,
.compact-form textarea:focus {
    outline: 3px solid rgba(23, 107, 74, .13);
    border-color: var(--ui-green);
}

.admin-product-row,
.preorder-admin-row,
.opportunity-card,
.quotation-card,
.project-admin-card,
.project-conversion-card,
.campaign-card {
    border-color: var(--ui-line);
}

.admin-row-actions button,
.compact-form button {
    border-color: var(--ui-line-strong);
    border-radius: 7px;
    font-size: .7rem;
}

.admin-row-actions .action-primary {
    border-color: var(--ui-green);
    background: var(--ui-green);
}

.admin-empty {
    border-color: var(--ui-line-strong);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface-soft);
    font-size: .8rem;
}

/* Existing storefront forms and account views inherit the same visual system. */

.cart-page,
.checkout-page,
.project-page,
.confirmation-page,
.account-page,
.order-page {
    color: var(--ui-ink);
}

.cart-summary,
.checkout-panel,
.checkout-summary,
.project-form-panel,
.account-empty,
.customer-order-card {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
}

.customer-order-statuses,
.tracking-summary,
.tracking-card {
    border-color: var(--ui-line);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface-soft);
    overflow: hidden;
}

@media (max-width: 1050px) {
    .hero {
        min-height: auto;
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    }

    .hero-visual {
        min-height: 450px;
    }

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

    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
    }
}

@media (max-width: 900px) {
    .commerce-announcement span:nth-child(2) {
        display: none;
    }

    .commerce-announcement span:nth-child(3)::before {
        content: "•";
    }

    .site-header {
        min-height: 68px;
        grid-template-columns: 1fr auto;
    }

    .site-header nav {
        grid-column: 1 / -1;
        order: 3;
        padding: .75rem 0;
        overflow-x: auto;
        border-top: 1px solid var(--ui-line);
    }

    .site-header nav a[aria-current="page"]::after {
        display: none;
    }

    .hero {
        padding-top: 3.5rem;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 750px;
    }

    .hero-visual {
        min-height: 0;
        aspect-ratio: 1.3 / 1;
    }

    .product-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .trust-strip p {
        border-right: 1px solid var(--ui-line);
    }

    .commerce-footer {
        grid-template-columns: 1fr 1fr;
    }

    .commerce-footer > p {
        grid-column: 1 / -1;
    }

    .shopping-benefits {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-media {
        position: relative;
        top: auto;
    }

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

    .auth-story {
        min-height: auto;
        gap: 3rem;
    }

    .auth-story h1 {
        max-width: 760px;
    }

    .admin-body {
        padding-left: 0;
    }

    .admin-header {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        padding: .9rem 1rem;
        gap: .75rem;
    }

    .admin-header .brand {
        padding-bottom: .65rem;
    }

    .admin-header nav {
        order: 0;
        display: flex;
        flex-direction: row;
        gap: .35rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .admin-nav-section {
        display: none;
    }

    .admin-header nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-header nav a:last-child {
        margin: 0;
    }

    .admin-logout button {
        min-height: 2.2rem;
        text-align: center;
    }

    .admin-logout {
        order: 3;
    }
}

@media (max-width: 640px) {
    .commerce-announcement {
        justify-content: center;
        font-size: .62rem;
        text-align: center;
    }

    .commerce-announcement span:not(:first-child) {
        display: none;
    }

    .site-header {
        padding: .75rem 1rem 0;
    }

    .brand-copy small {
        display: none;
    }

    .commerce-actions {
        gap: .1rem;
    }

    .account-link,
    .cart-link {
        padding: 0 .55rem;
    }

    .account-link > span:last-child,
    .cart-link > span:first-child {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 16vw, 4.8rem);
    }

    .hero-summary {
        font-size: .9rem;
    }

    .hero-visual {
        aspect-ratio: .95 / 1;
    }

    .section-heading {
        align-items: flex-start;
    }

    .product-section,
    .process-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .product-art {
        aspect-ratio: 1.08 / 1;
    }

    .project-callout {
        margin-right: 1rem;
        margin-left: 1rem;
        padding: 2.4rem 1.35rem;
    }

    .commerce-footer {
        padding: 2.5rem 1.25rem;
        grid-template-columns: 1fr;
    }

    .commerce-footer > p {
        grid-column: auto;
    }

    .catalog-heading h1 {
        font-size: clamp(2.4rem, 13vw, 3.5rem);
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .shopping-benefits {
        padding: 1px;
    }

    .product-detail-buybox {
        padding: 1.15rem;
    }

    .commercial-facts {
        grid-template-columns: 1fr 1fr;
    }

    .add-cart-form {
        flex-wrap: wrap;
    }

    .add-cart-form label {
        flex: 1 1 100%;
    }

    .auth-story {
        min-height: auto;
        padding: 2rem 1.25rem;
    }

    .auth-story h1 {
        font-size: clamp(2.35rem, 11vw, 3.5rem);
    }

    .auth-feature-list {
        gap: .55rem;
    }

    .auth-panel {
        padding: 2rem 1rem 3rem;
    }

    .auth-card {
        padding: 1.35rem;
    }

    .admin-shell {
        width: calc(100% - 1.5rem);
        padding-top: 1.65rem;
    }

    .admin-title,
    .admin-panel-heading,
    .admin-product-row {
        gap: .8rem;
    }

    .admin-title h1 {
        font-size: 2rem;
    }

    .dashboard-kpis,
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

/* Guided customer help */

.chat-assistant {
    position: fixed;
    z-index: 1200;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    align-items: flex-end;
    gap: .7rem;
    color: var(--ui-ink);
}

.chat-assistant [hidden] {
    display: none !important;
}

.chat-peek {
    max-width: 15rem;
    margin-bottom: .35rem;
    padding: .72rem .9rem;
    border: 1px solid var(--ui-line);
    border-radius: 14px 14px 4px 14px;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-md);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.chat-launcher {
    display: grid;
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--ui-green);
    box-shadow: 0 12px 30px rgba(15, 83, 57, .28);
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}

.chat-launcher:hover {
    background: var(--ui-green-dark);
    transform: translateY(-2px);
}

.chat-launcher[aria-expanded="true"] {
    background: var(--ui-green-dark);
}

.chat-panel {
    position: absolute;
    right: 0;
    bottom: 4.5rem;
    display: flex;
    overflow: hidden;
    width: min(23rem, calc(100vw - 2rem));
    max-height: min(39rem, calc(100vh - 7rem));
    flex-direction: column;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-surface);
    box-shadow: 0 22px 70px rgba(19, 35, 27, .2);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .95rem 1rem;
    color: #fff;
    background: var(--ui-green-dark);
}

.chat-identity {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.chat-avatar {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    font-family: Georgia, serif;
    font-weight: 700;
}

.chat-identity > span:last-child {
    display: grid;
    gap: .12rem;
}

.chat-identity strong {
    font-size: .92rem;
}

.chat-identity small {
    color: rgba(255, 255, 255, .72);
    font-size: .73rem;
}

.chat-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.chat-close:hover {
    background: rgba(255, 255, 255, .12);
}

.chat-messages {
    display: flex;
    overflow-y: auto;
    min-height: 10rem;
    padding: 1rem;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .75rem;
    background: #f7f9f8;
    scrollbar-color: var(--ui-line-strong) transparent;
}

.chat-message {
    width: fit-content;
    max-width: 88%;
    padding: .68rem .78rem;
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.48;
}

.chat-message p {
    margin: 0;
}

.chat-message-bot {
    align-self: flex-start;
    border: 1px solid var(--ui-line);
    border-bottom-left-radius: 4px;
    background: var(--ui-surface);
}

.chat-message-user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: #fff;
    background: var(--ui-green);
}

.chat-message-action {
    display: inline-block;
    margin-top: .55rem;
    color: var(--ui-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.chat-message-action:hover,
.chat-product-preview:hover .chat-product-link {
    text-decoration: underline;
}

.chat-quick-actions {
    display: flex;
    overflow-x: auto;
    padding: .75rem 1rem .35rem;
    gap: .45rem;
    background: var(--ui-surface);
    scrollbar-width: none;
}

.chat-quick-actions::-webkit-scrollbar {
    display: none;
}

.chat-quick-button {
    flex: 0 0 auto;
    padding: .48rem .7rem;
    border: 1px solid var(--ui-line-strong);
    border-radius: 999px;
    color: var(--ui-green-dark);
    background: var(--ui-surface);
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer;
}

.chat-quick-button:hover {
    border-color: var(--ui-green);
    background: var(--ui-green-soft);
}

.chat-product-preview {
    display: grid;
    min-width: min(17rem, 72vw);
    margin-top: .7rem;
    padding: .5rem;
    grid-template-columns: 4.5rem 1fr;
    align-items: center;
    gap: .65rem;
    border: 1px solid var(--ui-line);
    border-radius: 11px;
    color: inherit;
    background: var(--ui-surface);
    text-decoration: none;
    box-shadow: var(--ui-shadow-sm);
}

.chat-product-preview img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 8px;
    object-fit: cover;
    background: var(--ui-surface-soft);
}

.chat-product-copy {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.chat-product-copy strong {
    overflow: hidden;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-product-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: .68rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.chat-product-link {
    color: var(--ui-green-dark);
    font-size: .69rem;
    font-weight: 800;
}

.chat-form {
    padding: .65rem 1rem .9rem;
    background: var(--ui-surface);
}

.chat-field-label {
    display: block;
    margin-bottom: .38rem;
    color: var(--ui-muted);
    font-size: .7rem;
    font-weight: 750;
}

.chat-form-row {
    display: flex;
    gap: .45rem;
}

.chat-input {
    min-width: 0;
    height: 2.6rem;
    padding: 0 .75rem;
    flex: 1 1 auto;
    border: 1px solid var(--ui-line-strong);
    border-radius: 10px;
    color: var(--ui-ink);
    background: var(--ui-surface);
    font-size: .8rem;
}

.chat-input::placeholder {
    color: var(--ui-subtle);
}

.chat-send {
    padding: 0 .8rem;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--ui-green);
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.chat-send:hover {
    background: var(--ui-green-dark);
}

@media (max-width: 640px) {
    .chat-assistant {
        right: .75rem;
        bottom: .75rem;
        gap: .5rem;
    }

    .chat-peek {
        max-width: 12.5rem;
        padding: .62rem .75rem;
        font-size: .75rem;
    }

    .chat-launcher {
        width: 3.35rem;
        height: 3.35rem;
    }

    .chat-panel {
        right: 0;
        bottom: 4rem;
        width: calc(100vw - 1.5rem);
        max-height: min(70vh, 36rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-launcher {
        transition: none;
    }
}

/*
 * Medusa-inspired cohesion pass — 2026-07-27
 *
 * The public shop, customer account, authentication, employee workspace, and
 * guided help now share one compact commerce language: neutral zinc surfaces,
 * one-pixel boundaries, restrained radii, medium-weight typography, and
 * deliberately sparse shadows. Trasentana green remains a brand accent rather
 * than the structural color of every surface.
 */

:root {
    --ui-system: medusa-inspired;
    --ui-zinc-950: #27272a;
    --ui-zinc-900: #313134;
    --ui-zinc-700: #52525b;
    --ui-zinc-600: #71717a;
    --ui-zinc-500: #8b8b94;
    --ui-zinc-200: #e4e4e7;
    --ui-zinc-100: #f4f4f5;
    --ui-zinc-50: #fafafa;
    --ui-border: #e4e4e7;
    --ui-control-radius: 6px;
    --ui-panel-radius: 8px;
    --ui-shell-width: 1280px;
    --ui-ink: var(--ui-zinc-950);
    --ui-muted: var(--ui-zinc-600);
    --ui-subtle: var(--ui-zinc-500);
    --ui-canvas: #ffffff;
    --ui-surface: #ffffff;
    --ui-surface-soft: var(--ui-zinc-50);
    --ui-line: var(--ui-border);
    --ui-line-strong: #d4d4d8;
    --ui-green: #176b4a;
    --ui-green-dark: #145c40;
    --ui-green-soft: #eef7f2;
    --ui-shadow-sm: 0 1px 2px rgba(24, 24, 27, .04);
    --ui-shadow-md: 0 8px 24px rgba(24, 24, 27, .08);
    --ui-radius-sm: var(--ui-control-radius);
    --ui-radius: var(--ui-panel-radius);
    --ui-radius-lg: 10px;
    --ink: var(--ui-ink);
    --muted: var(--ui-muted);
    --paper: var(--ui-canvas);
    --accent: var(--ui-zinc-950);
    --green: var(--ui-green);
    --line: var(--ui-border);
    color: var(--ui-ink);
    background: var(--ui-canvas);
    font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui,
        -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

html,
body {
    color: var(--ui-zinc-950);
    background: #fff;
}

body {
    font-size: 1rem;
    line-height: 1.5;
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
strong {
    color: var(--ui-zinc-950);
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: -.025em;
}

a {
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid rgba(23, 107, 74, .28);
    outline-offset: 2px;
}

.eyebrow,
.product-type,
.admin-nav-section {
    color: var(--ui-zinc-600);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .065em;
}

.button {
    min-height: 2.5rem;
    padding: .55rem .9rem;
    border-radius: var(--ui-control-radius);
    font-size: .85rem;
    font-weight: 500;
    transition: background-color .14s ease, border-color .14s ease,
        box-shadow .14s ease;
}

.button:hover {
    transform: none;
}

.button-primary,
.button-light {
    border: 1px solid #18181b;
    color: rgba(255, 255, 255, .92);
    background: var(--ui-zinc-950);
    box-shadow: inset 0 .75px rgba(255, 255, 255, .2),
        0 1px 2px rgba(0, 0, 0, .32);
}

.button-primary:hover,
.button-light:hover {
    color: #fff;
    background: #18181b;
    box-shadow: inset 0 .75px rgba(255, 255, 255, .18),
        0 1px 2px rgba(0, 0, 0, .4);
}

.text-link {
    color: var(--ui-zinc-700);
    font-size: .85rem;
    font-weight: 500;
}

.text-link:hover {
    color: var(--ui-zinc-950);
}

.brand {
    gap: .65rem;
    color: var(--ui-zinc-950);
    letter-spacing: -.01em;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border: 1px solid #18181b;
    border-radius: var(--ui-control-radius);
    color: rgba(255, 255, 255, .92);
    background: var(--ui-zinc-950);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: inset 0 .75px rgba(255, 255, 255, .2);
}

.brand-copy {
    gap: 0;
}

.brand-copy strong {
    font-size: .9rem;
    font-weight: 600;
}

.brand-copy small {
    color: var(--ui-zinc-600);
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: 0;
}

.commerce-announcement {
    display: none;
}

.site-header,
.commerce-header {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: 56px;
    padding: 0 max(1.25rem, calc((100vw - var(--ui-shell-width)) / 2));
    grid-template-columns: 1fr auto 1fr;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, .94);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.site-header nav,
.commerce-header nav {
    gap: 1.6rem;
}

.site-header nav a,
.primary-nav a {
    color: var(--ui-zinc-600);
    font-size: .82rem;
    font-weight: 450;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.primary-nav a:hover {
    color: var(--ui-zinc-950);
}

.site-header nav a[aria-current="page"]::after {
    right: 0;
    bottom: -1.25rem;
    left: 0;
    height: 1px;
    background: var(--ui-zinc-950);
}

.commerce-actions {
    gap: .3rem;
}

.account-link,
.cart-link,
.text-button {
    min-height: 2rem;
    padding: 0 .65rem;
    border: 1px solid transparent;
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: transparent;
    font-size: .8rem;
    font-weight: 500;
}

.account-link:hover,
.cart-link:hover,
.text-button:hover {
    border-color: var(--ui-border);
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-50);
    background-image: none;
}

.account-link > span:first-child {
    width: 1.1rem;
    height: 1.1rem;
    border-width: 1px;
    font-size: .55rem;
}

.cart-count {
    width: 1.25rem;
    height: 1.25rem;
    color: #fff;
    background: var(--ui-zinc-950);
    font-size: .62rem;
}

/* Storefront shell */

.hero,
.trust-strip,
.product-section,
.process-section,
.project-callout,
.commerce-footer {
    width: min(var(--ui-shell-width), calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

.hero {
    min-height: 650px;
    padding: clamp(4rem, 7vw, 7.5rem) clamp(2rem, 5vw, 5.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(440px, .92fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    background: #fff;
}

.hero-copy {
    max-width: 650px;
}

.hero h1 {
    margin: 1rem 0 1.35rem;
    color: var(--ui-zinc-950);
    font-size: clamp(3.45rem, 5.5vw, 5.75rem);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.065em;
}

.hero h1 span {
    color: var(--ui-green);
}

.hero-summary {
    max-width: 570px;
    color: var(--ui-zinc-600);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 2rem;
    gap: 1rem;
}

.hero-visual {
    min-height: 490px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: var(--ui-zinc-50);
    box-shadow: none;
}

.hero-visual::after {
    display: none;
}

.hero-visual img {
    border-radius: calc(var(--ui-panel-radius) - 1px);
}

.visual-note {
    right: auto;
    bottom: 1rem;
    left: 1rem;
    padding: .7rem .8rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--ui-shadow-sm);
}

.visual-note span {
    color: var(--ui-zinc-600);
}

.visual-note strong {
    font-size: .75rem;
    font-weight: 500;
}

.trust-strip {
    padding: 0;
    gap: 0;
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    background: #fff;
    box-shadow: none;
}

.trust-strip p {
    min-height: 98px;
    margin: 0;
    padding: 1.35rem 1.5rem;
    border: 0;
    border-right: 1px solid var(--ui-border);
    background: transparent;
}

.trust-strip p:last-child {
    border-right: 0;
}

.trust-strip p::before {
    width: .45rem;
    height: .45rem;
    border: 0;
    border-radius: 50%;
    background: var(--ui-green);
}

.trust-strip strong {
    font-size: .82rem;
    font-weight: 500;
}

.trust-strip span {
    color: var(--ui-zinc-600);
    font-size: .76rem;
}

.product-section,
.process-section {
    padding: clamp(4rem, 7vw, 6.5rem) clamp(1.5rem, 4vw, 4rem);
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading h2,
.project-callout h2 {
    max-width: 790px;
    margin: .45rem 0 0;
    color: var(--ui-zinc-950);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.product-grid {
    gap: 0;
    border-top: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
}

.product-card {
    overflow: hidden;
    padding: 1rem;
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.product-card:hover {
    border-color: var(--ui-border);
    box-shadow: none;
    transform: none;
}

.product-art {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    background: var(--ui-zinc-50);
}

.product-art img {
    border-radius: calc(var(--ui-control-radius) - 1px);
    transition: opacity .18s ease, transform .22s ease;
}

.product-card:hover .product-art img {
    opacity: .94;
    transform: scale(1.015);
}

.product-badge {
    top: .75rem;
    right: .75rem;
    padding: .3rem .5rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--ui-shadow-sm);
    font-size: .63rem;
    font-weight: 500;
}

.product-copy {
    padding: 1rem .15rem .25rem;
}

.product-copy h3 {
    font-size: 1rem;
    font-weight: 500;
}

.product-copy > p:not(.product-type) {
    color: var(--ui-zinc-600);
    font-size: .78rem;
    line-height: 1.55;
}

.product-copy a {
    color: var(--ui-zinc-950);
    font-size: .76rem;
    font-weight: 500;
}

.process-list {
    gap: 0;
    border-top: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
}

.process-list li {
    min-height: 185px;
    padding: 1.35rem;
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    background: #fff;
}

.process-list > li > span {
    color: var(--ui-zinc-500);
    font-size: .7rem;
    font-weight: 500;
}

.process-list strong {
    font-size: .92rem;
    font-weight: 500;
}

.process-list p {
    color: var(--ui-zinc-600);
    font-size: .78rem;
}

.project-callout {
    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    border-radius: 0;
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-50);
    box-shadow: none;
}

.project-callout::after {
    display: none;
}

.project-callout > p:not(.eyebrow) {
    color: var(--ui-zinc-600);
}

.project-callout .eyebrow {
    color: var(--ui-zinc-600);
}

.commerce-footer {
    padding: 2.25rem clamp(1.5rem, 4vw, 4rem);
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    color: var(--ui-zinc-600);
    background: #fff;
}

.commerce-footer strong,
.commerce-footer a {
    color: var(--ui-zinc-950);
}

/* Catalog, product, cart, checkout, account, and confirmation surfaces */

.catalog-page,
.product-detail,
.cart-page,
.checkout-page,
.project-page,
.confirmation-page,
.account-page,
.order-page {
    width: min(var(--ui-shell-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4.75rem) clamp(1.5rem, 4vw, 4rem);
    border-right: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    color: var(--ui-zinc-950);
    background: #fff;
}

.breadcrumb {
    color: var(--ui-zinc-500);
    font-size: .75rem;
}

.breadcrumb a {
    color: var(--ui-zinc-600);
}

.catalog-heading,
.cart-heading,
.checkout-heading,
.account-heading {
    max-width: 760px;
}

.catalog-heading h1,
.cart-heading h1,
.checkout-heading h1,
.account-heading h1,
.confirmation-page h1,
.order-page > h1 {
    margin: .55rem 0 .85rem;
    color: var(--ui-zinc-950);
    font-size: clamp(2.35rem, 4.5vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.05em;
}

.catalog-heading > p:last-child,
.cart-heading > p:last-child,
.checkout-heading > p:last-child,
.account-heading > p:last-child,
.confirmation-lead {
    color: var(--ui-zinc-600);
    line-height: 1.65;
}

.catalog-toolbar {
    margin: 2.25rem 0 0;
    padding: .85rem 1rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    background: var(--ui-zinc-50);
}

.catalog-toolbar strong {
    font-weight: 500;
}

.catalog-toolbar span,
.catalog-toolbar p {
    color: var(--ui-zinc-600);
}

.catalog-toolbar p span {
    color: var(--ui-green);
}

.catalog-grid {
    margin-top: 1rem;
    gap: 1rem;
}

.catalog-card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: #fff;
    box-shadow: none;
}

.catalog-card:hover {
    border-color: #d4d4d8;
    box-shadow: none;
    transform: none;
}

.catalog-card-media {
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-zinc-50);
}

.catalog-card-media img {
    transition: opacity .18s ease, transform .22s ease;
}

.catalog-card:hover .catalog-card-media img {
    opacity: .95;
    transform: scale(1.012);
}

.catalog-card-body {
    padding: 1rem;
}

.catalog-card h2 {
    font-size: 1rem;
    font-weight: 500;
}

.catalog-card-body > p:not(.product-type) {
    color: var(--ui-zinc-600);
    font-size: .78rem;
}

.catalog-card-commercial {
    padding: .75rem 0;
    border-top: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-zinc-600);
    font-size: .72rem;
}

.catalog-card-commercial strong {
    font-weight: 500;
}

.catalog-card-link {
    color: var(--ui-zinc-950);
    font-size: .76rem;
    font-weight: 500;
}

.shopping-benefits {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: #fff;
    box-shadow: none;
}

.shopping-benefits article {
    border-color: var(--ui-border);
    background: #fff;
}

.shopping-benefits article > span {
    color: var(--ui-zinc-500);
    background: var(--ui-zinc-100);
}

.product-detail-grid {
    gap: clamp(2rem, 5vw, 5rem);
}

.product-detail-media {
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: var(--ui-zinc-50);
    box-shadow: none;
}

.product-detail-buybox {
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
}

.product-detail-buybox h1 {
    color: var(--ui-zinc-950);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -.045em;
}

.product-detail-description,
.estimate-note {
    color: var(--ui-zinc-600);
}

.commercial-facts,
.product-assurance,
.project-help-link {
    border-color: var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: var(--ui-zinc-50);
    box-shadow: none;
}

.commercial-facts dd {
    font-weight: 500;
}

.add-cart-form input,
.cart-item-actions input {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    background: #fff;
}

.project-help-link {
    color: var(--ui-zinc-950);
}

.project-help-link span {
    color: var(--ui-zinc-600);
}

.empty-catalog,
.empty-cart,
.account-empty,
.admin-empty {
    border: 1px dashed #d4d4d8;
    border-radius: var(--ui-panel-radius);
    color: var(--ui-zinc-600);
    background: var(--ui-zinc-50);
    box-shadow: none;
}

.cart-layout,
.checkout-layout {
    gap: 1rem;
}

.cart-item,
.cart-summary,
.checkout-form,
.checkout-summary,
.checkout-panel,
.project-form-panel,
.confirmation-card,
.confirmation-items,
.customer-order-card,
.customer-order-statuses,
.tracking-summary,
.tracking-card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: #fff;
    box-shadow: none;
}

.cart-item,
.customer-order-card {
    padding: 1rem;
}

.cart-item-art {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    background: var(--ui-zinc-100);
}

.cart-item-copy p,
.cart-summary > p,
.checkout-summary > p {
    color: var(--ui-zinc-600);
}

.cart-item-actions button,
.remove-button,
.text-button {
    border-radius: var(--ui-control-radius);
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.project-form-panel input,
.project-form-panel textarea,
.project-form-panel select {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    background: #fff;
}

.checkout-account-note,
.checkout-terms,
.customer-order-statuses,
.tracking-summary,
.tracking-card {
    border-color: var(--ui-border);
    border-radius: var(--ui-panel-radius);
    color: var(--ui-zinc-700);
    background: var(--ui-zinc-50);
}

/* Authentication */

.auth-body {
    min-height: 100vh;
    padding: 2rem;
    background: var(--ui-zinc-50);
}

.auth-layout {
    width: min(1120px, 100%);
    min-height: calc(100vh - 4rem);
    margin: 0 auto;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ui-shadow-sm);
}

.auth-story {
    min-height: 640px;
    padding: clamp(2.5rem, 6vw, 5rem);
    border-right: 1px solid var(--ui-border);
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-50);
}

.auth-story::before,
.auth-story::after {
    display: none;
}

.auth-story .brand,
.auth-layout .auth-story .brand {
    color: var(--ui-zinc-950);
}

.auth-story .brand-mark,
.admin-header .brand-mark {
    border-color: #18181b;
    color: rgba(255, 255, 255, .92);
    background: var(--ui-zinc-950);
}

.auth-story .brand-copy small,
.auth-layout .auth-story .brand-copy small {
    color: var(--ui-zinc-600);
}

.auth-story h1,
.auth-layout .auth-story h1 {
    max-width: 620px;
    color: var(--ui-zinc-950);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 500;
    line-height: .99;
    letter-spacing: -.055em;
}

.auth-story p:not(.eyebrow),
.auth-layout .auth-story p:not(.eyebrow) {
    color: var(--ui-zinc-600);
    font-size: .9rem;
}

.auth-layout .auth-story .eyebrow,
.auth-layout .auth-story .text-link {
    color: var(--ui-zinc-600);
}

/* Catalog workspace — operational density with marketplace merchandising. */
.catalog-workspace {
    max-width: 1680px;
    padding-bottom: 4rem;
}

.catalog-commandbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.catalog-commandbar h1 {
    margin: .15rem 0 .35rem;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -.045em;
}

.catalog-commandbar > div > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--ui-zinc-600);
}

.catalog-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--ui-zinc-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.catalog-summary > div {
    display: grid;
    gap: .35rem;
    min-height: 86px;
    padding: 1.15rem 1.25rem;
    border-right: 1px solid var(--ui-zinc-200);
}

.catalog-summary > div:last-child {
    border-right: 0;
}

.catalog-summary span {
    color: var(--ui-zinc-500);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.catalog-summary strong {
    overflow: hidden;
    color: var(--ui-zinc-900);
    font-size: 1.1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
    align-items: start;
    gap: 1.25rem;
}

.catalog-main,
.catalog-create-panel {
    border: 1px solid var(--ui-zinc-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: .65rem;
    padding: 1rem;
    border-bottom: 1px solid var(--ui-zinc-200);
}

.catalog-toolbar input,
.catalog-toolbar select,
.catalog-toolbar button {
    min-height: 42px;
    border: 1px solid var(--ui-zinc-300);
    border-radius: 9px;
    background: #fff;
    color: var(--ui-zinc-900);
    font: inherit;
}

.catalog-toolbar input,
.catalog-toolbar select {
    width: 100%;
    padding: 0 .85rem;
}

.catalog-toolbar button {
    padding: 0 1rem;
    font-weight: 700;
    cursor: pointer;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
    border-color: var(--ui-blue-600);
    outline: 3px solid rgb(37 99 235 / 14%);
}

.catalog-table-head {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) 120px 150px minmax(180px, .8fr);
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ui-zinc-200);
    color: var(--ui-zinc-500);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.catalog-product {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) 120px 150px minmax(180px, .8fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--ui-zinc-200);
}

.catalog-product:last-child {
    border-bottom: 0;
}

.catalog-product-identity {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
}

.catalog-product-identity img,
.catalog-product-placeholder {
    width: 64px;
    height: 64px;
    border: 1px solid var(--ui-zinc-200);
    border-radius: 10px;
    background: var(--ui-zinc-100);
    object-fit: cover;
}

.catalog-product-placeholder {
    display: grid;
    place-items: center;
    color: var(--ui-zinc-400);
    font-family: var(--font-merchandising);
    font-size: 1.5rem;
}

.catalog-product h2 {
    overflow: hidden;
    margin: 0 0 .2rem;
    font-size: .96rem;
    font-weight: 750;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-identity p,
.catalog-product-identity span,
.catalog-commercial span {
    display: block;
    margin: 0;
    color: var(--ui-zinc-500);
    font-size: .78rem;
}

.catalog-commercial {
    display: grid;
    gap: .3rem;
}

.catalog-commercial strong {
    font-size: .88rem;
}

.catalog-actions {
    justify-content: flex-end;
}

.catalog-media-editor {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(150px, .65fr) minmax(420px, 1.7fr);
    gap: .85rem 1.25rem;
    margin: .15rem -.25rem -.25rem;
    padding: .85rem;
    border: 1px solid var(--ui-zinc-200);
    border-radius: 11px;
    background: var(--ui-zinc-50);
}

.catalog-media-editor > div:first-child {
    display: grid;
    align-content: center;
    gap: .2rem;
}

.catalog-media-editor > div:first-child span {
    color: var(--ui-zinc-500);
    font-size: .75rem;
}

.catalog-media-editor form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(190px, 1.25fr) auto;
    align-items: center;
    gap: .55rem;
}

.catalog-media-editor input,
.catalog-media-editor button {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--ui-zinc-300);
    border-radius: 8px;
    background: #fff;
    color: var(--ui-zinc-900);
    font: inherit;
    font-size: .8rem;
}

.catalog-media-editor input[type="text"],
.catalog-media-editor input:not([type]) {
    padding: 0 .7rem;
}

.catalog-upload {
    position: relative;
    overflow: hidden;
    min-height: 38px;
    border: 1px dashed var(--ui-zinc-400);
    border-radius: 8px;
    background: #fff;
}

.catalog-upload > span {
    display: grid;
    min-height: 38px;
    place-items: center;
    color: var(--ui-zinc-700);
    font-size: .78rem;
    font-weight: 700;
}

.catalog-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.catalog-media-editor button {
    padding: 0 .8rem;
    font-weight: 750;
    cursor: pointer;
}

.catalog-media-strip {
    grid-column: 1 / -1;
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding-top: .2rem;
}

.catalog-media-strip figure {
    flex: 0 0 88px;
    margin: 0;
}

.catalog-media-strip img {
    width: 88px;
    height: 88px;
    border: 1px solid var(--ui-zinc-200);
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

.catalog-media-strip figcaption {
    overflow: hidden;
    margin-top: .25rem;
    color: var(--ui-zinc-500);
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-create-panel {
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.catalog-create-heading {
    padding: 1.25rem 1.25rem .8rem;
}

.catalog-create-heading h2 {
    margin: .15rem 0 .35rem;
    font-size: 1.4rem;
    letter-spacing: -.025em;
}

.catalog-create-heading p:last-child {
    margin: 0;
    color: var(--ui-zinc-500);
    font-size: .84rem;
    line-height: 1.5;
}

.catalog-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: .75rem 1.25rem;
    border-block: 1px solid var(--ui-zinc-200);
    background: var(--ui-zinc-50);
    list-style: none;
}

.catalog-steps li {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--ui-zinc-500);
    font-size: .72rem;
    font-weight: 700;
}

.catalog-steps span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--ui-zinc-300);
    border-radius: 50%;
    background: #fff;
    font-size: .65rem;
}

.catalog-steps li[aria-current="step"] {
    color: var(--ui-zinc-900);
}

.catalog-steps li[aria-current="step"] span {
    border-color: var(--ui-blue-600);
    background: var(--ui-blue-600);
    color: #fff;
}

.catalog-create-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: 1.2rem 1.25rem 1.25rem;
}

.catalog-create-form label small {
    display: block;
    margin-top: .3rem;
    color: var(--ui-zinc-500);
    font-size: .68rem;
}

.catalog-field-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(100px, .6fr);
    gap: .7rem;
}

.catalog-create-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .25rem;
}

.catalog-create-actions > span {
    color: var(--ui-zinc-500);
    font-size: .72rem;
}

.catalog-empty {
    display: grid;
    min-height: 340px;
    place-items: center;
    align-content: center;
    padding: 2rem;
    text-align: center;
}

.catalog-empty > span {
    font-size: 2rem;
}

.catalog-empty h2 {
    margin: .8rem 0 .25rem;
    font-size: 1.1rem;
}

.catalog-empty p {
    margin: 0 0 .8rem;
    color: var(--ui-zinc-500);
}

/* The admin navigation consumes 240px, so the product workspace needs the
   single-column layout before a 1280px viewport becomes cramped. */
@media (max-width: 1440px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-create-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .catalog-commandbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-summary > div:nth-child(2) {
        border-right: 0;
    }

    .catalog-summary > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--ui-zinc-200);
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .catalog-table-head {
        display: none;
    }

    .catalog-product {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-product-identity,
    .catalog-media-editor {
        grid-column: 1 / -1;
    }

    .catalog-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

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

    .catalog-media-editor form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .catalog-summary {
        grid-template-columns: 1fr;
    }

    .catalog-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--ui-zinc-200);
    }

    .catalog-summary > div:last-child {
        border-bottom: 0;
    }

    .catalog-product {
        grid-template-columns: 1fr;
    }

    .catalog-field-pair {
        grid-template-columns: 1fr;
    }
}

.commerce-workspace {
    max-width: 1440px;
}

.commerce-defaults {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0 1.25rem;
}

.commerce-defaults div {
    display: grid;
    gap: .3rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ui-zinc-200);
    border-radius: var(--ui-radius-md);
    background: var(--ui-white);
}

.commerce-defaults span {
    color: var(--ui-zinc-600);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

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

.commerce-module-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--ui-zinc-200);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-white);
    box-shadow: var(--ui-shadow-sm);
}

.commerce-module-card-wide {
    grid-column: 1 / -1;
}

.commerce-module-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    color: var(--ui-marketplace-accent);
    background: var(--ui-marketplace-soft);
    font-weight: 800;
}

.commerce-module-card h2,
.commerce-module-card p {
    margin: 0 0 .45rem;
}

.commerce-module-card > strong,
.commerce-module-card > a {
    grid-column: 2;
}

.commerce-module-card > strong {
    font-size: .85rem;
}

.commerce-module-card > a {
    color: var(--ui-marketplace-accent);
    font-weight: 750;
}

.commerce-readiness {
    margin-top: 1rem;
}

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

    .commerce-module-card,
    .commerce-module-card-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .commerce-defaults {
        grid-template-columns: 1fr;
    }
}

.catalog-search {
    max-width: 46rem;
    margin-top: 1.5rem;
}

.catalog-search > label {
    display: block;
    margin-bottom: .45rem;
    color: var(--ui-zinc-700);
    font-size: .82rem;
    font-weight: 750;
}

.catalog-search > div {
    display: flex;
    gap: .5rem;
}

.catalog-search input {
    min-width: 0;
    flex: 1;
    min-height: 2.75rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ui-zinc-300);
    border-radius: var(--ui-control-radius);
    background: var(--ui-white);
}

.configurator-form {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--ui-zinc-200);
    border-radius: var(--ui-radius-md);
    background: var(--ui-zinc-50);
}

.configurator-heading h2,
.configurator-heading p {
    margin: 0 0 .35rem;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.configurator-form label {
    display: grid;
    gap: .35rem;
    color: var(--ui-zinc-700);
    font-size: .82rem;
    font-weight: 700;
}

.configurator-form input,
.configurator-form select,
.configurator-form textarea {
    width: 100%;
    min-height: 2.55rem;
    padding: .65rem .75rem;
    border: 1px solid var(--ui-zinc-300);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-950);
    background: var(--ui-white);
    font: inherit;
}

.configurator-form textarea {
    resize: vertical;
}

@media (max-width: 520px) {
    .configurator-grid {
        grid-template-columns: 1fr;
    }
}

.auth-workspace-pill {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: #fff;
    font-size: .68rem;
    font-weight: 500;
}

.auth-feature-list {
    gap: .55rem;
}

.auth-feature-list li {
    padding: .6rem .7rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: rgba(255, 255, 255, .7);
}

.auth-feature-list span {
    color: var(--ui-green);
    background: transparent;
}

.auth-panel {
    padding: clamp(2rem, 5vw, 4rem);
    background: #fff;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 1.5rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: #fff;
    box-shadow: none;
}

.auth-card-header {
    gap: .7rem;
}

.auth-lock {
    width: 2rem;
    height: 2rem;
    border: 1px solid #18181b;
    border-radius: var(--ui-control-radius);
    color: #fff;
    background: var(--ui-zinc-950);
    font-size: .72rem;
    box-shadow: inset 0 .75px rgba(255, 255, 255, .2);
}

.auth-card h2,
.auth-card-header h2 {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -.025em;
}

.auth-card > p:not(.eyebrow, .auth-switch, .auth-admin-link) {
    color: var(--ui-zinc-600);
}

.auth-form {
    gap: .85rem;
}

.auth-form label span {
    color: var(--ui-zinc-700);
    font-size: .75rem;
    font-weight: 500;
}

.auth-form input {
    min-height: 2.6rem;
    border: 1px solid #d4d4d8;
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-950);
    background: #fff;
    font-size: .85rem;
    box-shadow: inset 0 1px 1px rgba(24, 24, 27, .02);
}

.auth-form input:focus {
    outline: 2px solid rgba(23, 107, 74, .16);
    border-color: #a1a1aa;
    box-shadow: none;
}

.auth-security-note {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: var(--ui-zinc-50);
}

.auth-security-note > span {
    color: var(--ui-green);
    background: transparent;
}

.auth-security-note small {
    color: var(--ui-zinc-600);
}

.auth-switch,
.auth-admin-link {
    color: var(--ui-zinc-600);
}

.auth-switch a,
.auth-admin-link a {
    color: var(--ui-zinc-950);
    font-weight: 500;
}

/* Employee workspace */

.admin-body {
    min-height: 100vh;
    padding-left: 240px;
    color: var(--ui-zinc-950);
    background: #fff;
    font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
    font-family: inherit;
}

.admin-header {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 240px;
    height: 100vh;
    padding: .85rem .75rem;
    gap: .85rem;
    border: 0;
    border-right: 1px solid var(--ui-border);
    color: var(--ui-zinc-700);
    background: var(--ui-zinc-50);
    box-shadow: none;
}

.admin-header .brand {
    width: 100%;
    padding: .15rem .35rem .85rem;
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-zinc-950);
}

.admin-header .brand-copy small {
    color: var(--ui-zinc-600);
}

.admin-header nav {
    gap: .15rem;
}

.admin-nav-section {
    margin: .5rem .65rem .3rem;
    color: var(--ui-zinc-500);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
}

.admin-header nav a {
    min-height: 2.35rem;
    padding: 0 .65rem;
    gap: .55rem;
    border: 1px solid transparent;
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-600);
    font-size: .78rem;
    font-weight: 450;
}

.admin-header nav a::before {
    width: .42rem;
    height: .42rem;
    border: 1px solid #a1a1aa;
    border-radius: 2px;
    opacity: 1;
}

.admin-header nav a:hover {
    border-color: var(--ui-border);
    color: var(--ui-zinc-950);
    background: #fff;
}

.admin-header nav a[aria-current="page"] {
    border-color: var(--ui-border);
    color: var(--ui-zinc-950);
    background: #fff;
    box-shadow: var(--ui-shadow-sm);
}

.admin-header nav a[aria-current="page"]::before {
    border-color: var(--ui-green);
    background: var(--ui-green);
}

.admin-header nav a:last-child {
    margin-top: auto;
    border: 1px solid var(--ui-border);
    color: var(--ui-zinc-700);
    background: transparent;
}

.admin-logout {
    padding-top: .75rem;
    border-top: 1px solid var(--ui-border);
}

.admin-logout button {
    min-height: 2.25rem;
    border: 1px solid transparent;
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-600);
    font-size: .78rem;
}

.admin-logout button:hover {
    border-color: var(--ui-border);
    color: var(--ui-zinc-950);
    background: #fff;
}

.admin-shell {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
    gap: 1rem;
}

.admin-title {
    margin-bottom: .5rem;
    align-items: flex-end;
}

.admin-title .eyebrow {
    margin-bottom: .35rem;
}

.admin-title h1 {
    margin: 0 0 .35rem;
    color: var(--ui-zinc-950);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.admin-title > div > p:last-child {
    max-width: 700px;
    color: var(--ui-zinc-600);
    font-size: .82rem;
}

.tenant-chip,
.status {
    padding: .3rem .48rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: var(--ui-zinc-50);
    font-size: .64rem;
    font-weight: 500;
}

.admin-panel,
.dashboard-kpi {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: #fff;
    box-shadow: none;
}

.admin-panel {
    padding: 1.25rem;
}

.admin-panel-heading {
    margin-bottom: 1rem;
}

.admin-panel-heading h2 {
    margin: .1rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.015em;
}

.admin-panel-heading > p {
    color: var(--ui-zinc-600);
    font-size: .74rem;
}

.dashboard-kpis,
.dashboard-columns {
    gap: .75rem;
}

.dashboard-kpi {
    padding: 1rem;
}

.dashboard-kpi > span {
    color: var(--ui-zinc-600);
    font-size: .68rem;
}

.dashboard-kpi strong {
    margin: .45rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.dashboard-kpi small {
    color: var(--ui-zinc-600);
}

.dashboard-kpi a,
.admin-panel-heading a {
    color: var(--ui-zinc-950);
    font-size: .72rem;
    font-weight: 500;
}

.dashboard-financial-grid {
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
}

.dashboard-financial-grid > div {
    border-color: var(--ui-border);
    background: #fff;
}

.dashboard-profit {
    background: var(--ui-zinc-50) !important;
}

.dashboard-action,
.admin-product-row,
.preorder-admin-row,
.opportunity-card,
.quotation-card,
.project-admin-card,
.project-conversion-card,
.campaign-card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    background: #fff;
    box-shadow: none;
}

.dashboard-action:hover {
    border-color: #d4d4d8;
    background: var(--ui-zinc-50);
}

.admin-form {
    gap: .85rem;
}

.admin-form label span,
.compact-form label span {
    color: var(--ui-zinc-700);
    font-size: .72rem;
    font-weight: 500;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.compact-form input,
.compact-form select,
.compact-form textarea {
    border: 1px solid #d4d4d8;
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-950);
    background: #fff;
    font-size: .8rem;
    box-shadow: inset 0 1px 1px rgba(24, 24, 27, .02);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.compact-form input:focus,
.compact-form select:focus,
.compact-form textarea:focus {
    outline: 2px solid rgba(23, 107, 74, .15);
    border-color: #a1a1aa;
}

.admin-row-actions button,
.compact-form button {
    min-height: 2.1rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: #fff;
    font-size: .7rem;
    font-weight: 500;
}

.admin-row-actions button:hover,
.compact-form button:hover {
    border-color: #d4d4d8;
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-50);
}

.admin-row-actions .action-primary,
.compact-form .action-primary {
    border-color: #18181b;
    color: #fff;
    background: var(--ui-zinc-950);
}

.admin-row-actions .action-danger {
    color: #b42318;
    background: #fff;
}

/* Guided help */

.chat-peek {
    max-width: 15rem;
    padding: .6rem .72rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-panel-radius);
    color: var(--ui-zinc-700);
    background: #fff;
    box-shadow: var(--ui-shadow-md);
    font-size: .76rem;
    font-weight: 500;
}

.chat-launcher {
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid #18181b;
    color: #fff;
    background: var(--ui-zinc-950);
    box-shadow: inset 0 .75px rgba(255, 255, 255, .18),
        0 6px 18px rgba(24, 24, 27, .16);
}

.chat-launcher:hover,
.chat-launcher[aria-expanded="true"] {
    background: #18181b;
    transform: none;
}

.chat-panel {
    bottom: 4.1rem;
    width: min(23rem, calc(100vw - 2rem));
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 24, 27, .14);
}

.chat-header {
    padding: .8rem .85rem;
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-zinc-950);
    background: #fff;
}

.chat-avatar {
    width: 2rem;
    height: 2rem;
    border: 1px solid #18181b;
    border-radius: var(--ui-control-radius);
    color: #fff;
    background: var(--ui-zinc-950);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 600;
}

.chat-identity strong {
    font-size: .82rem;
    font-weight: 500;
}

.chat-identity small {
    color: var(--ui-zinc-600);
    font-size: .68rem;
}

.chat-close {
    color: var(--ui-zinc-600);
}

.chat-close:hover {
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-100);
}

.chat-messages {
    background: var(--ui-zinc-50);
}

.chat-message {
    border-radius: var(--ui-panel-radius);
    font-size: .78rem;
}

.chat-message-bot {
    border-color: var(--ui-border);
    border-bottom-left-radius: 3px;
    background: #fff;
}

.chat-message-user {
    border-bottom-right-radius: 3px;
    background: var(--ui-zinc-950);
}

.chat-message-action,
.chat-product-link {
    color: var(--ui-zinc-950);
    font-weight: 500;
}

.chat-quick-button {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
    color: var(--ui-zinc-700);
    background: #fff;
    font-size: .72rem;
    font-weight: 500;
}

.chat-quick-button:hover {
    border-color: #d4d4d8;
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-50);
}

.chat-product-preview {
    border-color: var(--ui-border);
    border-radius: var(--ui-panel-radius);
    box-shadow: none;
}

.chat-product-preview img {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-control-radius);
}

.chat-product-copy strong {
    font-weight: 500;
}

.chat-input,
.chat-send {
    border-radius: var(--ui-control-radius);
}

.chat-input {
    border-color: #d4d4d8;
}

.chat-send {
    border: 1px solid #18181b;
    color: #fff;
    background: var(--ui-zinc-950);
    font-weight: 500;
}

.chat-send:hover {
    background: #18181b;
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    }

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

@media (max-width: 900px) {
    .site-header,
    .commerce-header {
        min-height: 56px;
        padding: .7rem 1rem 0;
        grid-template-columns: 1fr auto;
    }

    .site-header nav,
    .commerce-header nav {
        grid-column: 1 / -1;
        order: 3;
        padding: .55rem 0;
        gap: 1.25rem;
        border-top: 1px solid var(--ui-border);
    }

    .hero {
        min-height: auto;
        padding: 4.5rem clamp(1.5rem, 6vw, 4rem);
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        min-height: 0;
        aspect-ratio: 1.25 / 1;
    }

    .product-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .trust-strip p {
        border-right: 0;
        border-bottom: 1px solid var(--ui-border);
    }

    .trust-strip p:last-child {
        border-bottom: 0;
    }

    .auth-body {
        padding: 1rem;
    }

    .auth-layout {
        min-height: calc(100vh - 2rem);
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--ui-border);
    }

    .admin-body {
        padding-left: 0;
    }

    .admin-header {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        padding: .75rem;
        border-right: 0;
        border-bottom: 1px solid var(--ui-border);
    }

    .admin-header nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .admin-header nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-header nav a:last-child {
        margin-top: 0;
    }

    .admin-logout {
        padding-top: .6rem;
    }
}

@media (max-width: 640px) {
    .site-header,
    .commerce-header {
        padding: .6rem .9rem 0;
    }

    .brand-copy small {
        display: none;
    }

    .site-header nav,
    .commerce-header nav {
        gap: 1rem;
    }

    .hero,
    .trust-strip,
    .product-section,
    .process-section,
    .project-callout,
    .commerce-footer,
    .catalog-page,
    .product-detail,
    .cart-page,
    .checkout-page,
    .project-page,
    .confirmation-page,
    .account-page,
    .order-page {
        width: 100%;
        border-right: 0;
        border-left: 0;
    }

    .hero {
        padding: 3.5rem 1.25rem 1.25rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4rem);
    }

    .hero-visual {
        aspect-ratio: .92 / 1;
    }

    .product-section,
    .process-section {
        padding: 3.5rem 1.25rem;
    }

    .project-callout {
        padding: 3.5rem 1.25rem;
    }

    .catalog-page,
    .product-detail,
    .cart-page,
    .checkout-page,
    .project-page,
    .confirmation-page,
    .account-page,
    .order-page {
        padding: 2.5rem 1rem 4rem;
    }

    .catalog-heading h1,
    .cart-heading h1,
    .checkout-heading h1,
    .account-heading h1,
    .confirmation-page h1,
    .order-page > h1 {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .auth-body {
        padding: 0;
    }

    .auth-layout {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-story {
        padding: 2rem 1.25rem;
    }

    .auth-story h1 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    .auth-panel {
        padding: 2rem 1rem 3rem;
    }

    .auth-card {
        max-width: none;
        padding: 1.25rem;
    }

    .admin-shell {
        width: calc(100% - 1.5rem);
        padding-top: 1.4rem;
    }

    .admin-title {
        align-items: flex-start;
    }

    .admin-title h1 {
        font-size: 24px;
    }

    .dashboard-kpis,
    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .chat-assistant {
        right: .75rem;
        bottom: .75rem;
    }

    .chat-peek {
        display: none;
    }

    .chat-panel {
        bottom: 3.85rem;
        width: calc(100vw - 1.5rem);
    }
}

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

/* Variant-specific auth selectors must resolve to the shared neutral shell. */

.auth-layout .auth-story,
.customer-auth .auth-story,
.admin-auth-layout .auth-story {
    color: var(--ui-zinc-950);
    background: var(--ui-zinc-50);
    background-image: none;
}

.auth-layout .auth-story .brand,
.auth-layout .auth-story h1 {
    color: var(--ui-zinc-950);
}

.auth-layout .auth-story .brand-copy small,
.auth-layout .auth-story p:not(.eyebrow),
.auth-layout .auth-story .eyebrow,
.auth-layout .auth-story .text-link {
    color: var(--ui-zinc-600);
}
