:root{--bg:#f1f4f9;--surface:#fff;--border:#e8ecf3;--border-strong:#b4bccd;--btn-bg:#f1f0f4;--btn-bg-hover:#e7e5ed;--text:#2c3040;--text-muted:#7a8494;--accent:#7a7096;--accent-hover:#685f84;--danger:#dc2626;--radius:12px;--shadow:0 1px 3px #1018280f, 0 6px 18px #10182814;--side-nav:220px;--side-pages:240px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font:15px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;overflow:hidden}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--border-strong);background:var(--btn-bg);border-radius:8px;padding:.45rem .9rem}@media (hover:hover){button:hover:not(:disabled){background:var(--btn-bg-hover)}}button:disabled{opacity:.4;cursor:default}input[type=text],input[type=email],input[type=password],input[type=search]{border:1px solid var(--border-strong);background:#fff;border-radius:8px;width:100%;padding:.55rem .7rem}input:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.link{color:var(--accent);background:0 0;border:none;padding:0;text-decoration:underline}.link:hover:not(:disabled){background:0 0}.muted{color:var(--text-muted)}.small{font-size:.82rem}.pad{padding:.75rem 1rem}.ellipsis{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.loading{height:100%;color:var(--text-muted);place-items:center;display:grid}.login{background:linear-gradient(160deg, #ecebf1, var(--bg) 60%);place-items:center;height:100%;padding:1rem;display:grid;overflow:auto}.login-card{background:var(--surface);border-radius:var(--radius);width:100%;max-width:380px;box-shadow:var(--shadow);flex-direction:column;gap:.9rem;padding:1.75rem;display:flex}.login-card form{flex-direction:column;gap:.9rem;display:flex}.login-card label{flex-direction:column;gap:.3rem;font-weight:500;display:flex}.login-card h1{margin:0;font-size:1.5rem}.login-brand{align-items:center;gap:.75rem;display:flex}.login-links{flex-wrap:wrap;gap:1rem;font-size:.9rem;display:flex}.msg-error{color:var(--danger);margin:0}.msg-info{color:#166534;margin:0}.library{background:var(--bg);flex-direction:column;height:100%;display:flex}.lib-top{padding:calc(.6rem + env(safe-area-inset-top,0px)) calc(1.25rem + env(safe-area-inset-right,0px)) .6rem calc(1.25rem + env(safe-area-inset-left,0px));background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.lib-brand{align-items:center;gap:.5rem;font-size:1.1rem;display:flex}.lib-tabs{background:#f0eff3;border-radius:10px;padding:3px;display:flex}.lib-tabs button{color:var(--text-muted);background:0 0;border:none;border-radius:8px;padding:.4rem .9rem;font-weight:500}.lib-tabs button.active{color:var(--text);background:#fff;box-shadow:0 1px 3px #0000001a}.lib-search{flex:1;min-width:180px;max-width:420px;margin-left:auto}.avatar{background:var(--accent);border-color:var(--accent);color:#fff;border-radius:50%;width:36px;height:36px;padding:0;font-weight:700}.lib-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.5rem .4rem;display:flex}.lib-bar h1{margin:0;font-size:1.5rem}.crumbs{flex-wrap:wrap;align-items:center;gap:.2rem;min-width:0;display:flex}.crumb-wrap{align-items:center;gap:.2rem;display:inline-flex}.crumb{color:var(--accent);background:0 0;border:none;padding:.2rem .3rem;font-size:1.5rem;font-weight:600}.crumb.current{color:var(--text)}.crumb:hover:not(:disabled){background:0 0;text-decoration:underline}.crumb-sep{color:var(--text-muted);font-size:1.4rem}.lib-actions{align-items:center;gap:.6rem;display:flex}.sort-select{border:1px solid var(--border-strong);background:#fff;border-radius:8px;height:38px;padding:0 .5rem}.lib-scroll{flex:1;padding:.8rem 1.5rem 3rem;overflow-y:auto}.lib-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1.6rem 1.4rem;display:grid}.lib-card{cursor:pointer;flex-direction:column;gap:.5rem;min-width:0;display:flex}.lib-thumb{aspect-ratio:3/4;justify-content:center;align-items:flex-end;transition:transform .12s;display:flex;position:relative}.lib-card:hover .lib-thumb{transform:translateY(-3px)}.folder-thumb{align-items:center}.folder-thumb svg{width:92%;height:auto}.lib-meta{flex-direction:column;min-width:0;display:flex}.lib-title-row{align-items:center;gap:.2rem;display:flex}.lib-title{text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.fav-star{color:#facc15;text-shadow:0 1px 2px #0006;font-size:1.2rem;position:absolute;top:6px;right:8px}.cover{border-radius:4px 12px 12px 4px;width:100%;height:100%;position:relative;overflow:hidden;box-shadow:0 2px 6px #1018282e,0 10px 24px #1018281f}.cover:before{content:"";background:linear-gradient(90deg,#00000047,#00000014 70%,#ffffff1f);width:9%;position:absolute;inset:0 auto 0 0}.cover-pdf{height:auto;box-shadow:none;background:0 0;border-radius:0;justify-content:center;align-items:flex-end;display:flex;overflow:visible}.cover-pdf:before{display:none}.cover-pdf .pdf-bg{object-fit:contain;background:#fff;border-radius:3px;width:100%;height:auto;max-height:100%;position:static;box-shadow:0 2px 6px #1018282e,0 10px 24px #1018281f}.cover-label{color:#1f2937;text-align:center;text-overflow:ellipsis;white-space:nowrap;background:#ffffffeb;border-radius:4px;padding:.35rem .5rem;font-size:.8rem;font-weight:600;position:absolute;top:16%;left:18%;right:8%;overflow:hidden}.lib-empty{flex-direction:column;align-items:center;gap:.8rem;padding:4rem 1rem;display:flex}.hit-list{flex-direction:column;gap:.4rem;max-width:760px;margin-top:2rem;display:flex}.hit-list h2{margin:0 0 .3rem;font-size:1rem}.hit{text-align:left;background:var(--surface);border:1px solid var(--border);flex-direction:column;align-items:flex-start;gap:.15rem;padding:.6rem .9rem;display:flex}.error-bar{color:#991b1b;background:#fee2e2;justify-content:space-between;gap:1rem;padding:.5rem 1rem;display:flex}.busy-bar{color:var(--accent-hover);background:#ecebf1;padding:.45rem 1rem;font-size:.9rem}.icon-btn{background:0 0;border:none;border-radius:6px;place-items:center;width:30px;height:30px;padding:0;font-size:1.05rem;line-height:1;display:inline-grid}.icon-btn:hover:not(:disabled){background:#0000000f}.badge{color:#92400e;cursor:help;white-space:nowrap;background:#fef3c7;border-radius:999px;padding:.2rem .65rem;font-size:.75rem}.dialog-backdrop{z-index:500;background:#0f172a66;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;width:100%;max-width:460px;max-height:calc(100dvh - 2rem);display:flex}.dialog.wide{max-width:720px}.dialog-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.9rem 1.2rem;font-size:1.05rem;display:flex}.dialog-body{flex-direction:column;gap:1.1rem;padding:1rem 1.2rem;display:flex;overflow-y:auto}.dialog-foot{border-top:1px solid var(--border);justify-content:flex-end;gap:.6rem;padding:.8rem 1.2rem;display:flex}.field{flex-direction:column;gap:.45rem;display:flex}.field-label{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-size:.78rem;font-weight:600}.chips{flex-wrap:wrap;gap:.4rem;display:flex}.chip{background:#fff;border-radius:999px;align-items:center;gap:.4rem;padding:.35rem .8rem;font-size:.88rem;display:inline-flex}.chip.active{border-color:var(--accent);color:var(--accent-hover);background:#ecebf1;font-weight:600}.paper-dot{border:1px solid #0003;border-radius:50%;width:14px;height:14px}.template-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:.6rem;display:grid}.template-card{background:#fff;border:2px solid #0000;border-radius:10px;flex-direction:column;align-items:center;gap:.35rem;padding:.5rem .3rem;display:flex}.template-card.active{border-color:var(--accent);background:#f5f4f8}.template-card:hover:not(:disabled){background:#faf9ff}.template-thumb{border-radius:3px;display:block;position:relative;overflow:hidden;box-shadow:0 1px 4px #0000002e}.template-name{text-align:center;font-size:.78rem}.cover-picker{align-items:flex-start;gap:1.2rem;display:flex}.cover-preview{flex-shrink:0;width:96px;height:128px}.color-row{flex-wrap:wrap;gap:8px;display:flex}.tree{flex-direction:column;gap:2px;display:flex}.tree-item{text-align:left;background:0 0;border:none;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;display:flex}.tree-item.active{background:#ecebf1;font-weight:600}.menu{flex-shrink:0;position:relative}.menu-trigger{opacity:.55;width:28px;height:28px}.lib-card:hover .menu-trigger,.thumb:hover .menu-trigger,.thumb.active .menu-trigger{opacity:1}.menu-pop{z-index:960;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:10px;flex-direction:column;min-width:190px;padding:.3rem;font-weight:400;display:flex;position:fixed;top:0;left:0;overflow-y:auto}.menu-item{text-align:left;background:0 0;border:none;border-radius:6px;padding:.55rem .7rem}.menu-item.danger{color:var(--danger)}.menu-colors{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:6px;margin-bottom:.2rem;padding:.4rem;display:flex}.swatch{border:1px solid #00000026;border-radius:50%;width:22px;min-width:22px;height:22px;padding:0}.swatch.big{width:30px;height:30px}.swatch.selected{outline:2.5px solid var(--accent);outline-offset:2px}.swatch.custom{cursor:pointer;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);position:relative;overflow:hidden}.swatch.custom input{opacity:0;cursor:pointer;position:absolute;inset:0}.editor{flex-direction:column;height:100%;min-height:0;display:flex}.toolbar-wrap{z-index:20;background:var(--surface);border-bottom:1px solid var(--border);padding-top:env(safe-area-inset-top,0px);position:relative}.toolbar{scrollbar-width:none;align-items:center;gap:2px;padding:.35rem .5rem;display:flex;overflow-x:auto}.tool-btn{color:#334155;background:0 0;border:1px solid #0000;border-radius:9px;flex-shrink:0;place-items:center;min-width:42px;height:42px;padding:0 .4rem;display:inline-grid}.tool-btn.wide{min-width:58px;font-size:.85rem;font-weight:600}.tool-btn.active{color:var(--accent);background:#ecebf1;border-color:#c8c2d6}.tb-sep{background:var(--border);flex-shrink:0;align-self:stretch;width:1px;margin:6px 4px}.tb-pop-anchor{flex-shrink:0;position:relative}.popover{z-index:960;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:.7rem;width:270px;padding:.8rem;display:flex;position:fixed;top:0;left:0;overflow-y:auto}.color-grid{grid-template-columns:repeat(7,30px);justify-content:space-between;gap:6px;display:grid}.slider{flex-direction:column;gap:.2rem;font-size:.85rem;display:flex}.slider span{justify-content:space-between;display:flex}.slider input{width:100%;accent-color:var(--accent)}.pen-preview{border:1px solid var(--border);background:#f8fafc;border-radius:8px}.seg{border:1px solid var(--border-strong);border-radius:8px;display:flex;overflow:hidden}.seg button{background:#fff;border:none;border-radius:0;flex:1;padding:.45rem .3rem;font-size:.85rem}.seg button+button{border-left:1px solid var(--border-strong)}.seg button.active{color:var(--accent);background:#ecebf1;font-weight:600}.pop-label{color:var(--text-muted);margin-bottom:-.4rem;font-size:.8rem}.check{align-items:center;gap:.5rem;font-size:.9rem;display:flex}.check input{width:18px;height:18px;accent-color:var(--accent)}.popover p{margin:-.3rem 0 0}.save-state{color:var(--text-muted);white-space:nowrap;flex-shrink:0;padding:0 .6rem;font-size:.8rem}.save-state.dirty{color:var(--accent);font-size:1.2rem}.save-state.error{color:var(--danger);font-weight:600}.format-bar{border-top:1px solid var(--border);background:#f9f9fb;gap:4px}.fmt{border:1px solid var(--border);background:#fff;flex-shrink:0;min-width:36px;height:34px;padding:0 .5rem}.fmt-select{border:1px solid var(--border);background:#fff;border-radius:8px;height:34px;padding:0 .4rem}.scroll{scrollbar-gutter:stable;overscroll-behavior:contain;background:#e9ecf2;flex:1;position:relative;overflow:auto}.sizer{position:relative}.editor-body{flex:1;min-height:0;display:flex}.thumbs{border-right:1px solid var(--border);background:#f6f5fb;flex-direction:column;flex-shrink:0;align-items:center;gap:.9rem;width:150px;padding:.8rem 0 2rem;display:flex;overflow-y:auto}.thumb{cursor:pointer;flex-direction:column;align-items:center;gap:.2rem;display:flex}.page-thumb{outline-offset:2px;background:#fff;border-radius:2px;outline:3px solid #0000;flex-shrink:0;position:relative;overflow:hidden;box-shadow:0 1px 4px #00000029}.thumb.active .page-thumb{outline-color:var(--accent)}.thumb-ink{width:100%;height:100%;position:absolute;inset:0}.thumb-foot{color:var(--text-muted);align-items:center;gap:.2rem;font-size:.8rem;display:flex}.thumb.active .thumb-foot{color:var(--accent);font-weight:700}.sheet{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#fff;position:absolute;overflow:hidden;box-shadow:0 1px 3px #1018281f,0 6px 16px #10182814}.sheet.placeholder{background:#f8fafc}.sheet-inner{transform-origin:0 0;position:absolute;top:0;left:0}.paper-bg{position:absolute;top:0;left:0}.pdf-bg{width:100%;height:100%;position:absolute;inset:0}.pdf-failed{color:var(--danger);place-items:center;display:grid;position:absolute;inset:0}.items{z-index:1;position:absolute;inset:0}.ink{z-index:2;pointer-events:none;position:absolute;top:0;left:0}.overlay{z-index:4;pointer-events:none;position:absolute;top:0;left:0;overflow:visible}.input-layer{z-index:5;touch-action:none;position:absolute;inset:0}.add-page-row{z-index:6;justify-content:center;gap:.6rem;display:flex;position:absolute;left:0;right:0}.add-page-row button{background:#fff}.tb-title{text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;min-width:40px;max-width:180px;padding:0 .4rem;font-weight:600;overflow:hidden}.tb-spacer{flex:1;min-width:8px}.page-indicator{color:var(--text-muted);white-space:nowrap;flex-shrink:0;padding:0 .4rem;font-size:.85rem}.tool-btn.plus{font-size:1.5rem;font-weight:300}.lasso-line{fill:#7a70960f;stroke:var(--accent);stroke-width:1.5px;stroke-dasharray:6 4}.selection-rect{fill:#7a70960d;stroke:var(--accent);stroke-width:1.5px;stroke-dasharray:6 4}.eraser-cursor{fill:#ffffff80;stroke:#475569;stroke-width:1px}.selection-bar{z-index:7;background:var(--surface);box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute}.selection-bar button{padding:.35rem .75rem;font-size:.85rem}.selection-bar .danger{color:var(--danger)}.item{position:absolute}.text-item{min-height:32px}.text-content{overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;cursor:text;border:1px solid #0000;border-radius:4px;outline:none;min-height:32px;padding:4px 8px;font-size:16px;line-height:1.5}.tool-select .text-content:hover,.tool-text .text-content:hover,.text-content:focus{background:#ffffffb3;border-color:#c8c2d6}.text-content ul,.text-content ol{margin:.2rem 0;padding-left:1.4rem}.item-grip{height:22px;color:var(--accent);cursor:move;touch-action:none;opacity:0;background:#ecebf1;border-radius:6px 6px 0 0;padding:0 8px;font-size:14px;line-height:22px;position:absolute;top:-22px;left:0}.text-item:hover .item-grip,.text-item.active .item-grip,.text-item:focus-within .item-grip{opacity:1}.item-resize-x{cursor:ew-resize;touch-action:none;width:12px;height:100%;position:absolute;top:0;right:-6px}.text-item:focus-within .item-resize-x:after,.text-item:hover .item-resize-x:after{content:"";background:#c8c2d6;border-radius:2px;width:4px;height:22px;margin-top:-11px;position:absolute;top:50%;left:4px}.image-item img{object-fit:contain;pointer-events:none;width:100%;height:100%;display:block}.image-placeholder{width:100%;height:100%;color:var(--text-muted);background:#f1f5f9;place-items:center;font-size:.85rem;display:grid}.tool-select .image-item,.tool-select .file-item{cursor:move}.item.active.image-item,.item.active.file-item{outline:2px solid var(--accent);outline-offset:2px}.item-resize{border:2px solid var(--accent);cursor:nwse-resize;touch-action:none;background:#fff;border-radius:50%;width:18px;height:18px;position:absolute;bottom:-9px;right:-9px}.item-remove{background:var(--danger);border-color:var(--danger);color:#fff;z-index:2;border-radius:50%;width:26px;height:26px;padding:0;font-size:16px;line-height:1;position:absolute;top:-12px;right:-12px}.item-remove:hover:not(:disabled){background:#b91c1c}.file-item{border:1px solid var(--border-strong);cursor:pointer;background:#fff;border-radius:10px;align-items:center;gap:.7rem;width:260px;height:64px;padding:.5rem .7rem;display:flex;box-shadow:0 1px 2px #0000000d}.file-badge{color:#fff;border-radius:6px;flex-shrink:0;place-items:center;width:44px;height:44px;font-size:.7rem;font-weight:700;display:grid}.file-info{flex-direction:column;min-width:0;display:flex}.file-name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.update-banner{z-index:1000;background:var(--accent);color:#fff;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom,0px));justify-content:center;align-items:center;gap:1rem;display:flex;position:fixed;bottom:0;left:0;right:0}.update-banner button{color:var(--accent);background:#fff;border-color:#fff}.pdf-item{background:#fff;box-shadow:0 1px 4px #10182840}.tool-select .pdf-item{cursor:move}.item.active.pdf-item{outline:2px solid var(--accent);outline-offset:2px}.item.locked.active{outline-style:dashed!important;outline-color:#94a3b8!important}.tool-select .item.locked{cursor:default}.item-bar{z-index:8;transform-origin:0 0;background:var(--surface);box-shadow:var(--shadow);white-space:nowrap;border-radius:10px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute}.item-bar button{padding:.35rem .7rem;font-size:.85rem}.item-bar button.on{border-color:var(--accent);color:var(--accent-hover);background:#ecebf1}.item-bar .danger{color:var(--danger)}.item-bar-label{color:var(--text-muted);padding:0 .2rem;font-size:.85rem}.sel-handle{fill:#fff;stroke:var(--accent)}.info-bar{color:#713f12;background:#fefce8;border-bottom:1px solid #fde68a;align-items:center;gap:.8rem;padding:.4rem 1rem;font-size:.9rem;display:flex}.info-bar button{white-space:nowrap;padding:.25rem .7rem;font-size:.85rem}.choice-list{flex-direction:column;gap:.5rem;display:flex}.choice-list button{text-align:left;background:#fff;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.75rem 1rem;display:flex}.chart-item svg{width:100%;height:100%;display:block}.tool-select .chart-item{cursor:move}.item.active.chart-item{outline:2px solid var(--accent);outline-offset:2px}.chart-kinds{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:.5rem;display:grid}.chart-kind{background:#fff;border:2px solid #0000;border-radius:10px;flex-direction:column;align-items:center;gap:.25rem;padding:.4rem;font-size:.8rem;display:flex}.chart-kind.active{border-color:var(--accent);background:#f5f4f8}.chart-preview svg{width:100%;height:auto;display:block}.field-row{gap:.8rem;display:flex}.field.grow{flex:1}.data-grid-wrap{border:1px solid var(--border);border-radius:8px;overflow-x:auto}.data-grid{border-collapse:collapse;min-width:100%;font-size:.88rem}.data-grid th,.data-grid td{border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;padding:3px 4px}.data-grid th{background:#f8f7fc;font-weight:600}.data-grid input{background:0 0;border:1px solid #0000;border-radius:6px;width:110px;padding:.3rem .4rem}.data-grid input:focus{border-color:var(--accent);background:#fff;outline:none}.data-grid td input[type=number]{text-align:right;font-variant-numeric:tabular-nums;width:90px}.series-key{vertical-align:middle;border-radius:50%;width:10px;height:10px;margin-right:2px;display:inline-block}.mini{padding:.25rem .65rem;font-size:.82rem}.btn-line{flex-wrap:wrap;gap:.5rem;display:flex}textarea{width:100%;font:inherit;border:1px solid var(--border-strong);resize:vertical;border-radius:8px;padding:.5rem .65rem}.paste-box,.ai-box{flex-direction:column;align-items:flex-start;gap:.5rem;display:flex}.ai-box{background:#faf8ff;border:1px solid #e4dcfb;border-radius:10px;padding:.75rem}.ai-btn{color:var(--accent);white-space:nowrap;font-weight:600}fieldset.plain{border:none;flex-direction:column;gap:1.1rem;min-width:0;margin:0;padding:0;display:flex}.preset-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.5rem;display:grid}.preset{text-align:left;border:2px solid var(--border);background:#fff;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.55rem .75rem;display:flex}.preset.active{border-color:var(--accent);background:#f5f4f8}.range-row{align-items:center;gap:.5rem;margin-top:.4rem;display:flex}.range-row input{border:1px solid var(--border-strong);border-radius:8px;width:72px;padding:.35rem .5rem}.ai-running{color:var(--accent-hover);margin-right:auto;font-weight:500}.ai-running:before{content:"";vertical-align:-2px;border:2px solid #c8c2d6;border-top-color:var(--accent);border-radius:50%;width:14px;height:14px;margin-right:8px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.text-content h1{margin:0 0 .3rem;font-size:1.7rem;font-weight:600;line-height:1.25}.text-content h2{margin:.9rem 0 .3rem;font-size:1.2rem;font-weight:600}.text-content p{margin:0 0 .5rem}.text-content .ai-meta{color:var(--text-muted);margin-bottom:.8rem;font-size:.82rem}.text-content blockquote{color:var(--text-muted);border-left:3px solid #c8c2d6;margin:.4rem 0;padding-left:.8rem}.text-content table{border-collapse:collapse;width:100%;margin:.4rem 0;font-size:.92rem}.text-content th,.text-content td{text-align:left;vertical-align:top;border-bottom:1px solid #e1e0d9;padding:.3rem .5rem}.text-content th{border-bottom-color:#c3c2b7;font-weight:600}.text-content ul+ul,.text-content ol+ol{margin-top:-.2rem}.thumb-text,.thumb-chart{pointer-events:none;position:absolute}.avatar-wrap{position:relative}.avatar-badge{background:var(--danger);color:#fff;pointer-events:none;border-radius:9px;place-items:center;min-width:18px;height:18px;padding:0 4px;font-size:.7rem;font-weight:700;display:grid;position:absolute;top:-4px;right:-4px}.member-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.8rem;padding:.55rem 0;display:flex}.member-info{flex-direction:column;min-width:0;display:flex}.member-actions{flex-shrink:0;align-items:center;gap:.6rem;display:flex}.danger-text{color:var(--danger)}.editor{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.editor input,.editor textarea,.editor .text-content,.editor .dialog{-webkit-user-select:text;user-select:text}.hw-btn{align-items:baseline;gap:0;font-size:1.05rem;display:inline-flex}.hw-btn span{margin-left:1px;font-family:Caveat,cursive;font-size:1.25rem;font-weight:600}.font-list{flex-direction:column;gap:4px;display:flex}.font-choice{text-align:left;background:#fff;border:2px solid #0000;justify-content:space-between;align-items:baseline;gap:.6rem;padding:.3rem .6rem;display:flex}.font-choice.active{border-color:var(--accent);background:#f5f4f8}.hw-busy{color:var(--accent-hover);white-space:nowrap;flex-shrink:0;padding:0 .4rem;font-size:.8rem}.lib-card{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.lib-card.dragging{outline-offset:-2px;background:#7a70960f;border-radius:14px;outline:2px dashed #7a709673}.lib-card.dragging>*{visibility:hidden}.drag-card-ghost{z-index:1000;pointer-events:none;background:var(--surface);will-change:transform;border-radius:14px;margin:0;position:fixed;top:0;left:0;box-shadow:0 18px 40px #0f172a47,0 4px 10px #0f172a29}.drag-card-ghost.dropping{opacity:0;transition:opacity .15s}.lib-card.drop-over .lib-thumb{filter:drop-shadow(0 0 .5rem #7a709699);transform:scale(1.06)}.crumb.drop-over{background:#ecebf1;border-radius:8px}.drag-ghost{z-index:1000;pointer-events:none;background:var(--surface);border:2px solid var(--accent);box-shadow:var(--shadow);white-space:nowrap;text-overflow:ellipsis;border-radius:10px;max-width:260px;padding:.4rem .8rem;font-weight:600;position:fixed;overflow:hidden;transform:translate(-50%,-120%)}.cover-image img{object-fit:cover;width:100%;height:100%;display:block}.cover-page{box-shadow:none;background:0 0;border-radius:0;justify-content:center;align-items:flex-end;display:flex;overflow:visible}.cover-page:before{display:none}.cover-page .page-thumb{box-shadow:0 2px 6px #1018282e,0 10px 24px #1018281f}.cover-preview .cover-page .page-thumb{transform-origin:bottom;transform:scale(.64)}.folder-preview{flex-shrink:0;place-items:center;width:130px;display:grid}.learn-crumb{align-items:center;gap:.8rem;min-width:0;margin-left:auto;display:flex}.learn-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;display:grid}.learn-card{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;align-items:flex-start;gap:.3rem;padding:1rem 1.1rem;display:flex}.learn-card-icon{font-size:1.8rem}.learn-set{flex-direction:column;gap:1.4rem;max-width:1000px;display:flex}.learn-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.2rem}.learn-section h2{margin:0 0 .8rem;font-size:1.1rem}.learn-section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.learn-section-head h2{margin:0}.source-chip .icon-btn{width:20px;height:20px;font-size:.9rem}.source-row{align-items:center;gap:.6rem;display:flex}.source-row .ellipsis{flex:1}.notebook-pick{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.3rem 1rem;max-height:180px;display:grid;overflow-y:auto}.kind-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem;display:grid}.kind-card{text-align:left;border:2px solid var(--border);background:#fff;flex-direction:column;align-items:flex-start;gap:.2rem;padding:.7rem .8rem;display:flex}.kind-card.active{border-color:var(--accent);background:#f5f4f8}.kind-icon{font-size:1.6rem}.kind-icon.small{font-size:1.3rem}.gen-options{border-top:1px solid var(--border);flex-wrap:wrap;align-items:flex-end;gap:1rem;margin-top:1rem;padding-top:1rem;display:flex}.gen-options input[type=number]{border:1px solid var(--border-strong);border-radius:8px;width:100%;padding:.5rem .6rem}.activity-row{border-bottom:1px solid var(--border);align-items:center;gap:.8rem;padding:.6rem 0;display:flex}.activity-info{flex-direction:column;flex:1;min-width:0;display:flex}.status{white-space:nowrap;border-radius:999px;padding:.15rem .6rem;font-size:.8rem}.status.open{color:#92400e;background:#fef3c7}.status.done{color:#166534;background:#dcfce7}.player{flex-direction:column;gap:.9rem;max-width:760px;margin:0 auto;display:flex}.progress{background:var(--border);border-radius:3px;height:6px;overflow:hidden}.progress div{background:var(--accent);height:100%;transition:width .3s}.question{margin:0;font-size:1.35rem}.options{flex-direction:column;gap:.5rem;display:flex}.option{text-align:left;border:2px solid var(--border);cursor:pointer;background:#fff;border-radius:12px;align-items:center;gap:.6rem;padding:.8rem 1rem;font-size:1.02rem;display:flex}.option.correct{background:#dcfce7;border-color:#16a34a}.option.wrong{border-color:var(--danger);background:#fee2e2}.option.dim{opacity:.5}.option.selected{border-color:var(--accent);background:#f5f4f8}.explain{border-radius:12px;padding:.8rem 1rem}.explain.ok{background:#f0fdf4;border:1px solid #bbf7d0}.explain.bad{background:#fef2f2;border:1px solid #fecaca}.finish{flex-direction:column;gap:1rem;max-width:760px;margin:0 auto;display:flex}.finish-score{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;align-items:center;gap:.3rem;padding:1.5rem;display:flex}.finish-big{color:var(--accent);font-size:3rem;font-weight:700}.finish-msg{font-size:1.1rem;font-weight:600}.review{flex-direction:column;gap:.5rem;display:flex}.review-item{background:var(--surface);border-left:4px solid #16a34a;border-radius:8px;flex-direction:column;gap:.25rem;padding:.7rem .9rem;display:flex}.review-item.bad{border-left-color:var(--danger)}.review-item.mid{border-left-color:#eda100}.task{background:var(--surface);border-radius:12px;flex-direction:column;gap:.6rem;padding:.9rem 1rem;display:flex}.task-head{justify-content:space-between;gap:1rem;display:flex}.task-points{white-space:nowrap;color:var(--text-muted);font-weight:600}.center{text-align:center;justify-content:center}.flashcard{perspective:1200px;cursor:pointer;background:0 0;border:none;height:280px;padding:0}.flash-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .5s;display:block;position:relative}.flashcard.flipped .flash-inner{transform:rotateY(180deg)}.flash-face{backface-visibility:hidden;text-align:center;box-shadow:var(--shadow);border-radius:18px;place-items:center;padding:1.5rem;font-size:1.3rem;display:grid;position:absolute;inset:0}.flash-face.front{background:linear-gradient(135deg,#ecebf1,#fff);font-weight:600}.flash-face.back{background:#fff;font-size:1.1rem;transform:rotateY(180deg)}.right-btn{border-color:#16a34a}.wrong-btn{border-color:var(--danger)}.match{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.match-col{flex-direction:column;gap:.5rem;display:flex}.match-item{border:2px solid var(--border);text-align:left;background:#fff;border-radius:12px;min-height:52px;padding:.8rem;transition:all .2s}.match-item.selected{border-color:var(--accent);background:#f5f4f8}.match-item.solved{color:#166534;opacity:.6;background:#f0fdf4;border-color:#bbf7d0}.match-item.wrong{border-color:var(--danger);background:#fee2e2;animation:.3s shake}@keyframes shake{0%,to{transform:translate(0)}15%{transform:translate(-8px,3px)rotate(-.6deg)}30%{transform:translate(7px,-4px)rotate(.6deg)}45%{transform:translate(-6px,2px)}60%{transform:translate(5px,-2px)}75%{transform:translate(-3px,1px)}}.word-bank{background:var(--surface);border-radius:12px;flex-wrap:wrap;gap:.4rem;padding:.8rem;display:flex}.cloze-text{color:var(--text);background:var(--surface);border-radius:12px;padding:1rem 1.2rem;font-size:1.1rem;line-height:2.2}.gap{border:none;border-bottom:2px solid var(--accent);font:inherit;text-align:center;background:#f5f4f8;border-radius:4px 4px 0 0;padding:.1rem .3rem}.gap.ok{background:#dcfce7;border-bottom-color:#16a34a}.gap.bad{border-bottom-color:var(--danger);background:#fee2e2}.video-stage{aspect-ratio:16/10;color:#fff;box-shadow:var(--shadow);background:linear-gradient(135deg,#1e1b4b,#4c1d95 55%,#7a7096);border-radius:18px;position:relative;overflow:hidden}.video-slide{flex-direction:column;gap:.6rem;padding:6% 7%;animation:.6s slideIn;display:flex;position:absolute;inset:0}@keyframes slideIn{0%{opacity:0;transform:translate(30px)}}.video-emoji{font-size:3rem;animation:.6s pop}@keyframes pop{0%{opacity:0;transform:scale(.3)}}.video-slide h2{color:#fff;margin:0;font-size:1.8rem}.video-slide ul{margin:0;padding-left:1.3rem;font-size:1.15rem;line-height:1.6}.video-slide li{opacity:0;animation:.5s forwards fadeUp}@keyframes fadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.video-chart{max-width:70%;margin-top:auto;animation:.6s 1.2s both fadeUp}.video-chart svg{width:100%;height:auto;display:block}.video-dots{justify-content:center;gap:6px;display:flex;position:absolute;bottom:12px;left:0;right:0}.dot{background:#ffffff59;border:none;border-radius:50%;width:10px;height:10px;padding:0}.dot.seen{background:#ffffffa6}.dot.active{background:#fff;border-radius:5px;width:26px}.video-controls{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.video-controls .play{min-width:140px}.video-controls select{border:1px solid var(--border-strong);background:#fff;border-radius:8px;height:38px;padding:0 .5rem}.video-script{background:var(--surface);border-radius:10px;padding:.6rem .9rem}.answer-mode{align-self:flex-start}.inkpad svg{border:1px solid var(--border-strong);touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:10px;width:100%;display:block}.inkpad-tools{flex-wrap:wrap;gap:.4rem;margin-top:.4rem;display:flex}.active-tool{border-color:var(--accent);background:#ecebf1}.pen-input-btn{z-index:900;background:var(--surface);border:1px solid var(--accent);width:34px;height:34px;box-shadow:var(--shadow);border-radius:50%;place-items:center;padding:0;font-size:1rem;display:grid;position:fixed}.pen-input-dialog{z-index:950}.video-design{background:#faf8ff;border:1px solid #e4dcfb;border-radius:12px;flex-direction:column;flex-basis:100%;gap:.9rem;padding:.9rem 1rem;display:flex}.theme-dot{border-radius:50%;width:14px;height:14px;display:inline-block}.voice-pick{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.4rem;max-height:220px;margin-top:.5rem;display:grid;overflow-y:auto}.voice{text-align:left;border:2px solid var(--border);background:#fff;flex-direction:column;align-items:flex-start;gap:.1rem;padding:.45rem .7rem;display:flex}.voice.active{border-color:var(--accent);background:#f5f4f8}.video-stage:fullscreen{border-radius:0}.video-progress{background:#ffffff26;height:4px;position:absolute;bottom:0;left:0;right:0}.video-progress div{background:#ffffffd9;height:100%;transition:width .25s linear}.theme-light .video-progress div{background:#4c1d95}.vs{flex-direction:column;gap:.7rem;height:100%;display:flex}.vs h1{color:inherit;margin:0;font-size:clamp(1.6rem,4.2vw,2.8rem);line-height:1.15}.vs h2{color:inherit;margin:0;font-size:clamp(1.3rem,3vw,2rem)}.vs h3{margin:0 0 .4rem;font-size:1.15rem}.vs-sub{color:inherit;opacity:.85;margin:0;font-size:clamp(1rem,2vw,1.3rem)}.vs-emoji{font-size:2.6rem;animation:.6s pop}.vs-emoji.big{font-size:4.5rem}.vs-emoji.inline{font-size:1.6rem;display:inline-block}.vs ul,.vs ol{flex-direction:column;gap:.55rem;margin:0;padding:0;font-size:clamp(1rem,2.1vw,1.35rem);list-style:none;display:flex}.vs li{opacity:0;transition:opacity .5s,transform .5s;transform:translateY(12px)}.vs li.in{opacity:1;transform:none}.vs-bullets li:before{content:"";opacity:.7;vertical-align:middle;background:currentColor;border-radius:50%;width:.55em;height:.55em;margin-right:.6em;display:inline-block}.vs-head{align-items:center;gap:.8rem;display:flex}.vs-body{flex:1;align-items:flex-start;gap:1.5rem;min-height:0;display:flex}.vs-body ul{flex:1}.vs-chart{opacity:0;flex:1.2;transition:opacity .6s,transform .6s;transform:scale(.96)}.vs-chart.in{opacity:1;transform:none}.vs-chart svg{width:100%;height:auto;display:block}.vs-title,.vs-statement{text-align:center;justify-content:center;align-items:center}.vs-statement blockquote{max-width:85%;margin:0;font-size:clamp(1.6rem,4vw,2.6rem);font-weight:700;line-height:1.25;animation:.7s fadeUp}.fade{opacity:0;transition:opacity .6s}.fade.in{opacity:.85}.vs-cols{flex:1;align-items:stretch;gap:1rem;display:flex}.vs-col{background:#ffffff1f;border-radius:14px;flex:1;padding:1rem 1.2rem}.theme-light .vs-col,.theme-light .def-box,.theme-light .answer,.theme-light .vs-steps li{background:#4c1d9514}.vs-vs{opacity:.7;align-self:center;font-size:1.4rem;font-weight:800}.vs-steps ol{gap:.7rem}.vs-steps li{background:#ffffff1a;border-radius:12px;align-items:center;gap:.9rem;padding:.55rem .9rem;display:flex}.step-no{color:#312e81;background:#ffffffe6;border-radius:50%;flex-shrink:0;place-items:center;width:2rem;height:2rem;font-weight:800;display:grid}.vs-definition{justify-content:center}.vs-definition .term{font-size:clamp(2rem,5vw,3.4rem);animation:.6s fadeUp}.def-box{background:#ffffff24;border-left:5px solid #ffffffd9;border-radius:10px;padding:.9rem 1.1rem;font-size:clamp(1.05rem,2.2vw,1.4rem);animation:.6s .3s both fadeUp}.vs-question{text-align:center;justify-content:center;align-items:center}.vs-question .answer{opacity:0;background:#ffffff29;border-radius:14px;padding:.8rem 1.3rem;font-size:clamp(1.1rem,2.4vw,1.5rem);font-weight:600;transition:opacity .6s,transform .6s;transform:scale(.9)}.vs-question .answer.in{opacity:1;transform:none}.think{animation:1.4s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.4}}.vs-summary li.check:before{content:"✔";color:#15803d;background:#ffffffe6;border-radius:50%;place-items:center;width:1.5em;height:1.5em;margin-right:.6em;font-size:.8em;font-weight:800;display:inline-grid}@media (width<=700px){.vs-body,.vs-cols{flex-direction:column}}.vs-visual{justify-content:center;align-items:center;min-height:0;animation:.7s fadeUp;display:flex}.vs-visual.hero{width:100%;height:46%}.vs-visual.mid{width:100%;height:38%}.vs-visual.side{flex:1;align-self:stretch;max-height:100%}.vs-img{object-fit:contain;max-width:100%;max-height:100%;display:block}.vs-img.photo{object-fit:cover;aspect-ratio:16/9;border-radius:14px;box-shadow:0 10px 30px #00000059}.vs-img.drawn{filter:drop-shadow(0 6px 14px #00000040);width:100%;height:100%}.vs-definition.with-visual{flex-direction:row;align-items:center;gap:1.5rem}.vs-def-text{flex-direction:column;flex:1;gap:.7rem;display:flex}.vs-steps .vs-body ol,.vs-summary .vs-body ul{flex:1}.visual-pick{position:relative}.visual-menu{z-index:20;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:10px;flex-direction:column;gap:.3rem;min-width:190px;padding:.4rem;display:flex;position:absolute;bottom:calc(100% + 6px);left:0}.visual-menu button{text-align:left;justify-content:space-between;gap:.5rem;display:flex}@media (width<=700px){.vs-definition.with-visual{flex-direction:column}.vs-visual.side{max-height:38%}}.slide-image textarea{width:100%;margin:.4rem 0;font-size:.85rem}.row-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.btn-like{border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;border-radius:9px;align-items:center;gap:.3rem;padding:.5rem .9rem;display:inline-flex}.slide-scrub{align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.slide-scrub input[type=range]{min-width:0;accent-color:var(--accent);flex:1;height:28px}.scrub-time{font-variant-numeric:tabular-nums;white-space:nowrap}.pdf-sharp{pointer-events:none;position:absolute}.lib-card.insert-before,.lib-card.insert-after{position:relative}.lib-card.insert-before:before,.lib-card.insert-after:after{content:"";background:var(--accent);border-radius:2px;width:4px;position:absolute;top:6%;bottom:6%;box-shadow:0 0 0 3px #7a70962e}.lib-card.insert-before:before{left:-9px}.lib-card.insert-after:after{right:-9px}.video-revise{background:#faf8ff;border:1px solid #e4dcfb;border-radius:12px;flex-direction:column;gap:.5rem;margin-top:.9rem;padding:.8rem 1rem;display:flex}.video-revise textarea{width:100%}.msg-ok{color:#15803d;margin:0}.lib-card,.lib-card img,.lib-card canvas,.drag-card-ghost img{-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.ink.ink-under{z-index:1}.items.items-text{pointer-events:none}.items.items-text>*{pointer-events:auto}.lib-grid{grid-template-columns:repeat(auto-fill,150px);justify-content:start}.lib-thumb{aspect-ratio:auto;width:150px;height:200px}.lib-thumb .cover{width:100%;height:100%}.lib-thumb .cover-pdf,.lib-thumb .cover-page{background:#fff;border-radius:3px;align-items:flex-start;overflow:hidden;box-shadow:0 2px 6px #1018282e,0 10px 24px #1018281f}.lib-thumb .cover-pdf .pdf-bg{object-fit:cover;object-position:top;width:100%;height:100%;max-height:none;box-shadow:none;border-radius:0}.lib-thumb .cover-page .page-thumb{box-shadow:none;border-radius:0}.lib-thumb.folder-thumb{align-items:flex-end}.lib-thumb.folder-thumb svg,.lib-thumb.folder-thumb img{width:100%;height:auto;max-height:100%}@media (width<=420px){.lib-grid{gap:1.2rem .9rem}}.paste-menu{z-index:950;background:#1f2937;border-radius:12px;gap:2px;padding:4px;animation:.15s paste-pop;display:flex;position:fixed;transform:translate(-50%,calc(-100% - 14px));box-shadow:0 10px 28px #0f172a59}@keyframes paste-pop{0%{opacity:0;transform:translate(-50%,calc(-100% - 4px))scale(.92)}}.paste-menu button{color:#fff;white-space:nowrap;background:0 0;border:0;border-radius:9px;padding:.55rem .8rem;font-size:.95rem}.paste-menu button:active{background:#ffffff26}.paste-target{border:2px dashed var(--border-strong);background:#fafafa;border-radius:10px;outline:none;min-height:90px;padding:.8rem}.paste-target:focus{border-color:var(--accent)}.onenote-start{flex-direction:column;align-items:flex-start;gap:.8rem;display:flex}.onenote-books{flex-direction:column;gap:.4rem;display:flex}.onenote-book{text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;gap:.7rem;padding:.6rem .8rem;display:flex}.onenote-icon{color:#fff;background:#7719aa;border-radius:7px;flex-shrink:0;place-items:center;width:30px;height:30px;font-weight:800;display:grid}.onenote-sections{flex-direction:column;gap:.45rem;max-height:50vh;display:flex;overflow-y:auto}.onenote-progress .progress-bar{background:#ecebf1;border-radius:4px;height:8px;overflow:hidden}.onenote-progress .progress-bar div{background:#7719aa;height:100%;transition:width .3s}@media (pointer:coarse){.item-bar button{padding:.55rem .9rem;font-size:.95rem}}.share-files{flex-direction:column;gap:.3rem;margin:0;padding-left:0;list-style:none;display:flex}.crop-clip{position:absolute;inset:0;overflow:hidden}.image-item.cropped img{object-fit:contain}.crop-overlay{z-index:12;touch-action:none;-webkit-user-select:none;user-select:none;position:absolute}.crop-source{object-fit:contain;pointer-events:none;background:#fff;width:100%;height:100%;position:absolute;inset:0}.crop-source.pdf .pdf-bg{width:100%;height:100%;position:absolute;inset:0}.crop-shade{pointer-events:none;background:#0f172a8c;position:absolute}.crop-rect{cursor:move;touch-action:none;background-image:linear-gradient(90deg,#ffffff59 1px,#0000 1px),linear-gradient(#ffffff59 1px,#0000 1px);background-position:-1px -1px;background-size:33.333% 33.333%;outline:2px solid #fff;position:absolute;box-shadow:0 0 0 1px #0f172a99,inset 0 0 0 1px #0f172a4d}.crop-handle{border:3px solid var(--accent);touch-action:none;background:#fff;border-radius:50%;width:26px;height:26px;position:absolute;box-shadow:0 2px 6px #0000004d}.crop-handle.nw{cursor:nwse-resize;top:0;left:0}.crop-handle.n{cursor:ns-resize;top:0;left:50%}.crop-handle.ne{cursor:nesw-resize;top:0;left:100%}.crop-handle.e{cursor:ew-resize;top:50%;left:100%}.crop-handle.se{cursor:nwse-resize;top:100%;left:100%}.crop-handle.s{cursor:ns-resize;top:100%;left:50%}.crop-handle.sw{cursor:nesw-resize;top:100%;left:0}.crop-handle.w{cursor:ew-resize;top:50%;left:0}.crop-bar{transform-origin:0 0;background:var(--surface);box-shadow:var(--shadow);white-space:nowrap;border-radius:10px;gap:6px;padding:5px;display:flex;position:absolute}.crop-bar button{padding:.5rem .85rem}.painter{align-items:flex-start;gap:1rem;display:flex}.painter-canvas{border:1px solid var(--border-strong);touch-action:none;cursor:crosshair;border-radius:10px;flex-shrink:0;width:auto;max-width:min(100%,420px);max-height:60vh;display:block;box-shadow:0 2px 8px #1018281f}.painter-tools{flex-direction:column;flex:1;gap:.7rem;min-width:0;display:flex}@media (width<=760px){.painter{flex-direction:column;align-items:stretch}.painter-canvas{max-width:100%;max-height:50vh;margin:0 auto}}.groups-btn{white-space:nowrap}.share-badge{background:#fff;border-radius:50%;place-items:center;width:30px;height:30px;font-size:.95rem;display:grid;position:absolute;bottom:6px;right:6px;box-shadow:0 1px 4px #00000040}.groups-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;display:flex}.join-form{gap:.4rem;display:flex}.join-form input{text-transform:uppercase;letter-spacing:.08em;width:9.5rem}.group-list{flex-direction:column;gap:.5rem;display:flex}.group-card{border:1px solid var(--border);background:var(--surface);border-radius:12px}.group-card.open{box-shadow:var(--shadow);border-color:#d8ccfb}.group-head{text-align:left;background:0 0;border:0;align-items:center;gap:.7rem;width:100%;padding:.7rem .9rem;display:flex}.group-icon{background:#ecebf1;border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.group-title{flex-direction:column;flex:1;display:flex}.group-body{flex-direction:column;gap:.6rem;padding:0 .9rem .9rem;display:flex}.invite-code{letter-spacing:.15em;background:#f5f4f8;border-radius:8px;padding:.3rem .7rem;font-size:1.15rem;font-weight:700}.member-list{flex-direction:column;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.member-list li{flex-wrap:wrap;align-items:center;gap:.55rem;display:flex}.member-list .avatar{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:28px;height:28px;font-size:.85rem;font-weight:700;display:grid}.member-name{font-weight:600}.member-name .badge{margin-left:.4rem}.share-groups{flex-direction:column;gap:.5rem;display:flex}.share-row{border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;padding:.5rem .7rem;display:flex}.toast{z-index:970;color:#fff;box-shadow:var(--shadow);background:#1f2937;border-radius:12px;max-width:min(92vw,520px);padding:.7rem 1.1rem;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.readonly-bar{color:#92400e;text-align:center;background:#fef3c7;border-bottom:1px solid #fde68a;padding:.45rem 1rem;font-size:.9rem}.peers{align-items:center;margin-right:4px;display:flex}.peer{color:#fff;border:2px solid #fff;border-radius:50%;place-items:center;width:32px;height:32px;margin-left:-6px;padding:0;font-size:.85rem;font-weight:700;display:grid;position:relative;box-shadow:0 1px 3px #00000040}.peer:first-child{margin-left:0}.peer-page{color:#334155;background:#fff;border-radius:8px;min-width:15px;height:15px;padding:0 3px;font-size:.6rem;font-weight:700;line-height:15px;position:absolute;bottom:-4px;right:-4px;box-shadow:0 0 0 1px #00000026}.peer.more{background:#94a3b8;display:grid}.play section{margin-bottom:1.6rem}.play h2{margin:0 0 .6rem;font-size:1.05rem}.duel-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:.8rem;margin-bottom:.5rem;padding:.7rem .9rem;display:flex}.duel-icon{background:#fef3c7;border-radius:12px;flex-shrink:0;place-items:center;width:42px;height:42px;font-size:1.3rem;display:grid}.duel-icon.big{border-radius:20px;width:72px;height:72px;font-size:2.2rem}.duel-main{flex-direction:column;flex:1;min-width:0;display:flex}.board{border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:12px;width:100%;overflow:hidden}.board th,.board td{text-align:left;border-bottom:1px solid var(--border);padding:.5rem .7rem}.board th{color:var(--text-muted);background:#f8fafc;font-size:.8rem;font-weight:600}.board tr.me td{background:#f5f4f8}.game-tiles{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.7rem;display:grid}.game-tile{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;align-items:center;gap:.25rem;padding:1rem;font-size:.95rem;display:flex}.game-tile>span:first-child{font-size:1.8rem}.game-tile.soon{opacity:.6}.duel-screen{flex-direction:column;gap:1rem;max-width:720px;margin:0 auto;display:flex}.duel-hero{text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;align-items:center;gap:.4rem;padding:1.2rem;display:flex}.duel-hero h2{margin:.3rem 0 0}.big-btn{margin-top:.4rem;padding:.8rem 1.6rem;font-size:1.1rem}.review ol{flex-direction:column;gap:.5rem;padding-left:1.2rem;display:flex}.review li{flex-direction:column;display:flex}.review li.ok span:first-of-type{color:#15803d}.review li.bad span:first-of-type{color:#b91c1c}.duel-player{flex-direction:column;gap:1rem;max-width:720px;margin:0 auto;display:flex}.duel-status{justify-content:space-between;font-weight:600;display:flex}.duel-score{color:var(--accent)}.countdown{background:#e2e8f0;border-radius:5px;height:10px;overflow:hidden}.countdown div{height:100%;transition:width .1s linear,background .3s}.duel-question{margin:.4rem 0;font-size:clamp(1.2rem,3vw,1.6rem)}.duel-options{grid-template-columns:1fr 1fr;gap:.7rem;display:grid}@media (width<=600px){.duel-options{grid-template-columns:1fr}}.duel-option{text-align:left;border:2px solid var(--border);background:var(--surface);border-radius:14px;align-items:center;gap:.7rem;min-height:64px;padding:.9rem 1rem;font-size:1.02rem;display:flex}.opt-letter{width:30px;height:30px;color:var(--accent);background:#ecebf1;border-radius:50%;flex-shrink:0;place-items:center;font-weight:800;display:grid}.duel-option.right{background:#dcfce7;border-color:#16a34a}.duel-option.wrong{background:#fee2e2;border-color:#dc2626}.duel-option.dim{opacity:.5}button.game-tile{cursor:pointer}button.game-tile:hover:not(:disabled){border-color:var(--accent);box-shadow:var(--shadow)}.game-list{margin-top:.7rem}.duel-card.my-turn{border-color:var(--accent);background:#faf8ff}.game-screen{flex-direction:column;gap:1rem;max-width:900px;margin:0 auto;display:flex}.game-head{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;padding:.8rem 1rem;display:flex}.game-vs{font-size:1.05rem;font-weight:700}.game-status{background:#f1f5f9;border-radius:999px;padding:.35rem .8rem;font-weight:600}.game-status.my-turn{color:#15803d;background:#dcfce7;animation:1.6s ease-in-out infinite pulse}.game-status.done{color:#92400e;background:#fef3c7}.ttt-wrap{flex-direction:column;align-items:center;display:flex}.ttt{aspect-ratio:1;grid-template-columns:repeat(3,1fr);gap:8px;width:min(90vw,360px);display:grid}.ttt-cell{border:2px solid var(--border);background:var(--surface);border-radius:16px;padding:0;font-size:clamp(2rem,9vw,3.4rem)}.ttt-cell:not(:disabled):hover{background:#f5f4f8}.ttt-cell.win{background:#dcfce7;border-color:#16a34a}.ships-setup,.ships-boards{flex-direction:column;align-items:center;gap:.8rem;display:flex}.ships-boards{flex-flow:wrap;justify-content:center;align-items:flex-start;gap:1.4rem}.ships-boards h3{margin:0 0 .4rem;font-size:1rem}.bs-grid{aspect-ratio:1;background:#bfdbfe;border-radius:10px;grid-template-columns:repeat(10,1fr);gap:2px;width:min(92vw,420px);padding:3px;display:grid}.bs-grid.small{width:min(70vw,260px)}.bs-cell{background:#e0f2fe;border:0;border-radius:3px;padding:0;font-size:clamp(.6rem,2.4vw,1rem);line-height:1}.bs-cell.target{cursor:crosshair}.bs-cell.target:hover{background:#fde68a}.bs-cell.ship{background:#64748b}.bs-cell.ship.reveal{background:#94a3b8}.bs-cell.miss{color:#64748b;background:#f1f5f9}.bs-cell.hit{background:#fecaca}.bs-cell.hit.ship{background:#f87171}.bs-cell.sunk{background:#b91c1c}.game-head-right{align-items:center;gap:.5rem;display:flex}.sound-btn{font-size:1.2rem}.fleet-choice{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.fleet-option{text-align:left;border:2px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;align-items:flex-start;gap:.35rem;padding:.6rem .8rem;display:flex}.fleet-option.active{border-color:var(--accent);background:#f5f4f8}.fleet-shapes{flex-wrap:wrap;align-items:flex-end;gap:6px;display:flex}.shape-icon rect{fill:#475569}.fleet-chip{white-space:nowrap;align-items:center;gap:4px;margin:0 8px 4px 0;font-size:.85rem;display:inline-flex}.ships-boards{position:relative}.bs-cell{position:relative;overflow:visible}.bs-cell.fx-hit,.bs-cell.fx-sunk{z-index:3;animation:.8s ease-out hitFlash}@keyframes hitFlash{0%{background:#fff7ae;transform:scale(.6);box-shadow:0 0 #fb923ce6}25%{background:#fb923c;transform:scale(1.5);box-shadow:0 0 22px 10px #fb923ccc}to{transform:scale(1);box-shadow:0 0 #fb923c00}}.bs-cell.fx-sunk{animation:1s ease-out hitFlash,1.4s ease-out sinkGlow}@keyframes sinkGlow{50%{filter:brightness(1.6)saturate(1.6)}}.sparks{pointer-events:none;width:0;height:0;position:absolute;inset:50% auto auto 50%}.sparks i{transform-origin:2px 2px;background:linear-gradient(#fde047,#f97316);border-radius:2px;width:4px;height:14px;animation:.7s ease-out forwards spark;position:absolute;top:-2px;left:-2px}@keyframes spark{0%{opacity:1;translate:0;scale:1 .3}to{opacity:0;translate:0 -26px;scale:1}}.sparks i{animation-name:sparkOut}@keyframes sparkOut{0%{opacity:1;height:4px}60%{opacity:1}to{opacity:0;height:22px;margin-top:-22px}}.ripple{pointer-events:none;border:2px solid #0ea5e9;border-radius:50%;width:6px;height:6px;margin:-3px 0 0 -3px;animation:.9s ease-out forwards ripple;position:absolute;inset:50% auto auto 50%}@keyframes ripple{to{opacity:0;width:46px;height:46px;margin:-23px 0 0 -23px}}.bs-cell.fx-miss{animation:.6s ease-out splashCell}@keyframes splashCell{0%{background:#7dd3fc}}.bs-grid.shake{animation:.5s ease-in-out shake}.bs-banner{z-index:980;pointer-events:none;letter-spacing:.04em;color:#fff;text-shadow:0 4px #00000040,0 0 30px #00000059;white-space:nowrap;font-size:clamp(2rem,8vw,4.2rem);font-weight:900;animation:1.6s ease-out forwards bannerPop;position:fixed;top:38%;left:50%;transform:translate(-50%,-50%)}.bs-banner.hit{color:#fb923c}.bs-banner.sunk{color:#ef4444;font-size:clamp(2.4rem,10vw,5rem)}.bs-banner.miss{color:#0ea5e9;font-size:clamp(1.6rem,6vw,3rem)}.bs-banner.incoming{color:#dc2626;font-size:clamp(1.3rem,5vw,2.4rem)}@keyframes bannerPop{0%{opacity:0;transform:translate(-50%,-50%)scale(.3)}15%{opacity:1;transform:translate(-50%,-50%)scale(1.15)}25%{transform:translate(-50%,-50%)scale(1)}80%{opacity:1}to{opacity:0;transform:translate(-50%,-60%)scale(1)}}.ttt-cell.fresh{animation:.45s pop}.waiting-dots:after{content:"…";animation:1.2s ease-in-out infinite pulse}.confetti{pointer-events:none;z-index:975;position:fixed;inset:0;overflow:hidden}.confetti span{border-radius:2px;width:9px;height:14px;animation-name:confettiFall;animation-timing-function:linear;animation-fill-mode:forwards;position:absolute;top:-20px}@keyframes confettiFall{to{top:105%;transform:rotate(720deg)translate(40px)}}.ttt{grid-template-rows:repeat(3,1fr)}.ttt-cell{place-items:center;width:100%;min-width:0;height:100%;min-height:0;line-height:1;display:grid;overflow:hidden}.friends{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:.9rem 1rem}.friends h2{margin:0}.my-code{color:var(--text-muted);align-items:center;gap:.4rem;margin-left:auto;font-size:.9rem;display:inline-flex}.my-code code{letter-spacing:.12em;color:var(--accent);background:#f5f4f8;border-radius:6px;padding:.15rem .5rem;font-weight:700}.friend-add{gap:.5rem;margin:.7rem 0;display:flex}.friend-add input{flex:1;min-width:0}.friend-list,.friend-requests{flex-direction:column;gap:.4rem;display:flex}.friend-row{background:#f8fafc;border-radius:10px;flex-wrap:wrap;align-items:center;gap:.6rem;padding:.45rem .6rem;display:flex}.friend-row.request{background:#fef9c3}.friend-row .avatar{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:32px;height:32px;font-weight:700;display:grid}.friend-name{flex:1;min-width:120px}.friend-actions{flex-wrap:wrap;gap:.3rem;display:flex}.pending-req{margin-right:.6rem}.bs-grid{grid-template-rows:repeat(10,1fr)}.bs-cell{place-items:center;width:100%;min-width:0;height:100%;min-height:0;font-size:clamp(.55rem,2.2vw,.95rem);line-height:1;display:grid}.bs-cell.miss{background:#cbd5e1}.miss-mark{color:#334155;font-size:1.1em;font-weight:900}.bs-cell.miss.fx-miss{animation:.6s ease-out splashCell}.rule-note{margin:-.2rem 0 .4rem}.fleet-editor{flex-direction:column;align-items:center;gap:.6rem;display:flex}.bs-grid.editor{touch-action:none;-webkit-user-select:none;user-select:none}.bs-grid.editor .bs-cell.ship{cursor:grab}.bs-cell.ship.selected{background:var(--accent);box-shadow:inset 0 0 0 2px #fff}.bs-cell.ship.conflict{background:#ef4444;animation:1s ease-in-out infinite pulse}.arty-screen{max-width:1100px}.arty-players{flex-wrap:wrap;gap:.4rem;display:flex}.arty-player{background:var(--surface-2,#0001);border-radius:999px;align-items:center;gap:.3rem;padding:.15rem .55rem;font-size:.85rem;display:inline-flex}.arty-player i{border-radius:50%;width:.7rem;height:.7rem;display:inline-block}.arty-player.active{outline:2px solid var(--accent);font-weight:600}.arty-player.dead{opacity:.45;text-decoration:line-through}.arty-field{border-radius:14px;width:100%;overflow:hidden;box-shadow:0 6px 24px #0003}.arty-field.shake{animation:.45s ease-in-out artyShake}@keyframes artyShake{0%,to{transform:translate(0)}20%{transform:translate(-8px,4px)}40%{transform:translate(7px,-5px)}60%{transform:translate(-5px,3px)}80%{transform:translate(3px,-2px)}}.arty-svg{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:auto;display:block}.arty-svg.can-aim{cursor:crosshair}.arty-tank{transition:transform .6s cubic-bezier(.5,0,.9,.6)}.arty-name{fill:#fff;paint-order:stroke;stroke:#0008;stroke-width:3px;font-size:15px;font-weight:600}.arty-wind text{fill:#fff;font-size:18px;font-weight:600}.arty-wind line{stroke:#e2e8f0;stroke-width:4px}.arty-wind polygon{fill:#e2e8f0}.arty-aim{stroke:#fff;stroke-width:3px;stroke-dasharray:6 8;stroke-linecap:round;opacity:.8}.arty-trail{fill:none;stroke:#fde68a;stroke-width:2.5px;stroke-dasharray:2 6;stroke-linecap:round;opacity:.85}.arty-shell{fill:#111;stroke:#fde68a;stroke-width:2px}.arty-boom{fill:#f97316;opacity:0;transform-box:fill-box;transform-origin:50%;animation:.8s ease-out artyBoom}.arty-boom.core{fill:#fef08a;animation-duration:.5s}@keyframes artyBoom{0%{opacity:1;transform:scale(.15)}60%{opacity:.8}to{opacity:0;transform:scale(1)}}.arty-float{fill:#fecaca;paint-order:stroke;stroke:#7f1d1d;stroke-width:4px;font-size:30px;font-weight:900;animation:1.6s ease-out forwards artyFloat}@keyframes artyFloat{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-50px)}}.arty-controls{grid-template-columns:1fr 1fr;align-items:center;gap:.6rem 1rem;margin-top:.8rem;display:grid}.arty-controls.waiting{opacity:.55}.arty-slider{flex-direction:column;gap:.2rem;display:flex}.arty-step{align-items:center;gap:.35rem;display:flex}.arty-step input{flex:1;min-width:0}.arty-step button{width:2.2rem;height:2.2rem;padding:0}.arty-weapons{flex-wrap:wrap;gap:.4rem;display:flex}.arty-weapons button{align-items:center;gap:.3rem;display:flex}.arty-weapons button.active{outline:2px solid var(--accent);font-weight:600}.arty-wicon{font-size:1.1em}.arty-fire{padding:.7rem 1rem;font-size:1.15rem}.arty-hint{margin-top:.4rem}.arty-picks{flex-direction:column;gap:.3rem;display:flex}@media (width<=640px){.arty-controls{grid-template-columns:1fr}}.arty-fire{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.btn-primary.arty-fire.charging:not(:disabled){background:linear-gradient(90deg, #f97316 0%, #ef4444 var(--p), var(--accent) var(--p));transform:scale(1.03)}.friend-chips{flex-wrap:wrap;gap:.4rem;display:flex}.friend-chip{background:var(--surface-2,#0001);border-radius:999px;align-items:center;gap:.4rem;padding:.2rem .7rem .2rem .25rem;font-size:.9rem;display:inline-flex}.friend-chip .avatar{width:1.6rem;height:1.6rem;font-size:.8rem}.person-section{flex-direction:column;gap:.3rem;margin-bottom:.5rem;display:flex}.share-head{margin:.6rem 0 .2rem;font-size:.9rem}.arty-field{position:relative}.arty-tank.driving{transition:none}.arty-hud{pointer-events:none;--hud-bg:#0f172a9e;position:absolute;inset:0}.arty-hud>*{pointer-events:auto}.arty-hud.waiting .arty-hud-drive,.arty-hud.waiting .arty-hud-fire{opacity:.45}.arty-hud button{color:#fff;background:var(--hud-bg);-webkit-backdrop-filter:blur(4px);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border:1px solid #ffffff40}.arty-hud button:disabled{opacity:.45}.arty-hud-weapons{gap:6px;display:flex;position:absolute;top:8px;left:8px}.arty-hud-weapons button{border-radius:999px;align-items:center;gap:5px;padding:5px 9px;font-size:.85rem;display:flex}.arty-hud-weapons button.active{color:#111;background:#f59e0b;border-color:#fde68a;font-weight:700;box-shadow:0 0 0 3px #fde68a73,0 0 14px #f59e0bb3}.arty-hud-weapons button.active:disabled{opacity:1}.arty-wcount{opacity:.8;font-size:.8em}.arty-hud-drive{align-items:center;gap:6px;display:flex;position:absolute;bottom:8px;left:8px}.arty-pad{border-radius:14px;width:52px;height:52px;padding:0;font-size:1.3rem}.arty-pad.small{border-radius:10px;width:36px;height:36px;font-size:1.1rem}.arty-fuel{background:var(--hud-bg);color:#fff;border-radius:999px;width:64px;height:22px;padding-left:6px;font-size:.75rem;line-height:22px;position:relative;overflow:hidden}.arty-fuel i{background:#22c55e;border-radius:4px;max-width:36px;height:8px;transition:width .1s;position:absolute;top:7px;left:22px}.arty-hud-fire{flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;bottom:8px;right:8px}.arty-angle{color:#fff;align-items:center;gap:6px;font-size:.9rem;font-weight:700;display:flex}.arty-angle span{background:var(--hud-bg);text-align:center;border-radius:999px;min-width:72px;padding:4px 9px}.arty-hud .arty-fire{background:#dc2626;border-color:#fecaca;border-radius:14px;min-width:120px;height:52px;font-size:1.1rem}.arty-hud .btn-primary.arty-fire.charging:not(:disabled){background:linear-gradient(90deg, #f97316 0%, #ef4444 var(--p), #0f172ab3 var(--p))}@media (hover:hover) and (pointer:fine){.arty-hud-drive .arty-pad,.arty-angle .arty-pad{display:none}}@media (width<=640px){.arty-wname{display:none}.arty-pad{width:42px;height:42px}.arty-hud .arty-fire{min-width:92px;height:42px;font-size:.95rem}.arty-hud-weapons button{padding:3px 7px}}@media (width<=480px){.arty-hud-weapons{gap:4px;top:5px;left:5px}.arty-hud-weapons button{padding:2px 6px;font-size:.72rem}.arty-hud-drive{gap:4px;bottom:5px;left:5px}.arty-hud-fire{gap:4px;bottom:5px;right:5px}.arty-pad{border-radius:10px;width:36px;height:36px;font-size:1rem}.arty-pad.small{width:28px;height:28px;font-size:.9rem}.arty-fuel{width:44px;height:18px;padding-left:4px;font-size:.6rem;line-height:18px}.arty-fuel i{max-width:24px;top:5px;left:16px}.arty-angle{gap:4px;font-size:.72rem}.arty-angle span{min-width:56px;padding:2px 6px}.arty-hud .arty-fire{border-radius:10px;min-width:76px;height:36px;font-size:.85rem}}.ttt-mark{fill:none;stroke-width:13px;stroke-linecap:round;width:72%;height:72%}.ttt-mark.x{stroke:#e11d48}.ttt-mark.o{stroke:#2563eb}.ttt-mark line,.ttt-mark circle{stroke-dasharray:1;stroke-dashoffset:0}.ttt-cell.fresh .ttt-mark line,.ttt-cell.fresh .ttt-mark circle{animation:.35s ease-out both tttDraw}.ttt-cell.fresh .ttt-mark line.second{animation-delay:.18s}@keyframes tttDraw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.ttt-mark.small{vertical-align:-.25em;stroke-width:15px;width:1.2em;height:1.2em}.ttt-cell.win .ttt-mark.x{filter:drop-shadow(0 0 6px #e11d4899)}.ttt-cell.win .ttt-mark.o{filter:drop-shadow(0 0 6px #2563eb99)}.dirt .arty-boom{fill:#92400e}.dirt .arty-boom.core{fill:#a16207}.arty-shell.roller{fill:#1f2937;stroke:#f59e0b;stroke-width:3px;stroke-dasharray:4 3}.arty-shell.dirt{fill:#78350f;stroke:#d97706}.arty-smoke circle{fill:#6b7280;opacity:.55;animation:2.4s ease-in-out infinite alternate artySmoke}.arty-smoke circle:nth-child(2){animation-delay:.6s}.arty-smoke circle:nth-child(3){animation-delay:1.2s}@keyframes artySmoke{0%{opacity:.25;transform:translateY(2px)}to{opacity:.6;transform:translateY(-4px)}}.arty-hud-weapons{flex-wrap:wrap;max-width:calc(100% - 16px)}.ttt-cell:disabled{opacity:1;cursor:default}.arty-ex circle,.arty-ex rect,.arty-ex line,.arty-ex text{transform-box:fill-box;transform-origin:50%}.ex-flash{fill:#fff;opacity:0;animation:.18s ease-out exFlash}@keyframes exFlash{0%{opacity:.85}to{opacity:0}}.ex-ring{fill:none;stroke:#fde68a;stroke-width:4px;opacity:0;animation:.5s ease-out exRing}.ex-ring.second{stroke:#fff;stroke-width:2.5px;animation-duration:.75s}.dirt .ex-ring{stroke:#d6a35c}@keyframes exRing{0%{opacity:1;transform:scale(.15)}to{opacity:0;transform:scale(1)}}.ex-fire{fill:url(#ex-fire);opacity:0;animation:.75s ease-out exFire}.ex-fire.mid{animation-duration:.6s}.ex-fire.core{animation-duration:.45s}@keyframes exFire{0%{opacity:1;transform:scale(.1)}35%{opacity:1;transform:scale(1.1)}to{opacity:0;transform:scale(1.3)translateY(-8%)}}.ex-dust{fill:url(#ex-dust);opacity:0;animation:.9s ease-out exFire}.ex-smoke{fill:url(#ex-smoke);opacity:0;animation:1.4s ease-out both exSmoke}.dirt .ex-smoke{fill:url(#ex-dust)}@keyframes exSmoke{0%{opacity:0;transform:scale(.3)translateY(0)}25%{opacity:.8}to{opacity:0;transform:scale(1.5)translateY(-60%)}}.ex-spark{stroke:#fef08a;stroke-width:3px;stroke-linecap:round;stroke-dasharray:.3 1;stroke-dashoffset:.3px;opacity:0;animation:.45s ease-out both exSpark}@keyframes exSpark{0%{stroke-dashoffset:.3px;opacity:1}to{stroke-dashoffset:-.75px;opacity:.2}}.ex-debris{fill:#fbbf24;opacity:0;animation:1s cubic-bezier(.2,.6,.4,1) both exDebris}.ex-debris.dark{fill:#292524}.dirt .ex-debris{fill:#92400e}.dirt .ex-debris.dark{fill:#57534e}@keyframes exDebris{0%{opacity:1;transform:translate(0)rotate(0)}55%{transform:translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * .6));opacity:1}to{transform:translate(calc(var(--dx) * 1.3), calc(var(--dy) + var(--fall))) rotate(var(--rot));opacity:0}}.ex-label{fill:#fde047;paint-order:stroke;stroke:#7f1d1d;stroke-width:6px;letter-spacing:1px;font-size:34px;font-weight:900;animation:1.4s ease-out both exLabel}.direct .ex-label{fill:#fff;stroke:#b91c1c;font-size:44px}@keyframes exLabel{0%{opacity:0;transform:scale(.2)}15%{opacity:1;transform:scale(1.25)}30%{transform:scale(1)}80%{opacity:1}to{opacity:0;transform:translateY(-30px)}}.arty-tank.hit>g{animation:.7s ease-out tankHit}@keyframes tankHit{0%,30%,60%{filter:brightness(2.6)saturate(.4)}15%,45%,to{filter:none}10%{transform:translate(-3px)}20%{transform:translate(3px)}35%{transform:translate(-2px)}50%{transform:translate(0)}}.arty-field.shake.big{animation:.65s ease-in-out artyShakeBig}@keyframes artyShakeBig{0%,to{transform:translate(0)}10%{transform:translate(-14px,7px)}25%{transform:translate(12px,-9px)}40%{transform:translate(-9px,6px)}55%{transform:translate(7px,-4px)}70%{transform:translate(-4px,2px)}85%{transform:translate(2px,-1px)}}.sky-star{fill:#fff;animation:3s ease-in-out infinite alternate twinkle}@keyframes twinkle{0%{opacity:.25}to{opacity:.9}}.sky-drift{animation:30s linear infinite skyDrift}@keyframes skyDrift{0%{transform:translate(-260px)}to{transform:translate(1460px)}}.sky-streak{stroke:#e2e8f073;stroke-width:2px;stroke-linecap:round}.sky-streak.light{stroke:#fffc}.sky-flake{fill:#fff;opacity:.9;animation:9s linear infinite flakeFall}.sky-ember{fill:#fb923c;animation:6s linear infinite emberRise}@keyframes flakeFall{0%{transform:translateY(-20px)}to{transform:translate(var(--wx), 720px)}}@keyframes emberRise{0%{opacity:0;transform:translateY(700px)}15%{opacity:1}to{transform:translate(var(--wx), 150px);opacity:0}}.lava-edge{filter:drop-shadow(0 0 6px #f97316)}.volcano-glow ellipse{filter:drop-shadow(0 0 12px #f97316);animation:1.6s ease-in-out infinite alternate twinkle}.arty-theme{fill:#fff;opacity:.75;paint-order:stroke;stroke:#0007;stroke-width:3px;font-size:15px;font-weight:600}.arty-wind text{paint-order:stroke;stroke:#0008;stroke-width:3px}.arty-wind line,.arty-wind polygon{filter:drop-shadow(0 0 2px #0009)}.arty-aim.remote{stroke-width:3px;opacity:.9}.arty-tank.remote{transition:transform .12s linear}.arty-live-weapon{fill:#fde047;paint-order:stroke;stroke:#000a;stroke-width:3px;font-size:16px}.ruler{z-index:40;-webkit-backdrop-filter:blur(3px);touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:#f1f5f9b8;border:1px solid #4755698c;border-radius:8px;position:fixed;box-shadow:0 4px 16px #0f172a40}.ruler-scale{pointer-events:none;position:absolute;inset:0}.ruler-scale line{stroke:#334155;stroke-width:1px}.ruler-scale text{fill:#334155;font-size:10px;font-weight:600}.ruler-angle{color:#0f172a;pointer-events:none;background:#fffc;border-radius:999px;padding:0 7px;font-size:.8rem;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-2px)}.ruler-knob,.ruler-close{touch-action:none;background:#fff;border:1px solid #94a3b8;border-radius:50%;width:30px;height:30px;margin-top:-9px;padding:0;font-size:.95rem;line-height:1;position:absolute;top:50%}.ruler-knob{cursor:alias;left:34px}.ruler-close{right:34px}.field-label.sub{opacity:.8;margin-top:.5rem;font-size:.8rem}.custom-size{flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.5rem;display:flex}.custom-size label{align-items:center;gap:.3rem;font-size:.9rem;display:flex}.custom-size input{width:5.5rem}.share-badge.incoming{color:#fff;white-space:nowrap;text-overflow:ellipsis;background:#7a7096;border-radius:999px;width:auto;max-width:calc(100% - 12px);height:24px;padding:0 8px;font-size:.72rem;font-weight:600;overflow:hidden}.poster-photos{flex-wrap:wrap;gap:8px;display:flex}.poster-photo{border-radius:10px;width:76px;height:76px;position:relative;overflow:hidden;box-shadow:0 1px 4px #0003}.poster-photo img{object-fit:cover;width:100%;height:100%}.poster-photo button{color:#fff;background:#0f172ab3;border:none;border-radius:50%;width:22px;height:22px;padding:0;font-size:.7rem;position:absolute;top:3px;right:3px}.poster-add{border:2px dashed var(--border,#cbd5e1);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;width:76px;height:76px;font-size:1.5rem;line-height:1;display:flex}.poster-add span{margin-top:4px;font-size:.75rem}.poster-busy{text-align:center;flex-direction:column;align-items:center;gap:1rem;padding:2rem 0;display:flex}.poster-spinner{border:5px solid #7a709633;border-top-color:#7a7096;border-radius:50%;width:54px;height:54px;animation:.9s linear infinite posterSpin}@keyframes posterSpin{to{transform:rotate(360deg)}}.items.items-above,.items.items-top{pointer-events:none}.items.items-above>*,.items.items-top>*{pointer-events:auto}.items.items-top{z-index:3}.item-bar-layers{border-left:1px solid #fff3;border-right:1px solid #fff3;gap:2px;padding:0 4px;display:inline-flex}.choice-card{flex-direction:column;gap:6px;display:flex}.layer-pick{flex-wrap:wrap;align-items:center;gap:6px;padding:0 4px 4px;display:flex}.item-bar{flex-wrap:wrap;max-width:min(92vw,640px)}.svg-item img{width:100%;height:100%;display:block}.thumb-svg{position:absolute}.item-bar-colors{align-items:center;gap:4px;padding:0 4px;display:inline-flex}.color-swatch{cursor:pointer;border:2px solid #fff;border-radius:50%;width:22px;height:22px;position:relative;overflow:hidden;box-shadow:0 0 0 1px #00000040}.color-swatch input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.ai-dock{z-index:300;flex-direction:column;gap:8px;max-width:min(380px,100vw - 24px);display:flex;position:fixed;bottom:12px;left:12px}.ai-job{background:var(--surface,#fff);border-left:4px solid #7a7096;border-radius:14px;align-items:center;gap:10px;padding:10px 12px;animation:.25s ease-out aiJobIn;display:flex;box-shadow:0 8px 28px #0f172a38}.ai-job.done{border-left-color:#22c55e}.ai-job.error{border-left-color:#ef4444}.ai-job-text{flex-direction:column;flex:1;min-width:0;display:flex}.ai-job-text .small{text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ai-job-icon{place-items:center;width:24px;font-size:1.2rem;display:grid}.ai-job-spin{border:3px solid #7a709640;border-top-color:#7a7096;border-radius:50%;width:20px;height:20px;animation:.8s linear infinite posterSpin}@keyframes aiJobIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}.profile-page{flex-direction:column;gap:1rem;max-width:760px;margin:0 auto;padding-bottom:2rem;display:flex}.profile-hero{flex-wrap:wrap;align-items:center;gap:1.2rem;display:flex}.profile-avatar{color:#685f84;background:#ecebf1;border-radius:50%;flex:none;place-items:center;font-weight:700;display:inline-grid;overflow:hidden}.profile-avatar img{object-fit:cover;width:100%;height:100%}.profile-avatar.big{width:120px;height:120px;font-size:3rem;box-shadow:0 4px 16px #00000026}.profile-avatar-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.profile-row{flex-direction:column;gap:.35rem;display:flex}.profile-row-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.profile-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.vis-pick{border-radius:999px;padding:2px 6px;font-size:.8rem}.vis-note{opacity:.7;font-size:.75rem}.chip-input{border-radius:999px;width:9rem;padding:4px 10px;font-size:.85rem}.chip.strong{background:#dcfce7;border-color:#86efac}.profile-card-head{align-items:center;gap:1rem;margin-bottom:.8rem;display:flex}.profile-card-head h2{margin:0}.profile-tags{flex-direction:column;gap:.3rem;margin-top:.7rem;display:flex}.link-reset{cursor:pointer;text-align:left;color:inherit;font:inherit;background:0 0;border:none;margin:0;padding:0}.friend-name{flex-direction:column;display:flex}.help-finder{margin-top:1.2rem}.profile-grid .profile-row-head{flex-direction:column;align-items:flex-start;gap:.25rem}.doc-filters{flex-wrap:wrap;gap:.4rem;padding:0 1.25rem .6rem;display:flex}.fav-toggle{color:#94a3b8;z-index:2;opacity:0;background:#ffffffd9;border:none;border-radius:50%;width:30px;height:30px;padding:0;font-size:1.1rem;line-height:1;transition:opacity .15s;position:absolute;top:6px;left:6px;box-shadow:0 1px 4px #0003}.lib-card:hover .fav-toggle,.fav-toggle.on{opacity:1}@media (hover:none){.fav-toggle{opacity:.85}}.fav-toggle.on{color:#f59e0b}.poster-badge{color:#fff;background:#0f172abf;border-radius:999px;padding:1px 8px;font-size:.7rem;font-weight:600;position:absolute;bottom:6px;left:6px}.ai-poster-card{text-align:left;background:linear-gradient(135deg,#f5f4f8,#fdf4ff);border:2px solid #c8c2d6;border-radius:14px;align-items:center;gap:.8rem;width:100%;margin-bottom:.8rem;padding:.8rem 1rem;display:flex}.ai-poster-card span{flex-direction:column;display:flex}.ai-poster-icon{font-size:1.8rem}.color-chip{cursor:pointer;position:relative}.color-chip input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.fav-toggle{left:auto;right:6px}.color-swatch{padding:0}.color-swatch.on{box-shadow:0 0 0 3px var(--accent)}.color-panel{white-space:normal;border-top:1px solid #00000014;flex-direction:column;flex-basis:100%;gap:8px;padding:8px 4px 4px;display:flex}.color-grid{grid-template-columns:repeat(7,28px);gap:6px;display:grid}.color-dot{border:1px solid #0000002e;border-radius:50%;width:28px;height:28px;padding:0}.color-dot.on{box-shadow:0 0 0 3px #fff, 0 0 0 5px var(--accent)}.color-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.color-own{border:1px solid var(--border,#cbd5e1);cursor:pointer;border-radius:999px;align-items:center;padding:4px 10px;font-size:.85rem;display:inline-flex;position:relative}.color-own input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.color-hex{width:6.5rem;font-family:monospace}.color-preview{align-items:center;gap:4px;display:inline-flex}.color-preview i{border:1px solid #0003;border-radius:50%;width:22px;height:22px;display:inline-block}.color-grid{justify-content:start;width:max-content}.trash-fab{z-index:50;background:#fff;border:2px solid #c7d2fe;border-radius:50%;place-items:center;width:62px;height:62px;padding:0;transition:transform .15s,box-shadow .15s;display:grid;position:fixed;bottom:18px;right:18px;box-shadow:0 6px 20px #4338ca40}.trash-fab:hover,.trash-fab.drag-target{transform:scale(1.08)}.trash-fab.drop-over{border-color:#ef4444;transform:scale(1.22)rotate(-6deg);box-shadow:0 0 0 6px #ef444459,0 8px 24px #ef444466}.trash-count{color:#fff;background:#ef4444;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:.75rem;font-weight:700;display:grid;position:absolute;top:-4px;right:-4px}.trash-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:0 1.25rem .6rem;display:flex}.shred-all,.btn-danger{color:#fff;background:#ef4444;border-color:#dc2626;align-items:center;gap:6px;display:inline-flex}.lib-card.in-trash .lib-thumb{filter:grayscale(.7);opacity:.75}.trash-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px;display:flex}.trash-btns{gap:4px;display:inline-flex}.trash-btns .mini{align-items:center;display:inline-flex}.shred-confirm{align-items:center;gap:1rem;display:flex}.shredder-big .shred-strips{animation:1s ease-in-out infinite shredStrips}@keyframes shredStrips{0%,to{transform:translateY(0)}50%{transform:translateY(3px)}}.lib-card.shredding .lib-thumb{animation:.9s ease-in forwards shredCard;-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 10px,#0000 10px 13px);mask-image:repeating-linear-gradient(90deg,#000 0 10px,#0000 10px 13px)}@keyframes shredCard{0%{clip-path:inset(0);transform:translateY(0)}to{clip-path:inset(0 0 100%);opacity:0;transform:translateY(60%)}}.participants{flex-direction:column;gap:.5rem;display:flex}.participant{border-bottom:1px solid #0000000f;flex-wrap:wrap;align-items:center;gap:.6rem;padding:.4rem 0;display:flex}.participant.is-hidden{opacity:.55}.participant-main{flex-direction:column;flex:1;min-width:140px;display:flex}.participant-access{align-items:center;gap:.4rem;display:inline-flex}.participant-add{flex-direction:column;gap:.4rem;margin-top:.6rem;display:flex}.participant-add input{flex:1;min-width:160px}.cal-bar{flex-wrap:wrap;gap:.6rem}.cal-nav{align-items:center;gap:.4rem;display:flex}.cal-nav h1{margin:0 0 0 .4rem;font-size:1.3rem}.subject-brush{flex-direction:column;gap:.3rem;padding:0 1.25rem .5rem;display:flex}.subject-chip i{background:var(--c);border-radius:50%;width:10px;height:10px;margin-right:5px;display:inline-block}.subject-chip.active{background:var(--c);color:#fff;border-color:var(--c)}.subject-chip.active i{background:#fff}.cal-scroll{padding-bottom:2rem}.week{--gutter:48px;min-width:640px}.week-head,.week-allday{grid-template-columns:var(--gutter) repeat(7, 1fr);gap:2px;display:grid}.week-day{border-radius:10px;flex-direction:column;align-items:center;padding:4px 0;display:flex}.week-day b{font-size:1.15rem}.week-day.today{background:var(--accent);color:#fff}.week-allday{border-bottom:1px solid var(--border,#e2e8f0);align-items:start;padding:3px 0}.allday-cell{flex-direction:column;gap:2px;min-height:20px;display:flex}.week-grid{grid-template-columns:var(--gutter) repeat(7, 1fr);gap:2px;display:grid;position:relative}.week-hours{position:relative}.week-hours span{color:#94a3b8;font-size:.72rem;position:absolute;right:6px;transform:translateY(-50%)}.week-col{background:var(--surface,#fff);cursor:cell;border-radius:6px;position:relative}.week-col.today{background:color-mix(in srgb, var(--accent) 6%, var(--surface,#fff))}.week-col.brush{outline:2px dashed color-mix(in srgb, var(--accent) 45%, transparent)}.hour-line{border-top:1px solid #94a3b840;position:absolute;left:0;right:0}.ev{border:none;border-left:4px solid var(--c);background:color-mix(in srgb, var(--c) 18%, #fff);color:#0f172a;text-align:left;z-index:1;border-radius:7px;flex-direction:column;padding:2px 6px;font-size:.78rem;line-height:1.2;display:flex;position:absolute;left:3px;right:3px;overflow:hidden}.ev b{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ev small{opacity:.75}.now-line{z-index:2;border-top:2px solid #ef4444;position:absolute;left:0;right:0}.now-line:before{content:"";background:#ef4444;border-radius:50%;width:8px;height:8px;position:absolute;top:-5px;left:-4px}.ev-chip{text-align:left;background:color-mix(in srgb, var(--c) 22%, #fff);border:none;border-left:3px solid var(--c);white-space:nowrap;text-overflow:ellipsis;color:#0f172a;border-radius:6px;width:100%;padding:1px 6px;font-size:.72rem;display:block;overflow:hidden}.month{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.month-name{text-align:center;color:#64748b;font-size:.8rem;font-weight:600}.month-cell{background:var(--surface,#fff);cursor:pointer;border-radius:10px;flex-direction:column;gap:2px;min-height:92px;padding:4px;display:flex;overflow:hidden}.month-cell.other{opacity:.45}.month-cell.today .month-num{background:var(--accent);color:#fff}.month-num{border-radius:999px;align-self:flex-start;place-items:center;min-width:24px;height:24px;font-size:.85rem;font-weight:600;display:grid}.agenda section{margin-bottom:1rem}.agenda h3{margin:0 0 .4rem;font-size:.95rem}.agenda h3.today{color:var(--accent)}.agenda-row{text-align:left;border:none;border-left:5px solid var(--c);background:var(--surface,#fff);border-radius:10px;gap:.8rem;width:100%;margin-bottom:4px;padding:.5rem .7rem;display:flex}.agenda-time{color:#64748b;min-width:96px;font-size:.85rem}.cal-kinds{margin-bottom:.6rem}.cal-times{flex-wrap:wrap;align-items:flex-end;gap:.6rem;display:flex}.cal-until{flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.4rem;display:flex}.subjects{flex-direction:column;gap:.4rem;display:flex}.subject-row{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.subject-color{border:2px solid #fff;border-radius:50%;flex:none;width:30px;height:30px;padding:0;box-shadow:0 0 0 1px #0003}.subject-name{flex:1;min-width:140px}.subject-extra{width:7.5rem}.subject-palette{flex-wrap:wrap;flex-basis:100%;gap:6px;padding:4px 0 4px 36px;display:flex}.cal-settings{border-top:1px solid var(--border,#e2e8f0);flex-wrap:wrap;align-items:center;gap:.8rem 1.2rem;margin-top:1rem;padding-top:.8rem;display:flex}.cal-settings label{align-items:center;gap:.4rem;display:inline-flex}@media (width<=700px){.cal-scroll{overflow-x:auto}.month-cell{min-height:64px}}.chat-fab{z-index:60;color:#fff;background:linear-gradient(135deg,#857c9e,#7d7a96);border:none;border-radius:50%;width:56px;height:56px;padding:0;font-size:1.5rem;position:fixed;bottom:92px;right:18px;box-shadow:0 6px 20px #7d7a9666}.chat-fab.in-editor{bottom:18px}.chat-fab-badge{color:#fff;background:#ef4444;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:.75rem;font-weight:700;display:grid;position:absolute;top:-4px;right:-4px}.chat-panel{z-index:200;background:var(--surface,#fff);border-radius:18px;flex-direction:column;width:min(400px,100vw - 28px);height:min(600px,100vh - 90px);display:flex;position:fixed;bottom:14px;right:14px;overflow:hidden;box-shadow:0 16px 48px #0f172a4d}.chat-panel-close{z-index:2;border-radius:50%;width:30px;height:30px;padding:0;position:absolute;top:8px;right:8px}.chat-panel .conv-head{padding-right:44px}.chat-list{flex-direction:column;display:flex;overflow-y:auto}.chat-empty{padding:1rem}.chat-item{text-align:left;background:0 0;border:none;border-bottom:1px solid #0000000d;border-radius:0;align-items:center;gap:10px;padding:10px 12px;display:flex}.chat-item.active{background:color-mix(in srgb, var(--accent) 10%, transparent)}.chat-item-main{flex-direction:column;flex:1;min-width:0;display:flex}.chat-item-top{justify-content:space-between;gap:6px;display:flex}.chat-item-preview{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-group-icon{background:#ecebf1;border-radius:50%;place-items:center;width:38px;height:38px;font-size:1.2rem;display:grid}.chat-unread{background:var(--accent);color:#fff;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:.75rem;font-weight:700;display:grid}.chat-layout{flex:1;grid-template-columns:320px 1fr;min-height:0;display:grid}.chat-side{border-right:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);overflow-y:auto}.chat-main{flex-direction:column;min-width:0;min-height:0;display:flex}.chat-page{flex-direction:column;height:100%;display:flex}.chat-placeholder{text-align:center;max-width:420px;margin:auto;padding:2rem}.chat-placeholder span{font-size:3rem}@media (width<=760px){.chat-layout{grid-template-columns:1fr}.chat-layout.has-chat .chat-side,.chat-layout:not(.has-chat) .chat-main{display:none}}.conversation{flex-direction:column;flex:1;min-height:0;display:flex}.conv-head{border-bottom:1px solid var(--border,#e2e8f0);align-items:center;gap:8px;padding:8px 12px;display:flex}.conv-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.conv-members{display:flex}.conv-member{border:2px solid var(--surface,#fff);border-radius:50%;margin-left:-6px;transition:box-shadow .15s,transform .15s}.conv-member.in-call{box-shadow:0 0 0 2px #22c55e}.conv-member.speaking,.voice-peer.speaking .profile-avatar{transform:scale(1.08);box-shadow:0 0 0 3px #22c55e,0 0 16px 4px #22c55e99}.icon-btn.on{background:color-mix(in srgb, var(--accent) 15%, transparent)}.voice-btn.live{background:#dcfce7;animation:1.2s ease-in-out infinite alternate twinkle}.voice-btn small{font-size:.65rem}.conv-body{flex:1;min-height:0;display:flex}.conv-msgs{background:color-mix(in srgb, var(--accent) 3%, var(--bg,#f8fafc));flex-direction:column;flex:1;gap:4px;min-width:0;padding:12px;display:flex;overflow-y:auto}.msg{align-items:flex-end;gap:6px;max-width:85%;display:flex}.msg.mine{flex-direction:row-reverse;align-self:flex-end}.msg-avatar{flex:none;width:28px}.msg-bubble{background:var(--surface,#fff);border-radius:16px 16px 16px 4px;flex-direction:column;min-width:60px;padding:7px 10px 4px;display:flex;box-shadow:0 1px 2px #00000014}.msg.mine .msg-bubble{background:#ecebf1;border-radius:16px 16px 4px}.msg-name{color:var(--accent);font-size:.72rem;font-weight:700}.msg-text{white-space:pre-wrap;word-break:break-word}.msg-time{color:#94a3b8;align-self:flex-end;align-items:center;gap:4px;font-size:.65rem;display:inline-flex}.msg-del{color:#94a3b8;cursor:pointer;background:0 0;border:none;padding:0 2px;font-size:.7rem}.msg-system{color:#64748b;background:#94a3b826;border-radius:999px;align-self:center;margin:4px 0;padding:2px 10px;font-size:.75rem}.msg-image{object-fit:cover;border-radius:10px;width:100%;max-width:240px;max-height:260px;display:block}.msg-voice{align-items:center;gap:6px;display:flex}.msg-voice audio{max-width:210px;height:34px}.msg-file{color:inherit;align-items:center;gap:6px;display:inline-flex}.msg-doc{align-items:center;gap:8px;display:flex}.msg-doc>span:nth-child(2){flex-direction:column;display:flex}.msg-doc-icon{font-size:1.6rem}.composer{border-top:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);align-items:flex-end;gap:6px;padding:8px;display:flex}.composer textarea{resize:none;border-radius:18px;flex:1;max-height:120px;padding:8px 12px}.send-btn,.mic-btn{border-radius:50%;width:40px;height:40px;padding:0}.composer.recording{color:#ef4444;align-items:center;font-weight:600}.rec-dot{background:#ef4444;border-radius:50%;width:12px;height:12px;animation:.8s ease-in-out infinite alternate twinkle}.composer.recording span:nth-child(2){flex:1}.conv-error,.conv-busy{margin:4px 0;padding:0 12px}.notes-panel{border-left:1px solid var(--border,#e2e8f0);background:#fffbeb;flex-direction:column;gap:8px;width:280px;padding:10px;display:flex;overflow-y:auto}.conversation.compact .notes-panel{z-index:3;width:85%;position:absolute;inset:52px 0 60px auto;box-shadow:-8px 0 24px #0000001f}.notes-panel h3{margin:0;font-size:.95rem}.note-row{align-items:flex-start;gap:6px;display:flex}.note-row textarea{resize:vertical;min-height:30px;font:inherit;background:0 0;border:none;flex:1}.note-row.done textarea{opacity:.6;text-decoration:line-through}.voice-strip{background:#f0fdf4;border-bottom:1px solid #bbf7d0;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 12px;display:flex}.voice-live{color:#16a34a;font-size:.85rem;font-weight:700}.voice-peer{flex-direction:column;align-items:center;gap:2px;font-size:.7rem;display:flex}.voice-peer .profile-avatar{transition:box-shadow .12s,transform .12s}.voice-actions{gap:6px;margin-left:auto;display:flex}.voice-pill{z-index:250;background:#f0fdf4;border:1px solid #86efac;border-radius:999px;align-items:center;gap:8px;padding:6px 10px;display:flex;position:fixed;top:10px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #16a34a40}.voice-pill button{border-radius:999px;padding:2px 8px}.doc-pick-list{flex-direction:column;max-height:50vh;margin-top:.5rem;display:flex;overflow-y:auto}.doc-pick{text-align:left;background:0 0;border:none;border-bottom:1px solid #0000000d;border-radius:0;padding:8px}.project-folder-badge{color:#fff;background:#7a7096;border-radius:999px;padding:1px 8px;font-size:.7rem;font-weight:600;position:absolute;bottom:6px;left:6px}.project-panel{background:linear-gradient(135deg,#f5f4f8,#eef2ff);border:1px solid #dddae6;border-radius:18px;margin:0 0 1rem;padding:1rem}.project-head{flex-wrap:wrap;align-items:flex-start;gap:1rem;display:flex}.project-title{flex-direction:column;flex:1;gap:4px;min-width:220px;display:flex}.project-badge{color:#685f84;font-size:.8rem;font-weight:700}.project-goal{cursor:text;margin:0}.project-goal:hover{background:#fff9;border-radius:6px}.project-due{color:#475569;font-size:.85rem}.project-due.soon{color:#dc2626;font-weight:700}.project-members{display:flex}.project-members>span{margin-left:-6px}.project-actions{gap:6px;display:flex}.project-progress{background:#fffc;border-radius:999px;height:20px;margin:.8rem 0;position:relative;overflow:hidden}.project-progress i{background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .3s;position:absolute;inset:0 auto 0 0}.project-progress span{padding-left:10px;font-size:.75rem;font-weight:700;line-height:20px;position:relative}.project-cols{grid-template-columns:1.4fr 1fr;gap:1rem;display:grid}@media (width<=860px){.project-cols{grid-template-columns:1fr}}.project-box{background:#ffffffd9;border-radius:14px;flex-direction:column;gap:6px;padding:.8rem;display:flex}.project-box h3{margin:0;font-size:.95rem}.task-list{flex-direction:column;gap:4px;display:flex}.task-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.task-row.mine{background:#fef9c3;border-radius:8px;padding:2px 4px}.task-row.done .task-title{opacity:.55;text-decoration:line-through}.task-title{min-width:140px;font:inherit;background:0 0;border:none;flex:1}.task-row select,.task-row input[type=date]{max-width:9.5rem;font-size:.8rem}.task-add input{width:100%}.plan-roles{margin:0;padding-left:1.1rem;font-size:.85rem}.plan-phases{flex-direction:column;gap:4px;display:flex}.plan-phase{background:#faf5ff;border-left:4px solid #c8c2d6;border-radius:6px;justify-content:space-between;gap:6px;padding:4px 8px;font-size:.85rem;display:flex}.plan-phase.now{background:#ecebf1;border-left-color:#7a7096}.plan-phase.past{opacity:.5}.project-event{justify-content:space-between;align-items:center;font-size:.85rem;display:flex}.toast.feedback-thanks{z-index:400;color:#fff;cursor:pointer;background:#1e293b;border-radius:14px;max-width:min(520px,100vw - 24px);padding:12px 16px;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #0000004d}.feedback-prompt{background:linear-gradient(135deg,#fef9c3,#fef3c7);border:1px solid #fde68a;border-radius:14px;flex-wrap:wrap;align-items:center;gap:.8rem;margin:0 1.25rem .8rem;padding:.7rem 1rem;display:flex}.feedback-prompt>span:nth-child(2){flex:1;min-width:200px}.feedback-prompt-icon{font-size:1.6rem}.feedback-page{flex-direction:column;height:100%;display:flex}.feedback-layout{flex:1;grid-template-columns:340px 1fr;min-height:0;display:grid}.feedback-list{border-right:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);flex-direction:column;gap:4px;padding:.6rem;display:flex;overflow-y:auto}.small-seg{align-self:flex-start;margin-bottom:4px}.fb-item{text-align:left;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:8px;padding:8px;display:flex}.fb-item.active{background:color-mix(in srgb, var(--accent) 10%, transparent)}.fb-item.unread strong:after{content:" •";color:#ef4444}.fb-main{flex-direction:column;flex:1;min-width:0;display:flex}.fb-main strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fb-kind{font-size:1.3rem}.fb-kind.big{font-size:2rem}.fb-status{color:#fff;white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:.7rem;font-weight:700}.feedback-thread{min-width:0;padding:1rem;overflow-y:auto}.fb-thread{flex-direction:column;gap:.8rem;max-width:760px;display:flex}.fb-thread-head{align-items:center;gap:.8rem;display:flex}.fb-thread-head h2{margin:0}.fb-thread-head>div{flex:1}.fb-back{display:none}.fb-admin{background:#f1f5f9;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;display:flex}.fb-messages{flex-direction:column;gap:8px;display:flex}.fb-msg{background:var(--surface,#fff);border-radius:14px;max-width:85%;padding:8px 12px;box-shadow:0 1px 3px #00000014}.fb-msg p{white-space:pre-wrap;margin:0}.fb-msg.admin{background:#ecebf1;align-self:flex-end}.fb-who{color:var(--accent);font-size:.75rem;font-weight:700}.fb-shot{border-radius:8px;max-width:100%;max-height:320px;margin-top:6px}.fb-meta{margin-top:6px}.fb-reply{align-items:flex-end;gap:6px;display:flex}.fb-reply textarea{flex:1}.fb-delete{align-self:flex-start}@media (width<=760px){.feedback-layout{grid-template-columns:1fr}.feedback-layout.has-item .feedback-list,.feedback-layout:not(.has-item) .feedback-thread{display:none}.fb-back{display:inline-flex}}.ai-cover-chip{background:linear-gradient(135deg,#f5f4f8,#fdf4ff);border-color:#c8c2d6}.ai-cover{background:linear-gradient(135deg,#faf5ff,#fdf4ff);border:1px solid #dddae6;border-radius:12px;flex-direction:column;flex-basis:100%;gap:6px;margin-top:6px;padding:10px;display:flex}.ai-cover-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ai-cover-row>.muted:first-child{min-width:70px}.text-page{max-width:820px;margin:0 auto;padding:1rem 0 3rem;line-height:1.55}.text-page h2{margin:1.4rem 0 .4rem;font-size:1.1rem}.handbook-body h2{border-bottom:1px solid var(--border,#e2e8f0);margin-top:1.6rem;padding-bottom:4px}.handbook-body h3{margin:1rem 0 .3rem;font-size:1rem}.handbook-edit{width:100%;min-height:60vh;font-family:ui-monospace,monospace;font-size:.85rem}.modal-backdrop.privacy-ack{z-index:5000;background:#0f172a99;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.privacy-card{background:var(--surface,#fff);border-radius:18px;width:100%;max-width:480px;padding:1.4rem;box-shadow:0 20px 60px #00000059}.privacy-card h2{margin-top:0}.startup-hint{z-index:450;background:linear-gradient(135deg,#fef9c3,#fde68a);border:1px solid #fcd34d;border-radius:16px;flex-wrap:wrap;align-items:center;gap:.8rem;width:min(640px,100vw - 24px);padding:.8rem 1rem;animation:.35s ease-out aiJobIn;display:flex;position:fixed;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 12px 36px #0003}.startup-hint>span:nth-child(2){flex:1;min-width:220px}.startup-hint-icon{font-size:1.8rem}.startup-hint-actions{align-items:center;gap:.6rem;display:flex}.bot-icon{background:linear-gradient(135deg,#a39bb8,#60a5fa)}.bot-icon.small{width:30px;height:30px;font-size:1rem}.bot-item{background:linear-gradient(90deg,#f5f4f8,#0000)}.bot-suggest{margin-top:8px}.bot-answer p{margin:0 0 6px}.bot-answer ul{margin:0 0 6px;padding-left:1.1rem}.bot-answer h2,.bot-answer h3{margin:6px 0 4px;font-size:.95rem}.typing{gap:4px;padding:4px 2px;display:inline-flex}.typing i{background:#a39bb8;border-radius:50%;width:7px;height:7px;animation:1s ease-in-out infinite typingDot}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes typingDot{0%,to{opacity:.4;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}.chat-item{cursor:pointer}.chat-pin{color:#94a3b8;background:0 0;border:none;place-items:center;padding:2px 4px;transition:color .15s,transform .15s;display:inline-grid}.chat-pin:hover{color:#64748b}.chat-pin.on{color:#ef4444;transform:rotate(-30deg)}.chat-item.pinned{background:linear-gradient(90deg,#fef9c3,#0000)}.pinned-bar{z-index:190;pointer-events:none;align-items:flex-end;gap:8px;max-width:calc(100vw - 100px);display:flex;position:fixed;bottom:0;right:86px;overflow-x:auto}.pinned-slot{pointer-events:auto;flex-direction:column;flex:none;align-items:stretch;display:flex}.pinned-slot.open{width:min(340px,100vw - 110px)}.pinned-window{background:var(--surface,#fff);border-radius:14px 14px 0 0;flex-direction:column;height:min(460px,100vh - 140px);display:flex;position:relative;overflow:hidden;box-shadow:0 -6px 28px #0f172a40}.pinned-tab{color:#fff;cursor:pointer;-webkit-user-select:none;user-select:none;background:linear-gradient(135deg,#7a7096,#7d7a96);border-radius:12px 12px 0 0;align-items:center;gap:6px;max-width:220px;height:40px;padding:0 8px 0 6px;display:flex;box-shadow:0 -2px 12px #7d7a9659}.pinned-slot.open .pinned-tab{border-radius:0;max-width:none}.pinned-tab.has-unread{animation:1.4s ease-in-out infinite pinnedPulse}@keyframes pinnedPulse{0%,to{box-shadow:0 -2px 12px #7d7a9659}50%{box-shadow:0 -2px 20px #ef4444b3}}.pinned-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:.88rem;font-weight:600;overflow:hidden}.pinned-group-icon{background:#ffffff40;border-radius:50%;place-items:center;width:26px;height:26px;display:grid}.pinned-caret{opacity:.85;font-size:.8rem}.pinned-close{color:#fff;opacity:.7;background:0 0;border:none;padding:0 2px;font-size:.8rem}.pinned-close:hover{opacity:1}.pinned-tab .chat-unread{background:#ef4444}.pinned-window .conversation{min-height:0}.pinned-tab.bot-tab{background:linear-gradient(135deg,#a39bb8,#60a5fa)}.usage-page{flex-direction:column;gap:14px;max-width:980px;margin:0 auto;padding:16px;display:flex}.usage-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.usage-head h2{margin:0}.usage-head .seg{flex-wrap:wrap}.usage-cards{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;display:grid}.usage-card{background:var(--surface,#fff);border-radius:14px;flex-direction:column;gap:2px;padding:12px 14px;display:flex;box-shadow:0 2px 10px #0f172a12}.usage-card small{color:#64748b}.usage-card strong{font-size:1.4rem}.usage-section{background:var(--surface,#fff);border-radius:14px;padding:14px;box-shadow:0 2px 10px #0f172a12}.usage-section h3{margin:0 0 10px;font-size:1rem}.usage-bars{flex-direction:column;gap:8px;display:flex}.usage-bar-row{grid-template-columns:minmax(120px,220px) 1fr auto;align-items:center;gap:10px;display:grid}.usage-bar-label{flex-direction:column;min-width:0;display:flex}.usage-bar-label span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.usage-bar-track{background:#eef2f7;border-radius:6px;height:12px;overflow:hidden}.usage-bar-fill{background:linear-gradient(90deg,#857c9e,#7d7a96);border-radius:6px;height:100%}.usage-bar-val{flex-direction:column;align-items:flex-end;min-width:70px;display:flex}.usage-daily{align-items:flex-end;gap:3px;height:140px;display:flex;overflow-x:auto}.usage-day{flex-direction:column;flex:1 0 14px;justify-content:flex-end;align-items:center;gap:3px;height:100%;display:flex}.usage-day-bar{background:linear-gradient(#a39bb8,#7d7a96);border-radius:4px 4px 0 0;width:100%}.usage-day small{color:#94a3b8;font-size:.65rem}.usage-people{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;display:grid}.usage-person{text-align:left;background:#fafbff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;align-items:flex-start;gap:1px;padding:10px 12px;display:flex}.usage-person:hover{border-color:#857c9e}.usage-person small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.usage-table-wrap{overflow-x:auto}.usage-table{border-collapse:collapse;width:100%;font-size:.85rem}.usage-table th,.usage-table td{text-align:left;vertical-align:top;border-bottom:1px solid #eef2f7;padding:6px}.usage-table input{width:72px;padding:4px 6px}.usage-table .block{max-width:220px;display:block}.usage-mini{background:#f6f5f8;border:1px solid #e8e6ee;border-radius:12px;margin:8px 0;padding:10px 12px}.usage-mini-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.usage-mini p{margin:6px 0 0}@media (width<=560px){.usage-bar-row{grid-template-columns:1fr auto}.usage-bar-track{grid-area:2/1/auto/-1}}.text-content.on-lines p,.text-content.on-lines h1,.text-content.on-lines h2,.text-content.on-lines h3,.text-content.on-lines ul,.text-content.on-lines ol,.text-content.on-lines li,.text-content.on-lines blockquote{line-height:inherit;margin:0}.text-content.on-lines h1,.text-content.on-lines h2,.text-content.on-lines h3{font-size:inherit}.text-content.has-bg{border-radius:8px}.fmt-wide{align-items:center;gap:4px;max-width:150px;display:inline-flex}.fmt-wide span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.fmt.on{background:var(--accent-soft,#ecebf1);border-color:var(--accent,#7a7096);color:var(--accent,#7a7096)}.fmt-size{text-align:center;font-variant-numeric:tabular-nums;min-width:34px}.fmt-color{flex-direction:column;justify-content:center;align-items:center;font-weight:700;line-height:1;display:inline-flex}.fmt-color i{border-radius:2px;width:18px;height:4px;margin-top:2px;display:block}.fmt-bg-icon{border:1px solid #0003;border-radius:4px;width:18px;height:18px;display:inline-block}.swatch-grid{grid-template-columns:repeat(6,30px);gap:6px;display:grid}.swatch-grid .swatch{width:30px;height:30px}.swatch.none{background:linear-gradient(135deg,#fff 45%,#ef4444 45% 55%,#fff 55%)}.size-grid{grid-template-columns:repeat(5,1fr);gap:4px;display:grid}.size-grid button.active,.font-choice.active{outline:2px solid var(--accent,#7a7096)}.text-content.on-lines span,.text-content.on-lines font,.text-content.on-lines b,.text-content.on-lines strong,.text-content.on-lines i,.text-content.on-lines em,.text-content.on-lines u,.text-content.on-lines s,.text-content.on-lines strike,.text-content.on-lines mark,.text-content.on-lines a{line-height:0}.budget-bar{background:var(--surface,#fff);border-radius:14px;flex-direction:column;gap:6px;padding:12px 14px;display:flex;box-shadow:0 2px 10px #0f172a12}.budget-bar.compact{box-shadow:none;background:0 0;padding:4px 0}.budget-bar-head{justify-content:space-between;gap:8px;font-size:.9rem;display:flex}.budget-bar p{margin:0}.testrun-settings{flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:8px;display:flex}.money-input{width:70px;padding:4px 6px}.tpl-picker{flex-direction:column;gap:8px;margin:10px 0;display:flex}.tpl-grid{gap:10px;padding:4px 2px 8px;display:flex;overflow-x:auto}.tpl-card{background:#f6f5fb;border:2px solid #0000;border-radius:12px;flex-direction:column;flex:none;align-items:center;gap:6px;padding:6px;font-size:.8rem;display:flex}.tpl-card.active{border-color:var(--accent,#7a7096);background:#ecebf1}.tpl-preview{pointer-events:none;border-radius:6px;position:relative;overflow:hidden;box-shadow:0 1px 6px #0f172a2e}.tpl-options{flex-direction:column;gap:8px;display:flex}.tpl-palettes{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tpl-palette{border:3px solid #fff;border-radius:50%;width:30px;min-width:30px;height:30px;padding:0;box-shadow:0 0 0 1px #00000026}.tpl-palette.active{box-shadow:0 0 0 2.5px var(--accent,#7a7096)}.invite-card{background:linear-gradient(135deg,#f5f4f8,#eff6ff);border:1px solid #dddae6;border-radius:16px;flex-direction:column;gap:10px;margin-bottom:14px;padding:14px 16px;display:flex}.invite-head{align-items:flex-start;gap:12px;display:flex}.invite-head h2{margin:0 0 2px}.invite-head p{margin:0}.invite-emoji{font-size:2rem;line-height:1}.invite-link input{background:#fff;width:100%;font-size:.85rem}a.btn-like{border:1px solid var(--border);color:inherit;background:#fff;border-radius:10px;align-items:center;padding:.45rem .8rem;text-decoration:none;display:inline-flex}.invite-bonus{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:8px 10px;font-size:.88rem}.invite-list ul{flex-direction:column;gap:4px;margin:6px 0 0;padding:0;list-style:none;display:flex}.invite-list li{justify-content:space-between;gap:8px;display:flex}.invite-welcome{background:linear-gradient(135deg,#dcfce7,#e0f2fe);border:1px solid #86efac;border-radius:14px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;padding:10px 14px;display:flex}.invite-welcome span{flex:1;min-width:200px}.login-invite{text-align:center;background:#f5f4f8;border:1px solid #dddae6;border-radius:12px;flex-direction:column;gap:4px;margin-bottom:12px;padding:10px 12px;display:flex}.invite-tile{border-style:dashed!important}.quiz-arena{background:var(--surface,#fff);border:1px solid #e8e6ee;border-radius:16px;margin-bottom:16px;padding:14px 16px;box-shadow:0 2px 12px #7a709614}.quiz-arena h2{margin:0}.quiz-stats{background:#fef9c3;border-radius:999px;padding:3px 10px;font-size:.85rem}.quiz-chips{max-height:140px;overflow-y:auto}.quiz-actions{margin-top:6px}.quiz-result{flex-direction:column;gap:10px;margin:8px 0 14px;display:flex}.quiz-result-big{text-align:center;background:linear-gradient(135deg,#ecebf1,#e0f2fe);border-radius:12px;padding:12px;font-size:1.3rem;font-weight:700}.quiz-challenge{border-top:1px dashed #e2e8f0;margin-top:8px;padding-top:10px}.learn-tabs{gap:6px;padding:10px 16px 0;display:flex}.learn-tabs button{border-radius:999px;padding:.45rem 1rem;font-weight:600}.learn-tabs button.active{background:var(--accent,#7a7096);border-color:var(--accent,#7a7096);color:#fff}.arena-hint{background:#f5f4f8;border:1px solid #dddae6;border-radius:14px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;padding:10px 14px;display:flex}.arena-hint span{flex:1;min-width:200px}.age-ask h2{margin-top:0}.age-options{flex-direction:column;gap:8px;margin:8px 0 12px;display:flex}.age-option{border:1.5px solid var(--border);cursor:pointer;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;display:flex}.age-option.active{border-color:var(--accent,#7a7096);background:#f5f4f8}.age-parent{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;margin-bottom:12px;padding:8px 12px}.age-parent p{margin:0 0 6px}.member-age{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.age-badge{color:#075985;background:#e0f2fe;border-radius:999px;padding:1px 8px;font-weight:600;display:inline-block}.age-badge.u14{color:#92400e;background:#fef3c7}.mobile-nav{display:none}@media (width<=760px){html.mnav{--mnav-h:calc(60px + env(safe-area-inset-bottom,0px))}html.mnav #root{padding-bottom:var(--mnav-h);box-sizing:border-box}html.mnav .lib-tabs{display:none}html.mnav .lib-top{padding-left:calc(.9rem + env(safe-area-inset-left,0px));padding-right:calc(.9rem + env(safe-area-inset-right,0px));gap:.6rem}html.mnav .lib-search{flex-basis:100%;order:3;min-width:0;max-width:none}html.mnav .lib-user{margin-left:auto}.mobile-nav{z-index:250;height:var(--mnav-h);padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);background:var(--surface,#fff);border-top:1px solid var(--border);display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 16px #0f172a0f}.mobile-nav button{min-width:0;color:var(--text-muted);background:0 0;border:none;border-radius:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;padding:4px 0;font-size:.68rem;font-weight:600;display:flex}.mobile-nav .mnav-icon{filter:grayscale(.6);opacity:.75;font-size:1.3rem;line-height:1}.mobile-nav button.active{color:var(--accent,#7a7096)}.mobile-nav button.active .mnav-icon{filter:none;opacity:1;transform:translateY(-1px)}.mobile-nav .mnav-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}html.mnav .chat-fab:not(.in-editor){bottom:calc(var(--mnav-h) + 76px)}html.mnav .trash-fab{bottom:calc(var(--mnav-h) + 14px)}html.mnav .ai-dock{bottom:calc(var(--mnav-h) + 10px)}html.mnav .pinned-bar,html.mnav .update-banner{bottom:var(--mnav-h)}html.mnav .chat-panel{bottom:calc(var(--mnav-h) + 8px)}html.mnav .startup-hint{bottom:calc(var(--mnav-h) + 12px)}}.dialog-backdrop{grid-template-columns:minmax(0,1fr)}.dialog{justify-self:center;min-width:0}@media (width<=760px){.toolbar-wrap>.toolbar:first-child{flex-wrap:wrap;row-gap:2px;padding:.25rem .35rem;overflow-x:visible}.toolbar-wrap>.toolbar:first-child .tool-btn{min-width:38px;height:38px}.toolbar-wrap>.toolbar:first-child .tb-sep,.toolbar-wrap>.toolbar:first-child .tb-spacer{display:none}.toolbar-wrap>.toolbar:first-child .tb-title{max-width:110px}.format-bar{flex-wrap:wrap;row-gap:4px;overflow-x:visible}.format-bar .fmt{min-width:34px;height:32px}.toolbar-wrap>.toolbar:first-child .tb-title,.format-bar .tb-sep{display:none}}.tb-right{display:contents}.tb-more-btn{font-size:1.2rem;font-weight:700;display:none!important}@media (width<=760px){.toolbar-wrap>.toolbar:first-child .tb-more-btn{display:inline-grid!important}.toolbar-wrap>.toolbar:first-child:not(.show-more) .tb-rare{display:none}.toolbar-wrap>.toolbar:first-child.show-more .tb-right{display:contents}.toolbar-wrap>.toolbar:first-child .tb-more-btn{order:98}.toolbar-wrap>.toolbar:first-child .save-state{order:99;font-size:.72rem}.pinned-bar{left:8px;right:72px;bottom:calc(var(--mnav-h,0px) + 8px);max-width:none;padding-bottom:env(safe-area-inset-bottom,0px);gap:6px}html.mnav .pinned-bar{bottom:calc(var(--mnav-h) + 8px);padding-bottom:0}.pinned-slot.open{width:auto}.pinned-tab,.pinned-slot.open .pinned-tab{border-radius:19px;max-width:150px;height:38px;padding:0 6px 0 4px}.pinned-tab .pinned-caret{display:none}.pinned-slot.open .pinned-tab{outline:2px solid #fff;box-shadow:0 0 0 4px #7a7096}.pinned-window{left:8px;right:8px;bottom:calc(var(--mnav-h,0px) + 56px);height:calc(100dvh - var(--mnav-h,0px) - 130px);z-index:260;border-radius:14px;position:fixed}.pinned-bar{display:none!important}}.hw-train{flex-direction:column;gap:10px;margin-top:10px;display:flex}.hw-train p{margin:0}.hw-target{background:#f5f4f8;border-radius:12px;flex-direction:column;gap:2px;padding:10px 14px;display:flex}.hw-target span{color:var(--text-muted);font-size:.8rem}.hw-target strong{font-size:1.25rem}.hw-pad{touch-action:none;cursor:crosshair;background:repeating-linear-gradient(#0000 0 84px,#e8e6ee 84px 86px,#0000 86px 170px),#fff;border:2px dashed #c8c2d6;border-radius:12px;width:100%;height:170px}.hw-learned{flex-direction:column;gap:6px;max-height:55vh;margin-top:10px;display:flex;overflow-y:auto}.hw-sample{border:1px solid var(--border);border-radius:10px;align-items:center;gap:10px;padding:6px 8px;display:flex}.hw-sample img{object-fit:contain;background:#fff;border:1px solid #eef2f7;border-radius:6px;max-width:45%;height:40px}.hw-noimg{text-align:center;width:40px;font-size:1.3rem}.hw-sample-text{flex-direction:column;flex:1;min-width:0;display:flex}.hw-busy.hw-learned{color:#166534;background:#dcfce7}.file-drop-hover{outline-offset:-3px;border-radius:12px;outline:3px dashed var(--accent,#7a7096)!important;box-shadow:inset 0 0 0 9999px #7a70960f!important}.cal-area-pick{margin-bottom:10px}.cal-area-pick button{flex:1}.podcast{flex-direction:column;gap:14px;max-width:760px;margin:0 auto;padding:16px;display:flex}.podcast-head{align-items:center;gap:14px;display:flex}.podcast-head h2{margin:0 0 4px}.podcast-head p{margin:0}.podcast-cover{background:linear-gradient(135deg,#7a7096,#0ea5e9);border-radius:18px;flex:none;place-items:center;width:72px;height:72px;font-size:2.2rem;display:grid}.podcast-hosts{justify-content:center;gap:12px;display:flex}.podcast-host{background:var(--surface,#fff);border:2px solid #0000;border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:10px 18px;transition:transform .2s,border-color .2s;display:flex}.podcast-host.speaking{border-color:var(--c);box-shadow:0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent);transform:scale(1.05)}.podcast-avatar{color:#fff;background:var(--c);border-radius:50%;place-items:center;width:52px;height:52px;font-size:1.4rem;font-weight:700;display:grid}.podcast-host.speaking .podcast-avatar{animation:1s ease-in-out infinite podPulse}@keyframes podPulse{50%{box-shadow:0 0 0 8px color-mix(in srgb, var(--c) 30%, transparent)}}.podcast-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.podcast-play{min-width:140px}.podcast-progress{background:#e8e6ee;border-radius:3px;height:6px;overflow:hidden}.podcast-progress div{background:linear-gradient(90deg,#7a7096,#0ea5e9);height:100%;transition:width .4s}.podcast-transcript{flex-direction:column;gap:6px;max-height:46vh;padding-right:4px;display:flex;overflow-y:auto}.podcast-line{text-align:left;border:none;border-left:4px solid var(--c);background:var(--surface,#fff);opacity:.75;border-radius:10px;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;display:flex}.podcast-line strong{color:var(--c);font-size:.8rem}.podcast-line.current{opacity:1;background:color-mix(in srgb, var(--c) 9%, #fff);box-shadow:0 2px 10px #0f172a14}.podcast-voice-pick{flex-wrap:wrap;gap:8px 14px;margin-top:8px;display:flex}.podcast-voice-pick p{flex-basis:100%;margin:0}.drop-hint{color:var(--text-muted);margin:2px 6px;font-size:.78rem;display:inline-block}@media (hover:none) and (width<=760px){.drop-hint{display:none}}.learn-tabs .learn-new{background:var(--accent,#7a7096);border-color:var(--accent,#7a7096);color:#fff;margin-left:6px}.learn-shared-badge{color:#075985;background:#e0f2fe;border-radius:999px;padding:1px 8px;font-size:.75rem;display:inline-block}.learn-shared-bar{background:#e0f2fe;border:1px solid #bae6fd;border-radius:12px;margin:10px 16px 0;padding:8px 12px;font-size:.9rem}.lib-top .top-user{order:99;margin-left:auto}.lib-search~.top-user{margin-left:0}.avatar-img{object-fit:cover;border-radius:50%;width:100%;height:100%;display:block}.cal-area-seg button{white-space:nowrap}.lib-actions .seg button{height:37px;padding:0 .85rem;font-size:.95rem}@media (width<=760px){.lib-actions .seg button{height:34px;padding:0 .55rem;font-size:.85rem}}.learn-tabs button{white-space:nowrap}@media (width<=760px){.learn-tabs{gap:4px;padding:8px 10px 0}.learn-tabs button{padding:.4rem .7rem;font-size:.88rem}.hide-narrow{display:none}.lib-actions{flex-wrap:wrap;max-width:100%}.lib-actions .seg{flex:none}}.member-perms{flex-wrap:wrap;gap:4px 12px;display:flex}.members-page{flex-direction:column;gap:12px;max-width:1200px;margin:0 auto;padding:16px;display:flex}.members-head{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.members-head h2{margin:0 8px 0 0}.members-head .seg button{white-space:nowrap;padding:.45rem .8rem}.members-search{flex:1;min-width:200px;max-width:320px;margin-left:auto}.members-table{background:var(--surface,#fff);border-radius:14px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 2px 10px #0f172a12}.mt-row{border-bottom:1px solid #eef2f7;grid-template-columns:minmax(200px,1.6fr) minmax(150px,1fr) minmax(170px,1fr) minmax(190px,1.1fr) 110px;align-items:center;gap:12px;padding:10px 14px;display:grid}.mt-row:last-child{border-bottom:none}.mt-head{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);background:#f8fafc;font-size:.75rem;font-weight:700}.mt-row.pending{background:#fffbeb}.mt-person,.mt-age,.mt-perms,.mt-budget{flex-direction:column;gap:2px;min-width:0;display:flex}.mt-person strong,.mt-person small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mt-budget .usage-bar-track{height:8px;display:block}.mt-status{justify-self:end}@media (width<=900px){.mt-head{display:none}.mt-row{grid-template-columns:1fr 1fr;gap:8px 14px}.mt-person{grid-column:1/-1}.mt-status{justify-self:start}.members-search{max-width:none;margin-left:0}}.quiz-tile{background:linear-gradient(135deg,#f5f4f8,#e0f2fe)!important}.page-titlebar{align-items:center;gap:12px;min-width:0;padding:14px 20px 4px;display:flex}.back-pill{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text);border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 14px 0 10px;font-size:.9rem;font-weight:600;display:inline-flex;box-shadow:0 1px 4px #0f172a0f}.back-pill span{color:var(--accent);font-size:1.3rem;line-height:1}.page-title{align-items:center;gap:10px;min-width:0;margin:0;font-size:1.35rem;font-weight:700;display:flex}.page-title-icon{background:var(--btn-bg);border-radius:12px;flex:none;place-items:center;width:38px;height:38px;font-size:1.2rem;display:grid}@media (width<=760px){.page-titlebar{gap:8px;padding:10px 12px 2px}.page-title{font-size:1.1rem}.page-title-icon{width:32px;height:32px}}.cal-set-head{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);margin:0 0 6px;font-size:.85rem}.cal-set-school{border-top:1px solid var(--border);margin-top:14px;padding-top:10px}.cal-set-school>summary{cursor:pointer;margin-bottom:10px;font-weight:700}.eleven-note{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;margin:8px 0 0;padding:8px 12px;font-size:.86rem}.eleven-note.empty{background:#fef2f2;border-color:#fecaca}.voice-change{background:var(--surface,#fff);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:8px;max-width:560px;margin:10px auto;padding:12px 14px;display:flex;box-shadow:0 2px 10px #0f172a12}.voice-change .eleven-note{margin:0}.voice-lang{flex-basis:100%;align-items:center;gap:6px;display:inline-flex}.voice-lang select{width:auto}.cover-page-crop{background:#fff}.cover-page-crop:before{z-index:1}.cover-crop-box{position:absolute;inset:0;overflow:hidden}.cover-crop-box .page-thumb{box-shadow:none;border-radius:0}.cover-crop-section{margin-top:12px}.cover-crop-editor{flex-wrap:wrap;align-items:flex-start;gap:14px;margin-top:6px;display:flex}.cover-crop-frame{outline:2px dashed var(--accent);outline-offset:3px;touch-action:none;cursor:grab;background:#fff;border-radius:4px 12px 12px 4px;width:168px;height:224px;position:relative;overflow:hidden;box-shadow:0 2px 6px #1018282e,0 10px 24px #1018281f}.cover-crop-frame:active{cursor:grabbing}.cover-crop-hint{color:#fff;pointer-events:none;background:#0f172a8c;border-radius:999px;padding:2px 8px;font-size:.72rem;position:absolute;bottom:8px;left:50%;transform:translate(-50%)}.cover-crop-controls{flex-direction:column;flex:1;gap:10px;min-width:180px;display:flex}.cover-crop-hint{white-space:nowrap}.crop-pdf{background:#fff;position:relative}.crop-pdf canvas,.crop-pdf .pdf-bg{inset:0;width:100%!important;height:100%!important;max-height:none!important;position:absolute!important}.thumb-box{pointer-events:none;position:absolute;overflow:hidden}.thumb-box .thumb-fill{object-fit:contain;width:100%;height:100%;display:block}.thumb-box .pdf-bg{width:100%;height:100%;position:absolute;inset:0}.thumb-file{pointer-events:none;background:#fff;border:1px solid #b4bccd;border-radius:10px;align-items:center;gap:8px;width:260px;height:64px;padding:0 14px;font-size:18px;display:flex;position:absolute;overflow:hidden}.thumb-file span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.share-mode{margin:8px 0 12px}.share-mode button{flex:1}.share-pages{gap:8px;padding:4px 2px 8px;display:flex;overflow-x:auto}.share-page{background:0 0;border:2px solid #0000;border-radius:10px;flex-direction:column;flex:none;align-items:center;gap:4px;padding:4px;font-size:.75rem;display:flex}.share-page.active{border-color:var(--accent);background:var(--btn-bg)}.share-fit{align-items:flex-start;margin:6px 0}.cal-zoom button{flex:none;min-width:36px}.cal-scroll .month-cell{min-height:calc(92px * var(--cal-scale,1))}.cal-compact .ev{border-left-width:3px;padding:0 4px;font-size:.72rem;line-height:1.2}.cal-compact .week-hours span{font-size:.62rem}.cal-compact .month-cell{padding:2px;font-size:.75rem}.cal-compact .month-num{min-width:20px;height:20px;font-size:.75rem}.cal-compact .week-day{padding:2px 0}.cal-compact .week-day b{font-size:.95rem}.mt-row{grid-template-columns:minmax(220px,2fr) minmax(130px,.9fr) minmax(190px,1.2fr) minmax(230px,1.5fr) 96px;gap:10px;min-height:40px;padding:5px 12px;font-size:.86rem}.mt-person,.mt-age,.mt-perms,.mt-budget{white-space:nowrap;flex-direction:row;align-items:center;gap:8px}.mt-person{overflow:hidden}.mt-person strong{flex:none;max-width:55%}.mt-person small{min-width:0}.mt-tag{background:var(--btn-bg);border-radius:999px;flex:none;padding:0 6px;font-size:.72rem}.mt-perms .check,.mt-age .check,.mt-budget .check{gap:4px;margin:0}.mt-budget .usage-bar-track{flex:none;width:60px}.mt-budget small{align-items:center;gap:3px;display:inline-flex}.mt-budget .money-input{width:46px;padding:2px 4px}.mt-status .mini{padding:3px 10px}@media (width<=900px){.mt-row{grid-template-columns:1fr;gap:4px;padding:8px 12px}.mt-person,.mt-age,.mt-perms,.mt-budget{white-space:normal;flex-wrap:wrap}.mt-status{justify-self:start}}@media (width>=901px){.mt-row>span{min-width:0;overflow:hidden}.mt-perms .check{font-size:.84rem}.mt-row{grid-template-columns:minmax(180px,1.5fr) minmax(120px,.8fr) minmax(250px,1.1fr) minmax(240px,1.2fr) 96px}.mt-perms{gap:10px}}.mt-row input[type=checkbox]{width:16px;height:16px}.friend-requests.outgoing{margin:10px 0}.friend-requests .friend-name{flex-direction:column;display:flex}.lib-brand img{border-radius:9px}.brand-text{flex-direction:column;line-height:1.05;display:flex}.brand-text small{letter-spacing:.04em;color:var(--accent);font-size:.66rem;font-weight:600}.login-title{flex-direction:column;align-items:center;line-height:1.1;display:flex}.login-title small{letter-spacing:.05em;color:var(--accent);font-size:.85rem;font-weight:600}@media (width<=760px){.brand-text small{font-size:.6rem}}.export-formats{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:14px;display:grid}.export-format{text-align:left;border:2px solid var(--border);background:var(--surface,#fff);border-radius:12px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.export-format.active{border-color:var(--accent);background:var(--btn-bg)}.export-icon{font-size:1.4rem}.export-range{align-items:center;gap:6px;margin-top:8px;display:flex}.export-range input{width:70px}.export-checks{flex-direction:column;gap:4px;margin:4px 0 10px;display:flex}.export-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;display:flex}.brand-btn{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;margin:0;padding:2px 6px 2px 2px;font-size:1.1rem}.brand-btn:hover{background:var(--btn-bg)}.about-video{aspect-ratio:16/9;background:#000;border-radius:14px;margin-bottom:10px;overflow:hidden}.about-video video{width:100%;height:100%;display:block}.about-actions{flex-wrap:wrap;gap:8px;display:flex}@media (width<=760px){html.mnav .lib-top>*{order:5}html.mnav .lib-top>.lib-brand{order:0}html.mnav .lib-top>.top-user{order:1;margin-left:auto}html.mnav .lib-bar{flex-wrap:nowrap;gap:.5rem;padding:.75rem 1rem .35rem}html.mnav .crumbs{scrollbar-width:none;flex-wrap:nowrap;flex:1;overflow-x:auto}html.mnav .crumbs::-webkit-scrollbar{display:none}html.mnav .doc-filters::-webkit-scrollbar{display:none}html.mnav .crumb,html.mnav .lib-bar h1{white-space:nowrap;font-size:1.3rem}html.mnav .crumb{padding:.1rem .15rem}html.mnav .crumb-sep{font-size:1.15rem}html.mnav .lib-actions{flex-shrink:0;gap:.4rem}html.mnav .sort-select{max-width:122px;height:36px;padding:0 .3rem;font-size:.85rem}html.mnav .lib-actions .btn-primary{white-space:nowrap;height:36px;padding:0 .85rem}html.mnav .doc-filters{scrollbar-width:none;flex-wrap:nowrap;padding:.15rem 1rem .55rem;overflow-x:auto}html.mnav .doc-filters .chip{flex-shrink:0;font-size:.85rem}html.mnav .lib-scroll{padding:.5rem 1rem 4rem}html.mnav .lib-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem .75rem}html.mnav .lib-thumb{aspect-ratio:3/4;width:100%;height:auto}html.mnav .lib-card{gap:.35rem}html.mnav .lib-title{font-size:.85rem}html.mnav .lib-meta .small{font-size:.72rem}html.mnav .fav-toggle:not(.on){display:none}html.mnav .fav-toggle{width:24px;height:24px;font-size:.85rem;top:4px;right:4px}html.mnav .lib-thumb.folder-thumb{aspect-ratio:5/4}html.mnav .trash-fab{width:50px;height:50px;right:14px}html.mnav .trash-fab svg{width:26px;height:26px}}.text-item.as-object .text-content{cursor:move;-webkit-user-select:none;user-select:none}.text-item.obj-selected .text-content{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:#fff9}.item-edge{z-index:1;cursor:move;touch-action:none;position:absolute}.item-edge.e-top{height:11px;top:-6px;left:-6px;right:6px}.item-edge.e-bottom{height:11px;bottom:-6px;left:-6px;right:6px}.item-edge.e-left{width:11px;top:-6px;bottom:-6px;left:-6px}.media-item{border:1px solid var(--border);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px #1e143c1a}.media-item.active{box-shadow:0 0 0 2px var(--accent), 0 2px 10px #1e143c1f}.media-head{cursor:move;-webkit-user-select:none;user-select:none;background:#f3f1f8;align-items:center;gap:6px;padding:6px 10px;font-size:13px;display:flex}.media-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-weight:600;overflow:hidden}.media-grip{color:var(--accent)}.media-item audio{width:100%;height:44px;margin:6px 0;display:block}.media-item video{object-fit:contain;background:#000;width:100%;display:block}.media-placeholder{color:var(--text-muted);padding:14px;font-size:13px}.media-menu{flex-direction:column;gap:6px;min-width:240px;display:flex}.media-menu button{text-align:left}.media-rec-video{aspect-ratio:16/9;background:#000;border-radius:14px;position:relative;overflow:hidden}.media-rec-video video{object-fit:contain;width:100%;height:100%;display:block}.media-rec-video video.mirror{transform:scaleX(-1)}.rec-badge{color:#fff;background:#dc2626;border-radius:999px;padding:3px 10px;font-size:.9rem;font-weight:700;position:absolute;top:10px;left:10px}.media-rec-audio{flex-direction:column;align-items:center;gap:8px;padding:18px 0 10px;display:flex}.rec-mic{background:#f3f1f8;border-radius:50%;place-items:center;width:84px;height:84px;font-size:2.6rem;display:grid}.media-rec-audio.on .rec-mic{background:#fee2e2;animation:1.2s ease-in-out infinite rec-pulse}@keyframes rec-pulse{50%{box-shadow:0 0 0 14px #dc26261f}}.rec-time{font-variant-numeric:tabular-nums;font-size:1.6rem}.media-rec-audio audio{width:100%;max-width:420px}.media-rec-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0 6px;display:flex}.rec-btn.on{background:#dc2626;border-color:#dc2626}.item-bar.floating{z-index:300;white-space:normal;flex-wrap:wrap;max-width:calc(100vw - 12px);position:fixed;transform:none}.item-bar.floating button{white-space:nowrap}.item-bar.floating .item-bar-layers,.item-bar.floating .item-bar-colors{flex-wrap:wrap;gap:4px;max-width:100%;display:inline-flex}.thumb{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.thumb.dragging{opacity:.35}.thumb.drop-before:before,.thumb.drop-after:after{content:"";background:var(--accent);border-radius:2px;height:4px;position:absolute;left:4px;right:4px;box-shadow:0 0 0 3px #7a709633}.thumb.drop-before:before{top:-.6rem}.thumb.drop-after:after{bottom:-.6rem}.thumb-move{height:22px;min-height:0;color:var(--text-muted);opacity:0;background:0 0;border:0;padding:0 4px;font-size:.7rem}.thumb:hover .thumb-move,.thumb.active .thumb-move{opacity:1}.thumb-move:disabled{opacity:0!important}.thumb-move:hover:not(:disabled){color:var(--accent);background:var(--btn-bg)}@media (hover:none){.thumb-move{opacity:.8}}.dialog-actions{justify-content:flex-end;align-items:center;gap:8px;margin-top:12px;display:flex}.dialog-actions .link{margin-right:auto}.kid-lock-btn{background:#fef3c7;border:1px solid #fcd34d;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-weight:700;display:inline-flex}.kids{background:linear-gradient(#f6f3ff 0%,#fff8ec 100%);flex-direction:column;height:100%;min-height:100vh;font-family:Andika,system-ui,sans-serif;display:flex}.kids-bar{align-items:center;gap:12px;padding:14px 20px 6px;display:flex}.kids-hello,.kids-title{margin:0;font-size:1.8rem;font-weight:700}.kids-stars{background:#fff;border-radius:999px;margin-left:auto;padding:6px 16px;font-size:1.3rem;font-weight:700;box-shadow:0 4px 14px #785ab426}.kid-back{background:#fff;border-radius:999px;padding:8px 16px;font-size:1.05rem;font-weight:700}.kids-scroll{flex:1;padding:10px 20px 40px;overflow-y:auto}.kids-tiles{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;max-width:1100px;display:grid}.kids-tile{color:#fff;text-align:left;border:0;border-radius:28px;flex-direction:column;align-items:flex-start;gap:6px;min-height:190px;padding:22px;font-family:inherit;transition:transform .12s;display:flex;box-shadow:0 12px 30px #50328c38}.kids-tile:hover,.kids-tile:active{transform:translateY(-3px)scale(1.01)}.kids-tile-icon{font-size:3.4rem;line-height:1}.kids-tile strong{font-size:1.7rem}.kids-tile span:last-child{opacity:.92;font-size:1.05rem}.kid-tool{flex-direction:column;gap:12px;max-width:1100px;margin:0 auto;display:flex}.kid-chips,.kid-items,.kid-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.kid-row{justify-content:center}.kid-items{scrollbar-width:thin;flex-wrap:nowrap;padding-bottom:4px;overflow-x:auto}.kid-chip,.kid-item,.kid-btn{background:#fff;border:2px solid #e4def3;border-radius:999px;font-family:inherit;font-weight:700}.kid-chip{padding:8px 16px;font-size:1.05rem}.kid-item{flex-shrink:0;min-width:46px;height:46px;padding:0 12px;font-size:1.25rem}.kid-item.emoji{font-size:1.5rem}.kid-chip.on,.kid-item.on,.kid-btn.sel{color:#5b21b6;background:#ede9fe;border-color:#7c3aed}.kid-btn{min-height:50px;padding:8px 20px;font-size:1.15rem}.kid-btn.primary{color:#fff;background:#22c55e;border-color:#16a34a}.kid-btn:disabled{opacity:.45}.kid-stage{align-items:center;gap:10px;display:flex}.kid-nav{background:#fff;border:2px solid #e4def3;border-radius:50%;flex-shrink:0;width:54px;height:54px;font-size:1.4rem}.kid-board{background:#fff;border-radius:24px;flex:1;min-width:0;position:relative;overflow:hidden;box-shadow:0 10px 30px #50328c24}.kid-pad{touch-action:none;cursor:crosshair;width:100%;display:block}.kid-pad.transparent{background:0 0}.kid-result{text-align:center;background:#ffffffd1;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;font-size:1.5rem;display:flex;position:absolute;inset:0}.kid-stars-big{color:#e5e7eb;gap:10px;font-size:4.2rem;line-height:1;display:flex}.kid-stars-big span.on{color:#facc15;text-shadow:0 4px 12px #facc1580;animation:.5s both kid-pop}@keyframes kid-pop{0%{transform:scale(.2)rotate(-30deg)}70%{transform:scale(1.25)}to{transform:scale(1)}}.kid-crayons{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.kid-crayon{border:3px solid #fff;border-radius:50%;width:40px;height:40px;min-height:0;padding:0;box-shadow:0 0 0 2px #e4def3}.kid-crayon.on{transform:scale(1.12);box-shadow:0 0 0 3px #7c3aed}.kid-hint{text-align:center;color:#6b6385;margin:2px 0;font-size:1.05rem}.kid-hint.ok{color:#15803d;font-weight:700}.color-board{aspect-ratio:4/3;max-width:820px;margin:0 auto}.kid-color-svg{width:100%;height:100%;display:block}.kid-color-svg .r{stroke:#222;stroke-width:3px;stroke-linejoin:round}.kid-color-svg .l{fill:none;stroke:#222;stroke-width:3px;stroke-linecap:round;pointer-events:none}.kid-color-svg .dot{fill:#222}.kid-color-svg.fill-mode .r{cursor:pointer}.kid-brush-layer{position:absolute;inset:0}.dot-size span{border-radius:50%;display:inline-block}.kid-h2{text-align:center;margin:6px 0;font-size:1.6rem}.kid-levels{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;display:grid}.kid-level{background:#fff;border:2px solid #e4def3;border-radius:22px;flex-direction:column;align-items:center;gap:4px;padding:18px;font-family:inherit;font-size:1.05rem;display:flex}.kid-level-icon{font-size:2.6rem}.kid-level strong{font-size:1.2rem}.kid-progress{justify-content:center;gap:6px;display:flex}.kid-progress span{background:#e4def3;border-radius:50%;width:18px;height:18px}.kid-progress .done{background:#a78bfa}.kid-progress .now{background:#7c3aed;transform:scale(1.25)}.kid-math{flex-direction:column;align-items:center;gap:12px;width:100%;max-width:720px;margin:0 auto;padding:26px 16px;transition:background .2s;display:flex}.kid-math.ok{background:#dcfce7}.kid-math.no{background:#fee2e2}.kid-math-q{letter-spacing:2px;margin:0;font-size:3.2rem;font-weight:700}.kid-count{flex-wrap:wrap;justify-content:center;gap:10px;max-width:560px;font-size:3rem;display:flex}.kid-math-input{text-align:center;border:3px dashed #c4b5fd;border-radius:18px;min-width:140px;padding:6px 20px;font-size:3rem;font-weight:700}.right-answer{color:#dc2626}.kid-math-fb{color:#15803d;font-size:1.6rem;font-weight:700}.kid-math-fb.no{color:#b91c1c}.kid-numpad{grid-template-columns:repeat(3,84px);justify-content:center;gap:10px;display:grid}.kid-numpad button,.kid-choice{background:#fff;border:2px solid #e4def3;border-radius:20px;height:72px;font-family:inherit;font-size:2rem;font-weight:700}.kid-numpad .go{color:#fff;background:#22c55e;border-color:#16a34a}.kid-choices{justify-content:center;gap:14px;display:flex}.kid-choice{width:110px;height:90px;font-size:2.6rem}.kid-math-end{width:100%;max-width:720px;min-height:360px;margin:0 auto}@media (width<=760px){.kids-bar{padding:10px 14px 4px}.kids-hello,.kids-title{font-size:1.35rem}.kids-scroll{padding:8px 12px 30px}.kids-tiles{grid-template-columns:1fr 1fr;gap:12px}.kids-tile{border-radius:22px;min-height:150px;padding:16px}.kids-tile-icon{font-size:2.6rem}.kids-tile strong{font-size:1.25rem}.kids-tile span:last-child{font-size:.9rem}.kid-nav{display:none}.kid-crayon{width:34px;height:34px}.kid-math-q{font-size:2.4rem}.kid-count{font-size:2.2rem}.kid-numpad{grid-template-columns:repeat(3,72px)}.kid-lock-btn span{display:none}}.kid-back,.kids-stars,.kids-title{white-space:nowrap}@media (width<=760px){.kid-back{padding:6px 12px;font-size:.95rem}.kids-stars{padding:4px 12px;font-size:1.05rem}.kids-title{text-overflow:ellipsis;min-width:0;overflow:hidden}}.kid-heft-section{max-width:1100px;margin-top:26px}.kid-h2.left{text-align:left}.kid-heft-new{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;display:grid}.kid-heft-add{text-align:left;background:#fff;border:3px dashed;border-radius:20px;align-items:center;gap:12px;padding:12px 14px;font-family:inherit;display:flex}.kid-heft-add strong{font-size:1.2rem;display:block}.kid-heft-add small{color:#6b6385;font-size:.95rem}.kid-heft-add-icon{border-radius:16px;flex-shrink:0;place-items:center;width:54px;height:54px;font-size:1.8rem;display:grid}.kid-hefte{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px;margin-top:16px;display:grid}.kid-heft{background:0 0;border:0;padding:0;font-family:inherit}.kid-heft-cover{aspect-ratio:3/4;border-radius:10px 16px 16px 10px;justify-content:center;align-items:flex-start;padding-top:22%;display:flex;position:relative;box-shadow:inset 8px 0 #0000001f,0 8px 18px #3c286e33}.kid-heft-cover.pat-dots{background-image:radial-gradient(#ffffff59 2px,#0000 2.5px)!important;background-size:14px 14px!important}.kid-heft-cover.pat-grid{background-image:linear-gradient(#ffffff40 1px,#0000 1px),linear-gradient(90deg,#ffffff40 1px,#0000 1px)!important;background-size:14px 14px!important}.kid-heft-cover.pat-stripe{background-image:repeating-linear-gradient(45deg,#ffffff2e 0 8px,#0000 8px 16px)!important}.kid-heft-label{text-align:center;background:#fff;border-radius:8px;margin:0 8px;padding:4px 8px;font-size:.95rem;font-weight:700;box-shadow:0 2px 6px #0000001f}@media (width<=760px){.kid-heft-new{grid-template-columns:1fr}.kid-hefte{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}.history-scope{margin-bottom:10px}.history{grid-template-columns:minmax(0,1fr) 290px;gap:16px;min-height:360px;display:grid}.history-list{flex-direction:column;gap:4px;max-height:60vh;padding-right:4px;display:flex;overflow-y:auto}.history-item{text-align:left;border:1px solid var(--border);background:var(--surface,#fff);border-radius:10px;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 10px;display:flex}.history-item.active{border-color:var(--accent);background:var(--btn-bg)}.history-item.deleted strong{color:var(--danger)}.history-preview{text-align:center;flex-direction:column;align-items:center;gap:8px;display:flex}.history-thumb{border-radius:6px;max-height:46vh;overflow:auto;box-shadow:0 4px 14px #1e143c26}@media (width<=700px){.history{grid-template-columns:minmax(0,1fr)}.history-list{max-height:30vh}}.subs{flex-direction:column;gap:8px;padding:6px 0;display:flex}.sub-row{align-items:center;gap:10px;display:flex}.sub-row .subject-color{cursor:default;flex-shrink:0}.sub-name{flex-direction:column;flex:1;min-width:0;display:flex}.sub-new{grid-template-columns:minmax(0,1fr);gap:6px;margin-top:4px;display:grid}.sub-colors{flex-wrap:wrap;gap:6px;display:flex}.sub-help p{margin:6px 0;font-size:.9rem}.kids{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.kid-pad{-webkit-user-drag:none}.ginv-banner{flex-direction:column;gap:6px;margin:0 1.25rem .6rem;display:flex}.ginv-row{background:#ede9fe;border:1px solid #c4b5fd;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;display:flex}.dialog .ginv-banner{margin:0 0 10px}.ginv-text{flex:1;min-width:200px}.ginv-form{flex-direction:column;gap:6px;margin:10px 0 12px;display:flex}.ginv-input{align-items:stretch;gap:8px;display:flex}.ginv-input textarea{resize:vertical;flex:1;min-width:0}.ginv-result{flex-direction:column;gap:3px;margin:0;padding:0;font-size:.9rem;list-style:none;display:flex}.ginv-result .st-eingeladen strong:before,.ginv-result .st-neu strong:before{content:"✓ ";color:#16a34a}.ginv-result .st-ungueltig strong{color:var(--danger)}.ginv-pending ul{margin:6px 0 0;padding:0;list-style:none}.ginv-pending li{align-items:center;gap:8px;font-size:.9rem;display:flex}.ginv-pending li span{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.mini-link{text-decoration:none}@media (width<=600px){.ginv-input{flex-direction:column}}.radar-page{flex-direction:column;height:100dvh;display:flex;overflow:hidden}@media (width<=760px){html.mnav .radar-page{height:calc(100dvh - var(--mnav-h))}}.radar-page .page-titlebar{flex-shrink:0}.radar-screen{background:#0f172a;border-radius:18px;flex:1;min-height:0;margin:0 12px 12px;position:relative;overflow:hidden}.radar-wrap{position:absolute;inset:0}.radar-canvas{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:crosshair;width:100%;height:100%;display:block}.radar-hud{pointer-events:none;justify-content:space-between;gap:10px;display:flex;position:absolute;top:10px;left:12px;right:12px}.radar-player{white-space:nowrap;background:#0f172ab8;border-radius:999px;padding:5px 12px;font-size:.95rem}.radar-player b{margin:0 4px}.radar-msg{color:#fff;pointer-events:none;white-space:nowrap;background:#0f172acc;border-radius:999px;padding:8px 16px;font-weight:700;animation:.25s ease-out radar-pop;position:absolute;top:56px;left:50%;transform:translate(-50%)}.radar-msg.warn{white-space:normal;text-align:center;background:#b91c1cd9;max-width:90%}@keyframes radar-pop{0%{opacity:0;transform:translate(-50%)scale(.7)}}.radar-count{color:#fff;text-shadow:0 6px 30px #0009;pointer-events:none;place-items:center;font-size:7rem;font-weight:900;display:grid;position:absolute;inset:0}.radar-end{background:#0f172a8c;place-items:center;padding:16px;display:grid;position:absolute;inset:0;overflow-y:auto}.radar-end-card{background:var(--surface,#fff);text-align:center;border-radius:22px;width:100%;max-width:440px;padding:22px 24px;box-shadow:0 20px 60px #00000059}.radar-end-card h2{margin:4px 0}.radar-end-card .row-actions{justify-content:center;margin-top:12px}.radar-end-icon{font-size:3.4rem}.radar-levels{grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 12px;display:grid}.radar-level{border-radius:14px;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;font-weight:700;display:flex}.radar-level span{font-size:1.8rem}.radar-levels.small .radar-level span{font-size:1.3rem}.radar-friend{gap:8px;margin:6px 0;display:flex}.radar-friend select{flex:1;min-width:0}.radar-rules{text-align:left;margin-top:10px}.radar-rules ul{margin:6px 0;padding-left:1.2rem;font-size:.9rem}.radar-rules li{margin:3px 0}.radar-tile{color:#fff;background:linear-gradient(135deg,#0f172a,#312e81)!important}.radar-tile .muted{color:#c7d2fe!important}@media (width<=760px){.radar-screen{border-radius:14px;margin:0 6px 6px}.radar-player{padding:4px 8px;font-size:.78rem}.radar-count{font-size:5rem}}.library.radar-page{height:100dvh;min-height:0}@media (width<=760px){html.mnav .library.radar-page{height:calc(100dvh - var(--mnav-h))}}.radar-energy{vertical-align:middle;background:#ffffff2e;border-radius:999px;width:110px;height:14px;display:inline-block;position:relative;overflow:hidden}.radar-energy i{border-radius:999px;transition:width .25s;position:absolute;inset:0 auto 0 0}.radar-energy em{text-align:center;color:#fff;text-shadow:0 1px 2px #000000b3;font-size:10px;font-style:normal;font-weight:800;line-height:14px;position:absolute;inset:0}.radar-gear{pointer-events:auto;background:#0f172ab8;border:0;border-radius:999px;width:36px;height:36px;min-height:0;padding:0;font-size:1.1rem}.radar-menu{z-index:5;background:var(--surface,#fff);border-radius:16px;flex-direction:column;gap:6px;width:min(340px,92%);padding:12px;display:flex;position:absolute;top:54px;left:50%;transform:translate(-50%);box-shadow:0 14px 40px #00000059}.radar-menu button{text-align:left;border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.radar-menu button.on{border-color:var(--accent);background:var(--btn-bg)}.radar-menu button small{color:var(--text-muted);display:block}.radar-menu-icon{min-width:52px;font-size:1.3rem}.radar-fire{touch-action:none;-webkit-user-select:none;user-select:none;background:radial-gradient(circle at 35% 30%,#fb7185,#dc2626);border:4px solid #ffffffb3;border-radius:50%;width:96px;height:96px;font-size:2.2rem;position:absolute;bottom:22px;right:22px;box-shadow:0 8px 24px #00000073}.radar-fire.down{filter:brightness(1.15);transform:scale(.92)}.radar-dpad{touch-action:none;-webkit-user-select:none;user-select:none;background:#0f172a73;border:3px solid #ffffff59;border-radius:50%;width:150px;height:150px;position:absolute;bottom:18px;left:18px}.radar-dpad span{color:#fff;pointer-events:none;background:#ffffff40;border-radius:12px;place-items:center;width:46px;height:46px;font-size:1.2rem;display:grid;position:absolute}.radar-dpad span.on{color:#0f172a;background:#ffffffb3}.radar-dpad .up{margin-left:-23px;top:6px;left:50%}.radar-dpad .down{margin-left:-23px;bottom:6px;left:50%}.radar-dpad .left{margin-top:-23px;top:50%;left:6px}.radar-dpad .right{margin-top:-23px;top:50%;right:6px}.radar-hint{color:#fff9;pointer-events:none;white-space:nowrap;font-size:.8rem;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}@media (width<=760px){.radar-energy{width:64px}.radar-fire{width:80px;height:80px;bottom:14px;right:14px}.radar-dpad{width:130px;height:130px;bottom:12px;left:12px}}.bomber-tile{color:#fff;background:linear-gradient(135deg,#7c2d12,#ea580c)!important}.bomber-tile .muted{color:#fed7aa!important}.bomber-stats{color:#fff;margin-left:6px;font-size:.85em}.bomber-wrap .radar-canvas{cursor:default}.bomber-bomb{background:radial-gradient(circle at 35% 30%,#fdba74,#ea580c)}.radar-others{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.radar-player.out{opacity:.45;text-decoration:line-through}.radar-bots{margin:4px 0 8px}.radar-lobby{margin:8px 0;padding:0;font-weight:700;list-style:none}.radar-watch-again{position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.radar-hud{align-items:flex-start}.item-scale-text{border:3px solid var(--accent);cursor:nwse-resize;touch-action:none;z-index:2;opacity:0;background:#fff;border-radius:50%;width:18px;height:18px;transition:opacity .12s;position:absolute;bottom:-9px;right:-9px}.text-item:hover .item-scale-text,.text-item.active .item-scale-text,.text-item:focus-within .item-scale-text{opacity:1}@media (hover:none){.text-item.active .item-scale-text{width:24px;height:24px;bottom:-12px;right:-12px}}.save-state{text-align:right;text-overflow:ellipsis;width:84px;display:inline-block;overflow:hidden}.save-state.dirty{font-size:.8rem}.tb-title{flex-shrink:0}@media (width<=760px){.toolbar-wrap>.toolbar:first-child .save-state{width:64px}}.nib-seg{margin-bottom:8px;display:flex}.nib-seg button{white-space:nowrap;flex:1;padding:6px 4px;font-size:.8rem}.nib-seg button{flex-direction:column;align-items:center;gap:1px;min-width:0;padding:5px 2px;font-size:.72rem;display:flex}.nib-seg button span{font-size:1.15rem}
