/* Shared controls remain readable and usable with a keyboard or a fingertip. */
:where(button,a,input,select,textarea,summary):focus-visible {
  outline: 2px solid #dfc2ff;
  outline-offset: 4px;
}
.primary,.secondary {border-radius:8px}
.close {width:44px;height:44px;flex-shrink:0}
.mast nav {min-width:0}
.mast .navlink {min-height:44px;display:inline-flex;align-items:center}
footer [data-motion-toggle] {min-height:44px;padding:8px 12px;border:1px solid #61516d;border-radius:8px}
.workbench-start {display:flex;gap:10px;margin:6px 0 22px;flex-wrap:wrap}
.workbench-start button {display:flex;gap:9px;align-items:center;min-height:48px;padding:10px 15px;border:1px solid #6a5678;border-radius:9px;background:#28212f;color:#e5d6f1;font-size:13px}
.workbench-start button span {color:#d3b587;font-size:19px}
.workbench-start button:hover {border-color:#c5a3e1;background:#352b40}
.control-body :is(select,textarea) {min-height:44px;font-size:14px;border-radius:7px}
.control-body :is(.generate,.access-info,.compose-browse) {min-height:46px;border-radius:8px}
.control-body .access-info {font-size:12px;margin-top:10px;line-height:1.5}
.control-body .field-note {font-size:12px;line-height:1.65}
.plate-tools button {min-height:44px;border-radius:8px}
.plate-tools .editor-btn {background:#d0b7ee;color:#281d34;border:1px solid #e4ccfb;padding:8px 14px}
.plate-tools .quick-entry {padding:8px 12px;border:1px solid #675474}
.plate-tools .icon-button {width:auto;padding:8px 11px;gap:6px;border:1px solid #675474}
.plate-tools .icon-button span {font-size:12px}
.plate-tools .marks-entry {padding:8px 10px;border:1px solid #675474}
.plate-tools .export-btn {border:1px solid #675474;padding:8px 12px}
.editor-layout .editor-toolbar {padding:9px 0;gap:8px}
.editor-layout .editor-toolbar button {min-height:44px;border-radius:8px;font-size:13px;padding:9px 13px;background:#302639;border-color:#705a80;color:#e5d9ef}
.editor-layout .editor-toolbar button:hover:not(:disabled) {border-color:#d0b3e8;background:#41324c}
.editor-layout .editor-toolbar .studio-add {background:#cfb6eb;color:#281c33;font-weight:650}
.editor-settings .settings-tabs {background:#141018;border:1px solid #655170;border-radius:10px;padding:4px;gap:4px}
.editor-settings .settings-tabs button {flex:1;min-height:46px;padding:9px;font-size:13px;border-radius:7px;color:#c7b5d5}
.editor-settings .settings-tabs button[aria-pressed="true"] {background:#51405f;color:#fbf2ff;border-color:transparent}
.editor-settings .swatches {gap:9px}
.editor-settings .swatches button {height:40px;width:40px;border-radius:50%;min-height:40px}
.editor-settings :is(input[type="number"],select) {min-height:44px;font-size:14px;border:1px solid #736080;border-radius:7px;padding:8px}
.editor-settings input[type="range"] {height:30px}
.editor-settings .editor-browse {width:100%;min-height:46px;padding:10px;border:1px solid #ae8dc6;background:#3a2b47;color:#f3e5ff;border-radius:8px;font-size:14px}
.editor-settings .node-tools button {min-height:44px;flex:1;font-size:13px;border-radius:7px}
.editor-settings .figure-more {margin-top:18px;border-top:1px solid #53415e;padding-top:10px}
.editor-settings .figure-more summary {padding:10px 0;color:#d9c2ec;cursor:pointer;font-size:13px}
.editor-settings .figure-more[open] summary {margin-bottom:8px}
.editor-stage .edit-note {line-height:1.75;color:#c1b2cd!important}
#workspace-body .studio-actions .primary,#workspace-body .studio-actions .secondary,.studio-actions .primary,.studio-actions .secondary {min-height:46px;font-size:14px;border-radius:9px}
.editor-settings .pm-actions .secondary {min-height:48px;height:auto;padding:10px;white-space:normal;line-height:1.45}
.studio-actions .primary {background:#d0b7ee;color:#281d34}
#workspace-body .editor-settings {border-radius:14px}
#workspace-body .workspace-nav button,.workspace-nav button {min-height:44px;border-radius:8px;font-size:12px}
.studio-intro {display:flex;gap:10px;align-items:center;margin:0 0 12px;padding:12px 15px;background:#2d2234;border:1px solid #624c71;border-radius:10px;color:#d3c0e1;font-size:13px;line-height:1.6}
.studio-intro span {font-size:23px;color:#d2b58d}
.reference-palette summary {min-height:44px}
@media(max-width:620px){
  .workbench-start {gap:7px;margin-bottom:17px}
  .workbench-start button {flex:1 1 100px;padding:9px;font-size:12px;justify-content:center}
  .plate-tools {gap:8px}
  .plate-tools>div {flex:1 1 100%;justify-content:flex-end}
  .editor-settings :is(input[type="number"],select),.control-body :is(select,textarea) {font-size:16px}
  .editor-layout .editor-toolbar {gap:6px}
  .editor-layout .editor-toolbar button {font-size:12px;padding:8px 10px}
  .editor-toolbar .canvas-readout {flex-basis:100%;text-align:right}
  .editor-settings .swatches button {height:44px;width:44px}
}
