@font-face { font-family: 'ABCDiatype'; src: url('../Enode/fonts/ABCDiatype-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; }
:root { color-scheme: light; --paper: #efefeb; --ink: #20201e; --muted: #83837b; --line: #d9d9d1; --blue: #1000ed; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
a { color: inherit; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; max-width: 1680px; margin: 0 auto; min-height: 100svh; }
.preview { padding: 22px 28px 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.island { display: inline-flex; gap: 2px; margin: 16px auto 18px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 1px 2px #0000000a, 0 6px 24px #00000010; }
.island button, .speeds button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 11px; color: #77776e; }
.island button.selected { background: #242420; color: #fff; }
.island button:hover:not(.selected), .text-button:hover { color: var(--blue); }
.stage { height: calc(100svh - 100px); min-height: 430px; width: 100%; display: flex; justify-content: center; align-items: center; gap: 26px; padding: 0; overflow: hidden; position: relative; }
.poster { margin: 0; width: calc((100svh - 100px) * .5625); height: auto; max-width: 100%; display: flex; flex-direction: column; flex: 0 1 auto; min-width: 0; }
.poster canvas, .poster video { display: block; aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: contain; min-height: 0; background: #cfcfcf; box-shadow: 0 2px 8px #0000000a; }
.stage[data-view=compare] .poster { width: min(calc((100svh - 100px) * .5625), calc(50% - 13px)); }
.text-button { border: 0; background: none; padding: 3px 0; color: #74746b; font-size: 10px; }
.words-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; margin: 4px 0 6px; }
.words-label select { border: 0; background: #e7e7df; border-radius: 999px; padding: 3px 9px; font: 10px 'Courier New', monospace; color: #252520; cursor: pointer; }
.words textarea { display: block; width: 100%; resize: none; padding: 8px 10px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.5; }
.words textarea:focus { border-color: #99998e; outline: none; }
.controls { padding: 26px 26px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: #f7f7f2; }
.credit { color: #88887f; font-size: 11px; line-height: 1.65; margin: 0 0 20px; }
.credit a { color: var(--blue); text-underline-offset: 3px; }
.control-section { border-top: 1px solid var(--line); padding: 18px 0; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-label h2 { text-transform: uppercase; font: 9px 'Courier New', monospace; letter-spacing: .8px; margin: 0; }
.section-label > span { color: #97978c; font-size: 9px; }
.time-display { display: flex; align-items: baseline; gap: 6px; margin-bottom: 9px; font-family: 'Courier New', monospace; }
.time-display span:first-child { font-size: 24px; letter-spacing: -1px; }
.time-display span:last-child { color: #9b9b91; font-size: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 0; background: linear-gradient(to right, #383832 0%, #383832 var(--fill, 50%), #ddddd4 var(--fill, 50%), #ddddd4 100%); padding: 0; margin: 8px 0 15px; cursor: ew-resize; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; background: #34342f; border-radius: 0; border: 0; }
input[type=range]::-moz-range-thumb { width: 9px; height: 9px; background: #34342f; border-radius: 0; border: 0; }
input.timeline { --fill: 0%; margin: 6px 0 21px; background: linear-gradient(to right, var(--blue) 0%, var(--blue) var(--fill), #ddddd4 var(--fill), #ddddd4 100%); }
input.timeline::-webkit-slider-thumb { background: var(--blue); width: 4px; height: 13px; }
input.timeline::-moz-range-thumb { background: var(--blue); width: 4px; height: 13px; }
.playback-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.primary-button, .secondary-button { padding: 10px 0; font-size: 11px; border: 1px solid #242420; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 2px; }
.primary-button { background: #242420; color: #fff; }
.secondary-button { background: transparent; border-color: var(--line); }
.primary-button:hover { background: var(--blue); border-color: var(--blue); }
.secondary-button:hover { border-color: #99998e; }
.speed-row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; font-size: 10px; color: #909086; }
.speeds { display: flex; gap: 2px; }
.speeds button { padding: 5px 9px; font: 10px 'Courier New', monospace; }
.speeds button.selected { background: #e7e7df; color: #252520; }
.keyframes { display: flex; gap: 6px; margin-top: 14px; }
.keyframes button { flex: 1; padding: 6px 0; background: none; border: 1px solid var(--line); font-size: 9px; border-radius: 2px; color: #808076; white-space: nowrap; }
.keyframes button:hover { border-color: var(--blue); color: var(--blue); }
.range-label { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; margin: 5px 0 2px; }
.range-label output { font: 9px 'Courier New', monospace; color: #96968c; }
.toggle-row { display: flex; position: relative; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 11px; cursor: pointer; }
.toggle-row input { position: absolute; right: 0; width: 26px; height: 18px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.toggle { width: 25px; height: 13px; background: #d9d9cf; border-radius: 8px; position: relative; }
.toggle::after { content: ''; width: 9px; height: 9px; background: #fff; position: absolute; left: 2px; top: 2px; border-radius: 50%; transition: transform .15s; }
.toggle-row input:checked + .toggle { background: #363631; }
.toggle-row input:checked + .toggle::after { transform: translateX(12px); }
.toggle-row input:focus-visible + .toggle { outline: 2px solid var(--blue); outline-offset: 3px; }
.error { background: #f7f7f2; padding: 20px; max-width: 350px; line-height: 1.7; border: 1px solid #a9a9a0; position: absolute; }
@media (min-width: 1600px) { .workspace { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
@media (max-height: 800px) and (min-width: 861px) { .controls { padding-top: 22px; } .control-section { padding: 13px 0; } .section-label { margin-bottom: 12px; } }
@media (max-width: 1000px) { .workspace { grid-template-columns: minmax(0, 1fr) 260px; } .controls { padding-left: 20px; padding-right: 20px; } .preview { padding-left: 18px; padding-right: 18px; } .stage { gap: 12px; } }
@media (max-width: 860px) { .workspace { display: block; } .preview { padding: 12px 16px 0; } .stage { height: calc(100svh - 90px); min-height: 360px; max-height: 1000px; } .stage[data-view=compare] { height: auto; align-items: start; padding-top: 18px; } .stage[data-view=compare] .poster { width: calc(50% - 6px); height: auto; flex: 1; } .controls { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; padding: 24px; } .credit { grid-column: 1 / -1; } .control-section { border-top: 0; padding-top: 0; } }
@media (max-width: 460px) { .controls { grid-template-columns: 1fr; padding: 24px; } .material-controls { border-top: 1px solid var(--line); padding-top: 19px; } .island button { font-size: 10px; padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
