.print-catalog-page {
    overflow: hidden;
}

.print-catalog-layout {
    grid-template-columns: 360px minmax(0, 1fr);
}

.print-catalog-panel h1 {
    margin: 0 0 8px;
    color: #17283b;
    font-size: 25pt;
    line-height: 1.05;
}

.catalog-back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: #174072;
    font-size: 10pt;
    font-weight: 700;
    text-decoration: none;
}

.catalog-back-link:hover {
    text-decoration: underline;
}

.catalog-kicker {
    margin: 0 0 6px;
    color: #3d556b;
    font-size: 9pt;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-copy {
    margin: 0;
    color: #425466;
    font-size: 11pt;
    line-height: 1.45;
}

.catalog-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8e0ef;
}

.catalog-actions button {
    width: 100%;
    min-height: 42px;
    font-size: 11pt;
}

#showAnswersBtn {
    background: #dc2626;
}

#showAnswersBtn:hover,
#showAnswersBtn.is-active {
    background: #b91c1c;
}

#printTaskBtn {
    background: #16834f;
}

#printTaskBtn:hover {
    background: #11683f;
}

#printAnswersTaskBtn {
    background: #0f766e;
    color: #fff;
}

#printAnswersTaskBtn:hover {
    background: #0b5f59;
}

.catalog-task-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

#catalogSource {
    display: none !important;
}

.catalog-task-group {
    display: grid;
    gap: 8px;
    padding: 11px;
    border: 1px solid #d8e0ef;
    border-radius: 14px;
    background: #fbfdff;
}

.catalog-task-group h2 {
    margin: 0;
    color: #174072;
    font-size: 11pt;
    line-height: 1.25;
}

.catalog-task-options {
    display: grid;
    gap: 7px;
}

.catalog-task-option {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #dde6f4;
    border-radius: 11px;
    background: #f4f7fb;
    color: #0f172a;
    font-size: 9.5pt;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.catalog-task-option:hover,
.catalog-task-option.is-selected {
    border-color: #1d4ed8;
    background: #eaf1ff;
    color: #0f172a;
}

.catalog-preview {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    height: calc(100vh - 32px);
    min-height: 0;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #d8e0ef;
    border-radius: 16px;
    background: #e9eef5;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
}

.catalog-preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 8px;
}

.catalog-preview-heading h2 {
    margin: 0;
    color: #17283b;
    font-size: 18pt;
}

.catalog-preview-heading > p {
    margin: 0;
    color: #526579;
    font-size: 10pt;
}

.catalog-frame-stage {
    min-height: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

#taskPreviewFrame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 1260px) {
    .print-catalog-page {
        overflow: auto;
    }

    .print-catalog-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .print-catalog-panel,
    .catalog-preview {
        height: auto;
        max-height: none;
    }

    .catalog-preview {
        min-height: 900px;
    }

    .catalog-frame-stage {
        min-height: 820px;
    }
}

@media (max-width: 700px) {
    .catalog-preview {
        padding: 14px;
    }

    .catalog-preview-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
