*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #e8e8e8;
  --text-dim: #666;
  --accent: #c8a96e;   /* warm gold — Armenian manuscript tone */
  --accent-dim: #8a7248;
  --error: #c0392b;
  --success: #27ae60;
  --radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── screens ── */

.screen { height: 100%; }

/* ── login ── */

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}

.title {
  font-size: 72px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
}

.subtitle {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── header ── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.header-title {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
}

/* ── main ── */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── SEED input ── */

.label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.seed-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  padding: 16px;
  resize: vertical;
  transition: border-color .15s;
  outline: none;
}

.seed-input:focus {
  border-color: var(--accent-dim);
}

.seed-input::placeholder { color: var(--text-dim); }

.seed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.char-count {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── buttons ── */

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
}

.btn-primary:hover { opacity: .85; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

/* ── messages ── */

.submit-msg {
  margin-top: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.submit-msg.success { background: #0d2618; color: var(--success); }
.submit-msg.error   { background: #2a0d0a; color: var(--error); }

.error {
  font-size: 13px;
  color: var(--error);
}

/* ── seeds list ── */

.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.empty-state {
  color: var(--text-dim);
  font-size: 14px;
}

.seed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color .15s;
}

.seed-card.received { border-left: 3px solid var(--accent-dim); }
.seed-card.touch_complete { border-left: 3px solid var(--success); }
.seed-card.scenario { border-left: 3px solid #4a90d9; }

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

.seed-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.seed-date {
  font-size: 12px;
  color: var(--text-dim);
}

.seed-content {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.touch-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.touch-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 6px;
}

.touch-content {
  font-size: 14px;
  line-height: 1.6;
  color: #c8c8c8;
  white-space: pre-wrap;
}

/* ── responsive ── */

@media (max-width: 480px) {
  main { padding: 24px 16px 48px; }
  .title { font-size: 56px; }
}
