@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #08090a;
  --panel: #0f1011;
  --surface: #151617;
  --surface-2: #1b1c1e;
  --text: #f7f8f8;
  --body: #c7cbd3;
  --muted: #8a8f98;
  --subtle: #62666d;
  --border: rgba(255,255,255,.08);
  --border-soft: rgba(255,255,255,.05);
  --accent: #7170ff;
  --accent-strong: #828fff;
  --indigo: #5e6ad2;
  --green: #24c78e;
  --amber: #e7af4e;
  --red: #e66b76;
  --radius: 10px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv01', 'ss03';
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -5%, rgba(113,112,255,.09), transparent 33rem), var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; min-height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; background: rgba(15,16,17,.78); border-right: 1px solid var(--border-soft); }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 10px 38px; }
.brand-mark { width: 30px; height: 30px; border: 1px solid rgba(130,143,255,.7); border-radius: 9px; display: grid; place-items: center; color: var(--accent-strong); font-weight: 600; font-size: 14px; position: relative; box-shadow: 0 0 22px rgba(113,112,255,.16); }
.brand-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--green); right: -3px; top: -3px; box-shadow: 0 0 10px rgba(36,199,142,.9); }
.brand-name { font-size: 14px; font-weight: 590; letter-spacing: -.2px; }
.brand-subtitle { color: var(--subtle); font-size: 10px; margin-top: 3px; letter-spacing: .02em; }
.sidebar-label, .eyebrow { color: var(--subtle); font-size: 10px; font-weight: 590; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-label { padding: 0 10px 9px; }
.secondary-label { margin-top: 30px; }
.nav-list { display: grid; gap: 3px; }
.nav-item { width: 100%; border: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; border-radius: 6px; padding: 9px 10px; font-size: 13px; font-weight: 510; display: flex; align-items: center; gap: 10px; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--body); }
.nav-item.active { color: var(--text); background: rgba(113,112,255,.11); border-color: rgba(113,112,255,.2); }
.nav-icon { width: 16px; text-align: center; color: var(--subtle); font-size: 15px; }
.nav-item.active .nav-icon { color: var(--accent-strong); }
.system-mini { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: rgba(255,255,255,.018); }
.mini-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.mini-row strong { margin-left: auto; color: var(--subtle); font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--subtle); }
.status-dot.live { background: var(--green); box-shadow: 0 0 9px rgba(36,199,142,.7); }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 9px rgba(231,175,78,.55); }
.status-dot.error { background: var(--red); box-shadow: 0 0 9px rgba(230,107,118,.55); }
.sidebar-footer { margin-top: auto; color: var(--subtle); font-size: 10px; line-height: 1.8; padding: 16px 10px 0; }
.footer-kicker { color: #747982; font-family: 'JetBrains Mono', monospace; font-size: 9px; margin-bottom: 6px; }
.main-content { width: min(100%, 1440px); margin: 0 auto; padding: 0 48px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--subtle); font-size: 12px; }
.breadcrumbs strong { color: var(--body); font-weight: 510; }
.crumb-separator { color: #37393e; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.live-chip, .panel-status, .job-summary-chip { border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .04em; padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; }
.icon-button, .ghost-button { color: var(--body); background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 6px; }
.icon-button { width: 30px; height: 30px; font-size: 17px; color: var(--muted); }
.icon-button:hover, .ghost-button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #dfe0ff; background: linear-gradient(145deg, #5e6ad2, #37378f); font-size: 11px; font-weight: 590; }
.loading-state, .error-state { padding: 100px 0; text-align: center; color: var(--muted); font-size: 14px; }
.loading-dots { color: var(--accent-strong); animation: pulse 1.2s infinite; }
.error-state { display: grid; gap: 9px; color: var(--red); }
.error-state span { color: var(--muted); font-size: 12px; }
.ghost-button { padding: 7px 11px; justify-self: center; font-size: 12px; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.view { display: none; padding: 54px 0 28px; }
.view.active-view { display: block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: end; padding: 0 0 58px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: .99; letter-spacing: -1.25px; font-weight: 510; margin-top: 15px; }
h1 em { color: var(--accent-strong); font-style: normal; }
h2 { font-size: 20px; font-weight: 510; letter-spacing: -.35px; margin-top: 9px; }
h3 { font-size: 15px; font-weight: 590; letter-spacing: -.12px; }
.hero-copy { max-width: 500px; margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.65; letter-spacing: -.1px; }
.health-card { padding: 19px; border: 1px solid rgba(113,112,255,.22); border-radius: 12px; background: linear-gradient(145deg, rgba(113,112,255,.13), rgba(255,255,255,.025) 72%); box-shadow: inset 0 0 26px rgba(113,112,255,.04); }
.health-top { display: flex; align-items: center; justify-content: space-between; }
.health-label { color: var(--muted); font-size: 11px; }
.health-value { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 23px; font-weight: 510; letter-spacing: -.5px; }
.health-value .status-dot { width: 8px; height: 8px; }
.health-meta { margin-top: 11px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.health-meta code, .mono { font-family: 'JetBrains Mono', monospace; color: #aeb2ff; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 56px; }
.metric { padding: 18px 18px 16px; border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(255,255,255,.018); }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-value { margin-top: 12px; font-size: 28px; line-height: 1; font-weight: 400; letter-spacing: -1px; }
.metric-note { color: var(--subtle); font-size: 10px; margin-top: 9px; }
.section-heading, .page-heading, .panel-header { display: flex; align-items: end; justify-content: space-between; }
.section-heading { margin-bottom: 18px; }
.text-button { border: 0; color: var(--muted); background: transparent; padding: 5px 0; font-size: 11px; }
.text-button:hover { color: var(--accent-strong); }
.lane-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lane-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lane-card { min-height: 200px; padding: 17px; border: 1px solid var(--border-soft); border-radius: 9px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); transition: border-color .18s ease, transform .18s ease; }
.lane-card:hover { border-color: rgba(113,112,255,.35); transform: translateY(-2px); }
.lane-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.lane-icon { color: var(--accent-strong); font-size: 18px; }
.lane-state { border-radius: 999px; padding: 4px 7px; color: var(--green); background: rgba(36,199,142,.09); font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; }
.lane-state.paused { color: var(--amber); background: rgba(231,175,78,.09); }
.lane-label { color: var(--subtle); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; margin-top: 25px; }
.lane-card h3 { font-size: 16px; margin-top: 7px; }
.lane-description { color: var(--muted); font-size: 11px; line-height: 1.55; margin-top: 8px; }
.lane-items { display: grid; gap: 7px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.lane-item-line { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: var(--body); font-size: 11px; }
.lane-item-count { color: var(--subtle); font-family: 'JetBrains Mono', monospace; font-size: 9px; }
.lane-footer { border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 10px; margin-top: 19px; padding-top: 11px; color: var(--subtle); font-size: 10px; }
.lane-footer strong { color: var(--body); font-weight: 510; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 44px; }
.panel { border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(255,255,255,.018); overflow: hidden; }
.panel-header { align-items: center; padding: 17px 18px; border-bottom: 1px solid var(--border-soft); }
.panel-status { color: var(--green); border-color: rgba(36,199,142,.2); }
.system-list, .schedule-list { padding: 7px 18px 12px; }
.system-row, .schedule-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.035); }
.system-row:last-child, .schedule-row:last-child { border-bottom: 0; }
.system-row > span:nth-child(2), .schedule-main { min-width: 0; color: var(--body); font-size: 12px; }
.system-row small, .schedule-meta { color: var(--subtle); font-size: 10px; margin-left: auto; text-align: right; }
.schedule-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-meta { display: grid; gap: 3px; }
.schedule-meta strong { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 400; }
.page-heading { align-items: flex-start; margin-bottom: 30px; }
.page-heading h1 { font-size: 42px; margin-top: 13px; }
.page-heading p { max-width: 540px; color: var(--muted); font-size: 13px; margin-top: 13px; line-height: 1.6; }
.jobs-heading { align-items: end; }
.search-box { min-width: 210px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--subtle); }
.search-box input { width: 100%; outline: 0; border: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box:focus-within { border-color: rgba(113,112,255,.55); box-shadow: 0 0 0 3px rgba(113,112,255,.09); }
.job-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.job-summary-chip strong { color: var(--body); font-weight: 510; margin-left: 3px; }
.jobs-panel { overflow: auto; }
.job-table-wrap { min-width: 800px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 400; letter-spacing: .04em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--border-soft); }
td { padding: 14px 15px; color: var(--muted); font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.035); vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.022); }
.job-name { color: var(--body); font-size: 12px; font-weight: 510; }
.job-id { color: var(--subtle); font-family: 'JetBrains Mono', monospace; font-size: 9px; margin-top: 4px; }
.table-badge { color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 7px; font-size: 9px; white-space: nowrap; }
.table-status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 10px; }
.table-status.paused { color: var(--amber); }
.table-status.error { color: var(--red); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-card { padding: 18px; border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(255,255,255,.018); }
.project-top { display: flex; justify-content: space-between; gap: 12px; }
.project-name { color: var(--body); font-size: 14px; font-weight: 590; }
.project-purpose { color: var(--muted); font-size: 11px; margin-top: 7px; }
.project-path { color: var(--subtle); font-family: 'JetBrains Mono', monospace; font-size: 9px; margin-top: 19px; overflow-wrap: anywhere; }
.project-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--border-soft); margin-top: 16px; padding-top: 11px; color: var(--subtle); font-size: 10px; }
.project-state { color: var(--green); }
.project-state.dirty { color: var(--amber); }
.project-state.missing, .project-state.unavailable { color: var(--red); }
.principle-panel { display: flex; align-items: flex-start; gap: 16px; margin-top: 30px; padding: 21px; }
.principle-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--accent-strong); border: 1px solid rgba(113,112,255,.35); border-radius: 8px; }
.principle-panel h3 { margin-top: 8px; font-size: 16px; }
.principle-panel p { max-width: 660px; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 8px; }
.main-footer { display: flex; justify-content: space-between; padding: 28px 0 22px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; font-size: 9px; }

@media (max-width: 1100px) { .sidebar { width: 215px; flex-basis: 215px; } .main-content { padding: 0 30px; } .hero-row { gap: 30px; } .lane-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .sidebar { width: 58px; flex-basis: 58px; padding: 18px 8px; } .brand-block { padding: 0 6px 30px; } .brand-block > div:last-child, .sidebar-label, .system-mini, .sidebar-footer { display: none; } .nav-item { justify-content: center; padding: 10px 0; } .nav-item { font-size: 0; } .nav-icon { font-size: 16px; } .main-content { padding: 0 20px; } .topbar { height: 62px; } .live-chip { display: none; } .hero-row, .split-grid { grid-template-columns: 1fr; } .health-card { max-width: none; } .metric-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; } .lane-grid-large, .project-grid { grid-template-columns: 1fr; } .page-heading, .jobs-heading { display: block; } .search-box { margin-top: 22px; } }
@media (max-width: 480px) { .view { padding-top: 36px; } .hero-row { padding-bottom: 38px; } h1 { font-size: 40px; } .metric { padding: 14px; } .metric-value { font-size: 24px; } .lane-grid { grid-template-columns: 1fr; } .topbar-actions { gap: 7px; } .breadcrumbs { font-size: 11px; } }
