/* Shared visual vocabulary with funken-hb9iuo: FunkTerm's green CRT terminal. */
:root {
  color-scheme: dark;
  --bg: #050b06;
  --panel: #071109;
  --border: #245c34;
  --text: #68cc80;
  --muted: #71a780;
  --accent: #a0ffb0;
  --fill: #0b2615;
  --warn: #a0ffb0;
  --bad: #a0ffb0;
  --font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.65 var(--font); }
body::after { content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 20; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.12) 2px, rgba(0,0,0,.12) 3px); }
html[data-crt="off"] body::after { display: none; }
html[data-crt="on"] h1 { text-shadow: 0 0 16px #3dbf6138; }
::selection { background: var(--text); color: var(--bg); }
header, main, footer { max-width: 1216px; margin: auto; padding: 28px 40px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; padding-bottom: 24px; }
.brand { display: flex; gap: 18px; align-items: center; min-width: 0; }
.signal { color: var(--text); font-size: 26px; letter-spacing: 2px; }
h1 { font-size: 18px; letter-spacing: 1px; margin: 0; font-weight: 700; color: var(--accent); }
h1 span { font-size: 11px; letter-spacing: 1px; font-weight: 400; margin-left: 12px; color: var(--text); text-transform: uppercase; }
header p { margin: 4px 0 0; font-size: 10px; letter-spacing: .5px; color: var(--muted); }
.header-actions { display: flex; gap: 12px; align-items: center; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
main { padding-top: 0; min-height: 65vh; }
.panel { border: 1px solid var(--border); background: var(--panel); padding: 24px; margin-bottom: 24px; border-radius: 0; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.panel .section-heading { border-top: 0; padding-top: 0; }
.section-heading > span { font-size: 10px; color: var(--muted); letter-spacing: .5px; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 11px; color: var(--text); font-weight: 400; letter-spacing: 1px; min-width: 0; overflow-wrap: anywhere; }
h2 span { color: var(--accent); margin-left: 14px; font-size: 17px; font-weight: 400; letter-spacing: 0; }
h3 { font-size: 11px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.muted { color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.status-grid > div { border-left: 1px solid var(--border); padding-left: 18px; overflow-wrap: anywhere; }
.status-grid > div:first-child { border: 0; padding-left: 0; }
.eyebrow { display: block; text-transform: uppercase; font-size: 9px; letter-spacing: 1.3px; color: var(--muted); margin-bottom: 10px; }
.status-grid strong { font-size: 17px; font-weight: 400; display: block; color: var(--accent); }
label { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
input, select, textarea, button { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 10px 12px; min-height: 44px; min-width: 0; max-width: 100%; accent-color: var(--text); }
button { background: transparent; border-color: var(--text); color: var(--text); font-size: 12px; font-weight: 400; cursor: pointer; touch-action: manipulation; }
button:hover { background: var(--fill); border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.secondary:hover { background: var(--fill); border-color: var(--text); }
#crt-toggle { font-size: 10px; color: var(--muted); white-space: nowrap; }
#play { border-color: var(--accent); color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.filters { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.filters label:first-child { flex: 1; min-width: 140px; }
.filters label { min-width: 130px; }
.table-heading, .contact-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 20px; align-items: center; }
.table-heading { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 0 12px 12px; }
.contact-row { border-top: 1px solid var(--border); padding: 18px 12px; color: var(--text); border-radius: 0; overflow-wrap: anywhere; }
.contact-row:hover { background: var(--fill); text-decoration: none; }
.contact-row strong { color: var(--accent); font-size: 17px; font-weight: 400; }
.contact-row small { display: block; color: var(--muted); font-size: 11px; }
.badge { padding: 4px 7px; border: 1px solid var(--border); color: var(--text); border-radius: 0; font-size: 10px; display: inline-block; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; font-size: 11px; color: var(--muted); }
.back-link { display: inline-block; padding: 10px 0; margin-bottom: 16px; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
dl { font-size: 12px; margin: 20px 0; }
dl div { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding: 8px 0; gap: 16px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70%; }
details { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 18px; }
summary { color: var(--muted); font-size: 12px; cursor: pointer; min-height: 30px; touch-action: manipulation; }
.player-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0 18px; }
.player-buttons button { min-height: 56px; }
.decoded-code { margin-top: 8px; }
.decoded-code textarea { font-size: 16px; resize: vertical; }
#decoded-code-status { font-size: 11px; margin: 6px 0 0; }
.player-shortcuts { font-size: 11px; }
.timeline-label { gap: 2px; }
input[type=range] { width: 100%; padding: 0; accent-color: var(--text); border: none; background: transparent; }
.time-row { display: flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.time-row a { margin-left: auto; min-height: 44px; display: flex; align-items: center; }
audio { width: 100%; display: block; margin: 16px 0; filter: grayscale(1) sepia(1) saturate(3) hue-rotate(65deg) brightness(.8); }
#audio-status { color: var(--muted); font-size: 11px; min-height: 20px; }
#message { color: var(--warn); font-size: 12px; min-height: 22px; }
.login-panel { max-width: 460px; margin: 40px auto; }
.login-panel h2 { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.login-panel label { margin: 18px 0; }
.login-panel button { width: 100%; margin-top: 8px; }
footer { font-size: 9px; letter-spacing: 1px; color: var(--muted); display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 36px; }
[hidden] { display: none !important; }
a { touch-action: manipulation; }
@media (max-width: 650px) {
  header, main, footer { padding-left: 18px; padding-right: 18px; }
  header { align-items: start; gap: 10px; }
  h1 { font-size: 16px; }
  h1 span { display: block; margin: 3px 0 0; font-size: 10px; letter-spacing: .5px; }
  .signal { display: none; }
  header p { font-size: 9px; }
  .header-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .header-actions button { padding: 7px 10px; font-size: 10px; min-height: 44px; }
  .panel { padding: 18px; margin-bottom: 18px; }
  .section-heading { align-items: start; gap: 8px; }
  .section-heading > span { font-size: 9px; }
  .filters { gap: 12px; }
  .filters label:first-child { flex-basis: 100%; }
  .filters label { flex: 1; min-width: 115px; }
  .filters button { width: 100%; }
  .table-heading { display: none; }
  .contact-row { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0; }
  .contact-row > div:last-child { grid-column: 2; }
  .contact-row > div:first-child { grid-row: 1/3; }
  .status-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .status-grid > div:nth-child(3) { border: 0; padding: 0; }
  .status-grid strong { font-size: 14px; }
  .player-buttons { gap: 6px; }
  .player-buttons button { font-size: 10px; padding: 8px 3px; line-height: 1.4; }
  .section-heading h2 span { font-size: 15px; margin-left: 7px; }
  .time-row { font-size: 11px; flex-wrap: wrap; }
  footer { display: block; }
  footer span { display: block; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  h1 { text-shadow: none !important; }
}
