:root {
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --soft: #f6f7f9;
    --paper: #ffffff;
    --accent: #ff6b2c;
    --accent-dark: #e94f12;
    --accent-soft: #fff0e9;
    --green: #12a36d;
    --shadow: 0 18px 50px rgba(16, 24, 40, 0.09);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shell: min(1440px, calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfbfc;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    background: var(--ink);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(228, 231, 236, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
    width: var(--shell);
    margin: 0 auto;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px 5px 12px 5px;
    color: white;
    background: var(--accent);
    font-size: 22px;
    font-weight: 900;
    transform: skew(-5deg);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    letter-spacing: 0.035em;
}

.brand small {
    margin-top: -2px;
    color: var(--muted);
    font-size: 10px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
}

.header-nav a,
.nav-button {
    padding: 9px 0;
    border: 0;
    color: inherit;
    background: none;
    text-decoration: none;
    cursor: pointer;
}

.header-nav a:hover,
.nav-button:hover {
    color: var(--accent);
}

.header-nav form {
    margin: 0;
}

.section-shell {
    width: var(--shell);
    margin-inline: auto;
}

.eyebrow {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.button {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.detail-hit:focus-visible {
    outline: 3px solid rgba(255, 107, 44, 0.32);
    outline-offset: 2px;
}

.button-primary {
    color: white;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(255, 107, 44, 0.22);
}

.button-primary:hover:not(:disabled) {
    background: var(--accent-dark);
    box-shadow: 0 12px 28px rgba(255, 107, 44, 0.3);
}

.button-dark {
    color: white;
    background: var(--ink);
}

.button-dark:hover {
    background: #23314a;
}

.button-secondary {
    border-color: var(--line);
    color: #344054;
    background: white;
}

.button-block {
    width: 100%;
}

.button-large {
    min-height: 56px;
    font-size: 15px;
}

.button:disabled {
    color: #98a2b3;
    background: #eaecf0;
    box-shadow: none;
    cursor: not-allowed;
}

.catalog-section {
    padding-top: 42px;
    padding-bottom: 110px;
}

.section-heading,
.admin-heading,
.constructor-title-row,
.order-detail-heading,
.admin-subheading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h1,
.section-heading h2,
.admin-subheading h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: -0.035em;
}

.soft-badge,
.detail-count {
    padding: 7px 11px;
    border-radius: 999px;
    color: #475467;
    background: #f2f4f7;
    font-size: 12px;
    font-weight: 750;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.vehicle-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.vehicle-preview {
    position: relative;
    min-height: 230px;
    padding: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(#f8fafc 1px, transparent 1px),
        linear-gradient(90deg, #f8fafc 1px, transparent 1px),
        #fdfdfd;
    background-size: 22px 22px;
}

.vehicle-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.vehicle-preview-combined {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
}

.vehicle-preview-pane {
    position: relative;
    min-width: 0;
    min-height: 210px;
    padding: 31px 8px 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: white;
}

.vehicle-preview-pane-photo {
    background: radial-gradient(circle at 50% 42%, #ffffff 0, #f4f7fa 100%);
}

.vehicle-preview-pane-pattern {
    background:
        linear-gradient(#f4f6f8 1px, transparent 1px),
        linear-gradient(90deg, #f4f6f8 1px, transparent 1px),
        #ffffff;
    background-size: 18px 18px;
}

.vehicle-preview-pane-full {
    grid-column: 1 / -1;
}

.vehicle-preview-combined .vehicle-preview-pane img {
    width: 100%;
    height: 170px;
    max-height: none;
    object-fit: contain;
    mix-blend-mode: normal;
}

.vehicle-preview-pane-pattern img {
    mix-blend-mode: multiply;
}

.vehicle-preview-label {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vehicle-preview-label-photo {
    color: white;
    background: #101828;
}

.vehicle-preview-label-pattern {
    border: 1px solid #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.detail-count {
    z-index: 3;
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: white;
    background: rgba(16, 24, 40, 0.84);
}

.vehicle-card-body {
    padding: 22px;
    border-top: 1px solid var(--line);
}

.vehicle-brand {
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-card h3 {
    margin: 5px 0 3px;
    font-size: 25px;
    letter-spacing: -0.02em;
}

.vehicle-card h3 small,
.constructor-title-row h1 small {
    color: var(--muted);
    font-size: 0.65em;
    font-weight: 600;
}

.vehicle-card p {
    min-height: 24px;
    margin: 0 0 20px;
    color: var(--muted);
}

.empty-panel {
    padding: 70px 24px;
    border: 1px dashed #d0d5dd;
    border-radius: var(--radius-xl);
    text-align: center;
    background: white;
}

.empty-panel h3 {
    margin: 10px 0 4px;
    font-size: 24px;
}

.empty-panel p {
    margin: 0 auto 22px;
    color: var(--muted);
}

.empty-icon {
    color: var(--accent);
    font-size: 46px;
}

.constructor-header {
    padding: 34px 0 18px;
}

.vehicle-gallery {
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
}

.vehicle-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.vehicle-gallery-head {
    margin: 2px 4px 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.vehicle-gallery-head h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.15;
}

.gallery-counter {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    color: #344054;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
}

.gallery-stage {
    position: relative;
    min-width: 0;
}

.gallery-main {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 500px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    appearance: none;
    background:
        radial-gradient(circle at 50% 35%, #ffffff 0, #f8fafc 72%);
    cursor: zoom-in;
    font: inherit;
    touch-action: pan-y;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.gallery-main:hover,
.gallery-main:focus-visible {
    border-color: #6ce9a6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.12);
}

.gallery-main img {
    width: 100%;
    height: clamp(500px, 48vw, 650px);
    object-fit: contain;
    transition: opacity 140ms ease, transform 180ms ease;
}

.gallery-main.is-changing img {
    transform: scale(0.992);
    opacity: 0.35;
}

.gallery-expand-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    color: white;
    background: rgba(16, 24, 40, 0.82);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.gallery-arrow,
.photo-lightbox-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: white;
    background: rgba(16, 24, 40, 0.74);
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.2);
    cursor: pointer;
    font: 700 30px/1 Arial, sans-serif;
    transform: translateY(-50%);
    transition: background 140ms ease, transform 140ms ease;
    backdrop-filter: blur(8px);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible,
.photo-lightbox-arrow:hover,
.photo-lightbox-arrow:focus-visible {
    outline: none;
    background: #087443;
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow-previous {
    left: 14px;
}

.gallery-arrow-next {
    right: 14px;
}

.manual-variant-badge {
    width: fit-content;
    margin: -2px 0 2px 34px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #7a2e0e;
    background: #ffead5;
    font-size: 10px;
    font-weight: 800;
}

.gallery-strip {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
}

.gallery-strip-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #344054;
    background: white;
    cursor: pointer;
    font: 900 16px/1 Arial, sans-serif;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.gallery-strip-arrow:hover,
.gallery-strip-arrow:focus-visible {
    border-color: #12b76a;
    color: #067647;
    outline: none;
    background: #ecfdf3;
}

.gallery-thumbnails {
    min-width: 0;
    padding: 4px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #98a2b3 transparent;
    scrollbar-width: thin;
}

.vehicle-photo-thumb {
    flex: 0 0 clamp(126px, 14vw, 174px);
    min-width: 0;
    padding: 6px;
    display: grid;
    grid-template-rows: 80px auto;
    align-content: start;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: #fcfcfd;
    cursor: pointer;
    font: inherit;
    scroll-snap-align: center;
    transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.vehicle-photo-thumb:hover,
.vehicle-photo-thumb:focus-visible {
    border-color: #6ce9a6;
    outline: none;
}

.vehicle-photo-thumb.active {
    border-color: #12b76a;
    color: #067647;
    box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.12);
}

.vehicle-photo-thumb img {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
}

.vehicle-photo-thumb span {
    padding-bottom: 2px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

body.photo-lightbox-open {
    overflow: hidden;
}

.photo-lightbox {
    width: min(96vw, 1500px);
    max-width: none;
    height: min(94vh, 980px);
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    color: white;
    background: #05070b;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.photo-lightbox::backdrop {
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(7px);
}

.photo-lightbox-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.photo-lightbox figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 54px 76px 24px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
}

.photo-lightbox figure img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    touch-action: pan-y;
    user-select: none;
}

.photo-lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #f2f4f7;
    font-size: 14px;
}

.photo-lightbox-caption span {
    color: #98a2b3;
    font-weight: 800;
}

.photo-lightbox-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font: 400 28px/1 Arial, sans-serif;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.22);
}

.photo-lightbox-previous {
    left: 18px;
}

.photo-lightbox-next {
    right: 18px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.constructor-title-row {
    align-items: center;
}

.constructor-title-row h1,
.admin-heading h1,
.order-detail-heading h1 {
    margin: 4px 0 2px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.constructor-title-row p,
.admin-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

.constructor-layout {
    padding: 0 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 20px;
}

.constructor-layout.has-gallery-after {
    padding-bottom: 22px;
}

.vehicle-gallery-after {
    margin-bottom: 80px;
}

.metrika-noscript {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.breadcrumbs {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.seo-info-card {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 92% 7%, rgba(18, 183, 106, 0.1), transparent 28%),
        white;
    box-shadow: 0 10px 32px rgba(16, 24, 40, 0.055);
}

.catalog-seo-info {
    margin-top: 34px;
}

.vehicle-seo-info {
    margin-bottom: 80px;
}

.seo-info-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.seo-info-heading h2 {
    max-width: 830px;
    margin: 7px 0 0;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.seo-info-heading > small {
    color: var(--muted);
    white-space: nowrap;
}

.seo-info-lead {
    max-width: 950px;
    margin: 22px 0 0;
    color: #344054;
    font-size: 17px;
    line-height: 1.65;
}

.seo-benefit-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.seo-benefit-grid article {
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.82);
}

.seo-benefit-grid strong {
    color: #067647;
    font-size: 15px;
}

.seo-benefit-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.seo-process-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.seo-process-grid > div {
    padding: 22px;
    border-radius: 16px;
    background: #f8fafc;
}

.seo-process-grid h3,
.seo-faq h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.seo-process-grid p,
.seo-process-grid ol {
    margin: 0;
    color: #475467;
    line-height: 1.65;
}

.seo-process-grid ol {
    padding-left: 20px;
}

.seo-process-grid li + li {
    margin-top: 7px;
}

.seo-faq {
    margin-top: 30px;
}

.seo-faq details {
    border-top: 1px solid var(--line);
}

.seo-faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.seo-faq summary {
    padding: 16px 2px;
    color: #1d2939;
    font-weight: 800;
    cursor: pointer;
}

.seo-faq details p {
    max-width: 920px;
    margin: -4px 0 17px;
    color: var(--muted);
    line-height: 1.6;
}

.seo-link-row {
    margin-top: 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.seo-link-row a {
    padding: 9px 12px;
    border: 1px solid #b7ebcd;
    border-radius: 999px;
    color: #067647;
    background: #f0fdf4;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.seo-link-row a:hover {
    border-color: #12b76a;
    background: #dcfae6;
}

.workspace-card,
.selection-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.055);
}

.workspace-card {
    min-width: 0;
    overflow: hidden;
}

.workspace-toolbar,
.legend {
    min-height: 66px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.workspace-toolbar {
    min-height: 148px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(560px, 0.92fr);
    align-items: start;
    border-bottom: 1px solid var(--line);
}

.instruction {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: center;
}

.instruction span:last-child,
.instruction strong,
.instruction small {
    display: block;
}

.instruction strong {
    font-size: 13px;
}

.instruction small {
    color: var(--muted);
    font-size: 11px;
}

.pulse-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(18, 163, 109, 0.1);
}

.zoom-panel {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 9px;
}

.zoom-label {
    color: #475467;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zoom-controls {
    height: 42px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
}

.zoom-controls button {
    width: 34px;
    height: 100%;
    border: 0;
    color: #344054;
    background: white;
    font-size: 20px;
    cursor: pointer;
}

.zoom-controls button:hover {
    color: #027a48;
    background: #ecfdf3;
}

.zoom-controls input[type="range"] {
    width: 110px;
    min-height: 0;
    margin: 0 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    accent-color: #079455;
    cursor: pointer;
}

.zoom-controls strong {
    min-width: 48px;
    color: #027a48;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}

.zoom-reset {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #abefc6;
    border-radius: 10px;
    color: #067647;
    background: #ecfdf3;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.zoom-reset:hover {
    border-color: #6ce9a6;
    background: #d1fadf;
}

.diagram-caption {
    min-height: 42px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--line);
    color: #344054;
    background: #f8fafc;
    font-size: 12px;
}

.diagram-caption > span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: #079455;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 800;
}

.diagram-caption strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diagram-measure-summary {
    min-height: 38px;
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #d1fadf;
    color: #344054;
    background: #f6fef9;
    font-size: 10px;
}

.diagram-measure-summary > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.diagram-measure-summary b {
    color: #079455;
    font-size: 13px;
}

.diagram-measure-summary small {
    margin-left: auto;
    color: #667085;
    font-size: 9px;
}

.diagram-scroll {
    min-height: 590px;
    max-height: calc(100vh - 260px);
    padding: 18px;
    display: flex;
    align-items: center;
    overflow: auto;
    background:
        linear-gradient(#f2f4f7 1px, transparent 1px),
        linear-gradient(90deg, #f2f4f7 1px, transparent 1px),
        #fafbfc;
    background-size: 24px 24px;
    scrollbar-color: #98a2b3 #f2f4f7;
}

.diagram-scroll.is-zoomed {
    align-items: flex-start;
    cursor: grab;
}

.diagram-scroll.is-zoomed:active {
    cursor: grabbing;
}

.diagram-scroll:focus {
    outline: none;
}

.diagram-scroll:focus-visible {
    outline: 1px solid #6ce9a6;
    outline-offset: -1px;
}

.diagram {
    width: 100%;
    min-width: 100%;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    margin: auto;
    border-radius: 12px;
    filter: drop-shadow(0 12px 20px rgba(16, 24, 40, 0.08));
    transition: width 180ms ease;
}

.detail-hit {
    fill: rgba(255, 107, 44, 0.001);
    stroke: rgba(52, 64, 84, 0.68);
    stroke-width: 0.75;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 120ms ease, stroke 120ms ease, filter 120ms ease;
}

.detail-hit:hover,
.detail-hit:focus-visible {
    fill: rgba(20, 184, 166, 0.2);
    stroke: rgba(13, 148, 136, 0.85);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px rgba(13, 148, 136, 0.3));
}

.detail-hit:focus-visible {
    outline: none;
}

.detail-hit.selected {
    fill: rgba(18, 183, 106, 0.46);
    stroke: #067647;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 2px rgba(2, 122, 72, 0.32));
}

.detail-hit.selected.inspecting {
    fill: rgba(18, 183, 106, 0.62);
    stroke: #054f31;
    stroke-width: 2.25;
    filter: drop-shadow(0 0 7px rgba(2, 122, 72, 0.58));
}

.selection-label-layer,
.diagram-detail-label,
.dimension-layer,
.diagram-dimensions {
    pointer-events: none;
}

.dimension-line,
.dimension-tick {
    stroke: #067647;
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
}

.dimension-extension {
    stroke: rgba(6, 118, 71, 0.58);
    stroke-width: 0.8;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
}

.dimension-text {
    fill: #054f31;
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 3px;
    paint-order: stroke fill;
    font-weight: 850;
    text-anchor: middle;
}

.diagram-label-background {
    fill: #054f31;
    fill-opacity: 0.76;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.diagram-label-connector {
    stroke: rgba(5, 79, 49, 0.72);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.diagram-label-title {
    fill: white;
    font-size: 12px;
    font-weight: 750;
    text-anchor: middle;
}

.legend {
    min-height: 52px;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.legend > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border: 2px solid;
    border-radius: 4px;
}

.selected-swatch {
    border-color: #067647;
    background: rgba(18, 183, 106, 0.46);
}

.hover-swatch {
    border-color: rgba(13, 148, 136, 0.85);
    background: rgba(20, 184, 166, 0.2);
}

.zoom-legend {
    color: #475467;
    font-weight: 650;
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--accent);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.legend .text-button {
    margin-left: auto;
}

.selection-panel {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 116px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.protection-presets-toolbar {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f8fafc;
}

.protection-presets-toolbar-label {
    flex: 0 0 auto;
    color: #475467;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.protection-preset-grid {
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.protection-preset-grid:has(button[data-selection-zone]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.protection-preset-grid button {
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: var(--ink);
    background: white;
    cursor: pointer;
}

.protection-preset-grid button:hover,
.protection-preset-grid button:focus-visible {
    border-color: #12b76a;
    outline: none;
    background: #ecfdf3;
}

.protection-preset-grid button.is-active {
    border-color: #079455;
    color: #054f31;
    background: #d1fadf;
    box-shadow: 0 0 0 1px rgba(7, 148, 85, 0.16);
}

.protection-preset-grid button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.protection-preset-grid strong {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 11px;
    line-height: 1.12;
}

.protection-preset-grid small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.protection-preset-number {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: #101828;
    font-size: 10px;
    font-weight: 850;
}

.protection-preset-grid button.is-active .protection-preset-number {
    background: #079455;
}

.protection-preset-copy {
    min-width: 0;
    text-align: left;
}

.empty-selection {
    padding: 52px 28px;
    flex: 1;
    text-align: center;
}

.empty-selection[hidden],
.selected-details-section[hidden],
.bulk-overlap[hidden],
.selected-list[hidden] {
    display: none;
}

.empty-selection > span {
    display: block;
    color: #079455;
    font-size: 34px;
}

.empty-selection h3 {
    margin: 10px 0 4px;
    font-size: 17px;
}

.empty-selection p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.selected-details-section {
    margin-bottom: 22px;
    padding: 26px;
    scroll-margin-top: 88px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.055);
}

.selected-details-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.selected-details-heading h2 {
    margin: 5px 0 4px;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.035em;
}

.selected-details-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.selected-details-count {
    min-width: 92px;
    padding: 10px 14px;
    border: 1px solid #abefc6;
    border-radius: 14px;
    color: #067647;
    background: #ecfdf3;
    text-align: center;
}

.selected-details-count strong,
.selected-details-count span {
    display: block;
}

.selected-details-count strong {
    font-size: 24px;
    line-height: 1;
}

.selected-details-count span {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.selected-list {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.bulk-overlap {
    position: sticky;
    top: 94px;
    margin: 0;
    padding: 18px;
    display: grid;
    gap: 14px;
    border: 1px solid #abefc6;
    border-radius: 16px;
    background: linear-gradient(145deg, #f6fef9, #ecfdf3);
}

.bulk-overlap-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.bulk-overlap-head strong,
.bulk-overlap-head small {
    display: block;
}

.bulk-overlap-head strong {
    font-size: 14px;
}

.bulk-overlap-head small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.bulk-overlap-head > span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #067647;
    background: white;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.bulk-overlap-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.bulk-overlap-presets button {
    min-width: 0;
    min-height: 39px;
    padding: 5px 4px;
    border: 1px solid #abefc6;
    border-radius: 8px;
    color: #067647;
    background: white;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.bulk-overlap-presets button:hover,
.bulk-overlap-presets button:focus-visible {
    border-color: #12b76a;
    outline: none;
    background: #d1fadf;
}

.bulk-overlap-custom {
    display: grid;
    gap: 5px;
}

.bulk-overlap-custom > label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.bulk-overlap-custom > div {
    display: grid;
    grid-template-columns: 54px 24px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #abefc6;
    border-radius: 9px;
    background: white;
}

.bulk-overlap-custom input {
    min-height: 36px;
    padding: 0 4px 0 9px;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.bulk-overlap-custom span {
    color: var(--muted);
    font-size: 9px;
}

.bulk-overlap-custom button {
    align-self: stretch;
    border: 0;
    color: white;
    background: #079455;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.bulk-overlap-custom button:hover {
    background: #067647;
}

.selected-item {
    margin: 0;
    padding: 18px;
    border: 1px solid #d1fadf;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f6fef9);
}

.selected-item-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
}

.item-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: #079455;
    font-size: 11px;
    font-weight: 850;
}

.selected-item-head strong {
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.selected-item-facts {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.selected-item-fact {
    min-width: 0;
    padding: 12px 13px;
    display: grid;
    gap: 4px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #ffffff;
}

.selected-item-fact > small {
    color: #667085;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.selected-item-fact > strong {
    color: #067647;
    font-size: 15px;
}

.selected-item-fact > span {
    color: #667085;
    font-size: 9px;
    line-height: 1.35;
}

.selected-item-editor {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) minmax(310px, 1.35fr) 180px;
    align-items: end;
    gap: 12px;
}

.detail-size-row {
    margin-top: 10px;
    padding: 9px 10px;
    display: grid;
    gap: 4px;
    border: 1px solid #d1fadf;
    border-radius: 10px;
    background: #ffffff;
}

.detail-size-row > small {
    color: #667085;
    font-size: 9px;
    font-weight: 750;
}

.detail-size-row > strong {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-size-row > strong span {
    padding: 4px 7px;
    border-radius: 7px;
    color: #067647;
    background: #ecfdf3;
    font-size: 11px;
}

.detail-size-row > em {
    color: #475467;
    font-size: 9px;
    font-style: normal;
}

.detail-rename {
    margin: 0;
    display: grid;
    gap: 5px;
}

.detail-rename > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.detail-rename input {
    min-height: 42px;
    padding-inline: 10px;
    border-color: #abefc6;
    font-size: 11px;
    font-weight: 700;
}

.detail-rename input:focus {
    border-color: #12b76a;
    outline: 2px solid rgba(18, 183, 106, 0.12);
}

.inspect-detail {
    width: 100%;
    min-height: 42px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #abefc6;
    border-radius: 9px;
    color: #067647;
    background: #ecfdf3;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.inspect-detail:hover {
    border-color: #6ce9a6;
    background: #d1fadf;
}

.inspect-detail > span {
    font-size: 17px;
    line-height: 1;
}

.remove-item {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    color: #98a2b3;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.remove-item:hover {
    color: #d92d20;
    background: #fef3f2;
}

.overlap-control {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
}

.overlap-control-label strong,
.overlap-control-label small {
    display: block;
}

.overlap-control-label strong {
    font-size: 10px;
}

.overlap-control-label small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.3;
}

.detail-overlap-presets {
    display: grid;
    grid-template-columns: repeat(4, 42px);
    gap: 4px;
}

.detail-overlap-presets button {
    min-height: 34px;
    padding: 4px;
    border: 1px solid #abefc6;
    border-radius: 8px;
    color: #067647;
    background: white;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.detail-overlap-presets button:hover,
.detail-overlap-presets button:focus-visible,
.detail-overlap-presets button.is-active {
    border-color: #079455;
    outline: none;
    background: #d1fadf;
}

.number-stepper {
    height: 38px;
    display: grid;
    grid-template-columns: 30px 46px 26px 30px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
}

.number-stepper button {
    height: 100%;
    border: 0;
    background: white;
    cursor: pointer;
}

.number-stepper button:hover {
    background: var(--soft);
}

.number-stepper input {
    width: 46px;
    height: 100%;
    padding: 0 3px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    appearance: textfield;
}

.mobile-selection-bar {
    display: none;
}

.number-stepper input::-webkit-inner-spin-button {
    appearance: none;
}

.number-stepper > span {
    color: var(--muted);
    font-size: 10px;
}

.selection-footer {
    padding: 17px 20px 19px;
    border-top: 1px solid var(--line);
    background: white;
}

.roll-meter {
    margin-bottom: 10px;
    padding: 12px;
    display: grid;
    gap: 8px;
    border: 1px solid #b2ddff;
    border-radius: 12px;
    background: linear-gradient(145deg, #f5fbff, #eff8ff);
}

.roll-meter[hidden] {
    display: none;
}

.roll-meter-head,
.roll-meter-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.roll-meter-head strong,
.roll-meter-head small {
    display: block;
}

.roll-meter-head strong {
    color: #175cd3;
    font-size: 11px;
}

.roll-meter-head small {
    margin-top: 2px;
    color: #475467;
    font-size: 9px;
}

.roll-meter-head > b {
    color: #175cd3;
    font-size: 15px;
    white-space: nowrap;
}

.roll-track {
    position: relative;
    height: 13px;
    overflow: hidden;
    border: 1px solid #b2ddff;
    border-radius: 999px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent calc(10% - 1px),
            rgba(23, 92, 211, 0.13) calc(10% - 1px),
            rgba(23, 92, 211, 0.13) 10%
        ),
        white;
}

.roll-track > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2e90fa, #12b76a);
    transition: width 180ms ease;
}

.roll-track > i {
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: 50%;
    border-left: 1px dashed rgba(16, 24, 40, 0.35);
}

.roll-meter-foot {
    align-items: center;
}

.roll-meter-foot strong {
    font-size: 12px;
}

.roll-meter-foot span {
    color: #175cd3;
    font-size: 9px;
    font-weight: 800;
    text-align: right;
}

.roll-meter > small {
    color: #667085;
    font-size: 8px;
    line-height: 1.4;
}

.roll-meter.is-overflow {
    border-color: #fec84b;
    background: #fffaeb;
}

.roll-meter.is-overflow .roll-meter-head strong,
.roll-meter.is-overflow .roll-meter-head > b,
.roll-meter.is-overflow .roll-meter-foot span {
    color: #b54708;
}

.roll-meter.is-overflow .roll-track > span {
    background: linear-gradient(90deg, #f79009, #f04438);
}

.selection-total {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.review-details-button {
    min-height: 44px;
    margin-bottom: 10px;
    border-color: #abefc6;
    color: #067647;
    background: #ecfdf3;
    font-weight: 800;
}

.review-details-button:hover,
.review-details-button:focus-visible {
    border-color: #12b76a;
    outline: none;
    background: #d1fadf;
}

.danger-text {
    color: #d92d20;
}

.selection-footer > small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.checkout-dialog {
    width: min(620px, calc(100% - 28px));
    max-height: calc(100vh - 30px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 100px rgba(16, 24, 40, 0.3);
}

.checkout-dialog::backdrop {
    background: rgba(16, 24, 40, 0.66);
    backdrop-filter: blur(4px);
}

.checkout-form {
    padding: 30px;
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dialog-head h2 {
    margin: 6px 0 0;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.dialog-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: white;
    font-size: 23px;
    cursor: pointer;
}

.order-review {
    margin: 20px 0;
    padding: 12px 14px;
    border-radius: 10px;
    color: #9a3412;
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 750;
}

.film-choice {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #abefc6;
    border-radius: 14px;
    background: #f6fef9;
}

.film-choice legend {
    padding: 0 6px;
    color: #067647;
    font-size: 13px;
    font-weight: 850;
}

.film-choice > p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 11px;
}

.film-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.film-choice-grid label {
    min-width: 0;
    padding: 11px;
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: white;
    cursor: pointer;
}

.film-choice-grid label:has(input:checked) {
    border-color: #12b76a;
    box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.1);
}

.film-choice-grid input {
    width: 17px;
    min-height: 17px;
    margin: 1px 0 0;
    accent-color: #079455;
}

.film-choice-grid strong,
.film-choice-grid small {
    display: block;
}

.film-choice-grid strong {
    font-size: 11px;
}

.film-choice-grid small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.film-catalog-picker {
    display: grid;
    gap: 7px;
}

.film-catalog-picker > span {
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.film-catalog-picker input,
.film-catalog-picker select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #101828;
}

.film-catalog-picker input {
    min-height: 42px;
    padding: 0 12px;
}

.film-catalog-picker select {
    min-height: 154px;
    padding: 5px;
}

.film-catalog-picker option {
    padding: 7px 9px;
    border-radius: 6px;
}

.film-catalog-picker option:checked {
    background: #067647 linear-gradient(0deg, #067647 0%, #067647 100%);
    color: #fff;
}

.film-product-summary {
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid #abefc6;
    border-radius: 10px;
    background: #ecfdf3;
    color: #05603a;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.45;
}

.readiness-grid {
    margin-top: 18px;
}

.readiness-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.readiness-metrics div {
    padding: 12px;
    border-radius: 10px;
    background: #f2f4f7;
}

.readiness-metrics strong,
.readiness-metrics small {
    display: block;
}

.readiness-metrics strong {
    color: #067647;
    font-size: 24px;
}

.readiness-metrics small {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
}

.readiness-list {
    display: grid;
    gap: 9px;
}

.readiness-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.readiness-table-wrap {
    overflow-x: auto;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #fff;
}

.readiness-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.readiness-table th,
.readiness-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    font-size: 12px;
}

.readiness-table th {
    color: #475467;
    font-size: 10px;
    text-transform: uppercase;
}

.readiness-table td:first-child a,
.readiness-table td:first-child small {
    display: block;
}

.readiness-table td:first-child a {
    color: #101828;
    font-weight: 800;
}

.readiness-table td:first-child small {
    margin-top: 2px;
    color: #667085;
    font-size: 9px;
}

.film-color-field {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.film-color-field[hidden] {
    display: none;
}

.film-color-field > span {
    color: #475467;
    font-size: 11px;
    font-weight: 750;
}

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

.form-grid label,
.auth-card label,
.status-form label {
    display: grid;
    gap: 7px;
}

.form-grid label > span,
.auth-card label > span,
.status-form label > span,
.list-label {
    color: #475467;
    font-size: 12px;
    font-weight: 750;
}

.full-field {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: var(--ink);
    background: white;
}

input,
select {
    min-height: 45px;
    padding: 0 12px;
}

textarea {
    padding: 10px 12px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #98a2b3;
}

.checkbox-field,
.toggle-field {
    margin: 18px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.checkbox-field input,
.toggle-field input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.form-error {
    margin: 0 0 14px;
    padding: 11px 13px;
    border-radius: 9px;
    color: #b42318;
    background: #fef3f2;
    font-size: 12px;
    font-weight: 650;
}

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    padding: 12px 17px;
    transform: translateY(24px);
    border-radius: 10px;
    color: white;
    background: var(--ink);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.success-shell {
    padding: 55px 0 90px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.success-card,
.success-details,
.auth-card,
.admin-form,
.order-image-card,
.order-info section {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.055);
}

.success-card {
    position: sticky;
    top: 100px;
    padding: 32px;
}

.success-check {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--green);
    font-size: 24px;
    font-weight: 850;
}

.success-card h1 {
    margin: 5px 0 10px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.success-card > p {
    margin: 0;
    color: var(--muted);
}

.order-number {
    display: block;
    margin: 12px 0;
    color: var(--accent);
    font-size: 23px;
    letter-spacing: 0.04em;
}

.success-meta {
    margin: 18px 0 24px;
    display: grid;
    gap: 7px;
    color: #475467;
    font-size: 13px;
}

.success-details {
    padding: 26px;
}

.compact-heading {
    margin-bottom: 20px;
}

.compact-heading h2 {
    font-size: 28px;
}

.order-snapshot {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.ordered-items {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ordered-items > div {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 0 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fcfcfd;
}

.ordered-items > div > span {
    grid-row: span 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: var(--ink);
    font-size: 11px;
    font-weight: 850;
}

.ordered-items strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ordered-items small {
    color: var(--muted);
    font-size: 10px;
}

.login-shell {
    min-height: calc(100vh - 150px);
    padding: 60px 0;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(440px, 100%);
    padding: 36px;
}

.auth-card h1 {
    margin: 5px 0 8px;
    font-size: 36px;
    letter-spacing: -0.04em;
}

.auth-card > p {
    margin: 0 0 24px;
    color: var(--muted);
}

.auth-card .button {
    margin-top: 18px;
}

.center-link {
    width: 100%;
    margin: 18px 0 0;
    text-align: center;
}

.admin-shell {
    padding: 48px 0 90px;
}

.admin-heading {
    align-items: center;
    margin-bottom: 28px;
}

.status-filters {
    margin-bottom: 18px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
}

.status-filters a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: white;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.status-filters a.active {
    border-color: var(--ink);
    color: white;
    background: var(--ink);
}

.orders-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.045);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.orders-table th,
.orders-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.orders-table th {
    color: var(--muted);
    background: #fcfcfd;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.orders-table tr:last-child td {
    border-bottom: 0;
}

.orders-table td strong,
.orders-table td small {
    display: block;
}

.orders-table td small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.status-new {
    color: #b54708;
    background: #fffaeb;
}

.status-confirmed {
    color: #175cd3;
    background: #eff8ff;
}

.status-cutting {
    color: #6938ef;
    background: #f4f3ff;
}

.status-done {
    color: #027a48;
    background: #ecfdf3;
}

.status-cancelled {
    color: #b42318;
    background: #fef3f2;
}

.table-link {
    color: var(--accent);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.small-empty {
    padding-block: 48px;
}

.admin-subheading {
    margin: 52px 0 18px;
    align-items: flex-end;
}

.template-list {
    display: grid;
    gap: 8px;
}

.template-list > a {
    padding: 15px 17px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    text-decoration: none;
}

.template-list > a:hover {
    border-color: #f9a27c;
}

.template-list strong,
.template-list small {
    display: block;
}

.template-list small {
    color: var(--muted);
}

.order-detail-heading {
    align-items: center;
}

.status-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.status-form select {
    min-width: 180px;
}

.order-detail-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
    gap: 20px;
}

.order-image-card {
    padding: 18px;
}

.order-image-card img {
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.order-info {
    display: grid;
    gap: 12px;
}

.order-info section {
    padding: 20px;
}

.order-info h2 {
    margin: 5px 0;
    font-size: 21px;
}

.order-info a,
.order-info p {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    text-decoration: none;
}

.comment-box {
    white-space: pre-wrap;
}

.admin-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.narrow-admin {
    max-width: 900px;
}

.admin-form {
    padding: 28px;
}

.upload-field input {
    height: auto;
    padding: 13px;
}

.upload-field small {
    color: var(--muted);
}

.admin-form .button {
    margin-top: 22px;
}

.admin-photo-section {
    margin-top: 20px;
    padding-top: 20px;
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.admin-photo-grid img {
    width: 100%;
    aspect-ratio: 1.4;
    border: 1px solid var(--line);
    border-radius: 9px;
    object-fit: contain;
    background: #f8fafc;
}

.template-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    align-items: start;
    gap: 20px;
}

.template-preview-card {
    position: sticky;
    top: 95px;
    padding: 15px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
}

.template-preview-card svg {
    width: 100%;
}

.admin-shape {
    fill: rgba(255, 107, 44, 0.12);
    stroke: rgba(255, 107, 44, 0.65);
    stroke-width: 1;
}

.admin-shape.disabled-shape {
    fill: rgba(102, 112, 133, 0.05);
    stroke: rgba(102, 112, 133, 0.32);
    stroke-dasharray: 4 3;
}

.shape-number {
    fill: #101828;
    font-size: 12px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke;
    stroke: white;
    stroke-width: 3px;
}

.template-fields {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
}

.protection-level-help {
    margin: 20px 0 14px;
    padding: 14px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
}

.protection-level-help strong {
    font-size: 13px;
}

.protection-level-help p {
    margin: 4px 0 0;
    color: #067647;
    font-size: 11px;
    line-height: 1.45;
}

.detail-name-list {
    margin-top: 22px;
    padding-top: 20px;
    display: grid;
    gap: 7px;
    border-top: 1px solid var(--line);
}

.detail-name-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 142px auto;
    align-items: center;
    gap: 8px;
}

.package-level-select {
    min-width: 0;
    min-height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    color: var(--ink);
    background: white;
    font-size: 11px;
}

.detail-index {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: var(--ink);
    font-size: 10px;
    font-weight: 800;
}

.detail-name-list input {
    min-height: 40px;
}

.mini-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.mini-toggle input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--accent);
}

.sticky-save {
    position: sticky;
    bottom: 0;
    margin: 18px -24px -24px;
    padding: 14px 24px 24px;
    background: linear-gradient(transparent, white 20%);
}

.flash-stack {
    position: fixed;
    z-index: 110;
    top: 88px;
    right: 20px;
    width: min(380px, calc(100% - 40px));
    display: grid;
    gap: 8px;
}

.flash {
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 11px;
    background: white;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
}

.flash-success {
    border-color: #abefc6;
    color: #067647;
}

.flash-error {
    border-color: #fecdca;
    color: #b42318;
}

.error-shell {
    min-height: calc(100vh - 150px);
    padding: 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-shell > span {
    color: var(--accent);
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
}

.error-shell h1 {
    margin: 12px 0 4px;
    font-size: 38px;
}

.error-shell p {
    margin: 0 0 24px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: white;
}

.footer-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 11px;
}

.footer-inner span:first-child {
    color: var(--ink);
    font-weight: 850;
    letter-spacing: 0.05em;
}

.catalog-filters {
    margin: -4px 0 28px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(130px, 0.75fr)) auto auto;
    align-items: end;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.catalog-filters label,
.admin-detail-card label {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.catalog-filters label > span,
.admin-detail-card label > span {
    color: #475467;
    font-size: 10px;
    font-weight: 750;
}

.catalog-filters input,
.catalog-filters select,
.admin-detail-card input,
.admin-detail-card select,
.admin-tool-card select {
    width: 100%;
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: var(--ink);
    background: white;
}

.vehicle-spec {
    display: block;
    margin-top: -4px;
    color: #475467;
    font-weight: 700;
}

.live-estimate {
    padding: 14px;
    display: grid;
    gap: 6px;
    border: 1px solid #d1fadf;
    border-radius: 12px;
    background: #f6fef9;
}

.live-estimate strong,
.live-estimate span,
.live-estimate b,
.live-estimate small {
    display: block;
}

.live-estimate strong {
    color: #067647;
    font-size: 11px;
}

.live-estimate span {
    color: #344054;
    font-size: 11px;
}

.live-estimate b {
    margin-top: 2px;
    font-size: 15px;
}

.live-estimate small {
    color: var(--muted);
    font-size: 9px;
}

.estimate-price-breakdown {
    margin-top: 4px;
    display: grid;
    gap: 6px;
}

.estimate-price-breakdown[hidden] {
    display: none;
}

.estimate-price-breakdown > div {
    padding: 9px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
    border: 1px solid #d1fadf;
    border-radius: 9px;
    background: white;
}

.estimate-price-breakdown > div > span {
    color: #475467;
    font-size: 10px;
    font-weight: 750;
}

.estimate-price-breakdown > div > b {
    margin: 0;
    color: #067647;
    font-size: 13px;
}

.estimate-price-breakdown > div > small {
    grid-column: 1 / -1;
    font-size: 8px;
}

.estimate-price-breakdown .estimate-price-total {
    border-color: #6ce9a6;
    background: #d1fadf;
}

.estimate-price-breakdown .estimate-price-total > span {
    color: #054f31;
    font-size: 12px;
    font-weight: 850;
}

.estimate-price-breakdown .estimate-price-total > b {
    color: #054f31;
    font-size: 18px;
}

#estimate-pricing-policy {
    margin-top: 2px;
    line-height: 1.4;
}

.production-settings {
    padding: 15px;
    border: 1px solid #fedf89;
    border-radius: 13px;
    background: #fffaeb;
}

.production-settings > strong {
    font-size: 14px;
}

.production-settings > p {
    margin: 3px 0 12px;
    color: #7a2e0e;
    font-size: 11px;
}

.admin-detail-card {
    padding: 12px;
    display: grid;
    grid-template-columns: 38px minmax(180px, 1.5fr) minmax(130px, 0.9fr) 100px 145px auto auto;
    align-items: end;
    gap: 8px;
    border-top: 1px solid var(--line);
}

.admin-detail-card .detail-index {
    align-self: center;
}

.admin-detail-card .mini-toggle {
    min-height: 44px;
    align-content: center;
}

.admin-detail-card .mini-toggle input {
    width: auto;
    min-height: auto;
}

.admin-tools-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-tool-card,
.film-admin-card,
.tracking-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
}

.admin-tool-card h2,
.film-admin-card h2,
.tracking-card h2 {
    margin: 5px 0 4px;
    font-size: 20px;
}

.admin-tool-card > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.admin-tool-card form {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-tool-card form select {
    flex: 1;
}

.version-list,
.status-timeline,
.notification-list {
    display: grid;
    gap: 8px;
}

.version-list > div,
.version-list > form,
.status-timeline-item,
.notification-list > div {
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.version-list span,
.version-list small,
.status-timeline-item span,
.status-timeline-item strong,
.status-timeline-item small,
.notification-list strong,
.notification-list small {
    display: block;
}

.version-list small,
.status-timeline-item small,
.notification-list small {
    color: var(--muted);
    font-size: 10px;
}

.status-timeline-item {
    justify-content: flex-start;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #98a2b3;
}

.status-dot.status-new {
    background: #ff6b2c;
}

.status-dot.status-confirmed,
.status-dot.status-cutting {
    background: #2e90fa;
}

.status-dot.status-done {
    background: #12b76a;
}

.status-dot.status-cancelled {
    background: #f04438;
}

.tracking-card {
    margin-bottom: 22px;
}

.tracking-hint {
    max-width: 500px;
    color: var(--muted);
    font-size: 12px;
}

.estimate-total {
    color: #067647;
    font-size: 19px;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.export-note {
    display: block;
    color: #b54708;
    font-size: 10px;
}

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

.film-admin-list {
    display: grid;
    gap: 14px;
}

.film-admin-card-head,
.film-admin-toggles,
.admin-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.film-admin-toggles {
    justify-content: flex-end;
}

.film-admin-card textarea {
    resize: vertical;
}

.film-add-card {
    margin-top: 24px;
}

.film-add-card form.form-grid {
    display: grid;
}

.notification-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.notification-list small {
    grid-column: 1 / -1;
}

@media (min-width: 1500px) {
    .workspace-toolbar {
        grid-template-columns: minmax(260px, 1fr) minmax(620px, 0.92fr);
    }

    .protection-presets-toolbar {
        grid-column: 2;
        grid-row: 2;
    }

    .zoom-panel {
        grid-column: 2;
    }
}

@media (max-width: 1100px) {
    .catalog-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-search {
        grid-column: span 2;
    }

    .admin-detail-card {
        grid-template-columns: 38px minmax(180px, 1.3fr) minmax(130px, 1fr) 100px;
    }

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

    .constructor-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

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

    .selected-details-layout .bulk-overlap {
        position: static;
    }

    .selected-item-editor {
        grid-template-columns: minmax(190px, 0.9fr) minmax(310px, 1.35fr);
    }

    .selected-item-editor .inspect-detail {
        grid-column: 1 / -1;
    }

    .workspace-toolbar {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .zoom-panel {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-end;
    }

    .protection-presets-toolbar {
        grid-column: 1;
        grid-row: 3;
    }

    .diagram-scroll {
        min-height: 500px;
    }

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

@media (max-width: 860px) {
    :root {
        --shell: min(100% - 28px, 720px);
    }

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

    .seo-benefit-grid,
    .seo-process-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-gallery-grid {
        grid-template-columns: 1fr;
    }

    .selection-panel {
        position: static;
        max-height: none;
        scroll-margin-top: 16px;
    }

    .diagram-scroll {
        min-height: 420px;
        max-height: none;
    }

    .constructor-page.has-mobile-selection {
        padding-bottom: 84px;
    }

    .mobile-selection-bar:not([hidden]) {
        position: fixed;
        z-index: 80;
        right: 12px;
        bottom: 10px;
        left: 12px;
        min-height: 66px;
        padding: 9px 10px 9px 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(171, 239, 198, 0.9);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 50px rgba(16, 24, 40, 0.2);
        backdrop-filter: blur(16px);
    }

    .mobile-selection-bar small,
    .mobile-selection-bar strong {
        display: block;
    }

    .mobile-selection-bar small {
        color: #067647;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-selection-bar strong {
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-selection-bar .button,
    .mobile-review-button {
        min-height: 44px;
        padding: 0 12px;
        border-radius: 11px;
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-review-button {
        border: 1px solid #abefc6;
        color: #067647;
        background: #ecfdf3;
    }

    .success-shell,
    .order-detail-grid,
    .template-edit-layout {
        grid-template-columns: 1fr;
    }

    .success-card,
    .template-preview-card {
        position: static;
    }

    .template-preview-card {
        max-height: 65vh;
    }

    .admin-tools-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-card {
        grid-template-columns: 38px repeat(2, minmax(0, 1fr));
    }

    .admin-detail-name {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    :root {
        --shell: calc(100% - 20px);
        --radius-lg: 16px;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 64px;
    }

    .brand small {
        display: none;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .header-nav {
        gap: 12px;
        font-size: 12px;
    }

    .header-nav a:first-child {
        display: none;
    }

    .catalog-section {
        padding-top: 26px;
    }

    .seo-info-card {
        padding: 22px 17px;
        border-radius: 16px;
    }

    .seo-info-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .seo-info-heading h2 {
        font-size: 27px;
    }

    .seo-info-heading > small {
        white-space: normal;
    }

    .seo-info-lead {
        margin-top: 16px;
        font-size: 15px;
    }

    .seo-benefit-grid,
    .seo-process-grid {
        margin-top: 16px;
    }

    .seo-process-grid > div,
    .seo-benefit-grid article {
        padding: 16px;
    }

    .seo-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .seo-link-row a {
        text-align: center;
    }

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

    .catalog-search,
    .catalog-filters .button {
        grid-column: 1 / -1;
    }

    .section-heading,
    .admin-heading,
    .constructor-title-row,
    .order-detail-heading,
    .admin-subheading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

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

    .selected-details-section {
        padding: 18px;
    }

    .selected-details-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .selected-details-count {
        min-width: 82px;
        text-align: left;
    }

    .selected-item {
        padding: 14px;
    }

    .selected-item-facts,
    .selected-item-editor {
        grid-template-columns: 1fr;
    }

    .selected-item-editor .inspect-detail {
        grid-column: auto;
    }

    .overlap-control {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .detail-overlap-presets {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .number-stepper {
        width: 100%;
        height: 42px;
        grid-template-columns: 44px minmax(50px, 1fr) 30px 44px;
    }

    .number-stepper input {
        width: 100%;
    }

    .selected-details-layout .bulk-overlap {
        padding: 14px;
    }

    .constructor-header {
        padding-top: 22px;
    }

    .vehicle-gallery {
        padding: 8px;
    }

    .vehicle-gallery-head {
        margin: 3px 4px 10px;
        align-items: center;
    }

    .vehicle-gallery-head h2 {
        font-size: 18px;
    }

    .gallery-counter {
        padding: 5px 9px;
        font-size: 11px;
    }

    .gallery-main {
        min-height: 245px;
    }

    .gallery-main img {
        height: 245px;
    }

    .gallery-expand-hint {
        right: 9px;
        bottom: 9px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .gallery-arrow-previous {
        left: 8px;
    }

    .gallery-arrow-next {
        right: 8px;
    }

    .gallery-strip {
        display: block;
    }

    .gallery-strip-arrow {
        display: none;
    }

    .gallery-thumbnails {
        padding: 3px 1px 7px;
        gap: 6px;
    }

    .vehicle-photo-thumb {
        flex-basis: 108px;
        padding: 4px;
        grid-template-rows: 58px auto;
        gap: 3px;
    }

    .vehicle-photo-thumb img {
        height: 58px;
    }

    .vehicle-photo-thumb span {
        font-size: 9px;
    }

    .photo-lightbox {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    .photo-lightbox figure {
        padding: 56px 14px 20px;
        gap: 10px;
    }

    .photo-lightbox-caption {
        min-height: 36px;
        padding-inline: 44px;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 12px;
        text-align: center;
    }

    .photo-lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .photo-lightbox-previous {
        left: 6px;
    }

    .photo-lightbox-next {
        right: 6px;
    }

    .constructor-title-row h1 {
        font-size: 38px;
    }

    .constructor-layout {
        padding-bottom: 50px;
    }

    .constructor-layout.has-gallery-after {
        padding-bottom: 16px;
    }

    .vehicle-gallery-after {
        margin-bottom: 50px;
    }

    .zoom-panel {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }

    .zoom-label {
        grid-column: 1 / -1;
    }

    .zoom-controls {
        width: 100%;
    }

    .zoom-controls input[type="range"] {
        min-width: 60px;
        flex: 1;
    }

    .zoom-reset {
        min-height: 42px;
    }

    .protection-presets-toolbar {
        gap: 6px;
    }

    .protection-presets-toolbar-label {
        width: 100%;
    }

    .protection-preset-grid button {
        min-height: 70px;
        padding: 7px 5px;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .protection-preset-copy {
        text-align: center;
    }

    .diagram-scroll {
        min-height: 390px;
        padding: 10px;
    }

    .diagram-caption {
        padding-inline: 13px;
    }

    .diagram-caption strong {
        font-size: 11px;
    }

    .diagram-measure-summary {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 5px 12px;
    }

    .diagram-measure-summary small {
        width: 100%;
        margin-left: 0;
    }

    .legend {
        flex-wrap: wrap;
    }

    .zoom-legend {
        width: 100%;
        order: 3;
    }

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

    .bulk-overlap-presets button {
        min-height: 38px;
        font-size: 10px;
    }

    .admin-detail-card {
        padding: 11px;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .admin-detail-card > label,
    .admin-detail-name {
        grid-column: 2;
    }

    .selection-footer {
        padding-inline: 16px;
    }

    .roll-meter-head,
    .roll-meter-foot {
        gap: 6px;
    }

    .roll-meter-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .selected-item {
        padding: 15px;
    }

    .checkout-form {
        padding: 22px 18px;
    }

    .film-choice-grid {
        grid-template-columns: 1fr;
    }

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

    .full-field {
        grid-column: auto;
    }

    .ordered-items,
    .admin-items {
        grid-template-columns: 1fr;
    }

    .success-shell,
    .admin-shell {
        padding-top: 30px;
    }

    .success-card,
    .success-details,
    .auth-card,
    .admin-form,
    .template-fields {
        padding: 20px;
    }

    .status-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .status-form select {
        min-width: 0;
    }

    .admin-tool-card form,
    .film-admin-card-head,
    .film-admin-toggles,
    .admin-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-heading-actions,
    .admin-heading-actions .button {
        width: 100%;
    }

    .export-buttons {
        grid-template-columns: 1fr;
    }

    .template-list > a {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .template-list b {
        display: none;
    }

    .sticky-save {
        margin-inline: -20px;
        padding-inline: 20px;
    }

    .footer-inner {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
    }
}

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