/* spacee. Whiteboard Text/Select mobile upgrade */
#textlayer{position:absolute;inset:0;z-index:2;pointer-events:none}
.text-object{position:absolute;display:inline-flex;align-items:baseline;white-space:pre;line-height:1.15;min-width:16px;min-height:22px;transform:translateY(-100%);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;user-select:none;-webkit-user-select:none;padding:5px 4px;margin:0;border:0;border-radius:5px;touch-action:none;cursor:grab;box-sizing:content-box;max-width:100%}
.text-object:not(.text-preview):active{cursor:grabbing}
.text-object.selected{outline:2px dashed #4b68e4;outline-offset:2px;background:rgba(234,240,255,.55);box-shadow:0 2px 8px rgba(60,83,223,.12)}
.text-object.text-preview{cursor:text;pointer-events:none;outline:2px dashed #4b68e4;background:rgba(245,248,255,.93);padding:5px 8px;min-width:65px;box-shadow:0 2px 11px rgba(59,82,167,.13)}
.text-visible{white-space:pre;pointer-events:none}
.empty-preview{color:#7a8bad;opacity:.6;font-style:italic}
.text-caret{color:#3c53df;display:inline-block;font-weight:400;animation:spacee-blink 1s steps(1,end) infinite;pointer-events:none}
@keyframes spacee-blink{0%,48%{opacity:1}49%,100%{opacity:0}}
.selection-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border:1px solid #d8e4fc;background:#f5f8ff;border-radius:12px;padding:9px 12px;margin-top:9px}
.selection-toolbar .selection-hint{flex:1;min-width:120px;font-size:12px;color:#526688;line-height:1.4}
.selection-toolbar .btn{padding:9px 13px;font-size:13px}
.selection-toolbar #deleteSelected{color:#a33845}
.text-style{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;padding-top:7px;border-top:1px solid #e3eaf8}
.text-style .style-caption{font-weight:650;font-size:11px;color:#647593;margin-right:2px}
.text-style .style-sizes{display:flex;gap:3px;background:#f2f5fc;border-radius:9px;padding:3px}
.text-style .style-sizes button{border-radius:7px;min-width:36px;min-height:34px;font-size:13px;padding:5px}
.text-style .selected-style{background:#eaf0ff!important;color:#2e4bc3!important;box-shadow:inset 0 0 0 1px #9bb5ef}
#textBold{min-height:36px;min-width:40px;border:1px solid #dbe4f4;background:#fff;font-weight:800;font-size:18px}
.text-palette{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.text-palette button{width:31px;height:31px;padding:0;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #cdd8ec;flex-shrink:0}
.text-palette button.selected-color{box-shadow:0 0 0 2px #3c53df,0 2px 5px #3c53df24}
.foot #clearAnswers{font-size:12px;padding:9px 12px;background:#fff;border:1px solid #b8c9ee;color:#3755ae;white-space:nowrap;flex-shrink:0}
.foot #clearAnswers:hover{background:#edf2ff}
@media(max-width:750px){
 .selection-toolbar{padding:8px;gap:7px}
 .selection-toolbar .selection-hint{font-size:11px;min-width:100px}
 .text-style{gap:6px}
 .text-style .style-caption{font-size:10px}
 .text-style .style-sizes button{min-width:34px;min-height:34px}
 .text-palette button{width:28px;height:28px}
 .text-object{padding:7px 5px;min-height:26px}
 .text-preview{min-width:75px}
 .foot #clearAnswers{padding:8px 10px}
}
