/* Vertalen PWA — gloves-friendly, high-contrast, single-screen PTT layout. */
:root {
  --bg: #0b1d2a;
  --bg-2: #0f2b3d;
  --fg: #f4faff;
  --fg-dim: #b8d3e3;
  --accent: #ffb53d;        /* high-vis safety amber */
  --accent-2: #ff8a00;
  --src: #1f4a66;
  --tgt: #2e6b3a;
  --err: #ff4d4d;
  --ok:  #4dd47a;
  --idle: #888;
  --recording: #ff4d4d;
  --thinking: #ffb53d;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; min-height: 100dvh;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh; height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
body.auth-modal-open { overflow: hidden; }

/* ----- top bar ----- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 8px;
  background: var(--bg);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.dir-pair { display: flex; align-items: center; gap: 8px; }
.lang-chip {
  background: var(--bg-2);
  color: var(--fg);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 10px 18px;
  font-size: 22px;
  font-weight: 700;
  min-width: 64px;
  min-height: 48px;
  letter-spacing: 0.5px;
}
.swap {
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 28px;
  width: 48px; height: 48px;
}
.user-btn {
  background: var(--bg-2);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 40px; height: 40px;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.status-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--idle);
  transition: background 0.2s, box-shadow 0.2s;
}
.status-recording { background: var(--recording); box-shadow: 0 0 16px var(--recording); }
.status-thinking  { background: var(--thinking);  box-shadow: 0 0 16px var(--thinking); animation: pulse 1s infinite; }
.status-ok        { background: var(--ok); }
.status-err       { background: var(--err); }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ----- conversation ----- */
.conversation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 16px 16px;
  overflow-y: auto;
}
.bubble {
  background: var(--bg-2);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  min-height: 80px;
}
.bubble-src { border-left: 4px solid var(--src); }
.bubble-tgt { border-left: 4px solid var(--tgt); }
.bubble-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.bubble-text {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  word-wrap: break-word;
}
.replay-btn {
  margin-top: 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg-dim);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  min-height: 44px;
}
.replay-btn:disabled { opacity: 0.5; }

.glossary {
  background: rgba(255, 181, 61, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}
.glossary-label { color: var(--accent); font-weight: 600; }
.glossary ul { margin: 6px 0 0 16px; padding: 0; }

.error {
  background: rgba(255, 77, 77, 0.15);
  color: #ffd0d0;
  border-left: 4px solid var(--err);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
}

/* ----- PTT ----- */
.ptt-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0 24px;
  background: var(--bg);
}
.ptt-btn {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 6px solid var(--accent);
  background: radial-gradient(circle at 30% 30%, var(--accent-2), #b34d00 70%);
  color: var(--fg);
  font-size: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  touch-action: none;
  transition: transform 0.05s, box-shadow 0.05s, background 0.2s;
}
.ptt-btn .ptt-label {
  font-size: 18px;
  letter-spacing: 2px;
  margin-top: 4px;
  font-weight: 700;
}
.ptt-btn.active {
  transform: scale(0.95);
  background: radial-gradient(circle at 30% 30%, var(--recording), #800 70%);
  border-color: var(--recording);
  box-shadow: 0 0 32px var(--recording);
}
.ptt-btn:disabled {
  opacity: 0.5;
  background: #444;
  border-color: #888;
}
.ptt-hint {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 360px) {
  .ptt-btn { width: 170px; height: 170px; font-size: 40px; }
  .bubble-text { font-size: 18px; }
  .lang-chip { font-size: 18px; padding: 8px 14px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .ptt-btn { width: 130px; height: 130px; font-size: 32px; }
  body { grid-template-rows: auto 1fr auto; }
}

/* =====================================================================
 * AUTH OVERLAY (login / register)
 * ===================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 42, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
}
.auth-overlay[hidden] { display: none; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.auth-title {
  margin: 0 0 4px;
  font-size: 32px;
  color: var(--accent);
  letter-spacing: 1px;
}
.auth-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.auth-tab {
  flex: 1;
  background: transparent;
  color: var(--fg-dim);
  border: none;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-dim);
}
.auth-label-half { flex: 1; }
.auth-row { display: flex; gap: 10px; }
.auth-label input,
.auth-label select {
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid #2a4a5e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 17px;
  font-family: inherit;
  -webkit-user-select: text;
  user-select: text;
}
.auth-label input:focus,
.auth-label select:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-submit {
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 6px;
  min-height: 50px;
}
.auth-submit:hover:not(:disabled) { background: var(--accent-2); }
.auth-submit:disabled { opacity: 0.5; cursor: wait; }
.auth-msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(255, 181, 61, 0.12);
  color: var(--accent);
  border-radius: 8px;
  font-size: 14px;
}
.auth-err {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(255, 77, 77, 0.18);
  color: #ffd0d0;
  border-left: 4px solid var(--err);
  border-radius: 8px;
  font-size: 14px;
}

/* =====================================================================
 * VIEW OVERLAYS (history, conversation, settings)
 * ===================================================================== */
body.view-open { overflow: hidden; }

.conv-badge {
  font-size: 12px;
  color: var(--fg-dim);
  background: rgba(255, 181, 61, 0.12);
  padding: 4px 8px;
  border-radius: 8px;
  min-width: 26px;
  text-align: center;
}
.conv-badge:empty { display: none; }

.view-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.view-title {
  margin: 0;
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
}
.view-close {
  background: transparent;
  color: var(--fg);
  border: none;
  font-size: 28px;
  width: 44px; height: 44px;
  cursor: pointer;
  border-radius: 50%;
}
.view-close:hover { background: rgba(255,255,255,0.06); }
.view-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.view-action {
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
}
.view-action-sm {
  background: var(--bg-2);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}
.view-submit {
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  min-height: 50px;
}
.view-loading, .view-empty { color: var(--fg-dim); text-align: center; padding: 24px; }
.view-error { color: #ffd0d0; background: rgba(255,77,77,0.15); border-left: 4px solid var(--err); padding: 10px 14px; border-radius: 8px; }
.view-ok    { color: var(--ok);     background: rgba(77,212,122,0.12); border-left: 4px solid var(--ok); padding: 10px 14px; border-radius: 8px; }

/* ----- conversation list ----- */
.conv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.conv-card {
  background: var(--bg-2);
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-left: 3px solid var(--src);
}
.conv-card-main {
  flex: 1;
  text-align: left;
  background: transparent;
  color: var(--fg);
  border: none;
  padding: 12px 14px;
  cursor: pointer;
}
.conv-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.conv-meta  { font-size: 12px; color: var(--fg-dim); }
.conv-del {
  background: transparent;
  color: var(--err);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 0 14px;
  font-size: 18px;
  cursor: pointer;
  min-width: 50px;
}

/* ----- single conversation view ----- */
.conv-title-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.conv-edit-title { font-size: 22px; font-weight: 700; }
.conv-sub { color: var(--fg-dim); font-size: 13px; margin: 0 0 8px; }
.msg-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.msg {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--src);
}
.msg-peer { border-left-color: var(--tgt); }
.msg-meta { font-size: 11px; color: var(--fg-dim); margin-bottom: 4px; }
.msg-src { font-size: 16px; }
.msg-tgt { font-size: 15px; color: var(--accent); margin-top: 4px; }

/* ----- settings ----- */
.settings-section {
  margin: 18px 0 4px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
}
.settings-form { display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); padding: 14px; border-radius: 12px; }
.settings-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-dim); }
.settings-label input,
.settings-label select {
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid #2a4a5e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  -webkit-user-select: text; user-select: text;
}
.settings-label input:focus, .settings-label select:focus { outline: none; border-color: var(--accent); }
.settings-row { display: flex; gap: 10px; }
.settings-row .settings-label { flex: 1; }

/* =====================================================================
 * BOTTOM-SHEET MENU
 * ===================================================================== */
.menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 6000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.menu-sheet {
  background: var(--bg-2);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideUp 0.18s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.menu-user {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-user-name { font-size: 16px; font-weight: 600; }
.menu-user-role { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.menu-item {
  background: transparent;
  color: var(--fg);
  border: none;
  text-align: left;
  padding: 14px 14px;
  font-size: 17px;
  border-radius: 10px;
  cursor: pointer;
}
.menu-item:hover, .menu-item:active { background: rgba(255,255,255,0.06); }
.menu-item-danger { color: var(--err); }

/* =====================================================================
 * SPLIT-SCREEN
 * ===================================================================== */
body.split-on { grid-template-rows: auto auto 1fr auto; }
body.split-on .peer-area {
  transform: rotate(180deg);
  background: var(--bg-2);
  padding: 12px 0 16px;
  border-bottom: 2px solid var(--accent);
}
body.split-on .peer-area .ptt-btn {
  width: 140px; height: 140px;
  font-size: 36px;
}
.ptt-btn-peer {
  background: radial-gradient(circle at 30% 30%, var(--src), #0a2030 70%);
  border-color: var(--src);
}
body.split-on .conversation { padding-top: 4px; }
@media (orientation: landscape) {
  body.split-on .peer-area .ptt-btn { width: 110px; height: 110px; font-size: 28px; }
}

/* =====================================================================
 * CP6.4 — Cheatsheet, Quick replies, Glossary
 * ===================================================================== */

/* Quick-reply chip bar above PTT */
.qr-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 0;
  justify-content: center;
}
.qr-chip {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qr-chip:active { background: var(--accent); border-color: var(--accent); }

/* Filter chips (cheatsheet/glossary categories) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}
.chip {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  min-height: 30px;
}
.chip-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Cheatsheet cards */
.cheat-list, .qr-list, .gloss-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; }
.cheat-card, .qr-card, .gloss-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cheat-global { border-left: 3px solid var(--src); opacity: 0.85; }
.gloss-verified { border-left: 3px solid var(--ok); }
.cheat-cat, .gloss-cat, .qr-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}
.qr-label { font-size: 16px; color: var(--accent); text-transform: none; letter-spacing: 0; }
.cheat-nl, .qr-nl, .gloss-nl { font-size: 16px; font-weight: 500; }
.cheat-ru, .qr-ru, .gloss-ru { color: #c8d3dd; font-size: 15px; }
.cheat-uk, .qr-uk, .gloss-uk { color: #b9c4cf; font-size: 15px; }
.gloss-def { font-size: 13px; color: var(--muted); font-style: italic; }
.gloss-notes { font-size: 13px; color: var(--muted); }
.cheat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--muted);
}
.cheat-badge {
  margin-left: 8px;
  font-size: 10px;
  background: var(--src);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.cheat-actions, .qr-actions, .gloss-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.view-action-sm.danger { color: var(--err); }

/* Glossary search */
.gloss-search {
  width: 100%;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  margin: 8px 0 4px;
}
.gloss-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.view-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 8px;
  font-style: italic;
}

/* =====================================================================
 * CP6.5 — Stats / Learning / NEN
 * ===================================================================== */

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 8px 0;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
}
.stat-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--accent); margin: 4px 0; }
.stat-sub { font-size: 11px; color: var(--muted); }

.lang-pairs { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.lang-pair {
  display: flex; justify-content: space-between;
  background: var(--bg-2); padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.lp-pair { font-weight: 600; }
.lp-count { color: var(--muted); }

/* Sparkline chart */
.spark-chart {
  display: flex; align-items: flex-end; gap: 4px;
  padding: 8px 0; height: 110px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
}
.spark-bar {
  display: flex; flex-direction: column; align-items: center;
  min-width: 32px;
}
.spark-fill {
  width: 14px;
  background: linear-gradient(to top, var(--accent), var(--src));
  border-radius: 3px 3px 0 0;
}
.spark-label { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* Tabs (learning) */
.tabs { display: flex; gap: 4px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tab {
  background: transparent; color: var(--muted); border: none;
  padding: 8px 14px; cursor: pointer; font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tab-active { color: var(--accent); border-bottom-color: var(--accent); }

/* Learning */
.learn-host { padding-top: 10px; }
.learn-summary { display: flex; gap: 12px; padding: 8px 0; color: var(--muted); flex-wrap: wrap; }
.learn-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 32px; }
.learn-card {
  background: var(--bg-2);
  border-radius: 10px; padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #555;
}
.learn-card.mastery-0 { border-left-color: #6b7280; }
.learn-card.mastery-1 { border-left-color: #d97706; }
.learn-card.mastery-2 { border-left-color: #ca8a04; }
.learn-card.mastery-3 { border-left-color: #65a30d; }
.learn-card.mastery-4 { border-left-color: #16a34a; }
.learn-card.mastery-5 { border-left-color: var(--ok); }
.learn-row { display: flex; justify-content: space-between; align-items: center; }
.learn-nl { font-size: 17px; font-weight: 600; }
.learn-mast { font-size: 14px; color: #f59e0b; letter-spacing: 1px; }
.learn-tr { color: #c8d3dd; font-size: 14px; margin-top: 2px; }
.learn-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.learn-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.view-action-sm.ok { color: var(--ok); }
.view-action-sm.warn { color: #f59e0b; }

/* Mastery bars (progress view) */
.mastery-bars { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.mastery-row { display: grid; grid-template-columns: 50px 1fr 40px; align-items: center; gap: 8px; }
.mastery-label { color: var(--muted); font-size: 12px; }
.mastery-bar { background: rgba(255,255,255,0.06); border-radius: 999px; height: 10px; overflow: hidden; }
.mastery-fill { height: 100%; transition: width .2s; }
.mastery-fill.mastery-0 { background: #6b7280; }
.mastery-fill.mastery-1 { background: #d97706; }
.mastery-fill.mastery-2 { background: #ca8a04; }
.mastery-fill.mastery-3 { background: #65a30d; }
.mastery-fill.mastery-4 { background: #16a34a; }
.mastery-fill.mastery-5 { background: var(--ok); }
.mastery-count { color: var(--muted); font-size: 12px; text-align: right; }

/* NEN */
.nen-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; }
.nen-card {
  background: var(--bg-2);
  border-radius: 12px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.nen-code {
  font-family: monospace; font-weight: 700; font-size: 16px;
  color: var(--accent);
  display: flex; gap: 8px; align-items: center;
}
.nen-cat-pill {
  background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; color: var(--muted); font-family: inherit;
}
.nen-title-nl { font-size: 15px; font-weight: 500; margin-top: 4px; }
.nen-title-ru { font-size: 14px; color: #c8d3dd; margin-top: 2px; }
.nen-sum { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.nen-link {
  color: var(--accent); text-decoration: none; font-size: 13px;
  display: inline-block; margin-top: 6px;
}
.nen-link:active { text-decoration: underline; }
