:root {
  --memory-bg: #07101d;
  --memory-panel: #101b2d;
  --memory-panel-soft: #0c1625;
  --memory-panel-strong: #18263b;
  --memory-line: #2b3d55;
  --memory-line-strong: #3b5271;
  --memory-ink: #edf3fb;
  --memory-muted: #91a3bb;
  --memory-blue: #6677f4;
  --memory-blue-strong: #325fe8;
  --memory-green: #20b47f;
  --memory-amber: #f1a40f;
  --memory-red: #e93339;
  color-scheme: dark;
}

.memory-admin-page [hidden],
.memory-student-page [hidden] { display: none !important; }
.memory-admin-page button,
.memory-admin-page input,
.memory-admin-page select,
.memory-admin-page textarea,
.memory-student-page button { font: inherit; }

/* Teacher: current v2 deck workspace inside the shared v3 teacher shell. */
.memory-admin-page { overflow: hidden; }
.memory-admin-page .teacher-brand span { display: block; margin-top: 4px; color: var(--teacher-muted); font-size: 12px; }
.memory-admin-main { height: calc(100vh - 70px); overflow: auto; background: var(--memory-bg); padding: 16px 22px 28px; color: var(--memory-ink); }
.memory-admin-intro { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--memory-line); border-radius: 15px; background: var(--memory-panel); padding: 16px 19px; }
.memory-admin-intro > div > span,
.memory-kicker { color: #58d8f5; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.memory-admin-intro h2 { margin: 5px 0 0; font-size: 21px; }
.memory-admin-intro p { margin: 5px 0 0; color: var(--memory-muted); font-size: 12px; }
.memory-admin-steps { display: flex; gap: 7px; }
.memory-admin-steps span { display: flex; min-height: 42px; align-items: center; gap: 7px; border: 1px solid #334a68; border-radius: 9px; background: #0b1523; padding: 0 12px; color: #bfcee2; font-size: 11px; font-weight: 800; }
.memory-admin-steps b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #174263; color: #72dff4; }

.memory-context,
.memory-panel { min-width: 0; border: 1px solid var(--memory-line); border-radius: 14px; background: var(--memory-panel); }
.memory-context { min-height: 52px; margin: 10px 0; padding: 7px 13px; }
.memory-context form,
.memory-context > div { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.memory-context label,
.memory-field { display: grid; gap: 5px; color: #a5b6cb; font-size: 11px; font-weight: 800; }
.memory-context input,
.memory-context select,
.memory-field input,
.memory-field select,
.memory-field textarea { width: 100%; min-height: 40px; box-sizing: border-box; border: 1px solid var(--memory-line-strong); border-radius: 8px; outline: 0; background: #091321; padding: 8px 10px; color: var(--memory-ink); }
.memory-context input:focus,
.memory-context select:focus,
.memory-field input:focus,
.memory-field select:focus,
.memory-field textarea:focus { border-color: #4c8df0; box-shadow: 0 0 0 3px rgb(65 132 230 / 16%); }
.memory-status { min-height: 24px; margin: 0; color: #9bacc1; font-size: 11px; line-height: 24px; }
.memory-status[data-tone="good"] { color: #62d8b5; }
.memory-status[data-tone="bad"] { color: #ff91a4; }
.memory-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 10px; }
.memory-panel { padding: 14px; }
.memory-deck-rail { min-height: 520px; }
.memory-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.memory-inline-actions > div:first-child { margin-right: auto; }
.memory-panel h2 { margin: 3px 0 0; color: var(--memory-ink); font-size: 18px; }
.memory-check { display: flex; align-items: center; gap: 7px; margin: 11px 0; color: #bdcadc; font-size: 11px; font-weight: 800; }
.memory-check input { min-height: auto; accent-color: var(--memory-blue); }
.memory-button,
.memory-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #6677f4; border-radius: 8px; background: #6677f4; padding: 0 12px; color: #fff; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.memory-button.secondary,
.memory-link.secondary { border-color: #3a4d67; background: #121f31; color: #dbe6f5; }
.memory-button.danger { border-color: #914153; background: #271521; color: #ffb3c1; }
.memory-button:hover,
.memory-link:hover,
.memory-button:focus-visible,
.memory-link:focus-visible { border-color: #7ba8ff; outline: none; }
.memory-button:disabled { opacity: .5; cursor: wait; }
.memory-deck-list { display: grid; gap: 7px; }
.memory-deck-item { width: 100%; border: 1px solid #31445e; border-radius: 9px; background: #0b1523; padding: 11px 12px; color: var(--memory-ink); text-align: left; cursor: pointer; }
.memory-deck-item strong,
.memory-deck-item span { display: block; }
.memory-deck-item strong { font-size: 13px; }
.memory-deck-item span { margin-top: 5px; color: var(--memory-muted); font-size: 10px; }
.memory-deck-item:hover,
.memory-deck-item:focus-visible { border-color: #5d7da9; outline: none; }
.memory-deck-item.is-active { border-color: #7487ff; background: #202d49; box-shadow: inset 3px 0 0 #7887ff; }
.memory-empty { margin: 0; padding: 20px 8px; color: var(--memory-muted); font-size: 11px; text-align: center; }
.memory-tabs { display: flex; gap: 4px; margin: -2px 0 13px; border-bottom: 1px solid var(--memory-line); padding-bottom: 9px; }
.memory-tabs button { min-height: 38px; border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 0 15px; color: #91a4bd; font-size: 12px; font-weight: 850; cursor: pointer; }
.memory-tabs button.is-active { border-color: #5769db; background: #303d77; color: #fff; }
.memory-section-head { display: flex; min-height: 50px; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.memory-section-head > p { max-width: 420px; margin: 5px 0 0; color: var(--memory-muted); font-size: 11px; line-height: 1.5; text-align: right; }
.memory-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.memory-field.full { grid-column: 1 / -1; }
.memory-field textarea { min-height: 88px; resize: vertical; }
.memory-check.full { grid-column: 1 / -1; margin: 0; }
.memory-inline-actions.full { grid-column: 1 / -1; }
.memory-table-wrap { overflow: auto; margin-top: 13px; border: 1px solid var(--memory-line); border-radius: 10px; }
.memory-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.memory-table th,
.memory-table td { border-bottom: 1px solid #27384f; padding: 10px 11px; color: #dce7f5; font-size: 10px; text-align: left; vertical-align: top; }
.memory-table th { background: #2c3960; color: #9fb6ff; font-weight: 900; }
.memory-table td { white-space: pre-line; }
.memory-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.memory-metric { border: 1px solid #344862; border-radius: 10px; background: #111f32; padding: 12px; }
.memory-metric span { display: block; color: #90a3bb; font-size: 10px; }
.memory-metric strong { display: block; margin-top: 3px; color: #eef4fc; font-size: 20px; }

/* Student: current v2 dark focus study, centered as a tablet canvas on desktop. */
body.memory-student-page { min-height: 100vh; margin: 0; background: #050912; color: var(--memory-ink); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
.memory-study-shell { width: min(1194px, 100%); min-height: 100vh; box-sizing: border-box; margin: 0 auto; border-inline: 1px solid #1d2a3c; background: #090d17; padding: 0 26px 20px; }
.memory-student-topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #242d3d; }
.memory-student-top-left,
.memory-student-top-right { display: flex; align-items: center; gap: 8px; }
.memory-student-top-left > div:last-child { display: flex; align-items: center; gap: 10px; }
.memory-student-topbar h1 { margin: 0; font-size: 17px; }
.memory-student-topbar h1 + span { border: 1px solid #3c465c; border-radius: 999px; background: #171a29; padding: 5px 9px; color: #d7dcea; font-size: 10px; font-weight: 800; }
.memory-student-page .memory-status { min-height: 32px; padding: 0 3px; color: #7f91a8; line-height: 32px; }
.memory-study-chip { max-width: 290px; overflow: hidden; border: 1px solid #353d50; border-radius: 999px; background: #151925; padding: 6px 10px; color: #d9dfeb; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.memory-study-chip.is-online { border-color: #23896d; color: #72e0bd; }
.memory-study-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
.memory-student-page .memory-panel { border-color: #28364a; background: #0d1421; }
.memory-student-decks { align-self: start; }
.memory-student-decks .memory-inline-actions { margin-top: 11px; }
.memory-student-decks .memory-inline-actions .memory-button { flex: 1; padding-inline: 8px; }
.memory-study-main { min-width: 0; }
.memory-focus-head { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; }
.memory-focus-head span { color: #8f9db1; font-size: 10px; }
.memory-focus-head h2 { margin: 4px 0 0; font-size: 16px; }
.memory-focus-head p { margin: 0; color: #73839a; font-size: 10px; }
.memory-card-stage { display: grid; gap: 9px; }
.memory-flashcard { display: grid; min-height: 430px; box-sizing: border-box; place-items: center; overflow: auto; border: 1px solid #2f3b50; border-radius: 18px; background: #0b0e18; padding: 28px; text-align: center; }
.memory-flashcard > div { width: 100%; }
.memory-flashcard #memoryCardPrompt { margin: 0 0 22px; color: #8290a5; font-size: 11px; }
.memory-card-content { color: #f3f5fa; font-size: clamp(52px, 8vw, 118px); font-weight: 950; line-height: 1.12; overflow-wrap: anywhere; }
.memory-card-back { margin-top: 20px; color: #dfe5ee; font-size: clamp(20px, 3vw, 34px); line-height: 1.5; }
.memory-card-content .memory-content-size-xl { font-size: clamp(112px, 16vw, 190px); }
.memory-card-content .memory-content-size-lg { font-size: clamp(30px, 5vw, 58px); }
.memory-card-content .memory-content-size-md { font-size: clamp(18px, 3vw, 28px); }
.memory-card-content .memory-content-size-sm { font-size: 14px; }
.memory-card-content .memory-content-line-tight { line-height: 1; }
.memory-card-content .memory-content-gap-sm { margin-top: 8px; }
.memory-card-content .memory-content-gap-md { margin-top: 12px; }
.memory-card-content .memory-content-gap-lg { margin-top: 24px; }
.memory-card-content .memory-content-muted { opacity: .72; }
.memory-card-content .memory-content-heavy { font-weight: 950; }
.memory-recall-hint { margin: 0; color: #7c8ba0; font-size: 10px; text-align: center; }
.memory-count-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #273349; border-radius: 12px; background: #101522; }
.memory-count-strip article { min-height: 54px; border-right: 1px solid #2b3649; padding: 9px 8px; text-align: center; }
.memory-count-strip article:last-child { border-right: 0; }
.memory-count-strip span { display: block; color: #7e8ca0; font-size: 10px; }
.memory-count-strip strong { display: block; margin-top: 3px; color: #e8eef8; font-size: 18px; }
.memory-reveal { width: 100%; min-height: 50px; border-color: #536cf0; background: #315fe5; font-size: 15px; }
.memory-grade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.memory-grade { min-height: 64px; border: 1px solid transparent; border-radius: 10px; color: #fff; font-weight: 950; cursor: pointer; }
.memory-grade span { display: block; margin-top: 4px; color: inherit; font-size: 10px; opacity: .88; }
.memory-grade.again { background: var(--memory-red); }
.memory-grade.hard { background: var(--memory-amber); color: #231600; }
.memory-grade.good { background: var(--memory-blue-strong); }
.memory-grade.easy { background: var(--memory-green); }
.memory-sync-line { display: flex; justify-content: space-between; gap: 12px; color: #7d8da3; font-size: 10px; }
.memory-student-stats { min-height: 560px; }
.memory-student-stats .memory-metric { background: #152138; }

.memory-tutorial { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(4 9 17 / 84%); padding: 20px; }
.memory-tutorial[hidden] { display: none; }
.memory-tutorial-card { width: min(520px, 100%); box-sizing: border-box; border: 1px solid #405570; border-radius: 16px; background: #111d2d; box-shadow: 0 24px 80px rgb(0 0 0 / 44%); padding: 23px; color: var(--memory-ink); }
.memory-tutorial-card h2 { margin: 8px 0; }
.memory-tutorial-card p { color: var(--memory-muted); line-height: 1.65; }
.memory-tutorial-step { color: #7fa1ff; font-weight: 900; }

@media (max-width: 1500px) {
  .memory-admin-main { padding: 13px 17px 24px; }
  .memory-admin-intro p { max-width: 660px; }
  .memory-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .memory-study-shell { padding-inline: 18px; }
  .memory-student-topbar { min-height: 70px; }
  .memory-student-top-right .memory-study-chip:first-child { display: none; }
  .memory-study-grid { grid-template-columns: 1fr; }
  .memory-student-decks { padding: 11px; }
  .memory-student-decks .memory-section-head { min-height: 34px; margin-bottom: 7px; }
  .memory-student-decks .memory-deck-list { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .memory-student-decks .memory-deck-item { min-width: 210px; }
  .memory-student-decks .memory-inline-actions { position: static; margin-top: 8px; }
  .memory-student-decks .memory-inline-actions .memory-button { min-height: 34px; }
  .memory-flashcard { min-height: 560px; }
}

@media (max-width: 1120px) {
  body.memory-admin-page { min-width: 0; }
  .memory-admin-page .teacher-stage { display: grid; height: 100dvh; grid-template-rows: auto minmax(0, 1fr); }
  body.teacher-home-page.memory-admin-page[data-canonical-teacher-shell="true"] .teacher-topbar { height: auto; min-height: 0; max-height: none; flex-wrap: wrap; gap: 10px; }
  .memory-admin-page .teacher-top-actions { flex-wrap: wrap; min-width: 0; }
  .memory-admin-page .memory-admin-main { height: auto; min-height: 0; }
  .memory-admin-page .memory-workspace { grid-template-columns: minmax(0, 1fr); }
  .memory-admin-page .memory-deck-rail { min-height: 0; }
  .memory-admin-page .memory-admin-intro, .memory-admin-page .memory-section-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .memory-admin-page .memory-admin-steps, .memory-admin-page .memory-tabs { flex-wrap: wrap; }
  .memory-admin-page .memory-field { min-width: 0; }
  .memory-admin-page .memory-media-editor { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .memory-study-shell { padding-inline: 12px; }
  .memory-student-topbar { align-items: flex-start; padding: 9px 0; }
  .memory-student-top-left > div:last-child,
  .memory-student-top-right .memory-study-chip { display: none; }
  .memory-student-decks .memory-inline-actions { position: static; margin-top: 8px; }
  .memory-flashcard { min-height: 420px; padding: 20px; }
  .memory-count-strip span { font-size: 9px; }
  .memory-grade-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Latest v2 student home + Focus Study presentation on the v3 repository. */
body.memory-student-page{overflow:hidden;background:#060812;color:#eef2f8}
.memory-study-shell{width:min(1194px,100%);height:100vh;min-height:0;margin:0 auto;border-inline:1px solid #202638;background:#090b16;padding:0 28px 22px}
.memory-student-topbar{min-height:64px;border-bottom:1px solid #292d3d}.memory-student-top-left{min-width:0;flex:1}.memory-student-top-left .memory-link{flex:none;white-space:nowrap}.memory-student-top-right{flex:none}.memory-title-wrap{display:grid!important;min-width:0;gap:2px!important}.memory-title-wrap h1{font-size:17px}.memory-title-wrap span{border:0!important;background:transparent!important;padding:0!important;color:#929aad!important;font-size:11px!important}.memory-student-page .memory-status{min-height:34px;padding:0 2px;line-height:34px}
.memory-tutorial-launch{position:relative}.memory-tutorial-launch small{position:absolute;top:-10px;right:-5px;border-radius:999px;background:#f03a70;padding:2px 6px;color:#fff;font-size:8px;white-space:nowrap}.memory-student-tabs{display:flex;gap:6px;padding:12px 0 0}.memory-student-tabs button{min-width:72px;min-height:38px;border:1px solid #30394e;border-radius:12px;background:#121725;color:#919caf;font-weight:900;cursor:pointer}.memory-student-tabs button.is-active{border-color:#7887ff;background:linear-gradient(135deg,#5869e9,#7582f5);color:#fff}.memory-home{display:grid;gap:14px}.memory-home-hero{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;border:1px solid #2a3348;border-radius:18px;background:#0d1320;padding:22px}.memory-home-title-row{display:flex;align-items:center;gap:14px;margin-top:8px}.memory-home-deck-icon{display:grid;width:58px;height:58px;flex:0 0 auto;place-items:center;border:1px solid #465778;border-radius:16px;background:#202c43;color:#eaf2ff;font-size:25px;font-weight:950}.memory-home-copy h2{margin:0 0 5px;font-size:28px}.memory-home-copy p{margin:0;color:#909bb0;font-size:13px}.memory-home-count-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:20px}.memory-home-count-grid article{border:1px solid #303a50;border-radius:12px;background:#121a29;padding:12px;text-align:center}.memory-home-count-grid span{display:block;color:#909bb0;font-size:10px}.memory-home-count-grid strong{display:block;margin-top:5px;font-size:24px}.memory-home-action{display:grid;place-content:center;border:1px solid #31425a;border-radius:16px;background:#101827;padding:18px;text-align:center}.memory-home-action>span{color:#9eabc0;font-size:11px}.memory-home-action>strong{font-size:58px;line-height:1.1}.memory-home-action>p{margin:7px 0 14px;color:#8492a7;font-size:11px}.memory-home-action .memory-button{width:100%;margin-top:7px}.memory-home-picker{border:1px solid #2a3348;border-radius:16px;background:#0d1320;padding:18px}.memory-home-picker>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.memory-home-picker>header>strong{color:#aebbd0}.memory-home-picker h2{margin:5px 0 0;font-size:19px}.memory-home-table-wrap{overflow:auto;border:1px solid #2f3c52;border-radius:12px}.memory-home-table-wrap table{width:100%;border-collapse:collapse}.memory-home-table-wrap th,.memory-home-table-wrap td{border-bottom:1px solid #29364b;padding:12px 14px;color:#b3bfd1;font-size:11px;text-align:left}.memory-home-table-wrap th{background:#111b2a;color:#788aa4}.memory-home-table-wrap tbody tr{cursor:pointer}.memory-home-table-wrap tbody tr:hover,.memory-home-table-wrap tbody tr:focus-visible,.memory-home-table-wrap tbody tr.is-active{outline:0;background:#202b47}.memory-home-table-wrap tbody tr.is-active td:first-child{box-shadow:inset 4px 0 0 #7887ff}.memory-home-table-wrap td strong{color:#f0f4fb;font-size:13px}.memory-home>.memory-sync-line{padding:0 4px}.memory-home-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px}.memory-home-summary article{border:1px solid #2f3b50;border-radius:12px;background:#101725;padding:12px}.memory-home-summary span{display:block;color:#8998ad;font-size:10px}.memory-home-summary strong{display:block;margin-top:5px;font-size:15px}.memory-study-launcher{min-height:590px;border:1px solid #2b3649;border-radius:20px;background:#0d1320;padding:22px}.memory-study-launcher header h2{margin:7px 0;font-size:25px}.memory-study-launcher header p{margin:0;color:#929fb2}.memory-launch-counts{display:flex;gap:8px;margin:18px 0}.memory-launch-counts span{min-width:130px;border:1px solid #334058;border-radius:12px;background:#121a2a;padding:12px;color:#9da9bb}.memory-launch-counts b{margin-left:8px;color:#fff}.memory-launch-card{display:grid;min-height:350px;place-items:center;border:1px solid #334058;border-radius:22px;background:radial-gradient(circle at 50% 8%,rgba(68,98,221,.15),transparent 58%),#0a0f19;padding:24px;text-align:center}.memory-launch-card>span{color:#8592a6;font-size:11px}.memory-launch-card>strong{font-size:clamp(38px,6vw,76px)}.memory-launch-card>.memory-button{min-width:240px;min-height:50px}.memory-launch-card>p{color:#8491a4;font-size:11px}
.memory-focus-overlay{position:fixed;inset:0;z-index:50;width:min(1194px,100%);margin:0 auto;background:#090a14}.memory-focus-wrap{position:relative;height:100vh;display:grid;grid-template-rows:64px minmax(0,1fr) 28px 116px;padding:0 28px}.memory-focus-top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2a2d3a}.memory-focus-left,.memory-focus-right{display:flex;align-items:center;gap:8px}.memory-focus-left>div:last-child{display:flex;align-items:center;gap:8px}.memory-focus-left h2{margin:0;font-size:17px}.memory-focus-left h2+span{border:1px solid #35394a;border-radius:999px;background:#171824;padding:5px 9px;color:#d7d9e2;font-size:10px;font-weight:850}.memory-focus-card{min-height:0;height:auto;border:0;border-radius:0;background:transparent;padding:22px;overflow:auto}.memory-focus-card>div{width:100%}.memory-focus-card #memoryCardPrompt{margin:0 0 18px;color:#71798d;font-size:11px}.memory-focus-card .memory-card-content{font-size:clamp(62px,8vw,104px);line-height:1.08}.memory-focus-card .memory-card-back{margin-top:24px;font-size:clamp(22px,3.3vw,42px);line-height:1.4}.memory-focus-card .memory-content-size-xl{font-size:clamp(96px,14vw,168px)}.memory-focus-card .memory-content-size-lg{font-size:clamp(38px,6vw,72px)}.memory-focus-card .memory-content-size-md{font-size:clamp(22px,3.6vw,38px)}.memory-recall-hint{align-self:center;color:#6f7789}.memory-focus-bottom{display:grid;align-content:center;border-top:1px solid #252a38}.memory-focus-bottom .memory-count-strip{min-height:72px;border-color:#292e3e;border-radius:10px;background:#0d101a}.memory-focus-bottom .memory-count-strip article{min-height:72px;display:grid;align-content:center;border-color:#272c3b}.memory-focus-bottom .memory-count-strip strong{font-size:21px}.memory-focus-bottom .memory-reveal{display:none}.memory-focus-bottom .memory-grade-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.memory-focus-bottom .memory-grade{min-height:72px;border-radius:9px}.memory-flashcard{cursor:pointer}.memory-flashcard:focus-visible{outline:3px solid #6d7df5;outline-offset:-3px}
.memory-focus-card.is-hanja-layout{align-content:center;gap:12px}.memory-focus-card .is-hanja-card-front{font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:normal}.memory-focus-card .memory-hanja-glyph{font-size:clamp(120px,11vw,152px)!important;font-weight:900!important;line-height:.9!important;letter-spacing:-.07em;text-indent:-.07em}.memory-focus-card .memory-hanja-prompt{margin-top:18px!important;color:#9297aa;font-size:16px!important;font-weight:650;line-height:1.4}.memory-focus-card.is-revealed .memory-hanja-prompt,.memory-focus-card .memory-hanja-back-glyph{display:none}.memory-focus-card .is-hanja-card-back{width:min(760px,100%);margin-inline:auto;justify-items:stretch;gap:14px;color:#d7d9e5;font-size:clamp(17px,1.5vw,20px);line-height:1.55;text-align:left}.memory-hanja-meta{display:flex;justify-content:center;gap:0;margin:0!important;padding:0 0 18px;border-bottom:1px solid rgba(255,255,255,.1)}.memory-hanja-meta-group{display:inline-flex;align-items:baseline;gap:10px;padding:0 24px}.memory-hanja-meta-group+.memory-hanja-meta-group{border-left:1px solid rgba(255,255,255,.12)}.memory-hanja-meta-label{color:#f6a85f;font-size:13px;font-weight:800;letter-spacing:.08em}.memory-hanja-meta-value{color:#f8fafc;font-size:clamp(20px,1.8vw,22px);font-weight:800}.memory-hanja-detail{margin:0!important;color:#c8cbd8;font-size:clamp(17px,1.5vw,20px);line-height:1.55}
.memory-text-size-popover{position:absolute;top:58px;left:178px;z-index:4;width:280px;border:1px solid #3a4256;border-radius:14px;background:#121826;padding:14px;box-shadow:0 18px 44px rgba(0,0,0,.45)}.memory-text-size-popover>strong{display:block;margin-bottom:10px}.memory-text-size-popover label{display:grid;grid-template-columns:1fr 44px 64px 44px;align-items:center;gap:6px;margin-top:8px;color:#cbd3df;font-size:12px}.memory-text-size-popover button{min-height:40px;border:1px solid #3b465d;border-radius:8px;background:#1a2537;color:#fff}.memory-text-size-popover>button{width:100%;margin-top:10px}.memory-student-stats{height:calc(100vh - 110px);overflow:auto}.memory-student-stats .memory-section-head{position:sticky;top:0;background:#101b2d;padding:8px 0;z-index:2}
@media(max-width:900px){.memory-study-shell{padding-inline:20px}.memory-home-hero{grid-template-columns:1fr 190px}.memory-home-picker .memory-deck-list{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-focus-wrap{padding-inline:20px}.memory-focus-right .memory-study-chip:first-child{display:none}.memory-focus-card .memory-card-content{font-size:clamp(58px,10vw,100px)}}
@media(max-width:700px){.memory-home-hero{grid-template-columns:1fr}.memory-home-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-home-picker .memory-deck-list{grid-template-columns:1fr}.memory-focus-right .memory-study-chip,.memory-focus-left>div:last-child{display:none}.memory-focus-wrap{padding-inline:12px}.memory-focus-bottom .memory-grade-grid{grid-template-columns:repeat(2,1fr)}}
.memory-focus-card #memoryCardFront{zoom:var(--memory-front-scale,1)}.memory-focus-card #memoryCardBack{zoom:var(--memory-back-scale,1)}
.memory-summary-action{border:1px solid #596ee0;border-radius:12px;background:#1c2850;padding:12px;color:#fff;text-align:left;cursor:pointer}.memory-summary-action:hover,.memory-summary-action:focus-visible{outline:2px solid #8090ff;outline-offset:2px}.memory-card-media{width:min(520px,88%);margin:0 auto 20px}.memory-card-media img{display:block;width:100%;max-height:min(220px,19vh);object-fit:contain;border:1px solid #34445d;border-radius:14px;background:#fff}.memory-card-answer-media{margin-top:20px;margin-bottom:0}
.memory-media-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px);gap:16px;align-items:center;border:1px solid #344862;border-radius:12px;background:#101c2d;padding:14px}.memory-media-editor strong,.memory-media-editor span{display:block}.memory-media-editor span{margin:5px 0 10px;color:var(--memory-muted);font-size:11px}.memory-media-editor input[type=file]{max-width:100%}.memory-media-editor figure{margin:0}.memory-media-editor img{display:block;width:100%;max-height:180px;object-fit:contain;border-radius:9px;background:#fff}@media(max-width:700px){.memory-media-editor{grid-template-columns:1fr}}
