.program-panel {
    overflow: hidden;
    border: 1px solid #e6c5d2;
    border-radius: 1.5rem;
    background: #fff9fb;
    box-shadow: 0 18px 38px rgba(95, 36, 63, .16);
}

.program-header {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.5rem 1.5rem;
    background: linear-gradient(130deg, #542039, #8c3c5d);
    color: #fff;
}

.program-title {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.55rem, 6vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.program-timeline {
    padding: 1.25rem 1.1rem 1.5rem;
    background: linear-gradient(180deg, #fff9fb, #fff 72%);
}

.program-list {
    position: relative;
    display: grid;
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-list::before {
    position: absolute;
    top: 1.1rem;
    bottom: 1.1rem;
    left: 1.22rem;
    width: 2px;
    background: linear-gradient(#d9a1b6, #e7cbd7);
    content: '';
    pointer-events: none;
}

.program-step {
    --program-tone: #a84b6b;
    --program-soft: #fceaf0;
    position: relative;
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.program-step[data-color='blue'] { --program-tone: #356b91; --program-soft: #e9f4fa; }
.program-step[data-color='green'] { --program-tone: #367760; --program-soft: #e8f5ef; }
.program-step[data-color='pink'] { --program-tone: #af4b71; --program-soft: #fceaf0; }
.program-step[data-color='purple'] { --program-tone: #75568d; --program-soft: #f2ecf8; }
.program-step[data-color='indigo'] { --program-tone: #5664a0; --program-soft: #eef0fa; }
.program-step[data-color='amber'] { --program-tone: #976126; --program-soft: #fcf2e4; }

.program-step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 2px solid var(--program-tone);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px #fff9fb;
    color: var(--program-tone);
    font-size: .75rem;
    font-weight: 700;
}

.program-step-card {
    min-width: 0;
    padding: .85rem .95rem;
    border: 1px solid #efdee5;
    border-left: 3px solid var(--program-tone);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 5px 15px rgba(80, 41, 58, .06);
}

.program-step-time {
    display: inline-block;
    max-width: 100%;
    padding: .24rem .58rem;
    border-radius: 999px;
    background: var(--program-soft);
    color: var(--program-tone);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.program-step-title {
    margin-top: .45rem;
    color: #3d2a37;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.program-step-title:first-child { margin-top: 0; }

.program-empty {
    margin: 0;
    padding: .8rem .3rem;
    color: #795f6e;
    font-size: .85rem;
    text-align: center;
}

body.dark-mode .program-panel { border-color: #754157; background: #211b29; }
body.dark-mode .program-timeline { background: linear-gradient(180deg, #211b29, #1b1824); }
body.dark-mode .program-list::before { background: linear-gradient(#946478, #534252); }
body.dark-mode .program-step-number { background: #27202f; box-shadow: 0 0 0 4px #211b29; color: #ffe3ed; }
body.dark-mode .program-step-card { border-color: #594254; border-left-color: var(--program-tone); background: #2b2431; }
body.dark-mode .program-step-time { background: rgba(255, 255, 255, .1); color: #ffe3ed; }
body.dark-mode .program-step-title { color: #fff6f9; }
body.dark-mode .program-empty { color: #ebd6e1; }

@media (max-width: 360px) {
    .program-header { padding-inline: 1.2rem; }
    .program-timeline { padding-inline: .8rem; }
    .program-step { gap: .55rem; }
    .program-step-card { padding: .75rem .8rem; }
}

@media print {
    .program-panel, .program-step-card { box-shadow: none; }
    .program-panel { border-color: #b8aab0; }
    .program-header { background: #fff; color: #241b21; border-bottom: 1px solid #b8aab0; }
    .program-timeline { background: #fff; }
    .program-step { break-inside: avoid; }
}
