/* ==========================================================================
   Learn First – giriş / kayıt ekranları, öğrenci paneli ve öğretmen paneli
   ========================================================================== */

/* ---------- Form ekleri ---------- */
.field input[type="password"], .field input[type="search"], .field input[type="number"], .field input[type="url"] {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field__control { position: relative; }
.field__control input { padding-right: 48px !important; }
.field__reveal {
    position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px;
    border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer;
}
.field__reveal:hover, .field__reveal[aria-pressed="true"] { color: var(--primary); background: var(--surface-2); }
.field__reveal .i { width: 19px; height: 19px; }
.field__help { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.field__help ul { margin: 4px 0 0; padding-left: 18px; }
.field--full { grid-column: 1 / -1; }
.field--check { gap: 4px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.check a { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form--tight { gap: 12px; }
/* Yetkisi olmayana form salt okunur gösterilir (<fieldset disabled>) */
.form-fieldset { display: grid; gap: inherit; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-fieldset:disabled input, .form-fieldset:disabled select, .form-fieldset:disabled textarea { opacity: .75; cursor: default; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.checklist { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.checklist legend { margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; }
.btn--danger { color: var(--danger) !important; }
.btn--danger:hover { border-color: var(--danger) !important; }
.link-button { padding: 0; border: 0; background: none; color: var(--primary); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.small { font-size: 13px; }
.stack { display: grid; gap: 12px; }
.stack .btn--block { white-space: normal; text-align: center; }

/* ---------- Giriş / kayıt ---------- */
.auth { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(28px, 6vw, 72px); }
.auth__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth__grid {
    display: grid; grid-template-columns: 1fr 1.08fr; max-width: 1060px; margin-inline: auto; overflow: hidden;
    border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.auth__brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: clamp(32px, 5vw, 56px);
    color: #fff; background: radial-gradient(130% 120% at 0% 0%, #23599f 0%, var(--navy) 50%, var(--navy-deep) 100%);
}
.auth__brand::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgb(246 154 49 / .35), transparent 68%);
}
.auth__mark { width: 60px; height: 60px; }
.auth__mark .mark__sq, :root[data-theme="dark"] .auth__mark .mark__sq { fill: rgb(255 255 255 / .9); }
.auth__mark .mark__sq { animation: sq-pop .5s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms + .2s); }
.auth__brand h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.auth__perks { position: relative; z-index: 1; display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.auth__perks li { display: flex; align-items: center; gap: 12px; color: rgb(255 255 255 / .86); line-height: 1.45; }
.auth__perks .icon-tile { width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / .1); color: #ffb45c; }
.auth__perks .icon-tile .i { width: 20px; height: 20px; }
.auth__motto { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; font-family: var(--font-heading); font-style: italic; color: rgb(255 255 255 / .72); }
.auth__card { display: grid; align-content: center; padding: clamp(28px, 5vw, 56px); }
.auth__card h1 { font-size: clamp(28px, 3vw, 38px); }
.auth__card .alert { margin: 0 0 16px; }
.auth__lead { margin: 8px 0 26px; color: var(--muted); }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.auth__row a { font-weight: 600; text-decoration: none; }
.auth__switch { margin-top: 24px; text-align: center; color: var(--muted); }
.auth__switch a { font-weight: 600; }
.auth__hint { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.auth .success { padding: 8px 0; }
.success__icon--warn { background: var(--warning-soft); color: #b45309; }

/* ---------- Panel iskeleti ---------- */
.panel-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 32px 80px; }
.panel-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.panel-user { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.panel-user strong { display: block; font-size: 15px; line-height: 1.3; }
.panel-user small { color: var(--muted); font-size: 12.5px; }
.panel-nav { display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.panel-nav a, .panel-nav button {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none;
    color: var(--text); font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.panel-nav a:hover, .panel-nav button:hover { background: var(--surface-2); }
.panel-nav a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.panel-nav .i { width: 19px; height: 19px; }
.panel-nav .panel-nav__ext { width: 14px; height: 14px; margin-left: auto; opacity: .5; }
.panel-nav__label { padding: 12px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel-nav form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.panel-main { display: grid; gap: 22px; min-width: 0; }
.panel-main > .alert { margin: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.panel-head--person { align-items: center; }
.panel-head h1 { margin: 6px 0; font-size: clamp(28px, 3.2vw, 40px); }
.panel-head .crumbs { margin-bottom: 4px; }
.panel-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi {
    display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 18px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
    transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.kpi .icon-tile { grid-row: span 3; }
.kpi__label { font-size: 13px; color: var(--muted); }
.kpi__value { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.kpi__value--sm { font-family: var(--font); font-size: 16px; }
.kpi__sub { grid-column: 2; font-size: 12px; color: var(--muted); }
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }

.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.panel-card { min-width: 0; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.panel-card--span2 { grid-column: span 2; }
.panel-stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.panel-card--flush { overflow: hidden; padding: 0; }
.panel-card--narrow { max-width: 780px; }
.panel-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.panel-card__head h2 { font-size: 21px; }
.panel-card__head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; color: var(--muted); text-align: center; }

/* ---------- Grafikler ---------- */
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--border); stroke-dasharray: 3 4; }
.chart__tick, .chart__label, .chart__target-label { fill: var(--muted); font-family: var(--font); font-size: 12px; }
.chart__line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart__stop-a { stop-color: var(--primary); stop-opacity: .26; }
.chart__stop-b { stop-color: var(--primary); stop-opacity: 0; }
.chart__dot { fill: var(--surface); stroke: var(--primary); stroke-width: 3; cursor: help; transition: r .2s; }
.chart__dot:hover { r: 7; }
.chart__target { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.chart__target-label { fill: var(--accent-strong); font-weight: 700; }
.chart__bar { fill: var(--primary); opacity: .85; cursor: help; transition: opacity .2s; }
.chart__bar:hover { opacity: 1; }
.chart__bar--today { fill: var(--accent); }

/* ---------- Tablolar ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    padding: 10px 14px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700;
    letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap;
}
.panel-card:not(.panel-card--flush) .data-table th:first-child { border-radius: 10px 0 0 10px; }
.panel-card:not(.panel-card--flush) .data-table th:last-child { border-radius: 0 10px 10px 0; }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table a { font-weight: 600; text-decoration: none; }
.data-table tr.is-muted td { opacity: .6; }
.data-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.nowrap { white-space: nowrap; }
.cell-strong { font-weight: 700; }
.cell-sub { display: block; font-size: 12.5px; color: var(--muted); }
.cell-exam { min-width: 170px; }
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
    font-size: 11.5px; font-weight: 700; vertical-align: middle; white-space: nowrap;
}
.tag--group { background: var(--primary-soft); color: var(--primary); }
.tag--ok { background: var(--success-soft); color: var(--success); }
.pct { display: inline-block; min-width: 48px; padding: 2px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; text-align: center; }
.pct--good { background: var(--success-soft); color: var(--success); }
.pct--mid { background: var(--warning-soft); color: #b45309; }
:root[data-theme="dark"] .pct--mid { color: #fbbf24; }
.pct--low { background: var(--danger-soft); color: var(--danger); }

/* Kişiler, notlar, gruplar */
.person { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.person strong { display: block; line-height: 1.3; }
.person small { display: block; font-size: 12.5px; color: var(--muted); }
a.person:hover strong { color: var(--primary); }
.person--lg { align-items: flex-start; gap: 18px; }
.people { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.people a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background .2s; }
.people a:hover { background: var(--surface-2); }
.people strong { display: block; font-size: 14.5px; line-height: 1.3; }
.people small { display: block; font-size: 12.5px; color: var(--muted); }
.notes { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.notes--compact { max-height: 440px; margin-top: 18px; overflow-y: auto; }
.notes--compact .note > .avatar { display: none; }
.note { display: flex; align-items: flex-start; gap: 12px; }
.note > div { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--surface-2); }
.note p { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.note small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.note__delete button { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.note__delete button:hover { background: var(--danger-soft); color: var(--danger); }
.note__delete .i { width: 17px; height: 17px; }
.group-list { display: grid; gap: 2px; margin: 0; padding: 8px; list-style: none; }
.group-list a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background .2s; }
.group-list a:hover { background: var(--surface-2); }
.group-list__text { flex: 1; min-width: 0; }
.group-list__text strong { display: block; }
.group-list__text small { display: block; font-size: 12.5px; color: var(--muted); }

/* Hedef, sınav kartları, uyarı kutuları */
.target { font-size: 17px; }
.target strong { font-family: var(--font-display); font-size: 26px; color: var(--primary); }
.meter { height: 10px; margin: 12px 0 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffc27a); }
.group-info { display: grid; gap: 2px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.group-info small { color: var(--muted); }
.exam-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.exam-tile { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); }
.exam-tile .btn { margin-top: 6px; }
.notice {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
    border-radius: 16px; background: var(--primary-soft);
}
.notice .i { color: var(--primary); }
.link-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px;
    border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent);
}
.link-box > div:first-child { flex: 1 1 360px; min-width: 0; }
.link-box strong { display: inline-flex; align-items: center; gap: 8px; }
.link-box__input {
    width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 13px;
}
.link-box__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-zone { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }

/* Filtreler ve toplu işlem */
.filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--border);
}
.filters__search { position: relative; flex: 1 1 240px; }
.filters__search .i { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.filters__search input { width: 100%; padding: 10px 12px 10px 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.filters select, .bulk-bar select {
    padding: 10px 34px 10px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; cursor: pointer;
    appearance: none; -webkit-appearance: none; background: var(--bg) no-repeat right 10px center / 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357657d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.filters input:focus, .filters select:focus, .bulk-bar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.bulk-bar__count { margin-right: auto; font-size: 13px; color: var(--muted); }
[data-bulk]:not(.has-selection) .bulk-bar select, [data-bulk]:not(.has-selection) .bulk-bar button { opacity: .45; pointer-events: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pager__info { font-size: 13.5px; color: var(--muted); }

/* ---------- Duyarlı düzen ---------- */
/* ─── Rol bazlı giriş ekranları ───────────────────────────────────────────── */
.auth { --role: var(--primary); --role-soft: var(--primary-soft); }
.auth--teacher { --role: #0f766e; --role-soft: #dff5f1; }
.auth--admin { --role: #1e293b; --role-soft: #e2e8f0; }
:root[data-theme="dark"] .auth--teacher { --role: #5eead4; --role-soft: #0e2f2c; }
:root[data-theme="dark"] .auth--admin { --role: #cbd5e1; --role-soft: #1e293b; }
.auth--teacher .auth__brand { background: radial-gradient(130% 120% at 0% 0%, #17a394 0%, #0f6b63 48%, #073b37 100%); }
.auth--teacher .auth__brand::after { background: radial-gradient(circle, rgb(250 204 21 / .28), transparent 68%); }
.auth--teacher .auth__perks .icon-tile { color: #fde68a; }
.auth--admin .auth__brand { background: radial-gradient(130% 120% at 0% 0%, #3b4a63 0%, #1e293b 50%, #0b1220 100%); }
.auth--admin .auth__brand::after { background: radial-gradient(circle, rgb(148 163 184 / .3), transparent 68%); }
.auth--admin .auth__perks .icon-tile { color: #93c5fd; }
.auth__role {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-bottom: 14px; padding: 6px 14px 6px 10px;
    border-radius: 999px; background: var(--role-soft); color: var(--role); font-size: 13px; font-weight: 700;
}
.auth__role .i { width: 17px; height: 17px; }
.auth--teacher .auth__submit, .auth--admin .auth__submit { background: var(--role); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .auth--teacher .auth__submit, :root[data-theme="dark"] .auth--admin .auth__submit { color: #0a1224; }
.auth--teacher .auth__submit:hover, .auth--admin .auth__submit:hover { filter: brightness(1.08); }
.auth__roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.auth__roles a {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
    color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s;
}
.auth__roles a:hover { color: var(--primary); border-color: var(--primary); }
.auth__roles .i { width: 15px; height: 15px; }
.auth__privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.auth__privacy .i { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.alert--warning { display: grid; gap: 10px; justify-items: start; background: var(--warning-soft); color: var(--text); margin: 0 0 16px; }
.alert--warning p { display: flex; gap: 8px; align-items: flex-start; }
.alert--warning .i, .alert--error .i { width: 18px; height: 18px; flex: none; }
.alert--info { background: var(--primary-soft); margin: 0 0 16px; }
.inline-form { display: inline; }

/* ─── Panel: roller, rozetler, karşılama ──────────────────────────────────── */
.role-chip { display: inline-block; width: max-content; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.role-chip--student { background: var(--primary-soft); color: var(--primary); }
.role-chip--teacher { background: #dff5f1; color: #0f766e; }
.role-chip--admin { background: #e2e8f0; color: #1e293b; }
:root[data-theme="dark"] .role-chip--teacher { background: #0e2f2c; color: #5eead4; }
:root[data-theme="dark"] .role-chip--admin { background: #1e293b; color: #cbd5e1; }
.nav-badge {
    margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
    font-size: 11.5px; font-weight: 700; text-align: center;
}
.nav-badge--accent { background: var(--accent); color: var(--on-accent); }
.panel-hero {
    display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 18px 28px; padding: clamp(22px, 3vw, 30px);
    border-radius: 26px; border: 1px solid var(--border);
    background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%), var(--surface);
}
.panel-hero h1 { margin: 6px 0; font-size: clamp(28px, 3.2vw, 40px); }
.panel-hero > div:first-child { flex: 1 1 360px; }
.panel-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.countdown {
    display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 180px; padding: 18px 22px; border-radius: 22px;
    background: linear-gradient(150deg, var(--navy-2), var(--navy-deep)); color: #fff; text-align: center; text-decoration: none;
}
.countdown strong { font-family: var(--font-display); font-size: 46px; line-height: 1; }
.countdown strong .i { width: 34px; height: 34px; }
.countdown span { font-weight: 600; }
.countdown small { margin-top: 6px; font-size: 12.5px; color: rgb(255 255 255 / .75); }
.countdown--past { background: linear-gradient(150deg, #15803d, #0b4d26); }
.countdown--empty { background: var(--surface-2); color: var(--text); border: 1px dashed var(--border); }
.countdown--empty strong { color: var(--primary); }
.countdown--empty small { color: var(--muted); }
.countdown--empty:hover { border-color: var(--primary); }
.notice--warn { background: var(--warning-soft); }
.notice--warn .i { color: #b45309; }
:root[data-theme="dark"] .notice--warn .i { color: #fbbf24; }
.notice > span { flex: 1; }
.kpis--6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Çok kutulu satırda simge etiketin yanına alınır, değer tüm genişliği kullanır */
.kpis--6 .kpi { grid-template-columns: auto 1fr; align-content: start; row-gap: 6px; column-gap: 10px; padding: 16px; }
.kpis--6 .kpi .icon-tile { grid-row: auto; width: 34px; height: 34px; border-radius: 10px; }
.kpis--6 .kpi .icon-tile .i { width: 17px; height: 17px; }
.kpis--6 .kpi__value, .kpis--6 .kpi__sub { grid-column: 1 / -1; }
.panel-head h1 .status { margin-left: 10px; font-family: var(--font); font-size: 14px; vertical-align: middle; }
.kpi__value small { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi--live .icon-tile { position: relative; }
.kpi--live .icon-tile::after {
    content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 3px var(--surface); animation: live-pulse 2s ease-in-out infinite;
}
.kpi--warn .kpi__value { color: var(--danger); }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px rgb(34 197 94 / .25); } }
.empty--ok .icon-tile { background: var(--success-soft); color: var(--success); }

/* Etiketler ve durum */
.tag .i { width: 12px; height: 12px; vertical-align: -2px; }
.tag--warn { background: var(--warning-soft); color: #b45309; }
.tag--danger { background: var(--danger-soft); color: var(--danger); }
.tag--info { background: var(--primary-soft); color: var(--primary); }
.tag--accent { background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .tag--warn { color: #fbbf24; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.status--online { color: var(--success); }
.status--online::before { opacity: 1; animation: live-pulse 2s ease-in-out infinite; box-shadow: 0 0 0 0 transparent; }
.status--open { color: #b45309; }
:root[data-theme="dark"] .status--open { color: #fbbf24; }
.avatar--online { position: relative; }
.avatar--online::after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 2px var(--surface);
}
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.people__row { display: flex; align-items: center; gap: 12px; padding: 8px; }
.people__row strong { display: block; font-size: 14.5px; }
.people__row small { display: block; font-size: 12.5px; color: var(--muted); }
.link-button--danger { color: var(--danger); }
.prose-text { font-size: 15.5px; line-height: 1.7; }

/* Ödevler (öğrenci) */
.tasks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.task {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: 16px; border: 1px solid var(--border); background: var(--bg);
}
.task__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.task__icon .i { width: 20px; height: 20px; }
.task__body { min-width: 0; }
.task__body strong { display: block; font-size: 15.5px; }
.task__body p { margin-top: 3px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.task__meta > span:not(.tag) .i { width: 13px; height: 13px; vertical-align: -2px; }
.task--overdue { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.task--overdue .task__icon { background: var(--danger-soft); color: var(--danger); }
.task--done { opacity: .82; }
.task--done .task__icon { background: var(--success-soft); color: var(--success); }
.task--done .task__body strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }

/* Duyurular */
.announces { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.announce { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.announce header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.announce header strong { display: flex; align-items: center; gap: 6px; }
.announce header .i { width: 15px; height: 15px; color: var(--accent-strong); }
.announce p { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.announce small { font-size: 12px; color: var(--muted); }
.announce footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.announce footer form { display: flex; gap: 14px; }
.announce--pinned { background: var(--accent-soft); }
.announce__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.announce__link .i { width: 15px; height: 15px; }

/* Güçlü / zayıf yönler */
.skill-tip { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14.5px; }
.skill-tip .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent-strong); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.skills h3 { margin-bottom: 10px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.skill { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 2px 10px; margin-bottom: 12px; }
.skill__label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.skill__bar { height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.skill__fill { display: block; height: 100%; border-radius: inherit; transition: width .8s var(--ease-out); }
.skill__fill--good { background: linear-gradient(90deg, #16a34a, #4ade80); }
.skill__fill--mid { background: linear-gradient(90deg, #d97706, #fbbf24); }
.skill__fill--low { background: linear-gradient(90deg, #dc2626, #f87171); }
.skill__pct { font-size: 13.5px; font-weight: 700; text-align: right; }
.skill__meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.skill--domain { margin-bottom: 4px; }
.skill--domain .skill__label small.tag { font-size: 11px; vertical-align: 1px; }
.skill-rows { list-style: none; margin: 0 0 16px; padding: 0 0 0 10px; border-left: 2px solid var(--border); display: grid; gap: 4px; }
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; font-size: 13.5px; }
.skill-row small { color: var(--muted); font-size: 12px; text-align: right; }
.skill-row > span:first-child small { display: block; text-align: left; }
.skills__advice-title { margin-top: 18px; }
.skill-advice { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.skill-advice li { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.skill-advice p { margin-top: 4px; color: var(--muted); }
/* Öğretmen: değerlendirme ve sınav analizi */
.review-player { display: grid; gap: 14px; }
.review-task { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.review-task h3 { font-size: 15px; margin-bottom: 6px; }
.review-task audio { width: 100%; margin-top: 8px; }
.review-task .rt-prompt { font-size: 14px; color: var(--muted); }
.rubric { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rubric label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.rubric small { font-weight: 400; color: var(--muted); }
.rubric select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.band-preview { font-family: var(--font-display); font-size: 28px; color: var(--primary); }
.item-table td.num, .item-table th.num { text-align: right; }
.item-table tr.is-suspect td { background: var(--warning-soft); }
.filters--inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

/* Ödevler (öğretmen) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); width: max-content; max-width: 100%; }
.tabs a {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
    color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
.tabs a .i { width: 16px; height: 16px; }
.tabs a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.assign-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.assign-card {
    display: grid; align-content: start; gap: 8px; padding: 18px; border-radius: 18px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease-out);
}
.assign-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.assign-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assign-card strong { font-size: 16px; line-height: 1.35; }
.assign-card--overdue { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.progress { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #4f80c8); }
.progress--lg { height: 12px; margin-top: 8px; grid-column: 2; }
.assign-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.assign-list a {
    display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; align-items: center; gap: 14px; padding: 10px;
    border-radius: 12px; color: var(--text); text-decoration: none;
}
.assign-list a:hover { background: var(--surface-2); }
.assign-list__text strong { display: block; }
.assign-list__text small { display: block; font-size: 12.5px; color: var(--muted); }
.assign-list__count { font-size: 13px; font-weight: 700; }
.mini-tasks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-tasks li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; }
.mini-tasks li > a { text-decoration: none; }
.mini-tasks small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.mini-tasks__state { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.mini-tasks__state--done { background: var(--success); }
.mini-tasks__state--late { background: #d97706; }
.mini-tasks__state--overdue { background: var(--danger); }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); width: max-content; max-width: 100%; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.audience { border: 0; padding: 0; margin: 0; }
.audience legend { margin-bottom: 8px; font-weight: 600; font-size: 14px; }

/* Zaman çizelgesi */
.timeline { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 4px; list-style: none; max-height: 560px; overflow-y: auto; }
.timeline__item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -14px; width: 2px; background: var(--border); }
.timeline__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.timeline__icon .i { width: 15px; height: 15px; }
.timeline__item--login .timeline__icon { background: var(--primary-soft); color: var(--primary); }
.timeline__item--exam .timeline__icon { background: var(--accent-soft); color: var(--accent-strong); }
.timeline__item--assignment .timeline__icon { background: var(--success-soft); color: var(--success); }
.timeline__item span, .timeline__item a { display: block; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.timeline__item a { font-weight: 600; text-decoration: none; }
.timeline__item small { display: block; font-size: 12px; color: var(--muted); }
.filters__search--sm { flex: 0 1 190px; min-width: 150px; }

.sessions-table td { vertical-align: top; }
.cell-sub.status--open { color: #b45309; font-weight: 600; }
:root[data-theme="dark"] .cell-sub.status--open { color: #fbbf24; }

@media (max-width: 1100px) {
    .panel-grid { grid-template-columns: 1fr 1fr; }
    .panel-card--span2 { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .panel-shell { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
    .panel-side { position: static; }
    .panel-user { display: none; }
    .panel-nav { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
    .panel-nav a, .panel-nav button { width: auto; white-space: nowrap; }
    .panel-nav__label, .panel-nav .panel-nav__ext { display: none; }
    .panel-nav form { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 860px) {
    .auth__grid { grid-template-columns: 1fr; }
    .auth__brand { gap: 12px; padding: 26px 28px; }
    .auth__perks, .auth__motto { display: none; }
}
@media (max-width: 720px) {
    .panel-grid, .form-row { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .kpi { padding: 14px; column-gap: 10px; }
    .kpi .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
    .kpi__value { font-size: 22px; }
    .person--lg .avatar--xl { width: 48px; height: 48px; font-size: 16px; }
}
@media (max-width: 600px) {
    /* Sonuç tabloları telefonda kart görünümüne geçer */
    .data-table--cards thead { display: none; }
    .data-table--cards tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
    .data-table--cards tbody tr:first-child { border-top: 0; }
    .data-table--cards td { padding: 0; border: 0; text-align: left !important; white-space: normal; }
    .data-table--cards td[data-label]::before {
        content: attr(data-label); display: block; margin-bottom: 1px; font-size: 10.5px; font-weight: 700;
        letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    }
    .data-table--cards .cell-wide { grid-column: 1 / -1; }
    .data-table--cards .cell-action { grid-column: 1 / -1; }
    .data-table--cards tbody tr:hover td { background: none; }
}
@media (max-width: 720px) {
    .skills { grid-template-columns: 1fr; }
    .task { grid-template-columns: auto 1fr; }
    .task__action { grid-column: 1 / -1; }
    .assign-list a { grid-template-columns: minmax(0, 1fr) auto; }
    .assign-list .progress { display: none; }
    .countdown { flex: 1 1 100%; grid-template-columns: auto auto; justify-content: start; gap: 4px 12px; text-align: left; }
    .countdown strong { font-size: 34px; grid-row: span 2; }
    .countdown small { margin-top: 0; }
}
