:root {
  --tk-ink: #17263f;
  --tk-muted: #667085;
  --tk-line: #dfe5ec;
  --tk-bg: #f4f7fa;
  --tk-panel: #fff;
  --tk-teal: #087f75;
  --tk-teal-dark: #075f59;
  --tk-lime: #d9f064;
  --tk-coral: #f47755;
  --tk-shadow: 0 16px 40px rgba(23, 38, 63, .08);
}

/* A Joomla frontend modul-szerkesztő ceruzája ne zavarja a kezelőfelületet. */
a.jmodedit, button.jmodedit, .jmodedit { display: none !important; }

.tk-admin { color: var(--tk-ink); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 1580px; margin: 0 auto; }
.tk-admin *, .tk-modal-backdrop * { box-sizing: border-box; }
.tk-admin h1, .tk-admin h2, .tk-admin h3, .tk-modal h2 { color: var(--tk-ink); font-weight: 760; letter-spacing: -.025em; margin: 0; }
.tk-admin h1 { font-size: 26px; }.tk-admin h2 { font-size: clamp(24px,3vw,38px); }.tk-admin h3 { font-size: 18px; }
.tk-admin p { color: var(--tk-muted); margin: .25rem 0 0; }
.tk-admin .btn, .tk-modal .btn { transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease; }
.tk-admin .btn:hover, .tk-modal .btn:hover { transform: translateY(-1px); }
.tk-admin .btn-primary, .tk-modal .btn-primary { background: var(--tk-teal); border-color: var(--tk-teal); box-shadow: 0 6px 16px rgba(8,127,117,.18); }.tk-admin .btn-primary:hover, .tk-modal .btn-primary:hover { background: var(--tk-teal-dark); border-color: var(--tk-teal-dark); }
.tk-loading { align-items: center; display: flex; gap: 10px; justify-content: center; min-height: 260px; }
.tk-manager-name { color: var(--tk-muted); font-size: 13px; font-weight: 650; }
.tk-manager-login { background: #fff; border: 1px solid var(--tk-line); border-radius: 16px; box-shadow: var(--tk-shadow); color: var(--tk-ink); margin: 50px auto; max-width: 520px; padding: clamp(24px,5vw,42px); }
.tk-manager-login h1 { color: var(--tk-ink); font-size: clamp(28px,5vw,40px); margin: 5px 0 8px; }
.tk-manager-login p { color: var(--tk-muted); margin: 0 0 24px; }
.tk-manager-login form { margin-top: 20px; }
.tk-manager-login form + small { color: var(--tk-muted); display: block; margin-top: 16px; }
.tk-manager-login .btn-primary { background: var(--tk-teal); border-color: var(--tk-teal); }

.tk-topbar { align-items: center; background: linear-gradient(135deg,#fff 70%,#f2faf8); border: 1px solid var(--tk-line); border-radius: 16px 16px 0 0; box-shadow: 0 8px 26px rgba(23,38,63,.05); display: flex; justify-content: space-between; padding: 18px 24px; position: relative; z-index: 1; }
.tk-eyebrow,.tk-kicker { color: var(--tk-teal); display: block; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.tk-layout { background: linear-gradient(135deg,#f5f8fb,#eef4f7); border: 1px solid var(--tk-line); border-top: 0; display: grid; grid-template-columns: 270px minmax(0,1fr); min-height: 720px; }
.tk-nav { background: linear-gradient(180deg,#102840,#0d2035); box-shadow: inset -1px 0 rgba(255,255,255,.04); padding: 28px 14px; }
.tk-nav-button { align-items: center; background: transparent; border: 0; border-radius: 12px; color: #d5dfeb; display: flex; font-size: 17px; font-weight: 650; gap: 13px; line-height: 1.25; margin-bottom: 7px; padding: 13px 12px; text-align: left; transition: background-color .18s ease, color .18s ease, transform .18s ease; width: 100%; }
.tk-nav-button span { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.04); border-radius: 9px; display: inline-flex; flex: 0 0 34px; font-size: 18px; height: 34px; justify-content: center; width: 34px; }
.tk-nav-button:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }.tk-nav-button.is-active { background: #214462; box-shadow: 0 8px 20px rgba(0,0,0,.14); color: #fff; }.tk-nav-button.is-active span { background: var(--tk-lime); border-color: var(--tk-lime); color: #20321f; }
.tk-main { min-width: 0; padding: clamp(18px,3vw,40px); }
.tk-page-head,.tk-section-head,.tk-builder-head,.tk-toolbar,.tk-actions { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.tk-page-head { margin-bottom: 24px; }.tk-page-head h2 { margin-top: 4px; }.tk-page-head > div:first-child { max-width: 780px; }
.tk-actions { flex-wrap: wrap; justify-content: flex-end; }.tk-back { background: none; border: 0; color: var(--tk-teal); font-weight: 700; margin: 0 0 10px; padding: 0; }

.tk-hero { align-items: center; background: radial-gradient(circle at 88% 20%,rgba(217,240,100,.12),transparent 24%),linear-gradient(120deg,#0a756c,#07554f); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 12px 28px rgba(7,95,89,.14); color: #fff; display: flex; justify-content: space-between; margin-bottom: 18px; min-height: 125px; overflow: hidden; padding: 18px clamp(26px,3vw,38px); position: relative; }
.tk-hero h2 { color: #fff; font-size: clamp(25px,2.2vw,30px); line-height: 1.12; margin: 3px 0 5px; }.tk-hero p { color: #d9f4ef; font-size: 14px; margin-top: 0; max-width: 690px; }.tk-hero .tk-kicker { color: var(--tk-lime); }.tk-hero-mark { color: rgba(217,240,100,.26); font-size: 78px; font-weight: 900; line-height: .7; transform: rotate(-8deg); }
.tk-stats { display: grid; gap: 16px; grid-template-columns: repeat(4,1fr); margin-bottom: 22px; }.tk-stat { align-items: center; background: linear-gradient(145deg,#fff,#fbfdfd); border: 1px solid var(--tk-line); border-radius: 15px; box-shadow: 0 7px 20px rgba(23,38,63,.035); display: flex; gap: 15px; padding: 20px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }.tk-stat:hover { border-color: #b8d8d4; box-shadow: 0 12px 28px rgba(23,38,63,.08); transform: translateY(-2px); }.tk-stat > strong { color: var(--tk-teal); font-size: 31px; }.tk-stat div { display: flex; flex-direction: column; }.tk-stat span { color: var(--tk-muted); font-size: 12px; }
.tk-panel { background: rgba(255,255,255,.97); border: 1px solid var(--tk-line); border-radius: 16px; box-shadow: 0 8px 26px rgba(23,38,63,.045); padding: 22px; }.tk-grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr 1.3fr; }.tk-grid-classes { display: grid; gap: 20px; grid-template-columns: 300px minmax(0,1fr); }
.tk-grid-2 .tk-section-head h2 { font-size: clamp(23px,2vw,28px); line-height: 1.15; }
.tk-quick-actions { display: grid; gap: 10px; margin-top: 22px; }.tk-quick-actions button { background: #f7fafb; border: 1px solid var(--tk-line); border-radius: 10px; display: flex; flex-direction: column; padding: 15px; text-align: left; }.tk-quick-actions button:hover { border-color: var(--tk-teal); transform: translateY(-1px); }.tk-quick-actions span { color: var(--tk-muted); font-size: 12px; }
.tk-badge { background: #e6f4f2; border-radius: 99px; color: var(--tk-teal); font-weight: 700; padding: 3px 9px; }.tk-stack { display: grid; gap: 5px; margin: 15px 0; }.tk-class-item { background: transparent; border: 0; border-radius: 9px; display: flex; justify-content: space-between; padding: 11px; text-align: left; }.tk-class-item span { color: var(--tk-muted); font-size: 12px; }.tk-class-item:hover,.tk-class-item.is-active { background: #e7f3f1; color: var(--tk-teal-dark); }
.tk-toolbar { background: #f7f9fb; border-radius: 10px; justify-content: flex-start; margin: 20px 0; padding: 10px; }.tk-toolbar .form-control { min-width: 200px; }.tk-toolbar .form-select { max-width: 230px; }
.tk-import-box { background: linear-gradient(135deg,#f1faf8,#f8fbfc); border: 1px solid #cce3df; border-radius: 11px; margin-bottom: 18px; padding: 0 15px; }.tk-import-box summary { color: var(--tk-teal-dark); cursor: pointer; font-weight: 750; padding: 13px 0; }.tk-import-box[open] { padding-bottom: 16px; }.tk-import-box .tk-form-stack { align-items: flex-start; border-top: 1px solid #dcebe8; padding-top: 14px; }.tk-import-box .form-control { max-width: 620px; }
.tk-table { font-size: 14px; margin: 0; }.tk-table thead th { border-bottom-width: 1px; color: var(--tk-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }.tk-table td { vertical-align: middle; }.tk-table td small { color: var(--tk-muted); display: block; }.tk-table code { color: var(--tk-teal-dark); }
.tk-status { border-radius: 99px; display: inline-block; font-size: 11px; font-weight: 750; padding: 4px 8px; }.tk-status.is-good { background: #dcf4e7; color: #17683f; }.tk-status.is-muted { background: #e9edf2; color: #667085; }
.tk-empty { color: var(--tk-muted); padding: 22px; text-align: center; }.tk-empty-large { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 190px; }.tk-empty-large b { color: var(--tk-ink); font-size: 18px; }
.tk-test-list,.tk-assignment-list { display: grid; gap: 12px; }.tk-test-card { align-items: center; border: 1px solid var(--tk-line); border-radius: 12px; display: grid; gap: 16px; grid-template-columns: 54px 1fr auto; padding: 17px; }.tk-test-card:hover { border-color: #a9cbc7; box-shadow: var(--tk-shadow); }.tk-test-icon { align-items: center; background: #e4f3f1; border-radius: 12px; color: var(--tk-teal); display: flex; font-size: 20px; font-weight: 800; height: 54px; justify-content: center; }.tk-test-body h3 { margin-top: 4px; }.tk-test-meta { color: var(--tk-muted); display: flex; font-size: 12px; gap: 16px; margin-top: 8px; }.tk-card-actions { display: flex; gap: 6px; }
.tk-assignment-list article { align-items: center; border-bottom: 1px solid var(--tk-line); display: grid; gap: 20px; grid-template-columns: minmax(220px,1fr) 1.2fr auto; padding: 18px 4px; }.tk-assignment-list article:last-child { border: 0; }.tk-assignment-list dl { display: flex; gap: 30px; margin: 0; }.tk-assignment-list dl div { display: flex; flex-direction: column; }.tk-assignment-list dt { color: var(--tk-muted); font-size: 10px; text-transform: uppercase; }.tk-assignment-list dd { margin: 0; }

.tk-editor { display: grid; gap: 20px; }.tk-form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }.tk-span-2 { grid-column: 1/-1; }.tk-field,.tk-form-stack { display: flex; flex-direction: column; gap: 6px; }.tk-field > span,.tk-grade legend { color: #344054; font-size: 12px; font-weight: 750; }.tk-field small,.tk-help { color: var(--tk-muted); font-size: 12px; }.tk-check { align-items: center; display: flex; gap: 7px; }.tk-grade { align-items: end; background: #f7f9fb; border: 0; border-radius: 10px; display: flex; gap: 16px; padding: 15px; }.tk-grade legend { float: none; margin: 0; width: auto; }.tk-grade label { align-items: center; display: flex; gap: 6px; }.tk-grade input { max-width: 80px; }
.tk-builder-head { margin-top: 12px; }.tk-builder-head .form-select { width: 240px; }.tk-question-list { display: grid; gap: 16px; }.tk-question { background: #fff; border: 1px solid var(--tk-line); border-radius: 15px; overflow: hidden; }.tk-question-head { align-items: center; background: #f6f8fa; border-bottom: 1px solid var(--tk-line); display: grid; gap: 10px; grid-template-columns: 38px minmax(180px,300px) 110px 1fr; padding: 12px 16px; }.tk-number { align-items: center; background: var(--tk-teal); border-radius: 50%; color: #fff; display: inline-flex; font-weight: 800; height: 32px; justify-content: center; width: 32px; }.tk-question-head label { align-items: center; display: flex; font-size: 12px; gap: 6px; }.tk-question-head label input { width: 70px; }.tk-icon-actions { display: flex; gap: 5px; justify-self: end; }.tk-icon-actions button { background: #fff; border: 1px solid var(--tk-line); border-radius: 6px; height: 32px; width: 32px; }.tk-question-body { display: grid; gap: 18px; padding: 20px; }.tk-image-row { align-items: start; background: #f8fafb; border: 1px dashed #cbd5df; border-radius: 10px; display: grid; gap: 16px; grid-template-columns: 180px 1fr; padding: 14px; }.tk-image-preview { align-items: center; background: #e9eef2; border-radius: 8px; color: var(--tk-muted); display: flex; justify-content: center; min-height: 120px; overflow: hidden; }.tk-image-preview img { display: block; height: auto; max-height: 180px; max-width: 100%; object-fit: contain; }
.tk-bank { border: 2px solid #afd6d1; box-shadow: var(--tk-shadow); }.tk-bank-items { border: 1px solid var(--tk-line); border-radius: 10px; max-height: 330px; overflow: auto; }.tk-bank-item { align-items: start; border-bottom: 1px solid var(--tk-line); display: flex; gap: 12px; padding: 12px; }.tk-bank-item:hover { background: #f4faf9; }.tk-bank-item:last-child { border: 0; }.tk-bank-item span { display: flex; flex-direction: column; }.tk-bank-item small { color: var(--tk-muted); }.tk-bank-footer { align-items: center; display: flex; justify-content: space-between; padding-top: 14px; }
.tk-grade-pill { align-items: center; border-radius: 50%; display: inline-flex; font-weight: 800; height: 30px; justify-content: center; width: 30px; }.grade-5,.grade-4 { background:#dcf4e7;color:#17683f;}.grade-3 {background:#fff1bf;color:#7a5a00}.grade-2,.grade-1{background:#fee4df;color:#9e321e}
.tk-result-summary{align-items:center;background:#f4f7f8;border-radius:10px;display:flex;justify-content:space-between;margin-bottom:15px;padding:12px}.tk-result-questions{display:grid;gap:9px}.tk-result-question{border-left:4px solid;border-radius:8px;padding:10px 12px}.tk-result-question.is-correct{background:#edf8f2;border-color:#41a36f}.tk-result-question.is-wrong{background:#fff1ee;border-color:#de735b}.tk-result-question>div{align-items:start;display:grid;gap:8px;grid-template-columns:25px 1fr auto}.tk-result-question p{color:var(--tk-ink);margin:7px 0 0}.tk-result-question p small{color:var(--tk-muted);display:block;font-size:10px;text-transform:uppercase}
.tk-notice { border-radius: 10px; font-weight: 650; margin-bottom: 14px; padding: 12px 16px; }.tk-notice.is-success { background:#dcf4e7;color:#17683f;}.tk-notice.is-error{background:#fee4df;color:#9e321e;}

.tk-modal-backdrop { align-items: center; background: rgba(12,25,42,.62); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 10050; }.tk-modal { background:#fff;border-radius:15px;box-shadow:0 30px 80px rgba(0,0,0,.3);max-height:90vh;max-width:650px;overflow:auto;width:100%;}.tk-modal header,.tk-modal footer{align-items:center;border-bottom:1px solid var(--tk-line);display:flex;justify-content:space-between;padding:17px 22px}.tk-modal footer{border-bottom:0;border-top:1px solid var(--tk-line);gap:10px;justify-content:flex-end}.tk-modal header button{background:none;border:0;font-size:28px}.tk-modal-body{padding:22px}.tk-form-stack{gap:15px}

@media (max-width: 1100px) { .tk-stats { grid-template-columns:1fr 1fr; }.tk-grid-2,.tk-grid-classes{grid-template-columns:1fr}.tk-layout{grid-template-columns:76px minmax(0,1fr)}.tk-nav-button{justify-content:center}.tk-nav-button:not(.is-active){font-size:0}.tk-nav-button.is-active{font-size:0}.tk-nav-button span{font-size:17px}.tk-assignment-list article{grid-template-columns:1fr}.tk-assignment-list dl{flex-wrap:wrap}.tk-card-actions{flex-wrap:wrap} }
@media (max-width: 700px) { .tk-topbar{border-radius:0}.tk-layout{display:block}.tk-nav{display:flex;overflow:auto;padding:8px}.tk-nav-button,.tk-nav-button.is-active{font-size:0;margin:0;width:auto}.tk-main{padding:15px}.tk-page-head,.tk-builder-head{align-items:flex-start;flex-direction:column}.tk-stats,.tk-grid-2,.tk-form-grid{grid-template-columns:1fr}.tk-span-2{grid-column:auto}.tk-test-card{grid-template-columns:45px 1fr}.tk-card-actions{grid-column:1/-1}.tk-toolbar{align-items:stretch;flex-direction:column}.tk-toolbar .form-select{max-width:none}.tk-grade{align-items:stretch;flex-wrap:wrap}.tk-question-head{grid-template-columns:35px 1fr}.tk-question-head>label,.tk-icon-actions{grid-column:2}.tk-image-row{grid-template-columns:1fr}.tk-hero-mark{display:none} }
