/* A paper deck within the existing navy / mist-blue study space. */
.memory-thermal-revision>footer{text-align:left!important}
.memory-detail-group{margin:0 0 15px;min-width:0}
.memory-detail-group:last-child{margin-bottom:0}
.memory-detail-group>h3{font:500 10px/1.4 inherit;letter-spacing:2px;color:var(--paper-main);opacity:.7;margin:0 0 9px!important;font-size:10px}
.memory-symbols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px}
.memory-symbols>h3{grid-column:1/-1}
.memory-symbols>p{margin:0!important;font-size:13px;line-height:1.9}
.memory-detail-group .memory-math{border:0;padding:6px 1px}
.memory-relations,.memory-constants{padding-top:13px;border-top:1px solid color-mix(in srgb,var(--paper-main) 15%,transparent)}
.memory-constants .memory-math{color:#617575}
.memory-constant-item{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:12px;margin:4px 0}
.memory-constant-item>span{font-size:11px;color:#718787}
.memory-primary-statement{font-size:18px;line-height:2;max-width:100%;text-align:left;color:var(--paper-main);text-wrap:pretty}
.memory-zoom-scroll>.memory-mobile-face{margin:auto;width:min(1100px,100%);height:auto}
.memory-native-size .memory-zoom-scroll>.memory-mobile-face{width:1100px;max-width:none;flex-shrink:0}
@media(max-width:650px){.memory-symbols{grid-template-columns:minmax(0,1fr);gap:5px}.memory-primary-statement{font-size:16px}.memory-thermal-revision>footer{padding:17px 15px}.memory-detail-group{margin-bottom:16px}.memory-constant-item{grid-template-columns:minmax(0,1fr);gap:0;margin:7px 0}}
.memory-entry { width:100%; display:flex; align-items:center; gap:22px; text-align:left; position:relative; overflow:hidden; margin-top:20px; padding:25px 29px; border:1px solid #7998b52a; border-radius:18px; color:var(--ink); background:linear-gradient(115deg,#6486a214,#8cb8b608); cursor:pointer; transition:border-color .2s,transform .2s; }
.memory-entry:hover { border-color:#8ea8c28c; transform:translateY(-2px); }
.memory-entry-art { position:relative; flex:0 0 95px; height:76px; }
.memory-entry-art i { position:absolute; left:8px; top:9px; width:72px; height:51px; border:1px solid #547787; border-radius:5px; background:#d4e5e4; box-shadow:0 4px 8px #081e3020; transform:rotate(-15deg); }
.memory-entry-art i:nth-child(2) { transform:rotate(-4deg); background:#e9f2ef; left:14px; top:12px; }
.memory-entry-art i:last-child { transform:rotate(8deg); left:20px; top:15px; background:linear-gradient(#d5e6e3 0 23%,#f4f8f4 23%); display:grid; place-content:center; text-align:center; }
.memory-entry-art b { font:italic 24px Georgia,serif; color:#286368; }
.memory-entry-art small { font:5px/1.6 system-ui; letter-spacing:2px; color:#4a777d; }
.workspace-ui .workspace-hub .memory-entry .memory-entry-art b { color:#286368!important; }
.workspace-ui .workspace-hub .memory-entry .memory-entry-art small { color:#4a777d!important; }
.memory-entry-copy { display:grid; gap:7px; }
.memory-entry-copy>small { font-size:9px; letter-spacing:2.5px; color:var(--muted); }
.memory-entry-copy>strong { font-size:22px; font-weight:600; letter-spacing:1px; }
.memory-entry-copy>span { font-size:12px; color:var(--muted); }
.memory-entry-copy em { font-style:normal; margin-left:12px; opacity:.7; }
.memory-entry-arrow { margin-left:auto; width:30px; color:#829eae; }
/* Only UI icons have fixed dimensions. KaTeX's stretchable radical SVGs must
   retain their own width (often 400em) and intrinsic height. */
.memory-entry svg,.memory-page button>svg,.memory-dialog button>svg,.memory-search>svg { width:20px; height:20px; flex-shrink:0; }
.memory-page { --memory-ink:#dae5ee; --memory-muted:#96a9bb; --memory-line:#a5bed725; --memory-surface:#0f1d30; --memory-control:#14263c; --memory-accent:#a5c5d5; max-width:1440px; margin:0 auto; padding:40px 48px 62px; }
body.light .memory-page { --memory-ink:#233b50; --memory-muted:#8393a1; --memory-line:#718ba42a; --memory-surface:#ffffff; --memory-control:#f1f5f8; --memory-accent:#3d6a87; }
.memory-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; color:var(--memory-ink); }
.memory-eyebrow { font:10px/1.5 system-ui,sans-serif; letter-spacing:3px; color:var(--memory-muted); }
.memory-heading h1 { display:flex; align-items:center; gap:14px; margin:8px 0 0; font-size:32px; font-weight:600; letter-spacing:1px; line-height:1.4; }
.memory-heading h1:focus { outline:none; }
.memory-heading h1 span { font:11px/1 system-ui; letter-spacing:1px; padding:6px 10px; border:1px solid var(--memory-line); border-radius:20px; color:var(--memory-muted); }
.memory-return { display:flex; align-items:center; gap:10px; border:0; background:transparent; color:var(--memory-muted); font-size:12px; padding:12px 0 12px 12px; cursor:pointer; }
.memory-return svg { width:17px; }
.memory-studio { background:var(--memory-surface); border:1px solid var(--memory-line); border-radius:24px; padding:27px 34px 23px; box-shadow:0 15px 60px #06101d10; }
.memory-tools { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:23px; border-bottom:1px solid var(--memory-line); }
.memory-subjects { display:flex; gap:5px; padding:4px; border:1px solid var(--memory-line); border-radius:12px; background:var(--memory-control); }
.memory-subjects button { display:flex; align-items:center; justify-content:center; gap:10px; padding:10px 17px; border:0; border-radius:8px; background:transparent; color:var(--memory-muted); font-family:inherit; font-size:14px; line-height:1.3; cursor:pointer; transition:background .2s,color .2s,box-shadow .2s; }
.memory-subjects small { font:10px system-ui; opacity:.7; }
.memory-subjects button[aria-pressed=true] { color:var(--memory-ink); background:var(--memory-surface); box-shadow:0 2px 8px #06101d12; }
.memory-tools-right { display:flex; align-items:center; gap:13px; min-width:0; }
.memory-chapter { margin:0; min-width:0; }
.memory-page .memory-chapter select { max-width:215px; width:100%; min-height:42px; padding:8px 28px 8px 12px; border:1px solid var(--memory-line); border-radius:9px; background:var(--memory-surface); color:var(--memory-ink); font-size:12px; text-overflow:ellipsis; }
.memory-icon-button { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; flex-shrink:0; padding:10px; border:1px solid var(--memory-line,#8298af40); border-radius:10px; background:transparent; color:inherit; cursor:pointer; }
.memory-tools .memory-icon-button { color:var(--memory-muted); }
.memory-meta { display:flex; align-items:center; justify-content:space-between; padding:27px 12px 18px; color:var(--memory-muted); font-size:12px; letter-spacing:.5px; }
#memory-card-id { font:11px ui-monospace,Consolas,monospace; letter-spacing:2px; }
.memory-stage { position:relative; perspective:1800px; isolation:isolate; margin:0 12px 18px; aspect-ratio:511.44 / 227.973; touch-action:pan-y pinch-zoom; }
.memory-pile { position:absolute; inset:0; border:1px solid #c4cdd2; border-radius:9px; background:#eff2ec; transform:translateY(10px) scale(.983) rotate(-.5deg); box-shadow:0 9px 17px #00000012; z-index:-1; }
.memory-pile-two { transform:translateY(18px) scale(.962) rotate(.65deg); background:#dbe4e1; z-index:-2; }
.memory-rotor { position:absolute; inset:0; transform-style:preserve-3d; }
.memory-face { position:absolute; inset:0; border-radius:7px; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; background:#f7faf6; box-shadow:0 15px 32px #03172823,0 2px 4px #03172810; }
.memory-face::after { content:''; position:absolute; inset:0; pointer-events:none; border:1px solid #fff4; border-radius:inherit; background:linear-gradient(118deg,#ffffff12,transparent 40%,#04314403); }
.memory-next { transform:rotateY(180deg); }
.memory-front{z-index:1}.memory-next{z-index:2}.is-flipping .memory-face{will-change:transform;transform-style:preserve-3d;outline:1px solid transparent}
.memory-mobile-face{display:none}
.memory-daily{position:relative;display:flex;align-items:center;gap:30px;padding:19px 24px;margin:-3px 0 24px;border:1px solid var(--memory-line);border-radius:16px;background:var(--memory-surface);color:var(--memory-ink)}
.memory-daily>div{display:grid;grid-template-columns:auto auto;gap:7px 12px;align-items:center;min-width:100px}
.memory-daily>div>span{grid-column:1/-1;font-size:10px;color:var(--memory-muted)}
.memory-daily strong{font:500 22px/1.2 system-ui;font-variant-numeric:tabular-nums;white-space:nowrap}.memory-daily strong small{font-size:11px;color:var(--memory-muted)}
.memory-daily [data-memory-pause]{padding:4px;border:0;background:transparent;color:var(--memory-muted);cursor:pointer;font-size:15px;grid-column:2;grid-row:2}
.memory-daily>button{display:flex;align-items:center;gap:5px;margin-left:auto;padding:10px 0;border:0;background:transparent;color:var(--memory-muted);font-size:12px;cursor:pointer}
.memory-sync{position:absolute;right:24px;top:10px;font-size:8px;color:var(--memory-muted);opacity:.65}
.memory-timer-active [data-memory-today-time]{color:var(--memory-accent)}
.memory-recall-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 4px 13px;margin-top:1px;color:var(--memory-ink);border-bottom:1px solid var(--memory-line)}
.memory-card-evidence{display:grid;gap:7px}.memory-card-evidence>span{font-size:11px;color:var(--memory-muted)}.memory-card-evidence>span[data-level=steady]{color:#64ac98}.memory-card-evidence>span[data-level=weak]{color:#b99462}.memory-card-evidence>small{font-size:10px;color:var(--memory-muted)}
.memory-recall-start{font-size:12px;white-space:nowrap;padding:10px 15px;border:1px solid var(--memory-line);border-radius:9px;background:var(--memory-control);color:var(--memory-ink);cursor:pointer}
.memory-ratings{display:flex;gap:6px}.memory-ratings[hidden],.memory-recall-start[hidden]{display:none!important}.memory-ratings button{padding:9px 10px;border:1px solid var(--memory-line);border-radius:8px;background:transparent;color:var(--memory-ink);font-size:11px;cursor:pointer;white-space:nowrap}.memory-ratings button:hover{background:var(--memory-control)}
.memory-question-mode .memory-rotor{visibility:hidden}.memory-recall-mask{position:absolute;inset:0;z-index:5;background:linear-gradient(135deg,#e2eeeb,#f6f8ef);border:1px solid #b3c9c5;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center;color:#335e65;box-shadow:0 12px 30px #04152820}
.memory-recall-mask>span{font:11px ui-monospace,monospace;letter-spacing:3px;opacity:.6}.memory-recall-mask h2{font-size:24px;margin:14px 0 5px;font-weight:500;color:#335e65}.memory-recall-symbol{font:italic 90px/1.25 Georgia,serif;opacity:.2}.memory-recall-mask button{background:#335e65;color:#f4f8f6;border:0;border-radius:9px;padding:11px 25px;font-size:13px;cursor:pointer}
.memory-history-body{max-height:65dvh;overflow:auto}.memory-history-chart{display:flex;align-items:flex-end;gap:7px;height:145px;padding:10px 3px 20px;margin-bottom:14px}.memory-history-chart>div{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:5px}.memory-history-chart i{display:block;width:100%;max-width:26px;min-height:2px;border-radius:4px 4px 0 0;background:linear-gradient(#8bb5ba,#4c7a91)}.memory-history-chart span{font-size:9px;color:#819bad}.memory-history-chart small{font-size:8px;color:#819bad;writing-mode:vertical-rl;max-height:30px}.memory-history-table header,.memory-history-table>div{display:grid;grid-template-columns:1.1fr 1fr .8fr .8fr;gap:8px;padding:10px 6px;border-bottom:1px solid #819bad22;font-size:11px}.memory-history-table header{color:#819bad;font-size:10px}.memory-history-body h3{font-size:13px;font-weight:500;margin:23px 0 10px}.memory-review-log>div:not(.memory-empty){display:flex;align-items:center;gap:18px;padding:10px 6px;border-bottom:1px solid #819bad22;font-size:11px}.memory-review-log strong{font-size:11px;font-weight:500;margin-left:auto}.memory-review-log small{font-size:10px;color:#819bad}
.memory-face img { display:block; width:100%; height:100%; max-width:none; user-select:none; -webkit-user-drag:none; }
.memory-stage-status { min-height:26px; color:#d8a974; font-size:12px; text-align:center; padding-top:8px; }
.memory-stage-status button { margin-left:12px; background:transparent; color:inherit; border:0; text-decoration:underline; cursor:pointer; }
.memory-status-quiet { color:transparent; font-size:0; }
.memory-controls { position:relative; display:flex; align-items:center; justify-content:center; gap:28px; padding:16px 55px 23px; color:var(--memory-ink); }
.memory-step { min-height:44px; display:flex; align-items:center; justify-content:center; gap:9px; padding:11px 19px; border:1px solid var(--memory-line); border-radius:11px; background:transparent; color:var(--memory-ink); font:13px/1.3 system-ui,sans-serif; cursor:pointer; transition:background .2s,border-color .2s; }
.memory-step-next { background:var(--memory-control); }
.memory-step:not(:disabled):hover { border-color:var(--memory-accent); background:var(--memory-control); }
.memory-page button:disabled { cursor:default; opacity:.28; }
.memory-counter { display:flex; align-items:baseline; gap:6px; min-width:85px; justify-content:center; border:0; background:transparent; color:var(--memory-muted); padding:8px; cursor:pointer; font:11px/1.5 system-ui,sans-serif; }
.memory-counter strong { font-size:22px; font-weight:500; color:var(--memory-ink); }
.memory-enlarge { position:absolute; right:0; top:16px; color:var(--memory-muted); }
.memory-progress { height:2px; background:var(--memory-line); border-radius:2px; overflow:hidden; }
.memory-progress i { display:block; width:0; height:100%; background:var(--memory-accent); transition:width .35s; }
.memory-page button:focus-visible,.memory-entry:focus-visible,.memory-dialog button:focus-visible { outline:2px solid #8caecc; outline-offset:4px; }
.memory-dialog { --memory-line:#718ba436; width:min(700px,calc(100vw - 32px)); max-height:85dvh; border:1px solid #718ba436; border-radius:20px; padding:26px; color:#dbe6ef; background:#101d2e; box-shadow:0 30px 90px #0006; }
body.light .memory-dialog { color:#233b50; background:#fff; }
.memory-dialog::backdrop { background:#071321a6; backdrop-filter:blur(7px); }
.memory-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 18px; }
.memory-dialog-header small { font-size:9px; letter-spacing:2.5px; color:#8ca0b3; }
.memory-dialog-header h2 { font-size:22px; font-weight:500; margin:5px 0 0; line-height:1.4; }
.memory-dialog-header>div:last-child { display:flex; align-items:center; gap:10px; }
.memory-catalog .memory-dialog-header>div:first-child { display:block; }
.memory-search { display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid var(--memory-line); border-radius:11px; color:#8da1b2; margin:0 0 16px; }
.memory-search input { width:100%; padding:13px 0; background:transparent!important; border:0; outline:none; color:inherit; font-size:13px; }
.memory-catalog-list { max-height:55dvh; overflow-y:auto; overscroll-behavior:contain; }
.memory-catalog-list button { display:grid; align-items:center; grid-template-columns:49px 1fr 18px; gap:5px 12px; width:100%; padding:14px 12px; text-align:left; border:0; border-bottom:1px solid var(--memory-line); border-radius:8px; background:transparent; color:inherit; cursor:pointer; }
.memory-catalog-list button[aria-current=true],.memory-catalog-list button:hover { background:#7395b214; }
.memory-catalog-list button>span { grid-row:1 / 3; color:#819bad; font:11px ui-monospace,monospace; }
.memory-catalog-list button>strong { font-size:13px; font-weight:500; }
.memory-catalog-list button>small { grid-column:2; font-size:10px; color:#819bad; }
.memory-catalog-list button>svg { grid-column:3; grid-row:1 / 3; width:15px; color:#819bad; }
.memory-empty { padding:38px 0; text-align:center; color:#819bad; font-size:13px; }
.memory-zoom-dialog { width:calc(100vw - 40px); max-width:1500px; max-height:calc(100dvh - 40px); }
.memory-zoom-dialog .memory-dialog-header h2 { font-size:16px; }
.memory-zoom-size { border:1px solid var(--memory-line); border-radius:9px; background:transparent; padding:10px 13px; color:inherit; cursor:pointer; white-space:nowrap; font-size:12px; }
.memory-zoom-scroll { max-height:calc(100dvh - 165px); overflow:auto; padding:5px; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; }
.memory-zoom-scroll img { display:block; width:100%; max-width:none; height:auto; border-radius:8px; }
.memory-native-size .memory-zoom-scroll img { width:max(1200px,100%); }
@media(min-width:1500px) { .memory-stage { margin-left:32px; margin-right:32px; } .memory-meta { padding-left:32px; padding-right:32px; } }
@media(max-width:1100px) { .memory-page { padding:30px 24px 45px; } .memory-studio { padding:23px; } .memory-subjects button { padding:10px 12px; } .memory-tools { gap:10px; } .memory-tools-right { gap:7px; } .memory-page .memory-chapter select { max-width:170px; } }
@media(max-width:650px) { .memory-page { padding:25px 16px 36px; } .memory-heading { margin-bottom:21px; gap:5px; } .memory-heading h1 { font-size:27px; gap:10px; } .memory-eyebrow { font-size:8px; letter-spacing:2px; } .memory-return { font-size:11px; gap:6px; } .memory-return svg { width:15px; } .memory-heading h1 span { font-size:9px; } .memory-studio { padding:17px 13px 19px; border-radius:18px; } .memory-tools { flex-wrap:wrap; padding-bottom:15px; gap:14px; } .memory-subjects { flex:1; } .memory-subjects button { flex:1; padding:10px 12px; gap:7px; font-size:13px; } .memory-tools-right { width:100%; gap:12px; } .memory-chapter { flex:1; } .memory-page .memory-chapter select { max-width:none; min-height:39px; } .memory-tools-right>.memory-icon-button { width:39px; height:39px; } .memory-stage { margin:0 2px 16px; } .memory-meta { padding:20px 2px 14px; font-size:10px; } #memory-card-id { font-size:10px; } .memory-controls { gap:8px; padding:7px 36px 20px 0; } .memory-step { padding:10px; gap:4px; min-height:41px; font-size:12px; border-radius:9px; } .memory-step svg { width:16px; } .memory-counter { min-width:63px; gap:4px; padding:6px; font-size:10px; } .memory-counter strong { font-size:19px; } .memory-enlarge { width:33px; height:39px; padding:7px; top:8px; border:0; } .memory-stage-status { min-height:26px; font-size:11px; } .memory-entry { padding:20px 13px; gap:14px; } .memory-entry-art { flex-basis:82px; transform:scale(.88); transform-origin:left center; } .memory-entry-copy>strong { font-size:20px; } .memory-entry-copy>small { letter-spacing:1.4px; font-size:8px; } .memory-entry-copy>span { font-size:10px; } .memory-entry-copy em { display:none; } .memory-entry-arrow { width:19px; } .memory-dialog { padding:19px; } .memory-zoom-dialog { width:calc(100vw - 20px); padding:13px; } .memory-zoom-dialog .memory-dialog-header h2 { font-size:12px; } .memory-zoom-dialog .memory-dialog-header { gap:7px; } .memory-zoom-size { font-size:10px; padding:9px; } .memory-zoom-dialog .memory-icon-button { width:34px; height:34px; padding:8px; } }
@media(prefers-reduced-motion:reduce) { .memory-entry,.memory-progress i,.memory-subjects button { transition:none; } }
@media(max-width:650px){
 .memory-daily{gap:14px;padding:17px 14px 19px;margin-bottom:18px;flex-wrap:wrap}.memory-daily>div{min-width:0;flex:1;gap:8px 4px}.memory-daily strong{font-size:19px}.memory-daily>div:first-child{flex:1.2}.memory-daily>button{position:absolute;right:14px;top:4px;font-size:9px;padding:5px 0}.memory-daily>button svg{width:12px;height:12px}.memory-sync{top:auto;bottom:4px;right:14px;font-size:7px}.memory-daily>div>span{font-size:9px}.memory-daily [data-memory-pause]{font-size:13px}
 .memory-stage{aspect-ratio:auto;min-height:380px;transition:height .2s ease;margin-top:1px}.memory-face{height:auto;min-height:100%;overflow:hidden;border-radius:11px}.memory-face>.memory-desktop-face{display:none}.memory-mobile-face{display:block;width:100%;height:auto;min-height:380px;--paper-main:#236b6a;--paper-heading:#d7eae6;--paper-formula:#eaf5f2;--paper-note:#f4faf7;background:var(--paper-formula);border:1px solid color-mix(in srgb,var(--paper-main) 35%,transparent);border-radius:11px;overflow:hidden;color:#263a49}.memory-mobile-face[data-palette=blue]{--paper-main:#405d91;--paper-heading:#dee6f4;--paper-formula:#eef2fa;--paper-note:#f7f9fd}.memory-mobile-face[data-palette=warm]{--paper-main:#87552f;--paper-heading:#f3e1cb;--paper-formula:#fff2e2;--paper-note:#fffaf3}
 .memory-mobile-face>header{display:block;background:var(--paper-heading);padding:15px 18px 17px;height:auto;position:static;border:0;box-shadow:none;color:var(--paper-main)}.memory-mobile-face>header>span{display:block;font:9px ui-monospace,monospace;letter-spacing:2px;opacity:.7;margin-bottom:6px}.memory-mobile-face h2{font-size:19px;line-height:1.5;margin:0;color:#263a49;font-weight:600;letter-spacing:0}
 .memory-mobile-figure{padding:20px 18px 2px;height:198px;display:flex;align-items:center;justify-content:center}.memory-mobile-figure img{width:100%;height:100%;object-fit:contain;filter:none;max-width:none;background:transparent}
 .memory-mobile-formulas{padding:22px 15px 25px;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--paper-main)}.memory-math{width:100%;font-size:21px;overflow-x:auto;padding:9px 2px;scrollbar-width:thin}.memory-math .katex-display{margin:0;width:max-content;min-width:100%;max-width:none;overflow:visible;text-align:center}.memory-math .katex-display>.katex{white-space:nowrap;max-width:none}.memory-main-formula{border-top:1px solid color-mix(in srgb,var(--paper-main) 24%,transparent);border-bottom:1px solid color-mix(in srgb,var(--paper-main) 24%,transparent);padding:18px 2px}.memory-mobile-figure+.memory-mobile-formulas{padding-top:10px}.memory-down-arrow{font-size:24px;opacity:.65}.memory-premises{font-size:17px}
 .memory-mobile-face>footer{background:var(--paper-note);padding:16px 18px 21px;border-top:1px solid color-mix(in srgb,var(--paper-main) 25%,transparent);font-size:13px;line-height:1.95;color:#334752}.memory-mobile-face>footer p{margin:0 0 10px;word-break:normal;overflow-wrap:normal;text-wrap:pretty}.memory-mobile-face>footer p:last-child{margin-bottom:0}.memory-mobile-face>footer .katex{font-size:1.02em;line-height:normal;white-space:nowrap}
 .memory-note-math{display:inline-block;vertical-align:baseline;white-space:nowrap;max-width:100%;margin:2px 0;break-inside:avoid}.memory-note-math.is-long{display:block;margin:5px 0;white-space:normal}.memory-note-math.is-long>.katex{white-space:normal}.memory-note-math.is-long .base{margin-block:2px}.memory-note-field{white-space:normal}
 .memory-recall-bar{align-items:flex-start;flex-wrap:wrap;padding-top:13px}.memory-card-evidence{gap:6px}.memory-card-evidence>small{font-size:9px}.memory-ratings{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.memory-ratings button{font-size:10px;padding:10px 6px}.memory-recall-start{font-size:11px;padding:9px 11px}.memory-recall-mask h2{font-size:21px;line-height:1.6}.memory-recall-symbol{margin:25px 0;font-size:115px}
}
@media(max-width:360px){
 .memory-subjects button{padding:10px 7px;gap:4px;font-size:12px;min-width:0}.memory-subjects button>span,.memory-step>span{white-space:nowrap}.memory-controls{gap:4px;padding-right:28px}.memory-step{padding:9px 5px;gap:2px;font-size:11px}.memory-counter{min-width:52px;padding:4px}.memory-counter strong{font-size:18px}.memory-enlarge{width:27px;padding:4px}
}
/* The live reader uses one lightweight sheet on every device. The original
   vector PDF face remains available only in the explicit enlargement view. */
.memory-stage{aspect-ratio:auto;min-height:330px;transition:height .2s ease}
.memory-face{height:auto;min-height:100%}
.memory-subjects{max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:none}
.memory-subjects button{flex-shrink:0}
.memory-subjects button[hidden]{display:none!important}
.memory-entry-copy>span{line-height:1.8}
.memory-mobile-face.memory-map-card{display:block}
.memory-map-card .memory-mobile-figure{height:auto;padding:20px 16px}
.memory-map-card .memory-mobile-figure img{height:auto;max-height:none;width:100%;object-fit:contain}
@media(min-width:651px){
 .memory-mobile-face{--paper-main:#236b6a;--paper-heading:#d7eae6;--paper-formula:#eaf5f2;--paper-note:#f4faf7;display:grid;grid-template-columns:1fr;grid-template-areas:'heading' 'formulas' 'notes';width:100%;min-height:330px;height:auto;background:var(--paper-formula);color:#263a49;border:1px solid color-mix(in srgb,var(--paper-main) 35%,transparent);border-radius:8px;overflow:hidden}
 .memory-mobile-face.has-figure{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:'heading heading' 'figure formulas' 'notes notes'}
 .memory-mobile-face[data-palette=blue]{--paper-main:#405d91;--paper-heading:#dee6f4;--paper-formula:#eef2fa;--paper-note:#f7f9fd}.memory-mobile-face[data-palette=warm]{--paper-main:#87552f;--paper-heading:#f3e1cb;--paper-formula:#fff2e2;--paper-note:#fffaf3}
 .memory-mobile-face>header{grid-area:heading;position:static;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;background:var(--paper-heading);border:0;height:auto;box-shadow:none;padding:16px 26px;color:var(--paper-main)}
 .memory-mobile-face>header>span{font:11px ui-monospace,monospace;letter-spacing:2px}.memory-mobile-face h2{font:600 22px/1.5 inherit;line-height:1.5;font-size:22px;font-weight:600;color:#263a49;margin:0}
 .memory-mobile-figure{grid-area:figure;height:255px;min-width:0;display:flex;align-items:center;justify-content:center;padding:25px 22px}.memory-mobile-figure img{width:100%;height:100%;object-fit:contain;background:transparent;max-width:none}
 .memory-mobile-formulas{grid-area:formulas;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:25px 28px;gap:8px;color:var(--paper-main)}
 .memory-math{width:100%;padding:10px 2px;overflow-x:auto;font-size:25px}.memory-math .katex-display{margin:0;max-width:none;width:max-content;min-width:100%;overflow:visible;text-align:center}.memory-math .katex-display>.katex{white-space:nowrap;max-width:none}.memory-down-arrow{font-size:22px;opacity:.65}
 .memory-mobile-face>footer{grid-area:notes;position:static;display:block;background:var(--paper-note);color:#334752;font-size:14px;line-height:1.95;text-align:center;padding:18px 26px;border-top:1px solid color-mix(in srgb,var(--paper-main) 25%,transparent)}.memory-mobile-face>footer p{margin:0 0 7px;overflow-wrap:normal;word-break:normal}.memory-mobile-face>footer p:last-child{margin:0}.memory-mobile-face>footer .katex{font-size:1.02em;line-height:normal;white-space:nowrap}
 .memory-note-math{display:inline-block;vertical-align:baseline;white-space:nowrap;max-width:100%;margin:2px 0;break-inside:avoid}.memory-note-math.is-long{display:block;white-space:normal;margin:5px 0}.memory-note-math.is-long>.katex{white-space:normal}
}
@media(max-width:650px){.memory-subjects{width:100%}.memory-subjects button{flex:1 0 auto;padding:10px 8px;gap:4px}.memory-tools-right{min-width:0}.memory-mobile-formulas{padding-inline:10px}}
@media(min-width:651px){.memory-map-card .memory-mobile-figure{padding:28px 35px}.memory-map-card .memory-mobile-figure img{max-width:900px}}
