.pricelist-page {
    background:
        radial-gradient(circle at top right, rgba(240, 90, 40, 0.14), transparent 20%),
        linear-gradient(180deg, #eef5f7 0%, #f9fbfc 100%);
    color: #173541;
}

.pricelist-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.designer-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
    gap: 1.5rem;
}

.designer-main,
.designer-side {
    min-width: 0;
}

.designer-main {
    align-self: start;
}

.summary-sticky {
    position: sticky;
    top: 1rem;
}

.designer-card,
.summary-card {
    margin: 0 0.75rem 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(47, 95, 115, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(15, 40, 50, 0.07);
}

.designer-card h2,
.summary-card h2 {
    margin: 0 0 1rem;
}

.builder-subsection {
    margin: 0.25rem 0 0.5rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid #e3ecef;
}

.builder-subsection-nested {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.builder-subsection h3 {
    margin: 0 0 0.9rem;
    color: #1c4656;
    font-size: 1.05rem;
}

.designer-grid {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.designer-grid-tight {
    margin-bottom: 0.35rem;
}

.designer-field {
    padding: 0 0.75rem 1rem;
}

.designer-field-platform {
    max-width: 12rem;
}

.designer-field-qty {
    max-width: 8rem;
}

.designer-field label {
    display: block;
    margin: 0 0 0.45rem;
    color: #1c4656;
    font-size: 0.92rem;
    font-weight: 700;
}

.designer-field select {
    width: 100%;
    height: 3rem;
    padding: 0 0.85rem;
    border: 1px solid #c9d9de;
    border-radius: 12px;
    background: #fbfdfe;
    color: #173541;
}

.designer-field input[type="number"] {
    width: 100%;
    height: 3rem;
    padding: 0 0.85rem;
    border: 1px solid #c9d9de;
    border-radius: 12px;
    background: #fbfdfe;
    color: #173541;
    box-shadow: none;
}

.designer-field input[type="number"]::placeholder {
    color: #8aa2ac;
}

.field-note {
    margin: 0.4rem 0 0;
    color: #648391;
    font-size: 0.88rem;
    line-height: 1.4;
}

.section-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading-row h2 {
    margin: 0;
}

.section-caption {
    margin: 0;
    color: #648391;
    font-size: 0.95rem;
}

.extras-list {
    display: grid;
    gap: 0.85rem;
}

.extra-option {
    display: flex;
    align-items: start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #d8e4e8;
    border-radius: 16px;
    background: #f8fbfc;
}

.extra-option input {
    margin-top: 0.25rem;
}

.extra-copy {
    flex: 1;
}

.extra-copy strong,
.extra-copy span {
    display: block;
}

.extra-copy span {
    color: #648391;
    font-size: 0.92rem;
}

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

.pricing-table-detail {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table-detail th,
.pricing-table-detail td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e3ecef;
    text-align: left;
    vertical-align: top;
}

.pricing-table-detail th {
    color: #5f7b87;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-table-detail td:last-child,
.pricing-table-detail td:nth-last-child(2),
.pricing-table-detail th:last-child,
.pricing-table-detail th:nth-last-child(2) {
    text-align: right;
}

.pricing-table-detail td:nth-child(3),
.pricing-table-detail th:nth-child(3) {
    text-align: left;
}

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

.summary-metric {
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5fafb 0%, #edf4f6 100%);
}

.internal-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
    align-items: stretch;
}

.summary-label {
    display: block;
    color: #648391;
    font-size: 0.9rem;
}

.summary-metric strong {
    display: block;
    margin-top: 0.25rem;
    color: #163440;
    font-size: 1.3rem;
    line-height: 1.1;
}

.metric-input {
    width: 4.5rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #163440;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.1;
    box-shadow: none;
    outline: none;
    appearance: auto;
    -moz-appearance: auto;
}

.metric-input-wide {
    width: 100%;
}

.summary-metric .metric-input {
    font: inherit;
    color: inherit;
    font-weight: 700;
    line-height: inherit;
    vertical-align: baseline;
}

.metric-input:focus,
.metric-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.totals-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #173541;
    color: #eff8fa;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.total-row + .total-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.total-row strong {
    font-size: 1.15rem;
}

.total-row-featured strong {
    color: #ffd7ca;
    font-size: 1.45rem;
}

.total-row.total-row-featured {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.summary-notes {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: #f8fbfc;
}

.summary-notes-tight {
    display: grid;
    gap: 0.65rem;
}

.summary-notes h3 {
    margin: 0 0 0.65rem;
    color: #1c4656;
}

.summary-notes ul {
    margin: 0;
    padding-left: 1.2rem;
}

.total-row-compact {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.total-row-compact strong {
    color: #163440;
    font-size: 1rem;
}

@media (max-width: 63.99em) {
    .designer-layout {
        grid-template-columns: 1fr;
    }

    .designer-side {
        order: -1;
        position: sticky;
        top: 0;
        z-index: 25;
    }

    .designer-card,
    .summary-card {
        margin-left: 0;
        margin-right: 0;
    }

    .summary-sticky {
        position: static;
    }

    .summary-card {
        margin-bottom: 1rem;
        border-radius: 0 0 18px 18px;
    }

    .mobile-summary-hide {
        display: none;
    }
}

@media (max-width: 47.99em) {
    .pricelist-shell {
        width: 100%;
        padding-top: 0;
    }

    .designer-card,
    .summary-card {
        padding: 1rem;
    }

    .designer-side {
        top: 0;
        margin: 0;
    }

    .summary-card {
        margin: 0 0 0.75rem;
        border: none;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 24px rgba(15, 40, 50, 0.08);
    }

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

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

    .summary-metric {
        padding: 0.8rem;
    }

    .summary-label {
        font-size: 0.8rem;
    }

    .summary-metric strong {
        font-size: 1rem;
    }

    .totals-panel {
        margin-top: 0.75rem;
        padding: 0.9rem;
    }

    .total-row-featured strong {
        font-size: 1.3rem;
    }

    .designer-field input[type="number"],
    .metric-input {
        appearance: textfield;
        -moz-appearance: textfield;
    }

    .designer-field input[type="number"]::-webkit-outer-spin-button,
    .designer-field input[type="number"]::-webkit-inner-spin-button,
    .metric-input::-webkit-outer-spin-button,
    .metric-input::-webkit-inner-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

    .metric-input {
        min-height: 1.4em;
    }
}
