/* Camera and transient selection only. Import inclusion retains its own colors. */
.drawing-controls-preference{position:absolute;right:8px;top:8px;z-index:28;display:flex;align-items:center;flex-wrap:wrap;gap:4px;max-width:calc(100% - 16px);padding:4px 6px;border:1px solid #64748b;border-radius:6px;background:#172234;color:#f1f5f9;font:12px system-ui;box-sizing:border-box}
.drawing-controls-preference select{min-width:0;max-width:100%;background:#172234;color:#f1f5f9;border:1px solid #94a3b8;border-radius:4px;padding:3px}
.drawing-menu{z-index:10050;max-width:calc(100vw - 8px);max-height:calc(100vh - 8px);overflow:auto;box-sizing:border-box}
.drawing-menu button:focus-visible{outline:3px solid #f59e0b;outline-offset:-3px}
.drawing-actions,.drawing-camera-buttons{position:absolute;bottom:8px;z-index:28;background:#172234;color:#f1f5f9;border:1px solid #64748b;border-radius:6px;padding:5px}
.drawing-actions{right:8px;min-height:34px}.drawing-actions:disabled{opacity:.5}
.drawing-camera-buttons{left:8px;display:flex;gap:4px}.drawing-camera-buttons button{min-height:32px;min-width:34px}
@media(max-width:480px){.drawing-controls-preference{font-size:11px}.drawing-controls-preference select{max-width:150px}}
@media print{.drawing-controls-preference,.drawing-actions,.drawing-camera-buttons,.drawing-menu{display:none!important}}

/* A teal outline on both paper and dark sheets; inherited renderer rules must
   not repaint transient selection. Scope to registered hosts and beat the
   existing Blueprint wall selectors (including their !important strokes). */
:root [data-drawing-selection] .drawing-hover.drawing-hover.drawing-hover,
:root [data-drawing-selection] .drawing-hover.drawing-hover.drawing-hover :is(rect,path,polygon,line,polyline){stroke:#64748b!important;stroke-width:2px!important;vector-effect:non-scaling-stroke}
:root [data-drawing-selection] .drawing-selected.drawing-selected.drawing-selected,
:root [data-drawing-selection] .drawing-selected.drawing-selected.drawing-selected :is(rect,path,polygon,line,polyline){stroke:#0e7490!important;stroke-width:3px!important;vector-effect:non-scaling-stroke}
:root [data-drawing-selection] .drawing-selected.drawing-selected.drawing-selected,
:root [data-drawing-selection] .drawing-selected.drawing-selected.drawing-selected :is(rect,path,polygon){fill:rgba(14,116,144,.13)!important}
:is(div,button,article,section).drawing-selected{outline:2px solid #67e8f9;outline-offset:-2px;background-color:rgba(103,232,249,.12)}
.nudura-theme :is(div,button,article,section).drawing-selected{outline-color:#0e7490;background-color:rgba(14,116,144,.13)}
:is(div,button,article,section).drawing-hover:not(.drawing-selected){outline:1px solid #94a3b8;outline-offset:-1px}
:root [data-drawing-selection]:focus-visible,:root [data-drawing-selection] .drawing-selected:focus-visible{outline:3px dashed #2563eb;outline-offset:3px}
.drawing-camera-buttons[hidden],.drawing-actions[hidden],.drawing-controls-preference[hidden]{display:none}
.drawing-menu{padding:6px;border:1px solid #64748b;border-radius:7px;background:#172234;color:#f1f5f9;box-shadow:0 8px 24px #0006}
.drawing-menu>button{display:block;width:100%;padding:8px;text-align:left;background:transparent;color:inherit;border:0}
