/* Renkler 1. hafta slaytlarının paletinden alındı */
:root {
    --bg: #F7E4D3;
    --card: #FDF6EF;
    --surface: #FFFFFF;
    --ink: #1F2A44;
    --muted: #6B6660;
    --line: #E8D3C0;
    --accent: #B4531F;
    --accent-dark: #8A3D14;
    --ok: #2E7D4F;
    --bad: #B3261E;
    --opt-0: #B4531F;
    --opt-1: #1F4E79;
    --opt-2: #2E7D4F;
    --opt-3: #7A4A9E;
    --opt-4: #A87400;
    --opt-5: #0E7C86;
    --radius: 14px;
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body { background: var(--bg); font-size: 17px; line-height: 1.45; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1:focus { outline: none; }
a { color: var(--accent-dark); }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.muted { color: var(--muted); }
.error { color: var(--bad); font-weight: 600; }
.fineprint { font-size: .8rem; color: var(--muted); }

.opt-0 { --c: var(--opt-0); } .opt-1 { --c: var(--opt-1); } .opt-2 { --c: var(--opt-2); }
.opt-3 { --c: var(--opt-3); } .opt-4 { --c: var(--opt-4); } .opt-5 { --c: var(--opt-5); }

/* ---------- Düğmeler ve formlar ---------- */

button, .button {
    font: inherit; font-weight: 700; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    border-radius: 10px; padding: .55em 1em; text-decoration: none; display: inline-block;
}
button:hover:not(:disabled), .button:hover { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, .button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--opt-1); outline-offset: 2px; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.wide { width: 100%; padding: .8em 1em; font-size: 1.05rem; }
.link { background: none; border: 0; color: var(--accent-dark); text-decoration: underline; padding: .4em 0; }
button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.form label { display: grid; gap: .3em; font-weight: 700; margin-bottom: 1em; }
.form small { font-weight: 400; color: var(--muted); }
input, textarea {
    font: inherit; width: 100%; padding: .7em .8em; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.pin-input { font-size: 1.8rem; letter-spacing: .15em; text-align: center; font-weight: 800; }

.card { background: var(--card); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 3px rgb(31 42 68 / 8%); margin-bottom: 1rem; }
.narrow { max-width: 460px; margin: 10vh auto; padding: 0 16px; }
.warn { background: #FFF1CC; color: #6B4E00; }

.pill { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .35em 1em; }
.pill--alt { background: var(--ink); }

/* ---------- Katılım sayfası ---------- */

.join { max-width: 460px; margin: 0 auto; padding: 8vh 16px 2rem; }
.join__brand { text-align: center; margin-bottom: 1.5rem; }
.join__kicker { color: var(--accent); font-weight: 800; letter-spacing: .12em; font-size: .8rem; margin: 0 0 .3em; }
.join__more { text-align: center; }

/* Duyurular (öğrenci sayfalarının üstünde, girişsiz) */
.announce { text-align: left; margin: 1rem 0; }
.announce__item { border-left: 5px solid var(--accent); }
.announce__kicker { color: var(--accent); font-weight: 800; letter-spacing: .1em; font-size: .75rem; margin: 0 0 .3em; }
.announce__title { font-size: 1.15rem; margin: 0 0 .4em; }
.announce__body { white-space: pre-line; margin: 0 0 .8em; overflow-wrap: anywhere; }
.announce__body:last-child { margin-bottom: 0; }
.announce-admin__row { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
    border-top: 1px solid var(--line); padding: .8rem 0; }
.announce-admin__row:first-of-type { border-top: 0; }
.announce-admin__row p { margin: .2em 0; }
.announce-admin__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.announce-admin__grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.join__sub { color: var(--muted); margin: 0; }
.confirm { text-align: center; }
.confirm__name { font-size: 1.8rem; font-weight: 800; margin: .2em 0 0; }
.confirm__program { color: var(--accent-dark); font-weight: 700; margin: 0 0 1.2em; }

/* ---------- Öğrenci ekranı ---------- */

.play { max-width: 560px; margin: 0 auto; padding: 0 16px 2rem; min-height: 100dvh; }
.play__loading { padding-top: 30vh; text-align: center; }
.play__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 1em; padding: .8rem 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.play__name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play__score { white-space: nowrap; }
.play__slide { width: 100%; border-radius: 10px; box-shadow: 0 2px 10px rgb(31 42 68 / 12%); display: block; }
.play__wait { text-align: center; color: var(--muted); }

.answer__label { color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .4em; }
.answer__prompt { font-size: 1.45rem; }
.answer__hint { color: var(--muted); }
.answer__mine { font-size: 1.05rem; }
.answer__explain { background: var(--card); border-radius: 10px; padding: .8em 1em; }
.answer__bonus { font-weight: 800; color: var(--accent-dark); }
.answer__timer { text-align: right; }
.answer__reason { display: grid; gap: .3em; font-weight: 700; margin: 1em 0; }
.answer--center { text-align: center; padding-top: 10vh; }

.choices { display: grid; gap: .6rem; margin: .5rem 0 1rem; }
.choice {
    display: flex; align-items: center; gap: .8em; text-align: left; width: 100%;
    padding: 1em; font-size: 1.1rem; border: 2px solid var(--c); background: var(--surface);
    min-height: 64px;
}
.choice__letter { flex: none; width: 2em; height: 2em; display: grid; place-items: center; border-radius: 8px; background: var(--c); color: #fff; font-weight: 800; }
.choice--selected { background: var(--c); color: #fff; }
.choice--selected .choice__letter { background: #fff; color: var(--c); }

.status { font-size: 1.4rem; font-weight: 800; text-align: center; padding: 1rem; border-radius: var(--radius); background: var(--card); margin: 1rem 0; }
.status--ok { color: var(--ok); }
.status--correct { background: var(--ok); color: #fff; }
.status--wrong { background: var(--bad); color: #fff; }

.wordform { display: flex; gap: .5rem; }
.wordform input { flex: 1; }
.myentries { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.myentries li { background: var(--card); border-radius: 999px; padding: .3em .9em; font-weight: 700; }

.countdown { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .4em; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown--low { background: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .countdown--low { animation: none; } }

/* ---------- Sonuç çubukları ---------- */

.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .5em; }
.bar {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: .7em;
    background: var(--surface); border: 2px solid var(--c); border-radius: 12px; padding: .5em .8em;
}
.bar > :not(.bar__fill, .bar__ghost) { position: relative; }
.bar__fill { position: absolute; inset: 0 auto 0 0; background: var(--c); opacity: .22; transition: width .5s ease; }
.bar__ghost { position: absolute; inset: 0 auto 0 0; border-right: 3px dashed var(--c); opacity: .6; }
.bar__letter { flex: none; width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 8px; background: var(--c); color: #fff; font-weight: 800; }
.bar__text { flex: 1; font-weight: 700; }
.bar__value { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__value small { font-weight: 600; color: var(--muted); }
.bar__check { font-weight: 900; color: var(--ok); }
.bar--correct { border-width: 3px; border-color: var(--ok); box-shadow: 0 0 0 3px rgb(46 125 79 / 25%); }
.bar--dim { opacity: .45; }
.bar--mine { outline: 3px solid var(--ink); outline-offset: 1px; }

/* ---------- Kelime bulutu ---------- */

.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15em .6em; padding: .5em; line-height: 1.1; }
.cloud__word { color: var(--c); font-weight: 800; background: none; border: 0; padding: 0 .1em; animation: pop .35s ease-out; }
.cloud--moderate .cloud__word { cursor: pointer; font-size: 1rem; }
.cloud__word--hidden { text-decoration: line-through; opacity: .35; }
.cloud-empty { color: var(--muted); text-align: center; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cloud__word { animation: none; } }

/* ---------- Duvar ve pano (projeksiyon) ---------- */

.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; align-content: start; }
.wall__card {
    position: relative; background: var(--surface); border-radius: 12px; padding: .7em .9em 1.3em;
    border-top: .35em solid var(--c); box-shadow: 0 1px 3px rgb(31 42 68 / 10%); animation: pop .35s ease-out;
    font-size: 1.05em; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
}
.wall__card p { margin: 0; }
.wall__likes { position: absolute; right: .7em; bottom: .3em; font-weight: 800; color: var(--c); font-size: .9em; }
.wall__more { color: var(--muted); font-weight: 700; display: flex; gap: 1.5em; margin: .6em 0 0; }

.boardcols { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: .8em; flex: 1; min-height: 0; }
.boardcol { background: var(--card); border-radius: 12px; padding: .6em; display: flex; flex-direction: column; gap: .4em; overflow: hidden; border-top: .35em solid var(--c); }
.boardcol__head { display: flex; justify-content: space-between; align-items: center; font-size: 1.2em; color: var(--c); }
.boardcol__count { background: var(--c); color: #fff; border-radius: 999px; min-width: 1.6em; text-align: center; font-weight: 800; font-size: .8em; padding: .1em .4em; }
.boardcol__card { background: var(--surface); border-radius: 8px; padding: .35em .6em; font-weight: 700; animation: pop .35s ease-out; }
.boardcol__card--multi { box-shadow: inset 0 0 0 2px var(--c); }
.boardcol__card--multi::after { content: " ⧉"; color: var(--c); }
.boardcol__more, .boardcol__hint { color: var(--muted); margin: 0; font-size: .9em; }
.boardcol__hint { font-style: italic; }

.classnote {
    position: absolute; left: 1.2cqw; bottom: 1.2cqw; font-size: 1.05cqw; font-weight: 700;
    background: var(--ink); color: #fff; border-radius: 999px; padding: .35em 1em;
}

/* ---------- Duvar ve pano (öğrenci) ---------- */

.postform { display: grid; gap: .6rem; }
.colpick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.colpick__btn { display: grid; gap: .1em; text-align: left; border: 2px solid var(--c); background: var(--surface); min-height: 56px; }
.colpick__btn small { font-weight: 600; color: var(--muted); }
.colpick__btn--on { background: var(--c); color: #fff; }
.colpick__btn--on small { color: rgb(255 255 255 / 85%); }
.answer__sub { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.answer__sub small { font-weight: 600; color: var(--muted); }
.myposts, .likes, .modlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mypost { background: var(--card); border-radius: 10px; padding: .6em .8em; display: grid; gap: .2em; }
.mypost small { color: var(--accent-dark); font-weight: 700; }
.mypost em { font-size: .8rem; color: var(--muted); font-style: normal; }
.mypost--hidden span { text-decoration: line-through; opacity: .6; }
.likes li { display: flex; gap: .6rem; align-items: center; justify-content: space-between; background: var(--card); border-radius: 10px; padding: .5em .5em .5em .8em; }
.like { flex: none; min-width: 3.6em; color: var(--bad); }
.like--on { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ---------- Form ---------- */

.formfield { display: grid; gap: .3em; font-weight: 700; }
.formfield textarea { resize: vertical; }
.formfield__count { justify-self: end; font-weight: 600; color: var(--muted); }
.mypost__text, .modlist__text, .gallery__card p { white-space: pre-line; }
.votes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.vote { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: .3em .7em; text-align: left; font-weight: 600; background: var(--surface); }
.vote__no { font-weight: 900; color: var(--accent); }
.vote__mark { grid-column: 2; justify-self: end; font-size: .85rem; font-weight: 800; color: var(--accent-dark); }
.vote--on { border: 2px solid var(--accent); background: var(--card); }

.formcount { margin: auto; text-align: center; display: grid; gap: .2em; }
.formcount b { font-size: 6em; line-height: 1; color: var(--accent); }
.formcount span { font-size: 1.6em; font-weight: 800; }
.formcount p { color: var(--muted); margin: .6em 0 0; }
.gallery__hint { margin: 0 0 .6em; font-weight: 700; color: var(--accent-dark); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; align-content: start; }
.gallery--few { grid-template-columns: repeat(2, 1fr); font-size: 1.15em; }
.gallery__card {
    position: relative; background: var(--surface); border-radius: 12px; padding: .7em .9em 1.4em 2.6em;
    border-top: .35em solid var(--c); box-shadow: 0 1px 3px rgb(31 42 68 / 10%); animation: pop .35s ease-out;
    line-height: 1.3; overflow: hidden;
}
.gallery__card p { margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.gallery__no { position: absolute; left: .7em; top: .7em; font-weight: 900; color: var(--c); }
.gallery__votes { position: absolute; right: .7em; bottom: .3em; font-weight: 800; color: var(--c); }
.gallery__card--winner { box-shadow: 0 0 0 4px var(--c), 0 6px 18px rgb(31 42 68 / 20%); }
@media (prefers-reduced-motion: reduce) { .gallery__card { animation: none; } }

/* ---------- Ölçek ---------- */

.scale { list-style: none; padding: 0; margin: 0; display: grid; gap: .5em; }
.scale__item {
    display: grid; grid-template-columns: minmax(8em, 1.2fr) 2fr auto; align-items: center; gap: .3em .9em;
    background: var(--surface); border: 2px solid var(--c); border-radius: 12px; padding: .45em .8em .6em;
}
.scale--stage .scale__item { grid-template-columns: minmax(8em, 1.1fr) 2fr auto auto; }
.scale--compact .scale__item { grid-template-columns: 1fr auto; }
.scale--compact .scale__track { grid-column: 1 / -1; grid-row: 2; }
.scale__text { font-weight: 700; }
.scale__flag {
    display: inline-block; margin-left: .5em; background: var(--bad); color: #fff; border-radius: 999px; padding: .05em .6em;
    font-size: .7em; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}
.scale__item--low { box-shadow: 0 0 0 3px rgb(179 38 30 / 25%); }
.scale__track { position: relative; height: 1.1em; border-radius: 999px; background: var(--card); }
.scale__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--c); transition: width .5s ease; }
.scale__ghost { position: absolute; inset: -.2em auto -.2em 0; border-right: 3px dashed var(--ink); opacity: .6; }
.scale__mine { position: absolute; top: 100%; transform: translateX(-50%); border: .4em solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.scale__avg { font-weight: 900; font-size: 1.2em; font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.scale__dist { display: flex; align-items: flex-end; gap: .2em; height: 2.4em; }
.scale__col { width: 1.1em; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.scale__colfill { width: 100%; min-height: 1px; background: var(--c); opacity: .55; border-radius: 3px 3px 0 0; }
.scale__col small { font-size: .55em; color: var(--muted); line-height: 1.2; }
.scale__legend { color: var(--muted); font-weight: 600; margin: .5em 0 0; }
.stage-activity .scale--stage { font-size: 1.15em; gap: .4em; }
.stage-activity .scale--stage .scale__item { padding: .3em .8em .4em; }

.rate { display: grid; gap: .8rem; margin: .5rem 0 1rem; }
.rate__item { border: 2px solid var(--c); border-radius: 12px; padding: .6em .8em; margin: 0; background: var(--surface); }
.rate__item legend { font-weight: 700; padding: 0 .3em; }
.rate__values { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; }
.rate__btn { min-height: 48px; padding: 0; font-weight: 800; font-size: 1.1rem; border: 2px solid var(--c); background: var(--surface); }
.rate__btn--on { background: var(--c); color: #fff; }
.rate__ends { display: flex; justify-content: space-between; gap: 1em; margin: .3em 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Öneri ---------- */

.decision { background: var(--ink); color: #fff; border-radius: 14px; padding: .6em 1em; margin-bottom: .7em; animation: pop .35s ease-out; }
.decision__label { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8em; color: #FFD9A8; }
.decision__text { margin: .15em 0; font-size: 1.5em; font-weight: 800; }
.decision__target { font-size: .85em; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .decision { animation: none; } .scale__fill { transition: none; } }

.decisions { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.decisions li { border-left: 4px solid var(--accent); padding-left: .8em; }
.decisions__prompt { margin: 0; color: var(--muted); font-weight: 700; }
.decisions__winner { margin: .2em 0; font-size: 1.15rem; font-weight: 800; }

/* ---------- Rozetler ---------- */

.badge-chip { display: inline-flex; align-items: center; gap: .25em; background: var(--card); border-radius: 999px; padding: .15em .6em; margin: .1em .2em .1em 0; white-space: nowrap; }
.badge-chip small { font-weight: 700; color: var(--accent-dark); }
.board__badges { margin-left: .3em; letter-spacing: .1em; }
.badgeband { display: flex; flex-wrap: wrap; gap: .4em 1.4em; margin-top: auto; padding: .5em .9em; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.1em; animation: pop .35s ease-out; }
.badgeband__item b { color: #FFD9A8; margin-right: .3em; }
.badgewin { text-align: center; border: 3px solid var(--accent); animation: pop .35s ease-out; }
.badgewin__icon { font-size: 3.2rem; line-height: 1; margin: 0; }
.badgewin__title { font-size: 1.2rem; margin: .4em 0 .1em; }
.badgewin__rule { color: var(--muted); margin: 0 0 .8em; }
.mybadges { display: flex; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }
@media (prefers-reduced-motion: reduce) { .badgeband, .badgewin { animation: none; } }

/* ---------- Ödev ve taşınan cevaplar ---------- */

.homework .joinpanel__qr { max-width: 34%; }
.homework__url { font-size: 1.6em; font-weight: 900; color: var(--accent); word-break: break-all; margin: .2em 0 .6em; }
.homework__warn { color: var(--bad); font-weight: 700; }
.homework__card { display: grid; gap: .8rem; }
.homework__who { display: flex; flex-wrap: wrap; gap: .3em .8em; align-items: baseline; margin: 0; }
.homework__deadline { margin: 0; }
.homework__text { white-space: pre-line; max-width: 40em; }
.warn-text { color: var(--bad); font-weight: 700; }
.carry details > summary { cursor: pointer; list-style: none; }
.carry summary h2 { display: inline; }
.carry summary small, .carry h3 small { font-weight: 600; color: var(--muted); }
.carry h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.carry__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; max-height: 22rem; overflow: auto; }
.carry__list label { display: grid; grid-template-columns: auto 1fr; gap: .1em .6em; align-items: start; background: var(--surface); border-radius: 8px; padding: .4em .6em; cursor: pointer; }
.carry__list small { grid-column: 2; color: var(--muted); }
.carry__text { white-space: pre-line; }
.carry__actions { margin: .5rem 0; }
.mycarry summary { font-weight: 800; cursor: pointer; }
.mycarry__label { color: var(--accent-dark); font-weight: 700; margin: .8em 0 .2em; font-size: .9rem; }
.mycarry__text { white-space: pre-line; margin: 0; }

/* ---------- Moderasyon (kumanda) ---------- */

.modlist { margin-top: .8rem; }
.modlist__item { display: flex; justify-content: space-between; gap: .8rem; align-items: center; background: var(--surface); border-radius: 10px; padding: .6em .8em; border-left: 4px solid var(--ok); }
.modlist__item--pending { border-left-color: var(--opt-4); }
.modlist__item--hidden { border-left-color: var(--muted); opacity: .6; }
.modlist__text { margin: 0 0 .2em; font-weight: 700; }
.modlist__item small { color: var(--muted); }
.modlist__actions { display: flex; gap: .4rem; flex: none; }

.shifts { margin-top: .8em; }
.shifts__head { margin: 0 0 .3em; }
.shifts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .2em; }
.shifts li { display: flex; gap: .5em; align-items: baseline; }
.shifts__arrow { color: var(--accent); font-weight: 900; }
.shifts__none { color: var(--muted); }

/* ---------- Sıralama ---------- */

.board__title { text-align: center; }
.board__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45em; }
.board__row { display: flex; align-items: center; gap: .8em; background: var(--surface); border-radius: 12px; padding: .45em .9em; }
.board__rank { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: var(--line); font-weight: 800; }
.board__row--1 .board__rank { background: #E0A100; color: #fff; }
.board__row--2 .board__rank { background: #9AA3AE; color: #fff; }
.board__row--3 .board__rank { background: #B87333; color: #fff; }
.board__name { flex: 1; font-weight: 800; }
.board__name small { font-weight: 600; color: var(--muted); margin-left: .4em; }
.board__points { font-weight: 800; font-variant-numeric: tabular-nums; }
.board__empty { text-align: center; color: var(--muted); }

/* ---------- Sunum (projeksiyon) ---------- */

.present { position: fixed; inset: 0; background: #151515; display: grid; place-items: center; overflow: hidden; }
.frame {
    position: relative; width: min(100vw, 177.78vh); aspect-ratio: 16 / 9;
    container-type: inline-size; background: var(--bg);
}
.frame__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame__overlay {
    position: absolute; inset: 0; background: var(--bg); padding: 5.5cqw 6.5cqw 4.5cqw;
    font-size: 1.55cqw; overflow: hidden; animation: fade .25s ease-out;
}
.frame__overlay--center { display: grid; place-items: center; }
@keyframes fade { from { opacity: 0; } }

.joinchip {
    position: absolute; top: 1.2cqw; right: 1.2cqw; display: flex; gap: 1em; align-items: center;
    font-size: 1.05cqw; background: rgb(255 255 255 / 85%); color: var(--ink);
    border-radius: 999px; padding: .35em 1em; box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

.stage-activity { height: 100%; display: flex; flex-direction: column; }
.sa-head { display: flex; align-items: center; gap: .8em; margin-bottom: 1.2em; }
.sa-meta { margin-left: auto; display: flex; align-items: center; gap: 1em; }
.sa-count { font-size: 1.1em; }
.sa-phase { font-weight: 800; color: var(--accent-dark); }
.sa-prompt { font-size: 2.6em; font-weight: 800; margin: 0 0 .3em; }
.sa-desc { font-size: 1.15em; color: var(--muted); margin: 0 0 .8em; }
.sa-hint { font-size: 1.15em; font-weight: 700; color: var(--accent-dark); margin: 0; }
.sa-explain { font-size: 1.15em; background: var(--card); border-radius: 12px; padding: .7em 1em; margin: 0; }
.sa-body { display: grid; gap: 2em; align-items: start; margin-top: .4em; }
.sa-body--split { grid-template-columns: 1.75fr 1fr; }
.sa-aside { display: grid; gap: 1em; font-size: 1.1em; }
.stage-activity .bars--stage { gap: .6em; font-size: 1.3em; }
.stage-activity .bars--stage .bar { padding: .4em .8em; }
.stage-activity .bars--many { grid-template-columns: 1fr 1fr; font-size: 1.15em; }
.stage-activity .cloud { flex: 1; font-size: 1.9em; }
.stage-activity .countdown { font-size: 1.4em; }

.joinpanel { display: flex; align-items: center; gap: 4cqw; font-size: 1.8cqw; }
.joinpanel__qr { width: 26cqw; background: #fff; border-radius: 1.2cqw; padding: .8cqw; }
.joinpanel__qr svg { display: block; width: 100%; height: auto; }
.joinpanel__text p { margin: 0; }
.joinpanel__step { color: var(--muted); }
.joinpanel__host { font-size: 2.2em; font-weight: 800; margin-bottom: .6em !important; }
.joinpanel__pin { font-size: 4.2em; font-weight: 900; letter-spacing: .08em; color: var(--accent); line-height: 1; }
.joinpanel__count { margin-top: .8em !important; font-weight: 700; }

.frame__overlay .board { width: 60%; font-size: 1.4em; }

/* Sunum kontrol çubuğu: fare alta gelince görünür */
.controls { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.controls__group { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.controls__jump { font: inherit; font-weight: 700; max-width: 22em; padding: .5em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.controls--bar .controls__jump { background: #2B2B2B; color: #fff; border-color: #444; }
.controls--bar {
    position: fixed; left: 50%; bottom: 10px; transform: translate(-50%, calc(100% + 14px));
    max-width: calc(100vw - 20px); background: rgb(21 21 21 / 92%); color: #fff;
    padding: .5rem .8rem; border-radius: 14px; font-size: .9rem; transition: transform .2s ease;
}
.controls--bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 70px; }
/* Fareyle seçilen slayt listesi odakta kalsa bile çubuk slaytı kapatmasın; klavyeyle gezinmede görünür */
.controls--bar:hover, .controls--bar:has(:focus-visible) { transform: translate(-50%, 0); }
.controls--bar button { background: #2B2B2B; color: #fff; border-color: #444; }
.controls--bar button.primary { background: var(--accent); border-color: var(--accent); }
.controls--bar button.on { background: #fff; color: #151515; }
.controls--panel { background: var(--card); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.controls--panel .controls__group { width: 100%; }
.chip { font-weight: 600; font-size: .85em; }
.chip b { font-weight: 800; }
.chip--done { opacity: .6; }
.chip--optional { border-style: dashed; }

/* ---------- Kumanda ---------- */

.remote { max-width: 720px; margin: 0 auto; padding: 0 16px 2rem; }
.remote__head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 0; }
.remote__prompt { font-size: 1.2rem; }
.remote__notes { white-space: pre-line; background: var(--surface); border-radius: 10px; padding: .8em 1em; }
.reasons { padding-left: 1.2em; }

/* ---------- Öğretmen paneli ---------- */

.dash { max-width: 960px; margin: 0 auto; padding: 2rem 16px; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.dash__table { width: 100%; border-collapse: collapse; }
.dash__table th, .dash__table td { text-align: left; padding: .5em; border-bottom: 1px solid var(--line); }
.dash__actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.import-result { margin-top: 1rem; }
.dash__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.weeks__start { display: flex; gap: .5rem; align-items: center; }
.weeks__start select { font: inherit; padding: .5em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.weeks { list-style: none; padding: 0; margin: 0; }
.weeks__row { display: flex; align-items: center; gap: 1rem; padding: .6em 0; border-bottom: 1px solid var(--line); }
.weeks__row--empty { color: var(--muted); }
.weeks__no { width: 2em; height: 2em; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-weight: 800; }
.weeks__title { flex: 1; font-weight: 700; }
.handouts { list-style: none; padding: .25rem 1.25rem; }
.handouts__row { display: flex; align-items: center; gap: .75rem; padding: .6em 0; border-bottom: 1px solid var(--line); }
.handouts__row:last-child { border-bottom: 0; }
.handouts__title { flex: 1; font-weight: 700; }
.weeks__handout { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.weeks__todos { font-weight: 400; font-size: .9rem; color: var(--accent-dark); }
.weeks__confirm { display: flex; align-items: center; gap: .75rem; padding: .7em 1em; margin: .3em 0; border-radius: 12px; background: var(--surface); }
.weeks__confirm > span { flex: 1; }
.next { list-style: none; padding: 0; margin: 0; }
.next__row { display: flex; align-items: center; gap: 1rem; padding: .6em .5em; border-bottom: 1px solid var(--line); }
.next__row--soon { background: var(--surface); border-radius: 12px; }
.next__info { flex: 1; display: grid; gap: .15em; }
.next__info .muted { font-size: .9rem; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.next__week { font-weight: 700; }
.history { border-bottom: 1px solid var(--line); }
.history > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3em .8em; padding: .7em 0; }
.history > summary::before { content: "▸"; color: var(--muted); }
.history[open] > summary::before { content: "▾"; }
.history > summary::-webkit-details-marker { display: none; }
.history .dash__table { margin-bottom: .8em; }

/* ---------- Kendi hızında çalışma ---------- */

.study { max-width: 720px; margin: 0 auto; padding: 0 16px 3rem; }
.study > .join__brand { padding-top: 6vh; }
.study__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .8em; padding: .6rem 0; background: var(--bg); }
.study__title { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study__notice { margin: .8rem 0; }
.study__item { margin-top: 1rem; }
.study__open { margin-top: 1rem; }
.study__activities, .study__anchor, .study #slayt { scroll-margin-top: 3.5rem; } /* yapışkan üst çubuğun altında kalmasın */
.study__cue { margin: .8rem 0 0; padding: .6em 1em; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--accent); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.study__more { margin: .8rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; font-size: .95rem; }
.study__skip .link { padding: 0; }
/* Anlatımı başlatan öğrenci soruları anlatımdan önce açamaz (app.js narration--started ekler; ses yüklenemezse kaldırır) */
.study:has(.narration--started) .study__skip { display: none; }
.study__note { background: var(--card); border-left: 4px solid var(--line); border-radius: 10px; padding: .7em 1em; margin: 1rem 0 0; }
.study__note small { display: block; color: var(--muted); }
.study__retry { font-size: 1.05rem; padding: .6rem; }
.study__nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.25rem; }
.study__nav button { flex: 1; padding: .8em 1em; font-size: 1.05rem; }
.study__hint { text-align: center; }
.study__done { text-align: center; margin-top: 1rem; }
.study .play__slide { margin-top: .8rem; }
.narration { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; background: var(--card); border-radius: 999px; padding: .4rem 1rem .4rem .4rem; }
.narration__btn { flex: none; width: 2.8rem; height: 2.8rem; padding: 0; border-radius: 50%; background: var(--accent); border-color: var(--accent); color: #fff; font-size: 1.05rem; line-height: 1; }
.narration__btn:hover:not(:disabled) { background: var(--accent-dark); }
.narration__bar { flex: 1; min-width: 6rem; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.narration__bar > span { display: block; height: 100%; width: 0; background: var(--accent); }
.narration__time { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.narration__restart { padding: 0; font-size: .85rem; white-space: nowrap; }
.narration__auto { display: flex; align-items: center; gap: .35em; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.narration__auto input { width: auto; }

.studybar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.studybar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.studybar--small { flex: 1; max-width: 8em; }
@media (prefers-reduced-motion: reduce) { .studybar > span { transition: none; } }

.studyweeks { list-style: none; padding: 0; margin: 1rem 0 0; }
.studyweeks__row { display: flex; align-items: center; gap: .75rem; padding: .7em .4em; border-top: 1px solid var(--line); }
.studyweeks__row--makeup { background: #FFF1CC; border-radius: 10px; }
.studyweeks__info { flex: 1; min-width: 0; display: grid; gap: .3em; }
.studyweeks__title { font-weight: 700; }
.studyweeks__meta { display: flex; align-items: center; gap: .6em; color: var(--muted); }

@media (max-width: 640px) {
    .dash__table thead { display: none; }
    .dash__table tr { display: grid; padding: .5em 0; border-bottom: 1px solid var(--line); }
    .dash__table td { border: 0; padding: .2em 0; }
    .dash__actions { justify-content: flex-start; }
    .next__row, .weeks__confirm, .weeks__row, .studyweeks__row { flex-wrap: wrap; }
}

/* ---------- Blazor hata çubuğu ---------- */

.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "Bir hata oluştu."; }

/* ---------- Sunucu görünümü (öğretmenin ekranı) ---------- */

.controls--bar .button { background: #2B2B2B; color: #fff; border-color: #444; font-size: inherit; }

.pv { max-width: 1500px; margin: 0 auto; padding: 0 16px 2rem; }
.pv__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .8rem 0; }
.pv__info, .pv__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.clock { display: inline-flex; gap: .8em; font-variant-numeric: tabular-nums; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: .2em .9em; }
.pv__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
.pv__main { display: grid; gap: 1rem; }
.pv__slides { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
.pv__slides figure { margin: 0; }
.pv__slides img { width: 100%; display: block; border-radius: 10px; box-shadow: 0 2px 8px rgb(31 42 68 / 15%); aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.pv__slides figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.pv__slides figcaption b { color: var(--accent-dark); }
.pv__next { opacity: .85; }
.pv__notes { margin: 0; }
.pv__notes-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pv__notes-head h2 { font-size: 1.3rem; }
.pv__zoom { display: flex; gap: .3rem; flex: none; }
.pv__notes-text { white-space: pre-line; font-size: calc(1.2rem * var(--notes-scale, 1)); line-height: 1.55; margin: .4rem 0 0; }
.pv__offline { margin: 1rem 0 0; padding: .6em .8em; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.pv__side { display: grid; gap: 1rem; position: sticky; top: .5rem; }
.pv__side .controls--panel { margin: 0; }
.pv__side .card { margin: 0; }
.pv__phone { display: flex; gap: 1rem; align-items: center; }
.pv__phoneqr { width: 160px; flex: none; }
.preview__activity h3 { margin: .2em 0 .5em; }
.preview__activity .answer__label { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; }
.preview__options li { padding: .15em 0; }
.preview__correct { color: var(--ok); font-weight: 700; }
.preview__todo { margin: .8rem 0 0; padding: .5em .8em; border-radius: 10px; }
.preview__list { list-style: none; padding: 0; margin: 0; max-height: 70vh; overflow-y: auto; }
.preview__item { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .3em .6em; text-align: left; border: 0; border-radius: 10px; background: none; padding: .45em .6em; font-weight: 400; }
.preview__item.on { background: var(--surface); color: var(--accent-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.preview__item-title { flex: 1; min-width: 8em; }
.pv__next { cursor: pointer; }

/* Telefonda sıra: kontroller → açık etkinlik → slayt ve notlar → sıralama */
@media (max-width: 900px) {
    .pv__grid { display: flex; flex-direction: column; }
    .pv__side { display: contents; }
    .pv__side > .controls { order: 1; }
    .pv__results { order: 2; }
    .pv__main { order: 3; }
    .pv__board { order: 4; }
    .preview__slides { order: 4; }
    .pv__slides { grid-template-columns: 1fr 1fr; }
    .pv__phone { flex-direction: column; text-align: center; }
}

/* ---------- Yoklama ---------- */

/* Projeksiyon: dönen kod ve karekod */
.attpanel { display: flex; align-items: center; gap: 4cqw; font-size: 1.8cqw; }
.attpanel__qr { width: 30cqw; background: #fff; border-radius: 1.2cqw; padding: .8cqw; }
.attpanel__qr svg { display: block; width: 100%; height: auto; }
.attpanel__text p { margin: 0; }
.attpanel__kicker { color: var(--accent); font-weight: 900; letter-spacing: .12em; font-size: 1.2em; margin-bottom: .4em !important; }
.attpanel__code { font-size: 6.5em; font-weight: 900; letter-spacing: .12em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.attpanel__timer { display: block; height: .35em; background: var(--line); border-radius: 999px; overflow: hidden; margin: .3em 0 .2em; }
.attpanel__timer span { display: block; height: 100%; background: var(--accent); transition: width .9s linear; }
.attpanel__join { margin-top: 1.2em !important; color: var(--muted); font-size: .85em; }
.attchip { background: var(--ink); color: #fff; border-radius: 999px; padding: .1em .8em; font-size: 1.5em; }
.attchip b { letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* Kumanda */
.attboard__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.attboard__tabs { display: flex; gap: .3rem; }
.attboard__tabs button { padding: .25em .7em; font-size: .85rem; }
.attboard__status { margin: .2rem 0 .6rem; }
.attboard__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.attboard__h { font-size: 1rem; margin: 1rem 0 .3rem; }
.attboard__present summary { cursor: pointer; font-weight: 800; margin-top: .6rem; }
.attcode { display: grid; gap: .2rem; background: var(--surface); border-radius: 10px; padding: .4rem .8rem; text-align: center; }
.attcode__code { font-size: 2.4rem; font-weight: 900; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.attcode .attpanel__timer { height: 5px; margin: 0; }
.attlist { list-style: none; padding: 0; margin: 0; max-height: 22rem; overflow-y: auto; }
.attlist li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.attlist__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.attlist__btn { padding: .25em .7em; font-size: .85rem; flex: none; }
.tag { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .05em .55em; background: var(--line); color: var(--ink); }
.tag--ok { background: var(--ok); color: #fff; }
.tag--late { background: #FFE9B8; color: #6B4E00; }
.tag--warn { background: var(--bad); color: #fff; }
.tag--makeup { background: var(--accent); color: #fff; }

/* Öğrenci telefonu */
.attend { border: 2px solid var(--accent); }
.attend__label { display: block; font-weight: 700; margin-bottom: .4rem; }
.attend__row { display: flex; gap: .5rem; }
.attend__input { flex: 1; min-width: 0; }
.attend__done { margin-top: 0; }
.attend__notice { background: #E3F2E8; color: var(--ok); font-weight: 700; }

/* Dönem devam çizelgesi */
.dash--wide { max-width: 1280px; }
.term__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.term__legend { margin-left: .8rem; white-space: nowrap; }
.term__scroll { overflow-x: auto; }
.term { width: 100%; border-collapse: separate; border-spacing: 0; }
.term th, .term td { text-align: left; padding: .5em; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
/* Çok haftalı çizelgede yatay kaydırırken ad görünür kalsın */
.term .term__name { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.term .term__col { text-align: center; padding: .4em .3em; }
.term__col small { font-weight: 400; color: var(--muted); }
.term .term__low td { background: #FBE3E1; }
.cell { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 6px; font-size: .85rem; }
.cell--present { background: var(--ok); color: #fff; }
.cell--late { background: #FFE9B8; color: #6B4E00; }
.cell--absent { color: var(--muted); }

/* Anlatım kaydı (öğretmen) */
.narr { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1rem; align-items: start; scroll-margin-top: 1rem; }
.narr--rec { box-shadow: 0 0 0 3px var(--bad); }
.narr__thumb { width: 100%; border-radius: 8px; box-shadow: 0 1px 4px rgb(31 42 68 / 15%); display: block; }
.narr__body { display: grid; gap: .5rem; min-width: 0; }
.narr__body > p { margin: 0; }
.narr__head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.narr__text { font-size: 1.15rem; line-height: 1.6; background: var(--surface); border-radius: 10px; padding: .7em .9em; } /* okuma metni */
.narr__audio { display: flex; align-items: center; gap: .6rem; }
.narr__audio audio { width: 100%; max-width: 420px; }
.narr__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.narr__live { color: var(--bad); font-weight: 800; animation: pulse 1s infinite; }
.narr__paused { color: var(--accent-dark); font-weight: 800; flex-basis: 100%; }
.narr__summary .tag { margin-left: .4rem; }
.narr__voice { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.narr__voice label { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.narr__voice .link { padding: 0; }
.narr__sample { width: 100%; max-width: 420px; margin-top: .4rem; }
.narr__preview { display: grid; gap: .2rem; }
.narr__preview audio { width: 100%; max-width: 420px; }
.narr__voice select { font: inherit; padding: .4em .6em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.narr__cue { display: inline-block; margin: 0 .3em; padding: 0 .55em; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; vertical-align: middle; }
.narr__cues { font-size: .9rem; }
/* Cümle araları: etkinlik işareti koymak için tıklanır (görünmez durur, üzerine gelince belirir) */
.narr__gap { display: inline-block; margin: 0 .15em; padding: 0 .4em; min-width: 1.4em; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: .8rem; line-height: 1.5; vertical-align: middle; opacity: .35; }
.narr__gap:hover:not(:disabled), .narr__gap:focus-visible { opacity: 1; border-color: var(--accent); color: var(--accent-dark); }
.narr__gap--on { opacity: 1; border: 0; background: var(--accent); color: #fff; font-weight: 800; }
.narr__gap--on:hover:not(:disabled) { background: var(--accent-dark); color: #fff; }
@media (hover: none) { .narr__gap { opacity: .7; } } /* dokunmatikte üzerine gelme yok */
.narr__textbar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.narr__textbar .link { padding: 0; }
.study__previewnote { border-left: 4px solid var(--opt-1); }
.study__previewnote .link { padding: 0; margin-left: .3em; }
.narr__edit textarea { font-size: 1.05rem; line-height: 1.55; }
.narr__edit p { margin: .4rem 0 0; }
.narr__mark { border: 2px solid var(--accent); color: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) { .narr__live { animation: none; } }
@media (max-width: 640px) { .narr { grid-template-columns: 1fr; } }

/* Kendi hızında çalışma: öğretmen paneli */
.study-t__h { font-size: 1.2rem; margin: 0 0 .6rem; }
.study-t__pending { list-style: none; padding: 0; margin: 0; }
.study-t__pending li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; padding: .45em 0; border-bottom: 1px solid var(--line); }
.study-t__pending li:last-child { border-bottom: 0; }
.study-t__weeks { display: flex; flex-wrap: wrap; gap: .3rem; }
.study-t__part { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: .75rem; width: auto; min-width: 1.7em; padding: 0 .2em; }
.study-t__makeup { background: var(--accent); color: #fff; font-size: .75rem; width: auto; min-width: 1.7em; padding: 0 .2em; }
.study-t__done-makeup { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); } /* telafiyle tamamlandı */
.study-t__stats td { vertical-align: top; }
.study-t__hard td { background: #FBE3E1; }

/* ---------- Ders sonu anketi ---------- */

.survey { text-align: left; }
.survey__form { display: grid; gap: 1rem; }
.survey__q { border: 0; padding: 0; margin: 0; }
.survey__q legend { font-weight: 800; font-size: 1.1rem; margin-bottom: .4em; }
.survey__q legend small { font-weight: 600; color: var(--muted); margin-left: .3em; }
.survey__q textarea { width: 100%; resize: vertical; }
.survey__q .choice { min-height: 56px; font-size: 1rem; }
.survey__emoji { font-size: 1.3rem; background: transparent; }
.choice--selected .survey__emoji { background: #fff; }
.survey__question { margin-top: 1.4rem; font-size: 1.05rem; }
.survey__question small { font-weight: 600; color: var(--muted); margin-left: .4em; }
.survey__notes { display: grid; gap: .5rem; padding: 0; list-style: none; }
.survey__notes li { background: var(--surface); border-radius: 10px; padding: .6em .9em; border-left: 4px solid var(--accent); white-space: pre-line; }
.survey-trend th, .survey-trend td { text-align: left; padding: .4em .6em; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* ---------- Anlık oylama ---------- */

.qv { text-align: center; }
.qv__prompt { font-size: 2.4em; font-weight: 800; margin: 0 0 .2em; }
.qv__hint { color: var(--muted); font-size: 1.2em; margin: 0 0 1em; }
.qv__faces { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; align-items: flex-start; gap: 1.5em; }
.qv__face { display: grid; justify-items: center; gap: .25em; min-width: 5em; }
.qv__col { position: relative; width: 3.2em; height: 8em; border-radius: 10px; background: var(--line); overflow: hidden; }
.qv__fill { position: absolute; inset: auto 0 0 0; background: var(--accent); transition: height .5s ease; }
.qv__count { font-size: 1.6em; font-variant-numeric: tabular-nums; }
.qv__emoji { font-size: 4.5em; line-height: 1; }
.qv__label { font-weight: 700; color: var(--muted); }
.qv__face--lead .qv__emoji { animation: qv-pop .6s ease; }
.qv__face--lead .qv__fill { background: var(--ok); }
.qv__face--lead .qv__label { color: var(--ink); }
@keyframes qv-pop { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .qv__face--lead .qv__emoji { animation: none; } }

.qv--compact { font-size: 15px; }
.qv--compact .qv__prompt { font-size: 1.1rem; }
.qv--compact .qv__hint { font-size: .95rem; margin-bottom: .6em; }
.qv--compact .qv__faces { gap: .5em; }
.qv--compact .qv__face { min-width: 0; flex: 1; }
.qv--compact .qv__col { width: 100%; max-width: 2.6em; height: 4.5em; }
.qv--compact .qv__count { font-size: 1.1rem; }
.qv--compact .qv__emoji { font-size: 2rem; }
.qv--compact .qv__label { font-size: .75rem; }

.qv-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.qv-pick__btn {
    display: grid; justify-items: center; gap: .2em; padding: .8em .4em; min-height: 110px;
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); font-weight: 700;
}
.qv-pick__emoji { font-size: 2.8rem; line-height: 1.1; }
.qv-pick__btn--on { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px rgb(180 83 31 / 30%); }
.qv-pick__btn--on .qv-pick__emoji { transform: scale(1.15); }

/* İçerik oluştur (/ogretmen/olustur) */
.gen__label { display: grid; gap: .4rem; font-weight: 700; }
.gen__label textarea { width: 100%; font: inherit; font-weight: 400; }
.gen__log { background: var(--ink); color: #F6F3EC; border-radius: var(--radius); padding: 1rem; max-height: 50vh; overflow: auto;
    white-space: pre-wrap; font-size: .85rem; line-height: 1.45; margin: 0; }
