/* Scoped original-question layout. No scaling of the full page or scroll lock. */
html body main.memory-batch{box-sizing:border-box;width:100%;max-width:1240px;min-height:calc(100svh - 54px);padding:14px 22px;margin:auto;display:flex;flex-direction:column;justify-content:center}
main.memory-batch [hidden]{display:none!important}
html body main.memory-batch .rollout-stage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:25px!important;align-items:center;width:100%}
html body main.memory-batch .rollout-question{display:flex!important;flex-direction:column;gap:14px!important;align-items:center;min-width:0}
html body main.memory-batch .board{display:block;width:100%!important;height:min(44svh,390px)!important;object-fit:contain;margin:0!important;max-width:100%;max-height:none!important}
html body main.memory-batch .asker{display:flex;align-items:center;gap:8px;margin:0;width:100%}
html body main.memory-batch .pati{width:50px!important;height:58px!important;object-fit:contain}
html body main.memory-batch h1{font-size:23px;line-height:1.25;padding:12px 16px;margin:0}
html body main.memory-batch fieldset{min-width:0;padding:0;border:0;margin:0;width:100%}
html body main.memory-batch .choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-width:650px;width:100%;margin:auto}
html body main.memory-batch .choice{position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:44px;min-height:44px;height:min(29svh,246px);border:2px solid #dce6e3;border-radius:14px;background:#fff;padding:24px 8px 8px!important;cursor:pointer}
html body main.memory-batch .choices>.choice:nth-child(n){grid-column:auto!important;grid-row:auto!important;justify-self:stretch!important;width:100%!important}
html body main.memory-batch .choice img{display:block;object-fit:contain;width:100%!important;height:100%!important;max-height:none!important;margin:0!important}
html body main.memory-batch .number{position:absolute;top:7px;left:7px}
html body main.memory-batch .choice:has(input:checked){border-color:#16776c;background:#edf7f2}
html body main.memory-batch .choice:focus-within{outline:3px solid #338eb4;outline-offset:3px}
html body main.memory-batch .feedback{margin:18px auto 0;max-width:800px;width:100%;box-sizing:border-box}
html body main.memory-batch.no-ref .rollout-stage{display:flex!important;flex-direction:column!important;gap:18px!important}
html body main.memory-batch.no-ref .choices{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:1120px}
html body main.memory-batch.no-ref .choice{height:min(35svh,295px)}
html body main.memory-batch .memory-study{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
html body main.memory-batch .memory-target{display:block;object-fit:contain;width:min(100%,620px);height:min(65svh,510px)}
html body main.memory-batch .memory-status{font-size:18px;margin:0;color:#315b56}
html body main.memory-batch progress{accent-color:#16776c;width:140px;height:7px;border:0}
html body main.memory-batch[data-memory-phase="loading"] .rollout-stage,html body main.memory-batch[data-memory-phase="study"] .rollout-stage{display:none!important}
html body main.memory-batch[data-memory-phase="recall"] .rollout-stage{display:flex!important;flex-direction:column!important;gap:18px!important}
html body main.memory-batch[data-memory-phase="recall"] .rollout-question{max-width:700px;width:100%}
html body main.memory-batch[data-memory-phase="recall"] .choices{max-width:900px}
html body main.memory-batch[data-memory-phase="recall"] .choice{height:min(31svh,260px)}
html body main.memory-batch[data-memory-phase="review"] .memory-target{height:min(38svh,300px)}
html body main.memory-batch[data-memory-phase="review"] .memory-study{margin-bottom:20px}
html body main.memory-batch[data-memory-phase="loading"]::before{content:'Görsel hazırlanıyor…';text-align:center;color:#315b56}
.memory-owner-tools{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 0 12px;font-size:13px}
.memory-owner-tools[hidden]{display:none}.memory-owner-tools button{padding:7px 12px;font-size:13px}
@media(max-width:899px){html body main.memory-batch .rollout-stage{display:flex!important;flex-direction:column!important;gap:12px!important}html body main.memory-batch .rollout-question{gap:8px!important;width:100%}html body main.memory-batch .board{height:min(30svh,290px)!important}html body main.memory-batch .choices{max-width:620px}html body main.memory-batch .choice{height:min(23svh,215px)}html body main.memory-batch.no-ref .choices{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:620px}html body main.memory-batch.no-ref .choice{height:min(32svh,270px)}}
@media(max-width:699px){html body main.memory-batch{min-height:calc(100svh - 76px);padding:8px 12px!important}html body main.memory-batch .board{height:min(27svh,195px)!important}html body main.memory-batch .pati{width:32px!important;height:40px!important}html body main.memory-batch h1{font-size:18px!important;padding:8px 10px!important;line-height:1.2!important}html body main.memory-batch .choice{height:min(23svh,160px);padding:23px 6px 6px!important}html body main.memory-batch .choices{gap:8px!important}html body main.memory-batch .asker{gap:5px}html body main.memory-batch .rollout-stage{gap:10px!important}html body main.memory-batch.no-ref .choice,html body main.memory-batch[data-memory-phase="recall"] .choice{height:min(32svh,235px)}html body main.memory-batch .memory-target{height:63svh}html body main.memory-batch .memory-status{font-size:16px}}
@media(max-width:699px) and (max-height:650px){html body main.memory-batch.has-ref .choice{height:min(19.5svh,125px)!important}html body main.memory-batch[data-memory-phase="recall"] .choice{height:29svh!important}}
@media(prefers-reduced-motion:reduce){html body main.memory-batch *{animation:none!important;transition:none!important}}

.memory-study picture{display:contents}.memory-study .story-intro{font-size:18px;line-height:1.3;text-align:center;margin:0;max-width:600px}.memory-study .story-target{width:min(100%,1000px);height:min(60svh,500px)}
@media(max-width:699px){.memory-study .story-target{width:100%;height:min(73svh,490px)}.memory-study .story-intro{font-size:16px;max-width:340px}.memory-study{gap:6px!important}}

@media (max-width: 699px) {
  html body.test-review-question main.memory-batch[data-question="1353"] .board {
    height: clamp(165px, 43vw, 210px) !important;
  }
  html body.test-review-question main.memory-batch[data-question="1353"] .choice {
    display: grid;
    grid-template: minmax(0, 1fr) 30px / minmax(0, 1fr);
    justify-items: center;
    row-gap: 3px;
    height: clamp(138px, 37vw, 172px) !important;
    padding: 7px 8px 5px !important;
  }
  html body.test-review-question main.memory-batch[data-question="1353"] .choice > img {
    grid-area: 1 / 1;
    min-height: 0;
    max-height: 100% !important;
  }
  html body.test-review-question main.memory-batch[data-question="1353"] .test-choice-tag {
    grid-area: 2 / 1;
    text-align: center;
  }
}
