.panels-show-page {
    padding-bottom: 44px;
}

.panel-show-hero {
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-show-hero-copy {
    max-width: 760px;
}

.panel-show-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-bg-0);
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-sm);
}

.panel-show-hero h1 {
    margin: 0 0 14px;
    font-size: var(--title-md);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.panel-show-hero .lead {
    max-width: 720px;
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.panel-show-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.panel-show-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--color-bg-0);
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.panel-show-stats strong {
    color: var(--color-text);
    font-weight: var(--weight-md);
}

.panel-show-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.panel-show-cta {
    width: auto;
    min-width: 168px;
}

.panel-show-back-link {
    color: var(--color-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}

.panel-show-back-link:hover {
    color: var(--color-focus);
}

.panel-composition-section {
    margin-top: 34px;
}

.panel-composition-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.panel-composition-header h2 {
    margin: 0 0 6px;
    font-size: var(--text-lg);
    font-weight: var(--weight-md);
    color: var(--color-text);
}

.panel-composition-header p {
    margin: 0;
    padding: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.panel-total-pill {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--color-bg-0);
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.panels-show-page .plan-section-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panels-show-page .plan-section-card {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: 20px;
    background: var(--color-bg-0);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .035);
}

.panels-show-page .plan-section-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.panels-show-page .plan-section-summary::-webkit-details-marker {
    display: none;
}

.plan-section-copy {
    min-width: 0;
}

.panels-show-page .plan-section-summary h3 {
    margin: 0 0 6px;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.25;
    font-weight: var(--weight-md);
}

.panels-show-page .plan-section-summary p {
    max-width: 720px;
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.panels-show-page .plan-section-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.panels-show-page .plan-section-meta > span:first-child {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-bg-1);
    color: var(--color-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.plan-section-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 18px;
    transition: transform .18s ease;
}

.plan-section-card[open] .plan-section-chevron {
    transform: rotate(180deg);
}

.panels-show-page .plan-marker-list {
    border-top: 1px solid var(--color-border-soft);
}

.panels-show-page .plan-marker-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-grey2);
}

.panels-show-page .plan-marker-row:last-child {
    border-bottom: 0;
}

.plan-marker-main {
    min-width: 0;
}

.panels-show-page .marker-link {
    display: inline-block;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.3;
    font-weight: var(--weight-md);
    text-decoration: none;
}

.panels-show-page .marker-link:hover {
    color: var(--color-focus);
}

.panels-show-page .plan-marker-row p {
    max-width: 760px;
    margin: 6px 0 0;
    padding: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.45;
    font-weight: var(--weight-xs);
}

.plan-marker-schedules {
    display: grid;
    gap: 2px;
}

.plan-marker-schedules strong {
    color: var(--color-n3);
    font-weight: var(--weight-md);
}

.panels-show-page .marker-role-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: var(--weight-sm);
    white-space: nowrap;
}

.panels-show-page .marker-role-badge.is-required {
    background: #e8f7ee;
    color: var(--color-g4);
}

.panels-show-page .marker-role-badge.is-optional {
    background: var(--color-bg-1);
    color: var(--color-muted);
}

@media (max-width: 760px) {
    .panel-show-hero {
        flex-direction: column;
        gap: 22px;
    }

    .panel-show-actions {
        width: 100%;
        align-items: flex-start;
    }

    .panel-show-cta {
        width: auto;
    }

    .panel-composition-header {
        flex-direction: column;
        gap: 12px;
    }

    .panels-show-page .plan-section-summary {
        padding: 16px;
    }

    .panels-show-page .plan-section-meta {
        align-items: flex-end;
    }

    .panels-show-page .plan-marker-row {
        flex-direction: column;
        gap: 12px;
        padding: 15px 16px;
    }
}

@media (max-width: 520px) {
    .panel-show-stats {
        gap: 6px;
    }

    .panel-show-stats span {
        font-size: var(--text-xs);
    }

    .panels-show-page .plan-section-summary {
        flex-direction: column;
        gap: 12px;
    }

    .panels-show-page .plan-section-meta {
        width: 100%;
        justify-content: space-between;
    }
}
