:root{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;color:#15364a;background:#eff8fc;font-size:16px;line-height:1.45;--blue:#0874a0;--green:#15835c;--line:#d8e6ed;--soft:#e6f5fc;--muted:#4b697a}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{border:1px solid #b8d4df;background:white;color:#17536b;border-radius:12px;padding:9px 14px;cursor:pointer;font-weight:650}button:hover{background:#e5f5fc}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible{outline:3px solid #f0ad35;outline-offset:2px}button:disabled{opacity:.45;cursor:default}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#086b95}.green{background:var(--green);color:white;border-color:var(--green)}.green:hover{background:#116e4e}.danger{color:#aa3240}.muted{color:var(--muted);font-size:.9rem}input:not([type=checkbox]):not([type=color]),textarea,select,.rich{width:100%;border:1px solid #bed6e0;border-radius:10px;padding:9px 10px;background:white;color:#163b4f}input[type=color]{width:42px;height:34px;padding:2px;border:1px solid #bed6e0;border-radius:7px;background:white}textarea{resize:vertical;min-height:64px}label{display:block;font-weight:600;font-size:.92rem}label.check{display:flex;align-items:center;gap:7px;font-weight:500}input[type=checkbox]{accent-color:var(--blue);width:17px;height:17px}h1,h2,h3,p{margin:0 0 8px}h1{font-size:1.55rem}h2{font-size:1.2rem}h3{font-size:1rem}header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 18px;background:white;border-bottom:1px solid var(--line)}.brand{color:#087fa4;font-weight:800;letter-spacing:-.035em;font-size:1.25rem}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:11px}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:0 2px 8px #15456008;min-width:0}.shell{padding:14px;max-width:1600px;margin:auto}.workspace{display:grid;grid-template-columns:minmax(180px,230px) minmax(320px,1fr) minmax(280px,350px);gap:12px;align-items:start}.sidebar{max-height:calc(100vh - 100px);overflow:auto}.editor{max-height:calc(100vh - 100px);overflow:auto}.item{width:100%;text-align:left;display:flex;align-items:center;gap:7px;margin:3px 0}.selected{background:#ddf2fc;border-color:#61b1d3}.tiny{font-size:.8rem;padding:5px 8px;border-radius:8px}.toolbar{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.toolbar button{padding:5px 9px;border-radius:8px}.rich{min-height:60px;overflow-wrap:anywhere;white-space:pre-wrap;font-weight:400}.rich p{margin:0 0 4px}.rich:empty:before{content:attr(data-placeholder);color:#4b697a;pointer-events:none}.rich ul{padding-left:22px;margin:3px 0}.view{height:clamp(300px,65vh,850px);position:relative;background:#eaf2f5;overflow:hidden;border:1px solid #c9dce5;border-radius:13px;touch-action:none;isolation:isolate;user-select:none;cursor:grab}.view:active{cursor:grabbing}.stage{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}.stage img{width:100%;height:100%;object-fit:fill;display:block;user-select:none;pointer-events:none}.overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden}.pin{position:absolute;transform:translate(-50%,-100%);padding:0!important;background:none!important;border:0!important;min-width:22px;min-height:22px;display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:pointer;filter:drop-shadow(0 1px 2px #203c5270);z-index:1}.pin.center{transform:translate(-50%,-50%)}.pin.active{z-index:5;filter:drop-shadow(0 0 4px #ffd43b) drop-shadow(0 0 3px #17354a)}.pin.active svg{overflow:visible}.pin:focus-visible{outline:3px solid #ffc54d}.annotation{position:absolute;transform:translate(-50%,-50%);padding:6px 9px;border-radius:5px;line-height:1.2;max-width:55%;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 1px 3px #112f4420}.annotation.editable{pointer-events:auto;cursor:pointer}.viewtools{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:5px;z-index:8}.viewtools button{background:#fff;padding:6px 9px;min-width:36px;box-shadow:0 1px 4px #15354a25}.viewtools .recommend{font-size:.73rem;max-width:110px}.notice{padding:10px 12px;border-radius:12px;background:#e1f5eb;color:#176049}.warning{background:#fff2d9;color:#85500d}.error{background:#ffe5e8;color:#8a2634}.menu{max-width:960px;margin:24px auto}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.cardbutton{display:flex;align-items:center;gap:14px;padding:20px;text-align:left;border-radius:19px;min-height:100px;background:white;box-shadow:0 3px 10px #1c576a0b}.iconbox{width:49px;height:49px;border-radius:13px;background:#dff3ec;display:flex;align-items:center;justify-content:center;flex-shrink:0}.iconbox svg{width:32px;height:32px}.cardbutton strong{font-size:1.12rem}.cardbutton small{display:block;font-weight:400;color:#456876}.playgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,320px);gap:12px;align-items:start}.playgrid .view{height:calc(100dvh - 154px);min-height:360px;max-height:1100px}.playgrid.functiononly{grid-template-columns:1fr;max-width:820px;margin:20px auto}.playgrid.functiononly .imagepanel{display:none}.question{overflow-wrap:anywhere;max-height:calc(100dvh - 100px);overflow:auto}.progress{height:9px;background:#dcecf2;border-radius:20px;overflow:hidden}.progress>span{height:100%;display:block;background:#25ab79;transition:width .25s}.qnav{display:flex;gap:5px;flex-wrap:wrap;max-height:100px;overflow:auto}.qnav button{padding:5px;min-width:30px;font-size:.85rem}.qnav button.current{outline:2px solid #0782b0}.qnav .done{background:#dcf5e7}.qnav .miss{background:#ffe8d0}.qnav .failed{background:#ffe4e6}.bank{max-height:40vh;overflow:auto;display:grid;gap:7px}.bankline{border-bottom:1px solid #e1edf0;padding:3px 0}.circle{border-radius:100%;width:29px;height:29px;padding:0;line-height:1}.results{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.metric{background:#eaf6fb;padding:12px;border-radius:13px}.metric b{font-size:1.65rem;display:block}.modal{border:1px solid #c3dbe5;border-radius:18px;padding:20px;max-width:min(620px,92vw);max-height:90vh;overflow:auto;color:#15364a;box-shadow:0 10px 50px #143c5660}.modal::backdrop{background:#16394c80}.modal h2{margin-bottom:12px}.tip{position:fixed;z-index:10000;background:#163b4f;color:white;padding:8px 10px;max-width:min(270px,calc(100vw - 12px));font-size:.83rem;border-radius:8px;pointer-events:auto;overflow-wrap:anywhere;box-shadow:0 3px 12px #0b263b40}.hidden{display:none!important}.iconpicker{display:grid;grid-template-columns:repeat(auto-fill,minmax(77px,1fr));gap:6px}.iconchoice{display:grid;justify-items:center;gap:5px;font-size:.65rem;padding:6px;overflow-wrap:anywhere}.iconchoice svg{height:31px;width:31px}.confetti{position:fixed;top:0;left:50%;width:8px;height:8px;pointer-events:none;z-index:100;animation:fall .9s ease-out forwards}@keyframes fall{to{transform:translate(var(--dx),45vh) rotate(240deg);opacity:0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}.reduce *{animation:none!important;transition:none!important}@media(max-width:1050px){.workspace{grid-template-columns:185px minmax(0,1fr)}.editor{grid-column:1/-1;max-height:none}.sidebar{max-height:none}}@media(max-width:720px){.workspace,.playgrid{grid-template-columns:1fr}.sidebar,.editor,.question{max-height:none}.playgrid .view{height:52dvh;min-height:280px}.shell{padding:8px}.view{height:48vh}.results{grid-template-columns:repeat(2,1fr)}header{padding:9px}.cards{grid-template-columns:1fr}.panel{padding:11px}}
.stack>*,.sidebar>*,.editor>*{flex-shrink:0}.viewtools{align-items:flex-end}.viewtools button:not(.recommend){width:38px}.viewtools .recommend{width:auto}.playgrid .view{height:calc(100dvh - 209px)}@media(max-width:720px){.playgrid .view{height:52dvh}}

.pancontrols{display:grid;grid-template-columns:repeat(2,minmax(24px,1fr));gap:3px}.viewtools .pancontrols button{padding:2px 5px;min-width:24px;min-height:24px;font-size:14px;line-height:1.2}
.viewtools .pancontrols button{width:28px}

.iconbox .custom-icon{width:83%;height:83%;object-fit:contain;display:block;flex:none}
.custom-icon-mask{background:currentColor;mask:var(--activity-mask) center / contain no-repeat}
.iconbox .custom-icon-placeholder{width:42%;height:42%;border-radius:50%;background:currentColor;opacity:.18}

.region-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}
/* Portable project chooser: only shown before opening the editor. */
.studio-home{min-height:100vh;background:#0876ac;color:white}.home-main{max-width:980px;margin:0 auto;padding:clamp(24px,7vh,80px) clamp(16px,4vw,48px);display:flex;flex-direction:column;gap:26px}.home-intro h1{color:white;font-size:clamp(36px,6vw,64px);line-height:1.08;margin:8px 0 12px;letter-spacing:-1.5px}.home-intro p{font-size:18px;margin:0;color:#e6f6ff}.home-kicker{font-size:12px;letter-spacing:2px;font-weight:700;color:#fff}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-actions button{display:block;text-align:left;background:white;color:#07547e;border:1px solid #c1e9ff;border-radius:16px;padding:24px;min-height:105px;box-shadow:0 7px 18px #03496a40}.home-actions button:hover{background:#e8f7ff}.home-actions strong{font-size:19px;display:block;margin-bottom:6px}.home-actions span{display:block;font-size:14px;color:#426478;font-weight:400}.home-list{background:white;color:#183b52;border-radius:16px;padding:22px}.home-list h2{margin:0 0 14px}.home-list input{width:100%;margin-bottom:12px}.project-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-top:1px solid #dae6ee;padding:10px 0}.project-open{flex:1;min-width:170px;text-align:left;border:none!important;background:#eff8fe!important;color:#07547e!important}.project-open b,.project-open small{display:block;overflow-wrap:anywhere}.project-open small{color:#426478;margin-top:3px}.home-foot{color:#fff;font-size:14px}.studio-home button:focus-visible{outline:3px solid #f4d35e;outline-offset:3px}@media(max-width:560px){.home-actions{grid-template-columns:1fr}.home-actions button{padding:16px;min-height:80px}.home-list{padding:14px}}
/* 2.3: viewport-aware desktop workspace and progressive disclosure */
.creator-header{padding:8px 14px;position:relative;z-index:20}.creator-header .row{gap:6px}.creator-header button,.drop summary{padding:7px 10px;font-size:.87rem}.drop{position:relative}.drop summary{cursor:pointer;border:1px solid #b8d4df;border-radius:10px;background:white;font-weight:650;color:#17536b}.drop>div{position:absolute;right:0;top:100%;min-width:220px;background:white;border:1px solid #b8d4df;border-radius:12px;padding:7px;display:grid;gap:5px;box-shadow:0 6px 24px #163b4f30;z-index:30}.drop>div button{text-align:left}.workspace{max-width:none;width:100%;padding:10px;gap:10px;grid-template-columns:minmax(176px,220px) minmax(0,1fr) minmax(260px,350px)}.workspace.sidebar-closed{grid-template-columns:minmax(0,1fr) minmax(260px,350px)}.sidebar-closed>.sidebar{display:none}.workspace .panel{padding:12px}.workspace .stack{gap:9px}.workcenter{min-width:0}.activitysettings label{font-size:.82rem}.activitysettings .row{gap:6px}.activitysettings details summary,.editor details summary{cursor:pointer;color:#17536b;font-size:.86rem;font-weight:600}.activitysettings details[open],.editor details[open]{padding:7px;border:1px solid var(--line);border-radius:9px}.structurelist{max-height:160px;overflow:auto}.editor .richsection{border-top:1px solid var(--line);padding-top:12px;margin-top:3px}.richsection .toolbar{background:#edf1f3;padding:5px;border-radius:9px;gap:3px}.richsection .toolbar button{font-size:.75rem;padding:3px 6px;min-width:24px;min-height:24px}.richsection .toolbar label{font-size:.72rem}.richsection .toolbar input[type=color]{width:26px;height:22px;vertical-align:middle}.richsection .rich{min-height:56px}.addfield{text-align:left;padding:7px 10px;font-size:.86rem}.help{border-radius:50%;width:25px;height:25px;padding:0}.pin-actions{min-height:30px}.workspace .view{min-height:220px}.imageeditor #toolHelp{display:none}.imageeditor:has(#finishRegion) #toolHelp{display:block}.bankline{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}.bankline .circle{display:inline-block;vertical-align:middle;white-space:nowrap;margin:2px 0;flex-shrink:0}.modecards{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.modecards.count4,.modecards.count2{grid-template-columns:repeat(2,minmax(0,1fr))}.modecards .cardbutton{justify-content:center;text-align:center;min-height:74px;padding:14px}.choosemenu h1,.choosemenu h2{text-align:center}.choosemenu .inactive{opacity:.55}.choosemenu .inactive button{opacity:1;cursor:default}.choosemenu .inactive button:hover{background:white}.choosemenu .stack{gap:10px}.playpage{max-width:none;width:100%;padding:10px}.playpage .question{min-width:0}.playpage .imagepanel{min-width:0}.playpage .imagepanel p{margin-bottom:0;font-size:.78rem}.playpage .bank{max-height:34vh}.playpage .playgrid{grid-template-columns:minmax(0,1fr) minmax(280px,340px)}.playpage .playgrid.functiononly{grid-template-columns:1fr}.playpage .playgrid .view{min-height:220px;max-height:none}.playpage .imagepanel .view{flex:1;min-height:0;height:auto}.playpage .imagepanel{display:flex;flex-direction:column}.playpage .functiononly .imagepanel{display:none}
@media(min-width:1051px) and (min-height:600px){#app:has(.workspace),#app:has(.playpage){height:100dvh;display:flex;flex-direction:column;overflow:hidden}#app:has(.workspace)>header,#app:has(.playpage)>header{flex:0 0 auto}.workspace{flex:1;min-height:0;align-items:stretch;overflow:hidden}.workspace>.sidebar,.workspace>.editor{height:100%;max-height:none;overflow:auto}.workcenter{height:100%;min-height:0;overflow:auto}.activitysettings{flex:0 0 auto}.imageeditor{flex:1!important;min-height:280px;display:flex;flex-direction:column}.imageeditor .view{flex:1!important;height:auto;min-height:180px}.playpage{flex:1;min-height:0;overflow:hidden}.playpage .playgrid{flex:1;min-height:0;align-items:stretch;overflow:hidden}.playpage .question{max-height:none;overflow:auto}.playpage .imagepanel{height:100%;overflow:hidden}.playpage .functiononly{display:block;overflow:auto;width:100%;margin:0 auto}.playpage .functiononly .question{height:auto;max-height:none}.playpage .viewtools{max-height:100%;overflow:auto}}
@media(max-width:1050px){.workspace,.workspace.sidebar-closed{grid-template-columns:180px minmax(0,1fr)}.workspace.sidebar-closed{grid-template-columns:1fr}.workcenter{min-width:0}.playpage .imagepanel .view{height:55dvh;flex:none}.playpage .question{max-height:none}.modecards .cardbutton{min-height:64px}.workspace .editor{grid-column:1/-1}.workspace .sidebar{max-height:none}}
@media(max-width:720px){.workspace,.workspace.sidebar-closed,.playpage .playgrid{grid-template-columns:1fr}.modecards{gap:7px}.modecards .cardbutton{font-size:.85rem;padding:8px;min-height:58px}.modecards .cardbutton strong{font-size:1rem}.playpage .imagepanel .view{height:52dvh}.choosemenu{margin:8px auto}}
@media (max-width: 720px) {
  .creator-header .drop[open] {
    flex: 1 0 100%;
    min-width: 0;
  }
  .creator-header .drop > div {
    position: static;
    min-width: 0;
    max-width: none;
    margin-top: 4px;
  }
  .creator-header .interface-menu .interface-choice {
    white-space: normal;
  }
}
.activityname{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}.activityname input{padding:6px 9px}.compact-settings button{padding:6px 9px;font-size:.84rem}.compact-settings input[type=color]{height:27px;width:34px}.compact-settings label.check{gap:4px}.compact-settings label.row{gap:4px;flex-wrap:nowrap}.activitymore>div{margin:8px 0}.workspace .activitysettings{gap:8px}.creator-header .brand{white-space:nowrap}.workspace .imageeditor h3{margin-bottom:0}

/* Version 2.4: tactile but uncluttered selection contrast. */
.choosemenu .modecards .cardbutton.selected{background:#bce9fb;border:2px solid #1989bd;color:#103e57;box-shadow:0 0 0 1px #e5f8ff inset,0 4px 12px #176a9330}
.choosemenu .modecards .cardbutton.selected:hover{background:#99d9f3;border-color:#076a9c;color:#103e57}
.choosemenu .modecards .cardbutton:not(.selected):hover{background:#dcf2fb;border-color:#58a7cc;color:#103e57}
.choosemenu .modecards .cardbutton.selected strong,.choosemenu .modecards .cardbutton:hover strong{color:#103e57}
.pin.active{z-index:7;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #06cbbf) drop-shadow(0 0 6px #087caa);animation:pin-select-pop .32s ease-out}
.pin.active svg{overflow:visible;transform:scale(1.15);transform-origin:center bottom}
.pin.active.center svg{transform-origin:center center}
.pin.active::after{content:"";position:absolute;inset:-5px;border:2px solid #18b8d0;border-radius:50%;box-shadow:0 0 0 2px #fff;pointer-events:none}
@keyframes pin-select-pop{from{filter:drop-shadow(0 0 0 #fff);opacity:.78}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.pin.active{animation:none}}
.reduce .pin.active{animation:none}

/* 2.5: selected pins glow without extra circle, and collapsible navigation. */
.pin.active{z-index:7;filter:drop-shadow(0 0 3px #76fff5) drop-shadow(0 0 7px #0be4d7) drop-shadow(0 0 10px #08babc);animation:none}
.pin.active svg{overflow:visible;transform:none}
.pin.active::after{content:none!important;display:none!important}
.viewtools{right:8px;top:8px;display:flex;flex-direction:column;gap:5px;align-items:center;max-height:calc(100% - 16px);overflow:visible!important}
.viewtools .view-toggle{width:29px;min-width:29px;min-height:25px;padding:1px 4px;font-size:17px;border:1px solid #bbd7e3;border-radius:9px;background:#fff;color:#145775;box-shadow:0 1px 3px #102c3d20}
.viewtools .view-toggle:hover{background:#dcf4fb}
.viewtools .nav-controls{background:rgba(9,23,35,.70);border:1px solid rgba(255,255,255,.25);padding:6px;display:flex;flex-direction:column;align-items:center;gap:5px;border-radius:13px;box-shadow:0 4px 13px #091c2e25;overflow:auto;max-height:min(70vh, calc(100dvh - 190px))}
.viewtools .nav-controls[hidden]{display:none}
.viewtools .nav-controls button{background:#ffffffee;color:#17465d;border:1px solid #b6d2dd;min-width:30px;min-height:30px;padding:3px 6px;border-radius:8px}
.viewtools .nav-controls button:hover{background:#cff2fc}
.viewtools .nav-controls .pancontrols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.viewtools .nav-controls .pancontrols button{min-width:27px;padding:2px 4px}
.viewtools .recommend{max-width:90px;width:90px;min-height:29px;padding:4px 5px;font-size:.68rem;line-height:1.12;border-radius:9px;background:#e7fcf8;color:#07546a;border:1px solid #6dbeb3;box-shadow:0 2px 5px #103b4230;white-space:normal}
.viewtools .recommend:hover{background:#cdf6ef}
.viewtools .recommend:not(.hidden){animation:recommend-attention 1.05s ease-out 1}
@keyframes recommend-attention{0%,100%{transform:scale(1);box-shadow:0 2px 5px #103b4230}42%{transform:scale(1.065);box-shadow:0 0 9px #54bebe80}}
@media(prefers-reduced-motion:reduce){.viewtools .recommend:not(.hidden){animation:none}}
.reduce .viewtools .recommend:not(.hidden){animation:none}

/* 2.6: steady nav toggle, visual selection and stable authoring header. */
.pin.active svg{transform:scale(1.15);transform-origin:center bottom}
.pin.active.center svg{transform-origin:center center}
.viewtools{width:90px;align-items:flex-end}
.viewtools .view-toggle{width:34px;min-width:34px;height:30px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:#e2f5ff;color:#126186;border:1px solid #8fc8df;flex-shrink:0}
.viewtools .view-toggle:hover{background:#c5eafa}
.viewtools .view-toggle svg{display:block;flex-shrink:0}
.viewtools .nav-controls{align-self:flex-end}
.viewtools .recommend{align-self:flex-end}
.creator-header .project-nav{background:#e2f4ff;color:#075578;border-color:#a6d4ed;font-weight:650}
.creator-header .project-nav:hover{background:#cceaff}
.creator-header .current-project{max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.creator-header .header-divider{width:1px;height:22px;background:#bdd5de;margin:0 3px;flex-shrink:0}
.creator-header .save-indicator{order:-1;flex:0 0 200px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.77rem}
@media(max-width:980px){.creator-header .save-indicator{flex-basis:116px;max-width:116px}.creator-header .current-project{max-width:145px}}

/* 2.7: configurable selection glow and structure-wide highlighting. */
.pin.active {filter:drop-shadow(0 0 var(--pin-glow-small,3px) var(--pin-glow,#0be4d7)) drop-shadow(0 0 var(--pin-glow-medium,7px) var(--pin-glow,#0be4d7)) drop-shadow(0 0 var(--pin-glow-size,10px) var(--pin-glow,#0be4d7));}
.pin.group-highlight:not(.active) {z-index:6;filter:drop-shadow(0 0 var(--pin-glow-small,3px) var(--pin-glow,#0be4d7)) drop-shadow(0 0 var(--pin-glow-medium,7px) var(--pin-glow,#0be4d7));}
.pin.group-highlight:not(.active) svg {transform:scale(1.10);transform-origin:center bottom;overflow:visible;}
.pin.group-highlight.center svg {transform-origin:center center;}
.marker-style-preview {display:inline-flex;filter:drop-shadow(0 0 var(--pin-glow-small,4px) var(--pin-glow,#0be4d7)) drop-shadow(0 0 var(--pin-glow-medium,8px) var(--pin-glow,#0be4d7));}
.creator-header .project-control {display:inline-flex;align-items:center;position:relative;flex:0 0 auto;}
.creator-header:not(.studio-header) .save-indicator {position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);display:block;width:190px;max-width:190px;text-align:right;order:initial;flex:none;margin:0;pointer-events:none;}
@media(max-width:1170px){.creator-header:not(.studio-header) .save-indicator{display:none;}}

/* 2.8 Interface: independently controlled authoring panels. The image editor is never hidden. */
.workspace:not(.studio-workspace).hide-activities>.sidebar,.workspace.hide-settings .activitysettings,.workspace:not(.studio-workspace).hide-structures>.editor{display:none!important}
@media (min-width:1051px){
 .workspace:where(:not(.studio-workspace)):not(.hide-activities):not(.hide-structures){grid-template-columns:minmax(176px,220px) minmax(0,1fr) minmax(260px,350px)}
 .workspace:where(:not(.studio-workspace)).hide-activities:not(.hide-structures){grid-template-columns:minmax(0,1fr) minmax(260px,350px)}
 .workspace:where(:not(.studio-workspace)):not(.hide-activities).hide-structures{grid-template-columns:minmax(176px,220px) minmax(0,1fr)}
 .workspace:where(:not(.studio-workspace)).hide-activities.hide-structures{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:721px) and (max-width:1050px){
 .workspace:where(:not(.studio-workspace)):not(.hide-activities){grid-template-columns:180px minmax(0,1fr)}
 .workspace:where(:not(.studio-workspace)).hide-activities{grid-template-columns:minmax(0,1fr)}
 .workspace:where(:not(.studio-workspace)).hide-activities .editor{grid-column:1/-1}
}
/* Compact and predictable pin action layout */
.imageeditor{position:relative;isolation:isolate}
.pin-toolbar-shell.bottom{min-height:45px;box-sizing:border-box;display:flex;align-items:center;padding:5px 7px;border:1px solid #d6e4eb;background:white;border-radius:11px;flex:0 0 auto}
.pin-toolbar-shell.bottom .pin-actions{display:flex;gap:6px;flex-wrap:wrap}
.pin-toolbar-shell.floating{position:absolute;z-index:16;left:15px;bottom:45px;max-width:calc(100% - 30px);width:180px;border:1px solid #b6d3de;background:rgba(255,255,255,.98);border-radius:14px;box-shadow:0 5px 19px #183d5338;padding:8px;box-sizing:border-box}
.pin-toolbar-shell.floating .pin-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px}
.pin-toolbar-shell.floating .pin-action-title{grid-column:1/-1;font-size:.72rem;font-weight:750;color:#2a667e;padding:0 1px 3px}
.pin-toolbar-shell.floating .pin-actions button{font-size:.73rem;padding:5px 4px;white-space:normal;min-width:0;line-height:1.15}
.pin-toolbar-shell.floating #pointReset{grid-column:1/-1}
.pin-toolbar-shell.bottom .pin-actions button{font-size:.8rem;padding:5px 8px}
/* Photoshop-like nested Interface submenu with checked panels. */
.interface-drop .interface-menu{min-width:205px;max-width:min(260px,90vw);gap:4px}
.interface-menu-label{font-size:.72rem;font-weight:750;color:#587585;text-transform:uppercase;letter-spacing:.04em;padding:3px 7px}
.interface-menu .interface-choice{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;font-size:.84rem;font-weight:550;white-space:nowrap;cursor:pointer}
.interface-menu .interface-choice:hover{background:#e6f4fc}
.interface-menu .interface-choice input{margin:0;accent-color:#097caa}
.interface-menu .interface-choice:has(input:disabled){opacity:.55;cursor:default}
.interface-menu .panel-flyout{position:relative;margin:3px 0;padding:3px 0;border-top:1px solid #d7e7ee;border-bottom:1px solid #d7e7ee}
.interface-menu .panel-flyout>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;border:0;background:transparent;border-radius:8px;font-size:.85rem;padding:8px;color:#17536b}
.interface-menu .panel-flyout>summary::-webkit-details-marker{display:none}
.interface-menu .panel-flyout>summary:hover{background:#e6f4fc}
.interface-menu .panel-flyout[open]>summary{background:#edf7fb}
.interface-menu .panel-flyout-content{position:absolute;z-index:40;left:calc(100% + 9px);top:-7px;width:180px;background:white;border:1px solid #b8d4df;box-shadow:0 8px 26px #15354a30;border-radius:11px;padding:6px;display:grid;gap:3px}
@media(max-width:1150px){.interface-menu .panel-flyout-content{left:auto;right:calc(100% + 9px)}}
@media(max-width:720px){.interface-menu .panel-flyout-content{position:static;width:auto;margin:4px 2px;box-shadow:none}.pin-toolbar-shell.floating{left:10px;bottom:38px}}

/* 2.9: mutually exclusive check-mark choices in their own flyout */
.interface-menu .pin-placement-flyout-content{position:absolute;z-index:40;left:calc(100% + 9px);top:-7px;width:194px;background:white;border:1px solid #b8d4df;box-shadow:0 8px 26px #15354a30;border-radius:11px;padding:6px;display:grid;gap:3px}
.interface-menu .pin-placement-flyout{margin-top:0;border-top:0}
.interface-menu .pin-placement-flyout>summary{font-weight:600}
.interface-menu .placement-choice{position:relative;display:flex;align-items:center;gap:7px;padding:8px;border-radius:8px}
.interface-menu .placement-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.interface-menu .placement-choice .choice-check{display:inline-flex;align-items:center;justify-content:center;flex:0 0 17px;width:17px;height:17px;font-size:.88rem;font-weight:800;color:#097caa}
.interface-menu .placement-choice:has(input:checked){background:#e8f5fc;color:#075777}
.interface-menu .placement-choice:has(input:focus-visible){outline:3px solid #e4ad3b;outline-offset:1px}
.interface-menu .placement-choice:hover{background:#dff1fa}
@media(max-width:1150px){.interface-menu .pin-placement-flyout-content{left:auto;right:calc(100% + 9px)}}
@media(max-width:720px){.interface-menu .pin-placement-flyout-content{position:static;width:auto;margin:4px 2px;box-shadow:none}}
/* QA14: avoid intrinsic button-content overflow on the project chooser at 400% zoom. */
.home-actions button{min-width:0;overflow-wrap:anywhere}

/* QA16: Preserve visible selection in Windows Contrast themes, where shadows
   and custom color effects may not provide reliable selection feedback. */
@media (forced-colors: active) {
  .pin.active,
  .pin.group-highlight {
    outline: 3px solid Highlight !important;
    outline-offset: 3px;
  }
  .modecards .cardbutton.selected,
  .qnav button.current,
  .structurelist .selected,
  .workspace .item.selected {
    outline: 3px solid Highlight !important;
    outline-offset: 1px;
  }
}

.modal.preview-dialog { width: min(92vw, 1280px); max-width: 92vw; }
.preview-dialog iframe { display: block; width: 100%; height: 68vh; border: 1px solid #c3dbe5; }
.rich .ProseMirror { min-height: 3em; }
.rich .ProseMirror p { margin: 0 0 .25em; }
.author-rich-reference { padding-inline: .2em; border: 1px solid var(--line); border-radius: .25em; }
.author-rich-spoiler { border-bottom: 2px dotted currentColor; }


.studio-glyph { display:inline-block; width:1.25em; height:1.25em; vertical-align:middle; flex:none; }
.studio-sr,.study-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Shared Flow graph: semantic tokens from the existing Studio and Study themes. */
.flow-graph {--fg-surface:var(--ui-surface,var(--study-surface,#fff));--fg-bg:var(--ui-surface-muted,var(--study-bg,#e8eff3));--fg-ink:var(--ui-text,var(--study-text,#233b48));--fg-muted:var(--ui-muted,var(--study-muted,#516674));--fg-line:var(--ui-border,var(--study-border,#b9cdd7));--fg-accent:var(--ui-primary,var(--study-focus,#126c88));--fg-selected:var(--ui-selected,var(--study-selected,#ddeef4));display:flex;flex-direction:column;gap:5px;min-width:0;min-height:0;color:var(--fg-ink);font-size:13px;position:relative;}
.flow-graph-tools{display:flex;align-items:center;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;min-width:0;flex:none;}
.flow-tool-group{display:flex;align-items:center;gap:2px;flex-wrap:wrap;min-width:0;}
.flow-graph :is(.flow-icon,.flow-grip){display:inline-flex;align-items:center;justify-content:center;padding:4px;min-width:28px;min-height:28px;width:28px;height:28px;border:1px solid transparent;background:transparent;color:var(--fg-muted);border-radius:4px;flex:none;}
.flow-graph :is(.flow-icon,.flow-grip):hover{background:var(--fg-selected);color:var(--fg-accent);}
.flow-graph :is(.flow-icon,.flow-grip):disabled{opacity:.4;cursor:default;}
.flow-graph :is(.flow-icon,.flow-grip) svg{width:17px;height:17px;display:block;flex:none;}
.flow-zoom-value{font-size:12px;color:var(--fg-muted);white-space:nowrap;min-width:36px;text-align:center;font-variant-numeric:tabular-nums;}
.flow-graph-view{height:clamp(210px,55dvh,660px);min-height:160px;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;position:relative;border:1px solid var(--fg-line);border-radius:5px;background:var(--fg-bg);scrollbar-width:thin;scrollbar-color:var(--fg-muted) transparent;cursor:grab;touch-action:none;}
.flow-graph-view.panning{cursor:grabbing;user-select:none;}
.flow-graph-board{position:relative;isolation:isolate;}
.flow-graph-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;color:var(--fg-muted);}
.flow-arrow{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}
.flow-arrow.active{stroke:var(--fg-accent);stroke-width:2.4;}
.flow-arrow-hit{fill:none;stroke:transparent;stroke-width:12;pointer-events:stroke;cursor:pointer;outline:none;}
.flow-arrow-hit:focus-visible{stroke:var(--fg-accent);stroke-opacity:.24;}
.flow-graph-card{position:absolute;width:260px;height:64px;padding:4px 5px;box-sizing:border-box;border:1px solid var(--fg-line);border-radius:5px;background:var(--fg-surface);cursor:default;z-index:1;}
.flow-graph-card.selected{border-color:var(--fg-accent);box-shadow:0 0 0 1px var(--fg-accent);z-index:3;}
.flow-graph-card.target{border-color:var(--fg-accent);background:var(--fg-selected);box-shadow:0 0 0 2px var(--fg-accent);}
.flow-graph-card.dragging{z-index:6;opacity:.88;cursor:grabbing;}
.flow-graph-card.source{box-shadow:0 0 0 2px var(--fg-accent);}
.flow-card-main{display:flex;gap:2px;align-items:center;height:32px;min-width:0;}
.flow-graph .flow-card-main input{height:32px;min-height:32px;min-width:0;width:0;flex:1 1 0;padding:4px 6px;border:0;background:transparent;color:var(--fg-ink);border-radius:3px;font:inherit;cursor:text;}
.flow-graph .flow-grip{width:24px;min-width:24px;cursor:grab;touch-action:none;}
.flow-card-meta{padding:0 6px 0 28px;line-height:19px;font-size:11px;color:var(--fg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.flow-marker-status{display:inline-flex;position:relative;vertical-align:middle;margin-inline-end:7px}
.flow-marker-status svg{width:13px;height:13px}
.flow-marker-state{position:absolute;inset-inline-end:-5px;bottom:-2px;color:#a73b48;background:var(--fg-surface);border-radius:50%}
.flow-marker-state svg{display:block;width:9px;height:9px}
.flow-marker-selected .flow-marker-state{color:var(--study-success,#137658)}
.flow-study-answer .flow-card-main input[aria-invalid=true]{outline:2px solid currentColor;outline-offset:-2px}
.flow-submit-actions{justify-content:flex-end;margin-top:8px}
.flow-card-badge:empty{display:none}.flow-card-badge svg{width:18px;height:18px;display:block;}
.flow-card-actions{position:absolute;right:0;top:calc(100% + 3px);display:none;gap:2px;padding:2px;border:1px solid var(--fg-line);border-radius:5px;background:var(--fg-surface);z-index:7;align-items:center;}
.flow-graph-card.selected .flow-card-actions:not(:empty){display:flex;}.flow-graph-board.connecting .flow-card-actions{display:none!important}.flow-graph-board.connecting .flow-graph-card{cursor:crosshair}
.flow-graph-board.connecting .flow-graph-card.source .flow-card-actions{display:flex!important}
.flow-graph-board.connecting .flow-card-actions button:not([data-connect]){display:none}
.flow-card-actions [data-connect][aria-pressed=true]{color:var(--fg-accent);background:var(--fg-selected);outline:1px solid currentColor}
.flow-graph-card:has(.flow-card-detail){height:auto;min-height:64px}
.flow-card-detail{padding:4px 5px 2px;overflow-wrap:anywhere;max-height:320px;overflow:auto}
.flow-card-detail h3{font-size:inherit;margin:5px 0 2px}
.flow-graph-edge-menu{position:absolute;display:flex;gap:2px;z-index:8;padding:2px;background:var(--fg-surface);border:1px solid var(--fg-line);border-radius:5px;}
.flow-graph-status{min-height:1.4em;color:var(--fg-muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere;flex:none;}
.flow-graph .flow-library-suggestions{position:absolute;top:37px;left:26px;right:2px;background:var(--fg-surface);border:1px solid var(--fg-line);border-radius:5px;padding:3px;z-index:9;max-height:180px;overflow:auto;box-shadow:0 3px 10px #16232b22;}
.flow-library-suggestions button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:12px;padding:5px;}
.flow-expanded[open]{width:min(1400px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;gap:8px;padding:12px;box-sizing:border-box;}
.flow-expanded>h2{margin:0;font-size:1.1rem;flex:none;}.flow-expanded>.flow-graph{flex:1 1 0;min-height:0;}.flow-expanded .flow-graph-view{height:auto;min-height:0;}
.flow-studio-panel{display:flex;flex-direction:column;gap:7px;min-height:0;flex:1 1 0;}.flow-studio-panel>h2{font-size:15px;margin:0;}.flow-studio-panel>.flow-graph{min-height:0;flex:1 1 0;}.flow-studio-panel .flow-graph-view{min-height:150px;height:auto;flex:1 1 0;}.flow-studio-panel .flow-panel-actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center;}.flow-studio-panel .flow-panel-actions button{font-size:12px;padding:5px 8px;}.flow-properties-switch{margin:0;flex:none;}.flow-studio-properties{min-height:0;flex:1 1 0;display:flex;flex-direction:column;overflow:auto;}.flow-studio-properties[hidden],.flow-studio-panel[hidden]{display:none!important;}
.flow-study-answer{padding:6px!important;min-width:0;}.flow-study-answer>.flow-graph{height:clamp(260px,61dvh,670px);}.flow-study-independent{max-width:1000px;margin-inline:auto;width:100%;box-sizing:border-box;}.flow-study-independent>.flow-graph{height:clamp(320px,70dvh,760px);}.flow-review-graph{height:min(55dvh,520px);}
.flow-route-checklist{display:flex;flex-direction:column;gap:7px;max-height:48dvh;overflow:auto;}.flow-route-checklist label{display:flex;gap:8px;align-items:flex-start;overflow-wrap:anywhere;}.flow-route-checklist input{flex:none;}
.flow-review-good{color:var(--ui-success,var(--study-success,#146b54));}.flow-review-bad{color:var(--fg-muted);}
@media(max-width:760px){.flow-study-answer>.flow-graph{height:clamp(240px,45dvh,450px);}.flow-study-independent>.flow-graph{height:clamp(270px,65dvh,650px);}.flow-graph-tools{justify-content:flex-start;}.flow-expanded[open]{width:98vw;max-width:98vw;height:94dvh;max-height:94dvh;padding:7px;}.flow-graph :is(.flow-icon,.flow-grip){min-height:32px;min-width:32px;width:32px;height:32px;}.flow-card-main{gap:0;}}
.flow-arrow.correct{stroke:var(--ui-success,var(--study-success,#146b54));}.flow-arrow.incorrect{stroke:var(--fg-muted);stroke-dasharray:5 4;}.flow-draft-status{font-size:11px;margin:0;line-height:1.3;}.flow-graph .flow-card-main input.flow-review-good{color:var(--ui-success,var(--study-success,#146b54));}.flow-graph .flow-card-main input.flow-review-bad{color:var(--fg-muted);}
/* Override generic form sizing only within the new shared graph. */
:is(body[data-author-theme],.identification-app) .flow-graph button.flow-icon,
:is(body[data-author-theme],.identification-app) .flow-graph button.flow-grip{min-height:28px;height:28px;width:28px;min-width:28px;padding:3px;border:1px solid transparent;background:transparent;border-radius:4px;color:var(--fg-muted);}
:is(body[data-author-theme],.identification-app) .flow-graph button.flow-grip{width:24px;min-width:24px;}
:is(body[data-author-theme],.identification-app) .flow-graph button.flow-icon:hover,
:is(body[data-author-theme],.identification-app) .flow-graph button.flow-grip:hover{background:var(--fg-selected);color:var(--fg-accent);}
:is(body[data-author-theme],.identification-app) .flow-graph .flow-card-main input{height:30px;min-height:30px;max-height:30px;padding:4px;border:0;background:transparent;border-radius:3px;font:inherit;box-sizing:border-box;}
:is(body[data-author-theme],.identification-app) .flow-graph .flow-card-main input:focus-visible{outline:1px solid var(--fg-accent);outline-offset:0;}
.flow-graph [hidden]{display:none!important;}.flow-graph .flow-card-badge.good{color:var(--ui-success,var(--study-success,#146b54))}.flow-graph .flow-card-badge.bad{color:var(--fg-muted)}
.flow-studio-panel .flow-panel-actions button{min-height:30px;}.flow-properties-switch{gap:2px!important;}.flow-properties-switch>button{flex:1;min-height:30px!important;font-size:12px;border:0!important;background:transparent!important;}.flow-properties-switch>button[aria-pressed=true]{background:var(--ui-selected)!important;color:var(--ui-primary)!important;}
.identification-app .flow-study-columns{grid-template-columns:minmax(0,1fr) minmax(300px,380px);}
.flow-review-details{min-width:0;overflow-wrap:anywhere;}.flow-review-details>summary{cursor:pointer;font-weight:600;}.flow-review-details ol{padding-inline-start:22px;}.flow-review-details li{margin-block:7px;}
.flow-review-panel,.flow-learn-panel{min-width:0;overflow-wrap:anywhere;}
.flow-review-panel>select{width:100%;margin-block:3px 6px;}
.flow-review-views{margin-bottom:6px;}
.flow-review-views [aria-pressed=true]{background:var(--ui-selected);color:var(--ui-primary);}
.flow-review-panel .flow-review-graph{height:clamp(205px,48dvh,480px);}
.flow-review-graph .flow-card-meta{padding-inline-start:5px;}
.flow-review-graph .flow-arrow-hit{pointer-events:none;}
.flow-arrowhead-correct{color:var(--ui-success,var(--study-success,#146b54));}
.flow-arrowhead-incorrect{color:var(--fg-muted);}
.flow-review-explanations{padding-inline-start:23px;}
.flow-review-explanations li+li{margin-top:8px;}
@media(max-width:760px){.identification-app .flow-study-columns{grid-template-columns:minmax(0,1fr)}:is(body[data-author-theme],.identification-app) .flow-graph button.flow-icon{min-height:36px;height:36px;min-width:36px;width:36px}.flow-graph .flow-card-main input{font-size:16px!important;}}

/* Flow controls: use the existing quiet workspace and Study button hierarchy. */
body[data-author-theme] .studio-author .flow-properties-switch{grid-template-columns:repeat(2,minmax(0,1fr));margin-block:5px;gap:3px!important;}
body[data-author-theme] .studio-author .flow-properties-switch>button{min-height:33px!important;font-size:13px;font-weight:400;border-radius:4px;}
body[data-author-theme] .studio-author .flow-properties-switch>button[aria-pressed=true]{font-weight:650;color:var(--ui-text)!important;}
body[data-author-theme] .studio-author .flow-panel-actions button{min-height:29px;font-size:12px;font-weight:500;border-radius:4px;}
body[data-author-theme] .studio-author .flow-panel-actions button:not(.primary){border-color:transparent;background:transparent;color:var(--ui-muted);}
body[data-author-theme] .studio-author .flow-panel-actions button:not(.primary):hover{background:var(--ui-selected);color:var(--ui-text);}
.flow-graph .flow-icon:focus-visible,.flow-graph .flow-grip:focus-visible{outline:2px solid var(--fg-accent);outline-offset:1px;}
body:has(.identification-app) { margin:0;background:#f2f6f8; }
.identification-app {
  --study-bg:#f2f6f8;--study-surface:#fff;--study-text:#233b48;--study-muted:#516674;
  --study-border:#8397a3;--study-focus:#126c88;--study-on-focus:#fff;--study-selected:#ddeef4;--study-success:#146b54;
  min-height:100dvh;color:var(--study-text);background:var(--study-bg);font:16px/1.45 system-ui,"Segoe UI",sans-serif;
}
.identification-app[data-student-theme="dark"] {
  color-scheme:dark;
  --study-bg:#141c22;--study-surface:#202c35;--study-text:#e4edf2;--study-muted:#b0c1cc;
  --study-border:#8195a2;--study-focus:#74cadf;--study-on-focus:#14272f;--study-selected:#304d5d;--study-success:#79d1b0;
}
.identification-app :is(button,select,input:not([type=range])) {
  min-height:44px;color:var(--study-text);background:var(--study-surface);border-color:var(--study-border);border-radius:8px;
}
.identification-app button.primary { color:var(--study-on-focus);background:var(--study-focus);border-color:var(--study-focus); }
.identification-app button:is(.selected,:hover,[aria-current=step]) {
  background:var(--study-selected);color:var(--study-text);border-color:var(--study-focus);
}
.identification-app :is(button,input,select,[tabindex]):focus-visible {outline:2px solid var(--study-focus);outline-offset:2px}
.identification-app :is(.muted,.study-header span) { color:var(--study-muted); }
.identification-app .view .pin { min-height:0;border-radius:0;border:0;background:none; }
.study-header { display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.75rem;padding:8px 16px;
  background:var(--study-surface);color:var(--study-text);border-bottom:1px solid var(--study-border); }
.study-header #studyTheme { margin-inline-start:auto; }
.study-home,.study-attempt { max-width:1440px;padding:16px;margin:0 auto;display:grid;gap:12px; }
.study-home { max-width:1020px; }
.study-home h1,.study-attempt h1 { margin:0;font-size:clamp(1.35rem,3vw,2.1rem);overflow-wrap:anywhere; }
.study-home h2 { margin:8px 0;font-size:1.12rem; }
.study-home > button,.study-home > select { justify-self:start;width:auto; }
.study-choices {display:flex;flex-wrap:wrap;gap:8px}
.study-attempt-head { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px }
.study-columns { display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:12px;align-items:start}
.study-image,.study-question,.study-score { min-width:0;border-radius:12px;background:var(--study-surface);padding:12px;border:1px solid var(--study-border); }
.study-image .view { min-height:330px;height:min(65dvh,680px); }
.study-question {display:grid;gap:8px;overflow-wrap:anywhere}
.study-question h2 {margin:0;font-size:1.23rem}
.study-question p {margin:0}
.study-question-nav {display:flex;gap:5px;flex-wrap:wrap;max-height:104px;overflow:auto;padding:3px}
.study-question-nav button {min-width:44px;padding:6px}
.study-image #studyImageActions:empty {display:none}
.study-image #studyImageActions {margin-top:6px}
.identification-app .study-success {color:var(--study-success);background:var(--study-selected)}
.study-score > strong {font-size:2rem}
.study-components {display:flex;flex-wrap:wrap;gap:.8rem}
.study-target { display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px }
.study-target select { width:auto;max-width:min(100%,28rem); }
.study-coverage { margin:8px 0;padding-left:22px }
.study-explore-list { display:grid;gap:5px;max-height:245px;overflow:auto;padding:3px }
.study-explore-list button {text-align:left}
.study-explore-list [aria-pressed=true] {background:var(--study-selected);border-color:var(--study-focus)}
.study-explore-list + #exploreDetails {padding-top:8px;border-top:1px solid var(--study-border)}
.study-bank {list-style:none;margin:0;padding:0;max-height:55vh;overflow:auto}
.study-bank li {white-space:nowrap}
.identification-app .study-reference{
  display:inline;min-height:0;min-width:0;padding:1px 4px;border-radius:3px;
  font:inherit;font-size:.92em;white-space:normal;overflow-wrap:anywhere;
}
.identification-app .hidden-reference{color:var(--study-muted);border-style:dashed}
@media(max-width:760px){
  .study-columns {grid-template-columns:minmax(0,1fr)}
  .study-image .view {min-height:225px;height:42dvh}
  .study-home,.study-attempt {padding:9px}
}
@media(prefers-reduced-motion:reduce){
  .identification-app * {scroll-behavior:auto;animation:none;transition:none}
}


/* Stage 11B study surfaces share the approved navy header and quiet controls. */
.identification-app .study-header { background:#1c3e5d; color:#f4f7fa; min-height:49px; align-items:baseline; padding-inline:14px; gap:22px; }
.identification-app .study-header strong { color:#ffb83b; font-size:clamp(1.3rem,2.2vw,2rem); font-weight:500; letter-spacing:-.035em; }
.study-menubar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:2px 10px; padding-inline:10px; background:var(--study-surface); border-bottom:1px solid var(--study-border); }
.identification-app .study-menubar button { min-height:38px; border-color:transparent; background:transparent; color:var(--study-text); }
.identification-app .study-menubar button:hover { background:var(--study-selected); }
.study-feedback-settings { display:grid; gap:9px; width:min(19rem, 70vw); }
.study-feedback-settings .check { min-height:32px; }
.study-feedback-settings input[type="range"] { width:100%; accent-color:var(--study-focus); }
.study-feedback-settings p { margin:0; }
.identification-app.study-motion-off :is(*,*::before,*::after) { animation:none!important; transition:none!important; }
.identification-app .study-menubar button.primary { color:var(--study-focus); font-weight:700; }
.identification-app[data-student-theme=dark] .study-header { background:#101b24; }
.identification-app[data-student-theme=dark] .study-header strong { color:#e4edf2; }
.identification-app .study-header span { color:#e7f0f5; }
.identification-app .study-header #studyTheme { margin-inline-start:auto; }
.identification-app .study-home { max-width:880px; }
.study-home-actions { position:absolute; }
.identification-app .study-home h2 { font-size:1rem; }
.identification-app .study-home .cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:740px; gap:8px; }
.identification-app .study-home .cardbutton { min-height:56px; padding:8px 12px; border-color:var(--study-border); }
.identification-app .cardbutton .iconbox .anatomy-glyph { width:24px; height:24px; }
.identification-app .cardbutton .iconbox:has(.anatomy-glyph) { color:var(--study-focus); background:var(--study-selected); }
.identification-app .cardbutton > span:not(.iconbox) { min-width:0; overflow-wrap:anywhere; }
.identification-app .cardbutton small { color:var(--study-muted); }
.identification-app .study-home .study-all { display:flex; width:min(100%,740px); align-items:center; gap:11px; background:var(--study-selected); text-align:start; }
.study-all small { display:block; font-weight:400; }
.identification-app .study-choices { display:grid; max-width:735px; gap:8px; }
.study-mode-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.study-type-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.identification-app .study-option { display:flex; align-items:center; text-align:start; min-height:70px; padding:8px 12px; gap:10px; }
.study-option small { display:block; font-size:.84rem; font-weight:400; }
.study-option .studio-glyph { width:24px; height:24px; color:var(--study-focus); }
.study-type-grid .study-option { flex-direction:column; align-items:start; }
.identification-app .study-type-grid + label { margin-top:5px; }
.identification-app #start { justify-self:end; min-width:110px; }
.study-attempt-head .row { margin-inline-start:auto; }
.identification-app .study-question { align-content:start; overflow-wrap:anywhere; }
.study-question #answerForm { gap:6px; }
.study-question #studyAnswerError:empty { min-height:0; }
.study-image .view { margin:0; }
.study-image .study-image-navigation { position:static; display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:flex-end; max-width:100%; padding:3px 0 0; background:none; box-shadow:none; border:0; }
.study-image-navigation :is(.nav-controls,.pancontrols) { display:flex; flex-direction:row; flex-wrap:wrap; gap:0; }
.study-image-navigation .nav-controls { max-height:none!important; }
.study-image-navigation .nav-controls[hidden] { display:none; }
.identification-app .study-image-navigation button { border-color:transparent; min-width:44px; }
.identification-app .study-image:fullscreen { display:flex; flex-direction:column; background:var(--study-surface); }
.identification-app .study-image:fullscreen .view { flex:1; height:auto; min-height:0; }
.study-results.modal[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; padding:17px 20px; gap:12px; width:min(640px,calc(100% - 22px)); max-height:90dvh; overflow:hidden; color:var(--study-text,#233b48); background:var(--study-surface,#fff); }
.study-results h1 { font-size:1.3rem; margin:0; }
.study-results h3 { color:var(--study-focus); margin:13px 0 7px; font-size:1rem; }
.study-results-body { overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; min-width:0; }
.study-results-actions { justify-content:space-between; padding-top:8px; border-top:1px solid var(--study-border); }
.study-score-summary { display:flex; gap:13px; align-items:center; }
.study-score-summary h2 { font-size:1rem; margin:0; }
.study-ring { position:relative; isolation:isolate; display:grid; place-items:center; min-width:76px; aspect-ratio:1; border-radius:100%; background:conic-gradient(#657784 var(--earned),var(--study-border) 0); font-size:1.12rem!important; }
.study-ring.high { background:conic-gradient(#23835e var(--earned),var(--study-border) 0); }
.study-ring::before { position:absolute; content:""; inset:5px; z-index:-1; border-radius:100%; background:var(--study-surface,#fff); }
.study-results .study-score { border:0; padding:0; box-shadow:none; }
.study-results .study-coverage { padding:0; list-style:none; }
.study-stat { border-bottom:1px solid var(--study-border); padding:7px; }
.study-stat summary { cursor:pointer; padding:4px 0; font-weight:600; }
.study-stat summary span { float:inline-end; }
.study-stat dl { margin:4px 0; }
.study-stat dl div { display:flex; justify-content:space-between; gap:8px; padding:3px 0; }
.study-credit { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px; min-width:0; }
.study-credit-track { grid-column:1/-1; border-radius:4px; padding:2px 8px; background:linear-gradient(to right,#b5c4d0 var(--earned),#e1e9ef 0); color:#1a373f; text-align:center; }
.study-credit-track.high { background:linear-gradient(to right,#c6e6d7 var(--earned),#e1e9ef 0); }
.study-credit-track span { font-size:.8rem; font-weight:650; }
.study-credit-mobile { display:none; }
.study-components { display:grid; gap:7px; margin:6px 0; }
.study-quantity { display:grid; gap:6px; margin:10px 0; }
.study-quantity #learnCount { width:9ch; }
.study-review-line { display:flex; align-items:flex-start; gap:8px; padding:7px 0; border-bottom:1px solid var(--study-border); }
.study-review-line .studio-glyph { font-size:1.25rem; color:#606e78; }
.study-review-line.correct { color:#146b54; }
.study-review-line.correct .studio-glyph { color:inherit; }
.identification-app .modal { color:var(--study-text); background:var(--study-surface); border-color:var(--study-border); }
.identification-app .modal[open]:not(.study-results):has(>h2+div.stack+div.row) { display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; max-height:90dvh; }
.identification-app .modal[open]:not(.study-results) > h2 + div.stack { overflow:auto; overscroll-behavior:contain; }
.identification-app .study-session-dialog[open]{
  width:min(470px,calc(100vw - 20px));height:min(225px,90dvh);
}
.identification-app .study-attempt > .study-attempt-head { border-bottom:1px solid var(--study-border); padding-bottom:5px; }
.identification-app .study-attempt-head :is(button,summary) { border-color:transparent; }
.identification-app .study-attempt-head button.primary { border-color:var(--study-focus); }
.identification-app .study-attempt-head h1 { font-size:clamp(1.05rem,2vw,1.55rem); }
.identification-app[data-student-theme=dark] .study-review-line.correct { color:#88d7ae; }
.identification-app[data-student-theme=dark] .study-review-line:not(.correct) .studio-glyph { color:#b5c2cc; }
@media(max-width:760px) {
  .identification-app .study-header { gap:8px; padding-inline:8px; flex-wrap:wrap; }
  .identification-app .study-menubar button { min-height:44px; }
  .identification-app .study-header span { overflow:hidden; text-overflow:ellipsis; max-width:32vw; white-space:nowrap; }
  .identification-app .study-attempt-head { margin-bottom:5px; }
  .identification-app .study-image .view { height:clamp(145px,calc(var(--study-visible-height,100dvh) * .27),253px); min-height:0; }
  .study-image .study-image-navigation { justify-content:flex-start; }
  .study-image-navigation .nav-controls { flex:1; min-width:0; }
  .study-image-navigation .recommend:not(.hidden) { flex:0 0 100%; text-align:start; }
  .identification-app .study-attempt .study-question { margin-bottom:16px; }
  .identification-app .study-attempt :is(input,button) { scroll-margin-block:10px; }
  .identification-app .study-attempt #answerForm { scroll-margin-block:12px; }
  .study-results.modal[open] { width:100%; max-width:none; max-height:100dvh; padding:14px; }
  .study-credit-track { min-height:12px; }
  .study-credit-percent,.study-credit-points { display:none; }
  .study-credit-mobile { display:inline; }
}
@media(max-width:520px) {
  .identification-app .study-home .cards .cardbutton { gap:8px; padding-inline:8px; }
  .identification-app .cardbutton .iconbox { width:34px; height:34px; border-radius:8px; }
  .identification-app .cardbutton .iconbox .anatomy-glyph { width:22px; height:22px; }
}

/* v7 fidelity: compact navigation, plain canvas, stable setup grid and concise results. */
.identification-app { --study-line:#d0dce3; }
.identification-app[data-student-theme=dark] { --study-line:#405360; }
.identification-app .study-header { min-height:44px;padding:5px 14px; }
.identification-app .study-header strong { color:#f4f7fa;font-weight:400;font-size:clamp(1.3rem,2vw,1.75rem); }
.identification-app[data-student-theme=dark] .study-header { background:#0d171e; }
.identification-app .study-menubar { min-height:27px;gap:3px 7px; }
.identification-app .study-menubar button { min-height:30px;padding:3px 8px;border-radius:3px;font-size:13px;font-weight:500; }
.identification-app .study-home { max-width:820px;gap:10px;padding:22px 16px; }
.identification-app .study-home .cards { max-width:none;gap:8px; }
.identification-app .study-home .study-all { width:100%; }
.identification-app .study-home .cardbutton { border-color:var(--study-line);border-radius:5px;min-height:68px; }
.identification-app .study-home .cardbutton .iconbox { background:transparent;color:var(--study-focus); }
.identification-app[data-student-theme=dark] .study-home .cardbutton .iconbox { background:var(--study-selected);color:var(--study-focus); }
.identification-app .study-home .cardbutton small { color:var(--study-muted);font-size:12px; }
.identification-app .study-home section + section { border-top:1px solid var(--study-line);padding-top:9px; }
.identification-app .study-identification-setup { max-width:820px;grid-template-columns:minmax(0,1fr); }
.identification-app .study-identification-setup .study-choices { width:100%;max-width:none; }
.identification-app .study-identification-setup .study-option { min-width:0;border-radius:5px;border-color:var(--study-line);gap:10px;min-height:72px;padding:10px 12px; }
.identification-app .study-identification-setup .study-option[aria-pressed=true] { border-color:var(--study-focus);background:var(--study-selected); }
.identification-app .study-identification-setup .study-type-grid .study-option { align-items:center;justify-content:center;text-align:center;min-height:112px; }
.identification-app .study-identification-setup .study-type-grid .study-option span { min-width:0;overflow-wrap:anywhere; }
.identification-app .study-identification-setup h2 { font-size:15px;font-weight:650;margin:8px 0; }
.identification-app .study-identification-setup #start { margin-top:8px;justify-self:end;min-width:130px; }
/* Scope to identification, Learn and review screens; Flow will be redesigned separately. */
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) { padding:12px 16px;gap:8px; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-columns { grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:12px; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-image { padding:0;border:0;background:transparent;border-radius:4px; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-image .view { border:0;border-radius:4px;height:min(73dvh,790px); }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-question { border:0;border-radius:4px;padding:14px;min-height:0; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-question-nav button { min-width:36px;min-height:36px;padding:3px;border-radius:4px; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-image-navigation button { min-height:36px;min-width:36px;padding:5px; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-question > .row:last-child { justify-content:flex-end; }
.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) #bankToggle { margin-inline-end:auto;border-color:transparent;font-weight:400;color:var(--study-focus); }
.identification-app .study-results { border-radius:8px; }
.identification-app .study-results h3 { color:var(--study-focus);font-weight:650; }
.identification-app .study-results .study-learn-options { border-top:1px solid var(--study-line);padding-top:4px;margin-top:13px; }
.identification-app .study-results .study-quantity { border:0;margin:7px 0;padding:0; }
.identification-app .study-results .study-quantity legend { font-size:13px;color:var(--study-muted); }
.identification-app .study-results .study-quantity label { display:flex;align-items:center;gap:8px;font-size:14px; }
.identification-app .study-results .study-quantity input[type=radio] { appearance:auto;width:16px;height:16px;min-height:0;min-width:0;margin:0;flex:none;accent-color:var(--study-focus); }
.identification-app .study-results .study-quantity-custom { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.identification-app .study-results #learnCount { min-height:36px;max-width:90px;border-radius:4px;padding:5px; }
.identification-app .study-results #learnCountStatus:empty { display:none; }
.identification-app .study-results #learnFallback { min-height:40px; }
.identification-app .study-results .study-target { margin-top:5px; }
.identification-app .study-results .study-credit { gap:3px;font-size:14px; }
.identification-app .study-results .study-stat { padding:6px 0;border-color:var(--study-line); }
.identification-app .study-results .study-results-actions { flex-wrap:wrap;gap:7px; }
.identification-app .study-review-line.wrong { color:var(--study-muted); }
@media(max-width:760px){
  .identification-app .study-home { padding:12px 10px; }
  .identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) { padding:8px; }
  .identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-columns { grid-template-columns:minmax(0,1fr);gap:7px; }
  .identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-image .view { height:clamp(135px,calc(var(--study-visible-height,100dvh) * .27),253px);min-height:0; }
  .identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-question { padding:9px; }
  .identification-app .study-menubar button,.identification-app .study-attempt:has(#question,#studyReviewContent,#learnQuestion) .study-image-navigation button { min-height:44px;min-width:44px; }
  .identification-app .study-identification-setup .study-option { padding:8px;gap:7px; }
  .identification-app .study-identification-setup .study-type-grid .study-option { min-height:120px;font-size:13px; }
  .identification-app .study-identification-setup .study-type-grid .study-option small { font-size:11px; }
}
@media(max-width:400px){ .identification-app .study-home .cardbutton { font-size:13px; } .identification-app .study-identification-setup .study-option { font-size:13px; } }
.identification-app .study-home .cardbutton strong { font-size:15px;font-weight:650;line-height:1.35; }
.identification-app .study-home .cardbutton .iconbox { width:40px;height:40px;border-radius:5px;flex:none; }
.identification-app .study-home .cardbutton small { font-weight:400; }
.identification-app .study-compact-nav { gap:2px 5px; }
.identification-app .study-compact-nav .nav-controls { align-items:center;flex:0 1 auto;min-width:0;gap:2px; }
.identification-app .study-compact-nav :is(button,summary) { background:transparent;border:0;border-radius:4px;font-weight:400;color:var(--study-muted); }
.identification-app .study-compact-nav :is(button,summary):hover { background:var(--study-selected); }
.identification-app .study-compact-nav .study-zoom-value { font-size:12px;font-variant-numeric:tabular-nums;min-width:35px;text-align:center; }
.identification-app .study-pan-menu { position:relative; }
.identification-app .study-pan-menu > summary { display:flex;align-items:center;list-style:none;cursor:pointer;padding:5px 7px;font-size:13px;min-height:36px; }
.identification-app .study-pan-menu > summary::after { content:'▾';margin-left:4px; }
.identification-app .study-pan-menu > summary::-webkit-details-marker { display:none; }
.identification-app .study-pan-menu .pancontrols { position:absolute;right:0;bottom:100%;z-index:10;display:grid;grid-template-columns:repeat(2,1fr);min-width:96px;background:var(--study-surface);border:1px solid var(--study-line);border-radius:5px;padding:4px;box-shadow:0 4px 12px #152b3b30; }
.identification-app .study-pan-menu:not([open]) .pancontrols { display:none; }
.identification-app .study-compact-nav .recommend { min-height:36px;font-size:12px;padding:4px 8px; }
@media(max-width:760px){
  .identification-app .study-compact-nav { justify-content:flex-start;gap:0; }
  .identification-app .study-compact-nav .nav-controls { flex:0 1 auto;gap:0; }
  .identification-app .study-compact-nav .nav-controls button { min-width:39px;padding:4px; }
  .identification-app .study-compact-nav .study-pan-menu > summary { min-height:44px; }
  .identification-app .study-compact-nav .recommend:not(.hidden) { flex:0 0 auto;min-height:44px;text-align:center; }
  .identification-app .study-compact-nav .study-zoom-value { display:none; }
  .identification-app .study-attempt:has(#question,#studyReviewContent) .study-image .view { height:clamp(145px,calc(var(--study-visible-height,100dvh) * .30),285px); }
}

.study-component-details small { display:block;color:var(--study-muted);line-height:1.6; }

/* Approved v7 identification/Learn completion hierarchy. Scoped away from Flow. */
.identification-app .study-identification-results.modal[open]{--result-rule:#dbe4e8;--result-track:#e3eaee;--result-fill:#126b55;--result-low:#5e707d;--result-track-text:#233b48;--result-fill-text:#fff;width:min(690px,calc(100% - 28px));max-width:690px;max-height:94dvh;gap:0;padding:0;border:1px solid var(--result-rule);border-radius:9px;box-shadow:0 12px 40px #152a3940;overflow:hidden;font-size:14px;line-height:1.35}
.identification-app[data-student-theme=dark] .study-identification-results.modal[open]{--result-rule:#40545f;--result-track:#344650;--result-fill:#79c9ac;--result-low:#9fb1bc;--result-track-text:#e8f1f5;--result-fill-text:#162a34}
.study-identification-results::backdrop{background:rgba(28,46,59,.53)}
.identification-app .study-identification-results>h1{font-size:18px;font-weight:650;padding:13px 20px 12px;margin:0;border-bottom:1px solid var(--result-rule);outline:none}
.identification-app .study-identification-results>h1:focus-visible{outline:none}
.study-identification-results .study-results-body{padding:13px 20px 15px;scrollbar-gutter:auto;overflow-y:auto;min-height:0;overflow-wrap:anywhere}
.study-identification-results .study-score{padding:0;background:transparent;border:0;border-radius:0;margin:0}
.study-identification-results .study-score-summary{display:flex;align-items:center;gap:13px;margin-bottom:12px}
.study-identification-results .study-ring{width:78px;min-width:78px;height:78px;font-size:19px!important;background:conic-gradient(var(--result-low) var(--earned),var(--result-track) 0);flex-shrink:0;font-weight:650}
.study-identification-results .study-ring.high{background:conic-gradient(var(--result-fill) var(--earned),var(--result-track) 0)}
.study-identification-results .study-ring::before{inset:5px;background:var(--study-surface)}
.study-identification-results .study-score-heading h2{font-size:15px;margin:0 0 3px;font-weight:650}
.study-identification-results .study-score-heading p{font-size:13px;color:var(--study-muted);margin:0}
.study-identification-results .study-components{margin:5px 0 0;gap:8px}
.study-identification-results .study-credit{grid-template-columns:minmax(98px,1.15fr) 48px minmax(90px,2.7fr);gap:10px;align-items:center;font-size:13px}
.study-identification-results .study-credit b{font-weight:400;color:var(--study-muted)}
.study-identification-results .study-credit-percent{text-align:right;font-weight:600;white-space:nowrap}
.study-identification-results .study-credit-track{grid-column:auto;position:relative;isolation:isolate;border-radius:2px;padding:0;min-width:0;height:23px;line-height:23px;background:linear-gradient(to right,var(--result-low) var(--earned),var(--result-track) 0);color:var(--result-track-text);text-align:center;--bar-ink:var(--result-fill-text)}
.study-identification-results .study-credit-track.high{background:linear-gradient(to right,var(--result-fill) var(--earned),var(--result-track) 0)}
.study-identification-results .study-credit-track span{font-size:12px;font-weight:600;position:absolute;inset:0;white-space:nowrap;background:linear-gradient(to right,var(--bar-ink) var(--earned),var(--result-track-text) 0);background-clip:text;-webkit-background-clip:text;color:transparent}
.study-identification-results .study-credit-mobile{display:none}
.study-identification-results .study-result-section{margin:14px 0 0;padding:0}
.identification-app .study-identification-results h3{font-size:14px;font-weight:650;line-height:1.35;color:var(--study-focus);margin:0 0 5px}
.study-identification-results .study-coverage{margin:0;padding:0;list-style:none}
.identification-app .study-identification-results .study-stat{padding:0;border-bottom:1px solid var(--result-rule);margin:0}
.study-identification-results .study-stat>summary{display:flex;align-items:center;gap:9px;min-height:34px;cursor:pointer;font-weight:500;list-style:none;padding:6px 1px}
.study-identification-results .study-stat>summary::-webkit-details-marker{display:none}
.study-identification-results .study-stat>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid var(--study-muted);border-bottom:1.5px solid var(--study-muted);transform:rotate(45deg);margin:0 4px 4px 5px;flex:none}
.study-identification-results .study-stat[open]>summary::after{transform:rotate(225deg);margin-bottom:-3px}
.study-identification-results .study-stat>summary span{float:none}
.study-identification-results .study-stat-label{flex:1;min-width:0;overflow-wrap:anywhere}
.study-identification-results .study-stat-value{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.study-identification-results .study-stat-content,.study-identification-results .study-stat>dl{padding:3px 8px 8px 12px;margin:0}
.study-identification-results .study-stat-content .study-stat{border-bottom:0}
.study-identification-results .study-stat-content .study-stat>summary{font-size:13px;min-height:30px}
.study-identification-results .study-result-metric,.study-identification-results .study-stat dl div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px;padding:4px 0;color:var(--study-muted)}
.study-identification-results .study-result-metric>span:last-child,.study-identification-results dd{color:var(--study-text);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;margin:0}
.study-identification-results .study-result-note{font-size:12px;color:var(--study-muted);margin:3px 0}
.study-identification-results .study-learn-scope{margin:-3px 0 7px}
.identification-app .study-identification-results .study-learn-options{border:0;padding:0;margin-top:14px}
.study-identification-results .study-target{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;margin:0;gap:8px;font-size:13px}
.study-identification-results .study-target label{color:var(--study-muted)}
.identification-app .study-identification-results .study-target select{min-height:35px;width:100%;max-width:100%;border-radius:4px;padding:5px 8px;font:inherit}
.identification-app .study-identification-results .study-quantity{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;margin:9px 0 3px;min-width:0}
.identification-app .study-identification-results .study-quantity label{font-size:13px;gap:6px;white-space:nowrap}
.identification-app .study-identification-results .study-quantity-custom{gap:6px;flex-wrap:nowrap}
.identification-app .study-identification-results #learnCount{min-height:30px;width:7ch;max-width:80px;padding:4px 5px;font-size:13px}
.identification-app .study-identification-results #learnCount:disabled{opacity:.55;background:var(--result-track);cursor:default}
.study-identification-results #learnCountStatus{flex-basis:100%;font-size:12px;margin:0;color:var(--study-muted)}
.study-identification-results .study-learn-action{display:flex;justify-content:flex-end;margin-top:4px}
.identification-app .study-identification-results #learnFallback,.identification-app .study-identification-results .study-results-actions button{min-height:36px;border-radius:4px;font-size:13px;padding:7px 12px}
.identification-app .study-identification-results .study-results-actions{display:flex;justify-content:flex-end;align-items:center;border-top:1px solid var(--result-rule);gap:8px;padding:10px 20px;margin:0;background:var(--study-surface)}
.study-identification-results .study-results-actions button:first-child{margin-right:auto}
@media(max-width:760px){
 .identification-app .study-identification-results.modal[open]{width:min(calc(100% - 16px),690px);max-height:calc(100dvh - 16px);font-size:14px}
 .identification-app .study-identification-results>h1{padding:12px 13px;font-size:17px}
 .study-identification-results .study-results-body{padding:12px 13px}
 .study-identification-results .study-ring{width:70px;min-width:70px;height:70px;font-size:17px!important}
 .study-identification-results .study-credit{grid-template-columns:minmax(100px,1fr) minmax(80px,1.4fr);gap:8px}
 .study-identification-results .study-credit-percent,.study-identification-results .study-credit-points{display:none}
 .study-identification-results .study-credit-mobile{display:block}
 .study-identification-results .study-target{grid-template-columns:1fr;gap:4px}
 .identification-app .study-identification-results .study-quantity{gap:6px 12px}
 .identification-app .study-identification-results #learnFallback,.identification-app .study-identification-results .study-results-actions button{min-height:44px}
 .identification-app .study-identification-results .study-results-actions{padding:8px 13px}
 .study-identification-results .study-results-actions #learnBack{flex:1 1 100%;margin-right:0;text-align:left}
}
@media(forced-colors:active){.study-identification-results .study-ring{background:Canvas;border:4px solid Highlight}.study-identification-results .study-credit-track{background:Canvas;border:1px solid CanvasText}.study-identification-results .study-credit-track span{color:CanvasText;background:none}.study-identification-results .study-stat>summary::after{border-color:CanvasText}}

/* Student-only preview navigation. Docking moves the same controls, not the viewer. */
.identification-app .study-image .study-preview-nav{display:flex;flex-flow:row wrap;align-items:center;justify-content:flex-start;gap:5px;padding:0;margin:0;border:0;background:none;box-shadow:none;width:max-content;max-width:100%;z-index:14;--student-widget-bg:color-mix(in srgb,var(--study-surface) 92%,transparent)}
.identification-app .study-image .study-preview-floating{position:absolute;max-width:calc(100% - 10px);pointer-events:none}
.identification-app .study-image .study-preview-bottom{position:relative;max-width:100%;width:100%;padding:3px 0 0}
.study-preview-body{display:flex;flex-wrap:wrap;align-items:center;gap:0;background:var(--student-widget-bg);border-radius:5px;pointer-events:auto;min-width:0;max-width:100%}
.identification-app .study-preview-nav .nav-controls{display:flex;align-items:center;gap:0;flex:0 1 auto;max-height:none!important;overflow:visible;flex-wrap:wrap;min-width:0}.identification-app .study-preview-nav .nav-controls[hidden]{display:none!important}
.identification-app .study-preview-nav .study-zoom-value{display:inline-block!important;font-size:12px;min-width:37px;text-align:center;padding:0 3px;color:var(--study-muted)}
.identification-app .study-preview-nav :is(button,summary){border:0;background:transparent;box-shadow:none;min-width:30px!important;min-height:31px!important;padding:4px 5px!important;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;line-height:1.15;color:var(--study-muted);font-size:12px;font-weight:400;cursor:pointer}.identification-app .study-preview-nav :is(button,summary):hover{background:var(--study-selected);color:var(--study-text)}
.study-preview-nav .study-pan-menu{position:relative}.study-preview-nav .study-pan-menu>summary{list-style:none}.study-preview-nav .study-pan-menu>summary::-webkit-details-marker{display:none}.study-preview-nav .study-pan-menu>summary::marker{content:''}.identification-app .study-preview-nav .study-pan-menu .pancontrols{position:absolute;left:0;top:100%;background:var(--study-surface);border:1px solid var(--study-border);padding:4px;display:grid;grid-template-columns:repeat(2,34px);gap:2px;z-index:20;box-shadow:0 2px 8px #18354233;border-radius:4px}.study-preview-nav .study-pan-menu:not([open]) .pancontrols{display:none!important}
.identification-app .study-preview-nav .recommend:not(.hidden){display:inline-flex;flex:0 0 auto!important;min-height:31px!important;border:1px solid #63a99b;background:#e4f4ee;color:#216954;font-size:12px!important;padding:5px 9px!important;white-space:nowrap;pointer-events:auto;border-radius:5px}.identification-app .study-preview-nav .recommend[aria-pressed=true]{background:#d2ece2;border-color:#438b78;font-weight:600}.identification-app[data-student-theme=dark] .study-preview-nav .recommend:not(.hidden){background:#294b45;border-color:#64998a;color:#c1e6d8}.study-preview-nav .recommend.hidden{display:none!important}.study-preview-attention{animation:recommend-attention 1.05s ease-out 1}@media(prefers-reduced-motion:reduce){.study-preview-attention{animation:none}}
.identification-app .study-preview-nav .study-preview-grip{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:34px!important;height:18px!important;min-height:18px!important;min-width:34px!important;padding:0!important;border-radius:0 0 4px 4px;background:var(--student-widget-bg);opacity:0;pointer-events:none;cursor:grab;touch-action:none}.study-preview-nav.study-preview-low .study-preview-grip{top:auto;bottom:100%;border-radius:4px 4px 0 0}.study-preview-nav:hover .study-preview-grip,.study-preview-nav:has(:focus-visible) .study-preview-grip,.study-preview-nav.study-preview-dragging .study-preview-grip{opacity:1;pointer-events:auto}.study-preview-nav .study-preview-grip[hidden]{display:none!important}.study-preview-nav.study-preview-dragging .study-preview-grip{cursor:grabbing}.study-preview-nav .study-preview-dock{border-left:1px solid var(--study-border)!important;margin-left:2px}
@media(max-width:650px){.identification-app .study-preview-nav .study-preview-body :is(button,summary){min-width:32px!important;min-height:36px!important;padding:4px!important}.identification-app .study-preview-nav .recommend:not(.hidden){min-height:30px!important}.identification-app .study-preview-nav{gap:3px}.identification-app .study-preview-nav .study-zoom-value{min-width:32px}}
@media(pointer:coarse),(hover:none){.identification-app .study-preview-nav .study-preview-body :is(button,summary){min-width:44px!important;min-height:44px!important}.identification-app .study-preview-nav .study-preview-grip{opacity:1;pointer-events:auto}}
.identification-app .study-preview-nav .study-pan-menu>summary::after{content:none!important}.identification-app .study-preview-nav .study-pan-menu>summary{gap:0!important}
.identification-app .study-preview-nav .study-preview-grip{width:56px!important;min-width:56px!important;height:30px!important;min-height:30px!important;top:100%!important;bottom:auto!important;border-radius:0 0 5px 5px!important;padding-top:5px!important;align-items:start!important;}

/* Standard, neutral explanation surfaces. Retain timed keyboard-accessible tooltips. */
.tip{background:#f9f9f9;color:#202020;border:1px solid #999;border-radius:2px;padding:4px 7px;font:12px/1.4 "Segoe UI",system-ui,sans-serif;box-shadow:0 2px 5px #0002;max-width:min(320px,calc(100vw - 12px))}
body:has([data-student-theme="dark"]) .tip,body:has([data-theme="dark"]) .tip{background:#303030;color:#eee;border-color:#727272}
.identification-app .plain-description.modal{border-radius:5px;box-shadow:0 5px 20px #0002;padding:18px;max-width:min(550px,calc(100vw - 20px));font-size:14px}.plain-description h2{font-size:17px;margin:0 0 12px;color:inherit}.plain-description .stack{gap:9px}.plain-description section+section{border-top:1px solid var(--study-line,#d5d5d5);padding-top:9px}.plain-description section strong{font-size:14px;color:inherit}.plain-description section p{margin:4px 0}.identification-app .plain-description button{font-size:13px;min-height:34px;border-radius:4px;padding:6px 12px}

/* v7 gameplay hierarchy: one prominent action, subdued secondary controls, common shell. */
.identification-app .study-compact-play{padding:12px 16px;gap:9px;max-width:1440px}
.identification-app .study-compact-play>.study-attempt-head{border:0;padding:0;margin:0;min-height:26px}
.study-compact-play .study-attempt-head>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.identification-app .study-compact-play .study-attempt-head h1{font-size:20px;font-weight:650;margin:0;line-height:1.25}.study-compact-play .study-attempt-head span{font-size:12px;color:var(--study-muted)}
.identification-app .study-compact-play .study-columns{grid-template-columns:minmax(0,1fr) minmax(300px,390px);align-items:stretch;gap:12px}
.identification-app .study-compact-play .study-image{padding:0;border:0;background:transparent;border-radius:4px}.identification-app .study-compact-play .study-image .view{height:min(73dvh,790px);min-height:300px;border:0;border-radius:4px}
.identification-app .study-compact-play .study-question{padding:14px;border:0;border-radius:4px;align-content:start;gap:9px;min-width:0;font-size:14px;margin:0}
.identification-app .study-compact-play .study-question h2{font-size:17px;line-height:1.4;margin:4px 0 0;font-weight:650}
.study-compact-play #question>.spread{font-size:12px;gap:6px;flex-wrap:wrap}.study-compact-play #studyProgress{color:var(--study-muted);font-size:12px;font-variant-numeric:tabular-nums}
.study-play-progress{height:5px;border-radius:2px;background:var(--study-line,#c8d4dc);overflow:hidden}.study-play-progress>span{display:block;height:100%;background:var(--study-focus);border-radius:2px}
.study-question-disclosure>summary{font-size:12px;color:var(--study-muted);cursor:pointer;padding:2px 0 3px}.study-question-disclosure .study-question-nav{padding:2px 1px 3px;gap:4px;max-height:106px}
.identification-app .study-compact-play .study-question-nav button{min-height:29px;min-width:29px;padding:3px;font-size:12px;border-radius:4px;border:1px solid var(--study-line);font-weight:400}.study-compact-play .study-question-nav button[data-answered=true]:not([aria-current=step]){background:var(--study-bg);border-bottom:2px solid var(--study-muted)}
.identification-app .study-compact-play #answerForm{gap:6px}.study-compact-play #answerForm label{font-size:12px;font-weight:500;color:var(--study-text)}.identification-app .study-compact-play #answerForm input{min-height:39px;border-radius:4px;font-size:15px;padding:7px 9px}.study-compact-play #studyAnswerError:empty{display:none}
.identification-app .study-compact-play #checkAnswer,.identification-app .study-compact-play #learnNext{min-height:38px;border-radius:4px;font-size:13px;font-weight:600;padding:7px 10px}
.identification-app .study-compact-play .study-question>.row:last-child,.identification-app .study-compact-play #question>.row:has(#learnHint){justify-content:flex-end;align-items:center;gap:5px;flex-wrap:wrap;margin-top:1px}
.identification-app .study-compact-play .study-question :is(#studyPrevious,#next,#reviewPrevious,#reviewNext,#learnReviewPrevious,#learnReviewNext,#learnHint,#learnReveal,#learnAside,#bankToggle,#skipOptional,#dismissHint){font:500 12px/1.4 system-ui,sans-serif;min-height:31px;padding:5px 8px;border-radius:4px;border:1px solid var(--study-line);color:var(--study-text);background:transparent;box-shadow:none;white-space:normal}
.identification-app .study-compact-play .study-question :is(#learnHint,#learnAside,#bankToggle,#skipOptional){border-color:transparent;color:var(--study-focus);font-weight:400}.identification-app .study-compact-play .study-question #bankToggle{margin-right:auto}.identification-app .study-compact-play .study-question #learnHint{margin-right:auto}.identification-app .study-compact-play .study-question :is(#studyPrevious,#next,#reviewPrevious,#reviewNext,#learnReviewPrevious,#learnReviewNext,#learnHint,#learnReveal,#learnAside,#bankToggle,#skipOptional,#dismissHint):hover:not(:disabled){background:var(--study-selected)}
.identification-app .study-compact-play .study-question button:disabled{opacity:.5;cursor:default}.study-compact-play .study-cue{font-size:14px;color:var(--study-muted)}.study-compact-play .study-question .muted{font-size:12px}.study-compact-play .notice{padding:8px 9px;border-radius:3px;border-left:3px solid currentColor;font-size:13px;line-height:1.45}.study-compact-play .notice p{margin:3px 0}.study-compact-play .notice button{margin-top:6px}.study-compact-play .study-learn-progress{display:grid;gap:6px;font-size:12px}.study-compact-play .study-explore-list{gap:1px;padding:0;max-height:245px}.identification-app .study-compact-play .study-explore-list button{background:transparent;border:0;border-radius:3px;padding:7px 9px;min-height:31px;font-size:13px;font-weight:400}.identification-app .study-compact-play .study-explore-list button[aria-pressed=true]{background:var(--study-selected);font-weight:600;color:var(--study-text)}.identification-app .study-compact-play #exploreSearch{min-height:38px;border-radius:4px}.study-compact-play #studyImageActions:empty,.study-compact-play #learnImageActions:empty{display:none}
.identification-app .study-compact-play .study-preview-nav #studyMarkers svg{width:17px;height:17px}.identification-app .study-compact-play .study-preview-nav #studyMarkers[aria-pressed=true]{background:var(--study-selected)}
.identification-app .study-compact-play .study-preview-bottom{justify-content:flex-end}
@media(max-width:760px){.identification-app .study-compact-play{padding:8px;gap:7px}.identification-app .study-compact-play .study-columns{grid-template-columns:minmax(0,1fr);gap:7px}.identification-app .study-compact-play .study-image .view{height:clamp(135px,calc(var(--study-visible-height,100dvh)*.31),300px);min-height:0}.identification-app .study-compact-play .study-attempt-head h1{font-size:17px}.identification-app .study-compact-play .study-question{padding:10px;gap:7px}.identification-app .study-compact-play .study-question h2{font-size:16px}.identification-app .study-compact-play .study-question-nav button{min-height:36px;min-width:36px}.identification-app .study-compact-play #answerForm input,.identification-app .study-compact-play #checkAnswer,.identification-app .study-compact-play #learnNext{min-height:44px}}
@media(pointer:coarse),(hover:none){.identification-app .study-compact-play .study-question-nav button,.identification-app .study-compact-play .study-question :is(#studyPrevious,#next,#reviewPrevious,#reviewNext,#learnReviewPrevious,#learnReviewNext,#learnHint,#learnReveal,#learnAside,#bankToggle,#skipOptional,#dismissHint),.identification-app .study-compact-play .study-explore-list button{min-height:44px;min-width:44px}}

/* Mobile Study: fixed bottom zoom controls, modest separation without sacrificing answer access. */
.identification-app .study-preview-nav .study-preview-dock[hidden]{display:none!important}
@media (max-width:760px), (pointer:coarse) and (hover:none){
 .identification-app .study-image .study-preview-nav .study-preview-dock,.identification-app .study-image .study-preview-nav .study-preview-grip{display:none!important}
 .identification-app .study-image .study-preview-bottom{gap:5px 8px;padding:5px 0 0;justify-content:flex-end;align-items:center}
 .identification-app .study-preview-bottom .study-preview-body{gap:2px}
 .identification-app .study-preview-bottom .nav-controls{gap:2px}
 .identification-app .study-preview-bottom .study-preview-body :is(button,summary){min-width:39px!important;min-height:39px!important}
 .identification-app .study-preview-bottom .recommend:not(.hidden){min-height:39px!important}
}
@media (pointer:coarse) and (hover:none){
 .identification-app .study-preview-bottom .study-preview-body :is(button,summary){min-width:44px!important;min-height:44px!important}
 .identification-app .study-preview-bottom .recommend:not(.hidden){min-height:44px!important}
}
@media (max-width:760px){
 .identification-app .study-home{padding:14px 12px;gap:12px}
 .identification-app .study-home .cards,.identification-app .study-choices{gap:10px}
 .identification-app .study-compact-play,.identification-app .study-attempt.study-compact-play:has(#question,#studyReviewContent,#learnQuestion){padding:10px;gap:10px}
 .identification-app .study-compact-play .study-columns,.identification-app .study-attempt.study-compact-play:has(#question,#studyReviewContent,#learnQuestion) .study-columns{gap:10px}
 .identification-app .study-compact-play .study-question,.identification-app .study-attempt.study-compact-play:has(#question,#studyReviewContent,#learnQuestion) .study-question{padding:12px;gap:10px;margin-bottom:10px}
 .identification-app .study-compact-play #answerForm{gap:8px}
 .identification-app .study-compact-play .study-question-nav{gap:5px}
 .identification-app .study-compact-play .study-question>.row:last-child,.identification-app .study-compact-play #question>.row:has(#learnHint){gap:7px;margin-top:3px}
 .identification-app .study-compact-play .study-question-disclosure>summary{padding:4px 0 5px}
 .identification-app .study-compact-play .study-learn-progress{gap:8px}
}
/* When the software keyboard reduces the viewport, keep vertical additions modest. */
@media (max-width:760px) and (max-height:560px){
 .identification-app .study-compact-play,.identification-app .study-attempt.study-compact-play:has(#question,#studyReviewContent,#learnQuestion){padding:8px;gap:8px}
 .identification-app .study-compact-play .study-columns,.identification-app .study-attempt.study-compact-play:has(#question,#studyReviewContent,#learnQuestion) .study-columns{gap:8px}
 .identification-app .study-compact-play .study-question,.identification-app .study-attempt.study-compact-play:has(#question,#studyReviewContent,#learnQuestion) .study-question{padding:10px;gap:8px}
 .identification-app .study-compact-play .study-question-nav{max-height:78px}
}

.identification-app .study-header #studyBrand{font:inherit;font-size:inherit;line-height:1.1;font-weight:400;color:inherit;background:transparent;border:0;border-radius:3px;padding:0;box-shadow:none;min-height:0;min-width:0;text-align:left;cursor:pointer}.identification-app .study-header #studyBrand:hover{background:transparent;text-decoration:none}.identification-app .study-header #studyBrand:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@keyframes study-docked-recommend{0%,100%{box-shadow:0 2px 5px #103b4230}42%{box-shadow:0 0 9px #54bebe80}}
.study-preview-bottom .study-preview-attention{animation-name:study-docked-recommend}
@media(prefers-reduced-motion:reduce){.study-preview-bottom .study-preview-attention{animation:none}}

/* Flow setup shares the identification mode cards, including typography and fixed grid. */
.identification-app .flow-study-setup .study-option>span{min-width:0;overflow-wrap:anywhere;}
.identification-app .flow-study-setup .study-option>svg{flex:none;}
.identification-app .flow-study-setup .study-option small{color:var(--study-muted);}

.identification-app .flow-study-play .flow-study-columns {
  grid-template-columns:minmax(0,1fr) minmax(300px,380px);
}
.identification-app .flow-study-play .flow-study-answer {
  padding:0!important;
  background:transparent;
}
.flow-study-play .flow-graph-view {border:0}
.flow-study-play .flow-graph-status:empty {display:none}
.identification-app .flow-study-play .flow-graph button.flow-step-check {
  background:var(--study-focus);color:var(--study-on-primary,#fff);
}
@media(max-width:760px) {
  .identification-app .flow-study-play .flow-study-columns {grid-template-columns:minmax(0,1fr)}
  .identification-app .flow-study-play .study-image .view {
    height:clamp(170px,calc(var(--study-visible-height,100dvh)*.39),310px);
  }
  .flow-study-play .flow-study-answer>.flow-graph {height:clamp(214px,45dvh,450px)}
}
