/* SchemaFrog app pages (sign-in, dashboard, 404). Tokens match the landing page and the logo. */
:root {
  --surface: #12141A; --raised: #1C1F27; --sunken: #0B0C10; --line: #2E323D; --line-strong: #6B7282;
  --text: #F5EFE6; --muted: #A9A39A; --green: #2BE36B; --green-dark: #12B94F; --green-light: #A3FF6B;
  --danger: #FF8A7A; --info: #3B82F6;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: var(--surface); color: var(--text); font: 16px/24px var(--sans); }
a { color: var(--green-light); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }

.top { position: sticky; top: 0; z-index: 10; height: 72px; border-bottom: 1px solid var(--line); background: rgba(18, 20, 26, .9); backdrop-filter: blur(12px); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo b { color: var(--green); }
.logo img { width: 52px; height: 36px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; min-width: 0; }
.who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--green-light); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--green); color: #12141A; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn-quiet { background: transparent; color: var(--muted); min-height: 36px; padding: 0 10px; }
.btn-quiet:hover { color: var(--text); }
.btn-danger { color: var(--danger); }

.card { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
h1 { font-size: 34px; line-height: 40px; letter-spacing: -.02em; }
h2 { font-size: 20px; line-height: 28px; }
.head { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.mono { font-family: var(--mono); }
.err { color: var(--danger); font-size: 14px; }
.ok { color: var(--green-light); font-size: 14px; }

/* ⓘ: explanations live here, not inline (Chris's UI hint rule) */
.info { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--info); color: #fff; font: 700 12px/1 var(--sans); cursor: help; flex: none; border: 0; }
.info::before { content: 'i'; }
.info:hover::after, .info:focus::after, .info.open::after { content: attr(data-tip); position: absolute; top: 28px; left: 50%; transform: translateX(-50%); z-index: 30; width: max-content; max-width: min(320px, 80vw); padding: 10px 12px; border-radius: 10px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font: 400 13px/1.45 var(--sans); white-space: normal; text-align: left; }

label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .03em; margin-bottom: 6px; }
input[type=text], input[type=email] { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--sunken); }
.drop { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 140px; padding: 20px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--sunken); text-align: center; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--green); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; letter-spacing: 0; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.tag { font-size: 11px; font-weight: 700; color: var(--green-light); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sunken); border: 1px solid var(--line); }
.pill.ready { color: var(--green-light); }
.pill.failed, .pill.over_limit { color: var(--danger); }
.pill.running, .pill.queued { color: var(--text); }
.pill.running::before, .pill.queued::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .pill::before { animation: none !important; } }

@media (max-width: 600px) { .who .email { display: none; } .top .wrap { gap: 8px; } }
