/* Direction: Redaktionsschreibtisch — warm paper, ink-black type, deep teal accent */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f5f2eb;
  --surface: #fffdf9;
  --surface-2: #e9e7e0;
  --border: #ddd6c8;
  --border-strong: #acaea8;
  --ink: #16181d;
  --muted: #666666;
  --accent: #0f6b5c;
  --accent-hover: #0d5b4e;
  --accent-ink: #ffffff;
  --accent-text: #0b5a4d;
  --accent-strong: #0f6b5c;
  --accent-soft: #d5dfd7;
  --accent-border: #8eb5ab;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dae4d6;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #eddfd0;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #eed8d2;
  --danger-strong: #b91c1c;
  --chart-1: #0f6b5c;
  --chart-2: #147eb3;
  --chart-3: #573889;
  --chart-4: #a94b6f;
  --chart-5: #753c00;
  --chart-6: #6d7c18;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --display-tracking: -0.02em;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #020f0d;
  --surface: #1b2725;
  --surface-2: #0f1b19;
  --border: #25312f;
  --border-strong: #4e5756;
  --ink: #f5f2eb;
  --muted: #949792;
  --accent: #0f6b5c;
  --accent-hover: #338174;
  --accent-ink: #ffffff;
  --accent-text: #619d93;
  --accent-strong: #53958a;
  --accent-soft: #05231e;
  --accent-border: #083831;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #062818;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #291e0c;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2a1210;
  --danger-strong: #d16969;
  --chart-1: #297d6d;
  --chart-2: #1d91cc;
  --chart-3: #8a6dc3;
  --chart-4: #be5d82;
  --chart-5: #b96921;
  --chart-6: #7f8e22;
}

.cap-area {
  min-height: 15rem;
  line-height: 1.55;
  resize: vertical;
  white-space: pre-wrap;
}

.copied-note {
  opacity: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-text);
  transition: opacity 0.2s ease;
}
.copied-note.is-on { opacity: 1; }

.char-count { font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--muted); }
.char-count.is-over { color: var(--danger-strong); font-weight: 600; }

.status { font-weight: 600; }
.status-idle { background: var(--surface-2); color: var(--muted); }
.status-sending { background: var(--warning-soft); color: var(--warning-strong); }
.status-sent { background: var(--success-soft); color: var(--success-strong); }
.status-failed { background: var(--danger-soft); color: var(--danger-strong); }

.load-ind { display: none; }
.load-ind.htmx-request { display: block; }
.spin {
  width: 1.1rem; height: 1.1rem; border-radius: 999px;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
html.reduced-motion .spin { animation: none; }

.lang-card { animation: rise 0.4s ease both; }
.lang-card:nth-child(2) { animation-delay: 0.04s; }
.lang-card:nth-child(3) { animation-delay: 0.08s; }
.lang-card:nth-child(4) { animation-delay: 0.12s; }
.lang-card:nth-child(5) { animation-delay: 0.16s; }
.lang-card:nth-child(6) { animation-delay: 0.2s; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
html.reduced-motion .lang-card { animation: none; }

.code-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mail-preview { white-space: pre-wrap; word-break: break-word; }
