:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #e7edf2; background: #0c141b; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at top right, #12373b 0, transparent 60%); }
main { width: min(100% - 40px, 640px); margin: auto; padding: 48px 0; }
.wide { width: min(100% - 40px, 1040px); }
.editor-wide { width: min(100% - 40px, 1180px); }
header { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; margin-bottom: 70px; }
.mark { display: grid; place-items: center; width: 52px; height: 52px; background: #74e3bc; color: #102c27; border-radius: 12px; }
small { display: block; font-size: 13px; color: #95aab6; font-weight: 400; margin-top: 4px; }
.eyebrow { color: #74e3bc; font-size: 12px; letter-spacing: .16em; }
h1 { font-size: clamp(30px, 7vw, 48px); line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: 20px; }
p { line-height: 1.65; color: #bdcbd4; }
form { margin: 30px 0 16px; }
.inline-form, article form { margin: 0; }
label { display: block; font-size: 14px; margin-bottom: 10px; }
input:not([type=hidden]), select, textarea { width: 100%; border: 1px solid #3d535f; border-radius: 8px; background: #131f28; padding: 13px; color: white; font: 16px system-ui, sans-serif; }
input:focus, select:focus, textarea:focus { outline: 2px solid #74e3bc; outline-offset: 2px; }
textarea { min-height: 430px; resize: vertical; font: 14px/1.55 ui-monospace, monospace; tab-size: 2; }
button { width: 100%; border: 0; border-radius: 8px; padding: 15px; margin-top: 14px; font: 600 16px system-ui, sans-serif; color: #102c27; background: #74e3bc; cursor: pointer; }
button:hover { background: #9aefd0; }
button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.secondary { width: auto; padding-inline: 28px; background: #213641; color: #e7edf2; }
.danger { background: #5b2828; color: #ffd8d1; }
.danger:hover { background: #73342f; }
.compact { width: auto; margin: 0; padding: 9px 14px; font-size: 14px; }
.button { display: inline-block; border-radius: 8px; background: #74e3bc; color: #102c27; font-weight: 600; text-decoration: none; }
.muted, footer { font-size: 13px; color: #95aab6; }
footer { border-top: 1px solid #263944; margin-top: 56px; padding-top: 22px; }
section { background: #131f28; border: 1px solid #263944; border-radius: 12px; padding: 10px 24px; margin-block: 28px; }
article { padding-block: 12px; }
code { color: #74e3bc; }
.error { border-left: 3px solid #ff9c8e; padding: 12px; background: #342624; color: #ffb7aa; }
.success { border-left: 3px solid #74e3bc; padding: 12px; background: #17342d; color: #a9f3d7; }
nav, .row, .media-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
nav { margin-bottom: 56px; color: #95aab6; }
nav a { color: #74e3bc; }
.columns, .code-columns, .domain-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.domain-fields { grid-template-columns: 2fr 1fr; margin-top: 18px; }
.media-row { border-bottom: 1px solid #263944; }
.copy-value { overflow-wrap: anywhere; }
.help { margin-top: 36px; }
.palette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px; }
.palette .muted { margin-right: 4px; }
.media-preview { display: flex; align-items: center; gap: 14px; min-width: 0; }
.media-preview img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #0c141b; }
.media-badge { display: grid; place-items: center; width: 64px; height: 48px; border-radius: 6px; background: #1d2f3a; font-size: 12px; color: #95aab6; }
.success ul { margin: 8px 0 4px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .columns, .code-columns, .domain-fields { grid-template-columns: 1fr; } textarea { min-height: 280px; } .row, .media-row { align-items: flex-start; } }
.result { overflow-x: auto; margin-bottom: 16px; }
.result table { border-collapse: collapse; width: 100%; font: 13px/1.45 ui-monospace, monospace; }
.result th, .result td { border: 1px solid #263944; padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, monospace; color: #bdcbd4; background: #0c141b; padding: 10px 12px; border-radius: 8px; }
.console textarea { min-height: 200px; }
textarea.short { min-height: 120px; }
