:root {
  --bg: #0b0e0c;
  --panel: #050706;
  --green: #33ff66;
  --green-dim: #1c9944;
  --amber: #ffb238;
  --red: #ff5c5c;
  --border: #123a20;
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', ui-monospace, monospace;
}
.crt {
  width: min(880px, 92vw);
  height: min(600px, 85vh);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(51,255,102,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.titlebar {
  background: #0e120f;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2f2c; }
.titlebar span.label {
  margin-left: 8px;
  color: var(--green-dim);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.titlebar .session {
  margin-left: auto;
  font-size: 11px;
  color: var(--green-dim);
}
.screen {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  color: var(--green);
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 0 2px rgba(51,255,102,0.35);
}
.screen::-webkit-scrollbar { width: 8px; }
.screen::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.line { white-space: pre-wrap; word-break: break-word; }
.line.dim { color: var(--green-dim); }
.line.warn { color: var(--amber); }
.line.err { color: var(--red); }
.prompt-row { display: flex; align-items: center; }
.prompt-label { color: var(--green); flex-shrink: 0; }
.prompt-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--green);
  font-family: inherit;
  font-size: 14px;
  flex: 1;
  caret-color: transparent;
  text-shadow: 0 0 2px rgba(51,255,102,0.35);
}
.prompt-input.password { -webkit-text-security: disc; text-security: disc; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--green);
  margin-left: 2px;
  vertical-align: -3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.scanlines {
  pointer-events: none;
  position: absolute;
  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.12) 3px
  );
  mix-blend-mode: multiply;
}

/* Login / account panel */
.auth-box {
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin: 6px 0;
  max-width: 420px;
}
.auth-field-label { color: var(--green-dim); font-size: 12px; margin-bottom: 2px; }
.oauth-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.oauth-btn {
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 10px;
  cursor: pointer;
}
.oauth-btn:hover { border-color: var(--green); background: rgba(51,255,102,0.06); }
.oauth-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
