:root {
  --bg: #0b0b0c; --surface: #141416; --surface-2: #1c1c1f; --line: #2a2a2e;
  --fg: #ededf0; --muted: #9a9aa3; --blue: #5f9bf7; --orange: #ff9900; --green: #6cc293; --red: #e07a69;
  --display: "Archivo", Arial, system-ui, sans-serif; --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); line-height: 1.5; padding: 0 16px; }
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.6rem; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 2.4rem; height: 2.4rem; }
.brand span { color: var(--blue); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.6rem 1.1rem; border-radius: 10px; border: 1px solid var(--blue); background: var(--blue); color: #0b0b0c; font: 600 0.95rem var(--body); cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
input, select { width: 100%; min-height: 44px; padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: 1rem var(--body); }
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field { margin-bottom: 1rem; }
.msg { min-height: 1.4rem; font-size: 0.9rem; margin-top: 0.75rem; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); }
.tabs { display: flex; gap: 0.3rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); margin-bottom: 1.25rem; }
.tabs a { flex: 1; text-align: center; padding: 0.5rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tabs a.on { background: var(--blue); color: #0b0b0c; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kpi .v { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 0.85rem; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.on { border-color: var(--green); color: var(--green); }
.pill.warn { border-color: var(--orange); color: var(--orange); }
[hidden] { display: none !important; }
.pw-rules { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.2rem; font-size: 0.82rem; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 0.45rem; }
.pw-rules li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; box-sizing: border-box; }
.pw-rules li.ok { color: var(--green); }
.pw-rules li.ok::before { content: '✓'; border-color: var(--green); background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
