:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #090b0f; color: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #1a2330 0, #090b0f 44%); }
a { color: #c9d8ff; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 650; background: #f4f7fb; color: #0a0c10; }
button:disabled { cursor: not-allowed; opacity: .55; }
button.secondary, .link-button { background: #151a22; color: #edf2f8; border: 1px solid #2a313d; text-decoration: none; padding: 10px 14px; border-radius: 10px; }
input, select { width: 100%; margin-top: 7px; border: 1px solid #2a313d; background: #0e1218; color: #f6f8fb; border-radius: 10px; padding: 12px 13px; outline: none; }
input:focus, select:focus { border-color: #7184a2; box-shadow: 0 0 0 3px #7184a222; }
label { display: block; font-size: 14px; color: #d6dce5; }
h1 { font-size: clamp(28px, 4vw, 46px); margin: 8px 0 12px; letter-spacing: -0.035em; }
h2 { margin-top: 0; }
h3 { margin: 0 0 12px; }
.brand { font-weight: 800; letter-spacing: -0.03em; font-size: 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: #8fa0b8; font-weight: 750; }
.muted { color: #9da9ba; line-height: 1.6; }
.small { font-size: 12px; }
.center-card { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.panel { background: #11161dcc; border: 1px solid #242b35; border-radius: 18px; box-shadow: 0 30px 80px #0008; padding: 28px; }
.auth-panel { width: min(470px, 100%); }
.stack { display: grid; gap: 16px; margin-top: 22px; }
.status { min-height: 1.2em; margin: 0; color: #9da9ba; }
.status[data-kind="error"] { color: #ff9f9f; }
.status[data-kind="success"] { color: #9fe6b1; }
.desktop { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; grid-template-rows: 64px 1fr auto; grid-template-areas: "top top" "side work" "side ask"; }
.topbar { grid-area: top; border-bottom: 1px solid #1f2630; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; padding: 0 18px; background: #0a0d12e8; backdrop-filter: blur(16px); }
.workspace-title { color: #aeb8c6; }
.sidebar { grid-area: side; border-right: 1px solid #1f2630; padding: 22px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav span { padding: 10px 12px; color: #8996a8; }
.sidebar nav .nav-active { color: #eef3fa; background: #131923; border-radius: 10px; }
.sidebar-bottom { font-size: 11px; color: #566274; line-height: 1.5; }
.workspace { grid-area: work; display: block; overflow: auto; padding: 40px; }
.blank-state { max-width: 720px; margin: min(14vh, 120px) auto 0; text-align: center; color: #aeb8c6; }
.blank-state h1 { color: #f5f8fc; font-size: clamp(40px, 7vw, 78px); }
.blank-state p:last-child { line-height: 1.7; }
.asknx { grid-area: ask; padding: 18px 28px 24px; }
.asknx form { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid #29313d; background: #10151cd9; border-radius: 16px; padding: 8px 8px 8px 16px; }
.asknx input { border: 0; background: transparent; margin: 0; }
.asknx input:focus { box-shadow: none; }
.spark { color: #b8c9ff; }
.asknx .status { max-width: 900px; margin: 8px auto 0; }
.admin-layout { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 80px; display: grid; gap: 18px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.header-actions, .button-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.compact { padding: 22px 28px; }
.compact p { color: #aab5c3; line-height: 1.6; }
.nx-workspace-canvas { width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 20px; }
.nx-page, .nx-section { display: grid; gap: 16px; min-width: 0; }
.nx-page-title { font-size: clamp(30px, 4vw, 54px); margin: 0; }
.nx-grid { display: grid; grid-template-columns: repeat(var(--nx-grid-columns, 2), minmax(0, 1fr)); gap: 16px; min-width: 0; }
.nx-card { min-width: 0; background: #11161dcc; border: 1px solid #242b35; border-radius: 16px; padding: 20px; box-shadow: 0 18px 48px #0004; }
.nx-card > .nx-card, .nx-card > .nx-grid, .nx-card > .nx-section { margin-top: 14px; }
.nx-metric { display: grid; gap: 8px; }
.nx-metric-label { color: #8fa0b8; font-size: 13px; }
.nx-metric-value { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.nx-text { color: #dce3ec; line-height: 1.7; margin: 0; white-space: pre-wrap; }
.nx-table-scroll { overflow-x: auto; }
.nx-table-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nx-table-card th, .nx-table-card td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #242b35; white-space: nowrap; }
.nx-table-card th { color: #8fa0b8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.nx-chart { display: grid; gap: 10px; }
.nx-chart-row { display: grid; grid-template-columns: minmax(80px, 160px) 1fr auto; gap: 10px; align-items: center; }
.nx-chart-label { color: #b8c3d2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-chart-track { height: 10px; background: #202833; border-radius: 999px; overflow: hidden; }
.nx-chart-bar { display: block; height: 100%; background: linear-gradient(90deg, #7793d7, #b6c8ff); border-radius: inherit; }
.nx-chart-value { color: #dfe7f3; font-variant-numeric: tabular-nums; }
.nx-timeline, .nx-calendar { display: grid; gap: 10px; }
.nx-timeline-item, .nx-calendar-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #242b35; }
.nx-kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; }
.nx-kanban-column { min-width: 0; background: #0d1218; border: 1px solid #232c37; border-radius: 12px; padding: 12px; display: grid; align-content: start; gap: 10px; }
.nx-kanban-item { background: #161d27; border-radius: 9px; padding: 10px; color: #dce3ec; }
.nx-generated-form { display: grid; gap: 12px; }
.nx-inline-control { display: block; }
.nx-definition-note { color: #74839a; font-size: 12px; line-height: 1.5; margin-bottom: 0; }
.nx-declaration { border-style: dashed; }
@media (max-width: 900px) { .nx-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .desktop { grid-template-columns: 1fr; grid-template-areas: "top" "work" "ask"; } .topbar { grid-template-columns: 1fr auto; } .workspace-title, .sidebar { display: none; } .workspace { padding: 28px 18px; } .asknx { padding: 12px; } .admin-header { align-items: flex-start; gap: 18px; } .nx-timeline-item, .nx-calendar-item { display: grid; gap: 4px; } }
