/* Accessibility and responsive refinements over the original visual scaffold. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700;750;800&display=swap');

:root {
    --ink: #14243b;
    --muted: #526177;
    --line: #dce3ed
}

body {
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    overflow-x: clip
}

header {
    height: 56px
}

.builder {
    min-height: calc(100vh - 56px)
}

h1,
h2,
h3,
.brand {
    font-family: Inter, Arial, sans-serif
}

button,
a {
    touch-action: manipulation
}

button:disabled {
    cursor: not-allowed
}

button .icon {
    flex-shrink: 0
}

p,
span,
strong,
label {
    overflow-wrap: anywhere
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 30;
    background: #fff;
    padding: 14px;
    border: 2px solid var(--blue)
}

.skip-link:focus {
    top: 12px
}

#main:focus,
h1:focus {
    outline: none
}

.brand {
    padding: 0;
    min-height: 36px;
    font-size: 20px;
    gap: 0;
    letter-spacing: -.6px
}

.brand-period {
    color: var(--blue)
}

.prototype-tag {
    font-size: 12px;
    color: var(--muted)
}

.hero-kicker {
    font-size: 16px;
    color: var(--blue);
    font-weight: 550
}

.hero h1 {
    font-size: 57px;
    letter-spacing: -2.6px;
    margin-top: 18px
}

.hero-copy>p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 460px
}

.hero-meta {
    font-size: 14px;
    gap: 24px
}

.hero-meta .icon {
    width: 17px;
    height: 17px;
    color: #307663
}

.hardware-note {
    font-size: 14px;
    bottom: -4px;
    left: 40px
}

.hardware-label {
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    fill: var(--muted)
}

.hardware {
    background: radial-gradient(ellipse, #e5eefb 0%, #f3f7fc 58%, transparent 72%)
}

.intro-strip {
    grid-template-columns: 1.15fr repeat(3, 1fr)
}

.intro-strip p {
    font-size: 14px
}

.assembly-flow {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 16px 0;
    border-top: 1px solid var(--line);
    font-size: 14px
}

.assembly-flow .icon {
    color: var(--blue);
    width: 18px;
    flex-shrink: 0
}

.preview-step strong {
    font-size: 14px
}

.preview-step .number {
    font-size: 14px;
    color: var(--muted)
}

.landing-bottom {
    font-size: 14px
}

.builder {
    grid-template-columns: 225px minmax(0, 1fr)
}

.sidebar {
    padding-top: 14px;
    padding-bottom: 12px
}

.sidebar h3 {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 2px
}

.sidebar>p,
.side-foot {
    font-size: 12px;
    line-height: 1.35
}

.sidebar>p {
    margin-bottom: 10px
}

.side-foot {
    padding-top: 12px
}

.step-link {
    font-size: 13px;
    line-height: 1.25;
    min-height: 32px;
    padding: 4px 8px;
    gap: 8px
}

.step-link:disabled {
    opacity: .7;
    cursor: not-allowed
}

.step-link .badge {
    font-size: 11px;
    width: 20px;
    height: 20px;
    flex-shrink: 0
}

.rail-divider {
    border-top: 1px solid var(--line);
    margin: 8px 8px 4px
}

.side-foot>.icon {
    color: var(--blue);
    margin-bottom: 14px
}

.breadcrumbs {
    font-size: 14px
}

.breadcrumbs {
    margin-bottom: 8px
}

.crumb {
    padding: 2px 0;
    min-height: 24px;
    font-size: 12px;
    color: var(--muted)
}

.workspace {
    padding: 10px 18px 14px
}

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

.form-layout:has(.review-panel) {
    grid-template-columns: minmax(0, 780px);
    justify-content: center
}

.form-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 11px
}

.form-heading>p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px
}

.form-heading h1 {
    font-size: 20px;
    letter-spacing: -.4px;
    line-height: 1.2;
    margin-bottom: 2px
}

.choice-grid {
    gap: 8px;
    margin-bottom: 12px
}

.choice {
    min-height: 44px;
    padding: 7px 12px;
    gap: 8px
}

.choice .icon {
    width: 16px;
    height: 16px
}

.choice b {
    font-size: 13px;
    font-weight: 600;
    max-width: none
}

.choice .radio {
    width: 18px;
    height: 18px
}

.choice .checkbox {
    border-radius: 4px
}

.choice.selected .checkbox {
    background: var(--blue);
    position: relative
}

.choice.selected .checkbox:after {
    content: '✓';
    color: white;
    position: absolute;
    left: -3px;
    top: -10px;
    font-size: 16px
}

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

.shape-grid .choice {
    flex-direction: column;
    align-items: flex-start;
    min-height: 96px;
    gap: 8px
}

.shape-grid .radio {
    position: absolute;
    right: 12px;
    top: 12px
}

.shape-icon {
    height: 40px;
    width: 60px;
    fill: #edf3ff;
    stroke: #6b87ab;
    stroke-width: 1.5
}

.selected .shape-icon {
    stroke: var(--blue)
}

.form-surface {
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px
}

.small-heading {
    font-size: 14px;
    letter-spacing: -.2px;
    margin-bottom: 10px
}

.field {
    font-size: 12px;
    margin-bottom: 10px
}

.field label {
    display: block;
    margin-bottom: 4px
}

.field em {
    font-size: 12px;
    margin-left: 3px
}

.required {
    color: var(--blue)
}

input,
textarea,
select {
    font-size: 13px;
    min-height: 34px;
    padding: 6px 10px;
    line-height: 1.35
}

textarea {
    min-height: 58px
}

input::placeholder,
textarea::placeholder {
    color: #65768d
}

.unit {
    font-size: 12px;
    top: 8px;
    pointer-events: none
}

.helper,
.field-error,
.count,
.field-meta {
    font-size: 12px
}

.helper {
    display: block;
    color: var(--muted);
    margin-top: 7px
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-top: 7px;
    color: var(--muted)
}

.count {
    margin: 0;
    white-space: nowrap
}

.field-error {
    margin-top: 7px;
    line-height: 1.5
}

.over-limit {
    color: var(--error);
    font-weight: 600
}

.has-error input,
.has-error textarea,
.has-error select {
    border-color: var(--error);
    background: #fffafa
}

.group-error {
    margin-bottom: 20px
}

.error-box {
    font-size: 13px
}

.row-number {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 12px
}

.component-card {
    margin-bottom: 8px;
    border-radius: 8px
}

.card-head {
    font-size: 13px;
    justify-content: flex-start;
    min-width: 0;
    padding: 4px 10px;
    gap: 8px
}

.card-body {
    padding: 8px 12px 0
}

.component-card .field {
    margin-bottom: 6px
}

.component-card .field-meta {
    margin-top: 2px
}

.component-card textarea {
    min-height: 34px
}

.card-head strong {
    flex: 1
}

.remove {
    min-width: 32px;
    min-height: 32px;
    width: auto;
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    color: var(--muted);
    font-size: 12px
}

.remove .icon {
    width: 18px
}

.add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    min-height: 34px;
    padding: 6px
}

.empty {
    padding: 14px 12px
}

.dimension {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5
}

.dimension p {
    margin: 6px 0
}

.hint {
    font-size: 14px
}

.summary summary {
    min-height: 36px;
    font-size: 13px;
    padding: 10px 12px
}

.summary-illustration {
    height: 72px;
    margin: 0 10px 8px
}

.summary-illustration svg {
    width: 120px;
    height: 108px
}

.summary-content {
    padding: 0 12px 10px
}

.summary summary::-webkit-details-marker {
    display: none
}

.summary-row {
    padding: 6px 0;
    font-size: 12px
}

.summary-row>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px
}

.summary-row strong {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: pre-line;
    display: block;
    margin-top: 2px
}

.edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    min-width: 28px;
    font-size: 12px;
    justify-content: center
}

.edit .icon {
    width: 16px
}

.form-footer {
    padding-top: 10px;
    margin-top: 12px
}

.form-footer .button,
.header-links .button {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px
}

.review-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 24px
}

.review-section:last-child {
    border: 0
}

.review-section h3 {
    font-size: 14px
}

.review-section h3>span {
    display: flex;
    align-items: center;
    gap: 12px
}

.review-section h3 .icon {
    color: var(--blue)
}

.review-section p {
    font-size: 13px;
    line-height: 1.45
}

.contact p {
    font-size: 13px;
    color: var(--muted)
}

.prototype-controls {
    font-size: 14px;
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.prototype-controls summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px
}

.prototype-controls summary:before {
    content: '+';
    font-size: 20px
}

.prototype-controls[open] summary:before {
    content: '−'
}

.prototype-controls label {
    min-height: 44px
}

.prototype-controls input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    accent-color: var(--blue)
}

.submission-disclaimer {
    font-size: 14px;
    color: var(--muted);
    text-align: right;
    margin: 16px 0
}

.success {
    max-width: 750px
}

.success h1 {
    font-size: 36px;
    line-height: 1.2
}

.confirmation-recap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0
}

.confirmation-recap section {
    background: var(--bg);
    border-radius: 8px;
    padding: 16px;
    min-width: 0
}

.confirmation-recap h2 {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 500
}

.confirmation-recap p {
    font-size: 16px;
    margin: 0;
    white-space: pre-line
}

.mobile-progress {
    font-size: 14px
}

.button.small {
    min-height: 44px;
    font-size: 14px
}

.empty p {
    font-size: 16px
}

#toast {
    font-size: 16px;
    max-width: calc(100vw - 40px);
    text-align: center
}

@media(min-width:1650px) {
    .hero {
        max-width: 1420px;
        padding: 90px 70px
    }

    .hero h1 {
        font-size: 64px
    }
}

@media(max-width:1200px) {
    .builder {
        grid-template-columns: 195px minmax(0, 1fr)
    }

    .workspace {
        padding: 10px 16px 14px
    }

    .form-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 20px
    }

    .sidebar {
        padding: 12px 10px
    }

    .form-heading h1 {
        font-size: 20px
    }

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

    .summary-content {
        padding: 0 15px 16px
    }

    .hero h1 {
        font-size: 48px
    }
}

@media(max-width:950px) {
    .form-layout {
        display: flex;
        flex-direction: column
    }

    .form-main {
        width: 100%
    }

    .summary {
        order: -1;
        width: 100%;
        margin: 0 0 8px
    }

    .summary-content {
        display: block
    }

    .summary-illustration {
        display: none
    }

    .intro-strip {
        grid-template-columns: repeat(3, 1fr)
    }

    .intro-strip>p {
        grid-column: 1/-1
    }

    .assembly-flow {
        gap: 12px;
        flex-wrap: wrap
    }

    .hero h1 {
        font-size: 42px
    }

    .hardware-note {
        font-size: 14px;
        left: 28px
    }
}

@media(max-width:650px) {
    header {
        padding: 0 20px;
        height: 76px
    }

    .header-links .button {
        font-size: 14px;
        min-height: 44px
    }

    .header-links .prototype-tag {
        display: none
    }

    .brand {
        font-size: 24px
    }

    .hero {
        padding: 40px 22px 24px
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
        line-height: 1.12
    }

    .hero-copy>p {
        font-size: 17px
    }

    .hero-meta {
        gap: 16px;
        font-size: 14px;
        flex-wrap: wrap
    }

    .hero-actions {
        gap: 10px
    }

    .hero-actions .button {
        font-size: 14px;
        padding: 12px 16px
    }

    .hardware {
        margin-top: 18px
    }

    .hardware-note {
        left: 22px;
        bottom: 0;
        font-size: 12px
    }

    .intro-strip {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .assembly-flow {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 0 0;
        gap: 14px
    }

    .assembly-flow>.icon {
        transform: rotate(90deg)
    }

    .preview-step strong {
        font-size: 14px
    }

    .process {
        margin-top: 40px
    }

    .section-top h2 {
        font-size: 26px;
        line-height: 1.3
    }

    .section-top p {
        font-size: 16px
    }

    .builder {
        display: block
    }

    .workspace {
        padding: 16px 20px 36px
    }

    .breadcrumbs {
        display: none
    }

    .mobile-progress {
        margin: 6px 0 22px
    }

    .form-heading h1 {
        font-size: 18px;
        line-height: 1.2
    }

    .form-heading>p {
        font-size: 13px
    }

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

    .choice {
        min-height: 44px;
        padding: 8px 12px;
        flex-wrap: nowrap
    }

    .choice b {
        font-size: 13px;
        max-width: none
    }

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

    .shape-grid .choice {
        min-height: 96px;
        padding: 10px
    }

    .shape-grid .choice b {
        font-size: 14px
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .field-meta {
        flex-wrap: wrap;
        gap: 3px 12px
    }

    .field-meta .count {
        margin-left: auto
    }

    .form-surface {
        padding: 20px
    }

    .card-head {
        padding: 6px 10px;
        flex-wrap: wrap
    }

    .card-head strong {
        font-size: 16px;
        min-width: 110px
    }

    .remove {
        padding: 10px 4px;
        gap: 5px
    }

    .remove span {
        font-size: 14px
    }

    .card-body {
        padding: 8px 12px 0
    }

    .form-footer .button {
        font-size: 13px;
        padding: 8px 14px;
        min-height: 36px
    }

    .form-footer {
        gap: 10px
    }

    .dimension {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start
    }

    .dimension svg {
        width: 160px;
        height: 110px
    }

    .summary-content {
        display: block;
        padding: 0 16px 16px
    }

    .summary summary {
        font-size: 13px
    }

    .review-panel {
        padding: 0 18px
    }

    .review-section p {
        font-size: 16px
    }

    .confirmation-recap {
        grid-template-columns: 1fr
    }

    .success {
        margin: 24px 20px;
        padding: 24px
    }

    .success h1 {
        font-size: 30px
    }

    .submission-disclaimer {
        text-align: left
    }

    .landing-bottom {
        font-size: 14px
    }

    .add-button {
        font-size: 16px
    }

    .prototype-controls {
        font-size: 14px
    }
}

.wire-landing {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 28px 8px
}

.wire-hero {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    gap: 24px;
    align-items: center
}

.wire-copy h1 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 0 0 12px
}

.choose-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600
}

.choose-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 2px
}

.choose-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

.choose-list .icon {
    width: 16px;
    height: 16px;
    color: var(--blue)
}

.doorstep {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px
}

.wire-hero .hardware svg {
    width: 100%;
    height: auto
}

.path-screen {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 32px
}

.path-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 8px 0 16px
}

.path-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff
}

.path-card.selected {
    border-color: var(--blue);
    background: #f1f5ff;
    box-shadow: 0 0 0 1px var(--blue)
}

.path-card strong {
    font-size: 16px
}

.path-card>span:last-child {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4
}

.section-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff
}

.section-banner h1,
.section-banner h2 {
    margin: 0 0 2px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.3px
}

.section-banner p,
.section-banner .eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.section-banner .eyebrow {
    color: var(--blue);
    font-size: 11px;
    margin-bottom: 2px
}

.banner-art {
    width: 84px;
    height: 64px;
    flex-shrink: 0
}

.banner-0 { background: linear-gradient(90deg, #f3fbf6, #fff) }
.banner-1 { background: linear-gradient(90deg, #f4f7fb, #fff) }
.banner-2 { background: linear-gradient(90deg, #f3f6ff, #fff) }
.banner-3 { background: linear-gradient(90deg, #f2f7f6, #fff) }
.banner-4 { background: linear-gradient(90deg, #f7f5ff, #fff) }
.banner-5 { background: linear-gradient(90deg, #f6f4ef, #fff) }
.banner-6 { background: linear-gradient(90deg, #f4f8ff, #fff) }

@media(max-width:800px) {
    .wire-hero,
    .path-grid {
        grid-template-columns: 1fr
    }

    .wire-landing {
        padding: 16px
    }

    .wire-copy h1 {
        font-size: 26px
    }
}

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

/* Production design system — intentionally last to neutralize legacy scaffold rules. */
:root {
    --ink: #102033;
    --muted: #5a687a;
    --blue: #1f57d6;
    --blue-hover: #1747b7;
    --line: #d9e1eb;
    --line-strong: #c7d2e1;
    --bg: #f4f7fb;
    --surface: #fff;
    --soft: #edf3ff;
    --success: #17845f;
    --error: #b42318;
    --shadow-sm: 0 1px 2px rgb(16 32 51 / 4%);
    --shadow-md: 0 10px 30px rgb(16 32 51 / 7%);
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --header-height: 50px
}

html {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg)
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 80% -10%, rgb(31 87 214 / 6%), transparent 30rem),
        var(--bg);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}

header {
    height: var(--header-height);
    padding: 0 clamp(18px, 4vw, 58px);
    border-bottom-color: color-mix(in srgb, var(--line) 82%, transparent);
    box-shadow: 0 1px 0 rgb(16 32 51 / 2%);
    position: relative;
    z-index: 10
}

.brand {
    min-height: 32px;
    font-size: 19px;
    letter-spacing: -.7px
}

.header-links {
    gap: 10px
}

.button {
    min-height: 36px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    gap: 7px;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 1px 2px rgb(31 87 214 / 12%);
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease
}

.button:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgb(31 87 214 / 18%);
    transform: translateY(-1px)
}

.button:disabled {
    color: #8b97a8;
    background: #e7edf5;
    box-shadow: none;
    pointer-events: none;
    transform: none
}

.button.secondary {
    box-shadow: var(--shadow-sm)
}

.button.secondary:hover {
    background: #f7f9fc;
    border-color: var(--line-strong);
    transform: none
}

.button .icon {
    width: 16px;
    height: 16px
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--blue) 65%, white);
    outline-offset: 2px
}

.builder {
    grid-template-columns: 190px minmax(0, 1fr);
    max-width: 1600px;
    min-height: calc(100dvh - var(--header-height));
    margin: 0 auto
}

.sidebar {
    height: calc(100dvh - var(--header-height));
    min-height: 560px;
    padding: 14px 12px 12px;
    position: sticky;
    top: var(--header-height);
    overflow-y: auto;
    background: rgb(248 250 253 / 88%);
    backdrop-filter: blur(12px);
    border-right-color: var(--line)
}

.sidebar h3 {
    margin: 0 8px 2px;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: -.1px
}

.sidebar>p {
    margin: 0 8px 8px;
    font-size: 11px;
    line-height: 1.35
}

.sidebar>.step-link {
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 11px
}

.step-link {
    min-height: 30px;
    padding: 4px 7px;
    gap: 7px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.2;
    transition: color .14s ease, background-color .14s ease
}

.step-link.active {
    background: #e8efff;
    box-shadow: inset 2px 0 var(--blue)
}

.step-link .badge {
    width: 19px;
    height: 19px;
    font-size: 10px;
    border-color: var(--line-strong)
}

.step-link .badge .icon {
    width: 12px;
    height: 12px
}

.rail-divider {
    margin: 6px 7px 4px
}

.side-foot {
    padding: 10px 8px 0;
    font-size: 11px;
    line-height: 1.35
}

.side-foot>.icon {
    width: 15px;
    height: 15px;
    margin-bottom: 5px
}

.workspace {
    width: 100%;
    max-width: 1370px;
    padding: 8px clamp(12px, 2vw, 24px) 12px;
    margin: 0 auto
}

.breadcrumbs {
    min-height: 24px;
    margin: 0 0 5px;
    font-size: 11px
}

.crumb {
    min-height: 24px;
    padding: 1px 0;
    font-size: 11px
}

.form-layout {
    grid-template-columns: minmax(0, 1fr) 218px;
    gap: 12px
}

.form-main {
    min-width: 0
}

.section-banner {
    min-height: 58px;
    gap: 10px;
    padding: 6px 10px;
    margin: 0 0 8px;
    border-color: color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden
}

.section-banner::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(31 87 214 / 24%), transparent)
}

.section-banner>div {
    min-width: 0;
    flex: 1
}

.section-banner h1,
.section-banner h2 {
    margin: 0 0 1px;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -.35px
}

.section-banner p {
    font-size: 12px;
    line-height: 1.3
}

.section-banner .eyebrow {
    margin-bottom: 1px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.banner-art {
    order: 2;
    width: 68px;
    height: 48px;
    margin-left: auto;
    opacity: .88
}

.form-heading {
    margin-bottom: 8px
}

.form-heading h1 {
    margin: 0 0 2px;
    font-size: 20px;
    line-height: 1.15
}

.form-heading>p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35
}

.choice-grid {
    gap: 6px;
    margin-bottom: 8px
}

.choice {
    min-height: 40px;
    padding: 6px 10px;
    gap: 7px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease, transform .14s ease
}

.choice:hover {
    border-color: #9ab2e7;
    box-shadow: 0 4px 12px rgb(16 32 51 / 5%);
    transform: translateY(-1px)
}

.choice.selected {
    background: #edf3ff;
    box-shadow: inset 0 0 0 1px var(--blue), 0 4px 14px rgb(31 87 214 / 8%)
}

.choice b {
    font-size: 12px;
    line-height: 1.2
}

.choice .icon {
    width: 15px;
    height: 15px
}

.choice .radio {
    width: 15px;
    height: 15px;
    margin-left: auto
}

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

.shape-grid .choice {
    min-height: 67px;
    padding: 7px 9px;
    gap: 4px
}

.shape-grid .radio {
    top: 8px;
    right: 8px
}

.shape-icon {
    width: 46px;
    height: 29px
}

.form-surface {
    padding: 9px 11px;
    border-radius: var(--radius-md);
    border-color: var(--line);
    box-shadow: var(--shadow-sm)
}

.small-heading {
    margin: 0 0 7px;
    font-size: 13px
}

.field {
    margin-bottom: 7px;
    font-size: 11px
}

.field label {
    margin-bottom: 3px;
    line-height: 1.25;
    font-weight: 600
}

.field em {
    font-size: 10px;
    font-weight: 450
}

input,
textarea,
select {
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
    border-color: var(--line-strong);
    transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease
}

input:hover,
textarea:hover,
select:hover {
    border-color: #aebdd0
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(31 87 214 / 10%)
}

textarea {
    min-height: 48px;
    resize: vertical
}

.component-card textarea {
    min-height: 32px
}

.unit {
    top: 7px;
    right: 9px;
    font-size: 10px
}

.helper,
.field-error,
.count,
.field-meta {
    font-size: 10px
}

.helper,
.field-error,
.field-meta {
    margin-top: 3px
}

.field-grid {
    gap: 0 10px
}

.group-error {
    margin-bottom: 8px
}

.error-box {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35
}

.component-card {
    margin-bottom: 6px;
    border-radius: 8px;
    border-color: var(--line);
    box-shadow: var(--shadow-sm)
}

.card-head {
    min-height: 32px;
    padding: 4px 9px;
    gap: 7px;
    font-size: 12px
}

.row-number {
    width: 20px;
    height: 20px;
    font-size: 10px
}

.card-body {
    padding: 7px 10px 0
}

.component-card .field {
    margin-bottom: 5px
}

.remove {
    min-width: 30px;
    min-height: 30px;
    padding: 3px 7px;
    font-size: 11px
}

.remove .icon {
    width: 14px;
    height: 14px
}

.add-button {
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 12px;
    background: #f6f9ff;
    transition: background-color .14s ease, border-color .14s ease
}

.empty {
    padding: 12px 10px
}

.empty p {
    font-size: 12px
}

.dimension {
    min-height: 70px;
    margin: 2px 0 0;
    padding: 7px 10px;
    gap: 12px;
    border-radius: 8px;
    font-size: 11px
}

.dimension svg {
    width: 90px;
    height: 60px
}

.dimension p {
    margin: 2px 0
}

.hint {
    margin: 6px 0;
    font-size: 11px
}

.summary {
    top: 8px;
    border-radius: var(--radius-md);
    border-color: var(--line);
    box-shadow: var(--shadow-md)
}

.summary summary {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px
}

.summary-illustration {
    height: 54px;
    margin: 0 8px 5px
}

.summary-illustration svg {
    width: 96px;
    height: 82px
}

.summary-content {
    padding: 0 10px 8px
}

.summary-row {
    padding: 4px 0;
    font-size: 10px
}

.summary-row>div {
    gap: 5px;
    font-size: 10px
}

.summary-row strong {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.3
}

.edit {
    min-width: 26px;
    min-height: 26px;
    padding: 2px;
    font-size: 10px
}

.edit .icon {
    width: 13px;
    height: 13px
}

.form-footer {
    margin-top: 8px;
    padding-top: 8px
}

.form-footer .button,
.header-links .button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px
}

.review-panel {
    margin-top: 8px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm)
}

.review-panel>summary {
    min-height: 38px;
    padding: 8px 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 650
}

.review-panel>summary span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500
}

.review-content {
    padding: 0 11px 5px;
    border-top: 1px solid var(--line)
}

.review-section {
    padding: 7px 0
}

.review-section h3 {
    margin: 0;
    font-size: 12px
}

.review-section h3>span {
    gap: 7px
}

.review-section p {
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.35
}

.contact {
    margin-top: 8px
}

.contact p {
    margin: -3px 0 7px;
    font-size: 11px
}

.config-section {
    margin: 0
}

.success {
    max-width: 720px;
    margin: 24px auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md)
}

.success-icon {
    background: #eaf8f2;
    color: var(--success)
}

.status-kicker {
    margin: 8px 0 3px;
    color: var(--success);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.success h1 {
    margin: 0 0 4px;
    font-size: 26px
}

.success>p {
    font-size: 12px
}

.confirmation-recap {
    gap: 8px;
    margin: 16px 0
}

.confirmation-recap section {
    padding: 10px
}

.confirmation-recap h2 {
    margin-bottom: 4px;
    font-size: 11px
}

.confirmation-recap p {
    font-size: 12px
}

.wire-landing {
    max-width: 1180px;
    min-height: calc(100dvh - var(--header-height) - 38px);
    padding: clamp(16px, 3vh, 28px) clamp(20px, 4vw, 48px) 10px;
    display: grid;
    align-items: center
}

.wire-hero {
    grid-template-columns: minmax(290px, 390px) minmax(420px, 1fr);
    gap: clamp(22px, 5vw, 72px)
}

.wire-copy .hero-kicker {
    margin: 0 0 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase
}

.wire-copy h1 {
    max-width: 410px;
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.02;
    letter-spacing: -1.8px
}

.landing-intro {
    max-width: 430px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5
}

.choose-label {
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase
}

.choose-list {
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
    margin-bottom: 12px
}

.choose-list li {
    gap: 6px;
    font-size: 12px
}

.choose-list .icon {
    width: 14px;
    height: 14px
}

.doorstep {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 11px
}

.doorstep .icon {
    width: 14px;
    height: 14px;
    color: var(--success)
}

.wire-hero .hardware {
    margin: 0;
    min-height: 0
}

.wire-hero .hardware svg {
    max-height: min(520px, 66dvh)
}

.hardware-note {
    left: 24px;
    bottom: 0;
    font-size: 10px
}

.landing-bottom {
    min-height: 38px;
    padding: 8px clamp(18px, 4vw, 58px);
    font-size: 10px
}

.path-screen {
    max-width: 760px;
    padding: 22px 20px
}

.path-grid {
    gap: 10px;
    margin: 7px 0 12px
}

.path-card {
    min-height: 116px;
    padding: 12px;
    gap: 6px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease
}

.path-card:hover {
    border-color: #9ab2e7;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px)
}

.path-card strong {
    font-size: 14px
}

.path-card>span:last-child {
    font-size: 11px
}

.path-card .iconbox {
    width: 32px;
    height: 32px;
    border-radius: 8px
}

.path-card .icon {
    width: 17px;
    height: 17px
}

.mobile-progress {
    font-size: 11px
}

@media(max-width:1200px) {
    .builder {
        grid-template-columns: 174px minmax(0, 1fr)
    }

    .workspace {
        padding: 8px 12px 12px
    }

    .form-layout {
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 10px
    }

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

@media(max-width:900px) {
    .builder {
        display: block;
        min-height: calc(100dvh - var(--header-height))
    }

    .sidebar {
        display: none
    }

    .mobile-progress {
        display: block
    }

    header {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right))
    }

    .workspace {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right))
    }
}

@media(max-width:950px) {
    .form-layout {
        display: flex
    }

    .summary {
        position: static;
        order: -1;
        margin-bottom: 7px;
        box-shadow: var(--shadow-sm)
    }

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

@media(max-width:650px) {
    :root {
        --header-height: 52px
    }

    header {
        height: var(--header-height);
        padding: 0 14px
    }

    .brand {
        font-size: 20px
    }

    .header-links .button {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 12px
    }

    .builder {
        display: block;
        min-height: calc(100dvh - var(--header-height))
    }

    .workspace {
        padding: 8px 12px 18px
    }

    .mobile-progress {
        margin: 0 0 7px;
        padding: 6px 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface)
    }

    .section-banner {
        min-height: 54px;
        padding: 6px 8px
    }

    .section-banner h1,
    .section-banner h2 {
        font-size: 17px
    }

    .section-banner p {
        font-size: 11px
    }

    .banner-art {
        width: 54px;
        height: 42px
    }

    .choice-grid {
        grid-template-columns: 1fr;
        gap: 6px
    }

    .choice {
        min-height: 44px
    }

    .choice b {
        font-size: 13px;
        line-height: 1.25
    }

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

    .shape-grid .choice {
        min-height: 72px;
        padding: 7px
    }

    input,
    textarea,
    select {
        min-height: 42px;
        font-size: 16px
    }

    textarea,
    .component-card textarea {
        min-height: 44px
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .form-surface {
        padding: 9px
    }

    .card-head {
        min-height: 38px;
        padding: 4px 8px
    }

    .card-head strong {
        min-width: 0;
        font-size: 12px
    }

    .remove {
        min-width: 40px;
        min-height: 40px;
        padding: 5px
    }

    .remove span {
        font-size: 11px
    }

    .add-button {
        min-height: 42px;
        font-size: 12px
    }

    .dimension {
        min-height: 64px;
        padding: 6px 8px;
        flex-direction: row;
        align-items: center
    }

    .dimension svg {
        width: 82px;
        height: 56px
    }

    .summary-content {
        display: block;
        padding: 0 9px 7px
    }

    .form-footer {
        position: sticky;
        bottom: 0;
        z-index: 8;
        margin: 8px -4px -10px;
        padding: 8px max(4px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
        background: linear-gradient(to top, var(--bg) 72%, transparent)
    }

    .form-footer .button {
        min-height: 42px
    }

    .review-panel {
        padding: 0
    }

    .review-section p {
        font-size: 11px
    }

    .wire-landing {
        min-height: auto;
        padding: 20px 16px 12px
    }

    .wire-hero {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .wire-copy h1 {
        max-width: 340px;
        font-size: 34px;
        letter-spacing: -1.2px
    }

    .landing-intro {
        margin-bottom: 10px;
        font-size: 12px
    }

    .choose-list {
        margin-bottom: 10px
    }

    .wire-hero .hardware {
        display: none
    }

    .landing-bottom {
        min-height: 34px;
        padding: 8px 16px
    }

    .landing-bottom span:last-child {
        display: none
    }

    .path-screen {
        padding: 16px 12px
    }

    .path-grid {
        grid-template-columns: 1fr
    }

    .path-card {
        min-height: 92px
    }

    .success {
        margin: 12px;
        padding: 18px
    }
}

@media(max-width:400px) {
    .choice-grid,
    .field-grid {
        grid-template-columns: 1fr
    }

    .shape-grid {
        grid-template-columns: 1fr 1fr
    }
}

/* Contextual engineering decision model */
.decision-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #bfd0ee;
    border-radius: var(--radius-md, 10px);
    background: linear-gradient(135deg, #f5f8ff, #fff);
    box-shadow: 0 6px 18px rgba(20, 36, 59, .05)
}

.decision-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    background: #e8efff
}

.decision-mark .icon {
    width: 17px;
    height: 17px
}

.decision-copy {
    min-width: 0
}

.decision-label {
    margin: 0 0 1px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase
}

.decision-copy h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.25
}

.decision-copy>p:last-child {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35
}

.decision-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px
}

.result-items span {
    color: #17315d;
    background: #edf3ff;
    border-color: #c9d8f5
}

.decision-items span {
    padding: 2px 6px;
    border: 1px solid #d7e2f5;
    border-radius: 999px;
    color: #244269;
    background: #fff;
    font-size: 10px;
    font-weight: 600
}

.decision-apply {
    min-height: 32px;
    padding: 6px 10px;
    white-space: nowrap;
    font-size: 11px
}

@media(max-width:650px) {
    .decision-card {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 9px 10px
    }

    .decision-mark {
        width: 30px;
        height: 30px
    }

    .decision-apply {
        grid-column: 1/-1;
        width: 100%;
        min-height: 38px
    }
}