:root {
  --bg: #0e0f12;
  --fg: #e9eef5;
  --muted: #9aa7b6;
  --card: #171a20;
  --border: rgba(255, 255, 255, 0.08);
  --good: #2ecc71;
  --bad: #ff5b5b;
  --btn: #232836;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.title {
  font-size: 18px;
  font-weight: 700;
}

.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.screen {
  display: block;
}

.hidden {
  display: none !important;
}

.card {
  user-select: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 150ms ease, border-color 150ms ease;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  align-self: flex-start;
}

.cardText {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  white-space: pre-wrap;
}

.cardHint {
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

button.good,
button.bad {
  border: 0;
  border-radius: 14px;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 15px;
}

button.good {
  background: rgba(46, 204, 113, 0.16);
  color: var(--good);
  border: 1px solid rgba(46, 204, 113, 0.35);
}

button.bad {
  background: rgba(255, 91, 91, 0.14);
  color: var(--bad);
  border: 1px solid rgba(255, 91, 91, 0.35);
}

.empty {
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
}

.emptyTitle {
  font-weight: 800;
  font-size: 18px;
}

.emptyHint {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}

.listHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.listTitle {
  font-weight: 800;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  background: #212121;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.rowTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.btnDelete {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.95;
  -webkit-tap-highlight-color: transparent;
}

.btnDelete:hover {
  opacity: 0.78;
}

.btnDelete:active {
  opacity: 0.6;
}

.btnDelete svg {
  width: 24px;
  height: 24px;
}

.rowEn {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.rowRu {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  white-space: pre-wrap;
}
