/* brand: lowercase, IDE/terminal aesthetic
   accents: yellow #ffd60a, green #3ee08a
   bg: near-black #0a0b0d, surfaces #14161a, text #e8eaed */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0a0b0d;
  color: #e8eaed;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
::selection { background: #ffd60a; color: #0a0b0d; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: #14161a;
  border-bottom: 1px solid #1e2127;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.logo { font-weight: 700; letter-spacing: -0.01em; }
.logo .prompt { color: #3ee08a; margin-right: 6px; }
.logo .caret {
  display: inline-block; color: #ffd60a; margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
nav { display: flex; gap: 20px; align-items: center; }
.nav-link, .btn-link {
  color: #9aa0a6; text-decoration: none; font-family: inherit;
  background: none; border: none; cursor: pointer; padding: 0; font-size: inherit;
}
.nav-link:hover, .btn-link:hover { color: #ffd60a; }

main { padding: 32px; }
.container { max-width: 980px; margin: 0 auto; }
h1, h2, h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 { font-size: 24px; margin: 0 0 24px; }
h1 .prompt, h2 .prompt { color: #3ee08a; margin-right: 8px; }
h2 { font-size: 18px; margin: 0 0 16px; }
.mt-32 { margin-top: 48px; }
.muted { color: #6b7280; font-weight: 400; }
.err { color: #ff6b6b; padding: 10px 12px; background: #2a1414; border-radius: 6px; margin-bottom: 12px; }

/* --- login --- */
.login-wrap { display: flex; justify-content: center; padding-top: 80px; }
.login-form {
  background: #14161a; padding: 32px;
  border: 1px solid #1e2127; border-radius: 8px;
  width: 100%; max-width: 360px;
}
.login-form h1 { margin-top: 0; }
.login-form label { display: block; margin-bottom: 16px; }
.login-form label span { display: block; font-size: 12px; color: #9aa0a6; margin-bottom: 6px; }
.login-form input {
  width: 100%; padding: 10px 12px;
  background: #0a0b0d; color: #e8eaed;
  border: 1px solid #2d3038; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
}
.login-form input:focus { outline: none; border-color: #ffd60a; }

/* --- buttons --- */
.btn-primary {
  background: #ffd60a; color: #0a0b0d;
  border: none; padding: 9px 16px; border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform 0.05s;
}
.btn-primary:hover { background: #ffe04a; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: #9aa0a6;
  border: 1px solid #2d3038; padding: 9px 16px; border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer;
}
.btn-ghost:hover { color: #e8eaed; border-color: #4b5563; }

/* --- chat list --- */
.chat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chat-card {
  display: block; padding: 18px 20px;
  background: #14161a; border: 1px solid #1e2127; border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: border-color 0.1s;
}
.chat-card:hover { border-color: #3ee08a; }
.chat-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.chat-meta { display: flex; gap: 16px; font-size: 13px; }
.meta-students { color: #9aa0a6; }
.meta-quiet { color: #6b7280; }
.badge-new {
  color: #0a0b0d; background: #ffd60a; padding: 2px 8px; border-radius: 4px;
  font-weight: 700; font-size: 12px;
}

/* --- breadcrumbs --- */
.crumbs {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: #6b7280; margin-bottom: 16px;
}
.crumbs a { color: #9aa0a6; text-decoration: none; }
.crumbs a:hover { color: #ffd60a; }
.crumbs .sep { margin: 0 6px; }
.crumbs .now { color: #e8eaed; }

/* --- queue --- */
.queue { display: grid; gap: 16px; }
.q-card {
  background: #14161a; border: 1px solid #1e2127; border-radius: 8px;
  padding: 16px 20px;
}
.q-new { border-color: #ffd60a; animation: pulse 1.5s ease-out 1; }
.q-suggested { border-color: #3ee08a55; }
.q-done { opacity: 0.5; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(255, 214, 10, 0); }
}
.q-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 8px;
}
.who { color: #3ee08a; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.who-bot { color: #ffd60a; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.q-text {
  white-space: pre-wrap; font-size: 15px; line-height: 1.55;
  background: #0a0b0d; padding: 12px 14px; border-radius: 6px;
  border-left: 3px solid #3ee08a;
  margin-bottom: 12px;
}
.q-actions { display: flex; gap: 8px; }
.ok { color: #3ee08a; font-weight: 600; padding: 9px 0; }

.suggestions { margin-top: 16px; display: grid; gap: 12px; }
.sg-card {
  background: #0d0f12; border: 1px solid #1e2127; border-radius: 6px;
  padding: 12px 14px;
}
.sg-custom { border-color: #2d3038; }
.sg-label {
  font-size: 12px; color: #9aa0a6;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 8px;
  text-transform: lowercase;
}
.sg-text {
  width: 100%; min-height: 70px;
  padding: 10px 12px;
  background: #0a0b0d; color: #e8eaed;
  border: 1px solid #1e2127; border-radius: 4px;
  font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.5;
  resize: vertical;
}
.sg-text:focus { outline: none; border-color: #ffd60a; }
.sg-actions { margin-top: 8px; }
.thinking { color: #ffd60a; padding: 12px; font-family: 'JetBrains Mono', monospace; }

/* --- history --- */
.history { display: grid; gap: 10px; }
.hist-card {
  background: #14161a; border: 1px solid #1e2127; border-radius: 6px;
  padding: 12px 14px; font-size: 13px;
}
.hist-q { color: #c0c4ca; margin-bottom: 6px; }
.hist-a { color: #e8eaed; }
.src {
  color: #6b7280; font-size: 11px; margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}
