/* chainboot reader: the same calm terminal look as the website. */
:root {
  --bg: #121416; --panel: #181b1e; --inset: #0f1113; --line: #2a2e33; --line-strong: #3a3f45;
  --text: #d5d9dd; --dim: #8a9199; --accent: #86c7a4; --accent-ink: #10201a; --warn: #d4b072; --bad: #d98f8f;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 15px/1.6 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.dim { color: var(--dim); }
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; height: 56px; }
.logo { color: var(--accent); font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.cursor { display: inline-block; width: 9px; height: 18px; background: var(--accent); margin-left: 5px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
h1 { font-size: 26px; line-height: 1.25; margin: 36px 0 10px; }
h2 { font-size: 15px; margin: 0 0 14px; color: var(--accent); font-weight: 700; }
.lead { color: var(--dim); margin: 0 0 26px; max-width: 78ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: 220px 1fr; gap: 10px 16px; align-items: start; }
label { padding-top: 8px; }
input, textarea { width: 100%; background: var(--inset); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; font: inherit; }
textarea { resize: vertical; min-height: 40px; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.hint { color: var(--dim); font-size: 13.5px; margin: 12px 0 0; max-width: 86ch; }
.row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.row.between { justify-content: space-between; margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); color: var(--text); background: transparent; font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--dim); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.small { height: 30px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.1fr 2.4fr 0.9fr 0.8fr 108px; gap: 12px; padding: 9px 12px; align-items: center; border-top: 1px solid var(--line); }
.tr:first-child { border-top: 0; }
.tr.head { color: var(--dim); font-size: 13px; background: var(--inset); }
.tr b { color: var(--text); }
.progress { height: 6px; background: var(--inset); border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
#bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
#progress-text { margin: 8px 0 0; font-size: 13.5px; }
#filter { max-width: 420px; }
.files { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; max-height: 320px; overflow: auto; background: var(--inset); }
.file { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 4px 12px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.file:first-child { border-top: 0; }
.file:hover, .file[aria-current="true"] { background: #1d2125; }
.file .meta { color: var(--dim); white-space: nowrap; font-size: 13px; }
.file .name { overflow-wrap: anywhere; }
.file.dir { cursor: default; color: var(--dim); }
#viewer { margin-top: 14px; }
pre { margin: 10px 0 0; background: var(--inset); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; overflow: auto; max-height: 380px; font: 13.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.log { max-height: 240px; color: var(--dim); }
.log .ok { color: var(--accent); }
.log .bad { color: var(--bad); }
.foot { font-size: 13.5px; margin: 6px 0 48px; max-width: 86ch; }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; gap: 4px; }
  label { padding-top: 8px; }
  h1 { font-size: 21px; margin-top: 26px; }
  .tr { grid-template-columns: 1fr 1fr; }
  .tr.head { display: none; }
  .tr > :nth-child(2) { grid-column: 1 / -1; color: var(--dim); font-size: 13.5px; }
}
