/* Bot command center theme, taken from the sign-in page (login/index.html):
   green phosphor on a near-black void, mono type, square glass panels that glow.
   Every page links this first; page files only add their own layout. This is the
   "Tech" look; theme-big.css re-skins it in BIG's brand when <html data-theme="big">. */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --void: #030a05;
  --phosphor: #2bff6e;
  --phosphor-dim: #1a9c45;
  --phosphor-faint: rgba(43, 255, 110, .08);
  --glass: rgba(3, 14, 7, 0.78);
  --glass-deep: rgba(0, 0, 0, .55);
  --text: #c9ffd9;
  --text-muted: rgba(201, 255, 217, .55);
  --error: #ff6b6b;
  --warn: #ffd166;
  --strong: #fff;
  --edge: rgba(26, 156, 69, .45);        /* borders and dividers */
  --edge-soft: rgba(26, 156, 69, .35);
  --edge-strong: rgba(26, 156, 69, .6);
  --display: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --body: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --glow-text: 0 0 6px rgba(43, 255, 110, .7), 0 0 22px rgba(43, 255, 110, .35);
  --glow-box: 0 0 0 1px rgba(43, 255, 110, .08), 0 0 32px rgba(43, 255, 110, .12);
  --glow-focus: 0 0 0 2px rgba(43, 255, 110, .25), 0 0 14px rgba(43, 255, 110, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--void); color: var(--text); font-family: var(--body); font-size: 14px; line-height: 1.5; }

/* Headings: the glowing display face, with the blinking block cursor. */
.title {
  margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .06em;
  color: var(--phosphor); text-shadow: var(--glow-text);
}
.cursor { display: inline-block; width: .55em; margin-left: .1em; background: var(--phosphor); animation: blink 1.1s steps(1) infinite; }
.cursor::after { content: "\00a0"; }
@keyframes blink { 50% { opacity: 0; } }

/* Panels: the sign-in form's glass box. */
.panel {
  background: var(--glass);
  border: 1px solid var(--phosphor-dim);
  box-shadow: var(--glow-box);
  backdrop-filter: blur(3px);
}

/* Small uppercase labels, as on the form fields. */
.label, label {
  font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--phosphor-dim);
}

input, textarea {
  font: 500 16px var(--body); color: var(--text);
  background: var(--glass-deep); border: 1px solid var(--phosphor-dim);
  padding: 9px 12px; caret-color: var(--phosphor); border-radius: 0;
}
textarea { resize: none; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: rgba(201, 255, 217, .35); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--phosphor); box-shadow: var(--glow-focus); }

/* Buttons: solid phosphor (primary), outlined (.ghost), or quiet text (.link). */
button, .button {
  cursor: pointer;
  font: 400 16px var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--void); background: var(--phosphor);
  border: 1px solid var(--phosphor); border-radius: 0; padding: 12px;
  box-shadow: 0 0 18px rgba(43, 255, 110, .35);
  transition: background .15s, color .15s, box-shadow .15s;
}
button:hover { background: transparent; color: var(--phosphor); }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
button:disabled { cursor: default; opacity: .45; box-shadow: none; }
button:disabled:hover { background: var(--phosphor); color: var(--void); }
button.ghost { font-size: 13px; letter-spacing: .14em; padding: 7px 12px; color: var(--phosphor); background: transparent; box-shadow: none; border-color: var(--phosphor-dim); }
button.ghost:hover { border-color: var(--phosphor); box-shadow: var(--glow-focus); }
button.ghost:disabled:hover { background: transparent; color: var(--phosphor); border-color: var(--phosphor-dim); box-shadow: none; }
button.link { font: 400 13px var(--display); letter-spacing: .14em; padding: 0; color: var(--phosphor-dim); background: none; border: 0; box-shadow: none; }
button.link:hover { color: var(--phosphor); }

/* Tags: channel and status badges. */
.tag {
  display: inline-block; padding: 1px 6px;
  font: 400 11px var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--phosphor-dim); border: 1px solid var(--edge-strong);
}
.tag.off { color: var(--text-muted); border-color: rgba(201, 255, 217, .2); }

.status:empty { display: none; }
.status { min-height: 1.3em; margin: 0; font-size: 13px; color: var(--phosphor); }
.status.err { color: var(--error); }

a { color: var(--phosphor); }
a:hover { text-shadow: var(--glow-text); }
::selection { background: rgba(43, 255, 110, .35); color: #fff; }

/* Scrollbars in the same green. */
* { scrollbar-width: thin; scrollbar-color: var(--phosphor-dim) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--phosphor-dim); }
::-webkit-scrollbar-track { background: transparent; }

/* BIG | Tech switch (Tech skin; theme-big.css restyles it). Top right on every page. */
.theme-switch { display: inline-flex; border: 1px solid var(--edge); }
.theme-switch button {
  font: 400 12px var(--display); letter-spacing: .14em; padding: 4px 10px;
  color: var(--phosphor-dim); background: transparent; border: 0; box-shadow: none;
  transition: none;  /* the saved theme is applied on load: no animated flip */
}
.theme-switch button:hover { color: var(--phosphor); background: var(--phosphor-faint); }
.theme-switch button[aria-pressed="true"] { color: var(--void); background: var(--phosphor); }

/* The BIG logo and eyebrow only show in the BIG theme. */
.brand-mark { display: none; height: 40px; width: auto; flex: none; }
.eyebrow { display: none; margin-bottom: 2px; font: 700 11px var(--display); letter-spacing: .2em; text-transform: uppercase; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  * { transition: none !important; }
}
