/* Tokens et composants partagés par app/ et docs/ (la landing garde son CSS inline). */
:root {
  --bg: #08090A; --surface: #0F1012; --surface-2: #15161A;
  --text: #EDEEF0; --muted: #8A8F98; --faint: #4A4E57;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --accent: #D4FF3F; --accent-dim: rgba(212,255,63,.14); --danger: #FF6B5B;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

nav.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(8,9,10,.8); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo svg { width: 22px; height: 22px; }
.links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.links a:hover, .links a.on { color: var(--text); }
.nav-r { display: flex; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px; font: 500 14px var(--sans); border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.btn:hover { border-color: rgba(255,255,255,.3); }
.btn.primary { background: var(--accent); color: #0A0B0C; border-color: var(--accent); }
.btn.primary:hover { background: #E2FF7A; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.tabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 500 12px var(--mono); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs.full { display: flex; } .tabs.full button { flex: 1; }

.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font: 500 11px var(--mono); letter-spacing: .06em; background: var(--accent-dim); color: var(--accent); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

input, select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); font: 500 15px var(--mono); }
input:focus, select:focus { border-color: var(--accent); outline: none; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }

svg text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
