:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #09090b;
    color: #f4f4f5;
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #1e1b4b 0, transparent 32rem), #09090b; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.topbar { height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #27272a; background: rgba(9,9,11,.82); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.topbar > div { display: flex; align-items: center; gap: 18px; }
.eyebrow, .kicker { color: #a78bfa; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.ghost { border: 1px solid #3f3f46; background: #18181b; color: #e4e4e7; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.button-link { display: inline-flex; }
.back { color: #a1a1aa; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.hero, .project-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
h1 { margin: 8px 0 6px; font-size: clamp(36px, 6vw, 64px); letter-spacing: -.055em; line-height: .95; }
h2 { margin: 14px 0 6px; letter-spacing: -.025em; }
p { color: #a1a1aa; }
.metric { min-width: 150px; padding: 18px; border: 1px solid #3f3f46; border-radius: 18px; background: linear-gradient(145deg, #18181b, #111113); }
.metric strong { display: block; font-size: 34px; }
.metric span { color: #a1a1aa; font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.project-card { padding: 20px; border: 1px solid #27272a; border-radius: 18px; background: rgba(24,24,27,.78); transition: .2s ease; }
.project-card:hover { border-color: #7c3aed; transform: translateY(-2px); box-shadow: 0 18px 50px rgba(76,29,149,.16); }
.card-top, .card-bottom, .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mono { color: #71717a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.status { display: inline-flex; padding: 4px 8px; border: 1px solid #3f3f46; border-radius: 999px; color: #d4d4d8; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-online { border-color: #14532d; background: #052e16; color: #86efac; }
.status-failed { border-color: #7f1d1d; background: #450a0a; color: #fca5a5; }
.progress { height: 4px; margin: 22px 0 10px; overflow: hidden; border-radius: 999px; background: #27272a; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #c084fc); }
.card-bottom { color: #71717a; font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.page-list, .schema-panel { border: 1px solid #27272a; border-radius: 18px; background: rgba(24,24,27,.82); }
.page-list { padding: 18px; position: sticky; top: 82px; }
.page-list a { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding: 10px; border-radius: 10px; }
.page-list a:hover { background: #27272a; }
.page-list a span { color: #71717a; font-size: 12px; }
.schema-panel { min-width: 0; overflow: hidden; }
.panel-title { padding: 20px; border-bottom: 1px solid #27272a; }
.panel-title h2 { margin: 3px 0 0; }
pre { margin: 0; padding: 22px; max-height: 68vh; overflow: auto; color: #d4d4d8; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.notice { margin: 16px 20px 0; padding: 11px 13px; border: 1px solid; border-radius: 10px; font-size: 13px; }
.notice.success { border-color: #14532d; background: #052e16; color: #86efac; }
.notice.error { border-color: #7f1d1d; background: #450a0a; color: #fca5a5; }
.schema-form { display: grid; }
.schema-form textarea { width: 100%; min-height: 58vh; resize: vertical; border: 0; outline: 0; padding: 22px; color: #d4d4d8; background: #0d0d10; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
.schema-actions { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #27272a; color: #71717a; font-size: 12px; }
.schema-actions button { padding: 10px 15px; border: 0; border-radius: 9px; color: white; background: #7c3aed; font-weight: 750; cursor: pointer; }
.login-body { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(390px, 100%); padding: 32px; border: 1px solid #3f3f46; border-radius: 24px; background: rgba(24,24,27,.92); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.login-card h1 { font-size: 42px; }
.login-card form { display: grid; gap: 10px; margin-top: 26px; }
.login-card label { color: #a1a1aa; font-size: 13px; }
.login-card input { width: 100%; padding: 15px; border: 1px solid #52525b; border-radius: 12px; outline: none; background: #09090b; color: white; text-align: center; font-size: 24px; letter-spacing: .45em; }
.login-card input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.login-card button { margin-top: 4px; padding: 13px; border: 0; border-radius: 12px; background: #7c3aed; color: white; font-weight: 700; cursor: pointer; }
.alert { margin-top: 18px; padding: 10px 12px; border: 1px solid #7f1d1d; border-radius: 10px; background: #450a0a; color: #fca5a5; font-size: 13px; }
@media (max-width: 720px) {
    .topbar { padding: 0 18px; }
    .shell { width: min(100% - 24px, 1180px); padding-top: 34px; }
    .hero, .project-heading { align-items: stretch; flex-direction: column; }
    .workspace-grid { grid-template-columns: 1fr; }
    .page-list { position: static; }
}
