/* Same palette as the EuroERP HAProxy error pages. */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --line: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --ok: #22c55e;
  --err: #f87171;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
body { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 56px 16px 72px; text-align: center; }
.topbar { position: fixed; top: 0; right: 0; padding: 12px 16px; }
.lang { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.lang:hover, .lang:focus-visible { color: var(--text); border-color: var(--muted); }
.page { width: 100%; max-width: 480px; }
.logo { width: 56px; height: auto; margin-bottom: 20px; opacity: .95; }
h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.lead { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  text-align: left; margin-bottom: 20px; }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
textarea { width: 100%; min-height: 96px; resize: vertical; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: .95rem/1.5 ui-monospace, Consolas, monospace; }
textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
button[type=submit] { margin-top: 16px; width: 100%; background: var(--blue); color: #fff; border: 0;
  border-radius: 8px; padding: 12px; font: inherit; font-weight: 600; cursor: pointer; }
button[type=submit]:hover:not(:disabled) { background: var(--blue-hover); }
button[type=submit]:disabled { opacity: .6; cursor: progress; }
.error { color: var(--err); font-size: .9rem; margin-top: 12px; }
.request { background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .35); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 16px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.request strong { color: var(--text); }
.gone { text-align: center; color: var(--muted); line-height: 1.6; }
.done { text-align: center; }
.ok { color: var(--ok); font-weight: 600; margin-bottom: 12px; }
.ref { margin-bottom: 12px; }
.ref strong { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; }
.hint, .note { color: var(--faint); font-size: .85rem; line-height: 1.5; }
.status-bar { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 16px; font-size: .8rem;
  color: #475569; background: var(--card); border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
