@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root { --bg: hsl(0 0% 100%); --fg: hsl(224 71% 4%); --muted: hsl(210 20% 45.1%); --card: hsl(0 0% 100%); --line: hsl(210 20% 89.8%); --accent: hsl(90 100% 40%); --accent-fg: hsl(224 71% 4%); --accent-text: hsl(90 100% 24%); --ok: #16a34a; --warn: #d97706; --bad: hsl(0 84.2% 60.2%); color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: hsl(220 13% 10%); --fg: hsl(210 20% 98%); --muted: hsl(210 20% 63.9%); --card: hsl(220 13% 12%); --line: hsl(210 14% 20%); --accent: hsl(90 100% 49%); --accent-fg: hsl(90 100% 10%); --accent-text: hsl(90 100% 49%); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: hsl(220 13% 10%); --fg: hsl(210 20% 98%); --muted: hsl(210 20% 63.9%); --card: hsl(220 13% 12%); --line: hsl(210 14% 20%); --accent: hsl(90 100% 49%); --accent-fg: hsl(90 100% 10%); --accent-text: hsl(90 100% 49%); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--accent-text); }
main { padding: 32px 16px 64px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.top nav { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.narrow { max-width: 640px; margin: 0 auto; }
.hero { max-width: 720px; margin: 40px auto; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.lead { color: var(--muted); font-size: 18px; }
.cards, .status-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 960px; margin: 32px auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.card h3 { margin-top: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent-text); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { padding: 14px 26px; font-size: 18px; }
.link { background: none; border: 0; color: var(--accent-text); cursor: pointer; font: inherit; padding: 0; }
.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); width: 100%; }
small { font-weight: 400; }
.muted { color: var(--muted); }
.error { color: var(--bad); }
.req { color: var(--bad); }
.row { display: flex; gap: 12px; justify-content: flex-end; }
.choices { display: flex; gap: 20px; font-weight: 400; }
.choice { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 400 !important; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 8px 0 20px; }
.progress span { display: block; height: 100%; background: var(--accent); }
.infra-bar { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 8px 16px; font-size: 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.infra-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); animation: pulse 1.2s infinite; }
.infra-bar[data-status=ready] .dot { background: var(--ok); animation: none; }
.infra-bar[data-status=failed] .dot { background: var(--bad); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; background: var(--line); text-transform: capitalize; }
.badge.ready, .badge.applied { background: color-mix(in srgb, var(--ok) 20%, transparent); }
.badge.failed { background: color-mix(in srgb, var(--bad) 20%, transparent); }
.log { white-space: pre-wrap; font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; }
dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
dt { color: var(--muted); font-size: 14px; margin-top: 8px; }
dd { margin: 0; }
.steps li { margin-bottom: 12px; }
.small { font-size: 14px; font-weight: 400; }
.ok { color: var(--ok); }
.badge.pending, .badge.submitted { background: color-mix(in srgb, var(--warn) 20%, transparent); }
.badge.missing { background: color-mix(in srgb, var(--warn) 20%, transparent); }
.wide-page { max-width: 1040px; margin: 0 auto; }
.targets { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.target { display: flex !important; flex-direction: row !important; gap: 10px !important; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-weight: 400 !important; cursor: pointer; }
.target.on { border-color: var(--accent); }
.target span { display: flex; flex-direction: column; gap: 2px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 12px; }
.grid2 label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
details summary { cursor: pointer; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }

.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; }
