.memory-studio{max-width:1160px}.memory-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-help{width:46px;height:46px;border:1px solid #5d748d;border-radius:10px;background:#142238;color:#e4f9ff;display:grid;place-items:center}.memory-help svg,.memory-drop svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.memory-balance{text-align:center;padding:4px 18px 24px}.memory-balance strong{font-size:2.25rem;color:#a6eff5;font-variant-numeric:tabular-nums;margin-right:8px}.memory-balance p{color:#c5d5e7;margin:8px 0;font-size:.94rem}.memory-studio h2{font-size:1.4rem;margin:0 0 18px}.memory-studio [hidden]{display:none!important}.memory-studio .tools-form-panel{margin:0 auto 24px}.memory-drop{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;border:1px dashed #6994a9;border-radius:14px;background:linear-gradient(145deg,#13293a,#151b30);cursor:pointer;text-align:center}.memory-drop svg{width:34px;height:34px;color:#b8e9ef}.memory-drop span{font-size:1.18rem;font-weight:650;color:#f1f7ff}.memory-drop small{color:#c5d5e7;font-size:.9rem}.memory-upload input[type=file]{margin:14px 0;width:100%;background:#0d1829;color:#ecf5ff;border:1px solid #526b83;border-radius:8px;padding:10px;font-size:.94rem}.memory-upload input::file-selector-button{background:#244558;color:#ecfbff;border:1px solid #83bdcc;border-radius:6px;padding:8px;margin-right:10px;white-space:normal}.memory-file-list{list-style:none;padding:0;display:grid;gap:6px}.memory-file-list li{overflow-wrap:anywhere;color:#d5e7f5;font-size:.92rem}.memory-hint,.memory-dialog p{color:#c8d8e9;font-size:.92rem;line-height:1.65}.memory-primary,.memory-secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 20px;border:1px solid #7dd6dd;border-radius:8px;background:linear-gradient(125deg,#1f5963,#263967);color:#fff;font-weight:650;cursor:pointer;text-decoration:none;white-space:normal;text-align:center}.memory-secondary{background:#17283e;border-color:#5e8aab;color:#e5f5ff}.memory-primary:disabled,.memory-secondary:disabled{cursor:wait;opacity:.7}.memory-primary:hover,.memory-secondary:hover{border-color:#cdf9ff;background:#23576c}.memory-studio button:focus-visible,.memory-studio a:focus-visible,.memory-studio input:focus-visible,.memory-dialog :focus-visible{outline:3px solid #adeff4;outline-offset:3px}.memory-studio #memoryMessage,.memory-dialog #memoryNameError{min-height:22px;color:#ffd6b3;line-height:1.5;overflow-wrap:anywhere}.memory-progress-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.memory-progress-head h2{margin:0}.memory-orbit{width:28px;height:28px;flex-shrink:0;border:2px solid #364b6c;border-top-color:#a9edf2;border-radius:50%;animation:memory-spin 1.2s linear infinite}.memory-progress #memoryHold{color:#becfe4;font-size:.9rem;margin:14px 0 22px}.memory-progress ol{list-style:none;padding:0;margin:0}.memory-progress li{position:relative;min-height:54px;padding:0 0 22px 34px;text-align:left;border-left:1px solid #40536d;margin-left:9px}.memory-progress li:last-child{border-left-color:transparent;padding-bottom:0}.memory-progress li:before{content:"";position:absolute;left:-7px;top:5px;width:13px;height:13px;border:2px solid #7c8fa7;border-radius:50%;background:#132034}.memory-progress li[data-state=complete]:before{background:#9be7cc;border-color:#9be7cc}.memory-progress li[data-state=active]:before{background:#a6edf3;border-color:#a6edf3;animation:memory-pulse 1.1s ease-in-out infinite}.memory-progress li strong{font-size:1rem;color:#c8d9ed}.memory-progress li[data-state=active] strong,.memory-progress li[data-state=complete] strong{color:#f0f8ff}.memory-progress li p{font-size:.9rem;line-height:1.5;color:#c1d2e6;margin:5px 0 0}.memory-result h2{overflow-wrap:anywhere}.memory-receipt{padding:16px;background:#143137;border:1px solid #40747b;border-radius:12px;margin:14px 0 18px;color:#d6ffef}.memory-receipt strong{font-size:1.35rem}.memory-receipt p{margin:7px 0;font-size:.92rem;line-height:1.55}.memory-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px 0}.memory-topic-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 16px}.memory-topic-tabs button{color:#d6e8f9;background:#13243a;border:1px solid #56738e;border-radius:7px;padding:10px 13px;text-align:left;overflow-wrap:anywhere;min-height:44px}.memory-topic-tabs button[aria-selected=true]{background:#204c5c;border-color:#a4d9e5;color:#fff}.memory-page{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:24px;align-items:start;margin:24px 0 32px}.memory-comic{display:block;background:#fff;border-radius:8px;border:1px solid #b5c7d5;overflow:hidden}.memory-comic img{width:100%;height:auto;display:block}.memory-recall ol{margin:0;padding-left:24px;display:grid;gap:16px}.memory-recall h3{font-size:1.02rem;color:#c9f2fa;margin:0 0 6px}.memory-recall p{font-size:.96rem;color:#e0eaf7;line-height:1.65;margin:0 0 7px}.memory-recall .memory-fact{color:#bfe9d8}.memory-result details,.memory-dialog details{margin-top:20px;background:#101e32;border:1px solid #435b76;border-radius:9px;padding:12px}.memory-result summary,.memory-dialog summary{color:#d5eaff;cursor:pointer;padding:3px 0;min-height:26px}.memory-reference p{line-height:1.6;overflow-wrap:anywhere;color:#d2e1f2}.memory-reference small{color:#b4c7df}.memory-warning{color:#ffe0bd;line-height:1.6;overflow-wrap:anywhere}.memory-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.memory-card{text-align:left;border:1px solid #506882;border-radius:12px;background:linear-gradient(145deg,#15273b,#171e33);color:#f2f7ff;padding:18px;cursor:pointer;min-width:0}.memory-card strong{display:block;font-size:1.04rem;overflow-wrap:anywhere}.memory-card span{display:block;font-size:.88rem;line-height:1.5;color:#c1d8ec;margin-top:8px}.memory-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:30px 28px;border:1px solid #6f8caa;border-radius:18px;background:linear-gradient(150deg,#16283d,#111a2d);color:#eff6ff;overflow:auto;box-shadow:0 24px 90px #0008}.memory-dialog::backdrop{background:#050c18d9;backdrop-filter:blur(6px)}.memory-dialog h2{font-size:1.45rem;line-height:1.35;margin:0 28px 24px 0;overflow-wrap:anywhere}.memory-close{position:absolute;right:12px;top:10px;border:1px solid transparent;border-radius:6px;width:38px;height:38px;background:transparent;color:#e6f3ff;font-size:28px;cursor:pointer}.memory-dialog label{display:block;color:#d4eaf9;font-size:.95rem;margin:12px 0 8px}.memory-dialog input,.memory-dialog textarea{box-sizing:border-box;width:100%;background:#0b1628;color:#f1f7ff;border:1px solid #7595b0;border-radius:8px;padding:13px;font-size:1rem}.memory-dialog input::placeholder,.memory-dialog textarea::placeholder{color:#acbfd3;opacity:1}.memory-dialog audio{width:100%;height:44px;margin-bottom:12px}.memory-help-dialog li{margin-bottom:10px;line-height:1.65;color:#d0e3f5}.memory-help-dialog ol{padding-left:23px}.memory-library>p{color:#bfcee2}.memory-cost-row{border-bottom:1px solid #334c62;padding:9px 0;line-height:1.6;overflow-wrap:anywhere;color:#cfe3f6;font-size:.86rem}.memory-links-list{display:flex;flex-wrap:wrap;gap:10px}.memory-links-list a{color:#bfedf6;overflow-wrap:anywhere}.memory-reverse{margin-top:4px}.memory-private-note{color:#b9cce2;font-size:.86rem;line-height:1.6}@keyframes memory-spin{to{transform:rotate(360deg)}}@keyframes memory-pulse{50%{box-shadow:0 0 0 6px #aceef221}}@media(max-width:650px){.memory-page{grid-template-columns:1fr;gap:20px}.memory-dialog{padding:28px 18px}.memory-dialog h2{font-size:1.25rem}.memory-studio .tools-form-panel{padding:22px 16px}.memory-actions>a,.memory-actions>button{flex:1 1 150px}.memory-studio h2{font-size:1.25rem}.memory-drop{padding:22px 12px}.memory-topic-tabs button{flex:1 1 auto}.memory-balance strong{font-size:1.85rem}}@media(prefers-reduced-motion:reduce){.memory-orbit,.memory-progress li[data-state=active]:before{animation:none}.memory-studio *,.memory-dialog *{scroll-behavior:auto!important;transition:none!important}}.memory-studio .memory-upload label.memory-drop{display:flex;flex-direction:column;align-items:center;gap:10px}.memory-studio .memory-upload .memory-drop span,.memory-studio .memory-upload .memory-drop small{display:block}