:root {
  --bg: #0d1b2a;
  --bg-2: #13263a;
  --card: #18304a;
  --line: #2a4766;
  --text: #f3efe6;
  --muted: #9fb3c8;
  --red: #e0414b;
  --green: #3fbf7f;
  --gold: #f2c14e;
  --lcd: #b8c98d;
  --lcd-dark: #1f2a10;
  --lcd-dim: #8fa36a;
  --pixel: 'VT323', ui-monospace, 'DejaVu Sans Mono', monospace;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
}

button {
  font: inherit;
  cursor: pointer;
}

.btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #06200f; font-weight: 600; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn.small { padding: 4px 10px; font-size: 14px; }

/* ---------- Nokia-Display ---------- */
.nk {
  background: var(--lcd);
  color: var(--lcd-dark);
  font-family: var(--pixel);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.12), inset 0 6px 18px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.05;
}
.nk-bar, .nk-soft {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
.nk-bar { border-bottom: 2px solid var(--lcd-dim); }
.nk-soft { border-top: 2px solid var(--lcd-dim); }
.nk-body {
  flex: 1;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.nk-body .inner { overflow: hidden; }
.nk-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.comp.t9 { background: var(--lcd-dark); color: var(--lcd); }
.comp.unknown { text-decoration: line-through; }
.comp.mt { text-decoration: underline; text-decoration-thickness: 2px; }
.cursor {
  display: inline-block;
  width: .08em;
  min-width: 2px;
  height: 1em;
  background: var(--lcd-dark);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.diff-sub, .diff-ins { color: var(--red); background: rgba(224,65,75,.18); border-radius: 2px; }
.diff-del { color: var(--red); text-decoration: line-through; opacity: .7; }
