/* WASecret Whiteboard: full-screen board with a floating tool rail (bottom bar on phones). */
html, body { overflow: hidden; overscroll-behavior: none; }
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.ad-bar { flex-wrap: nowrap; }
.ad-brand { white-space: nowrap; }
.ad-brand > span:last-child { color: var(--muted); font-weight: 600; }
.name { width: 230px; min-width: 0; font-weight: 600; padding: 7px 10px; }
.name:focus { outline: 2px solid rgba(91, 76, 240, .35); border-color: var(--accent); }
.save-state { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bar-right { margin-left: auto; display: flex; gap: 6px; align-items: center; flex: none; }
.btn.sq { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; font-size: 18px; line-height: 1; }
.btn svg, .tool svg, .pbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.work { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.board { position: absolute; inset: 0; background-color: #f7f8fc; background-image: radial-gradient(circle, #cfd3e3 1.1px, transparent 1.3px); background-size: 24px 24px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; cursor: default; }
.board:focus-visible { box-shadow: inset 0 0 0 2px rgba(91, 76, 240, .35); }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
#world text { font-kerning: none; }
#sel rect, #sel circle, #sel path { vector-effect: non-scaling-stroke; }
#sel [data-handle] { cursor: pointer; }
#sel [data-handle="nw"], #sel [data-handle="se"] { cursor: nwse-resize; }
#sel [data-handle="ne"], #sel [data-handle="sw"] { cursor: nesw-resize; }
#sel [data-handle="n"], #sel [data-handle="s"] { cursor: ns-resize; }
#sel [data-handle="e"], #sel [data-handle="w"] { cursor: ew-resize; }
#sel [data-handle="from"], #sel [data-handle="to"] { cursor: crosshair; }
body[data-tool="hand"] .board, body.space .board { cursor: grab; }
.board.panning, body.space .board.panning { cursor: grabbing; }
body[data-tool="note"] .board, body[data-tool="text"] .board, body[data-tool="shape"] .board, body[data-tool="frame"] .board, body[data-tool="connector"] .board, body[data-tool="pen"] .board, body[data-tool="highlighter"] .board { cursor: crosshair; }
body[data-tool="eraser"] .board { cursor: cell; }
body[data-tool="text"] .board { cursor: text; }

/* Tool rail */
.tools { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 10; max-height: calc(100% - 28px); overflow-y: auto; scrollbar-width: none; }
.tools::-webkit-scrollbar, .props::-webkit-scrollbar { display: none; }
.tool { width: 42px; height: 42px; border: 0; background: none; border-radius: 11px; display: grid; place-items: center; color: var(--fg); cursor: pointer; transition: background .15s, color .15s, transform .15s var(--ease); flex: none; padding: 0; font: inherit; }
.tool:hover { background: var(--hover); }
.tool:active { transform: scale(.94); }
.tool.on { background: #efedff; color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(91, 76, 240, .35); }
.tool:focus-visible, .pbtn:focus-visible, .swatch:focus-visible, .zoom button:focus-visible, .tpl:focus-visible, .sticker-item:focus-visible, .exp:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.tool .lbl { display: none; }
.tools .sep { width: 26px; height: 1px; background: var(--line); margin: 3px 0; flex: none; }

/* Context options */
.props { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 11; max-width: calc(100% - 150px); overflow-x: auto; scrollbar-width: none; white-space: nowrap; animation: pop .18s var(--ease); }
.props .sep { width: 1px; height: 24px; background: var(--line); flex: none; margin: 0 2px; }
.props .lbl { color: var(--muted); font-size: 12px; font-weight: 600; flex: none; margin: 0 2px 0 4px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d5d9e6; cursor: pointer; flex: none; padding: 0; transition: transform .12s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--accent); }
.swatch.none { background: linear-gradient(135deg, #fff 44%, #f43f5e 44% 56%, #fff 56%) !important; }
.pbtn { height: 32px; min-width: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font: 600 12.5px/1 system-ui, sans-serif; color: var(--fg); flex: none; }
.pbtn:hover { background: var(--hover); }
.pbtn.on { background: #efedff; color: var(--accent); border-color: rgba(91, 76, 240, .3); }
.pbtn.danger:hover { background: #ffe4e6; color: #be123c; }
.pbtn svg { width: 18px; height: 18px; }
.props select { height: 32px; border-radius: 9px; border: 1px solid var(--line); font: 600 12.5px system-ui, sans-serif; padding: 0 6px; background: #fff; color: var(--fg); flex: none; }
.props .size { min-width: 28px; text-align: center; font: 600 12.5px system-ui, sans-serif; flex: none; }

/* Zoom and mini map */
.zoom { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; z-index: 10; }
.zoom button { border: 0; background: none; height: 30px; min-width: 32px; padding: 0 6px; border-radius: 8px; cursor: pointer; font: 600 13px/1 system-ui, sans-serif; color: var(--fg); }
.zoom button:hover { background: var(--hover); }
.zoom #zoomPct { min-width: 50px; }
.zoom button[aria-pressed="true"] { color: var(--accent); }
#minimap { position: absolute; right: 14px; bottom: 60px; width: 200px; height: 130px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 10; cursor: pointer; touch-action: none; }
body.no-map #minimap { display: none; }
#minimap .vp { fill: rgba(91, 76, 240, .08); stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Text editor overlay */
#editor { position: absolute; z-index: 9; border: 0; outline: 2px dashed rgba(91, 76, 240, .55); outline-offset: 3px; background: transparent; resize: none; overflow: hidden; padding: 0; margin: 0; font-family: "AD Sans", Arial, Helvetica, sans-serif; line-height: 1.25; color: var(--fg); caret-color: var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 2px; }

/* Empty state */
.empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; padding: 16px; }
.empty .card { pointer-events: auto; text-align: center; max-width: 400px; padding: 22px 20px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); animation: pop .3s var(--ease); }
.empty b { font-size: 17px; }
.empty p { color: var(--muted); margin: 8px 0 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* Side panel */
.side { position: absolute; right: 0; top: 0; bottom: 0; width: 330px; background: var(--bar); border-left: 1px solid var(--line); z-index: 12; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(27, 33, 51, .07); animation: slidein .22s var(--ease); }
.side-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.side-head .ad-tabs { flex: 1; }
.side-body { padding: 12px; overflow: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tpl { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 8px; cursor: pointer; font: inherit; color: var(--fg); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.tpl:hover { border-color: #cfc9ff; transform: translateY(-1px); box-shadow: var(--shadow); }
.tpl svg { width: 100%; height: 118px; background: #f7f8fc; border-radius: 10px; display: block; }
.tpl b { display: block; margin: 7px 4px 0; }
.tpl span { display: block; margin: 2px 4px 2px; color: var(--muted); font-size: 12.5px; }
.side input[type=search] { width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font: 600 12px/1 system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.chip.on { background: #efedff; color: var(--accent); border-color: rgba(91, 76, 240, .35); }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.sticker-item { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 7px; transition: border-color .15s, transform .15s var(--ease); }
.sticker-item:hover { border-color: #cfc9ff; transform: scale(1.04); }
.sticker-item svg { width: 100%; height: 100%; }
.muted { color: var(--muted); font-size: 12.5px; margin: 0; }

/* Dialogs */
.dlg { padding: 18px; width: min(560px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dlg h2 { margin: 0; font-size: 18px; }
.dlg .note { margin: 0; color: var(--muted); font-size: 13px; }
.dlg .row { justify-content: flex-start; }
dialog[open] { animation: pop .22s var(--ease); }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 48vh; overflow: auto; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.board-row.current { border-color: var(--accent); background: #faf9ff; }
.board-row img, .board-row .ph { width: 72px; height: 48px; object-fit: contain; background: #f7f8fc; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.board-row .meta { flex: 1; min-width: 0; }
.board-row .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .meta span { color: var(--muted); font-size: 12px; }
.board-row .acts { display: flex; gap: 4px; flex: none; }
.board-row .acts .btn { padding: 6px 9px; font-size: 12.5px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.exp { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--fg); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.exp:hover { border-color: #cfc9ff; transform: translateY(-1px); box-shadow: var(--shadow); }
.exp b { font-size: 16px; }
.exp span { color: var(--muted); font-size: 12.5px; }
.exp[aria-busy="true"] { opacity: .6; cursor: progress; }

@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.97); } }
.empty .card, dialog[open] { animation-name: popc; }
@keyframes popc { from { opacity: 0; transform: scale(.97); } }
@keyframes slidein { from { transform: translateX(16px); opacity: 0; } }

@media (min-width: 641px) {
  body.side-open .zoom, body.side-open #minimap { right: 344px; }
  body.side-open .props { left: calc(50% - 165px); max-width: calc(100% - 500px); }
}

/* Phones: compact top bar, tools in a scrollable bottom bar, options and panels just above it. */
@media (max-width: 640px) {
  .ad-bar { padding: 8px 10px; gap: 6px; }
  .ad-brand { font-size: 0; gap: 0; }
  .ad-brand-mark { font-size: 16px; width: 32px; height: 32px; }
  .name { width: auto; flex: 1 1 60px; padding: 7px 8px; font-size: 14px; }
  .save-state { display: none; }
  .bar-right { gap: 5px; margin-left: 0; }
  .btn { padding: 7px 10px; font-size: 13px; }
  .btn.sq { width: 34px; height: 34px; }
  .tools { position: fixed; left: 0; right: 0; bottom: 0; top: auto; transform: none; flex-direction: row; align-items: center; border-radius: 0; border: 0; border-top: 1px solid var(--line); max-height: none; overflow-x: auto; overflow-y: hidden; padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -6px 20px rgba(27, 33, 51, .08); }
  .tool { width: 54px; height: 48px; grid-template-rows: 24px 14px; align-content: center; gap: 1px; }
  .tool .lbl { display: block; font-size: 10.5px; font-weight: 600; line-height: 14px; }
  .tools .sep { width: 1px; height: 30px; margin: 0 3px; }
  .props { position: fixed; top: auto; bottom: calc(55px + max(6px, env(safe-area-inset-bottom))); left: 0; right: 0; transform: none; max-width: none; border-radius: 16px 16px 0 0; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(27, 33, 51, .06); padding: 8px 10px; animation: rise .2s var(--ease); }
  .zoom { top: 10px; right: 10px; bottom: auto; padding: 3px; }
  .zoom button { height: 28px; min-width: 28px; }
  #mapBtn, #minimap { display: none; }
  .side { position: fixed; left: 0; right: 0; top: auto; bottom: calc(55px + max(6px, env(safe-area-inset-bottom))); width: auto; height: 58vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgba(27, 33, 51, .12); animation: rise .22s var(--ease); z-index: 31; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl svg { height: 84px; }
  .export-grid { grid-template-columns: 1fr; }
  .board-row { flex-wrap: wrap; }
  .board-row .acts { width: 100%; justify-content: flex-end; }
  .ad-toast { bottom: 150px; }
  .empty { padding-bottom: 90px; }
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Canva-like editor frame (shared shell) ---------- */
body.has-shell > .ad-bar { display: none !important; }
body.has-shell #work { position: relative; flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.zoom .sq { display: inline-grid; place-items: center; }
.zoom .sq svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zoom .sq:disabled { opacity: .4; cursor: default; }
.zoom .zsep { width: 1px; background: var(--line); margin: 4px 2px; }
.side .ad-tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.side .ad-tabs button { white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 12.5px; }

/* Rotation angle and the "You" cursor label */
.rot-label { position: absolute; z-index: 15; pointer-events: none; background: #1b2133; color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 5px 7px; border-radius: 7px; }
.you-cursor { position: absolute; left: 0; top: 0; z-index: 14; pointer-events: none; display: flex; align-items: flex-start; gap: 0; will-change: transform; }
.you-cursor svg { display: none; }
.you-cursor span { background: #8b5cf6; color: #fff; font: 700 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 0 8px 8px 8px; box-shadow: 0 2px 8px rgba(91, 76, 240, .3); }
body[data-tool="hand"] .you-cursor, body.space .you-cursor { display: none; }
@media (hover: none), (max-width: 640px) { .you-cursor { display: none !important; } }
#sel .rot-handle { cursor: grab; }
body[data-mode="view"] .board, body[data-mode="comment"] .board { cursor: grab; }
body[data-mode="view"] .props, body[data-mode="view"] .tools, body[data-mode="comment"] .tools { opacity: .45; pointer-events: none; }

/* Board timer */
.wb-timer { position: absolute; top: 12px; right: 14px; z-index: 12; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font: 700 15px/1 system-ui, sans-serif; color: var(--fg); background-image: linear-gradient(90deg, rgba(91, 76, 240, .14) calc(var(--p, 0) * 100%), transparent 0); }
.wb-timer svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.wb-timer b { font-variant-numeric: tabular-nums; min-width: 40px; }
.wb-timer button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); width: 24px; height: 24px; border-radius: 50%; }
.wb-timer button:hover { background: var(--hover); }
.wb-timer.done { background: #fef3c7; animation: shake .5s 3; }
@keyframes shake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* Context toolbar extras */
.pcolor { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9px; cursor: pointer; flex: none; }
.pcolor:hover { background: var(--hover); }
.pcolor .a { font: 800 15px/1 system-ui, sans-serif; border-bottom: 4px solid #1b2133; padding: 0 2px 1px; }
.pcolor .rb { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #14b8a6, #2f80ff, #8b5cf6, #f43f5e); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d5d9e6; }
.pcolor input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* Elements / Text / Tools panels (in the shell's side panel or the board's own side panel) */
.wb-panel { display: flex; flex-direction: column; gap: 14px; }
.wb-sec { display: flex; flex-direction: column; gap: 8px; }
.wb-sec h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--fg); }
.wb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.wb-note { width: 44px; height: 44px; border-radius: 4px; border: 0; cursor: pointer; box-shadow: 1px 3px 0 rgba(27, 33, 51, .1), inset 0 0 0 1px rgba(27, 33, 51, .08); transition: transform .12s var(--ease); }
.wb-note:hover { transform: translateY(-2px) rotate(-2deg); }
.wb-tile { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; align-content: center; gap: 3px; cursor: pointer; color: var(--fg); padding: 6px; font: 600 11px/1.1 system-ui, sans-serif; transition: border-color .15s, transform .15s var(--ease); }
.wb-tile:hover { border-color: #cfc9ff; transform: translateY(-1px); }
.wb-tile.on { background: #efedff; color: var(--accent); border-color: rgba(91, 76, 240, .4); }
.wb-tile svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wb-tile.txt svg { width: 24px; height: 24px; }
.wb-add-text { border: 0; border-radius: 10px; padding: 11px; font: 700 14px system-ui, sans-serif; cursor: pointer; color: #fff; background: linear-gradient(90deg, #5b4cf0, #8b5cf6); }
.wb-text { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; cursor: pointer; color: var(--fg); transition: border-color .15s; }
.wb-text:hover { border-color: #cfc9ff; }
.wb-text.h { font: 800 26px/1.1 "AD Sans", Arial, sans-serif; }
.wb-text.s { font: 700 18px/1.2 "AD Sans", Arial, sans-serif; }
.wb-text.b { font: 400 13px/1.3 "AD Sans", Arial, sans-serif; }
.wb-text.q { font: italic 400 18px/1.3 "AD Serif", "Times New Roman", serif; text-align: center; }
.wb-text.l span { display: inline-block; background: #1b2133; color: #fff; border-radius: 999px; padding: 6px 14px; font: 700 14px system-ui, sans-serif; }
.wb-text.n span { display: inline-block; background: #ffe27a; padding: 14px 16px; border-radius: 4px; font: 400 15px system-ui, sans-serif; box-shadow: 1px 3px 0 rgba(27, 33, 51, .1); }
.wb-dot { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d5d9e6, 0 2px 6px rgba(27, 33, 51, .15); cursor: pointer; }
.wb-react { border: 0; border-radius: 999px; padding: 8px 12px; color: #fff; font: 700 13px/1 system-ui, sans-serif; cursor: pointer; }
.wb-chipbtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: 600 12.5px/1 system-ui, sans-serif; color: var(--fg); cursor: pointer; }
.wb-chipbtn:hover, .wb-react:hover, .wb-dot:hover { filter: brightness(.96); transform: translateY(-1px); }
.sticker-tile { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 7px; }
.sticker-tile:hover { border-color: #cfc9ff; }
.sticker-tile svg { width: 100%; height: 100%; }
.wb-panel .wb-stk-search { width: 100%; }
.wb-panel :is(button):focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }

/* Inside the editor frame on phones: the board's own tool strip sits at the bottom of the board, not the screen. */
@media (max-width: 640px) {
  .wb-timer { top: 52px; right: 10px; }
}

/* The shell's toolbar pill floats over the board (like a whiteboard), and hides when nothing is selected. */
.ad-shell[data-app="whiteboard"] .ads-canvas { position: relative; }
.ad-shell[data-app="whiteboard"] .ads-pill { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 13; margin: 10px 0 0; max-width: calc(100% - 140px); min-height: 46px; }
.ad-shell[data-app="whiteboard"] .ads-pill:has(> .props[hidden]) { display: none; }
body.has-shell .ads-pill > .props { position: static; transform: none; border: 0; box-shadow: none; padding: 0 2px; max-width: none; background: none; animation: none; border-radius: 0; overflow: visible; }
.ad-shell[data-app="whiteboard"] .ads-stage > #work { flex: 1 1 auto; }
body.has-shell .board { background-color: #fbfbfd; }
@media (max-width: 759.98px) {
  .ad-shell[data-app="whiteboard"] .ads-pill { max-width: calc(100% - 16px); margin-top: 8px; }
  body.has-shell .ads-pill > .props { position: static; bottom: auto; left: auto; right: auto; box-shadow: none; border: 0; padding: 0; }
  body.has-shell .zoom { top: auto; bottom: 66px; right: 8px; }
  body.has-shell .wb-timer { top: 60px; }
}
@media (max-width: 640px) {
  body.has-shell .tools { position: absolute; bottom: 0; }
  body.has-shell .side { position: absolute; bottom: 60px; height: 62%; }
  body.has-shell .empty { padding-bottom: 70px; }
}
/* Picking a tool hides the empty-board hint so the first click lands on the board. */
body:not([data-tool="select"]) .empty { display: none; }
body.has-shell .ad-toast { bottom: 64px; }
@media (max-width: 759.98px) { body.has-shell .ad-toast { bottom: 120px; } }

/* Colour buttons in the toolbar and the colour / position popover */
.pcolorbtn .cdot { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px #d5d9e6; display: block; }
.pcolorbtn .cdot.none { background: linear-gradient(135deg, #fff 44%, #f43f5e 44% 56%, #fff 56%) !important; }
.pcolorbtn.ring .cdot { background: #fff; border: 4px solid #5b4cf0; box-shadow: 0 0 0 1px #d5d9e6; }
.props-pop { position: fixed; z-index: 70; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(27, 33, 51, .18); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; animation: popc .15s var(--ease); font: 13px/1.3 system-ui, sans-serif; color: var(--fg); }
.props-pop b { font-size: 12.5px; }
.props-pop .pp-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.props-pop .pp-col { display: flex; flex-direction: column; align-items: stretch; }
.props-pop .pp-col .pbtn { justify-content: flex-start; height: 34px; }
.props-pop .pcolor.any { width: 26px; height: 26px; }
#sel .link-handle { cursor: crosshair; }
#sel .link-handle:hover circle { fill: #efedff; }
/* Emoji reactions */
.props-pop .pp-search { width: 100%; height: 34px; font-size: 13px; }
.props-pop .pp-emoji { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.props-pop .emo { height: 36px; min-width: 36px; padding: 0; font-size: 20px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.props-pop .emo[hidden] { display: none; }
.props-pop .pp-hint { color: var(--muted); font-size: 12px; }
.export-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-timer #wbTimerPause { font-size: 11px; letter-spacing: -2px; }
.wb-timer #wbTimerReset { font-size: 16px; }
/* In the editor frame the toolbar pill floats at the top of the board: the timer sits under it. */
body.has-shell .wb-timer { top: 66px; z-index: 14; }
.wb-ai-topic { flex: 1 1 160px; min-width: 0; height: 34px; font-size: 13px; }
.wb-music { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.wb-music select { height: 32px; border-radius: 9px; border: 1px solid var(--line); padding: 0 8px; font: 600 13px system-ui, sans-serif; background: #fff; }
@media (max-width: 640px) { .export-grid.two { grid-template-columns: 1fr; } }
