:root { --bg: #0f1115; --panel: #151a21; --panel-2: #12161d; --border: #262d38; --text: #d7dde7; --text-dim: #8b95a5; --accent: #4da3ff; --green: #51cf66; --red: #ff6b6b; --amber: #ffc861; color-scheme: dark; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; overflow: hidden; } button { font: inherit; color: inherit; background: #1d242e; border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; cursor: pointer; white-space: nowrap; } button:hover:not(:disabled) { background: #242d3a; border-color: #33405085; } button:disabled { opacity: 0.45; cursor: default; } button.primary { background: #1d4ed8; border-color: #2563eb; } button.primary:hover:not(:disabled) { background: #2158e8; } button.danger { background: #7f1d1d; border-color: #991b1b; } button.danger:hover:not(:disabled) { background: #931f1f; } .app { display: flex; flex-direction: column; height: 100%; } /* ── header ─────────────────────────────────────────── */ .header { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 48px; background: var(--panel-2); border-bottom: 1px solid var(--border); flex: none; } .header .logo { display: flex; align-items: baseline; gap: 8px; } .header .logo b { font-size: 17px; letter-spacing: 0.02em; } .header .logo span { color: var(--text-dim); font-size: 12.5px; } .header .logo .tagline a { color: var(--accent); text-decoration: none; } .header .logo .tagline a:hover { text-decoration: underline; } .header .spacer { flex: 1; } /* ── main split ─────────────────────────────────────── */ .main { display: flex; flex: 1; min-height: 0; } .left { display: flex; flex-direction: column; min-width: 300px; border-right: 1px solid var(--border); background: var(--panel); } .divider { width: 5px; cursor: col-resize; background: transparent; flex: none; } .divider:hover { background: #2a3442; } .right { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; background: var(--bg); } /* ── editor pane ────────────────────────────────────── */ .editor-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); flex: none; } .editor-toolbar .name { color: var(--text-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; } .editor-toolbar .examples-btn { color: var(--accent); border-color: #33547a; font-weight: 500; } .editor-toolbar .examples-btn:hover:not(:disabled) { background: #17263a; border-color: #4177b3; } .editor-host { flex: 1; min-height: 0; overflow: hidden; } .editor-host .cm-editor { height: 100%; font-size: 15px; } .editor-host .cm-scroller { font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; } /* ── console ────────────────────────────────────────── */ .console { flex: none; height: 30%; min-height: 90px; display: flex; flex-direction: column; border-top: 1px solid var(--border); background: var(--panel-2); } .console-head { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); } .console-body { flex: 1; overflow-y: auto; padding: 6px 10px; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; } .console-body .err { color: var(--red); } .console-body .ok { color: var(--green); } /* ── viewer ─────────────────────────────────────────── */ .viewer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-dim); text-align: center; padding: 30px; } .viewer-empty h2 { color: var(--text); font-weight: 600; margin: 0; } .viewer-empty .hint { max-width: 440px; line-height: 1.55; } .drop-active::after { content: 'Drop .seq file to view'; position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent); background: #0f1115d9; border: 2px dashed var(--accent); z-index: 50; pointer-events: none; } .seq-tabs { display: flex; gap: 4px; padding: 8px 12px 0; flex: none; } .seq-tabs button { border-radius: 6px 6px 0 0; border-bottom: none; background: transparent; color: var(--text-dim); } .seq-tabs button.active { background: var(--panel); color: var(--text); } .viewer-section { margin: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: none; } .viewer-section > h3 { margin: 0; padding: 7px 12px; font-size: 11.5px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; } .viewer-section > h3 .free { flex: 1; } .viewer-section > h3 .fine { text-transform: none; letter-spacing: 0; font-weight: 400; } .timeline-host { position: relative; } .timeline-canvas { display: block; width: 100%; cursor: crosshair; } .timeline-canvas.panning { cursor: grabbing; } /* ── report ─────────────────────────────────────────── */ .report { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 10px 14px; font-size: 13px; } .report .item b { display: block; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; } .report .item span { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; } .badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; border: 1px solid; } .badge.good { color: var(--green); border-color: #2f9e4466; } .badge.bad { color: var(--red); border-color: #e0313166; } .badge.neutral { color: var(--text-dim); border-color: var(--border); } /* ── inspector ──────────────────────────────────────── */ .inspector { padding: 8px 12px 12px; font-size: 13px; } .inspector .nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .inspector .nav .where { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text-dim); } .inspector table { border-collapse: collapse; width: 100%; } .inspector td, .inspector th { text-align: left; padding: 4px 10px 4px 0; border-bottom: 1px solid #1d232d; vertical-align: top; } .inspector th { color: var(--text-dim); font-weight: 600; white-space: nowrap; width: 1%; } .inspector td { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; } .inspector .muted { color: var(--text-dim); } .inspector-hint { margin: 0; padding: 12px; color: var(--text-dim); font-size: 13px; } /* dropdown menu */ .menu-wrap { position: relative; } .menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 300px; background: #1a212b; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px #0009; z-index: 40; padding: 4px; } .menu button { display: block; width: 100%; text-align: left; background: transparent; border: none; padding: 8px 10px; border-radius: 6px; } .menu button:hover { background: #232d3a; } .menu button b { display: block; } .menu button span { display: block; color: var(--text-dim); font-size: 12px; margin-top: 1px; white-space: normal; } /* ── examples modal ─────────────────────────────────── */ .modal-backdrop { position: fixed; inset: 0; background: #0a0c10cc; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 30px; } .modal { width: min(1000px, 100%); max-height: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px #000a; display: flex; flex-direction: column; overflow: hidden; } .modal-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex: none; } .modal-head h2 { margin: 0; font-size: 17px; } .modal-head .count { color: var(--text-dim); font-size: 12.5px; } .modal-body { overflow-y: auto; padding: 6px 18px 18px; } .modal-body section { margin-top: 16px; } .modal-body section h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; } .example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; } .example-card { text-align: left; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .example-card:hover { border-color: #3a4d66; background: #1a212b; } .example-card .ex-top { display: flex; align-items: baseline; gap: 8px; } .example-card .ex-top b { flex: 1; font-size: 13.5px; } .example-card .ex-time { color: var(--text-dim); font-size: 11px; font-family: 'SF Mono', Menlo, Consolas, monospace; white-space: nowrap; } .example-card .ex-desc { color: var(--text-dim); font-size: 12px; line-height: 1.45; }