.krk-app{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:18px;margin:18px 0;color:#0f172a}.krk-header{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.krk-header h1{margin:0;font-size:28px}.krk-header span{color:#64748b}.krk-header-side{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.krk-front-return-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.krk-return-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;text-decoration:none;font-weight:700;padding:7px 11px;line-height:1.1}.krk-return-link:hover{background:#f1f5f9;border-color:#94a3b8}@media(max-width:720px){.krk-header{align-items:flex-start;flex-direction:column}.krk-header-side{justify-content:flex-start}}
.krk-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.krk-tabs a{padding:10px 13px;border-radius:999px;text-decoration:none;background:#fff;border:1px solid #cbd5e1;color:#0f172a}.krk-tabs a.active{background:#1e293b;color:#fff;border-color:#1e293b}.krk-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px}.krk-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0 20px}.krk-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px;box-shadow:0 1px 2px rgba(15,23,42,.04)}.krk-card strong{display:block;font-size:28px}.krk-card span{color:#64748b}.krk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.krk-grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.krk-box{border:1px solid #e2e8f0;border-radius:14px;padding:16px;background:#f8fafc;margin-bottom:16px}.krk-box h3{margin-top:0}.krk-app label{display:block;font-weight:600;margin:10px 0 8px}.krk-app input,.krk-app select,.krk-app textarea{width:100%;max-width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.krk-button{display:inline-flex;align-items:center;justify-content:center;margin-top:10px;border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:700;padding:10px 14px;cursor:pointer;text-decoration:none}.krk-button.secondary{background:#334155}.krk-table{width:100%;border-collapse:collapse;margin-top:14px;font-size:14px}.krk-table th,.krk-table td{border-bottom:1px solid #e2e8f0;padding:9px;text-align:left;vertical-align:top}.krk-table th{background:#f1f5f9}.krk-notice{border-left:4px solid #2563eb;background:#eff6ff;padding:12px 14px;border-radius:10px;margin:12px 0}.krk-muted{color:#64748b}.krk-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;align-items:end;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.krk-chart-wrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:14px;background:#fff;margin:14px 0;padding:8px}.krk-chart{min-width:900px;width:100%;height:auto}.krk-help{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:14px}.krk-denied{background:#fff7ed;border-color:#fed7aa}.krk-admin code{font-size:16px;background:#f1f5f9;padding:8px 10px;border-radius:8px;display:inline-block}pre{white-space:pre-wrap;margin:0;font-size:12px}.krk-app h2{margin-top:0}
.krk-app textarea{width:100%;max-width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;min-height:110px}.krk-app label.krk-inline{display:flex;align-items:center;gap:8px;font-weight:500}.krk-app label.krk-inline input{width:auto}
.krk-button.small{padding:6px 9px;margin-top:0;font-size:13px}.krk-button.danger{background:#dc2626}.krk-inline-form{display:inline}.krk-edit-table input,.krk-edit-table select{padding:7px;border-radius:8px}.krk-spaced{margin-top:12px}.krk-box summary{cursor:pointer;font-size:18px}.krk-admin.krk-app{max-width:1280px;background:#fff}.krk-admin .krk-box{background:#f8fafc}
.krk-subtabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px;padding:8px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px}.krk-subtabs a{padding:9px 12px;border-radius:10px;text-decoration:none;background:#fff;border:1px solid #cbd5e1;color:#0f172a;font-weight:600}.krk-subtabs a.active{background:#2563eb;color:#fff;border-color:#2563eb}.krk-primary-box{border-color:#bfdbfe;background:#eff6ff}.krk-filter-compact{margin-bottom:14px}.krk-filter-compact .krk-button{margin-top:26px}.krk-table td form{margin:0}
.krk-nested-box{background:#fff;margin-top:14px}.krk-nested-box summary{font-size:17px}.krk-small-details{border:1px dashed #cbd5e1;border-radius:12px;padding:10px;background:#fff;margin:12px 0}.krk-small-details summary{cursor:pointer;font-size:15px}.krk-app details[open].krk-nested-box{box-shadow:0 1px 2px rgba(15,23,42,.04)}
.krk-scope-box{border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:12px;margin:12px 0}.krk-scope-box h4{margin:0 0 8px}.krk-radio-line{display:flex!important;align-items:center;gap:8px;font-weight:600!important;margin:8px 0!important}.krk-radio-line input{width:auto!important}.krk-checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px 12px;margin:8px 0}.krk-checkbox-grid label{display:flex!important;align-items:center;gap:7px;font-weight:500!important;margin:3px 0!important}.krk-checkbox-grid input{width:auto!important}
.krk-report-legend{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}.krk-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;border:1px solid transparent}.krk-badge.ok{background:#dcfce7;color:#166534;border-color:#bbf7d0}.krk-badge.warn{background:#fef3c7;color:#92400e;border-color:#fde68a}.krk-badge.danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}.krk-badge.missing{background:#f1f5f9;color:#475569;border-color:#cbd5e1}.krk-badge.neutral{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}.krk-report-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}.krk-report-summary div{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.krk-report-summary strong{display:block;font-size:24px}.krk-report-summary span{color:#64748b}.krk-chart-large{max-width:none;width:auto;height:auto}.krk-report-table td{min-width:150px}.krk-status-below-min{background:#fff1f2}.krk-status-below-base{background:#fffbeb}.krk-status-ok{background:#f0fdf4}

.krk-export-box{background:#eef6ff;border-color:#bfdbfe}.krk-export-box h3{margin-bottom:6px}.krk-export-box .krk-filter{background:#fff}
.krk-quick-report .krk-filter{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.krk-quick-chart h4{margin:4px 0 10px}.krk-quick-bar-row{display:grid;grid-template-columns:minmax(170px,260px) 1fr 60px;gap:10px;align-items:center;margin:7px 0;font-size:13px}.krk-quick-bar-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.krk-quick-bar-track{height:16px;background:#e2e8f0;border-radius:999px;overflow:hidden}.krk-quick-bar-track b{display:block;height:16px;border-radius:999px;background:#2563eb}.krk-quick-bar-track b.ok{background:#16a34a}.krk-quick-bar-track b.danger{background:#dc2626}.krk-quick-bar-track b.missing{background:#94a3b8}.krk-quick-bar-track b.neutral{background:#2563eb}.krk-no-print{ }
@media print{.krk-no-print,.krk-tabs,.krk-subtabs,.krk-header{display:none!important}.krk-app,.krk-panel,.krk-box{border:0!important;background:#fff!important;padding:0!important;margin:0!important}.krk-table th,.krk-table td{border:1px solid #cbd5e1!important}.krk-chart-wrap{break-inside:avoid}.krk-report-table{font-size:11px}}

/* 1.2.2 - kivetítési mód */
.krk-projection-filter{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:16px}.krk-projection-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.krk-projection-stage{background:#fff;border:1px solid #cbd5e1;border-radius:22px;padding:22px;margin:14px 0;box-shadow:0 8px 24px rgba(15,23,42,.08)}.krk-projection-stage:fullscreen{overflow:auto;padding:34px;background:#f8fafc}.krk-projection-title h2{font-size:34px;line-height:1.15;margin:0 0 6px;color:#0f172a}.krk-projection-title p{font-size:18px;margin:0;color:#64748b}.krk-projection-stage .krk-report-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}.krk-projection-stage .krk-report-summary div{padding:16px;border-radius:16px}.krk-projection-stage .krk-report-summary strong{font-size:34px}.krk-projection-stage .krk-report-summary span{font-size:15px}.krk-projection-stage .krk-badge{font-size:15px;padding:7px 12px}.krk-projection-slide{break-inside:avoid;margin:18px 0 28px}.krk-projection-slide h3{font-size:24px;margin:8px 0 12px}.krk-projection-chart-wrap{padding:12px;border-radius:18px;overflow-x:auto}.krk-projection-chart{min-width:1280px;width:100%;max-width:none;height:auto}@media print{.krk-projection-filter,.krk-projection-actions{display:none!important}.krk-projection-stage{box-shadow:none;border:0;padding:0}.krk-projection-slide{break-after:page}.krk-projection-chart{max-width:100%;min-width:0}}

/* 1.2.5 - kivetítési lapozó, nagyítás és osztályalapú csoportszűrés */
.krk-field-hint{display:block;font-size:12px;font-weight:500;color:#64748b;margin-top:5px;line-height:1.35}.krk-projection-slider{margin-top:12px}.krk-projection-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0}.krk-projection-controls.bottom{margin-top:16px}.krk-projection-counter{font-size:18px;color:#0f172a;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:999px;padding:6px 12px}.krk-projection-slide-list{position:relative}.krk-projection-slider .krk-projection-slide{display:none}.krk-projection-slider .krk-projection-slide.is-active{display:block}.krk-projection-modal{position:fixed;inset:0;z-index:999999;background:rgba(15,23,42,.86);display:none;padding:18px}.krk-projection-modal.is-open{display:block}.krk-modal-open{overflow:hidden}.krk-projection-modal-panel{height:100%;background:#f8fafc;border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}.krk-projection-modal-toolbar{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #cbd5e1;background:#fff}.krk-projection-modal-toolbar button{border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:800;padding:9px 12px;cursor:pointer}.krk-projection-modal-toolbar button[data-modal-action="close"]{margin-left:auto;background:#dc2626}.krk-projection-modal-title{font-size:18px;line-height:1.25;color:#0f172a;max-width:44vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.krk-projection-modal-zoom{font-weight:800;color:#334155;background:#f1f5f9;border-radius:999px;padding:6px 9px}.krk-projection-modal-scroll{flex:1;overflow:auto;padding:18px}.krk-projection-modal-chart{--krk-modal-zoom:1;transform:scale(var(--krk-modal-zoom));transform-origin:top left;width:max-content;min-width:100%;padding:2px 2px 80px}.krk-projection-modal-chart .krk-projection-slide{display:block!important;margin:0}.krk-projection-modal-chart .krk-projection-chart-wrap{overflow:visible;background:#fff}.krk-projection-modal-chart .krk-projection-chart{width:auto;max-width:none}.krk-projection-open{margin-left:0}@media print{.krk-projection-controls,.krk-projection-modal{display:none!important}.krk-projection-slider .krk-projection-slide{display:block!important}}

.krk-level-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}
.krk-level-card {
    min-width: 104px;
    border: 1px solid var(--krk-border);
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}
.krk-level-card span {
    display: block;
    color: var(--krk-muted);
    font-weight: 700;
}
.krk-level-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.05;
    margin: 4px 0;
}
.krk-level-card small {
    color: var(--krk-muted);
}
.krk-language-chart {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--krk-border);
    border-radius: 18px;
    background: #fff;
}

/* 1.3.0 - Betekintő */
.krk-grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;align-items:end}
.krk-grid-form p{grid-column:1/-1;margin:0}.krk-viewer{max-width:1440px;margin-left:auto;margin-right:auto}.krk-viewer .krk-header h1{font-size:30px}.krk-viewer-filter{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin:14px 0 16px}.krk-viewer-report .krk-box{background:#fff}.krk-viewer-report .krk-chart-wrap{max-height:none}.krk-viewer-report .krk-chart{min-width:1100px}.krk-viewer-report h2{font-size:25px}.krk-viewer .krk-table{font-size:13px}.krk-viewer .krk-report-summary strong{font-size:28px}@media print{.krk-viewer>.krk-header,.krk-viewer>p.krk-muted,.krk-viewer-filter,#krkViewerPrint{display:none!important}.krk-viewer{border:0!important;background:#fff!important;padding:0!important}.krk-viewer .krk-box{break-inside:avoid}.krk-viewer .krk-chart{min-width:0;max-width:100%;width:100%}.krk-viewer .krk-table{font-size:10px}.krk-viewer .krk-report-summary{grid-template-columns:repeat(4,1fr)}}

/* 1.4.5 - DeákDÁMO-kompatibilis arculati frissítés */
.krk-app,
.krk-admin {
    --krk-bg: #faf8ff;
    --krk-surface: #ffffff;
    --krk-surface-2: #fbfbff;
    --krk-border: #e8e0f1;
    --krk-text: #211d35;
    --krk-muted: #6f6a82;
    --krk-primary: #8b5cf6;
    --krk-primary-dark: #6d28d9;
    --krk-primary-soft: #f0e7ff;
    --krk-teal: #2f8f91;
    --krk-teal-soft: #e6f5f2;
    --krk-peach: #e8782d;
    --krk-peach-soft: #fff1e6;
    --krk-shadow: 0 18px 48px rgba(42, 32, 72, .10);
    --krk-shadow-soft: 0 10px 28px rgba(42, 32, 72, .07);
}
.krk-app {
    position: relative;
    max-width: 1440px;
    margin: 20px auto;
    padding: clamp(14px, 2.2vw, 28px);
    color: var(--krk-text);
    background:
        radial-gradient(circle at 8% 4%, rgba(139, 92, 246, .13), transparent 28%),
        radial-gradient(circle at 95% 12%, rgba(47, 143, 145, .10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--krk-bg) 100%);
    border: 1px solid rgba(232, 224, 241, .95);
    border-radius: 30px;
    box-shadow: var(--krk-shadow);
    overflow: hidden;
}
.krk-app::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, #8b5cf6, #2f8f91, #f59e0b);
    opacity: .72;
}
.krk-admin.krk-app {
    max-width: 1320px;
    background:
        radial-gradient(circle at 0 0, rgba(139,92,246,.10), transparent 24%),
        linear-gradient(180deg, #fff, #fbf9ff);
}
.krk-header.krk-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(220px, 440px) minmax(220px, 320px);
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    margin: 0 0 18px;
    padding: clamp(22px, 3.2vw, 42px);
    min-height: 172px;
    border: 1px solid rgba(222, 211, 235, .95);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(248, 241, 255, .82)),
        radial-gradient(circle at 75% 24%, rgba(139,92,246,.18), transparent 34%),
        radial-gradient(circle at 98% 80%, rgba(47,143,145,.14), transparent 34%);
    box-shadow: var(--krk-shadow-soft);
    overflow: hidden;
}
.krk-hero-copy h1,
.krk-header h1 {
    margin: 4px 0 8px;
    color: var(--krk-text);
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 850;
}
.krk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--krk-primary-dark);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 850;
}
.krk-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--krk-teal);
    box-shadow: 12px 0 0 rgba(139, 92, 246, .45);
}
.krk-hero-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--krk-muted);
    font-size: 17px;
    line-height: 1.55;
}
.krk-hero-visual {
    position: relative;
    min-height: 126px;
    opacity: .82;
}
.krk-hero-bars,
.krk-hero-pie,
.krk-hero-dots {
    position: absolute;
    display: block;
}
.krk-hero-bars {
    left: 22%;
    bottom: 10px;
    width: 96px;
    height: 96px;
    background: linear-gradient(to top, rgba(139,92,246,.18) 32%, transparent 32%), linear-gradient(to top, rgba(139,92,246,.22) 52%, transparent 52%), linear-gradient(to top, rgba(139,92,246,.28) 76%, transparent 76%);
    background-size: 24px 100%, 24px 100%, 24px 100%;
    background-position: 0 0, 34px 0, 68px 0;
    background-repeat: no-repeat;
    border-radius: 16px;
}
.krk-hero-pie {
    right: 20%;
    top: 22px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(rgba(139,92,246,.35) 0 38%, rgba(47,143,145,.25) 38% 66%, rgba(232,120,45,.20) 66% 100%);
    box-shadow: inset 0 0 0 12px rgba(255,255,255,.38);
}
.krk-hero-dots {
    left: 0;
    top: 22px;
    width: 86px;
    height: 64px;
    background-image: radial-gradient(rgba(139,92,246,.30) 2px, transparent 3px);
    background-size: 18px 18px;
}
.krk-hero-side {
    display: grid;
    justify-items: end;
    gap: 14px;
}
.krk-user-card {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 230px;
    padding: 14px 16px;
    border: 1px solid rgba(139,92,246,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 34px rgba(139,92,246,.11);
    backdrop-filter: blur(10px);
}
.krk-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ede9fe, #dff5ef);
    color: var(--krk-primary-dark);
    font-size: 21px;
}
.krk-user-card strong,
.krk-user-card em {
    display: block;
    line-height: 1.25;
}
.krk-user-card strong { font-size: 15px; }
.krk-user-card em {
    color: var(--krk-muted);
    font-size: 12px;
    font-style: normal;
    margin-top: 2px;
}
.krk-header-side {
    justify-content: flex-end;
    color: var(--krk-muted);
}
.krk-header-side > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(232,224,241,.88);
    border-radius: 999px;
    background: rgba(255,255,255,.70);
    color: var(--krk-muted);
    font-weight: 700;
    font-size: 12px;
}
.krk-return-link {
    min-height: 32px;
    border-color: rgba(139,92,246,.22);
    background: rgba(255,255,255,.82);
    color: var(--krk-primary-dark);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(139, 92, 246, .07);
}
.krk-return-link::before { content: "←"; margin-right: 6px; }
.krk-return-link:hover {
    background: #fff;
    border-color: rgba(139,92,246,.45);
    color: var(--krk-primary-dark);
    transform: translateY(-1px);
}
.krk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 20px;
}
.krk-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid rgba(218, 211, 230, .98);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: #4f4965;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(42, 32, 72, .05);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.krk-tabs a:hover {
    transform: translateY(-1px);
    border-color: rgba(139,92,246,.34);
    box-shadow: 0 14px 30px rgba(42, 32, 72, .08);
}
.krk-tabs a.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(139,92,246,.28);
}
.krk-tab-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--krk-primary-soft);
    color: var(--krk-primary-dark);
    font-size: 14px;
    line-height: 1;
}
.krk-tabs a.active .krk-tab-icon {
    background: rgba(255,255,255,.20);
    color: #fff;
}
.krk-panel {
    border-color: rgba(232,224,241,.95);
    border-radius: 28px;
    padding: clamp(18px, 2.2vw, 28px);
    background: rgba(255,255,255,.88);
    box-shadow: 0 14px 38px rgba(42,32,72,.07);
}
.krk-panel > h2,
.krk-app h2 {
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--krk-text);
}
.krk-cards.krk-stat-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 12px 0 22px;
}
.krk-card.krk-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 98px;
    padding: 18px;
    border: 1px solid rgba(232,224,241,.96);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fcfbff);
    box-shadow: 0 14px 30px rgba(42,32,72,.06);
}
.krk-card.krk-stat-card:nth-child(2n) .krk-stat-icon { background: var(--krk-teal-soft); color: var(--krk-teal); }
.krk-card.krk-stat-card:nth-child(3n) .krk-stat-icon { background: var(--krk-peach-soft); color: var(--krk-peach); }
.krk-stat-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--krk-primary-soft);
    color: var(--krk-primary-dark);
    font-size: 25px;
}
.krk-stat-card small {
    display: block;
    color: var(--krk-primary-dark);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 850;
}
.krk-card.krk-stat-card strong {
    margin: 2px 0 0;
    color: var(--krk-text);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.03em;
}
.krk-card.krk-stat-card span:not(.krk-stat-icon) {
    color: var(--krk-muted);
    font-size: 13px;
}
.krk-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(260px, .85fr);
    gap: 16px;
    align-items: stretch;
}
.krk-welcome-card,
.krk-quick-actions,
.krk-help.krk-start-card {
    border: 1px solid rgba(232,224,241,.95);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(42,32,72,.06);
}
.krk-welcome-card {
    min-height: 245px;
    background:
        radial-gradient(circle at 92% 84%, rgba(47,143,145,.17), transparent 26%),
        linear-gradient(135deg, #fff, #f7f0ff 100%);
}
.krk-welcome-card h3,
.krk-quick-actions h3,
.krk-help.krk-start-card h3 {
    margin: 4px 0 10px;
    color: var(--krk-text);
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -.025em;
}
.krk-welcome-card p {
    color: var(--krk-muted);
    max-width: 620px;
    font-size: 15px;
    line-height: 1.6;
}
.krk-quick-actions {
    background: linear-gradient(180deg, #fff7ef, #fff);
}
.krk-quick-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 9px 0;
    padding: 13px 14px;
    border: 1px solid rgba(232,224,241,.9);
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    color: var(--krk-text);
    text-decoration: none;
    font-weight: 800;
}
.krk-quick-actions a:hover {
    border-color: rgba(232,120,45,.35);
    color: var(--krk-peach);
}
.krk-quick-actions span { font-size: 22px; line-height: 1; }
.krk-help.krk-start-card {
    grid-column: 1 / -1;
    border-style: solid;
    background: linear-gradient(135deg, #f2fbf8, #fff);
}
.krk-help.krk-start-card ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px 18px;
    margin: 12px 0 0;
    padding-left: 24px;
    color: var(--krk-muted);
}
.krk-footnote {
    margin-top: 18px;
    font-size: 13px;
}
.krk-grid,
.krk-grid-2 {
    gap: 18px;
}
.krk-box,
.krk-help,
.krk-scope-box,
.krk-small-details,
.krk-nested-box {
    border-color: rgba(232,224,241,.95);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fcfbff);
    box-shadow: 0 10px 24px rgba(42,32,72,.05);
}
.krk-box h3 {
    color: var(--krk-text);
    font-size: 21px;
    letter-spacing: -.015em;
}
.krk-primary-box,
.krk-export-box {
    border-color: rgba(139,92,246,.22);
    background: linear-gradient(135deg, #f5efff, #fff);
}
.krk-app label {
    color: #423b57;
    font-weight: 750;
}
.krk-app input,
.krk-app select,
.krk-app textarea {
    min-height: 42px;
    border-color: #ddd3ea;
    border-radius: 14px;
    background: #fff;
    color: var(--krk-text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.krk-app input:focus,
.krk-app select:focus,
.krk-app textarea:focus {
    outline: none;
    border-color: rgba(139,92,246,.62);
    box-shadow: 0 0 0 3px rgba(139,92,246,.13);
}
.krk-filter,
.krk-subtabs {
    border-color: rgba(232,224,241,.95);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(248,245,255,.92), rgba(239,250,247,.78));
    padding: 14px;
}
.krk-subtabs a {
    border-color: rgba(218,211,230,.95);
    border-radius: 999px;
    color: #4f4965;
}
.krk-subtabs a.active {
    background: linear-gradient(135deg, var(--krk-primary), #a855f7);
    border-color: transparent;
    color: #fff;
}
.krk-button,
.krk-app button.krk-button {
    min-height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--krk-primary), #a855f7);
    color: #fff;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(139,92,246,.22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.krk-button:hover,
.krk-app button.krk-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
    box-shadow: 0 16px 30px rgba(139,92,246,.28);
}
.krk-button.secondary {
    background: linear-gradient(135deg, #2f8f91, #53b7aa);
    box-shadow: 0 12px 24px rgba(47,143,145,.20);
}
.krk-button.danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 12px 24px rgba(220,38,38,.18);
}
.krk-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(232,224,241,.95);
    border-radius: 18px;
    background: #fff;
}
.krk-table th,
.krk-table td {
    border-bottom: 1px solid rgba(232,224,241,.75);
}
.krk-table th {
    background: linear-gradient(180deg, #f8f3ff, #f2fbf8);
    color: #413950;
    font-weight: 850;
}
.krk-table tr:last-child td { border-bottom: 0; }
.krk-table tr:hover td { background: rgba(248,245,255,.65); }
.krk-notice {
    border-left: 0;
    border: 1px solid rgba(47,143,145,.28);
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf7, #fff);
    color: #215d5f;
    box-shadow: 0 10px 24px rgba(47,143,145,.08);
}
.krk-muted { color: var(--krk-muted); }
.krk-chart-wrap {
    border-color: rgba(232,224,241,.95);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(42,32,72,.05);
}
.krk-badge.neutral { background: #f0e7ff; color: #6d28d9; border-color: #e9d5ff; }
.krk-badge.ok { background: #dff7ef; color: #1f6e64; border-color: #bcebdd; }
.krk-badge.warn { background: #fff3d6; color: #9a5a0c; border-color: #f9dfa4; }
.krk-badge.danger { background: #fee4e2; color: #9f1d1d; border-color: #ffc9c9; }
.krk-status-ok { background: #f2fbf8; }
.krk-status-below-base { background: #fff8e9; }
.krk-status-below-min { background: #fff1f2; }
.krk-viewer .krk-header {
    border: 1px solid rgba(232,224,241,.95);
    border-radius: 26px;
    padding: 22px;
    background: linear-gradient(135deg, #fff, #f3edff);
    box-shadow: var(--krk-shadow-soft);
}
.krk-viewer .krk-header h1 {
    font-size: clamp(30px, 3vw, 42px);
}
.krk-viewer > p.krk-muted {
    margin: 14px 4px 18px;
}
@media (max-width: 1160px) {
    .krk-header.krk-hero {
        grid-template-columns: 1fr;
    }
    .krk-hero-visual {
        display: none;
    }
    .krk-hero-side {
        justify-items: start;
    }
}
@media (max-width: 820px) {
    .krk-app {
        margin: 10px 0;
        border-radius: 22px;
    }
    .krk-header.krk-hero {
        padding: 20px;
        border-radius: 22px;
    }
    .krk-user-card {
        width: 100%;
        min-width: 0;
        border-radius: 20px;
    }
    .krk-header-side {
        justify-content: flex-start;
    }
    .krk-tabs a {
        flex: 1 1 185px;
        justify-content: center;
    }
    .krk-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .krk-help.krk-start-card {
        grid-column: auto;
    }
}
@media print {
    .krk-hero,
    .krk-dashboard-grid,
    .krk-footnote {
        display: none !important;
    }
    .krk-app::before { display: none !important; }
}


/* 1.4.6 - önálló Riportközpont / Betekintő oldal: WordPress témafeliratok elrejtése */
body.krk-standalone-page .wp-site-blocks > header,
body.krk-standalone-page header.wp-block-template-part,
body.krk-standalone-page header.site-header,
body.krk-standalone-page .site-header,
body.krk-standalone-page .wp-block-site-title,
body.krk-standalone-page .wp-block-site-tagline,
body.krk-standalone-page .wp-block-post-title,
body.krk-standalone-page .entry-header,
body.krk-standalone-page .page-header,
body.krk-standalone-page .page-title,
body.krk-standalone-page .entry-title,
body:has(.krk-report-center) .wp-site-blocks > header,
body:has(.krk-viewer) .wp-site-blocks > header,
body:has(.krk-report-center) .wp-block-site-title,
body:has(.krk-viewer) .wp-block-site-title,
body:has(.krk-report-center) .wp-block-site-tagline,
body:has(.krk-viewer) .wp-block-site-tagline,
body:has(.krk-report-center) .wp-block-post-title,
body:has(.krk-viewer) .wp-block-post-title,
body:has(.krk-report-center) .entry-header,
body:has(.krk-viewer) .entry-header,
body:has(.krk-report-center) .page-header,
body:has(.krk-viewer) .page-header {
    display: none !important;
}
body.krk-standalone-page .wp-site-blocks,
body.krk-standalone-page .site,
body.krk-standalone-page .site-content,
body.krk-standalone-page .content-area,
body.krk-standalone-page main,
body:has(.krk-report-center) .wp-site-blocks,
body:has(.krk-viewer) .wp-site-blocks {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.krk-standalone-page .entry-content,
body.krk-standalone-page .wp-block-post-content,
body:has(.krk-report-center) .entry-content,
body:has(.krk-viewer) .entry-content {
    margin-top: 0 !important;
}
body.krk-standalone-page .krk-app,
body:has(.krk-report-center) .krk-app,
body:has(.krk-viewer) .krk-app {
    margin-top: clamp(10px, 2vw, 22px);
}
body.admin-bar.krk-standalone-page .krk-app,
body.admin-bar:has(.krk-report-center) .krk-app,
body.admin-bar:has(.krk-viewer) .krk-app {
    margin-top: clamp(14px, 2vw, 26px);
}

/* 1.4.8 - mobil optimalizálás és érintőképernyős használhatóság */
.krk-app,
.krk-app * {
    box-sizing: border-box;
}
body.krk-standalone-page {
    overflow-x: hidden;
}
.krk-app img,
.krk-app svg,
.krk-app canvas {
    max-width: 100%;
}
.krk-app input[type="file"] {
    min-width: 0;
    line-height: 1.25;
}
.krk-app select,
.krk-app input,
.krk-app textarea,
.krk-button,
.krk-tabs a,
.krk-subtabs a,
.krk-quick-actions a {
    touch-action: manipulation;
}
.krk-table {
    max-width: 100%;
}
.krk-scroll-hint {
    display: none;
}
@media (max-width: 980px) {
    .krk-app {
        max-width: calc(100vw - 18px);
        margin-left: auto;
        margin-right: auto;
    }
    .krk-cards.krk-stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .krk-grid,
    .krk-grid-2,
    .krk-grid-form,
    .krk-filter,
    .krk-viewer-filter,
    .krk-quick-report .krk-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .krk-filter-compact .krk-button {
        margin-top: 0;
    }
    .krk-projection-title h2 {
        font-size: clamp(25px, 5vw, 34px);
    }
}
@media (max-width: 720px) {
    body.krk-standalone-page .entry-content,
    body.krk-standalone-page .wp-block-post-content,
    body.krk-standalone-page main,
    body:has(.krk-report-center) .entry-content,
    body:has(.krk-viewer) .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
    .krk-app {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        margin: 6px auto 14px !important;
        padding: 12px;
        border-radius: 20px;
        box-shadow: 0 10px 26px rgba(42, 32, 72, .08);
    }
    .krk-app::before {
        height: 5px;
    }
    .krk-header.krk-hero {
        min-height: 0;
        padding: 17px;
        border-radius: 19px;
        gap: 14px;
    }
    .krk-hero-copy h1,
    .krk-header h1 {
        font-size: clamp(31px, 10vw, 42px);
        line-height: 1.04;
        overflow-wrap: anywhere;
    }
    .krk-hero-copy p {
        font-size: 15px;
        line-height: 1.45;
    }
    .krk-eyebrow {
        font-size: 10px;
        letter-spacing: .08em;
    }
    .krk-hero-side {
        width: 100%;
        justify-items: stretch;
    }
    .krk-user-card {
        min-width: 0;
        width: 100%;
        padding: 11px 12px;
    }
    .krk-user-avatar {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .krk-header-side,
    .krk-front-return-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }
    .krk-header-side > span,
    .krk-return-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 38px;
    }
    .krk-tabs,
    .krk-subtabs,
    .krk-report-legend,
    .krk-projection-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        padding-bottom: 8px;
    }
    .krk-tabs {
        margin: 16px -6px 14px;
        padding-left: 6px;
        padding-right: 6px;
    }
    .krk-subtabs {
        margin-left: -2px;
        margin-right: -2px;
    }
    .krk-tabs a,
    .krk-subtabs a,
    .krk-report-legend .krk-badge,
    .krk-projection-controls > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .krk-tabs a {
        min-height: 44px;
        padding: 9px 13px;
        font-size: 14px;
    }
    .krk-tab-icon {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    .krk-panel {
        padding: 14px;
        border-radius: 20px;
    }
    .krk-panel > h2,
    .krk-app h2 {
        font-size: clamp(22px, 7vw, 28px);
    }
    .krk-cards.krk-stat-cards,
    .krk-report-summary,
    .krk-level-cards {
        grid-template-columns: 1fr;
    }
    .krk-card.krk-stat-card {
        min-height: 82px;
        padding: 14px;
        border-radius: 18px;
    }
    .krk-stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 21px;
    }
    .krk-card.krk-stat-card strong {
        font-size: 26px;
    }
    .krk-dashboard-grid,
    .krk-grid,
    .krk-grid-2,
    .krk-grid-form,
    .krk-filter,
    .krk-viewer-filter,
    .krk-quick-report .krk-filter {
        grid-template-columns: 1fr;
    }
    .krk-welcome-card,
    .krk-quick-actions,
    .krk-help.krk-start-card,
    .krk-box,
    .krk-help,
    .krk-scope-box,
    .krk-small-details,
    .krk-nested-box {
        border-radius: 18px;
        padding: 15px;
    }
    .krk-welcome-card h3,
    .krk-quick-actions h3,
    .krk-help.krk-start-card h3,
    .krk-box h3 {
        font-size: 20px;
    }
    .krk-help.krk-start-card ol {
        grid-template-columns: 1fr;
        padding-left: 20px;
    }
    .krk-app label {
        margin: 9px 0 7px;
    }
    .krk-app input,
    .krk-app select,
    .krk-app textarea {
        min-height: 44px;
        font-size: 16px;
        border-radius: 13px;
    }
    .krk-button,
    .krk-app button.krk-button,
    .krk-button.secondary,
    .krk-button.danger {
        width: 100%;
        min-height: 44px;
        margin-top: 8px;
        white-space: normal;
        text-align: center;
    }
    .krk-button.small {
        width: auto;
        min-height: 36px;
        padding: 7px 11px;
        font-size: 13px;
    }
    .krk-inline-form .krk-button.small {
        width: 100%;
    }
    .krk-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        font-size: 13px;
    }
    .krk-table thead,
    .krk-table tbody,
    .krk-table tr {
        min-width: max-content;
    }
    .krk-table th,
    .krk-table td {
        padding: 8px;
        min-width: 120px;
    }
    .krk-table td:first-child,
    .krk-table th:first-child {
        min-width: 145px;
    }
    .krk-edit-table input,
    .krk-edit-table select {
        min-width: 150px;
    }
    .krk-chart-wrap,
    .krk-projection-chart-wrap {
        margin-left: -4px;
        margin-right: -4px;
        padding: 6px;
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .krk-chart,
    .krk-viewer-report .krk-chart,
    .krk-projection-chart {
        min-width: 760px;
    }
    .krk-quick-bar-row {
        grid-template-columns: 1fr 52px;
        gap: 6px 8px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(232,224,241,.75);
    }
    .krk-quick-bar-row span {
        white-space: normal;
    }
    .krk-quick-bar-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .krk-viewer .krk-header {
        padding: 16px;
        border-radius: 20px;
    }
    .krk-viewer .krk-header h1 {
        font-size: clamp(27px, 8vw, 36px);
    }
    .krk-projection-actions,
    .krk-projection-modal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .krk-projection-modal-title {
        max-width: 100%;
        white-space: normal;
    }
    .krk-projection-modal-toolbar button,
    .krk-projection-modal-toolbar button[data-modal-action="close"] {
        width: 100%;
        margin-left: 0;
    }
    .krk-projection-modal {
        padding: 8px;
    }
    .krk-projection-modal-panel {
        border-radius: 16px;
    }
    .krk-projection-modal-scroll {
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .krk-app {
        width: 100vw;
        max-width: 100vw;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 10px;
    }
    .krk-header.krk-hero,
    .krk-panel {
        border-radius: 18px;
    }
    .krk-hero-copy h1,
    .krk-header h1 {
        font-size: clamp(29px, 11vw, 38px);
    }
    .krk-header-side,
    .krk-front-return-links {
        grid-template-columns: 1fr;
    }
    .krk-tabs a,
    .krk-subtabs a {
        min-height: 42px;
        font-size: 13px;
    }
    .krk-card.krk-stat-card {
        align-items: flex-start;
    }
    .krk-stat-icon {
        width: 44px;
        height: 44px;
    }
    .krk-table th,
    .krk-table td {
        min-width: 112px;
        font-size: 12px;
    }
    .krk-chart,
    .krk-viewer-report .krk-chart,
    .krk-projection-chart {
        min-width: 680px;
    }
}
@media (hover: none) and (pointer: coarse) {
    .krk-tabs a:hover,
    .krk-return-link:hover,
    .krk-button:hover,
    .krk-app button.krk-button:hover,
    .krk-quick-actions a:hover {
        transform: none;
    }
}

/* 1.4.10 - grafikon fókusz mód és kompakt kimutatási felület */
.krk-info-toggle,
.krk-filter-details,
.krk-chart-note,
.krk-table-toggle {
    border: 1px solid rgba(232,224,241,.95);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 24px rgba(42,32,72,.045);
    margin: 12px 0 16px;
    overflow: hidden;
}
.krk-info-toggle summary,
.krk-filter-details summary,
.krk-chart-note summary,
.krk-table-toggle summary {
    cursor: pointer;
    list-style: none;
    padding: 13px 16px;
    font-weight: 850;
    color: var(--krk-text);
}
.krk-info-toggle summary::-webkit-details-marker,
.krk-filter-details summary::-webkit-details-marker,
.krk-chart-note summary::-webkit-details-marker,
.krk-table-toggle summary::-webkit-details-marker {
    display: none;
}
.krk-info-toggle summary::after,
.krk-chart-note summary::after,
.krk-table-toggle summary::after {
    content: "⌄";
    float: right;
    color: var(--krk-primary-dark);
    font-weight: 900;
}
.krk-info-toggle[open] summary::after,
.krk-chart-note[open] summary::after,
.krk-table-toggle[open] summary::after {
    content: "⌃";
}
.krk-info-toggle p,
.krk-chart-note p {
    margin: 0;
    padding: 0 16px 14px;
}
.krk-filter-details {
    background: linear-gradient(135deg, rgba(248,245,255,.96), rgba(239,250,247,.86));
}
.krk-filter-details > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.krk-filter-details > summary span {
    display: inline-flex;
    align-items: center;
    color: var(--krk-primary-dark);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.krk-filter-details > summary strong {
    flex: 1 1 auto;
    font-size: 15px;
    color: var(--krk-text);
}
.krk-filter-details > summary em {
    font-style: normal;
    color: var(--krk-primary-dark);
    background: #fff;
    border: 1px solid rgba(139,92,246,.20);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
}
.krk-filter-details .krk-filter {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
    margin: 0;
}
.krk-chart-focus-card {
    margin: 14px 0 18px;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid rgba(232,224,241,.95);
    border-radius: 26px;
    background:
        radial-gradient(circle at 95% 0, rgba(47,143,145,.10), transparent 28%),
        linear-gradient(180deg, #fff, #fcfbff);
    box-shadow: 0 18px 44px rgba(42,32,72,.08);
}
.krk-chart-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
}
.krk-chart-card-head span {
    display: inline-flex;
    margin: 0 0 4px;
    color: var(--krk-teal);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
}
.krk-chart-card-head h3 {
    margin: 0;
    color: var(--krk-text);
    font-size: clamp(23px, 2.2vw, 32px);
    line-height: 1.15;
    letter-spacing: -.02em;
}
.krk-chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.krk-chart-actions .krk-button.small {
    min-height: 36px;
    white-space: nowrap;
}
.krk-compact-legend {
    margin-bottom: 8px;
}
.krk-chart-focus-card .krk-report-summary {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
    margin: 10px 0;
}
.krk-chart-focus-card .krk-report-summary div {
    padding: 10px 12px;
}
.krk-chart-focus-card .krk-report-summary strong {
    font-size: 22px;
}
.krk-chart-note {
    margin: 8px 0 12px;
    box-shadow: none;
    background: rgba(255,255,255,.72);
}
.krk-chart-note summary {
    padding: 10px 12px;
    font-size: 13px;
}
.krk-chart-note p {
    padding: 0 12px 11px;
    font-size: 13px;
}
.krk-chart-focus-card .krk-chart-wrap {
    min-height: 520px;
    display: flex;
    align-items: stretch;
    padding: 10px;
    background: #fff;
}
.krk-chart-focus-card .krk-chart-large {
    min-width: 1040px;
}
.krk-table-toggle {
    background: linear-gradient(180deg, #fff, #fbfbff);
}
.krk-table-toggle .krk-table {
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}
.krk-chart-focus-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    padding: 16px;
    background: rgba(21, 16, 36, .78);
    backdrop-filter: blur(6px);
}
.krk-chart-focus-modal.is-open {
    display: block;
}
body.krk-chart-modal-open {
    overflow: hidden;
}
.krk-chart-focus-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 24px;
    background: #fbfbff;
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
}
.krk-chart-focus-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(232,224,241,.95);
    background: rgba(255,255,255,.94);
}
.krk-chart-focus-title {
    flex: 1 1 auto;
    min-width: 120px;
    color: var(--krk-text, #211d35);
    font-size: 17px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.krk-chart-focus-toolbar button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    font-weight: 850;
    padding: 9px 12px;
    cursor: pointer;
}
.krk-chart-focus-toolbar .krk-chart-focus-close {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}
.krk-chart-focus-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
}
.krk-chart-focus-clone {
    min-width: max-content;
    min-height: calc(100vh - 134px);
    margin: 0;
    padding: 14px;
    overflow: visible;
    background: #fff;
}
.krk-chart-focus-modal .krk-chart,
.krk-chart-focus-modal .krk-chart-large,
.krk-chart-focus-modal .krk-projection-chart {
    max-width: none;
    width: auto;
    min-width: 1180px;
    height: auto;
}
@media (max-width: 980px) {
    .krk-chart-card-head {
        flex-direction: column;
    }
    .krk-chart-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .krk-chart-focus-card .krk-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .krk-chart-focus-card .krk-chart-wrap {
        min-height: 460px;
    }
}
@media (max-width: 720px) {
    .krk-filter-details > summary {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }
    .krk-filter-details > summary em {
        text-align: center;
    }
    .krk-chart-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .krk-chart-actions .krk-button.small {
        width: 100%;
    }
    .krk-chart-focus-card .krk-report-summary {
        grid-template-columns: 1fr;
    }
    .krk-chart-focus-card .krk-chart-wrap {
        min-height: 420px;
        margin-left: 0;
        margin-right: 0;
    }
    .krk-chart-focus-modal {
        padding: 0;
    }
    .krk-chart-focus-panel {
        border-radius: 0;
    }
    .krk-chart-focus-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .krk-chart-focus-title {
        white-space: normal;
    }
    .krk-chart-focus-toolbar button {
        width: 100%;
        min-height: 42px;
    }
    .krk-chart-focus-body {
        padding: 10px;
    }
    .krk-chart-focus-modal .krk-chart,
    .krk-chart-focus-modal .krk-chart-large,
    .krk-chart-focus-modal .krk-projection-chart {
        min-width: 920px;
    }
}
@media print {
    .krk-info-toggle,
    .krk-filter-details,
    .krk-chart-actions,
    .krk-table-toggle summary,
    .krk-chart-focus-modal {
        display: none !important;
    }
    .krk-chart-focus-card {
        box-shadow: none;
        border: 0;
        padding: 0;
    }
    .krk-chart-focus-card .krk-chart-wrap {
        min-height: 0;
    }
}

/* 1.4.11 – OKM grafikon nagyítás és olvashatóbb tengelyfeliratok */
.krk-viewer-chart-box {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.krk-viewer-chart-focus-card {
    margin-top: 10px;
}
.krk-viewer-chart-focus-card .krk-chart-card-head p.krk-muted {
    margin: 6px 0 0;
    max-width: 760px;
}
.krk-viewer-chart-focus-card .krk-chart-wrap {
    min-height: 620px;
    overflow: auto;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
}
.krk-viewer-chart-focus-card .krk-chart,
.krk-viewer-chart-focus-card .krk-chart-large,
.krk-viewer-report .krk-chart-large {
    width: auto !important;
    max-width: none !important;
    min-width: 1280px;
    flex: 0 0 auto;
}
.krk-viewer .krk-table-toggle {
    margin-top: 14px;
}
.krk-chart-focus-modal .krk-chart-focus-clone .krk-chart,
.krk-chart-focus-modal .krk-chart-focus-clone .krk-chart-large {
    width: auto !important;
    max-width: none !important;
}
.krk-chart-focus-modal .krk-chart-focus-clone {
    min-width: max-content;
}
@media (max-width: 980px) {
    .krk-viewer-chart-focus-card .krk-chart-wrap {
        min-height: 520px;
    }
}
@media (max-width: 720px) {
    .krk-viewer-chart-focus-card .krk-chart-wrap {
        min-height: 460px;
    }
    .krk-viewer-chart-focus-card .krk-chart,
    .krk-viewer-chart-focus-card .krk-chart-large,
    .krk-viewer-report .krk-chart-large {
        min-width: 980px;
    }
}
@media print {
    .krk-viewer-chart-focus-card .krk-chart,
    .krk-viewer-chart-focus-card .krk-chart-large,
    .krk-viewer-report .krk-chart-large {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .krk-viewer-chart-focus-card .krk-chart-wrap {
        min-height: 0;
        overflow: visible;
    }
}

/* 1.4.12 – csoporttagság karbantartás */
.krk-member-picker{border:1px solid rgba(124,58,237,.16);border-radius:20px;background:rgba(255,255,255,.72);padding:14px;margin:12px 0;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.krk-member-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap;color:#1f1a3d}
.krk-member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;max-height:380px;overflow:auto;padding:2px}
.krk-member-chip{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid rgba(124,58,237,.14);border-radius:16px;background:#fff;cursor:pointer;transition:.15s ease}
.krk-member-chip:hover{border-color:rgba(124,58,237,.36);box-shadow:0 8px 20px rgba(124,58,237,.08)}
.krk-member-chip input{margin-top:3px}
.krk-member-chip span{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.krk-member-chip small{color:#667085;font-size:12px}
@media(max-width:700px){.krk-member-grid{grid-template-columns:1fr;max-height:none}.krk-member-picker-head{align-items:flex-start}}

/* 1.4.13 – Tanulói pálya bővítés: képességszint és nagyítható pályagrafikon */
.krk-student-path-viewer-box {
    background: linear-gradient(180deg,#fff,#fbfbff) !important;
}
.krk-student-path-chart-card {
    margin-top: 16px;
}
.krk-student-path-chart-card .krk-chart-wrap {
    min-height: 390px;
    overflow: auto;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
}
.krk-student-path-chart-card .krk-chart {
    width: auto !important;
    max-width: none !important;
    min-width: 1120px;
    flex: 0 0 auto;
}
.krk-student-path-chart-level {
    background: #fff;
}
.krk-student-path-viewer-box > h2 {
    margin-top: 0;
}
@media (max-width: 720px) {
    .krk-student-path-chart-card .krk-chart-wrap {
        min-height: 360px;
    }
    .krk-student-path-chart-card .krk-chart {
        min-width: 920px;
    }
}
@media print {
    .krk-student-path-chart-card {
        box-shadow: none;
        border: 0;
        padding: 0;
    }
    .krk-student-path-chart-card .krk-chart-wrap {
        min-height: 0;
        overflow: visible;
    }
    .krk-student-path-chart-card .krk-chart {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}
