/* Study additions share the existing accent, surface and dark-mode tokens. */
.mind-explainer-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.mind-explainer-head label{min-width:190px;max-width:340px}.mind-explainer-head select{width:100%}.mind-explainer-head p{line-height:1.7}.mind-node-wrap{position:absolute}.mind-node-wrap .tree-map-node{position:relative!important;inset:auto!important;width:100%;height:100%;text-align:left;padding:12px 36px 12px 16px!important;overflow-wrap:anywhere;line-height:1.4}.mind-node-wrap .tree-map-node[aria-pressed=true]{outline:3px solid var(--branch-color);outline-offset:4px}.mind-expand{position:absolute;right:-15px;top:22px;width:36px;height:36px;border:2px solid var(--branch-color);border-radius:50%;background:var(--panel,#fff);color:var(--text,#183b36);font-size:22px;z-index:2;cursor:pointer}.tree-map-lines text{font:12px system-ui;stroke:var(--panel,#fff);stroke-width:4px;paint-order:stroke}.tree-map-viewport[hidden],.mind-outline[hidden]{display:none!important}.mind-outline{padding:16px;border:1px solid var(--edge,#d8e5df);border-radius:16px;max-height:420px;overflow:auto}.mind-outline-list{list-style:none;padding:0 0 0 12px;margin:0}.mind-outline-list li{margin:10px 0;border-left:2px solid var(--edge,#cce2d8);padding-left:12px}.mind-outline-list summary{padding:12px;cursor:pointer}.tree-map-detail{line-height:1.8;overflow-wrap:anywhere}.mind-recall{margin-top:16px}.mind-didactic{margin:22px 0;padding:20px;background:color-mix(in srgb,var(--accent,#087b62) 8%,var(--panel,#fff));border:1px solid var(--edge,#d3e4dd);border-radius:18px}.mind-didactic figcaption{font-size:17px;font-weight:600;margin-bottom:18px}.mind-didactic ol{padding:0;list-style:none;display:grid;gap:12px}.mind-didactic li{display:flex;align-items:start;gap:12px;padding:12px;background:var(--panel,#fff);border-radius:12px;border:1px solid var(--edge,#dce6e0)}.mind-didactic li>div{flex:1;min-width:0}.mind-didactic p{margin:6px 0!important;font-size:15px;line-height:1.7}.mind-diagram-number{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:var(--accent,#087b62);color:#fff}.mind-didactic svg{flex:0 0 24px;width:24px;height:24px;color:var(--accent,#087b62)}.mind-sequence li:last-child svg{visibility:hidden}.mind-comparison ol{grid-template-columns:repeat(2,minmax(0,1fr))}.mind-comparison .mind-diagram-number{display:none}.difficulty-next,.source-draft-restore{padding:20px;border-radius:16px;background:color-mix(in srgb,var(--accent,#087b62) 8%,var(--panel,#fff));border:1px solid var(--edge,#d5e6dd);margin:16px 0;line-height:1.75}.source-draft-restore[hidden]{display:none}.content-evidence{padding:16px 0;margin:12px 0;border-top:1px solid var(--edge,#d5e6dd);line-height:1.7}.content-evidence summary{cursor:pointer;min-height:40px}.content-evidence a{overflow-wrap:anywhere}.content-evidence blockquote{border-left:3px solid var(--accent,#087b62);margin:16px 0;padding:0 14px}.report-passage{display:inline-grid;place-items:center;margin-left:8px;min-width:32px;min-height:32px;border:0;border-radius:8px;color:var(--quiet,#557366);background:transparent;cursor:pointer;opacity:.55}.report-passage:hover,.report-passage:focus{opacity:1;background:color-mix(in srgb,var(--accent,#087b62) 12%,transparent)}.report-question{display:block;margin:16px 0 0}.report-selection{margin-top:14px}.content-report-dialog{box-sizing:border-box;width:min(94vw,620px);max-height:85dvh;overflow:auto;border:1px solid var(--edge,#d8e5df);border-radius:22px;background:var(--panel,#fff);color:var(--text,#203b35);padding:24px}.content-report-dialog::backdrop{background:#071d21a8}.content-report-dialog label{display:block;margin:18px 0}.content-report-dialog textarea{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:80px;font:inherit;padding:12px;background:var(--panel,#fff);color:inherit;border:1px solid var(--edge,#cadbd2);border-radius:10px}.mobile-check{padding:20px;border:1px solid var(--edge,#d5e6dd);border-radius:18px;margin:20px 0;background:var(--panel,#fff);line-height:1.7}.mobile-check>summary{cursor:pointer;font-size:18px}.mobile-check section{margin:24px 0}.mobile-check textarea{width:100%;box-sizing:border-box}.mobile-check audio{width:100%}.mobile-check .check{display:flex;align-items:center;gap:10px;min-height:48px}.mobile-check .check input{width:auto}.mobile-check fieldset{border:1px solid var(--edge,#d5e6dd);border-radius:12px}
@media(max-width:760px){.mind-explainer-head{display:block}.mind-explainer-head label{display:block;max-width:none}.tree-map-toolbar .actions{gap:8px;flex-wrap:wrap}.tree-map-toolbar .btn{min-height:44px;white-space:normal}.tree-map-viewport{height:340px!important;min-height:0!important}.mind-comparison ol{grid-template-columns:1fr}.mind-didactic{padding:14px}.tree-map-detail{padding:18px!important}.difficulty-next,.source-draft-restore{padding:16px}.content-report-dialog{padding:20px 16px}.content-report-dialog textarea,.mobile-check textarea{font-size:16px}.content-report-dialog .actions{display:flex;flex-wrap:wrap}.content-report-dialog .btn{min-height:46px}.report-passage{opacity:.8;min-height:36px;min-width:36px}.mobile-check{padding:16px;min-width:0}.mobile-check fieldset{min-width:0}.study-start-wizard input[type=file]{max-width:100%;box-sizing:border-box}.study-keyboard-open .content-report-dialog{max-height:92dvh}.study-keyboard-open .floating-notebook{max-height:calc(100dvh - 12px)}}
@media(prefers-reduced-motion:reduce){.tree-map *{scroll-behavior:auto!important;transition:none!important}}
.mind-node-wrap .tree-map-node>span:first-child{font-size:16px;flex:1 1 auto;min-width:0;color:inherit;white-space:normal}.mind-node-wrap .tree-map-node.is-root>span:first-child{font-size:18px;color:white}
.tree-map-lines text{fill:var(--quiet)}.mind-node-wrap .tree-map-node{border-color:color-mix(in srgb,var(--branch-color) 80%,var(--text))}
