:root { color-scheme: dark; --bg: #101115; --surface: #181a20; --line: #2a2d35; --muted: #9295a3; --accent: #d5f78b; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: #f4f4f6; font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1280px, calc(100% - 80px)); margin: auto; }
.header { min-height: 108px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 2px; font-weight: 500; margin-top: 2px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #595766; border-radius: 50%; font-size: 22px; font-weight: 500; letter-spacing: -2px; box-shadow: -3px 1px 13px #e7478a25, 3px -2px 13px #779aff25; }
.brand-mark span { position: absolute; bottom: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.header-note { color: #80838e; font-size: 10px; letter-spacing: 2px; }
.version { color: #d5f78b; margin-left: 15px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; padding: 42px 0 32px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 2px; color: var(--muted); }
h1 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -1.2px; line-height: 1.18; font-weight: 600; margin: 10px 0; }
h2 { margin: 0; font-weight: 550; font-size: 16px; letter-spacing: -.2px; }
p { margin: 0; }
.muted { color: var(--muted); }
.workspace { display: grid; grid-template-columns: 1.12fr 1fr; gap: 52px; align-items: start; }
.section { padding: 24px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.step { color: #777b88; font-size: 11px; margin-right: 9px; font-variant-numeric: tabular-nums; }
.subtle { color: var(--muted); font-size: 11px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; border: 0; margin: 0; padding: 0; }
.mode-option { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.mode-option:hover { border-color: #6a6e7c; }
.mode-option:has(input:checked) { border-color: var(--accent); background: #d5f78b08; }
.mode-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.mode-option input { position: absolute; right: 10px; top: 12px; width: 12px; height: 12px; margin: 0; accent-color: var(--accent); }
.mode-icon { display: block; height: 34px; color: #bebfcb; font-size: 26px; line-height: 1; margin-bottom: 9px; }
.neon-icon { color: #e9a8e2; text-shadow: 0 0 15px #e269d5; }
.text-icon { font-size: 23px; letter-spacing: -2px; }
.mode-option strong { display: block; font-size: 12px; font-weight: 600; }
.mode-option small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
textarea, input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #15171d; color: #fff; padding: 16px; }
textarea { min-height: 128px; resize: vertical; font-size: 20px; line-height: 1.5; }
textarea::placeholder, input::placeholder { color: #626675; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.presets button { padding: 5px 9px; color: #b8bbc7; background: #1b1d25; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.presets button:hover { color: white; border-color: #5a5e6d; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 25px; }
label { display: block; font-size: 12px; color: #c6c9d2; }
label output { float: right; color: var(--muted); font-size: 11px; }
input[type=range] { display: block; width: 100%; margin: 15px 0 3px; height: 4px; accent-color: var(--accent); cursor: pointer; }
.color-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 9px; padding: 8px 10px; height: 42px; background: #15171d; }
.color-field output { color: #a5a9b8; font-size: 11px; font-family: monospace; }
input[type=color] { padding: 0; width: 24px; height: 24px; border: none; background: transparent; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 1px solid #ffffff30; border-radius: 5px; }
.visibility-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 22px 0; }
.visibility-row strong { font-size: 13px; font-weight: 500; }
.visibility-row p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.switch { position: relative; flex: 0 0 40px; width: 40px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.switch span { display: block; height: 100%; border-radius: 20px; background: #424653; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: #242b19; }
.switch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 20px; }
.publish-row { display: flex; gap: 10px; }
.primary, .secondary { border-radius: 9px; padding: 15px 20px; min-height: 51px; font-size: 13px; font-weight: 650; border: 1px solid transparent; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 1; color: #182010; background: var(--accent); }
.primary:hover { background: #e1ffa6; }
.primary span { font-size: 20px; font-weight: 400; }
.secondary { color: #c7cad4; border-color: var(--line); background: var(--surface); }
.secondary:hover { border-color: #777b88; }
.quiet { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 10px 0; }
.quiet:hover { color: #fff; }
.status { font-size: 12px; color: var(--muted); min-height: 20px; margin-top: 13px; }
.status.error { color: #ffacb7; }
.preview-column { position: sticky; top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.preview-heading { display: flex; justify-content: space-between; margin-bottom: 22px; align-items: center; }
.live-dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin: 0 7px 2px 0; }
.monitor { padding: 7px 7px 0; border: 1px solid #363944; border-radius: 14px; background: #202229; box-shadow: 0 24px 60px #0004; overflow: hidden; }
#previewViewport { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: #000; }
#preview { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: top left; pointer-events: none; }
.monitor-chin { height: 19px; display: grid; place-items: center; }
.monitor-chin span { width: 21px; height: 3px; border-radius: 3px; background: #454853; }
.preview-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: 12px; }
.badge { border: 1px solid #363b31; color: #b3c797; background: #d5f78b08; border-radius: 5px; padding: 3px 7px; font-size: 10px; }
.badge.dirty { color: #d9baa0; border-color: #594433; background: #ffb36b08; }
.hint { color: #858998; font-size: 12px; line-height: 1.7; margin-top: 14px; }
.screen-note { display: flex; gap: 14px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.screen-note > span { color: #a1a7b8; font-size: 24px; line-height: 1.2; }
.screen-note strong { font-size: 12px; font-weight: 500; }
.screen-note p { margin-top: 5px; color: #858998; font-size: 12px; line-height: 1.7; }
.reload { margin-top: 18px; font-size: 11px; }
.animation-info { display: flex; gap: 15px; align-items: center; margin: 24px 0; }
.loop-symbol { font-size: 42px; color: #dfa0d8; font-weight: 300; line-height: 1; }
.animation-info strong { font-weight: 500; font-size: 14px; }
.animation-info p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #24272e; font-size: 12px; }
.detail-row span { color: var(--muted); }
.detail-row strong { font-weight: 400; }
.login { max-width: 410px; margin: 90px auto 100px; }
.login h1 { font-size: 42px; margin: 15px 0 20px; }
.login form { margin-top: 30px; }
.login label { margin-bottom: 9px; }
.login .primary { margin-top: 15px; width: 100%; }
footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; color: #666b79; font-size: 10px; }
footer span:first-child { letter-spacing: 1.5px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { .shell { width: calc(100% - 40px); } .workspace { gap: 30px; grid-template-columns: 1fr 1fr; } .mode-option { padding: 14px 8px; } .mode-option strong { font-size: 11px; } }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); } .header { min-height: 84px; } .header-note { display: none; }
  .page-heading { padding: 28px 0 24px; } .page-heading .muted { font-size: 13px; }
  .workspace { display: flex; flex-direction: column; gap: 22px; } .editor, .preview-column { width: 100%; }
  .preview-column { position: static; } .mode-option { padding: 16px 10px; } .mode-option strong { font-size: 11px; }
  .primary, .secondary { padding: 14px; } .presets button { min-height: 34px; }
  .login { margin: 60px auto; } .login h1 { font-size: 38px; } footer { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } }
