/* Five independent material sections share one clear icon navigation. */
.studio-home{min-height:calc(100dvh - 175px)}
.studio-type-tabs{position:sticky;top:-12px;z-index:7;display:flex;align-items:stretch;gap:8px;width:100%;padding:4px 0 13px;margin-bottom:14px;overflow-x:auto;scrollbar-width:none;background:#071221;border-bottom:1px solid #29405c;overscroll-behavior-x:contain}
.studio-type-tabs::-webkit-scrollbar{display:none}
.studio-type-tab{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:1 0 auto;min-width:128px;min-height:46px;padding:9px 15px;border:1px solid #2c405b;border-radius:10px;background:#14243b;color:#aab0bf;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.studio-type-tab:hover{background:#1c3553;color:#eff1f6}
.studio-type-tab[aria-selected="true"]{border-color:#368df3;background:#173456;color:#e6f2ff}
.studio-type-tab[aria-selected="true"] .icon{color:#ffa62b}
.studio-type-tab .icon{width:19px;height:19px;flex:none}
.studio-type-panel{min-width:0;padding-bottom:34px}
.studio-create-fab{position:fixed;z-index:12;right:27px;bottom:25px;display:grid;place-items:center;width:57px;height:57px;padding:0;border:1px solid #ffc25f;border-radius:50%;background:#ffa62b;color:#172031;box-shadow:0 4px 13px #0007;cursor:pointer}
.studio-create-fab:hover{background:#ffc25f}
.studio-create-fab .icon{width:24px;height:24px;stroke-width:1.9}
.studio-detail-answers{margin-top:18px}
@media(max-width:700px){
 .studio-home{min-height:calc(100dvh - 220px)}
 .studio-type-tabs{gap:7px;margin-inline:-2px;margin-bottom:13px;padding:4px 2px 12px}
 .studio-type-tab{flex:0 0 auto;min-width:0;min-height:43px;padding:8px 12px;gap:7px;font-size:12px}
 .studio-type-tab .icon{width:17px;height:17px}
 .studio-create-fab{width:55px;height:55px;right:20px;bottom:calc(106px + env(safe-area-inset-bottom,0px))}
 .uo-app[data-uo-page="materials"] .uo-conversation-scroll{padding-top:11px;padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:370px){
 .studio-type-tab{padding-inline:10px;font-size:11px}
 .studio-create-fab{right:15px}
}

.studio-page [hidden]{display:none!important}
.uo-app .studio-page.uo-studio-content{width:min(100% - 36px,1100px);padding-top:0}
.uo-app[data-uo-page="materials"] .uo-conversation-scroll{padding-top:12px;padding-bottom:105px}
.studio-home,.studio-editor,.studio-library-detail{min-width:0}
.studio-library-list{display:grid;gap:9px;margin-top:12px}
.studio-library-more{justify-self:center;min-height:40px;margin:7px auto 10px;padding:8px 15px;border:1px solid #38618c;border-radius:9px;background:#172e4c;color:#d7e8fc;font:700 12px var(--sans);cursor:pointer}
.studio-library-more:hover{background:#21446b;border-color:#368df3}
.studio-library-more:focus-visible{outline:2px solid #ffa62b;outline-offset:2px}
.studio-empty{margin:0;padding:58px 12px;background:none;color:#a5aaba;font-size:13px;text-align:center;line-height:1.65}
.studio-empty a{color:#ffbd56;text-decoration:underline}
.studio-library-row{display:flex;align-items:center;gap:12px;min-width:0;width:100%;min-height:66px;padding:12px 14px;border:1px solid #2d4059;border-radius:10px;background:#13243b;color:#f2f3f8;text-align:left;cursor:pointer}
.studio-library-row:hover{background:#1c3451;border-color:#47678d}
.studio-library-row>.icon{width:22px;height:22px;color:#ffbc57;flex:none}
.studio-library-row-copy{display:grid;gap:4px;min-width:0;flex:1}
.studio-library-row-copy strong{font-size:13px;line-height:1.4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.studio-library-row-copy small{color:#979cab;font-size:11px;line-height:1.45;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.studio-library-row>svg:last-child{width:16px;height:16px;flex:none;color:#a5a9b6}
.studio-view-head{display:flex;align-items:center;gap:12px;min-height:48px;margin-bottom:17px}
.studio-view-head h1{margin:0;color:#f6f7f9;font-size:clamp(18px,2.7vw,25px);line-height:1.28;letter-spacing:-.04em}
.studio-view-head p{margin:5px 0 0;color:#939aaa;font-size:11px;line-height:1.4}
.studio-back{display:grid;place-items:center;flex:none;width:39px;height:39px;border:1px solid #41434d;border-radius:10px;background:#21232b;color:#e4e6ee;cursor:pointer}
.studio-back:hover{background:#30323e}
.studio-back .icon{width:18px;height:18px}
.studio-editor .studio-flow{margin:0}
.studio-flow-actions{display:flex;justify-content:flex-end;margin:-3px 0 11px}
.studio-manual-button{min-height:38px;padding:8px 12px;border:1px solid #555860;border-radius:9px;background:#242631;color:#e2e4ef;font-size:11px;font-weight:650;cursor:pointer}
.studio-manual-button:hover{background:#313441}
.studio-selected-summary{display:flex;align-items:center;justify-content:space-between;gap:13px;min-height:66px;padding:12px 20px;border-bottom:1px solid #393c47}
.studio-selected-summary>div{display:grid;gap:5px;min-width:0}
.studio-selected-summary small{font-size:10px;letter-spacing:.04em;color:#a8acc0}
.studio-selected-summary strong{font-size:13px;color:#eef0f7;overflow-wrap:anywhere}
.studio-selected-summary>span{color:#d8eda9;font-size:10px;white-space:nowrap}
.studio-direction-options{display:flex;flex-wrap:wrap;gap:11px;margin:14px 0 8px}
.studio-direction-options label{display:grid;gap:7px;width:min(240px,100%);font-size:11px;color:#c9ced9}
.studio-library-detail{width:min(100%,850px);margin:0 auto}
.studio-detail-preview{padding:27px;max-height:60vh;overflow-y:auto;border:1px solid #314863;border-radius:13px;background:#14253c;color:#f1f2f8;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}
.studio-detail-preview h2{margin:0 0 13px;white-space:normal;font-size:21px;line-height:1.35}
.studio-detail-meta{margin:0 0 17px;color:#a9aebe;font-size:11px;white-space:normal}
.studio-detail-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:15px}
.studio-detail-actions button{min-height:42px;padding:9px 18px;border:1px solid #444755;border-radius:9px;background:#282b36;color:#f1f1f8;font-weight:700;font-size:12px;cursor:pointer}
.studio-detail-actions button:first-child,.studio-detail-actions button:nth-child(2){background:#ffa62b;border-color:#ffa62b;color:#152035}
.studio-detail-actions button:last-child{margin-right:auto;color:#ffb2aa}
.studio-detail-actions button:hover{filter:brightness(1.07)}
.studio-page button:focus-visible,.studio-page a:focus-visible,.studio-page select:focus-visible{outline:2px solid #368df3;outline-offset:2px}
@media(max-width:700px){
 .uo-app .studio-page.uo-studio-content{width:calc(100% - 24px);padding-top:0}
 .studio-selected-summary{padding:12px}
 .studio-detail-preview{padding:19px;max-height:57vh}
 .studio-detail-actions{justify-content:stretch}
 .studio-detail-actions button{flex:1}
 .studio-detail-actions button:last-child{flex:0 0 100%;margin:0}
}

/* Mashqlar selection is an independent, fully functional modal. */
.studio-exercise-review{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;margin:0 0 13px;padding:13px 15px;border:1px solid #304b71;border-radius:11px;background:#10253e}
.studio-exercise-review>div{display:grid;gap:4px;min-width:0}
.studio-exercise-review strong{color:#edf5ff;font-size:13px;line-height:1.45}
.studio-exercise-review span{font-size:11px;color:#a9bfd7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-exercise-review button{flex:none;min-height:36px;padding:6px 12px;border:1px solid #4074b3;border-radius:8px;background:#1b3554;color:#dbeaff;font-weight:700;font-size:11px;cursor:pointer}
.studio-exercise-review button:hover{background:#254c79}
.exercise-modal[hidden]{display:none!important}
.exercise-modal{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:16px}
.exercise-modal-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#020916c9;cursor:default}
.exercise-modal-panel{position:relative;z-index:1;width:min(100%,530px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #355474;border-radius:16px;background:#0d1e34;color:#f1f6ff;box-shadow:0 12px 40px #0009;font-family:var(--sans)}
.exercise-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 22px 14px;border-bottom:1px solid #283c55}
.exercise-modal-head h2{margin:0;font-size:20px;letter-spacing:-.035em;color:#f4f8ff}
.exercise-modal-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid #344d6a;border-radius:9px;background:#172c48;color:#c5d5eb;cursor:pointer}
.exercise-modal-close .icon{width:18px;height:18px}
.exercise-modal-form{display:grid;gap:15px;padding:19px 22px 21px}
.exercise-modal-form>label,.exercise-modal-grid label,.exercise-modal-field{display:grid;gap:7px;min-width:0;color:#d0def1;font-size:12px;font-weight:650}
.exercise-modal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px}
.exercise-modal-form select{width:100%;min-width:0;height:43px;padding:0 13px;border:1px solid #375371;border-radius:9px;background:#172b47;color:#f7faff;outline:0;font:500 13px var(--sans)}
.exercise-modal-form select:focus-visible,.exercise-modal-form input:focus-visible,.exercise-modal-picker summary:focus-visible,.exercise-modal button:focus-visible{outline:2px solid #368df3;outline-offset:2px}
.exercise-modal-picker{position:relative;min-width:0}
.exercise-modal-picker>summary{position:relative;min-height:44px;display:flex;align-items:center;padding:11px 38px 11px 13px;border:1px solid #375371;border-radius:9px;background:#172b47;color:#f2f5fe;list-style:none;font-size:13px;font-weight:500;cursor:pointer}
.exercise-modal-picker>summary::-webkit-details-marker{display:none}
.exercise-modal-picker>summary:after{content:'';position:absolute;right:16px;top:16px;width:9px;height:9px;border-right:2px solid #a7bad2;border-bottom:2px solid #a7bad2;transform:rotate(45deg)}
.exercise-modal-picker[open]>summary:after{top:20px;transform:rotate(225deg)}
.exercise-modal-dropdown{display:grid;gap:8px;margin-top:7px;padding:10px;border:1px solid #375371;border-radius:10px;background:#10243c}
.exercise-modal-find{display:flex;align-items:center;gap:8px;height:39px;padding:0 10px;border:1px solid #354e6d;border-radius:8px;background:#172d49;color:#9daec7}
.exercise-modal-find .icon{width:17px;height:17px}
.exercise-modal-find input{flex:1;min-width:0;width:100%;border:0;outline:0;background:none;color:#f5f9ff;font:500 12px var(--sans)}
.exercise-modal-find input::placeholder{color:#8ea3bd}
.exercise-modal-options{display:grid;gap:3px;max-height:min(32dvh,235px);overflow-y:auto;overscroll-behavior:contain;padding-right:3px;scrollbar-width:thin;scrollbar-color:#3e5b7b transparent}
.exercise-topic-choice{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:9px;border-radius:7px;color:#dfeafa;font-size:12px;line-height:1.45;cursor:pointer}
.exercise-topic-choice:hover{background:#203854}
.exercise-topic-choice input{flex:none;width:17px;height:17px;margin:1px 0 0;accent-color:#ffa62b;cursor:pointer}
.exercise-topic-number{flex:none;min-width:22px;color:#86a9d4;font-size:10px;font-weight:750}
.exercise-topic-title{min-width:0;overflow-wrap:anywhere}
.exercise-topic-empty{margin:0;padding:14px 8px;font-size:12px;color:#9fb1ca;text-align:center}
.exercise-modal-count{font-size:11px;color:#a6bfdc}
.exercise-modal-error{margin:-2px 0 0;padding:8px 10px;border:1px solid #9c674f;border-radius:7px;background:#38251e;color:#ffccb1;font-size:12px}
.exercise-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:4px}
.exercise-modal-actions button{min-height:43px;padding:9px 17px;border:1px solid #36506e;border-radius:9px;font:700 12px var(--sans);cursor:pointer}
.exercise-modal-cancel{background:#182d48;color:#cfddf0}
.exercise-modal-submit{background:#ffa62b!important;border-color:#ffa62b!important;color:#142136}
.exercise-modal-submit:hover{background:#ffc164!important}
@media(max-width:540px){
 .exercise-modal{padding:10px}
 .exercise-modal-panel{max-height:calc(100dvh - 20px);border-radius:13px}
 .exercise-modal-head{padding:16px 16px 11px}
 .exercise-modal-form{padding:15px 16px 16px;gap:13px}
 .exercise-modal-grid{gap:9px}
 .exercise-modal-options{max-height:28dvh}
 .studio-exercise-review{margin-top:2px;padding:11px}
}
@media(max-width:360px){.exercise-modal-grid{grid-template-columns:1fr}}

/* Tezis: one or more real quarter choices; no arbitrary per-topic picker. */
.thesis-quarter-options{display:grid;gap:5px;max-height:220px;overflow-y:auto}
.thesis-quarter-option{
 display:grid;grid-template-columns:20px minmax(0,1fr) auto;
 align-items:center;gap:10px;min-height:48px;padding:10px 12px;
 border:1px solid #344f71;border-radius:9px;background:#172c46;
 color:#eef5ff;cursor:pointer
}
.thesis-quarter-option:hover{border-color:#4e82bd;background:#203d5c}
.thesis-quarter-option:has(input:checked){
 border-color:#368df3;background:#203e61
}
.thesis-quarter-option input{width:17px;height:17px;margin:0;accent-color:#ffa62b;cursor:pointer}
.thesis-quarter-option strong{font-size:13px;font-weight:650}
.thesis-quarter-option small{font-size:11px;color:#a9c0dd}
.thesis-quarter-empty{margin:0;padding:16px 11px;color:#a8bed9;font-size:12px;line-height:1.55;text-align:center}
.thesis-modal .exercise-modal-panel{width:min(100%,490px)}
@media(max-width:380px){
 .thesis-quarter-option{gap:7px;padding:9px}
 .thesis-quarter-option strong{font-size:12px}
 .thesis-quarter-option small{font-size:10px}
}

/* Three material-specific selectors. The grade/subject and compact topic list
   are shared; lesson planning uses radio, printables use per-topic counts. */
.direction-modal .exercise-modal-panel{width:min(100%,590px)}
.direction-modal-search{min-height:42px}
.direction-topic-options{
 display:grid;gap:6px;max-height:min(43dvh,325px);
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
 scrollbar-color:#42658a transparent
}
.direction-topic-row{
 display:flex;align-items:center;justify-content:space-between;gap:9px;
 min-width:0;min-height:49px;padding:9px 11px;
 border:1px solid #344c6a;border-radius:9px;background:#132940
}
.direction-topic-row:has(input:checked){background:#193b5b;border-color:#3f78b4}
.direction-topic-label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;cursor:pointer}
.direction-topic-label input{width:17px;height:17px;flex:none;margin:0;accent-color:#ffa62b}
.direction-topic-label small{flex:none;min-width:22px;font-size:10px;color:#8daed6}
.direction-topic-label span{
 min-width:0;font-size:12px;color:#e1edfa;line-height:1.45;overflow-wrap:anywhere
}
.direction-topic-amount{display:grid;gap:4px;flex:0 0 102px;color:#b2c6df;font-size:10px;text-align:center}
.direction-topic-amount input{
 width:100%;height:34px;padding:4px 9px;border:1px solid #42618a;border-radius:7px;
 background:#0c213a;color:#f2f8ff;font:650 13px var(--sans);
 text-align:center
}
.direction-topic-amount input:focus-visible{outline:2px solid #ffa62b;outline-offset:1px}
.direction-topic-empty{margin:0;padding:19px 10px;color:#a9c2df;font-size:12px;text-align:center}
@media(max-width:430px){
 .direction-modal .exercise-modal-panel{width:100%}
 .direction-topic-row{padding:8px;gap:6px}
 .direction-topic-amount{flex-basis:84px}
 .direction-topic-label span{font-size:11px}
}

/* Deep exercise outline: planning only, no example generation in this step. */
.exercise-outline[hidden]{display:none!important}
.exercise-outline{
 display:grid;gap:15px;min-width:0;margin-bottom:16px;
 padding:21px;border:1px solid #355174;border-radius:12px;background:#101f33
}
.exercise-outline-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.exercise-outline-head>div{min-width:0}
.exercise-outline-head h2{margin:0;color:#f2f7ff;font-size:19px;letter-spacing:-.035em}
.exercise-outline-head p{margin:6px 0 0;color:#aabbd3;font-size:12px;line-height:1.5}
.exercise-outline-analyze{
 display:inline-flex;align-items:center;justify-content:center;min-height:41px;
 flex:none;padding:9px 15px;border:1px solid #ffa62b;border-radius:9px;
 background:#ffa62b;color:#142238;font:700 12px var(--sans);cursor:pointer
}
.exercise-outline-analyze:disabled{opacity:.5;cursor:wait}
.exercise-outline-analyze:hover:not(:disabled){background:#ffc263}
.exercise-outline-status{margin:0;color:#bfd2ea;font-size:12px;line-height:1.5}
.exercise-outline-status.is-error{color:#ffb99e}
.exercise-outline-results{display:grid;gap:15px;min-width:0}
.exercise-outline-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.exercise-outline-summary>div{
 display:grid;gap:2px;min-width:0;padding:12px 14px;border:1px solid #2c4765;
 border-radius:9px;background:#152940
}
.exercise-outline-summary strong{color:#fff;font-size:21px;font-weight:700;font-variant-numeric:tabular-nums}
.exercise-outline-summary small{color:#a9bfd9;font-size:11px}
.exercise-outline-controls{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
 gap:12px;padding:13px 15px;border:1px solid #2d4766;border-radius:9px;background:#14273e
}
.exercise-outline-mode{display:flex;flex-wrap:wrap;gap:9px 15px;margin:0;padding:0;border:0}
.exercise-outline-mode legend{margin-bottom:9px;font-size:12px;font-weight:700;color:#d5e4f8}
.exercise-outline-mode label{display:flex;align-items:center;gap:7px;font-size:12px;color:#cbdaf0;cursor:pointer}
.exercise-outline-mode input{width:16px;height:16px;accent-color:#ffa62b}
.exercise-outline-common{display:flex;align-items:center;gap:8px;font-size:12px;color:#c8d6e8}
.exercise-outline-common input{
 width:68px;height:37px;padding:5px 9px;border:1px solid #42648b;border-radius:7px;
 background:#101f35;color:#fff;text-align:center;font:700 14px var(--sans)
}
.exercise-outline-list{display:grid;gap:12px;min-width:0}
.outline-topic{min-width:0;border:1px solid #2c4665;border-radius:10px;background:#10243b;overflow:hidden}
.outline-topic-summary{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:13px 15px;color:#ecf4ff;cursor:pointer;background:#19324e
}
.outline-topic-summary strong{min-width:0;font-size:13px;line-height:1.4}
.outline-topic-summary small{flex:none;font-size:11px;color:#a8c4e5}
.outline-topic-groups{display:grid;gap:0}
.outline-group{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:start;gap:10px 16px;min-width:0;
 padding:13px 15px;border-top:1px solid #263e5a;color:#e3ecfa
}
.outline-group.is-excluded{opacity:.5}
.outline-group-head{display:flex;align-items:flex-start;gap:10px;min-width:0}
.outline-toggle{width:17px;height:17px;flex:none;margin-top:3px;accent-color:#ffa62b;cursor:pointer}
.outline-group-copy{display:grid;gap:4px;min-width:0}
.outline-stage{font-size:10px;color:#86bafa}
.outline-group-copy strong{font-size:13px;line-height:1.4}
.outline-group-copy p{margin:0;color:#b6c7db;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.outline-group-controls{display:flex;align-items:center;gap:9px}
.outline-group-controls label{display:grid;gap:5px;font-size:10px;color:#a8c0dc}
.outline-group-controls select,.outline-group-controls input{
 height:36px;border:1px solid #3e5f83;border-radius:7px;
 background:#13283f;color:#f0f5fd;padding:5px 8px;font:650 12px var(--sans)
}
.outline-group-controls select{width:99px}
.outline-group-controls input{width:71px;text-align:center}
.outline-group-details{grid-column:1/-1;min-width:0;margin-left:27px}
.outline-group-details summary{width:fit-content;color:#96b8da;font-size:11px;cursor:pointer}
.outline-group-details p{margin:8px 0 0;color:#bdcde1;font-size:11px;line-height:1.55}
.exercise-outline-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
.exercise-outline-footer span{color:#9fb2cc;font-size:11px}
.exercise-outline-save{
 flex:none;min-height:41px;padding:9px 15px;border:1px solid #46729d;
 border-radius:9px;background:#1a3d62;color:#eef6ff;
 font:700 12px var(--sans);cursor:pointer
}
.exercise-outline-save:hover:not(:disabled){background:#25537c}
.exercise-outline-save:disabled{opacity:.5;cursor:not-allowed}
.exercise-outline-note{margin:0;color:#98aac4;font-size:11px;line-height:1.55}
.exercise-outline :is(button,select,input,summary):focus-visible{
 outline:2px solid #ffa62b;outline-offset:2px
}
@media(max-width:730px){
 .exercise-outline{padding:13px;gap:13px}
 .exercise-outline-head{align-items:flex-start;flex-direction:column}
 .exercise-outline-analyze{width:100%}
 .exercise-outline-controls{align-items:stretch;flex-direction:column}
 .outline-group{grid-template-columns:1fr;gap:10px;padding:12px}
 .outline-group-controls{padding-left:27px}
 .outline-group-controls select{width:130px}
 .outline-group-details{margin-left:27px}
}
@media(max-width:390px){
 .exercise-outline-summary>div{padding:10px 8px}
 .exercise-outline-summary strong{font-size:18px}
 .exercise-outline-summary small{font-size:10px}
 .outline-topic-summary{padding:11px}
 .outline-group-controls select{width:115px}
}

/* Exercise creation is a distinct second stage after teacher confirmation. */
.exercise-next-stage{display:grid;gap:9px;padding:14px 15px;border:1px solid #375b83;border-radius:9px;background:#112b46}
.exercise-next-stage button{min-height:45px;padding:10px 16px;border:1px solid #ffa62b;border-radius:8px;background:#ffa62b;color:#10253f;font:700 13px var(--sans);cursor:pointer}
.exercise-next-stage button:hover:not(:disabled){background:#ffc15a}
.exercise-next-stage button:disabled{opacity:.52;cursor:not-allowed}
.exercise-next-stage p{margin:0;color:#a9bfdb;font-size:12px;line-height:1.55}
.exercise-next-stage progress{width:100%;height:10px;accent-color:#ffa62b}
.exercise-next-stage [data-outline-gen-status]:empty{display:none}

/* Structured four-option test preview and compact responsive settings. */
.test-preview-list{display:grid;gap:0;list-style:decimal;list-style-position:outside;
 padding:0 0 0 24px;margin:10px 0;color:#dceafd}
.test-preview-item{padding:13px 7px;border-bottom:1px solid #2a415b;font-size:13px;line-height:1.55}
.test-preview-question{margin:0 0 8px;font-weight:700;color:#eef6ff;overflow-wrap:anywhere}
.test-preview-options{list-style-type:upper-alpha;padding-left:23px;margin:0;display:grid;gap:5px}
.test-preview-options li{padding-left:4px;color:#c6d7eb;overflow-wrap:anywhere}
.outline-test-difficulty{display:grid;gap:7px;color:#b5cce6;font-size:12px}
.outline-test-difficulty select{min-height:41px;padding:7px 11px;border:1px solid #42658a;
 border-radius:8px;background:#142b46;color:#f1f6ff;font:600 12px var(--sans)}
@media(max-width:650px){.test-preview-list{padding-left:19px}
 .test-preview-item{padding:11px 0;font-size:12px}}

/* Native MathML: real, vertically stacked fractions in material previews. */
.uo-math{display:inline-block;vertical-align:-.26em;margin-inline:.04em;font-family:'Cambria Math','STIX Two Math','DejaVu Math TeX Gyre',serif;font-size:1.06em;line-height:1.1;color:inherit;white-space:nowrap}
.uo-math mfrac{math-style:compact}
.exercise-outline .uo-math,.exercise-items .uo-math,.answer-text .uo-math{color:inherit}

.exercise-next-stage [data-outline-gen-cost]{font-size:12px;color:#e5effb;font-variant-numeric:tabular-nums}
[data-published-materials] form{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;margin:.7rem 0}
[data-published-materials] label{display:grid;gap:.25rem}
[data-published-materials] select,[data-published-materials] input{font:inherit;max-width:100%;padding:.35rem}
[data-catalog-rows] details{border-top:1px solid currentColor;padding:.65rem 0}
[data-catalog-rows] summary{cursor:pointer}
[data-catalog-rows] li{margin:.35rem 0;overflow-wrap:anywhere}


/* Unified library: published variants and the user's own material in each direction. */
.material-unified-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px}
.material-unified-heading h1{margin:0;color:#f4f7fb;font-size:clamp(21px,3vw,28px);letter-spacing:-.045em;line-height:1.2}
.material-unified-heading p{margin:4px 0 0;color:#93a6bf;font-size:11px}
.material-unified-filters{display:grid;grid-template-columns:minmax(110px,150px) minmax(130px,175px) minmax(160px,1fr);
 gap:9px;margin:8px 0 7px}
.material-unified-filters label{display:grid;gap:5px;color:#b9c8dd;font-size:11px;font-weight:650;min-width:0}
.material-unified-filters :is(select,input){display:block;width:100%;min-width:0;height:39px;
 padding:7px 10px;border:1px solid #344b66;border-radius:4px;background:#14253d;
 color:#f2f6fc;font:500 12px var(--sans);outline:0;box-sizing:border-box}
.material-unified-filters :is(select,input):focus-visible{border-color:#f86000;outline:2px solid #f86000;outline-offset:1px}
.material-unified-filters input::placeholder{color:#92a3b8}
.material-unified-status{min-height:14px;margin:0 0 5px;font-size:11px;color:#a0b4d0}
.material-group-heading{margin:15px 0 9px;font-size:12px;line-height:1.3;font-weight:700;color:#cbdaf0;letter-spacing:.01em}
.material-group-heading:first-child{margin-top:2px}
.material-public-card{display:flex;align-items:center;gap:10px;min-height:66px;padding:9px 12px;
 border:1px solid #2d4563;border-radius:5px;background:#13243b}
.material-public-card:hover{border-color:#53708e;background:#172c48}
.material-public-open{display:flex;flex:1;align-items:center;min-width:0;min-height:45px;
 padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.material-public-copy{display:grid;gap:5px;min-width:0;flex:1}
.material-public-copy strong{color:#f1f5fd;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.material-public-copy small{color:#a1b1c7;font-size:11px;line-height:1.4}
.material-public-links{display:flex;gap:6px;flex:none;align-items:center;flex-wrap:wrap}
.material-public-download{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;
 min-height:30px;border:1px solid #4b6280;border-radius:3px;color:#ddebff;
 background:#172d4b;text-decoration:none;font-size:11px;font-weight:700}
.material-public-download:hover{background:#244669;border-color:#f86000;color:#fff}
.material-public-preview{display:grid;gap:8px;margin:14px 0 0;padding-left:23px;line-height:1.65}
.material-public-preview li{padding:2px 0;color:#f1f4fa;overflow-wrap:anywhere}
.material-library-hint{margin:10px 0;color:#9eafc7;font-size:11px;line-height:1.5}
.studio-library-list{gap:8px}
.studio-library-row{border-radius:5px;background:#13243b}
.studio-library-more{border-radius:4px}
.studio-type-tab{border-radius:5px}
.studio-library-detail [hidden]{display:none!important}
@media(max-width:700px){
 .material-unified-filters{grid-template-columns:1fr 1fr}
 .material-unified-search{grid-column:1/-1}
 .material-public-card{align-items:flex-start;flex-wrap:wrap}
 .material-public-links{width:100%;justify-content:flex-start;padding-left:0}
}
