:root {
    color-scheme: light;
    --brand: #0b57a4;
    --brand-dark: #073d75;
    --danger: #b42318;
    --danger-dark: #7a271a;
    --ink: #182230;
    --muted: #52606d;
    --border: #cbd5e1;
    --surface: #ffffff;
    --surface-muted: #f6f8fb;
    --focus: #f5a623;
    --success: #027a48;
    --warning: #8a4b08;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--surface-muted); color: var(--ink); line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .65rem 1rem; color: #fff; background: var(--ink); border-radius: .35rem; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--ink); color: #fff; }
.site-header__inner, .page { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { color: #fff; font-size: 1.25rem; font-weight: 750; text-decoration: none; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; }
.site-nav a { color: #fff; text-decoration: none; }
.site-nav form { margin: 0; }
.site-nav__cta { min-height: 2.35rem; padding: .45rem .8rem; text-decoration: none; }
.site-nav-toggle { display: none; }
.link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem .25rem; border: 0; color: var(--brand); background: transparent; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.site-nav .link-button { color: #fff; text-decoration: none; }
.page { padding-block: 2rem 4rem; }

.page-header, .actions, .toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; }
.page-header > *, .page-header__actions, .actions > *, .toolbar > * { min-width: 0; }
.list-toolbar { margin-bottom: 1rem; justify-content: flex-start; align-items: end; }
.list-toolbar__search { flex: 1 1 20rem; }
.list-toolbar__size { flex: 0 0 8rem; }
.list-panel { padding: 0; overflow: hidden; }
.list-panel .table-wrap { padding: 0 1.25rem; }
.list-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.list-pagination__links { justify-content: flex-end; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { margin-top: 2rem; }
summary { cursor: pointer; font-weight: 650; }

.panel, .card { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: .65rem; box-shadow: 0 1px 3px rgb(16 24 40 / 8%); }
.panel-section { min-width: 0; margin: 0; padding: 0 0 1.25rem; border: 0; border-bottom: 1px solid var(--border); }
.panel-section legend { margin-bottom: .35rem; padding: 0; font-size: 1.2rem; }
.panel-title { margin: 0; font-size: 1.25rem; }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cluster--between { width: 100%; justify-content: space-between; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--2 > #discount-type-fieldset,
.grid--2 > #discount-rate-field,
.grid--2 > #discount-amount-field { grid-column: 1 / -1; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.button, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid var(--brand); border-radius: .4rem; color: #fff; background: var(--brand); font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover, button:hover, input[type="submit"]:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.link-button:hover { color: var(--brand-dark); background: transparent; }
.site-nav .link-button:hover { color: #fff; background: transparent; }
.button--secondary { color: var(--brand); background: #fff; }
.button--secondary:hover { color: #fff; }
.button--danger { background: var(--danger); border-color: var(--danger); }
.button--danger:hover { background: var(--danger-dark); border-color: var(--danger-dark); }
.button--small { min-height: 2.75rem; padding: .45rem .7rem; font-size: .9rem; }

label, legend { font-weight: 650; }
input, select, textarea { width: 100%; min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid #98a2b3; border-radius: .35rem; color: var(--ink); background: #fff; font: inherit; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; min-height: 1.15rem; }
input[type="file"] { height: auto; }
textarea { min-height: 7rem; resize: vertical; }
.field { display: grid; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field__help, .muted { color: var(--muted); font-size: .925rem; }
.field-error, .errorlist { color: var(--danger-dark); font-weight: 600; }
.errorlist { margin: .3rem 0; padding-left: 1.25rem; }
.alert { padding: .85rem 1rem; border-left: .35rem solid var(--brand); background: #eff8ff; }
.alert--error { border-color: var(--danger); background: #fff1f0; color: var(--danger-dark); }
.alert--success { border-color: var(--success); background: #ecfdf3; color: #05603a; }
.quote-save-errors { margin-top: .75rem; }
.quote-save-errors p { margin: 0 0 .45rem; font-weight: 800; }
.quote-save-errors ul { display: grid; margin: 0; padding-left: 1.25rem; gap: .25rem; }
.quote-save-errors__link { display: inline; min-height: 0; padding: 0; border: 0; color: var(--danger-dark); background: transparent; font-weight: 750; line-height: 1.35; text-align: left; text-decoration: underline; text-underline-offset: .15em; }
.quote-save-errors__link:hover, .quote-save-errors__link:focus-visible { color: #7a271a; background: transparent; }
[hidden] { display: none !important; }

.login-container, .auth-container { width: min(100%, 34rem); margin-inline: auto; }
.auth-container h1, .login-container h1 { margin-top: 0; }
.auth-secondary-action { margin-bottom: 0; text-align: center; }

.landing-page { --landing-ink: #101828; --landing-muted: #475467; --landing-soft: #f8fafc; display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.landing-page h1, .landing-page h2, .landing-page h3, .landing-page p { margin-top: 0; }
.landing-page h2 { margin-bottom: .85rem; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.025em; }
.landing-page h3 { margin-bottom: .6rem; }
.landing-eyebrow { margin-bottom: .7rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: min(44rem, calc(100vh - 7rem)); padding-block: clamp(2rem, 6vw, 5rem); }
.landing-hero::before { content: ""; position: absolute; z-index: -1; top: 5%; right: -4%; width: min(32rem, 65vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(167 34 35 / 12%), rgb(167 34 35 / 0%) 68%); }
.landing-hero__copy { max-width: 42rem; }
.landing-hero h1 { margin-bottom: 1.25rem; color: var(--landing-ink); font-size: clamp(2.65rem, 7vw, 5rem); letter-spacing: -.055em; line-height: .98; }
.landing-hero__lead { max-width: 39rem; margin-bottom: 1.5rem; color: var(--landing-muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.landing-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.landing-button { min-height: 3.15rem; padding: .8rem 1.15rem; border-radius: .55rem; }
.landing-button--quiet { color: var(--landing-ink); border-color: #98a2b3; }
.landing-button--quiet:hover { border-color: var(--brand-dark); }
.landing-hero__note { margin: .8rem 0 0; color: var(--landing-muted); font-size: .9rem; }
.landing-proof-list { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; margin: 1.5rem 0 0; padding: 0; color: #344054; font-size: .9rem; font-weight: 650; list-style: none; }
.landing-proof-list li { display: flex; align-items: center; gap: .4rem; }
.landing-proof-list li::before { content: ""; flex: 0 0 .55rem; width: .55rem; height: .55rem; border: 2px solid var(--brand); border-radius: 50%; background: #fff; }
.landing-preview { overflow: hidden; border: 1px solid #d0d5dd; border-radius: 1rem; background: #fff; box-shadow: 0 1.5rem 4rem rgb(16 24 40 / 14%); transform: rotate(1deg); }
.landing-preview__header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.25rem 1rem; border-bottom: 1px solid #eaecf0; }
.landing-preview__header strong, .landing-preview__eyebrow { display: block; }
.landing-preview__eyebrow { margin-bottom: .2rem; color: #667085; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.landing-status { flex: 0 0 auto; padding: .25rem .55rem; border: 1px solid #75e0a7; border-radius: 999px; color: #05603a; background: #ecfdf3; font-size: .72rem; font-weight: 750; }
.landing-preview__progress { height: .35rem; background: #f2f4f7; }
.landing-preview__progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--brand), #d65a52); }
.landing-preview__steps { margin: 0; padding: .5rem 1.25rem; list-style: none; }
.landing-preview__steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: 1rem 0; }
.landing-preview__steps li + li { border-top: 1px solid #eaecf0; }
.landing-preview__steps strong, .landing-preview__steps small { display: block; }
.landing-preview__steps small { margin-top: .12rem; color: #667085; }
.landing-preview__number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; color: #fff; background: var(--landing-ink); font-size: .8rem; font-weight: 800; }
.landing-preview__state { color: #05603a; font-size: .78rem; font-weight: 750; }
.landing-preview__footer { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; color: #475467; background: var(--landing-soft); font-size: .85rem; }
.landing-preview__footer strong { color: var(--landing-ink); }
.landing-value-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d0d5dd; border-radius: .85rem; background: #fff; box-shadow: 0 .25rem 1rem rgb(16 24 40 / 6%); }
.landing-value-strip div { display: grid; gap: .25rem; padding: 1.25rem 1.5rem; }
.landing-value-strip div + div { border-left: 1px solid #eaecf0; }
.landing-value-strip strong { color: var(--landing-ink); }
.landing-value-strip span { color: var(--landing-muted); font-size: .9rem; }
.landing-section { scroll-margin-top: 1rem; }
.landing-section__heading { max-width: 48rem; margin-bottom: 2rem; }
.landing-section__heading > p:last-child { color: var(--landing-muted); font-size: 1.05rem; }
.landing-workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.landing-workflow li { position: relative; min-height: 18rem; padding: 1.4rem; border: 1px solid #d0d5dd; border-radius: .8rem; background: #fff; }
.landing-workflow li::after { content: ""; position: absolute; right: -1.05rem; top: 2.15rem; z-index: 1; width: 1.1rem; height: 2px; background: var(--brand); }
.landing-workflow li:last-child::after { display: none; }
.landing-workflow__number { display: block; margin-bottom: 3.5rem; color: var(--brand); font-size: .85rem; font-weight: 850; letter-spacing: .08em; }
.landing-workflow p { margin-bottom: 0; color: var(--landing-muted); font-size: .94rem; }
.landing-section--tinted { margin-inline: calc(50% - 50vw); padding: clamp(3.5rem, 7vw, 5.5rem) max(1rem, calc((100vw - 1180px) / 2)); background: #eef2f6; }
.landing-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.landing-role-card { padding: 1.5rem; border: 1px solid #d0d5dd; border-radius: .8rem; background: #fff; box-shadow: 0 .2rem .75rem rgb(16 24 40 / 5%); }
.landing-role-card__label { display: inline-flex; margin-bottom: 1.4rem; padding: .28rem .6rem; border-radius: 999px; color: var(--brand-dark); background: rgb(167 34 35 / 10%); font-size: .78rem; font-weight: 800; }
.landing-role-card ul, .landing-check-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.landing-role-card li, .landing-check-list li { position: relative; margin-top: .7rem; padding-left: 1.35rem; color: var(--landing-muted); }
.landing-role-card li::before, .landing-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 850; }
.landing-self-service { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.landing-self-service__copy > p:not(.landing-eyebrow) { max-width: 43rem; color: var(--landing-muted); font-size: 1.05rem; }
.landing-check-list { margin-block: 1.5rem; }
.landing-boundary-card { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid #344054; border-radius: 1rem; color: #d0d5dd; background: var(--landing-ink); box-shadow: 1rem 1rem 0 rgb(167 34 35 / 12%); }
.landing-boundary-card .landing-eyebrow { color: #fda29b; }
.landing-boundary-card h3 { color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); }
.landing-boundary-card p:last-child { margin-bottom: 0; }
.landing-boundary-card__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 2rem; border-radius: .7rem; color: #fff; background: var(--brand); font-size: 1.3rem; font-weight: 850; }
.landing-final-cta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr); gap: 2rem; align-items: center; margin-bottom: -2rem; padding: clamp(2rem, 6vw, 4rem); border-radius: 1rem; color: #fff; background: var(--landing-ink); box-shadow: 0 1rem 2.5rem rgb(16 24 40 / 16%); }
.landing-final-cta .landing-eyebrow { color: #fda29b; }
.landing-final-cta h2 { margin-bottom: 0; }
.landing-final-cta .landing-actions { justify-content: flex-end; }
.landing-button--light { color: var(--brand-dark); border-color: #fff; background: #fff; }
.landing-button--light:hover { color: #fff; background: var(--landing-ink); border-color: var(--landing-ink); }
.landing-final-cta__link { color: #fff; font-weight: 700; }
.landing-final-cta__link:hover { color: #fff; }
.landing-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.5rem; align-items: center; padding: 2rem 0 0; border-top: 1px solid #d0d5dd; color: var(--landing-muted); font-size: .88rem; }
.landing-footer p { margin: 0; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }

.table-wrap { overflow-x: auto; }
.audit-toolbar { align-items: end; }
.audit-secondary { display: block; margin-top: .2rem; font-size: .82rem; }
table { width: 100%; border-collapse: collapse; }
caption { padding: .75rem 0; text-align: left; font-weight: 700; }
th, td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #eef2f6; }
.thumbnail, .catalog-image { width: 5rem; height: 5rem; object-fit: contain; padding: .25rem; border: 1px solid var(--border); border-radius: .35rem; background: #fff; }
.catalog-image--large { width: min(100%, 22rem); height: 16rem; }
.company-branding { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(18rem, 1.25fr); gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-subtle, #f8fafc); }
.company-branding h2 { margin-top: 0; }
.company-branding__controls { display: grid; gap: 1rem; }
.company-branding__preview { display: grid; gap: .4rem; }
.company-branding__preview img { width: min(100%, 18rem); height: 6rem; object-fit: contain; object-position: left center; padding: .5rem; border: 1px solid var(--border); border-radius: .45rem; background: #fff; }
.field--checkbox { grid-template-columns: auto 1fr; align-items: center; }
.field--checkbox .field__help, .field--checkbox .errorlist { grid-column: 2; }
@media (max-width: 720px) { .company-branding { grid-template-columns: 1fr; } }

.quote-builder { display: grid; gap: 1.25rem; }
.quote-workflow-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; padding: .85rem 1rem; border: 1px solid #b7c9e2; border-radius: .7rem; background: #f4f8fc; }
.quote-workflow-bar__number { display: grid; gap: .15rem; }
.quote-workflow-bar__number span { color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.quote-workflow-bar__number strong { color: #163a63; font-size: 1.05rem; }
.quote-workflow-bar__autosave { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: #344054; font-size: .9rem; }
.quote-builder__catalog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: end; }
.quote-builder__catalog-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.quote-builder__catalog-controls--single { grid-template-columns: minmax(0, 1fr); }
.quote-builder__catalog-controls--add-equipment { grid-template-columns: minmax(16rem, 1fr) minmax(5.5rem, 7rem) minmax(10rem, 15rem); align-items: end; }
.quote-builder__quantity input { min-width: 0; }
.quote-builder__capacity-status { grid-column: 1 / -1; padding-top: 0; }
.catalog-picker { position: relative; }
.catalog-picker__trigger { width: 100%; justify-content: space-between; color: var(--ink); background: #fff; border-color: #98a2b3; font-weight: 400; text-align: left; }
.catalog-picker__trigger::after { content: "▾"; margin-left: 1rem; color: var(--muted); }
.catalog-picker__trigger:hover { color: var(--ink); background: var(--surface-muted); border-color: var(--brand); }
.catalog-picker__native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.catalog-picker__panel { position: absolute; z-index: 30; top: calc(100% + .35rem); left: 0; width: 100%; min-width: min(34rem, calc(100vw - 3rem)); padding: .65rem; border: 1px solid var(--border); border-radius: .45rem; background: #fff; box-shadow: 0 .75rem 1.75rem rgb(16 24 40 / 18%); }
.catalog-picker__panel-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.catalog-picker__search { position: sticky; top: 0; z-index: 1; margin-bottom: .5rem; }
.catalog-picker__options { display: grid; max-height: 22rem; overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid var(--border); }
.catalog-picker__option { display: grid; justify-content: stretch; justify-items: start; align-items: start; width: 100%; min-height: 0; padding: .65rem .75rem; border: 0; border-radius: 0; color: var(--ink); background: #fff; font-weight: 400; text-align: left; }
.catalog-picker__option + .catalog-picker__option { border-top: 1px solid #e4e7ec; }
.catalog-picker__option:hover, .catalog-picker__option:focus-visible { color: var(--ink); background: #eff8ff; }
.catalog-picker__option[aria-selected="true"] { background: #dbeafe; }
.catalog-picker__option:disabled { color: var(--muted); background: #f2f4f7; cursor: not-allowed; }
.catalog-picker__option-name { font-weight: 700; }
.catalog-picker__option-meta, .catalog-picker__status { color: var(--muted); font-size: .875rem; }
.catalog-picker__option-count { margin-top: .2rem; color: #175cd3; font-size: .78rem; font-weight: 700; }
.catalog-picker__status { display: block; padding-top: .5rem; }
.quote-product { position: relative; display: grid; gap: .55rem; padding: .7rem .8rem; contain: layout paint style; content-visibility: auto; contain-intrinsic-size: auto 11rem; }
.quote-product--expanded { content-visibility: visible; }
.quote-product--mount-only { border-left: .4rem solid var(--brand); }
.quote-product__header { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(22rem, auto) auto; gap: .65rem; align-items: center; }
.quote-product__identity { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .65rem; align-items: center; min-width: 0; }
.quote-product__identity .catalog-figure--compact, .quote-product__identity .catalog-image { width: 3.5rem; height: 3.5rem; }
.quote-product__identity-copy { display: grid; width: 100%; max-width: 100%; min-width: 0; gap: .12rem; overflow: hidden; }
.quote-product__identity-copy > * { min-width: 0; max-width: 100%; }
.quote-product__item-number { color: #175cd3; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.quote-product__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; }
.quote-product__title-row h3 { margin: 0; overflow: hidden; font-size: 1rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.quote-product__part-number { margin: 0; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.pricing-mode-toggle { display: inline-grid; grid-template-columns: repeat(2, auto); width: 100%; max-width: 18rem; min-width: 0; padding: .18rem; border: 1px solid #98a2b3; border-radius: 999px; background: #f2f4f7; }
.pricing-mode-toggle__option { min-height: 2.75rem; padding: .25rem .65rem; border: 0; border-radius: 999px; color: #344054; background: transparent; font-size: .7rem; white-space: nowrap; }
.pricing-mode-toggle__option:hover { color: var(--brand-dark); background: #fff; }
.pricing-mode-toggle__option--selected { color: #fff; background: var(--brand-dark); box-shadow: 0 .1rem .3rem rgb(16 24 40 / 18%); }
.pricing-mode-toggle__option--selected:hover { color: #fff; background: var(--brand); }
.equipment-price-summary { display: grid; grid-template-columns: repeat(4, minmax(4.8rem, 1fr)); gap: .3rem; min-width: min(26rem, 100%); margin: 0; }
.equipment-price-summary__item { min-width: 0; padding: .32rem .4rem; border: 1px solid var(--border); border-radius: .35rem; background: var(--surface-muted); }
.equipment-price-summary dt { color: var(--muted); font-size: .64rem; font-weight: 750; line-height: 1.1; }
.equipment-price-summary dd { margin: .08rem 0 0; overflow-wrap: anywhere; color: #163a63; font-size: .8rem; font-weight: 800; }
.equipment-price-summary__item--total { border-color: #84adff; background: #eff8ff; }
.quote-product__header-actions { display: flex; align-items: center; gap: .35rem; }
.quote-product__expand, .quote-product__actions summary { min-height: 2.75rem; white-space: nowrap; }
.quote-product__actions { position: relative; }
.quote-product__actions summary { display: inline-flex; align-items: center; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: .4rem; color: var(--brand-dark); background: #fff; font-size: .8rem; font-weight: 700; list-style: none; cursor: pointer; }
.quote-product__actions summary::-webkit-details-marker { display: none; }
.quote-product__actions[open] > .button { position: absolute; z-index: 8; top: calc(100% + .3rem); right: 0; width: max-content; box-shadow: 0 .4rem 1rem rgb(16 24 40 / 18%); }
.quote-product__compact-meta { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: .35rem .65rem; align-items: center; padding-top: .5rem; border-top: 1px solid #eaecf0; }
.quote-product__compartment-control { margin: 0; }
.quote-product__compartment-control label { font-size: .7rem; }
.quote-product__compartment-control select { min-height: 2.75rem; padding-block: .35rem; font-size: .82rem; }
.quote-product__compartment-control .field__help { display: none; }
.quote-product__status-line { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .65rem; min-width: 0; color: #344054; font-size: .78rem; }
.quote-product__status-line > span:not(.status-badge) { overflow: hidden; max-width: 20rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-product__status-line > span + span:not(.status-badge)::before { content: "•"; margin-right: .65rem; color: #98a2b3; }
.quote-product__geometry-status { margin-left: auto; }
.quote-product__details-preview { grid-column: 2; overflow: hidden; color: #344054; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-product__details-preview::before { content: "Details: "; color: var(--muted); font-weight: 700; }
.quote-product__details-preview--empty { color: var(--muted); font-style: italic; }
.quote-product__body { padding-top: .65rem; border-top: 1px solid #eaecf0; }
.quote-product__body[hidden] { display: none; }
.quote-product__migration-notice { margin: 0; }
.equipment-details-field textarea { min-height: 5.6rem; overflow-y: hidden; resize: none; }
.mount-selection { padding: .65rem .75rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface-muted); }
.mount-selection h4, .mount-selection__summary { margin: 0; }
.mount-selection__summary { color: #344054; font-size: .9rem; }
.mount-only-entry { align-items: center; gap: .45rem; margin-top: -.25rem; }
.mount-only-entry__trigger { min-height: 2.75rem; padding-inline: 0; font-size: .92rem; font-weight: 600; }
.mount-only-entry__optional { font-size: .8rem; }
.modal-dialog--compact { width: min(39rem, calc(100vw - 2rem)); }
.mount-only-dialog__surface { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; }
.mount-only-dialog__surface > .field { min-height: 0; }
.mount-only-dialog__heading h3, .mount-only-dialog__heading p { margin: 0; }
.mount-only-results { max-height: min(25rem, 52vh); border: 1px solid var(--border); border-radius: .45rem; }
.mount-only-results__group { display: grid; }
.mount-only-results__group + .mount-only-results__group { border-top: 1px solid var(--border); }
.mount-only-results__heading { position: sticky; z-index: 1; top: 0; display: block; padding: .4rem .75rem; color: #344054; background: #f2f4f7; font-size: .78rem; letter-spacing: .025em; text-transform: uppercase; }
.mount-only-results__option + .mount-only-results__option { border-top: 1px solid #e4e7ec; }
#mount-only-catalog[hidden] { display: none; }
.mount-only-note { align-self: end; min-height: 2.75rem; }
.quote-information-heading { align-items: center; }
.quote-information-heading p { margin: .3rem 0 0; }
.layout-toggle { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .6rem .9rem; border: 1px solid var(--brand); border-radius: .5rem; color: var(--brand-dark); background: #eff8ff; }
.layout-toggle input { margin: 0; }
.layout-toggle__copy { display: grid; gap: .05rem; }
.layout-toggle__copy small { color: #475467; font-size: .74rem; font-weight: 500; }
.quote-layout-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.quote-layout-shell__equipment { min-width: 0; }
#layout-designer-anchor { width: 100%; min-width: 0; margin-top: 1rem; }
.truck-layout-designer { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.truck-layout-designer h3, .compartment-card h3, .compartment-equipment-group h3 { margin: 0; }
.truck-layout-designer__heading { align-items: center; }
.truck-layout-workspace { min-width: 0; padding: .25rem; border-radius: .65rem; background: #fff; }
.layout-progress { display: grid; grid-template-columns: minmax(14rem, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid #84adff; border-radius: .65rem; background: #eff8ff; }
.layout-progress__copy { display: grid; gap: .15rem; }
.layout-progress__copy .eyebrow { color: var(--brand-dark); }
.layout-progress__metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.layout-progress__metrics > span { display: inline-flex; gap: .25rem; padding: .35rem .55rem; border: 1px solid #b2ccff; border-radius: 999px; color: #344054; background: #fff; font-size: .82rem; white-space: nowrap; }
.layout-placement-banner { position: sticky; z-index: 7; top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 2px solid var(--focus); border-radius: .6rem; color: #713b12; background: #fffaeb; box-shadow: 0 .45rem 1rem rgb(16 24 40 / 16%); }
.layout-placement-banner[hidden] { display: none; }
.layout-placement-banner > div { display: grid; min-width: 0; gap: .1rem; }
.layout-placement-wall-choices { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; max-width: 100%; margin-top: .35rem; overflow-x: auto; padding: .1rem .15rem .2rem; scrollbar-width: thin; }
.layout-placement-wall-choices > strong { flex: 0 0 auto; margin-right: .15rem; white-space: nowrap; }
.layout-placement-wall-choice { flex: 0 0 auto; min-height: 2.75rem; }
.modal-dialog { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; overflow: visible; border: 0; border-radius: .7rem; background: transparent; box-shadow: 0 1.5rem 4rem rgb(16 24 40 / 35%); }
.modal-dialog::backdrop { background: rgb(16 24 40 / 62%); backdrop-filter: blur(2px); }
.modal-dialog__surface { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem; border-radius: .7rem; background: #fff; }
.modal-dialog__surface h2, .modal-dialog__surface p { margin: 0; }
.modal-dialog__surface > .section-heading { flex-wrap: nowrap; }
.modal-dialog__surface > .section-heading > div { flex: 1 1 auto; min-width: 0; }
.modal-dialog__close { flex: 0 0 auto; }
.modal-dialog__actions { display: flex; justify-content: flex-end; gap: .65rem; padding-top: .25rem; border-top: 1px solid var(--border); }
.compartment-create-grid, .compartment-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.compartment-create-grid .field--wide { grid-column: span 4; }
.compartment-front-option { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: .65rem; padding: .7rem .8rem; border: 1px solid #b2ccff; border-radius: .45rem; color: #102a56; background: #f5f8ff; cursor: pointer; }
.compartment-front-option input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .12rem; }
.compartment-front-option span { display: grid; gap: .12rem; }
.compartment-front-option small { color: #475467; font-weight: 500; }
.compartment-front-option--edit { align-self: stretch; }
.compartment-card { overflow: visible; scroll-margin-top: 1rem; }
.compartment-edit { padding: .75rem; border: 1px solid var(--border); border-radius: .45rem; background: var(--surface-muted); }
.compartment-edit-grid { margin-top: .75rem; }
.compartment-card__workspace { position: relative; min-width: 0; }
.compartment-3d { min-width: 0; overflow: hidden; padding: .85rem; border: 1px solid #b2ccff; border-radius: .65rem; background: linear-gradient(145deg, #f8fbff, #eef4ff); contain: layout paint style; content-visibility: auto; contain-intrinsic-size: auto 28rem; }
.compartment-3d__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.compartment-3d__heading h4, .compartment-3d__heading p { margin: 0; }
.compartment-3d__heading p { max-width: 52rem; margin-top: .2rem; }
.compartment-3d__heading-actions { display: grid; justify-items: end; gap: .5rem; }
.compartment-3d__legend { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .35rem .7rem; font-size: .76rem; font-weight: 700; }
.compartment-3d__key { display: inline-flex; align-items: center; gap: .3rem; }
.compartment-3d__key::before { width: .8rem; height: .8rem; border: 1px solid #667085; border-radius: .15rem; content: ""; }
.compartment-3d__key--clear::before { background: rgb(255 255 255 / 75%); }
.compartment-3d__key--occupied::before { border-color: #175cd3; background: rgb(132 202 255 / 75%); }
.compartment-3d__key--conflict::before { border-color: #b42318; background: rgb(253 162 155 / 82%); }
.compartment-3d__hint { margin: .65rem 0 0; color: #344054; font-size: .8rem; font-weight: 700; text-align: center; }
.compartment-3d__svg { display: block; width: 100%; max-height: 32rem; margin-top: .2rem; overflow: visible; border-radius: .45rem; cursor: grab; touch-action: none; user-select: none; }
.compartment-3d__svg:hover { background: rgb(255 255 255 / 34%); }
.compartment-3d__svg:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.compartment-3d__svg--dragging { cursor: grabbing; }
.compartment-3d__back { fill: rgb(255 255 255 / 70%); stroke: #667085; stroke-width: 2; }
.compartment-3d__opening { fill: rgb(255 255 255 / 18%); stroke: #344054; stroke-width: 2.5; stroke-dasharray: 9 6; }
.compartment-3d__opening--mountable { fill: rgb(219 234 254 / 36%); stroke: #175cd3; stroke-dasharray: 4 3; }
.compartment-3d__edge { stroke: #667085; stroke-width: 2; }
.compartment-3d__opening-label { fill: #475467; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.compartment-3d__volume { cursor: pointer; outline: none; }
.compartment-3d__volume polygon { vector-effect: non-scaling-stroke; stroke: #175cd3; stroke-width: 2; transition: fill .15s ease, stroke .15s ease; }
.compartment-3d__volume-top { fill: rgb(132 202 255 / 70%); }
.compartment-3d__volume-side { fill: rgb(83 177 253 / 72%); }
.compartment-3d__volume-front { fill: rgb(178 221 255 / 80%); }
.compartment-3d__volume-face--1, .compartment-3d__volume-face--2 { fill: rgb(132 202 255 / 66%); }
.compartment-3d__volume-face--3, .compartment-3d__volume-face--4 { fill: rgb(83 177 253 / 70%); }
.compartment-3d__volume-face--5, .compartment-3d__volume-face--6 { fill: rgb(178 221 255 / 78%); }
.compartment-3d__volume:hover polygon, .compartment-3d__volume:focus-visible polygon, .compartment-3d__volume--selected polygon { stroke: #f79009; stroke-width: 4; }
.compartment-3d__volume--conflict polygon { fill: rgb(253 162 155 / 80%); stroke: #b42318; }
.compartment-3d__component--mount { fill: rgb(254 223 137 / 78%) !important; stroke: #b54708 !important; }
.compartment-3d__component--installation_clearance, .compartment-3d__component--reserved { fill: rgb(239 248 255 / 52%) !important; stroke: #175cd3 !important; stroke-dasharray: 5 3; }
.compartment-3d__component--visual_only { fill-opacity: .24; stroke-dasharray: 3 3; }
.compartment-3d__component--conflict, .compartment-3d__volume--error polygon { fill: rgb(253 162 155 / 84%) !important; stroke: #b42318 !important; stroke-width: 4 !important; stroke-dasharray: none; }
.compartment-3d__volume-label { fill: #102a56; font-size: 16px; font-weight: 900; pointer-events: none; text-anchor: middle; paint-order: stroke; stroke: rgb(255 255 255 / 85%); stroke-width: 3px; }
.compartment-3d__volume--conflict .compartment-3d__volume-label { fill: #7a271a; }
.layout-face-overview-label { margin: 0 0 .45rem; color: #475467; font-size: .82rem; }
.compartment-face-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". top ." "left back right" ". bottom ." ". front ."; gap: .3rem; padding: .45rem; border: 1px solid var(--border); border-radius: .5rem; background: #f8fafc; }
.compartment-face-tab { min-height: 2.5rem; padding: .45rem .5rem; border: 1px solid #b2ccff; color: var(--brand-dark); background: #eff8ff; }
.compartment-face-tab--top { grid-area: top; }
.compartment-face-tab--left { grid-area: left; }
.compartment-face-tab--back { grid-area: back; }
.compartment-face-tab--right { grid-area: right; }
.compartment-face-tab--bottom { grid-area: bottom; }
.compartment-face-tab--front { grid-area: front; }
.compartment-face-tab:hover { color: var(--brand-dark); background: #dbeafe; border-color: #84adff; }
.compartment-face-tab[aria-selected="true"] { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.compartment-face-tab--conflict:not([aria-selected="true"]) { color: var(--danger-dark); background: #fff1f0; border-color: var(--danger); }
.compartment-face-tab--conflict[aria-selected="true"] { box-shadow: inset 0 0 0 2px #fda29b; }
.compartment-face-tab--move-choice { cursor: copy; }
.compartment-face-tab--drop-target, .layout-placement-wall-choice.compartment-face-tab--drop-target { color: #713b12 !important; background: #fffaeb !important; border-color: #f79009 !important; outline: 3px solid var(--focus); outline-offset: 2px; }
.compartment-card--picking .compartment-face-tabs { display: none; }
.compartment-net { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "left" "back" "right" "bottom"; gap: .75rem; align-items: start; }
.layout-surface { min-width: 0; overflow: visible; container-type: inline-size; padding: .65rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--surface-muted); }
.layout-surface[hidden] { display: none; }
.layout-surface h4 { margin: 0; }
.layout-axis-guide { margin: .25rem 0 .65rem; color: #475467; font-size: .82rem; }
.layout-surface--top { grid-area: top; }
.layout-surface--left { grid-area: left; }
.layout-surface--back { grid-area: back; }
.layout-surface--right { grid-area: right; }
.layout-surface--bottom { grid-area: bottom; }
.layout-grid { display: grid; grid-template-columns: 1.5rem repeat(var(--layout-columns), minmax(2rem, 1fr)); width: var(--layout-grid-max-width, 100%); min-width: 100%; max-width: none; margin-inline: auto; gap: 1px; background: #98a2b3; border: 1px solid #98a2b3; isolation: isolate; }
.layout-grid__corner, .layout-grid__column, .layout-grid__row { display: grid; place-items: center; min-width: 1.5rem; min-height: 2rem; overflow: hidden; padding: 0; color: #344054; background: #e4e7ec; font-size: .75rem; font-weight: 750; line-height: 1; }
.layout-grid__corner { position: sticky; z-index: 4; top: 0; left: 0; }
.layout-grid__column { position: sticky; z-index: 3; top: 0; }
.layout-grid__row { position: sticky; z-index: 2; left: 0; }
.layout-grid__column small, .layout-grid__row small { margin-top: .12rem; color: #7a2e0e; font-size: .58rem; }
.layout-grid__column--partial, .layout-grid__row--partial { background: #ffead5; }
.layout-cell { min-width: 2rem; min-height: 2rem; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: #fff; font-size: .72rem; font-weight: 750; line-height: 1; cursor: default; }
.compartment-card--picking .layout-cell { cursor: pointer; }
.compartment-card--picking .layout-cell:hover { color: #fff; background: var(--brand-dark); }
.layout-cell:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.layout-cell--occupied { color: #05603a; background: #d1fadf; }
.layout-cell--origin { box-shadow: inset 0 0 0 2px #087443; }
.layout-cell--conflict { color: var(--danger-dark); background: #fee4e2; box-shadow: inset 0 0 0 2px var(--danger); }
.layout-cell--preview { background: #dbeafe; box-shadow: inset 0 0 0 2px #2563eb; }
.layout-cell--preview-conflict { color: var(--danger-dark); background: #fee4e2; box-shadow: inset 0 0 0 2px var(--danger); }
.layout-cell--partial { background-image: repeating-linear-gradient(135deg, transparent 0, transparent 5px, rgb(181 71 8 / 10%) 5px, rgb(181 71 8 / 10%) 8px); }
.layout-footprint { z-index: 2; display: flex; align-items: center; min-width: 0; min-height: 0; overflow: visible; padding: 0; border: 0; color: #054f31; background: transparent; box-shadow: none; font-size: .72rem; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; pointer-events: none; }
.layout-footprint__shape:active, .placement-drag-handle:active { cursor: grabbing; }
.layout-footprint--preview { pointer-events: none; border-color: #2563eb; border-style: dashed; color: #1e3a8a; background: rgb(219 234 254 / 88%); cursor: default; }
.layout-footprint--conflict { border-color: transparent; color: var(--danger-dark); background: transparent; }
.layout-footprint--readonly { pointer-events: none; cursor: default; }
.layout-footprint--readonly .layout-footprint__shape { cursor: default; pointer-events: none; }
.layout-footprint--legacy-readonly { box-sizing: border-box; justify-content: center; gap: .3rem; overflow: hidden; padding: .18rem .3rem; border: 2px dashed #087443; border-radius: .25rem; color: #054f31; background: rgb(209 250 223 / 84%); box-shadow: 0 .15rem .35rem rgb(16 24 40 / 18%); text-align: center; }
.layout-footprint--oriented-readonly .layout-footprint__copy { max-width: min(18rem, 70%); }
.compartment-card--picking .layout-footprint { pointer-events: none; opacity: .28; }
.compartment-card--picking .layout-canvas .layout-footprint { opacity: 1; }
.layout-canvas-frame { position: relative; display: grid; place-items: start center; width: 100%; min-width: 0; overflow: visible; padding: 2.25rem 2.75rem 2.75rem; border: 1px solid var(--border); border-radius: .55rem; background: #f8fafc; }
.layout-canvas-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; width: 100%; max-width: 100%; margin: .5rem 0 .65rem; }
.layout-canvas-toolbar .button { min-height: 2.75rem; }
.layout-canvas { position: relative; isolation: isolate; width: var(--layout-canvas-width, min(100%, 64rem)); max-width: 100%; min-width: 0; aspect-ratio: var(--layout-canvas-aspect-ratio, 4 / 3); overflow: visible; border: 2px solid #667085; border-radius: .35rem; background: linear-gradient(145deg, #fff 0%, #f8fafc 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%), 0 .45rem 1.1rem rgb(16 24 40 / 10%); }
.layout-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.layout-canvas--active { border-color: var(--brand-dark); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%), 0 0 0 3px rgb(37 99 235 / 18%); }
.layout-canvas--conflict { border-color: var(--danger); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%), 0 0 0 3px rgb(217 45 32 / 16%); }
.layout-canvas__measurement, .layout-measurement { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; color: #344054; font-size: .76rem; font-weight: 750; line-height: 1; pointer-events: none; }
.layout-canvas__measurement::before, .layout-canvas__measurement::after, .layout-measurement::before, .layout-measurement::after { content: ""; flex: 1 1 auto; border-color: #98a2b3; }
.layout-canvas__measurement--width, .layout-measurement--horizontal { inset: -1.65rem 0 auto; gap: .45rem; }
.layout-canvas__measurement--width::before, .layout-canvas__measurement--width::after, .layout-measurement--horizontal::before, .layout-measurement--horizontal::after { border-top: 1px solid #98a2b3; }
.layout-canvas__measurement--height, .layout-measurement--vertical { inset: 0 auto 0 -2.15rem; flex-direction: column; gap: .45rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.layout-canvas__measurement--height::before, .layout-canvas__measurement--height::after, .layout-measurement--vertical::before, .layout-measurement--vertical::after { border-left: 1px solid #98a2b3; }
.layout-canvas .layout-footprint { position: absolute; z-index: 2; inset-block-start: var(--layout-y, 0); inset-inline-start: var(--layout-x, 0); width: var(--layout-width, auto); height: var(--layout-height, auto); grid-column: auto !important; grid-row: auto !important; box-sizing: border-box; justify-content: center; user-select: none; }
.layout-wall-obstruction { position: absolute; z-index: 1; inset-block-start: var(--layout-y, 0); inset-inline-start: var(--layout-x, 0); display: grid; place-content: center; width: var(--layout-width, auto); height: var(--layout-height, auto); box-sizing: border-box; overflow: hidden; padding: .2rem; border: 2px dashed #175cd3; color: #102a56; background-color: rgb(239 248 255 / 78%); background-image: repeating-linear-gradient(135deg, transparent 0, transparent 7px, rgb(23 92 211 / 14%) 7px, rgb(23 92 211 / 14%) 11px); font-size: clamp(.55rem, 1vw, .72rem); font-weight: 800; line-height: 1.05; text-align: center; pointer-events: none; }
.layout-wall-obstruction small { font-size: .85em; font-weight: 650; }
.layout-wall-obstruction--conflict { border-color: var(--danger); color: var(--danger-dark); background-color: rgb(254 228 226 / 88%); background-image: repeating-linear-gradient(135deg, transparent 0, transparent 7px, rgb(217 45 32 / 20%) 7px, rgb(217 45 32 / 20%) 11px); }
.layout-footprint__shape { position: absolute; z-index: 1; inset: 50% auto auto 50%; display: grid; place-items: center; width: var(--shape-width, 100%); height: var(--shape-height, 100%); overflow: hidden; border: 2px dashed #087443; border-radius: .25rem; background: rgb(209 250 223 / 84%); box-shadow: 0 .15rem .35rem rgb(16 24 40 / 18%); transform: translate(-50%, -50%) rotate(var(--shape-rotation, 0deg)) scaleX(var(--shape-flip, 1)); transform-origin: center; cursor: grab; pointer-events: auto; touch-action: none; }
.layout-footprint__shape--compound { width: 100%; height: 100%; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: translate(-50%, -50%); pointer-events: none; }
.layout-footprint__silhouette { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .14rem .2rem rgb(16 24 40 / 22%)); pointer-events: none; }
.layout-footprint__component { vector-effect: non-scaling-stroke; fill: rgb(209 250 223 / 82%); stroke: #087443; stroke-width: 2; pointer-events: none; }
.layout-footprint__component--equipment, .layout-footprint__component--mount { cursor: grab; pointer-events: visiblePainted; }
.layout-footprint__silhouette--has-image .layout-footprint__component--equipment { fill: rgb(209 250 223 / 16%); }
.layout-footprint__component--mount { fill: rgb(254 223 137 / 78%); stroke: #b54708; }
.layout-footprint__component--installation_clearance, .layout-footprint__component--reserved { fill: rgb(239 248 255 / 42%); stroke: #175cd3; stroke-width: 1.5; stroke-dasharray: 5 3; }
.layout-footprint__component--visual_only { fill-opacity: .2; stroke-dasharray: 3 3; }
.layout-footprint__silhouette--fiberglass-flathead-axe:not(.layout-footprint__silhouette--has-image) :where([data-component-id="equipment_handle"], [data-component-id="equipment_grip"]) { fill: rgb(247 201 72 / 90%); stroke: #7a4e00; }
.layout-footprint__silhouette--fiberglass-flathead-axe:not(.layout-footprint__silhouette--has-image) :where([data-component-id="equipment_head"]) { fill: rgb(152 162 179 / 92%); stroke: #344054; }
.layout-footprint__silhouette--fiberglass-flathead-axe.layout-footprint__silhouette--has-image .layout-footprint__component--equipment { fill: transparent; stroke: rgb(52 64 84 / 42%); }
.layout-footprint__silhouette--fiberglass-flathead-axe.layout-footprint__silhouette--has-image .layout-footprint__silhouette-image { opacity: 1; }
.layout-footprint__silhouette-image { opacity: .86; pointer-events: none; }
.layout-footprint__image { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.layout-footprint__intersections { position: absolute; z-index: 4; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.layout-footprint__intersection { vector-effect: non-scaling-stroke; fill: rgb(254 228 226 / 94%); stroke: #b42318; stroke-width: 3; stroke-dasharray: none; }
.layout-canvas .layout-footprint__shape:hover { border-color: #05603a; background: rgb(209 250 223 / 96%); }
.layout-canvas .layout-footprint__shape:focus-visible, .layout-canvas .layout-footprint--selected .layout-footprint__shape { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 .35rem .8rem rgb(16 24 40 / 25%); }
.layout-canvas .layout-footprint__shape--compound:hover, .layout-canvas .layout-footprint__shape--compound:focus-visible, .layout-canvas .layout-footprint--selected .layout-footprint__shape--compound { border: 0; background: transparent; outline: 0; box-shadow: none; }
.layout-canvas .layout-footprint:not(.layout-footprint--conflict) .layout-footprint__shape--compound:focus-visible .layout-footprint__component--equipment, .layout-canvas .layout-footprint--selected.layout-footprint--compound:not(.layout-footprint--conflict) .layout-footprint__component--equipment { stroke: var(--focus); stroke-width: 3; }
.layout-canvas .layout-footprint--geometry-warning.layout-footprint--compound { outline: 0; }
.layout-canvas .layout-footprint--geometry-warning.layout-footprint--compound:not(.layout-footprint--conflict) .layout-footprint__component--equipment { stroke: #175cd3; stroke-dasharray: 5 3; }
.layout-canvas .layout-footprint--dragging { z-index: 5; will-change: transform; }
.layout-canvas .layout-footprint--dragging .layout-footprint__shape { opacity: .82; cursor: grabbing; box-shadow: 0 .65rem 1.2rem rgb(16 24 40 / 28%); }
.layout-canvas .layout-footprint--dragging .layout-footprint__shape--compound { box-shadow: none; }
.layout-canvas :where(.layout-footprint--dragging, .layout-footprint--rotating) .layout-footprint__silhouette { filter: none; }
.layout-canvas .layout-footprint--blocking-outline .layout-footprint__shape { border-color: var(--danger); color: var(--danger-dark); background: rgb(254 228 226 / 96%); }
.layout-canvas .layout-footprint--blocking-outline .layout-footprint__shape--compound { border-color: transparent; background: transparent; }
.layout-footprint__copy { position: relative; z-index: 3; display: grid; min-width: 0; margin: auto; gap: .08rem; padding: .15rem .25rem; border-radius: .2rem; background: rgb(255 255 255 / 78%); text-align: center; pointer-events: none; }
.layout-canvas--labels-hidden .layout-footprint__copy { display: none; }
.layout-footprint__label { display: flex; align-items: center; justify-content: center; min-width: 0; gap: .3rem; font-size: clamp(.64rem, 1.1vw, .82rem); font-weight: 800; line-height: 1.1; }
.layout-footprint__item-number { display: inline-grid; flex: 0 0 auto; place-items: center; box-sizing: border-box; width: 1.45rem; height: 1.45rem; border: 1.5px solid currentcolor; border-radius: 0; line-height: 1; }
.layout-footprint__product-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout-footprint__dimensions, .layout-footprint__measurement, .layout-footprint__depth { overflow: hidden; color: #344054; font-size: clamp(.56rem, .9vw, .7rem); font-weight: 650; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.layout-footprint--conflict .layout-footprint__dimensions, .layout-footprint--conflict .layout-footprint__measurement { color: var(--danger-dark); }
.layout-footprint--geometry-warning:not(.layout-footprint--conflict) { outline: 3px dashed #175cd3; outline-offset: 2px; }
.layout-footprint__rotation-handle { position: absolute; z-index: 7; inset-block-start: var(--rotation-handle-y, 0); inset-inline-start: var(--rotation-handle-x, 50%); display: none; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0; border: .3rem solid #fff; border-radius: 999px; background: var(--brand-dark); box-shadow: 0 .2rem .6rem rgb(16 24 40 / 35%); transform: translate(-50%, -50%); cursor: grab; pointer-events: auto; touch-action: none; }
.layout-footprint--selected .layout-footprint__rotation-handle { display: block; }
.layout-footprint__rotation-handle:hover { background: var(--brand); }
.layout-footprint__rotation-handle:active { cursor: grabbing; }
.layout-cell--readonly:hover { color: var(--ink); background: #fff; }
.layout-cell--readonly.layout-cell--occupied:hover { color: #05603a; background: #d1fadf; }
.layout-cell--readonly.layout-cell--conflict:hover { color: var(--danger-dark); background: #fee4e2; }
.layout-placement-list { margin: 0; padding-left: 2rem; }
.layout-placement-details > summary { min-height: 2.75rem; padding: .55rem .65rem; color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.layout-placement-details[open] > summary { margin-bottom: .5rem; }
.layout-placement-details .layout-placement-list > li + li { margin-top: .5rem; }
.equipment-placement { margin-block: 1rem; padding: .75rem 1rem; border: 1px solid #84adff; border-radius: .5rem; background: #eff8ff; }
.equipment-placement[open] { padding-bottom: 1rem; }
.equipment-placement__summary { align-items: center; cursor: pointer; list-style-position: inside; }
.equipment-placement__summary::marker { color: var(--brand-dark); }
.equipment-placement:not([open]) .equipment-placement__summary { margin: 0; }
.equipment-placement--active { border-color: var(--focus); box-shadow: 0 0 0 2px rgb(245 166 35 / 25%); }
.quote-product--dragging { opacity: .62; }
.placement-drag-handle { cursor: grab; touch-action: none; }
.equipment-placement__title { font-size: 1.1rem; font-weight: 750; }
.placement-envelope-heading { font-weight: 750; }
.placement-dimensions { display: grid; grid-template-columns: repeat(3, minmax(4.75rem, 1fr)); gap: .65rem; align-items: end; }
.placement-dimension-actions { display: grid; grid-column: 1 / -1; gap: .4rem; justify-self: start; }
.placement-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; align-items: end; }
.placement-reset-dimensions { align-self: end; min-height: 2.75rem; }
.placement-status { margin: 0; padding: .55rem .7rem; border-left: .25rem solid var(--success); color: #05603a; background: #ecfdf3; }
.placement-status--active { border-left-color: #2563eb; color: #1e3a8a; background: #eff8ff; }
.placement-status--error { border-left-color: var(--danger); color: var(--danger-dark); background: #fff1f0; }
.placement-status--warning { border-left-color: var(--warning); color: var(--warning); background: #fff6e8; }
.compartment-equipment-group { padding: 0; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-muted); }
.compartment-equipment-group__summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .65rem .8rem; list-style-position: inside; }
.compartment-equipment-group__summary h3 { display: inline; margin-right: auto; font-size: 1rem; }
.compartment-equipment-group__metrics { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem .7rem; color: #344054; font-size: .78rem; font-weight: 700; }
.compartment-equipment-group__body { padding: 0 .65rem .65rem; }
.compartment-equipment-group:not([open]) .compartment-equipment-group__summary { border-radius: .65rem; }
.compartment-equipment-group--unassigned { border-color: var(--warning); background: #fff6e8; }
.compartment-equipment-group--mount-only { border-color: #84adff; background: #eff8ff; }
.mountless-panel { padding: 1rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface-muted); }
.mountless-panel__notice { margin: 0; }
.mount-selection__none { min-height: 44px; align-self: start; }
.mount-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; align-items: end; padding: .55rem; border: 1px solid #e4e7ec; border-radius: .4rem; background: #fff; }
.mount-evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(10rem, 1fr)); gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mount-evidence-grid .field--wide { grid-column: span 3; }
.mount-standard-label { align-self: end; min-height: 2.75rem; }
.mount-picker { padding: 1rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface-muted); }
.mount-picker .mount-option { background: var(--surface); }
.catalog-record--disabled { background: #f9fafb; }
.quote-summary { margin-left: auto; width: min(100%, 28rem); }
.quote-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }
.quote-summary dt, .quote-summary dd { margin: 0; }
.quote-summary__total { padding-top: .5rem; border-top: 2px solid var(--ink); font-weight: 750; }
.detail-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; }
.detail-list dt { font-weight: 700; }
.detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.mount-card { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.mount-card__heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.mount-card__heading h3, .mount-card__heading p, .section-heading h2 { margin: 0; }
.status-badge { display: inline-flex; width: fit-content; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.status-badge--documented { color: #05603a; background: #ecfdf3; }
.status-badge--estimated { color: #7a2e0e; background: #fff6e8; }
.status-badge--review_required { color: var(--danger-dark); background: #fff1f0; }
.status-badge--research { color: #344054; background: #eef2f6; }
.status-badge--warning { color: #7a2e0e; background: #ffead5; }
.status-badge--success { color: #05603a; background: #d1fadf; }
.catalog-figure { margin: 0; }
.catalog-figure img { display: block; }
.catalog-figure figcaption { max-width: 22rem; margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.catalog-figure--compact { width: 5rem; text-align: center; }
.catalog-figure--compact figcaption { margin-top: .25rem; font-size: .68rem; line-height: 1.25; }
.catalog-image-note { font-weight: 650; }
.catalog-image-note__detail { display: block; margin-top: .25rem; font-weight: 400; }
.evidence-note { padding: .75rem; border-left: .25rem solid var(--border); background: var(--surface-muted); }
.catalog-safety-note { margin-bottom: 1rem; }
.catalog-status-offset { margin-top: .35rem; }
.catalog-table-note { max-width: 30rem; margin: .5rem 0 0; }
.catalog-download-actions { margin-block: .75rem; }
.confirmation-row { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-weight: 500; }
.confirmation-row input { margin-top: .2rem; }
.import-layout { align-items: start; }
.detail-list--flow { grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (min-width: 900px) {
    .truck-layout-workspace { padding: .65rem; border: 1px solid var(--border); }
}

@media (min-width: 1100px) {
    .quote-builder--layout-active .truck-layout-designer { padding: 1.25rem; border: 1px solid var(--border); border-radius: .65rem; background: #fff; }
}

@media (max-width: 760px) {
    .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: .75rem; }
    .site-nav--public { width: 100%; }
    .site-nav__cta { margin-left: auto; }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    .landing-page { gap: 4rem; }
    .landing-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
    .landing-hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
    .landing-preview { transform: none; }
    .landing-value-strip, .landing-role-grid, .landing-self-service, .landing-final-cta, .landing-footer { grid-template-columns: 1fr; }
    .landing-value-strip div + div { border-top: 1px solid #eaecf0; border-left: 0; }
    .landing-workflow { grid-template-columns: 1fr 1fr; }
    .landing-workflow li { min-height: 15rem; }
    .landing-workflow li::after { display: none; }
    .landing-workflow__number { margin-bottom: 2rem; }
    .landing-final-cta { margin-bottom: 0; }
    .landing-final-cta .landing-actions { justify-content: flex-start; }
    .quote-builder__catalog { grid-template-columns: 1fr; }
    .quote-builder__catalog-controls { grid-template-columns: 1fr; }
    .compartment-create-grid, .compartment-edit-grid, .placement-dimensions, .placement-controls { grid-template-columns: 1fr; }
    .compartment-create-grid .field--wide { grid-column: 1 / -1; }
    .layout-progress { grid-template-columns: 1fr; }
    .layout-progress__metrics { justify-content: flex-start; }
    .layout-placement-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .compartment-3d { padding: .65rem; }
    .compartment-3d__heading { display: grid; }
    .compartment-3d__heading-actions { justify-items: start; }
    .compartment-3d__legend { justify-content: flex-start; }
    .compartment-3d__svg { min-height: 13rem; margin-inline: 0; width: 100%; }
    .truck-layout-workspace { position: static; max-height: none; overflow: visible; padding: 0; }
    .layout-canvas-frame { padding: 2rem 2.15rem 2.35rem; }
    .layout-canvas { min-width: 0; }
    .modal-dialog__actions { display: grid; grid-template-columns: 1fr; }
    .compartment-net { grid-template-columns: 1fr; grid-template-areas: "top" "left" "back" "right" "bottom"; }
    .mount-grid { grid-template-columns: 1fr 1fr; }
    .mount-grid > :first-child { grid-column: 1 / -1; }
    .mount-evidence-grid { grid-template-columns: 1fr; }
    .mount-evidence-grid .field--wide { grid-column: auto; }
    .mount-standard-label { align-self: start; }
    .mount-card { grid-template-columns: 1fr; }
    .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
    .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .table-wrap tr { padding: .5rem; border: 1px solid var(--border); border-radius: .4rem; margin-bottom: .75rem; }
    .table-wrap td { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; border: 0; padding: .4rem; }
    .table-wrap td::before { content: attr(data-label); font-weight: 700; }
}

@media (max-width: 520px) {
    .site-nav--public a:not(.site-nav__cta) { font-size: .9rem; }
    .site-nav__cta { width: 100%; margin-left: 0; }
    .landing-actions, .landing-button { width: 100%; }
    .landing-proof-list { display: grid; }
    .landing-preview__header, .landing-preview__footer { display: grid; }
    .landing-status { width: fit-content; }
    .landing-preview__steps li { grid-template-columns: 2rem minmax(0, 1fr); }
    .landing-preview__state { grid-column: 2; }
    .landing-workflow { grid-template-columns: 1fr; }
    .landing-workflow li { min-height: 0; }
    .landing-workflow__number { margin-bottom: 2.5rem; }
    .landing-section--tinted { margin-inline: -1rem; }
}

/* Mobile application shell and touch-first working layouts. */
@media (max-width: 880px) {
    .compartment-3d__svg { touch-action: pan-y; }
    .layout-footprint__silhouette { filter: none; }
    .site-header__inner, .page {
        width: auto;
        max-width: 1180px;
        margin-left: max(1rem, env(safe-area-inset-left, 0px));
        margin-right: max(1rem, env(safe-area-inset-right, 0px));
    }
    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .5rem .75rem;
        padding-block: .65rem;
    }
    .brand { min-width: 0; overflow-wrap: anywhere; }
    .js .site-nav-toggle {
        display: inline-flex;
        min-width: 4.75rem;
        min-height: 2.75rem;
        padding: .55rem .75rem;
        border-color: rgb(255 255 255 / 72%);
        color: #fff;
        background: transparent;
    }
    .js .site-nav-toggle:hover { color: var(--ink); background: #fff; border-color: #fff; }
    .site-nav {
        grid-column: 1 / -1;
        display: grid;
        align-items: stretch;
        width: 100%;
        max-height: calc(100vh - 5rem);
        max-height: calc(100dvh - 5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        gap: .2rem;
        padding-top: .35rem;
    }
    .js .site-nav { display: none; }
    .js .site-nav.site-nav--open { display: grid; }
    .site-nav form { width: 100%; }
    .site-nav > a:not(.button), .site-nav .link-button {
        justify-content: flex-start;
        width: 100%;
        min-height: 2.75rem;
        padding: .65rem .75rem;
        border-radius: .4rem;
        text-align: left;
        text-decoration: none;
    }
    .site-nav > a:not(.button):hover, .site-nav .link-button:hover { background: rgb(255 255 255 / 12%); }
    .site-nav__cta { width: 100%; margin-left: 0; }

    .page-header { align-items: stretch; flex-direction: column; }
    .page-header > .button { width: 100%; }
    .page-header > .cluster, .page-header__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
    }
    .page-header > .cluster > .button, .page-header__actions > .button { width: 100%; }
    .quote-detail-actions__primary { grid-column: 1 / -1; }
    .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
    }
    .actions > .button, .actions > button, .actions > input[type="submit"] { width: 100%; }
    .quote-builder > .actions { grid-template-columns: minmax(0, 1fr); }

    .toolbar { align-items: stretch; }
    .toolbar > .field, .list-toolbar__search, .list-toolbar__sort, .list-toolbar__size {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
    .toolbar > button, .toolbar > .button { width: 100%; }
    .list-pagination { align-items: stretch; padding: .85rem; }
    .list-pagination__links { width: 100%; justify-content: center; }
    .list-pagination__links > span { flex: 1 1 100%; order: -1; text-align: center; }

    .grid--2, .grid--3, .company-branding { grid-template-columns: 1fr; }
    .page-header h1, .panel, .card, .field__help { overflow-wrap: anywhere; }

    .quote-builder { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
    .quote-builder :is(input, select, textarea) { min-width: 0; font-size: 1rem; }
    .quote-workflow-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .quote-workflow-bar__number { min-width: 0; }
    .quote-workflow-bar__number strong { overflow-wrap: anywhere; }
    .quote-workflow-bar__autosave { justify-content: flex-end; }
    .actions > .quote-primary-submit {
        position: fixed;
        z-index: 50;
        right: max(1rem, env(safe-area-inset-right, 0px));
        bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
        left: max(1rem, env(safe-area-inset-left, 0px));
        display: inline-flex;
        width: auto;
        max-width: 32rem;
        min-height: 3.25rem;
        margin-inline: auto;
        box-shadow: 0 .65rem 1.5rem rgb(16 24 40 / 30%);
    }
    .mobile-keyboard-active .quote-builder > .actions > .quote-primary-submit { visibility: hidden; pointer-events: none; }
    .quote-builder__catalog, .quote-builder__catalog-controls { grid-template-columns: 1fr; }
    .catalog-picker__panel {
        position: fixed;
        z-index: 60;
        inset: auto max(.5rem, env(safe-area-inset-right, 0px)) calc(.5rem + env(safe-area-inset-bottom, 0px) + var(--mobile-viewport-bottom, 0px)) max(.5rem, env(safe-area-inset-left, 0px));
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        width: auto;
        min-width: 0;
        max-height: min(70vh, 38rem);
        max-height: min(70dvh, 38rem);
        max-height: min(38rem, calc(var(--mobile-viewport-height, 100dvh) - 1rem - env(safe-area-inset-bottom, 0px)));
        padding: .85rem;
        border-radius: .75rem;
        box-shadow: 0 1.25rem 3rem rgb(16 24 40 / 35%);
    }
    .catalog-picker__options { display: block; min-height: 0; max-height: none; }
    .catalog-picker__option { min-height: 2.75rem; line-height: 1.35; }
    .mount-only-results { max-height: min(44vh, 22rem); max-height: min(44dvh, 22rem); max-height: min(22rem, calc(var(--mobile-viewport-height, 100dvh) * .44)); }
    .quote-product__header { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .quote-product__header .equipment-price-summary { grid-column: 1 / -1; grid-row: 2; }
    .quote-product__compact-meta { grid-template-columns: 1fr; }
    .quote-product__status-line, .quote-product__details-preview { grid-column: 1; }
    .quote-product__geometry-status { margin-left: 0; }

    .compartment-create-grid, .compartment-edit-grid, .placement-dimensions, .placement-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .compartment-create-grid .field--wide,
    .compartment-edit-grid > .field:first-child,
    .compartment-edit-grid > button,
    .placement-controls > .field:first-child { grid-column: 1 / -1; }
    .compartment-create-grid > *, .compartment-edit-grid > *, .placement-dimensions > *, .placement-controls > * { min-width: 0; }
    .placement-dimension-actions { justify-self: stretch; }
    .layout-progress { grid-template-columns: 1fr; }
    .layout-progress__metrics { justify-content: flex-start; }
    .layout-placement-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .truck-layout-workspace { position: static; max-height: none; overflow: visible; padding: 0; }
    .layout-surface { overflow: visible; }
    .layout-canvas-frame {
        place-items: start center;
        overflow: visible;
        padding: 2rem .35rem .65rem 1.55rem;
    }
    .layout-measurement--horizontal { inset: .6rem .35rem auto 1.55rem; }
    .layout-measurement--vertical { inset: 2rem auto .65rem .25rem; width: 1rem; }
    .layout-canvas { width: 100%; min-width: 0; max-width: 100%; }
    .layout-grid { grid-template-columns: 1.5rem repeat(var(--layout-columns), minmax(2.75rem, 1fr)); }
    .layout-cell { min-width: 2.75rem; min-height: 2.75rem; }
    .layout-grid--readonly { width: 100%; max-width: 100%; grid-template-columns: 1rem repeat(var(--layout-columns), minmax(0, 1fr)); }
    .layout-grid--readonly :is(.layout-cell, .layout-grid__row, .layout-grid__column, .layout-grid__corner) { min-width: 0; min-height: 0; font-size: .6rem; }
    .compartment-face-tab { min-height: 2.75rem; }
    .layout-footprint__rotation-handle { width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; }

    .modal-dialog {
        position: fixed;
        top: calc(var(--mobile-viewport-top, 0px) + .5rem);
        bottom: auto;
        left: max(.5rem, env(safe-area-inset-left, 0px));
        right: max(.5rem, env(safe-area-inset-right, 0px));
        width: auto;
        max-width: 42rem;
        margin-block: 0;
        margin-inline: auto;
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        max-height: calc(var(--mobile-viewport-height, 100dvh) - 1rem);
    }
    .modal-dialog__surface {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        max-height: calc(var(--mobile-viewport-height, 100dvh) - 1rem);
        padding: 1rem;
    }
    .modal-dialog__surface > .section-heading { flex-wrap: wrap; }
    .modal-dialog__actions { position: sticky; z-index: 2; bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: .65rem .25rem; background: #fff; }
    .modal-dialog__actions > .button, .modal-dialog__actions > button { width: 100%; }

    .equipment-price-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .pricing-mode-toggle { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 18rem); border-radius: .55rem; }
    .pricing-mode-toggle__option { border-radius: .4rem; white-space: normal; }
    .mount-grid { grid-template-columns: 1fr; }
    .mount-grid > :first-child { grid-column: auto; }
    .mount-evidence-grid { grid-template-columns: 1fr; }
    .mount-evidence-grid .field--wide { grid-column: auto; }
    .mount-standard-label { align-self: start; min-height: 2.75rem; }
    .mount-card { grid-template-columns: 1fr; }

    .quote-status-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
    }
    .quote-status-form { width: 100%; }
    .quote-status-form > button { width: 100%; }
    .quote-status-form--reason {
        display: grid;
        grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto;
        grid-column: 1 / -1;
        align-items: end;
        width: 100%;
    }

    .table-wrap { max-width: 100%; }
    .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
    .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .table-wrap tr { padding: .5rem; border: 1px solid var(--border); border-radius: .4rem; margin-bottom: .75rem; }
    .table-wrap td {
        display: block;
        min-width: 0;
        padding: .45rem .4rem;
        border: 0;
        overflow-wrap: anywhere;
    }
    .table-wrap td::before { display: block; margin-bottom: .1rem; content: attr(data-label); color: var(--muted); font-size: .82rem; font-weight: 700; }
    .table-wrap td[colspan] { display: block; }
    .table-wrap td[colspan]::before { display: none; content: none; }
    .table-wrap td > *, .table-wrap td a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .table-wrap td[data-label^="Action"] .cluster { align-items: stretch; }
    .table-wrap td[data-label^="Action"] a, .table-wrap td[data-label^="Action"] .link-button {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        padding-block: .5rem;
    }
    .list-panel .table-wrap { padding-inline: .75rem; }
    .status-badge { max-width: 100%; white-space: normal; }
}

@media (max-width: 600px) {
    .quote-builder > .panel { padding: .75rem; }
    .compartment-equipment-group__body { padding: 0 .35rem .35rem; }
    .compartment-equipment-group__summary { display: list-item; }
    .compartment-equipment-group__metrics { justify-content: flex-start; margin-top: .35rem; }
    .compartment-card { padding: .65rem; }
    .layout-surface { padding: .35rem; }
    .equipment-placement { padding: .65rem; }
    .compartment-create-grid, .compartment-edit-grid, .placement-dimensions, .placement-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-builder > .actions > .quote-primary-submit {
        position: fixed;
        right: max(.75rem, env(safe-area-inset-right, 0px));
        left: max(.75rem, env(safe-area-inset-left, 0px));
    }
    .layout-surface { overflow: visible; overscroll-behavior: auto; }
    .quote-layout-shell,
    .quote-layout-shell__equipment,
    .compartment-equipment-group,
    .compartment-equipment-group__body,
    .quote-product { min-width: 0; max-width: 100%; }
    .quote-product__header { grid-template-columns: minmax(0, 1fr); }
    .quote-product__identity,
    .quote-product__header .equipment-price-summary,
    .quote-product__header-actions { grid-column: 1; min-width: 0; max-width: 100%; }
    .quote-product__header .equipment-price-summary { grid-row: auto; }
    .quote-product__identity { row-gap: .15rem; }
    .quote-product__identity > :first-child { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
    .quote-product__identity-copy { display: contents; }
    .quote-product__identity-copy > * { grid-column: 2; }
    .quote-product__identity-copy > .pricing-mode-toggle { grid-column: 1 / -1; margin-top: .35rem; }
    .quote-product__title-row h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
    .quote-product__part-number { white-space: normal; overflow-wrap: anywhere; }
    .quote-product__header-actions { flex-wrap: wrap; justify-content: stretch; }
    .quote-product__header-actions > * { flex: 1 1 auto; min-width: 0; }
    .quote-product__expand,
    .quote-product__actions summary { width: 100%; justify-content: center; }
    .layout-canvas-frame {
        max-width: 100%;
        overflow: visible;
    }
    .layout-canvas .layout-footprint__copy :is(.layout-footprint__product-name, .layout-footprint__dimensions, .layout-footprint__measurement, .layout-footprint__depth) { display: none; }
    .compartment-face-tabs { grid-template-areas: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; padding: .3rem; }
    .compartment-face-tab { min-width: 0; grid-area: auto; padding-inline: .25rem; font-size: .78rem; overflow-wrap: anywhere; white-space: normal; }
    .page-header > .cluster, .page-header__actions, .actions, .quote-status-actions, .modal-dialog__actions { grid-template-columns: 1fr; }
    .quote-detail-actions__primary { grid-column: auto; }
    .cluster--between { align-items: stretch; flex-direction: column; }
    .cluster--between > form, .cluster--between > form button { width: 100%; }
    .auth-container form > button, .login-container form > button, .auth-container > .button { width: 100%; }
    .detail-list, .detail-list--flow { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    .detail-list dt:not(:first-child) { margin-top: .7rem; }
    .detail-list dd { padding-left: .5rem; }
    .quote-workflow-bar { grid-template-columns: 1fr; }
    .quote-workflow-bar__autosave { justify-content: flex-start; }
    .quote-status-form--reason { grid-template-columns: 1fr; }
    .quote-status-form--reason > button { width: 100%; }
    .mount-grid { grid-template-columns: 1fr; }
    .mount-grid > :first-child { grid-column: auto; }
}

@media (max-width: 520px) {
    .list-pagination__links > .button { flex: 1 1 calc(50% - .75rem); }
}

/* Leave the silhouette available for dragging, even when a tool is smaller
   than its rotation control. Reserve the clearance before selection as well. */
.layout-footprint__rotation-handle { inset-block-start: -1.75rem; inset-inline-start: 50%; }
.layout-canvas-frame { padding-top: 3.25rem; padding-bottom: 1.75rem; }
.layout-measurement--horizontal { inset: auto .35rem .5rem 1.55rem; }
.layout-measurement--vertical { top: 3.25rem; bottom: 1.75rem; }

@media (any-pointer: coarse) {
    .layout-footprint:not(.layout-footprint--selected) .layout-footprint__shape { touch-action: pan-y; }
}

.v8-test-layout {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    background: #f8fafc;
}

.v8-test-layout__canvas-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid #98a2b3;
    border-radius: .65rem;
    background: #fff;
    touch-action: none;
}

.v8-test-layout__canvas {
    display: block;
    width: 100%;
    min-height: 18rem;
    max-height: 34rem;
    cursor: grab;
}

.v8-test-layout__canvas:active { cursor: grabbing; }
.v8-test-layout__cabinet { fill: #fff; stroke: #344054; stroke-width: .18; }
.v8-test-layout__grid-line { stroke: #e4e7ec; stroke-width: .08; pointer-events: none; }
.v8-test-layout__geometry { cursor: move; outline: none; }
.v8-test-layout__geometry:focus .v8-test-layout__envelope { stroke: #175cd3; stroke-width: .3; }
.v8-test-layout__envelope {
    fill: rgba(23, 92, 211, .025);
    stroke: #175cd3;
    stroke-width: .14;
    stroke-dasharray: .6 .35;
}
.v8-test-layout__component { stroke-width: .14; }
.v8-test-layout__component--equipment { fill: rgba(3, 152, 85, .48); stroke: #087443; }
.v8-test-layout__component--mount { fill: rgba(23, 92, 211, .42); stroke: #175cd3; }
.v8-test-layout__component--installation_clearance {
    fill: rgba(23, 92, 211, .14);
    stroke: #175cd3;
    stroke-dasharray: .5 .3;
}
.v8-test-layout__label {
    fill: #101828;
    font-size: 2.2px;
    font-weight: 800;
    pointer-events: none;
}
.v8-test-layout__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: .75rem;
}
.v8-test-layout__item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
}
.v8-test-layout__item label { display: grid; gap: .25rem; }
.v8-test-layout__item label:last-of-type,
.v8-test-layout__item output { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .v8-test-layout { padding: .7rem; }
    .v8-test-layout__canvas { min-height: 15rem; }
    .v8-test-layout__item { grid-template-columns: 1fr; }
    .v8-test-layout__item label:last-of-type,
    .v8-test-layout__item output { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
