:root{--bg:#f5f6fa;--card:#fff;--text:#1d2130;--muted:#6b7185;--border:#e3e5ee;--accent:#3b5bdb;--accent-soft:#e7ecff;--rb-font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--rb-board-bg:#fff;--rb-toolbar-bg:var(--card);--rb-toolbar-border:var(--border);--rb-toolbar-sep:var(--border);--rb-toolbar-radius:13px;--rb-history-radius:12px;--rb-toolbar-shadow:var(--panel-shadow);--rb-tool-color:var(--text);--rb-tool-radius:8px;--rb-tool-hover-bg:#f1f3f8;--rb-tool-active-bg:var(--accent-soft);--rb-tool-active-color:var(--accent);--rb-panel-bg:var(--card);--rb-panel-border:var(--border);--rb-panel-radius:12px;--rb-panel-shadow:var(--panel-shadow);--rb-chip-radius:11px;font-family:var(--rb-font);color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}a{color:var(--accent)}button,.btn{font:inherit;background:var(--accent);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:8px;padding:9px 14px;text-decoration:none;display:inline-block}button.secondary,.btn.secondary{background:var(--accent-soft);color:var(--accent)}.small{font-size:13px}button.small,.btn.small{padding:6px 10px}input:not([type=checkbox]){font:inherit;border:1px solid var(--border);border-radius:8px;width:100%;padding:9px 12px}.muted{color:var(--muted)}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}.home{max-width:860px;margin:0 auto;padding:32px 16px}.home header h1{margin:0 0 4px}.home header p{color:var(--muted);margin:0 0 24px}.create{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.create input{flex:260px;width:auto}select{font:inherit;border:1px solid var(--border);background:#fff;border-radius:8px;max-width:100%;padding:9px 10px}.templates{margin-bottom:20px}.templates summary{cursor:pointer;color:var(--muted)}.templates ul{flex-direction:column;gap:4px;margin:8px 0 0;padding:0;list-style:none;display:flex}.templates li{background:var(--card);border:1px solid var(--border);border-radius:8px;align-items:center;gap:10px;padding:4px 4px 4px 12px;display:flex}.templates li span:first-child{flex:1}.lessons{flex-direction:column;gap:10px;display:flex}.lesson-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.row-actions{flex-wrap:wrap;gap:8px;display:flex}.center-screen{place-items:center;min-height:100vh;padding:16px;display:grid}.join{flex-direction:column;gap:12px;width:min(380px,100%);display:flex}.join h2{margin:0}.logo{font-weight:700;text-decoration:none}.badge{color:var(--muted);background:#eef0f5;border-radius:99px;padding:3px 8px;font-size:12px}.badge.teacher{background:var(--accent-soft);color:var(--accent)}.spacer{flex:1}.follow{align-items:center;gap:6px;font-size:14px;display:flex}.btn.lock-on{background:#e03131}.btn.edit-on{background:#2f9e44}button:disabled{cursor:default;opacity:.6}button.icon{color:var(--muted);background:0 0;padding:4px 8px}.board{background:var(--rb-board-bg);touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.board canvas{touch-action:none;display:block}.board-toolbar{z-index:3;pointer-events:none;flex-wrap:wrap;justify-content:center;gap:6px;width:max-content;max-width:calc(100% - 20px);display:flex;position:absolute;top:10px;left:50%;transform:translate(-50%)}.board-toolbar>*{pointer-events:auto}.tool-group,.style-panel,.pages-bar,.board-zoom,.board-timer{background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 8px #14192d14}.tool-group{flex-wrap:wrap;gap:2px;padding:3px;display:flex;position:relative}.tool-wrap{display:inline-flex;position:relative}.tool-sep{background:var(--border);width:1px;margin:4px 3px}.board button{color:var(--rb-tool-color)}.tool-group button,.tool-file,.pages-bar button,.board-zoom button,.board-timer button{cursor:pointer;background:0 0;border-radius:7px;place-items:center;width:34px;height:34px;padding:0;font-size:16px;display:grid}.board button:hover:not(:disabled),.tool-file:hover{background:var(--rb-tool-hover-bg)}.board button.active{background:var(--rb-tool-active-bg);color:var(--rb-tool-active-color)}.board .swatch:after{content:"";background:var(--c);border-radius:50%;width:18px;height:18px;box-shadow:inset 0 0 0 1px #0000001f}.board .swatch.active{box-shadow:inset 0 0 0 2px var(--accent);background:0 0}.board .dot{background:currentColor;border-radius:50%;display:block}.popover{z-index:10;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 6px 20px #14192d26}.popover.up{top:auto;bottom:calc(100% + 6px)}.tool-wrap>.popover{left:auto;right:0}.pages-bar .tool-wrap>.popover{left:0;right:auto}.pick-grid{grid-template-columns:repeat(6,34px);gap:2px;display:grid}.pick-grid.wide{grid-template-columns:repeat(3,1fr);margin-bottom:4px}.pick-grid.wide button{width:auto}.menu{flex-direction:column;gap:1px;min-width:250px;max-height:60vh;display:flex;overflow-y:auto}.board .menu button{text-align:left;white-space:normal;width:auto;height:auto;padding:7px 10px;font-size:14px;display:block}.menu hr{border:none;border-top:1px solid var(--border);width:100%;margin:4px 0}.menu-title{color:var(--muted);padding:6px 10px 2px;font-size:12px}.menu-note{padding:6px 10px}.style-panel{z-index:2;flex-direction:column;gap:6px;width:196px;max-height:calc(100% - 120px);padding:8px;display:flex;position:absolute;top:60px;left:10px;overflow-y:auto}.style-label{color:var(--muted);margin-bottom:2px;font-size:11px}.style-options{flex-wrap:wrap;gap:2px;display:flex}.style-options button{background:0 0;border-radius:6px;place-items:center;min-width:26px;height:26px;padding:0 4px;font-size:13px;display:grid}.board-status-wrap{pointer-events:none;z-index:1;max-width:40%;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.board-status{color:#c92a2a;text-align:center;background:#fff0f0;border:1px solid #ffd8d8;border-radius:99px;padding:5px 10px;font-size:13px}.board-status.open{color:#2b8a3e;background:#ebfbee;border-color:#c3f0cb}.board-status.teacher{background:var(--card);color:var(--muted);border-color:var(--border)}.pages-bar{z-index:2;flex-wrap:wrap;align-items:center;gap:2px;max-width:40%;padding:3px;display:flex;position:absolute;bottom:10px;left:10px}.pages-bar>button{align-items:center;gap:2px;width:auto;min-width:30px;height:30px;padding:0 8px;font-size:13px;display:inline-flex}.pages-bar select{max-width:220px;padding:4px 6px;font-size:13px}.board-zoom{z-index:2;gap:2px;padding:3px;display:flex;position:absolute;bottom:10px;right:10px}.board-zoom button{width:auto;height:30px;padding:0 9px;font-size:14px}.board-timer{z-index:3;font-variant-numeric:tabular-nums;align-items:center;gap:4px;padding:3px 3px 3px 10px;font-weight:600;display:flex;position:absolute;top:10px;right:10px}.board-timer:not(:has(span)){padding-left:3px}.board-timer.soon{color:#e8590c}.board-timer.done{color:#c92a2a;background:#fff0f0}.board-text{resize:none;white-space:pre;field-sizing:content;z-index:4;background:0 0;border:none;outline:1.5px dashed #3b5bdb;min-width:40px;margin:0;padding:0;line-height:1.25;position:absolute;overflow:hidden}.board-text.sticky,.board-text.label,.board-text.cell{field-sizing:fixed}.board-offline,.board-toast{z-index:5;border-radius:8px;padding:8px 14px;font-size:14px;position:absolute;left:50%;transform:translate(-50%)}.board-offline{color:#fff;background:#1d2130cc;top:50%}.board-toast{color:#fff;text-align:center;background:#1d2130;max-width:calc(100% - 20px);bottom:56px}@media (width<=860px){.board-toolbar{top:6px}.tool-group button,.tool-file{width:30px;height:30px;font-size:14px}.style-panel{flex-flow:wrap;width:auto;max-width:calc(100% - 20px);max-height:40%;top:auto;bottom:52px}.board-status-wrap{display:none}.pages-bar{max-width:55%}}.product-mark{color:#fff;background:#3b5bdb;border-radius:14px;place-items:center;width:48px;height:48px;font-size:28px;font-weight:800;display:inline-grid}.home footer{margin-top:32px}.home h2{margin-top:30px;font-size:19px}.error{color:#c92a2a}.board-app{background:#fff;flex-direction:column;height:100dvh;display:flex}.app-header{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;display:flex}.board-title{text-overflow:ellipsis;white-space:nowrap;max-width:min(400px,60vw);overflow:hidden}.board-stage{flex:1;min-height:0;position:relative}.dialog-backdrop{z-index:100;background:#1d213066;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.share-dialog{flex-direction:column;gap:10px;width:min(620px,100%);max-height:90dvh;display:flex;overflow:auto}.share-dialog h2,.share-dialog p{margin:0}.share-dialog label{gap:5px;font-size:14px;display:grid}.share-dialog textarea{border:1px solid var(--border);resize:vertical;border-radius:8px;width:100%;padding:10px}.embedded .app-header{padding:7px 10px}.board-extensions{z-index:3;max-width:calc(100% - 20px);position:absolute;top:58px;right:10px}.extension-tabs{border:1px solid var(--border);background:#fff;border-radius:9px;flex-wrap:wrap;justify-content:flex-end;gap:3px;padding:4px;display:flex}.extension-tabs button{background:0 0;padding:6px 8px;font-size:12px}.extension-panel{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;gap:8px;width:280px;max-width:100%;max-height:calc(100dvh - 220px);margin-top:5px;margin-left:auto;padding:12px;display:flex;overflow:auto;box-shadow:0 5px 20px #1d213016}.extension-panel h3,.extension-panel h4,.extension-panel p{margin:0}.extension-panel h3{font-size:15px}.extension-panel h4{margin-top:6px;font-size:13px}.extension-panel button{text-align:left;background:#edf0fa;padding:6px 9px;font-size:12px}.inspector-field{justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.inspector-field input:not([type=checkbox]),.inspector-field select{width:110px;max-width:60%;padding:5px;font-size:12px}.inspector-field input[type=color]{width:45px;height:30px;padding:2px}.inspector-buttons{flex-wrap:wrap;gap:4px;display:flex}.inspector-upload{background:#edf0fa;border-radius:6px;gap:5px;padding:7px;font-size:12px;display:grid}.inspector-upload input{max-width:100%;font-size:12px}.layer-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.layer-list li{border-radius:5px;gap:2px;padding:3px;display:flex}.layer-list li.chosen{background:#dfe6ff}.layer-list button{padding:3px;font-size:11px}.layer-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:40px;overflow:hidden}.minimap{cursor:crosshair;touch-action:none;background:#f8f9fd;border:1px solid #dce1ef;width:100%;height:130px}.bookmark{gap:4px;display:flex}.bookmark button:first-child{flex:1}.option-check{align-items:center;gap:6px;font-size:12px;display:flex}.board-context{z-index:9;border:1px solid var(--border);background:#fff;border-radius:9px;flex-direction:column;width:220px;padding:5px;display:flex;position:absolute;box-shadow:0 6px 20px #1d213030}.board-context button{text-align:left;background:0 0;padding:7px 10px;font-size:13px}.rich-editor{z-index:6;min-width:180px;max-width:calc(100% - 10px);position:absolute}.rich-tools{background:#fff;border:1px solid #ccd5ec;border-radius:7px 7px 0 0;flex-wrap:wrap;gap:2px;padding:3px;display:flex}.rich-tools button{background:#edf0fa;min-width:26px;padding:4px 6px;font-size:13px}.rich-tools input[type=color]{border:0;width:26px;height:26px;padding:0}.rich-content{white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;background:#fffe;outline:1.5px dashed #4465e9;min-height:1.5em;padding:5px;line-height:1.25}.rich-content ul,.rich-content ol{margin:0;padding-left:1.4em}.rich-tools{width:max-content;max-width:360px;position:absolute;bottom:100%;left:0}.layer-list input{min-width:40px;max-width:110px;padding:3px;font-size:12px}@media (width<=700px){.board-extensions{top:100px;right:6px}.extension-panel{width:250px;max-height:calc(100dvh - 280px)}.extension-tabs{max-width:270px}.extension-tabs button{padding:5px;font-size:11px}.rich-tools{max-width:330px}}@media (width<=600px){.app-header{gap:7px}.app-header .spacer{display:none}.app-header button{flex:auto}.board-title{max-width:65vw}}.layer-list li[draggable=true],.layer-list li[draggable=true] .layer-name{cursor:grab}.layer-list li{position:relative}.layer-list li.layer-dragging{opacity:.4;cursor:grabbing}.layer-list li.layer-drop-before:before,.layer-list li.layer-drop-after:after{content:"";pointer-events:none;background:#6952d5;border-radius:2px;height:3px;position:absolute;left:0;right:0}.layer-list li.layer-drop-before:before{top:-3px}.layer-list li.layer-drop-after:after{bottom:-3px}:root{--bg:#f7f7fa;--text:#252438;--muted:#767386;--border:#e6e4ee;--accent:#6952d5;--accent-soft:#eee9ff;--panel-shadow:0 3px 18px #27223f0c,0 1px 3px #27223f08}button,.btn,input,select{transition:background .14s,border-color .14s,box-shadow .14s}button:focus-visible,a:focus-visible,label:focus-within{outline-offset:3px;outline:3px solid #b4a4f3}button.primary{background:var(--accent);color:#fff!important}.eyebrow{letter-spacing:1.7px;color:var(--muted);font-size:10px;font-weight:700}.product-mark{letter-spacing:-3px;background:#6952d5;border-radius:11px;width:38px;height:38px;padding-right:5px;font-size:29px;line-height:1;position:relative}.product-mark span{color:#e4d4ff;font-size:27px;position:absolute;bottom:5px;right:7px}.brand-tile{background:var(--accent);color:#fff;border-radius:9px;place-items:center;width:29px;height:29px;margin-right:7px;font-size:24px;display:inline-grid}.logo{color:var(--text);letter-spacing:-.4px;align-items:center;display:inline-flex}.board-app{background:#f7f7fa}.app-header{z-index:5;background:#fff;gap:14px;min-height:62px;padding:10px 19px;box-shadow:0 1px #e6e4ee}.app-header .logo{font-size:18px}.app-header .board-title{border-left:1px solid var(--border);padding-left:15px;font-size:14px;font-weight:500}.app-header button{min-height:34px;font-size:12px}.badge.role-badge{letter-spacing:.4px;color:#6a5a99;background:#f0edf9;font-size:10px}.board{background:#faf9fc}.board-toolbar.studio-toolbar{max-width:unset;flex-direction:column;align-items:flex-start;gap:10px;width:54px;display:flex;top:20px;left:15px;transform:none}.studio-toolbar .creation-tools{box-shadow:var(--panel-shadow);border-radius:13px;flex-flow:column;gap:2px;padding:6px}.creation-tools>button,.creation-tools>.tool-wrap>button{border-radius:8px;width:40px;height:38px}.creation-tools .tool-sep{width:28px;height:1px;margin:4px 6px}.tool-corner{border-bottom:4px solid #aaa4bd;border-left:4px solid #0000;width:0;height:0;position:absolute;bottom:6px;right:5px}.studio-toolbar .tool-wrap>.popover{top:0;left:calc(100% + 12px);right:auto}.studio-toolbar .popover{border-radius:12px;box-shadow:0 8px 30px #3025401c}.studio-picker{width:248px}.shape-picker{grid-template-columns:repeat(4,1fr);gap:4px;padding:5px;display:grid}.shape-picker button{width:48px;height:44px}.studio-picker .menu-title{color:var(--muted);padding:8px;font-size:11px;font-weight:600}.drawing-picker>button{align-items:center;gap:10px;width:100%;height:37px;padding:0 9px;font-size:12px;display:flex}.studio-picker p{color:var(--muted);margin:8px;font-size:11px;line-height:1.5}.studio-upload{cursor:pointer;border-radius:7px;align-items:center;gap:10px;padding:10px;font-size:13px;display:flex}.studio-upload:hover{background:var(--accent-soft)}.history-tools{width:54px;box-shadow:var(--panel-shadow);border-radius:12px;flex-wrap:wrap;justify-content:center}.history-tools>button{width:22px;height:28px}.history-tools>.tool-wrap{justify-content:center;width:100%}.history-tools>.tool-wrap>button{width:42px;height:26px}.studio-toolbar .history-tools .menu{min-width:270px;top:auto;bottom:0}.style-panel{box-shadow:var(--panel-shadow);border-radius:12px;width:205px;max-height:calc(100% - 86px);top:20px;left:82px}.style-label{letter-spacing:.4px;text-transform:uppercase;margin-bottom:5px;font-size:10px;font-weight:600}.style-row+.style-row{border-top:1px solid #f0eef5;padding-top:7px}.board-extensions{top:20px;right:72px}.extension-tabs{box-shadow:var(--panel-shadow);border-radius:11px;padding:5px}.extension-tabs button{color:#716b82;padding:6px 9px;font-size:11px}.extension-tabs button.active{color:var(--accent)}.extension-panel{box-shadow:var(--panel-shadow);border-radius:12px;max-height:calc(100dvh - 225px);padding:15px}.pages-bar,.board-zoom,.board-timer{box-shadow:var(--panel-shadow);border-radius:11px}.pages-bar{max-width:43%;padding:5px;bottom:16px;left:15px}.board-zoom{padding:5px;bottom:16px;right:16px}.board-timer{top:20px;right:16px}.board-status-wrap{bottom:20px}.board-status{font-size:11px}.board-toast{font-size:13px}.home{max-width:1110px;padding:28px 42px 50px}.home-brand{align-items:center;gap:10px;display:flex}.home-brand>strong{letter-spacing:-.8px;font-size:23px}.home-version{color:var(--muted);margin-left:auto;font-size:11px}.home-hero{max-width:700px;padding:63px 0 26px}.home-hero h1{letter-spacing:-1.7px;margin:15px 0 19px;font-size:45px;font-weight:650;line-height:1.13}.home-hero p{max-width:590px;color:var(--muted);font-size:15px;line-height:1.7}.home .create{max-width:725px;box-shadow:var(--panel-shadow);border-radius:12px;padding:7px}.home .create input{background:0 0;border:0;min-height:42px;font-size:13px}.home .create button{border-radius:9px;font-size:13px}.home-section-heading{justify-content:space-between;align-items:center;gap:14px;margin:41px 0 18px;display:flex}.home .home-section-heading h2{letter-spacing:-.4px;margin:7px 0 0;font-size:19px;font-weight:600}.home-section-heading>button{color:var(--text);border:1px solid var(--border);background:#fff;align-items:center;gap:12px;font-size:12px;display:flex}.home-template-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;display:grid}.home-template-card{color:var(--text);border:1px solid var(--border);text-align:left;white-space:normal;background:#fff;border-radius:12px;padding:0;transition:transform .15s,box-shadow .15s;overflow:hidden;box-shadow:0 2px 4px #34274203}.home-template-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #34274213}.home-template-card svg{aspect-ratio:1.5;border-bottom:1px solid var(--border);background:#faf9fd;width:100%;height:auto;padding:10px;display:block}.home-template-card strong,.home-template-card span{margin:13px 14px;display:block}.home-template-card strong{margin-bottom:3px;font-size:13px}.home-template-card span{color:var(--muted);margin-top:5px;font-size:11px}.board-count{border:1px solid var(--border);color:var(--muted);background:#fff;border-radius:20px;padding:5px 10px;font-size:11px}.lesson-row{padding:20px}.lesson-row>strong{font-size:14px}.lesson-row .btn,.lesson-row button{font-size:11px}.home footer{border-top:1px solid var(--border);margin-top:40px;padding-top:22px;font-size:11px}.template-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:110;-webkit-user-select:text;user-select:text;touch-action:auto;background:#29213955;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.template-dialog{width:min(1110px,100%);height:min(790px,92dvh);color:var(--text);background:#fff;border:1px solid #e7e2f0;border-radius:19px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 30px 100px #211b3945}.template-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:20px;padding:26px 30px 22px;display:flex}.template-header h2{letter-spacing:-.6px;margin:7px 0 8px;font-size:24px;font-weight:600}.template-header p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.icon-button{color:#756a8d;background:#f5f3f9;border-radius:10px;flex-shrink:0;place-items:center;width:34px;height:34px;padding:0;display:grid}.template-body{flex:1;min-height:0;display:flex}.template-categories{border-right:1px solid var(--border);background:#fcfbfe;flex-direction:column;flex-shrink:0;gap:5px;width:180px;padding:22px 14px;display:flex}.template-categories button{text-align:left;white-space:normal;color:#6d667f;background:0 0;border-radius:8px;padding:10px 13px;font-size:12px}.template-categories button.chosen{color:#694ac7;background:#eee8ff;font-weight:650}.template-categories p{color:#968ca7;margin:24px 13px;font-size:10px;line-height:1.7}.template-content{flex:1;min-width:0;padding:24px 26px;overflow-y:auto}.template-search{border:1px solid var(--border);color:#9a90ac;border-radius:9px;align-items:center;gap:9px;margin-bottom:22px;padding:0 12px;display:flex}.template-search input{background:0 0;border:0;outline:none;min-width:0;padding:12px 0;font-size:12px}.template-search span{color:var(--muted);flex-shrink:0;font-size:10px}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.template-card{border:1px solid var(--border);white-space:normal;text-align:left;color:var(--text);border-radius:11px;flex-direction:column;align-items:flex-start;padding:0 0 15px;transition:transform .15s,box-shadow .15s;display:flex;overflow:hidden;box-shadow:0 2px 3px #34274204;background:#fff!important}.template-card:hover{border-color:#c9bced;transform:translateY(-2px);box-shadow:0 5px 18px #5c438b16}.template-preview{aspect-ratio:1.65;width:100%;height:auto;display:block}.template-card>.template-preview{background:#fcfbfe;border-bottom:1px solid #f0edf5;padding:8px}.template-card strong{margin:8px 13px 6px;font-size:12px}.template-card small{color:var(--muted);margin:0 13px;font-size:10px;line-height:1.55}.template-tag{background:color-mix(in srgb,var(--tag-color),white 70%);color:#62516d;border-radius:4px;margin:12px 13px 0;padding:3px 6px;font-size:9px}.template-content h3{letter-spacing:-.4px;margin:14px 0 8px;font-size:21px;font-weight:600}.template-description{color:var(--muted);margin:0 0 20px;font-size:12px;line-height:1.6}.back-link{padding:0;font-size:12px;color:var(--accent)!important;background:0 0!important}.template-large-preview{border:1px solid var(--border);background:#fbfbfd;border-radius:12px;overflow:hidden}.template-large-preview .template-preview{max-height:360px}.template-insert-options{flex-wrap:wrap;align-items:center;gap:15px;margin-top:22px;display:flex}.template-insert-options>.primary{margin-left:auto;font-size:12px}.template-insert-options .option-check{font-size:11px}.option-check input{accent-color:var(--accent)}.template-footnote{color:var(--muted);font-size:10px;line-height:1.5}.template-error{color:#b13749;background:#fff0f0;border-radius:8px;padding:11px;font-size:12px}.template-empty{text-align:center;color:#aaa0b9;place-items:center;max-width:400px;margin:60px auto;display:grid}.template-empty h3{color:var(--text);font-size:17px}.template-empty p{color:var(--muted);font-size:12px;line-height:1.7}.saved-template-symbol{color:#b0a1d7;background:#f3eefb;place-items:center;width:100%;height:115px;display:grid}.save-template-form{max-width:500px;margin:15px auto}.save-template-form>label:not(.option-check){gap:8px;margin:22px 0;font-size:12px;display:grid}.save-template-form p{color:var(--muted);margin:20px 0;font-size:12px;line-height:1.8}.save-template-form button{font-size:13px}.template-dialog button:disabled{cursor:wait}.template-dialog .option-check input:disabled{cursor:default}@media (width<=1000px){.home{padding:25px}.home-hero h1{font-size:38px}.home-template-grid,.app-header{gap:10px}.app-header .board-title{max-width:25vw;padding-left:9px}.app-header button{padding:8px;font-size:11px}.template-header{padding:22px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-content{padding:20px}.template-categories{width:156px}.template-header h2{font-size:21px}}@media (width<=760px){.app-header{gap:8px;padding:9px 12px}.app-header .spacer{display:block}.app-header .board-title{max-width:42vw}.app-header .logo{font-size:15px}.app-header .badge{display:none}.app-header button{flex:0 auto}.board-toolbar.studio-toolbar{flex-direction:row;align-items:flex-start;gap:7px;width:auto;max-width:calc(100% - 20px);top:10px;left:10px;right:10px}.studio-toolbar .creation-tools{flex-flow:wrap;gap:1px;max-width:100%;padding:4px}.creation-tools>button,.creation-tools>.tool-wrap>button{width:34px;height:34px}.creation-tools .tool-sep{width:1px;height:23px;margin:5px 3px}.history-tools{width:47px;min-width:47px;padding:3px}.history-tools>button{width:18px;height:26px}.history-tools>.tool-wrap>button{height:22px}.studio-toolbar .tool-wrap>.popover{top:calc(100% + 10px);left:0;right:auto}.studio-toolbar .history-tools .menu{inset:calc(100% + 10px) 0 auto auto}.studio-toolbar .creation-tools>.tool-wrap:nth-last-child(-n+3)>.popover{left:auto;right:0}.style-panel{width:185px;max-height:calc(100% - 175px);top:105px;left:10px}.board-extensions{max-width:calc(100% - 30px);top:104px;right:10px}.extension-tabs{max-width:270px}.extension-panel{max-height:calc(100dvh - 330px)}.board-timer{top:64px;right:12px}.pages-bar{max-width:50%;max-height:80px;bottom:12px;left:10px;overflow:visible}.board-zoom{bottom:12px;right:10px}.board-status-wrap{max-width:70%;bottom:61px}.home{padding:22px 20px}.home-version{display:none}.home-hero{padding-top:40px}.home-hero h1{font-size:35px}.home-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-section-heading{margin-top:33px}.home .home-section-heading h2{font-size:17px}.template-backdrop{padding:10px}.template-dialog{border-radius:14px;height:95dvh;max-height:95dvh}.template-header{gap:10px;padding:19px}.template-header h2{font-size:19px}.template-header p{font-size:11px}.template-body{flex-direction:column}.template-categories{border-right:0;border-bottom:1px solid var(--border);background:#fff;flex-direction:row;gap:3px;width:100%;padding:9px;overflow-x:auto}.template-categories button{white-space:nowrap;padding:8px 12px;font-size:11px}.template-categories p{display:none}.template-content{padding:17px}.template-grid{gap:12px}.template-search span{display:none}.template-insert-options{gap:12px}.template-insert-options>.primary{width:100%;margin:0}.template-large-preview .template-preview{max-height:280px}.home-section-heading>button{padding:8px;font-size:11px}.home-hero p{font-size:13px}.home .create button{flex:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}.recognition-toggle{border-top:1px solid var(--border);cursor:pointer;align-items:center;gap:8px;margin-top:5px;padding:12px 9px 5px;font-size:12px;display:flex}.recognition-toggle input{accent-color:var(--accent)}.board canvas.board-overlay{pointer-events:none;position:absolute;inset:0}.tool-group{background:var(--rb-toolbar-bg);border-color:var(--rb-toolbar-border)}.tool-sep{background:var(--rb-toolbar-sep)}.studio-toolbar .creation-tools{border-radius:var(--rb-toolbar-radius);box-shadow:var(--rb-toolbar-shadow)}.history-tools{border-radius:var(--rb-history-radius);box-shadow:var(--rb-toolbar-shadow)}.creation-tools>button,.creation-tools>.tool-wrap>button{border-radius:var(--rb-tool-radius)}.style-panel,.pages-bar,.board-zoom,.board-timer,.popover{background:var(--rb-panel-bg);border-color:var(--rb-panel-border)}.style-panel,.studio-toolbar .popover{border-radius:var(--rb-panel-radius)}.pages-bar,.board-zoom,.board-timer{border-radius:var(--rb-chip-radius)}.style-panel,.pages-bar,.board-zoom,.board-timer{box-shadow:var(--rb-panel-shadow)}.header-actions{align-items:center;gap:8px;display:flex}.mobile-lesson-toggle,.mobile-panels-toggle,.mobile-panel-close,.studio-toolbar .mobile-style-toggle{display:none}.page-tabs{overscroll-behavior:contain;scrollbar-width:thin;gap:2px;min-width:0;display:flex;overflow:auto}.page-tabs>button{flex:none;min-width:36px}.board-app{height:min(100dvh,var(--visual-height,100dvh))}.board canvas{touch-action:none}@media (pointer:coarse){.board-app button,.board-app .studio-upload,.board-app .follow{min-height:44px}.board-app input:not([type=checkbox]):not([type=color]),.board-app select,.rich-content{font-size:16px}.board-app button{-webkit-tap-highlight-color:transparent}.board-app .swatch{min-width:44px}}@media (width>=761px) and (width<=1100px){.board-toolbar.studio-toolbar{top:12px;left:10px}.creation-tools>button,.creation-tools>.tool-wrap>button{width:44px;height:44px}.studio-toolbar .creation-tools{padding:4px}.board-extensions{top:12px;right:64px}.style-panel{max-height:calc(100% - 90px);top:12px;left:72px}.extension-panel{max-height:calc(100dvh - 220px)}.app-header .board-title{max-width:25vw}.studio-toolbar .history-tools{flex-wrap:nowrap;width:auto}.studio-toolbar .history-tools>button,.studio-toolbar .history-tools>.tool-wrap>button{width:44px;min-width:44px;height:44px}.history-tools>.tool-wrap{width:auto}}@media (width<=760px),(width<=1100px) and (height<=500px){.board-app .app-header{min-height:56px;padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));flex-wrap:nowrap;gap:8px;position:relative}.app-header .logo>span:last-child{display:none}.app-header .brand-tile{margin:0}.app-header .board-title{border:0;flex:1;min-width:0;max-width:none;padding-left:0;font-size:13px}.app-header .spacer{display:none}.mobile-lesson-toggle{min-height:44px;display:block;flex:none!important}.header-actions{display:none}.header-actions.expanded{border:1px solid var(--border);box-shadow:var(--panel-shadow);z-index:20;background:#fff;border-radius:12px;flex-direction:column;align-items:stretch;padding:10px;display:flex;position:absolute;top:100%;left:8px;right:8px}.header-actions button{min-height:44px}.board-toolbar.studio-toolbar{top:auto;bottom:calc(8px + env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:auto;max-width:none;display:block}.studio-toolbar .creation-tools{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;width:100%;padding:5px;display:grid}.student-toolbar .creation-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.creation-tools>button,.creation-tools>.tool-wrap>button{width:100%;min-width:0;height:44px;min-height:44px}.creation-tools>.tool-wrap{min-width:0;display:block}.creation-tools .tool-sep{display:none}.studio-toolbar .history-tools{flex-wrap:nowrap;gap:2px;width:auto;min-width:0;padding:3px;display:flex;position:absolute;bottom:calc(100% + 8px);left:0}.history-tools>button,.history-tools>.tool-wrap>button{width:40px;height:44px;min-height:44px}.history-tools>.tool-wrap{width:auto}.studio-toolbar .mobile-style-toggle{justify-content:center;align-items:center;font-size:22px;display:inline-flex}.studio-toolbar .tool-wrap>.popover,.studio-toolbar .creation-tools>.tool-wrap:nth-last-child(-n+3)>.popover,.studio-toolbar .history-tools .menu{top:auto;bottom:calc(170px + env(safe-area-inset-bottom));width:auto;min-width:0;max-height:calc(100dvh - 260px);position:fixed;left:8px;right:8px;overflow:auto}.drawing-picker>button,.shape-picker button,.studio-upload{min-height:44px}.board-zoom{bottom:calc(116px + env(safe-area-inset-bottom));padding:3px;right:8px}.board-zoom button{min-width:34px;height:44px;padding:0 5px}.board-status-wrap{display:none}.pages-bar{flex-wrap:nowrap;max-width:calc(100% - 108px);max-height:none;padding:3px;top:8px;bottom:auto;left:8px;overflow:visible}.pages-bar>button,.page-tabs>button,.pages-bar>.tool-wrap>button{min-width:36px;min-height:44px}.pages-bar select{max-width:100px;min-height:44px}.pages-bar .menu.up{min-width:0;max-height:calc(100dvh - 280px);position:fixed;inset:118px 8px auto;overflow:auto}.board-extensions{max-width:calc(100% - 16px);top:8px;right:8px}.mobile-panels-toggle{border:1px solid var(--border);background:#fff;border-radius:10px;min-height:44px;margin-left:auto;display:block}.board-extensions .extension-tabs{display:none}.board-extensions.panels-open{max-width:none;left:8px}.panels-open .extension-tabs{flex-wrap:nowrap;max-width:none;margin-top:5px;display:flex;overflow:auto}.extension-tabs button{white-space:nowrap;flex:1;min-height:44px}.extension-panel{overscroll-behavior:contain;width:100%;max-height:calc(100dvh - 355px);padding:10px}.mobile-panel-close{align-self:flex-end;display:block}.board .style-panel{width:auto;top:auto;left:8px;right:8px;bottom:calc(170px + env(safe-area-inset-bottom));flex-flow:wrap;max-height:calc(100% - 235px);padding:10px;display:none;position:absolute;overflow:auto}.board.mobile-styles-open .style-panel{display:flex}.style-panel button{min-width:36px;min-height:44px}.style-row{min-width:0;max-width:100%}.style-options{flex-wrap:wrap}.board-timer{max-width:calc(100% - 16px);top:65px;right:8px}.rich-editor{max-width:calc(100% - 16px)}.rich-tools{max-width:100%}.rich-tools button{min-width:36px;min-height:44px}.board-toast{bottom:calc(170px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}.share-dialog{max-height:calc(var(--visual-height,100dvh) - 24px)}.share-dialog input,.share-dialog textarea{min-width:0;max-width:100%;font-size:16px}}@media (width<=1100px) and (height<=500px) and (width>=540px){.studio-toolbar .creation-tools,.student-toolbar .creation-tools{grid-template-columns:repeat(12,minmax(0,1fr))}.student-toolbar .creation-tools{grid-template-columns:repeat(8,minmax(0,1fr))}.board-zoom{bottom:calc(68px + env(safe-area-inset-bottom))}.board .style-panel,.studio-toolbar .tool-wrap>.popover,.studio-toolbar .history-tools .menu{bottom:calc(122px + env(safe-area-inset-bottom));max-height:calc(100% - 140px)}}@media (width<=380px){.board-zoom>button:first-child,.board-zoom>button:nth-child(3){display:none}}@media (pointer:coarse){.board-app button{min-width:44px}.layer-list li{flex-wrap:wrap}.layer-list .layer-name{text-align:left;flex-basis:100%}}.app-header .logo{flex:none}.app-header .brand-tile{flex:none;width:32px;height:32px;padding:0;line-height:1}.app-header .brand-tile svg{width:24px;height:24px;display:block}.app-header .follow-toggle{color:#737e8c;min-width:44px;min-height:44px;box-shadow:none;background:#f0f2f5;border:1px solid #d8dce2;border-radius:11px;flex:none;justify-content:center;align-items:center;gap:7px;padding:9px 12px;display:inline-flex}.app-header .follow-toggle.is-active{color:#166b3a;background:#dff8e8;border-color:#66c78e;box-shadow:0 0 0 2px #68d39126,0 2px 8px #46b9751c}.app-header .follow-toggle:focus-visible{outline-offset:3px;outline:2px solid #166b3a}.app-header .follow-toggle:disabled{opacity:1;cursor:default}@media (width<=760px),(width<=1100px) and (height<=500px){.app-header .follow-toggle{width:44px;padding:0}.follow-toggle .follow-label{display:none}}
