:root{--text-main:#35506d;--text-soft:#6f8399}body{margin:0;background:linear-gradient(145deg,#dbe9fa,#ece3f5 52%,#f7e2e7);color:var(--text-main);font-family:ui-sans-serif,system-ui,sans-serif}html,body{height:100%;overflow:hidden;overscroll-behavior:none}[hidden]{display:none!important}button{font:inherit;cursor:pointer}button:disabled{opacity:.65;cursor:wait}:focus-visible{outline:3px solid #6b67b5;outline-offset:3px}.whiteboard-page{height:100dvh;padding:max(10px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom));overflow:hidden}.page-shell{height:100%;max-width:920px;margin:auto;display:flex;flex-direction:column;gap:10px;position:relative}.whiteboard-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;flex-shrink:0}.page-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.whiteboard-page .app-header{margin:0;gap:6px}.whiteboard-page .control-pill{min-height:44px;padding:8px 12px;box-shadow:none;font:inherit;font-size:.85rem}.whiteboard-page .control-pill--menu{width:44px;padding:0}.whiteboard-page .top-menu{max-height:calc(100dvh - 90px);overflow-y:auto}.whiteboard-page .top-submenu{position:static;min-width:0;display:none;box-shadow:none;border:0;padding-left:12px}.whiteboard-page .top-menu__item--open>.top-submenu{display:grid}.board-card{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}.board-wrap{flex:none;width:var(--whiteboard-surface-width);height:var(--whiteboard-surface-height);min-height:0;align-self:center;position:relative;border:0;box-shadow:0 0 0 1px #bac8d8;border-radius:18px;background:#fffdf8;overflow:hidden}.whiteboard-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.whiteboard-canvas--eraser{cursor:cell}.canvas-placeholder{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#a2aebc}.board-shortcuts,.button-row{display:flex;gap:8px;flex-shrink:0}.board-shortcuts button,.action-btn,.dialog-heading button{border:1px solid #c7cedd;border-radius:10px;background:#ffffffd9;color:#35506d;min-height:44px;padding:6px 12px}.board-shortcuts button,.action-btn{flex:1;min-width:0}.whiteboard-topbar .button-row{gap:6px;min-width:0}.whiteboard-topbar .action-btn{padding:6px 8px;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#clear-btn{flex:0 0 auto}.action-btn-primary{background:#566a9c;color:#fff;border-color:#566a9c}.save-status{margin:0;flex-shrink:0;max-height:72px;overflow-y:auto;padding:8px 12px;background:#ffffffd9;border-radius:10px;font-size:.85rem}.save-status:empty{display:none}.whiteboard-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:1px solid #c7cedd;border-radius:20px;padding:18px;color:#35506d;background:#fafaff;overflow-y:auto;overscroll-behavior:contain}.whiteboard-dialog::backdrop{background:#25354e66}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.dialog-heading h2{font-size:1.15rem;margin:0}.whiteboard-tools{display:grid;gap:16px}.tool-tabs{display:flex;gap:4px}.tool-tab{flex:1;min-height:44px;padding:4px;font-size:.8rem;border:0;background:transparent;color:#526580;border-bottom:3px solid transparent}.tool-tab.is-active{border-color:#7a68cc;color:#5e4caa}.tool-panel-shell{min-height:94px;padding:12px 0}.colour-picker{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.colour-btn{width:44px;height:44px;border:1px solid #bac8d8;border-radius:50%;background:#fff;display:grid;place-items:center;padding:0}.colour-btn.is-active{outline:2px solid #7a68cc;outline-offset:1px}.colour-btn__swatch{width:26px;height:26px;border-radius:50%;background:var(--swatch-colour)}.slider-label,.slider-help{display:flex;justify-content:space-between;gap:10px}.tool-slider{width:100%;min-height:44px;accent-color:#7a68cc}.slider-help{font-size:.8rem;color:#6f8399}.message-label{font-size:.9rem}.message-box{width:100%;min-height:150px;margin-top:10px;padding:12px;border:1px solid #bac8d8;border-radius:12px;resize:vertical;font:inherit;color:inherit}.home-preview-layout{display:grid;gap:12px}.eyebrow{display:none}.home-preview-copy h2{font-size:1rem;margin:0 0 8px}.preview-status{font-size:.85rem;color:#6f8399}.home-preview-message{white-space:pre-wrap;overflow-wrap:anywhere}.home-preview-image-wrap{position:relative}.home-preview-image{width:auto;max-width:100%;margin:auto;max-height:55dvh;object-fit:contain;background:#fffdf8;border-radius:12px}.home-preview-reaction-badge{position:absolute;right:8px;top:8px;border-radius:20px;background:#fff;padding:6px;font-size:1.4rem}
