.schedule-portal {
    display: grid;
    gap: 22px;
}

.schedule-portal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.schedule-portal__header h1 {
    margin: 4px 0 8px;
}

.schedule-portal__lead {
    max-width: 860px;
    margin: 0;
    line-height: 1.55;
    color: #52606d;
}

.schedule-source-badge {
    min-width: 190px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef6ff;
    border: 1px solid #cfe4ff;
    display: grid;
    gap: 3px;
}

.schedule-source-badge span {
    font-size: 12px;
    color: #61758a;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.schedule-source-badge strong {
    color: #174a7e;
}

.schedule-source-badge--draft {
    background: #fff7e8;
    border-color: #f4d9a6;
}

.schedule-source-badge--draft strong {
    color: #8a5a08;
}

.schedule-portal__notice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #d4e5f6;
    background: #f7fbff;
    color: #37526c;
}

.schedule-portal__notice--generator {
    border-color: #ead9b7;
    background: #fffaf0;
    color: #6f572b;
}

.schedule-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.schedule-card {
    position: relative;
    min-height: 168px;
    padding: 20px 46px 20px 20px;
    border: 1px solid #dce4eb;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 3px 12px rgba(18, 46, 72, .05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.schedule-card:hover {
    transform: translateY(-2px);
    border-color: #b8d3ea;
    box-shadow: 0 9px 24px rgba(18, 46, 72, .10);
}

.schedule-card--primary {
    border-color: #b9d6ee;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.schedule-card--generator {
    border-color: #e5dccb;
}

.schedule-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #edf5fb;
    color: #245f8e;
    font-size: 22px;
    font-weight: 700;
}

.schedule-card--generator .schedule-card__icon {
    background: #fff3dc;
    color: #98600a;
}

.schedule-card h2 {
    margin: 7px 0 6px;
    font-size: 18px;
}

.schedule-card p {
    margin: 0;
    color: #61717f;
    line-height: 1.45;
}

.schedule-card__status {
    display: inline-flex;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.schedule-card__status.is-ready {
    background: #e7f6ed;
    color: #237443;
}

.schedule-card__status.is-next {
    background: #eef1f4;
    color: #66727c;
}

.schedule-card__arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 23px;
    color: #8293a2;
}

.generator-flow {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f6f8fa;
    border: 1px solid #e1e6eb;
}

.generator-flow span {
    color: #7b8894;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.generator-flow strong {
    color: #354657;
    font-weight: 600;
    line-height: 1.45;
}

.schedule-build-card {
    padding: 24px;
    border: 1px dashed #bdc9d4;
    border-radius: 16px;
    background: #fbfcfd;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.schedule-build-card__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef2f5;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #5c6d7b;
}

.schedule-build-card h2 {
    margin: 2px 0 8px;
}

.schedule-build-card p {
    margin: 5px 0;
    line-height: 1.5;
    color: #5f6f7d;
}

@media (max-width: 760px) {
    .schedule-portal__header {
        flex-direction: column;
    }

    .schedule-source-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .schedule-card-grid {
        grid-template-columns: 1fr;
    }
}
