.sound-panel[data-v-50fdbaf2]{display:flex;flex-direction:column;width:100%;min-width:0;border:1px solid #dde3ea;border-radius:8px;background:#f4f6f9;color:#233043;font-size:13px;overflow:hidden}.sound-panel button[data-v-50fdbaf2]{font:inherit}.sp-tabs[data-v-50fdbaf2]{display:flex;gap:6px;padding:8px;border-bottom:1px solid #dde3ea;background:#e9eef4}.sp-tab[data-v-50fdbaf2]{flex:1;padding:6px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#5b6b7f;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.sp-tab[data-v-50fdbaf2]:hover{background:#dfe7f1;color:#2b7fd4}.sp-tab[data-v-50fdbaf2]:active{background:#d2dfee}.sp-tab.active[data-v-50fdbaf2]{border-color:#c9dcf2;background:#fff;color:#2b7fd4;font-weight:600}.sp-body[data-v-50fdbaf2]{flex:1;min-height:0;max-height:420px;padding:10px;overflow:auto;background:#f4f6f9}.sp-group+.sp-group[data-v-50fdbaf2]{margin-top:12px}.sp-group-title[data-v-50fdbaf2]{margin-bottom:6px;color:#6b7c91;font-size:12px}.sp-grid[data-v-50fdbaf2]{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:6px}.sp-item[data-v-50fdbaf2]{padding:8px 4px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;color:#31465e;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:border-color .15s ease,color .15s ease,background .15s ease,transform .1s ease}.sp-item[data-v-50fdbaf2]:hover{border-color:#2b7fd4;color:#2b7fd4}.sp-item[data-v-50fdbaf2]:active{transform:translateY(1px);background:#f0f6fd}.sp-item.selected[data-v-50fdbaf2]{border-color:#2b7fd4;background:#e8f2fd;color:#1d6ac0;box-shadow:inset 0 0 0 1px #2b7fd4}.sp-mine[data-v-50fdbaf2]{display:flex;flex-direction:column;gap:6px}.sp-empty[data-v-50fdbaf2]{margin:6px 0;color:#7b8b9e;font-size:12px;line-height:1.7}.sp-row[data-v-50fdbaf2]{display:flex;align-items:stretch;gap:4px}.sp-row-main[data-v-50fdbaf2]{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;color:#31465e;cursor:pointer;text-align:left;transition:border-color .15s ease,color .15s ease,background .15s ease}.sp-row-main[data-v-50fdbaf2]:hover:not(:disabled){border-color:#2b7fd4;color:#2b7fd4}.sp-row-main[data-v-50fdbaf2]:active:not(:disabled){background:#f0f6fd}.sp-row-main[data-v-50fdbaf2]:disabled{cursor:not-allowed;opacity:.6}.sp-row.selected .sp-row-main[data-v-50fdbaf2]{border-color:#2b7fd4;background:#e8f2fd;color:#1d6ac0}.sp-row-name[data-v-50fdbaf2]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-row-tag[data-v-50fdbaf2]{flex:none;color:#8b9aad;font-size:11px}.sp-row-del[data-v-50fdbaf2]{flex:none;width:28px;border:1px solid #d7e0ea;border-radius:6px;background:#fff;color:#7b8b9e;cursor:pointer;transition:color .15s ease,border-color .15s ease}.sp-row-del[data-v-50fdbaf2]:hover{border-color:#d9534f;color:#c9302c}.sp-note[data-v-50fdbaf2]{margin:8px 0 0;color:#7b8b9e;font-size:11px;line-height:1.6}.sp-foot[data-v-50fdbaf2]{display:flex;gap:6px;padding:8px;border-top:1px solid #dde3ea;background:#eef2f7}.sp-btn[data-v-50fdbaf2]{flex:1;min-width:0;padding:7px 4px;border:1px solid #cfdae7;border-radius:6px;background:#fff;color:#31465e;cursor:pointer;white-space:nowrap;transition:border-color .15s ease,color .15s ease,background .15s ease,transform .1s ease}.sp-btn[data-v-50fdbaf2]:hover{border-color:#2b7fd4;color:#2b7fd4}.sp-btn[data-v-50fdbaf2]:active{transform:translateY(1px);background:#e8f2fd}.sp-btn.recording[data-v-50fdbaf2]{border-color:#d9534f;background:#fdeceb;color:#c9302c}.sp-btn.danger[data-v-50fdbaf2]:hover{border-color:#d9534f;color:#c9302c}.sp-file[data-v-50fdbaf2]{display:none}.sp-msg[data-v-50fdbaf2]{margin:0;padding:6px 10px;border-top:1px solid #dde3ea;background:#eef2f7;color:#5b6b7f;font-size:12px}:root{color:#33475b;background:#f2f5f9;font-family:Inter,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px}button,select,textarea{font:inherit}.hk{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;color:#33475b}.hk-top{min-height:52px;display:flex;align-items:center;gap:12px;padding:0 12px;background:#ffc32b;border-bottom:1px solid #f0b215}.top-left{display:flex;align-items:center;gap:2px}.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:#5f4200;font-size:16px;cursor:pointer}.icon-btn:hover{background:#ffffff8c}.mode-switch{display:inline-flex;border:1px solid #f0b215;border-radius:6px;overflow:hidden;background:#fff}.mode-switch button{padding:5px 16px;border:0;background:transparent;color:#5f4200;font-size:13px;cursor:pointer}.mode-switch button.active{background:#ffdd57;color:#4a3800;font-weight:700}.mode-switch button:disabled{opacity:.5;cursor:not-allowed}.top-right{display:flex;align-items:center;gap:8px;margin-left:auto}.work-name{width:150px;padding:6px 10px;border:1px solid #f0b215;border-radius:5px;background:#fff;color:#33475b;font-size:12px;outline:none}.lang-select{padding:6px 8px;border:1px solid #f0b215;border-radius:5px;background:#fff;color:#33475b;font-size:12px}.btn{border:0;border-radius:5px;padding:7px 14px;font-size:13px;cursor:pointer;white-space:nowrap}.top-right .btn{flex-shrink:0}.btn:disabled{opacity:.55;cursor:wait}.btn.save,.btn.run{background:#f27f0c;color:#fff}.btn.save:hover,.btn.run:hover{background:#e07308}.btn.share{background:#4a7dff;color:#fff}.btn.debug{background:#fff;color:#e8930c;border:1px solid #f0b215}.btn.stop{background:#e2543f;color:#fff}.btn.block{display:block;width:100%;text-align:center}.message{position:fixed;top:62px;left:50%;transform:translate(-50%);padding:9px 20px;border-radius:6px;background:#26a06ff2;color:#fff;font-size:13px;z-index:60;box-shadow:0 6px 16px #1f2d3d2e;max-width:70vw}.toast-enter-active,.toast-leave-active{transition:opacity .25s ease,transform .25s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%) translateY(-8px)}.hk-body{flex:1;display:grid;grid-template-columns:var(--left-w, 300px) 1fr var(--right-w, 360px);min-height:0}.hk-body.no-right{grid-template-columns:var(--left-w, 300px) 1fr 44px}.hk-left{position:relative;display:flex;min-height:0;border-right:1px solid #eceff3;background:#fff;overflow:hidden}.hk-left.collapsed .panel{display:none}.rail{width:56px;padding:8px 0;display:flex;flex-direction:column;gap:4px;border-right:1px solid #eceff3;background:#fff;flex-shrink:0}.rail-toggle{margin-top:auto}.rail button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;border:0;background:none;color:#7b8b9e;font-size:11px;cursor:pointer}.rail button i{font-style:normal;font-size:18px}.rail button:hover{background:#faf6ec}.rail button.active{background:#fff7e0;color:#d98f00}.panel{flex:1;min-height:0;overflow:auto;padding:14px}.panel h2{margin:0 0 10px;font-size:14px;color:#1f2d3d}.panel h3{margin:12px 0 8px;font-size:12px;color:#7b8b9e}.tpl-level{display:flex;align-items:center;gap:6px;width:100%;margin:12px 0 6px;padding:8px 0 6px;border:0;border-top:1px solid #eef2f7;background:none;color:#c98a00;font-size:12px;font-weight:700;text-align:left;cursor:pointer}.tpl-level:first-of-type{margin-top:2px;border-top:0}.tpl-level:hover{color:#a86f00}.tpl-caret{width:12px;font-size:11px}.tpl-name{flex:1}.tpl-level small{color:#b9a06a;font-weight:400}.tip{margin:0 0 12px;color:#8a97a8;font-size:12px;line-height:1.7}.cat-list{list-style:none;margin:0;padding:0}.cat-list li{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-bottom:6px;border-radius:6px;background:#fafbfc;color:#41546b;font-size:13px}.cat-list i{width:12px;height:12px;border-radius:3px}.cat-list small{margin-left:auto;color:#9aa8b8}.list-item{display:flex;flex-direction:column;gap:3px;width:100%;margin-bottom:8px;padding:10px 12px;border:1px solid #e8edf4;border-radius:8px;background:#fff;text-align:left;cursor:pointer}.list-item:hover{border-color:#f5c95e;background:#fffdf4}.list-item b{color:#1f2d3d;font-size:13px}.list-item small{color:#93a1b2;font-size:11px}.list-item.current{border-color:#f0a400;background:#fff8e3}.list-item.danger b{color:#e2543f}.panel-row{margin-bottom:8px}.split{height:1px;margin:12px 0;background:#eef2f7}.file-label{overflow:hidden}.badge{display:inline-flex;padding:3px 8px;border-radius:4px;background:#fff3c9;color:#d98f00;font-size:12px}.question-content{color:#41546b;line-height:1.8;font-size:13px;word-break:break-word}.hk-center{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;overflow:hidden}.filebar{display:flex;align-items:center;gap:2px;padding:6px 10px 0;background:#fafbfc;border-bottom:1px solid #eceff3;overflow-x:auto}.filetab{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #eceff3;border-bottom:0;border-radius:6px 6px 0 0;background:#f1f3f6;color:#6d7f93;font-size:12px;cursor:pointer;white-space:nowrap}.filetab.active{background:#fff;color:#d98f00;font-weight:600}.filetab.add{border-style:dashed;color:#9aa8b8}.filetab-close{color:#a3b1c0;font-size:13px}.filetab-close:hover{color:#e2543f}.editor-head{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border-bottom:1px solid #eceff3;color:#7b8b9e;font-size:12px}.file-name{color:#41546b}.pyright-status{color:#26a06f}.runner-note{margin-left:auto;color:#9aa8b8}.draft-state{color:#a4b1c0}.share-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid #f3e2b8;background:#fffaf0;color:#8a6d1f;font-size:12px}.share-bar b{color:#b57d09}.share-bar-error{color:#c0392b}.share-bar-actions{margin-left:auto;display:inline-flex;align-items:center;gap:12px}.editor{flex:1;min-height:140px;overflow:auto;--cm-font-size: 15px}.cm-editor{height:100%;font-size:var(--cm-font-size);background:#fff;color:#59574c}.cm-scroller{overflow:auto;font-size:var(--cm-font-size);line-height:1.7}.cm-gutters{background:#fbfcfe;color:#a3b1c0;border-right:1px solid #eceff3}.cm-activeLine{background:#fffbea}.cm-activeLineGutter{background:#fff3c9;color:#b57f00}.editor-foot{display:flex;align-items:center;gap:12px;min-height:36px;padding:0 12px;border-top:1px solid #eceff3;color:#7b8b9e;font-size:12px}.foot-group{display:inline-flex;gap:6px}.zoom{margin-left:auto;display:inline-flex;align-items:center;gap:4px;color:#9aa8b8}.zoom button{width:22px;height:22px;border:1px solid #dce4ee;border-radius:4px;background:#fff;color:#6d7f93;cursor:pointer}.zoom b{min-width:40px;text-align:center;color:#6d7f93}.blocks-host{flex:1;min-height:0;position:relative}.blocks-host .injectionDiv{position:absolute;top:0;right:0;bottom:0;left:0}.console{position:relative;display:flex;flex-direction:column;height:var(--console-h, 250px);min-height:90px;flex-shrink:0;border-top:1px solid #4a483e;background:#59574c;color:#fff}.console.collapsed{height:auto;min-height:34px}.resizer{position:absolute;z-index:6}.resizer-x{top:0;bottom:0;width:7px;cursor:col-resize}.resizer-y{left:0;right:0;height:7px;cursor:row-resize}.hk-left>.resizer-x{right:-3px}.hk-right>.resizer-x{left:-3px}.console>.resizer-y{top:-3px}.resizer:hover,.resizer:active{background:#f27f0c73}body.resizing{cursor:col-resize}body.resizing iframe{pointer-events:none}body.resizing *{-webkit-user-select:none!important;user-select:none!important}.console-head{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 14px 0 6px;color:#ffffffd9;font-size:13px}.head-icon.fold{width:24px;font-size:12px}.console-head b{color:#fff}.head-time{color:#ffffff8c;font-size:12px}.head-actions{margin-left:auto;display:inline-flex;gap:6px}.head-icon{border:0;background:none;color:#ffffffb3;font-size:14px;cursor:pointer}.head-icon:hover{color:#fff}.console-body{flex:1;min-height:0;overflow:auto;padding:4px 14px 10px;font:14px/21px Monaco,Menlo,Ubuntu Mono,Consolas,Source Code Pro,monospace}.cline{white-space:pre-wrap;word-break:break-all;color:#fff}.cline.success{color:#95c901}.err-pos{color:#fff;cursor:pointer}.err-pos:hover{text-decoration:underline}.err-en{color:#ff6b68;margin-top:2px}.err-en i,.err-zh i{font-style:normal;margin-right:5px;font-size:12px}.err-zh{color:#bfbeb7;margin-left:5px}.err-tail{margin-top:16px;color:#ff6b68;display:flex;align-items:center;gap:8px}.ai-btn{border:0;border-radius:4px;padding:2px 8px;background:#8a7ef6;color:#fff;font-size:12px;cursor:pointer}.ai-btn:hover{background:#7a6df0}.inline-input{display:flex;align-items:center;gap:2px;padding:2px 0}.inline-prompt{color:#fff;white-space:pre;flex-shrink:0}.inline-field{flex:1;min-width:40px;border:0;border-bottom:1px solid rgba(255,255,255,.5);background:transparent;outline:none;color:#fff;caret-color:#fff;font:14px/21px Monaco,Menlo,Ubuntu Mono,Consolas,Source Code Pro,monospace}.inline-field::placeholder{color:#ffffff80}.inline-eof{flex-shrink:0;margin-left:6px;padding:1px 8px;border:1px solid rgba(255,255,255,.35);border-radius:5px;background:transparent;color:#fffc;font-size:12px;cursor:pointer}.inline-eof:hover{background:#ffffff1f;color:#fff}.hk-right{position:relative;display:flex;flex-direction:column;gap:8px;min-height:0;padding:12px;border-left:1px solid #eceff3;background:#fff;overflow:auto}.hk-right.collapsed{padding:0;overflow:hidden}.right-expand{flex:1;border:0;background:#fafbfc;color:#7b8b9e;font-size:16px;cursor:pointer}.right-expand:hover{background:#fff3c9;color:#d98f00}.stage-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;color:#41546b;font-size:13px}.stage-body{display:flex;flex-direction:column;gap:8px;min-height:0}.stage-view{flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;justify-content:flex-start}.stage-actions{display:inline-flex;align-items:center;gap:10px}.turtle-canvas{position:relative;flex:none;margin:auto;width:calc(200% * var(--stage-zoom, 1));aspect-ratio:1 / 1;overflow:hidden;border:1px solid #e3e9f0;border-radius:8px;background:#fff}.turtle-host{position:absolute;top:0;right:0;bottom:0;left:0}.turtle-canvas canvas{position:absolute!important;top:0;right:0;bottom:0;left:0;width:100%!important;height:100%!important;margin:0!important}.stage-axis-label{position:absolute;z-index:5;pointer-events:none;color:#93a2b3;font-size:12px;line-height:16px;padding:0 3px;border-radius:3px;background:#ffffffb8}.stage-axis-label.top{top:4px;left:50%;transform:translate(-50%)}.stage-axis-label.bottom{bottom:4px;left:50%;transform:translate(-50%)}.stage-axis-label.left{left:4px;top:50%;transform:translateY(-50%)}.stage-axis-label.right{right:4px;top:50%;transform:translateY(-50%)}.stage-hover{position:absolute;z-index:6;pointer-events:none;padding:3px 7px;border-radius:5px;white-space:nowrap;background:#3a3e46db;color:#fff;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}.stage-zoom{display:inline-flex;align-items:center;gap:2px;color:#7b8b9e}.stage-zoom b{min-width:34px;text-align:center;font-weight:400}.stage-actions .link.on{color:#d98f00}.turtle-canvas.grid-on{background-image:linear-gradient(to right,rgba(120,145,175,.26) 1px,transparent 1px),linear-gradient(to bottom,rgba(120,145,175,.26) 1px,transparent 1px);background-size:calc(100% / 14) calc(100% / 14)}.turtle-canvas.grid-on:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;pointer-events:none;background:linear-gradient(to bottom,transparent calc(50% - 1px),rgba(120,150,190,.5) calc(50% - 1px),rgba(120,150,190,.5) calc(50% + 1px),transparent calc(50% + 1px)) 0 0 / 100% 100% no-repeat,linear-gradient(to right,transparent calc(50% - 1px),rgba(120,150,190,.5) calc(50% - 1px),rgba(120,150,190,.5) calc(50% + 1px),transparent calc(50% + 1px)) 0 0 / 100% 100% no-repeat}.stage-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;background:#1f29378c;display:flex;align-items:center;justify-content:center}.stage-modal-body{width:min(92vw,1100px);max-height:88vh;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:12px;background:#fff;box-shadow:0 18px 60px #00000059}.stage-modal-head{display:flex;align-items:center;justify-content:space-between;color:#41546b;font-size:14px}.stage-big{display:block;margin:0 auto;width:auto;height:auto;max-width:100%;max-height:74vh;border:1px solid #e3e9f0;border-radius:8px;background:#fff}.share-dialog{width:min(92vw,460px);gap:12px}.share-dialog-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#41546b;font-size:13px}.share-dialog-row>span:first-child{width:62px;flex:none;color:#7b8b9e}.share-dialog-input{flex:1;min-width:180px;padding:6px 10px;border:1px solid #dfe6ee;border-radius:6px;font-size:13px;color:#1f2d3d}.share-dialog-input:focus{outline:none;border-color:#f5c95e}.share-dialog-radio{display:inline-flex;align-items:center;gap:5px;color:#41546b;font-size:13px;cursor:pointer}.share-dialog-radio.disabled{color:#b6c0cc;cursor:not-allowed}.share-dialog-textarea{width:100%;min-height:72px;padding:8px 10px;border:1px solid #dfe6ee;border-radius:6px;font-family:inherit;font-size:13px;color:#1f2d3d;resize:vertical;box-sizing:border-box}.share-dialog-textarea:focus{outline:none;border-color:#f5c95e}.share-dialog-note{margin:0;color:#8a97a8;font-size:12px;line-height:1.7}.share-dialog-actions{display:flex;justify-content:flex-end;gap:10px}.cm-lintRange-error{background:#ff6b681f!important;border-bottom:2px wavy #ef6d77}.cm-lintRange-warning{background:#e8b65a1f!important;border-bottom:2px wavy #e8b65a}.cm-lintRange-info{background:none!important;border-bottom:2px wavy #6fb3ef}.cm-lintRange-active{background:#ef6d7733!important}.cm-lint-marker-error,.cm-lint-marker-warning{width:1.1em;height:1.1em}.cm-punct-fix{display:flex;align-items:center;gap:8px;padding:6px 10px;font-size:13px}.cm-punct-fix-label{color:#41546b}.cm-punct-fix-btn{min-width:26px;height:24px;padding:0 8px;border:1px solid #e8b65a;border-radius:6px;background:#fff7e6;color:#c97c00;font-size:14px;font-weight:700;cursor:pointer}.cm-punct-fix-btn:hover{background:#ffe8b3}@media(max-width:1180px){.hk-body{grid-template-columns:240px 1fr 300px}}@media(max-width:960px){.hk-body{grid-template-columns:1fr}.hk-left{max-height:42vh;border-right:0;border-bottom:1px solid #eceff3}.hk-right{border-left:0;border-top:1px solid #eceff3}}.shell{height:100vh;display:flex;flex-direction:column;overflow:hidden;background:#f2f5f9}.shell>*{min-height:0}.shell>.home,.shell>.login-page{flex:1;overflow:auto}.app-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;border-bottom:1px solid #e3e9f0;background:#ffc32b}.brand,.app-brand{border:0;background:none;color:#4a3800;font-size:15px;font-weight:700;cursor:pointer}.bar-right{display:flex;align-items:center;gap:14px}.user{color:#6b5310;font-size:13px}.ghost{border:1px solid #f0b215;border-radius:5px;padding:6px 12px;background:#fff;color:#6d7f93;cursor:pointer}.toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%);padding:10px 18px;border-radius:6px;background:#238b67f2;color:#fff;font-size:13px;z-index:50}.login-page{flex:1;display:flex;align-items:center;justify-content:center;padding:32px 16px}.login-card{width:100%;max-width:380px;padding:34px 30px;border:1px solid #e3e9f0;border-radius:12px;background:#fff;box-shadow:0 8px 24px #1f2d3d0f}.login-card h1{margin:0 0 8px;font-size:22px;color:#1f2d3d}.login-card .sub{margin:0 0 24px;color:#7b8b9e;font-size:13px;line-height:1.6}.login-card label{display:block;margin-bottom:16px;color:#5b6c80;font-size:13px}.login-card input{width:100%;margin-top:7px;padding:10px 12px;border:1px solid #dce4ee;border-radius:5px;color:#33475b;background:#fbfcfe;outline:none}.login-card input:focus{border-color:#f0b215}.login-card .error{margin:0 0 14px;color:#d9453a;font-size:13px}.login-card .primary{width:100%;padding:11px;border:0;border-radius:5px;background:#f7a900;color:#fff;font-size:15px;cursor:pointer}.login-card .primary:disabled{opacity:.6;cursor:wait}.login-card .tip{margin:16px 0 0;color:#9aa8b8;font-size:12px;text-align:center}.home{flex:1;padding:40px 24px 56px;max-width:1080px;margin:0 auto;width:100%}.home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap}.home-head h1{margin:0 0 8px;font-size:24px;color:#1f2d3d}.home-head p{margin:0;color:#7b8b9e;font-size:13px}.who{color:#5b6c80;font-size:13px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.card{display:flex;flex-direction:column;gap:8px;padding:22px;border:1px solid #e3e9f0;border-radius:12px;background:#fff;color:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.card:hover{transform:translateY(-2px);border-color:#f5c95e;box-shadow:0 8px 20px #f7a90024}.card-icon{font-size:26px}.card-badge{align-self:flex-start;padding:3px 8px;border-radius:4px;background:#fff3c9;color:#d98f00;font-size:12px}.works{margin-top:36px}.works-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.works-head h2{margin:0;font-size:16px;color:#1f2d3d}.works-tip{color:#7b8b9e;font-size:13px}.works-warn{margin:0 0 12px;padding:8px 12px;border-radius:8px;background:#fff5f4;color:#c0392b;font-size:13px}.works-group{margin-bottom:18px}.works-group h3{margin:0 0 10px;font-size:13px;color:#7b8b9e}.works-group h3 small{color:#a8b5c4}.works-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.work-item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #e3e9f0;border-radius:10px;background:#fff;color:inherit;text-align:left;cursor:pointer}.work-item:hover{border-color:#f5c95e;box-shadow:0 6px 16px #f7a9001f}.work-item b{color:#1f2d3d;font-size:14px;word-break:break-all}.work-item small{color:#93a1b2;font-size:12px}.work-icon{font-size:16px}.works-empty{color:#71849d;font-size:13px}.share-list{display:flex;flex-direction:column;gap:10px}.share-item{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #e3e9f0;border-radius:10px;background:#fff}.share-item:hover{border-color:#f5c95e;box-shadow:0 6px 16px #f7a9001f}.share-meta{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.share-meta b{color:#1f2d3d;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-meta small{color:#93a1b2;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mine-tag{margin-left:6px;padding:1px 6px;border-radius:8px;background:#fff3d6;color:#b57d09;font-size:11px;font-style:normal}.onlylink-tag{margin-left:6px;padding:1px 6px;border-radius:8px;background:#eef3fb;color:#4a6b96;font-size:11px;font-style:normal}.class-tag{margin-left:6px;padding:1px 6px;border-radius:8px;background:#eaf7ef;color:#2f7d54;font-size:11px;font-style:normal}.revoked-tag{margin-left:6px;padding:1px 6px;border-radius:8px;background:#f0f2f5;color:#8494a7;font-size:11px;font-style:normal}.share-actions{display:inline-flex;align-items:center;gap:10px;flex:none}.share-filters{margin-left:auto;display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.share-search{width:190px;padding:5px 10px;border:1px solid #dfe6ee;border-radius:6px;font-size:13px;color:#1f2d3d}.share-search:focus{outline:none;border-color:#f5c95e}.share-select{padding:5px 8px;border:1px solid #dfe6ee;border-radius:6px;background:#fff;font-size:13px;color:#41546b}.link-active{color:#b57d09;font-weight:600}.link:disabled{color:#c3ccd6;cursor:not-allowed}.link.on{color:#b57d09;font-weight:600}.link.like{font-variant-numeric:tabular-nums}.share-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}.share-tab{padding:5px 12px;border:1px solid #e3e9f0;border-radius:999px;background:#fff;color:#5c6b7f;font-size:13px;cursor:pointer}.share-tab:hover{border-color:#f5c95e}.share-tab.active{border-color:#f5c95e;background:#fff8e8;color:#b57d09;font-weight:600}.share-tab em{margin-left:4px;color:#a8b5c4;font-size:11px;font-style:normal}.share-sort{margin-left:auto;display:inline-flex;align-items:center;gap:10px}.share-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px;color:#7b8b9e;font-size:13px}.card b{font-size:17px;color:#1f2d3d}.card small{color:#8394a7;font-size:12px;line-height:1.7}.scratch{flex:1;display:flex;flex-direction:column;min-height:0}.scratch-frame{flex:1;min-width:0;height:100%;min-height:560px;border:0;background:#fff}.scratch-empty{flex:1;min-width:0;padding:36px 28px;color:#41546b;line-height:1.8}.attachments{width:var(--scratch-side-w, 300px);flex-shrink:0;padding:22px;border-left:1px solid #e3e9f0;background:#fbfcfe;overflow:auto}.attachments h3{margin:0 0 14px;font-size:15px;color:#1f2d3d}.attachments ul{margin:0;padding:0;list-style:none}.attachments li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eef2f7;color:#41546b;font-size:13px;word-break:break-all}.attachments li span{flex:1}.attachments .tag{flex-shrink:0;padding:1px 6px;border-radius:4px;background:#eef2f7;color:#7b8b9e;font-size:12px}.attachments .tag.cloud{background:#fff3c9;color:#d98f00}.attachments .save-cloud{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px}.attachments .save-cloud small{color:#93a1b2}.attachments .cloud-error{margin:0 0 10px;color:#c0392b;font-size:12px;line-height:1.6}.panel-tip{margin:8px 0 0;color:#c0392b;font-size:12px;line-height:1.6}.panel-hint{margin:6px 0 0;color:#93a1b2;font-size:12px;line-height:1.6}.link{border:0;background:none;color:#e8930c;cursor:pointer;font-size:13px}.link.danger{color:#e2543f}.empty{color:#71849d;font-size:13px}.hidden-input{display:none}.mode-tag{display:inline-flex;align-items:center;padding:5px 14px;color:#5f4200;font-size:13px;font-weight:700;white-space:nowrap}.scratch-body{flex:1;display:flex;min-height:0;background:#fff}.scratch-body .hk-left{width:var(--rail-w, 320px);flex-shrink:0;border-right:1px solid #eceff3;background:#fff}.scratch-stage{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0}.scratch-frame{flex:1;min-width:0;height:100%;min-height:480px;border:0;background:#fff}.scratch-resizer{flex-shrink:0;width:7px;cursor:col-resize;background:#f1f3f6}.scratch-resizer:hover{background:#ffd98a}.scratch-empty{flex:1;min-width:0;overflow:auto;padding:36px 28px;color:#41546b;line-height:1.8}.scratch-empty h2{margin-top:0;font-size:18px;color:#1f2d3d}.scratch-empty code{padding:2px 6px;border-radius:4px;background:#fff3c9;color:#d98f00}.draft-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;background:#fff7e0;border-bottom:1px solid #f5e0a8;color:#8a6d1f;font-size:13px}.draft-bar span{flex:1;min-width:150px}.draft-bar .btn{padding:5px 12px;font-size:13px}.attachments h3{display:flex;align-items:center;justify-content:space-between;gap:8px}.tpl-card{margin-bottom:10px;padding:10px 12px;border:1px solid #e8edf4;border-radius:8px;background:#fff}.tpl-card b{display:block;color:#1f2d3d;font-size:13px}.tpl-card small{display:block;margin-top:2px;color:#93a1b2;font-size:11px}.tpl-steps{margin:8px 0 6px;padding-left:18px;color:#41546b;font-size:12px;line-height:1.8}.tpl-blocks{margin:0;padding:7px 9px;border-radius:6px;background:#f6f8fb;color:#6d7f93;font-size:11px;line-height:1.7;word-break:break-word}.tpl-actions{margin-top:8px}.tpl-actions .btn{padding:6px 10px;font-size:12px}.tpl-disabled{background:#f2f5f9;color:#9aa8b8;border:1px dashed #dce4ee}.outline-level{margin:12px 0 6px;padding-top:8px;border-top:1px solid #eef2f7;color:#c98a00;font-size:12px}.outline-level:first-of-type{margin-top:2px;padding-top:0;border-top:0}.outline-list{margin:0 0 4px;padding-left:18px;color:#41546b;font-size:12px;line-height:1.9}@media(max-width:900px){.scratch-body{flex-direction:column}.scratch-body .hk-left{width:auto;max-height:38vh;border-right:0;border-bottom:1px solid #eceff3}.scratch-frame{min-height:62vh}.attachments{width:auto;max-height:38vh;border-left:0;border-top:1px solid #eceff3}.scratch-resizer{display:none}}@media(max-width:900px){.hk-top{flex-wrap:wrap;min-height:0;gap:6px;padding:6px 8px}.top-left{gap:0}.icon-btn{width:30px;height:30px;font-size:15px}.mode-switch button{padding:5px 10px}.top-right{width:100%;margin-left:0;gap:6px;flex-wrap:wrap}.work-name{flex:1 1 96px;width:auto;min-width:0}.btn{padding:7px 10px}.message{top:8px;max-width:88vw}.hk-body,.hk-body.no-right,.hk-body.no-left{display:block;overflow:auto}.hk-left{max-height:38vh;border-right:0;border-bottom:1px solid #eceff3}.hk-left.collapsed{max-height:none}.editor{min-height:46vh}.hk-right{min-height:0;padding:10px;border-left:0;border-top:1px solid #eceff3}.hk-right.collapsed{min-height:46px}.right-expand{width:100%;min-height:44px}.console{height:min(240px,42vh)}.resizer,.editor-head .runner-note{display:none}.turtle-canvas{max-width:min(calc(200% * var(--stage-zoom, 1)),52vh)}}@media(max-width:560px){.app-bar{padding:8px 12px;gap:8px}.brand,.app-brand{font-size:14px}.bar-right{gap:8px}.user{font-size:12px}.runner-note{display:none}.work-name{flex:1 1 110px}.top-right .btn{flex:1 1 auto;padding:7px 9px}.hk-top .mode-switch{order:3}}
