* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0f1115; color: #e8eaed;
}
body { display: flex; flex-direction: column; }

.banner {
  padding: 1.5rem 2rem;
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25vh;
  border-bottom: 1px solid #222;
}
.banner-idle    { background: #1c2030; }
.banner-success { background: #14532d; color: #ecfdf5; }
.banner-error   { background: #7f1d1d; color: #fef2f2; }
.banner-warn    { background: #78350f; color: #fffbeb; }

#banner-text { flex: 1; white-space: pre-wrap; line-height: 1.3; }

.lang-toggle button {
  background: transparent; border: 1px solid #555; color: inherit;
  padding: 0.4rem 0.8rem; margin-left: 0.4rem; cursor: pointer;
  font-size: 1rem; border-radius: 4px;
}
.lang-toggle button.active { background: #fff; color: #000; }

main {
  flex: 1; padding: 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}

.scan-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem;
}
.scan-slot {
  background: #1a1d27; border: 2px solid #2a2f3d; border-radius: 8px;
  padding: 1rem;
}
.scan-slot.filled { border-color: #34d399; }
.slot-label { font-size: 0.95rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.slot-value { font-size: 2.5rem; font-weight: 700; margin: 0.3rem 0; font-variant-numeric: tabular-nums; }
.slot-detail { font-size: 1.05rem; color: #cbd5e1; min-height: 1.4em; }

.preview {
  background: #1a1d27; border-radius: 8px; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.preview.hidden, .conflict.hidden, .debug.hidden { display: none; }

.preview-status { font-size: 1.4rem; }
.status-tag {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 4px;
  font-weight: 700; margin-left: 0.4rem;
}
.status-tag.in    { background: #14532d; color: #ecfdf5; }
.status-tag.out   { background: #1e3a8a; color: #dbeafe; }
.status-tag.none  { background: #374151; color: #d1d5db; }
#current-since { color: #94a3b8; margin-left: 0.4rem; font-size: 1rem; }

.conflict {
  background: #7f1d1d; padding: 0.75rem 1rem; border-radius: 6px;
  font-size: 1.15rem;
}

.history-label { color: #9ca3af; font-size: 0.95rem; margin-bottom: 0.3rem; }
.history ul { list-style: none; padding: 0; margin: 0; }
.history li {
  font-variant-numeric: tabular-nums;
  padding: 0.3rem 0; border-bottom: 1px solid #2a2f3d;
  font-size: 1.05rem;
}
.history li:last-child { border-bottom: none; }
.history .auto-flag { color: #fbbf24; margin-left: 0.4rem; font-size: 0.85rem; }

.prompt { color: #fbbf24; font-size: 1.2rem; }
.prompt b { color: #fff; }

.hint { color: #6b7280; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.typing-buffer { font-family: ui-monospace, "Cascadia Code", monospace; color: #fbbf24; font-size: 1rem; }

.debug { background: #000; color: #0f0; padding: 0.5rem; font-size: 0.8rem; max-height: 12em; overflow: auto; }
