/* SIEDAAR_WHITEBOARD_STUDIO_V1 */
:root{--studio-purple:#5b2cc9;--studio-gold:#ffd64b}.wb-header{background:#fff;box-shadow:0 2px 16px #27144408}.wb-brand small{font-size:12px;letter-spacing:0}.wb-brand .brand-icon{background:transparent}.wb-brand .brand-icon img{width:46px;height:46px;object-fit:contain}.wb-library{padding:18px 14px;background:#fcfbff}.wb-library p,.resource-card strong,.resource-card small,.lesson-card strong,.lesson-card small{font-size:14px}.tabs button{font-size:14px;min-height:44px}.wb-main{position:relative}.tools{gap:8px;padding:12px;background:#fff;max-height:none}.tools button,.page-controls button{font-size:14px;min-height:46px;padding:10px 12px}.tool-group{gap:6px}.tools button.selected{background:#5b2cc9;color:white;border-color:#5b2cc9}.size-label,.color-label{font-size:14px}.tools select{font-size:16px}.lesson-bar #saveState{font-size:12px}.stage-area{background-color:#f0eef7;background-image:radial-gradient(#d4cbe1 1px,transparent 1px);background-size:22px 22px}.page-frame{box-shadow:0 12px 40px #2c17401a}.studio-insert{background:#fff7d8;border:1px solid #f0d267;border-radius:14px;padding:14px;margin-bottom:16px}.studio-insert p{margin:8px 0 0;color:#5d4a73;font-size:13px}.studio-insert button{min-height:48px;background:#5b2cc9;color:#fff;font-size:15px;width:100%;cursor:grab;touch-action:none}.studio-object-layer{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;z-index:4}.studio-text-object{position:absolute;padding:0;border:2px solid transparent;background:transparent;border-radius:5px;pointer-events:auto;touch-action:none;cursor:move;min-height:0;min-width:0}.studio-text-object:hover,.studio-text-object:focus-visible{border-color:#ad92e7;background:#5b2cc908}.studio-text-object.selected{border:2px solid #7a42cf;background:#5b2cc90a;box-shadow:0 0 0 3px #fff8}.studio-text-object .studio-resize{position:absolute;right:-9px;bottom:-9px;width:20px;height:20px;min-height:0;border-radius:5px;border:2px solid white;background:#5b2cc9;cursor:nwse-resize;touch-action:none}.studio-object-layer[hidden]{display:none!important}.studio-notes{position:absolute;right:16px;top:12px;bottom:44px;width:min(350px,calc(100% - 32px));background:#fffdf4;border:1px solid #eadca0;box-shadow:0 8px 40px #25113b2b;border-radius:18px;z-index:22;padding:18px;display:flex;flex-direction:column;gap:10px}.studio-notes h2{margin:0;font-size:21px}.studio-notes p{font-size:13px;line-height:1.6;margin:0;color:#6c5c38}.studio-notes textarea{flex:1;min-height:100px;width:100%;font-size:16px;line-height:1.7;background:repeating-linear-gradient(#fffdf5,#fffdf5 31px,#e7dcae 32px);resize:none;border:1px solid #e9ddb3}.studio-notes button{font-size:14px;min-height:44px}.studio-notes-actions{display:flex;gap:6px;flex-wrap:wrap}.studio-note-count{font-size:12px;color:#79684c}.studio-selection-tools{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px;background:#f7f2ff}.studio-selection-tools button{font-size:14px;min-height:44px}.studio-selection-tools label{display:flex;align-items:center;gap:8px;font-size:14px}.studio-selection-tools select{min-height:44px;font-size:16px}.studio-palette{position:fixed;z-index:45;left:16px;top:16px;width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #ded5ed;border-radius:18px;background:#fffefcf5;box-shadow:0 12px 36px #21123333;padding:10px;backdrop-filter:blur(12px)}.studio-palette-handle{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:5px 3px 10px}.studio-palette-handle>button:first-child{touch-action:none;cursor:move;flex:1;text-align:left;font-size:14px;min-height:44px;background:#f1eaff;color:#4a208f}.studio-palette-handle>button:last-child{min-height:44px;min-width:44px}.studio-palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.studio-palette-grid button{font-size:14px;padding:9px 5px;min-height:48px;white-space:normal}.studio-palette-grid button.selected{background:#5b2cc9;border-color:#5b2cc9;color:white}.studio-palette-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding-top:9px}.studio-palette-row label{display:flex;align-items:center;gap:5px;font-size:13px}.studio-palette-row select{min-height:44px}.studio-palette-row input[type=color]{width:40px;height:40px}.studio-palette small{display:block;font-size:12px;line-height:1.6;margin:8px 3px;color:#675677}.studio-palette.collapsed{width:245px}.studio-palette.collapsed .studio-palette-content{display:none}.studio-palette[hidden]{display:none!important}.studio-surface-fullscreen{overflow:hidden!important}.studio-surface-fullscreen .wb-header,.studio-surface-fullscreen .wb-library,.studio-surface-fullscreen .lesson-bar,.studio-surface-fullscreen .draft-banner,.studio-surface-fullscreen .tools,.studio-surface-fullscreen .page-controls,.studio-surface-fullscreen .page-strip,.studio-surface-fullscreen .wb-status,.studio-surface-fullscreen .present-bar,.studio-surface-fullscreen .studio-selection-tools{display:none!important}.studio-surface-fullscreen .wb-workspace,.studio-surface-fullscreen .wb-main{display:block!important;width:100%;height:100dvh!important;min-height:0!important}.studio-surface-fullscreen .stage-area{position:absolute;inset:0;padding:6px!important;min-height:0!important;background:#e9e5f1}.studio-surface-fullscreen .page-frame{box-shadow:none}.studio-surface-fullscreen .studio-notes{position:fixed;z-index:44;top:16px;bottom:16px;right:16px}.studio-fullscreen-toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:46;background:#241537;color:white;border-radius:10px;padding:9px 14px;max-width:calc(100vw - 24px);pointer-events:none;font-size:14px}.studio-notes[hidden],.studio-fullscreen-toast[hidden]{display:none!important}.studio-quick-add{background:#fff4c8!important;color:#4d268b!important}#textDialog textarea{min-height:160px;line-height:1.6;font-size:18px}button:focus-visible{outline:3px solid #dbb23b;outline-offset:3px}
@media(max-width:1000px){.tools .tool-group{flex-wrap:wrap}.wb-workspace{grid-template-columns:230px minmax(0,1fr)}.lesson-bar{flex-wrap:wrap}.studio-palette{width:min(320px,calc(100vw - 24px))}}
@media(max-width:760px){.wb-main{height:85dvh;min-height:620px}.studio-selection-tools{padding:6px}.studio-notes{position:fixed;top:10px;bottom:10px;right:10px;z-index:44}.studio-palette-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-palette{max-height:calc(100dvh - 16px)}.studio-palette.collapsed{width:220px}.studio-insert{padding:10px;margin:0 0 10px}.studio-insert p{display:none}.tools{max-height:28dvh;overflow:auto}.studio-surface-fullscreen .stage-area{padding:4px!important}.studio-surface-fullscreen .studio-notes{right:10px;top:10px;bottom:10px}.studio-notes h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
