:root {
  --ink: #252d35;
  --muted: #5d6872;
  --line: #d7dde3;
  --surface: #ffffff;
  --canvas: #f0f2f5;
  --canvas-deep: #e5e9ed;
  --accent: #0b78c9;
  --accent-dark: #086ab8;
  --sidebar-bg: #262f38;
  --sidebar-hover: #333e49;
  --sidebar-text: #e4e8ec;
  --sidebar-muted: #b0bac3;
  --teal: #176b67;
  --teal-dark: #0f4f4c;
  --warn: #8b5f13;
  --danger: #a32929;
  --success: #236a4b;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 2px 8px rgba(23, 37, 42, .06);
  --shadow-focus: 0 0 0 3px rgba(22, 136, 232, .15);
  --z-popover: 10;
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #e4a33b; outline-offset: 2px; }
.app-shell { max-width: 1540px; min-height: 100vh; margin: 0 auto; padding: 28px 38px 72px; }
.app-shell.is-workspace { max-width: none; margin: 0; padding: 0; }
.login-screen { min-height: 78vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(28px, 7vw, 112px); align-items: center; }
.login-copy { max-width: 680px; padding: 32px 0; }
.login-copy h1, .topbar h1 { margin: 8px 0 16px; font: 700 3.15rem/1.05 "Noto Sans SC", "Segoe UI", sans-serif; letter-spacing: 0; text-wrap: balance; }
.login-copy p:last-child { max-width: 42ch; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.kicker, .project-slug { margin: 0; color: var(--accent-dark); font-size: .73rem; font-weight: 800; letter-spacing: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.login-form, .form-panel { display: grid; gap: 10px; padding: 26px; }
.login-form h2, .form-panel h3 { margin: 0 0 12px; font-size: 1.25rem; }
label { color: var(--muted); font-size: .83rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #c4ccd4; border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 10px 12px; transition: border-color .18s ease, box-shadow .18s ease; }
input:hover, select:hover, textarea:hover { border-color: #8598a8; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); outline: 0; }
textarea { resize: vertical; min-height: 62px; }
button { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 15px; font-weight: 750; }
button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary:hover, .quiet:hover { border-color: var(--accent); color: var(--accent-dark); }
.quiet { background: transparent; border-color: var(--line); color: var(--muted); }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--accent-dark); font-size: .86rem; }
.text-button:hover { color: var(--accent-dark); text-decoration: underline; }
.workspace { animation: enter .25s ease-out both; display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; align-items: stretch; background: var(--canvas); }
.workspace-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 20px; width: 232px; height: 100vh; min-height: 0; overflow-y: auto; padding: 22px 14px 18px; background: var(--sidebar-bg); color: var(--sidebar-text); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 8px 18px; border-bottom: 1px solid #46515b; }
.sidebar-brand-mark { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 6px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 850; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { color: #fff; font-size: .94rem; }
.sidebar-brand small { margin-top: 3px; color: var(--sidebar-muted); font-size: .76rem; }
.view-nav { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.nav-group-label { margin: 10px 10px 4px; color: var(--sidebar-muted); font-size: .73rem; font-weight: 700; }
.nav-group-label:first-child { margin-top: 0; }
.nav-tab { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--sidebar-text); padding: 9px 11px; text-align: left; white-space: nowrap; }
.nav-tab:hover { background: var(--sidebar-hover); color: #fff; }
.nav-tab.active { border-color: transparent; background: var(--accent); color: #fff; font-weight: 800; box-shadow: none; }
.nav-icon { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workspace-main { display: grid; grid-template-rows: 64px minmax(0, 1fr); min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 22px; min-width: 0; padding: 0 30px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar .quiet { flex: 0 0 auto; white-space: nowrap; }
.topbar-meta { min-width: 0; }
.workspace-content { min-width: 0; padding: 24px 30px 44px; }
.views-container { width: min(100%, 1500px); margin: 0 auto; }
.topbar-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: .88rem; }
.meta-separator { color: #9aabaa; }
.view { min-width: 0; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; font-size: 1.55rem; line-height: 1.2; text-wrap: balance; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.summary-item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 17px 18px; display: grid; gap: 9px; box-shadow: var(--shadow-sm); }
.summary-item span { color: var(--muted); font-size: .85rem; }
.summary-item strong { font: 700 1.9rem/1 "Segoe UI", sans-serif; }
.summary-item small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 19px; display: grid; gap: 16px; box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.project-card:hover { border-color: #9fbcb7; box-shadow: 0 4px 12px rgba(23, 37, 42, .08); transform: translateY(-1px); }
.project-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.project-card h3 { margin: 6px 0 0; font-size: 1.15rem; line-height: 1.2; }
.project-card dl { display: grid; gap: 9px; margin: 0; }
.project-card dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5ece9; padding-bottom: 7px; }
.project-card dt { color: var(--muted); font-size: .78rem; }
.project-card dd { margin: 0; max-width: 65%; overflow-wrap: anywhere; text-align: right; font-size: .86rem; }
.project-actions { display: flex; gap: 16px; align-items: center; }
.detail-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 12px; }
.detail-toolbar > div { display: grid; gap: 6px; min-width: min(100%, 260px); }
.detail-status { min-height: 24px; color: var(--muted); font-size: .86rem; padding: 4px 0 14px; }
.detail-tabs { display: flex; gap: 4px; align-items: center; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding: 0 2px; }
.detail-tab { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 10px 14px 9px; font-size: .86rem; }
.detail-tab:hover { color: var(--ink); background: #edf6fd; }
.detail-tab.active { border-bottom-color: var(--accent); color: var(--accent-dark); font-weight: 800; }
.detail-workspace { display: grid; gap: 18px; }
.detail-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.detail-overview .detail-section + .detail-section { border-left: 1px solid var(--line); }
.detail-section { min-width: 0; border-bottom: 1px solid var(--line); padding: 18px 0 20px; }
.detail-section > h3 { margin: 0 0 14px; font-size: 1rem; }
.detail-overview .detail-section { border-bottom: 0; padding: 18px; }
.evidence-list { display: grid; gap: 8px; margin: 0; }
.evidence-list div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.evidence-list dt { color: var(--muted); font-size: .8rem; }
.evidence-list dd { margin: 0; max-width: 68%; overflow-wrap: anywhere; text-align: right; font-size: .86rem; }
.detail-table { box-shadow: none; }
.inline-error { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid #dcaeae; border-radius: var(--radius-sm); background: #fff1f1; color: var(--danger); padding: 10px 12px; font-size: .86rem; }
.subsection-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 28px 0 12px; }
.subsection-heading h3 { margin: 0 0 4px; font-size: 1.05rem; }
.subsection-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.task-form, .binding-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; padding: 18px; }
.binding-form { margin-bottom: 18px; }
.task-form > div, .binding-form > div { display: grid; gap: 7px; }
.wide { grid-column: span 2; }
.create-disclosure { position: relative; }
.create-disclosure > summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border-radius: var(--radius-sm); font-weight: 750; list-style: none; cursor: pointer; }
.create-disclosure > summary:focus-visible { outline: 3px solid #e4a33b; outline-offset: 2px; }
.create-disclosure > summary::-webkit-details-marker { display: none; }
.create-disclosure > summary:hover { background: var(--accent-dark); }
.create-disclosure[open] > summary { background: var(--accent-dark); }
.action-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.disclosure-popover { position: absolute; top: calc(100% + 9px); right: 0; z-index: var(--z-popover); width: min(700px, calc(100vw - 32px)); max-height: min(78vh, 720px); overflow-y: auto; }
.project-create .disclosure-popover { width: min(500px, calc(100vw - 32px)); }
.directory-panel { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.directory-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 17px 18px 14px; }
.directory-filters { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: end; gap: 12px; min-width: 0; }
.directory-filters > div { display: grid; flex: 0 1 190px; gap: 6px; min-width: 0; }
.directory-filters .directory-search { flex-basis: 280px; }
.directory-filters input, .directory-filters select { min-height: 40px; }
.directory-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.directory-toolbar-actions > span { color: var(--muted); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-partial { margin: 0; padding: 0 18px 12px; color: #745109; font-size: .84rem; }
.directory-table table { min-width: 760px; }
.endpoint-value { display: block; max-width: 36ch; overflow-wrap: anywhere; white-space: normal; }
.disclosure-popover.panel { border-color: var(--line); box-shadow: 0 5px 14px rgba(25, 36, 48, .16); }
.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-shell.directory-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e3eae7; text-align: left; vertical-align: top; }
th { color: #fff; background: var(--sidebar-bg); font-size: .76rem; font-weight: 700; letter-spacing: 0; position: sticky; top: 0; z-index: 1; }
td { font-size: .88rem; }
tbody tr:nth-child(even) { background: #f7f8fa; }
tbody tr:hover { background: #edf6fd; }
td small { display: block; margin-top: 4px; color: var(--muted); }
code { font-family: Consolas, monospace; font-size: .82em; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.status-active, .status-healthy, .status-accepted, .status-succeeded { background: #dcefe4; color: var(--success); }
.status-unknown, .status-pending, .status-queued, .status-recoverable { background: #f6ebcd; color: var(--warn); }
.status-running { background: #dcecef; color: var(--teal); }
.status-failed, .status-canceled, .status-rejected, .status-error { background: #f8dddd; color: var(--danger); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.filter-row label { display: grid; gap: 6px; }
.filter-row input { min-width: 220px; }
.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 17px; }
.notice.info { color: var(--teal); background: #e1f0ef; }
.notice.success { color: var(--success); background: #e1f0e6; }
.notice.warning { color: var(--warn); background: #fbf0d7; }
.notice.error, .error { color: var(--danger); }
.notice.error { background: #f8dddd; }
.notice.has-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice-action { flex: 0 0 auto; border-color: currentColor; background: #fff; color: inherit; padding: 7px 12px; font-size: .82rem; }
.notice-action:hover { background: #fff; border-color: currentColor; text-decoration: underline; }
.form-message { min-height: 1.25em; margin: 2px 0 0; font-size: .84rem; }
.form-message.success { color: var(--success); }
.loading-bar { height: 3px; margin: -15px 0 15px; background: var(--accent); animation: pulse 1s ease-in-out infinite alternate; }
.empty-state { border: 1px dashed #aebfbd; border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 7px; color: var(--muted); background: rgba(255,255,255,.48); }
.empty-state strong { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -4rem; z-index: 20; padding: 9px 13px; border: 1px solid #a18aff; border-radius: var(--radius-sm); background: #201b39; color: #fff; font-weight: 800; text-decoration: none; transition: top .18s ease; }
.skip-link:focus { top: 16px; outline: 3px solid #c6b7ff; outline-offset: 2px; }
.loading-state { grid-column: 1 / -1; min-height: 92px; display: grid; place-items: center start; padding: 18px; border: 1px dashed #56526f; border-radius: var(--radius); color: var(--muted); background: #11131f; font-size: .86rem; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }
@media (max-width: 1100px) { .app-shell:not(.is-workspace) { padding-inline: 24px; } .workspace { grid-template-columns: 208px minmax(0, 1fr); } .workspace-sidebar { width: 208px; } .workspace-content { padding-inline: 24px; } .topbar { padding-inline: 24px; } .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .login-screen, .content-grid { grid-template-columns: 1fr; } .login-screen { align-content: center; min-height: 100svh; gap: 32px; } .login-copy { padding-top: 0; } .login-brand { margin-bottom: 36px; } .login-signal { margin-top: 28px; } .task-form, .binding-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .login-copy h1 { font-size: 2.45rem; } .workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; } .workspace-sidebar { position: static; width: 100%; height: auto; min-height: 0; gap: 8px; padding: 10px 14px; } .sidebar-brand { display: none; } .view-nav { flex: 0 0 auto; flex-direction: row; align-items: center; overflow-x: auto; gap: 5px; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #8799a9 transparent; } .nav-group-label { display: none; } .nav-tab { flex: 0 0 auto; width: auto; min-height: 42px; text-align: center; } .workspace-main { grid-template-rows: 60px minmax(0, 1fr); } .workspace-content { padding-block: 20px 36px; } }
@media (max-width: 680px) {
  .detail-overview { grid-template-columns: 1fr; }
  .detail-overview .detail-section + .detail-section { border-left: 0; border-top: 1px solid var(--line); }
  .table-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .table-shell table { display: block; min-width: 0; }
  .table-shell thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .table-shell tbody { display: grid; gap: 10px; }
  .table-shell tbody tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 3px 12px; }
  .table-shell tbody tr:hover { background: var(--surface); }
  .table-shell td { display: grid; grid-template-columns: minmax(5.5rem, 32%) minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #e3eae7; padding: 10px 0; overflow-wrap: anywhere; }
  .table-shell td:last-child { border-bottom: 0; }
  .table-shell td::before { content: attr(data-label); color: var(--muted); font-size: .74rem; font-weight: 700; }
  .inline-error { align-items: start; flex-wrap: wrap; }
}
@media (max-width: 760px) { .task-toolbar { align-items: stretch; flex-direction: column; } .task-filter-fields > div, .task-filter-fields .task-filter-search { flex: 1 1 200px; } .task-toolbar-actions { justify-content: space-between; } }
@media (max-width: 760px) { .directory-toolbar { align-items: stretch; flex-direction: column; } .directory-filters > div, .directory-filters .directory-search { flex: 1 1 200px; } .directory-toolbar-actions { justify-content: space-between; } }
@media (max-width: 680px) {
  .workspace-sidebar { padding: 8px; }
  .nav-tab { padding-inline: 10px; }
  .workspace-content { padding: 16px 14px 32px; }
  .topbar { padding-inline: 14px; }
  .directory-panel { border: 0; background: transparent; }
  .directory-toolbar { padding: 14px 0; }
  .directory-table { border-top: 1px solid var(--line); }
  .directory-table .empty-state { border: 1px dashed #aeb8c2; background: var(--surface); }
  .task-partial { padding-inline: 0; }
  .directory-table table { min-width: 0; }
}
@media (max-width: 560px) { .app-shell:not(.is-workspace) { padding: 12px 14px 28px; } .login-screen { gap: 22px; padding-block: 3vh; } .login-brand { margin-bottom: 28px; } .login-signal { margin-top: 22px; padding: 14px 16px; } .topbar { gap: 8px; } .topbar-meta { flex-wrap: wrap; gap: 4px 7px; font-size: .79rem; } .section-heading, .subsection-heading { align-items: start; flex-direction: column; } .section-actions { width: 100%; justify-content: space-between; } .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .summary-item { padding: 13px; } .summary-item strong { font-size: 1.6rem; } .project-grid { grid-template-columns: 1fr; } .task-form, .binding-form { grid-template-columns: 1fr; } .wide { grid-column: auto; } .filter-row { align-items: stretch; flex-direction: column; } .filter-row input { min-width: 0; } .project-actions { flex-wrap: wrap; gap: 12px; } .detail-toolbar { display: grid; } .detail-toolbar > div { min-width: 0; } .detail-tabs { margin-inline: -2px; } .detail-tab { padding-inline: 11px; } .disclosure-popover { position: static; width: min(100%, calc(100vw - 40px)); max-height: none; margin-top: 10px; } .project-create .disclosure-popover { width: min(100%, calc(100vw - 40px)); } }
@media (pointer: coarse) { .nav-tab, .detail-tab, .table-shell .text-button, .evidence-retry, .notice-action { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* The control room uses the reference's luminous accents without borrowing its
   marketing layout. Operational surfaces stay dense and state-first. */
:root {
  --ink: #f3f4fc;
  --muted: #aeb5ce;
  --line: #34384f;
  --surface: #151723;
  --canvas: #090a10;
  --canvas-deep: #10111b;
  --accent: #7860db;
  --accent-dark: #a18aff;
  --sidebar-bg: #0d0e18;
  --sidebar-hover: #202136;
  --sidebar-text: #e8e8f3;
  --sidebar-muted: #a3a8bf;
  --teal: #7ad9cd;
  --teal-dark: #55bbab;
  --warn: #f0c47b;
  --danger: #ff8790;
  --success: #79dbad;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
  --shadow-focus: 0 0 0 3px rgba(161, 138, 255, .2);
  font-family: "Segoe UI Variable", "PingFang SC", "Noto Sans SC", sans-serif;
  color-scheme: dark;
}
body { background: var(--canvas); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.create-disclosure > summary:focus-visible { outline-color: #c6b7ff; }
.kicker, .project-slug { color: #c2b4ff; }
.panel, .summary-item, .project-card, .directory-panel, .table-shell, .detail-overview,
.filter-row { background: var(--surface); box-shadow: none; }
input, select, textarea { background: #0e1019; border-color: #45495f; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #929ab5; }
input:hover, select:hover, textarea:hover { border-color: #8a84b4; }
input:focus, select:focus, textarea:focus { border-color: #a18aff; }
button { color: var(--ink); }
.primary { background: #7860db; color: #fff; }
.primary:hover, .create-disclosure > summary:hover, .create-disclosure[open] > summary { background: #977ff1; }
.secondary, .quiet { background: #1b1d2d; border-color: #45495f; color: #e5e5f2; }
.secondary:hover, .quiet:hover { border-color: #a18aff; color: #fff; background: #28243d; }
.text-button { color: #c2b4ff; }
.text-button:hover { color: #fff; }
.workspace { background: var(--canvas); }
.workspace-sidebar { background: #0e0f19; border-right: 1px solid #292c3e; }
.sidebar-brand { border-bottom-color: #303247; }
.sidebar-brand-mark { background: #7960df; color: #fff; border-radius: 7px; box-shadow: 0 0 18px rgba(121, 96, 223, .25); }
.view-nav { gap: 5px; }
.nav-group-label { color: #939bb5; }
.nav-tab { color: #d0d3e6; border-radius: 7px; }
.nav-tab:hover { background: #25243a; }
.nav-tab.active { background: var(--accent); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid #303247; padding: 15px 10px 2px; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: .76rem; color: #eeeefa; }
.sidebar-footer small { margin-top: 3px; font-size: .68rem; color: var(--muted); }
.live-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 11px rgba(121, 219, 173, .65); }
.workspace-main { grid-template-rows: 72px minmax(0, 1fr); }
.topbar { padding-inline: 32px; background: #10111c; border-bottom-color: #303247; }
.topbar-context { display: flex; align-items: center; gap: 11px; }
.topbar-context strong, .topbar-context span { display: block; }
.topbar-context strong { font-size: .83rem; color: #f1f0fa; }
.topbar-context span { margin-top: 3px; font-size: .7rem; color: var(--muted); }
.context-mark { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #6a609c; border-radius: 7px; color: #c2b4ff; font-size: 1.3rem; }
.topbar-meta { margin-left: auto; font-size: .78rem; }
.workspace-content { background: #090a10; padding: 28px 32px 46px; }
.section-heading { border-bottom-color: #303247; }
.section-heading h2 { color: #fff; }
.summary-item { position: relative; min-height: 126px; border-color: #34384f; box-shadow: none; }
.summary-item span { color: #c7cbe0; }
.summary-item strong { color: #fff; }
.summary-item small { color: #aeb5ce; }
.project-card { border-color: #34384f; background: #151723; box-shadow: none; }
.project-card:hover { border-color: #806dd0; box-shadow: 0 4px 12px rgba(0,0,0,.24); }
.project-card h3, .detail-section > h3, .subsection-heading h3 { color: #fff; }
.project-card dl div, th, td { border-bottom-color: #34384f; }
.project-card dd, .evidence-list dd, td { color: #e5e6f2; }
.detail-tab:hover { color: #fff; background: #24243b; }
.detail-tab.active { color: #c2b4ff; }
.detail-overview, .directory-panel, .table-shell { border-color: #34384f; }
.disclosure-popover.panel { background: #1b1c2b; border-color: #56526f; box-shadow: 0 8px 14px rgba(0,0,0,.3); }
th { color: #c9cce0; background: #202132; }
tbody tr:nth-child(even) { background: #191a29; }
tbody tr:hover { background: #25233a; }
code { color: #c8bcff; }
.status-active, .status-healthy, .status-accepted, .status-succeeded { background: #17382d; color: #a0edc5; }
.status-unknown, .status-pending, .status-queued, .status-recoverable { background: #3b311e; color: #f0c47b; }
.status-running { background: #183b39; color: #96e8df; }
.status-failed, .status-canceled, .status-rejected, .status-error { background: #431f2c; color: #ff9da7; }
.notice.info { color: #a7e8df; background: #16312f; }
.notice.success { color: #a0edc5; background: #17382d; }
.notice.warning { color: #f0c47b; background: #3b311e; }
.notice.error, .inline-error { color: #ffabb4; background: #3a1d29; border-color: #75434f; }
.notice-action { background: #25233a; }
.empty-state { background: #11131f; border-color: #65617f; }
.empty-state strong { color: #fff; }
.form-message.success { color: #a0edc5; }
.loading-bar { background: #977ff1; }

/* Login is the only spacious, illustrative state; the authenticated UI stays utilitarian. */
.login-screen { position: relative; min-height: 100vh; padding: 8vh clamp(16px, 5vw, 80px); overflow: hidden; }
.login-screen::before { content: ""; position: absolute; left: -7%; right: 12%; bottom: -20%; height: 42%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, rgba(169, 130, 255, .38), rgba(82, 50, 169, .08) 36%, transparent 70%); filter: blur(24px); pointer-events: none; }
.login-copy, .login-form { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 55px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { color: #fff; font-size: .78rem; letter-spacing: .12em; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.login-copy h1 { color: #fff; }
.login-copy > p:not(.kicker) { max-width: 42ch; color: #c0c4da; font-size: 1.05rem; line-height: 1.7; }
.login-signal { display: flex; align-items: center; gap: 18px; margin-top: 48px; max-width: 430px; padding: 17px 19px; border: 1px solid #575078; border-radius: var(--radius); background: #161522; }
.signal-orbit { position: relative; flex: 0 0 51px; width: 51px; height: 51px; border: 1px solid #a18aff; border-radius: 50%; box-shadow: 0 0 18px rgba(161,138,255,.25); }
.signal-orbit::before, .signal-orbit::after { content: ""; position: absolute; inset: 9px 0; border: 1px solid #7860db; border-radius: 50%; transform: rotate(60deg); }
.signal-orbit::after { transform: rotate(-60deg); }
.signal-orbit span, .signal-orbit i, .signal-orbit b { position: absolute; display: block; width: 5px; height: 5px; border-radius: 50%; background: #c2b4ff; box-shadow: 0 0 8px #c2b4ff; }
.signal-orbit span { top: -2px; left: 22px; }.signal-orbit i { right: 1px; bottom: 11px; }.signal-orbit b { left: 3px; bottom: 10px; }
.signal-copy strong, .signal-copy span { display: block; }
.signal-copy strong { color: #fff; font-size: .88rem; }
.signal-copy span { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.login-form { border-color: #575078; background: #171826; }
.login-form::before { content: "SECURE ACCESS"; display: block; color: #c2b4ff; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }

.overview-banner { display: grid; grid-template-columns: minmax(0, 1fr) 230px auto; gap: 25px; align-items: center; min-height: 170px; margin-bottom: 19px; padding: 25px 27px; border: 1px solid #4d4275; border-radius: var(--radius); background: linear-gradient(105deg, #241b47, #171725 56%, #132429); }
.banner-label { color: #c2b4ff; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.overview-banner h3 { max-width: 25ch; margin: 11px 0 7px; color: #fff; font-size: 1.4rem; line-height: 1.18; }
.overview-banner p { max-width: 50ch; margin: 0; color: #c1c5da; font-size: .8rem; line-height: 1.55; }
.banner-chart { position: relative; display: flex; align-items: end; gap: 8px; height: 83px; padding: 0 8px 9px; border-bottom: 1px solid #8075ae; }
.banner-chart span { display: block; width: 20px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #c0abff, #6954b3); }
.banner-chart span:nth-child(1) { height: 32%; }.banner-chart span:nth-child(2) { height: 53%; }.banner-chart span:nth-child(3) { height: 45%; }.banner-chart span:nth-child(4) { height: 76%; }.banner-chart span:nth-child(5) { height: 63%; }.banner-chart span:nth-child(6) { height: 90%; }
.banner-chart i { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #79dbad; box-shadow: 0 0 10px #79dbad; }
.banner-status { display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; align-items: center; min-width: 108px; }
.banner-status strong { color: #fff; font-size: .78rem; }.banner-status small { grid-column: 2; color: #b1b9cb; font-size: .68rem; }

@media (max-width: 1100px) { .overview-banner { grid-template-columns: 1fr 190px; }.banner-status { display: none; } }
@media (max-width: 900px) { .workspace-sidebar { background: #0e0f19; }.sidebar-footer, .topbar-context { display: none; }.topbar-meta { margin-left: 0; } }
@media (max-width: 680px) { .overview-banner { grid-template-columns: 1fr; }.banner-chart { width: min(100%, 230px); }.banner-status { display: grid; }.table-shell tbody tr, .directory-panel { background: var(--surface); }.table-shell tbody tr:hover { background: #25233a; }.directory-table .empty-state { background: #11131f; } }
@media (max-width: 560px) { .login-screen { padding: 5vh 0; }.login-brand { margin-bottom: 38px; }.login-signal { margin-top: 30px; }.overview-banner { padding: 20px; }.topbar { padding-inline: 14px; } }

/* Final visual pass: preserve the reference's luminous finance language while
   keeping every authenticated surface dense enough for repeated operations. */
body {
  background-color: var(--canvas);
  background-image: radial-gradient(circle at 78% -12%, rgba(111, 82, 205, .14), transparent 32rem),
    radial-gradient(circle at 10% 110%, rgba(35, 124, 147, .08), transparent 28rem);
}
.workspace-sidebar {
  box-shadow: 12px 0 32px rgba(0, 0, 0, .15);
}
.workspace-content {
  background-image: radial-gradient(circle at 92% 0%, rgba(122, 92, 225, .08), transparent 30rem);
}
.nav-tab.active {
  box-shadow: inset 3px 0 0 #c8b8ff, 0 8px 22px rgba(85, 60, 165, .22);
}
.summary-item {
  overflow: hidden;
  isolation: isolate;
}
.summary-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #8d74ed, transparent 76%);
}
.summary-item:nth-child(2)::before { background: linear-gradient(90deg, #68d7bd, transparent 76%); }
.summary-item:nth-child(3)::before { background: linear-gradient(90deg, #f0c47b, transparent 76%); }
.summary-item:nth-child(4)::before { background: linear-gradient(90deg, #70b8ff, transparent 76%); }
.project-card, .detail-overview, .directory-panel, .table-shell, .filter-row, .panel {
  background-image: linear-gradient(140deg, rgba(255, 255, 255, .025), transparent 42%);
}
.project-card-head { align-items: center; }
.project-card .status-pill { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 18px rgba(121, 219, 173, .08); }
.table-shell { border-color: #3b3f57; }
th { background: linear-gradient(90deg, #202132, #24243a); }
.directory-toolbar { background: rgba(24, 25, 39, .72); }
.task-partial { color: var(--warn); }
.login-form { box-shadow: 0 22px 70px rgba(0, 0, 0, .34), 0 0 0 1px rgba(161, 138, 255, .08); }
.login-form button.primary { box-shadow: 0 9px 24px rgba(120, 96, 219, .3); }
.login-signal { box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.create-disclosure > summary:focus-visible { box-shadow: 0 0 0 3px rgba(198, 183, 255, .24); }
@media (max-width: 900px) {
  .workspace-sidebar { box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
  .view-nav { mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
}
@media (max-width: 560px) {
  .login-copy h1 { font-size: clamp(2.25rem, 12vw, 3rem); }
  .login-form { padding: 22px; }
  .summary-item { min-height: 118px; }
  .summary-item strong { font-size: 1.7rem; }
  .project-card { padding: 16px; }
}
@media (max-width: 680px) {
  .view-nav { flex-wrap: wrap; overflow: visible; mask-image: none; padding-bottom: 0; }
  .nav-tab { flex: 1 1 calc(33.333% - 5px); justify-content: center; }
}
@media (max-width: 560px) and (max-height: 760px) {
  .login-screen { align-content: start; min-height: auto; gap: 18px; padding-block: 16px 24px; }
  .login-brand { margin-bottom: 20px; }
  .login-signal { display: none; }
  .login-copy h1 { margin-bottom: 10px; font-size: 2.2rem; }
  .login-copy > p:not(.kicker) { font-size: .92rem; line-height: 1.45; }
  .login-form { gap: 6px; padding: 12px; }
  .login-form h2 { margin-bottom: 2px; }
  .login-form input { padding-block: 7px; }
  .login-form button { padding-block: 8px; }
}
