/* Native modal keeps keyboard focus local without touching existing modal controllers. */
.studio-command { box-sizing: border-box; position: fixed; inset: 7vh 0 auto; margin: 0 auto; width: min(760px, calc(100% - 32px)); max-width: 100%; max-height: 86vh; padding: 24px; overflow: auto; border: 1px solid var(--studio-ui-line, #dedfd6); border-radius: 20px; background: var(--studio-ui-surface, #fffefa); color: var(--studio-ui-ink, #29312f); box-shadow: 0 24px 90px #29312f33; font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang HK', sans-serif; }
.studio-command:not([open]), .studio-command[hidden], .studio-command [hidden] { display: none !important; }
.studio-command::backdrop { background: #29312f66; }
.studio-command .sc-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.studio-command h2 { font-size: 22px; margin: 0; }
.studio-command h3 { font-size: 17px; padding-top: 18px; margin: 12px 0 8px; border-top: 1px solid var(--studio-ui-line, #dedfd6); }
.studio-command label { display: block; margin-bottom: 6px; }
.studio-command .sc-search { display: flex; gap: 8px; }
.studio-command input { min-width: 0; width: 100%; flex: 1; border: 1px solid var(--studio-ui-line, #dedfd6); border-radius: 10px; padding: 12px; background: #fff; color: var(--studio-ui-ink, #29312f); font: inherit; }
.studio-command button { border: 1px solid var(--studio-ui-line, #dedfd6); border-radius: 10px; padding: 10px 14px; color: var(--studio-ui-ink, #29312f); background: var(--studio-ui-soft, #f0f1ea); cursor: pointer; font: inherit; min-height: 44px; box-shadow: none; transform: none; }
.studio-command .sc-note { font-size: 16px; color: var(--studio-ui-muted, #606962); margin: 12px 0; overflow-wrap: anywhere; }
.studio-command ul { list-style: none; padding: 0; margin: 0; }
.studio-command .sc-result { box-sizing: border-box; display: block; width: 100%; text-align: left; text-decoration: none; padding: 12px; border: 0; border-bottom: 1px solid var(--studio-ui-line, #dedfd6); border-radius: 0; color: var(--studio-ui-ink, #29312f); background: transparent; font: inherit; overflow-wrap: anywhere; }
.studio-command .sc-result span { display: block; color: var(--studio-ui-muted, #606962); }
.studio-command :is(button, a):hover { background: var(--studio-ui-accent-soft, #ffece5); }
.studio-command :is(button, a, input):focus-visible { outline: 3px solid var(--studio-ui-accent, #b43e2e); outline-offset: 2px; }
@media (max-width: 560px) { .studio-command { padding: 18px; inset-block-start: 3vh; max-height: 94vh; } .studio-command h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .studio-command, .studio-command * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .studio-command { display: none !important; } }
