/* LOONBERG shared terminal theme: amber-on-black, dense, monospaced. */
:root {
  --bg: #000;
  --panel: #07070a;
  --line: #2a2118;
  --amber: #ffa028;
  --amber-dim: #a8661a;
  --white: #f2f2f2;
  --gray: #8a8a8a;
  --green: #3ddc84;
  --red: #ff4d4d;
  --blue: #4da3ff;
  --font: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--amber); font: 12px/1.35 var(--font); }
body { display: flex; flex-direction: column; overflow: hidden; }
a { color: var(--blue); }
::selection { background: var(--amber); color: #000; }
.up { color: var(--green); } .down { color: var(--red); } .flat { color: var(--gray); }
.white { color: var(--white); } .dim { color: var(--amber-dim); } .gray { color: var(--gray); }

.topbar { display: flex; align-items: center; gap: 14px; padding: 6px 10px; background: #120c04; border-bottom: 1px solid var(--amber-dim); }
.brand { font-weight: 700; letter-spacing: .12em; color: #000; background: var(--amber); padding: 2px 8px; white-space: nowrap; }
.brand span { font-weight: 400; opacity: .75; margin-left: 6px; }
.cmd { position: relative; flex: 1; display: flex; align-items: center; gap: 6px; max-width: 640px; }
.cmd .prompt { color: var(--amber); font-weight: 700; }
.cmd input { flex: 1; background: #000; border: 1px solid var(--amber-dim); color: var(--white); font: inherit; padding: 4px 8px; outline: none; text-transform: uppercase; }
.cmd input:focus { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.cmd button { background: var(--green); color: #000; border: 0; font: inherit; font-weight: 700; padding: 4px 12px; cursor: pointer; }
.suggest { position: absolute; top: 100%; left: 18px; right: 52px; background: #0d0904; border: 1px solid var(--amber); z-index: 20; display: none; }
.suggest div { padding: 3px 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.suggest div.sel, .suggest div:hover { background: var(--amber); color: #000; }
.clock { margin-left: auto; color: var(--white); white-space: nowrap; }

.tape { background: #0a0a0a; border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; height: 22px; }
.tape-track { display: inline-block; padding-left: 100%; animation: scroll 90s linear infinite; line-height: 22px; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track span { margin-right: 26px; }
@keyframes scroll { to { transform: translateX(-100%); } }

.panel { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.panel > h2 { margin: 0; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: #1a1206; color: var(--amber); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.panel > h2 .fn { color: var(--gray); font-weight: 400; }
.panel .body { flex: 1; min-height: 0; overflow: auto; }

.status { display: flex; gap: 16px; padding: 3px 10px; background: #120c04; border-top: 1px solid var(--amber-dim); color: var(--gray); white-space: nowrap; overflow: hidden; }
.status .msg { color: var(--amber); }
.status .spacer { margin-left: auto; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal.open { display: flex; }
.modal .box { background: #0b0703; border: 1px solid var(--amber); max-width: 640px; width: calc(100% - 32px); max-height: 85vh; overflow: auto; padding: 14px 18px; }
.modal h3 { margin: 0 0 8px; color: #000; background: var(--amber); padding: 2px 8px; display: inline-block; }
.modal table { border-collapse: collapse; width: 100%; }
.modal td { padding: 2px 6px; vertical-align: top; } .modal td:first-child { color: var(--green); white-space: nowrap; }

.flash-up { animation: fu .6s; } .flash-down { animation: fd .6s; }
@keyframes fu { from { background: rgba(61,220,132,.5); } to { background: transparent; } }
@keyframes fd { from { background: rgba(255,77,77,.5); } to { background: transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--amber-dim); } ::-webkit-scrollbar-track { background: #000; }
