: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; }
}
