.fpf-result-wrap--single-column {
    display: block;
}

.fpf-result-hero {
    margin-bottom: 18px;
}

.fpf-result-hero__summary,
.fpf-meta-list,
.fpf-simple-stack,
.fpf-result-sections,
.fpf-disclosures {
    display: block;
}

.fpf-result-hero__summary {
    background: linear-gradient(180deg, var(--fpf-color-panel-soft) 0%, #ffffff 100%);
    border: 1px solid var(--fpf-color-border);
    border-radius: var(--fpf-radius-lg);
    padding: 14px 16px;
}

.fpf-result-hero__summary-row,
.fpf-meta-list__row,
.fpf-simple-card,
.fpf-elements__row,
.fpf-result-section,
.fpf-disclosure {
    width: 100%;
    max-width: 100%;
}

.fpf-result-hero__summary-row,
.fpf-meta-list__row,
.fpf-simple-card--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.fpf-result-hero__summary-row + .fpf-result-hero__summary-row,
.fpf-meta-list__row + .fpf-meta-list__row,
.fpf-simple-card + .fpf-simple-card,
.fpf-elements__row + .fpf-elements__row,
.fpf-result-section + .fpf-result-section,
.fpf-disclosure + .fpf-disclosure {
    margin-top: 12px;
}

.fpf-result-hero__label,
.fpf-meta-list__row span,
.fpf-simple-card__label,
.fpf-elements__name {
    color: var(--fpf-color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.fpf-result-hero__value,
.fpf-meta-list__row strong,
.fpf-simple-card__value {
    color: var(--fpf-color-text);
    font-size: 1rem;
    line-height: 1.7;
    text-align: right;
}

.fpf-simple-card__value--break {
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
}

.fpf-input-summary,
.fpf-simple-card,
.fpf-result-section,
.fpf-disclosure {
    background: var(--fpf-color-panel);
    border: 1px solid var(--fpf-color-border);
    border-radius: var(--fpf-radius-lg);
    box-shadow: none;
}

.fpf-input-summary,
.fpf-simple-card,
.fpf-result-section {
    padding: 16px;
}

.fpf-simple-card__sub {
    display: block;
    margin-top: 4px;
    color: var(--fpf-color-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.fpf-disclosure {
    overflow: hidden;
}

.fpf-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px;
    font-weight: 700;
    line-height: 1.6;
    position: relative;
}

.fpf-disclosure > summary::-webkit-details-marker {
    display: none;
}

.fpf-disclosure > summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--fpf-color-muted);
}

.fpf-disclosure[open] > summary::after {
    content: '−';
}

.fpf-disclosure__body {
    padding: 0 16px 16px;
}

.fpf-elements__list--stacked {
    display: block;
}

.fpf-elements__row {
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--fpf-color-main) 2.5%, #ffffff);
    border: 1px solid var(--fpf-color-border);
}

.fpf-elements__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.fpf-elements__bar-wrap {
    width: 100%;
    height: 10px;
    background: color-mix(in srgb, var(--fpf-color-main) 10%, #ffffff);
    border-radius: 999px;
    overflow: hidden;
}

.fpf-elements__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fpf-color-main) 82%, #ffffff) 0%, color-mix(in srgb, var(--fpf-color-main) 58%, #ffffff) 100%);
}

.fpf-elements__value {
    color: var(--fpf-color-text);
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: right;
}

.fpf-result-sections {
    margin-top: 12px;
}

.fpf-result-section {
    position: static;
}

.fpf-result-section::before {
    content: none;
}

.fpf-result-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.fpf-result-section h3 {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--fpf-color-text);
}

.fpf-result-section__note {
    margin: 0 0 10px;
    color: var(--fpf-color-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.fpf-result-body {
    color: var(--fpf-color-text);
    line-height: 1.95;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.fpf-result-body > *:first-child {
    margin-top: 0;
}

.fpf-result-body > *:last-child {
    margin-bottom: 0;
}

.fpf-confidence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.fpf-confidence-badge--high {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.fpf-confidence-badge--medium {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.fpf-confidence-badge--low {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

/* 旧グリッドレイアウトの強制解除 */
.fpf-chart-summary__grid,
.fpf-pillars__grid,
.fpf-ten-gods__grid,
.fpf-uncertainty-overview__grid,
.fpf-confidence-grid,
.fpf-distribution-card__chips {
    display: block !important;
}

.fpf-chart-summary,
.fpf-pillars,
.fpf-elements,
.fpf-ten-gods,
.fpf-uncertainty-overview {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .fpf-result-hero__summary-row,
    .fpf-meta-list__row,
    .fpf-simple-card--split,
    .fpf-result-section__header,
    .fpf-elements__header {
        display: block;
    }

    .fpf-result-hero__value,
    .fpf-meta-list__row strong,
    .fpf-elements__value {
        display: block;
        text-align: left;
        margin-top: 4px;
    }

    .fpf-confidence-badge {
        margin-top: 8px;
    }
}
