:root{--action-buttons-left: max(6px, env(safe-area-inset-left));font-family:system-ui,sans-serif;color:#51464c;background:#9fcf9b}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none}#app{position:fixed;top:0;right:0;bottom:0;left:0;min-height:100vh;min-height:100dvh}#game{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;overflow:hidden;touch-action:none;background:#9fcf9b}#game canvas{display:block;image-rendering:pixelated}.glass{color:#51464c;background:#fff9ed33;border:1px solid rgba(255,255,255,.48);border-radius:16px;box-shadow:0 6px 24px #382f2a1f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.glass.active-panel{z-index:30!important}button,.glass,.glass *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.glass input,.glass textarea,.glass [contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.chat-toggle{position:absolute;z-index:6;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));min-height:42px;padding:8px 14px;color:#51464c;font:inherit;font-weight:600;cursor:pointer}.customize-toggle{position:absolute;z-index:6;top:max(62px,calc(env(safe-area-inset-top) + 50px));right:max(12px,env(safe-area-inset-right));min-height:42px;padding:8px 14px;color:#51464c;font:inherit;font-weight:600;cursor:pointer}.zoom-panel{position:absolute;z-index:8;top:max(112px,calc(env(safe-area-inset-top) + 100px));right:max(12px,env(safe-area-inset-right));bottom:auto;display:flex;align-items:center;gap:8px;min-height:46px;padding:6px 9px 6px 12px;background:#fff9ed33}.zoom-panel[hidden],.customize-toggle[hidden]{display:none!important}.zoom-panel strong{color:#935e68;font-size:13px}.zoom-icon{display:grid;place-items:center;width:22px;height:22px}.zoom-icon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.zoom-panel button{width:32px;height:32px;border:1px solid rgba(255,255,255,.5);border-radius:10px;background:#fff9ed61;color:#51464c;font:inherit;font-size:20px;line-height:1;cursor:pointer;touch-action:manipulation}.zoom-panel button:disabled{opacity:.42;cursor:default}.zoom-panel output{min-width:44px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.customize-panel{position:absolute;z-index:7;top:max(112px,calc(env(safe-area-inset-top) + 100px));right:max(12px,env(safe-area-inset-right));width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 124px);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:9px;padding:14px}.customize-panel[hidden]{display:none}.customize-panel>strong{color:#935e68}.customize-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.customize-header strong{color:#935e68}.customize-panel label{display:flex;justify-content:space-between;align-items:center;min-height:36px;padding:3px 8px;border-radius:10px;background:#fff9ed6b;font-size:14px}.color-row{position:relative}.color-picker{position:relative;display:flex;align-items:center}.customize-panel button.color-picker-toggle:not(.chat-close){display:flex;align-items:center;justify-content:center;gap:6px;width:54px;min-height:32px;padding:3px 6px;border:1px solid rgba(81,70,76,.28);border-radius:10px;background:#ffffffb8;color:#51464c;cursor:pointer}.color-current{display:block;width:20px;height:20px;border:2px solid #51464c;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffffb3}.color-arrow{font-size:13px;line-height:1}.color-palette{position:absolute;z-index:12;top:calc(100% + 6px);right:0;display:grid;grid-template-columns:repeat(6,22px);gap:6px;width:max-content;padding:8px;border:2px solid #51464c;border-radius:12px;background:#fffffff7;box-shadow:0 5px 18px #28202440}.color-palette[hidden]{display:none}.customize-panel .color-palette .color-option{width:22px;min-height:22px;height:22px;padding:0;border:2px solid rgba(45,40,42,.65);border-radius:50%;cursor:pointer}.customize-panel .color-palette .color-option[aria-selected=true]{outline:2px solid #51464c;outline-offset:2px}.customize-panel input[type=text]{width:138px;min-width:0;height:30px;padding:4px 8px;border:1px solid rgba(81,70,76,.3);border-radius:8px;background:#ffffffbf;color:#51464c;font:inherit;font-size:13px}.customize-panel select{width:142px;height:30px;padding:3px 7px;border:1px solid rgba(81,70,76,.3);border-radius:8px;background:#ffffffc7;color:#51464c;font:inherit;font-size:12px}.appearance-controls{display:flex;align-items:center;gap:5px;min-width:0}.appearance-controls select{width:118px;min-width:0;padding-inline:5px}.customize-panel button:not(.chat-close){min-height:36px;border:0;border-radius:10px;background:#bc8083;color:#fff;font:inherit;font-size:13px;cursor:pointer}.customize-panel small{text-align:center;opacity:.78;font-size:11px}.dressing-categories,.clothing-subcategories,.dressing-actions{display:flex;align-items:center;gap:6px}.customize-panel .dressing-categories button,.customize-panel .clothing-subcategories button,.customize-panel .dressing-actions button{min-height:32px;padding:5px 10px;border:1px solid rgba(81,70,76,.2);border-radius:9px;background:#ffffffad;color:#51464c;font-size:12px;white-space:nowrap}.customize-panel .dressing-categories button[aria-pressed=true]{background:#7d9f77;color:#fff}.customize-panel .clothing-subcategories button[aria-pressed=true]{background:#bc8083;color:#fff}.dressing-workspace{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:10px;min-height:0}.dressing-picker{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:7px}.clothing-subcategories[hidden]{display:none}.clothing-subcategories{overflow-x:auto}.clothing-subcategories button{flex:1}.dressing-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(88px,auto);align-content:start;gap:10px 8px;max-height:210px;padding:2px;overflow-y:auto;overscroll-behavior:contain}.customize-panel .dressing-option{display:grid;justify-items:center;gap:2px;min-width:0;min-height:88px;height:auto;padding:4px;border:2px solid transparent;border-radius:9px;background:#e8e8e8;color:#51464c}.customize-panel .dressing-option[aria-selected=true]{border-color:#935e68;background:#ffedd2e6}.dressing-option canvas{display:block;width:100%;max-width:82px;height:auto;image-rendering:pixelated}.dressing-preview{display:grid;justify-items:center;align-content:start;gap:6px;padding:8px 5px;border:1px solid rgba(81,70,76,.18);border-radius:12px;background:#fff9ed8f;text-align:center;font-size:12px}.dressing-preview canvas{width:120px;height:120px;image-rendering:pixelated}.dressing-preview span{font-size:11px}.dressing-actions{justify-content:flex-end}.customize-panel .dressing-actions #dressing-confirm{background:#7d9f77;color:#fff}.customize-panel .dressing-actions #dressing-cancel{background:#ffffffb8;color:#51464c}@media(max-width:480px){.dressing-workspace{grid-template-columns:minmax(0,1fr)}.dressing-preview{grid-template-columns:96px 1fr;grid-template-rows:1fr 1fr;justify-items:start;align-items:center;text-align:left}.dressing-preview strong{grid-column:2;grid-row:1;align-self:end}.dressing-preview canvas{grid-column:1;grid-row:1 / 3;width:96px;height:96px}.dressing-preview span{grid-column:2;grid-row:2;align-self:start}.dressing-options{max-height:165px}}.chat-panel{position:absolute;z-index:7;top:max(64px,calc(env(safe-area-inset-top) + 56px));right:max(12px,env(safe-area-inset-right));width:min(340px,calc(100vw - 24px));height:min(390px,calc(100dvh - 100px));min-height:210px;padding:12px;display:flex;flex-direction:column;gap:10px}.chat-panel[hidden]{display:none}.chat-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.chat-header>div{display:grid}.chat-header strong{color:#935e68}.chat-header small{font-size:11px;opacity:.78}.chat-close{width:34px;height:34px;border:0;border-radius:50%;color:#51464c;background:#fff9ed85;font-size:22px}.chat-messages{flex:1;min-height:0;overflow-y:auto;margin:0;padding:8px;list-style:none;border-radius:10px;background:#fff9edb8}.chat-message{display:flex;justify-content:flex-end;margin:5px 0}.chat-bubble{max-width:90%;padding:7px 10px;border-radius:12px 12px 3px;background:#f2d4ca;overflow-wrap:anywhere;font-size:13px}.chat-form{display:flex;gap:7px}.chat-form input{min-width:0;flex:1;height:40px;padding:0 11px;border:1px solid #ffffff8a;border-radius:10px;background:#fff9edd1;color:#51464c;font:inherit}.chat-form button{padding:0 14px;border:0;border-radius:10px;background:#bc8083;color:#fff;font:inherit;font-weight:600}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.touch-controls{position:absolute;z-index:5;right:var(--action-buttons-left);bottom:max(18px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,clamp(44px,11vw,58px));grid-template-rows:repeat(2,clamp(44px,11vw,58px));gap:5px;padding:8px;background:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls button{border:1px solid rgba(255,255,255,.8);border-radius:13px;color:#574b50;background:#fff9edb3;font:inherit;font-size:20px;touch-action:none;-webkit-tap-highlight-color:transparent}.touch-controls button:active{background:#fff9ed7a;transform:scale(.96)}.touch-controls [data-dir=up]{grid-column:2;grid-row:1}.touch-controls [data-dir=left]{grid-column:1;grid-row:2}.touch-controls [data-dir=down]{grid-column:2;grid-row:2}.touch-controls [data-dir=right]{grid-column:3;grid-row:2}.jump-control{display:none;position:absolute;z-index:5;left:var(--action-buttons-left);right:auto;bottom:max(18px,env(safe-area-inset-bottom));width:64px;height:64px;color:#574b50;font:inherit;font-size:11px;line-height:1.1;touch-action:none;-webkit-tap-highlight-color:transparent}.jump-control b{font-size:20px}.jump-control:active{background:#fff9edb3;transform:scale(.96)}.jump-control,.sit-control,.lie-control{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;-webkit-tap-highlight-color:transparent}.sit-control,.lie-control{position:fixed;z-index:12;bottom:max(18px,env(safe-area-inset-bottom));width:66px;height:66px;border:1px solid rgba(255,255,255,.7);border-radius:18px;color:#443c50;font:600 12px/1.1 system-ui,sans-serif;cursor:pointer}.sit-control{left:calc(var(--action-buttons-left) + 72px)}.lie-control{left:calc(var(--action-buttons-left) + 144px)}.sit-control b,.lie-control b{font-size:20px}.sit-control:active,.lie-control:active{background:#fff9edb3;transform:scale(.96)}@media(pointer:fine)and (min-width:900px){.touch-controls{display:none}}@media(pointer:coarse){.jump-control{display:block}}@media(pointer:coarse),(max-width:1024px){.jump-control{display:block}}.noteboard-panel,.noteboard-panel *{-webkit-text-size-adjust:100%;text-size-adjust:100%;box-sizing:border-box}.noteboard-panel{position:fixed;z-index:35;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));display:flex;flex-direction:column;padding:14px;border-radius:16px;background:#fff9edf2;border:1px solid rgba(255,255,255,.75);box-shadow:0 8px 28px #382f2a2e;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.noteboard-panel[hidden]{display:none!important}.noteboard-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:8px;flex-shrink:0}.noteboard-header strong{color:#935e68;font-size:16px}.noteboard-header small{display:block;font-size:12px;color:#7a6b72}.noteboard-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;margin-bottom:8px;border-radius:10px;background:#ffffffc7;border:1px solid rgba(81,70,76,.16);flex-shrink:0}.noteboard-toolbar-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%}.noteboard-draw-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.noteboard-draw-row::-webkit-scrollbar{display:none}.noteboard-draw-row .noteboard-tool-group{flex-shrink:0}@media(max-width:480px){.noteboard-draw-row{gap:4px}.noteboard-draw-row .noteboard-tool-group{gap:3px;padding-right:5px}.noteboard-draw-row .noteboard-tool-label{font-size:10px;margin-right:1px}.noteboard-draw-row .noteboard-swatch{width:20px;min-width:20px;height:20px}.noteboard-draw-row .noteboard-tool-btn:not(.noteboard-swatch){height:26px;padding:0 6px;font-size:11px}}.noteboard-tool-group{display:flex;align-items:center;gap:4px;padding-right:8px;border-right:1px solid rgba(81,70,76,.18)}.noteboard-tool-group:last-child{border-right:none;padding-right:0}.noteboard-tool-label{font-size:11px;font-weight:600;color:#7a6b72;margin-right:2px}.noteboard-tool-btn{min-width:30px;height:30px;padding:0 8px;border:1px solid rgba(81,70,76,.22);border-radius:7px;background:#fff;color:#51464c;font:inherit;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .1s ease,background .15s ease}.noteboard-tool-btn:hover{background:#f5efe6}.noteboard-tool-btn:active{transform:scale(.95)}.noteboard-tool-btn[aria-pressed=true]{background:#bc8083;color:#fff;border-color:transparent}.noteboard-swatch{width:24px;min-width:24px;height:24px;padding:0;border-radius:50%;border:2px solid rgba(81,70,76,.35)}.noteboard-swatch[aria-pressed=true]{outline:2px solid #51464c;outline-offset:2px;background-color:inherit}.noteboard-scroll-area{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;border-radius:10px;border:1px solid #dcd6cc;box-shadow:inset 0 2px 6px #0000000a;--line-height: 32px;background-color:#fff;background-image:linear-gradient(90deg,transparent 38px,rgba(235,110,110,.55) 38px,rgba(235,110,110,.55) 40px,transparent 40px),repeating-linear-gradient(to bottom,transparent 0px,transparent calc(var(--line-height) - 1px),#9ec5e8 calc(var(--line-height) - 1px),#9ec5e8 var(--line-height));background-size:100% 100%,100% var(--line-height);background-position:0 0,0 20px;background-repeat:no-repeat,repeat-y;background-attachment:local}.noteboard-canvas{position:absolute;top:0;left:0;z-index:1;pointer-events:none;touch-action:auto}.noteboard-paper{position:relative;z-index:2;min-height:100%;outline:none;-webkit-user-select:text;user-select:text;line-height:var(--line-height);font-size:16px;color:#1f1b1d;padding:20px 20px 60px 52px;background:transparent}.noteboard-paper p,.noteboard-paper div{margin:0;min-height:var(--line-height)}.noteboard-scroll-area.is-drawing .noteboard-canvas{pointer-events:auto;touch-action:none;cursor:crosshair}.noteboard-scroll-area.is-drawing .noteboard-paper{pointer-events:none}.noteboard-nav-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;flex-shrink:0}.noteboard-page-controls{display:flex;align-items:center;gap:6px}.noteboard-page-indicator{font-size:13px;font-weight:700;color:#51464c;min-width:78px;text-align:center}.noteboard-shelf-container{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.noteboard-shelf{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));grid-auto-rows:max-content;align-items:stretch;gap:14px;padding:12px 6px}.noteboard-shelf-container[hidden],.noteboard-shelf[hidden],.noteboard-editor-view[hidden],.notebook-creator-box[hidden]{display:none!important}.noteboard-editor-view{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.notebook-card{position:relative;min-height:185px;height:100%;border-radius:6px 14px 14px 6px;padding:14px 12px 12px 22px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;background-color:#fc9;color:#3d3439;cursor:pointer;box-shadow:0 6px 16px #2d262a29;transition:transform .15s ease,box-shadow .15s ease;overflow:hidden;border:1px solid rgba(81,70,76,.22)}.notebook-card:before{content:"";position:absolute;top:0;bottom:0;left:0;width:14px;background-color:var(--spine-color, #ffcc99);border-right:1px solid rgba(81,70,76,.22);box-shadow:inset -2px 0 4px #00000014}.notebook-card-actions{display:flex;align-items:center;gap:4px}.notebook-edit-btn{background:#ffffffd9;color:#51464c;border:1px solid rgba(81,70,76,.2);border-radius:6px;padding:3px 7px;font-size:11px;font-weight:600;cursor:pointer}.notebook-edit-btn:hover{background:#fff}.notebook-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px #2d262a40}.notebook-cover-label{background:#fffffff0;color:#3d3439;padding:8px 10px;border-radius:8px;font-size:14px;font-weight:700;line-height:1.3;word-break:break-word;box-shadow:0 2px 6px #0000001a}.notebook-cover-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;opacity:.92}.notebook-delete-btn{background:#00000047;color:#fff;border:none;border-radius:6px;padding:3px 7px;font-size:11px;cursor:pointer}.notebook-delete-btn:hover{background:#d32f2f}.notebook-add-card{min-height:185px;height:100%;border-radius:14px;border:2px dashed rgba(147,94,104,.5);background:#ffffffa6;color:#935e68;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .15s ease,transform .15s ease}.notebook-add-card:hover{background:#fffffff2;transform:translateY(-2px)}.notebook-add-card span{font-size:32px;line-height:1}.notebook-creator-box{padding:14px;margin-bottom:10px;border-radius:12px;background:#fff;border:1px solid rgba(81,70,76,.22);display:flex;flex-direction:column;gap:10px;flex-shrink:0}.notebook-creator-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.notebook-creator-box input[type=text]{flex:1 1 180px;height:36px;padding:0 12px;border:1px solid rgba(81,70,76,.3);border-radius:8px;font:inherit;font-size:14px;color:#3d3439;-webkit-user-select:text;user-select:text}@media(max-width:600px){.noteboard-panel{padding:10px}.noteboard-scroll-area{--line-height: 28px;background-position:0 0,0 16px}.noteboard-paper{font-size:14px;padding:16px 14px 48px 42px;background:transparent}}.noteboard-jump-input{width:62px;height:30px;padding:0 6px;border:1px solid rgba(81,70,76,.3);border-radius:7px;background:#fff;color:#3d3439;font:inherit;font-size:13px;font-weight:600;text-align:center;-webkit-user-select:text;user-select:text}.noteboard-link-bar{padding-top:6px;border-top:1px dashed rgba(81,70,76,.22)}.noteboard-link-bar[hidden]{display:none!important}.noteboard-paper a.noteboard-page-link{color:#1565c0;text-decoration:underline;font-weight:600;cursor:pointer;background:#1565c014;padding:1px 4px;border-radius:4px}.noteboard-paper a.noteboard-page-link:hover{background:#1565c02e}.noteboard-text-swatch{width:20px;min-width:20px;height:20px}@media(max-width:480px){.noteboard-toolbar-row .noteboard-tool-group{gap:3px}.noteboard-text-swatch{width:18px;min-width:18px;height:18px}.noteboard-toolbar-row .noteboard-tool-btn:not(.noteboard-swatch){padding:0 6px;font-size:12px}}.noteboard-paper::selection,.noteboard-paper *::selection{background:#78909c2e}.noteboard-paper::-moz-selection,.noteboard-paper *::-moz-selection{background:#78909c2e}.noteboard-pending-link-mark{background:#5c8ab847;color:inherit;border-radius:4px;padding:1px 2px;outline:1px dashed #5c8ab8}.noteboard-link-bubble{position:absolute;z-index:20;display:flex;flex-direction:column;gap:6px;width:168px;padding:8px;border-radius:12px;background:#fff;border:1px solid rgba(81,70,76,.25);box-shadow:0 8px 20px #2d262a38}.noteboard-link-bubble[hidden]{display:none!important}.noteboard-link-bubble-row{display:flex;align-items:center;gap:6px;width:100%}.noteboard-bubble-input{width:100%!important;height:32px;font-size:13px}.noteboard-link-bubble-row .noteboard-tool-btn{flex:1 1 0;height:30px;font-size:12px;padding:0 6px}.noteboard-jump-input::-webkit-outer-spin-button,.noteboard-jump-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.noteboard-jump-input{-moz-appearance:textfield}.noteboard-page-indicator{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:#51464c;white-space:nowrap}.noteboard-page-num-input{width:46px;height:26px;padding:0 4px;border:1px solid rgba(81,70,76,.35);border-radius:6px;background:#fff;color:#3d3439;font:inherit;font-size:13px;font-weight:700;text-align:center;-webkit-user-select:text;user-select:text}.noteboard-page-num-input:focus{outline:2px solid #5c8ab8;border-color:transparent}.noteboard-main-actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.noteboard-main-actions::-webkit-scrollbar{display:none}.noteboard-main-actions .noteboard-tool-btn{flex-shrink:0;white-space:nowrap}@media(max-width:480px){.noteboard-main-actions{gap:4px}.noteboard-main-actions .noteboard-tool-btn{padding:0 6px;font-size:11px;height:28px}}.noteboard-floating-menu{position:absolute;z-index:25;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 8px;border-radius:14px;background:#fffffff5;border:1px solid rgba(81,70,76,.25);box-shadow:0 8px 24px #2d262a3d;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);touch-action:none;cursor:grab;will-change:transform,top,left}.noteboard-floating-menu.is-dragging{cursor:grabbing;box-shadow:0 12px 30px #2d262a52}.noteboard-floating-menu[hidden]{display:none!important}.noteboard-floating-row{display:flex;align-items:center;gap:6px}.noteboard-floating-subrow{display:flex;align-items:center;justify-content:center;gap:8px;padding-top:6px;border-top:1px dashed rgba(81,70,76,.22);width:100%}.noteboard-floating-subrow[hidden]{display:none!important}.noteboard-float-btn{min-width:34px;height:34px;padding:0 8px;border:1px solid rgba(81,70,76,.22);border-radius:9px;background:#fff;color:#51464c;font:inherit;font-size:15px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .1s ease,background .15s ease}.noteboard-float-btn:active{transform:scale(.93)}.noteboard-float-btn[aria-pressed=true]{background:#bc8083;color:#fff;border-color:transparent}.noteboard-float-close{min-width:30px;height:30px;padding:0;border:none;border-radius:50%;background:#51464c1f;color:#51464c;font-size:15px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.noteboard-float-close:hover{background:#d32f2f;color:#fff}.noteboard-current-color-btn{width:28px;height:28px;min-width:28px;border-radius:50%;border:2px solid #ffffff;outline:2px solid #51464c;cursor:pointer;padding:0}.noteboard-scroll-area:not(.allow-text-select) .noteboard-paper,.noteboard-scroll-area:not(.allow-text-select) .noteboard-paper *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}.noteboard-scroll-area.allow-text-select .noteboard-paper,.noteboard-scroll-area.allow-text-select .noteboard-paper *{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}.noteboard-floating-menu{cursor:default}.noteboard-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:22px;min-width:22px;height:34px;padding:0 2px;margin-right:2px;border-radius:8px;background:#51464c14;color:#7a6b72;font-size:14px;font-weight:700;letter-spacing:-2px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transition:background .15s ease,color .15s ease}.noteboard-drag-handle:hover{background:#bc808338;color:#51464c}.noteboard-floating-menu.is-dragging .noteboard-drag-handle{cursor:grabbing;background:#bc8083;color:#fff}.noteboard-paper{padding-bottom:calc(var(--line-height) * 6)}.noteboard-scroll-area.is-typing .noteboard-paper{padding-bottom:max(42vh,calc(var(--line-height) * 8))}@media(max-width:900px){.noteboard-paper{padding-bottom:calc(var(--line-height) * 7)}.noteboard-scroll-area.is-typing .noteboard-paper{padding-bottom:max(48vh,calc(var(--line-height) * 9))}@media(pointer:coarse),(max-width:1024px){.noteboard-paper,.noteboard-paper *,.noteboard-page-num-input,.noteboard-jump-input,.notebook-creator-box input[type=text]{font-size:16px!important}}}.youtube-panel,.youtube-panel *{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}.youtube-panel{position:fixed;z-index:30;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));width:auto;height:auto;padding:14px;display:flex;flex-direction:column;gap:10px;overflow:hidden;background:#fff9edeb}.youtube-panel[hidden]{display:none!important}.youtube-panel .chat-header{flex-shrink:0}.youtube-video-wrapper{position:relative;flex:1 1 auto;min-height:0;width:100%;border-radius:12px;overflow:hidden;background:#1a1517;border:1px solid rgba(255,255,255,.5)}.youtube-video-wrapper iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0}.youtube-controls{flex-shrink:0;display:flex;flex-direction:column;gap:10px}.youtube-speed-row{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;flex-shrink:0}.youtube-speed-label{font-size:14px;font-weight:700;color:#935e68;white-space:nowrap;margin-right:2px}.youtube-speed-row button{flex:1 1 auto;max-width:84px;min-height:36px;padding:6px 10px}.youtube-channel-list{display:flex;flex-direction:column;flex-wrap:nowrap;gap:8px;max-height:165px;overflow-y:auto;padding-right:4px;overscroll-behavior:contain}.youtube-channel-list button{width:100%;min-height:44px;padding:10px 14px;text-align:left;font-size:15px;line-height:1.3;flex-shrink:0}@media(orientation:portrait)and (max-width:1024px){.youtube-video-wrapper{flex:0 0 auto;aspect-ratio:16 / 9}.youtube-controls{flex:1 1 auto;min-height:0}.youtube-channel-list{flex:1 1 auto;max-height:none}}@media(orientation:landscape)and (max-height:650px){.youtube-panel{display:grid;grid-template-columns:minmax(0,1fr) 295px;grid-template-rows:auto minmax(0,1fr);padding:10px 12px;gap:8px 12px}.youtube-panel .chat-header{grid-column:1 / -1;grid-row:1}.youtube-video-wrapper{grid-column:1;grid-row:2;height:100%}.youtube-controls{grid-column:2;grid-row:2;height:100%;overflow:hidden}.youtube-speed-row{gap:5px}.youtube-speed-label{font-size:12px;font-weight:400;color:#000;white-space:nowrap;margin-right:2px}.youtube-speed-row button[aria-pressed=true]{background:#ff525261;color:#3d3439;border-color:#dc3545b8;box-shadow:0 2px 8px #dc354533}.youtube-speed-row button[aria-pressed=true]:hover{background:#ff525280}.youtube-channel-list{flex:1 1 auto;max-height:none;gap:6px}.youtube-channel-list button{min-height:40px;padding:8px 10px;font-size:14px}}@media(min-width:1025px)and (min-height:651px){.youtube-panel{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:auto minmax(0,1fr);padding:16px 20px;gap:12px 16px}.youtube-panel .chat-header{grid-column:1 / -1;grid-row:1}.youtube-video-wrapper{grid-column:1;grid-row:2;height:100%}.youtube-controls{grid-column:2;grid-row:2;height:100%;overflow:hidden}.youtube-channel-list{flex:1 1 auto;max-height:none}}.youtube-channel-list button[aria-pressed=true]{background:#afddfc;color:#3d3439;border-color:#161616bf;box-shadow:0 2px 8px #d4af3738}.youtube-channel-list button[aria-pressed=true]:hover{background:#afddfc}.youtube-channel-label{font-weight:600}.youtube-channel-subtitle{font-weight:400;opacity:.85}.youtube-controls .youtube-speed-row button[aria-pressed=true]{background:#ff525261;color:#3d3439;border-color:#dc3545b8;box-shadow:0 2px 8px #dc354533}.youtube-controls .youtube-speed-row button[aria-pressed=true]:hover,.youtube-controls .youtube-speed-row button[aria-pressed=true]:active{background:#ff525280}.youtube-controls button,.youtube-controls button[aria-pressed=true],.youtube-controls button:active,.youtube-controls button:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:10px!important}.youtube-category-row{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:6px;border-bottom:1px dashed rgba(81,70,76,.22)}.youtube-category-row[hidden]{display:none!important}.youtube-category-row button{flex:1 1 auto;min-height:36px;padding:6px 12px;font-size:13px;text-align:center}.youtube-controls .youtube-category-row button[aria-pressed=true]{background:#98a6f1;color:#fff;border-color:transparent;box-shadow:0 2px 8px #7d9f7747}.youtube-add-form{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:6px;border-bottom:1px dashed rgba(81,70,76,.22)}.youtube-add-form[hidden]{display:none!important}.youtube-add-form input{min-height:36px;padding:6px 10px;border-radius:8px;border:1px solid rgba(147,94,104,.35);background:#ffffffe6;color:#3d3439;font-size:16px}.youtube-input-title{flex:1 1 110px;min-width:0}.youtube-input-url{flex:2 1 160px;min-width:0}.youtube-add-btn{flex:0 0 auto;min-height:36px;padding:6px 12px;background:#28c24f8c;color:#3d3439;border-color:#0a0a0abf;box-shadow:0 2px 8px #d4af3738;font-weight:600;font-size:13px;border:1px solid rgba(175,224,38,.35);cursor:pointer}.youtube-channel-item-row{display:flex;align-items:stretch;gap:6px;flex-shrink:0}.youtube-channel-item-row>button:first-child{flex:1 1 auto;min-width:0}.youtube-del-btn{flex:0 0 auto;width:auto!important;min-width:46px;padding:0 10px!important;text-align:center!important;background:#dc354529;color:#a71d2a;border:1px solid rgba(220,53,69,.35);font-size:13px!important}.youtube-empty-msg{padding:14px 10px;text-align:center;font-size:13px;color:#7a6870}.youtube-custom-playlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:6px;padding-bottom:6px;border-bottom:1px dashed rgba(81,70,76,.22)}.youtube-custom-playlist-grid[hidden]{display:none!important}.youtube-custom-playlist-grid button{width:100%;min-height:36px;padding:6px 4px;font-size:13px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.youtube-controls .youtube-custom-playlist-grid button[aria-pressed=true]{background:#ffeb3b8c;color:#3d3439;border-color:#d4af37bf;box-shadow:0 2px 8px #d4af3738}.youtube-controls .youtube-custom-playlist-grid button[aria-pressed=true]:hover{background:#ffeb3bad}.youtube-controls .youtube-speed-row .youtube-loop-btn{max-width:none;padding:6px 10px;font-size:13px;font-weight:600;white-space:nowrap}.youtube-controls .youtube-speed-row .youtube-loop-btn[aria-pressed=true]{background:#ffeb3b8c;color:#3d3439;border-color:#d4af37bf;box-shadow:0 2px 8px #d4af3738}.youtube-controls .youtube-speed-row .youtube-loop-btn[aria-pressed=true]:hover{background:#ffeb3bad}.youtube-channel-item-row>button:first-child,.youtube-channel-list>button{display:flex;align-items:center;padding:8px 12px;line-height:1.35}.youtube-channel-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis;word-break:break-word;line-height:1.35;max-height:2.7em}.youtube-search-toggle-btn{flex:0 0 auto;min-width:40px;min-height:36px;padding:6px 10px;background:#98a6f159;color:#3d3439;border:1px solid rgba(147,94,104,.35);font-size:15px;cursor:pointer}.youtube-search-toggle-btn[aria-pressed=true]{background:#98a6f1;color:#fff;border-color:transparent}.youtube-search-view{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:165px;gap:6px;overflow:hidden}.youtube-search-view[hidden],.youtube-channel-list[hidden]{display:none!important}@media(orientation:portrait)and (max-width:1024px),(orientation:landscape)and (max-height:650px),(min-width:1025px)and (min-height:651px){.youtube-search-view{max-height:none}}.youtube-web-search-bar{display:flex;gap:6px;flex-shrink:0}.youtube-web-search-bar input{flex:1 1 auto;min-width:0;min-height:36px;padding:4px 10px;border-radius:8px;border:1px solid rgba(147,94,104,.35);background:#fff;color:#3d3439;font-size:16px}.youtube-web-search-bar button{flex:0 0 auto;min-height:34px;padding:4px 12px;background:#ff5252;color:#fff;border:0;font-size:13px;font-weight:600;cursor:pointer}.youtube-search-results{flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-right:4px}.youtube-search-result-item{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;padding:6px 8px!important;text-align:left;background:#ffffffe6;border:1px solid rgba(147,94,104,.25);flex-shrink:0;cursor:pointer}.youtube-search-result-item:hover{background:#fff3cd}.youtube-search-thumb{width:96px;aspect-ratio:16 / 9;height:auto;flex-shrink:0;object-fit:cover;border-radius:6px;display:block;background:#1a1517}.youtube-search-title{flex:1 1 auto;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis;word-break:break-word;font-size:13px;font-weight:600;line-height:1.35;max-height:2.7em;color:#3d3439}.youtube-channel-item-row.has-thumb{align-items:stretch}.youtube-channel-item-row.has-thumb>button:first-child{display:flex;flex-direction:row;align-items:center;gap:10px;padding:6px 8px!important;text-align:left}.youtube-channel-thumb{width:96px;aspect-ratio:16 / 9;height:auto;flex-shrink:0;object-fit:cover;border-radius:6px;display:block;background:#1a1517}.youtube-channel-item-row.has-thumb .youtube-channel-label{flex:1 1 auto;min-width:0;font-size:13px}
