/* =========================
   KTP PAGE / CONSTRUCTOR
========================= */

.ktp-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 48px 24px;
}

.ktp-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ktp-layout > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.ktp-hero {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ktp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.ktp-breadcrumbs a {
    color: #0f5f9f;
    text-decoration: none;
}

.ktp-hero h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
}

.ktp-hero-lead {
    margin: 0 0 18px;
    color: #334155;
    font-size: 18px;
    line-height: 1.6;
}

.ktp-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #0f5f9f;
    font-size: 14px;
    font-weight: 600;
}

#react-academic-root {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}


/* =========================
   KTP PREVIEW
========================= */

.ktp-preview {
    position: relative;
    align-self: flex-start;
}

.ktp-download-btn {
    width: auto;
    margin: 0;
}

.ktp-preview-heading {
    margin-bottom: 4px;
}

.ktp-preview-subtitle {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
}

.ktp-preview-stage {
    padding: 18px;
    border-radius: 14px;
    background: #f3f4f6;
}

.ktp-preview-page {
    width: 340px;
    height: auto;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 34px 26px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
    color: #111827;
    font-family: "Times New Roman", serif;
    font-size: 12px;
}

.ktp-preview-title {
    margin-top: 24px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.ktp-preview-subject,
.ktp-preview-grade,
.ktp-preview-year {
    text-align: center;
}

.ktp-preview-subject {
    margin-bottom: 8px;
}

.ktp-preview-grade {
    margin-bottom: 8px;
    font-weight: 600;
}

.ktp-preview-meta {
    margin-top: 54px;
}

.ktp-preview-field {
    margin-bottom: 18px;
}

.ktp-preview-line {
    display: block;
    min-height: 20px;
    margin-top: 4px;
    border-bottom: 1px solid #374151;
}

.ktp-preview-table-wrap {
    margin-top: 28px;
}

.ktp-preview-quarter {
    margin-bottom: 18px;
}

.ktp-preview-quarter-title {
    margin-bottom: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}

.ktp-preview-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8px;
    line-height: 1.2;
}

.ktp-preview-table th,
.ktp-preview-table td {
    padding: 3px 4px;
    border: 1px solid #4b5563;
    vertical-align: top;
    word-break: break-word;
}

.ktp-preview-table th:nth-child(1),
.ktp-preview-table td:nth-child(1) {
    width: 7%;
    text-align: center;
}

.ktp-preview-table th:nth-child(2),
.ktp-preview-table td:nth-child(2) {
    width: 36%;
}

.ktp-preview-table th:nth-child(3),
.ktp-preview-table td:nth-child(3) {
    width: 35%;
}

.ktp-preview-table th:nth-child(4),
.ktp-preview-table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

.ktp-preview-table th:nth-child(5),
.ktp-preview-table td:nth-child(5) {
    width: 12%;
    text-align: center;
}

.ktp-preview-school {
    margin-bottom: 24px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.ktp-preview-teacher {
    margin-top: 36px;
    text-align: right;
    font-size: 11px;
    font-weight: 600;
}

.ktp-preview-teacher strong {
    margin-right: 8px;
    font-weight: 700;
}


/* =========================
   KTP DOCUMENT FIELDS
========================= */

.ktp-document-fields {
    margin-bottom: 28px;
}

.ktp-document-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    align-items: end;
}

.ktp-system-value {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text);
    font-size: 16px;
}


/* =========================
   KTP TOP — HERO + CALENDAR
========================= */

.ktp-top-grid {
    align-items: stretch;
    margin-bottom: 16px;
}

.ktp-top-grid > div {
    display: flex;
}

.ktp-top-grid > div > .card,
.ktp-top-grid > div > section {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.ktp-top-grid .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================
   KTP GRADES
========================= */

.ktp-grade-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.ktp-grade-card {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 0;
    min-height: 82px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--card);
    color: var(--text);

    text-align: center;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.ktp-grade-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 85, 135, .4);
    background: rgba(20, 85, 135, .03);
    box-shadow: 0 8px 18px rgba(2, 6, 23, .07);
}

.ktp-grade-card__content {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.ktp-grade-card__title {
    margin: 0;
    color: var(--brand);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.ktp-grade-card:hover .ktp-grade-card__title {
    color: #0b4f87;
}


/* =========================
   KTP INDEX — HERO
========================= */

.hero-ktp .hero-body {
    margin-top: 10px;
}

.hero-ktp .hero-title {
    margin-bottom: 8px;
}

.hero-ktp .hero-text {
    margin-bottom: 8px;
    line-height: 1.55;
}

.hero-ktp .hero-foot {
    margin-top: 12px;
}


/* =========================
   KTP INDEX — STEPS
========================= */

.ktp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 16px;
}

.ktp-step-card {
    min-height: 118px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.ktp-step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 85, 135, .35);
    box-shadow: 0 8px 18px rgba(2, 6, 23, .07);
}

.ktp-step-title {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.ktp-step-index {
    color: var(--brand);
    font-weight: 800;
}

.ktp-step-text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================
   KTP INDEX — SUBJECTS
========================= */

.ktp-subjects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ktp-subject-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.ktp-subject-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 85, 135, .35);
    box-shadow: 0 8px 18px rgba(2, 6, 23, .07);
}

.ktp-subject-card__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.ktp-subject-card__meta {
    margin-top: 10px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}


/* =========================
   KTP SUBJECT LINKS
========================= */

.ktp-columns-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 22px;
    margin-top: 18px;
}

.ktp-subject-link {
    display: block;
    padding: 4px 0;
    color: var(--brand);
    text-decoration: none;
    line-height: 1.45;
    font-size: 14px;
}

.ktp-subject-link:hover {
    text-decoration: underline;
}


/* =========================
   KTP INFO GRID
========================= */

.ktp-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    align-items: stretch;
}

.ktp-info-grid .ktp-section-block {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.ktp-info-grid .ktp-section-block h3 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.35;
}

.ktp-info-grid .ktp-section-block p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.ktp-info-grid .ktp-section-block p + p {
    margin-top: 14px;
}


/* =========================
   KTP SUBJECT — SEO + RELATED
========================= */

.ktp-seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.ktp-related {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
}

.ktp-related h3 {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 18px;
}

.ktp-related__intro {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.ktp-related__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ktp-related__link {
    color: var(--brand);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.ktp-related__link:hover {
    text-decoration: underline;
}

.ktp-related__all {
    display: inline-block;
    margin-top: 14px;
    color: var(--brand2);
    font-size: 13px;
    font-weight: 800;
}


/* =========================
   KTP SEO CONTENT
========================= */

.ktp-columns {
    columns: 4;
    column-gap: 36px;
}

.ktp-quarter-block,
.ktp-section-block {
    break-inside: avoid;
    margin-bottom: 18px;
}

.ktp-quarter-block h3,
.ktp-section-block h4 {
    break-after: avoid;
    margin: 0 0 8px;
}

.ktp-quarter-block h3 {
    font-size: 16px;
}

.ktp-section-block h4 {
    font-size: 15px;
}

.ktp-section-block ul {
    margin: 0;
    padding-left: 18px;
}

.ktp-section-block li {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.45;
}

.ktp-seo-head {
    margin-bottom: 24px;
}

.ktp-seo-head h2 {
    margin-bottom: 10px;
}

.ktp-seo-head p {
    max-width: 900px;
    color: var(--muted);
    line-height: 1.7;
}

.ktp-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ktp-seo-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition:
        transform .16s ease,
        box-shadow .16s ease;
}

.ktp-seo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2, 6, 23, .06);
}

.ktp-seo-card h3 {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 17px;
    font-weight: 800;
}

.ktp-seo-card ul {
    margin: 0;
    padding-left: 18px;
}

.ktp-seo-card li {
    margin-bottom: 7px;
    line-height: 1.45;
}

.ktp-seo-card__footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ktp-seo-content {
    margin-top: 28px;
    margin-bottom: 28px;
}

.ktp-guide {
    margin-top: 28px;
}

.ktp-guide__head {
    margin-bottom: 22px;
}

.ktp-guide__head h2 {
    margin: 0 0 10px;
}

.ktp-guide__head p {
    max-width: 1000px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.ktp-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ktp-guide-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
}

.ktp-guide-card h3 {
    margin: 0 0 9px;
    color: var(--brand);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.ktp-guide-card p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}


/* =========================
   KTP DIALOG
========================= */

.ktp-save-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ktp-save-dialog-close:hover {
    color: #111827;
}

/* =========================
   KTP REACT EDITOR
========================= */

.ktp-editor-settings {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #f8fafc;
}

.ktp-editor-settings__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.ktp-editor-settings__head h2,
.ktp-editor-plan__head h2 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.25;
}

.ktp-editor-settings__head p,
.ktp-editor-plan__head p {
    margin: 0;
    max-width: 720px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.ktp-editor-year {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 10px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
}

.ktp-editor-year span {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ktp-editor-year strong {
    color: var(--brand);
    font-size: 16px;
}

.ktp-editor-settings__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ktp-classes {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.ktp-classes__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.ktp-classes__head strong {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
}

.ktp-classes__head span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.ktp-add-class {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(20, 85, 135, .3);
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ktp-add-class:hover {
    background: rgba(20, 85, 135, .05);
}

.ktp-classes__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ktp-class-item {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
}

.ktp-class-item input {
    width: 90px;
    padding: 8px 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.ktp-class-remove {
    width: 32px;
    align-self: stretch;
    border: 0;
    border-left: 1px solid #e2e8f0;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

.ktp-class-remove:hover {
    background: #fff1f2;
    color: #be123c;
}

.ktp-editor-plan__head {
    margin-bottom: 20px;
}

.ktp-editor-quarter {
    margin-bottom: 2.5rem;
}

.ktp-editor-quarter__title {
    margin-bottom: 1rem;
    padding: 0.85rem 1.25rem;
    border-left: 5px solid var(--bs-primary);
    border-radius: 0.5rem;
    background: #eaf3ff;
    color: var(--bs-primary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.ktp-editor-section {
    margin-bottom: 20px;
}

.ktp-editor-section__title {
    padding: 9px 12px;
    border: 1px solid #dbe3ee;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.ktp-editor-table {
    width: 100%;
    min-width: 720px;
    margin-bottom: 0;
    table-layout: auto;
    font-size: 13px;
}

.ktp-editor-table thead th {
    padding: 9px 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

.ktp-editor-table tbody td {
    padding: 9px 8px;
}

.ktp-col-number {
    width: 48px;
}

.ktp-col-objectives {
    width: 150px;
    min-width: 150px;
}

.ktp-col-hours {
    width: 62px;
}

.ktp-col-date {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    text-align: center;
    color: var(--brand) !important;
}

.ktp-lesson-number,
.ktp-lesson-hours {
    text-align: center;
    font-weight: 700;
}

.ktp-lesson-topic {
    min-width: 260px;
    width: auto;
    line-height: 1.45;
}

.ktp-objective-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ktp-objective-code {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(20, 85, 135, .08);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ktp-date-cell {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center;
}

.ktp-date-input {
    width: 100px;
    min-width: 0;
    padding: 4px 5px;
    font-size: 11px;
}

.ktp-date-input + .ktp-date-input {
    margin-top: 5px;
}

.ktp-editor-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.ktp-editor-finish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.ktp-editor-finish strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 16px;
}

.ktp-editor-finish p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.ktp-editor-finish .btn {
    flex: 0 0 auto;
}

.ktp-save-status {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.ktp-save-status--dirty {
    color: #b45309;
}

.ktp-save-status--saved {
    color: #15803d;
}

.ktp-preview-actions,
.ktp-editor-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ktp-preview-actions .btn,
.ktp-editor-actions .btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
}

.ktp-save-btn {
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand);
}

.ktp-save-btn:hover,
.ktp-save-btn:focus {
    border-color: var(--brand);
    background: #fff;
    color: var(--brand);
}

.ktp-save-message {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #bde6c7;
    border-radius: 10px;
    background: #eaf8ef;
    color: #1f7a3b;
    font-weight: 500;
}

.ktp-variant-switch {
    display: flex;
    width: 100%;
    max-width: 560px;
    margin-top: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: #eef4fb;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, .08);
}

.ktp-variant-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #556274;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.ktp-variant-btn:hover {
    color: #1859b8;
}

.ktp-variant-btn.active {
    background: #ffffff;
    color: #1859b8;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .12);
}

.ktp-variant-btn:focus {
    outline: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .ktp-columns-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .ktp-subjects-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ktp-columns {
        columns: 2;
    }

    .ktp-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ktp-grade-card {
        flex-basis: calc((100% - 10px) / 2);
    }

    .ktp-columns-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ktp-seo-layout {
        grid-template-columns: 1fr;
    }

    .ktp-related {
        margin-top: 4px;
    }

    .ktp-seo-grid {
        grid-template-columns: 1fr;
    }

    .ktp-editor-settings__head,
    .ktp-classes__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ktp-editor-settings__grid {
        grid-template-columns: 1fr;
    }

    .ktp-editor-year {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .ktp-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ktp-page {
        padding: 28px 16px;
    }

    .ktp-layout {
        flex-direction: column;
    }

    .ktp-document-fields-grid {
        grid-template-columns: 1fr;
    }

    .ktp-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ktp-subjects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ktp-preview {
        position: static;
    }

    .ktp-editor-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ktp-editor-finish {
        align-items: stretch;
        flex-direction: column;
    }

    .ktp-editor-finish .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ktp-columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ktp-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ktp-grade-card {
        flex-basis: 100%;
    }

    .ktp-steps-grid {
        grid-template-columns: 1fr;
    }

    .ktp-subjects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ktp-columns {
        columns: 1;
    }
}