:root {
    --bg: #111827;
    --panel: #ffffff;
    --panel-muted: #f5f7fa;
    --text: #18212f;
    --text-muted: #667085;
    --line: #d8dee8;
    --accent: #c89b2c;
    --accent-dark: #74510d;
    --accent-hover: #d7aa3a;
    --accent-outline: rgba(200, 155, 44, .72);
    --accent-ring: rgba(200, 155, 44, .18);
    --accent-border: rgba(200, 155, 44, .42);
    --accent-soft: #fff8e7;
    --accent-soft-strong: #fff3d5;
    --danger: #b42318;
    --success: #168355;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

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

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

@keyframes arzenFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arzenImageIn {
    from {
        opacity: 0;
        filter: saturate(.84) contrast(.92);
        transform: scale(.975) translateY(14px);
    }
    to {
        opacity: 1;
        filter: saturate(1) contrast(1);
        transform: scale(1) translateY(0);
    }
}

body:not(.admin-body) .hero .eyebrow,
body:not(.admin-body) .hero h1,
body:not(.admin-body) .hero p:not(.eyebrow),
body:not(.admin-body) .hero-actions,
body:not(.admin-body) .page-title > *,
body:not(.admin-body) .section-heading,
body:not(.admin-body) .intro-copy > *,
body:not(.admin-body) .detail-copy > *,
body:not(.admin-body) .subscription-hero-copy > *,
body:not(.admin-body) .mechanics-flow > div > *,
body:not(.admin-body) .mechanics-cta > *,
body:not(.admin-body) .inquiry-form,
body:not(.admin-body) .inquiry-side-card,
body:not(.admin-body) .complete-section > *,
body.planner-page .planner-title > * {
    animation: arzenFadeUp .62s cubic-bezier(.2, .8, .2, 1) both;
}

body:not(.admin-body) .hero h1,
body:not(.admin-body) .page-title h1,
body:not(.admin-body) .subscription-hero h1 {
    animation-delay: .08s;
}

body:not(.admin-body) .hero p:not(.eyebrow),
body:not(.admin-body) .page-title p:not(.eyebrow),
body:not(.admin-body) .subscription-hero p:not(.eyebrow) {
    animation-delay: .16s;
}

body:not(.admin-body) .hero-actions {
    animation-delay: .24s;
}

body:not(.admin-body) .hero-metrics div,
body:not(.admin-body) .subscription-metrics div,
body:not(.admin-body) .equipment-card,
body:not(.admin-body) .mechanics-card,
body:not(.admin-body) .plan-card,
body:not(.admin-body) .process-list li,
body.planner-page .planner-sidebar,
body.planner-page .planner-stage,
body.planner-page .planner-inspector {
    animation: arzenFadeUp .58s cubic-bezier(.2, .8, .2, 1) both;
}

body:not(.admin-body) .hero-metrics div:nth-child(1),
body:not(.admin-body) .subscription-metrics div:nth-child(1),
body:not(.admin-body) .equipment-card:nth-child(1),
body:not(.admin-body) .mechanics-card:nth-child(1),
body:not(.admin-body) .plan-card:nth-child(1),
body:not(.admin-body) .process-list li:nth-child(1),
body.planner-page .planner-sidebar {
    animation-delay: .1s;
}

body:not(.admin-body) .hero-metrics div:nth-child(2),
body:not(.admin-body) .subscription-metrics div:nth-child(2),
body:not(.admin-body) .equipment-card:nth-child(2),
body:not(.admin-body) .mechanics-card:nth-child(2),
body:not(.admin-body) .plan-card:nth-child(2),
body:not(.admin-body) .process-list li:nth-child(2),
body.planner-page .planner-stage {
    animation-delay: .18s;
}

body:not(.admin-body) .hero-metrics div:nth-child(3),
body:not(.admin-body) .subscription-metrics div:nth-child(3),
body:not(.admin-body) .equipment-card:nth-child(3),
body:not(.admin-body) .mechanics-card:nth-child(3),
body:not(.admin-body) .plan-card:nth-child(3),
body:not(.admin-body) .process-list li:nth-child(3),
body.planner-page .planner-inspector {
    animation-delay: .26s;
}

body:not(.admin-body) .equipment-card:nth-child(4),
body:not(.admin-body) .process-list li:nth-child(4) {
    animation-delay: .34s;
}

body:not(.admin-body) .equipment-card:nth-child(n + 5) {
    animation-delay: .4s;
}

body:not(.admin-body) .intro-media img,
body:not(.admin-body) .detail-image img,
body:not(.admin-body) .equipment-card img {
    animation: arzenImageIn .72s cubic-bezier(.2, .8, .2, 1) both;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 64px;
    padding: 0 44px;
    color: #fff;
    background: rgba(13, 19, 30, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
    backdrop-filter: saturate(1.18) blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.brand-copy {
    display: grid;
    gap: 2px;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 16px;
    letter-spacing: .01em;
}

.brand-copy span {
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-admin {
    color: #fff;
}

.admin-header {
    min-height: 56px;
    background: rgba(15, 23, 42, .97);
}

.admin-header .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.admin-header .brand-copy strong {
    color: var(--accent);
    font-size: 14px;
}

.admin-header .brand-copy span {
    font-size: 10px;
}

.admin-nav {
    font-size: 13px;
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}

.site-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.site-menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.site-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.site-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-nav {
    font-size: 13px;
}

.site-nav a,
.link-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.site-nav a:hover,
.link-button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .09);
}

.site-nav a:focus-visible,
.link-button:focus-visible {
    outline: 2px solid var(--accent-outline);
    outline-offset: 3px;
}

.logout-form {
    margin: 0;
}

.link-button,
.danger-button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.danger-button {
    padding: 0;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 88px 48px 96px;
    color: #fff;
    background-color: #111827;
    background-position: center;
    background-size: cover;
}

.hero-content {
    width: min(860px, 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: 56px;
    line-height: 1.03;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    max-width: 600px;
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin-top: 34px;
}

.hero-metrics div {
    min-height: 88px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: rgba(17, 24, 39, .66);
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    margin-bottom: 5px;
    font-size: 17px;
}

.hero-metrics span {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    color: #111827;
    background: var(--accent);
}

.primary-button:hover {
    background: var(--accent-hover);
}

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

.secondary-button:hover {
    background: var(--panel-muted);
}

.secondary-button.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
}

.full {
    width: 100%;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 56px;
    align-items: center;
    padding: 72px 48px;
    background: var(--panel-muted);
}

.intro-copy,
.equipment-section,
.page-title,
.equipment-detail,
.detail-content-section,
.admin-main {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.intro-copy h2,
.section-heading h2,
.page-title h1,
.detail-copy h1,
.admin-title h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0;
}

.intro-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.page-title p,
.detail-summary {
    color: var(--text-muted);
    font-size: 17px;
}

.intro-highlights {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.intro-highlights li {
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
    font-weight: 650;
}

.intro-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.equipment-section {
    padding: 64px 0;
}

.equipment-section.compact {
    padding-top: 0;
}

.product-filter-panel {
    width: min(1160px, calc(100% - 40px));
    display: grid;
    gap: 12px;
    margin: 0 auto 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.product-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-filter-toggle {
    display: none;
}

.product-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.product-filter-form label {
    display: grid;
    gap: 6px;
}

.product-filter-form span,
.filter-result-count {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.product-filter-form input,
.product-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-weight: 750;
}

.product-filter-actions {
    display: flex;
    gap: 8px;
    align-self: end;
}

.filter-result-count {
    margin: 0;
}

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

.section-heading a {
    color: var(--accent-dark);
    font-weight: 800;
}

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

.equipment-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.equipment-card:hover {
    border-color: #b7c1d0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.equipment-card a,
.equipment-card-body {
    display: flex;
    flex-direction: column;
}

.equipment-card-media {
    display: block;
    overflow: hidden;
    background: #eef2f7;
}

.equipment-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .32s ease, filter .32s ease;
    will-change: transform;
}

.equipment-card:hover img,
.equipment-card:focus-within img {
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.07);
}

.equipment-card-body {
    gap: 8px;
    min-height: 168px;
    padding: 16px;
}

.equipment-card strong {
    font-size: 18px;
    overflow-wrap: anywhere;
}

.equipment-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.equipment-brand,
.detail-brand {
    color: var(--accent-dark) !important;
    font-size: 13px;
    font-weight: 900;
}

.equipment-meta-line {
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 800;
}

.equipment-card span {
    color: var(--text-muted);
    font-size: 14px;
}

.price {
    display: grid;
    gap: 2px;
    margin-top: auto;
    color: var(--text) !important;
    font-weight: 800;
}

.price span {
    color: var(--text) !important;
    font-weight: 850;
}

.price span + span {
    color: var(--text-muted) !important;
    font-size: 13px;
}

.card-link {
    color: var(--accent-dark) !important;
    font-size: 14px;
    font-weight: 800;
}

.equipment-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0 16px 16px;
}

.quote-add-button,
.compare-add-button {
    min-height: 40px;
    border: 1px solid var(--accent-border);
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.quote-add-button {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.compare-add-button {
    min-width: 62px;
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.quote-add-button:hover,
.quote-add-button:focus-visible {
    background: var(--accent-soft-strong);
}

.compare-add-button:hover,
.compare-add-button:focus-visible {
    border-color: #b7c1d0;
    background: var(--panel-muted);
}

.quote-bar {
    position: sticky;
    bottom: 18px;
    z-index: 20;
    width: min(820px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px auto 0;
    padding: 14px 16px;
    color: #fff;
    background: rgba(17, 24, 39, .96);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
}

.quote-bar[hidden] {
    display: none;
}

.quote-bar strong,
.quote-bar p {
    margin: 0;
}

.quote-bar p {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.quote-bar-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.compare-drawer {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: min(520px, calc(100% - 48px));
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .18);
}

.compare-drawer[hidden] {
    display: none;
}

.compare-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.compare-drawer-head button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.compare-table-wrap {
    overflow-x: auto;
}

.compare-drawer table {
    min-width: 420px;
}

.compare-drawer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

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

    .equipment-card img {
        transition: none;
    }

    .equipment-card:hover img,
    .equipment-card:focus-within img {
        transform: none;
    }
}

.empty-state {
    padding: 24px;
    color: var(--text-muted);
    background: var(--panel-muted);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.page-main,
.detail-main {
    min-height: calc(100vh - 148px);
}

.page-title {
    padding: 56px 0 32px;
}

.equipment-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 40px;
    align-items: start;
    padding: 56px 0 32px;
}

.detail-image img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--accent-dark);
    font-weight: 800;
}

.detail-panel,
.detail-block {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-panel {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.detail-content-section {
    margin-bottom: 64px;
    padding: 28px;
}

.detail-panel span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-panel strong {
    font-size: 26px;
}

.price-stack {
    display: grid;
    gap: 4px;
}

.price-stack span {
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
}

.price-stack span + span {
    color: var(--text-muted);
    font-size: 18px;
}

.detail-panel p {
    margin: 0;
    color: var(--text-muted);
}

.equipment-spec-list {
    display: grid;
    gap: 10px;
    margin: 4px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.equipment-spec-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.equipment-spec-list dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.equipment-spec-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
}

.detail-block h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.detail-text {
    color: var(--text);
    line-height: 1.75;
}

.detail-text > *:first-child {
    margin-top: 0;
}

.detail-text > *:last-child {
    margin-bottom: 0;
}

.detail-text p {
    margin: 0 0 14px;
    color: var(--text-muted);
}

.detail-text h2,
.detail-text h3 {
    margin: 22px 0 10px;
    color: var(--text);
    line-height: 1.35;
}

.detail-text h2 {
    font-size: 22px;
}

.detail-text h3 {
    font-size: 18px;
}

.detail-text ul,
.detail-text ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--text-muted);
}

.detail-text li + li {
    margin-top: 6px;
}

.detail-text a {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-text img {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-text blockquote {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-muted);
}

.planner-page {
    background: #eef2f7;
}

.planner-main {
    min-height: calc(100vh - 148px);
}

.planner-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 18px;
}

.planner-title h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
}

.planner-title-actions {
    display: flex;
    gap: 10px;
}

.planner-workspace {
    width: min(1440px, calc(100% - 40px));
    min-height: 720px;
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: stretch;
}

.planner-sidebar,
.planner-inspector {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.planner-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.planner-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.planner-panel-head strong {
    font-size: 16px;
}

.planner-panel-head span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.planner-panel-head.compact {
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.planner-product-list,
.planner-structure-list {
    display: grid;
    gap: 10px;
    max-height: min(616px, 50vh);
    overflow: auto;
    padding-right: 2px;
}

.planner-structure-list {
    max-height: none;
}

.planner-product,
.planner-structure {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.planner-product {
    min-height: 116px;
}

.planner-structure {
    min-height: 98px;
}

.planner-product:hover,
.planner-product:focus-visible,
.planner-structure:hover,
.planner-structure:focus-visible {
    border-color: #b7c1d0;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    outline: 0;
}

.planner-product img {
    width: 74px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: #eef2f7;
}

.structure-icon {
    position: relative;
    display: block;
    width: 74px;
    height: 58px;
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    background: #f8fafc;
}

.structure-icon.wall::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 25px;
    height: 8px;
    border-radius: 999px;
    background: #667085;
    box-shadow: 0 -10px 0 #d0d5dd, 0 10px 0 #d0d5dd;
}

.structure-icon.desk::before,
.structure-icon.desk::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    border-radius: 4px;
}

.structure-icon.desk::before {
    top: 16px;
    height: 12px;
    background: #b8860b;
}

.structure-icon.desk::after {
    top: 28px;
    height: 18px;
    background: #475467;
}

.structure-icon.restroom::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 12px;
    width: 40px;
    height: 34px;
    border: 4px solid #98a2b3;
    border-radius: 4px;
    border-bottom-color: transparent;
}

.structure-icon.restroom::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 12px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2e90fa;
}

.planner-product > span,
.planner-structure > span:not(.structure-icon) {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
}

.planner-product strong,
.planner-structure strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-product small,
.planner-structure small {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.planner-product small:last-child {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.planner-product small span {
    display: inline;
}

.planner-stage {
    position: relative;
    align-self: start;
    min-width: 0;
    min-height: 720px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f7fa;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.planner-canvas {
    width: 100%;
    height: 720px;
    min-height: 520px;
    background: #f5f7fa;
}

.planner-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.planner-hud {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(12px);
}

.planner-hud strong,
.planner-hud span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-hud strong {
    color: var(--accent);
    font-size: 13px;
}

.planner-hud span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
}

.planner-canvas-tools {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    gap: 10px;
    width: min(276px, calc(100% - 32px));
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
    backdrop-filter: blur(14px);
}

.planner-canvas-tools[hidden],
.canvas-size-tools[hidden] {
    display: none;
}

.canvas-tools-head {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.canvas-tools-head strong,
.canvas-tools-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.canvas-tools-head strong {
    color: var(--text);
    font-size: 14px;
}

.canvas-tools-head span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.canvas-tool-row,
.canvas-size-tools {
    display: grid;
    gap: 8px;
}

.canvas-size-title {
    color: var(--text);
    font-size: 13px;
}

.canvas-tool-row {
    grid-template-columns: 1fr 1fr;
}

.canvas-tool-row button,
.canvas-size-row button {
    min-width: 0;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.canvas-tool-row button {
    font-size: 18px;
}

.canvas-command-row button {
    font-size: 13px;
}

.canvas-size-row {
    display: grid;
    grid-template-columns: 26px 34px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
}

.canvas-size-row span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
}

.canvas-size-row output {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.planner-input {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.planner-input span {
    color: var(--text-muted);
    font-size: 13px;
}

.room-area-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.room-area-summary span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.room-area-summary strong {
    color: var(--text);
    font-size: 14px;
    text-align: right;
}

.planner-storage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.planner-storage-actions .primary-button,
.planner-storage-actions .secondary-button {
    min-height: 40px;
    padding: 0 10px;
}

.danger-outline {
    color: var(--danger);
    border-color: rgba(180, 35, 24, .28);
}

.planner-output {
    min-height: 170px;
    color: #dbeafe;
    background: #101827;
    border-color: #283548;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.planner-export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.planner-export-actions .full {
    grid-column: 1 / -1;
}

.subscription-page {
    background: #fff;
}

.subscription-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 84px 48px 96px;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(12, 18, 29, .92), rgba(12, 18, 29, .58), rgba(12, 18, 29, .18)),
        url("/images/products/treadmill.jpg");
    background-position: center;
    background-size: cover;
}

.subscription-hero-copy {
    width: min(980px, 100%);
}

.subscription-hero h1 {
    margin: 0;
    font-size: 58px;
    line-height: 1.02;
}

.subscription-hero p:not(.eyebrow) {
    max-width: 660px;
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
}

.subscription-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin-top: 34px;
}

.subscription-metrics div {
    min-height: 104px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: rgba(15, 23, 42, .66);
}

.subscription-metrics strong,
.subscription-metrics span {
    display: block;
}

.subscription-metrics strong {
    margin-bottom: 6px;
    font-size: 17px;
}

.subscription-metrics span {
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
}

.mechanics-section,
.mechanics-cta {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.mechanics-section {
    padding: 72px 0;
}

.mechanics-section.muted {
    width: 100%;
    padding-inline: max(20px, calc((100% - 1160px) / 2));
    background: #eef2f7;
}

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

.mechanics-card,
.plan-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 230px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.mechanics-card span,
.plan-card span {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.mechanics-card h3,
.plan-card h3 {
    margin: 0;
    font-size: 22px;
}

.mechanics-card p {
    margin: 0;
    color: var(--text-muted);
}

.plan-card strong {
    font-size: 24px;
}

.plan-card ul,
.process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-card li {
    padding: 8px 0;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-weight: 700;
}

.plan-card.featured {
    border-color: var(--accent-border);
    box-shadow: 0 18px 38px rgba(143, 98, 8, .14);
}

.mechanics-flow {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.mechanics-flow h2,
.mechanics-cta h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.12;
}

.mechanics-flow p,
.mechanics-cta p {
    color: var(--text-muted);
    font-size: 17px;
}

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

.process-list li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    min-height: 70px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.process-list strong {
    color: var(--text);
}

.process-list span {
    color: var(--text-muted);
}

.mechanics-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 72px;
    padding: 28px;
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    background: var(--accent-soft-strong);
}

.mechanics-cta > div {
    max-width: 760px;
}

.empty-state.compact {
    padding: 16px;
}

.inquiry-layout,
.inquiry-admin-grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.inquiry-side {
    display: grid;
    gap: 16px;
}

.inquiry-side-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.side-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.inquiry-side h2,
.message-box h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.inquiry-side ol,
.inquiry-side ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-weight: 700;
}

.complete-section {
    width: min(820px, calc(100% - 32px));
    min-height: calc(100vh - 240px);
    display: grid;
    align-content: center;
    gap: 18px;
    margin: 0 auto;
    padding: 72px 0;
}

.complete-section h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
}

.complete-section p {
    margin: 0;
    color: var(--text-muted);
    font-size: 18px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 48px;
    color: #fff;
    background: var(--bg);
}

.footer-company {
    display: grid;
    gap: 18px;
}

.footer-brand strong {
    font-size: 16px;
}

.footer-brand p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .7);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, auto));
    gap: 10px 26px;
    margin: 0;
}

.footer-info div {
    display: grid;
    gap: 2px;
}

.footer-info dt {
    color: rgba(255, 255, 255, .54);
    font-size: 12px;
    font-weight: 800;
}

.footer-info dd {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.footer-info a {
    color: inherit;
}

.footer-info a:hover,
.footer-info a:focus-visible {
    color: var(--accent-hover);
}

.admin-body {
    background: #f3f5f8;
}

.admin-main {
    width: min(1180px, calc(100% - 40px));
    padding: 28px 0 64px;
}

.admin-main.narrow {
    width: min(840px, calc(100% - 40px));
}

.admin-title {
    margin-bottom: 20px;
}

.admin-title h1 {
    font-size: 28px;
    line-height: 1.2;
}

.row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-panel,
.admin-section,
.admin-form,
.login-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.admin-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 108px;
    padding: 18px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-panel:hover {
    border-color: #b7c1d0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.admin-panel span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-panel strong {
    font-size: 22px;
    line-height: 1.25;
}

.admin-section {
    padding: 20px;
}

.inquiry-meta dl {
    display: grid;
    margin: 0;
}

.inquiry-meta dl > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.inquiry-meta dt {
    color: var(--text-muted);
    font-weight: 900;
}

.inquiry-meta dd {
    margin: 0;
}

.message-box {
    margin-top: 24px;
}

.message-box p {
    margin: 0;
    white-space: pre-line;
    color: var(--text-muted);
}

.quote-context {
    display: grid;
    gap: 12px;
}

.quote-context div {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-muted);
}

.quote-context strong {
    font-size: 13px;
}

.quote-context p {
    margin: 0;
    color: var(--text-muted);
    white-space: pre-line;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    background: #fff;
    font-size: 14px;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

tbody tr:hover {
    background: #fbfcfe;
}

.equipment-row {
    cursor: pointer;
}

.equipment-row.is-dragging {
    opacity: .55;
    background: var(--accent-soft);
}

.equipment-admin-table.is-saving {
    opacity: .75;
    pointer-events: none;
}

.table-product-name,
.table-price {
    display: block;
    color: var(--text);
    font-weight: 850;
}

.equipment-admin-table small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td a {
    color: var(--accent-dark);
    font-weight: 800;
}

.table-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.table-actions {
    width: 112px;
    white-space: nowrap;
    text-align: center;
}

.action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    vertical-align: middle;
}

.table-actions form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.order-cell {
    width: 108px;
    white-space: nowrap;
    text-align: center;
}

.order-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    vertical-align: middle;
}

.order-value {
    display: inline-flex;
    align-items: center;
    min-width: 28px;
    line-height: 32px;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    vertical-align: middle;
    cursor: pointer;
}

.icon-button:hover {
    background: #f3f5f8;
    border-color: var(--line);
}

.icon-button img {
    display: block;
    width: 18px;
    height: 18px;
}

.drag-handle {
    cursor: grab;
    flex: 0 0 32px;
}

.drag-handle:active {
    cursor: grabbing;
}

.danger-button {
    color: var(--danger);
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #eef2f6;
}

.status-pill.active {
    color: var(--success);
    background: #e4f2eb;
}

.status-pill.inactive {
    color: var(--text-muted);
}

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

.inquiry-form {
    gap: 22px;
    padding: 24px;
}

.inquiry-form-head {
    padding: 18px;
    border-radius: 8px;
    background: var(--bg);
    color: #fff;
}

.inquiry-form-head strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 13px;
}

.inquiry-form-head p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.form-section {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.form-section legend {
    margin-bottom: 12px;
    padding: 0;
    font-size: 17px;
    font-weight: 800;
}

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

.form-field.field-wide {
    grid-column: 1 / -1;
}

.admin-form label,
.login-panel label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.form-field span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-field b {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    color: #7a4d04;
    background: #fff4d6;
    font-size: 11px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd6e2;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px var(--accent-ring);
    outline: 0;
}

input[type="file"] {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px !important;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.field-error {
    color: var(--danger);
    font-size: 13px;
    font-style: normal;
}

.form-help {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.rich-editor-field {
    gap: 8px !important;
}

.rich-editor-source {
    min-height: 180px;
}

.rich-editor-source-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.rich-editor {
    display: none;
    border: 1px solid #cfd6e2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.rich-editor.is-ready {
    display: block;
}

.rich-editor.is-uploading {
    opacity: .72;
    pointer-events: none;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.rich-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button.is-active {
    border-color: var(--line);
    background: #fff;
}

.rich-editor-surface {
    min-height: 260px;
    padding: 16px;
}

.rich-editor-surface .tiptap {
    min-height: 228px;
    outline: 0;
}

.rich-editor-surface .tiptap > *:first-child {
    margin-top: 0;
}

.rich-editor-surface .tiptap > *:last-child {
    margin-bottom: 0;
}

.rich-editor-surface .tiptap p {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.rich-editor-surface .tiptap h2,
.rich-editor-surface .tiptap h3 {
    margin: 20px 0 10px;
    color: var(--text);
    line-height: 1.35;
}

.rich-editor-surface .tiptap h2 {
    font-size: 22px;
}

.rich-editor-surface .tiptap h3 {
    font-size: 18px;
}

.rich-editor-surface .tiptap ul,
.rich-editor-surface .tiptap ol {
    margin: 0 0 14px;
    padding-left: 22px;
    color: var(--text-muted);
}

.rich-editor-surface .tiptap img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.upload-field {
    display: grid;
    gap: 8px;
}

.upload-title {
    font-weight: 800;
}

.upload-dropzone {
    position: relative;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px !important;
    align-items: center;
    min-height: 104px;
    padding: 16px;
    border: 1px dashed #b8c2d1;
    border-radius: 8px;
    background: #fbfcfe;
    transition: border-color .18s ease, background .18s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
    border-color: var(--accent-dark);
    background: var(--accent-soft);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: #7a4d04;
    background: #fff4d6;
    font-size: 24px;
    font-weight: 800;
}

.upload-dropzone strong,
.upload-dropzone small {
    display: block;
}

.upload-dropzone small {
    margin-top: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.image-preview {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.image-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.upload-preview.empty {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 20px;
    color: var(--text-muted);
    font-weight: 700;
}

.table-empty {
    color: var(--text-muted);
    background: #fbfcfe;
    font-weight: 700;
    text-align: center;
}

.alert {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.alert.success {
    color: var(--success);
    background: #e4f2eb;
}

.alert.error {
    color: var(--danger);
    background: #fde8e5;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.login-panel {
    width: min(420px, 100%);
    display: grid;
    gap: 16px;
    padding: 26px;
}

.login-panel h1 {
    margin: 0;
    font-size: 26px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-filter-form label {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-filter-form input,
.admin-filter-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    background: #fff;
}

.title-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.quote-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 18px;
    align-items: start;
}

.quote-preview,
.quote-meta-list,
.quote-total-list {
    display: grid;
    gap: 18px;
}

.quote-preview-head,
.quote-document-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.quote-meta-list,
.quote-total-list {
    gap: 8px;
    margin: 0;
}

.quote-meta-list div,
.quote-total-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.quote-meta-list dt,
.quote-total-list dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
}

.quote-meta-list dd,
.quote-total-list dd {
    margin: 0;
    text-align: right;
    font-weight: 850;
}

.quote-total-list .grand-total {
    padding-top: 14px;
    border-bottom: 0;
    color: var(--accent-dark);
    font-size: 20px;
}

.quote-link-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quote-link-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.quote-link-list span,
.quote-lines span,
.table-wrap td span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.quote-page {
    background: #eef2f7;
    padding: 40px 20px;
}

.quote-document {
    max-width: 960px;
    margin: 0 auto;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .08);
}

.quote-document h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: 0;
}

.quote-lines {
    margin: 26px 0;
}

.quote-line-editor {
    display: grid;
    gap: 8px;
}

.quote-line-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.5fr) minmax(110px, .9fr) 72px minmax(110px, .9fr) minmax(140px, 1fr);
    gap: 8px;
    align-items: center;
}

.quote-line-head {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
}

.quote-line-row input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    font: inherit;
}

@media print {
    body {
        background: #fff;
    }

    .print-hidden,
    .site-header,
    .site-footer {
        display: none !important;
    }

    .quote-page {
        padding: 0;
        background: #fff;
    }

    .quote-document {
        max-width: none;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 820px) {
    .admin-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px 20px;
    }

    .admin-nav {
        width: 100%;
        gap: 6px;
    }

    .admin-nav a,
    .link-button {
        min-height: 32px;
        padding: 0 11px;
    }

    .site-header {
        position: sticky;
        min-height: 64px;
        gap: 12px;
        padding: 10px 16px;
    }

    .site-header .brand {
        min-width: 0;
    }

    .site-header .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .site-header .brand-copy strong {
        font-size: 14px;
    }

    .site-header .brand-copy span {
        font-size: 9px;
    }

    .site-menu-button {
        display: inline-flex;
        flex: 0 0 44px;
        margin-left: auto;
    }

    .site-header .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 10px 16px 14px;
        background: rgba(13, 19, 30, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 18px 30px rgba(15, 23, 42, .24);
    }

    .site-header.navigation-ready .site-nav:not(.is-open) {
        display: none;
    }

    .site-header .site-nav a {
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        padding: 0 10px;
        border-radius: 6px;
    }

    .admin-filter-form,
    .quote-admin-grid,
    .quote-line-row {
        grid-template-columns: 1fr;
    }

    .quote-line-head {
        display: none;
    }

    .hero {
        min-height: 620px;
        padding: 48px 16px 52px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }

    .primary-button,
    .secondary-button {
        min-height: 44px;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 24px;
    }

    .hero p:not(.eyebrow) {
        margin: 16px 0 22px;
        font-size: 16px;
    }

    .hero-metrics div {
        min-height: 104px;
        padding: 12px 10px;
    }

    .hero-metrics strong {
        font-size: 14px;
    }

    .hero-metrics span {
        font-size: 12px;
    }

    .intro-section,
    .equipment-detail,
    .admin-grid,
    .inquiry-layout,
    .inquiry-admin-grid,
    .planner-workspace {
        grid-template-columns: 1fr;
    }

    .intro-section {
        padding: 48px 20px;
    }

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

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

    .product-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .section-heading,
    .row-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer,
    .footer-info {
        grid-template-columns: 1fr;
    }

    .intro-copy h2,
    .section-heading h2,
    .page-title h1,
    .detail-copy h1,
    .admin-title h1 {
        font-size: 28px;
    }

    .admin-main,
    .intro-copy,
    .equipment-section,
    .page-title,
    .equipment-detail,
    .detail-content-section,
    .inquiry-layout,
    .inquiry-admin-grid,
    .mechanics-section,
    .mechanics-cta,
    .planner-title,
    .planner-workspace {
        width: min(1160px, calc(100% - 32px));
    }

    .subscription-hero {
        min-height: 540px;
        padding: 44px 16px 48px;
    }

    .subscription-hero h1 {
        font-size: 36px;
    }

    .subscription-metrics,
    .mechanics-grid,
    .plan-grid,
    .mechanics-flow,
    .process-list li {
        grid-template-columns: 1fr;
    }

    .mechanics-section,
    .mechanics-section.muted {
        padding: 48px 16px;
    }

    .subscription-metrics {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .subscription-metrics::-webkit-scrollbar,
    .planner-product-list::-webkit-scrollbar,
    .planner-structure-list::-webkit-scrollbar {
        display: none;
    }

    .subscription-metrics div {
        flex: 0 0 210px;
        min-height: 112px;
    }

    .mechanics-flow h2,
    .mechanics-cta h2 {
        font-size: 28px;
    }

    .mechanics-cta {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 48px;
    }

    .mechanics-cta .primary-button {
        width: 100%;
    }

    .planner-title {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 28px;
    }

    .planner-title h1 {
        font-size: 28px;
    }

    .planner-title-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planner-workspace {
        min-height: 0;
        margin-bottom: 40px;
        gap: 12px;
    }

    .planner-sidebar {
        order: 2;
    }

    .planner-stage {
        order: 1;
        min-height: 440px;
    }

    .planner-inspector {
        order: 3;
    }

    .planner-product-list {
        max-height: none;
    }

    .planner-canvas {
        height: 440px;
        min-height: 0;
    }

    .planner-canvas-tools {
        left: 12px;
        right: 12px;
        bottom: 64px;
        width: auto;
    }

    .planner-storage-actions,
    .planner-export-actions {
        grid-template-columns: 1fr;
    }

    .detail-content-section {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

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

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

    .form-actions .primary-button,
    .form-actions .secondary-button {
        width: 100%;
    }

    .page-title {
        padding: 32px 0 20px;
    }

    .page-title p {
        margin-bottom: 0;
        font-size: 15px;
    }

    .intro-section {
        gap: 32px;
        padding: 44px 16px;
    }

    .intro-copy {
        width: 100%;
    }

    .equipment-section {
        padding: 44px 0;
    }

    .product-filter-panel {
        width: calc(100% - 32px);
        gap: 10px;
        margin-bottom: 18px;
        padding: 14px;
    }

    .product-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--text);
        background: #fff;
        font: inherit;
        font-size: 13px;
        font-weight: 900;
        cursor: pointer;
    }

    .filter-toggle-icon {
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .18s ease;
    }

    .product-filter-toggle.is-open .filter-toggle-icon {
        transform: translateY(2px) rotate(225deg);
    }

    .product-filter-form {
        gap: 10px;
        padding-top: 4px;
        border-top: 1px solid var(--line);
    }

    .product-filter-form[hidden] {
        display: none;
    }

    .equipment-card {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .equipment-card > a {
        flex: 1;
    }

    .equipment-card img {
        aspect-ratio: 4 / 3;
    }

    .equipment-card-body {
        gap: 6px;
        min-height: 188px;
        padding: 12px;
    }

    .equipment-card strong {
        font-size: 15px;
        line-height: 1.25;
    }

    .equipment-card span {
        font-size: 13px;
    }

    .equipment-brand,
    .equipment-meta-line,
    .price span + span {
        font-size: 11px !important;
    }

    .equipment-summary,
    .equipment-meta-line {
        -webkit-line-clamp: 2;
    }

    .price,
    .price span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .equipment-card-actions {
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 6px;
        padding: 0 12px 12px;
    }

    .quote-add-button,
    .compare-add-button {
        min-width: 0;
        min-height: 44px;
        padding: 0 6px;
        font-size: 12px;
    }

    .quote-bar {
        bottom: 8px;
        width: calc(100% - 16px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
        padding: 10px;
    }

    .quote-bar > div:first-child {
        min-width: 0;
    }

    .quote-bar strong {
        display: block;
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .quote-bar p {
        display: none;
    }

    .quote-bar-actions {
        display: flex;
        align-items: stretch;
        flex-direction: row;
        gap: 6px;
    }

    .quote-bar-actions .primary-button,
    .quote-bar-actions .secondary-button {
        min-height: 44px;
        padding: 0 10px;
        font-size: 12px;
    }

    .compare-drawer {
        right: 8px;
        bottom: 8px;
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        overflow: auto;
        padding: 14px;
    }

    .compare-drawer-head button {
        width: 44px;
        height: 44px;
    }

    .equipment-detail {
        gap: 24px;
        padding: 32px 0 24px;
    }

    .detail-content-section {
        padding: 18px 16px;
    }

    .subscription-hero p:not(.eyebrow) {
        margin: 16px 0 22px;
        font-size: 16px;
    }

    .mechanics-section,
    .mechanics-section.muted {
        padding: 44px 16px;
    }

    .mechanics-card,
    .plan-card {
        min-height: 0;
        padding: 18px;
    }

    .mechanics-cta {
        gap: 18px;
        margin-bottom: 44px;
        padding: 20px 18px;
    }

    .planner-title {
        gap: 12px;
        padding: 22px 0 16px;
    }

    .planner-title h1 {
        font-size: 26px;
    }

    .planner-sidebar,
    .planner-inspector {
        gap: 12px;
    }

    .planner-panel {
        gap: 12px;
        padding: 14px;
    }

    .planner-product-list,
    .planner-structure-list {
        display: flex;
        max-height: none;
        overflow-x: auto;
        padding: 1px 0 5px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .planner-product,
    .planner-structure {
        flex: 0 0 228px;
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: 96px;
        scroll-snap-align: start;
    }

    .planner-structure {
        flex-basis: 210px;
    }

    .planner-product img,
    .structure-icon {
        width: 64px;
        height: 52px;
    }

    .canvas-size-row {
        grid-template-columns: 20px 44px minmax(0, 1fr) 44px;
    }

    .canvas-tool-row button,
    .canvas-size-row button {
        min-height: 44px;
    }

    .planner-storage-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .planner-export-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .inquiry-form {
        gap: 18px;
        padding: 18px 14px;
    }

    .inquiry-form-head,
    .inquiry-side-card {
        padding: 16px;
    }

    .form-grid {
        gap: 12px;
    }

    input,
    select {
        min-height: 44px;
    }

    .inquiry-form textarea {
        min-height: 132px;
    }

    .site-footer {
        gap: 24px;
        padding: 28px 16px;
    }

    .footer-info {
        gap: 12px;
    }
}

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

    .equipment-card-body {
        min-height: 164px;
    }
}
