:root {
    color-scheme: light;
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --surface-strong: #edf2f7;
    --surface-hover: rgba(237, 242, 247, 0.92);
    --row-alt: rgba(246, 248, 251, 0.72);
    --border: #d6dee8;
    --border-strong: #c3cedb;
    --graph-connector: #9eb2c8;
    --graph-connector-strong: #7e96b1;
    --graph-connector-shadow: rgba(126, 150, 177, 0.22);
    --text: #162334;
    --muted: #607287;
    --heading-bg: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    --source-bg: #dbeafe;
    --source-text: #1d4ed8;
    --read-bg: #dbeafe;
    --read-text: #1d4ed8;
    --splitter-bg: #fef3c7;
    --splitter-text: #b45309;
    --transform-bg: #ede9fe;
    --transform-text: #6d28d9;
    --linker-bg: #fce7f3;
    --linker-text: #be185d;
    --target-bg: #dcfce7;
    --target-text: #166534;
    --write-bg: #dcfce7;
    --write-text: #166534;
    --error-bg: #fee2e2;
    --error-text: #b91c1c;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --button-bg: #162334;
    --button-text: #ffffff;
    --button-soft-bg: #e0f2fe;
    --button-soft-bg-hover: #bae6fd;
    --button-soft-bg-active: #7dd3fc;
    --button-soft-border: #7dd3fc;
    --button-soft-text: #0f3f5c;
    --button-soft-shadow: 0 10px 22px rgba(14, 116, 144, 0.14);
    --focus-ring: rgba(7, 89, 133, 0.16);
    --shadow: 0 16px 34px rgba(18, 35, 52, 0.06);
    --scrollbar-thumb: #b9c6d6;
    --scrollbar-thumb-hover: #94a8be;
    --scrollbar-track: #e8eef5;
    --scrollbar-subtle-thumb: rgba(148, 168, 190, 0.56);
    --scrollbar-subtle-thumb-hover: rgba(117, 140, 165, 0.72);
    --scrollbar-subtle-track: rgba(232, 238, 245, 0.46);
    --topbar-border: rgba(195, 206, 219, 0.86);
    --topbar-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
    --nav-active-bg: rgba(255, 255, 255, 0.9);
    --nav-active-shadow: 0 10px 24px rgba(18, 35, 52, 0.08);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1118;
    --surface: #121923;
    --surface-soft: #18212d;
    --surface-strong: #202b3a;
    --surface-hover: rgba(33, 46, 63, 0.92);
    --row-alt: rgba(20, 28, 38, 0.78);
    --border: #263244;
    --border-strong: #34455e;
    --graph-connector: rgba(156, 184, 214, 0.72);
    --graph-connector-strong: rgba(214, 229, 245, 0.94);
    --graph-connector-shadow: rgba(52, 69, 94, 0.28);
    --text: #edf3fb;
    --muted: #9bacc2;
    --heading-bg: linear-gradient(180deg, #182230 0%, #0f1620 100%);
    --source-bg: rgba(148, 163, 184, 0.14);
    --source-text: #dbe5f2;
    --read-bg: rgba(96, 165, 250, 0.16);
    --read-text: #93c5fd;
    --splitter-bg: rgba(245, 158, 11, 0.16);
    --splitter-text: #fbbf24;
    --transform-bg: rgba(167, 139, 250, 0.16);
    --transform-text: #c4b5fd;
    --linker-bg: rgba(244, 114, 182, 0.16);
    --linker-text: #f9a8d4;
    --target-bg: rgba(74, 222, 128, 0.14);
    --target-text: #86efac;
    --write-bg: rgba(74, 222, 128, 0.14);
    --write-text: #86efac;
    --error-bg: rgba(248, 113, 113, 0.16);
    --error-text: #fca5a5;
    --success-bg: rgba(74, 222, 128, 0.14);
    --success-text: #86efac;
    --button-bg: #edf3fb;
    --button-text: #0b1118;
    --button-soft-bg: rgba(59, 130, 246, 0.16);
    --button-soft-bg-hover: rgba(59, 130, 246, 0.24);
    --button-soft-bg-active: rgba(96, 165, 250, 0.32);
    --button-soft-border: rgba(125, 211, 252, 0.28);
    --button-soft-text: #d8ecff;
    --button-soft-shadow: 0 14px 28px rgba(8, 47, 73, 0.28);
    --focus-ring: rgba(147, 197, 253, 0.22);
    --shadow: 0 18px 36px rgba(3, 7, 18, 0.34);
    --scrollbar-thumb: #3a4a61;
    --scrollbar-thumb-hover: #4c6282;
    --scrollbar-track: #111923;
    --scrollbar-subtle-thumb: rgba(76, 98, 130, 0.72);
    --scrollbar-subtle-thumb-hover: rgba(113, 140, 181, 0.82);
    --scrollbar-subtle-track: rgba(17, 25, 35, 0.38);
    --topbar-border: rgba(52, 69, 94, 0.78);
    --topbar-shadow: 0 1px 0 rgba(219, 233, 249, 0.04);
    --nav-active-bg: linear-gradient(180deg, rgba(18, 25, 35, 0.94) 0%, rgba(24, 33, 45, 0.94) 100%);
    --nav-active-shadow: 0 14px 28px rgba(3, 7, 18, 0.28);
}

:root[data-theme="dark"][data-theme-variant="ops"] {
    --bg: #07151a;
    --surface: #0d1e25;
    --surface-soft: #112730;
    --surface-strong: #173441;
    --surface-hover: rgba(22, 50, 62, 0.94);
    --row-alt: rgba(15, 36, 44, 0.78);
    --border: #1f4451;
    --border-strong: #2c6070;
    --graph-connector: rgba(103, 232, 249, 0.58);
    --graph-connector-strong: rgba(165, 243, 252, 0.9);
    --graph-connector-shadow: rgba(21, 94, 117, 0.28);
    --text: #e6fbff;
    --muted: #8cb8c0;
    --heading-bg: linear-gradient(180deg, #10313b 0%, #0a1b22 100%);
    --button-bg: #d9fbff;
    --button-text: #07151a;
    --button-soft-bg: rgba(34, 211, 238, 0.16);
    --button-soft-bg-hover: rgba(34, 211, 238, 0.24);
    --button-soft-bg-active: rgba(45, 212, 191, 0.28);
    --button-soft-border: rgba(103, 232, 249, 0.32);
    --button-soft-text: #b6f7ff;
    --button-soft-shadow: 0 14px 28px rgba(8, 47, 73, 0.24);
    --focus-ring: rgba(103, 232, 249, 0.24);
    --shadow: 0 18px 36px rgba(0, 16, 20, 0.34);
    --scrollbar-thumb: #2d5a68;
    --scrollbar-thumb-hover: #3c7384;
    --scrollbar-track: #0a1b22;
    --scrollbar-subtle-thumb: rgba(60, 115, 132, 0.72);
    --scrollbar-subtle-thumb-hover: rgba(91, 151, 170, 0.82);
    --scrollbar-subtle-track: rgba(10, 27, 34, 0.38);
    --topbar-border: rgba(44, 96, 112, 0.78);
    --nav-active-bg: linear-gradient(180deg, rgba(13, 30, 37, 0.94) 0%, rgba(17, 39, 48, 0.94) 100%);
}

:root[data-theme="dark"][data-theme-variant="fluxx"] {
    --bg: #020406;
    --surface: #070d11;
    --surface-soft: #0b1217;
    --surface-strong: #101a20;
    --surface-hover: rgba(16, 26, 32, 0.96);
    --row-alt: rgba(8, 14, 18, 0.84);
    --border: rgba(0, 231, 253, 0.16);
    --border-strong: rgba(0, 231, 253, 0.28);
    --graph-connector: rgba(0, 231, 253, 0.54);
    --graph-connector-strong: rgba(102, 243, 255, 0.94);
    --graph-connector-shadow: rgba(0, 231, 253, 0.2);
    --text: #e8fcff;
    --muted: #82aeb5;
    --heading-bg: linear-gradient(180deg, #0a1318 0%, #030608 100%);
    --button-bg: #00e7fd;
    --button-text: #031015;
    --button-soft-bg: rgba(0, 231, 253, 0.1);
    --button-soft-bg-hover: rgba(0, 231, 253, 0.16);
    --button-soft-bg-active: rgba(0, 231, 253, 0.24);
    --button-soft-border: rgba(0, 231, 253, 0.26);
    --button-soft-text: #aaf8ff;
    --button-soft-shadow: 0 14px 28px rgba(0, 104, 118, 0.18);
    --focus-ring: rgba(0, 231, 253, 0.22);
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.46);
    --scrollbar-thumb: rgba(0, 231, 253, 0.3);
    --scrollbar-thumb-hover: rgba(0, 231, 253, 0.45);
    --scrollbar-track: #060c10;
    --scrollbar-subtle-thumb: rgba(0, 231, 253, 0.24);
    --scrollbar-subtle-thumb-hover: rgba(0, 231, 253, 0.34);
    --scrollbar-subtle-track: rgba(6, 12, 16, 0.5);
    --topbar-border: rgba(0, 231, 253, 0.18);
    --topbar-shadow: 0 1px 0 rgba(0, 231, 253, 0.04);
    --nav-active-bg: linear-gradient(180deg, rgba(7, 13, 17, 0.98) 0%, rgba(11, 18, 23, 0.98) 100%);
    --nav-active-shadow: 0 14px 28px rgba(0, 104, 118, 0.14);
}

:root[data-theme="dark"][data-theme-variant="aurora"] {
    --bg: #141019;
    --surface: #1b1523;
    --surface-soft: #241c30;
    --surface-strong: #312645;
    --surface-hover: rgba(44, 35, 60, 0.94);
    --row-alt: rgba(29, 22, 40, 0.78);
    --border: #403053;
    --border-strong: #574173;
    --graph-connector: rgba(196, 181, 253, 0.6);
    --graph-connector-strong: rgba(233, 213, 255, 0.92);
    --graph-connector-shadow: rgba(88, 28, 135, 0.24);
    --text: #f7f2ff;
    --muted: #b9a8cb;
    --heading-bg: linear-gradient(180deg, #271d34 0%, #17111f 100%);
    --button-bg: #f6efff;
    --button-text: #140f19;
    --button-soft-bg: rgba(192, 132, 252, 0.16);
    --button-soft-bg-hover: rgba(192, 132, 252, 0.24);
    --button-soft-bg-active: rgba(244, 114, 182, 0.26);
    --button-soft-border: rgba(216, 180, 254, 0.32);
    --button-soft-text: #f3e8ff;
    --button-soft-shadow: 0 14px 28px rgba(44, 16, 71, 0.28);
    --focus-ring: rgba(216, 180, 254, 0.24);
    --shadow: 0 18px 36px rgba(17, 8, 26, 0.36);
    --scrollbar-thumb: #5a456f;
    --scrollbar-thumb-hover: #745892;
    --scrollbar-track: #17111f;
    --scrollbar-subtle-thumb: rgba(116, 88, 146, 0.72);
    --scrollbar-subtle-thumb-hover: rgba(151, 119, 191, 0.82);
    --scrollbar-subtle-track: rgba(23, 17, 31, 0.38);
    --topbar-border: rgba(87, 65, 115, 0.78);
    --nav-active-bg: linear-gradient(180deg, rgba(27, 21, 35, 0.94) 0%, rgba(36, 28, 48, 0.94) 100%);
}

:root[data-theme="dark"][data-theme-variant="ember"] {
    --bg: #15100d;
    --surface: #1d1612;
    --surface-soft: #261d18;
    --surface-strong: #332720;
    --surface-hover: rgba(51, 39, 32, 0.94);
    --row-alt: rgba(32, 25, 21, 0.78);
    --border: #46342a;
    --border-strong: #61493a;
    --graph-connector: rgba(253, 186, 116, 0.56);
    --graph-connector-strong: rgba(254, 215, 170, 0.9);
    --graph-connector-shadow: rgba(154, 52, 18, 0.22);
    --text: #fff5ec;
    --muted: #d0b7a3;
    --heading-bg: linear-gradient(180deg, #2a1e18 0%, #17110e 100%);
    --button-bg: #fff1e6;
    --button-text: #1a120d;
    --button-soft-bg: rgba(249, 115, 22, 0.16);
    --button-soft-bg-hover: rgba(249, 115, 22, 0.24);
    --button-soft-bg-active: rgba(251, 146, 60, 0.28);
    --button-soft-border: rgba(253, 186, 116, 0.3);
    --button-soft-text: #ffddb9;
    --button-soft-shadow: 0 14px 28px rgba(67, 20, 7, 0.24);
    --focus-ring: rgba(253, 186, 116, 0.24);
    --shadow: 0 18px 36px rgba(22, 12, 8, 0.34);
    --scrollbar-thumb: #6f4d3b;
    --scrollbar-thumb-hover: #8f6147;
    --scrollbar-track: #17110e;
    --scrollbar-subtle-thumb: rgba(143, 97, 71, 0.72);
    --scrollbar-subtle-thumb-hover: rgba(180, 125, 93, 0.82);
    --scrollbar-subtle-track: rgba(23, 17, 14, 0.38);
    --topbar-border: rgba(97, 73, 58, 0.78);
    --nav-active-bg: linear-gradient(180deg, rgba(29, 22, 18, 0.94) 0%, rgba(38, 29, 24, 0.94) 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-track);
    border-radius: 999px;
    background: var(--scrollbar-thumb);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

a {
    color: inherit;
}

.page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 36px 24px 56px;
}

.page-runtime {
    display: grid;
    gap: 20px;
}

.page-health {
    padding-top: 20px;
    gap: 14px;
}

.page-runtime > .fluxx-topbar,
.page-runtime > .header {
    margin-bottom: 0;
}

.fluxx-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--topbar-border);
    box-shadow: var(--topbar-shadow);
}

.fluxx-topbar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.fluxx-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
}

.fluxx-brand-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: min(160px, 28vw);
    object-fit: contain;
}

.fluxx-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fluxx-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.fluxx-nav-link:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.fluxx-nav-link.is-active {
    background: var(--nav-active-bg);
    border: 1px solid var(--border-strong);
    color: var(--text);
    box-shadow: var(--nav-active-shadow);
}

.fluxx-topbar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.fluxx-theme-toggle,
.fluxx-theme-picker,
.fluxx-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--button-soft-border);
    background: var(--button-soft-bg);
    color: var(--button-soft-text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--button-soft-shadow);
}

.fluxx-theme-toggle {
    cursor: pointer;
    font: inherit;
}

.fluxx-theme-picker {
    padding: 0 12px;
}

.fluxx-theme-select {
    min-height: 38px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.fluxx-theme-select option {
    color: #111827;
}

.fluxx-theme-toggle .button-label,
.fluxx-logout .button-label {
    line-height: 1;
}

.fluxx-theme-toggle:hover,
.fluxx-theme-picker:hover,
.fluxx-logout:hover {
    background: var(--button-soft-bg-hover);
}

.fluxx-theme-picker:focus-within {
    outline: 2px solid var(--focus-ring);
    outline-offset: 1px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.header-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    gap: 10px;
}

.header-tools {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.runtime-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.runtime-refresh {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

[hidden] {
    display: none !important;
}

.polling-controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.polling-controls-inline {
    width: auto;
    margin-bottom: 0;
}

.polling-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.polling-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--text);
    border-radius: 999px;
    animation: polling-spin 0.8s linear infinite;
}

@keyframes polling-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.search-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.run-filter-form {
    display: grid;
    gap: 14px;
    align-items: end;
}

.run-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.run-filter-grid-executions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.run-filter-grid-executions .run-filter-field:first-child {
    grid-column: span 2;
}

.run-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.run-filter-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.run-filter-field .search-input {
    width: 100%;
    min-width: 0;
}

.run-filter-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
    margin-bottom: 8px;
}

.search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-input {
    min-width: min(320px, calc(100vw - 48px));
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.search-input:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--border-strong);
}

.title {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.section-subtitle {
    margin-top: 8px;
    max-width: none;
}

.page-stack {
    display: grid;
    gap: 20px;
}

.page-stack > * {
    min-width: 0;
}

.section-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--button-soft-bg);
    color: var(--button-soft-text);
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
}

.section-tab:hover {
    background: var(--button-soft-bg-hover);
    color: var(--button-soft-text);
    border-color: var(--button-soft-border);
}

.section-tab.is-active {
    background: var(--button-soft-bg-active);
    color: var(--button-soft-text);
    border-color: var(--button-soft-border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.section-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

[data-tab-content] {
    min-width: 0;
    max-width: 100%;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.section-overline {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--text);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--button-soft-border);
    border-radius: 8px;
    background: var(--button-soft-bg);
    color: var(--button-soft-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--button-soft-shadow);
}

.secondary-button:hover {
    background: var(--button-soft-bg-hover);
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--error-text) 24%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--error-bg) 72%, var(--surface));
    color: var(--error-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.danger-button:hover {
    background: color-mix(in srgb, var(--error-bg) 84%, var(--surface));
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.button-icon-svg {
    width: 16px;
    height: 16px;
}

.button-icon-toggle .icon-when-active,
.button-icon-toggle .icon-when-inactive {
    display: inline-flex;
}

[aria-pressed="true"] .button-icon-toggle .icon-when-inactive,
[aria-pressed="false"] .button-icon-toggle .icon-when-active {
    display: none;
}

.button-label {
    white-space: nowrap;
}

.workflow-link {
    color: inherit;
    text-decoration: none;
}

.workflow-link:hover .workflow-name {
    text-decoration: underline;
}

.count {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.workflow-list {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.workflow-table-compact th,
.workflow-table-compact td {
    padding: 12px 10px;
}

.workflow-table-compact th {
    font-size: 11px;
}

.workflow-table-compact td {
    font-size: 13px;
}

.workflow-table-compact .run-id {
    font-size: 10px;
    line-height: 1.35;
}

.workflow-table-compact .system-chip,
.workflow-table-compact .status-badge {
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
}

.workflow-table-compact .table-note {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
}

.workflow-table-compact .step-status-cell {
    gap: 4px;
}

.workflow-table-compact .execution-cell-run {
    max-width: 148px;
}

.workflow-table-compact .execution-cell-trigger,
.workflow-table-compact .execution-cell-status {
    white-space: nowrap;
}

.workflow-table-compact .execution-cell-dates {
    max-width: 128px;
}

thead {
    background: var(--heading-bg);
}

th,
td {
    padding: 18px 16px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--border);
}

th {
    border-top: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

td {
    font-size: 14px;
    overflow-wrap: anywhere;
}

tbody tr:nth-child(even) {
    background: var(--row-alt);
}

tbody tr:hover {
    background: var(--surface-hover);
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: -3px;
}

.workflow-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.item-code {
    margin-top: 4px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 12px;
    line-height: 1.35;
}

.item-code-hero {
    margin-top: 10px;
}

.system-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: none;
    background: var(--surface-strong);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
}

.system-chip-source {
    background: var(--source-bg);
    color: var(--source-text);
}

.system-chip-target {
    background: var(--target-bg);
    color: var(--target-text);
}

.metric-value {
    display: inline-flex;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.metric-empty {
    color: var(--muted);
}

.execution-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text);
    font-weight: 700;
}

.error-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--error-bg);
    color: var(--error-text);
    font-weight: 700;
}

.metric-error {
    color: var(--error-text);
}

.table-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.table-note .system-chip + .system-chip {
    margin-left: 6px;
}

.table-note-compact {
    margin-top: 0;
}

.detail-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.detail-message-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.code-block {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 13px;
    line-height: 1.55;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-subtle-thumb) var(--scrollbar-subtle-track);
}

.code-block::-webkit-scrollbar,
.workflow-step-flow-scroll::-webkit-scrollbar,
.execution-step-flow-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-block::-webkit-scrollbar-track,
.workflow-step-flow-scroll::-webkit-scrollbar-track,
.execution-step-flow-scroll::-webkit-scrollbar-track {
    background: var(--scrollbar-subtle-track);
}

.code-block::-webkit-scrollbar-thumb,
.workflow-step-flow-scroll::-webkit-scrollbar-thumb,
.execution-step-flow-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-subtle-track);
    border-radius: 999px;
    background: var(--scrollbar-subtle-thumb);
}

.code-block::-webkit-scrollbar-thumb:hover,
.workflow-step-flow-scroll::-webkit-scrollbar-thumb:hover,
.execution-step-flow-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-subtle-thumb-hover);
}

.payload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.operation-form {
    display: grid;
    gap: 14px;
}

.operation-field {
    display: grid;
    gap: 8px;
}

.operation-textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.operation-textarea:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--border-strong);
}

.operation-confirm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.operation-confirm input {
    width: 16px;
    height: 16px;
}

.payload-column {
    display: grid;
    gap: 14px;
    min-width: 0;
    align-content: start;
}

.payload-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.statistics-controls {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.statistics-range {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.statistics-range:hover {
    color: var(--text);
    background: var(--surface);
}

.statistics-range.is-active {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.statistics-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.statistics-summary-extended {
    margin-top: -2px;
}

.statistics-chart-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.statistics-summary-item {
    display: grid;
    gap: 4px;
    min-width: 110px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.statistics-summary-item-error {
    background: color-mix(in srgb, var(--error-bg) 48%, var(--surface-soft));
    border-color: color-mix(in srgb, var(--error-text) 18%, var(--border));
}

.statistics-summary-item-warning {
    background: color-mix(in srgb, var(--splitter-bg) 58%, var(--surface-soft));
    border-color: color-mix(in srgb, var(--splitter-text) 16%, var(--border));
}

.statistics-summary-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.statistics-summary-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.statistics-chart {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    min-height: 252px;
    margin-top: 14px;
}

.statistics-step-section {
    margin-top: 20px;
}

.section-heading-compact {
    margin-bottom: 12px;
}

.section-title-compact {
    margin: 0;
    font-size: 18px;
}

.statistics-y-axis {
    display: grid;
    align-self: stretch;
    padding: 4px 0 22px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.statistics-y-axis span {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.statistics-bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 252px;
    padding: 6px 0 22px;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.statistics-bars::before,
.statistics-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--border);
}

.statistics-bars::before {
    top: 33.333%;
}

.statistics-bars::after {
    top: 66.666%;
}

.statistics-bar-group {
    display: grid;
    gap: 8px;
    align-items: end;
    min-width: 0;
}

.statistics-bar-stage {
    position: relative;
    height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.statistics-bar {
    position: absolute;
    bottom: 0;
    border-radius: 6px 6px 0 0;
}

.statistics-bar-executions {
    width: 14px;
    background: color-mix(in srgb, var(--read-text) 72%, var(--transform-text));
}

.statistics-bar-errors {
    width: 6px;
    background: var(--error-text);
}

.statistics-axis-label {
    min-height: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.payload-list {
    display: grid;
    gap: 14px;
    align-content: start;
}

.payload-card {
    display: grid;
    gap: 10px;
}

.payload-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payload-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.workflow-definition-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.workflow-definition-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.definition-block {
    display: grid;
    gap: 8px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.definition-block-compact {
    align-content: start;
    min-height: auto;
    padding: 16px;
    gap: 14px;
}

.definition-block-compact::after {
    content: "";
    display: block;
    width: 33%;
    min-width: 64px;
    height: 2px;
    border-radius: 999px;
    background: var(--border-strong);
    order: 1;
}

.definition-block-compact.step-tone-surface::after {
    background: color-mix(in srgb, var(--step-tone-text) 55%, var(--border-strong));
}

.definition-inline-list {
    display: grid;
    gap: 12px;
    order: 2;
}

.definition-inline-item {
    display: grid;
    gap: 6px;
}

.definition-inline-key {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.definition-inline-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.definition-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.definition-metric {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.definition-value {
    font-size: 15px;
    font-weight: 600;
}

.step-tone-read {
    --step-tone-bg: var(--read-bg);
    --step-tone-text: var(--read-text);
}

.step-tone-transform {
    --step-tone-bg: var(--transform-bg);
    --step-tone-text: var(--transform-text);
}

.step-tone-splitter {
    --step-tone-bg: var(--splitter-bg);
    --step-tone-text: var(--splitter-text);
}

.step-tone-write {
    --step-tone-bg: var(--write-bg);
    --step-tone-text: var(--write-text);
}

.step-tone-linker {
    --step-tone-bg: var(--linker-bg);
    --step-tone-text: var(--linker-text);
}

.step-tone-custom {
    --step-tone-bg: var(--surface-strong);
    --step-tone-text: var(--text);
}

.step-tone-text {
    color: var(--step-tone-text);
}

.step-tone-surface {
    border-color: color-mix(in srgb, var(--step-tone-text) 22%, var(--border));
    background: color-mix(in srgb, var(--step-tone-bg) 38%, var(--surface-soft));
}

.step-tone-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--step-tone-bg);
    color: var(--step-tone-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.step-definition-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.step-definition-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.step-definition-card.step-tone-surface {
    background:
        linear-gradient(to bottom, var(--step-tone-text) 0 3px, transparent 3px 100%),
        var(--surface-soft);
}

.step-definition-list-compact {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    order: 2;
}

.workflow-step-flow {
    --workflow-card-width: 280px;
    display: grid;
    gap: 12px;
    order: 2;
}

.workflow-step-flow-scroll,
.execution-step-flow-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-subtle-thumb) var(--scrollbar-subtle-track);
}

.workflow-step-flow-scroll {
    padding: 18px 2px 20px;
}

.execution-step-flow-scroll {
    max-width: min(100%, 760px);
    padding: 6px 2px 8px;
}

.workflow-step-flow-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--workflow-graph-columns, 1), minmax(220px, 280px));
    justify-content: center;
    gap: 12px;
    align-items: stretch;
    padding-top: 10px;
}

.workflow-step-flow-row-single:not(:last-child)::after,
.workflow-step-flow-row-merge:not(:last-child)::after,
.workflow-step-flow-row-split:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 2px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.workflow-step-flow-row-single:not(:first-child)::before,
.workflow-step-flow-row-merge:not(:first-child)::before,
.workflow-step-flow-row-split:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: 12px;
    height: 9px;
    background: var(--graph-connector-strong);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
    filter: drop-shadow(0 1px 0 var(--graph-connector-shadow));
}

.workflow-step-flow-row-split {
    padding-top: 22px;
}

.workflow-step-flow-row-split::before {
    top: -4px;
}

.workflow-step-flow-row-split::after {
    bottom: -11px;
}

.workflow-step-flow-connector {
    position: relative;
    height: 14px;
    align-self: start;
}

.workflow-step-flow-connector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--graph-connector) 0%, var(--graph-connector-strong) 50%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
}

.workflow-step-flow-row-split .workflow-step-flow-card::before,
.workflow-step-flow-row-merge .workflow-step-flow-card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.workflow-step-flow-row-parallel .workflow-step-flow-card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.workflow-step-flow-card.has-merge-next::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.workflow-step-flow-card {
    width: min(100%, var(--workflow-card-width));
    min-height: 88px;
    justify-self: center;
}

.workflow-step-flow {
    position: relative;
    grid-template-columns: repeat(var(--workflow-graph-columns, 1), 220px);
    grid-template-rows: repeat(var(--workflow-graph-rows, 1), 120px);
    justify-content: start;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    width: max-content;
    min-width: max-content;
    padding: 0;
}

.workflow-step-flow-row {
    display: contents;
}

.workflow-step-flow-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.workflow-step-flow-lines path {
    fill: none;
    stroke: var(--graph-connector-strong);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 1px 0 var(--graph-connector-shadow));
}

.workflow-step-flow-lines marker path {
    fill: var(--graph-connector-strong);
    stroke: none;
}

.workflow-step-flow-row::before,
.workflow-step-flow-row::after,
.workflow-step-flow-card::before,
.workflow-step-flow-card::after,
.workflow-step-flow-connector {
    content: none;
    display: none;
}

.workflow-step-flow-card {
    position: relative;
    z-index: 1;
    width: 180px;
    min-height: 86px;
    min-width: 0;
}

.workflow-step-flow-card .step-definition-type,
.workflow-step-flow-card .step-definition-name,
.workflow-step-flow-card .item-code {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workflow-step-flow-card .step-tone-pill {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.execution-step-flow {
    --workflow-execution-card-width: 132px;
    display: grid;
    align-items: stretch;
    gap: 8px;
    min-width: max-content;
    padding-bottom: 2px;
}

.execution-step-flow-column {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--workflow-graph-columns, 1), minmax(142px, 1fr));
    gap: 8px;
    align-items: stretch;
    min-width: max-content;
}

.execution-step-flow-column-single:not(:last-child)::after,
.execution-step-flow-column-merge:not(:last-child)::after,
.execution-step-flow-column-split:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 2px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.execution-step-flow-column-single:not(:first-child)::before,
.execution-step-flow-column-merge:not(:first-child)::before,
.execution-step-flow-column-split:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: 12px;
    height: 9px;
    background: var(--graph-connector-strong);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
    filter: drop-shadow(0 1px 0 var(--graph-connector-shadow));
}

.execution-step-flow-connector {
    position: relative;
    height: 14px;
    align-self: start;
}

.execution-step-flow-connector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--graph-connector) 0%, var(--graph-connector-strong) 50%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
}

.execution-step-flow-column-split .step-status-link {
    position: relative;
}

.execution-step-flow-column-split .step-status-link::before,
.execution-step-flow-column-merge .step-status-link::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.execution-step-flow-column-parallel .step-status-link {
    position: relative;
}

.execution-step-flow-column-parallel .step-status-link::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.execution-step-flow-column .step-status-link.has-merge-next::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--graph-connector-strong) 0%, var(--graph-connector) 100%);
    box-shadow: 0 0 0 1px var(--graph-connector-shadow);
    transform: translateX(-50%);
}

.execution-step-flow {
    position: relative;
    grid-template-columns: repeat(var(--workflow-graph-columns, 1), 160px);
    grid-template-rows: repeat(var(--workflow-graph-rows, 1), 82px);
    column-gap: 0;
    row-gap: 0;
    width: max-content;
    padding: 0;
}

.execution-step-flow-column {
    display: contents;
}

.execution-step-flow-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.execution-step-flow-lines path {
    fill: none;
    stroke: var(--graph-connector);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.execution-step-flow-lines marker path {
    fill: var(--graph-connector);
    stroke: none;
}

.execution-step-flow-column::before,
.execution-step-flow-column::after,
.execution-step-flow .step-status-link::before,
.execution-step-flow .step-status-link::after,
.execution-step-flow-connector {
    content: none;
    display: none;
}

.execution-step-card {
    position: relative;
    width: min(100%, var(--workflow-execution-card-width));
    min-height: 64px;
    padding: 7px 9px;
    border-radius: 8px;
    min-width: 0;
    justify-self: center;
}

.execution-step-card .step-definition-type,
.execution-step-card .execution-step-name,
.execution-step-card .execution-step-meta,
.execution-step-card .execution-step-meta-item {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.execution-step-card .step-tone-pill,
.execution-step-card .status-badge,
.execution-step-card .step-status-capsule {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.step-status-link {
    display: grid;
    align-self: center;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
}

.execution-step-name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.execution-step-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
}

.execution-step-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 14px;
}

.execution-step-meta-item + .execution-step-meta-item {
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid color-mix(in srgb, var(--step-tone-text) 22%, var(--border-strong));
}

.step-status-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border-strong);
    box-shadow: 0 0 0 3px var(--surface);
}

.step-status-dot-completed {
    background: var(--success-text);
}

.step-status-dot-failed {
    background: var(--error-text);
}

.step-status-dot-inline {
    position: static;
    box-shadow: none;
}

.step-status-dot-pending {
    background: var(--muted);
}

.step-status-dot-relaunched {
    background: var(--transform-text);
}

.step-status-dot-running {
    background: var(--read-text);
}

.step-status-dot-retrying {
    background: var(--splitter-text);
}

.step-status-dot-cancelled {
    background: var(--linker-text);
}

.step-status-dot-partially-failed {
    background: color-mix(in srgb, var(--error-text) 68%, var(--splitter-text));
}

.execution-status-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.execution-status-legend-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.execution-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.execution-dates {
    display: grid;
    gap: 4px;
    min-width: 102px;
}

.execution-dates-item {
    display: grid;
    gap: 1px;
}

.execution-dates-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.execution-actions {
    display: grid;
    gap: 8px;
    min-width: 120px;
}

.execution-actions .secondary-button,
.execution-actions .danger-button {
    width: 100%;
}

.execution-action-form,
.inline-action-form {
    margin: 0;
}

.step-definition-card-compact {
    padding: 12px 14px;
    gap: 4px;
}

.step-definition-card-compact .step-definition-name {
    font-size: 14px;
    font-weight: 700;
}

.step-definition-type {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.step-definition-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.run-id {
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.step-status-list {
    display: grid;
    gap: 10px;
}

.step-status-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.step-status-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.step-status-link:hover .step-status-cell {
    opacity: 0.92;
}

.step-status-item {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.step-status-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.step-status-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge-pending {
    background: var(--surface-strong);
    color: var(--text);
}

.status-badge-running {
    background: var(--source-bg);
    color: var(--source-text);
}

.status-badge-retrying {
    background: var(--splitter-bg);
    color: var(--splitter-text);
}

.status-badge-warning {
    background: var(--splitter-bg);
    color: var(--splitter-text);
}

.status-badge-cancelled {
    background: color-mix(in srgb, var(--error-bg) 64%, var(--surface));
    color: var(--error-text);
}

.status-badge-completed {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge-failed,
.status-badge-partially-failed {
    background: var(--error-bg);
    color: var(--error-text);
}

.empty {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-tile {
    display: grid;
    gap: 8px;
    min-height: 140px;
    padding: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.home-tile:hover {
    background: var(--surface-soft);
}

.home-tile-label {
    font-size: 18px;
    font-weight: 700;
}

.home-tile-copy {
    color: var(--muted);
}

.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-panel {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-label {
    font-size: 14px;
    font-weight: 600;
}

.login-field input {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.login-field input:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--border-strong);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--button-bg);
    color: var(--button-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.primary-button:hover {
    filter: brightness(1.06);
}

.login-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--error-bg);
    color: var(--error-text);
    font-weight: 600;
}

.role-list {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 13px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-chip.is-enabled {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-chip.is-disabled {
    background: var(--error-bg);
    color: var(--error-text);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.pagination-pages {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--button-soft-border);
    background: var(--button-soft-bg);
    color: var(--button-soft-text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--button-soft-shadow);
}

.pagination-link:hover {
    background: var(--button-soft-bg-hover);
}

.pagination-link.is-active {
    background: var(--button-soft-bg-active);
    border-color: var(--button-soft-border);
}

.pagination-link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.runtime-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.health-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: start;
}

.health-panel {
    min-height: 0;
}

.health-panel-right {
    display: grid;
    gap: 0;
}

.health-panel-left {
    min-height: 0;
}

.health-fact-list {
    display: grid;
    gap: 12px;
}

.health-fact-row {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.health-fact-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.health-fact-row-warning .health-fact-value {
    color: var(--splitter-text);
}

.health-fact-row-error .health-fact-value {
    color: var(--error-text);
}

.health-fact-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.health-fact-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.health-metric-list {
    display: grid;
    gap: 10px;
}

.health-metric-row {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.health-metric-row-warning {
    border-color: color-mix(in srgb, var(--splitter-text) 16%, var(--border));
    background: color-mix(in srgb, var(--splitter-bg) 34%, var(--surface-soft));
}

.health-metric-row-error {
    border-color: color-mix(in srgb, var(--error-text) 18%, var(--border));
    background: color-mix(in srgb, var(--error-bg) 34%, var(--surface-soft));
}

.health-metric-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.health-metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.health-metric-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.health-metric-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.health-panel-separator {
    height: 1px;
    margin: 20px 0;
    background: var(--border);
}

.runtime-overview-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.runtime-overview-card-warning {
    border-color: color-mix(in srgb, var(--splitter-text) 16%, var(--border));
    background: color-mix(in srgb, var(--splitter-bg) 34%, var(--surface));
}

.runtime-overview-card-error {
    border-color: color-mix(in srgb, var(--error-text) 18%, var(--border));
    background: color-mix(in srgb, var(--error-bg) 34%, var(--surface));
}

.runtime-overview-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.runtime-overview-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.runtime-overview-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.runtime-table-empty {
    padding: 24px 16px;
    color: var(--muted);
    text-align: center;
}

.runtime-messages-table td {
    vertical-align: top;
}

.runtime-step-cell {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.runtime-step-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.health-findings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.health-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.health-check {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.health-check-warning {
    border-color: color-mix(in srgb, var(--splitter-text) 16%, var(--border));
    background: color-mix(in srgb, var(--splitter-bg) 44%, var(--surface-soft));
}

.health-check-critical {
    border-color: color-mix(in srgb, var(--error-text) 18%, var(--border));
    background: color-mix(in srgb, var(--error-bg) 44%, var(--surface-soft));
}

.health-check-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.health-check-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.health-check-message {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.health-finding {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.health-finding-warning {
    border-color: color-mix(in srgb, var(--splitter-text) 16%, var(--border));
    background: color-mix(in srgb, var(--splitter-bg) 44%, var(--surface-soft));
}

.health-finding-critical {
    border-color: color-mix(in srgb, var(--error-text) 18%, var(--border));
    background: color-mix(in srgb, var(--error-bg) 44%, var(--surface-soft));
}

.health-finding-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.health-finding-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.health-finding-message {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.runtime-worker-empty {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.troubleshooting-issue-list {
    display: grid;
    gap: 12px;
}

.troubleshooting-issue {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.troubleshooting-issue-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.troubleshooting-issue-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
}

.troubleshooting-error-block {
    padding: 12px 14px;
    border-color: color-mix(in srgb, var(--error-text) 16%, var(--border));
    background: color-mix(in srgb, var(--error-bg) 26%, var(--surface-soft));
    font-size: 12px;
    line-height: 1.5;
}

.troubleshooting-table {
    table-layout: auto;
}

.troubleshooting-table td {
    overflow-wrap: normal;
}

.troubleshooting-table .workflow-name {
    font-size: 14px;
}

.troubleshooting-step-name {
    font-size: 14px;
}

.troubleshooting-table .item-code,
.troubleshooting-table .run-id {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.troubleshooting-table .system-chip {
    min-height: 24px;
    padding: 0 10px;
    font-size: 12px;
}

.troubleshooting-table .error-count {
    min-width: 32px;
    min-height: 28px;
    padding: 0 8px;
}

.troubleshooting-table .metric-value {
    white-space: nowrap;
}

.troubleshooting-table .troubleshooting-error-block {
    min-width: 220px;
}

@media (max-width: 900px) {
    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tr:first-child td {
        border-top: none;
    }

    td {
        padding: 10px 16px;
    }

    td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .fluxx-topbar,
    .fluxx-topbar-main,
    .fluxx-nav,
    .fluxx-topbar-actions,
    .header-actions,
    .header-tools,
    .runtime-status,
    .section-tabs,
    .pagination,
    .home-grid,
    .definition-grid,
    .step-definition-list,
    .payload-grid {
        width: 100%;
    }

    .fluxx-topbar {
        align-items: stretch;
    }

    .fluxx-topbar-main {
        align-items: stretch;
    }

    .fluxx-brand-logo {
        height: 30px;
        max-width: min(140px, 42vw);
    }

    .fluxx-topbar-actions {
        justify-content: space-between;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-tools,
    .search-form,
    .run-filter-actions {
        justify-content: flex-start;
    }

    .runtime-status {
        justify-content: flex-start;
    }

    .search-input {
        min-width: 0;
        width: 100%;
    }

    .section-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .runtime-overview-grid {
        grid-template-columns: 1fr;
    }

    .health-layout {
        grid-template-columns: 1fr;
    }

    .health-panel,
    .health-panel-left {
        min-height: 0;
    }

    .troubleshooting-issue-meta {
        justify-items: start;
    }

    .definition-grid,
    .step-definition-list,
    .payload-grid,
    .run-filter-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step-flow-row,
    .execution-step-flow-column {
        grid-template-columns: 1fr;
    }

    .workflow-step-flow,
    .execution-step-flow {
        grid-template-columns: 1fr;
    }

    .workflow-step-flow-lines,
    .execution-step-flow-lines {
        display: none;
    }

    .workflow-step-flow-card,
    .step-status-link {
        grid-column: 1 / -1 !important;
    }

    .section-card {
        padding: 18px;
    }
}
