:root {
  --bg: #f6f7f7;
  --panel: #ffffff;
  --sidebar: #142b3a;
  --text: #183142;
  --muted: #687983;
  --line: #dfe5e7;
  --line-soft: #edf0f1;
  --purple: #07858d;
  --purple-dark: #066e75;
  --green: #168a76;
  --gold: #f2bd3d;
  --coral: #ef755d;
  --shadow: 0 1px 2px rgba(24, 49, 66, .04), 0 5px 16px rgba(24, 49, 66, .045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--bg); background-image: radial-gradient(circle at 1px 1px, rgba(20, 43, 58, .032) 1px, transparent 0); background-size: 22px 22px; color: var(--text); font-family: "Source Sans 3", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.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; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; color: #aeb2ba; background: var(--sidebar); border-right: 1px solid #22262c; }
.brand { height: 74px; display: flex; align-items: center; gap: 11px; padding: 0 24px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.brand-mark { position: relative; width: 25px; height: 25px; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 3px; transform: rotate(0deg); }
.brand-mark i { display: block; border-radius: 3px 7px 3px 7px; background: #8a6ff0; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: #6752d6; }
.brand-mark i:nth-child(2) { border-radius: 7px 3px 7px 3px; }
.brand-mark i:nth-child(3) { border-radius: 7px 3px 7px 3px; }

.primary-nav { padding: 17px 13px; }
.nav-label { margin: 0 11px 8px; color: #696f79; font-size: 10px; line-height: 1; letter-spacing: 1.3px; font-weight: 700; text-transform: uppercase; }
.nav-label-spaced { margin-top: 30px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 11px; margin-bottom: 3px; border-radius: 7px; color: #959ba5; text-decoration: none; font-size: 13.5px; font-weight: 500; transition: .18s ease; }
.nav-item:hover { color: #e7e8ec; background: #181c21; }
.nav-item.active { color: #fff; background: #20242b; }
.nav-item.active:before { position: absolute; content: ""; left: -13px; top: 9px; width: 3px; height: 25px; border-radius: 0 4px 4px 0; background: #8067e5; }
.nav-item svg { width: 19px; height: 19px; }
.nav-count { margin-left: auto; min-width: 23px; padding: 2px 7px; color: #989da6; background: #2b3037; border-radius: 10px; font-size: 11px; text-align: center; }
.sidebar-footer { margin-top: auto; padding: 19px 20px 17px; border-top: 1px solid #252930; }
.usage-head { display: flex; justify-content: space-between; font-size: 11px; color: #858b95; }
.usage-head strong { color: #b7bbc3; font-weight: 500; }
.usage-track { height: 4px; margin: 9px 0 8px; overflow: hidden; border-radius: 4px; background: #30343b; }
.usage-track span { display: block; width: 68%; height: 100%; background: #7660dc; border-radius: inherit; }
.sidebar-footer > p { margin: 0 0 20px; font-size: 10.5px; color: #676d76; }
.profile { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; color: #fff; text-align: left; border: 0; background: transparent; cursor: pointer; }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #7c68db, #49399c); font-size: 11px; font-weight: 600; }
.profile > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.profile strong { font-size: 11.5px; font-weight: 600; }
.profile small { overflow: hidden; color: #707680; font-size: 9.5px; text-overflow: ellipsis; }
.profile svg { width: 17px; color: #686e77; fill: currentColor; stroke: none; }

.main-content { min-height: 100vh; margin-left: 244px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: flex-end; padding: 0 36px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.icon-button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 0; border-radius: 7px; cursor: pointer; transition: .18s; }
.icon-button:hover { background: #f1f2f5; }
.icon-button svg { width: 19px; height: 19px; }
.notification-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: #ef5b69; }
.docs-button { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12px; font-weight: 500; cursor: pointer; }
.docs-button:hover { background: #fafafa; border-color: #d9dbe0; }
.docs-button svg { width: 15px; height: 15px; color: #7c828e; }

.page { width: min(1460px, calc(100% - 72px)); margin: 0 auto; padding: 40px 0 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #787e89; font-size: 9.5px; font-weight: 700; letter-spacing: 1.35px; }
.eyebrow span { width: 6px; height: 6px; border: 1.5px solid var(--purple); border-radius: 2px; transform: rotate(45deg); }
h1 { margin: 0 0 7px; font-size: 28px; line-height: 1.25; letter-spacing: -.75px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; color: #fff; border: 0; border-radius: 7px; background: var(--purple); box-shadow: 0 2px 5px rgba(90,63,191,.2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .18s; }
.primary-button:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(90,63,191,.22); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 17px; height: 17px; stroke-width: 2; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { min-height: 92px; display: flex; align-items: center; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.stat-icon { flex: none; display: grid; place-items: center; width: 39px; height: 39px; margin-right: 13px; border-radius: 9px; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.purple { color: #6950d5; background: #f0ecfd; }
.stat-icon.green { color: #19895d; background: #e8f7f0; }
.stat-icon.amber { color: #bd7623; background: #fdf3e5; }
.stat-copy { display: flex; flex-direction: column; gap: 2px; }
.stat-copy small { color: #858b94; font-size: 10.5px; }
.stat-copy strong { font-size: 20px; line-height: 1.25; letter-spacing: -.4px; }
.trend, .live-label { margin-left: auto; align-self: flex-end; margin-bottom: 5px; padding: 3px 7px; border-radius: 10px; font-size: 9.5px; font-weight: 600; }
.trend.up { color: #128159; background: #edf8f3; }
.live-label { display: flex; align-items: center; gap: 5px; color: #18835b; background: #edf8f3; }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: #25a673; box-shadow: 0 0 0 3px rgba(37,166,115,.12); }

.data-panel { position: relative; overflow: visible; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.table-toolbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; width: 300px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; color: #8c929d; transform: translateY(-50%); }
.search-wrap input { width: 100%; height: 36px; padding: 0 48px 0 35px; color: #333741; outline: 0; border: 1px solid #dedfe4; border-radius: 7px; background: #fff; font-size: 11.5px; transition: .18s; }
.search-wrap input::placeholder { color: #a1a5ad; }
.search-wrap input:focus { border-color: #9887e4; box-shadow: 0 0 0 3px rgba(109,82,223,.09); }
.search-wrap kbd { position: absolute; right: 8px; top: 8px; height: 20px; display: flex; align-items: center; padding: 0 5px; color: #9b9fa7; border: 1px solid #e5e6e9; border-radius: 4px; background: #fafafa; font-family: inherit; font-size: 9px; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; }
.secondary-button { height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; color: #565c66; border: 1px solid #dedfe3; border-radius: 7px; background: #fff; font-size: 11.5px; font-weight: 500; cursor: pointer; }
.secondary-button:hover { background: #f8f8fa; border-color: #d2d4da; }
.secondary-button svg { width: 16px; height: 16px; }
.bordered { width: 35px; height: 35px; color: #656b76; border: 1px solid #dedfe3; }
.filter-wrap { position: relative; }
.filter-badge { display: grid; place-items: center; width: 16px; height: 16px; color: #fff; border-radius: 50%; background: var(--purple); font-size: 9px; }
.filter-menu { position: absolute; z-index: 8; top: 42px; right: 0; width: 175px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(22,25,31,.14); }
.filter-menu button { width: 100%; display: flex; justify-content: space-between; padding: 8px 9px; border: 0; border-radius: 5px; background: transparent; color: #555b66; text-align: left; font-size: 11.5px; cursor: pointer; }
.filter-menu button:hover, .filter-menu button.selected { color: #4f3abb; background: #f4f1ff; }
.filter-menu span { color: #999da6; }

.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
th { height: 41px; padding: 0 15px; color: #858a94; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 9.5px; font-weight: 700; letter-spacing: .7px; text-align: left; text-transform: uppercase; }
th:nth-child(1) { width: 27%; padding-left: 20px; }
th:nth-child(2) { width: 18%; }
th:nth-child(3) { width: 20%; }
th:nth-child(4) { width: 14%; }
th:nth-child(5) { width: 12%; }
th:nth-child(6) { width: 4%; }
td { height: 80px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
td:first-child { padding-left: 20px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fbfbfd; }
tbody tr:last-child td { border-bottom: 0; }
.prompt-cell { min-width: 0; display: flex; align-items: center; gap: 11px; }
.prompt-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.prompt-icon.violet { color: #6348cf; background: #eeeafd; }
.prompt-icon.sky { color: #337eb6; background: #e8f5fc; }
.prompt-icon.mint { color: #2a8a6c; background: #e8f7f1; }
.prompt-icon.amber { color: #b47124; background: #fcf1df; }
.prompt-icon.coral { color: #bd5e58; background: #fbeceb; }
.prompt-icon.blue { color: #4b68bc; background: #eaf0fc; }
.prompt-cell > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.prompt-cell strong { overflow: hidden; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.prompt-cell code { overflow: hidden; max-width: 290px; color: #90949d; font-family: "DM Mono", monospace; font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chips span, .chips em { padding: 3px 6px; color: #666b75; border: 1px solid #e2e3e7; border-radius: 4px; background: #f8f8fa; font-family: "DM Mono", monospace; font-size: 8.5px; font-style: normal; }
.chips em { color: #7b68ce; border-color: #e3ddfa; background: #f5f2ff; }
.storage-link { min-width: 0; display: flex; align-items: center; gap: 7px; color: #555b65; text-decoration: none; font-family: "DM Mono", monospace; font-size: 9px; }
.storage-link > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.storage-link > svg { flex: none; width: 13px; height: 13px; color: #999da5; opacity: 0; transition: .15s; }
.storage-link:hover { color: #5740c0; }
.storage-link:hover svg { opacity: 1; }
.storage-icon { flex: none; display: grid; place-items: center; width: 27px; height: 24px; border-radius: 5px; font-family: "DM Sans", sans-serif; font-size: 7.5px; font-weight: 700; }
.storage-icon.s3 { color: #a14d70; background: #f8eaf0; }
.storage-icon.gcs { color: #3579b2; background: #e9f3fb; }
.storage-icon.az { color: #267bad; background: #e6f4fb; }
.storage-icon.hf { color: #986c13; background: #fcf3d9; }
.size-cell { display: flex; align-items: center; gap: 11px; }
.size-cell > span { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.size-cell strong { font-size: 10.5px; font-weight: 600; }
.size-cell small { color: #989ca5; font-size: 8.5px; }
.mini-progress { width: 36px; height: 3px; overflow: hidden; border-radius: 3px; background: #eeeef1; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: #8b78dc; }
.status-pill { width: 80px; height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; border-radius: 13px; font-size: 9px; font-weight: 600; cursor: pointer; transition: .15s; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; }
.status-pill.active { color: #16825a; border: 1px solid #caebdd; background: #eff9f4; }
.status-pill.active i { background: #22a16f; box-shadow: 0 0 0 3px rgba(34,161,111,.1); animation: pulse 2s infinite; }
.status-pill.inactive { color: #777d86; border: 1px solid #e1e3e6; background: #f6f7f8; }
.status-pill.inactive i { background: #a5a9b0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(34,161,111,.02); } }
.row-menu { width: 30px; height: 28px; padding: 0 0 7px; border: 0; border-radius: 5px; background: transparent; color: #979ba3; font-size: 14px; letter-spacing: 1px; cursor: pointer; }
.row-menu:hover { color: #4e535c; background: #eff0f2; }
.clickable-row { cursor: pointer; }
.clickable-row:focus { outline: 2px solid rgba(109,82,223,.35); outline-offset: -2px; }
.empty-state { height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #989da7; }
.empty-state[hidden] { display: none; }
.blank-detail .empty-state { min-height: 420px; }
.blank-detail .empty-state .primary-button { margin-top: 18px; text-decoration: none; }
.empty-state div { margin-bottom: 8px; font-size: 30px; }
.empty-state strong { color: #555b65; font-size: 13px; }
.empty-state p { margin: 5px 0 0; font-size: 11px; }
.table-footer { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #8b9099; border-top: 1px solid var(--line); font-size: 10px; }
.table-footer strong { color: #555b65; font-weight: 500; }
.pagination { display: flex; align-items: center; gap: 3px; }
.pagination button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: #6e737d; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 10px; cursor: pointer; }
.pagination button:hover:not(:disabled), .pagination button.current { color: #5239bb; border-color: #ddd8f3; background: #f5f3fc; }
.pagination button:disabled { color: #c8cad0; cursor: default; }
.pagination svg { width: 14px; height: 14px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11,14,18,.48); backdrop-filter: blur(3px); }
.modal-backdrop[hidden], .filter-menu[hidden] { display: none; }
.modal { position: relative; width: min(500px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.25); animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-close { position: absolute; top: 15px; right: 16px; width: 30px; height: 30px; color: #818690; border: 0; border-radius: 6px; background: transparent; font-size: 22px; cursor: pointer; }
.modal-close:hover { background: #f1f2f4; }
.modal-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; color: #634acb; border-radius: 9px; background: #f0ecfd; }
.modal-icon svg { width: 19px; }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal > p { margin: 0 0 23px; color: #818690; font-size: 12px; }
.modal form { display: flex; flex-direction: column; gap: 15px; }
.modal label { display: flex; flex: 1; flex-direction: column; gap: 7px; color: #555b65; font-size: 11px; font-weight: 600; }
.modal input, .modal textarea, .modal select { width: 100%; outline: 0; border: 1px solid #dddfe4; border-radius: 7px; color: #333842; background: #fff; font-size: 11.5px; font-weight: 400; }
.modal input, .modal select { height: 39px; padding: 0 11px; }
.modal textarea { height: 78px; padding: 10px 11px; resize: vertical; }
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: #9887e4; box-shadow: 0 0 0 3px rgba(109,82,223,.08); }
.form-row { display: flex; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.modal-actions button { min-width: 80px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 25px; display: flex; align-items: center; gap: 9px; padding: 11px 16px; color: #fff; border-radius: 8px; background: #1d2127; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 11.5px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast span { display: grid; place-items: center; width: 18px; height: 18px; color: #1d2127; border-radius: 50%; background: #61d09e; font-size: 10px; font-weight: 700; }

/* Run detail dashboard */
.detail-topbar { justify-content: space-between; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-right: auto; color: #8b9099; font-size: 11px; }
.breadcrumbs a { color: #686e78; text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs svg { width: 12px; height: 12px; }
.detail-page { padding-top: 31px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.detail-title-wrap { display: flex; align-items: center; gap: 12px; }
.back-button { display: grid; place-items: center; width: 32px; height: 32px; margin-right: 2px; color: #727883; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.back-button:hover { color: #4e39b4; border-color: #d9d2f5; }
.back-button svg { width: 17px; height: 17px; }
.detail-title-icon { width: 42px; height: 42px; border-radius: 9px; font-size: 13px; }
.detail-title-line { display: flex; align-items: center; gap: 10px; }
.detail-title-line h1 { margin: 0; font-size: 22px; }
.detail-title-wrap p { margin: 4px 0 0; color: #8a8f99; font-size: 10.5px; }
.detail-title-wrap p span { margin: 0 4px; }
.detail-actions { display: flex; align-items: center; gap: 8px; }
.detail-actions .secondary-button svg { width: 15px; }
.pause-button { min-width: 108px; }
.detail-actions > .bordered { font-size: 13px; letter-spacing: 1px; padding-bottom: 6px; }
.run-overview { display: grid; grid-template-columns: minmax(340px, 1.05fr) minmax(500px, 1.45fr); gap: 14px; margin-bottom: 14px; }
.summary-card { min-height: 142px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.summary-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: #7e848e; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.summary-label button { display: flex; align-items: center; gap: 5px; padding: 0; color: #898e98; border: 0; background: transparent; font-size: 9px; text-transform: none; cursor: pointer; }
.summary-label button:hover { color: var(--purple); }
.summary-label svg { width: 13px; height: 13px; }
.prompt-summary > code { display: block; color: #444a54; font-family: "DM Mono", monospace; font-size: 9.5px; line-height: 1.65; }
.detail-chips { margin-top: 15px; }
.run-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.metric { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 19px; border-right: 1px solid var(--line-soft); }
.metric:last-child { border: 0; }
.metric > small { margin-bottom: 9px; color: #8c919b; font-size: 9px; }
.metric > strong { margin-bottom: 4px; font-size: 16px; letter-spacing: -.2px; }
.metric > span { color: #989da6; font-size: 8.5px; }
.metric .positive { color: #21875f; }
.metric > a { min-width: 0; display: flex; align-items: center; gap: 6px; color: #555b65; text-decoration: none; font-family: "DM Mono", monospace; font-size: 8px; }
.metric > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric > a svg { flex: none; width: 12px; height: 12px; }
.metric .storage-icon { flex: none; }
.mechanism-card { display: flex; align-items: stretch; justify-content: space-between; gap: 22px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.mechanism-heading { min-width: 235px; display: flex; align-items: center; gap: 11px; }
.mechanism-icon { flex: none; display: grid; place-items: center; width: 35px; height: 35px; color: #5944bd; border-radius: 8px; background: #efecfb; }
.mechanism-icon svg { width: 18px; height: 18px; }
.mechanism-heading h2, .dataset-header h2 { margin: 0 0 3px; font-size: 12px; }
.mechanism-heading p, .dataset-header p { margin: 0; color: #969aa3; font-size: 9.5px; }
.health { display: flex; align-items: center; gap: 5px; margin-left: 7px; padding: 3px 7px; color: #21815d; border-radius: 10px; background: #edf8f3; font-size: 8px; white-space: nowrap; }
.health i { width: 5px; height: 5px; border-radius: 50%; background: #27a674; }
.mechanism-links { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); max-width: 770px; }
.mechanism-links > a { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 4px 16px; border-left: 1px solid var(--line-soft); text-decoration: none; }
.mechanism-links > a:hover strong { color: var(--purple); }
.mechanism-links > a > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.mechanism-links small { color: #969ba4; font-size: 8px; }
.mechanism-links strong { overflow: hidden; color: #555b64; font-family: "DM Mono", monospace; font-size: 8.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; transition: color .15s; }
.mechanism-links > a > svg { flex: none; width: 12px; height: 12px; color: #989da6; }
.link-icon { flex: none; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; }
.link-icon svg { width: 15px; height: 15px; }
.link-icon.github { color: #454b55; background: #f0f1f3; }
.link-icon.code { color: #5d49c0; background: #f0edfc; }
.link-icon.logs { color: #267c65; background: #eaf7f2; }
.dataset-panel { overflow: hidden; }
.dataset-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dataset-actions { display: flex; align-items: center; gap: 8px; }
.dataset-actions .search-wrap { width: 220px; }
.dataset-actions .secondary-button svg { width: 14px; height: 14px; }
.entries-table { min-width: 1220px; }
.entries-table th:nth-child(1) { width: 12%; padding-left: 19px; }
.entries-table th:nth-child(2) { width: 24%; }
.entries-table th:nth-child(3) { width: 23%; }
.entries-table th:nth-child(4) { width: 13%; }
.entries-table th:nth-child(5) { width: 10%; }
.entries-table th:nth-child(6) { width: 10%; }
.entries-table th:nth-child(7) { width: 4%; }
.entries-table td { height: 68px; }
.entries-table td:first-child { padding-left: 19px; }
.entry-id { color: #5c49bb; font-family: "DM Mono", monospace; font-size: 8.5px; text-decoration: none; }
.entry-id:hover { text-decoration: underline; }
.output-cell { display: flex; align-items: center; gap: 9px; }
.entry-visual { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.8); border-radius: 6px; font-family: "DM Mono", monospace; font-size: 8px; font-weight: 600; }
.entry-visual:after { position: absolute; content: ""; width: 23px; height: 23px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.entry-visual.text, .entry-visual.code, .entry-visual.document { color: #6758ac; background: #f0edfa !important; }
.entry-visual.text:after, .entry-visual.code:after, .entry-visual.document:after { display: none; }
.visual-1 { background: linear-gradient(145deg,#d98c76,#744f82); }.visual-2 { background: linear-gradient(145deg,#7db7c2,#395f8d); }.visual-3 { background: linear-gradient(145deg,#d8b26b,#907044); }.visual-4 { background: linear-gradient(145deg,#9c90c7,#584786); }.visual-5 { background: linear-gradient(145deg,#68aa8f,#366a68); }.visual-6 { background: linear-gradient(145deg,#cd8ba5,#805674); }
.output-cell > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.output-cell strong { overflow: hidden; max-width: 220px; color: #4e545e; font-size: 9.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.output-cell small { color: #9b9fa7; font-size: 7.5px; }
.variable-preview { display: flex; align-items: center; gap: 5px; }
.variable-preview > span { min-width: 0; max-width: 92px; display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; border: 1px solid #e4e5e8; border-radius: 4px; background: #fafafa; color: #5d626c; font-family: "DM Mono", monospace; font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variable-preview small { color: #9b9fa7; font-size: 6.5px; }
.variable-preview em { color: #8172c8; font-size: 8px; font-style: normal; }
.model-name, .collected-time { color: #686e78; font-size: 9px; }
.quality { display: flex; align-items: center; gap: 8px; }
.quality strong { width: 18px; color: #4f555f; font-size: 9px; font-weight: 500; }
.quality > span { width: 39px; height: 3px; overflow: hidden; border-radius: 3px; background: #ededef; }
.quality i { display: block; height: 100%; border-radius: inherit; background: #6eb494; }
.page-buttons { display: flex; gap: 3px; }
.page-buttons i { width: 20px; display: grid; place-items: center; color: #9b9fa6; font-style: normal; font-size: 9px; }

/* W&B-inspired visual system: deep ink, warm gold, and data teal */
.sidebar { color: #a9bac3; border-right-color: #213d4d; box-shadow: 4px 0 18px rgba(11, 38, 54, .08); }
.brand { height: 70px; font-size: 19px; letter-spacing: -.45px; }
.brand-mark { gap: 2px; transform: rotate(-4deg); }
.brand-mark i { border-radius: 2px 6px 2px 6px; background: var(--gold); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: #20a6ad; }
.brand-mark i:nth-child(4) { background: #ee745c; }
.nav-label { color: #66808f; }
.nav-item { color: #9fb1bb; border-radius: 5px; }
.nav-item:hover { color: #eef6f7; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: rgba(32,166,173,.16); }
.nav-item.active:before { width: 4px; background: var(--gold); }
.nav-count { color: #b9c9d0; background: rgba(255,255,255,.09); }
.sidebar-footer { border-top-color: #274353; }
.usage-track { height: 5px; background: #294554; }
.usage-track span { background: linear-gradient(90deg, var(--gold), #f0ce70); }
.avatar { color: #153042; background: linear-gradient(145deg, #f6ce65, var(--gold)); }
.profile small { color: #748e9c; }
.profile svg { color: #78909d; }
.topbar { height: 60px; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(24,49,66,.03); }
.icon-button, .docs-button, .primary-button, .secondary-button, .search-wrap input { border-radius: 5px; }
.icon-button:hover { color: #087c84; background: #eaf5f5; }
.notification-dot { background: var(--coral); }
.docs-button { color: #49606e; border-color: #d5dfe2; box-shadow: 0 1px 1px rgba(24,49,66,.03); }
.docs-button:hover { color: #0a747b; background: #f1f8f8; border-color: #b9d9da; }
.page { padding-top: 36px; }
h1 { color: #152f40; font-weight: 600; letter-spacing: -.65px; }
.eyebrow { color: #65808e; }
.eyebrow span { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 7px 0 0 #19a1a9; transform: none; }
.primary-button { color: #fff; background: #07858d; box-shadow: 0 1px 2px rgba(5,91,97,.24); }
.primary-button:hover { background: #066e75; box-shadow: 0 3px 8px rgba(5,91,97,.2); }
.secondary-button { color: #415a68; border-color: #d5dfe2; box-shadow: 0 1px 1px rgba(24,49,66,.025); }
.secondary-button:hover { color: #087a81; background: #f0f8f8; border-color: #b8d7d9; }
.stats-grid { gap: 12px; }
.stat-card, .data-panel, .summary-card, .mechanism-card { border-color: #dce3e5; border-radius: 6px; box-shadow: var(--shadow); }
.stat-card { position: relative; overflow: hidden; }
.stat-card:before { position: absolute; content: ""; inset: 0 auto 0 0; width: 3px; background: #15a0a7; }
.stat-card:nth-child(2):before { background: var(--gold); }
.stat-card:nth-child(3):before { background: var(--coral); }
.stat-icon { border-radius: 5px; }
.stat-icon.purple { color: #087f87; background: #e4f3f3; }
.stat-icon.green { color: #b07c09; background: #fff4d6; }
.stat-icon.amber { color: #cb604c; background: #feebe7; }
.stat-copy small { color: #738590; }
.stat-copy strong { color: #183142; font-weight: 600; }
.trend.up, .live-label { color: #0c7668; background: #e7f5f1; }
.live-label i { background: #10a68d; box-shadow: 0 0 0 3px rgba(16,166,141,.12); }
.table-toolbar { background: #fff; }
.search-wrap input { color: #233f50; border-color: #d5dfe2; }
.search-wrap input:focus, .modal input:focus, .modal textarea:focus, .modal select:focus { border-color: #55b2b6; box-shadow: 0 0 0 3px rgba(7,133,141,.1); }
.search-wrap kbd { color: #6f828d; border-color: #dce4e6; background: #f5f7f7; }
.filter-badge { background: #07858d; }
.filter-menu { border-radius: 5px; box-shadow: 0 10px 28px rgba(20,43,58,.16); }
.filter-menu button:hover, .filter-menu button.selected { color: #08777e; background: #eaf5f5; }
th { color: #617783; background: #f1f5f5; border-bottom-color: #d8e2e4; font-weight: 600; }
tbody tr:hover { background: #f3f9f9; box-shadow: inset 3px 0 #24a2a8; }
.prompt-icon { border-radius: 5px; }
.prompt-icon.violet { color: #087c84; background: #e2f2f2; }
.prompt-icon.sky { color: #2f718b; background: #e5f1f5; }
.prompt-icon.mint { color: #147c6c; background: #e4f3ee; }
.prompt-icon.amber { color: #a56e00; background: #fff2ce; }
.prompt-icon.coral { color: #bd5744; background: #fce9e5; }
.prompt-icon.blue { color: #476c8e; background: #e8eff4; }
.prompt-cell strong { color: #1c3747; }
.prompt-cell code, .prompt-summary > code, .storage-link, .metric > a, .mechanism-links strong, .entry-id, .variable-preview > span { font-family: "Roboto Mono", monospace; }
.chips span, .chips em { color: #526b78; border-color: #d9e3e5; border-radius: 3px; background: #f3f6f6; font-family: "Roboto Mono", monospace; }
.chips em { color: #087a81; border-color: #c8e1e2; background: #eaf5f5; }
.storage-link:hover, .breadcrumbs a:hover { color: #087e85; }
.storage-icon { border-radius: 4px; font-family: "Source Sans 3", sans-serif; }
.mini-progress { height: 4px; background: #e1e7e8; }
.mini-progress i { background: linear-gradient(90deg, #0f969e, #f0bd3f); }
.status-pill { border-radius: 4px; }
.status-pill.active { color: #087569; border-color: #b9dfd7; background: #e8f6f2; }
.status-pill.active i { background: #0ba087; box-shadow: 0 0 0 3px rgba(11,160,135,.1); }
.status-pill.inactive { color: #697a83; border-color: #d9e0e2; background: #f1f4f4; }
.row-menu:hover { color: #08777e; background: #e5f2f2; }
.clickable-row:focus { outline-color: rgba(7,133,141,.45); }
.pagination button { border-radius: 3px; }
.pagination button:hover:not(:disabled), .pagination button.current { color: #08767d; border-color: #badbdc; background: #eaf5f5; }
.modal { border-radius: 7px; }
.modal-icon { color: #087d84; border-radius: 5px; background: #e4f3f3; }
.toast { background: #152f40; border-radius: 5px; }
.toast span { color: #153042; background: var(--gold); }
.back-button { border-radius: 5px; }
.back-button:hover { color: #087a81; border-color: #b8d8d9; background: #f0f8f8; }
.detail-title-icon { border-radius: 6px; }
.summary-label { color: #667e8b; }
.summary-label button:hover { color: #07858d; }
.metric .positive { color: #087568; }
.mechanism-icon { color: #087d84; border-radius: 5px; background: #e5f3f3; }
.health { color: #0a7568; border-radius: 4px; background: #e8f5f1; }
.health i { background: #0aa086; }
.mechanism-links > a:hover strong { color: #087e85; }
.link-icon { border-radius: 4px; }
.link-icon.code { color: #087c84; background: #e5f3f3; }
.link-icon.logs { color: #a27309; background: #fff3d2; }
.entry-id { color: #087c84; }
.entry-visual { border-radius: 4px; }
.entry-visual.text, .entry-visual.code, .entry-visual.document { color: #087a81; background: #e6f3f3 !important; }
.variable-preview > span { border-color: #dae4e6; border-radius: 3px; background: #f4f7f7; }
.variable-preview em { color: #098089; }
.quality i { background: linear-gradient(90deg, #13a088, #56b9a7); }
.visual-1 { background: linear-gradient(145deg,#ef8a66,#b64f52); }.visual-2 { background: linear-gradient(145deg,#35a8af,#176b83); }.visual-3 { background: linear-gradient(145deg,#f3ca5c,#b17f1b); }.visual-4 { background: linear-gradient(145deg,#5a9dac,#274e69); }.visual-5 { background: linear-gradient(145deg,#3db39b,#187468); }.visual-6 { background: linear-gradient(145deg,#ef876d,#c5546b); }

@media (max-width: 1120px) {
  .sidebar { width: 214px; }
  .main-content { margin-left: 214px; }
  .page { width: calc(100% - 44px); }
  .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stat-card { padding: 15px; }
}

@media (max-width: 1120px) {
  .run-overview { grid-template-columns: 1fr; }
  .mechanism-card { align-items: flex-start; flex-direction: column; }
  .mechanism-links { width: 100%; max-width: none; }
  .mechanism-links > a:first-child { border-left: 0; }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 40px rgba(0,0,0,.2); }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open:after { position: fixed; z-index: 15; content: ""; inset: 0; background: rgba(0,0,0,.35); }
  .main-content { margin-left: 0; }
  .topbar { justify-content: space-between; padding: 0 20px; }
  .mobile-brand { display: flex; align-items: center; gap: 12px; }
  .mobile-brand .brand-mark { width: 22px; height: 22px; }
  .menu-button { display: grid; }
  .page { width: calc(100% - 32px); padding-top: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .detail-topbar .breadcrumbs { display: none; }
  .detail-heading { align-items: flex-start; gap: 16px; }
  .detail-title-wrap { align-items: flex-start; }
  .detail-title-icon, .back-button { display: none; }
  .detail-title-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .detail-actions .secondary-button, .detail-actions > .bordered { display: none; }
  .run-metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .mechanism-links { grid-template-columns: 1fr; }
  .mechanism-links > a { padding: 10px 4px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .dataset-header { height: auto; align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px; }
  .dataset-actions, .dataset-actions .search-wrap { width: 100%; }
  .dataset-actions .secondary-button { flex: none; }
  .stat-card { min-height: 78px; }
}

@media (max-width: 560px) {
  .page-heading { align-items: flex-start; gap: 20px; }
  .page-heading p { max-width: 240px; }
  .primary-button { padding: 0 12px; white-space: nowrap; }
  .page-heading .primary-button svg { display: none; }
  .table-toolbar { align-items: stretch; height: auto; gap: 10px; padding: 12px; }
  .search-wrap { width: 100%; }
  .search-wrap kbd { display: none; }
  .search-wrap input { padding-right: 10px; }
  .toolbar-actions { flex: none; }
  .stats-grid { gap: 9px; }
  .form-row { flex-direction: column; }
  .modal { padding: 22px; }
}

/* =====================================================================
   Live API-backed dashboard — states, progress, statuses, launch & detail
   ===================================================================== */

/* ---- generic loading / error / empty states (accessible) ---- */
.spinner { width: 18px; height: 18px; border: 2px solid #dce5e7; border-top-color: #07858d; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #7a8b95; font-size: 12px; }
.loading-state strong { color: #556a75; font-weight: 500; }
.error-state { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #8a5a52; text-align: center; padding: 20px; }
.error-state[hidden] { display: none; }
.error-state svg { width: 26px; height: 26px; color: #c9614f; }
.error-state strong { color: #7a463c; font-size: 13px; }
.error-state p { margin: 4px 0 0; color: #9b7a74; font-size: 11px; max-width: 340px; }
.error-banner { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 11px 14px; color: #8a3f32; border: 1px solid #f0cfc6; border-radius: 7px; background: #fdf1ec; font-size: 12px; }
.error-banner[hidden] { display: none; }
.error-banner svg { flex: none; width: 17px; height: 17px; color: #d05742; }
.error-retry { margin-left: auto; padding: 5px 12px; color: #fff; border: 0; border-radius: 5px; background: #c15c48; font-size: 11px; font-weight: 600; cursor: pointer; }
.error-retry:hover { background: #ad4c39; }

/* ---- status pills: draft / queued / running / completed / failed ---- */
.status-pill { width: 88px; height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; font-size: 9px; font-weight: 600; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; }
.status-pill.draft { color: #695b88; border: 1px solid #d9d0ea; background: #f5f2fa; }
.status-pill.draft i { background: #8d78b5; }
.status-pill.queued { color: #5a7b8a; border: 1px solid #cfe0e5; background: #f0f6f8; }
.status-pill.queued i { background: #8aaab6; }
.status-pill.running { color: #087569; border: 1px solid #b9dfd7; background: #e8f6f2; }
.status-pill.running i { background: #0ba087; box-shadow: 0 0 0 3px rgba(11,160,135,.12); animation: pulse 1.6s infinite; }
.status-pill.completed { color: #0f7a56; border: 1px solid #bde0d0; background: #e9f6ef; }
.status-pill.completed i { background: #1ea472; }
.status-pill.failed { color: #a4432f; border: 1px solid #f0c4b9; background: #fcebe6; }
.status-pill.failed i { background: #d05b40; }

/* ---- table cells ---- */
.rec-count { display: flex; flex-direction: column; gap: 2px; }
.rec-count strong { font-size: 11.5px; font-weight: 600; }
.rec-count small, .storage-val, .updated-at, .model-name { color: #6d7f89; font-size: 9.5px; }
.storage-val { font-family: "Roboto Mono", monospace; }
.model-name { font-family: "Roboto Mono", monospace; }
.progress-cell { display: flex; align-items: center; gap: 9px; }
.progress-cell small { width: 34px; color: #8b929b; font-size: 9px; text-align: right; }
.progress-track { width: 110px; height: 6px; overflow: hidden; border-radius: 3px; background: #e5eaec; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f969e, #f0bd3f); transition: width .4s ease; }
.error-note { min-width: 0; display: flex; align-items: center; gap: 6px; color: #b04d39; }
.error-note svg { flex: none; width: 13px; height: 13px; }
.error-note span { overflow: hidden; max-width: 170px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.error-note.none { color: #c3c9cd; }

/* ---- launch page ---- */
.launch-form { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }
.launch-card { padding: 22px 24px; border: 1px solid #dce3e5; border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.launch-card h2 { margin: 0 0 18px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #667e8b; }
.launch-card label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.launch-card label:last-child { margin-bottom: 0; }
.field-label { color: #435b68; font-size: 12px; font-weight: 600; }
.field-label .req { color: #d05b40; font-style: normal; }
.field-hint { color: #98a2aa; font-size: 10.5px; }
.field-hint code { color: #087a81; font-family: "Roboto Mono", monospace; background: #eaf5f5; padding: 1px 4px; border-radius: 3px; }
.launch-card input, .launch-card textarea, .launch-card select { width: 100%; outline: 0; border: 1px solid #d5dfe2; border-radius: 6px; color: #233f50; background: #fff; font-size: 12.5px; font-weight: 400; }
.launch-card input, .launch-card select { height: 40px; padding: 0 12px; }
.launch-card textarea { padding: 10px 12px; resize: vertical; font-family: "Roboto Mono", monospace; font-size: 11.5px; }
.launch-card input:focus, .launch-card textarea:focus, .launch-card select:focus { border-color: #55b2b6; box-shadow: 0 0 0 3px rgba(7,133,141,.1); }
.launch-actions { display: flex; align-items: center; gap: 14px; }
.launch-actions .primary-button { min-width: 130px; }
.launch-actions .primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.launch-status { color: #667e8b; font-size: 11.5px; }

/* ---- detail page ---- */
.detail-loading { height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #7a8b95; font-size: 12px; }
.detail-loading strong { color: #556a75; font-weight: 500; }
.detail-title-line h1 { font-size: 22px; }
.error-section { align-items: flex-start; }
.error-section pre { margin: 0; color: #a13f2b; font-family: "Roboto Mono", monospace; font-size: 10.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.error-log { flex: 1; }
.error-section .mechanism-icon { color: #c05a44; background: #fcebe6; }
.run-metrics { list-style: none; margin: 0; padding: 0; }
.records-summary { color: #667e8b; font-size: 11px; font-weight: 600; }
.record-word { color: #2c4a5a; font-family: "Roboto Mono", monospace; font-size: 11px; }
.antonym { color: #0a7568; font-family: "Roboto Mono", monospace; font-size: 11px; font-weight: 500; }
.output-cell .entry-visual { width: 30px; height: 30px; }
.record-status { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; font-size: 10px; font-weight: 700; }
.record-status.ok { color: #0f7a56; background: #e9f6ef; }
.record-status.fail { color: #a4432f; background: #fcebe6; }
.record-error { display: block; margin-top: 3px; overflow: hidden; max-width: 200px; color: #c0553f; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-body { padding: 16px 18px; }
.artifact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.artifact-card { padding: 15px 16px; border: 1px solid #dce3e5; border-radius: 7px; background: #fbfcfc; }
.artifact-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.artifact-top strong { overflow: hidden; font-size: 12px; color: #1c3747; text-overflow: ellipsis; white-space: nowrap; }
.artifact-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: #087d84; border-radius: 5px; background: #e4f3f3; font-size: 8px; font-weight: 700; letter-spacing: .5px; }
.artifact-meta { display: grid; grid-template-columns: 76px 1fr; gap: 5px 10px; margin: 0; }
.artifact-meta dt { color: #98a2aa; font-size: 9px; }
.artifact-meta dd { overflow: hidden; margin: 0; color: #526b78; font-family: "Roboto Mono", monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state.compact { height: 120px; }
.provenance-panel { margin-bottom: 14px; }
.provenance-badge { padding: 4px 7px; border: 1px solid #a9d7d8; border-radius: 4px; color: #087d84; background: #eef8f8; font-family: "Roboto Mono", monospace; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.provenance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; }
.provenance-card { min-width: 0; padding: 15px 16px; border: 1px solid #dce3e5; border-radius: 7px; background: #fbfcfc; }
.provenance-card h3 { margin: 0 0 12px; color: #1c3747; font-size: 11px; letter-spacing: .35px; text-transform: uppercase; }
.provenance-meta { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.provenance-meta dt { color: #8b9aa2; font-size: 9.5px; }
.provenance-meta dd { min-width: 0; overflow-wrap: anywhere; margin: 0; color: #3c5664; font-size: 10px; }
.provenance-meta dd.mono { font-family: "Roboto Mono", monospace; font-size: 9px; }
.provenance-meta a { color: #087d84; text-decoration: none; }
.provenance-meta a:hover { text-decoration: underline; }
.event-log-panel { margin: 0 18px 16px; border: 1px solid #dce3e5; border-radius: 7px; background: #fbfcfc; }
.event-log-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; color: #435b68; cursor: pointer; font-size: 10.5px; font-weight: 600; }
.event-log-panel summary span { color: #8b9aa2; font-family: "Roboto Mono", monospace; font-size: 8.5px; font-weight: 400; }
.event-list { max-height: 420px; overflow: auto; border-top: 1px solid #e5eaec; }
.event-row { display: grid; grid-template-columns: 130px 64px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-bottom: 1px solid #edf0f1; font-size: 9px; }
.event-row:last-child { border-bottom: 0; }
.event-row time { color: #8b9aa2; font-family: "Roboto Mono", monospace; }
.event-type { align-self: start; padding: 2px 5px; border-radius: 3px; color: #087d84; background: #eaf5f5; font-family: "Roboto Mono", monospace; text-align: center; }
.event-row strong { display: block; color: #435b68; font-weight: 500; }
.event-row code { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #778891; font-family: "Roboto Mono", monospace; font-size: 8px; }
.event-empty { margin: 0; padding: 18px; color: #8b9aa2; font-size: 10px; text-align: center; }
@media (max-width: 820px) {
  .artifact-grid, .provenance-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Ensure author display rules never override the `hidden` attribute. */
.loading-state[hidden], .detail-loading[hidden], .error-section[hidden], .provenance-panel[hidden] { display: none !important; }

/* =====================================================================
   Run detail refinement — quieter, denser, and intentionally utilitarian
   ===================================================================== */
body:has(.detail-page) {
  background: #f7f8f8;
  background-image: none;
  color: #162d3a;
}
body:has(.detail-page) .sidebar {
  width: 224px;
  color: #9db0ba;
  background: #102936;
  border-right: 0;
  box-shadow: none;
}
body:has(.detail-page) .main-content { margin-left: 224px; }
body:has(.detail-page) .brand { height: 64px; padding: 0 22px; font-size: 17px; }
body:has(.detail-page) .brand-mark { width: 22px; height: 22px; }
body:has(.detail-page) .primary-nav { padding: 22px 10px; }
body:has(.detail-page) .nav-label { margin: 0 12px 12px; color: #68818d; letter-spacing: 1.5px; }
body:has(.detail-page) .nav-item { height: 40px; padding: 0 12px; margin: 1px 0; border-radius: 4px; font-size: 13px; }
body:has(.detail-page) .nav-item:hover { background: rgba(255,255,255,.045); }
body:has(.detail-page) .nav-item.active { background: rgba(255,255,255,.07); }
body:has(.detail-page) .sidebar-footer { padding-inline: 18px; }

.detail-topbar {
  position: sticky;
  z-index: 12;
  top: 0;
  height: 58px;
  padding: 0 32px;
  background: rgba(255,255,255,.94);
  border-bottom-color: #dde3e5;
  backdrop-filter: blur(14px);
}
.detail-topbar .breadcrumbs { gap: 9px; color: #7b8b93; font-size: 11px; }
.detail-topbar .breadcrumbs svg { width: 12px; height: 12px; color: #b4bec3; }
.detail-topbar .breadcrumbs span { overflow: hidden; max-width: 480px; color: #5e717b; text-overflow: ellipsis; white-space: nowrap; }
.detail-topbar .docs-button { height: 32px; border-color: #d7dfe2; border-radius: 5px; box-shadow: none; }

.detail-page { width: min(1160px, calc(100% - 64px)); padding: 34px 0 72px; }
.detail-heading { align-items: flex-start; margin-bottom: 26px; }
.detail-title-wrap { align-items: flex-start; gap: 14px; }
.detail-title-copy { min-width: 0; padding-top: 1px; }
.detail-title-line { align-items: center; gap: 12px; }
.detail-title-line h1 { max-width: 720px; color: #142f3e; font-size: 25px; font-weight: 650; line-height: 1.15; letter-spacing: -.55px; }
.detail-title-copy > p { margin: 8px 0 0; color: #74858e; font-size: 11px; }
.detail-title-copy > p > span { margin: 0 5px; }
.detail-title-copy > p > span:first-child { color: #425e6c; font-family: "Roboto Mono", monospace; font-size: 10px; }
.back-button { width: 32px; height: 32px; margin-top: 2px; border-color: #d8e0e2; background: #fff; }
.detail-title-icon {
  width: 36px;
  height: 36px;
  margin-top: 0;
  color: #246b72 !important;
  border: 1px solid #cfe0e2;
  border-radius: 4px;
  background: #eef5f5 !important;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: .3px;
}
.detail-actions { padding-top: 2px; }
.detail-actions .secondary-button { height: 33px; color: #244957; border-color: #cfdadd; border-radius: 5px; text-decoration: none; }

.status-pill { width: auto; min-width: 70px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 9px; letter-spacing: .15px; }
.status-pill.draft { color: #665773; border-color: #ddd5e2; background: #f5f2f6; }

.run-overview { grid-template-columns: minmax(0, 1.12fr) minmax(500px, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid #d9e1e3; border-radius: 6px; background: #d9e1e3; }
.summary-card { min-height: 132px; padding: 20px; border: 0; border-radius: 0; box-shadow: none; }
.summary-label { margin-bottom: 12px; color: #72858f; font-size: 9px; letter-spacing: 1.15px; }
.prompt-summary > code { color: #284552; font-size: 10px; line-height: 1.7; }
.detail-chips { margin-top: 14px; gap: 5px; }
.detail-chips span, .detail-chips em { padding: 3px 6px; color: #536d78; border: 0; border-radius: 3px; background: #eff3f3; font-size: 8px; }
.detail-chips em { color: #176e74; background: #e8f3f2; }
.metric { padding: 20px 18px; }
.metric > small { margin-bottom: 12px; color: #7f9098; font-size: 9px; }
.metric > strong { color: #183746; font-size: 19px; font-weight: 600; }
.metric > span { color: #98a5ab; font-size: 8.5px; }

.data-panel, .mechanism-card { border-color: #d9e1e3; border-radius: 6px; box-shadow: 0 1px 2px rgba(18,46,60,.025); }
.provenance-panel { margin-bottom: 18px; }
.dataset-header { height: 66px; padding: 0 18px; border-bottom-color: #e0e6e8; }
.dataset-header h2 { margin-bottom: 3px; color: #1b3847; font-size: 12.5px; font-weight: 650; }
.dataset-header p { color: #89989f; font-size: 9.5px; }
.provenance-badge { padding: 3px 6px; color: #51717c; border-color: #d2dfe2; background: #f7f9f9; letter-spacing: 1px; }
.provenance-grid { gap: 0; padding: 0; }
.provenance-card { padding: 20px 18px 22px; border: 0; border-radius: 0; background: #fff; }
.provenance-card + .provenance-card { border-left: 1px solid #e2e7e9; }
.provenance-card h3 { margin-bottom: 15px; color: #506873; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.provenance-meta { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 14px; }
.provenance-meta dt { color: #8a9aa1; font-size: 9px; }
.provenance-meta dd { color: #3b5663; font-size: 9.5px; line-height: 1.35; }
.provenance-meta dd.mono { font-size: 8.5px; }
.provenance-meta a { color: #087880; }
.event-log-panel { margin: 0; border: 0; border-top: 1px solid #e0e6e8; border-radius: 0; background: #fff; }
.event-log-panel summary { padding: 12px 18px; font-size: 10px; }

.dataset-panel { margin-bottom: 18px; }
.records-summary { color: #54707c; font-family: "Roboto Mono", monospace; font-size: 9px; font-weight: 500; }
.entries-table { min-width: 760px; }
.entries-table th:nth-child(1) { width: 10%; }
.entries-table th:nth-child(2) { width: 27%; }
.entries-table th:nth-child(3) { width: 27%; }
.entries-table th:nth-child(4) { width: 18%; }
.entries-table th:nth-child(5) { width: 18%; }
.entries-table th { height: 39px; color: #697f89; background: #f3f6f6; font-size: 8px; letter-spacing: 1px; }
.entries-table td { height: 62px; }
.entries-table tbody tr:hover { background: #f7fafa; box-shadow: inset 2px 0 #36969b; }
.empty-state { height: 220px; }
.empty-state div { color: #a8b5ba; font-size: 24px; }
.empty-state strong { color: #506974; font-size: 12px; font-weight: 600; }
.empty-state p { color: #92a0a7; font-size: 10px; }
.artifact-body { padding: 0; }
.artifact-grid { gap: 0; }
.artifact-card { border: 0; border-bottom: 1px solid #e3e8ea; border-radius: 0; background: #fff; }

@media (max-width: 1120px) {
  body:has(.detail-page) .sidebar { width: 204px; }
  body:has(.detail-page) .main-content { margin-left: 204px; }
  .detail-page { width: calc(100% - 44px); }
  .run-overview { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body:has(.detail-page) .sidebar { width: 224px; }
  body:has(.detail-page) .main-content { margin-left: 0; }
  .detail-page { width: calc(100% - 32px); padding-top: 24px; }
  .detail-title-line h1 { font-size: 21px; }
  .provenance-card + .provenance-card { border-top: 1px solid #e2e7e9; border-left: 0; }
}

/* =====================================================================
   Run index refinement — matches the detail view's operational density
   ===================================================================== */
.runs-page {
  background: #f7f8f8;
  background-image: none;
  color: #162d3a;
}
.runs-page .sidebar {
  width: 224px;
  color: #9db0ba;
  background: #102936;
  border-right: 0;
  box-shadow: none;
}
.runs-page .main-content { margin-left: 224px; }
.runs-page .brand { height: 64px; padding: 0 22px; font-size: 17px; }
.runs-page .brand-mark { width: 22px; height: 22px; }
.runs-page .primary-nav { padding: 22px 10px; }
.runs-page .nav-label { margin: 0 12px 12px; color: #68818d; letter-spacing: 1.5px; }
.runs-page .nav-item { height: 40px; padding: 0 12px; margin: 1px 0; border-radius: 4px; font-size: 13px; }
.runs-page .nav-item:hover { background: rgba(255,255,255,.045); }
.runs-page .nav-item.active { background: rgba(255,255,255,.07); }
.runs-page .sidebar-footer { padding-inline: 18px; }
.runs-page .topbar {
  position: sticky;
  z-index: 12;
  top: 0;
  height: 58px;
  padding: 0 32px;
  background: rgba(255,255,255,.94);
  border-bottom-color: #dde3e5;
  backdrop-filter: blur(14px);
}
.runs-page .docs-button { height: 32px; border-color: #d7dfe2; border-radius: 5px; box-shadow: none; }
.runs-page .page { width: min(1160px, calc(100% - 64px)); padding: 34px 0 72px; }
.runs-page .page-heading { align-items: flex-start; margin-bottom: 26px; }
.runs-page .eyebrow { margin-bottom: 8px; color: #72858f; font-size: 9px; letter-spacing: 1.45px; }
.runs-page .eyebrow span { width: 5px; height: 5px; border: 0; border-radius: 50%; background: #dcae35; transform: none; }
.runs-page .page-heading h1 { margin-bottom: 7px; color: #142f3e; font-size: 25px; font-weight: 650; letter-spacing: -.55px; }
.runs-page .page-heading p { color: #74858e; font-size: 12px; }
.runs-page .primary-button { height: 34px; padding: 0 14px; border-radius: 5px; box-shadow: none; font-size: 11.5px; }
.runs-page .primary-button:hover { transform: none; box-shadow: none; }

.runs-page .stats-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #d9e1e3;
  border-radius: 6px;
  background: #d9e1e3;
}
.runs-page .stat-card { min-height: 94px; padding: 18px 20px; border: 0; border-radius: 0; box-shadow: none; }
.runs-page .stat-card:before { display: none; }
.runs-page .stat-icon { width: 32px; height: 32px; margin-right: 12px; border-radius: 4px; }
.runs-page .stat-icon svg { width: 17px; height: 17px; }
.runs-page .stat-copy { gap: 3px; }
.runs-page .stat-copy small { color: #7f9098; font-size: 9.5px; }
.runs-page .stat-copy strong { color: #183746; font-size: 19px; font-weight: 600; }

.runs-page .data-panel { overflow: hidden; border-color: #d9e1e3; border-radius: 6px; box-shadow: 0 1px 2px rgba(18,46,60,.025); }
.runs-page .table-toolbar { height: 62px; padding: 0 16px; border-bottom-color: #e0e6e8; }
.runs-page .search-wrap { width: 280px; }
.runs-page .search-wrap input { height: 33px; border-color: #d7e0e2; border-radius: 5px; background: #fff; font-size: 10.5px; }
.runs-page .secondary-button { height: 33px; border-color: #d7e0e2; border-radius: 5px; color: #3e5c69; }
.runs-page table { min-width: 920px; table-layout: fixed; }
.runs-page th { height: 39px; color: #697f89; background: #f3f6f6; font-size: 8px; letter-spacing: 1px; }
.runs-page th:nth-child(1) { width: 24%; }
.runs-page th:nth-child(2) { width: 16%; }
.runs-page th:nth-child(3) { width: 8%; }
.runs-page th:nth-child(4) { width: 16%; }
.runs-page th:nth-child(5) { width: 8%; }
.runs-page th:nth-child(6) { width: 10%; }
.runs-page th:nth-child(7) { width: 11%; }
.runs-page th:nth-child(8) { width: 7%; }
.runs-page td { height: 72px; padding: 10px 12px; }
.runs-page td:first-child, .runs-page th:first-child { padding-left: 18px; }
.runs-page tbody tr:hover { background: #f7fafa; box-shadow: inset 2px 0 #36969b; }
.runs-page .prompt-cell { gap: 10px; }
.runs-page .prompt-icon { width: 30px; height: 30px; border-radius: 4px; font-family: "Roboto Mono", monospace; font-size: 8.5px; }
.runs-page .prompt-cell strong { font-size: 10.5px; }
.runs-page .prompt-cell code { max-width: 220px; color: #88979e; font-size: 7.5px; }
.runs-page .model-name { display: block; overflow-wrap: anywhere; color: #58707b; font-size: 8.5px; line-height: 1.55; }
.runs-page .rec-count strong { color: #294754; font-size: 11px; }
.runs-page .rec-count small { font-size: 8.5px; }
.runs-page .progress-track { width: min(100%, 92px); height: 5px; }
.runs-page .progress-fill { background: #27999a; }
.runs-page .progress-cell small { width: 26px; font-size: 8px; }
.runs-page .storage-val { color: #58707b; font-size: 8.5px; }
.runs-page .status-pill { min-width: 0; height: 21px; padding: 0 8px; font-size: 8px; }
.runs-page .updated-at { display: block; color: #71858f; font-size: 8px; line-height: 1.45; }
.runs-page .error-note span { max-width: 52px; font-size: 8px; }
.runs-page .table-footer { height: 50px; color: #89989f; font-size: 9px; }

@media (max-width: 1120px) {
  .runs-page .sidebar { width: 204px; }
  .runs-page .main-content { margin-left: 204px; }
  .runs-page .page { width: calc(100% - 44px); }
}
@media (max-width: 820px) {
  .runs-page .sidebar { width: 224px; }
  .runs-page .main-content { margin-left: 0; }
  .runs-page .topbar { padding: 0 16px; }
  .runs-page .page { width: calc(100% - 32px); padding-top: 24px; }
  .runs-page .stats-grid { grid-template-columns: 1fr; }
}


/* =====================================================================
   Multi-step pipeline authoring + human review gate
   ===================================================================== */
.pipeline-page { background: #f5f7f7; background-image: none; }
.pipeline-page .pipeline-workspace { width: min(1480px, calc(100% - 56px)); padding-top: 30px; }
.pipeline-doc-link { text-decoration: none; }
.pipeline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pipeline-heading h1 { margin-bottom: 7px; color: #142f3e; font-size: 26px; font-weight: 650; }
.pipeline-heading p { max-width: 780px; margin: 0; color: #74858e; font-size: 12px; }
.pipeline-title-row { display: flex; align-items: center; gap: 12px; }
.pipeline-version { min-width: 210px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-top: 7px; }
.pipeline-version small { color: #98a5ab; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.pipeline-version code { color: #54707c; font-family: "Roboto Mono", monospace; font-size: 8.5px; }
.plan-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border: 1px solid #d9e0e2; border-radius: 999px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.plan-status.draft { color: #665773; border-color: #ddd5e2; background: #f5f2f6; }
.plan-status.in_review { color: #8c681c; border-color: #ead59c; background: #fdf7e7; }
.plan-status.changes_requested { color: #a4432f; border-color: #efc5ba; background: #fcece7; }
.plan-status.approved, .plan-status.launched { color: #127453; border-color: #bfe1d2; background: #edf8f3; }
.pipeline-layout { display: grid; grid-template-columns: minmax(680px, 1fr) 340px; gap: 18px; align-items: start; }
.pipeline-form { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pipeline-card { max-width: none; padding: 0; overflow: hidden; border-color: #d9e1e3; border-radius: 6px; box-shadow: 0 1px 2px rgba(18,46,60,.025); }
.pipeline-card > label, .pipeline-card > .form-row, .pipeline-card > .task-mix, .pipeline-card > .scale-note, .pipeline-card > .source-list, .pipeline-card > .reference-strip { margin-right: 20px; margin-left: 20px; }
.pipeline-card > label:last-child { margin-bottom: 20px; }
.card-heading { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; margin-bottom: 18px; border-bottom: 1px solid #e1e7e9; background: #fbfcfc; }
.card-heading h2 { margin: 2px 0 0; color: #1b3847; font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.card-heading p { margin: 4px 0 0; color: #89989f; font-size: 9.5px; }
.card-kicker { color: #8a9aa1; font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.paper-badge, .card-total { padding: 4px 7px; color: #176f75; border: 1px solid #cde0e1; border-radius: 4px; background: #f0f7f7; font-family: "Roboto Mono", monospace; font-size: 8px; font-weight: 600; }
.card-total { color: #526d78; border-color: #dae3e5; background: #fff; }
.card-description { margin: -5px 20px 17px; color: #7f9098; font-size: 10.5px; }
.pipeline-card .three-up { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.pipeline-card .three-up .wide-field { grid-column: auto; }
.reference-strip { display: grid; grid-template-columns: 90px minmax(260px, 1fr); gap: 5px 12px; align-items: center; padding: 11px 13px; margin-bottom: 20px; border: 1px solid #dce5e7; border-radius: 5px; background: #f8fafa; }
.reference-strip span { color: #819198; font-size: 9px; }
.reference-strip a { color: #087880; font-family: "Roboto Mono", monospace; font-size: 8.5px; text-decoration: none; }
.reference-strip small { grid-column: 2; color: #9aa6ab; font-size: 8.5px; }
.task-mix { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.mix-item { min-width: 0; margin: 0 !important; padding: 11px; border: 1px solid #dfe6e8; border-radius: 5px; background: #fbfcfc; }
.mix-item > span { overflow: hidden; color: #58717c; font-size: 8.5px; font-weight: 600; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.mix-item > div { display: flex; align-items: center; gap: 6px; }
.mix-item input { height: 32px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #183746 !important; font-size: 16px !important; font-weight: 600 !important; }
.mix-item small { color: #9aa6ab; font-size: 8px; }
.scale-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 20px; border-radius: 4px; color: #778991; background: #f2f5f5; font-size: 8.5px; }
.scale-note strong { margin-right: auto; color: #526d78; font-weight: 600; }
.scale-note span { padding-left: 8px; border-left: 1px solid #d8e0e2; }
.readiness-pill { padding: 4px 7px; border-radius: 4px; font-family: "Roboto Mono", monospace; font-size: 8px; }
.readiness-pill.blocked { color: #98651e; background: #fcf3df; }
.readiness-pill.ready { color: #147657; background: #eaf7f0; }
.source-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.source-row { display: grid; grid-template-columns: 38px minmax(0,1fr); overflow: hidden; border: 1px solid #dfe6e8; border-radius: 5px; background: #fbfcfc; }
.source-index { display: grid; place-items: start center; padding-top: 18px; color: #26858a; border-right: 1px solid #e3e8ea; background: #f1f7f7; font-family: "Roboto Mono", monospace; font-size: 9px; }
.source-fields { padding: 14px; }
.source-fields .form-row label:last-child { max-width: 155px; }
.steps-section .card-heading { margin-bottom: 0; }
.steps-list { padding: 0; }
.step-card { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); border-bottom: 1px solid #dfe6e8; }
.step-card:last-child { border-bottom: 0; }
.step-rail { position: relative; display: flex; justify-content: center; padding-top: 20px; background: #f8fafa; border-right: 1px solid #e3e8ea; }
.step-rail i { position: absolute; top: 39px; bottom: -21px; left: 25px; width: 1px; background: #cbdadd; }
.step-card:last-child .step-rail i { display: none; }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; color: #176f75; border: 1px solid #bcd7d9; border-radius: 50%; background: #eef7f7; font-family: "Roboto Mono", monospace; font-size: 8px; font-weight: 600; }
.step-content { min-width: 0; padding: 18px 18px 20px; }
.step-head { display: flex; justify-content: space-between; gap: 12px; }
.step-head h3 { margin: 3px 0 0; color: #1b3847; font-size: 13px; font-weight: 650; }
.step-kind { color: #188087; font-family: "Roboto Mono", monospace; font-size: 7.5px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.step-tools { display: flex; gap: 3px; }
.step-tools button { width: 27px; height: 27px; color: #88989f; border: 1px solid #dce4e6; border-radius: 4px; background: #fff; cursor: pointer; }
.step-tools button:hover { color: #284b59; background: #f5f8f8; }
.step-remove { font-size: 16px; }
.step-summary { display: flex; gap: 6px; margin: 11px 0 16px; }
.step-summary span { max-width: 33%; overflow: hidden; padding: 3px 6px; color: #647b85; border-radius: 3px; background: #eff3f3; font-family: "Roboto Mono", monospace; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.step-fidelity-summary { color: #8c681c !important; background: #fdf5e5 !important; }
.step-editor { padding-top: 16px; border-top: 1px solid #edf0f1; }
.step-editor .form-row.three-up { display: grid; grid-template-columns: 1fr 2fr 1fr; }
.step-editor label { margin-bottom: 13px; }
.step-editor textarea { min-height: 64px; }
.step-editor .prompt-editor { color: #294754; background: #f8fafa; line-height: 1.55; }
.step-card.collapsed .step-editor { display: none; }
.step-card.collapsed .step-content { padding-bottom: 15px; }
.step-card.collapsed .step-summary { margin-bottom: 0; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 11px; top: 50%; color: #98a5ab; font-size: 9px; transform: translateY(-50%); }
.input-suffix input { padding-right: 55px !important; }
.toggle-field { flex: none !important; flex-direction: row !important; align-items: center; gap: 8px !important; margin: 0 !important; color: #526d78; font-size: 10px; }
.toggle-field input { width: 15px !important; height: 15px !important; }
.readiness-card textarea[name="blockers"] { color: #8d4e36; background: #fffaf8; line-height: 1.6; }
.pipeline-actions { position: sticky; z-index: 8; bottom: 0; padding: 13px 15px; border: 1px solid #d9e1e3; border-radius: 6px; background: rgba(255,255,255,.96); box-shadow: 0 -5px 18px rgba(20,47,61,.05); backdrop-filter: blur(10px); }
.strong-button { color: #244957; font-weight: 600; }
.pipeline-actions button:disabled { opacity: .45; cursor: not-allowed; }
.review-column { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 18px; border: 1px solid #d9e1e3; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(18,46,60,.025); }
.review-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-card h2 { margin: 2px 0 0; color: #1b3847; font-size: 13px; }
.review-card > p { margin: 0 0 15px; color: #7c8e96; font-size: 10px; line-height: 1.55; }
.review-lock { display: grid; place-items: center; width: 32px; height: 32px; color: #176f75; border-radius: 5px; background: #eaf5f5; }
.review-lock svg { width: 16px; }
.review-state { display: flex; align-items: center; gap: 7px; padding: 9px 10px; margin-bottom: 15px; color: #667d87; border-radius: 4px; background: #f2f5f5; font-size: 9px; }
.review-state i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8ad; }
.review-state.in_review { color: #89651d; background: #fdf6e5; }
.review-state.in_review i { background: #d6a13b; }
.review-state.approved, .review-state.launched { color: #147657; background: #eaf7f0; }
.review-state.approved i, .review-state.launched i { background: #1e9a6c; }
.review-state.changes_requested { color: #a04734; background: #fcece7; }
.review-card > label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.review-card input[type="text"], .review-card textarea { width: 100%; padding: 9px 10px; color: #294754; outline: 0; border: 1px solid #d8e1e3; border-radius: 5px; background: #fff; font-size: 10.5px; resize: vertical; }
.review-checklist { display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 17px 0; border: 0; }
.review-checklist legend { margin-bottom: 9px; color: #72858f; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.review-checklist label { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid #e2e7e9; border-radius: 4px; cursor: pointer; }
.review-checklist label:has(input:checked) { border-color: #bcd9d4; background: #f1f8f6; }
.review-checklist input { flex: none; margin: 2px 0 0; accent-color: #168a76; }
.review-checklist span { display: flex; flex-direction: column; }
.review-checklist strong { color: #435e6a; font-size: 9.5px; font-weight: 600; }
.review-checklist small { margin-top: 2px; color: #8a999f; font-size: 8px; line-height: 1.35; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.review-actions button { padding: 0 8px; }
.review-actions button:disabled { opacity: .45; cursor: not-allowed; }
.danger-button { color: #9a4937; }
.launch-gate-card { background: #fbfcfc; }
.launch-gate-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gate-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #9a4937; border-radius: 50%; background: #f9e7e2; font-weight: 700; }
.gate-icon.ready { color: #137554; background: #dff2e9; }
.gate-reasons { max-height: 220px; overflow: auto; padding: 0 0 0 17px; margin: 0 0 15px; color: #7f6060; font-size: 8.8px; line-height: 1.45; }
.gate-reasons li { margin-bottom: 6px; }
.launch-plan-button { width: 100%; }
.launch-plan-button:disabled { color: #98a5ab; background: #e5eaeb; box-shadow: none; cursor: not-allowed; }
.launch-gate-card > small { display: block; margin-top: 9px; color: #9aa6ab; font-size: 8px; line-height: 1.4; text-align: center; }
.fidelity-card dl, .fidelity-card div { margin: 0; }
.fidelity-card div { padding: 10px 0; border-bottom: 1px solid #e8edee; }
.fidelity-card div:last-child { border: 0; padding-bottom: 0; }
.fidelity-card dt { color: #435e6a; font-size: 9px; font-weight: 600; }
.fidelity-card dd { margin: 3px 0 0; color: #87979e; font-size: 8.5px; line-height: 1.45; }
.pipeline-notice { padding: 11px 14px; margin-bottom: 17px; color: #536d78; border: 1px solid #d5e1e3; border-radius: 5px; background: #f7fafa; font-size: 10.5px; }
.pipeline-notice.success { color: #147657; border-color: #bfdfd1; background: #edf8f3; }
@media (max-width: 1200px) { .pipeline-layout { grid-template-columns: minmax(620px, 1fr) 310px; } .task-mix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1020px) { .pipeline-layout { grid-template-columns: 1fr; } .review-column { position: static; display: grid; grid-template-columns: repeat(2, 1fr); } .review-column .fidelity-card { grid-column: 1 / -1; } }
@media (max-width: 820px) { .pipeline-page .pipeline-workspace { width: calc(100% - 28px); } .pipeline-heading { flex-direction: column; } .pipeline-version { align-items: flex-start; } .pipeline-card .three-up, .step-editor .form-row.three-up { grid-template-columns: 1fr; } .pipeline-card .form-row, .step-editor .form-row { flex-direction: column; } .review-column { grid-template-columns: 1fr; } .review-column .fidelity-card { grid-column: auto; } .task-mix { grid-template-columns: 1fr; } .scale-note { align-items: flex-start; flex-direction: column; } .scale-note span { padding-left: 0; border: 0; } }

/* Persona-conditioned STS observability */
.persona-panel, .candidate-panel { margin-bottom: 18px; }
.persona-table { min-width: 1120px; table-layout: fixed; }
.persona-table th:nth-child(1) { width: 22%; padding-left: 18px; }
.persona-table th:nth-child(2) { width: 15%; }
.persona-table th:nth-child(3), .persona-table th:nth-child(4), .persona-table th:nth-child(5) { width: 9%; }
.persona-table th:nth-child(6) { width: 8%; }
.persona-table th:nth-child(7), .persona-table th:nth-child(8), .persona-table th:nth-child(9) { width: 7%; }
.persona-table td { height: 68px; color: #58707b; font-size: 9px; }
.persona-name { min-width: 0; display: flex; align-items: center; gap: 9px; }
.persona-name > span { flex: none; display: grid; place-items: center; width: 29px; height: 29px; color: #176f75; border-radius: 4px; background: #e9f4f4; font-family: "Roboto Mono", monospace; font-size: 8px; font-weight: 600; }
.persona-name > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.persona-name strong { overflow: hidden; color: #294754; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.persona-name small { overflow: hidden; color: #8d9ba1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.persona-progress { display: grid; grid-template-columns: auto minmax(38px,1fr) auto; align-items: center; gap: 6px; }
.persona-progress strong { color: #3e5b68; font-family: "Roboto Mono", monospace; font-size: 8px; }
.persona-progress > span { height: 4px; overflow: hidden; border-radius: 3px; background: #e2e8e9; }
.persona-progress i { display: block; height: 100%; border-radius: inherit; background: #2b9698; }
.persona-progress small { color: #8d9ba1; font-size: 7.5px; }
.candidate-count { display: inline-flex; min-width: 25px; justify-content: center; padding: 3px 5px; border-radius: 3px; font-family: "Roboto Mono", monospace; font-size: 8px; }
.candidate-count.equivalent { color: #147657; background: #e9f6ef; }
.candidate-count.related { color: #8c681c; background: #fdf4df; }
.candidate-count.unrelated { color: #735269; background: #f4eef3; }
.persona-errors { display: inline-flex; min-width: 20px; justify-content: center; padding: 3px 5px; color: #788b94; border-radius: 3px; background: #f0f4f4; }
.persona-errors.has-errors { color: #a4432f; background: #fcebe6; }
.candidate-table { min-width: 1280px; table-layout: fixed; }
.candidate-table th:nth-child(1) { width: 10%; padding-left: 18px; }
.candidate-table th:nth-child(2) { width: 13%; }
.candidate-table th:nth-child(3) { width: 11%; }
.candidate-table th:nth-child(4), .candidate-table th:nth-child(5) { width: 28%; }
.candidate-table th:nth-child(6) { width: 10%; }
.candidate-table td { height: 76px; color: #58707b; font-size: 9px; vertical-align: middle; }
.candidate-table td:first-child { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.candidate-table td:first-child code { color: #267f84; font-family: "Roboto Mono", monospace; font-size: 8.5px; }
.candidate-table td:first-child small { overflow: hidden; color: #96a3a8; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.candidate-table td > strong { display: block; overflow: hidden; color: #3e5b68; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.candidate-table p { display: -webkit-box; overflow: hidden; margin: 0; color: #526b77; font-size: 8.5px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.candidate-kind { display: inline-flex; padding: 4px 6px; border-radius: 3px; font-family: "Roboto Mono", monospace; font-size: 7.5px; white-space: nowrap; }
.candidate-kind.equivalent { color: #147657; background: #e9f6ef; }
.candidate-kind.related { color: #8c681c; background: #fdf4df; }
.candidate-kind.unrelated { color: #735269; background: #f4eef3; }
.persona-table tbody tr[role="button"] { cursor: pointer; }
.persona-table tbody tr[role="button"]:hover, .persona-table tbody tr.selected { background: #f2f8f7; box-shadow: inset 2px 0 #2b9698; }
.persona-table tbody tr[role="button"]:focus { outline: 2px solid rgba(43,150,152,.3); outline-offset: -2px; }
.candidate-table tr[hidden] { display: none; }
.persona-errors { white-space: nowrap; }
