:root { color-scheme: dark; }
[hidden] { display: none !important; }
body { background: #07090c; color: #ece4e7; margin: 0; }
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid #bfa3ad; outline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
html:has(dialog[open]) { overflow: hidden; }
.language-toggle { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #ffffff1a; border-radius: .6rem; padding: .2rem; font: 500 .75rem 'Plus Jakarta Sans', sans-serif; color: #8a95a5; }
.language-toggle button { padding: .45rem .6rem; border-radius: .35rem; }
.language-toggle button[aria-pressed="true"] { color: #ece4e7; background: #bfa3ad26; }
.studio-drawer { position: fixed; inset: 0 0 0 auto; width: min(25rem, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 2rem 1.5rem; border: 0; border-left: 1px solid #ffffff1a; background: #0d1117; color: #ece4e7; overflow-y: auto; overflow-wrap: anywhere; }
.studio-drawer::backdrop { background: #07090cbf; backdrop-filter: blur(4px); }
.admin-drawer { width: min(40rem, 100%); }
.drawer-close { position: absolute; top: .8rem; right: 1rem; padding: .4rem .7rem; color: #bfa3ad; font-size: 1.6rem; }
.editor-group { min-width: 0; margin: 1.5rem 0; padding: 1rem; border: 1px solid #ffffff1a; border-radius: .75rem; }
.editor-group legend { padding: 0 .5rem; color: #bfa3ad; font-family: Cinzel, serif; font-size: .85rem; }
.editor-field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; font-size: .75rem; color: #8a95a5; }
.editor-field input, .editor-field select, .editor-field textarea { width: 100%; min-width: 0; padding: .75rem; border: 1px solid #ffffff26; border-radius: .5rem; color: #ece4e7; background: #07090c; }
.editor-field textarea { min-height: 6rem; resize: vertical; }
.editor-checkbox { flex-direction: row; align-items: center; gap: .75rem; }
.editor-checkbox input { width: 1rem; height: 1rem; accent-color: #bfa3ad; }
.editor-toolbar, .editor-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.editor-toolbar .editor-field { flex: 1 1 100%; }
.studio-button { padding: .7rem .9rem; border: 1px solid #bfa3ad4d; border-radius: .5rem; color: #ece4e7; background: #bfa3ad0d; font-size: .75rem; }
.studio-button:hover { background: #bfa3ad26; }
.studio-button.primary { background: #bfa3ad; color: #07090c; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
