body.wf-story-active{overflow:hidden!important}
html body.student-page.wf-story-active #mobileStudyNav{visibility:hidden!important;pointer-events:none!important}
html body.student-page .wf-story[hidden],html body.student-page .wf-story-native[hidden]{display:none!important}
html body.student-page .wf-story{position:fixed;inset:0;z-index:1100;display:flex;flex-direction:column;background:#090909;color:#eee;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);font:14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;box-sizing:border-box;overflow:hidden}
html body.student-page .wf-story *{box-sizing:border-box}
html body.student-page .wf-story button{min-height:40px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;padding:6px 12px;cursor:pointer;box-shadow:none}
html body.student-page .wf-story header{display:flex;align-items:center;gap:10px;padding:4px 8px;min-height:48px;flex:none}
html body.student-page .wf-story header>span{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aaa;font-size:12px}
html body.student-page .wf-story header button:last-child{font-size:13px;color:#d5c18d}
html body.student-page .wf-story button img{width:24px!important;height:24px!important;object-fit:contain;filter:invert(95%);background:none}
html body.student-page .wf-story-visual{position:relative;flex:1;min-height:100px;display:flex;align-items:center;justify-content:center;touch-action:none;overflow:hidden;background:#050505}
html body.student-page .wf-story-visual>img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;user-select:none;-webkit-user-select:none}
html body.student-page .wf-story-noimage{display:flex;flex-direction:column;gap:18px;padding:30px;text-align:center}.wf-story-noimage strong{font-size:26px}.wf-story-noimage span{color:#999}
html body.student-page .wf-story-pages{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;background:#000a;border-radius:24px;font-size:12px}
html body.student-page .wf-story-zoom{position:absolute;right:8px;bottom:8px;background:#0008;border-radius:20px;font-size:12px}
html body.student-page .wf-story-copy{padding:10px 16px 4px;flex:none}
html body.student-page .wf-story-copy h2{font-size:17px;line-height:1.5;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#eee}
html body.student-page .wf-story-study{padding:5px 0;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#d5c18d}
html body.student-page .wf-story-study span{font-size:12px;color:#999}
html body.student-page .wf-story-collection{display:flex;align-items:center;gap:8px;width:calc(100% - 24px);margin:2px 12px 5px;background:#1f2023;border-radius:8px;font-size:12px;text-align:left;flex:none}
html body.student-page .wf-story-collection span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.student-page .wf-story-actions{display:grid;grid-template-columns:repeat(4,1fr);padding:3px 8px;border-top:1px solid #ffffff12;flex:none}
html body.student-page .wf-story-actions button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 2px;font-size:12px}
html body.student-page .wf-story-actions button[aria-pressed=true]{color:#f1849e}
html body.student-page .wf-story-comment-icon{display:inline-block;width:22px;height:19px;border:1.5px solid currentColor;border-radius:8px;font-size:0;position:relative}.wf-story-comment-icon:after{content:'···';font-size:16px;position:absolute;left:3px;top:-5px}
html body.student-page .wf-story-sequence{display:flex;align-items:center;justify-content:space-between;padding:0 5px;color:#888;flex:none;font-size:10px}
html body.student-page .wf-story-sequence button{font-size:10px;padding:3px 6px;min-height:30px}.wf-story-sequence button:disabled{opacity:.3}
html body.student-page .wf-story-status{margin:0;text-align:center;font-size:12px;line-height:1.6;color:#d5c18d;flex:none}
html body.student-page .wf-story-status:empty{display:none}
html body.student-page .wf-story-heart{position:absolute;pointer-events:none;font-size:90px;color:#ff5e84;opacity:0;transform:scale(.5);transition:opacity .2s,transform .2s}.wf-story-heart.on{opacity:1!important;transform:scale(1)!important}
html body.student-page .wf-story-return{display:block;margin:8px 0;padding:10px 15px;border:1px solid #8885;border-radius:12px;background:#242428;color:#eee;min-height:44px;cursor:pointer}
html body.student-page .wf-story-dialog{position:fixed;inset:0;z-index:2147483500;background:#0009;display:flex;align-items:flex-end;justify-content:center;padding:12px;box-sizing:border-box}
html body.student-page .wf-story-dialog section{width:min(100%,600px);max-height:85dvh;overflow:auto;background:#242428;color:#eee;border-radius:18px;padding:18px;font:14px/1.7 -apple-system,'PingFang SC',sans-serif}
html body.student-page .wf-story-dialog header{display:flex;justify-content:space-between;align-items:center}.wf-story-dialog p{color:#aaa;font-size:13px}.wf-story-dialog form,.wf-story-dialog label{display:grid;gap:10px}.wf-story-dialog label{margin-bottom:12px}.wf-story-dialog textarea,.wf-story-dialog select{width:100%;box-sizing:border-box;background:#17171b;color:#eee;padding:12px;border:1px solid #7775;border-radius:10px;font:inherit}.wf-story-dialog button{min-height:44px;background:#39363d;color:#eee;border:1px solid #8884;border-radius:10px;padding:8px 14px;font:inherit}
html body.student-page #memoryCommentsBackdrop,html body.student-page .memory-collection-backdrop{z-index:2200!important}
html body.student-page .image-viewer{z-index:2147483200!important}
@media(min-width:800px){html body.student-page .wf-story{width:min(100%,900px);left:50%;right:auto;transform:translateX(-50%);border-left:1px solid #222;border-right:1px solid #222}}

html body.student-page .wf-story-native:not([hidden]){display:contents}
/* Detail layouts set section geometry with !important; the story is a viewport layer. */
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-height:none!important;display:flex!important;grid-template-columns:none!important;grid-template-rows:none!important;overflow:hidden!important;margin:0!important;z-index:1100!important}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story[hidden]{display:none!important}
@media(min-width:800px){html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story{width:900px!important;max-width:100vw!important;left:50%!important;right:auto!important}}

/* A quiet footer surface and clear, shared action states. */
html body.student-page .wf-story .wf-story-collection{background:#19191d;border-radius:10px;padding:9px 12px;margin:3px 12px 0}
html body.student-page .wf-story .wf-story-actions{background:#19191d;margin:0 12px 4px;border-radius:0 0 10px 10px;border-top:1px solid #ffffff0a}
html body.student-page .wf-story .wf-story-icon{display:inline-block;flex:none;width:24px;height:24px;background:none}
html body.student-page .wf-story .wf-story-actions button.is-active,
html body.student-page .wf-story .wf-story-actions button[aria-pressed=true]{color:#d3b9ed}
html body.student-page .wf-story .wf-story-heart{color:#d3b9ed}
html body.student-page .wf-story .wf-story-actions button.is-playing .wf-story-icon{animation:wf-story-listening .85s ease-in-out infinite;transform-origin:50% 65%}
@keyframes wf-story-listening{0%,100%{transform:rotate(-8deg) scale(.96)}50%{transform:rotate(8deg) scale(1.08)}}
html body.student-page .memory-comments-backdrop{z-index:2147483400!important}
@media(prefers-reduced-motion:reduce){html body.student-page .wf-story .wf-story-actions button.is-playing .wf-story-icon{animation:none}}

html body.student-page .memory-collection-backdrop[data-collection-origin="study"]{z-index:2147483300!important}

/* Inline zoom: controls remain stationary while only the picture transforms. */
.wf-story-visual { overscroll-behavior:contain; }
.wf-story-visual > img { transform-origin:50% 50%; -webkit-user-drag:none; }
.wf-story-visual.is-zoomed > img { will-change:transform; }
.wf-story-visual.is-zoomed { cursor:grab; }
.wf-story-visual .wf-story-pages,.wf-story-visual .wf-story-zoom { z-index:2; }
html body.student-page .wf-story-visual .wf-story-resolution { position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:2;max-width:90%;width:max-content;min-height:30px;margin:0;padding:5px 12px;border:1px solid rgba(42,45,35,.2);border-radius:20px;background:#faf7eb;color:#303729;font:12px/1.4 system-ui;white-space:nowrap;opacity:1; }
.wf-story-resolution[hidden] { display:none!important; }

/* Compact return control: keep a 44px touch target without a full-width bar. */
html body.student-page button.wf-story-return{display:flex!important;align-items:center;justify-content:center;width:44px!important;max-width:44px!important;height:44px;min-height:44px;flex:0 0 44px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-size:18px!important;line-height:1!important}
/* Layout A: one persistent row of actual learning modules. */
html body.student-page .wf-module-top{flex:none;position:sticky;top:0;z-index:10;background:#fff9eb!important;color:#493e2d!important}
html body.student-page .wf-module-top header{display:flex!important;align-items:center;min-height:44px!important;height:44px!important;padding:0 6px!important;gap:6px;background:#fff9eb!important}
html body.student-page .wf-module-top header>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font:13px/1.3 system-ui!important;color:#655b4b!important}
html body.student-page .wf-module-top button{background:transparent!important;color:#493e2d!important;border:0!important;box-shadow:none!important;border-radius:0!important;min-height:44px!important;padding:0 10px!important;font:14px/1.3 system-ui!important}
html body.student-page .wf-module-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:0;padding:0 6px;border-bottom:1px solid #e6decc}
html body.student-page .wf-module-tabs button{flex:1 0 auto;min-width:44px;white-space:nowrap;position:relative}
html body.student-page .wf-module-tabs button[aria-pressed=true]{color:#55724b!important;font-weight:650!important}
html body.student-page .wf-module-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:3px;left:25%;right:25%;height:2px;background:#708560;border-radius:2px}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story{background:#fff9eb!important;color:#493e2d!important}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story .wf-story-visual{background:#f4eddf!important;min-height:0!important;flex:1 1 0!important;margin:0!important}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story .wf-story-visual>img{object-fit:contain!important}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story .wf-story-copy{padding:8px 14px 2px!important}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story .wf-story-copy h2{font-size:16px!important;line-height:1.4!important;margin:0!important;color:#493e2d!important}
html body.student-page #knowledgeStudyPanel #studentKnowledgeDetail .wf-story .wf-story-actions{background:transparent!important;margin:4px 12px!important;padding:0!important;border-top:1px solid #e6decc!important;border-radius:0!important}
html body.student-page .wf-story .wf-story-actions .wf-story-icon{width:20px!important;height:20px!important}
html body.student-page .wf-story .wf-story-actions button{min-height:44px!important;font-size:12px!important}
html body.student-page .wf-story .wf-story-pages{left:8px!important;transform:none!important;bottom:8px!important;font-size:11px!important}
html body.student-page .wf-story .wf-story-pages button{min-width:30px!important;min-height:32px!important;padding:0 6px!important}
html body.student-page .wf-story .wf-story-zoom{min-height:32px!important;font-size:11px!important;padding:0 9px!important}
html body.student-page.wf-module-study-active #mobileStudyNav{display:none!important}
html body.student-page.wf-module-study-active #knowledgeStudyPanel #studentKnowledgeDetail .wf-story-native:not([hidden]){position:fixed!important;inset:0!important;z-index:1100!important;display:block!important;background:#fff9eb!important;color:#493e2d!important;overflow:auto!important;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)!important;width:100%!important;height:100dvh!important}
html body.student-page .wf-story-native>.wf-story-return,
html body.student-page .wf-story-native>.tablet-knowledge-header,
html body.student-page .wf-story-native .knowledge-image-actions,
html body.student-page .wf-story-native .knowledge-neighbor-nav{display:none!important}
html body.student-page.wf-module-study-active #knowledgeStudyPanel #studentKnowledgeDetail .wf-story-native .knowledge-split-learning{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;gap:0!important}
html body.student-page.wf-module-study-active #knowledgeStudyPanel #studentKnowledgeDetail .wf-story-native [data-knowledge-pane]{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;border:0!important}
html body.student-page.wf-module-study-active #knowledgeStudyPanel #studentKnowledgeDetail .wf-story-native .knowledge-visual-list{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body.student-page.wf-module-study-active #knowledgeStudyPanel #studentKnowledgeDetail .wf-story-native .wf-module-hidden{display:none!important}
html body.student-page .wf-module-top button:focus-visible{outline:2px solid #708560!important;outline-offset:-3px}
