* { box-sizing: border-box; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0e1116;
  color: #e6e9ef;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 860px;
}

.notes {
  width: 280px;
  flex-shrink: 0;
  background: #161a22;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}
.notes h2 { font-size: 0.95rem; color: #9aa3b2; margin-bottom: 10px; }
.notes ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.notes li {
  font-size: 0.88rem;
  background: #1d222d;
  border-left: 3px solid #6ea8ff;
  border-radius: 6px;
  padding: 7px 10px;
}
/* Typewriter + glow: text writes itself out while a soft glow breathes once. */
.notes li.note-new {
  overflow: hidden;
  white-space: nowrap;
  animation: noteWrite 0.9s steps(28), noteGlow 2.6s ease-in-out;
}
@keyframes noteWrite {
  from { max-width: 0; }
  to { max-width: 100%; }
}
@keyframes noteGlow {
  0% { box-shadow: 0 0 18px 4px rgba(110, 168, 255, 0); border-left-color: #fff; }
  20% { box-shadow: 0 0 18px 4px rgba(110, 168, 255, 0.55); border-left-color: #fff; }
  55% { box-shadow: 0 0 18px 4px rgba(110, 168, 255, 0.22); }
  85% { box-shadow: 0 0 18px 4px rgba(110, 168, 255, 0.06); border-left-color: #6ea8ff; }
  100% { box-shadow: 0 0 18px 4px rgba(110, 168, 255, 0); border-left-color: #6ea8ff; }
}
.notes-empty { font-size: 0.85rem; color: #5d6675; }

@media (max-width: 760px) {
  .layout { flex-direction: column; align-items: center; }
  .notes { width: 100%; max-width: 520px; }
}

.card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

h1 { font-size: 1.5rem; font-weight: 600; }

.status { color: #9aa3b2; font-size: 0.95rem; min-height: 1.4em; }

.orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #6ea8ff, #2b5fd9);
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s;
}
.orb.live { opacity: 1; animation: breathe 2.4s ease-in-out infinite; }
.orb.speaking { animation: pulse 0.9s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(110, 168, 255, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 32px 6px rgba(110, 168, 255, 0.25); }
}

.controls { display: flex; gap: 10px; }

button {
  font: inherit;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #2b5fd9;
  color: #fff;
  cursor: pointer;
}
button:hover { background: #3a6ee8; }
button.secondary { background: #2a2f3a; }
button.secondary:hover { background: #353b48; }
button:disabled { opacity: 0.5; cursor: default; }

.typed-input {
  display: flex;
  gap: 8px;
  width: 100%;
}
.typed-input input {
  flex: 1;
  font: inherit;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #2a2f3a;
  background: #161a22;
  color: #e6e9ef;
}
.typed-input input::placeholder { color: #5d6675; }
.typed-input button { padding: 9px 18px; }

.settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  color: #9aa3b2;
}
.settings label { display: flex; align-items: center; gap: 7px; }
.settings select {
  font: inherit;
  background: #161a22;
  color: #e6e9ef;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: 4px 8px;
}
.settings input[type="checkbox"] { accent-color: #2b5fd9; }

.transcript {
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
  background: #161a22;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.transcript .line span.who { color: #6ea8ff; font-weight: 600; margin-right: 6px; }
.transcript .line.guest span.who { color: #8fd18f; }
