/* dead internet telescope — observatory terminal.
   the site is not a website; it is the instrument's own screen.
   layout language: multi-pane TUI / SDR control software.
   panels with box titles, a left source rail, a bottom status bar.
   the dead parts of the screen are dim. brightness is reserved for emission. */

:root {
  --bg: #030605;
  --bg-panel: #040907;
  --bg-raised: #07120c;
  --bg-deep: #020403;
  --ink: #8fb49c;          /* default text: dim green-grey. most things are dead. */
  --ink-dim: #4e6e5b;
  --phos: #38ff7e;         /* live emission */
  --phos-dim: #1d9e4e;
  --phos-hot: #c2ffd9;
  --alert: #ffb03b;        /* structure candidates only */
  --dead: #3a4d42;         /* extinct */
  --line: rgba(56, 255, 126, 0.22);
  --line-dim: rgba(56, 255, 126, 0.10);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --bar-h: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg-deep); }

body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* CRT scanlines + vignette: the whole thing is one screen */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.20) 3px
  );
  pointer-events: none;
  z-index: 9999;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 115% 115% at 50% 45%, transparent 62%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 9998;
}

a { color: var(--phos-dim); text-decoration: none; }
a:hover { color: var(--phos-hot); }
::selection { background: var(--phos); color: var(--bg); }
.dim { color: var(--ink-dim); }

/* ============================================================
   app frame
   ============================================================ */

.term {
  display: flex; flex-direction: column;
  min-height: 100vh;
  max-width: 1500px;
  margin: 0 auto;
  border-left: 1px solid var(--line-dim);
  border-right: 1px solid var(--line-dim);
}

/* --- title bar --- */
.titlebar {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--bar-h);
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  font-size: 11px;
  letter-spacing: 0.12em;
  flex: none;
}
.titlebar .app {
  color: var(--phos);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  text-shadow: 0 0 10px rgba(56, 255, 126, 0.4);
  white-space: nowrap;
}
.titlebar .app svg { display: block; }
.titlebar .ver { color: var(--ink-dim); white-space: nowrap; }
.titlebar .spacer { flex: 1; }
.titlebar .title-ca {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-dim);
  white-space: nowrap;
  min-width: 0;
}
.titlebar .title-ca code {
  color: var(--dead);
  border: 1px solid var(--line-dim);
  background: var(--bg-deep);
  padding: 0 7px;
  word-break: break-all;
}
.titlebar .title-ca code.is-live {
  color: var(--phos-hot);
  border-color: var(--phos-dim);
  text-shadow: 0 0 8px rgba(56, 255, 126, 0.32);
}
.titlebar .clock { color: var(--ink); white-space: nowrap; }
.titlebar .clock b { color: var(--phos-hot); font-weight: 500; }

/* --- screen tabs (the nav) --- */
.tabs {
  display: flex; align-items: stretch;
  height: var(--bar-h);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  font-size: 11px;
  letter-spacing: 0.1em;
  overflow-x: auto;
  flex: none;
}
.tabs a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px;
  color: var(--ink-dim);
  border-right: 1px solid var(--line-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.tabs a .fkey { color: var(--phos-dim); font-size: 10px; }
.tabs a:hover { color: var(--phos-hot); background: var(--bg-panel); }
.tabs a.here {
  color: var(--bg);
  background: var(--phos);
  text-shadow: none;
}
.tabs a.here .fkey { color: var(--bg); }
.tabs .tab-note {
  margin-left: auto;
  display: inline-flex; align-items: center;
  padding: 0 14px;
  color: var(--ink-dim);
  font-size: 10px;
  white-space: nowrap;
}

/* --- workspace --- */
.workspace {
  flex: 1;
  display: grid;
  gap: 10px;
  padding: 10px;
  min-height: 0;
}

/* observatory screen: rail | main | side */
.workspace.obs {
  grid-template-columns: 230px minmax(0, 1fr) 320px;
  grid-template-rows: minmax(0, 1fr);
}
.obs .col { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }

/* catalog screen: table | detail, alerts below */
.workspace.cat {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

/* document screens (translations, methodology) */
.workspace.doc { grid-template-columns: minmax(0, 1fr); }

/* --- panel: TUI box with a title riding the border --- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 18px 14px 12px;
  min-height: 0;
  display: flex; flex-direction: column;
}
.panel > .ptitle {
  position: absolute; top: -8px; left: 10px;
  background: var(--bg);
  color: var(--phos);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 8px;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel > .ptitle::before { content: '┤ '; color: var(--phos-dim); }
.panel > .ptitle::after { content: ' ├'; color: var(--phos-dim); }
.panel > .ptitle .count { color: var(--ink-dim); }
.panel.grow { flex: 1; }
.panel .pbody { min-height: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--phos-dim) transparent; }
.panel .pbody::-webkit-scrollbar { width: 4px; }
.panel .pbody::-webkit-scrollbar-thumb { background: var(--phos-dim); }
.panel.amber { border-color: rgba(255, 176, 59, 0.4); }
.panel.amber > .ptitle { color: var(--alert); }

/* --- status bar --- */
.statusbar {
  display: flex; align-items: center; gap: 0;
  min-height: var(--bar-h);
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  flex: none;
  flex-wrap: wrap;
}
.statusbar .cell {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-right: 1px solid var(--line-dim);
  white-space: nowrap;
}
.statusbar b { color: var(--ink); font-weight: 500; }
.statusbar .cell.rec b { color: var(--phos); }
.statusbar .cell.byline b { color: var(--phos-hot); }
.statusbar .led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 8px var(--phos);
  animation: led 3.4s steps(1) infinite;
}
@keyframes led { 0%, 92% { opacity: 1; } 93%, 96% { opacity: 0.25; } 97%, 100% { opacity: 1; } }
.statusbar .led.dark { background: var(--dead); box-shadow: none; animation: none; }
.statusbar .cell.right { margin-left: auto; border-right: none; border-left: 1px solid var(--line-dim); }
.statusbar .ca-cell {
  flex: 1 1 340px;
  min-width: 220px;
  max-width: 650px;
  white-space: normal;
}
.statusbar .ca-cell code {
  color: var(--dead);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}
.statusbar .ca-cell code.is-live { color: var(--phos-hot); }
.statusbar .ca-cell button {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  background: none;
  border: 1px solid var(--line-dim);
  color: var(--phos-dim);
  padding: 1px 7px;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.statusbar .ca-cell button:hover:not(:disabled) { background: var(--phos); color: var(--bg); }
.statusbar .ca-cell button:disabled { opacity: 0.35; cursor: default; }

/* ============================================================
   observatory screen panels
   ============================================================ */

/* --- source rail --- */
.rail-mission {
  font-size: 11.5px; color: var(--ink-dim);
  padding-bottom: 4px; line-height: 1.7;
}
.rail-mission b { color: var(--ink); font-weight: 500; }
.srcrail { list-style: none; }
.srcrail li { border-bottom: 1px solid var(--line-dim); }
.srcrail a {
  display: block; padding: 7px 4px;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
}
.srcrail a:hover { background: rgba(56, 255, 126, 0.06); color: var(--phos-hot); }
.srcrail .ln1 { display: flex; gap: 8px; align-items: baseline; }
.srcrail .desig { color: var(--phos); letter-spacing: 0.08em; font-size: 11px; }
.srcrail .cls { color: var(--ink-dim); font-size: 10px; margin-left: auto; }
.srcrail .ln2 { display: flex; gap: 8px; align-items: baseline; color: var(--ink-dim); font-size: 10.5px; }
.srcrail .st { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.srcrail .st.active { color: var(--phos-dim); }
.srcrail .st.active::before { content: '● '; }
.srcrail .st.dimming { color: var(--alert); }
.srcrail .st.dimming::before { content: '◐ '; }
.srcrail .st.extinct { color: var(--dead); }
.srcrail .st.extinct::before { content: '○ '; }
.srcrail .st.lost { color: var(--ink-dim); }
.srcrail .st.lost::before { content: '? '; }

/* --- waterfall panel --- */
.panel.scope { padding: 14px 0 0; }
.panel.scope .scopebox { position: relative; }
#waterfall { display: block; width: 100%; height: 150px; background: var(--bg-deep); }
.waterfall-labels { position: absolute; inset: 0; pointer-events: none; }
.waterfall-labels span {
  position: absolute; top: 4px;
  transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.08em;
  color: var(--phos-dim);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}
.waterfall-labels span.is-extinct { color: var(--dead); }
.scope .scopefoot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 10px; color: var(--ink-dim); letter-spacing: 0.05em;
  padding: 5px 12px 4px;
  border-top: 1px solid var(--line-dim);
}

/* --- capture log --- */
.sig {
  padding: 14px 10px 14px;
  border-bottom: 1px solid var(--line-dim);
}
.sig .head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  font-size: 10.5px; color: var(--ink-dim); letter-spacing: 0.06em;
}
.sig .desig {
  color: var(--phos); letter-spacing: 0.1em;
  border: 1px solid var(--line);
  padding: 0 6px; font-size: 10.5px;
}
.sig .desig:hover { background: var(--phos); color: var(--bg); }
.sig .srcname { color: var(--ink); }
.sig .kind { text-transform: uppercase; letter-spacing: 0.16em; font-size: 9.5px; }
.sig .kind.capture { color: var(--phos-dim); }
.sig .kind.observation { color: var(--ink-dim); }
.sig .kind.silence { color: var(--dead); }
.sig .kind.operator { color: var(--alert); }
.sig .excerpt {
  margin-top: 10px;
  margin-bottom: 0;
  font-family: var(--mono);
  color: var(--phos-hot);
  background: var(--bg-raised);
  border-left: 2px solid var(--phos-dim);
  padding: 9px 12px;
  font-size: 12.5px;
  text-shadow: 0 0 10px rgba(56, 255, 126, 0.22);
  white-space: pre-wrap;
  word-break: break-word;
}
.sig .excerpt::before { content: '▮ '; color: var(--phos-dim); }
.sig .excerpt.ascii-art {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  font-size: 7px;
  line-height: 0.95;
  letter-spacing: 0;
  padding: 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--phos-dim) transparent;
}
.sig .excerpt.ascii-art::before { content: none; }
.sig .note { margin-top: 8px; color: var(--ink); font-size: 12px; max-width: 75ch; }
.sig .meta-line { margin-top: 5px; color: var(--ink-dim); font-size: 10px; letter-spacing: 0.04em; }
.sig.k-silence .note { color: var(--dead); }
.sig.k-silence::before {
  content: '············ no emission ············';
  display: block; color: var(--dead); font-size: 9px; letter-spacing: 0.3em;
}
.sig.k-operator .note { color: var(--ink-dim); }

#more {
  text-align: center; color: var(--ink-dim); cursor: pointer;
  padding: 14px 0 8px; font-size: 11px; letter-spacing: 0.1em;
}
#more:hover { color: var(--phos-hot); }
#more.done { cursor: default; color: var(--dead); }

/* --- side column: alerts / bulletin / registry --- */
.alert-mini { font-size: 11.5px; }
.alert-mini .acode { color: var(--alert); letter-spacing: 0.1em; font-size: 11px; }
.alert-mini .acode.confirmed { color: var(--phos); }
.alert-mini .acode.dismissed { color: var(--ink-dim); text-decoration: line-through; }
.alert-mini .atitle { color: var(--ink); margin-top: 1px; }
.alert-mini .astamp {
  display: inline-block;
  border: 1px solid var(--alert); color: var(--alert);
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0 6px; margin-top: 5px;
  transform: rotate(-1.2deg);
}
.alert-mini .astamp.confirmed { border-color: var(--phos-dim); color: var(--phos); }
.alert-mini .astamp.dismissed { border-color: var(--ink-dim); color: var(--ink-dim); text-decoration: line-through; transform: rotate(0.8deg); }
.alert-mini .abody { color: var(--ink-dim); font-size: 11px; margin-top: 6px; }
.alert-mini + .alert-mini { border-top: 1px solid var(--line-dim); margin-top: 10px; padding-top: 10px; }
.alert-mini .more-link { display: inline-block; margin-top: 6px; font-size: 10.5px; letter-spacing: 0.08em; }

.bulletin-mini { font-size: 11.5px; }
.bulletin-mini .bno {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--phos-dim);
}
.bulletin-mini h3 { color: var(--phos); font-size: 12px; letter-spacing: 0.04em; font-weight: 500; margin-top: 2px; }
.bulletin-mini .period { color: var(--ink-dim); font-size: 10px; margin-top: 1px; }
.bulletin-mini .body {
  margin-top: 8px; white-space: pre-wrap; color: var(--ink); font-size: 11.5px;
  max-height: 240px; overflow: hidden; position: relative;
}
.bulletin-mini .body.open { max-height: none; }
.bulletin-mini .body:not(.open)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--bg-panel));
}
.bulletin-mini .expand {
  display: inline-block; margin-top: 6px; font-size: 10.5px; letter-spacing: 0.08em; cursor: pointer;
  color: var(--phos-dim);
}
.bulletin-mini .expand:hover { color: var(--phos-hot); }
.bulletin-mini + .bulletin-mini { border-top: 1px solid var(--line-dim); margin-top: 12px; padding-top: 12px; }

.reg-mini { font-size: 11px; }
.reg-mini code {
  display: block;
  color: var(--ink); background: var(--bg-deep);
  padding: 4px 8px; border: 1px solid var(--line-dim);
  word-break: break-all; font-size: 10.5px;
}
.reg-mini button {
  font-family: var(--mono); font-size: 10px;
  background: none; border: 1px solid var(--line);
  color: var(--phos-dim); padding: 2px 10px; cursor: pointer;
  letter-spacing: 0.1em; margin-top: 6px;
}
.reg-mini button:hover:not(:disabled) { background: var(--phos); color: var(--bg); }
.reg-mini button:disabled { opacity: 0.35; cursor: default; }
.reg-mini .reg-note { color: var(--ink-dim); font-size: 10.5px; margin-top: 6px; }

/* ============================================================
   catalog screen: master-detail
   ============================================================ */

.tablewrap { overflow: auto; flex: 1; min-height: 0; }
table.catalog { border-collapse: collapse; width: 100%; font-size: 11.5px; }
.catalog th {
  position: sticky; top: 0;
  text-align: left; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 9.5px;
  color: var(--phos-dim);
  border-bottom: 1px solid var(--line);
  padding: 7px 10px;
  background: var(--bg-panel);
  white-space: nowrap;
  z-index: 2;
}
.catalog td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-dim);
  vertical-align: top;
  white-space: nowrap;
}
.catalog tr.src { cursor: pointer; }
.catalog tr.src:hover td { background: rgba(56, 255, 126, 0.05); }
.catalog tr.src.selected td { background: rgba(56, 255, 126, 0.1); }
.catalog tr.src.selected td:first-child { box-shadow: inset 2px 0 0 var(--phos); }
.catalog td.desig { color: var(--phos); letter-spacing: 0.08em; }
.catalog td.name { color: var(--ink); white-space: normal; min-width: 110px; }
.catalog td .st { letter-spacing: 0.1em; font-size: 10px; text-transform: uppercase; }
.catalog .st.active { color: var(--phos); }
.catalog .st.active::before { content: '● '; }
.catalog .st.dimming { color: var(--alert); }
.catalog .st.dimming::before { content: '◐ '; }
.catalog .st.extinct { color: var(--dead); }
.catalog .st.extinct::before { content: '○ '; }
.catalog .st.lost { color: var(--ink-dim); }
.catalog .st.lost::before { content: '? '; }

/* detail pane */
.detail .placeholder { color: var(--ink-dim); font-size: 11.5px; padding: 8px 4px; }
.detail dl { font-size: 11.5px; }
.detail dt {
  color: var(--ink-dim); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 0.18em; margin-top: 12px;
}
.detail dd { color: var(--ink); margin-top: 1px; }
.detail dd.big { color: var(--phos); font-size: 15px; letter-spacing: 0.12em; }
.detail dd.notes { white-space: normal; line-height: 1.7; font-size: 12px; }
.detail .classdef {
  margin-top: 14px; border-top: 1px dashed var(--line-dim); padding-top: 10px;
  color: var(--ink-dim); font-size: 11px;
}
.detail .classdef b { color: var(--phos-dim); font-weight: 500; }

/* full alert board (catalog bottom) */
.alertboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.alert-card {
  border: 1px dashed var(--alert);
  padding: 12px 14px;
  background: rgba(255, 176, 59, 0.03);
  font-size: 11.5px;
}
.alert-card .stamp {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--alert);
  display: inline-block; padding: 0 7px;
  transform: rotate(-1.2deg);
  color: var(--alert);
  margin-bottom: 7px;
}
.alert-card h3 { font-size: 12px; letter-spacing: 0.06em; color: var(--alert); font-weight: 500; }
.alert-card .body { color: var(--ink); font-size: 11.5px; margin-top: 7px; }
.alert-card .meta { color: var(--ink-dim); font-size: 10px; margin-top: 7px; }
.alert-card.confirmed { border-color: var(--phos-dim); background: rgba(56, 255, 126, 0.03); }
.alert-card.confirmed .stamp { border-color: var(--phos-dim); color: var(--phos); }
.alert-card.confirmed h3 { color: var(--phos); }
.alert-card.dismissed { border-color: var(--ink-dim); background: none; }
.alert-card.dismissed .stamp { border-color: var(--ink-dim); color: var(--ink-dim); text-decoration: line-through; transform: rotate(0.8deg); }
.alert-card.dismissed h3 { color: var(--ink-dim); }

/* ============================================================
   translations screen: parallel text
   ============================================================ */

.disclaimer {
  border: 1px dashed var(--line);
  padding: 12px 16px;
  color: var(--ink-dim);
  font-size: 11.5px;
  max-width: 90ch;
}
.disclaimer b { color: var(--ink); font-weight: 500; }

.tr-item { margin-top: 26px; }
.tr-item .tr-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding-bottom: 8px;
}
.tr-item h2 { color: var(--phos); font-size: 13px; letter-spacing: 0.05em; font-weight: 500; }
.tr-item .srcline { font-size: 10.5px; color: var(--ink-dim); letter-spacing: 0.06em; }
.tr-item .conf {
  margin-left: auto;
  border: 1px solid var(--ink-dim); color: var(--ink-dim);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1px 8px;
  transform: rotate(1.6deg);
  white-space: nowrap;
}
.tr-item .conf.speculative { border-color: var(--alert); color: var(--alert); transform: rotate(-1.6deg); }
.tr-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-dim);
  border: 1px solid var(--line-dim);
}
.tr-split .half { background: var(--bg-panel); padding: 12px 14px; min-width: 0; }
.tr-split .half .hlabel {
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 8px;
}
.tr-split .original {
  color: var(--phos-hot);
  white-space: pre-wrap;
  font-size: 12.5px;
  text-shadow: 0 0 10px rgba(56, 255, 126, 0.2);
}
.tr-split .rendering { color: var(--ink); white-space: pre-wrap; font-size: 12.5px; }
.tr-item .method { margin-top: 8px; color: var(--ink-dim); font-size: 10.5px; max-width: 85ch; }
.tr-item .method::before { content: 'method — '; letter-spacing: 0.1em; text-transform: uppercase; font-size: 9.5px; }

/* ============================================================
   methodology screen: document viewer
   ============================================================ */

.docheader {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 14px 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 24px;
  font-size: 11px;
  max-width: 90ch;
}
.docheader .f { display: flex; gap: 8px; }
.docheader .f .k { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.14em; font-size: 9.5px; padding-top: 2px; white-space: nowrap; }
.docheader .f .v { color: var(--ink); }

.prose {
  margin-top: 18px; max-width: 78ch;
  border-left: 1px solid var(--line-dim);
  padding-left: 26px;
  position: relative;
}
.prose h2 {
  color: var(--phos); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin: 36px 0 10px;
  font-weight: 500;
}
.prose h2::before {
  content: '§'; color: var(--phos-dim);
  position: absolute; left: -19px;
}
.prose p { margin: 10px 0; color: var(--ink); font-size: 12.5px; }
.prose p b { color: var(--phos-hot); font-weight: 500; }
.prose ul { margin: 10px 0 10px 1.4em; }
.prose li { margin: 7px 0; color: var(--ink); font-size: 12.5px; }
.prose li::marker { color: var(--phos-dim); }
.prose .q { color: var(--phos); margin-top: 18px; }
.prose .q::before { content: '> '; color: var(--phos-dim); }
.prose .a { color: var(--ink); margin-top: 2px; }
.eof {
  margin: 40px 0 10px; max-width: 78ch;
  color: var(--dead); font-size: 10px; letter-spacing: 0.3em;
  text-align: center;
}

/* ============================================================
   hidden console (feedhorn)
   ============================================================ */

.console { padding: 24px 16px 60px; max-width: 760px; margin: 0 auto; width: 100%; }
.console h1 { color: var(--phos); font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
.console > .dim { margin-top: 6px; font-size: 12px; }
.console .panel { margin-top: 24px; display: block; }
.console .panel h2 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--phos-dim); margin-bottom: 12px; font-weight: 500;
}
.console label { display: block; font-size: 11px; color: var(--ink-dim); margin: 10px 0 4px; letter-spacing: 0.08em; }
.console input, .console textarea, .console select {
  width: 100%; font-family: var(--mono); font-size: 13px;
  background: var(--bg-deep); color: var(--phos-hot);
  border: 1px solid var(--line); padding: 7px 10px;
}
.console textarea { min-height: 90px; resize: vertical; }
.console input:focus, .console textarea:focus, .console select:focus {
  outline: none; border-color: var(--phos-dim);
}
.console button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  background: none; border: 1px solid var(--phos-dim); color: var(--phos);
  padding: 6px 16px; margin-top: 14px; margin-right: 8px; cursor: pointer;
}
.console button:hover { background: var(--phos); color: var(--bg); }
.console .msg { margin-top: 10px; font-size: 12px; min-height: 1em; }
.console .msg.ok { color: var(--phos); }
.console .msg.bad { color: var(--alert); }
#runner-state { font-size: 12.5px; color: var(--ink); }

/* legacy aliases used by the feedhorn page chrome */
.nav { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.nav .brand { color: var(--phos); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.nav .spacer { flex: 1; }
.footer { border-top: 1px solid var(--line); padding: 16px; color: var(--ink-dim); font-size: 11px; display: flex; gap: 20px; flex-wrap: wrap; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1100px) {
  .workspace.obs { grid-template-columns: 200px minmax(0, 1fr); }
  .obs .col.side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .obs .col.side .panel { flex: 1 1 280px; }
}

@media (max-width: 900px) {
  .term { min-height: 0; border-left: none; border-right: none; }
  .titlebar { gap: 8px; padding: 0 8px; }
  .titlebar .app { overflow: hidden; text-overflow: ellipsis; }
  .titlebar .ver { display: none; }
  .titlebar .title-ca {
    flex: 1 1 auto;
    white-space: normal;
    line-height: 1.35;
  }
  .workspace { display: flex; flex-direction: column; }
  .workspace.obs .col.rail { order: 2; }
  .workspace.obs .col.main { order: 1; }
  .workspace.obs .col.side { order: 3; flex-direction: column; }
  .panel .pbody { overflow: visible; }
  .panel.logpanel .pbody { max-height: none; }
  .srcrail-panel .pbody { max-height: 300px; overflow-y: auto; }
  .tr-split { grid-template-columns: 1fr; }
  .waterfall-labels { display: none; }
  .workspace.cat { grid-template-rows: auto auto auto; }
  .catalog th { position: static; }
}

@media (max-width: 520px) {
  .titlebar .clock { display: none; }
}

/* desktop: fixed app shell with internal scrolling (the instrument look) */
@media (min-width: 901px) {
  .term.appshell { height: 100vh; overflow: hidden; }
  .appshell .workspace { overflow: hidden; }
}
