.maker-studio { color: var(--ink, #eee8f2); line-height: 1.5; }
.maker-studio * { box-sizing: border-box; }
.mk-intro { color: var(--muted, #aaa1b5); margin: 0 0 1rem; max-width: 65ch; font-size: .9rem; }
.mk-tabs, .mk-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.mk-tabs { padding-bottom: 1rem; border-bottom: 1px solid var(--line, #41384b); margin-bottom: 1rem; }
.mk-tabs button, .mk-presets button, .mk-example { min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line, #41384b); border-radius: 7px; color: var(--ink, #eee8f2); background: var(--field, #18141f); cursor: pointer; font: inherit; font-size: .8rem; }
.mk-tabs button { display: inline-flex; align-items: center; gap: .45rem; }
.mk-tabs button > span { font-size: 1.4rem; color: var(--gold, #d0b582); line-height: 1; }
.mk-tabs button[aria-pressed="true"], .mk-presets button[aria-pressed="true"] { border-color: var(--lav, #c4a3ed); background: #c4a3ed18; color: #dfccf8; box-shadow: inset 0 -2px #b98be5; }
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 1.3rem; align-items: start; }
.mk-drawing { min-width: 0; position: sticky; top: 0; }
.mk-preview { width: 100%; aspect-ratio: 1; border: 1px solid var(--line, #41384b); border-radius: 12px; background: radial-gradient(ellipse at center, #292030, #121016 77%); color: var(--lav, #c4a3ed); display: grid; place-items: center; }
.mk-preview svg { width: 100%; height: 100%; max-height: 410px; }
.mk-stats { color: var(--gold, #d0b582); font: .72rem var(--mono, monospace); line-height: 1.6; margin: .7rem 0; }
.mk-caption, .mk-note { font-size: .8rem; color: var(--muted, #aaa1b5); }
.mk-caption { margin: .5rem 0; }
.mk-note summary { cursor: pointer; color: var(--lav, #c4a3ed); padding: .35rem 0; }
.mk-note p { margin: .35rem 0; }
.mk-controls { min-width: 0; display: grid; gap: .85rem; }
.mk-label { display: grid; gap: .35rem; color: var(--ink, #eee8f2); font-size: .78rem; }
.mk-label input:not([type="range"]), .mk-label textarea { width: 100%; min-height: 44px; color: var(--ink, #eee8f2); background: var(--field, #18141f); border: 1px solid var(--line, #41384b); border-radius: 6px; padding: .6rem .7rem; font: inherit; }
.mk-label textarea { resize: vertical; font: .88rem/1.5 var(--mono, monospace); letter-spacing: .14em; white-space: pre; overflow-wrap: normal; tab-size: 1; }
.mk-label input[type="range"] { min-width: 0; width: 100%; accent-color: var(--lav, #c4a3ed); }
.mk-paired { display: grid; grid-template-columns: minmax(0, 1fr) 4.8rem; gap: .65rem; }
.mk-help { font-size: .74rem; color: var(--muted, #aaa1b5); margin: -.4rem 0 0; }
.mk-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .8rem; cursor: pointer; }
.mk-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--lav, #c4a3ed); }
.mk-example { text-align: left; color: #8dd7c5; border-color: #428875; }
.mk-error { color: #ffaaaa; font-size: .85rem; margin: .8rem 0; min-height: 1.3em; }
.mk-actions { display: flex; flex-wrap: wrap; gap: .5rem; position: sticky; bottom: 0; z-index: 2; padding: .85rem 0 .25rem; background: var(--panel, #17131d); border-top: 1px solid var(--line, #41384b); }
.mk-actions button { min-height: 44px; cursor: pointer; }
.mk-actions button:disabled { cursor: not-allowed; opacity: .4; }
.maker-studio :is(button, input, textarea, summary):focus-visible { outline: 2px solid var(--lav, #c4a3ed); outline-offset: 3px; }
@media (max-width: 640px) {
  .mk-layout { grid-template-columns: 1fr; gap: .9rem; }
  .mk-drawing { position: static; }
  .mk-preview { max-height: 270px; width: min(100%, 270px); margin-inline: auto; }
  .mk-preview svg { max-height: 268px; }
  .mk-tabs button { padding-inline: .5rem; font-size: .74rem; }
  .mk-actions button { flex: 1 1 auto; font-size: .78rem; padding: .55rem .65rem; }
}
@media (prefers-reduced-motion: no-preference) { .mk-tabs button, .mk-presets button { transition: background-color .15s, border-color .15s; } }
