:root { color-scheme: dark; --bg: #07090d; --panel: #0e1219; --line: #1f2735; --text: #d6deeb; --dim: #7f8aa0; --accent: #7cf0d4; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
body { display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0c1119, #07090d); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sigil { font-size: 26px; color: var(--accent); text-shadow: 0 0 12px rgba(124, 240, 212, .6); }
.name { font: 600 14px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .22em; color: #fff; }
.sub { font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }
.tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #0a0e15; margin-left: auto; overflow-x: auto; max-width: 100%; }
.tabs button { border: 0; background: transparent; color: var(--dim); padding: 7px 12px; border-radius: 7px; font: 500 12.5px/1 inherit; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button.is-active { background: #16202e; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(124, 240, 212, .25); }
.gh { color: var(--dim); text-decoration: none; font-size: 12.5px; }
.gh:hover { color: #fff; }
main { flex: 1; min-height: 0; display: flex; position: relative; }
#stage { flex: 1; min-width: 0; position: relative; }
.graph { position: absolute; inset: 0; }
#note { width: min(420px, 100%); border-left: 1px solid var(--line); background: var(--panel); overflow: auto; padding: 18px 20px 28px; position: relative; }
#note[hidden] { display: none; }
#note .close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--dim); font-size: 22px; cursor: pointer; }
#note .path { font: 11px ui-monospace, Menlo, monospace; color: var(--dim); }
#note h2 { margin: 4px 0 8px; font-size: 19px; color: #fff; }
#note h3 { margin: 16px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
#note .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
#note .chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
#note .chip.tag { color: var(--accent); border-color: rgba(124, 240, 212, .3); }
#note a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted rgba(124, 240, 212, .5); }
#note mark { background: rgba(255, 214, 102, .28); color: #fff; border-radius: 3px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(255, 214, 102, .5); }
#note ul { padding-left: 18px; }
footer { padding: 6px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
footer a { color: var(--accent); text-decoration: none; }
@media (max-width: 760px) {
  #note { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; border-left: 0; border-top: 1px solid var(--line); z-index: 5; }
  .tabs { margin-left: 0; width: 100%; }
  .gh { display: none; }
}
