:root { --bg: #121417; --panel: #1b1e23; --line: #2c3138; --fg: #d8dde3; --dim: #7d8691; --accent: #4fb3ff; --ok: #4cd07d; --warn: #f0b429; --bad: #ff5d5d; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; } body { display: flex; flex-direction: column; } #toolbar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--line); } .group { display: flex; gap: 6px; align-items: center; } .title { font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-right: 4px; } button, .btn, select { background: #262b32; color: var(--fg); border: 1px solid #3a414b; border-radius: 4px; padding: 4px 10px; font: inherit; cursor: pointer; } button:hover:not(:disabled), .btn:hover { border-color: var(--accent); } button:disabled { opacity: 0.4; cursor: default; } button.active { background: #1f4a6b; border-color: var(--accent); } button.small { padding: 0 6px; font-size: 11px; } select { padding: 4px 6px; } .chk { display: flex; gap: 4px; align-items: center; cursor: pointer; } #volume { width: 70px; } .dim { color: var(--dim); } .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; } #srcName { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #progress { position: relative; height: 8px; background: #0c0e10; cursor: pointer; border-bottom: 1px solid var(--line); } #progressFill { position: absolute; inset: 0 auto 0 0; width: 0; background: #24577e; } #progressPlay { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--accent); display: none; } main { flex: 1; display: flex; min-height: 0; } #viewport { flex: 1; overflow: auto; position: relative; background: #0a0b0c; } #viewport.dragover { outline: 2px dashed var(--accent); outline-offset: -6px; } .hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 15px; pointer-events: none; } #stack { position: relative; width: 100%; } #stack canvas { display: block; width: 100%; image-rendering: pixelated; } #overlay { position: absolute; left: 0; top: 0; cursor: crosshair; } #side { width: 344px; flex: none; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); padding: 4px 12px 12px; } #side section { margin-top: 10px; } #side h2 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 4px; display: flex; gap: 6px; align-items: center; } #side canvas { display: block; width: 320px; background: #0c0e10; border: 1px solid var(--line); border-radius: 3px; } table.kv { border-collapse: collapse; width: 100%; } table.kv th { text-align: left; font-weight: normal; color: var(--dim); width: 72px; padding: 1px 0; } table.kv td { padding: 1px 0; font-variant-numeric: tabular-nums; } .badge { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 600; background: #333; } .badge.lock { background: #1d5a37; color: #b9f5cf; } .badge.search { background: #5a3a1d; color: #f5dcb9; } .scroll { max-height: 150px; overflow-y: auto; margin-top: 6px; } #frames table { border-collapse: collapse; width: 100%; font-size: 12px; } #frames td, #frames th { padding: 1px 4px; text-align: left; font-variant-numeric: tabular-nums; } #frames th { color: var(--dim); font-weight: normal; } #frames tr.change td { color: var(--warn); } #frames tr.poor td { color: var(--dim); } #frames tr:hover td { background: #262b32; cursor: pointer; } #markers div { display: flex; justify-content: space-between; gap: 6px; padding: 1px 0; } #markers div:hover { background: #262b32; cursor: pointer; } #markers .x { color: var(--bad); cursor: pointer; padding: 0 4px; } /* encoder dialog */ dialog#encDialog { width: min(1100px, 96vw); max-height: 92vh; padding: 0; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; } dialog#encDialog::backdrop { background: rgba(0, 0, 0, 0.55); } #encForm { display: flex; flex-direction: column; max-height: 92vh; } .dlg-head, .dlg-foot { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); } .dlg-head { justify-content: space-between; } .dlg-foot { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; } .enc-body { display: flex; gap: 12px; padding: 10px 12px; overflow: auto; min-height: 0; } .enc-opts { flex: 0 0 340px; display: flex; flex-direction: column; gap: 8px; } .enc-opts fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 5px; } .enc-opts legend { color: var(--dim); padding: 0 4px; } .enc-opts .sub { margin-left: 22px; display: flex; flex-direction: column; gap: 4px; } .enc-opts input[type=number] { width: 64px; background: #262b32; color: var(--fg); border: 1px solid #3a414b; border-radius: 3px; padding: 2px 4px; font: inherit; } .enc-opts input[type=file] { max-width: 250px; font-size: 12px; } .enc-preview { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } #encCanvas { width: 100%; image-rendering: pixelated; background: #0d0d0f; border: 1px solid var(--line); max-height: 62vh; object-fit: contain; object-position: top; } #encBar { height: 4px; background: #262b32; border-radius: 2px; overflow: hidden; } #encBarFill { height: 100%; width: 0; background: var(--accent); }