﻿
.builder-main-content {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

.builder-drawer-shell {
    width: 100%;
}

.builder-palette-drawer {
    border-right: 1px solid var(--mud-palette-lines-default);
}

.palette-card {
    cursor: pointer;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    transition: all .15s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

    .palette-card:hover {
        border-color: var(--mud-palette-primary);
        transform: translateY(-1px);
        box-shadow: var(--mud-elevation-2);
    }

.palette-card-content {
    width: 100%;
    min-width: 0;
}

.palette-card-icon {
    flex: 0 0 auto;
}

.palette-card-text {
    min-width: 0;
}

.palette-card-title {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.palette-card-description {
    color: var(--mud-palette-text-secondary);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.survey-root {
    max-width: 100%;
}

.survey-hero {
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.survey-title {
    line-height: 1.25;
}

.survey-hero-desc,
.survey-q-desc,
.survey-rich-text {
    color: var(--mud-palette-text-secondary);
    line-height: 1.55;
}

.survey-q-card,
.survey-footer,
.survey-info-block,
.survey-section-block {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.survey-q-card-compact {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.survey-info-block {
    background: rgba(255,255,255,0.018);
}

.survey-section-block {
    background: rgba(255,255,255,0.025);
    border-left: 4px solid var(--mud-palette-primary);
}

.survey-q-head {
    min-height: 100%;
    justify-content: center;
}

.survey-option-card {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.015);
}

.survey-rating-host {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    justify-content: center;
    min-height: 56px;
}

.survey-ql-shell {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.015);
    overflow: hidden;
}

.survey-ql-row {
    display: grid;
    grid-template-columns: minmax(220px, 32%) 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .survey-ql-row:last-child {
        border-bottom: none;
    }

.survey-ql-label {
    min-width: 0;
}

.survey-ql-control {
    min-width: 0;
}

.survey-rich-text p:last-child,
.survey-q-desc p:last-child,
.survey-hero-desc p:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .survey-ql-row {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
    }

    .survey-rating-host {
        min-height: unset;
    }
}

.survey-matrix-shell {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.015);
    overflow-x: auto;
}

.survey-matrix-header,
.survey-matrix-row {
    display: grid;
    grid-template-columns: minmax(220px, 32%) repeat(auto-fit, minmax(72px, 1fr));
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.survey-matrix-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    position: sticky;
    top: 0;
    z-index: 1;
}

.survey-matrix-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .survey-matrix-row:last-child {
        border-bottom: none;
    }

.survey-matrix-header-label {
    min-width: 0;
}

.survey-matrix-row-label {
    min-width: 0;
    padding-right: 8px;
}

.survey-matrix-header-option,
.survey-matrix-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 72px;
    text-align: center;
}

@media (max-width: 960px) {
    .survey-matrix-header {
        display: none;
    }

    .survey-matrix-row {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
    }

    .survey-matrix-cell {
        justify-content: flex-start;
    }
}

.report-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
}

.metric-box {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
}

.open-answer-box {
    border-radius: 14px;
    background: rgba(0,0,0,.02);
}

.analysis-panels .mud-expand-panel {
    border-radius: 16px;
    overflow: hidden;
}

.report-search {
    min-width: 260px;
}

.text-muted {
    opacity: .75;
}
.rounded-xxl {
    border-radius: 24px;
}

.rounded-xl {
    border-radius: 18px;
}

.border-left-subtle {
    border-left: 1px solid var(--mud-palette-lines-default);
}

.modern-tabs .mud-tabs-toolbar {
    padding: 8px 12px 0 12px;
}


.schema-editor .mud-input-slot {
    font-family: Consolas, "Courier New", monospace;
    font-size: .7rem;
    line-height: 1.5;
}

.schema-editor textarea {
    font-family: Consolas, "Courier New", monospace !important;
    font-size: .7rem !important;
    line-height: 1.5 !important;
}


.survey-fill-shell {
    min-height: 100vh;
    padding: 20px 0 36px;
}

.survey-page-card {
    border-radius: 28px;
}

.survey-state-card {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.survey-card {
    border-radius: 24px;
}

.survey-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
}

.survey-progress-stats {
    min-width: 150px;
}

.survey-answer-control,
.survey-answer-control .mud-input-control {
    width: 100%;
}

.survey-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.survey-choice-card {
   width: 100%;
    cursor: pointer;
}

.survey-choice-card-compact {
    min-width: 160px;
}

.survey-submit-actions {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: flex-start;
    gap: 8px;
}

.survey-access-code {
    width: 200px;
}

.survey-rating-control {
    max-width: 100%;
}

@media (max-width: 960px) {
    .survey-fill-shell {
        padding: 12px 0 24px;
    }

    .survey-page-card {
        border-radius: 22px;
    }
    .survey-card {
        border-radius: 20px;
    }

    .survey-sticky {
        top: 0px;
    }
}

@media (max-width: 600px) {
    .survey-fill-shell {
        padding: 8px 0 18px;
    }

    .survey-page-card {
        border-radius: 16px;
    }

    .survey-card {
        border-radius: 16px;
    }

    .survey-sticky {
        position: static;
    }

    .survey-progress-stats {
        min-width: 0;
    }

    .survey-stat-card {
        padding: 8px !important;
    }

    .survey-choice-card .mud-radio,
    .survey-choice-card .mud-checkbox {
        width: 100%;
        min-height: 44px;
        align-items: center;
    }

    .survey-rating-control .mud-rating-root {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .survey-submit-actions {
        flex-direction: column;
        width: 100%;
    }

    .survey-access-code,
    .survey-submit-actions .mud-button-root {
        width: 100%;
    }

}

