:root {
    color-scheme: dark;
    --bg: #080d18;
    --panel: #111827;
    --panel-soft: #172033;
    --border: #2a3850;
    --text: #edf2f7;
    --muted: #9ca9ba;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --danger: #fb7185;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #12213c, var(--bg) 42%); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #bae6fd; }
.topbar { min-height: 64px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); background: rgba(8, 13, 24, .88); backdrop-filter: blur(16px); }
.brand { color: var(--text); font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar form { margin: 0; }
.user-name { color: var(--muted); }
.shell { width: min(1180px, 92vw); margin: 36px auto 72px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1, h1, h2, h3 { margin-top: 0; }
.page-head p, .muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.stack { display: grid; gap: 18px; }
.card { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, rgba(23, 32, 51, .95), rgba(17, 24, 39, .95)); box-shadow: 0 18px 48px rgba(0, 0, 0, .2); }
.card h2, .card h3 { margin-bottom: 8px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pill { display: inline-flex; padding: 4px 9px; border: 1px solid #155e75; border-radius: 999px; background: #083344; color: #a5f3fc; font-size: 12px; font-weight: 700; }
.pill--muted { border-color: #475569; background: #1e293b; color: #cbd5e1; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #dbeafe; font-weight: 650; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; background: #09111f; color: var(--text); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(56, 189, 248, .4); border-color: var(--accent); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--accent-strong); border-radius: 8px; background: var(--accent-strong); color: white; font: inherit; font-weight: 750; cursor: pointer; }
button:hover, .button:hover { background: #0284c7; color: white; }
.button--secondary { border-color: var(--border); background: var(--panel-soft); }
.button--danger { border-color: #9f1239; background: #881337; }
.link-button { min-height: auto; padding: 0; border: 0; background: none; color: var(--accent); }
.link-button:hover { background: none; color: #bae6fd; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-card { width: min(480px, 100%); margin: 8vh auto 0; }
.validation-summary-errors, .field-validation-error { color: #fecdd3; }
.flash { margin-bottom: 20px; padding: 12px 15px; border: 1px solid #0e7490; border-radius: 8px; background: #083344; color: #cffafe; }
.project-list { display: grid; gap: 10px; margin-top: 16px; }
.project-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: rgba(8, 13, 24, .55); }
.empty { padding: 20px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); text-align: center; }
.code { overflow-wrap: anywhere; padding: 10px 12px; border-radius: 8px; background: #050a12; color: #bae6fd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 700px) { .topbar { padding: 12px 4vw; align-items: flex-start; } .topbar nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; } .page-head { flex-direction: column; } .shell { margin-top: 24px; } }

