/* SinglePass arayüz temeli. Derleme adımı yok: tek stil dosyası, token tabanlı. */
:root {
  --bg: #0d0d14;
  --surface: #16161f;
  --surface-2: #1d1d29;
  --line: #2a2a3a;
  --text: #e9e9f2;
  --muted: #8b8ba7;
  --accent: #7c5cff;
  --accent-2: #4d7cff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;

  --radius: 12px;
  --radius-lg: 18px;
  --space: 16px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

.shell { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.narrow { max-width: 560px; }

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -0.01em;
}
.mark__badge {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 13px;
}

h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 4px; letter-spacing: -0.01em; }
.lede { color: var(--muted); margin: 0 0 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}

label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 10px 12px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }

button {
  border: 0; border-radius: var(--radius);
  padding: 10px 16px; font: inherit; font-weight: 600;
  cursor: pointer; transition: filter 150ms ease, background 150ms ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.msg { padding: 11px 14px; border-radius: var(--radius); font-size: 13px; margin: 14px 0; }
.msg-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }
.msg-ok { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.3); color: #bbf7d0; }
.msg-warn { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: #fde68a; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase;
     letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-ok { background: rgba(74,222,128,.15); color: #86efac; }
.pill-warn { background: rgba(251,191,36,.15); color: #fcd34d; }
.pill-danger { background: rgba(248,113,113,.15); color: #fca5a5; }
.pill-muted { background: var(--surface-2); color: var(--muted); }

.secret {
  font-family: var(--mono); font-size: 15px; letter-spacing: .04em;
  background: var(--surface-2); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: 14px; word-break: break-all;
  user-select: all;
}
.muted { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 12px; }

nav.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
nav.tabs button { background: transparent; color: var(--muted); padding: 8px 14px; }
nav.tabs button.active { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.step { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.step b { color: var(--accent); font-variant-numeric: tabular-nums; }
