:root{color:#34363b;font-synthesis:none;text-rendering:optimizelegibility;background:#f3f4f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{overflow:hidden}body.is-resizing{cursor:ew-resize;-webkit-user-select:none;user-select:none}body.is-resizing-vertical{cursor:ns-resize}button{font:inherit}.app{--surface:#fff;--surface-muted:#f7f8f9;--surface-deep:#f0f2f3;--line:#e3e6e8;--line-strong:#d7dbde;--text:#34363b;--text-muted:#8a8f96;--accent:#4eba68;--accent-dark:#3ba257;--accent-soft:#eaf7ed;width:100%;height:100dvh;color:var(--text);background:var(--surface-muted);overflow:hidden}.app.dark{--surface:#292c30;--surface-muted:#232529;--surface-deep:#1f2124;--line:#3b3f44;--line-strong:#474c52;--text:#eef0f1;--text-muted:#9fa5ac;--accent-soft:#263b2c}.topbar{border-bottom:1px solid var(--line);background:var(--surface);z-index:20;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:58px;padding:0 14px;display:grid;position:relative}.brand-area,.top-actions,.mode-switch,.panel-title,.canvas-tools,.file-tab,.editor-tools,.console-actions,.result-footer button{align-items:center;display:flex}.brand-area{gap:10px;min-width:0}.project-menu-wrap{min-width:0;position:relative}.brand-mark{color:#fff;background:linear-gradient(145deg,#70d58a,#36aa58);border-radius:11px;place-items:center;width:36px;height:36px;display:grid;box-shadow:inset 0 1px #ffffff57,0 3px 9px #379b512e}.brand-name{white-space:nowrap;font-size:16px;font-weight:700}.project-title{max-width:210px;color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:5px;padding:7px 9px;display:flex;overflow:hidden}.project-title:hover{background:var(--surface-muted);color:var(--text)}.project-menu,.file-menu{z-index:50;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:5px;position:absolute;box-shadow:0 12px 30px #1b231f29}.project-menu{width:190px;top:38px;left:0}.project-menu button,.file-menu button{width:100%;height:32px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;padding:0 9px;font-size:12px;display:flex}.project-menu button:hover,.file-menu button:hover{background:var(--surface-muted)}.file-menu button.danger{color:#d75050}.hidden-input{display:none}.dialog-backdrop{z-index:200;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#1b201d52;place-items:center;display:grid;position:fixed;inset:0}.name-dialog{border:1px solid var(--line);width:min(380px,100vw - 32px);color:var(--text);background:var(--surface);border-radius:10px;padding:20px;box-shadow:0 22px 60px #141c1838}.dialog-title{margin-bottom:18px;font-size:16px;font-weight:700}.name-dialog label{color:var(--text-muted);margin-bottom:7px;font-size:12px;display:block}.name-dialog input{border:1px solid var(--line-strong);width:100%;height:38px;color:var(--text);background:var(--surface);border-radius:6px;outline:0;padding:0 11px}.name-dialog input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.dialog-actions button{border:1px solid var(--line);height:34px;color:var(--text);background:var(--surface);cursor:pointer;border-radius:6px;padding:0 15px}.dialog-actions button.primary{border-color:var(--accent);color:#fff;background:var(--accent)}.confirm-dialog p{color:var(--text-muted);margin:0;font-size:13px;line-height:1.7}.dialog-actions button.danger-button{color:#fff;background:#df6262;border-color:#db5b5b}.mode-switch{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;gap:2px;padding:3px}.mode-switch button{height:30px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:0 14px;display:flex}.mode-switch button.selected{color:var(--accent-dark);background:var(--surface);box-shadow:0 1px 4px #1c27211a}.top-actions{justify-content:flex-end;gap:5px}.icon-button{width:32px;height:32px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;padding:0;transition:background-color .16s,color .16s,transform .12s;display:inline-grid}.icon-button:hover:not(:disabled){color:var(--text);background:var(--surface-deep)}.icon-button:active:not(:disabled),.run-button:active{transform:translateY(1px)}.icon-button.active{color:var(--accent-dark);background:var(--accent-soft)}.icon-button:disabled{opacity:.35;cursor:not-allowed}.login-button,.classroom-button,.run-button{cursor:pointer;white-space:nowrap;border-radius:7px;align-items:center;gap:6px;height:34px;padding:0 14px;display:flex}.login-button{border:1px solid var(--line);color:var(--text);background:var(--surface);margin-left:3px}.classroom-button{color:var(--accent-dark);background:var(--accent-soft);border:1px solid #9fd6aa;text-decoration:none}.login-button.signed-in{max-width:190px;padding-right:9px}.login-button.signed-in span{text-overflow:ellipsis;max-width:76px;overflow:hidden}.login-button.signed-in em{color:var(--accent-dark);background:var(--accent-soft);border-radius:4px;padding:2px 5px;font-size:9px;font-style:normal}.run-button{color:#fff;background:var(--accent);border:1px solid #3eaa59;justify-content:center;min-width:78px;margin-left:5px;box-shadow:0 2px 7px #3fae5b38}.run-button:hover{background:var(--accent-dark)}.run-button.stop{background:#ed6666;border-color:#e05b5b;box-shadow:0 2px 7px #d241412e}.workspace{grid-template-columns:var(--sidebar-width) minmax(330px, 1fr) var(--result-width);height:calc(100dvh - 58px);display:grid;position:relative;overflow:hidden}.workspace:has(.file-sidebar.collapsed){grid-template-columns:0 minmax(330px, 1fr) var(--result-width)}.workspace-resizer{z-index:12;cursor:ew-resize;touch-action:none;width:7px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.workspace-resizer:after{content:"";inset-block:0;background:0 0;width:1px;transition:background-color .14s;position:absolute;left:3px}.workspace-resizer:hover:after,body.is-resizing .workspace-resizer:after{background:var(--accent)}.sidebar-resizer{left:var(--sidebar-width)}.result-resizer{right:calc(var(--result-width) - 3px)}.file-sidebar{border-right:1px solid var(--line);background:var(--surface-muted);flex-direction:column;min-width:0;transition:width .18s;display:flex;overflow:hidden}.file-sidebar.collapsed{border:0;width:0}.sidebar-head{border-bottom:1px solid var(--line);height:42px;color:var(--text-muted);justify-content:space-between;align-items:center;padding:0 7px 0 15px;font-size:13px;font-weight:600;display:flex}.sidebar-head>div{display:flex}.sidebar-head .icon-button{width:28px;height:28px}.tree-root{flex:1;padding:7px}.tree-row{width:100%;height:32px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:5px;align-items:center;gap:7px;padding:0 8px;font-size:13px;display:flex}.tree-row svg{color:#78a482}.root-row{cursor:pointer}.root-row span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.root-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.file-row-wrap{border-radius:5px;display:flex;position:relative}.file-row-wrap .file-row{cursor:pointer;flex:1;min-width:0;padding-left:31px}.file-row-wrap .file-row span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-row-wrap>.icon-button{opacity:0;width:26px;height:32px}.file-row-wrap:hover>.icon-button,.file-row-wrap.selected>.icon-button{opacity:1}.file-row-wrap.selected{color:#36894a;background:#e7f4ea}.file-row-wrap.selected .file-row{color:#36894a}.dark .file-row-wrap.selected{background:#283e2e}.file-menu{width:112px;top:31px;right:0}.add-file{border:1px dashed var(--line-strong);height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:6px;margin:10px;display:flex}.add-file:hover{color:var(--accent-dark);border-color:var(--accent)}.sidebar-restore{z-index:8;border:1px solid var(--line);width:18px;height:44px;color:var(--text-muted);background:var(--surface);cursor:pointer;border-left:0;border-radius:0 5px 5px 0;padding:0;position:absolute;top:42px;left:0}.editor-pane,.result-pane{min-width:0;min-height:0}.editor-pane{border-right:1px solid var(--line);background:var(--surface);grid-template-rows:42px minmax(0,1fr);display:grid}.pane-toolbar{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;padding:0 8px 0 0;display:flex}.file-tabs{scrollbar-width:none;align-items:stretch;min-width:0;height:100%;display:flex;overflow:auto hidden}.file-tabs::-webkit-scrollbar{display:none}.file-tab{border:0;border-right:1px solid var(--line);min-width:112px;max-width:180px;height:100%;color:var(--text-muted);background:var(--surface-muted);cursor:pointer;gap:6px;padding:0 10px;font-size:12px}.file-tab>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-tab.active{color:var(--text);background:var(--surface);box-shadow:inset 0 2px var(--accent);font-weight:600}.file-tab svg{color:#58aa6d}.file-tab .tab-close{color:var(--text-muted);border-radius:3px;margin-left:auto}.file-tab .tab-close:hover{color:var(--text);background:var(--surface-deep)}.saved-state{color:var(--text-muted);margin-left:5px;font-size:11px;font-weight:400}.saved-state.local{color:#b2732d}.saved-state.synced{color:var(--accent-dark)}.saved-state.error{color:#c34f4f}.editor-tools{background:var(--surface);flex:none;gap:1px;padding-left:8px}.editor-tools .icon-button{width:28px;height:28px}.font-size,.zoom-value{min-width:28px;color:var(--text-muted);text-align:center;font-size:11px}.code-editor{min-height:0;font-size:var(--editor-font-size);overflow:hidden}.code-editor .cm-editor{font-size:var(--editor-font-size)}.blocks-loading{color:var(--text-muted);background:var(--surface-muted);flex-direction:column;justify-content:center;align-items:center;gap:9px;font-size:12px;display:flex}.blockly-editor{background:var(--surface-muted);grid-template-rows:40px minmax(0,1fr);min-width:0;min-height:0;display:grid;overflow:hidden}.block-sync-bar{border-bottom:1px solid var(--line);min-width:0;color:var(--text-muted);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:0 9px 0 13px;font-size:11px;display:flex}.block-sync-bar>span,.block-sync-actions,.block-sync-actions button{align-items:center;display:flex}.block-sync-bar>span{white-space:nowrap;text-overflow:ellipsis;gap:6px;min-width:0;overflow:hidden}.block-sync-bar.synced>span:first-child{color:var(--accent-dark)}.block-sync-bar.warning>span:first-child{color:#b47725}.block-sync-actions{flex:none;gap:5px}.block-sync-actions button{border:1px solid var(--line);height:28px;color:var(--text-muted);background:var(--surface);cursor:pointer;border-radius:5px;gap:5px;padding:0 9px}.block-sync-actions button:hover{color:var(--text);background:var(--surface-muted)}.block-sync-actions button.primary{border-color:var(--accent);color:#fff;background:var(--accent)}.blockly-host{min-width:0;min-height:0;position:relative}.blockly-host .blocklyToolboxDiv{border-right:1px solid var(--line)}.blockly-host .blocklyTreeRow{border-radius:0;align-items:center;height:40px;padding:0 12px;display:flex}.blockly-host .blocklyTreeLabel{font-size:12px}.blockly-host .blocklyFlyout{filter:drop-shadow(4px 0 8px #222b2614)}.blockly-host .blocklyScrollbarHandle{rx:3px}.block-code-preview{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;top:auto;left:-10000px;overflow:hidden}.result-pane{background:var(--surface-muted);grid-template-rows:minmax(230px,1fr) auto 30px;display:grid}.result-pane.fullscreen{z-index:100;grid-template-rows:minmax(320px,1fr) auto 30px;position:fixed;inset:0}.canvas-panel{grid-template-rows:42px minmax(0,1fr);min-height:0;display:grid}.panel-titlebar{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;padding:0 8px 0 14px;display:flex}.panel-title{gap:7px;font-size:13px;font-weight:600}.panel-title svg{color:#5ab773}.running-state{color:#3e9854;background:#e8f6eb;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:500}.canvas-tools{gap:0}.canvas-tools .icon-button{width:28px;height:28px}.canvas-viewport{background-color:#fbfbf8;min-height:0;position:relative;overflow:hidden}.canvas-viewport.with-grid{background-image:linear-gradient(#7a817d17 1px,#0000 1px),linear-gradient(90deg,#7a817d17 1px,#0000 1px),linear-gradient(#7a817d0a 1px,#0000 1px),linear-gradient(90deg,#7a817d0a 1px,#0000 1px);background-size:40px 40px,40px 40px,8px 8px,8px 8px}.turtle-stage{transform-origin:50%;background:#ffffffeb;width:720px;height:520px;transition:transform .18s;position:absolute;top:50%;left:50%;box-shadow:0 0 0 1px #969d991f,0 12px 32px #515a5514}.canvas-empty{color:#aab0ab;pointer-events:none;flex-direction:column;align-items:center;gap:9px;font-size:12px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.console-panel{border-top:1px solid var(--line);background:var(--surface);position:relative}.console-resizer{z-index:3;cursor:ns-resize;touch-action:none;height:7px;position:absolute;top:-4px;left:0;right:0}.console-resizer:after{content:"";background:0 0;height:1px;position:absolute;top:3px;left:0;right:0}.console-resizer:hover:after,body.is-resizing-vertical .console-resizer:after{background:var(--accent)}.console-titlebar{width:100%;height:36px;color:var(--text);background:var(--surface);justify-content:space-between;align-items:center;padding:0 12px 0 15px;font-size:13px;font-weight:600;display:flex}.console-toggle{height:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;flex:1;font-weight:600}.console-actions{color:var(--text-muted);gap:7px}.console-actions button{color:var(--text-muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:4px;font-size:11px;display:inline-grid}.console-actions .rotated{transform:rotate(180deg)}.console-output{height:var(--console-height);border-top:1px solid var(--line);color:var(--text);background:var(--surface-deep);white-space:pre-wrap;flex-direction:column;padding:10px 14px;font:12px/1.65 SFMono-Regular,Consolas,monospace;display:flex;overflow:auto}.settings-dialog{border:1px solid var(--line);width:min(520px,100vw - 32px);color:var(--text);background:var(--surface);border-radius:10px;overflow:hidden;box-shadow:0 22px 60px #141c1838}.settings-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;padding:18px 20px 15px;display:flex}.settings-head .dialog-title{margin:0 0 4px}.settings-head span{color:var(--text-muted);font-size:11px}.settings-list{padding:4px 20px}.storage-access-card{color:#8a5a1d;background:#fff8eb;border:1px solid #edcf9f;border-radius:7px;flex-direction:column;gap:4px;margin:14px 0 5px;padding:12px 13px;display:flex}.storage-access-card.cloud{color:#2f7d44;background:#eef9f0;border-color:#b9dfc1}.storage-access-card strong{font-size:12px}.storage-access-card span{font-size:10px;line-height:1.6}.settings-list>label{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;min-height:62px;display:flex}.settings-list>label:last-child{border-bottom:0}.settings-list label>span{flex-direction:column;gap:3px;display:flex}.settings-list strong{font-size:13px;font-weight:600}.settings-list small{color:var(--text-muted);font-size:11px}.settings-list select{border:1px solid var(--line-strong);min-width:112px;height:32px;color:var(--text);background:var(--surface);border-radius:6px;padding:0 28px 0 9px}.settings-list input[type=checkbox]{appearance:none;border:1px solid var(--line-strong);background:var(--surface-deep);cursor:pointer;border-radius:999px;flex:none;width:34px;height:20px;position:relative}.settings-list input[type=checkbox]:after{content:"";background:var(--text-muted);border-radius:50%;width:14px;height:14px;transition:transform .14s,background-color .14s;position:absolute;top:2px;left:2px}.settings-list input[type=checkbox]:checked{border-color:var(--accent);background:var(--accent)}.settings-list input[type=checkbox]:checked:after{background:#fff;transform:translate(14px)}.settings-footer{border-top:1px solid var(--line);background:var(--surface-muted);justify-content:space-between;align-items:center;min-height:54px;padding:10px 20px;display:flex}.settings-footer span{color:var(--text-muted);font-size:11px}.settings-footer button{border:1px solid var(--accent);color:#fff;background:var(--accent);cursor:pointer;border-radius:6px;height:32px;padding:0 16px}.console-muted{color:var(--text-muted)}.console-input{align-items:center;gap:7px;margin-top:5px;display:flex}.console-input label{color:var(--text);white-space:pre-wrap;flex:0 auto}.console-input input{border:1px solid var(--accent);min-width:80px;height:28px;color:var(--text);background:var(--surface);font:inherit;box-shadow:0 0 0 2px var(--accent-soft);border-radius:5px;outline:0;flex:1;padding:0 8px}.console-input button{border:1px solid var(--accent);color:#fff;background:var(--accent);cursor:pointer;border-radius:5px;height:28px;padding:0 10px}.result-footer{border-top:1px solid var(--line);color:var(--text-muted);background:var(--surface);justify-content:space-between;align-items:center;padding:0 10px;font-size:10px;display:flex}.result-footer button{color:var(--text-muted);cursor:pointer;background:0 0;border:0;gap:4px}.auth-dialog{border:1px solid var(--line);width:min(410px,100vw - 32px);color:var(--text);background:var(--surface);border-radius:12px;padding:24px;box-shadow:0 24px 70px #141c1840}.auth-heading{grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-bottom:22px;display:grid}.auth-heading h2{margin:0 0 3px;font-size:18px}.auth-heading p{color:var(--text-muted);margin:0;font-size:11px}.auth-heading>button,.classroom-head>button,.work-detail header>button{width:32px;height:32px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.auth-heading>button:hover,.classroom-head>button:hover,.work-detail header>button:hover{color:var(--text);background:var(--surface-deep)}.auth-icon{color:#fff;background:var(--accent);border-radius:10px;place-items:center;width:42px;height:42px;display:grid}.auth-mode-switch{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;grid-template-columns:1fr 1fr;gap:3px;margin-bottom:16px;padding:3px;display:grid}.auth-mode-switch button{height:33px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;gap:5px;font-size:11px;display:flex}.auth-mode-switch button.active{color:var(--accent-dark);background:var(--surface);box-shadow:0 1px 4px #1c27211a}.auth-dialog>label{color:var(--text-muted);margin:13px 0 6px;font-size:11px;display:block}.auth-input{border:1px solid var(--line-strong);border-radius:7px;align-items:center;gap:8px;height:40px;padding:0 11px;display:flex}.auth-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.auth-input svg{color:var(--text-muted)}.auth-input input{min-width:0;color:var(--text);background:0 0;border:0;outline:0;flex:1}.auth-select{border:1px solid var(--line-strong);border-radius:7px;align-items:center;gap:8px;height:40px;padding:0 10px;display:flex}.auth-select:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.auth-select svg{color:var(--text-muted);flex:none}.auth-select select{min-width:0;height:100%;color:var(--text);background:0 0;border:0;outline:0;flex:1}.quick-login-hint{color:var(--text-muted);margin:9px 0 0;font-size:10px;line-height:1.55}.auth-error{color:#b84545;background:#fcecec;border-radius:6px;margin-top:12px;padding:8px 10px;font-size:11px}.auth-submit{color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:7px;width:100%;height:40px;margin-top:18px;font-weight:600}.auth-submit:disabled{opacity:.55;cursor:not-allowed}.demo-accounts{color:var(--text-muted);background:var(--surface-muted);border-radius:7px;flex-direction:column;gap:4px;margin-top:18px;padding:12px;font-size:10px;display:flex}.demo-accounts strong{color:var(--text);margin-bottom:2px;font-size:11px}.admin-entry{border:1px solid var(--line-strong);width:100%;height:36px;color:var(--text);background:var(--surface);border-radius:7px;justify-content:center;align-items:center;gap:6px;margin-top:10px;font-size:11px;text-decoration:none;display:flex}.admin-entry:hover{border-color:var(--accent);color:var(--accent-dark);background:var(--accent-soft)}.classroom-backdrop{z-index:180;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#151b1761;place-items:center;display:grid;position:fixed;inset:0}.classroom-panel{border:1px solid var(--line);width:min(1120px,100vw - 40px);height:min(760px,100dvh - 40px);color:var(--text);background:var(--surface);border-radius:12px;grid-template-rows:64px auto minmax(0,1fr);display:grid;overflow:hidden;box-shadow:0 28px 90px #121a1547}.classroom-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:0 18px;display:flex}.classroom-head>div{align-items:center;gap:11px;display:flex}.classroom-head-icon{color:#fff;background:var(--accent);border-radius:8px;place-items:center;width:36px;height:36px;display:grid}.classroom-head h2{margin:0 0 2px;font-size:16px}.classroom-head p{color:var(--text-muted);margin:0;font-size:10px}.classroom-notice{color:#35834a;background:#eef9f0;border-bottom:1px solid #cce9d2;align-items:center;gap:7px;min-height:35px;padding:8px 18px;font-size:11px;display:flex}.classroom-notice.error{color:#b84545;background:#fff0f0;border-color:#f2caca}.classroom-layout{grid-template-columns:240px minmax(0,1fr);min-height:0;display:grid}.classroom-list{border-right:1px solid var(--line);background:var(--surface-muted);min-height:0;padding:12px 9px;overflow:auto}.create-classroom{grid-template-columns:1fr auto;gap:5px;margin-bottom:15px;display:grid}.create-classroom input{border:1px solid var(--line-strong);min-width:0;height:34px;color:var(--text);background:var(--surface);border-radius:6px;outline:0;padding:0 9px;font-size:11px}.create-classroom input:focus{border-color:var(--accent)}.create-classroom button{color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:6px;align-items:center;gap:4px;height:34px;padding:0 10px;display:flex}.create-classroom button:disabled{opacity:.5}.classroom-list-title{color:var(--text-muted);justify-content:space-between;align-items:center;margin:0 7px 8px;font-size:10px;font-weight:600;display:flex}.classroom-list-title span{background:var(--surface-deep);border-radius:999px;padding:1px 6px}.classroom-card{width:100%;min-height:68px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;flex-direction:column;align-items:flex-start;margin-bottom:5px;padding:10px 9px 9px 25px;display:flex;position:relative}.classroom-card:hover{background:var(--surface)}.classroom-card.selected{background:var(--surface);border-color:#b8dfc1;box-shadow:0 2px 8px #29693b14}.classroom-card strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px;overflow:hidden}.classroom-card small{color:var(--text-muted);margin-top:5px;font-size:9px}.classroom-card em{color:var(--accent-dark);font-size:9px;font-style:normal;position:absolute;bottom:8px;right:8px}.live-dot{background:#4fbd69;border-radius:50%;width:7px;height:7px;position:absolute;top:15px;left:10px;box-shadow:0 0 0 3px #e4f6e8}.live-dot.ended{box-shadow:none;background:#aab0b4}.classroom-empty,.classroom-placeholder,.works-empty{color:var(--text-muted)}.classroom-empty{flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:170px;font-size:11px;display:flex}.classroom-content{min-width:0;min-height:0;padding:20px 22px;overflow:auto}.classroom-placeholder{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.classroom-placeholder h3{color:var(--text);margin:12px 0 4px;font-size:15px}.classroom-placeholder p{margin:0;font-size:11px}.classroom-placeholder.small{height:270px}.classroom-summary{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:18px;min-height:74px;display:flex}.classroom-summary h3{margin:7px 0 4px;font-size:18px}.classroom-summary p{color:var(--text-muted);margin:0;font-size:10px}.classroom-summary-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.class-status{color:#33824a;background:#e7f6ea;border-radius:999px;padding:3px 7px;font-size:9px}.class-status.ended{color:#747b82;background:var(--surface-deep)}.primary-action,.secondary-action{cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:6px;height:34px;padding:0 13px;display:inline-flex}.primary-action{border:1px solid var(--accent);color:#fff;background:var(--accent)}.secondary-action{border:1px solid var(--line-strong);color:var(--text-muted);background:var(--surface)}.primary-action:disabled,.secondary-action:disabled{opacity:.45;cursor:not-allowed}.works-section{margin-top:20px}.section-heading{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.section-heading>div{align-items:center;gap:7px;display:flex}.section-heading svg{color:var(--accent-dark)}.section-heading strong{font-size:13px}.section-heading>span{color:var(--text-muted);font-size:9px}.works-empty{border:1px dashed var(--line-strong);background:var(--surface-muted);border-radius:7px;place-items:center;height:90px;font-size:10px;display:grid}.works-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;display:grid}.work-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:0;overflow:hidden}.work-card>img,.work-preview-empty{object-fit:contain;border-bottom:1px solid var(--line);background:#fbfbf8;width:100%;height:110px}.work-preview-empty{color:#9ca6a0;place-items:center;display:grid}.work-card>div:not(.work-preview-empty){flex-direction:column;gap:4px;padding:9px 10px;display:flex}.work-card strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.work-card span{color:var(--text-muted);font-size:9px}.work-card footer{border-top:1px solid var(--line);gap:5px;padding:7px;display:flex}.work-card footer button{border:1px solid var(--line);height:27px;color:var(--text-muted);background:var(--surface);cursor:pointer;border-radius:5px;flex:1;justify-content:center;align-items:center;gap:4px;font-size:10px;display:flex}.work-card footer button:hover,.compact-work-list button:hover{color:var(--text);background:var(--surface-muted)}.work-card footer button.use-work{color:var(--accent-dark);background:var(--accent-soft);border-color:#a7d8b1}.work-card footer button.danger-work{color:#bd5050}.public-directory{border-top:1px solid var(--line);padding-top:18px}.compact-work-list{border:1px solid var(--line);border-radius:7px;flex-direction:column;display:flex;overflow:hidden}.compact-work-list button{border:0;border-bottom:1px solid var(--line);min-height:38px;color:var(--text);background:var(--surface);text-align:left;cursor:pointer;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:0 10px;display:grid}.compact-work-list button:last-child{border-bottom:0}.compact-work-list small{color:var(--text-muted);font-size:9px}.work-detail-backdrop{z-index:5;background:#191f1b52;place-items:center;display:grid;position:absolute;inset:0}.work-detail{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:min(680px,100% - 40px);max-height:calc(100% - 40px);padding:18px;overflow:auto;box-shadow:0 20px 55px #141c183d}.work-detail header{justify-content:space-between;align-items:flex-start;display:flex}.work-detail h3{margin:0 0 4px;font-size:16px}.work-detail header p{color:var(--text-muted);margin:0;font-size:10px}.work-detail>img{object-fit:contain;border:1px solid var(--line);background:#fbfbf8;border-radius:7px;width:100%;max-height:260px;margin-top:14px}.work-files{margin-top:14px}.work-files details{border:1px solid var(--line);border-radius:6px;margin-bottom:6px;overflow:hidden}.work-files summary{background:var(--surface-muted);cursor:pointer;padding:8px 10px;font-size:10px;font-weight:600}.work-files pre{max-height:240px;color:var(--text);background:var(--surface-deep);white-space:pre-wrap;margin:0;padding:11px;font:10px/1.55 SFMono-Regular,Consolas,monospace;overflow:auto}.detail-use{width:100%;margin-top:10px}.dark .code-editor{filter:invert(.84)hue-rotate(175deg)}.dark .canvas-viewport{filter:brightness(.86)}@media (width<=1080px){.workspace{--sidebar-width:164px!important;--result-width:390px!important}.brand-name{display:none}.topbar{grid-template-columns:minmax(220px,1fr) auto minmax(260px,1fr)}.top-actions>.icon-button:first-child,.login-button{display:none}.classroom-layout{grid-template-columns:210px minmax(0,1fr)}}@media (width<=820px){body{overflow:auto}.app{height:auto;min-height:100dvh;overflow:visible}.topbar{grid-template-columns:1fr auto;position:sticky;top:0}.mode-switch{display:none}.project-title{max-width:140px}.workspace{grid-template-rows:minmax(480px,58dvh) minmax(520px,70dvh);grid-template-columns:1fr;height:auto;min-height:calc(100dvh - 58px);overflow:visible}.file-sidebar,.workspace-resizer{display:none}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}.result-pane{min-height:520px}.canvas-tools .icon-button:first-of-type,.canvas-tools .icon-button:nth-of-type(5),.canvas-tools .icon-button:nth-of-type(6){display:none}.classroom-panel{border:0;border-radius:0;width:100vw;height:100dvh}.classroom-layout{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.classroom-list{border-right:0;border-bottom:1px solid var(--line);max-height:190px}.classroom-content{padding:16px}.works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
