.avatar-student-editor{position:fixed;inset:0;z-index:120000;background:var(--bg,#111722);display:flex;padding:12px;color:var(--text,#eee)}
.avatar-student-shell{display:flex;flex-direction:column;width:100%;min-height:0;gap:8px}.avatar-student-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.avatar-student-top>strong{margin-right:auto}.avatar-student-tools{display:flex;gap:5px;position:relative}.avatar-student-main{display:grid;grid-template-columns:110px 230px minmax(0,1fr);flex:1;min-height:0;gap:10px}.avatar-student-dyes,.avatar-student-parts{overflow:auto;background:var(--panel,#1d2530);border-radius:10px;padding:8px}.avatar-dye-swatches{display:grid;grid-template-columns:repeat(auto-fill,18px);gap:4px;margin-top:8px;align-content:start}.avatar-dye-swatches>.btn{width:18px;height:18px;min-width:18px;min-height:18px;padding:0;border:1px solid #888;border-radius:2px}.avatar-dye-channels button{width:28px;height:28px;min-width:28px;padding:0;border:1px solid #888;border-radius:4px}.avatar-part{display:grid;grid-template-columns:60px 1fr;gap:4px;padding:5px;border:2px solid transparent;border-radius:8px;align-items:center}.avatar-part.selected{border-color:#429dff}.avatar-part>button{padding:0;width:58px;height:58px;grid-row:span 2;background:#ddd}.avatar-part-name{font-size:12px;overflow:hidden;text-overflow:ellipsis}.avatar-dye-channels{display:flex;gap:8px}.avatar-dye-channels button[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}.avatar-student-stage{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#444;border-radius:10px}.avatar-student-stage canvas{max-width:100%;max-height:100%;width:auto;height:auto;aspect-ratio:8/7;object-fit:contain;touch-action:none}.avatar-brush-menu{position:absolute;top:100%;left:0;z-index:2;padding:10px;background:#202b3c;border:1px solid #6a7b90;border-radius:8px}.avatar-brush-menu[hidden]{display:none}.avatar-student-status{min-height:24px;font-size:14px}.avatar-pencil{position:absolute;right:12px;bottom:12px;z-index:4}.avatar-startup-options{display:flex;gap:8px;flex-wrap:wrap}.avatar-startup-options button{display:flex;align-items:center;gap:6px}.avatar-startup-options img{width:48px;height:48px;object-fit:contain}.avatar-locked-art .presentation-slide-maker-preview{pointer-events:none}.avatar-locked-art .presentation-slide-maker-controls .presentation-slide-tool-grid:not(.avatar-bone-panel .presentation-slide-tool-grid),.avatar-locked-art .presentation-slide-sketch-controls{display:none}.avatar-locked-art .presentation-slide-layers-panel{display:none}
@media(max-width:800px){.avatar-student-editor{padding:5px}.avatar-student-main{grid-template-columns:65px 120px minmax(0,1fr);gap:4px}.avatar-part{grid-template-columns:1fr}.avatar-part>button{grid-row:auto}.avatar-part-name{font-size:10px}.avatar-student-top{gap:4px}}
.avatar-dye-armed *{cursor:inherit!important}
.avatar-model-choice{display:flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap}.avatar-model-choice select{max-width:180px;padding:5px}.avatar-protected-skeleton-row{padding:5px 10px;color:var(--muted,#aeb8c5);font-size:12px;border-top:1px solid #ffffff18}
.avatar-part-pair{position:relative}
.avatar-part-pair .avatar-part-armory{position:absolute;left:0;top:0;width:22px;height:22px;min-height:22px;padding:2px;background:var(--panel,#1d2530)}.avatar-part-armory img{width:17px;height:17px;object-fit:contain}.avatar-student-stage{position:relative}.avatar-editor-viewport{position:absolute;inset:0;overflow:auto;display:flex;overscroll-behavior:contain}.avatar-editor-board{margin:auto;flex:none}.avatar-editor-board canvas{display:block;max-width:none;max-height:none;object-fit:fill}.avatar-editor-zoom{display:flex;gap:5px;align-items:center}.avatar-editor-zoom output{font-size:12px;min-width:42px;text-align:center}
.avatar-classic-tool img,.avatar-classic-tool svg{display:block;width:27px;height:27px;object-fit:contain;margin:auto}
.avatar-student-tools[hidden]{display:none!important}.avatar-teacher-editor .avatar-dye-swatches{display:block}.avatar-teacher-editor .avatar-teacher-color{width:58px;height:58px;max-width:100%;padding:8px;border-radius:50%;border:1px solid #c5d5e2;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.avatar-teacher-color::-webkit-color-swatch-wrapper{padding:0}.avatar-teacher-color::-webkit-color-swatch{border-radius:50%;border:2px solid #fff}
.avatar-student-main.with-classic-tools{grid-template-columns:110px 230px minmax(0,1fr) 190px}.avatar-classic-tools{overflow:auto;min-height:0;padding:10px;background:var(--panel,#1d2530);border-radius:10px;display:flex;flex-direction:column;gap:12px}.avatar-classic-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.avatar-classic-tool-grid .btn{min-width:0;min-height:36px;padding:4px;font-size:20px}.avatar-classic-tool[aria-pressed=true]{outline:2px solid #58baff;background:#2672a8}.avatar-classic-tools label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}.avatar-classic-tools input[type=range]{width:100%;min-width:0}.avatar-classic-tools select{width:100%;min-width:0}.avatar-classic-brush-wheel{border-radius:50%;padding:14px;background:#172331;display:flex;justify-content:center;gap:12px}.avatar-classic-brush-wheel[hidden]{display:none}.avatar-classic-brush-wheel button{border-radius:50%}.avatar-classic-library-tools{display:flex;gap:6px;flex-wrap:wrap}.avatar-classic-library-tools button{display:flex;align-items:center;gap:5px}.avatar-classic-library{position:absolute;right:16px;top:70px;bottom:16px;width:min(420px,90vw);overflow:auto;z-index:2;padding:16px;border:1px solid #5b6e83;border-radius:12px;background:var(--panel,#1d2530);box-shadow:0 10px 40px #0008}.avatar-classic-library>.btn{margin:4px}.avatar-classic-library-item{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px;border-top:1px solid #ffffff25}.avatar-classic-library-item img{width:65px;height:65px;object-fit:contain}.avatar-classic-library-item strong{flex:1;min-width:120px}
@media(max-width:1100px){.avatar-student-main.with-classic-tools{grid-template-columns:70px 180px minmax(0,1fr) 160px}}
@media(max-width:800px){.avatar-student-main.with-classic-tools{grid-template-columns:58px 130px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.avatar-classic-tools{grid-column:1/-1;max-height:170px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.avatar-classic-tools>strong{display:none}}
.avatar-teacher-editor .avatar-dye-channels{display:grid;grid-template-columns:repeat(3,22px);gap:4px}.avatar-teacher-editor .avatar-dye-channels button{width:22px;min-width:22px;height:22px;min-height:22px}.avatar-teacher-color{width:54px;height:40px;padding:2px;cursor:pointer}
.avatar-part-symmetry{position:absolute;left:50%;top:24px;transform:translateX(-50%);z-index:1;width:20px;height:20px;min-width:20px;min-height:20px;padding:0;border:1px solid #8995a5;border-radius:50%;background:var(--panel,#1d2530);color:var(--text,#eee);font-size:14px;line-height:18px;cursor:pointer}
.avatar-part-symmetry[aria-pressed="true"]{background:#246bb1;color:#fff;border-color:#76bbff}
.avatar-part-symmetry:focus-visible{outline:2px solid #fff;outline-offset:2px}
.avatar-student-play-test,.avatar-student-animation{z-index:120001!important}.avatar-student-tools{flex-wrap:wrap}
.avatar-part-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.avatar-part-pair:has(>.avatar-part:only-child){grid-template-columns:1fr}.avatar-part-pair .avatar-part{display:flex;flex-direction:column;position:relative;min-width:0}.avatar-part-pair .avatar-part-name{max-width:100%}.avatar-part-pair .avatar-part-reset{position:absolute;right:0;top:0;width:22px;height:22px;min-height:22px;padding:0;background:var(--panel,#1d2530)}
@media(max-width:800px){.avatar-student-main{grid-template-columns:58px 166px minmax(0,1fr)}.avatar-part-pair .avatar-dye-channels{gap:4px}.avatar-part-pair .avatar-dye-channels button{width:24px;min-width:24px;height:24px}}

.avatar-teacher-saved-dyes{display:grid;grid-template-columns:repeat(auto-fill,22px);gap:5px;max-height:260px;overflow:auto;margin-top:8px;padding:3px}.avatar-teacher-saved-dyes .btn{width:22px;min-width:22px;height:22px;min-height:22px;padding:0;border:1px solid #8795a3;border-radius:4px}.avatar-teacher-saved-dyes .btn[aria-pressed=true]{outline:2px solid #fff;outline-offset:1px}
