:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #6ee7b7;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, Segoe UI, Arial;
  margin: 0;
}

body {
  background: linear-gradient(180deg, #071022 0%, #081428 60%);
  color: #e6eef6;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
}

.app {
  width: 1100px;
  max-width: 98%;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

h1 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 8px;
}

p.lead {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
}

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.big-display {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.term {
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.history {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: var(--glass);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.list {
  overflow: auto;
  max-height: 640px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.item .key {
  min-width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
}

.item .txt {
  flex: 1;
}

.item .txt .t {
  font-weight: 600;
}

.item .txt .d {
  font-size: 13px;
  color: var(--muted);
}

.picked {
  opacity: 0.45;
  text-decoration: line-through;
}

footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
}
