:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #10131a; background: #f2f4f7; --blue: #2054e8; --ink: #10131a; --line: #dfe3e9; --muted: #697181; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, a { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.shell { min-height: 100vh; }
.topbar { height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: #0c111b; color: #fff; }
.brand { display: flex; gap: 9px; align-items: center; color: inherit; text-decoration: none; font-size: 20px; letter-spacing: .08em; }
.brand em { color: #8ca8ff; font-style: normal; font-weight: 700; letter-spacing: normal; }
.brand-mark { width: 25px; height: 25px; border: 3px solid #3b73ff; border-radius: 9px 12px 8px 13px; transform: rotate(-12deg); }
.top-actions { display: flex; align-items: center; gap: 12px; }
main { width: min(1420px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 80px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: 30px; }
h3 { margin-bottom: 0; font-size: 23px; }
.eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.lead, .muted { color: var(--muted); }
.primary, button, .project-actions a { border: 1px solid #cbd1db; border-radius: 11px; padding: 11px 15px; background: #fff; color: #161922; font-weight: 750; text-decoration: none; }
.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.ghost { border-color: #394252; background: transparent; color: #fff; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.summary > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.summary strong { display: block; font-size: 32px; }
.summary span { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 34px 0 14px; }
.projects { display: grid; gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(21, 31, 51, .06); }
.project-title { padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.repo { margin-bottom: 6px; color: #647084; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #eef1f5; font-size: 13px; font-weight: 800; }
.badge.ok { color: #05633f; background: #dcf7ea; }
.badge.bad { color: #9a1c1c; background: #ffe4e4; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.pipeline > div { padding: 18px 24px; background: #fafbfc; }
.pipeline span, .pipeline small { display: block; color: var(--muted); }
.pipeline strong { display: block; margin: 5px 0; font-size: 20px; }
.project-actions { display: flex; gap: 10px; padding: 18px 24px; }
.note { margin: 0; padding: 12px 24px; color: #755008; background: #fff7dd; font-size: 14px; }
.token-section { margin-top: 40px; }
.token-form { display: flex; gap: 10px; }
input { width: 100%; padding: 13px 14px; border: 1px solid #cbd1db; border-radius: 11px; background: #fff; font-size: 16px; }
.token-form input { max-width: 420px; }
.new-token { margin-top: 12px; padding: 16px; border: 1px solid #f2cd64; border-radius: 13px; background: #fff8dc; }
.new-token code, #totp-secret { display: block; overflow-wrap: anywhere; margin-top: 8px; user-select: all; }
.token-list, .audit { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.token-list > div, .audit > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.token-list > div:last-child, .audit > div:last-child { border-bottom: 0; }
.token-list span, .audit span { color: var(--muted); }
.auth-card { width: min(520px, 100%); margin: 6vh auto; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 26px 70px rgba(21, 31, 51, .12); }
.auth-card h1 { font-size: 42px; }
.form-stack { display: grid; gap: 17px; margin-top: 26px; }
label { display: grid; gap: 7px; font-weight: 750; }
.qr-wrap { display: grid; place-items: center; padding: 16px; border-radius: 15px; background: #f5f7fa; }
.qr-wrap img { width: 260px; max-width: 100%; }
.error { min-height: 22px; margin: 16px 0 0; color: #b21d1d; font-weight: 700; }
.toast { position: fixed; right: 22px; bottom: 22px; transform: translateY(160%); padding: 14px 18px; border-radius: 12px; color: #fff; background: #087653; box-shadow: 0 18px 45px rgba(0,0,0,.22); transition: transform .2s; }
.toast.visible { transform: translateY(0); }
.toast.failed { background: #b32323; }
@media (max-width: 760px) { .hero, .project-title { align-items: stretch; flex-direction: column; } .summary, .pipeline { grid-template-columns: 1fr; } .token-form { flex-direction: column; } .topbar { padding: 0 18px; } #clock { display: none; } }
