:root {
    /* Shared design tokens. New UI uses these and the components in docs/ui-design-system.md. */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --control-height: 34px;
    --control-height-compact: 28px;
    --control-height-dense: 22px;
    --font-size-field: 11px;
    --font-size-field-compact: 10px;
    --font-size-caption: 12px;
    --font-size-body: 14px;
    --font-size-heading: 30px;
    --font-size-heading-small: 24px;
    --font-size-metric: 26px;
    --radius-surface: 18px;
    --radius-section: 14px;
    --radius-control: 10px;
    --radius-compact: 8px;
    --field-height: var(--control-height);
    --field-font-size: var(--font-size-field);
    color-scheme: light;
    font-family: Inter, "Segoe UI", sans-serif;
    color: #172033;
    background: #f4f7fb;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scrollbar-gutter: stable; }
body { background: #f4f7fb; }
a { color: #315fc5; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { background: #17233b; color: #fff; padding: 22px 16px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 25px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #4f7be6; font-weight: 800; }
.brand div { display: grid; line-height: 1.05; }
.brand div span { color: #aebbd4; font-size: 13px; }
.nav-menu { display: grid; gap: 4px; }
.nav-menu a { color: #cbd5e7; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: #293957; }
.nav-menu a.active { box-shadow: inset 3px 0 #6d92ed; }
.nav-group { margin: 18px 12px 6px; color: #7f91b3; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.page-shell { min-width: 0; }
.topbar { min-height: 72px; display: flex; align-items: center; padding: 12px 30px; background: #fff; border-bottom: 1px solid #e2e7f0; }
.topbar div { display: grid; }
.workspace-topbar { justify-content: space-between; gap: 24px; }
.workspace-page { display: contents; }
.target-workspace-picker select { width: clamp(180px, 22vw, 340px); text-overflow: ellipsis; }
.version-workspace-picker { display: flex; gap: 10px; align-items: center; color: #64748b; font-size: 12px; font-weight: 700; }
.version-workspace-picker select { min-width: 150px; padding: 9px 34px 9px 12px; color: #0f2f55; background: #eef4f9; border: 1px solid #d7e1ea; border-radius: 9px; font: inherit; cursor: pointer; }
.test-case-catalog { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.test-case-tree { position: sticky; top: 18px; max-height: calc(100vh - 110px); overflow: hidden; }
.test-case-toolbar { display: grid; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; }
.compact-check { display: flex; gap: 8px; align-items: center; color: #64748b; font-size: 12px; }
.test-case-folder-list { max-height: calc(100vh - 260px); padding: 10px; overflow: auto; }
.test-case-folder-group h3 { display: flex; gap: 7px; align-items: center; margin: 10px 6px 7px; color: #617083; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.test-case-category-header {
    display: grid;
    grid-template-columns: 24px 16px minmax(0, 1fr) auto 28px;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 7px 6px 7px calc(6px + var(--category-depth, 0) * 17px);
    color: #52647b;
    font-size: 12px;
}
.test-case-category-header > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-case-category-toggle,
.test-case-category-add {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    color: #718096;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.test-case-category-toggle:hover,
.test-case-category-add:hover { color: #214f88; background: #e8f1f9; }
.test-case-category-toggle i { font-size: 9px; }
.test-case-category-add { opacity: 0; }
.test-case-category-header:hover .test-case-category-add,
.test-case-category-add:focus-visible { opacity: 1; }
.test-case-category-count {
    min-width: 24px;
    padding: 2px 7px;
    color: #63748a;
    text-align: center;
    background: #e8edf3;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}
.test-case-category-toggle-spacer { width: 24px; }
.test-case-category-node > .test-case-nav-item { padding-left: calc(11px + var(--category-depth, 0) * 17px); }
.test-case-nav-item { display: grid; gap: 4px; width: 100%; margin-bottom: 5px; padding: 10px 11px; color: #24364b; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.test-case-nav-item:hover { background: #f4f8fb; }
.test-case-nav-item.active { background: #edf5fc; border-color: #bed7ec; }
.test-case-nav-item.excluded { opacity: .58; }
.test-case-nav-item > span { display: flex; align-items: center; justify-content: space-between; }
.test-case-nav-item strong { font-size: 13px; }
.test-case-nav-item small { color: #7a899a; }
.test-case-detail { display: grid; gap: 18px; min-width: 0; }
.test-case-detail .test-case-editor-tabs { margin-bottom: 0; }
.test-case-inherited-note { display: flex; gap: 9px; align-items: center; margin: 0; padding: 10px 13px; font-size: 12px; }
.test-case-scope-strip.editable { align-items: end; }
.test-case-scope-strip.editable .test-case-scope-item { gap: 6px; min-width: 210px; }
.test-case-scope-strip.editable .form-control { min-width: 190px; color: #173b63; background-color: #fff; font-weight: 700; }
.test-case-scope-edit {
    display: grid;
    width: 34px;
    height: 34px;
    align-self: center;
    padding: 0;
    place-items: center;
    color: #35698f;
    background: #eef5fa;
    border: 1px solid #d2e1ec;
    border-radius: 9px;
    cursor: pointer;
}
.test-case-scope-edit:hover { color: #114c78; background: #e1eef7; border-color: #b9d1e2; }
.test-case-scope-edit.cancel { color: #7a5860; background: #f8f1f2; border-color: #ead7da; }
.test-case-category-picker { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; }
.test-case-category-picker .button { min-width: 42px; padding: 0; }
.ui-element-catalog-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.ui-element-group-tree { position: sticky; top: 18px; max-height: calc(100vh - 110px); overflow: hidden; }
.ui-element-group-list { padding: 8px; }
.ui-element-group-filter {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: #52647b;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
}
.ui-element-group-filter:hover,
.ui-element-group-filter.active { color: #173b63; background: #edf5fc; border-color: #bed7ec; }
.ui-element-group-filter > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-element-group-filter > span { min-width: 24px; padding: 2px 7px; text-align: center; background: #e8edf3; border-radius: 999px; font-size: 10px; font-weight: 750; }
.ui-element-group-tree .test-case-category-header.active { color: #173b63; background: #edf5fc; }
.ui-element-group-name { overflow: hidden; padding: 0; color: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; background: transparent; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.ui-element-group-tree .test-case-folder-list { max-height: calc(100vh - 245px); overflow: auto; }
.ui-element-group-backdrop { z-index: 60; }
@media (max-width: 1050px) {
    .ui-element-catalog-layout { grid-template-columns: 1fr; }
    .ui-element-group-tree { position: static; max-height: none; }
    .ui-element-group-tree .test-case-folder-list { max-height: 360px; }
}
.test-case-tab-content { display: grid; gap: 14px; }
.test-case-step-editor { display: grid; gap: 10px; margin-top: 18px; }
.test-case-step-block { display: grid; gap: 10px; }
.test-case-shared-step-group { display: grid; overflow: hidden; gap: 0; background: #fff; border: 1px solid #bdd3e7; border-radius: 12px; box-shadow: 0 5px 16px #173b6310; }
.test-case-shared-step-header { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 9px 12px; color: #183d65; background: #eaf3fb; border-bottom: 1px solid #c8dceb; }
.test-case-shared-step-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; color: #165d97; background: #fff; border: 1px solid #c7daeb; border-radius: 8px; }
.test-case-shared-step-title { display: grid; flex: 1 1 auto; gap: 1px; min-width: 170px; }
.test-case-shared-step-title small { color: #68819a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.test-case-shared-step-title strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.test-case-shared-step-title a { display: inline-flex; gap: 6px; align-items: center; overflow: hidden; width: max-content; max-width: 100%; color: #174f80; font-size: 13px; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.test-case-shared-step-title a:hover { color: #0c6cad; text-decoration: underline; }
.test-case-shared-step-title a i { flex: 0 0 auto; font-size: 9px; opacity: .7; }
.test-case-shared-step-header .soft-pill { flex: 0 0 auto; background: #fff; }
.test-case-shared-synced, .test-case-shared-update { display: inline-flex; gap: 5px; align-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 750; }
.test-case-shared-synced { color: #24704b; }
.test-case-shared-update { color: #9a5a00; }
.test-case-shared-step-header .button { flex: 0 0 auto; min-height: 30px; }
.test-case-shared-step-group .test-case-edit-step { margin: 0 10px; background: #fff; border: 0; border-bottom: 1px solid #e4ebf1; border-radius: 0; }
.test-case-shared-step-group .test-case-edit-step:last-child { border-bottom: 0; }
.test-case-edit-step.shared textarea[readonly] { color: #344556; background: #fbfcfd; cursor: default; }
.test-case-step-heading-actions { display: flex; gap: 8px; align-items: center; }
.shared-step-catalog { display: grid; gap: 16px; max-width: 1190px; margin: 0 auto; }
.shared-step-catalog-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px; }
.shared-step-catalog-summary h2 { margin: 2px 0 3px; }
.shared-step-catalog-summary p { margin: 0; color: #6a7883; }
.shared-step-catalog-icon { display: grid; width: 46px; height: 46px; place-items: center; color: #175d96; background: #e8f2fb; border-radius: 12px; font-size: 18px; }
.shared-step-library-panel { overflow: hidden; }
.shared-step-library-panel .panel-header { align-items: center; }
.shared-step-search { width: min(320px, 40vw); }
.shared-step-catalog-list { display: grid; }
.shared-step-catalog-row { display: grid; grid-template-columns: 36px minmax(240px, 1fr) 88px 100px auto auto; gap: 14px; align-items: center; min-height: 72px; padding: 11px 16px; border-top: 1px solid #e1e7eb; }
.shared-step-catalog-row:first-child { border-top: 0; }
.shared-step-catalog-row:hover { background: #f8fbfd; }
.shared-step-row-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #1c6098; background: #eaf3fb; border-radius: 9px; }
.shared-step-row-main, .shared-step-catalog-row > span:not(.soft-pill), .shared-step-picker-row > span:nth-child(2) { display: grid; gap: 2px; }
.shared-step-catalog-row small, .shared-step-picker-row small { color: #778690; font-size: 10px; }
.shared-step-catalog-modal { width: min(1100px, calc(100vw - 40px)); max-height: calc(100vh - 40px); }
.shared-step-catalog-editor { display: grid; gap: 16px; overflow: auto; }
.shared-step-editor-list { display: grid; gap: 10px; }
.shared-step-picker-modal { width: min(760px, calc(100vw - 40px)); }
.shared-step-picker-body { display: grid; gap: 12px; min-height: 260px; }
.shared-step-picker-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.shared-step-picker-list { display: grid; gap: 7px; max-height: 430px; overflow: auto; }
.shared-step-picker-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto 18px; gap: 10px; align-items: center; width: 100%; padding: 10px; color: #304354; text-align: left; background: #fff; border: 1px solid #dce5eb; border-radius: 10px; cursor: pointer; }
.shared-step-picker-row:hover { background: #f5f9fc; border-color: #b9cee0; }
.shared-step-picker-row.active { color: #123e67; background: #eaf3fb; border-color: #6e9fc7; box-shadow: inset 0 0 0 1px #6e9fc7; }
.shared-step-picker-check { color: #24704b; opacity: 0; }
.shared-step-picker-row.active .shared-step-picker-check { opacity: 1; }
.test-case-edit-step { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.test-case-edit-step.has-validation-error { background: #fff5f5; border-color: #e79aa4; box-shadow: inset 3px 0 #cf4054; }
.test-case-edit-step.has-validation-error .step-number { color: #fff; background: #c9364c; box-shadow: 0 0 0 3px #f8dce1; }
.test-case-edit-step .field-invalid > span { color: #a82f42; }
.test-case-edit-step .field-invalid .form-control { border-color: #d85b6e; background: #fffafa; box-shadow: 0 0 0 2px #d85b6e18; }
.field-validation-error { color: #b63146 !important; font-size: 11px; font-weight: 750; }
.test-case-editor-tabs button.has-validation-error { color: #9f2639; background: #fff3f4; box-shadow: inset 0 0 0 1px #df8492; }
.test-case-editor-tabs button.active.has-validation-error { color: #8f1f32; background: #fff; box-shadow: inset 0 0 0 2px #cf4054, 0 4px 12px #8c243016; }
.step-number { display: grid; width: 28px; height: 28px; place-items: center; color: #0b4d80; background: #e6f0fa; border-radius: 999px; font-size: 12px; font-weight: 800; }
.test-case-step-actions { display: flex; gap: 4px; align-items: center; padding-top: 27px; }
.test-case-step-actions > button { display: grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; place-items: center; color: #52647b; background: #fff; border: 1px solid #d8e0ea; border-radius: 7px; cursor: pointer; }
.test-case-step-actions > button:hover:not(:disabled) { color: #214f88; background: #edf5ff; border-color: #99b5d7; }
.test-case-step-actions > button:disabled { opacity: .35; cursor: default; }
.test-case-edit-step textarea {
    field-sizing: content;
    min-height: 4rem;
    max-height: 28rem;
    line-height: 1.45;
    resize: vertical;
}
.relation-panel { overflow: hidden; border-radius: 18px !important; }
.relation-panel > .panel-header { border-radius: 17px 17px 0 0; }
.relation-tabbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px; background: #edf2f5; border-bottom: 1px solid #dfe6e9; }
.relation-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.relation-tab-add { align-self: stretch; white-space: nowrap; }
.relation-tab { display: flex; gap: 8px; align-items: center; min-width: 0; min-height: 44px; padding: 9px 14px; color: #65747b; background: transparent; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.relation-tab:hover { color: #183a5e; background: #f7fafb; }
.relation-tab.active { color: #0a2c52; background: #fff; border-color: #d9e2e8; box-shadow: 0 4px 14px #23456212; }
.relation-tab i { flex: 0 0 auto; }
.relation-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relation-tab small { display: inline-grid; min-width: 22px; height: 22px; margin-left: auto; place-items: center; padding: 0 6px; color: #62717b; background: #e3eaee; border-radius: 999px; font-size: 10px; }
.relation-tab.active small { color: #0a2c52; background: #e8f1f9; }
.relation-tab-content { min-height: 128px; border-radius: 0 0 17px 17px; }
.relation-column { min-width: 0; }
.relation-column h3 { margin: 0 0 10px; font-size: 14px; }
.relation-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 13px 14px; background: #fbfcfd; border: 1px solid #e2e8f0; border-radius: 12px; }
.relation-row + .relation-row { margin-top: 6px; }
.relation-row span { display: grid; min-width: 0; }
.relation-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.relation-row small { color: #7a899a; }
.relation-main { display: grid; flex: 1; gap: 5px; min-width: 0; }
.relation-title { display: flex; gap: 9px; align-items: center; min-width: 0; }
.relation-title small { flex: 0 0 auto; padding: 2px 7px; background: #edf2f7; border-radius: 999px; font-size: 10px; }
.relation-target { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.relation-run { display: flex; gap: 7px; align-items: center; min-height: 22px; color: #7a899a; font-size: 11px; }
.relation-run > span { display: inline; }
.relation-run .status-badge { font-size: 9px; }
.relation-run time { color: #64748b; }
.relation-never-run { display: inline-flex !important; gap: 6px; align-items: center; }
.relation-never-run i { font-size: 8px; }
.relation-run-guidance { display: flex; gap: 6px; align-items: center; color: #9a5b16; font-size: 11px; font-weight: 650; }
.relation-run-guidance i { color: #c47a24; }
.relation-actions { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; }
.relation-modal-body { height: min(360px, 52vh); align-content: start; }
.relation-modal-body .relation-picker { min-width: 0; }
.relation-modal .relation-picker-menu { position: static; margin-top: 8px; }
.relation-picker-loading { display: grid; gap: 8px; }
.relation-picker-loading-search,
.relation-picker-loading-row span,
.relation-picker-loading-row small {
    background: linear-gradient(90deg, #e8edef 25%, #f5f7f8 50%, #e8edef 75%);
    background-size: 200% 100%;
    animation: relation-loading-shimmer 1.2s ease-in-out infinite;
}
.relation-picker-loading-search { height: 44px; border-radius: 10px; }
.relation-picker-loading-row { display: grid; gap: 7px; min-height: 55px; padding: 10px 11px; background: #fff; border: 1px solid #e1e7e9; border-radius: 8px; }
.relation-picker-loading-row span { width: min(72%, 360px); height: 12px; border-radius: 999px; }
.relation-picker-loading-row small { width: min(48%, 240px); height: 9px; border-radius: 999px; }
@keyframes relation-loading-shimmer { to { background-position: -200% 0; } }
.relation-picker { position: relative; }
.relation-picker-input { position: relative; }
.relation-picker-input > i { position: absolute; z-index: 1; top: 50%; left: 13px; color: #8a98a8; font-size: 12px; transform: translateY(-50%); pointer-events: none; }
.relation-picker-input .form-control { width: 100%; padding-left: 35px; padding-right: 36px; }
.relation-picker-clear { position: absolute; top: 50%; right: 8px; display: grid; width: 25px; height: 25px; padding: 0; place-items: center; color: #718096; background: transparent; border: 0; border-radius: 7px; transform: translateY(-50%); cursor: pointer; }
.relation-picker-clear:hover { color: #173b63; background: #edf2f7; }
.relation-picker-menu { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; left: 0; max-height: 310px; overflow: auto; padding: 5px; background: #fff; border: 1px solid #d7e1e9; border-radius: 11px; box-shadow: 0 16px 36px #19324f24; }
.relation-picker-menu > button { display: grid; gap: 3px; width: 100%; padding: 9px 11px; color: #203247; text-align: left; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.relation-picker-menu > button:hover, .relation-picker-menu > button[aria-selected="true"] { background: #edf5fc; }
.relation-picker-menu > button strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.relation-picker-menu > button small { overflow: hidden; color: #718096; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.relation-picker-empty, .relation-picker-hint { padding: 10px 11px; color: #7a899a; font-size: 11px; }
.relation-picker-hint { border-top: 1px solid #edf1f5; }
.checkbox-stack { display: grid; gap: 10px; }
.checkbox-stack label { display: flex; gap: 9px; align-items: center; }
@media (max-width: 1050px) { .test-case-catalog { grid-template-columns: 1fr; } .test-case-tree { position: static; max-height: none; } .test-case-folder-list { max-height: 360px; } }
@media (max-width: 760px) { .test-case-edit-step { grid-template-columns: 32px minmax(0, 1fr); } .test-case-edit-step .form-field { grid-column: 2; } .test-case-step-actions { grid-column: 2; padding-top: 0; } .test-case-shared-step-header { flex-wrap: wrap; } .test-case-shared-step-title { min-width: calc(100% - 42px); } .test-case-step-heading-actions { flex-wrap: wrap; justify-content: flex-end; } .shared-step-catalog-summary { grid-template-columns: 48px minmax(0, 1fr); } .shared-step-catalog-summary > .soft-pill { grid-column: 2; justify-self: start; } .shared-step-library-panel .panel-header { align-items: stretch; flex-direction: column; } .shared-step-search { width: 100%; } .shared-step-catalog-row { grid-template-columns: 36px minmax(0, 1fr) auto; } .shared-step-catalog-row > span:not(.shared-step-row-icon, .soft-pill), .shared-step-catalog-row > .soft-pill { display: none; } .shared-step-picker-toolbar { grid-template-columns: 1fr; } .shared-step-picker-row { grid-template-columns: 36px minmax(0, 1fr) 18px; } .shared-step-picker-row .soft-pill { display: none; } .version-workspace-picker span { display: none; } }
@media (max-width: 760px) { .relation-row { align-items: stretch; flex-direction: column; } .relation-actions { flex-wrap: wrap; } }
@media (max-width: 680px) { .relation-tabbar { grid-template-columns: 1fr; } .relation-tabs { grid-template-columns: 1fr; } .relation-tab { min-height: 40px; } }

/* Scalable relation catalog */
.release-modal.relation-modal { width: min(780px, calc(100vw - 40px)); max-width: 780px; }
.relation-modal .relation-modal-body { height: min(590px, 68vh); min-height: 430px; padding: 18px 22px; overflow: hidden; }
.relation-modal-body .relation-picker { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); height: 100%; }
.relation-picker-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(120px, .7fr) auto; gap: 9px; align-items: end; margin-top: 12px; }
.relation-picker-toolbar label { display: grid; gap: 5px; min-width: 0; color: #67778a; font-size: 10px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.relation-picker-toolbar .form-control { width: 100%; height: 38px; padding: 7px 30px 7px 10px; color: #26394e; background-color: #f8fafc; font-size: 12px; text-transform: none; letter-spacing: normal; }
.relation-picker-reset { display: inline-flex; gap: 6px; align-items: center; justify-content: center; height: 38px; padding: 0 11px; color: #536579; white-space: nowrap; background: transparent; border: 1px solid #d9e2e9; border-radius: 9px; font-size: 11px; font-weight: 700; cursor: pointer; }
.relation-picker-reset:hover { color: #113b64; background: #eef5fb; border-color: #c7d8e6; }
.relation-picker-summary { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 8px 2px 6px; color: #718096; font-size: 11px; }
.relation-picker-summary strong { color: #26394e; }
.relation-picker-busy { display: inline-flex; gap: 6px; align-items: center; color: #416989; }
.relation-modal .relation-picker-menu { min-height: 0; max-height: none; margin: 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: inset 0 1px 2px #20364b08; scrollbar-gutter: stable; }
.relation-picker-menu > button { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; min-height: 58px; padding: 9px 12px; border: 1px solid transparent; }
.relation-picker-menu > button:hover,
.relation-picker-menu > button.active,
.relation-picker-menu > button[aria-selected="true"] { background: #eef6fc; border-color: #d4e5f2; }
.relation-picker-result-main { display: grid; gap: 5px; min-width: 0; }
.relation-picker-result-main strong { font-size: 12px; }
.relation-picker-result-main small { font-size: 10px; }
.relation-picker-status { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.relation-picker-status.active { color: #1f6a47; background: #e7f5ed; }
.relation-picker-status.inactive { color: #7b5960; background: #f4ecee; }
.relation-picker-check { color: #2b6b9f; font-size: 11px; }
.relation-picker-menu > .relation-picker-more { display: flex; grid-template-columns: none; gap: 7px; align-items: center; justify-content: center; min-height: 42px; margin-top: 4px; color: #255b86; background: #f4f8fb; border-top-color: #e0e9ef; font-size: 11px; font-weight: 750; }
.relation-picker-empty { display: grid; gap: 7px; min-height: 180px; place-content: center; justify-items: center; text-align: center; }
.relation-picker-empty i { color: #a3b0bc; font-size: 22px; }
.relation-picker-empty strong { color: #44566a; font-size: 12px; }
.relation-picker-result-skeleton { display: grid; gap: 8px; min-height: 58px; padding: 12px; }
.relation-picker-result-skeleton span,
.relation-picker-result-skeleton small { height: 10px; background: linear-gradient(90deg, #e8edef 25%, #f5f7f8 50%, #e8edef 75%); background-size: 200% 100%; border-radius: 999px; animation: relation-loading-shimmer 1.2s ease-in-out infinite; }
.relation-picker-result-skeleton span { width: min(65%, 360px); }
.relation-picker-result-skeleton small { width: min(42%, 240px); height: 8px; }
@media (max-width: 700px) {
    .release-modal.relation-modal { width: min(100%, calc(100vw - 20px)); }
    .relation-modal .relation-modal-body { min-height: 0; height: min(620px, 72vh); padding: 14px; overflow: auto; }
    .relation-modal-body .relation-picker { height: auto; min-height: 100%; }
    .relation-picker-toolbar { grid-template-columns: 1fr 1fr; }
    .relation-picker-reset { align-self: end; }
    .relation-modal .relation-picker-menu { min-height: 260px; max-height: 360px; }
}
.eyebrow { color: #7888a4; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.content { max-width: 1380px; margin: 0 auto; padding: 28px 30px 60px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-header h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.page-header p { margin: 7px 0 0; color: #687891; }
.page-actions { display: flex; align-items: center; gap: 10px; }

.panel { background: #ffffffd9; border: 1px solid #e1e6ef; border-radius: 18px; box-shadow: 0 14px 45px #1a2a4a0c; backdrop-filter: blur(10px); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid #e8ecf3; }
.panel-header h2 { margin: 0; font-size: 17px; }
.panel-body { padding: 22px; }
.stack { display: grid; gap: 20px; }
.two-column { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.load-failure-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.load-failure-totals > div { display: grid; gap: 4px; padding: 14px; border: 1px solid #dce5ef; border-radius: 10px; background: #f7faff; }
.load-failure-totals strong { font-size: 24px; color: #253f64; }
.load-failure-totals span { font-size: 13px; color: #596b83; }
.load-failure-filter { display: grid; gap: 5px; max-width: 360px; margin: 20px 0; }
.load-failure-groups { display: grid; gap: 16px; }
.load-failure-card { border: 1px solid #dce5ef; border-radius: 12px; padding: 18px; overflow-wrap: anywhere; }
.load-failure-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.load-failure-card-heading h3 { margin: 7px 0; }
.load-failure-card-heading .soft-pill { flex-shrink: 0; }
.load-failure-check { padding: 12px 14px; background: #eff5ff; border-left: 3px solid #5688d8; border-radius: 4px; margin: 12px 0; }
.load-failure-check p { margin: 5px 0 0; }
.load-failure-card pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f5f7fa; padding: 12px; }
.load-failure-card .load-step-report-links { margin: 14px 0 8px; }
@media (max-width: 700px) { .load-failure-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .load-failure-card-heading { flex-wrap: wrap; } }
.load-pdf-download { display: grid; gap: 6px; justify-items: end; margin-left: auto; }
.load-pdf-download > small { color: #a82535; max-width: 340px; }
.load-pdf-download > button { white-space: nowrap; }
.load-test-layout { grid-template-columns: minmax(340px, .8fr) minmax(0, 1.5fr); }
.load-test-layout small { display: block; margin-top: 3px; }
.load-test-layout td > small { display: block; }
.load-report-overview { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; align-items: stretch; margin-bottom: 14px; }
.load-report-summary { overflow: hidden; margin: 0; background: #fff; border: 1px solid #e0e6f0; border-radius: 12px; box-shadow: 0 8px 24px #1a2a4a08; }
.load-report-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; }
.load-report-overview .load-report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.load-report-overview .load-report-stats .stat-card:nth-child(4) { border-left: 0; }
.load-report-overview .load-report-stats .stat-card:nth-child(n+4) { border-top: 1px solid #edf0f4; }
.load-report-stats + .load-report-stats { border-top: 1px solid #e8ecf3; }
.load-report-stats .stat-card { min-width: 0; padding: 7px 12px 6px; background: transparent; border: 0; border-left: 1px solid #edf0f4; border-radius: 0; box-shadow: none; }
.load-report-stats .stat-card:first-child { border-left: 0; }
.load-report-stats .stat-card strong { overflow: hidden; font-size: 19px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.load-report-stats .stat-card span { display: block; margin-top: 2px; font-size: 10px; line-height: 1.2; }
.load-verification-panel { overflow: hidden; margin: 0; }
.load-verification-panel .panel-header { padding: 11px 18px; }
.load-verification-panel .panel-header h2 { font-size: 14px; }
.load-verification-panel .panel-body { padding: 11px 18px 12px; }
.load-verification-panel .alert { padding: 7px 10px; font-size: 12px; }
.load-verification-panel .version-metrics { gap: 6px; }
.load-verification-panel .version-metrics article { padding: 7px 10px; border-radius: 7px; }
.load-verification-panel .version-metrics strong { font-size: 18px; line-height: 1.15; }
.load-verification-panel .version-metrics span { font-size: 10px; }
.load-verification-panel .panel-body > p { margin: 9px 0 0; font-size: 11px; }
.panel.load-items-panel { overflow: hidden; border-radius: 18px; }
.load-items-panel > .panel-header:first-child { border-radius: 17px 17px 0 0; }
.load-latency-stats { margin-top: 0; }
.load-findings-panel { margin-bottom: 20px; overflow: hidden; }
.load-finding-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 22px 22px; }
.load-finding-group { overflow: hidden; border: 1px solid #e1e7ef; border-left-width: 4px; border-radius: 12px; }
.load-finding-group.loss { border-left-color: #c84958; }
.load-finding-group.difference { border-left-color: #d68a23; }
.load-finding-group.infrastructure { border-left-color: #72839f; }
.load-finding-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px; background: #f8fafc; border-bottom: 1px solid #e8ecf3; }
.load-finding-group-head > div { display: grid; gap: 3px; }
.load-finding-group-head > div > strong { font-size: 14px; }
.load-finding-group-head small { color: #71809a; font-family: Consolas, monospace; }
.load-finding-group-head > strong { display: grid; place-items: center; min-width: 30px; height: 30px; color: #263650; background: #e8edf5; border-radius: 50%; }
.load-finding-examples { display: grid; }
.load-finding-examples > button { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.4fr) auto; gap: 10px; padding: 10px 14px; text-align: left; color: inherit; background: #fff; border: 0; border-bottom: 1px solid #edf0f5; cursor: pointer; }
.load-finding-examples > button:hover { background: #f7f9fc; }
.load-finding-examples > button span { font-weight: 700; }
.load-finding-examples > button small { color: #65748b; }
.load-finding-examples > button code { color: #923d48; white-space: nowrap; }
.load-finding-examples > small { padding: 9px 14px; color: #71809a; }
.load-report-filters { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(190px, .8fr) minmax(170px, .7fr) minmax(180px, .7fr); gap: 14px; align-items: end; border-bottom: 1px solid #e8ecf3; }
.load-report-column-chooser { display: grid; gap: 14px; padding: 16px 20px; background: #f9fafc; border-bottom: 1px solid #e8ecf3; }
.load-report-column-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.load-report-column-heading > div { display: grid; gap: 3px; }
.load-report-column-heading small { color: #71809a; }
.load-report-column-options { display: flex; flex-wrap: wrap; gap: 8px; }
.load-report-column-options label { display: inline-flex; gap: 7px; align-items: center; min-height: 34px; padding: 6px 10px; background: #fff; border: 1px solid #dfe5ee; border-radius: 8px; color: #344258; font-size: 13px; font-weight: 650; cursor: pointer; }
.load-report-column-options label:has(input:checked) { background: #edf4ff; border-color: #9cb8e8; color: #234f9b; }
.load-report-column-options label small { color: #71809a; font-weight: 500; }
.load-item-timestamp { white-space: nowrap; }
.load-item-identity { overflow-wrap: anywhere; }
.load-item-identity > strong, .load-item-identity > small { display: block; }
.load-item-identity > small { margin-top: 3px; color: #71809a; }
.load-item-timestamp strong, .load-item-timestamp small { display: block; }
.load-item-timestamp small { margin-top: 3px; color: #71809a; }
.load-finding-result { background: #fff8f1; }
.load-test-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .65fr); gap: 20px; align-items: start; }
.load-test-filter-panel { margin-bottom: 20px; }
.load-test-filter-grid { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(250px, 1fr) minmax(160px, .65fr) minmax(190px, .7fr); gap: 14px; align-items: end; }
.load-test-filter-summary { display: grid; gap: 3px; min-height: 42px; padding: 7px 12px; border-left: 1px solid #e1e7f0; }
.load-test-filter-summary small, .panel-header small { color: #71809a; }
.load-test-table td { vertical-align: middle; }
.load-test-table td:first-child { min-width: 220px; }
.load-test-created-at { white-space: nowrap; }
.load-test-run-action { display: grid; gap: 5px; justify-items: end; min-width: 180px; }
.load-test-run-action > small { max-width: 240px; text-align: right; }
.table-primary-link { color: #172033; font-weight: 750; text-decoration: none; }
.table-primary-link:hover { color: #315fc5; text-decoration: underline; }
.load-test-latest-run { display: inline-grid; gap: 5px; text-decoration: none; }
.load-test-latest-run small { color: #71809a; }
.load-test-editor { overflow: hidden; }
.load-workflow-selection { display: flex; align-items: flex-end; gap: 12px; }
.load-workflow-selection > .form-field { flex: 1; min-width: 0; }
.load-workflow-selection > .button { flex-shrink: 0; min-height: 44px; }
.workflow-details-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dce5ef; border-radius: 20px; color: #172b43; background: #fff; box-shadow: 0 24px 80px #0c22384d; }
.workflow-details-dialog::backdrop { background: #0b1c3499; }
.workflow-details-content { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: min(850px, calc(100dvh - 36px)); }
.workflow-details-dialog .release-modal-header { background: #f7faff; border-color: #e1e8f0; }
.workflow-details-dialog .release-modal-header > div { min-width: 0; }
.workflow-details-dialog h3 { overflow-wrap: anywhere; }
.workflow-details-dialog .release-modal-header > button { flex-shrink: 0; }
.workflow-details-dialog .release-modal-footer { flex-wrap: wrap; border-color: #e1e8f0; background: #f8fafc; }
.workflow-details-body { align-content: start; }
.workflow-details-body.is-steps { overflow: hidden; }
.workflow-preview-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; min-height: 0; height: 100%; }
.workflow-preview-step-list { display: block; min-width: 0; min-height: 0; overflow-y: auto; border: 1px solid #e1e7ef; border-radius: 10px; align-self: stretch; }
.workflow-preview-step-list > h4 { position: sticky; top: 0; z-index: 1; margin: 0 !important; padding: 14px; background: #f7f9fc; border-bottom: 1px solid #e1e7ef; }
.workflow-preview-step { display: flex; flex-shrink: 0; gap: 10px; width: 100%; height: auto; padding: 12px; border: 0; border-bottom: 1px solid #e8edf4; color: #263b51; background: #fff; text-align: left; line-height: 1.4; cursor: pointer; }
.workflow-preview-step > span:last-child { display: grid; gap: 5px; min-width: 0; }
.workflow-preview-step strong { font-size: 12px; overflow-wrap: anywhere; }
.workflow-preview-step small, .workflow-preview-step code { color: #718098; font-size: 10px; }
.workflow-preview-step.selected { background: #edf4ff; box-shadow: inset 3px 0 #285fc4; }
.workflow-preview-step:hover { background: #f3f7fc; }
.workflow-preview-step.is-disabled { opacity: .65; }
.workflow-inspector { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; min-width: 0; border: 1px solid #e1e7ef; border-radius: 10px; overflow: hidden; }
.workflow-inspector-heading { display: block; padding: 14px 16px; }
.workflow-inspector-heading h4 { overflow-wrap: anywhere; }
.workflow-inspector-body { display: grid; align-content: start; gap: 12px; min-height: 0; padding: 14px; overflow-y: auto; }
.workflow-inspect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.workflow-inspect-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.workflow-inspect-field.full { grid-column: 1 / -1; }
.workflow-inspect-field > span { color: #718098; font-size: 11px; }
.workflow-inspect-field > strong { font-size: 12px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-details-body pre { max-width: 100%; margin: 0; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f7fb; border-radius: 6px; font-size: 11px; line-height: 1.55; }
.workflow-inspect-item { display: grid; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf1f6; }
.workflow-inspect-item:first-of-type { padding-top: 0; }
.workflow-inspect-item:last-child { padding-bottom: 0; border: 0; }
.workflow-inspect-pairs { display: grid; gap: 8px; }
.workflow-inspect-pairs > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 10px; align-items: start; font-size: 12px; }
.workflow-preview-run { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid #e1e7ef; border-radius: 8px; color: #263b51; background: #fff; text-align: left; cursor: pointer; }
.workflow-preview-run:hover { background: #edf4ff; }
@media (max-width: 800px) {
    .workflow-preview-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px minmax(0, 1fr); gap: 10px; }
    .workflow-inspect-grid { grid-template-columns: minmax(0, 1fr); }
    .workflow-inspect-pairs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.workflow-details-description { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.workflow-details-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 16px; background: #f4f7fb; border-radius: 12px; }
.workflow-details-facts > div { display: grid; gap: 5px; overflow-wrap: anywhere; }
.workflow-details-facts span, .workflow-details-tags, .workflow-detail-next > span { color: #64748b; font-size: 12px; }
.workflow-details-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.workflow-details-body h4 { margin: 0 0 8px; }
.workflow-details-steps { display: grid; gap: 12px; }
.workflow-detail-step { display: grid; gap: 12px; padding: 16px; border: 1px solid #dde6f0; border-radius: 12px; }
.workflow-detail-step.is-disabled { background: #f5f6f8; border-style: dashed; }
.workflow-detail-step > p { margin: 0; white-space: pre-wrap; }
.workflow-detail-step-heading { display: flex; gap: 12px; align-items: flex-start; }
.workflow-detail-step-heading > div { min-width: 0; overflow-wrap: anywhere; }
.workflow-detail-step-heading h4 { margin: 2px 0 0; }
.workflow-detail-order { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #eaf1fd; color: #285fc4; font-weight: 700; }
.workflow-detail-endpoint, .workflow-detail-rule { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.workflow-detail-endpoint { padding: 10px 12px; background: #f3f7fc; border-radius: 8px; }
.workflow-detail-endpoint > strong { color: #265cc4; font-size: 12px; }
.workflow-details-dialog code { overflow-wrap: anywhere; white-space: pre-wrap; }
.workflow-detail-checks summary, .workflow-details-variables summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.workflow-detail-checks ul { display: grid; gap: 10px; margin: 12px 0 0; padding-left: 20px; }
.workflow-detail-checks li > * { display: block; overflow-wrap: anywhere; font-size: 12px; }
.workflow-detail-checks li > span { color: #64748b; margin: 3px 0; }
.workflow-detail-next { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; border-top: 1px solid #edf1f6; font-size: 12px; }
.workflow-details-variables { padding: 14px 16px; border: 1px solid #e1e8f0; border-radius: 12px; }
.workflow-detail-variable { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding-top: 12px; font-size: 12px; }
.workflow-detail-variable > :nth-child(3), .workflow-detail-variable > small { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .load-workflow-selection { align-items: stretch; flex-direction: column; }
    .load-workflow-selection > .button { align-self: flex-start; }
    .workflow-details-dialog .release-modal-header, .workflow-details-dialog .release-modal-body, .workflow-details-dialog .release-modal-footer { padding: 14px; }
    .workflow-details-dialog h3 { font-size: 19px; }
    .workflow-details-facts { grid-template-columns: 1fr; }
    .workflow-detail-step { padding: 12px; }
}
.load-editor-section { display: grid; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid #e5eaf2; }
.load-editor-section:last-of-type { border-bottom: 0; }
.load-section-title { display: flex; gap: 11px; align-items: center; }
.load-section-title > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; color: #fff; background: #3568d4; border-radius: 50%; font-weight: 800; }
.load-section-title > div { display: grid; gap: 2px; }
.load-section-title small, .load-subsection-title small { color: #71809a; }
.load-token-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px 12px; background: #f5f7fb; border: 1px solid #e2e7ef; border-radius: 10px; }
.load-token-strip > span { margin-right: 3px; color: #63728a; font-size: 12px; font-weight: 700; }
.load-token-strip code { padding: 3px 7px; color: #3159ad; background: #e8eefc; border-radius: 6px; }
.load-config-list { display: grid; gap: 10px; }
.load-config-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, .85fr) 130px minmax(240px, 1.25fr) auto; gap: 9px; align-items: end; padding: 12px; background: #f8fafc; border: 1px solid #e1e7f0; border-radius: 12px; }
.load-row-checks { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-height: 42px; }
.load-row-checks label { display: inline-flex; gap: 5px; align-items: center; color: #53627a; font-size: 12px; font-weight: 650; }
.load-add-button { justify-self: start; }
.load-verification-card { display: grid; gap: 14px; padding: 15px; background: #f8fafc; border: 1px solid #dde4ef; border-radius: 13px; }
.load-verification-header { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 9px; align-items: end; }
.load-subsection-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.load-subsection-title > div { display: grid; gap: 3px; }
.load-check-presets { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 7px !important; }
.load-assertion-row { display: grid; grid-template-columns: minmax(150px, .8fr) 150px minmax(220px, 1.2fr); gap: 9px; align-items: center; padding: 11px; background: #fff; border: 1px solid #e1e7ef; border-radius: 10px; }
.load-assertion-row > .button { justify-self: start; }
.load-profile-list, .load-run-list { display: grid; }
.load-profile-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 11px 13px; border-bottom: 1px solid #e7ebf2; }
.load-profile-item:last-child { border-bottom: 0; }
.load-profile-item.selected { background: #eef3ff; }
.load-profile-item > button:first-child { display: grid; gap: 3px; min-width: 0; padding: 0; text-align: left; background: none; border: 0; cursor: pointer; }
.load-profile-item small, .load-run-list small { color: #71809a; }
.load-run-list > a { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid #e7ebf2; }
.load-run-list > a:last-child { border-bottom: 0; }
.load-run-list > a > span:first-child { display: grid; gap: 3px; }
.load-run-list .inline-progress { grid-column: 1 / -1; }
.load-live-panel { margin-bottom: 20px; min-width: 0; }
.load-workspace-tabs { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #dbe4ed; margin: 0 0 24px; overflow-x: auto; }
.load-workspace-tabs > button { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 15px 18px; border: 0; border-bottom: 3px solid transparent; color: #61728a; background: transparent; font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; }
.load-workspace-tabs > button.active { border-bottom-color: #12365b; color: #12365b; background: #f0f5fa; border-radius: 10px 10px 0 0; }
.load-workspace-tabs > button:hover { background: #eef3f8; }
.load-overview-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.load-profile-brief .panel-body { padding: 16px 22px; }
.load-profile-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.load-profile-description { margin: 0 0 16px; color: #53647a; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.load-profile-facts { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 18px; }
.load-profile-facts > div { min-width: 0; }
.load-profile-facts dt { font-size: 11px; color: #708197; margin-bottom: 7px; }
.load-profile-facts dd { margin: 0; font-weight: 650; font-size: 13px; overflow-wrap: anywhere; }
.load-profile-facts .load-profile-stat { padding-left: 18px; border-left: 1px solid #e0e8ef; }
.load-profile-stat dd { font-size: 24px; line-height: 1.2; color: #14375c; font-variant-numeric: tabular-nums; }
.load-profile-stat dd small { font-size: 13px; font-weight: 500; }
.load-profile-verification { margin: 14px 0 0; color: #71818d; font-size: 11px; }
.load-overview-execution { min-width: 0; }
.load-overview-run-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.load-overview-run-meta { font-size: 12px; color: #71809a; font-variant-numeric: tabular-nums; }
.load-overview-history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-top: 1px solid #e0e8ef; }
.load-overview-history-heading h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.load-test-table td:first-child > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 320px; }
.load-history-panel { margin-bottom: 24px; }
.load-history-panel .panel-header { flex-wrap: wrap; gap: 12px; }
.load-history-panel .panel-header small { display: block; margin-top: 5px; color: #708197; }
.load-history-table { width: 100%; min-width: 620px; }
.load-history-table td { padding: 14px 18px; }
.load-history-table td small { display: block; font-size: 10px; }
.load-history-table tr.selected { background: #eef5fb; }
.load-history-link { border: 0; background: transparent; color: #14375c; cursor: pointer; font-weight: 750; padding: 5px 0; text-decoration: underline; text-underline-offset: 3px; }
.load-history-empty { padding: 22px; margin: 0; }
.load-run-picker { margin-bottom: 12px; }
.load-run-picker-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.load-run-switcher { position: relative; display: flex; align-items: center; max-width: 100%; color: #173b62; }
.load-run-switcher > i { position: absolute; pointer-events: none; font-size: 12px; }
.load-run-switcher > i:first-child { left: 12px; }
.load-run-switcher > i:last-child { right: 12px; font-size: 9px; }
.load-run-switcher select { appearance: none; width: 296px; max-width: 100%; padding-inline: 34px 28px; border: 1px solid #d3dfeb; border-radius: 8px; background: #fff; color: #173b62; font-weight: 650; cursor: pointer; --field-font-size: 12px; }
.load-run-switcher select:hover { border-color: #8ba4bf; background: #f8fbff; }
.load-run-switcher select:focus-visible { outline: 2px solid #285fc4; outline-offset: 2px; }
.load-run-history-expanded { margin-top: 12px; }
.load-run-picker-context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #667990; font-size: 12px; }
.load-run-picker-row > button { margin-left: auto; }
.load-test-settings { max-width: none; margin: 0; }
.load-settings-content > .load-settings-toolbar { position: sticky; top: 8px; z-index: 3; gap: 14px; padding: 14px 20px; background: #fff; border-radius: 12px 12px 0 0; }
.load-settings-toolbar h2 { margin: 0 0 4px; font-size: 16px; }
.load-settings-toolbar small { font-size: 11px; color: #708197; }
.load-settings-toolbar > .button { flex: 0 0 auto; white-space: nowrap; box-shadow: none; }
.load-settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.load-settings-nav { display: grid; gap: 7px; position: sticky; top: 8px; }
.load-settings-nav button { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 17px 14px; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 10px; text-align: left; color: #65768a; background: transparent; font: inherit; cursor: pointer; }
.load-settings-nav button.active { color: #11365d; border-color: #d5e2ef; border-left-color: #143d69; background: #eaf2fa; }
.load-settings-nav button:hover { background: #edf3f9; }
.load-settings-nav i { margin-top: 3px; width: 18px; flex: 0 0 18px; }
.load-settings-nav button > span { display: grid; gap: 5px; }
.load-settings-nav strong { font-size: 13px; }
.load-settings-nav small { font-size: 11px; line-height: 1.5; color: #71839a; }
.load-settings-content { min-width: 0; overflow: visible; }
.load-settings-content .panel-body { display: grid; gap: 20px; padding: 24px; }
.load-settings-content .form-field { min-width: 0; }
.load-settings-content h3 { margin: 0 0 12px; font-size: 14px; color: #213b56; }
.load-settings-intro { margin: 0; line-height: 1.65; color: #677b92; font-size: 13px; }
.load-profile-activation { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid #e2e9f0; }
.load-profile-activation small { color: #75859a; font-size: 12px; line-height: 1.5; }
.load-rate-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.load-rate-fields small { font-size: 11px; color: #71839a; line-height: 1.5; }
.load-rate-preview { display: grid; gap: 12px; padding: 22px; background: #edf4fa; border: 1px solid #dce8f2; border-radius: 12px; }
.load-rate-preview strong { font-size: 17px; color: #163a60; }
.load-rate-preview > span:not(.eyebrow) { font-size: 13px; color: #3a5b7b; }
.load-rate-preview small { font-size: 12px; color: #74859a; line-height: 1.6; }
.load-settings-subheading { padding-top: 20px; border-top: 1px solid #e1e8ef; }
.load-settings-subheading h3 { margin-bottom: 6px; }
.load-settings-subheading p { margin: 0; color: #71839a; font-size: 12px; line-height: 1.6; }
.load-settings-content .load-config-row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; background: #f8fafc; }
.load-settings-content .load-row-checks { grid-column: 1 / -1; grid-row: 2; min-height: 0; border-top: 1px solid #e3eaf2; padding-top: 12px; }
.load-settings-content .load-config-row > button { grid-row: 1; grid-column: 4; }
.load-settings-content .load-assertion-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.load-settings-content .load-assertion-row > button { justify-self: end; grid-column: 1 / -1; }
.load-verification-schedule { padding: 18px; background: #f6f9fc; border: 1px solid #dfe7ef; border-radius: 12px; }
.load-verification-empty { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #f3f7fb; border: 1px dashed #ccdae8; border-radius: 12px; color: #526b83; }
.load-verification-empty > i { font-size: 22px; margin-top: 2px; }
.load-verification-empty p { margin: 8px 0 0; line-height: 1.6; font-size: 12px; }
.load-verification-enabled { font-size: 12px; }
.load-request-options { border: 1px solid #dde5ee; border-radius: 9px; background: #fff; }
.load-request-options summary { padding: 12px 14px; cursor: pointer; color: #5c7288; font-weight: 650; font-size: 12px; }
.load-request-options > .form-grid { padding: 4px 14px 16px; }
.load-settings-content .load-subsection-title { flex-wrap: wrap; padding-top: 16px; border-top: 1px solid #dfe6ef; }
@media (max-width: 1000px) { .load-settings-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .load-settings-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .load-rate-fields, .load-settings-content .load-config-row, .load-settings-content .load-assertion-row { grid-template-columns: minmax(0, 1fr); } .load-settings-content .load-row-checks { grid-row: auto; } .load-settings-content .load-config-row > button { grid-row: auto; grid-column: 1; justify-self: end; } .load-settings-content .panel-body { padding: 18px; } .load-settings-nav button { padding: 12px 10px; gap: 8px; } }
.load-test-settings .panel-header small { display: block; margin-top: 6px; color: #708197; }
.load-run-latencies { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; }
.load-verification-note { font-size: 12px; line-height: 1.5; }
.load-data-summary { margin: 20px 0; }
.load-data-summary > summary { padding: 16px 0; cursor: pointer; font-weight: 650; color: #14375c; }
.load-report-tabs button { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 1050px) {
    .load-profile-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .load-profile-facts > div { grid-column: span 3; }
    .load-profile-facts .load-profile-stat { grid-column: span 2; border-left: 0; padding: 12px 0 0; border-top: 1px solid #e0e8ef; }
}
@media (max-width: 650px) { .load-workspace-tabs > button { padding: 12px; } .load-run-latencies { grid-template-columns: repeat(2, minmax(0, 1fr)); } .load-run-picker-row > button { margin-left: 0; } .load-test-settings .panel-header { flex-wrap: wrap; gap: 12px; } }
.load-test-sidebar .load-live-panel { margin-bottom: 0; }
.load-live-panel .panel-header { gap: 10px; }
.load-live-panel .panel-header > div { min-width: 0; }
.load-live-panel .panel-body { padding: 16px; }
.load-live-indicator { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.load-live-indicator.running::before { content: ""; width: 7px; height: 7px; background: #21875a; border-radius: 50%; animation: live-pulse 1.4s ease-in-out infinite; }
.load-live-run-title { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; overflow-wrap: anywhere; }
.load-live-run-title small, .load-live-iteration small, .load-live-footer small { color: #71809a; font-variant-numeric: tabular-nums; }
.load-live-progress-heading, .load-live-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 7px; font-size: 12px; }
.load-live-progress-heading strong { white-space: nowrap; }
.load-live-panel .inline-progress > span { transition: width .35s ease; }
.load-live-panel .inline-progress.verification > span { background: #277c6a; }
.load-live-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 10px 0 16px; }
.load-live-metrics.finished { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.load-live-metrics > div { display: grid; gap: 3px; padding: 8px 4px; background: #f3f6fa; border-radius: 8px; text-align: center; }
.load-live-metrics strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.load-live-metrics span { font-size: 10px; color: #607187; white-space: nowrap; }
.load-live-panel.compact .load-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.load-live-panel.compact .load-live-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; }
.load-live-metrics .passed strong { color: #20704c; }
.load-live-metrics .failed strong, .load-live-error { color: #ad342f; }
.load-live-phase { padding: 10px; background: #f0f5fa; border-radius: 8px; font-size: 12px; }
.load-live-iterations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.load-live-panel.compact .load-live-iterations { grid-template-columns: minmax(0, 1fr); }
.load-live-iteration { min-width: 0; border: 1px solid #e1e7ef; border-radius: 9px; padding: 10px; font-size: 12px; }
.load-live-iteration.active { border-left: 3px solid #397aaa; background: #f8fbff; }
.load-live-iteration > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.load-thread-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e0e8ef; color: #677e97; }
.load-thread-pagination > div { display: flex; align-items: center; gap: 12px; }
.load-thread-pagination button { min-width: 36px; }
.load-thread-progress > .load-live-section-heading { margin: 9px 0 5px; }
.load-thread-grid { gap: 6px; }
.load-thread-card { padding: 7px 9px; border-left: 3px solid #dce5ef; border-radius: 7px; }
.load-thread-count { margin-left: auto; line-height: 1.2; }
.load-thread-count > strong { color: #173d64; font-size: 16px; font-variant-numeric: tabular-nums; }
.load-thread-count > strong > span { color: #71809a; font-size: 11px; font-weight: 500; }
.load-thread-card .inline-progress { height: 3px; margin-top: 5px; }
.load-thread-stats { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; }
.load-thread-outcomes { display: flex; flex-wrap: wrap; gap: 3px 9px; color: #607187; font-size: 11px; }
.load-thread-outcomes > span { white-space: nowrap; }
.load-thread-outcomes strong { font-variant-numeric: tabular-nums; }
.load-thread-outcomes .passed { color: #20704c; }
.load-thread-outcomes .failed { color: #ad342f; }
.load-thread-duration { margin-left: auto; white-space: nowrap; font-size: 11px; }
.load-thread-current { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; margin-top: 5px; }
.load-thread-current > small { white-space: nowrap; }
.load-thread-current .load-live-step { flex: 1 1 100px; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.load-thread-state { display: block; margin-top: 4px; }
.load-live-step { display: block; color: #3d647f; margin-top: 7px; overflow-wrap: anywhere; }
.load-live-outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 10px; color: #71809a; }
.load-live-outcomes .status-badge { font-size: 10px; }
.load-live-error { margin: 8px 0 0; font-size: 11px; overflow-wrap: anywhere; max-height: 7em; overflow-y: auto; }
.load-live-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; font-size: 11px; }
.load-live-refresh-error { color: #925b12; background: #fff5df; padding: 8px; font-size: 12px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .load-live-indicator.running::before { animation: none; } .load-live-panel .inline-progress > span { transition: none; } }
.load-item-error { display: block; max-width: 360px; margin-top: 5px; color: #9a3440; }
.load-item-detail-row:hover { background: transparent; }
.load-item-detail-row > td { padding: 0 14px 18px; background: #f8fafc; }
.load-item-detail-grid { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 16px; padding: 15px; background: #fff; border: 1px solid #e1e7ef; border-radius: 12px; }
.load-item-detail-grid h3 { margin: 0 0 10px; font-size: 14px; }
.load-item-detail-grid section { min-width: 0; }
.load-item-detail-grid details { margin-bottom: 8px; padding: 9px 10px; border: 1px solid #e5e9f0; border-radius: 8px; }
@media (max-width: 1150px) {
    .load-report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .load-report-stats .stat-card:nth-child(4) { border-left: 0; }
    .load-report-stats .stat-card:nth-child(n+4) { border-top: 1px solid #edf0f4; }
    .load-test-workspace { grid-template-columns: 1fr; }
    .load-test-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-test-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-config-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-config-row .button { justify-self: start; }
    .load-finding-groups, .load-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .load-report-overview { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .load-report-overview .load-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-report-stats .stat-card:nth-child(even) { border-left: 1px solid #edf0f4; }
    .load-report-stats .stat-card:nth-child(odd) { border-left: 0; }
    .load-report-stats .stat-card:nth-child(n+3) { border-top: 1px solid #edf0f4; }
    .load-test-filter-grid { grid-template-columns: 1fr; }
    .load-test-sidebar, .load-item-detail-grid { grid-template-columns: 1fr; }
    .load-config-row, .load-verification-header, .load-assertion-row { grid-template-columns: 1fr; }
    .load-finding-groups, .load-report-filters { grid-template-columns: 1fr; }
    .load-finding-examples > button { grid-template-columns: 1fr; }
}

.topbar .topbar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sidebar-language-switch {
    display: flex;
    gap: 14px;
    margin: -14px 8px 18px;
    border-bottom: 1px solid var(--line-soft, #dfe6e7);
}

.sidebar-language-switch button {
    position: relative;
    min-width: 28px;
    height: 31px;
    padding: 0 2px 7px;
    border: 0;
    border-radius: 0;
    color: var(--text-muted, #738084);
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease;
}

.sidebar-language-switch button:hover {
    color: var(--accent, #0a2c52);
    background: transparent;
}

.sidebar-language-switch button::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    content: "";
}

.sidebar-language-switch button.active {
    color: var(--text-strong, #111518);
    background: transparent;
}

.sidebar-language-switch button.active::after {
    background: var(--accent, #0a2c52);
}

.sidebar-language-switch button:focus-visible {
    outline: 1px solid var(--accent, #0a2c52);
    outline-offset: 1px;
}

.project-card-list {
    display: grid;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line-soft, #dfe6e7);
}

.project-card:last-child {
    border-bottom: 0;
}

.project-card.selected {
    background: var(--accent-soft, #e6eef7);
    box-shadow: inset 3px 0 var(--accent, #0a2c52);
}

.project-card > div {
    display: grid;
    gap: 4px;
}

.project-card span,
.project-card small {
    color: var(--text-muted, #738084);
}

.project-table td { vertical-align: middle; }
.project-table tbody tr.selected { background: var(--accent-soft, #e6eef7); box-shadow: inset 3px 0 var(--accent, #0a2c52); }
.project-table tbody tr.selected:hover { background: var(--accent-soft, #e6eef7); }
.project-description { display: block; max-width: 480px; color: var(--text-muted, #738084); }
.project-updated { white-space: nowrap; }
.project-editor-panel { max-width: 820px; }
.project-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; border-top: 1px solid var(--line-soft, #dfe6e7); }

@media (max-width: 680px) {
    .project-editor-actions { align-items: stretch; flex-direction: column-reverse; }
    .project-editor-actions > .actions { justify-content: stretch; }
    .project-editor-actions > .actions > * { flex: 1; }
}

.nav-submenu {
    display: grid;
    gap: 2px;
    margin: -2px 0 5px 25px;
    padding-left: 9px;
    border-left: 1px solid #ffffff20;
}

.nav-menu .nav-submenu a {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
}

.nav-menu .nav-submenu a i {
    width: 15px;
    font-size: 10px;
}

.nav-parent-link + .nav-submenu:has(a.active) {
    border-left-color: #4d93c3;
}

@media (max-width: 760px) {
    .workspace-topbar,
    .topbar .topbar-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar .topbar-controls {
        width: 100%;
    }
    .target-workspace-picker select { width: 100%; }

    .nav-submenu {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 0 4px;
        padding: 0;
        border-left: 0;
    }
}
.stat-card { padding: 22px; background: #fff; border: 1px solid #e0e6f0; border-radius: 12px; }
.stat-card strong { display: block; font-size: 32px; }
.stat-card span { color: #687891; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field > span, .field-label { color: #53627a; font-size: 13px; font-weight: 650; }
.form-control, input.form-control, select.form-control, textarea.form-control {
    width: 100%; min-height: 42px; padding: 10px 12px; color: #172033; background: #fff;
    border: 1px solid #cbd4e3; border-radius: 10px; outline: none;
}
.form-control:focus { border-color: #547ee2; box-shadow: 0 0 0 3px #547ee21c; }
textarea.form-control { min-height: 95px; resize: vertical; }
textarea.code { min-height: 220px; font-family: Consolas, monospace; font-size: 13px; }
textarea.small-code { min-height: 92px; }
.form-actions { display: flex; align-items: center; gap: 9px; grid-column: 1 / -1; margin-top: 4px; }
.check-field { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.check-field input { width: 17px; height: 17px; }
.validation-errors, .alert { padding: 12px 14px; overflow-wrap: anywhere; border-radius: 8px; }
.validation-errors, .alert-error { color: #8f2934; background: #fff0f2; border: 1px solid #f0cbd0; }
.alert-success { color: #25643c; background: #edf9f1; border: 1px solid #c9e8d2; }
.api-url-warning, .api-preview-warning { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.api-preview-warning { margin-top: 10px; padding: 9px 11px; font-size: 13px; }

.button, button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 10px; color: #fff; background: #3568d4; text-decoration: none; cursor: pointer; box-shadow: 0 8px 18px #3568d424; }
.button:hover { background: #2858bc; }
.button.secondary { color: #29374f; background: #e9edf5; }
.button.secondary:hover { background: #dce3ee; }
.button.danger { color: #a22d3a; background: #fff0f2; }
.button.danger:hover { background: #f9dfe3; }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 13px; }
.button:disabled { opacity: .5; cursor: not-allowed; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e7ebf2; vertical-align: top; }
th { color: #60708a; background: #f9fafc; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfe; }
.actions { display: flex; gap: 7px; justify-content: flex-end; }

/* Editable item headers keep selection and ordering/deletion controls on one line. */
.editor-item-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); }
.editor-item-heading > .check-field { min-width: 0; min-height: var(--control-height); margin: 0; font-size: var(--font-size-caption); }
.editor-item-heading > .check-field input { flex-shrink: 0; }
.editor-item-heading > .check-field span { min-width: 0; overflow-wrap: anywhere; }
.editor-item-actions { align-items: center; flex-wrap: nowrap; gap: var(--space-1); }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.muted { color: #71809a; }
.url-stack { display: grid; gap: 5px; min-width: 0; }
.url-stack code { display: block; max-width: 520px; overflow: hidden; color: #40506a; text-overflow: ellipsis; white-space: nowrap; }

.status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; color: #40506a; background: #edf0f5; font-size: 12px; font-weight: 700; }
.status-badge.status-badge-wrap { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.status-active, .status-passed, .status-success { color: #23623a; background: #ddf5e5; }
.status-inactive, .status-skipped { color: #6b5a22; background: #f8efcf; }
.status-blocked, .status-manual { color: #6b5a22; background: #f8efcf; }
.status-failed { color: #912f3b; background: #fbe2e5; }
.status-running { color: #225c91; background: #deefff; }
.status-queued { color: #5d5672; background: #ece9f5; }

.empty-state, .loading-state { padding: 34px 20px; text-align: center; color: #70809a; }
.empty-state strong { color: #33415a; font-size: 17px; }
.empty-state p { margin: 7px 0 16px; }
.loading-state { display: flex; justify-content: center; align-items: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 2px solid #d7deea; border-top-color: #3568d4; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Operational dashboard */
.dashboard-filter-bar { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; align-items: end; margin-bottom: 16px; padding: 13px 14px; background: #fff; border: 1px solid #dfe5ee; border-radius: 12px; box-shadow: 0 7px 24px #1a2a4a08; }
.dashboard-filter-bar label { display: grid; gap: 5px; min-width: 0; }
.dashboard-filter-bar label > span { color: #5d6d85; font-size: 12px; font-weight: 700; }
.dashboard-filter-bar .form-control { min-height: 36px; padding: 7px 9px; border-radius: 8px; font-size: 13px; }
.dashboard-status-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.status-metric { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: #fff; border: 1px solid #e2e7ef; border-radius: 10px; }
.status-metric > span { display: grid; place-items: center; width: 25px; height: 25px; color: #50627c; background: #edf1f6; border-radius: 50%; font-weight: 800; }
.status-metric div { display: grid; line-height: 1.1; }
.status-metric strong { font-size: 18px; }.status-metric small { color: #697991; }
.status-metric.passed > span { color: #23623a; background: #ddf5e5; }.status-metric.failed > span { color: #912f3b; background: #fbe2e5; }.status-metric.running > span { color: #225c91; background: #deefff; }
.dashboard-primary-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(265px, .9fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.dashboard-recent-panel, .dashboard-attention-panel, .dashboard-trend-panel, .dashboard-coverage-panel, .dashboard-recent-tests-panel, .dashboard-groups-panel { overflow: hidden; border-radius: 12px; }
.dashboard-attention-wide, .dashboard-recent-wide { margin-bottom: 16px; }
.dashboard-attention-wide .attention-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-attention-wide .attention-item { border-right: 1px solid #e8ecf2; }
.dashboard-attention-wide .attention-item:nth-child(3n) { border-right: 0; }
.dashboard-recent-wide .execution-name { max-width: 300px; }
.dashboard-recent-wide .execution-error { max-width: 420px; }
.dashboard-recent-wide .dashboard-execution-table { width: 100%; min-width: 0; table-layout: fixed; }
.dashboard-recent-wide .table-wrap { overflow-x: hidden; }
.dashboard-recent-wide .dashboard-execution-table th:nth-child(1) { width: 112px; }
.dashboard-recent-wide .dashboard-execution-table th:nth-child(2) { width: 24%; }
.dashboard-recent-wide .dashboard-execution-table th:nth-child(3) { width: 16%; }
.dashboard-recent-wide .dashboard-execution-table th:nth-child(4) { width: 92px; }
.dashboard-recent-wide .dashboard-execution-table th:nth-child(5) { width: 82px; }
.dashboard-recent-wide .dashboard-execution-table th:nth-child(7) { width: 58px; }
.dashboard-recent-wide .dashboard-execution-table td { min-width: 0; overflow-wrap: anywhere; }
.dashboard-recent-wide .dashboard-execution-table td:nth-child(2),
.dashboard-recent-wide .dashboard-execution-table td:nth-child(3),
.dashboard-recent-wide .dashboard-execution-table td:nth-child(6) { min-width: 0; }
.dashboard-recent-wide .dashboard-execution-table .button.small { padding-inline: 8px; font-size: 12px; white-space: nowrap; }
.dashboard-recent-wide .dashboard-execution-table td:last-child,
.dashboard-recent-wide .dashboard-execution-table th:last-child { padding-inline: 8px; text-align: center; }
.dashboard-recent-wide .execution-name,
.dashboard-recent-wide .execution-error { max-width: 100%; }
.dashboard-recent-panel .panel-header div, .dashboard-attention-panel .panel-header div, .dashboard-trend-panel .panel-header div, .dashboard-coverage-panel .panel-header div, .dashboard-recent-tests-panel .panel-header div, .dashboard-groups-panel .panel-header > div:first-child { display: grid; gap: 3px; }
.dashboard-recent-panel .panel-header, .dashboard-attention-panel .panel-header, .dashboard-trend-panel .panel-header, .dashboard-coverage-panel .panel-header, .dashboard-recent-tests-panel .panel-header, .dashboard-groups-panel .panel-header { padding: 14px 16px; }
.dashboard-execution-table { font-size: 13px; }
.dashboard-execution-table th, .dashboard-execution-table td { padding: 10px 11px; vertical-align: middle; }
.dashboard-execution-table th { white-space: nowrap; }
.dashboard-execution-table td:nth-child(2), .dashboard-execution-table td:nth-child(3), .dashboard-execution-table td:nth-child(6) { min-width: 150px; }
.dashboard-execution-table td:nth-child(4), .dashboard-execution-table td:nth-child(5) { white-space: nowrap; }
.dashboard-execution-table td > strong, .dashboard-execution-table td > small, .dashboard-execution-table td > span { display: block; }
.dashboard-execution-table td > small { margin-top: 3px; color: #75839a; }
.clickable-row { cursor: pointer; }.clickable-row:focus-visible { outline: 2px solid #547ee2; outline-offset: -2px; }
.execution-name { max-width: 235px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-execution-identity { display: grid; gap: 6px; min-width: 0; align-content: center; }
.dashboard-execution-identity .execution-name { margin-top: 0; }
.execution-type-badge { display: inline-flex; width: max-content; padding: 2px 6px; color: #415572; background: #eaf0f8; border-radius: 5px; font-size: 10px; font-weight: 750; }
.type-workflow { color: #55427e; background: #eee8fa; }.type-cumulativesuite { color: #6d511c; background: #f7edcf; }.type-apiscenario { color: #225c78; background: #e2f2f7; }
.dashboard-status-with-icon { display: inline-flex !important; align-items: center; gap: 5px; }.dashboard-status-with-icon > span:first-child { font-weight: 900; }
.dashboard-execution-actions { white-space: nowrap; }
.dashboard-details-button { width: 32px; min-width: 32px; padding-inline: 0 !important; justify-content: center; }
.integration-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.integration-connection-name > div { display: grid; gap: 2px; min-width: 0; }
.integration-connection-name > div small { color: #75839a; font-size: 11px; }
.execution-error { display: -webkit-box !important; max-width: 270px; overflow: hidden; color: #9a3946 !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.attention-count { display: grid; place-items: center; min-width: 26px; height: 26px; color: #8b3542; background: #fbe5e8; border-radius: 50%; font-size: 12px; font-weight: 800; }
.attention-list { display: grid; }
.attention-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 12px 14px; color: #29374f; text-decoration: none; border-bottom: 1px solid #e8ecf2; }
.attention-item:last-child { border-bottom: 0; }.attention-item:hover { background: #f8faff; }
.attention-item .execution-type-badge { grid-column: 1 / -1; }.attention-item > span:not(.execution-type-badge) { color: #8e3440; font-size: 12px; }
.attention-item small { grid-column: 1 / -1; overflow: hidden; color: #71809a; text-overflow: ellipsis; white-space: nowrap; }
.attention-item time { grid-column: 2; grid-row: 2; color: #7b889c; font-size: 11px; }
.dashboard-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); align-items: start; gap: 16px; margin-bottom: 16px; }
.dashboard-side-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dashboard-recent-tests-panel .panel-header > a { font-size: 12px; font-weight: 700; white-space: nowrap; }
.recent-test-list { display: grid; }
.recent-test-item { position: relative; display: grid; gap: 5px; padding: 12px 34px 12px 14px; color: #29374f; text-decoration: none; border-bottom: 1px solid #e8ecf2; }
.recent-test-item:last-child { border-bottom: 0; }
.recent-test-item:hover { background: #f8faff; }
.recent-test-item > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.recent-test-item > small { overflow: hidden; color: #71809a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recent-test-item > small code { color: #3c536f; font-size: 10px; }
.recent-test-item > time { color: #71809a; font-size: 11px; }
.recent-test-item > i { position: absolute; top: 50%; right: 14px; color: #9aa6b8; font-size: 11px; transform: translateY(-50%); }
.recent-test-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.test-change-badge { display: inline-flex; width: max-content; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.test-change-badge.change-added { color: #23623a; background: #ddf5e5; }
.test-change-badge.change-updated { color: #31588d; background: #e2edfc; }
.trend-legend { display: flex !important; grid-auto-flow: column; gap: 12px !important; font-size: 11px; }
.trend-legend span::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; content: ""; }
.trend-legend .passed::before { background: #45a665; }.trend-legend .failed::before { background: #d75b69; }.trend-legend .skipped::before { background: #d0a744; }
.trend-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(24px, 1fr)); gap: 5px; align-items: end; min-height: 210px; padding: 20px 16px 14px; }
.trend-column { display: grid; grid-template-rows: 130px auto auto; gap: 4px; min-width: 0; text-align: center; }
.trend-values { display: flex; align-items: end; justify-content: center; gap: 2px; border-bottom: 1px solid #dfe5ed; }
.trend-values span { width: min(8px, 28%); min-height: 0; border-radius: 3px 3px 0 0; }.trend-passed { background: #45a665; }.trend-failed { background: #d75b69; }.trend-skipped { background: #d0a744; }
.trend-column strong { font-size: 11px; }.trend-column small { overflow: hidden; color: #77869b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.coverage-list { display: grid; }.coverage-row { display: grid; gap: 10px; padding: 15px 16px; border-bottom: 1px solid #e8ecf2; }.coverage-row:last-child { border-bottom: 0; }
.coverage-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; }.coverage-row > div:first-child span { color: #71809a; font-size: 12px; }
.coverage-bar { height: 7px; overflow: hidden; background: #e8edf4; border-radius: 99px; }.coverage-bar span { display: block; height: 100%; background: #4e7bdf; border-radius: inherit; }
.coverage-row dl, .group-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }.coverage-row dl div, .group-summary dl div { display: grid; gap: 2px; }
.coverage-row dt, .group-summary dt { color: #78869a; font-size: 10px; }.coverage-row dd, .group-summary dd { margin: 0; font-weight: 750; }.coverage-row > a { width: max-content; font-size: 12px; }
.dashboard-tabs { display: flex; gap: 4px; }.dashboard-tabs button { padding: 6px 9px; color: #596a83; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }.dashboard-tabs button.active { color: #244fAD; background: #e7eefc; }
.group-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.group-summary { display: grid; gap: 4px; min-width: 0; padding: 12px; text-align: left; background: #fff; border: 1px solid #e0e6ef; border-radius: 9px; cursor: pointer; }.group-summary:hover { border-color: #7d9ce6; background: #f8faff; }
.group-summary > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.group-summary > span { margin-bottom: 5px; color: #71809a; font-size: 11px; }.group-summary dl { grid-template-columns: repeat(2, 1fr); }
.dashboard-error { margin-bottom: 14px; }
.status-pending, .status-cancelled { color: #5d5672; background: #ece9f5; }.status-timedout { color: #912f3b; background: #fbe2e5; }

@media (max-width: 1350px) {
    .dashboard-filter-bar { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .dashboard-primary-grid { grid-template-columns: minmax(0, 1fr); }.dashboard-attention-panel .attention-list { grid-template-columns: repeat(2, 1fr); }.attention-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .dashboard-attention-wide .attention-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-attention-wide .attention-item { border-right: 1px solid #e8ecf2; }
    .dashboard-attention-wide .attention-item:nth-child(2n) { border-right: 0; }
    .group-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .dashboard-secondary-grid { grid-template-columns: 1fr; }
    .group-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .dashboard-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-status-strip { grid-template-columns: repeat(2, 1fr); }
    .dashboard-attention-panel .attention-list, .dashboard-attention-wide .attention-list { grid-template-columns: 1fr; }.group-summary-grid { grid-template-columns: 1fr; }
    .dashboard-execution-table th:nth-child(3), .dashboard-execution-table td:nth-child(3), .dashboard-execution-table th:nth-child(5), .dashboard-execution-table td:nth-child(5) { display: none; }
}

.parameter-editor { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; background: linear-gradient(180deg, #f8faff, #f3f6fc); border: 1px solid #d9e2f0; border-radius: 14px; }
.version-config-summary { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 15px; background: #f8faff; border: 1px solid #dce4f0; border-radius: 12px; }
.version-config-summary.empty { grid-template-columns: 1fr; border-style: dashed; }
.version-config-summary > div { display: grid; gap: 4px; min-width: 0; }
.version-config-summary strong { color: #172033; }
.version-config-summary span { color: #71809a; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.version-config-summary small { color: #71809a; }
.version-config-summary code { overflow: hidden; color: #22365f; text-overflow: ellipsis; white-space: nowrap; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.api-config-section { display: grid; gap: 16px; padding: 20px; background: #fff; border: 1px solid #d6e0ee; border-left: 4px solid #3568d4; border-radius: 14px; box-shadow: 0 8px 28px #1a2a4a0c; }
.api-section-heading { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.api-section-heading.with-actions { grid-template-columns: auto 1fr auto; align-items: center; }
.api-section-heading h3 { margin: 0; font-size: 18px; }
.api-section-heading p { margin: 3px 0 0; color: #71809a; font-size: 13px; }
.api-step { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: #3568d4; border-radius: 999px; font-weight: 800; }
.api-main-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.api-main-grid.single-control { grid-template-columns: minmax(260px, 520px); }
.endpoint-picker-launch { align-content: start; }
.endpoint-picker-launch .button { width: 100%; box-shadow: none; }
.selected-endpoint-card { display: flex; justify-content: space-between; gap: 16px; padding: 16px; background: linear-gradient(180deg, #eef4ff, #f7faff); border: 1px solid #adc2f2; border-radius: 12px; }
.selected-endpoint-card.empty { align-items: center; background: #fbfcff; border-style: dashed; border-color: #b9c6db; }
.selected-endpoint-card h4 { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; font-size: 17px; }
.selected-endpoint-card small { display: block; margin-top: 7px; }
.selected-endpoint-card code { color: #22365f; word-break: break-all; }
.selected-endpoint-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; color: #53627a; font-size: 12px; white-space: nowrap; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 28px; background: #0f172a80; }
.endpoint-modal { display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: min(1240px, calc(100vw - 56px)); max-height: min(780px, calc(100vh - 56px)); overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 22px 70px #0b122040; }
.endpoint-modal-header { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #e3e8f2; }
.endpoint-modal-header h3 { margin: 0; font-size: 22px; }
.endpoint-modal-header p { margin: 4px 0 0; color: #71809a; }
.endpoint-modal-toolbar { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr) auto; gap: 14px; align-items: end; padding: 14px 20px; background: #f8faff; border-bottom: 1px solid #e3e8f2; }
.endpoint-controller-field, .endpoint-method-search { display: grid; gap: 6px; min-width: 0; }
.endpoint-controller-field > span, .endpoint-method-search > span { color: #58687d; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.endpoint-picker-summary { align-self: center; white-space: nowrap; }
.endpoint-picker-empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 300px; color: #65758b; text-align: center; }
.endpoint-picker-empty strong { color: #20354f; font-size: 18px; }
.endpoint-picker-empty small { max-width: 380px; }
.endpoint-picker-empty-icon { display: grid; place-items: center; width: 50px; height: 50px; color: #3568a8; background: #e6f0fb; border-radius: 14px; font-size: 20px; }
@media (max-width: 800px) { .endpoint-modal-toolbar { grid-template-columns: 1fr; align-items: stretch; } .endpoint-picker-summary { white-space: normal; } }
.endpoint-grid-wrap { overflow: auto; }
.endpoint-card-list { display: grid; gap: 10px; padding: 14px 20px 20px; background: #f4f7fb; }
.endpoint-card { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.6fr) minmax(110px, .35fr) auto; gap: 14px; align-items: center; padding: 13px 14px; background: #fff; border: 1px solid #dce4f0; border-radius: 12px; }
.endpoint-card:hover, .endpoint-card.selected { border-color: #6f91e8; background: #eef4ff; box-shadow: 0 4px 16px #1a2a4a0e; }
.endpoint-card-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.endpoint-card-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-card-main small { display: block; margin-top: 4px; overflow: hidden; color: #71809a; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-card-url { display: grid; gap: 4px; min-width: 0; }
.endpoint-card-url span, .endpoint-card-responses span { color: #71809a; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.endpoint-card-url code { overflow: hidden; color: #1f2f52; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-card-responses { display: grid; gap: 4px; color: #33415a; font-size: 12px; }
.endpoint-card > .button { justify-self: end; }
.api-method-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 360px; overflow: auto; padding: 8px; background: #fff; border: 1px solid #dce4f0; border-radius: 9px; }
.api-method-picker.compact { max-height: 230px; }
.api-method-option { display: grid; gap: 6px; padding: 10px 12px; color: #172033; background: #f8faff; border: 1px solid #dce4f0; border-radius: 8px; text-align: left; cursor: pointer; min-width: 0; }
.api-method-option:hover, .api-method-option.selected { border-color: #5f86e6; background: #eef4ff; }
.api-method-option span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.api-method-option code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #40506a; }
.api-method-option small { color: #71809a; }
.api-advanced-details { padding: 12px 14px; background: #f8faff; border: 1px solid #e1e7f0; border-radius: 9px; }
.api-advanced-details summary { color: #315fc5; cursor: pointer; font-weight: 700; }
.api-advanced-details .form-grid { margin-top: 12px; }
.api-auth-block, .api-test-cases, .expectation-builder { display: grid; gap: 12px; padding: 14px; background: #fff; border: 1px solid #dce4f0; border-radius: 9px; }
.expectation-builder.nested { background: #f8faff; }
.expectation-builder-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.api-test-case { display: grid; gap: 12px; padding: 12px; border: 1px solid #e1e7f0; border-radius: 10px; background: #fbfcff; }
.api-test-case summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.api-test-case summary > span { display: inline-flex; align-items: center; gap: 8px; }
.api-test-case.grouped { padding: 0; overflow: hidden; background: #fff; border-color: #d9d4c9; border-radius: 16px; }
.api-test-case.grouped[open] { box-shadow: 0 16px 36px #27231c0d; }
.api-test-case.grouped summary { padding: 14px 16px; background: #fbfaf6; border-bottom: 1px solid transparent; list-style: none; }
.api-test-case.grouped[open] summary { border-bottom-color: #e5dfd3; }
.api-test-case.grouped summary::-webkit-details-marker { display: none; }
.api-case-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.api-case-title small { color: #746d61; }
.api-case-actions { display: inline-flex; align-items: center; gap: 8px; }
.api-case-layout { display: grid; gap: 12px; padding: 14px; background: #f8f6f0; }
.api-case-group { display: grid; gap: 12px; padding: 14px; background: #fffdf9; border: 1px solid #dfd8cc; border-radius: 14px; }
.api-case-group > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.api-case-group > header small { text-align: right; }
.api-test-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1120px, calc(100vw - 56px));
    max-height: min(820px, calc(100vh - 56px));
    overflow: hidden;
    background: #fbfaf6;
    border: 1px solid #ded7ca;
    border-radius: 22px;
    box-shadow: 0 28px 90px #1118275c;
}
.api-test-modal-header,
.api-test-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #fffdf9;
    border-bottom: 1px solid #e5dfd3;
}
.api-test-modal-header h3 { margin: 2px 0 4px; font-size: 24px; letter-spacing: -.02em; }
.api-test-modal-header p { margin: 0; color: #746d61; word-break: break-all; }
.api-test-modal-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 14px; overflow: auto; padding: 16px; }
.api-test-preview-card { display: grid; align-content: start; gap: 12px; padding: 16px; background: #fffdf9; border: 1px solid #dfd8cc; border-radius: 16px; }
.api-test-preview-card:first-child { grid-row: span 2; }
.api-test-preview-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.api-test-preview-card header > div { display: grid; gap: 3px; }
.api-expectation-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #302c25; }
.inline-progress { height: 9px; overflow: hidden; background: #e7e0d5; border-radius: 999px; }
.inline-progress span { display: block; height: 100%; background: #2f2d29; border-radius: inherit; transition: width .2s ease; }
.api-test-run-log { display: grid; gap: 10px; margin-top: 8px; padding: 12px; background: #f8f6f0; border: 1px solid #ded7ca; border-radius: 14px; }
.api-test-run-log summary { cursor: pointer; font-weight: 750; }
.api-test-run-log-body { display: grid; gap: 10px; margin-top: 10px; max-height: 440px; overflow: auto; }
.api-test-run-log-body article { display: grid; gap: 6px; }
.api-test-modal-footer { justify-content: flex-end; border-top: 1px solid #e5dfd3; border-bottom: 0; }

.configuration-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px;
    background: #efebe2;
    border: 1px solid #ded7ca;
    border-radius: 20px;
}

.configuration-tab {
    display: grid;
    gap: 3px;
    min-height: 66px;
    padding: 13px 15px;
    color: #4f493f;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 15px;
    cursor: pointer;
}

.configuration-tab strong {
    color: #252421;
    font-size: 14px;
}

.configuration-tab span {
    color: #746d61;
    font-size: 12px;
}

.configuration-tab:hover,
.configuration-tab.active {
    background: #fffdf8;
    border-color: #d8d1c4;
    box-shadow: 0 12px 28px #1717170a;
}

.configuration-tab.active {
    box-shadow: inset 3px 0 0 #252421, 0 12px 28px #1717170a;
}

.release-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid #ded7ca;
    border-radius: 22px;
    box-shadow: 0 22px 60px #1717170b;
}

.release-toolbar-summary {
    display: grid;
    gap: 5px;
    max-width: 720px;
}

.release-toolbar-summary h2,
.release-toolbar-summary p {
    margin: 0;
}

.release-toolbar-summary h2 {
    font-size: 22px;
    letter-spacing: -.02em;
}

.release-toolbar-summary p {
    color: #746d61;
    line-height: 1.5;
}

.release-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.release-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 18px;
    align-items: start;
}

.release-dashboard.single-column {
    grid-template-columns: minmax(0, 1fr);
}

.release-targets-panel {
    overflow: hidden;
}

.panel-header.compact {
    padding: 16px 18px;
}

.release-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 24px;
    text-align: center;
}

.release-empty h3,
.release-empty p {
    margin: 0;
}

.release-empty p {
    color: #746d61;
}

.release-target-table td:first-child {
    min-width: 210px;
}

.release-reference-column {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 18px;
}

.reference-card {
    overflow: hidden;
}

.reference-list {
    display: grid;
}

.reference-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid #e5dfd3;
    cursor: pointer;
}

.reference-row:hover {
    background: #f8f6f0;
}

.reference-row span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.reference-row strong {
    font-size: 14px;
}

.reference-row small {
    overflow: hidden;
    color: #746d61;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.version-row small {
    font-family: inherit;
}

.soft-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    color: #4f493f;
    background: #efebe2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.release-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(980px, calc(100vw - 56px));
    max-height: min(860px, calc(100vh - 56px));
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid #ded7ca;
    border-radius: 24px;
    box-shadow: 0 30px 90px #1118274d;
}

.release-modal.small-modal {
    width: min(620px, calc(100vw - 56px));
}

/* Shared wide editor: two-pane constructors, with a single scroll area on small screens. */
.panel:has(.editor-dialog-backdrop) { backdrop-filter: none; }
.editor-dialog-backdrop { padding: var(--space-4); }
.release-modal.wide-editor-modal {
    width: min(1320px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
}
.wide-editor-modal .release-modal-header > div { min-width: 0; overflow-wrap: anywhere; }
.wide-editor-modal .release-modal-footer { flex-wrap: wrap; }
@media (max-width: 600px) {
    .wide-editor-modal .release-modal-header,
    .wide-editor-modal .release-modal-body,
    .wide-editor-modal .release-modal-footer { padding: var(--space-3); }
}

.release-modal form {
    display: contents;
}

.release-modal-header,
.release-modal-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #e5dfd3;
}

.release-modal-header h3,
.release-modal-header p {
    margin: 0;
}

.release-modal-header h3 {
    margin-top: 3px;
    font-size: 23px;
    letter-spacing: -.02em;
}

.release-modal-header p {
    margin-top: 5px;
    color: #746d61;
}

.release-modal-body {
    display: grid;
    min-height: 0;
    gap: 16px;
    overflow: auto;
    padding: 18px 22px;
}

.release-modal-footer {
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid #e5dfd3;
    border-bottom: 0;
}

/* The release-target editor owns a long form. Keep its actions outside the
   scrolling region even when legacy modal rules or a short viewport apply. */
.release-modal.release-target-editor-modal {
    height: min(860px, calc(100dvh - 56px));
}

.release-target-editor-modal form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
}

.release-target-editor-modal .release-modal-body {
    min-height: 0;
    overscroll-behavior: contain;
}

.form-section {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #fffaf0;
    border: 1px solid #ded7ca;
    border-radius: 18px;
}

.form-section.slim {
    padding: 14px 18px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.section-heading h4,
.section-heading p {
    margin: 0;
}

.section-heading h4 {
    font-size: 16px;
}

.section-heading p {
    margin-top: 3px;
    color: #746d61;
}

.step-dot {
    display: inline-grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fffdf8;
    background: #252421;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}

.inherited-url-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inherited-url-card div {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 14px;
    background: #f8f6f0;
    border: 1px dashed #d2cabd;
    border-radius: 14px;
}

.inherited-url-card span {
    color: #746d61;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.inherited-url-card code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.expectation-row { display: grid; grid-template-columns: minmax(160px, .9fr) minmax(170px, 1fr) minmax(150px, .8fr) auto; gap: 10px; align-items: end; }
.scenario-checklist { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.scenario-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 11px; border: 1px solid #e2e7f0; border-radius: 8px; }
.scenario-check input { margin-top: 3px; }
.scenario-check span { display: grid; }
.scenario-check small { color: #71809a; }
.run-result { padding: 18px 0; border-bottom: 1px solid #e5eaf2; }
.run-result:last-child { border-bottom: 0; }
.run-result h3 { margin: 0 0 9px; display: flex; align-items: center; gap: 9px; }
.run-link { text-decoration: none; }
.run-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.run-chip { padding: 3px 7px; color: #53627a; background: #edf1f7; border-radius: 999px; font-size: 11px; font-weight: 650; }
.version-run-chip { color: #2757b9; background: #e7eefc; }
.result-group { margin-bottom: 18px; border: 1px solid #dfe6f1; border-radius: 10px; overflow: hidden; }
.result-group:last-child { margin-bottom: 0; }
.result-group-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #f7f9fc; border-bottom: 1px solid #e4e9f1; }
.result-group-header h3 { margin: 0 0 3px; font-size: 16px; }
.result-group-body { padding: 0 16px; }
.step-list { margin: 12px 0; padding-left: 20px; }
.step-list li {
    margin-bottom: 10px;
}
.step-log-block {
    margin: 8px 0 0;
    max-width: 100%;
    overflow: auto;
    padding: 12px 14px;
    color: #242424;
    background: #fffdf8;
    border: 1px solid #d8d1c4;
    border-radius: 12px;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre;
}

.analytics-panel { overflow: hidden; }
.analytics-heading > div:first-child { display: grid; gap: 4px; }
.analytics-stack { display: grid; gap: 22px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 13px; color: #60708a; font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend-passed, .result-passed { background: #42ad6b; }
.legend-failed, .result-failed { background: #e25c68; }
.legend-skipped, .result-skipped { background: #d0ad3f; }
.breakdown-card { min-width: 0; padding: 16px; border: 1px solid #e1e7f0; border-radius: 10px; background: #fbfcfe; }
.breakdown-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.breakdown-header div { display: grid; gap: 3px; min-width: 0; }
.breakdown-header h3 { margin: 0; font-size: 16px; }
.breakdown-header span { color: #71809a; font-size: 12px; }
.breakdown-header > strong { color: #315fc5; font-size: 21px; }
.breakdown-rows { display: grid; gap: 15px; }
.breakdown-row { display: grid; gap: 6px; }
.breakdown-label { display: flex; justify-content: space-between; gap: 10px; min-width: 0; font-size: 12px; }
.breakdown-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-label span { flex: none; color: #71809a; }
.result-bar { display: flex; width: 100%; height: 10px; overflow: hidden; background: #e9edf3; border-radius: 999px; }
.result-segment { display: block; height: 100%; min-width: 2px; }
.breakdown-counts { display: flex; gap: 11px; font-size: 11px; font-weight: 700; }
.breakdown-counts span::before { margin-right: 3px; }
.count-passed { color: #27824a; }
.count-passed::before { content: "P"; }
.count-failed { color: #b83c49; }
.count-failed::before { content: "F"; }
.count-skipped { color: #8a7122; }
.count-skipped::before { content: "S"; }
.breakdown-empty { padding: 25px 8px; color: #71809a; text-align: center; font-size: 13px; }
.breakdown-more { margin-top: 14px; color: #71809a; font-size: 11px; text-align: right; }
.version-detail { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid #e4e9f1; }
.version-detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.version-detail-header > div:first-child { display: grid; gap: 4px; }
.version-detail-header h2 { margin: 0; font-size: 18px; }
.version-switcher { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.version-option { display: grid; gap: 2px; min-width: 105px; padding: 8px 11px; color: #4b5b74; background: #f1f4f8; border: 1px solid #dce3ed; border-radius: 8px; cursor: pointer; text-align: left; }
.version-option:hover { border-color: #9eb2df; background: #edf2fc; }
.version-option.active { color: #fff; background: #3568d4; border-color: #3568d4; box-shadow: 0 4px 12px #3568d426; }
.version-option span { font-size: 11px; opacity: .78; }
.version-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.version-metrics article { padding: 12px 14px; background: #f7f9fc; border: 1px solid #e2e7f0; border-radius: 8px; }
.version-metrics strong { display: block; font-size: 22px; }
.version-metrics span { color: #71809a; font-size: 12px; }
.version-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.version-suite-panel { margin-bottom: 20px; overflow: hidden; }
.version-suite-panel .panel-header > div:first-child { display: grid; gap: 4px; }
.version-suite-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.version-suite-options { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; }
.version-suite-option { display: grid; grid-template-columns: 22px auto; align-items: center; gap: 8px; min-width: 170px; padding: 10px 12px; color: #40506a; background: #f8fafc; border: 1px solid #dce3ed; border-radius: 9px; cursor: pointer; text-align: left; }
.version-suite-option:hover { border-color: #9eb2df; }
.version-suite-option.selected { color: #214fae; background: #edf3ff; border-color: #7f9fe5; box-shadow: inset 0 0 0 1px #7f9fe533; }
.version-suite-option > span:last-child { display: grid; gap: 2px; }
.version-suite-option small { color: #71809a; }
.version-check { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; background: #fff; border: 1px solid #bdc8d8; border-radius: 5px; font-size: 13px; }
.version-suite-option.selected .version-check { background: #3568d4; border-color: #3568d4; }
.version-suite-summary { padding: 11px 20px; color: #5d6b81; background: #f7f9fc; border-top: 1px solid #e5eaf2; font-size: 13px; }
.scenario-version-row td { padding-block: 10px; color: #2f4f88; background: #eef3fc; border-top: 1px solid #d9e3f4; border-bottom-color: #d9e3f4; }
.scenario-version-row span { margin-left: 9px; color: #6e7f99; font-size: 12px; }
.version-result-group { margin-bottom: 22px; border: 1px solid #d9e3f2; border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.version-result-group:last-child { margin-bottom: 0; }
.version-result-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; color: #fff; background: linear-gradient(120deg, #294f9e, #3c6fd1); }
.version-result-header h2 { margin: 2px 0 4px; font-size: 21px; }
.version-result-header .eyebrow, .version-result-header .muted { color: #dbe6ff; }
.version-result-body { padding: 16px; }
.version-result-body .result-group { background: #fff; }
.scenario-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.scenario-workspace-single { grid-template-columns: minmax(0, 1fr); }
.scenario-browser { min-width: 0; display: grid; gap: 16px; }
.scenario-browser-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 2px 2px 4px; }
.scenario-browser-toolbar > div { display: grid; gap: 4px; }
.scenario-browser-toolbar h2 { margin: 0; font-size: 23px; }
.scenario-browser-toolbar > .scenario-browser-actions { display: flex; align-items: flex-end; gap: 10px; }
.scenario-browser-actions .button { white-space: nowrap; }
.scenario-client-filter { display: grid; gap: 5px; min-width: 180px; }
.scenario-client-filter > span { color: #64748b; font-size: 11px; font-weight: 700; }
.scenario-client-filter .form-control { min-height: 38px; padding-block: 7px; }
@media (max-width: 760px) {
    .scenario-browser-toolbar > .scenario-browser-actions { align-items: stretch; flex-wrap: wrap; width: 100%; }
    .scenario-client-filter { flex: 1 1 180px; }
    .scenario-browser-actions .button { flex: 1 1 auto; justify-content: center; }
}
.scenario-type-groups { display: grid; gap: 16px; }
.scenario-type-group { overflow: hidden; }
.scenario-type-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #f7f9fc; border-bottom: 1px solid #e4e9f1; }
.scenario-type-header > div { display: flex; align-items: center; gap: 9px; }
.scenario-version-sidebar { position: sticky; top: 18px; overflow: hidden; }
.version-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; border-bottom: 1px solid #e4e9f1; }
.version-sidebar-header > div { display: grid; gap: 2px; }
.version-sidebar-header h2 { margin: 0; font-size: 18px; }
.version-sidebar-header span { color: #71809a; font-size: 11px; }
.quick-version-form { display: grid; gap: 10px; padding: 14px 16px; background: #f8faff; border-bottom: 1px solid #e1e7f0; }
.quick-version-form .button { width: 100%; }
.sidebar-manage-link { color: #536eaa; font-size: 12px; text-align: center; }
.client-filter { padding: 14px 16px; border-bottom: 1px solid #e4e9f1; }
.version-sidebar-help { padding: 10px 16px; color: #71809a; background: #fafbfd; border-bottom: 1px solid #e7ebf2; font-size: 11px; line-height: 1.4; }
.version-sidebar-list { display: grid; max-height: 490px; overflow-y: auto; }
.version-sidebar-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid #e7ebf2; }
.version-sidebar-item:last-child { border-bottom: 0; }
.version-sidebar-item.focused { background: #eef4ff; box-shadow: inset 3px 0 #3568d4; }
.version-sidebar-select { align-self: center; display: grid; place-items: center; width: 21px; height: 21px; margin-left: 12px; padding: 0; color: #fff; background: #fff; border: 1px solid #b9c5d7; border-radius: 5px; cursor: pointer; }
.version-sidebar-select.selected { background: #3568d4; border-color: #3568d4; }
.version-sidebar-select:disabled { opacity: .45; cursor: not-allowed; }
.version-sidebar-focus { display: grid; gap: 4px; padding: 12px 13px 12px 8px; color: #27364e; background: transparent; border: 0; cursor: pointer; text-align: left; }
.version-sidebar-focus:hover { background: #f4f7fc; }
.version-sidebar-focus > span { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.version-sidebar-focus small { color: #71809a; }
.version-sidebar-focus time { color: #8996aa; font-size: 10px; }
.version-sidebar-footer { display: grid; gap: 10px; padding: 14px 16px; background: #f7f9fc; border-top: 1px solid #dfe5ee; }
.version-sidebar-footer > div { display: flex; justify-content: space-between; gap: 8px; color: #5d6b81; font-size: 12px; }
.version-sidebar-footer .button { width: 100%; }
.latest-version-run { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 8px; min-width: 185px; padding: 8px 10px; color: #33435d; background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; text-decoration: none; box-shadow: 0 2px 8px #1d33590a; }
.latest-version-run > span { color: #65748d; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.latest-version-run small { grid-column: 1 / -1; color: #53627a; }
.latest-version-run time { grid-column: 1 / -1; color: #8996aa; font-size: 10px; }
.latest-version-run.empty { display: grid; grid-template-columns: 1fr; }
.latest-version-run.empty small { grid-column: auto; }
.live-run-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.live-run-card { display: grid; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid #dce4ef; border-left-width: 4px; border-radius: 10px; box-shadow: 0 3px 14px #1a2a4a0a; }
.live-run-card.status-border-queued { border-left-color: #81779e; }
.live-run-card.status-border-running { border-left-color: #3686cd; }
.live-run-card.status-border-passed { border-left-color: #42ad6b; }
.live-run-card.status-border-failed { border-left-color: #e25c68; }
.live-run-card.status-border-skipped { border-left-color: #d0ad3f; }
.live-run-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-run-card header > div { display: flex; align-items: center; gap: 8px; }
.live-run-time { display: grid; justify-items: end; gap: 2px; color: #7a889d; font-size: 11px; }
.live-run-time a { color: #315fc5; font-size: 12px; font-weight: 650; }
.live-indicator { width: 9px; height: 9px; background: #7c8ba3; border-radius: 50%; }
.live-indicator.pulsing { background: #3686cd; animation: live-pulse 1.35s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; transform: scale(.75); } }
.live-progress-track { height: 8px; overflow: hidden; background: #e8edf4; border-radius: 999px; }
.live-progress-track > span { display: block; height: 100%; background: linear-gradient(90deg, #3568d4, #4b8be5); border-radius: inherit; transition: width .3s ease; }
.live-run-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #5e6d84; font-size: 12px; }
.live-run-meta > strong { margin-right: auto; color: #33415a; }
.live-count { font-weight: 650; }
.live-count.passed { color: #27824a; }
.live-count.failed { color: #b83c49; }
.live-count.skipped { color: #8a7122; }
.current-scenario { display: flex; align-items: center; gap: 7px; color: #53627a; font-size: 12px; }
.current-scenario .spinner { width: 13px; height: 13px; }
.live-run-error { padding: 8px 10px; color: #8f2934; background: #fff0f2; border-radius: 6px; font-size: 12px; }

/* Neutral design refresh
   Keeps the existing component structure, but moves the product away from the heavy blue palette. */
:root {
    --surface-page: #f4f2ec;
    --surface-shell: #fbfaf7;
    --surface-card: #ffffff;
    --surface-muted: #f0eee8;
    --surface-muted-2: #e9e6de;
    --text-strong: #171717;
    --text-main: #2a2a2a;
    --text-muted: #74716b;
    --line-soft: #dedbd2;
    --line-strong: #cbc6ba;
    --accent: #242424;
    --accent-hover: #101010;
    --accent-soft: #ebe8df;
    --focus-ring: #2727271a;
    color: var(--text-main);
    background: var(--surface-page);
}

body {
    background:
        radial-gradient(circle at 8% 0%, #ffffff 0, transparent 310px),
        linear-gradient(180deg, #f8f6f0 0%, var(--surface-page) 100%);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #000; }
input[type="checkbox"] { accent-color: var(--accent); }

.app-shell {
    grid-template-columns: 248px 1fr;
    background: transparent;
}

.sidebar {
    color: var(--text-main);
    background: linear-gradient(180deg, #efede6 0%, #e4e0d6 100%);
    border-right: 1px solid var(--line-soft);
    box-shadow: inset -1px 0 0 #ffffff80;
}

.brand {
    color: var(--text-strong);
}

.brand-mark {
    color: #f7f5ef;
    background: #202020;
    border-radius: 14px;
    box-shadow: 0 12px 26px #17171720;
}

.brand div span,
.nav-group,
.eyebrow,
.page-header p,
.muted {
    color: var(--text-muted);
}

.nav-menu a {
    color: #514f4a;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    color: var(--text-strong);
    background: #ffffff85;
    border-color: #ffffff;
}

.nav-menu a.active {
    color: var(--text-strong);
    background: #fffdf8;
    border-color: #ffffff;
    box-shadow: 0 10px 28px #17171710, inset 3px 0 #222;
}

.topbar {
    background: #fffdf9cc;
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
}

.content {
    max-width: 1440px;
}

.page-header h1,
.scenario-browser-toolbar h2,
.version-detail-header h2,
.panel-header h2,
.endpoint-modal-header h3,
.api-section-heading h3 {
    color: var(--text-strong);
}

.panel,
.stat-card,
.breakdown-card,
.version-result-group,
.scenario-type-group,
.scenario-version-sidebar,
.latest-version-run,
.live-run-card {
    background: var(--surface-card);
    border-color: var(--line-soft);
    box-shadow: 0 18px 55px #1f1d190c;
}

.panel-header,
.version-sidebar-header,
.client-filter,
.version-sidebar-help,
.version-sidebar-footer,
.result-group-header,
.scenario-type-header {
    border-color: var(--line-soft);
}

.panel-header,
.scenario-type-header,
.result-group-header,
.version-sidebar-footer,
.version-sidebar-help,
th {
    background: #faf9f5;
}

.form-field > span,
.field-label,
th {
    color: #5c5952;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    color: var(--text-strong);
    background: #fffefa;
    border-color: var(--line-strong);
    border-radius: 12px;
}

.form-control:focus {
    border-color: #242424;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.button,
button.button,
.button:not(.secondary):not(.danger) {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 22px #17171718;
}

.button:hover,
button.button:hover,
.button:not(.secondary):not(.danger):hover {
    background: var(--accent-hover);
}

.button.secondary {
    color: var(--text-main);
    background: var(--surface-muted-2);
    box-shadow: none;
}

.button.secondary:hover {
    color: var(--text-strong);
    background: #ded9cd;
}

.button.danger {
    color: #8f2934;
    background: #f9e7e7;
    box-shadow: none;
}

th,
td,
.run-result,
.result-group,
.endpoint-modal-header,
.endpoint-modal-toolbar,
.version-sidebar-item,
.version-sidebar-footer,
.scenario-type-header,
.version-detail,
.version-suite-summary {
    border-color: var(--line-soft);
}

tbody tr:hover {
    background: #faf8f1;
}

.status-badge,
.run-chip {
    color: #4f4c45;
    background: #ece9df;
}

.status-active,
.status-passed,
.status-success {
    color: #24603a;
    background: #dff1df;
}

.status-inactive,
.status-skipped {
    color: #715b1e;
    background: #f1e6c7;
}

.status-failed {
    color: #8b3038;
    background: #f3dddd;
}

.status-running {
    color: #6d5118;
    background: #f5e8c8;
}

.status-queued {
    color: #595650;
    background: #ebe7de;
}

.spinner {
    border-color: #d8d3c7;
    border-top-color: var(--accent);
}

.parameter-editor,
.version-config-summary,
.quick-version-form,
.api-advanced-details,
.expectation-builder.nested {
    background: linear-gradient(180deg, #fbfaf6, #f1eee6);
    border-color: var(--line-soft);
}

.api-config-section {
    background: #fffdf8;
    border-color: var(--line-soft);
    border-left-color: var(--accent);
    box-shadow: 0 18px 46px #1f1d190d;
}

.api-step {
    background: var(--accent);
}

.selected-endpoint-card {
    background: linear-gradient(180deg, #f3f0e7, #fbfaf6);
    border-color: #c9c1b1;
}

.selected-endpoint-card.empty {
    background: #fffefa;
    border-color: var(--line-strong);
}

.endpoint-modal {
    background: #fffdf8;
}

.endpoint-modal-toolbar,
.endpoint-card-list {
    background: #f1eee7;
}

.endpoint-card,
.api-method-option,
.api-auth-block,
.api-test-cases,
.expectation-builder,
.api-test-case,
.scenario-check {
    background: #fffefa;
    border-color: var(--line-soft);
}

.endpoint-card:hover,
.endpoint-card.selected,
.api-method-option:hover,
.api-method-option.selected {
    background: #f1eee6;
    border-color: #9d968a;
    box-shadow: 0 10px 26px #17171712;
}

.api-advanced-details summary {
    color: var(--accent);
}

.version-run-chip {
    color: #4d4639;
    background: #e8e1d1;
}

.breakdown-header > strong,
.sidebar-manage-link,
.live-run-time a {
    color: var(--accent);
}

.result-bar,
.live-progress-track {
    background: #e7e2d7;
}

.live-progress-track > span {
    background: linear-gradient(90deg, #242424, #6f6a60);
}

.version-option {
    color: #514f4a;
    background: #f0ede5;
    border-color: var(--line-soft);
}

.version-option:hover {
    background: #e8e3d7;
    border-color: #b7afa1;
}

.version-option.active,
.version-suite-option.selected .version-check,
.version-sidebar-select.selected {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.version-suite-option {
    background: #fffefa;
    border-color: var(--line-soft);
}

.version-suite-option:hover,
.version-suite-option.selected {
    color: var(--text-strong);
    background: #f1eee6;
    border-color: #9d968a;
    box-shadow: inset 0 0 0 1px #9d968a22;
}

.scenario-version-row td {
    color: #4d4639;
    background: #ece7dc;
    border-color: #ddd6c8;
}

.version-result-header {
    color: #fff;
    background: linear-gradient(120deg, #242424, #555047);
}

.version-result-header .eyebrow,
.version-result-header .muted {
    color: #e7e1d7;
}

.version-sidebar-item.focused {
    background: #efebe1;
    box-shadow: inset 3px 0 var(--accent);
}

.version-sidebar-select {
    border-color: #b9b1a2;
}

.version-sidebar-focus:hover {
    background: #f8f5ed;
}

.live-run-card.status-border-queued { border-left-color: #817a70; }
.live-run-card.status-border-running { border-left-color: #c29232; }
.live-run-card.status-border-passed { border-left-color: #42ad6b; }
.live-run-card.status-border-failed { border-left-color: #d35b61; }
.live-run-card.status-border-skipped { border-left-color: #c8a33a; }
.live-indicator.pulsing { background: #c29232; }

/* Scenario editor studio layout */
.scenario-editor-studio {
    display: grid;
    gap: 18px;
}

.editor-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    box-shadow: 0 18px 55px #1f1d190c;
}

.editor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 46px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.editor-card-header > div {
    display: grid;
    gap: 4px;
}

.editor-card-header h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: 20px;
    letter-spacing: -.02em;
}

.editor-card-header small {
    max-width: 360px;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.45;
}

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

.editor-grid > .form-field,
.parameter-editor > .form-field,
.api-main-grid > .form-field,
.compact-grid > .form-field {
    min-height: 82px;
}

.form-field {
    align-content: start;
}

.form-field > span,
.field-label {
    min-height: 17px;
    line-height: 17px;
}

.form-field > small,
.form-field > .muted {
    min-height: 17px;
    line-height: 1.35;
}

.form-control,
input.form-control,
select.form-control {
    min-height: 46px;
}

textarea.form-control {
    min-height: 118px;
}

textarea.compact-textarea,
.compact-textarea {
    min-height: 86px;
}

.editor-card-parameters {
    padding: 0;
    overflow: hidden;
}

.editor-card-parameters > .editor-card-header {
    margin: 0 22px;
    padding-top: 22px;
}

.editor-card-parameters > .parameter-editor {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fffdf8;
    box-shadow: none;
}

.advanced-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.advanced-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

.advanced-card > summary::-webkit-details-marker {
    display: none;
}

.advanced-card > summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--text-strong);
    background: var(--surface-muted-2);
    border-radius: 999px;
    font-weight: 700;
}

.advanced-card[open] > summary::after {
    content: "−";
}

.advanced-card > summary > span {
    display: grid;
    gap: 4px;
}

.advanced-card > summary strong {
    color: var(--text-strong);
    font-size: 18px;
}

.advanced-card > summary small {
    color: var(--text-muted);
}

.advanced-card > .editor-grid {
    padding: 0 22px 22px;
}

.editor-footer {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #fffdf8e8;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: 0 16px 50px #1f1d1918;
    backdrop-filter: blur(14px);
}

.editor-footer .form-actions {
    margin: 0;
}

.version-config-summary {
    min-height: 96px;
    align-items: center;
}

.api-config-section {
    border-radius: 18px;
}

.api-section-heading {
    min-height: 48px;
}

.selected-endpoint-card {
    min-height: 112px;
}

.request-model-preview,
.case-body-preview {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    background: #f2efe6;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
}

.request-model-preview {
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
    align-items: start;
}

.request-model-preview > div,
.case-body-preview > div {
    display: grid;
    gap: 4px;
}

.request-model-preview strong {
    color: var(--text-strong);
    font-size: 15px;
}

.request-model-preview pre,
.case-body-preview pre {
    margin: 0;
    max-height: 220px;
    overflow: auto;
    padding: 14px;
    color: #242424;
    background: #fffdf8;
    border: 1px solid #d8d1c4;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.case-body-preview {
    background: #fbfaf6;
}

.endpoint-info-popover {
    position: relative;
    align-self: flex-end;
}

.endpoint-info-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    color: #0A2C52;
    background: #edf5ff;
    border: 1px solid #c8daee;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
}

.endpoint-info-trigger i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    color: #fff;
    background: #0A2C52;
    border-radius: 999px;
    font-size: 9px;
}

.endpoint-info-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 7px;
    width: min(430px, calc(100vw - 80px));
    padding: 12px;
    color: var(--text-main);
    background: #fffdf8;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: 0 20px 50px #1f1d1924;
    white-space: normal;
}

.endpoint-info-close {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #5f6870;
    background: #f1f4f5;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.endpoint-info-close:hover {
    color: #0A2C52;
    background: #e5edf6;
}

.endpoint-info-content strong {
    color: var(--text-strong);
    font-size: 13px;
}

.endpoint-info-content pre {
    margin: 0;
    max-height: 210px;
    overflow: auto;
    padding: 10px 12px;
    color: #242424;
    background: #fbfaf6;
    border: 1px solid #d8d1c4;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.45;
}

/* Hireus-inspired light product refresh */
:root {
    --surface-page: #eef2f4;
    --surface-shell: #f7f9fa;
    --surface-card: #ffffff;
    --surface-muted: #f3f6f6;
    --surface-muted-2: #e9eeee;
    --text-strong: #111518;
    --text-main: #2d3539;
    --text-muted: #738084;
    --line-soft: #dfe6e7;
    --line-strong: #cbd5d7;
    --accent: #0A2C52;
    --accent-hover: #061f3b;
    --accent-soft: #e6eef7;
    --focus-ring: #0A2C5226;
    --danger-soft: #f8e6e8;
}

body {
    background:
        radial-gradient(circle at 22% -12%, #ffffff 0, transparent 380px),
        linear-gradient(180deg, #f6f8f9 0%, var(--surface-page) 100%);
}

a {
    color: var(--accent-hover);
}

input[type="checkbox"] {
    accent-color: var(--accent);
}

.app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
    padding: 26px 14px;
    color: var(--text-main);
    background: #ffffff;
    border-right: 1px solid var(--line-soft);
    box-shadow: 10px 0 36px #41505a0a;
}

.brand {
    gap: 10px;
    padding: 0 4px 30px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: #111518;
    border-radius: 12px;
    box-shadow: 0 12px 22px #11151818;
}

.brand strong {
    font-size: 15px;
}

.brand div span {
    color: var(--text-muted);
    font-size: 12px;
}

.nav-menu {
    gap: 3px;
}

.nav-menu a {
    min-height: 38px;
    display: flex;
    align-items: center;
    color: #485458;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
}

.nav-menu a:hover {
    color: var(--text-strong);
    background: #f2f6f6;
    border-color: #edf2f2;
}

.nav-menu a.active {
    color: var(--text-strong);
    background: #e6eef7;
    border-color: #cfdae8;
    box-shadow: inset 3px 0 var(--accent);
}

.nav-group {
    margin: 22px 10px 8px;
    color: #8a9699;
    font-size: 10px;
    letter-spacing: .11em;
}

.topbar {
    min-height: 72px;
    padding: 14px 28px;
    background: #ffffffcc;
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(18px);
}

.content {
    max-width: 1260px;
    padding: 30px 34px 68px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    color: var(--text-strong);
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -.04em;
}

.page-header p {
    color: #657276;
}

.eyebrow {
    color: #7e8b8f;
    font-size: 10px;
    letter-spacing: .12em;
}

.panel,
.stat-card,
.breakdown-card,
.version-result-group,
.scenario-type-group,
.scenario-version-sidebar,
.latest-version-run,
.live-run-card,
.release-modal,
.api-test-modal,
.endpoint-modal {
    background: var(--surface-card);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: 0 18px 50px #40505b12;
}

.panel-header,
.release-modal-header,
.release-modal-footer,
.api-test-modal-header,
.api-test-modal-footer,
.endpoint-modal-header,
.version-sidebar-header,
.scenario-type-header,
.result-group-header {
    background: #ffffff;
    border-color: var(--line-soft);
}

.panel-header h2 {
    color: var(--text-strong);
    font-size: 16px;
}

.configuration-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
}

.configuration-tab {
    position: relative;
    min-height: 54px;
    padding: 0 0 13px;
    color: #69777b;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.configuration-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
    border-radius: 999px;
}

.configuration-tab strong {
    color: #69777b;
    font-size: 13px;
}

.configuration-tab span {
    color: #8b9699;
    font-size: 11px;
}

.configuration-tab:hover,
.configuration-tab.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.configuration-tab.active::after {
    background: var(--accent);
}

.configuration-tab.active strong {
    color: var(--accent-hover);
}

.configuration-tab {
    justify-content: start;
    min-width: max-content;
}

.configuration-tab .tab-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.configuration-tab .tab-title strong {
    color: #5f6b6f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}

.configuration-tab small {
    display: block;
    margin-top: 5px;
    color: #96a1a4;
    font-size: 11px;
    line-height: 1;
}

.configuration-tab .tab-badge {
    display: inline-grid;
    min-width: 24px;
    height: 22px;
    place-items: center;
    padding: 0 7px;
    color: #ffffff;
    background: #a9b4b6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
}

.configuration-tab.active .tab-title strong {
    color: var(--accent-hover);
}

.configuration-tab.active .tab-badge {
    background: var(--accent);
    box-shadow: 0 7px 16px #0A2C5226;
}

.configuration-tab.active small {
    color: #4d6682;
}

.nav-menu a {
    position: relative;
    min-height: 34px;
    padding: 7px 8px 7px 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.nav-menu a::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 5px;
    height: 5px;
    background: #c6d0d2;
    border-radius: 999px;
    transform: translateY(-50%);
}

.nav-menu a:hover {
    color: var(--text-strong);
    background: transparent;
    border-color: transparent;
}

.nav-menu a:hover::before {
    background: #8fa0a4;
}

.nav-menu a.active {
    color: var(--accent-hover);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 760;
}

.nav-menu a.active::before {
    width: 7px;
    height: 7px;
    background: var(--accent);
    box-shadow: 0 0 0 4px #0A2C521a;
}

.release-dashboard.single-column {
    max-width: none;
}

.release-targets-panel {
    border-radius: 18px;
}

.release-target-table td:first-child {
    min-width: 230px;
}

.form-field > span,
.field-label,
th {
    color: #5f6b6f;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    min-height: 44px;
    color: var(--text-strong);
    background: #ffffff;
    border-color: var(--line-strong);
    border-radius: 10px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.button,
button.button,
.button:not(.secondary):not(.danger) {
    min-height: 38px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 10px 20px #0A2C5224;
}

.button:hover,
button.button:hover,
.button:not(.secondary):not(.danger):hover {
    background: var(--accent-hover);
}

.button.secondary {
    color: #344044;
    background: #edf1f1;
    box-shadow: none;
}

.button.secondary:hover {
    background: #e1e8e8;
}

.button.danger {
    color: #96333c;
    background: var(--danger-soft);
}

th {
    background: #f7f9f9;
    font-size: 11px;
    letter-spacing: .055em;
}

th,
td {
    border-color: var(--line-soft);
}

td {
    color: var(--text-main);
}

tbody tr:hover {
    background: #f8fbfb;
}

.url-stack code,
.mono,
.reference-row small {
    color: #425357;
}

.soft-pill,
.status-badge,
.run-chip {
    color: #536063;
    background: #eef2f2;
}

.status-active,
.status-passed,
.status-success {
    color: #0A2C52;
    background: #e6eef7;
}

.status-running {
    color: #8a5e08;
    background: #fff0cf;
}

.status-failed {
    color: #a13a45;
    background: #f8e4e7;
}

.status-inactive,
.status-skipped {
    color: #786026;
    background: #f5ebcf;
}

.modal-backdrop {
    background: #20313a80;
    backdrop-filter: blur(8px);
}

.release-modal,
.api-test-modal,
.endpoint-modal {
    border-radius: 22px;
}

.release-modal-body,
.api-test-modal-body,
.endpoint-card-list {
    background: #f6f8f8;
}

.form-section,
.api-config-section,
.api-test-preview-card,
.api-case-group,
.selected-endpoint-card,
.request-model-preview,
.case-body-preview,
.inherited-url-card div {
    background: #ffffff;
    border-color: var(--line-soft);
    border-radius: 16px;
}

.step-dot,
.api-step {
    background: var(--accent);
}

.inline-progress span,
.live-progress-track > span {
    background: linear-gradient(90deg, var(--accent), #38658f);
}

.endpoint-card:hover,
.endpoint-card.selected,
.api-method-option:hover,
.api-method-option.selected {
    background: #e6eef7;
    border-color: #9fb3cb;
    box-shadow: 0 12px 28px #0A2C5216;
}

.version-result-header {
    background: linear-gradient(120deg, #0A2C52, #244f7c);
}

.version-option.active,
.version-suite-option.selected .version-check,
.version-sidebar-select.selected {
    background: var(--accent);
    border-color: var(--accent);
}

.version-option.active {
    color: #ffffff;
    box-shadow: 0 10px 22px #0A2C5220;
}

.version-sidebar-item.focused {
    background: #e6eef7;
    box-shadow: inset 3px 0 var(--accent);
}

.version-sidebar-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
}

.version-sidebar-focus {
    min-height: 96px;
}

.version-sidebar-item-actions {
    display: grid;
    align-self: stretch;
    place-items: center;
    padding: 12px 13px 12px 4px;
}

.version-sidebar-item-actions .button {
    min-width: 58px;
    box-shadow: none;
}

.version-sidebar-item.focused .version-sidebar-item-actions .button:not(:disabled) {
    color: #ffffff;
    background: var(--accent);
}

.scenario-card-list {
    display: grid;
    gap: 0;
}

.scenario-group-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.scenario-group-context span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 5px 9px;
    color: #425357;
    background: #f0f4f4;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.scenario-group-context strong {
    color: #7b898d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.scenario-card {
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) minmax(220px, .9fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--line-soft);
}

.scenario-card:first-child {
    border-top: 0;
}

.scenario-card:hover {
    background: #f8fbfb;
}

.scenario-card-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.scenario-card-main a {
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.28;
    text-decoration-thickness: 1px;
    overflow-wrap: anywhere;
}

.scenario-card-main small {
    color: var(--text-muted);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.scenario-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.scenario-card-meta > span:not(.case-badge) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 9px;
    color: #425357;
    background: #f0f4f4;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.scenario-card-meta > span strong {
    color: #7b898d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.case-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.case-positive {
    color: #0A2C52;
    background: #dfeaf6;
}

.case-negative {
    color: #94333f;
    background: #f8e2e5;
}

.case-mixed {
    display: grid;
    gap: 1px;
    align-items: center;
    color: #4c3f12;
    background: #f5ebcf;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: none;
}

.case-mixed span {
    white-space: nowrap;
}

.scenario-card-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 7px;
}

.scenario-card-actions .button {
    box-shadow: none;
}

.scenario-type-header {
    display: grid;
    grid-template-columns: minmax(240px, 1.05fr) minmax(180px, .75fr) minmax(280px, .95fr);
    align-items: center;
    gap: 18px;
    min-height: 78px;
}

.scenario-group-identity {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.scenario-group-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.scenario-group-identity h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 16px;
    letter-spacing: -.02em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.scenario-group-identity small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
}

.scenario-group-context {
    justify-content: start;
    margin-left: 0;
}

.scenario-group-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.scenario-group-stats span {
    display: grid;
    min-width: 48px;
    gap: 2px;
    justify-items: center;
    color: #778489;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}

.scenario-group-stats strong {
    color: var(--text-strong);
    font-size: 15px;
    letter-spacing: 0;
}

.scenario-group-stats.legacy-stats {
    display: none;
}

.scenario-type-group {
    overflow: hidden;
    border-color: #d8e2e8;
    border-radius: 18px;
    box-shadow: 0 16px 44px #0a2c5210;
}

.scenario-type-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "identity stats"
        "context stats";
    gap: 12px 28px;
    min-height: 118px;
    padding: 24px 24px 22px 62px;
    background: #ffffff;
    border-bottom: 1px solid #dbe4ea;
}

.scenario-type-header::before {
    content: "⌄";
    position: absolute;
    left: 26px;
    top: 41px;
    color: var(--accent);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.scenario-group-identity {
    grid-area: identity;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
}

.scenario-group-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
}

.scenario-group-tags .status-badge {
    min-height: 30px;
    padding-inline: 12px;
    color: #0A2C52;
    background: #e3eefb;
    font-size: 13px;
}

.scenario-group-identity h3 {
    flex: 1 1 260px;
    margin: 0;
    color: var(--text-strong);
    font-size: 24px;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.scenario-group-identity small {
    flex: none;
    color: #4c5960;
    font-size: 14px;
    font-weight: 700;
}

.scenario-group-context {
    grid-area: context;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin: 0;
}

.scenario-group-context span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    padding: 0;
    color: #2f3f4d;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
}

.scenario-group-context strong {
    color: #65757f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.scenario-group-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, 74px);
    gap: 10px;
    align-self: center;
    justify-self: end;
}

.scenario-group-stats span {
    display: grid;
    min-height: 72px;
    place-items: center;
    gap: 2px;
    padding: 9px 7px;
    color: #152236;
    background: #ffffff;
    border: 1px solid #d9e2ea;
    border-radius: 10px;
    box-shadow: 0 8px 20px #0a2c5208;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.scenario-group-stats span:nth-child(1) strong { color: #0c7a32; }
.scenario-group-stats span:nth-child(2) strong { color: #526071; }
.scenario-group-stats span:nth-child(3) {
    color: #0A2C52;
    border-color: #c9d9ed;
    background: #f6f9fe;
}
.scenario-group-stats span:nth-child(3) strong { color: #0A2C52; }
.scenario-group-stats span:nth-child(4) {
    color: #ad3343;
    border-color: #efcdd3;
    background: #fff8f9;
}
.scenario-group-stats span:nth-child(4) strong { color: #ad3343; }

.scenario-group-stats strong {
    color: var(--text-strong);
    font-size: 24px;
    line-height: 1;
}

.scenario-list-heading {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, .9fr) minmax(260px, auto);
    gap: 18px;
    padding: 17px 24px;
    color: #405268;
    background: #fbfdff;
    border-bottom: 1px solid #dbe4ea;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.scenario-list-heading span:last-child {
    text-align: center;
}

.scenario-card {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, .9fr) minmax(260px, auto);
    gap: 18px;
    padding: 22px 24px;
    background: #ffffff;
}

.scenario-card + .scenario-card {
    border-top: 1px solid #dbe4ea;
}

.scenario-card:hover {
    background: #fbfdff;
}

.scenario-card-main {
    position: relative;
    padding-left: 28px;
}

.scenario-card-main::before {
    content: "⠿";
    position: absolute;
    left: 0;
    top: 1px;
    color: #0A2C52;
    font-size: 17px;
    letter-spacing: -2px;
}

.scenario-card-main a {
    font-size: 18px;
    text-decoration: none;
}

.scenario-card-main a:hover {
    text-decoration: underline;
}

.scenario-card-main small {
    font-size: 14px;
}

.scenario-card-meta {
    justify-content: flex-start;
}

.scenario-card-actions {
    align-items: center;
    justify-content: flex-end;
    padding-left: 26px;
    border-left: 1px solid #dbe4ea;
}

.scenario-card-actions .button.small {
    min-width: 86px;
}

.spinner {
    border-color: #d7e0e1;
    border-top-color: var(--accent);
}

.alert-success {
    color: #0A2C52;
    background: #e6eef7;
    border-color: #c5d4e5;
}

.alert-error,
.validation-errors {
    color: #96333c;
    background: #fff0f2;
    border-color: #f1cdd2;
}

/* Test case group mockup layout */
.scenario-type-groups {
    gap: 22px;
}

.scenario-type-group {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e2ea;
    border-radius: 12px;
    box-shadow: 0 16px 44px #0a2c5210;
}

.scenario-type-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "identity stats"
        "context stats";
    gap: 12px 28px;
    min-height: 120px;
    padding: 24px 24px 24px 70px;
    background: #ffffff;
    border-bottom: 1px solid #dbe4ea;
}

.scenario-type-header::before {
    content: "⌄";
    position: absolute;
    left: 28px;
    top: 42px;
    color: #111827;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.scenario-group-identity {
    grid-area: identity;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.scenario-group-tags {
    display: inline-flex;
    flex: none;
}

.scenario-group-tags .status-badge {
    min-height: 34px;
    padding: 7px 12px;
    color: #0A2C52;
    background: #e3eefb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 850;
}

.scenario-group-identity h3 {
    margin: 0;
    color: #14233d;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.scenario-group-identity small,
.legacy-stats {
    display: none;
}

.scenario-group-context {
    grid-area: context;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 32px;
    margin: 0;
}

.scenario-group-context span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: auto;
    padding: 0;
    color: #25344d;
    background: transparent;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.25;
}

.scenario-group-context span::before {
    color: #52627a;
    font-size: 17px;
}

.scenario-group-context span:nth-child(1)::before { content: "▧"; }
.scenario-group-context span:nth-child(2)::before { content: "▥"; }
.scenario-group-context span:nth-child(3)::before { content: "▤"; }
.scenario-group-context span:nth-child(4)::before { content: "▣"; }

.scenario-group-context strong {
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.scenario-group-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, 74px);
    gap: 10px;
    align-self: center;
    justify-self: end;
}

.scenario-group-stats span {
    display: grid;
    min-height: 72px;
    place-items: center;
    gap: 3px;
    padding: 10px 7px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    box-shadow: 0 8px 20px #0a2c5208;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.scenario-group-stats strong {
    color: #152236;
    font-size: 26px;
    font-weight: 850;
    line-height: 1;
}

.scenario-group-stats span:nth-child(1) strong { color: #08762e; }
.scenario-group-stats span:nth-child(2) strong { color: #526071; }
.scenario-group-stats span:nth-child(3) {
    color: #0A2C52;
    background: #f6f9fe;
    border-color: #c9d9ed;
}
.scenario-group-stats span:nth-child(3) strong { color: #0A2C52; }
.scenario-group-stats span:nth-child(4) {
    color: #ad3343;
    background: #fff8f9;
    border-color: #efcdd3;
}
.scenario-group-stats span:nth-child(4) strong { color: #ad3343; }

.scenario-card-list {
    display: grid;
    gap: 0;
    padding: 0 16px 16px;
}

.scenario-list-heading {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 120px 150px 360px;
    gap: 18px;
    padding: 20px 40px 18px 56px;
    color: #405268;
    background: #ffffff;
    border-bottom: 1px solid #dbe4ea;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.scenario-list-heading span:last-child {
    text-align: center;
}

.scenario-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 120px 150px 360px;
    gap: 18px;
    align-items: center;
    min-height: 104px;
    padding: 22px 24px 22px 56px;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-top: 0;
}

.scenario-card:first-of-type {
    border-top: 1px solid #dbe4ea;
    border-radius: 8px 8px 0 0;
}

.scenario-card:last-child {
    border-radius: 0 0 8px 8px;
}

.scenario-card:hover {
    background: #fbfdff;
}

.scenario-card-main {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding-left: 0;
}

.scenario-card-main::before {
    content: "⠿";
    position: absolute;
    left: -30px;
    top: 2px;
    color: #111827;
    font-size: 18px;
    letter-spacing: -2px;
}

.scenario-card-main a {
    color: #14233d;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.scenario-card-main a:hover {
    text-decoration: underline;
}

.scenario-card-main small {
    color: #52627a;
    font-size: 15px;
    line-height: 1.3;
}

.scenario-card-type,
.scenario-card-priority,
.scenario-card-status {
    display: flex;
    align-items: center;
}

.scenario-card-priority span {
    min-width: 58px;
    padding: 8px 13px;
    color: #172033;
    background: #f1f3f5;
    border-radius: 999px;
    text-align: center;
}

.scenario-card-status .status-badge {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 15px;
}

.scenario-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-left: 34px;
    border-left: 1px solid #dbe4ea;
}

.scenario-card-actions .button.small {
    min-width: 88px;
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 8px;
    font-size: 15px;
}

.scenario-card-actions .button.small:first-child::before {
    content: "▷";
    margin-right: 8px;
}

.scenario-card-actions .button.secondary:last-child {
    color: #be3342;
    background: #ffffff;
    border: 1px solid #efc7cd;
}

.scenario-card-actions .button.secondary:last-child:hover {
    background: #fff7f8;
}

/* Compact mockup fit for the real workspace with the versions sidebar visible */
.scenario-type-groups {
    gap: 18px;
}

.scenario-type-group {
    border-radius: 12px;
}

.scenario-type-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 18px;
    min-height: 102px;
    padding: 18px 20px 18px 52px;
}

.scenario-type-header::before {
    content: "v";
    left: 22px;
    top: 38px;
    font-size: 16px;
}

.scenario-group-identity {
    gap: 10px;
}

.scenario-group-tags .status-badge {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.scenario-group-identity h3 {
    font-size: 20px;
    line-height: 1.18;
}

.scenario-group-context {
    gap: 8px 18px;
}

.scenario-group-context span {
    gap: 5px;
    font-size: 13px;
}

.scenario-group-context span::before {
    content: none !important;
}

.scenario-group-context strong {
    font-weight: 760;
}

.scenario-group-stats {
    grid-template-columns: repeat(4, 58px);
    gap: 7px;
}

.scenario-group-stats span {
    min-height: 58px;
    padding: 7px 5px;
    border-radius: 8px;
    font-size: 11px;
}

.scenario-group-stats strong {
    font-size: 21px;
}

.scenario-card-list {
    padding: 0 14px 14px;
}

.scenario-list-heading {
    grid-template-columns: minmax(170px, 1fr) 112px 76px 104px minmax(170px, 180px);
    gap: 10px;
    padding: 13px 14px 13px 50px;
    font-size: 10px;
    letter-spacing: .05em;
}

.scenario-card {
    grid-template-columns: minmax(170px, 1fr) 112px 76px 104px minmax(170px, 180px);
    gap: 10px;
    min-height: 82px;
    padding: 15px 14px 15px 50px;
}

.scenario-card-main::before {
    content: "::";
    left: -24px;
    top: 2px;
    color: #25344d;
    font-size: 15px;
    letter-spacing: -1px;
}

.scenario-card-main a {
    font-size: 14px;
    line-height: 1.24;
}

.scenario-card-main small {
    font-size: 12px;
}

.case-badge {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 10px;
}

.scenario-card-priority span {
    min-width: 48px;
    padding: 6px 10px;
    font-size: 13px;
}

.scenario-card-status .status-badge {
    min-height: 30px;
    padding: 6px 11px;
    font-size: 13px;
}

.scenario-card-actions {
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 12px;
}

.scenario-card-actions .button.small {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
}

.scenario-card-actions .button.small:first-child {
    min-width: 52px;
}

.scenario-card-actions .button.small:first-child::before {
    content: none;
}

.scenario-card-actions .button.secondary:last-child {
    min-width: 78px;
}

/* Typography tuning */
:root {
    font-family: "Segoe UI Variable", Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: -.005em;
}

.topbar,
.nav-menu a,
.form-control,
button,
input,
select,
textarea {
    font-family: inherit;
}

.page-header h1 {
    font-size: clamp(24px, 2.4vw, 31px);
    font-weight: 780;
    letter-spacing: -.035em;
}

.page-header p,
.scenario-browser-toolbar .muted {
    font-size: 13px;
}

.scenario-browser-toolbar h2 {
    font-size: 19px;
    font-weight: 760;
}

.panel-header h2,
.version-sidebar-header h2 {
    font-size: 15px;
    font-weight: 760;
}

.eyebrow,
.nav-group,
.scenario-list-heading {
    letter-spacing: .07em;
}

.scenario-group-identity h3 {
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -.025em;
}

.scenario-group-tags .status-badge {
    font-size: 11px;
    font-weight: 760;
}

.scenario-group-context span {
    font-size: 12px;
}

.scenario-group-context strong {
    font-weight: 680;
}

.scenario-group-stats span {
    font-size: 10px;
}

.scenario-group-stats strong {
    font-size: 19px;
    font-weight: 780;
}

.scenario-list-heading {
    font-size: 9px;
    font-weight: 780;
}

.scenario-card-main a {
    font-size: 13px;
    font-weight: 760;
}

.scenario-card-main small {
    font-size: 11px;
}

.case-badge,
.scenario-card-priority span,
.scenario-card-status .status-badge,
.scenario-card-actions .button.small {
    font-size: 11px;
}

.case-badge {
    font-weight: 760;
}

.button,
button.button {
    font-weight: 650;
}

.status-badge {
    font-weight: 720;
}

/* Font Awesome icon alignment */
.nav-menu a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding-left: 10px;
}

.nav-menu a::before {
    content: none;
}

.nav-menu a i {
    color: #738084;
    font-size: 13px;
    text-align: center;
}

.nav-menu a.active i {
    color: var(--accent);
}

.scenario-type-header {
    padding-left: 56px;
}

.scenario-type-header::before {
    content: none;
}

.scenario-group-toggle {
    position: absolute;
    left: 22px;
    top: 37px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #14233d;
    font-size: 13px;
}

.scenario-group-context span::before {
    content: none !important;
}

.scenario-group-context i {
    width: 15px;
    color: #52627a;
    font-size: 12px;
    text-align: center;
}

.scenario-card-main {
    padding-left: 0;
}

.scenario-card-main::before {
    content: none;
}

.scenario-drag-handle {
    position: absolute;
    left: -25px;
    top: 4px;
    color: #14233d;
    font-size: 13px;
}

.scenario-card-actions .button {
    gap: 7px;
}

.scenario-card-actions .button i {
    font-size: 11px;
}

.scenario-card-actions .button.small:first-child::before {
    content: none;
}

/* Compact two-line group header */
.scenario-type-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "identity dates stats"
        "context dates stats";
    align-items: center;
    min-height: 70px;
    gap: 2px 16px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.scenario-group-toggle {
    top: 50%;
    transform: translateY(-50%);
}

.scenario-group-identity {
    flex-wrap: nowrap;
    gap: 10px;
    align-self: end;
}

.scenario-group-identity h3 {
    flex: none;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 14px;
    font-weight: 780;
    white-space: nowrap;
}

.scenario-group-identity h3 small {
    display: inline;
    color: #52627a;
    font-size: 12px;
    font-weight: 400;
}

.scenario-group-context {
    flex-wrap: wrap;
    gap: 4px 12px;
    align-self: start;
    padding-left: 0;
}

.scenario-group-context span {
    font-size: 11px;
    white-space: nowrap;
}

.scenario-group-context i {
    font-size: 10px;
}

.scenario-type-header > .scenario-group-dates {
    grid-area: dates;
    display: grid;
    gap: 5px;
    align-content: center;
    color: #52627a;
    font-size: 10px;
    white-space: nowrap;
}

.scenario-group-dates span {
    display: grid;
    grid-template-columns: 12px auto 1fr;
    align-items: center;
    gap: 4px;
}

.scenario-group-dates i {
    color: #66758a;
    font-size: 10px;
}

.scenario-group-dates strong {
    color: #2c3b52;
    font-weight: 700;
}

.scenario-group-dates time {
    font-variant-numeric: tabular-nums;
}

.scenario-group-stats {
    grid-template-columns: repeat(4, 48px);
    gap: 5px;
}

.scenario-group-stats span {
    min-height: 42px;
    padding: 4px 3px;
    font-size: 9px;
}

.scenario-group-stats strong {
    font-size: 15px;
}

.scenario-card-type .case-badge {
    gap: 5px;
}

.case-mixed {
    display: grid;
    gap: 3px;
    align-items: center;
    color: inherit;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.case-mixed span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.case-mixed i {
    font-size: 10px;
}

.case-mixed strong {
    font-weight: 750;
}

.case-metric-positive {
    color: #0f5fbf;
}

.case-metric-negative {
    color: #b42336;
}

.scenario-type-group {
    overflow: hidden;
    border: 1px solid #dce6ef;
}

.scenario-type-groups {
    gap: 12px;
}

.scenario-type-header {
    cursor: pointer;
    border-bottom: 0;
}

.scenario-type-group.is-expanded .scenario-type-header {
    border-bottom: 0;
}

.scenario-type-group.is-collapsed .scenario-type-header {
    border-bottom: 0;
}

.scenario-group-toggle {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.scenario-group-toggle i {
    transition: transform .16s ease;
}

.scenario-card-list {
    max-height: 1400px;
    overflow: hidden;
    padding: 8px 12px 12px;
    opacity: 1;
    transition:
        max-height .28s ease,
        padding-top .28s ease,
        padding-bottom .28s ease,
        opacity .18s ease;
}

.scenario-type-group.is-collapsed .scenario-card-list {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.scenario-list-heading {
    border: 1px solid #dbe4ea;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.scenario-card {
    border: 1px solid #dbe4ea;
    border-top: 0;
    min-height: 70px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.scenario-run-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    color: #52627a;
    font-size: 10px;
    font-weight: 450;
    line-height: 1.2;
    text-decoration: none;
}

.scenario-run-inline:hover {
    text-decoration: none;
}

.scenario-run-inline .status-badge {
    min-height: 18px;
    padding: 3px 6px;
    font-size: 9px;
}

.scenario-run-inline time,
.scenario-run-inline span {
    white-space: nowrap;
}

.latest-run-status.is-passed {
    color: #166534;
}

.latest-run-status.is-failed {
    color: #b42336;
}

.latest-run-status.is-skipped {
    color: #6b7280;
}

.scenario-run-inline.no-run {
    color: #7b898d;
}

.scenario-run-inline.is-running {
    display: grid;
    gap: 5px;
    width: min(260px, 100%);
    color: #0A2C52;
}

.scenario-run-inline.live-suite-status {
    display: grid;
    gap: 5px;
    width: min(260px, 100%);
}

.scenario-run-inline.live-suite-status.is-passed {
    color: #166534;
}

.scenario-run-inline.live-suite-status.is-failed {
    color: #b42336;
}

.scenario-run-inline.live-suite-status.is-skipped {
    color: #6b7280;
}

.scenario-run-inline-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.scenario-run-inline-row strong {
    font-size: 10px;
    font-weight: 720;
}

.scenario-run-spinner {
    width: 9px;
    height: 9px;
    border: 2px solid #c9d8ea;
    border-top-color: #0A2C52;
    border-radius: 999px;
    animation: scenario-spin .8s linear infinite;
}

.scenario-mini-progress {
    width: 100%;
    height: 4px;
    overflow: hidden;
    background: #e8eef6;
    border-radius: 999px;
}

.scenario-mini-progress span {
    display: block;
    height: 100%;
    background: #0A2C52;
    border-radius: inherit;
    transition: width .2s ease;
}

@keyframes scenario-spin {
    to { transform: rotate(360deg); }
}

.scenario-card:first-of-type {
    border-top: 1px solid #dbe4ea;
    border-radius: 0;
}

.scenario-card:last-child {
    border-radius: 0 0 8px 8px;
}

.progress-summary {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.progress-summary:hover {
    border-color: #b8c8dc;
    box-shadow: 0 8px 22px #1d335912;
}

.run-progress-modal {
    display: grid;
    width: min(920px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #dbe4ea;
    border-radius: 18px;
    box-shadow: 0 30px 80px #0f172a45;
}

.run-progress-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: #ffffff;
    border-bottom: 1px solid #dbe4ea;
}

.run-progress-modal-header h2 {
    margin: 2px 0 0;
    font-size: 20px;
    letter-spacing: -.02em;
}

.run-progress-modal-body {
    overflow: auto;
    padding: 18px;
}

.run-progress-modal-body .live-run-stack {
    margin: 0;
}

.ui-run-execution-modal {
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1480px, calc(100vw - 40px));
    height: min(900px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
}

.ui-run-execution-body {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 16px 16px;
}

.ui-run-execution-modal > .run-progress-modal-header {
    padding: 12px 18px;
}

.ui-run-execution-modal > .run-progress-modal-header h2 {
    font-size: 18px;
}

.ui-run-execution-modal .ui-layout-assertion-results {
    max-height: none;
    overflow: visible;
}

.ui-run-execution-modal .ui-layout-report-grid {
    align-items: start;
}

.ui-run-live-preview {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #f8fbff;
}

.ui-run-live-preview > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ui-run-live-preview > header > div {
    display: grid;
    gap: 2px;
}

.ui-run-live-preview > header strong {
    color: #173553;
    font-size: 13px;
}

.ui-run-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e4f7ee;
    color: #18794e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ui-run-live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #20a66a;
    box-shadow: 0 0 0 4px rgba(32, 166, 106, .14);
}

.ui-run-live-frame {
    display: grid;
    place-items: center;
    height: clamp(280px, 48vh, 430px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid #bfd1e3;
    border-radius: 10px;
    background:
        linear-gradient(45deg, #eef3f8 25%, transparent 25%),
        linear-gradient(-45deg, #eef3f8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef3f8 75%),
        linear-gradient(-45deg, transparent 75%, #eef3f8 75%),
        #fff;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.ui-run-live-frame img {
    display: block;
    width: 100%;
    height: clamp(280px, 48vh, 430px);
    object-fit: contain;
    object-position: center;
}

.ui-run-dialog-starting {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 18px;
    color: #34506f;
    background: #fff;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
}

.ui-run-dialog-starting > i {
    color: #0d5c91;
    font-size: 22px;
}

.ui-run-dialog-starting > div {
    display: grid;
    gap: 3px;
}

.ui-run-dialog-result {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe4ea;
    border-radius: 14px;
}

.ui-run-dialog-result > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ui-run-dialog-result > header > div {
    display: grid;
    gap: 3px;
}

.ui-run-current-work {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 9px 10px;
    color: #274866;
    background: #f7fbff;
    border: 1px solid #d8e7f4;
    border-radius: 9px;
}

.ui-test-live-progress > header .ui-run-current-work {
    min-width: 190px;
    margin: 0 auto 0 8px;
    padding: 2px 14px;
    background: transparent;
    border: 0;
    border-left: 1px solid #c9dceb;
    border-radius: 0;
}

.ui-test-live-progress > header .ui-run-current-work > i {
    font-size: 13px;
}

.ui-run-current-work > span {
    display: grid;
    gap: 1px;
}

.ui-run-current-work small {
    color: #667c91;
}

.scenario-editor-page-header {
    align-items: center;
    max-width: 1120px;
    margin: 0 auto 12px;
}

.scenario-editor-page-header h1 {
    font-size: clamp(23px, 2vw, 29px);
    letter-spacing: -.035em;
}

.scenario-editor-page-header p {
    margin-top: 4px;
    font-size: 13px;
}

.scenario-editor-page-header .button {
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.scenario-editor-studio {
    max-width: 1120px;
    margin: 0 auto;
    gap: 12px;
}

.editor-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 12px;
    align-items: stretch;
}

.scenario-editor-studio .editor-card {
    gap: 12px;
    padding: 15px 17px;
    border-radius: 16px;
    box-shadow: 0 12px 34px #40505b0d;
}

.scenario-editor-studio .editor-card-header {
    min-height: 0;
    gap: 12px;
    padding-bottom: 10px;
}

.scenario-editor-studio .editor-card-header h2 {
    font-size: 16px;
    letter-spacing: -.015em;
}

.scenario-editor-studio .editor-card-header small {
    max-width: 300px;
    font-size: 11px;
    line-height: 1.35;
}

.scenario-editor-studio .icon-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #0A2C52;
    background: #eef4fa;
    border: 1px solid #d5e0eb;
    border-radius: 10px;
    cursor: pointer;
}

.scenario-editor-studio .icon-button:hover {
    background: #e3edf7;
    border-color: #b9c9da;
}

.scenario-editor-studio .icon-button.is-editing {
    color: #fff;
    background: #0A2C52;
    border-color: #0A2C52;
}

.editor-read-grid,
.parameter-read-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.read-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    background: #fbfcfc;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
}

.read-field.compact {
    max-width: 140px;
}

.read-field.wide {
    min-width: 0;
}

.read-field.full {
    grid-column: 1 / -1;
}

.read-field > span {
    color: #68777b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.read-field strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.read-field p,
.read-field small {
    margin: 0;
    color: #657276;
    font-size: 12px;
    line-height: 1.35;
}

.read-field code {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parameter-read-summary {
    padding: 0 17px 16px;
}

.section-edit-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1040px, calc(100vw - 48px));
    max-height: min(820px, calc(100vh - 48px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: 0 30px 80px #0f172a45;
}

.section-edit-modal-header,
.section-edit-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
}

.section-edit-modal-header h2 {
    margin: 2px 0 0;
    color: var(--text-strong);
    font-size: 18px;
}

.section-edit-modal-body {
    overflow: auto;
    padding: 16px;
    background: #f6f8f8;
}

.section-edit-modal-body > .parameter-editor {
    background: #fff;
    border-radius: 14px;
}

.section-edit-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--line-soft);
    border-bottom: 0;
}

.scenario-editor-studio .eyebrow {
    font-size: 9px;
    letter-spacing: .11em;
}

.scenario-editor-studio .editor-grid {
    gap: 10px 12px;
}

.scenario-editor-studio .editor-grid > .form-field,
.scenario-editor-studio .parameter-editor > .form-field,
.scenario-editor-studio .api-main-grid > .form-field,
.scenario-editor-studio .compact-grid > .form-field {
    min-height: 0;
}

.scenario-editor-studio .form-field {
    gap: 5px;
}

.scenario-editor-studio .form-field > span,
.scenario-editor-studio .field-label {
    min-height: 0;
    font-size: 11px;
    line-height: 1.2;
}

.scenario-editor-studio .form-field > small,
.scenario-editor-studio .form-field > .muted {
    min-height: 0;
    font-size: 11px;
}

.scenario-editor-studio .form-control,
.scenario-editor-studio input.form-control,
.scenario-editor-studio select.form-control {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 13px;
}

.scenario-editor-studio textarea.form-control {
    min-height: 74px;
    padding: 9px 11px;
    font-size: 13px;
}

.scenario-editor-studio textarea.compact-textarea,
.scenario-editor-studio .compact-textarea {
    min-height: 58px;
}

.editor-card-identity .editor-grid {
    grid-template-columns: minmax(0, 1fr) 120px;
}

.editor-card-context .editor-grid {
    gap: 10px;
}

.scenario-editor-studio .version-config-summary {
    min-height: 0;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
}

.scenario-editor-studio .version-config-summary strong {
    font-size: 13px;
}

.scenario-editor-studio .version-config-summary span {
    font-size: 9px;
    letter-spacing: .06em;
}

.scenario-editor-studio .version-config-summary small,
.scenario-editor-studio .version-config-summary code {
    font-size: 11px;
}

.scenario-editor-studio .editor-card-parameters {
    padding: 0;
}

.scenario-editor-studio .editor-card-parameters > .editor-card-header {
    margin: 0 17px;
    padding-top: 15px;
}

.scenario-editor-studio .editor-card-parameters > .parameter-editor {
    gap: 12px;
    padding: 14px 17px 16px;
}

.scenario-editor-studio .api-config-section {
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
}

.scenario-editor-studio .api-section-heading {
    min-height: 0;
    gap: 10px;
}

.scenario-editor-studio .api-section-heading h3 {
    font-size: 16px;
}

.scenario-editor-studio .api-section-heading p {
    margin-top: 1px;
    font-size: 11px;
}

.scenario-editor-studio .api-step {
    width: 25px;
    height: 25px;
    font-size: 12px;
}

.scenario-editor-studio .api-main-grid {
    gap: 9px;
}

.scenario-editor-studio .selected-endpoint-card {
    min-height: 0;
    align-items: start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
}

.scenario-editor-studio .selected-endpoint-card h4 {
    gap: 7px;
    margin: 3px 0 4px;
    font-size: 15px;
}

.scenario-editor-studio .selected-endpoint-card small {
    margin-top: 5px;
    font-size: 11px;
}

.scenario-editor-studio .selected-endpoint-card code {
    font-size: 12px;
}

.scenario-editor-studio .selected-endpoint-meta {
    justify-content: flex-start;
    gap: 6px;
    font-size: 11px;
}

.scenario-editor-studio .selected-endpoint-meta .button.small,
.scenario-editor-studio .endpoint-info-trigger {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
}

.scenario-editor-studio .endpoint-info-trigger i {
    width: 15px;
    height: 15px;
    font-size: 8px;
}

.scenario-editor-studio .api-advanced-details {
    padding: 10px 12px;
}

.scenario-editor-studio .advanced-card > summary {
    min-height: 50px;
    padding: 12px 17px;
}

.scenario-editor-studio .advanced-card > summary strong {
    font-size: 15px;
}

.scenario-editor-studio .advanced-card > .editor-grid {
    padding: 0 17px 17px;
}

.scenario-editor-studio .editor-footer {
    bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
}

.scenario-editor-studio .editor-footer .button {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
}

.scenario-editor-studio .check-field {
    min-height: 32px;
    font-size: 13px;
}

.scenario-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    box-shadow: 0 12px 34px #40505b0d;
}

.scenario-summary-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.scenario-summary-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #0A2C52;
    background: #e7f0fb;
    border-radius: 12px;
    font-size: 20px;
}

.scenario-summary-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.scenario-summary-title-row h2 {
    overflow: hidden;
    margin: 0;
    color: var(--text-strong);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scenario-summary-main p {
    margin: 5px 0 0;
    color: #66747b;
    font-size: 13px;
    line-height: 1.35;
}

.scenario-summary-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.scenario-summary-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, minmax(92px, 1fr));
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.summary-meta-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0 12px;
    border-left: 1px solid var(--line-soft);
}

.summary-meta-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.summary-meta-item span {
    color: #65737a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.summary-meta-item strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scenario-summary-editor {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.api-test-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr);
    gap: 12px;
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
}

.api-test-list-panel,
.api-case-inspector {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: 0 10px 28px #40505b0a;
}

.api-workbench-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.api-workbench-heading h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 16px;
    letter-spacing: -.02em;
}

.api-workbench-heading p {
    margin: 3px 0 0;
    color: #66747b;
    font-size: 12px;
}

.api-test-case-list {
    display: grid;
}

.api-test-case-row {
    display: grid;
    grid-template-columns: 22px minmax(180px, 1fr) auto minmax(104px, auto) auto 24px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    color: var(--text-strong);
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
}

.api-test-case-row:last-child {
    border-bottom: 0;
}

.api-test-case-row:hover,
.api-test-case-row.selected {
    background: #f4f8fd;
}

.api-test-case-row.selected {
    box-shadow: inset 3px 0 0 #0A2C52;
}

.api-test-case-row i.positive {
    color: #088a3a;
}

.api-test-case-row i.negative {
    color: #d02e3f;
}

.api-test-case-row strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.api-test-case-row small {
    display: block;
    margin-top: 2px;
    color: #66747b;
    font-size: 11px;
}

.api-case-inspector {
    position: sticky;
    top: 82px;
    overflow: hidden;
}

.api-inspector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.api-inspector-header h3 {
    margin: 2px 0 0;
    color: var(--text-strong);
    font-size: 17px;
    letter-spacing: -.02em;
}

.api-inspector-section {
    border-bottom: 1px solid var(--line-soft);
}

.api-inspector-section:last-child {
    border-bottom: 0;
}

.api-inspector-section > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.api-inspector-section > summary::-webkit-details-marker {
    display: none;
}

.api-inspector-section > summary::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #738399;
    font-size: 11px;
}

.api-inspector-section[open] > summary::before {
    content: "\f107";
}

.api-inspector-section > .compact-grid,
.api-inspector-section > .api-validation-list,
.api-inspector-section > .expectation-row,
.api-inspector-section > p,
.api-inspector-section > pre {
    margin: 0 14px 12px;
}

.api-validation-list {
    display: grid;
    gap: 6px;
}

.api-validation-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 26px;
    gap: 8px;
    align-items: center;
    min-height: 32px;
    padding: 7px 8px;
    background: #fbfcfc;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    color: var(--text-strong);
    font-size: 12px;
}

.api-validation-item > i {
    color: #0a9a49;
}

.api-validation-item button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #68777b;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.api-validation-item button:hover {
    color: #d02e3f;
    background: #fdecef;
}

.compact-expectation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.empty-state {
    display: grid;
    gap: 5px;
    padding: 18px;
    color: #66747b;
}

.empty-state strong {
    color: var(--text-strong);
}

/* Scenario editor v2: read-first engineering workspace */
.scenario-editor-studio {
    max-width: 1280px;
    gap: 10px;
}

.scenario-editor-page-header {
    max-width: 1280px;
    margin-inline: auto;
    padding-bottom: 8px;
}

.scenario-editor-page-header h1 {
    font-size: 24px;
}

.scenario-summary-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 15px;
    border-radius: 12px;
}

.scenario-summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
}

.scenario-summary-title-row h2 {
    font-size: 22px;
}

.scenario-summary-main p {
    margin-top: 3px;
    font-size: 12px;
}

.scenario-summary-meta {
    grid-template-columns: 1.05fr 1fr .75fr minmax(220px, 1.5fr) .55fr .75fr;
    gap: 8px;
    padding-top: 10px;
}

.scenario-summary-meta .summary-meta-item {
    padding: 0 10px;
    border-left: 1px solid var(--line-soft);
}

.scenario-summary-meta .summary-meta-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.summary-meta-item small {
    color: #69767d;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.summary-meta-item.metric strong {
    font-size: 19px;
    line-height: 1;
}

.summary-meta-item.result strong {
    color: #0a7a35;
}

.scenario-editor-studio .editor-card-parameters {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.scenario-editor-studio .editor-card-parameters > .editor-card-header {
    display: none;
}

.scenario-editor-studio .editor-card-parameters > .parameter-editor {
    padding: 0;
}

.api-engine-shell {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.api-endpoint-inspector {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    box-shadow: 0 10px 28px #40505b0a;
}

.api-endpoint-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.endpoint-command-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.endpoint-command-main strong {
    display: block;
    overflow: hidden;
    color: var(--text-strong);
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-command-main small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #66747b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-command-actions {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.endpoint-read-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px 0;
    border-block: 1px solid var(--line-soft);
}

.endpoint-read-strip span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-inline: 10px;
    color: #273544;
    font-size: 12px;
    border-left: 1px solid var(--line-soft);
}

.endpoint-read-strip span:first-child {
    padding-left: 0;
    border-left: 0;
}

.endpoint-read-strip strong {
    color: #65737a;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.api-endpoint-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: #f8fafb;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
}

.endpoint-path-field {
    grid-column: span 2;
}

.endpoint-path-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.endpoint-path-control .button {
    min-height: 38px;
    white-space: nowrap;
}

.endpoint-sections {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
}

.endpoint-section-row {
    border-bottom: 1px solid var(--line-soft);
}

.endpoint-section-row:last-child {
    border-bottom: 0;
}

.endpoint-section-row > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 36px;
    padding: 8px 11px;
    color: var(--text-strong);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.endpoint-section-row > summary::-webkit-details-marker {
    display: none;
}

.endpoint-section-row > summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.endpoint-section-row > summary i {
    width: 14px;
    color: #617189;
}

.endpoint-section-row > summary strong {
    color: #66747b;
    font-size: 11px;
    font-weight: 700;
}

.endpoint-section-content {
    padding: 0 11px 10px;
}

.endpoint-section-content pre,
.endpoint-section-content code {
    display: block;
    overflow: auto;
    max-height: 180px;
    margin: 0;
    padding: 8px 9px;
    color: #0d2035;
    background: #faf9f5;
    border: 1px solid #ded8cc;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.api-test-workbench {
    grid-template-columns: minmax(0, 1.7fr) minmax(330px, .7fr);
    gap: 10px;
}

.api-test-list-panel,
.api-case-inspector {
    border-radius: 12px;
}

.api-workbench-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 50px;
    padding: 9px 12px;
}

.api-workbench-heading h3 {
    font-size: 15px;
}

.api-mini-stats {
    display: flex;
    gap: 7px;
    align-items: center;
}

.api-mini-stats span {
    display: grid;
    place-items: center;
    min-width: 54px;
    min-height: 34px;
    padding: 4px 8px;
    color: #66747b;
    background: #fbfcfd;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    font-size: 10px;
    text-transform: uppercase;
}

.api-mini-stats strong {
    color: #0A2C52;
    font-size: 15px;
    line-height: 1;
}

.api-test-table-head,
.api-test-case-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 112px 112px 92px 148px;
    align-items: center;
}

.api-test-table-head {
    min-height: 34px;
    padding: 0 12px;
    color: #52606a;
    background: #fbfcfd;
    border-bottom: 1px solid var(--line-soft);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.api-test-case-row {
    gap: 10px;
    min-height: 54px;
    padding: 7px 12px;
    cursor: pointer;
}

.api-case-name-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.api-case-name-cell span {
    min-width: 0;
}

.api-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.api-case-inspector {
    top: 70px;
}

.api-inspector-header {
    min-height: 50px;
    padding: 10px 12px;
}

.api-inspector-header h3 {
    font-size: 15px;
}

.api-inspector-actions {
    display: flex;
    gap: 6px;
}

.inspector-read-summary,
.inspector-value-grid {
    display: grid;
    gap: 7px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.inspector-read-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inspector-read-summary span,
.inspector-value-grid span {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: #233143;
    font-size: 12px;
}

.inspector-read-summary strong,
.inspector-value-grid strong {
    color: #65737a;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.inspector-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 12px 10px;
}

.inspector-chip-list span {
    padding: 5px 8px;
    color: #304052;
    background: #f0f4f6;
    border-radius: 999px;
    font-size: 11px;
}

.api-inspector-section > summary {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
}

.api-inspector-section > .compact-grid,
.api-inspector-section > .api-validation-list,
.api-inspector-section > .expectation-row,
.api-inspector-section > p,
.api-inspector-section > pre {
    margin: 0 12px 10px;
}

.api-validation-item {
    min-height: 30px;
    border-radius: 999px;
}

.api-validation-list.readonly .api-validation-item {
    grid-template-columns: 18px minmax(0, 1fr);
    background: #f7fbf8;
    border-color: #d7eadc;
}

.api-validation-list.readonly .api-validation-item button {
    display: none;
}

.compact-field {
    margin-bottom: 8px;
}

.scenario-editor-studio {
    width: min(100%, 1480px);
    max-width: none;
}

.scenario-editor-page-header {
    width: min(100%, 1480px);
    max-width: none;
}

.scenario-editor-studio .editor-card-parameters > .parameter-editor {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.parameter-editor > .api-engine-shell.full {
    grid-column: 1 / -1;
    width: 100%;
}

.api-engine-shell {
    grid-template-columns: 1fr;
}

.api-endpoint-inspector {
    width: 100%;
}

.api-test-workbench {
    width: 100%;
    grid-template-columns: minmax(620px, 65fr) minmax(360px, 35fr);
    align-items: start;
}

.api-test-list-panel {
    min-height: 430px;
}

.api-case-inspector {
    min-height: 430px;
}

.api-row-actions .icon-button.subtle {
    width: 30px;
    height: 30px;
    color: #607086;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.api-row-actions .icon-button.subtle:hover {
    color: #0A2C52;
    background: #eef4fa;
}

.api-validation-item span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.api-validation-item span strong {
    overflow: hidden;
    color: #0d2035;
    font-size: 12px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-validation-item span small {
    overflow: hidden;
    color: #51616d;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-validation-list.readonly .api-validation-item {
    min-height: 38px;
    border-radius: 12px;
}

.scenario-summary-card {
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 65%, #f7fbff 100%);
}

.scenario-summary-meta {
    align-items: stretch;
}

.scenario-summary-meta .summary-meta-item {
    padding: 9px 11px;
    background: #fbfcfd;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
}

.scenario-summary-meta .summary-meta-item:first-child {
    padding-left: 11px;
    border-left: 1px solid var(--line-soft);
}

.summary-meta-item strong {
    font-size: 13px;
}

.summary-meta-item.endpoint strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.summary-meta-item.metric,
.summary-meta-item.result {
    text-align: center;
}

.api-endpoint-inspector {
    padding: 10px 12px;
}

.endpoint-read-strip {
    padding: 6px 0;
}

.endpoint-section-row > summary {
    min-height: 34px;
    padding-block: 7px;
}

.api-test-case-row {
    min-height: 56px;
}

.api-test-case-row .status-badge {
    justify-self: start;
}

.api-workbench-heading .actions .button {
    min-height: 32px;
}

/* Readability refinement pass: calmer hierarchy, fixed icon slots, less noise */
.scenario-editor-page-header {
    padding-top: 12px;
}

.scenario-editor-page-header p {
    font-size: 13px;
    line-height: 1.45;
}

.scenario-editor-studio {
    gap: 9px;
}

.scenario-editor-studio .eyebrow,
.scenario-editor-studio .field-label,
.scenario-editor-studio .form-field > span,
.summary-meta-item small,
.endpoint-read-strip strong,
.api-test-table-head,
.inspector-read-summary strong,
.inspector-value-grid strong {
    letter-spacing: .015em;
    text-transform: none;
}

.scenario-editor-studio .eyebrow,
.scenario-editor-studio .field-label,
.scenario-editor-studio .form-field > span {
    font-size: 11px;
    line-height: 1.35;
}

.scenario-summary-card {
    gap: 10px 16px;
    padding: 12px 14px;
    background: #fff;
}

.scenario-summary-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
}

.scenario-summary-title-row {
    gap: 10px;
}

.scenario-summary-title-row h2 {
    font-size: 25px;
    line-height: 1.14;
}

.scenario-summary-main p {
    max-width: 780px;
    color: #5e6b75;
    font-size: 13px;
    line-height: 1.45;
}

.scenario-summary-icon {
    flex-shrink: 0;
}

.scenario-summary-meta {
    grid-template-columns: minmax(100px, .9fr) minmax(130px, 1fr) minmax(80px, .65fr) minmax(220px, 1.65fr) 104px 120px;
    gap: 0;
    padding-top: 10px;
    border-top-color: #e5ecf2;
}

.scenario-summary-meta .summary-meta-item,
.scenario-summary-meta .summary-meta-item:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 1px 14px;
    text-align: left;
    background: transparent;
    border: 0;
    border-left: 1px solid #e5ecf2;
    border-radius: 0;
}

.scenario-summary-meta .summary-meta-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.summary-meta-item small {
    order: -1;
    color: #667580;
    font-size: 11px;
    font-weight: 650;
}

.summary-meta-item strong {
    overflow: hidden;
    color: #101d2f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-meta-item.endpoint strong {
    font-size: 13px;
}

.summary-meta-item.metric,
.summary-meta-item.result {
    align-content: center;
    padding: 7px 10px;
    text-align: center;
    background: #f8fbfe;
    border: 1px solid #dce8f3;
    border-radius: 11px;
}

.summary-meta-item.result {
    background: #f8fcf9;
    border-color: #d8eadf;
}

.summary-meta-item.metric strong,
.summary-meta-item.result strong {
    font-size: 16px;
}

.api-endpoint-inspector {
    gap: 9px;
    padding: 11px 13px;
    border-radius: 12px;
}

.api-endpoint-command {
    min-height: 40px;
}

.endpoint-command-main {
    gap: 11px;
}

.endpoint-command-main .status-badge {
    flex-shrink: 0;
}

.endpoint-command-main > div {
    min-width: 0;
}

.endpoint-command-main strong {
    font-size: 17px;
    line-height: 1.25;
}

.endpoint-command-main small {
    color: #5b6b77;
    font-size: 12px;
    line-height: 1.35;
}

.endpoint-command-actions,
.api-inspector-actions,
.api-row-actions {
    flex-shrink: 0;
}

.endpoint-read-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 4px 0 8px;
    border-block: 0;
}

.endpoint-read-strip span {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #101d2f;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.endpoint-read-strip strong {
    color: #667580;
    font-size: 12px;
    font-weight: 650;
}

.endpoint-sections {
    border-color: #dde7ef;
    border-radius: 10px;
}

.endpoint-section-row > summary {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.endpoint-section-row > summary span {
    min-width: 0;
}

.endpoint-section-row > summary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #526981;
}

.endpoint-section-row > summary strong {
    min-width: 34px;
    justify-self: end;
    color: #52616b;
    font-size: 12px;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
}

.endpoint-section-content {
    padding: 0 12px 10px 40px;
}

.api-test-workbench {
    grid-template-columns: minmax(0, 62fr) minmax(380px, 38fr);
    gap: 12px;
}

.api-test-list-panel,
.api-case-inspector {
    overflow: hidden;
    border-color: #dbe6ef;
    box-shadow: 0 10px 24px #3c4b5a0a;
}

.api-workbench-heading {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 9px 12px;
}

.api-workbench-heading h3 {
    margin-top: 1px;
    font-size: 17px;
    line-height: 1.25;
}

.api-mini-stats span {
    min-width: 52px;
    min-height: 34px;
    font-size: 11px;
    line-height: 1.15;
}

.api-mini-stats strong {
    font-size: 16px;
}

.api-test-table-head,
.api-test-case-row {
    grid-template-columns: minmax(240px, 1fr) 108px 122px 96px 44px;
    column-gap: 12px;
}

.api-test-table-head {
    min-height: 32px;
    padding: 0 12px;
    color: #52616d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.api-test-case-row {
    min-height: 54px;
    padding: 7px 12px;
    border-bottom-color: #e3ebf2;
}

.api-case-name-cell {
    gap: 10px;
}

.api-case-name-cell > i,
.api-test-case-row > i.positive,
.api-test-case-row > i.negative {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.api-case-name-cell span,
.api-test-case-row > span,
.api-test-case-row > small {
    min-width: 0;
}

.api-test-case-row strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-test-case-row small {
    overflow: hidden;
    color: #5f6f7a;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-test-case-row > .status-badge {
    max-width: 100%;
    justify-self: start;
    white-space: nowrap;
}

.api-row-actions {
    justify-content: flex-end;
}

.api-row-actions .icon-button.subtle,
.scenario-editor-studio .icon-button,
.endpoint-info-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex: 0 0 32px;
}

.api-case-inspector {
    min-width: 380px;
}

.api-inspector-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
}

.api-inspector-header > div:first-child {
    min-width: 0;
}

.api-inspector-header h3 {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-inspector-actions {
    align-items: center;
}

.api-inspector-actions .button,
.endpoint-command-actions .button {
    flex-shrink: 0;
    min-height: 32px;
    white-space: nowrap;
}

.inspector-read-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 9px 12px;
}

.inspector-read-summary span,
.inspector-value-grid span {
    font-size: 13px;
    line-height: 1.35;
}

.inspector-read-summary strong,
.inspector-value-grid strong {
    color: #667580;
    font-size: 12px;
    font-weight: 650;
}

.api-inspector-section > summary {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.api-inspector-section > summary::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.api-validation-list {
    gap: 7px;
}

.api-validation-item {
    grid-template-columns: 20px minmax(0, 1fr) 26px;
    gap: 8px;
    min-height: 40px;
    padding: 7px 10px;
}

.api-validation-list.readonly .api-validation-item {
    grid-template-columns: 20px minmax(0, 1fr);
}

.api-validation-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.api-validation-item span strong {
    font-size: 13px;
    line-height: 1.25;
}

.api-validation-item span small {
    font-size: 12px;
    line-height: 1.25;
}

.status-badge,
.soft-pill {
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 1320px) {
    .api-test-workbench {
        grid-template-columns: minmax(0, 62fr) minmax(360px, 38fr);
    }

    .api-case-inspector {
        min-width: 360px;
    }

    .api-test-table-head,
    .api-test-case-row {
        grid-template-columns: minmax(210px, 1fr) 96px 104px 84px 38px;
        column-gap: 8px;
    }

    .api-workbench-heading {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .api-workbench-heading .actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

/* Mockup-aligned test cases workspace: full-width list with inline selected details */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.api-test-workbench {
    display: block;
    width: 100%;
}

.api-test-list-panel {
    min-height: 0;
    width: 100%;
    border-radius: 12px;
}

.api-workbench-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
}

.api-workbench-heading h3 {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: #101d2f;
    font-size: 18px;
    line-height: 1.25;
}

.api-workbench-heading h3 span {
    color: #5f6f7a;
    font-size: 13px;
    font-weight: 650;
}

.api-mini-stats {
    display: inline-flex;
    gap: 7px;
}

.api-mini-stats span {
    min-width: 66px;
    min-height: 36px;
    padding: 4px 10px;
    color: #5f6f7a;
    background: #fbfcfd;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .025em;
    text-align: center;
    text-transform: uppercase;
}

.api-mini-stats strong {
    display: block;
    color: #0A2C52;
    font-size: 15px;
    line-height: 1.1;
}

.api-test-table-head,
.api-test-case-row {
    display: grid;
    grid-template-columns: 34px minmax(260px, 1fr) minmax(104px, 140px) minmax(130px, 180px) minmax(110px, 150px) 46px;
    column-gap: 12px;
    align-items: center;
}

.api-test-table-head {
    min-height: 34px;
    padding: 0 14px;
    color: #52616d;
    background: #fbfcfd;
    border-top: 1px solid #e2ebf2;
    border-bottom: 1px solid #dbe6ef;
    font-size: 12px;
    font-weight: 700;
}

.api-test-case-list {
    display: block;
}

.api-test-case-item {
    border-bottom: 1px solid #e4ecf3;
}

.api-test-case-item:last-child {
    border-bottom: 0;
}

.api-test-case-row {
    width: 100%;
    min-height: 56px;
    padding: 8px 14px;
    color: inherit;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.api-test-case-row:hover {
    background: #f8fbff;
}

.api-test-case-row:focus-visible {
    outline: 2px solid #8bb8f0;
    outline-offset: -2px;
}

.api-test-case-item.selected .api-test-case-row {
    background: #eef7ff;
    box-shadow: inset 3px 0 0 #0A2C52;
}

.test-status-icon,
.validation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.test-status-icon.positive,
.validation-icon {
    color: #129b55;
}

.test-status-icon.negative {
    color: #f02d3a;
}

.api-case-name-cell {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.api-case-name-cell strong {
    overflow: hidden;
    color: #102137;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-case-name-cell small,
.api-test-case-row > small {
    overflow: hidden;
    color: #5f6f7a;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-test-case-row > .status-badge {
    justify-self: start;
    max-width: 100%;
}

.api-row-actions {
    display: flex;
    justify-content: flex-end;
}

.api-row-actions .icon-button.subtle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex: 0 0 32px;
}

.api-test-case-details {
    margin: 0 14px 12px 17px;
    background: #fff;
    border: 1px solid #d5e3ee;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.api-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    border-bottom: 1px solid #e2ebf2;
}

.api-detail-toolbar h4,
.expected-panel-header h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #102137;
    font-size: 14px;
    line-height: 1.25;
}

.expected-panel-header h4 span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    color: #52616d;
    background: #eef3f7;
    border-radius: 999px;
    font-size: 12px;
}

.api-detail-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.api-detail-actions .button {
    min-height: 34px;
    flex-shrink: 0;
}

.api-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 60fr) minmax(340px, 40fr);
    min-width: 0;
}

.api-detail-main {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid #e2ebf2;
}

.api-detail-read-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.detail-read-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.detail-read-field.wide {
    grid-column: span 1;
}

.detail-read-field strong {
    color: #52616d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.detail-read-field small {
    overflow: hidden;
    color: #102137;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.api-edit-grid {
    gap: 10px 12px;
}

.api-expected-panel {
    min-width: 0;
    padding: 14px 16px;
}

.expected-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin-bottom: 9px;
}

.expected-panel-header .button {
    min-height: 30px;
    flex-shrink: 0;
}

.expected-results-grid {
    overflow: hidden;
    border: 1px solid #dfe8ef;
    border-radius: 9px;
}

.expected-results-head,
.expected-result-row {
    display: grid;
    grid-template-columns: 34px minmax(120px, 1fr) minmax(110px, .8fr) minmax(120px, 1fr) 40px;
    column-gap: 10px;
    align-items: center;
}

.expected-results-head {
    min-height: 32px;
    padding: 0 10px;
    color: #52616d;
    background: #fbfcfd;
    border-bottom: 1px solid #dfe8ef;
    font-size: 12px;
    font-weight: 700;
}

.expected-result-row {
    min-height: 40px;
    padding: 0 10px;
    border-bottom: 1px solid #edf2f6;
    font-size: 13px;
}

.expected-result-row:last-child {
    border-bottom: 0;
}

.expected-result-row strong,
.expected-result-row span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expected-result-row strong {
    color: #102137;
    font-size: 13px;
}

.expected-result-row span {
    color: #26384a;
}

.expected-result-row .icon-button {
    justify-self: end;
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.expected-result-row .icon-button:disabled {
    opacity: .45;
    cursor: default;
}

.button.ghost {
    color: #0A2C52;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.button.ghost:hover {
    background: #eef4fa;
    border-color: #d5e0eb;
}

@media (max-width: 1320px) {
    .api-test-table-head,
    .api-test-case-row {
        grid-template-columns: 30px minmax(220px, 1fr) 104px 130px 104px 40px;
        column-gap: 8px;
    }

    .api-detail-body {
        grid-template-columns: minmax(0, 58fr) minmax(320px, 42fr);
    }

    .expected-results-head,
    .expected-result-row {
        grid-template-columns: 28px minmax(100px, 1fr) minmax(88px, .7fr) minmax(100px, 1fr) 34px;
        column-gap: 7px;
    }
}

@media (max-width: 980px) {
    .api-detail-body {
        grid-template-columns: 1fr;
    }

    .api-detail-main {
        border-right: 0;
        border-bottom: 1px solid #e2ebf2;
    }
}

/* Scenario editor workspace: final mockup-aligned interaction and density */
.content:has(.scenario-editor-studio) {
    width: 100%;
    max-width: 1680px;
    padding: 18px 22px 36px;
}

.scenario-editor-page-header,
.scenario-editor-studio {
    width: 100%;
    max-width: none;
}

.scenario-editor-page-header {
    align-items: center;
    margin-bottom: 12px;
}

.scenario-editor-page-header h1 {
    font-size: 21px;
}

.scenario-editor-page-header p {
    margin-top: 3px;
    font-size: 12px;
}

.scenario-editor-page-header .button,
.scenario-summary-actions .button,
.endpoint-command-actions .button {
    border: 1px solid #d7e1eb;
    background: #fff;
}

.scenario-editor-studio {
    gap: 10px;
}

.scenario-editor-studio .api-workspace-card {
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.scenario-editor-studio .api-workspace-card > .parameter-editor {
    padding: 0;
    background: transparent;
}

.api-workspace-card .api-engine-shell {
    display: grid;
    gap: 10px;
}

.scenario-summary-card,
.api-endpoint-inspector,
.api-test-list-panel {
    border-color: #dbe4ec;
    border-radius: 10px;
    box-shadow: 0 6px 18px #17324d08;
}

.scenario-summary-card {
    padding: 12px 14px 10px;
}

.scenario-summary-title-row h2 {
    font-size: 18px;
}

.scenario-summary-meta {
    grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.15fr) minmax(90px, .75fr) minmax(180px, 1.5fr) 108px 128px;
}

.scenario-summary-meta .summary-meta-item {
    min-width: 0;
}

.summary-meta-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-endpoint-inspector {
    padding: 12px 14px 9px;
}

.api-workbench-heading {
    min-height: 48px;
}

.api-test-table-head {
    font-size: 11px;
}

.api-test-case-row {
    min-height: 52px;
}

.api-test-case-details {
    margin: 0 12px 12px 15px;
}

.api-detail-toolbar {
    min-height: 46px;
    padding: 0 10px 0 14px;
}

.api-detail-tabs {
    align-items: stretch;
    overflow: hidden;
}

.api-detail-tab {
    position: relative;
    min-width: 0;
    padding: 0 12px;
    color: #53657a;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.api-detail-tab:hover {
    color: #0A2C52;
    background: #f7faff;
}

.api-detail-tab:focus-visible {
    outline: 2px solid #76a9e0;
    outline-offset: -3px;
}

.api-detail-tab.active {
    color: #0A2C52;
    font-weight: 750;
}

.api-detail-tab .tab-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    place-items: center;
    padding: 0 6px;
    color: #52616d;
    background: #eaf0f5;
    border-radius: 999px;
    font-size: 11px;
}

.api-detail-panel {
    min-width: 0;
    min-height: 176px;
    padding: 14px 16px 16px;
    animation: detail-tab-in .13s ease-out;
}

@keyframes detail-tab-in {
    from { opacity: .55; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.metadata-column {
    display: grid;
    gap: 0;
    padding: 0 14px;
}

.metadata-column:first-child {
    padding-left: 10px;
    border-right: 1px solid #dfe7ee;
}

.metadata-row {
    display: grid;
    grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 34px;
}

.metadata-row strong,
.read-summary-item strong,
.test-data-summary strong {
    color: #52647a;
    font-size: 11px;
    font-weight: 650;
}

.metadata-row small,
.read-summary-item small,
.test-data-summary small {
    overflow: hidden;
    color: #102137;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.metadata-row .status-badge {
    font-size: 11px;
}

.tab-edit-grid {
    max-width: 920px;
    padding: 2px 6px;
}

.read-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e0e8ef;
    border-radius: 8px;
}

.read-summary-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    min-height: 50px;
    align-items: center;
    padding: 9px 12px;
    border-right: 1px solid #e8eef3;
    border-bottom: 1px solid #e8eef3;
}

.read-summary-item:nth-child(2n) { border-right: 0; }
.read-summary-item:nth-last-child(-n + 2) { border-bottom: 0; }

.read-summary-item small {
    white-space: pre-line;
}

.api-expected-panel {
    padding: 0;
}

.expectation-add-controls {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.expectation-add-controls .form-control {
    width: 190px;
    min-height: 32px;
    padding-block: 5px;
}

.expected-results-grid.editing .expected-result-row {
    min-height: 48px;
}

.expected-result-row .form-control {
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.test-data-summary {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.test-data-summary > span {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.test-data-summary pre {
    min-height: 118px;
    max-height: 260px;
    margin: 0;
    overflow: auto;
    padding: 12px 14px;
    color: #24364a;
    background: #f8fafc;
    border: 1px solid #e0e8ef;
    border-radius: 8px;
    font: 12px/1.5 Consolas, monospace;
    white-space: pre-wrap;
}

.compact-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    color: #7890a6;
}

.compact-empty-state > i {
    font-size: 20px;
}

.compact-empty-state > div {
    display: grid;
    gap: 3px;
}

.compact-empty-state strong { color: #26384a; font-size: 13px; }
.compact-empty-state small { font-size: 12px; }

.scenario-editor-studio .advanced-card > summary {
    min-height: 48px;
    padding: 10px 14px;
}

.scenario-editor-studio .advanced-card > summary strong {
    font-size: 14px;
}

.scenario-editor-studio .advanced-card > summary small {
    font-size: 12px;
}

.scenario-editor-studio .editor-footer {
    bottom: 10px;
    padding: 10px 14px;
    background: #ffffffed;
    border-radius: 10px;
    box-shadow: 0 5px 18px #17324d12;
}

@media (max-width: 1320px) and (min-width: 1101px) {
    .scenario-summary-meta {
        grid-template-columns: minmax(100px, 1fr) minmax(135px, 1.15fr) minmax(85px, .7fr) minmax(150px, 1.4fr) 98px 118px;
        gap: 0;
    }

    .summary-meta-item.metric,
    .summary-meta-item.result {
        text-align: center;
    }

    .api-detail-tab {
        padding-inline: 8px;
        font-size: 11px;
    }
}

@media (max-width: 1100px) {
    .scenario-summary-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 0;
    }

    .api-detail-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding-top: 6px;
    }

    .api-detail-tabs {
        flex-wrap: wrap;
    }

    .api-detail-actions {
        align-self: flex-end;
        padding-bottom: 7px;
    }
}

/* Business Workflows */
.workflow-tabs { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; padding: 6px; background: #e8edf5; border-radius: 12px; }
.workflow-tab-links { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; align-items: center; overflow-x: auto; }
.workflow-tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 9px 15px; color: #53627a; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.workflow-tab-links > button { flex: 0 0 auto; white-space: nowrap; }
.workflow-tabs button.active { color: #172033; background: #fff; box-shadow: 0 4px 12px #17203312; font-weight: 700; }
.workflow-tab-count { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding: 0 6px; color: #5f6f86; background: #d9e2ee; border-radius: 999px; font-size: 10px; font-weight: 800; }
.workflow-validation-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; min-height: 21px; padding: 2px 6px; border-radius: 999px; font-size: 10px; font-weight: 750; line-height: 1.2; vertical-align: middle; }
.workflow-validation-badge.is-error { color: #aa1d35; background: #ffe1e7; box-shadow: inset 0 0 0 1px #f5adb9; }
.workflow-validation-badge.is-warning { color: #805706; background: #fff0c7; }
.workflow-validation-messages { display: grid; gap: 6px; min-width: 0; }
.workflow-validation-message { display: flex; align-items: flex-start; gap: 7px; padding: 9px 11px; border-radius: 7px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.workflow-validation-message.is-error { color: #aa1d35; background: #fff1f3; border-left: 3px solid #ce3651; }
.workflow-validation-message.is-warning { color: #805706; background: #fff8e7; border-left: 3px solid #d3a237; }
.workflow-validation-message > i { margin-top: 3px; flex: 0 0 auto; }
.workflow-validation-message > span > span { display: block; margin-top: 3px; }
label:has(> .workflow-validation-messages .is-error) > .form-control,
.workflow-validation-scope .form-control[aria-invalid="true"],
.workflow-condition-settings .form-control[aria-invalid="true"] { border-color: #ce3651; background-color: #fff5f6; }
label:has(> .workflow-validation-messages .is-error) > .form-control:focus,
.workflow-validation-scope .form-control[aria-invalid="true"]:focus,
.workflow-condition-settings .form-control[aria-invalid="true"]:focus { border-color: #aa1d35; box-shadow: 0 0 0 3px #ce365126; }
.workflow-extraction-item { display: grid; gap: 8px; padding: 10px; background: #fff; border: 1px solid #dbe5f2; border-radius: 10px; }
.workflow-extraction-item:has(.workflow-validation-message.is-error) { border-color: #f5adb9; }
.workflow-extraction-item > .step-settings-group { margin: 0; }
.workflow-extraction-item summary .workflow-validation-badge { margin-left: 8px; }
.extraction-selection-toggle { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.extraction-selection-toggle > small { padding: 2px 7px; color: #53627a; background: #edf1f6; border-radius: 999px; font-size: 10px; }
.extraction-selection-toggle:has(input:checked) > small { color: #174c7d; background: #e2effd; }
.extraction-selection-help { margin: 8px 0 0; color: #627086; font-size: 12px; line-height: 1.5; }
.extraction-selection-settings > .form-grid { margin-top: 12px; }
.workflow-input-issues { grid-column: 1 / -1; }
.workflow-input-issues:empty { display: none; }
.workflow-tabs button.active .workflow-tab-count { color: #0a2c52; background: #e5eff9; }
.workflow-tabs button .workflow-tab-count.status-success { color: #17643f; background: #dff5e8; box-shadow: inset 0 0 0 1px #b9e4ca; }
.workflow-tabs button .workflow-tab-count.status-warning { color: #805706; background: #fff0c7; box-shadow: inset 0 0 0 1px #ebd18b; }
.workflow-tabs button .workflow-tab-count.status-error { color: #a52727; background: #fde3e3; box-shadow: inset 0 0 0 1px #f2bcbc; }
.workflow-tab-actions { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; margin-left: auto; padding-left: 10px; border-left: 1px solid #d0d9e5; }
.workflow-tab-actions select.form-control { width: clamp(120px, 17vw, 240px); min-width: 120px; max-width: 240px; text-overflow: ellipsis; }
:is(.workflow-action-icon, .grid-action-icon) { display: inline-grid; box-sizing: border-box; flex: 0 0 34px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; place-items: center; color: #173e65; background: #fff; border: 1px solid #d2dce7; border-radius: 8px; box-shadow: 0 2px 6px #17334d12; font-size: 13px; line-height: 1; vertical-align: middle; text-decoration: none; cursor: pointer; }
.workflow-tabs .workflow-tab-actions .workflow-action-icon { display: inline-grid; padding: 0; }
:is(.workflow-action-icon, .grid-action-icon).primary { color: #fff; background: #0a355e; border-color: #0a355e; }
:is(.workflow-action-icon, .grid-action-icon):hover:not(:disabled) { color: #0b3157; background: #f5f9fc; border-color: #9eb4c8; }
:is(.workflow-action-icon, .grid-action-icon).primary:hover:not(:disabled) { color: #fff; background: #124a78; border-color: #124a78; }
:is(.workflow-action-icon, .grid-action-icon).danger { color: #a52b25; background: #fff7f6; border-color: #efc8c4; }
:is(.workflow-action-icon, .grid-action-icon).danger:hover:not(:disabled) { color: #8d201b; background: #fee9e7; border-color: #e6aaa5; }
:is(.workflow-action-icon, .grid-action-icon):disabled { opacity: .42; cursor: not-allowed; }
:is(.workflow-action-icon, .grid-action-icon):focus-visible { outline: 2px solid #2874ad; outline-offset: 3px; }
.grid-action-icon > i { margin: 0; pointer-events: none; }
.actions.grid-row-actions, .button-row.grid-row-actions, .scenario-card-actions.grid-row-actions { display: flex; gap: 7px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
td.grid-actions-cell { vertical-align: middle; }
.load-test-run-action { min-width: 116px; }
.step-identity-plan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 12px; color: #244b36; background: #edf8f1; border: 1px solid #cde7d6; border-radius: 9px; }
.step-identity-plan-icon { display: grid; width: 30px; height: 30px; place-items: center; color: #216640; background: #d9f0e2; border-radius: 8px; }
.step-identity-plan > div { display: grid; gap: 3px; }
.step-identity-plan strong { font-size: 12px; }
.step-identity-plan small { color: #4f6e5c; font-size: 10px; line-height: 1.4; }
.workflow-variable-tabs { display: inline-flex; gap: 4px; margin-bottom: 12px; padding: 4px; background: #edf1f6; border: 1px solid #dce3ec; border-radius: 10px; }
.workflow-variable-tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; color: #5c6a7e; background: transparent; border: 0; border-radius: 7px; font-size: 12px; cursor: pointer; }
.workflow-variable-tabs button.active { color: #173e65; background: #fff; box-shadow: 0 2px 8px #17203312; font-weight: 750; }
.workflow-variable-tabs small { display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; color: #607087; background: #dbe4ef; border-radius: 999px; font-size: 9px; font-weight: 800; }
.workflow-variable-tabs button.active small { color: #174c7d; background: #e5f1ff; }
.workflow-active-run { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; color: #264d72; background: #eef6fd; border: 1px solid #cfe1f1; border-radius: 10px; }
.workflow-active-run-icon { display: grid; width: 32px; height: 32px; place-items: center; color: #1d6396; background: #dceefa; border-radius: 50%; }
.workflow-active-run > div { display: grid; gap: 3px; }
.workflow-active-run small { color: #64788b; }
.workflow-history-table { min-width: 820px; }
.workflow-run-correlation { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-history-body { padding-top: 12px; }
.related-test-cases-panel .panel-header { align-items: flex-start; }
.related-test-case-list { display: grid; gap: 8px; }
.related-test-case-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px; background: #fbfcfd; border: 1px solid #e2e8f0; border-radius: 12px; }
.related-test-case-row:hover { background: #f7fafc; border-color: #cfdae6; }
.related-test-case-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #234f7d; background: #e8f1f9; border-radius: 11px; }
.related-test-case-main { min-width: 0; }
.related-test-case-title { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.related-test-case-title code { flex: 0 0 auto; color: #24547f; font-size: 11px; font-weight: 800; }
.related-test-case-title strong { overflow: hidden; color: #172033; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.related-test-case-main > small { display: block; margin-top: 4px; color: #71809a; }
.related-test-case-main p { margin: 7px 0 0; color: #596a7d; font-size: 12px; }
.related-test-case-status { display: flex; gap: 6px; align-items: center; }
.test-case-studio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.test-case-document .panel-header, .automation-review-card .panel-header { align-items: flex-start; }
.test-case-document .panel-header h2, .automation-review-card .panel-header h2 { margin: 3px 0; }
.human-step-list { display: grid; border: 1px solid #dde5ef; border-radius: 12px; overflow: hidden; }
.human-step-head, .human-step-row { display: grid; grid-template-columns: 38px minmax(180px, 1fr) minmax(180px, 1fr) minmax(145px, .55fr) auto; gap: 10px; align-items: center; }
.human-step-head { padding: 9px 12px; color: #71809a; background: #f4f7fb; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.human-step-row { padding: 12px; border-top: 1px solid #e4eaf2; background: #fff; }
.human-step-row:first-of-type { border-top: 0; }
.human-step-row textarea { min-height: 72px; resize: vertical; }
.human-step-order { display: grid; place-items: center; width: 30px; height: 30px; color: #2456a6; background: #edf4ff; border-radius: 50%; font-weight: 800; }
.human-step-binding { display: grid; gap: 6px; align-content: center; }
.human-step-binding small { color: #71809a; line-height: 1.35; }
.human-step-actions { display: flex; gap: 3px; }
.test-case-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #71809a; font-size: 12px; }
.automation-review-card { position: sticky; top: 14px; }
.automation-review-card p { margin: 0; color: #53627a; line-height: 1.5; }
.automation-review-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 12px; background: #f5f8fc; border-radius: 10px; }
.automation-review-stats div { display: grid; gap: 3px; text-align: center; }
.automation-review-stats dt { color: #71809a; font-size: 10px; text-transform: uppercase; }
.automation-review-stats dd { margin: 0; color: #16375e; font-size: 20px; font-weight: 800; }
.automation-link-banner { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; padding: 10px 12px; color: #315174; background: #edf6ff; border: 1px solid #cfe2f5; border-radius: 9px; font-size: 12px; }
.automation-link-banner strong { color: #123b67; }
.automation-approval-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 16px 18px; color: #5f4610; background: #fff9e9; border: 1px solid #efd999; border-radius: 12px; }
.automation-approval-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
.automation-approval-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: #98620b; background: #ffedb8; border-radius: 10px; }
.automation-approval-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.automation-approval-heading strong { color: #533b0b; }
.automation-approval-copy p { margin: 4px 0 0; line-height: 1.45; }
.automation-approval-actions { flex: 0 0 auto; }

.automation-implementation-panel > .panel-header { align-items: flex-start; gap: 18px; }
.automation-implementation-panel > .panel-header p { max-width: 720px; margin: 5px 0 0; }
.automation-type-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.automation-implementation-list { display: grid; gap: 12px; }
.automation-implementation-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid #dce5ee; border-radius: 12px; background: #fff; }
.automation-implementation-summary { display: grid; min-width: 0; gap: 9px; }
.automation-implementation-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #607087; font-size: 12px; }
.automation-implementation-meta i { width: 15px; color: #3c7099; }
.automation-implementation-meta .automation-stale-version { color: #9a620b; font-weight: 700; }
.automation-compact-panel .panel-body { display: grid; gap: 16px; }
.automation-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.automation-card-heading strong { margin-right: 4px; font-size: 15px; }
.automation-implementation-card.compact { padding: 14px 16px; }
.legacy-automation-card { background: #f9fbfd; }
.automation-wizard { display: grid; gap: 18px; padding: 20px; border: 1px solid #bcd3e8; border-radius: 14px; background: linear-gradient(145deg, #f8fbff, #fff); box-shadow: 0 12px 30px rgba(28, 65, 98, .08); }
.automation-wizard-header, .automation-wizard-footer, .automation-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.automation-wizard-header h3, .automation-preview-heading h4 { margin: 3px 0 4px; }
.automation-wizard-header p, .automation-wizard-footer { margin: 0; color: #607087; }
.automation-wizard-recommendation { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #eaf4ff; color: #143d62; }
.automation-wizard-recommendation > i { font-size: 20px; }
.automation-wizard-recommendation div { display: grid; gap: 2px; }
.automation-wizard-recommendation small, .automation-wizard-recommendation span { color: #557087; }
.automation-wizard-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.automation-wizard-option { position: relative; display: flex; align-items: flex-start; gap: 11px; min-height: 94px; padding: 14px; border: 1px solid #d6e0e9; border-radius: 12px; background: #fff; color: #27384a; text-align: left; cursor: pointer; }
.automation-wizard-option:hover, .automation-wizard-option.selected { border-color: #23699d; box-shadow: 0 0 0 2px rgba(35, 105, 157, .12); }
.automation-wizard-option > i { margin-top: 3px; color: #23699d; }
.automation-wizard-option span { display: grid; gap: 5px; }
.automation-wizard-option small { color: #68798a; line-height: 1.35; }
.automation-wizard-option em { position: absolute; right: 9px; top: 8px; color: #23699d; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.automation-wizard-basics { margin: 0; }
.automation-wizard-preview { overflow: hidden; border: 1px solid #dce5ee; border-radius: 12px; background: #fff; }
.automation-preview-heading { padding: 13px 15px; border-bottom: 1px solid #dce5ee; background: #f6f9fc; }
.automation-preview-heading span { color: #607087; font-size: 12px; }
.automation-preview-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid #edf1f5; }
.automation-preview-row:last-child { border-bottom: 0; }
.automation-preview-row > div { display: grid; gap: 3px; }
.automation-preview-row small { color: #68798a; }
.automation-preview-action { color: #315d7e; font-size: 12px; font-weight: 700; }
.workflow-automated-test-group { margin-bottom: 16px; }
.workflow-automated-test-group .panel-body { padding-top: 0; }
.automation-definition-editor { display: grid; gap: 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #dce5ee; }
.automation-definition-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.automation-definition-heading h3 { margin: 4px 0 0; }
.automation-adapter-field { grid-column: 1 / -1; }
.automation-step-list { display: grid; gap: 12px; }
.automation-step-mapping { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(400px, 1.6fr); gap: 16px; padding: 14px; border: 1px solid #dce5ee; border-left: 4px solid #d7a72e; border-radius: 12px; background: #f9fbfd; }
.automation-step-mapping.mapped { border-left-color: #2f9467; }
.automation-mapping-source { display: grid; grid-template-columns: 34px 1fr; align-content: start; gap: 8px 10px; padding-right: 14px; border-right: 1px solid #dce5ee; }
.automation-mapping-source .step-number { grid-row: 1 / span 2; display: grid; width: 28px; height: 28px; place-items: center; color: #164a74; background: #e6f2fb; border-radius: 50%; font-size: 12px; font-weight: 800; }
.automation-mapping-source small { display: block; margin-bottom: 3px; color: #718096; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.automation-mapping-source strong, .automation-mapping-source p { display: block; margin: 0; color: #24384b; line-height: 1.45; overflow-wrap: anywhere; }
.automation-mapping-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; }
.automation-target-field { grid-column: 1 / -1; }
.automation-continue { align-self: center; margin-top: 18px; }
.automation-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (max-width: 900px) {
    .automation-implementation-panel > .panel-header, .automation-implementation-card { align-items: stretch; flex-direction: column; }
    .automation-type-actions { justify-content: flex-start; }
    .automation-step-mapping { grid-template-columns: 1fr; }
    .automation-mapping-source { padding-right: 0; padding-bottom: 12px; border-right: 0; border-bottom: 1px solid #dce5ee; }
    .automation-wizard-options { grid-template-columns: 1fr; }
    .automation-preview-row { grid-template-columns: auto 1fr; }
    .automation-preview-action, .automation-preview-row > .status-badge { grid-column: 2; }
    .automation-wizard-header, .automation-wizard-footer { flex-direction: column; }
}

@media (max-width: 620px) {
    .automation-mapping-editor { grid-template-columns: 1fr; }
    .automation-target-field { grid-column: auto; }
}
.workflow-editor-grid, .workflow-run-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.workflow-step-list, .workflow-timeline { overflow: hidden; }
.workflow-step-list { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.workflow-step-list > .panel-header { flex: 0 0 auto; }
.workflow-step-scroll { min-height: 0; max-height: 45dvh; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.workflow-step-scroll:focus-visible { outline: 2px solid #3568d4; outline-offset: -2px; }

/* Let both step panes use the space left by the actual headers and notices. */
@media (min-width: 981px) {
    .app-shell:has(.workflow-editor-grid) > .sidebar { height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; }
    .page-shell:has(.workflow-editor-grid) {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 0;
    }
    .page-shell:has(.workflow-editor-grid) > .topbar { flex: 0 0 auto; }
    .content:has(.workflow-editor-grid) {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .workspace-page:has(.workflow-editor-grid) > .page-header { flex: 0 0 auto; margin-bottom: 12px; }
    .workflow-validation-scope:has(.workflow-editor-grid) > .workflow-tabs,
    .workflow-validation-scope:has(.workflow-editor-grid) > .alert,
    .workflow-validation-scope:has(.workflow-editor-grid) > .automation-approval-banner { flex: 0 0 auto; }
    .workflow-editor-grid { flex: 1 1 0; min-height: 240px; align-items: stretch; }
    .workflow-editor-grid > .workflow-inspector { display: flex; flex-direction: column; }
    .workflow-editor-grid > .workflow-inspector > .panel-header,
    .workflow-editor-grid > .workflow-inspector > .step-inspector-tabs { flex: 0 0 auto; }
    .workflow-step-scroll,
    .workflow-editor-grid > .workflow-inspector > .panel-body {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }
    .workflow-editor-grid > .workflow-inspector > .panel-body.stack { align-content: start; }
}
.workflow-add-step-button {
    color: #fff !important;
    background: #0a3764 !important;
    border-color: #0a3764 !important;
    box-shadow: 0 6px 14px #0a376426;
}
.workflow-add-step-button:hover:not(:disabled) { background: #082d53 !important; }
.workflow-add-step-modal { width: min(600px, calc(100vw - 32px)); }
.workflow-step-type-grid { gap: 9px; }
.workflow-step-type-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 11px 12px;
    color: #24364b;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 11px;
    cursor: pointer;
}
.workflow-step-type-option:hover { background: #f4f9fd; border-color: #b9d4e8; transform: translateY(-1px); }
.workflow-step-type-option:focus-visible { outline: 2px solid #6aa6d1; outline-offset: 2px; }
.workflow-step-type-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #245b88;
    background: #eaf3fa;
    border-radius: 10px;
}
.workflow-step-type-option > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.workflow-step-type-option strong { font-size: 13px; }
.workflow-step-type-option small { color: #718096; font-size: 11px; line-height: 1.35; }
.workflow-step-type-option > i:last-child { color: #94a3b3; font-size: 10px; }
.workflow-step-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; width: 100%; padding: 13px 15px; color: #172033; background: #fff; border: 0; border-bottom: 1px solid #e6ebf2; text-align: left; cursor: pointer; }
.workflow-step-row:hover { background: #eef4ff; box-shadow: inset 3px 0 #3568d4; }
.workflow-step-row.step-disabled { color: #64748b; }
.workflow-step-row.step-disabled .step-order { color: #64748b; background: #f1f5f9; }
.workflow-step-row span { display: grid; gap: 3px; min-width: 0; }
.workflow-step-row small { overflow: hidden; color: #71809a; text-overflow: ellipsis; white-space: nowrap; }
.workflow-step-row.generated:not(.selected) { background: #fbfdff; box-shadow: inset 3px 0 #9ab9dc; }
.workflow-step-row.generated:hover { background: #eef6ff; box-shadow: inset 3px 0 #3568d4; }
.workflow-step-row.needs-binding:not(.selected) { background: #fffcf4; box-shadow: inset 3px 0 #d6a43a; }
.workflow-step-row.needs-binding:hover { background: #fff7e5; box-shadow: inset 3px 0 #c58a16; }
.workflow-step-row.has-warning:not(.selected) { background: #fffbf0; box-shadow: inset 3px 0 #d6a43a; }
.workflow-step-row.has-error,
.workflow-step-row.has-error.generated,
.workflow-step-row.has-error.needs-binding { background: #fff2f3; box-shadow: inset 4px 0 #cf3545; }
.workflow-step-row.has-error:hover { background: #ffe8eb; box-shadow: inset 4px 0 #bd2637; }
.workflow-step-row.execution-running { position: relative; background: #edf5ff; box-shadow: inset 4px 0 #2775b8; }
.workflow-step-row.execution-running::after { position: absolute; inset: 0; border: 1px solid #64a1d766; content: ""; pointer-events: none; animation: workflow-running-pulse 1.6s ease-in-out infinite; }
.workflow-step-row.execution-passed { background: #f2fbf5; box-shadow: inset 4px 0 #37a36a; }
.workflow-step-row.execution-blocked, .workflow-step-row.execution-manual { background: #fff8e4; box-shadow: inset 4px 0 #bd8618; }
.workflow-step-row.execution-failed, .workflow-step-row.execution-timedout { background: #fff1f2; box-shadow: inset 4px 0 #c93c4c; }
.workflow-step-row.execution-skipped, .workflow-step-row.execution-cancelled { background: #f6f7f9; box-shadow: inset 4px 0 #8a96a6; }
.workflow-step-row.execution-pending { background: #fafbfc; box-shadow: inset 4px 0 #c6ced8; opacity: .82; }
/* Selection stays distinct from execution status; keep the status stripe and badges. */
.workflow-step-list .workflow-step-row.selected { background: #dceaff; outline: 2px solid #3568d4; outline-offset: -2px; opacity: 1; }
.workflow-step-row.selected .step-order { color: #fff; background: #2457b5; }
.workflow-step-row.selected small { color: #435b80; }
.workflow-step-list .workflow-step-row:focus-visible { outline: 3px solid #172033; outline-offset: -3px; }
@keyframes workflow-running-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.workflow-step-content { gap: 5px !important; }
.workflow-step-title-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 8px !important; align-items: center; min-height: 24px; }
.workflow-step-title-row > strong { min-width: 0; font-size: 12px; line-height: 1.3; }
.workflow-step-state { display: flex !important; gap: 6px !important; align-items: center; justify-content: flex-end; }
.workflow-step-state .status-badge { white-space: nowrap; }
.workflow-step-attempt-count, .workflow-step-attempt-count > span { display: inline !important; }
.workflow-step-issue-badge { display: inline-flex !important; gap: 5px !important; align-items: center; padding: 4px 7px; color: #a52032; background: #ffdce1; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.workflow-http-method { display: inline-grid !important; width: 58px; min-height: 22px; padding: 3px 8px; place-items: center; color: #fff; border-radius: 5px; font-size: 10px; font-weight: 850; line-height: 1; letter-spacing: .04em; }
.workflow-http-method.method-get { background: #2f7fca; }
.workflow-http-method.method-post { background: #2e9b66; }
.workflow-http-method.method-put { background: #d7831d; }
.workflow-http-method.method-patch { color: #123d3a; background: #55c7b5; }
.workflow-http-method.method-delete { background: #d64550; }
.workflow-step-url { display: block; max-width: 100%; min-height: 17px; color: #172033; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.workflow-step-meta { display: flex !important; flex-direction: row; gap: 6px !important; align-items: center; }
.workflow-step-meta > span:first-child { display: block; overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.workflow-step-run-error { display: block !important; overflow: hidden; color: #ae2638; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.workflow-execution-status { display: inline-flex !important; width: fit-content; padding: 4px 7px; color: #41566d; background: #e9eef4; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.execution-running .workflow-execution-status { color: #15588e; background: #d8ebff; }
.execution-passed .workflow-execution-status { color: #1f6b43; background: #d9f2e2; }
.execution-failed .workflow-execution-status, .execution-timedout .workflow-execution-status { color: #9d2535; background: #ffdce1; }
.execution-skipped .workflow-execution-status, .execution-cancelled .workflow-execution-status { color: #596777; background: #e5e9ee; }
.execution-pending .workflow-execution-status { color: #6b7786; background: #edf0f3; }
.authentication-step-editor { display: grid; gap: 14px; }
.authentication-step-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 11px 13px; color: #34516f; background: #f4f8fc; border: 1px solid #dbe6f0; border-radius: 10px; }
.authentication-step-flow span { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 800; }
.authentication-step-flow > i { color: #91a1b3; font-size: 9px; }
.authentication-step-flow span:last-child { color: #216742; }
.authentication-step-summary { display: grid; gap: 5px; padding: 12px 14px; color: #214f3a; background: #eff9f3; border: 1px solid #c9e7d5; border-radius: 10px; }
.authentication-step-summary strong { font-size: 12px; }
.authentication-step-summary small { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #52705f; }
.authentication-login-body { min-height: 170px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.authentication-inherited-model { overflow: hidden; border: 1px solid #dbe3ec; border-radius: 10px; }
.authentication-inherited-model summary { padding: 10px 13px; color: #486078; background: #f5f8fb; font-size: 11px; font-weight: 800; cursor: pointer; }
.authentication-inherited-model pre, .authentication-result pre { max-height: 300px; margin: 0; padding: 13px; overflow: auto; color: #dce9ff; background: #14213b; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.authentication-headers-editor { display: grid; gap: 9px; padding: 13px; border: 1px solid #dbe3ec; border-radius: 10px; }
.authentication-headers-editor > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.authentication-headers-editor > header > div { display: grid; gap: 2px; }
.authentication-headers-editor small { color: #718096; font-size: 10px; }
.authentication-header-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.3fr) auto auto; gap: 8px; align-items: center; }
.authentication-result { display: grid; gap: 12px; }
.authentication-result > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.authentication-result > header > div { display: grid; gap: 2px; }
.authentication-result > header small { color: #728096; font-size: 10px; }
.authentication-result dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #dbe3ec; border-radius: 10px; }
.authentication-result dl > div { display: grid; gap: 4px; padding: 11px 13px; border-bottom: 1px solid #e7ecf2; }
.authentication-result dt { color: #718096; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.authentication-result dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.authentication-result details { overflow: hidden; border: 1px solid #dbe3ec; border-radius: 10px; }
.authentication-result details summary { padding: 10px 13px; color: #3d536a; background: #f5f8fb; font-size: 11px; font-weight: 800; cursor: pointer; }
.authentication-path-suggestions { display: grid; gap: 8px; padding: 12px; color: #315174; background: #edf6ff; border: 1px solid #cfe2f5; border-radius: 10px; }
.authentication-path-suggestions > div { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .authentication-header-row, .authentication-result dl { grid-template-columns: 1fr; } }
.workflow-origin-badge { display: inline-flex !important; flex: 0 0 auto; width: max-content; gap: 5px !important; align-items: center; padding: 3px 7px; color: #315f8f !important; background: #e7f1fb; border: 1px solid #c9def1; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .025em; }
.workflow-inspector-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.workflow-inspector-heading > div { display: grid; gap: 2px; min-width: 0; }
.workflow-inspector-heading h2 { margin: 0; }
.workflow-inspector > .panel-header { flex-wrap: wrap; }
.workflow-inspector > .panel-header > .actions { flex-wrap: wrap; align-items: center; }
.workflow-inspector > .panel-header .check-field { margin: 0; white-space: nowrap; }
.workflow-inspector-heading > div > small { color: #71809a; font-size: 10px; }
.step-inspector-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px 16px; background: #f6f8fb; border-bottom: 1px solid #e1e7ef; scrollbar-width: thin; }
.step-inspector-tabs button { display: inline-flex; flex: 0 0 auto; gap: 7px; align-items: center; min-height: 34px; padding: 7px 10px; color: #627086; background: transparent; border: 0; border-radius: 7px; font-size: 11px; cursor: pointer; }
.step-inspector-tabs button:hover { color: #244d76; background: #edf3f9; }
.step-inspector-tabs button.active { color: #123f6c; background: #fff; box-shadow: 0 2px 8px #17203314; font-weight: 750; }
.step-inspector-tabs button i { width: 13px; text-align: center; }
.step-inspector-tabs button small { display: inline-grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; color: #4d6077; background: #dfe7f0; border-radius: 999px; font-size: 8px; font-weight: 800; }
.step-inspector-tabs button.active small { color: #174c7d; background: #e2effd; }
.workflow-step-condition { display: flex !important; align-items: flex-start; gap: 6px; margin-top: 4px; color: #73520b; font-size: 11px; line-height: 1.4; text-align: left; }
.workflow-step-condition > span { min-width: 0; overflow-wrap: anywhere; }
.workflow-step-condition > i { margin-top: 2px; flex: 0 0 auto; }
.step-settings-group.workflow-condition-settings { border-color: #e5d5a5; background: #fffcf4; }
.workflow-condition-settings > header { flex-wrap: wrap; gap: 10px; }
.workflow-condition-settings .step-settings-help { display: block; margin: 8px 0; }
.workflow-condition-preview { padding: 10px 12px; margin: 12px 0; background: #f7edcc; border-radius: 8px; color: #60480e; overflow-wrap: anywhere; line-height: 1.5; }
.condition-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.workflow-condition-group { display: grid; gap: 12px; min-width: 0; }
.condition-join { max-width: 320px; }
.workflow-condition-clause { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #e4dfd2; border-radius: 8px; background: #fff; }
.workflow-condition-clause > .form-field { min-width: 0; align-self: start; }
.workflow-condition-clause .condition-remove { grid-column: 3; grid-row: 1; align-self: start; margin-top: 22px; }
.condition-actions, .condition-group-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.condition-group-heading { justify-content: space-between; margin-bottom: 10px; }
.workflow-condition-nested { min-width: 0; padding: 12px 0 0 12px; border-left: 3px solid #ddc57e; }
@media (max-width: 700px) {
    .workflow-condition-clause { grid-template-columns: minmax(0, 1fr); }
    .workflow-condition-clause .condition-remove { grid-column: 1; grid-row: auto; justify-self: end; margin-top: 0; }
    .workflow-condition-nested { padding-left: 8px; }
    .workflow-condition-settings > header { align-items: flex-start; }
}
.step-settings-groups { display: grid; gap: 12px; min-width: 0; }
.workflow-report-metrics { min-width: 0; padding: 14px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; }
.workflow-report-metrics > summary { cursor: pointer; color: #234464; font-size: 13px; font-weight: 750; }
.workflow-report-metrics > p { margin: 12px 0; color: #617488; font-size: 12px; line-height: 1.5; }
.workflow-report-metrics .form-field small { overflow-wrap: anywhere; }
.step-settings-group { min-width: 0; padding: 14px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; }
.step-settings-group > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.step-settings-group > header h3 { margin: 0; color: #234464; font-size: 13px; font-weight: 750; }
.step-settings-group .form-grid { align-items: start; gap: 12px 14px; }
.step-settings-group .check-field { margin: 0; padding: 0; min-height: 0; }
.step-settings-help { display: block; margin-top: 7px; color: #728298; font-size: 11px; line-height: 1.5; }
.step-settings-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.generated-step-notice { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; color: #315174; background: #edf6ff; border: 1px solid #cfe2f5; border-radius: 10px; }
.generated-step-notice > i { margin-top: 2px; color: #467aa9; }
.generated-step-notice > div { display: grid; gap: 3px; }
.generated-step-notice strong { color: #123b67; font-size: 12px; }
.generated-step-notice span { color: #536b83; font-size: 12px; line-height: 1.4; }
.generated-step-notice.needs-binding { color: #79530b; background: #fff8e6; border-color: #ecd49a; }
.generated-step-notice.needs-binding > i, .generated-step-notice.needs-binding strong { color: #815807; }
.generated-step-notice.needs-binding span { color: #735d31; }
.step-order { display: grid !important; place-items: center; width: 28px; height: 28px; background: #e8edf5; border-radius: 999px; font-weight: 800; }
.workflow-inspector, .workflow-run-detail { min-width: 0; overflow: hidden; }
.workflow-rule-columns, .rule-list { display: grid; gap: 10px; }
.workflow-rule-columns { grid-template-columns: 1fr; }
.rule-list { padding: 12px; background: #f8faff; border: 1px solid #dce4f0; border-radius: 10px; }
.rule-list header { display: flex; align-items: center; justify-content: space-between; }
.rule-list header > div { display: grid; gap: 3px; }
.rule-list header small { color: #71809a; font-size: 12px; font-weight: 400; }
.workflow-general-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.workflow-general-layout .form-grid { align-items: start; }
.workflow-general-layout .form-grid > .full { grid-column: 1 / -1; }
.workflow-general-layout .form-field { min-width: 0; }
.workflow-general-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.workflow-general-options .check-field { min-height: 32px; margin: 0; }
.workflow-general-layout > .workflow-auth-card { min-width: 0; margin-top: 0; }
.workflow-general-layout .workflow-auth-card > header { flex-wrap: wrap; gap: 8px 18px; }
.workflow-general-layout .workflow-auth-card > header > div { flex: 1 1 240px; min-width: 0; }
.workflow-general-layout .selected-endpoint-card { min-width: 0; flex-wrap: wrap; }
.workflow-general-layout .selected-endpoint-card > div { min-width: 0; overflow-wrap: anywhere; }
.workflow-auth-card { display: grid; gap: 16px; margin-top: 8px; padding: 18px; background: linear-gradient(180deg, #f5f8ff, #fbfcff); border: 1px solid #cddaf0; border-radius: 14px; }
.workflow-auth-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.workflow-auth-card h2 { margin: 3px 0; font-size: 18px; }
.workflow-auth-card p { margin: 0; color: #71809a; font-size: 13px; }
.workflow-filter-panel { margin-bottom: 14px; }
.workflow-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(160px, .7fr) auto; gap: 14px; align-items: end; }
.workflow-filter-summary { display: grid; gap: 2px; align-self: stretch; align-content: center; padding: 8px 14px; border-left: 1px solid #dbe3ec; }
.workflow-filter-summary strong { font-size: 15px; color: #102f52; }
.workflow-filter-summary small { color: #71809a; }
.workflow-clear-filters { margin-bottom: 1px; }
.workflow-target-groups { display: grid; gap: 16px; }
.workflow-target-group { overflow: hidden; }
.workflow-target-header { display: flex; justify-content: flex-end; gap: 24px; padding: 12px 20px; border-bottom: 1px solid #dbe3ec; background: linear-gradient(180deg, #f8fbfe, #fff); }
.workflow-target-actions { display: flex; align-items: flex-start; gap: 10px; }
.workflow-target-table { min-width: 1160px; table-layout: fixed; }
.workflow-target-table td:first-child { width: 28%; overflow-wrap: anywhere; }
.workflow-target-table td:first-child > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.workflow-target-table th:nth-child(2), .workflow-target-table td:nth-child(2) { width: 20%; min-width: 190px; }
.workflow-target-table th:nth-child(3), .workflow-target-table td:nth-child(3),
.workflow-target-table th:nth-child(4), .workflow-target-table td:nth-child(4) { width: 84px; min-width: 84px; }
.workflow-target-table th:nth-child(5), .workflow-target-table td:nth-child(5),
.workflow-target-table th:nth-child(6), .workflow-target-table td:nth-child(6) { width: 104px; min-width: 104px; }
.workflow-target-table th:nth-child(7), .workflow-target-table td:nth-child(7) { width: 168px; min-width: 168px; }
/* Reserve five full-size actions, four gaps and the cell padding. */
.workflow-target-table th:last-child, .workflow-target-actions-cell { width: calc(5 * var(--control-height) + 4 * 7px + 2 * var(--space-4)); min-width: calc(5 * var(--control-height) + 4 * 7px + 2 * var(--space-4)); }
.workflow-target-actions-cell { vertical-align: middle; }
.workflow-row-actions { display: flex; gap: 7px; align-items: center; justify-content: flex-end; }
.workflow-date-cell { vertical-align: middle; }
.workflow-date-cell time { display: grid; width: max-content; gap: 2px; color: #4f6073; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.workflow-date-cell time small { color: #7a8797; font-size: 10px; }
.workflow-latest-run-cell { vertical-align: middle; }
.workflow-latest-run { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 100%; gap: 5px; justify-items: start; overflow-wrap: anywhere; }
.workflow-latest-run > * { min-width: 0; max-width: 100%; }
.workflow-latest-run time { display: flex; flex-wrap: wrap; gap: var(--space-1) 7px; align-items: baseline; color: #4f6073; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.workflow-latest-run time span + span { padding-left: 7px; border-left: 1px solid #dce3e9; color: #6e7d8e; }
.workflow-test-cases-cell { vertical-align: middle; }
.workflow-case-list, .workflow-case-overflow-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.workflow-case-chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 7px; color: #2456a6; background: #f5f8fc; border: 1px solid #d7e1ed; border-radius: 8px; text-decoration: none; }
.workflow-case-chip:hover { color: #163f7f; background: #eaf2ff; border-color: #9eb9df; }
.workflow-case-chip code { overflow: hidden; color: inherit; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.workflow-case-chip .status-badge { padding: 2px 6px; font-size: 9px; }
.workflow-case-chip.unavailable { color: #6c7888; cursor: default; }
.workflow-case-overflow { width: 100%; }
.workflow-case-overflow summary { width: max-content; padding: 3px 7px; color: #2456a6; background: #eef4fb; border-radius: 999px; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.workflow-case-overflow summary::-webkit-details-marker { display: none; }
.workflow-case-overflow[open] summary { margin-bottom: 6px; }
.auth-profile-heading { grid-template-columns: auto minmax(0, 1fr) auto; }
.target-auth-profile { display: grid; gap: 14px; margin-top: 14px; padding: 16px; border: 1px solid #d7e0eb; border-radius: 12px; background: #f8fafc; }
.target-auth-profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #dfe6ee; }
.authentication-token-test { display: grid; gap: 10px; min-width: 0; }
.authentication-token-test > button { justify-self: start; }
.authentication-token-test .alert { display: grid; gap: 5px; margin: 0; overflow-wrap: anywhere; }
.form-field small { color: #71809a; font-size: 12px; line-height: 1.4; }
.rule-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(160px, 1.4fr) minmax(110px, .7fr) auto; gap: 8px; align-items: center; }
.workflow-input-row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding: 12px; background: #fff; border: 1px solid #e2e8f2; border-radius: 10px; }
.workflow-input-variable, .workflow-input-type, .workflow-input-value { display: grid; gap: 5px; min-width: 0; }
.workflow-input-variable { grid-column: span 8; }
.workflow-input-type { grid-column: span 3; }
.workflow-input-value { grid-column: 1 / span 9; margin-top: 3px; }
.workflow-input-secret { grid-column: 10 / span 2; align-self: center; margin-top: 21px; white-space: nowrap; }
.workflow-input-variable > small, .workflow-input-type > small, .workflow-input-value > small { color: #71809a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.workflow-input-value > span { color: #71809a; font-size: 10px; line-height: 1.35; }
.workflow-input-variable .form-control, .workflow-input-type .form-control, .workflow-input-value .form-control { width: 100%; min-width: 0; }
.workflow-input-remove { grid-column: 12; justify-self: end; }
.variable-picker-trigger { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; min-height: 42px; padding: 7px 10px; color: #172033; background: #f8fbff; border: 1px solid #b8c7dc; border-radius: 9px; text-align: left; cursor: pointer; }
.variable-picker-trigger:hover, .variable-picker-trigger[aria-expanded="true"] { background: #eef5ff; border-color: #4974bf; box-shadow: 0 0 0 2px #4974bf18; }
.variable-picker-token, .runtime-variable-card > header code { padding: 3px 6px; color: #16477a; background: #e5f1ff; border-radius: 5px; font: 700 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.variable-type-badge { display: inline-flex; align-items: center; min-height: 18px; padding: 1px 5px; color: #536274; background: #eef1f4; border-radius: 999px; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.variable-picker-origin { overflow: hidden; color: #66758a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.variable-picker-action { color: #1f5793; font-size: 10px; font-weight: 750; white-space: nowrap; }
.variable-picker-panel { display: grid; gap: 10px; margin-top: 3px; padding: 11px; background: #fff; border: 1px solid #cbd8e8; border-radius: 10px; box-shadow: 0 12px 28px #24344f1c; }
.variable-picker-heading { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid #e6ebf2; }
.variable-picker-heading strong { font-size: 12px; }
.variable-picker-heading small, .variable-picker-empty { color: #71809a; font-size: 10px; }
.variable-picker-group { display: grid; gap: 7px; }
.variable-picker-group > header { display: flex; align-items: center; justify-content: space-between; color: #56667b; }
.variable-picker-group > header strong { font-size: 11px; }
.variable-picker-group > header span { font-size: 9px; }
.variable-picker-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 7px; }
.variable-option { display: grid; gap: 5px; min-width: 0; padding: 8px 9px; color: #172033; background: #f8fafc; border: 1px solid #dce4ee; border-radius: 8px; text-align: left; cursor: pointer; }
.variable-option:hover { background: #f0f6ff; border-color: #9cb4d4; }
.variable-option.selected { background: #eaf3ff; border-color: #4775b8; box-shadow: inset 3px 0 #4775b8; }
.variable-option-main { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.variable-option-main code { overflow: hidden; color: #16477a; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.variable-option small { color: #71809a; font-size: 9px; }
.variable-custom-option { padding: 8px 10px; color: #345a83; background: #fff; border: 1px dashed #aebed1; border-radius: 8px; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.variable-custom-option:hover { background: #f7faff; border-color: #6688b2; }
.variable-picker-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: #17203370; backdrop-filter: blur(2px); }
.variable-picker-dialog { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: min(760px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: hidden; background: #fff; border: 1px solid #d6dee9; border-radius: 15px; box-shadow: 0 28px 70px #11182740; }
.variable-picker-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px 15px; border-bottom: 1px solid #e8edf3; }
.variable-picker-dialog > header h3 { margin: 3px 0 4px; font-size: 18px; }
.variable-picker-dialog > header p { margin: 0; color: #71809a; font-size: 11px; }
.variable-picker-close { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; color: #59687b; background: #f1f4f7; border: 0; border-radius: 8px; font-size: 18px; cursor: pointer; }
.variable-picker-close:hover { color: #172033; background: #e5eaf0; }
.variable-picker-current { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: #f8fafc; border-bottom: 1px solid #e8edf3; }
.variable-picker-current > span:first-child { margin-right: auto; color: #71809a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.variable-picker-current code { color: #16477a; font-size: 11px; font-weight: 750; }
.variable-picker-dialog-body { display: grid; gap: 15px; min-height: 180px; padding: 16px 20px; overflow-y: auto; }
.variable-picker-dialog .variable-picker-options { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.variable-picker-dialog .variable-option { min-height: 64px; }
.variable-picker-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: #fafbfc; border-top: 1px solid #e8edf3; }
.variable-picker-dialog > footer .variable-custom-option { flex: 1; }
.assertion-row { grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; }
.extraction-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 8px; align-items: end; padding: 12px; background: #fff; border: 1px solid #e2e8f2; border-radius: 10px; }
.extraction-control { display: grid; gap: 5px; min-width: 0; }
.extraction-control > small { color: #71809a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.extraction-control .form-control { width: 100%; min-width: 0; }
.extraction-variable { grid-column: span 3; }
.extraction-source { grid-column: span 3; }
.extraction-field-picker { grid-column: span 6; display: grid; gap: 6px; min-width: 0; }
.extraction-strategy { grid-column: span 3; }
.extraction-type { grid-column: span 3; }
.extraction-required { grid-column: span 3; min-height: 38px; align-self: end; }
.extraction-remove { grid-column: 12; justify-self: end; align-self: end; }
.variable-row { grid-template-columns: minmax(180px, 1fr) minmax(120px, .55fr) minmax(220px, 1.35fr) auto auto; align-items: end; }
.variable-field { display: grid; gap: 5px; min-width: 0; }
.variable-field > small { color: #71809a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.variable-field .form-control { width: 100%; min-width: 0; }
.variable-secret { min-height: 42px; align-items: center; white-space: nowrap; }
.variable-remove { min-height: 42px; align-self: end; }
.variables-tab-stack { display: grid; gap: 16px; }
.variable-empty-state { padding: 18px; color: #71809a; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; text-align: center; }
.runtime-variable-count { display: grid; place-items: center; min-width: 26px; height: 26px; color: #23588d; background: #e7f2ff; border-radius: 999px; font-size: 10px; font-weight: 800; }
.runtime-variable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 280px)); gap: 7px; justify-content: start; }
.runtime-variable-step-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 340px)); gap: 10px; align-items: start; justify-content: start; }
.runtime-variable-step-group { overflow: hidden; background: #f9fbfd; border: 1px solid #dbe3ed; border-radius: 9px; }
.runtime-variable-step-group > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 9px; background: #f0f4f8; border-bottom: 1px solid #dbe3ed; }
.runtime-variable-step-group > header > div { display: grid; gap: 2px; }
.runtime-variable-step-group > header strong { font-size: 11px; }
.runtime-variable-step-group > header small { color: #71809a; font-size: 8px; }
.runtime-variable-step-group > header .workflow-action-icon { width: 26px; min-width: 26px; height: 26px; min-height: 26px; font-size: 9px; }
.runtime-step-order { display: grid; place-items: center; width: 22px; height: 22px; color: #315f91; background: #dfeafa; border-radius: 999px; font-size: 9px; font-weight: 800; }
.runtime-variable-step-group > .runtime-variable-grid { grid-template-columns: 1fr; padding: 6px; }
.runtime-variable-card { display: grid; gap: 5px; min-height: 0; padding: 8px 9px; background: #fff; border: 1px solid #dce4ee; border-radius: 7px; box-shadow: none; }
.runtime-variable-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.runtime-variable-producer { display: grid; gap: 4px; }
.runtime-variable-producer strong { font-size: 12px; }
.runtime-variable-kind { width: fit-content; padding: 1px 5px; color: #6b5417; background: #fff4cd; border-radius: 999px; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.runtime-variable-card > small { overflow: hidden; color: #71809a; font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.runtime-variable-card > footer { display: grid; gap: 3px; padding-top: 5px; border-top: 1px solid #edf0f4; }
.runtime-variable-card > footer > span { color: #71809a; font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.runtime-variable-card > footer em { color: #9aa4b1; font-size: 8px; font-style: normal; }
.runtime-variable-consumers { display: flex; flex-wrap: wrap; gap: 3px; }
.runtime-variable-consumers button { padding: 2px 5px; color: #315f91; background: #eef5fd; border: 0; border-radius: 5px; font-size: 8px; cursor: pointer; }
.runtime-variable-consumers button:hover { background: #dcecff; }
.form-control.compact { width: 150px; min-height: 32px; padding: 5px 8px; }
.workflow-diagram-panel { overflow: hidden; }
.workflow-diagram { overflow: hidden; padding: 10px 14px 14px; background: #fbfcfd; }
.workflow-diagram-svg { display: block; width: 100%; height: auto; min-width: 0; }
.bpmn-export { padding: 12px 16px; border-top: 1px solid #e1e6ef; }
.workflow-details-body.is-diagram { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.workflow-diagram-panel.workflow-diagram-viewport { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.workflow-diagram-viewport > .panel-header { flex-wrap: wrap; gap: 10px; }
.workflow-diagram-view-controls { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.workflow-diagram-view-controls button.button.secondary[aria-pressed="true" i] { color: #fff; background: #17466f; }
.workflow-diagram-viewport .workflow-diagram { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.workflow-diagram-viewport .workflow-diagram-svg { width: 1100px; max-width: none; height: auto; }
.workflow-diagram-viewport.is-fitted .workflow-diagram-svg { width: 100%; height: 100%; }
.workflow-diagram-viewport .bpmn-export { min-width: 0; }
.workflow-diagram-viewport .bpmn-export pre { max-height: 120px; overflow: auto; }
.diagram-lane { stroke-width: 1; }
.diagram-lane-logic { fill: #eef7fa; stroke: #cbdde3; }
.diagram-lane-api { fill: #f6f8f2; stroke: #d9dfcf; }
.diagram-lane-title { display: flex; align-items: baseline; justify-content: space-between; color: #596675; font-size: 9px; line-height: 1; }
.diagram-lane-title strong { font-size: 10px; font-weight: 700; }
.diagram-lane-title span { color: #8994a0; font-size: 8px; }
.diagram-flow { fill: none; stroke: #687b92; stroke-width: 1.05; stroke-linecap: butt; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.diagram-flow.conditional { stroke: #687b92; stroke-dasharray: 4 4; }
.diagram-arrow-head { fill: #5f7188; stroke: none; }
.diagram-node { cursor: pointer; }
.diagram-node rect, .diagram-node path { fill: #fff; stroke: #8997a4; stroke-width: 1.25; }
.diagram-node.node-apirequest rect { fill: #f0f6df; stroke: #91a75a; }
.diagram-node.node-setvariable rect { fill: #fff; stroke: #8997a4; }
.diagram-node.node-condition path { fill: #fff4cc; stroke: #d8a718; }
.diagram-node.node-start rect, .diagram-node.node-end rect { fill: #70a43a; stroke: #639432; }
.diagram-node.node-errorend rect { fill: #ee5148; stroke: #d94139; }
.diagram-node.selected rect, .diagram-node.selected path { filter: drop-shadow(0 1px 2px #52616f38); stroke: #465d75; stroke-width: 1.6; }
.diagram-node.invalid rect, .diagram-node.invalid circle, .diagram-node.invalid path { stroke: #c13a48; }
.diagram-node text { fill: #172033; font: 12px "Segoe UI", sans-serif; pointer-events: none; }
.diagram-node-label, .diagram-terminal-label { display: flex; height: 100%; flex-direction: column; justify-content: center; color: #172033; line-height: 1.15; pointer-events: none; }
.diagram-node-label { align-items: center; text-align: center; }
.diagram-node-label.inverse { color: #fff; }
.diagram-node-label.inverse small { color: #edf6e4; }
.node-errorend .diagram-node-label.inverse small { color: #ffe8e6; }
.diagram-terminal-label { align-items: flex-start; text-align: left; }
.diagram-terminal-label.align-right { align-items: flex-end; text-align: right; }
.diagram-node-label strong, .diagram-terminal-label strong { font-size: 9px; font-weight: 650; }
.diagram-node-label small, .diagram-terminal-label small { margin-top: 2px; color: #8490a5; font-size: 7.5px; }
.diagram-label { color: #8490a5; font-size: 7.5px; text-align: center; }
.issue-marker { display: inline-flex; align-items: center; justify-content: center; padding: 3px 5px; color: #fff; background: #c13a48; border-radius: 999px; font-size: 10px; font-weight: 900; }
.validation-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.workflow-validation-list { display: grid; gap: 12px; }
.workflow-validation-item { display: grid; gap: 10px; padding: 16px; background: #fff9fa; border: 1px solid #efc8cf; border-left: 4px solid #c13a48; border-radius: 10px; }
.workflow-validation-item > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workflow-validation-item > header code { color: #7b2834; font-size: 12px; }
.workflow-validation-item > p { margin: 0; line-height: 1.5; }
.validation-severity { padding: 3px 7px; color: #a42f40; background: #fae6ea; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.workflow-validation-item dl { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.workflow-validation-item dl > div { display: grid; gap: 2px; }
.workflow-validation-item dt { color: #71809a; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.workflow-validation-item dd { margin: 0; }
.workflow-validation-item details p { margin: 8px 0 0; color: #53627a; }
.validation-fix { display: grid; gap: 3px; padding: 10px 12px; color: #244b36; background: #edf8f1; border: 1px solid #cde7d6; border-radius: 8px; }
.validation-fix strong { font-size: 11px; text-transform: uppercase; }
.workflow-run-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 16px; padding: 14px 17px; background: #fff; border: 1px solid #e1e6ef; border-radius: 12px; }
.workflow-run-summary span { display: grid; gap: 2px; color: #53627a; }
.workflow-run-summary strong { font-size: 10px; text-transform: uppercase; }
.execution-code { max-height: 360px; overflow: auto; padding: 13px; color: #dbe8ff; background: #142039; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.execution-empty-evidence { display: grid; gap: 3px; padding: 12px 14px; color: #6c4d24; background: #fff8e8; border: 1px solid #efdca9; border-radius: 8px; }
.execution-empty-evidence strong { font-size: 12px; }
.execution-empty-evidence span { font-size: 11px; }

.remote-desktop-config-section { display: grid; gap: 12px; padding: 14px; background: #f8faff; border: 1px solid #dce4f0; border-radius: 11px; }
.remote-desktop-config-section > header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.remote-desktop-config-section > header.with-actions { grid-template-columns: auto minmax(0, 1fr) auto; }
.remote-desktop-config-section > header.with-actions > .icon-button { justify-self: end; }
.remote-desktop-config-section > header > div { display: grid; gap: 2px; }
.remote-desktop-config-section > header strong { font-size: 13px; color: #142b4d; }
.remote-desktop-config-section > header small { color: #6b7890; font-size: 11px; line-height: 1.4; }
.remote-desktop-section-number { display: grid; width: 28px; height: 28px; place-items: center; color: white; background: #0d3b68; border-radius: 50%; font-size: 12px; font-weight: 800; }
.remote-desktop-endpoint-preview { display: grid; gap: 4px; padding: 10px 12px; color: #24523b; background: #edf8f1; border: 1px solid #cce5d5; border-radius: 8px; }
.remote-desktop-endpoint-preview span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.remote-desktop-endpoint-preview code { overflow-wrap: anywhere; color: #183f2b; }
.remote-desktop-parameters { padding: 0; background: transparent; border: 0; }
.desktop-agent-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; color: #6d4c1f; background: #fff8e8; border: 1px solid #ead59f; border-radius: 9px; }
.desktop-agent-empty > span { display: grid; width: 32px; height: 32px; place-items: center; color: #926719; background: #f8e9bd; border-radius: 8px; }
.desktop-agent-empty > div { display: grid; gap: 3px; }
.desktop-agent-empty strong { font-size: 12px; }
.desktop-agent-empty small { font-size: 10px; line-height: 1.45; }
.desktop-agent-server-url { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.desktop-agent-server-url code { flex: 1; overflow: hidden; padding: 8px 10px; color: #263d55; background: white; border: 1px solid #dac78e; border-radius: 7px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.desktop-agent-server-url .button { flex: 0 0 auto; }
.desktop-agent-one-time-note { display: flex; gap: 5px; align-items: center; margin-top: 5px; color: #77613b; }
.kiosk-live-preview { display: grid; gap: 7px; margin: 10px 0 0; padding: 9px; background: #0c1726; border: 1px solid #2d79aa; border-radius: 10px; }
.kiosk-live-preview-heading { display: flex; justify-content: space-between; align-items: center; color: #d9efff; font-size: 10px; font-weight: 750; }
.kiosk-live-preview-heading small { color: #8eb3cc; font-size: 9px; }
.kiosk-live-preview-heading .live-dot { color: #35d07f; font-size: 7px; }
.kiosk-live-preview-context { display: grid; gap: 3px; padding: 7px 9px; color: #bdd5e5; background: #13283a; border-radius: 6px; font-size: 9px; overflow-wrap: anywhere; }
.kiosk-live-preview-context strong { color: #f1f8fc; }
.kiosk-live-preview img { display: block; width: 100%; max-height: 480px; object-fit: contain; background: #050a10; border-radius: 6px; }
.kiosk-live-preview figcaption { overflow: hidden; color: #a8c3d5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-live-preview-waiting { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 90px; margin-top: 10px; color: #52728a; background: #edf7fd; border: 1px dashed #9bc7df; border-radius: 9px; font-size: 10px; }
.desktop-agent-list { display: grid; gap: 6px; }
.local-agent-runtime { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; margin-bottom: 9px; padding: 9px 11px; color: #38566d; background: #f2f7fb; border: 1px solid #d3e2ec; border-radius: 8px; }
.local-agent-runtime > i { margin-top: 2px; color: #4f7f9f; }
.local-agent-runtime > div { display: grid; gap: 2px; }
.local-agent-runtime strong { color: #284157; font-size: 10px; }
.local-agent-runtime small { color: #607d91; font-size: 9px; line-height: 1.35; }
.local-agent-runtime.running { color: #16754b; background: #edf9f2; border-color: #bce4cc; }
.local-agent-runtime.running > i, .local-agent-runtime.running strong { color: #16754b; }
.local-agent-runtime.failed, .local-agent-runtime.agent-executable-missing { background: #fff4e8; border-color: #f1cf9e; }
.local-agent-runtime.failed > i, .local-agent-runtime.failed strong, .local-agent-runtime.agent-executable-missing > i, .local-agent-runtime.agent-executable-missing strong { color: #a35c10; }
.desktop-agent-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 11px; background: white; border: 1px solid #dbe5ee; border-radius: 8px; }
.desktop-agent-card > span { color: #7b8c9f; }
.desktop-agent-card > div { display: grid; gap: 2px; min-width: 0; }
.desktop-agent-card strong { color: #284157; font-size: 11px; }
.desktop-agent-card small { overflow: hidden; color: #718194; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.desktop-agent-card b { color: #64748b; font-size: 9px; text-transform: uppercase; }
.desktop-agent-card.online > span, .desktop-agent-card.online > b { color: #21804c; }
.desktop-agent-card.busy > span, .desktop-agent-card.busy > b { color: #176ea0; }
.desktop-agent-card.offline { opacity: .62; }
.anydesk-configuration-button.active { color: #137044; background: #dcf4e7; box-shadow: inset 0 0 0 1px #abd9bf; }
.anydesk-configuration-modal { width: min(720px, calc(100vw - 56px)); }
.anydesk-configuration-note,
.anydesk-configuration-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; padding: 13px 14px; border: 1px solid #d9e3ef; border-radius: 12px; }
.anydesk-configuration-note { color: #40566d; background: #f2f6fb; }
.anydesk-configuration-note > i,
.anydesk-configuration-status > i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; }
.anydesk-configuration-note > i { color: #24547e; background: #dceaf6; }
.anydesk-configuration-note div,
.anydesk-configuration-status div { display: grid; gap: 3px; }
.anydesk-configuration-note span,
.anydesk-configuration-status span { color: #63768a; font-size: 12px; line-height: 1.45; }
.anydesk-configuration-status.connected { color: #17653f; background: #edf9f2; border-color: #bce2cb; }
.anydesk-configuration-status.connected > i { background: #d5f1e0; }
.anydesk-configuration-status.connecting { color: #185f8c; background: #eef7fd; border-color: #bfdaeb; }
.anydesk-configuration-status.connecting > i { background: #d9edf8; }
.anydesk-configuration-preview { display: grid; gap: 8px; margin: 0; padding: 10px; color: #eaf5ff; background: #0d263a; border: 1px solid #284b64; border-radius: 13px; }
.anydesk-configuration-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.anydesk-configuration-preview img { display: block; width: 100%; max-height: 390px; object-fit: contain; background: #07131d; border-radius: 8px; }
.anydesk-configuration-footer { flex-wrap: wrap; }
.anydesk-configuration-footer > span { flex: 1; }
:is(.workflow-action-icon, .grid-action-icon).blocked { position: relative; color: #63758b; background: #edf1f5; opacity: 1; }
:is(.workflow-action-icon, .grid-action-icon).blocked:hover { color: #183e66; background: #e1e9f2; }
.workflow-action-warning { position: absolute; top: -4px; right: -4px; display: grid; width: 15px; height: 15px; place-items: center; color: white; background: #d04450; border: 2px solid #eef3f8; border-radius: 50%; font-size: 8px; font-weight: 900; line-height: 1; }
.kiosk-flow-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #eef4ff; border: 1px solid #d4e0f3; border-radius: 9px; }
.kiosk-flow-toolbar > div { display: grid; gap: 2px; }
.kiosk-flow-toolbar strong { color: #183b68; font-size: 12px; }
.kiosk-flow-toolbar small { color: #65758e; font-size: 10px; }
.kiosk-flow-toolbar-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.kiosk-flow-empty { display: grid; justify-items: center; gap: 6px; padding: 24px; color: #64748b; text-align: center; background: white; border: 1px dashed #c8d4e4; border-radius: 10px; }
.kiosk-flow-empty > i { color: #7892b4; font-size: 22px; }
.kiosk-flow-empty strong { color: #334a68; font-size: 13px; }
.kiosk-flow-empty span { max-width: 620px; font-size: 11px; line-height: 1.5; }
.kiosk-ui-action-list { display: grid; gap: 10px; }
.kiosk-ui-action-card { overflow: hidden; background: white; border: 1px solid #d8e1ed; border-radius: 10px; box-shadow: 0 2px 8px rgba(23, 48, 80, .04); }
.kiosk-ui-action-card > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: #f5f8fc; border-bottom: 1px solid #e2e8f1; }
.kiosk-ui-action-card > header > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.kiosk-ui-action-card > header strong { overflow: hidden; color: #18344f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-ui-action-card > header small { overflow: hidden; color: #6d7b90; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-action-order { display: grid; width: 27px; height: 27px; place-items: center; color: #174a78; background: #dceafb; border-radius: 8px; font-size: 11px; font-weight: 800; }
.kiosk-action-controls { display: flex; gap: 4px; }
.kiosk-action-controls > button { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; color: #53667d; background: #edf1f5; border: 0; border-radius: 7px; cursor: pointer; }
.kiosk-action-controls > button:disabled { opacity: .4; cursor: default; }
.kiosk-action-fields { padding: 12px; }
.kiosk-action-options { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kiosk-click-target { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
.kiosk-click-target > small { grid-column: 1 / -1; color: #64748b; font-size: 9px; }
.kiosk-visual-target { display: grid; gap: 10px; }
.kiosk-visual-target > small { color: #64748b; font-size: 9px; line-height: 1.45; }
.kiosk-visual-target-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kiosk-visual-sample, .kiosk-visual-missing { display: flex; gap: 12px; align-items: center; padding: 10px; background: #f4f8fc; border: 1px solid #cbdbea; border-radius: 8px; }
.kiosk-visual-sample img { width: 112px; height: 72px; object-fit: contain; background: #0b1722; border: 1px solid #b8ccdc; border-radius: 5px; }
.kiosk-visual-sample > div, .kiosk-visual-missing > div { display: grid; gap: 3px; }
.kiosk-visual-sample strong, .kiosk-visual-missing strong { color: #153a59; font-size: 11px; }
.kiosk-visual-sample small, .kiosk-visual-missing small { color: #657f94; font-size: 9px; line-height: 1.4; }
.kiosk-visual-missing > i { color: #5d87a6; font-size: 22px; }
.kiosk-point-picker { display: grid; gap: 10px; padding: 12px; color: #d7ecfa; background: #0d1d2b; border: 1px solid #2c7cac; border-radius: 10px; }
.kiosk-point-picker > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kiosk-point-picker > header > div { display: grid; gap: 2px; }
.kiosk-point-picker > header > .kiosk-picker-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.kiosk-point-picker > header strong { font-size: 12px; }
.kiosk-point-picker > header strong i { margin-right: 5px; color: #51b8ed; }
.kiosk-point-picker > header small, .kiosk-point-picker > small { color: #94b7cc; font-size: 9px; }
.kiosk-point-picker > p { margin: 0; color: #b7d0df; font-size: 10px; line-height: 1.45; }
.kiosk-point-picker-surface { position: relative; display: block; overflow: hidden; width: 100%; padding: 0; background: #050a10; border: 2px solid #3d9cce; border-radius: 8px; cursor: crosshair; }
.kiosk-point-picker-surface.visual-region { user-select: none; touch-action: none; }
.kiosk-point-picker-surface:hover { border-color: #6dc9f5; box-shadow: 0 0 0 3px rgba(61, 156, 206, .18); }
.kiosk-point-picker-surface img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.kiosk-point-picker-surface > span { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; padding: 6px 9px; color: white; background: rgba(4, 22, 35, .82); border-radius: 6px; font-size: 9px; font-weight: 700; pointer-events: none; }
.kiosk-point-picker-empty { display: flex; gap: 10px; align-items: center; padding: 16px; color: #a8c5d6; background: #142b3d; border: 1px dashed #3d718f; border-radius: 8px; }
.kiosk-point-picker-empty > i { color: #5eb8e8; font-size: 18px; }
.kiosk-point-picker-empty > div { display: grid; gap: 3px; }
.kiosk-point-picker-empty strong { color: #e6f5fd; font-size: 11px; }
.kiosk-point-picker-empty span { font-size: 9px; line-height: 1.4; }
.kiosk-advanced-settings { padding: 10px 12px; background: #fbfcfe; border: 1px solid #dfe6ef; border-radius: 9px; }
.kiosk-advanced-settings > summary { color: #4d6078; font-size: 11px; font-weight: 700; cursor: pointer; }
.kiosk-advanced-settings[open] > summary { margin-bottom: 12px; }
.kiosk-advanced-settings > .form-grid { margin-bottom: 12px; }
.kiosk-live-progress { display: grid; gap: 10px; padding: 13px; background: linear-gradient(135deg, #edf7ff, #f5fbff); border: 1px solid #acd4ee; border-radius: 11px; }
.kiosk-live-progress > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.kiosk-live-progress > header > span { display: grid; width: 32px; height: 32px; place-items: center; color: #0d6492; background: #d7effc; border-radius: 9px; }
.kiosk-live-progress > header > div { display: grid; gap: 2px; }
.kiosk-live-progress > header strong { color: #134969; font-size: 12px; }
.kiosk-live-progress > header small { color: #52778e; font-size: 10px; }
.kiosk-live-progress > header > b { color: #0e5d88; font-size: 12px; }
.kiosk-live-action-list { display: grid; gap: 5px; }
.kiosk-live-action { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 9px; background: rgba(255, 255, 255, .75); border: 1px solid #dceaf2; border-radius: 8px; opacity: .62; }
.kiosk-live-action > span { display: grid; width: 23px; height: 23px; place-items: center; color: #61768a; background: #e9eff4; border-radius: 50%; font-size: 9px; font-weight: 800; }
.kiosk-live-action > div { display: grid; gap: 1px; }
.kiosk-live-action strong { color: #335269; font-size: 10px; }
.kiosk-live-action small { color: #6c8291; font-size: 9px; }
.kiosk-live-action.passed { opacity: .82; }
.kiosk-live-action.passed > span { color: #17663c; background: #d9f1e3; }
.kiosk-live-action.running { opacity: 1; border-color: #7fc4e9; box-shadow: 0 0 0 2px rgba(64, 158, 210, .1); }
.kiosk-live-action.running > span { color: white; background: #1675a6; }
.kiosk-execution-result { overflow: hidden; background: #f8fbfe; border: 1px solid #d5e1ec; border-radius: 10px; }
.kiosk-execution-result > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: #eef5fb; border-bottom: 1px solid #dbe5ee; }
.kiosk-execution-result > header > div { display: grid; gap: 2px; }
.kiosk-execution-result > header strong { color: #173b58; font-size: 13px; }
.kiosk-execution-result > header small { color: #62778a; font-size: 10px; }
.kiosk-result-action-list { display: grid; gap: 1px; }
.kiosk-result-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 13px; background: white; border-bottom: 1px solid #e8edf2; }
.kiosk-result-action:last-child { border-bottom: 0; }
.kiosk-result-action > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; font-size: 10px; }
.kiosk-result-action.passed > span { color: #17663c; background: #dff3e7; }
.kiosk-result-action.failed > span { color: #a92f3c; background: #fae2e5; }
.kiosk-result-action > div { display: grid; gap: 2px; min-width: 0; }
.kiosk-result-action strong { color: #283e53; font-size: 11px; }
.kiosk-result-action small { color: #748395; font-size: 9px; }
.kiosk-result-action p { margin: 2px 0 0; color: #52667a; font-size: 10px; line-height: 1.4; }
.result-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(100px, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #e7ebf2; }
@media (max-width: 900px) { .test-case-studio, .workflow-editor-grid, .workflow-run-grid { grid-template-columns: 1fr; } .automation-review-card { position: static; } .human-step-head { display: none; } .human-step-row { grid-template-columns: 38px 1fr; } .human-step-row textarea, .human-step-binding { grid-column: 2; } .human-step-actions { grid-column: 2; } .rule-row:not(.workflow-input-row), .assertion-row, .variable-row { grid-template-columns: 1fr; } .workflow-input-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workflow-input-variable, .workflow-input-value, .workflow-input-secret { grid-column: 1 / -1; } .workflow-input-secret { margin-top: 0; } .workflow-input-type, .workflow-input-remove { grid-column: auto; } .extraction-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .extraction-variable, .extraction-source, .extraction-field-picker, .extraction-strategy, .extraction-type, .extraction-required, .extraction-remove { grid-column: auto; } .extraction-field-picker { grid-column: 1 / -1; } }
@media (max-width: 760px) { .workflow-tabs { overflow-x: auto; } .workflow-tabs button { flex: 0 0 auto; } .related-test-case-row { grid-template-columns: 42px minmax(0, 1fr); } .related-test-case-status, .related-test-case-row > .button { grid-column: 2; justify-self: start; } .automation-approval-banner { align-items: stretch; flex-direction: column; } .automation-approval-actions .button { width: 100%; } }
@media (max-width: 1100px) { .workflow-filter-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); } .workflow-filter-summary { border-left: 0; } }
@media (max-width: 720px) { .workflow-filter-grid { grid-template-columns: 1fr; } .workflow-target-header { flex-direction: column; } .workflow-target-actions { justify-content: space-between; } }
@media (max-width: 560px) { .extraction-row { grid-template-columns: 1fr; } .extraction-field-picker { grid-column: auto; } }

#blazor-error-ui { display: none; }

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .nav-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-group { grid-column: 1 / -1; }
    .two-column { grid-template-columns: 1fr; }
    .version-detail-header { align-items: flex-start; display: grid; }
    .version-switcher { justify-content: flex-start; }
    .version-breakdowns { grid-template-columns: 1fr; }
    .version-suite-panel .panel-header { align-items: flex-start; display: grid; }
    .version-suite-actions { justify-content: flex-start; }
    .scenario-workspace { grid-template-columns: 1fr; }
    .scenario-version-sidebar { position: static; grid-row: 1; }
    .version-sidebar-list { max-height: 330px; }
    .editor-card-header { align-items: flex-start; display: grid; }
    .editor-card-header small { max-width: none; text-align: left; }
    .editor-footer { position: static; align-items: flex-start; display: grid; }
    .request-model-preview { grid-template-columns: 1fr; }
    .scenario-card { grid-template-columns: 1fr; align-items: start; }
    .scenario-card-actions { justify-content: flex-start; flex-wrap: wrap; }
    .scenario-type-header {
        grid-template-columns: 1fr;
        grid-template-areas: "identity" "context" "dates" "stats";
        align-items: start;
        padding-left: 52px;
    }
    .scenario-group-dates { justify-self: start; margin-top: 6px; }
    .scenario-group-stats { justify-self: start; grid-template-columns: repeat(4, minmax(64px, auto)); }
    .scenario-list-heading { display: none; }
    .scenario-card-actions { padding-left: 0; border-left: 0; }
    .editor-overview-grid { grid-template-columns: 1fr; }
    .scenario-summary-card,
    .api-test-workbench { grid-template-columns: 1fr; }
    .scenario-summary-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-meta-item { padding: 8px 10px; border: 0; border-top: 1px solid var(--line-soft); }
    .api-case-inspector { position: static; }
}

@media (max-width: 680px) {
    .content { padding: 22px 16px 45px; }
    .topbar { padding-inline: 16px; }
    .stats, .form-grid, .parameter-editor, .version-metrics, .editor-grid { grid-template-columns: 1fr; }
    .page-header { display: grid; }
    .page-actions { flex-wrap: wrap; }
    .scenario-browser-toolbar, .scenario-type-header { align-items: flex-start; display: grid; }
    .editor-card, .editor-card-parameters > .editor-card-header, .advanced-card > summary, .advanced-card > .editor-grid { padding-inline: 16px; }
    .editor-card-parameters > .editor-card-header { margin-inline: 0; }
}

.scenario-browser {
    container-type: inline-size;
}

.scenario-action-hint {
    display: inline-flex;
    flex: 0 0 auto;
}

.scenario-card-actions .scenario-action-hint > .scenario-action-button.button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
}

.scenario-card-actions .scenario-action-button.button.secondary {
    color: #344044;
    background: #edf1f1;
    border: 0;
}

.scenario-card-actions .scenario-action-button.button.secondary:hover {
    background: #e1e8e8;
}

.scenario-card-actions .scenario-action-button i {
    margin: 0;
    font-size: 13px;
}

@container (max-width: 860px) {
    .scenario-list-heading {
        display: none;
    }

    .scenario-card {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "main main main"
            "type priority status"
            "actions actions actions";
        gap: 12px 18px;
        align-items: center;
        padding: 16px 18px 16px 44px;
    }

    .scenario-card-main { grid-area: main; }
    .scenario-card-type { grid-area: type; }
    .scenario-card-priority { grid-area: priority; }
    .scenario-card-status { grid-area: status; }

    .scenario-card-actions {
        grid-area: actions;
        justify-content: flex-start;
        padding-top: 10px;
        padding-left: 0;
        border-top: 1px solid #dbe4ea;
        border-left: 0;
    }
}

@container (max-width: 520px) {
    .scenario-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "type"
            "priority"
            "status"
            "actions";
    }
}

/* Scenario editor final refinement: IDE-like density with inline selected test details */
.scenario-editor-page-header,
.scenario-editor-studio {
    width: 100%;
    max-width: 1480px;
}

.scenario-editor-page-header {
    margin-bottom: 10px;
}

.scenario-editor-page-header h1 {
    font-size: clamp(22px, 1.7vw, 28px);
}

.scenario-editor-studio {
    gap: 10px;
}

.scenario-summary-card {
    gap: 10px 16px;
    padding: 14px 16px 12px;
    border-radius: 12px;
    box-shadow: 0 10px 26px #17324d0b;
}

.scenario-summary-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
}

.scenario-summary-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    font-size: 18px;
}

.scenario-summary-title-row h2 {
    font-size: 22px;
}

.scenario-summary-main p {
    margin-top: 4px;
    font-size: 13px;
}

.scenario-summary-meta {
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.15fr) minmax(90px, .7fr) minmax(210px, 1.6fr) 116px 136px;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
}

.summary-meta-item {
    padding: 0 14px;
    border-left: 1px solid #dce5ec;
}

.summary-meta-item strong {
    order: 2;
    font-size: 13px;
    line-height: 1.25;
}

.summary-meta-item small {
    order: 1;
    margin-bottom: 5px;
    color: #516070;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.15;
}

.summary-meta-item.metric,
.summary-meta-item.result {
    align-content: center;
    min-height: 48px;
    padding: 6px 12px;
    background: #fbfdff;
    border: 1px solid #d7e4f0;
    border-radius: 8px;
    text-align: center;
}

.summary-meta-item.result {
    background: #f8fffb;
    border-color: #cfe9d9;
}

.summary-meta-item.metric strong,
.summary-meta-item.result strong {
    font-size: 17px;
}

.scenario-editor-studio .editor-card {
    border-radius: 12px;
    box-shadow: 0 10px 26px #17324d0a;
}

.scenario-editor-studio .editor-card-parameters > .editor-card-header {
    min-height: 46px;
    margin: 0 14px;
    padding-top: 12px;
    padding-bottom: 8px;
}

.scenario-editor-studio .editor-card-parameters > .parameter-editor {
    gap: 10px;
    padding: 12px 14px 14px;
}

.parameter-editor > .api-engine-shell.full,
.api-engine-shell,
.api-endpoint-inspector,
.api-test-workbench,
.api-test-list-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.api-engine-shell {
    display: block;
}

.api-endpoint-inspector {
    padding: 12px 14px 8px;
    border-radius: 12px;
    box-shadow: 0 10px 24px #17324d09;
}

.api-endpoint-command {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.endpoint-command-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.endpoint-command-main > .status-badge {
    flex: 0 0 auto;
}

.endpoint-command-main > div {
    min-width: 0;
}

.endpoint-command-main strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #101d2f;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-command-main small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #587087;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-command-actions {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.endpoint-command-actions .button {
    min-height: 34px;
    flex-shrink: 0;
}

.endpoint-read-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border: 0;
}

.endpoint-read-strip span {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #0f1e32;
    font-size: 13px;
    white-space: nowrap;
}

.endpoint-read-strip strong {
    color: #506071;
    font-size: 12px;
    font-weight: 650;
}

.endpoint-sections {
    overflow: hidden;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
}

.endpoint-section-row {
    border-bottom: 1px solid #dbe6ef;
}

.endpoint-section-row:last-child {
    border-bottom: 0;
}

.endpoint-section-row > summary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

.endpoint-section-row > summary span {
    min-width: 0;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-section-row > summary i {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.endpoint-section-row > summary strong {
    min-width: 30px;
    flex: 0 0 auto;
    text-align: right;
}

.api-test-workbench {
    display: block;
    margin-top: 0;
}

.api-test-list-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px #17324d0a;
}

.api-workbench-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 50px;
    padding: 9px 14px;
    border-bottom: 1px solid #e1eaf2;
}

.api-workbench-heading h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: #101d2f;
    font-size: 17px;
    line-height: 1.2;
}

.api-workbench-heading h3 span {
    color: #596a79;
    font-size: 13px;
    font-weight: 600;
}

.api-workbench-heading .actions {
    display: inline-flex;
    grid-column: auto;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-start;
}

.api-workbench-heading .actions .button,
.api-mini-stats span {
    min-height: 34px;
}

.api-workbench-heading .api-run-all-button {
    margin-right: 4px;
    box-shadow: 0 5px 14px #0a2c5224;
}

.api-test-suite-preview {
    min-width: 0;
}

.api-test-suite-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #dfe8ef;
    border-radius: 8px;
}

.api-test-suite-list li {
    border-bottom: 1px solid #e6edf3;
}

.api-test-suite-list li:last-child {
    border-bottom: 0;
}

.api-test-suite-list li > button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 14px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 7px 10px;
    color: #102137;
    text-align: left;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.api-test-suite-list li > button:hover {
    background: #f5f9fd;
}

.api-test-suite-list li.selected > button {
    background: #edf6ff;
    box-shadow: inset 3px 0 0 #0a2c52;
}

.api-test-suite-list li > button > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.api-test-suite-list li > button > i {
    color: #718296;
    font-size: 11px;
}

.api-test-suite-list strong,
.api-test-suite-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-test-suite-list small {
    color: #627283;
    font-size: 11px;
}

.status-not-run {
    color: #677585;
    background: #edf1f4;
}

.api-selected-case-log {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.api-selected-case-log article {
    display: grid;
    gap: 6px;
}

.api-result-empty {
    margin-top: 4px;
}

.api-mini-stats {
    display: inline-flex;
    gap: 8px;
}

.api-mini-stats span {
    display: grid;
    align-content: center;
    min-width: 72px;
    padding: 3px 10px;
    color: #506071;
    background: #fbfdff;
    border: 1px solid #dbe6ef;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .015em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.api-mini-stats strong {
    color: #0A2C52;
    font-size: 15px;
    line-height: 1.1;
}

.api-test-table-head,
.api-test-case-row {
    display: grid;
    grid-template-columns: 32px minmax(280px, 1fr) minmax(110px, 145px) minmax(132px, 180px) minmax(112px, 150px) 44px;
    column-gap: 12px;
    align-items: center;
}

.api-test-table-head {
    min-height: 31px;
    padding: 0 14px;
    color: #40536a;
    background: #fbfdff;
    border-top: 0;
    border-bottom: 1px solid #dbe6ef;
    font-size: 12px;
    font-weight: 650;
}

.api-test-case-list {
    display: block;
}

.api-test-case-item {
    position: relative;
    border-bottom: 1px solid #e4ecf3;
}

.api-test-case-item:last-child {
    border-bottom: 0;
}

.api-test-case-row {
    min-height: 55px;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    transition: background-color .15s ease;
}

.api-test-case-row:hover {
    background: #f7fbff;
}

.api-test-case-row:focus-visible {
    outline: 2px solid #8bb8f0;
    outline-offset: -2px;
}

.api-test-case-item.selected .api-test-case-row {
    background: #eef7ff;
    box-shadow: inset 3px 0 0 #0A2C52;
}

.test-status-icon,
.validation-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 20px;
    font-size: 14px;
}

.test-status-icon.positive,
.validation-icon {
    color: #129b55;
}

.test-status-icon.negative {
    color: #f02d3a;
}

.api-case-name-cell {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.api-case-name-cell strong {
    overflow: hidden;
    color: #102137;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-case-name-cell small,
.api-test-case-row > small {
    overflow: hidden;
    min-width: 0;
    color: #5f6f7a;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-test-case-row > .status-badge {
    justify-self: start;
    max-width: 100%;
}

.api-row-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.api-row-actions .icon-button.subtle,
.expected-result-row .icon-button,
.icon-button.subtle {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex: 0 0 32px;
}

/* Related-automation actions form one control group and must share a height. */
.relation-actions > .button.small,
.relation-actions > .icon-button.subtle {
    height: 32px;
    min-height: 32px;
}

.api-test-case-details {
    margin: 0 14px 12px 17px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d5e3ee;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    animation: inline-detail-open .16s ease-out;
}

@keyframes inline-detail-open {
    from { opacity: .65; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.api-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 45px;
    padding: 0 12px;
    border-bottom: 1px solid #e2ebf2;
}

.api-detail-tabs {
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    min-width: 0;
}

.api-detail-tab {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 8px;
    color: #0A2C52;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}

.api-detail-tab.active {
    border-bottom-color: #0A2C52;
}

.api-detail-actions {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.api-detail-actions .button {
    min-height: 32px;
    flex-shrink: 0;
}

.api-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 60fr) minmax(360px, 40fr);
    min-width: 0;
}

.api-detail-main {
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid #e2ebf2;
}

.api-detail-read-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.detail-read-field {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 8px 12px;
    border-right: 1px solid #e6eef5;
    border-bottom: 1px solid #e6eef5;
}

.detail-read-field:nth-child(3n) {
    border-right: 0;
}

.detail-read-field:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.detail-read-field.wide {
    grid-column: span 1;
}

.detail-read-field strong {
    color: #52616d;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
}

.detail-read-field small {
    overflow: hidden;
    min-width: 0;
    color: #102137;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.api-edit-grid {
    gap: 10px 12px;
}

.api-expected-panel {
    min-width: 0;
    padding: 12px 14px;
}

.expected-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin-bottom: 8px;
}

.expected-panel-header h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #102137;
    font-size: 14px;
    line-height: 1.25;
}

.expected-panel-header h4 span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    color: #52616d;
    background: #eef3f7;
    border-radius: 999px;
    font-size: 12px;
}

.expected-panel-header .button {
    min-height: 30px;
    flex-shrink: 0;
}

.expected-results-grid {
    overflow: hidden;
    border: 1px solid #dfe8ef;
    border-radius: 8px;
}

.expected-results-head,
.expected-result-row {
    display: grid;
    grid-template-columns: 30px minmax(120px, 1fr) minmax(96px, .85fr) minmax(120px, 1fr) 36px;
    column-gap: 10px;
    align-items: center;
}

.expected-results-head {
    min-height: 30px;
    padding: 0 10px;
    color: #52616d;
    background: #fbfdff;
    border-bottom: 1px solid #dfe8ef;
    font-size: 12px;
    font-weight: 650;
}

.expected-result-row {
    min-height: 38px;
    padding: 0 10px;
    border-bottom: 1px solid #edf2f6;
    color: #26384a;
    font-size: 13px;
}

.expected-result-row:last-child {
    border-bottom: 0;
}

.expected-result-row strong,
.expected-result-row span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expected-result-row strong {
    color: #102137;
    font-size: 13px;
    font-weight: 600;
}

.expected-result-row .icon-button {
    justify-self: end;
}

.expected-result-row .icon-button:disabled {
    opacity: .5;
    cursor: default;
}

.empty-inline {
    margin: 8px 0 0;
    color: #66747b;
    font-size: 13px;
}

.button.ghost {
    color: #0A2C52;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.button.ghost:hover {
    background: #eef4fa;
    border-color: #d5e0eb;
}

@media (max-width: 1320px) {
    .scenario-editor-page-header,
    .scenario-editor-studio {
        width: min(100%, calc(100vw - 36px));
    }

    .scenario-summary-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 0;
    }

    .summary-meta-item.metric,
    .summary-meta-item.result {
        text-align: left;
    }

    .api-test-table-head,
    .api-test-case-row {
        grid-template-columns: 30px minmax(220px, 1fr) 104px 128px 106px 38px;
        column-gap: 8px;
    }

    .api-detail-body {
        grid-template-columns: minmax(0, 58fr) minmax(330px, 42fr);
    }

    .expected-results-head,
    .expected-result-row {
        grid-template-columns: 28px minmax(100px, 1fr) minmax(86px, .72fr) minmax(100px, 1fr) 34px;
        column-gap: 7px;
    }
}

@media (max-width: 980px) {
    .api-workbench-heading {
        grid-template-columns: 1fr;
    }

    .api-workbench-heading .actions,
    .api-mini-stats {
        justify-content: flex-start;
    }

    .api-detail-body {
        grid-template-columns: 1fr;
    }

    .api-detail-main {
        border-right: 0;
        border-bottom: 1px solid #e2ebf2;
    }

    .api-detail-read-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-read-field:nth-child(3n) {
        border-right: 1px solid #e6eef5;
    }

    .detail-read-field:nth-child(2n) {
        border-right: 0;
    }
}

/* Keep these workspace overrides last; the stylesheet contains legacy editor layers above. */
.content:has(.scenario-editor-studio) { width: 100%; max-width: 1680px; padding: 18px 22px 36px; }
.scenario-editor-page-header,
.scenario-editor-studio { width: 100%; max-width: none; }
.scenario-editor-page-header { align-items: center; margin-bottom: 12px; }
.scenario-editor-page-header h1 { font-size: 21px; }
.scenario-editor-page-header p { margin-top: 3px; font-size: 12px; }
.scenario-editor-studio { gap: 10px; }
.scenario-editor-studio .api-workspace-card { overflow: visible; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.scenario-editor-studio .api-workspace-card > .parameter-editor { padding: 0; background: transparent; }
.api-workspace-card .api-engine-shell { display: grid; gap: 10px; }
.scenario-summary-card,
.api-endpoint-inspector,
.api-test-list-panel { border-color: #dbe4ec; border-radius: 10px; box-shadow: 0 6px 18px #17324d08; }
.scenario-summary-card { padding: 12px 14px 10px; }
.scenario-summary-title-row h1 { margin: 0; color: #102137; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.scenario-summary-actions { display: flex; gap: 8px; }
.scenario-summary-meta { grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.15fr) minmax(90px, .75fr) minmax(180px, 1.5fr) 108px 128px; }
.scenario-summary-meta .summary-meta-item { min-width: 0; }
.summary-meta-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-endpoint-inspector { padding: 12px 14px 9px; }
.api-workbench-heading { min-height: 48px; }
.api-test-table-head { font-size: 11px; }
.api-test-case-row { min-height: 52px; }
.api-test-case-details { margin: 8px 12px 12px 15px; border-top: 1px solid #d5e3ee; border-radius: 10px; }
.api-detail-toolbar { min-height: 46px; padding: 0 10px 0 14px; }
.api-detail-tabs { align-items: stretch; overflow: hidden; }
.api-detail-tab { min-width: 0; padding: 0 12px; color: #53657a; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.api-detail-tab:hover { color: #0A2C52; background: #f7faff; }
.api-detail-tab.active { color: #0A2C52; font-weight: 750; }
.api-detail-tab .tab-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: 6px; place-items: center; padding: 0 6px; color: #52616d; background: #eaf0f5; border-radius: 999px; font-size: 11px; }
.api-detail-panel { min-width: 0; min-height: 176px; padding: 14px 16px 16px; }
.scenario-editor-page-header .button,
.scenario-editor-studio .button { gap: 7px; }
.view-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; max-width: 920px; padding: 2px 6px; }
.view-field-grid > .full { grid-column: 1 / -1; }
.view-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.view-field > strong { color: #52647a; font-size: 11px; font-weight: 650; line-height: 17px; }
.read-control { display: flex; align-items: center; width: 100%; min-height: 38px; min-width: 0; padding: 8px 11px; overflow: hidden; color: #102137; background: #f8fafc; border: 1px solid #dbe4ec; border-radius: 7px; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; }
.read-control.badge-control { padding-block: 6px; }
.read-control.code-control { display: block; min-height: 72px; max-height: 180px; margin: 0; overflow: auto; font: 12px/1.5 Consolas, monospace; white-space: pre-wrap; }
.read-control.body-control { min-height: 74px; }
.view-metadata-strip { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 0; margin-top: 2px; overflow: hidden; border: 1px solid #e1e8ef; border-radius: 7px; }
.view-metadata-strip > span { display: grid; gap: 5px; min-height: 58px; align-content: center; padding: 8px 11px; border-right: 1px solid #e7edf2; }
.view-metadata-strip > span:last-child { border-right: 0; }
.view-metadata-strip strong { color: #52647a; font-size: 10px; font-weight: 650; }
.view-metadata-strip small { color: #102137; font-size: 12px; }
.test-data-view-grid { align-items: start; }
.general-tab-layout { display: grid; grid-template-columns: minmax(0, 920px) minmax(230px, 300px); gap: 18px; align-items: stretch; }
.general-tab-fields { min-width: 0; }
.general-view-grid,
.general-edit-grid { max-width: none; }
.read-control.description-control { min-height: 74px; align-items: flex-start; white-space: pre-wrap; }
.case-audit-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; overflow: hidden; background: #f7fafd; border: 1px solid #dbe5ed; border-radius: 9px; }
.case-audit-panel > span { display: grid; gap: 6px; min-height: 76px; align-content: center; padding: 11px 12px; border-right: 1px solid #e2e9ef; border-bottom: 1px solid #e2e9ef; }
.case-audit-panel > span:nth-child(2n) { border-right: 0; }
.case-audit-panel > span:nth-last-child(-n + 2) { border-bottom: 0; }
.case-audit-panel strong { color: #52647a; font-size: 10px; font-weight: 650; }
.case-audit-panel small { color: #102137; font-size: 12px; }
.case-audit-panel.is-disabled { background: #f1f3f5; border-color: #dfe3e7; }
.case-audit-panel.is-disabled > span { opacity: .62; }
.expected-edit-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.expected-edit-toolbar .form-control { width: 190px; min-height: 32px; padding-block: 5px; }
.metadata-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metadata-column { display: grid; align-content: start; padding: 0 18px; }
.metadata-column:first-child { padding-left: 10px; border-right: 1px solid #dfe7ee; }
.metadata-row { display: grid; grid-template-columns: minmax(118px, .38fr) minmax(0, 1fr); gap: 16px; align-items: center; min-height: 36px; }
.metadata-row strong { color: #52647a; font-size: 11px; font-weight: 650; }
.metadata-row small { display: block; min-width: 0; overflow: hidden; color: #102137; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; }
.metadata-row .status-badge { font-size: 11px; }
.endpoint-code-icon { display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: #587087; font: 700 11px/1 Consolas, monospace; }
.api-expected-panel { padding: 0; }
.scenario-editor-studio .advanced-card > summary { min-height: 48px; padding: 10px 14px; }
.scenario-editor-studio .advanced-card > summary strong { font-size: 14px; }
.scenario-editor-studio .advanced-card > summary small { font-size: 12px; }
.scenario-editor-studio .editor-footer { bottom: 10px; padding: 10px 14px; background: #ffffffed; border-radius: 10px; box-shadow: 0 5px 18px #17324d12; }

.scenario-workspace-tabs { display: flex; gap: 4px; align-items: center; padding: 4px; background: #edf3f8; border: 1px solid #dbe5ed; border-radius: 10px; }
.scenario-workspace-tab { display: inline-flex; gap: 8px; align-items: center; min-height: 38px; padding: 7px 13px; color: #53657a; background: transparent; border: 0; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.scenario-workspace-tab:hover { color: #0a2c52; background: #f7faff; }
.scenario-workspace-tab.active { color: #0a2c52; background: #fff; box-shadow: 0 2px 8px #17324d12; }
.advanced-tab-badge { padding: 2px 7px; color: #6b5a18; background: #fff7d6; border: 1px solid #f0df98; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.workspace-tab-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; color: #52616d; background: #e4ebf2; border-radius: 999px; font-size: 10px; }
.scenario-workspace-tab.active .workspace-tab-count { background: #edf3f8; }
.scenario-workspace-run { display: flex; gap: 12px; align-items: center; margin-left: auto; padding-right: 2px; }
.workspace-run-progress { display: grid; gap: 4px; width: 150px; }
.workspace-run-progress > span { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: #30465f; font-size: 10px; }
.workspace-run-progress > span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-run-progress-track { height: 4px; overflow: hidden; background: #d4dee8; border-radius: 999px; }
.workspace-run-progress-track > i { display: block; height: 100%; background: #2775b8; border-radius: inherit; transition: width .2s ease; }
.workspace-last-result { display: flex; gap: 6px; align-items: center; color: #748396; font-size: 10px; }
.editor-card-header-actions { display: flex; gap: 12px; align-items: center; }
.json-contract-card { padding: 0; overflow: hidden; background: #fff; }
.json-contract-header { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 18px 20px; background: #fbfcfe; border-bottom: 1px solid #e1e8ef; }
.json-contract-header h2 { margin: 2px 0 4px; color: #102137; font-size: 17px; }
.json-contract-header p { margin: 0; color: #68798c; font-size: 12px; }
.json-contract-warning { display: inline-flex; gap: 7px; align-items: center; flex: 0 0 auto; padding: 7px 10px; color: #745c0a; background: #fff9df; border: 1px solid #f0df98; border-radius: 7px; font-size: 11px; font-weight: 650; }
.json-contract-actions { display: flex; gap: 9px; align-items: center; }
.json-contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; min-height: 440px; }
.json-editor-field { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; padding: 16px 18px 18px; }
.json-editor-field + .json-editor-field { border-left: 1px solid #e1e8ef; }
.json-editor-heading { display: grid; gap: 2px; }
.json-editor-heading strong { color: #26384d; font-size: 12px; }
.json-editor-heading small { color: #7a8998; font-size: 10px; }
.json-editor.form-control { width: 100%; min-height: 360px; height: 100%; resize: vertical; padding: 14px 16px; color: #223247; background: #f7f9fb; border-color: #d5e0e9; font: 12px/1.55 Consolas, "Courier New", monospace; tab-size: 2; white-space: pre; }
.json-editor.form-control:focus { background: #fff; border-color: #7aa7d1; box-shadow: 0 0 0 3px #3478b51a; }

.scenario-settings-backdrop { z-index: 80; padding: 24px; background: #10243a99; backdrop-filter: blur(3px); }
.scenario-settings-modal { width: min(860px, 100%); max-height: min(860px, calc(100vh - 48px)); overflow: hidden; background: #fff; border: 1px solid #d6e0e8; border-radius: 14px; box-shadow: 0 28px 70px #0b20394d; }
.scenario-settings-modal-header { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 20px 22px 18px; background: linear-gradient(180deg, #fbfdff, #f7fafd); border-bottom: 1px solid #dfe7ee; }
.scenario-settings-modal-title { display: flex; gap: 13px; align-items: flex-start; }
.scenario-settings-modal-icon { display: inline-grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: #0a4d82; background: #e8f2fb; border-radius: 10px; }
.scenario-settings-modal-title h2 { margin: 2px 0 3px; color: #102137; font-size: 19px; letter-spacing: -.02em; }
.scenario-settings-modal-title p { margin: 0; color: #6b7b8d; font-size: 12px; }
.scenario-settings-modal-body { display: grid; gap: 14px; max-height: calc(100vh - 250px); padding: 18px 22px 22px; overflow-y: auto; }
.scenario-settings-section { overflow: hidden; background: #fbfcfe; border: 1px solid #dfe7ee; border-radius: 10px; }
.scenario-settings-section > header { display: flex; gap: 8px; align-items: baseline; padding: 11px 14px; background: #f4f7fa; border-bottom: 1px solid #e2e9ef; }
.scenario-settings-section > header strong { color: #26384d; font-size: 12px; }
.scenario-settings-section > header small { color: #7a8998; font-size: 10px; }
.scenario-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; padding: 15px 16px 17px; }
.scenario-settings-grid.identity-grid { grid-template-columns: minmax(0, 1fr) 130px; }
.scenario-settings-grid .full { grid-column: 1 / -1; }
.scenario-description-input { min-height: 76px; resize: vertical; }
.scenario-active-setting { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; color: #26384d; background: #f2f7fb; border: 1px solid #d8e5ef; border-radius: 8px; cursor: pointer; }
.scenario-active-setting input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; accent-color: #0a4d82; }
.scenario-active-setting > span { display: grid; gap: 2px; }
.scenario-active-setting strong { font-size: 12px; }
.scenario-active-setting small { color: #718194; font-size: 10px; line-height: 1.4; }
.scenario-settings-errors { display: flex; gap: 10px; padding: 11px 13px; color: #8a2d24; background: #fff2ef; border: 1px solid #f0c8c1; border-radius: 9px; }
.scenario-settings-errors > i { margin-top: 2px; }
.scenario-settings-errors > div { display: grid; gap: 3px; }
.scenario-settings-errors strong { font-size: 12px; }
.scenario-settings-errors small { font-size: 10px; }
.scenario-settings-modal-footer { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 13px 22px; background: #f8fafc; border-top: 1px solid #dfe7ee; }
.scenario-settings-modal-footer > small { color: #728194; font-size: 11px; }
.scenario-settings-modal-footer > div { display: flex; gap: 8px; }

/* Scenario editor is a fixed workspace: only its active panel scrolls. */
body:has(.scenario-editor-studio) { overflow: hidden; background: #fff; }
body:has(.scenario-editor-studio) .app-shell { height: 100vh; min-height: 0; overflow: hidden; }
.page-shell:has(.scenario-editor-studio) { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; min-height: 0; overflow: hidden; background: #fff; }
.content:has(.scenario-editor-studio) { display: block; height: 100%; min-height: 0; overflow: hidden; padding-bottom: 18px; background: #fff; }
.content:has(.scenario-editor-studio) > .workspace-page > form { min-height: 0; height: 100%; }
.scenario-editor-studio { grid-template-rows: auto auto minmax(0, 1fr); height: 100%; min-height: 0; }
.scenario-editor-studio > .editor-card-parameters { min-height: 0; overflow: auto; background: #fff; }
.scenario-editor-studio > .ui-test-history-page { min-height: 0; overflow: auto; background: #fff; }
.scenario-editor-studio > .api-workspace-card { overflow: auto; }
.scenario-editor-studio .parameter-editor,
.scenario-editor-studio .api-engine-shell { min-height: 0; }
.scenario-editor-studio > .json-contract-card { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: 100%; }
.scenario-editor-studio .json-contract-header,
.scenario-editor-studio .json-contract-grid { background: #fff; }
.scenario-editor-studio .json-contract-grid { min-height: 0; height: 100%; }
.scenario-editor-studio .json-editor-field { min-height: 0; }
.scenario-editor-studio .json-editor.form-control { min-height: 0; height: 100%; }

@media (max-width: 1320px) and (min-width: 1101px) {
    .scenario-summary-meta { grid-template-columns: minmax(100px, 1fr) minmax(135px, 1.15fr) minmax(85px, .7fr) minmax(150px, 1.4fr) 98px 118px; gap: 0; }
    .summary-meta-item.metric, .summary-meta-item.result { text-align: center; }
    .api-detail-tab { padding-inline: 8px; font-size: 11px; }
}

@media (max-width: 1100px) {
    .scenario-summary-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 0; }
    .api-detail-toolbar { align-items: stretch; flex-direction: column; padding-top: 6px; }
    .api-detail-tabs { flex-wrap: wrap; }
    .api-detail-actions { align-self: flex-end; padding-bottom: 7px; }
    .metadata-dashboard { grid-template-columns: 1fr; }
    .metadata-column { padding: 0 8px; }
    .metadata-column:first-child { padding-left: 8px; border-right: 0; border-bottom: 1px solid #dfe7ee; }
    .view-metadata-strip { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .general-tab-layout { grid-template-columns: 1fr; }
    .case-audit-panel { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .case-audit-panel > span { min-height: 64px; border-bottom: 0; }
    .case-audit-panel > span:nth-child(2n) { border-right: 1px solid #e2e9ef; }
    .case-audit-panel > span:last-child { border-right: 0; }
    .json-contract-grid { grid-template-columns: 1fr; }
    .json-editor-field + .json-editor-field { border-top: 1px solid #e1e8ef; border-left: 0; }
}

@media (max-width: 680px) {
    .scenario-settings-backdrop { padding: 10px; }
    .scenario-settings-modal { max-height: calc(100vh - 20px); }
    .scenario-settings-modal-header { padding: 16px; }
    .scenario-settings-modal-body { max-height: calc(100vh - 218px); padding: 12px; }
    .scenario-settings-grid,
    .scenario-settings-grid.identity-grid { grid-template-columns: 1fr; }
    .scenario-settings-modal-footer { align-items: stretch; flex-direction: column; padding: 12px 16px; }
    .scenario-settings-modal-footer > div { justify-content: flex-end; }
    .scenario-workspace-tabs { flex-wrap: wrap; }
    .json-contract-actions { align-items: stretch; flex-direction: column; }
}
.picker-ready-banner {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  color: #14532d;
  background: #ecfdf3;
  border: 1px solid #a7e3bc;
  border-radius: 9px;
}

.picker-ready-banner small {
  color: #347249;
}

/* Visual UI layout test studio */
.ui-layout-builder-tabs { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 8px; padding: 6px; border: 1px solid #d8e2ed; border-radius: 13px; background: #f3f7fb; }
.ui-layout-builder-tabs > button { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; min-width: 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #5c6d81; text-align: left; cursor: pointer; }
.ui-layout-builder-tabs > button:hover { color: #244d7d; background: #fff9; }
.ui-layout-builder-tabs > button.active { color: #173f70; border-color: #b9cde4; background: #fff; box-shadow: 0 4px 13px #29466512; }
.ui-layout-builder-tabs > button > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e5eef8; color: #356da9; }
.ui-layout-builder-tabs > button.active > i { background: #dbeaff; color: #175b9f; }
.ui-layout-builder-tabs > button > span { display: grid; min-width: 0; }
.ui-layout-builder-tabs strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ui-layout-builder-tabs small { color: #8190a2; font-size: 9px; }
.ui-layout-tab-panel { display: grid; gap: 12px; min-width: 0; }
.ui-layout-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-layout-setup-grid > .full { grid-column: 1 / -1; }
.ui-layout-tab-intro { padding: 15px; border: 1px solid #dce5ef; border-radius: 11px; background: #fbfdff; }
.ui-visual-editor { display: grid; gap: 14px; padding: 16px; border: 1px solid #d8e2ef; border-radius: 12px; background: #fbfdff; }
.ui-visual-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ui-visual-editor-header > div:first-child { display: grid; gap: 3px; }
.ui-visual-editor-header > div:first-child > span { font-weight: 750; color: #1b2a41; }
.ui-viewport-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.ui-viewport-card { display: grid; grid-template-columns: 32px minmax(90px, 1.2fr) minmax(70px, .7fr) auto minmax(70px, .7fr) 32px; gap: 8px; align-items: end; padding: 11px; border: 1px solid #dce5f0; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px #1f365408; }
.ui-viewport-card > i { align-self: center; color: #376eae; font-size: 18px; text-align: center; }
.ui-viewport-card label, .ui-inline-number { display: grid; gap: 4px; }
.ui-viewport-card label > span, .ui-inline-number > span { color: #718096; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.ui-viewport-times { align-self: center; padding-bottom: 9px; color: #8794a7; }
.ui-icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: #edf2f7; color: #53657b; cursor: pointer; }
.ui-icon-button:hover { background: #e1e9f3; color: #1c3557; }
.ui-icon-button.danger:hover { background: #fee8e7; color: #b42318; }
.ui-assertion-list { display: grid; gap: 10px; }
.ui-assertion-card { border: 1px solid #dce5f0; border-radius: 10px; background: #fff; overflow: hidden; }
.ui-assertion-sentence { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) repeat(3, minmax(78px, .55fr)) 32px; gap: 8px; align-items: end; padding: 12px; }
.ui-step-assertion { grid-template-columns: repeat(3, minmax(130px, 1fr)) 32px; }
.ui-rule-preview { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-top: 1px solid #e7edf4; background: #f5f9fe; color: #3b536f; font-size: 12px; }
.ui-rule-preview i { color: #3c73b3; }

.ui-layout-report { display: grid; gap: 12px; margin-top: 14px; }
.ui-layout-viewport-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 5px; }
.ui-layout-viewport-tab { display: grid; grid-template-columns: 24px minmax(95px, 1fr) auto; gap: 8px; align-items: center; min-width: 190px; padding: 9px 11px; border: 1px solid #d8e2ed; border-radius: 10px; background: #fff; color: #42566f; text-align: left; cursor: pointer; }
.ui-layout-viewport-tab > i { font-size: 17px; text-align: center; }
.ui-layout-viewport-tab > span { display: grid; }
.ui-layout-viewport-tab small { color: #7b899b; font-size: 10px; }
.ui-layout-viewport-tab b { font-size: 10px; white-space: nowrap; }
.ui-layout-viewport-tab.passed b { color: #18794e; }
.ui-layout-viewport-tab.failed b { color: #bd2c24; }
.ui-layout-viewport-tab.active { border-color: #3c73b3; box-shadow: 0 0 0 2px #3c73b31f; background: #f5f9ff; }
.ui-layout-report-grid { display: grid; grid-template-columns: minmax(360px, 1.25fr) minmax(300px, .75fr); gap: 14px; align-items: start; }
.ui-layout-screenshot-stage { display: grid; gap: 8px; min-width: 0; }
.ui-layout-screenshot { position: relative; width: 100%; margin-inline: auto; overflow: hidden; border: 1px solid #cfd9e6; border-radius: 10px; background: #eef2f6; box-shadow: 0 9px 24px #1e304414; }
.ui-layout-screenshot > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-layout-element-box { position: absolute; z-index: 2; box-sizing: border-box; border: 2px solid #3282ce; background: #3282ce18; pointer-events: none; }
.ui-layout-element-box.failed { border-color: #e03b32; background: #e03b3220; }
.ui-layout-element-box > span { position: absolute; top: -20px; left: -2px; max-width: 180px; overflow: hidden; padding: 2px 5px; border-radius: 4px 4px 4px 0; background: #2267a7; color: #fff; font: 700 9px/14px ui-monospace, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.ui-layout-element-box.failed > span { background: #c52d26; }
.ui-layout-legend { display: flex; flex-wrap: wrap; gap: 14px; color: #6d7b8d; font-size: 10px; }
.ui-layout-legend span { display: flex; align-items: center; gap: 5px; }
.ui-layout-legend i { width: 12px; height: 9px; border: 2px solid #3282ce; background: #3282ce18; }
.ui-layout-legend i.failed { border-color: #e03b32; background: #e03b3220; }
.ui-layout-no-screenshot { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 280px; border: 1px dashed #c9d4e2; border-radius: 10px; background: #f7f9fc; color: #7b899a; text-align: center; }
.ui-layout-no-screenshot i { font-size: 28px; }
.ui-layout-assertion-results { display: grid; gap: 8px; max-height: 620px; overflow: auto; }
.ui-layout-assertion-results > header { padding: 2px 2px 7px; }
.ui-layout-assertion-results > header > div { display: grid; }
.ui-layout-assertion-results header small { color: #7a8798; }
.ui-layout-result-rule { display: grid; grid-template-columns: 24px 1fr; gap: 9px; padding: 10px; border: 1px solid #dfe7ef; border-radius: 9px; background: #fff; }
.ui-layout-result-rule > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.ui-layout-result-rule > div { display: grid; gap: 3px; }
.ui-layout-result-rule strong { color: #253a54; font-size: 12px; }
.ui-layout-result-rule small { color: #6e7d90; font-size: 10px; }
.ui-layout-result-rule code { overflow-wrap: anywhere; color: #53677f; font-size: 10px; }
.ui-step-screenshot { position: relative; display: block; max-width: 360px; margin-top: 6px; overflow: hidden; border: 1px solid #cfdae7; border-radius: 8px; background: #edf2f7; }
.ui-step-screenshot img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: cover; object-position: top; }
.ui-step-screenshot.portrait { width: min(100%, 240px); }
.ui-step-screenshot.portrait img { max-height: none; object-fit: contain; }
.ui-step-screenshot span { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #fff; background: #102f50d9; border-radius: 6px; font-size: 9px; font-weight: 700; }
.ui-layout-result-rule.page-health.failed { border-left: 4px solid #bd2c24; background: #fff6f5; }
.ui-layout-check-section { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 11px 16px 4px; border-top: 1px solid #e4eaf1; background: #f6f9fc; }
.ui-layout-check-section > div { display: grid; gap: 1px; }
.ui-layout-check-section strong { color: #253a54; font-size: 12px; }
.ui-layout-check-section small { color: #7a8798; font-size: 10px; }
.ui-element-card > .ui-step-assertion { padding-inline: 16px; background: #f6f9fc; }
.ui-element-card > .muted { display: block; padding: 2px 16px 12px; background: #f6f9fc; }
.ui-layout-result-rule.element-check strong { font-family: Consolas, monospace; }
.ui-layout-report-notice { padding: 9px 10px; color: #6b7789; background: #f6f8fb; border: 1px dashed #d8e0e9; border-radius: 8px; font-size: 10px; }
.ui-layout-result-rule.passed > i { background: #e2f5eb; color: #18794e; }
.ui-layout-result-rule.failed { border-color: #f0c5c2; background: #fffafa; }
.ui-layout-result-rule.failed > i { background: #fde8e7; color: #bd2c24; }
.run-technical-details { margin-top: 12px; }
.run-technical-details > summary { cursor: pointer; color: #586b82; font-size: 11px; font-weight: 700; }
.ui-history-visual-report { margin-top: 10px; }
.ui-history-visual-report > summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #315d91; font-size: 11px; font-weight: 750; }
.ui-history-visual-report[open] > summary { margin-bottom: 8px; }

@media (max-width: 950px) {
  .ui-layout-builder-tabs { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .ui-layout-report-grid { grid-template-columns: 1fr; }
  .ui-assertion-sentence { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 650px) {
  .ui-layout-builder-tabs { grid-template-columns: 1fr; }
  .ui-layout-setup-grid { grid-template-columns: 1fr; }
  .ui-visual-editor-header { display: grid; }
  .ui-viewport-card { grid-template-columns: 28px 1fr 1fr; }
  .ui-viewport-card label:first-of-type { grid-column: 2 / -1; }
  .ui-viewport-times { display: none; }
  .ui-assertion-sentence { grid-template-columns: 1fr; }
}

.ui-elements-editor {
  display: grid;
  gap: 10px;
}

.ui-catalog-context {
  padding: 14px 16px;
  background: #f7fafc;
  border: 1px solid #d8e2eb;
  border-radius: 12px;
}

.ui-catalog-edit-link {
  width: fit-content;
  margin-top: 8px;
}

.ui-catalog-locator-backdrop {
  z-index: 70;
}

.ui-catalog-promote {
  align-items: flex-start;
  padding-top: 4px;
}

.ui-elements-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ui-elements-editor-header > div:first-child {
  display: grid;
  gap: 3px;
}

.ui-elements-editor-header > div:first-child > span {
  font-weight: 700;
}

.ui-elements-editor-header .button-row {
  flex-wrap: nowrap;
}

.ui-elements-count {
  padding: 5px 9px;
  color: #58677b;
  background: #edf2f7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ui-element-list {
  display: grid;
  gap: 9px;
}

.ui-element-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e0eb;
  border-radius: 11px;
  box-shadow: 0 2px 8px #1720330a;
}

.ui-element-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #edf3f9;
  border-bottom: 1px solid #e3e9f1;
}

.ui-element-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ui-element-card-title > div {
  display: grid;
  min-width: 0;
}

.ui-element-card-title strong,
.ui-element-card-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-element-card-title small {
  color: #77859a;
  font-size: 10px;
}

.ui-element-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #24528b;
  background: #e3eefb;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.ui-element-actions {
  display: flex;
  gap: 4px;
}

.ui-element-actions button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  color: #52647b;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  cursor: pointer;
}

.ui-element-actions button:hover:not(:disabled) {
  color: #214f88;
  border-color: #99b5d7;
  background: #edf5ff;
}

.ui-element-actions button.danger:hover:not(:disabled) {
  color: #a42828;
  border-color: #e6aaaa;
  background: #fff1f1;
}

.ui-element-actions button:disabled {
  cursor: default;
  opacity: .35;
}

.ui-element-fields {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(145px, .6fr) minmax(260px, 1.5fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
}

.ui-element-fields .form-field {
  min-width: 0;
}

.ui-element-fields .form-field > span {
  font-size: 10px;
}

.ui-element-fields .form-control {
  min-height: 36px;
}

.ui-elements-empty {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 110px;
  padding: 20px;
  color: #718096;
  text-align: center;
  background: #fafbfd;
  border: 1px dashed #bdc9d8;
  border-radius: 10px;
}

.ui-elements-empty strong {
  color: #34445b;
}

@media (max-width: 1100px) {
  .ui-element-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-element-locator {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .ui-elements-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ui-elements-editor-header .button-row {
    justify-content: space-between;
  }

  .ui-element-fields {
    grid-template-columns: 1fr;
  }

  .ui-element-locator {
    grid-column: auto;
  }
}

.ui-test-history-page {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 16px 16px;
}

.ui-test-history-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e1e8ef;
}

.ui-test-history-page-header > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ui-test-history-page-header h2 {
  margin: 0;
  color: #172b42;
  font-size: 14px;
}

.ui-test-history-page-header p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #66758b;
  font-size: 11px;
}

.ui-test-history-toolbar {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.ui-test-live-progress {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  background: #f3f8fd;
  border: 1px solid #c9dceb;
  border-radius: 9px;
}

.ui-test-live-progress > header,
.ui-test-live-progress > footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.ui-test-live-progress > header > div {
  display: grid;
  gap: 2px;
}

.ui-test-live-progress > header small,
.ui-test-live-progress > footer {
  color: #66788d;
  font-size: 10px;
}

.ui-test-live-progress > footer {
  justify-content: flex-start;
}

.ui-test-live-progress > footer a {
  margin-left: auto;
  font-weight: 700;
}

.ui-run-execution-body > .ui-test-live-progress {
  gap: 6px;
  padding: 9px 12px;
}

.ui-test-history-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.ui-run-history-sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.ui-latest-run-card,
.ui-run-menu-item {
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ui-latest-run-card {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  background: linear-gradient(145deg, #123f70, #1c639f);
  border: 1px solid #164f86;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(21, 65, 108, .14);
  color: #fff;
}

.ui-latest-run-card:hover,
.ui-latest-run-card.selected {
  border-color: #82b9e9;
  box-shadow: 0 0 0 2px #cde6fa, 0 7px 20px rgba(21, 65, 108, .18);
}

.ui-latest-run-label,
.ui-latest-run-heading,
.ui-run-menu-topline,
.ui-run-menu-summary,
.ui-run-details-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ui-latest-run-label {
  justify-content: flex-start;
  color: #cbe7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ui-latest-run-heading strong {
  font-size: 15px;
}

.ui-latest-run-card time,
.ui-latest-run-card .ui-run-menu-summary {
  color: #d8eafb;
  font-size: 10px;
}

.ui-run-history-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 1px;
  color: #617187;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ui-run-history-menu-heading small {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  background: #e8eef5;
  border-radius: 999px;
}

.ui-run-history-menu {
  display: grid;
  gap: 6px;
}

.ui-run-menu-item {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 9px;
}

.ui-run-menu-item:hover {
  background: #f6faff;
  border-color: #adc8e2;
}

.ui-run-menu-item.selected {
  background: #edf6ff;
  border-color: #3982c4;
  box-shadow: inset 3px 0 0 #2877b9;
}

.ui-run-menu-topline strong {
  color: #203a56;
  font-size: 12px;
}

.ui-run-menu-item time,
.ui-run-menu-summary {
  color: #728096;
  font-size: 10px;
}

.ui-run-details {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 11px;
}

.ui-run-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7edf3;
}

.ui-run-details-title {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ui-run-details-title h3 {
  margin: 0;
  color: #172b42;
  font-size: 17px;
}

.ui-run-details-header time {
  color: #718096;
  font-size: 10px;
}

.ui-run-details-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #607087;
  font-size: 10px;
}

.ui-run-details-actions > span {
  padding: 5px 7px;
  background: #f2f6fa;
  border-radius: 6px;
}

.ui-run-details-actions strong {
  color: #263c55;
}

.ui-selected-visual-report {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.ui-selected-visual-report > header {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #315d91;
  font-size: 11px;
}

.ui-selected-technical-log {
  border-top: 1px solid #edf0f4;
}

.ui-selected-technical-log > summary {
  padding-top: 10px;
  color: #38608d;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ui-run-step-list {
  display: grid;
  gap: 5px;
  padding-top: 8px;
}

.ui-run-step-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  background: #f8fafc;
  border-radius: 7px;
  font-size: 11px;
}

.ui-run-history-empty {
  padding: 18px;
  color: #748196;
  text-align: center;
  background: #fff;
  border: 1px dashed #c9d3df;
  border-radius: 9px;
}

@media (max-width: 760px) {
  .scenario-workspace-tabs {
    flex-wrap: wrap;
  }

  .scenario-workspace-run {
    width: 100%;
    margin-left: 0;
    padding: 4px;
    border-top: 1px solid #dbe5ed;
  }

  .workspace-run-progress {
    flex: 1 1 auto;
  }

  .ui-test-history-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ui-test-history-workspace {
    grid-template-columns: 1fr;
  }

  .ui-run-history-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-run-details-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ui-run-details-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .ui-run-history-menu {
    grid-template-columns: 1fr;
  }

  .ui-test-history-toolbar .button:first-child {
    display: none;
  }
}

.scenario-card.is-return-focus {
    position: relative;
    z-index: 1;
    outline: 2px solid transparent;
    outline-offset: -2px;
    animation: scenario-return-focus 2.8s ease-out;
}

.scenario-card.is-return-focus:focus {
    outline-color: #2f6da6;
}

@keyframes scenario-return-focus {
    0%, 30% {
        background: #e8f3ff;
        border-color: #2f6da6;
        box-shadow: 0 0 0 4px #2f6da626, 0 10px 24px #173a5e1f;
    }
    100% {
        background: #fff;
        border-color: #dbe4ea;
        box-shadow: none;
    }
}

/* Shared surface radii applied to legacy theme layers. */

.panel,
.release-modal,
.api-test-modal,
.endpoint-modal,
.run-progress-modal,
.section-edit-modal,
.scenario-settings-modal,
.variable-picker-dialog {
    border-radius: var(--radius-surface) !important;
    background-clip: padding-box;
}

/* An opaque child otherwise paints square corners over a rounded parent. */
.panel > :first-child,
.release-modal > :first-child,
.api-test-modal > :first-child,
.endpoint-modal > :first-child,
.run-progress-modal > :first-child,
.section-edit-modal > :first-child,
.scenario-settings-modal > :first-child,
.variable-picker-dialog > :first-child {
    border-top-left-radius: calc(var(--radius-surface) - 1px);
    border-top-right-radius: calc(var(--radius-surface) - 1px);
}

.panel > :last-child,
.release-modal > :last-child,
.api-test-modal > :last-child,
.endpoint-modal > :last-child,
.run-progress-modal > :last-child,
.section-edit-modal > :last-child,
.scenario-settings-modal > :last-child,
.variable-picker-dialog > :last-child {
    border-bottom-right-radius: calc(var(--radius-surface) - 1px);
    border-bottom-left-radius: calc(var(--radius-surface) - 1px);
}

.panel > .table-wrap:first-child,
.panel > .table-wrap:last-child,
.panel > .result-group:first-child,
.panel > .result-group:last-child {
    overflow: auto;
}

.panel-header,
.panel-body,
.test-case-editor-footer,
.version-sidebar-header,
.version-sidebar-footer,
.workflow-target-header,
.scenario-type-header,
.result-group-header,
.release-modal-header,
.release-modal-body,
.release-modal-footer,
.api-test-modal-header,
.api-test-modal-body,
.api-test-modal-footer,
.endpoint-modal-header,
.endpoint-modal-toolbar,
.run-progress-modal-header,
.run-progress-modal-body,
.section-edit-modal-header,
.section-edit-modal-body,
.section-edit-modal-footer,
.scenario-settings-modal-header,
.scenario-settings-modal-body,
.scenario-settings-modal-footer {
    background-clip: padding-box;
}

.scenario-type-group,
.version-result-group,
.result-group,
.load-report-summary,
.load-finding-group,
.api-detail-panel,
.api-expected-panel,
.api-test-list-panel,
.case-audit-panel,
.ui-layout-tab-panel,
.api-config-section,
.selected-endpoint-card,
.parameter-editor,
.workflow-auth-card,
.runtime-variable-step-group,
.human-step-list,
.scenario-summary-card,
.api-endpoint-inspector,
.ui-visual-editor,
.ui-assertion-card {
    border-radius: var(--radius-section) !important;
    background-clip: padding-box;
}

.scenario-type-group,
.version-result-group,
.result-group,
.load-report-summary,
.load-finding-group,
.api-test-list-panel,
.case-audit-panel,
.human-step-list,
.runtime-variable-step-group,
.ui-assertion-card {
    overflow: hidden;
}

.workflow-tabs,
.scenario-workspace-tabs,
.dashboard-tabs,
.relation-tabs,
.ui-layout-builder-tabs {
    border-radius: var(--radius-section);
    background-clip: padding-box;
}

.workflow-tabs button,
.scenario-workspace-tab,
.dashboard-tabs button,
.relation-tab,
.ui-layout-builder-tabs > button {
    border-radius: var(--radius-control);
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control,
.button,
button.button,
.icon-button,
.read-control {
    border-radius: var(--radius-control);
}

/* A component can also carry a section class; the panel contract wins. */
.panel {
    border-radius: var(--radius-surface) !important;
}

/* Tab strips are structural separators, not standalone rounded surfaces. */
.relation-tabs {
    border-radius: 0;
}

@media (max-width: 760px) {
    :root {
        --radius-surface: 14px;
        --radius-section: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scenario-card.is-return-focus {
        animation: none;
        background: #e8f3ff;
        border-color: #2f6da6;
    }
}

/* A test case key is essential context in the editor and must remain visible. */
.content:has(.test-case-editor-marker) > .page-header > div:first-child { display: grid; gap: .28rem; align-items: start; }

.content:has(.test-case-editor-marker) > .page-header h1 {
    max-width: min(760px, 54vw);
}

.page-header-eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    min-height: 1.55rem;
    padding: .18rem .55rem;
    color: #315579;
    background: #e8f1f8;
    border: 1px solid #cfdeeb;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .01em;
    white-space: nowrap;
}

.content:has(.test-case-editor-marker) > .page-header p {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 1.7rem;
    margin: 0;
    padding: .2rem .55rem;
    color: #315579;
    background: #e8f1f8;
    border: 1px solid #cfdeeb;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .01em;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .content:has(.test-case-editor-marker) > .page-header > div:first-child {
        display: grid;
        gap: .2rem;
    }

    .content:has(.test-case-editor-marker) > .page-header h1 { max-width: 55vw; }
    .content:has(.test-case-editor-marker) > .page-header p { width: max-content; min-height: 1.35rem; padding-block: .1rem; font-size: .64rem; }
}

/* Create-from-steps is a focused modal wizard that returns to the TestCase. */
.automation-wizard-backdrop { z-index: 95; padding: 22px; }
.automation-wizard-modal {
    display: grid;
    width: min(1040px, 100%);
    max-height: calc(100dvh - 44px);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px #10283d52;
}
.automation-wizard-modal-header { padding: 18px 22px 15px; }
.automation-wizard-modal-header h2 { margin: 3px 0 4px; font-size: 20px; }
.automation-wizard-modal-header p { margin: 0; color: #6b7b88; font-size: 11px; }
.automation-wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 22px; background: #f8fafb; border-bottom: 1px solid #dfe7eb; }
.automation-wizard-progress > span { display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 47px; color: #85919b; font-size: 11px; font-weight: 700; border-bottom: 2px solid transparent; }
.automation-wizard-progress > span strong { display: grid; width: 21px; height: 21px; place-items: center; color: #71808c; background: #e8edef; border-radius: 50%; font-size: 9px; }
.automation-wizard-progress > span.active { color: #173d60; border-bottom-color: #173d60; }
.automation-wizard-progress > span.active strong { color: #fff; background: #173d60; }
.automation-wizard-progress > span.complete { color: #317154; }
.automation-wizard-progress > span.complete strong { color: #fff; background: #3b8b68; }
.automation-wizard-modal-body { display: grid; align-content: start; gap: 16px; min-height: 0; padding: 20px 22px; overflow: auto; }
.automation-wizard-modal-footer { justify-content: space-between; padding: 13px 22px; }
.automation-final-preview-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 15px; color: #30475b; background: #f1f7fb; border: 1px solid #d7e5ef; border-radius: 12px; }
.automation-final-preview-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #185b8e; background: #fff; border: 1px solid #cddfeb; border-radius: 10px; }
.automation-final-preview-summary > div { display: grid; gap: 2px; min-width: 0; }
.automation-final-preview-summary small, .automation-final-preview-summary span { color: #6d7f8e; font-size: 10px; }
.automation-final-preview-summary strong { overflow: hidden; color: #1d3448; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.automation-wizard-modal .automation-preview-heading { padding: 11px 14px; border: 1px solid #dce5ee; border-bottom: 0; border-radius: 12px 12px 0 0; }
.automation-wizard-modal .automation-preview-heading + .automation-wizard-preview { border-radius: 0 0 12px 12px; }
.automation-wizard-complete { display: grid; gap: 10px; justify-items: center; max-width: 760px; margin: 14px auto; text-align: center; }
.automation-wizard-complete-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: #398a67; border-radius: 50%; font-size: 19px; box-shadow: 0 10px 24px #398a6730; }
.automation-wizard-complete h3 { margin: 2px 0 0; font-size: 20px; }
.automation-wizard-complete p { margin: 0; color: #687987; }
.automation-wizard-result-grid { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 7px; }
.automation-wizard-result-grid > span { display: grid; gap: 4px; padding: 11px; text-align: left; background: #f7f9fa; border: 1px solid #e1e7ea; border-radius: 10px; }
.automation-wizard-result-grid small { color: #7b8993; font-size: 9px; text-transform: uppercase; }
.automation-wizard-result-grid strong { color: #263c4d; font-size: 11px; }
.automation-wizard-next-step { display: grid; width: 100%; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: start; padding: 12px 14px; color: #36536a; text-align: left; background: #eef5fa; border-radius: 10px; }
.automation-wizard-next-step > i { margin-top: 2px; color: #276892; }
.automation-wizard-next-step > div { display: grid; gap: 2px; }
.automation-wizard-next-step span { color: #667b89; font-size: 10px; }

/* Every TestCase tab uses the same content header and body rhythm. */
.test-case-tab-panel {
    overflow: hidden;
}

.test-case-tab-panel > .test-case-tab-header {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 15px 22px;
    background: #fff;
    border-bottom: 1px solid #dfe6e9;
}

.test-case-tab-header > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.test-case-tab-header h2 {
    margin: 0;
    color: #213242;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.3;
}

.test-case-tab-header p {
    margin: 0;
    color: #71808a;
    font-size: 11px;
    line-height: 1.35;
}

.test-case-tab-header .test-case-step-heading-actions,
.test-case-tab-header .automation-type-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.test-case-tab-header .button {
    min-height: 38px;
    font-size: 11px;
}

.test-case-tab-panel > .panel-body {
    padding: 20px 22px;
}

.test-case-tab-panel > .panel-body > .test-case-step-editor:first-child {
    margin-top: 0;
}

@media (max-width: 760px) {
    .automation-wizard-backdrop { padding: 0; }
    .automation-wizard-modal { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
    .automation-wizard-progress { padding-inline: 10px; }
    .automation-wizard-progress > span { font-size: 10px; }
    .automation-wizard-result-grid { grid-template-columns: 1fr; }
    .automation-wizard-modal-footer { gap: 8px; }
    .test-case-tab-panel > .test-case-tab-header { align-items: stretch; flex-direction: column; min-height: 0; padding: 14px 16px; }
    .test-case-tab-header .test-case-step-heading-actions,
    .test-case-tab-header .automation-type-actions { justify-content: flex-start; }
    .test-case-tab-panel > .panel-body { padding: 16px; }
}

/* Compact UI test workbench */
.scenario-summary-card {
    gap: 7px 12px;
    padding: 9px 12px 8px;
}

.scenario-summary-main {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.scenario-summary-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
    font-size: 15px;
}

.scenario-summary-title-row h1 {
    font-size: 17px;
    line-height: 1.15;
}

.scenario-summary-title-row .soft-pill {
    padding: 3px 7px;
    font-size: 10px;
}

.scenario-summary-main p {
    overflow: hidden;
    max-width: 680px;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scenario-summary-actions {
    align-items: center;
}

.scenario-summary-actions .button {
    min-height: 32px;
    padding: 6px 10px;
}

.scenario-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding-top: 7px;
}

.scenario-summary-meta .summary-meta-item,
.scenario-summary-meta .summary-meta-item:first-child,
.scenario-summary-meta .summary-meta-item.metric,
.scenario-summary-meta .summary-meta-item.result {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    min-height: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    text-align: left;
}

.scenario-summary-meta .summary-meta-item.endpoint {
    max-width: min(380px, 32vw);
}

.scenario-summary-meta .summary-meta-item.result {
    background: #eef9f2;
}

.scenario-summary-meta .summary-meta-item small {
    order: 1;
    margin: 0;
    color: #728094;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.scenario-summary-meta .summary-meta-item strong,
.scenario-summary-meta .summary-meta-item.metric strong,
.scenario-summary-meta .summary-meta-item.result strong {
    order: 2;
    overflow: hidden;
    max-width: 240px;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scenario-summary-meta .status-badge {
    order: 2;
    min-height: 18px;
    padding: 2px 7px;
    font-size: 9px;
}

.scenario-editor-studio .editor-card-parameters > .ui-layout-parameter-editor {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 12px 18px;
    align-content: start;
    align-items: start;
    padding: 12px 14px 16px;
}

.ui-layout-parameter-editor > .ui-layout-builder-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0;
    padding: 0 1px 2px;
}

.ui-layout-builder-heading > span {
    color: #172b45;
    font-size: 13px;
    font-weight: 800;
}

.ui-layout-builder-heading > small {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-layout-parameter-editor > .ui-layout-builder-tabs {
    position: sticky;
    top: 8px;
    z-index: 3;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-self: start;
    padding: 6px;
}

.ui-layout-builder-tabs > button {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
}

.ui-layout-builder-tabs > button > i {
    width: 28px;
    height: 28px;
}

.ui-layout-builder-tabs > button.active {
    border-color: #9fbedf;
    box-shadow: inset 3px 0 #1766ad, 0 3px 10px #29466510;
}

.ui-layout-parameter-editor > .ui-layout-workspace-content {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.ui-layout-workspace-content > .ui-layout-tab-intro {
    max-width: 820px;
    padding: 11px 12px;
}

.ui-layout-setup-grid {
    grid-template-columns: minmax(260px, 420px) minmax(170px, 240px);
    justify-content: start;
}

.ui-layout-setup-grid > .check-field {
    grid-column: 1 / -1;
}

.ui-layout-setup-grid > .ui-visual-editor {
    grid-column: 1 / -1;
}

.ui-visual-editor {
    gap: 11px;
    padding: 12px;
}

.ui-visual-editor-header {
    align-items: center;
}

.ui-viewport-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 500px));
    justify-content: start;
}

.ui-viewport-card {
    grid-template-columns: 28px minmax(100px, 1fr) 78px auto 78px 32px;
    padding: 9px;
}

.ui-element-list {
    align-items: start;
}

.ui-element-fields {
    grid-template-columns: minmax(140px, .8fr) 150px minmax(220px, 1.5fr);
    justify-content: start;
    padding: 12px 16px 14px;
}

.ui-element-fields > :nth-child(4) {
    grid-column: 1 / -1;
    max-width: 460px;
}

.ui-assertion-list {
    max-width: 1160px;
}

.ui-assertion-sentence {
    grid-template-columns: minmax(170px, 250px) minmax(190px, 280px) minmax(160px, 240px) repeat(3, 92px) 32px;
    justify-content: start;
}

.ui-step-assertion {
    grid-template-columns: minmax(170px, 260px) minmax(190px, 300px) minmax(170px, 260px) 32px;
}

.ui-grid-editor .ui-element-list {
    grid-template-columns: minmax(0, 1fr);
}

.ui-grid-card {
    max-width: 1180px;
}

.ui-grid-structure {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.ui-grid-structure > :nth-child(4) {
    grid-column: auto;
    max-width: none;
}

.ui-grid-check-list {
    display: grid;
    gap: 8px;
    padding: 10px 16px 16px;
}

.ui-grid-check-editor {
    grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.25fr) repeat(3, minmax(120px, .8fr)) 32px;
    align-items: center;
    padding: 0;
}

.ui-elements-empty.compact {
    min-height: 72px;
    margin: 10px 16px 16px;
}

@media (min-width: 1420px) {
    .ui-layout-parameter-editor .ui-element-list {
        grid-template-columns: repeat(2, minmax(470px, 1fr));
    }

    .ui-layout-parameter-editor .ui-element-fields {
        grid-template-columns: minmax(130px, .85fr) 145px minmax(190px, 1.35fr);
    }
}

@media (max-width: 980px) {
    .scenario-editor-studio .editor-card-parameters > .ui-layout-parameter-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-layout-parameter-editor > .ui-layout-builder-heading,
    .ui-layout-parameter-editor > .ui-layout-builder-tabs,
    .ui-layout-parameter-editor > .ui-layout-workspace-content {
        position: static;
        grid-column: 1;
        grid-row: auto;
    }

    .ui-layout-parameter-editor > .ui-layout-builder-tabs {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .scenario-summary-meta .summary-meta-item.endpoint {
        max-width: 100%;
    }

    .ui-grid-structure,
    .ui-grid-check-editor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .scenario-summary-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .scenario-summary-actions {
        grid-row: 3;
    }

    .scenario-summary-meta {
        grid-column: 1;
    }

    .ui-layout-parameter-editor > .ui-layout-builder-heading {
        display: grid;
    }

    .ui-layout-parameter-editor > .ui-layout-builder-tabs,
    .ui-layout-setup-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-layout-setup-grid > .check-field,
    .ui-layout-setup-grid > .ui-visual-editor {
        grid-column: 1;
    }

    .ui-grid-structure,
    .ui-grid-check-editor {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Test case catalog follows the same full-width list pattern as the other test pages. */
.test-case-catalog.catalog-mode {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.test-case-catalog.catalog-mode .test-case-tree {
    position: static;
    max-height: none;
}

.test-case-catalog.catalog-mode .test-case-tree > .panel-header {
    padding: 19px 22px 15px;
}

.test-case-catalog.catalog-mode .test-case-tree > .panel-header > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    align-items: baseline;
}

.test-case-catalog.catalog-mode .test-case-tree > .panel-header > div:first-child {
    flex: 0 0 auto;
    min-width: 190px;
}

.test-case-catalog.catalog-mode .test-case-tree > .panel-header .eyebrow {
    grid-column: 1 / -1;
}

.test-case-catalog.catalog-mode .test-case-tree > .panel-header h2 {
    font-size: 17px;
    white-space: nowrap;
}

.test-case-catalog.catalog-mode .test-case-tree > .panel-header h2::after {
    content: " configured test cases";
    margin-left: 8px;
    color: #71809a;
    font-size: 12px;
    font-weight: 500;
}
.test-case-catalog.catalog-mode .test-case-tree > .panel-header > .test-case-automation-summary {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.test-case-automation-summary > span,
.test-case-automation-status {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
.test-case-automation-summary > span strong { font-size: 12px; }
.test-case-automation-summary .automated,
.test-case-automation-status.automated { color: #176b45; background: #ecfdf3; border-color: #bce6ce; }
.test-case-automation-summary .not-automated,
.test-case-automation-status.not-automated { color: #667085; background: #f5f7f9; border-color: #dfe4ea; }
.test-case-automation-summary .validation-invalid { color: #a92236; background: #fff0f2; border-color: #f5bec7; }
.test-case-automation-summary .validation-valid { color: #176b45; background: #ecfdf3; border-color: #bce6ce; }
.test-case-automation-summary .automation-type-count { color: #315d83; background: #f1f7fb; border-color: #d4e4ef; }
.test-case-automation-cell {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}
.test-case-automation-status strong { font-size: 12px; }
.test-case-automation-breakdown { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.test-case-automation-breakdown > span {
    display: inline-flex;
    min-height: 24px;
    gap: 4px;
    align-items: center;
    padding: 3px 7px;
    border-radius: 7px;
    color: #53637a;
    background: #f3f6f9;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}
.test-case-automation-breakdown > span i { color: #3f6f98; }
.test-case-automation-breakdown > span strong { color: #233b52; font-size: 11px; }

.test-case-catalog.catalog-mode .test-case-toolbar {
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 260px) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 22px;
    background: #fbfcfd;
}

.test-case-catalog.catalog-mode .test-case-toolbar .form-control {
    width: 100%;
}

.test-case-catalog.catalog-mode .compact-check {
    min-height: 42px;
    padding: 0 4px;
    color: #42536a;
    font-weight: 650;
    white-space: nowrap;
}

.test-case-catalog.catalog-mode .test-case-folder-list {
    max-height: none;
    padding: 0;
}

.test-case-client-filter { color: #31465e; background-color: #fff; }

.test-case-client-group + .test-case-client-group { border-top: 1px solid #d8e1ea; }

.test-case-client-group-header {
    display: grid;
    grid-template-columns: 22px 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 22px;
    color: #173b63;
    text-align: left;
    background: #eaf1f7;
    border: 0;
    border-bottom: 1px solid #d7e2eb;
    cursor: pointer;
}

.test-case-client-group-header:hover { background: #e2edf6; }
.test-case-client-group-header > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.test-case-client-group-header > span { min-width: 26px; padding: 3px 8px; color: #46617d; text-align: center; background: #f7fafc; border-radius: 999px; font-size: 10px; font-weight: 800; }
.test-case-client-group-chevron { color: #5f7891; font-size: 9px; }

.test-case-catalog.catalog-mode .test-case-folder-group + .test-case-folder-group {
    border-top: 1px solid #dfe6ee;
}

.test-case-catalog.catalog-mode .test-case-category-header {
    min-height: 44px;
    padding: 9px 22px 9px calc(22px + var(--category-depth, 0) * 20px);
    color: #42536a;
    background: #f3f6f9;
    border-bottom: 1px solid #e2e8ef;
}

.test-case-catalog.catalog-mode .test-case-category-node .test-case-category-node > .test-case-category-header {
    background: #f8fafc;
}

.test-case-catalog.catalog-mode .test-case-folder-group h3 {
    min-height: 42px;
    margin: 0;
    padding: 12px 22px;
    color: #53637a;
    background: #f3f6f9;
    border-bottom: 1px solid #e2e8ef;
    font-size: 10px;
    font-weight: 800;
}

.test-case-catalog.catalog-mode .test-case-nav-item {
    grid-template-columns: minmax(155px, .42fr) minmax(300px, 1.5fr) minmax(145px, .52fr) minmax(155px, .48fr);
    gap: 12px;
    align-items: center;
    min-height: 70px;
    margin: 0;
    padding: 9px 18px 9px calc(18px + var(--category-depth, 0) * 16px);
    border: 0;
    border-bottom: 1px solid #edf0f4;
    border-radius: 0;
}

.test-case-catalog.catalog-mode .test-case-nav-item:last-child {
    border-bottom: 0;
}

.test-case-catalog.catalog-mode .test-case-nav-item:hover {
    background: #f6faff;
}

.test-case-catalog.catalog-mode .test-case-nav-item.has-validation-error {
    background: #fff5f6;
    box-shadow: inset 2px 0 #d92d45;
}

.test-case-catalog.catalog-mode .test-case-nav-item.has-validation-error:hover {
    background: #ffedef;
}

.test-case-catalog.catalog-mode .test-case-nav-item > .test-case-identity-cell {
    grid-column: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.test-case-catalog.catalog-mode .test-case-nav-item > .test-case-identity-cell code {
    color: #2d5f96;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: normal;
    white-space: nowrap;
}

.test-case-catalog.catalog-mode .test-case-nav-item > .test-case-identity-cell .status-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    font-size: 9px;
}

.test-case-catalog.catalog-mode .test-case-nav-item > .test-case-title-cell {
    grid-column: 2;
    display: grid;
    gap: 5px;
    min-width: 0;
}

.test-case-catalog.catalog-mode .test-case-nav-item > .test-case-title-cell > strong {
    color: #203449;
    font-size: 12px;
    font-weight: 730;
    line-height: 1.35;
}

.test-case-row-meta {
    display: flex;
    gap: 5px 12px;
    align-items: center;
    flex-wrap: wrap;
}

.test-case-row-meta > span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    color: #718197;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.test-case-row-meta i {
    color: #6f88a1;
    font-size: 8px;
}

.test-case-row-meta > .test-case-step-validation {
    gap: 5px;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

.test-case-row-meta > .test-case-step-validation.invalid {
    color: #a92236;
    background: #ffe4e8;
    border-color: #f6bcc5;
}

.test-case-row-meta > .test-case-step-validation.invalid i { color: #c72c43; }

.test-case-row-meta > .test-case-step-validation.valid {
    color: #176b45;
    background: #ecfdf3;
    border-color: #bce6ce;
}

.test-case-row-meta > .test-case-step-validation.valid i { color: #21865b; }

.test-case-catalog.catalog-mode .test-case-nav-item > small,
.test-case-catalog.catalog-mode .test-case-audit-meta {
    grid-column: 4;
    justify-self: end;
    white-space: nowrap;
}
.test-case-audit-meta { display: grid; gap: 2px; justify-items: end; color: #8290a2; font-size: 8px; line-height: 1.25; }
.test-case-audit-meta > strong { margin-bottom: 2px; color: #657990; font-size: 9px; font-weight: 650; }
.test-case-audit-meta > span { display: grid; grid-template-columns: 10px 42px auto; gap: 3px; align-items: center; }
.test-case-audit-meta i { width: 10px; color: #8a9aad; text-align: center; }
.test-case-audit-meta time { color: #4e647a; font-variant-numeric: tabular-nums; }
.test-case-catalog.catalog-mode .test-case-automation-cell { grid-column: 3; justify-self: start; gap: 4px; }
.test-case-catalog.catalog-mode .test-case-automation-status {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 9px;
}
.test-case-catalog.catalog-mode .test-case-automation-status strong { font-size: 10px; }
.test-case-catalog.catalog-mode .test-case-automation-breakdown > span {
    min-height: 21px;
    padding: 2px 6px;
    font-size: 9px;
}

.test-case-catalog.catalog-mode > .test-case-detail {
    display: none;
}

.test-case-catalog.editor-mode {
    grid-template-columns: minmax(0, 1fr);
}

.test-case-catalog.editor-mode > .test-case-tree {
    display: none;
}

.test-case-scope-strip {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: -8px;
}

.test-case-scope-item {
    display: grid;
    min-width: 190px;
    gap: 3px;
    padding: 8px 12px;
    border: 1px solid #d8e2eb;
    border-radius: 10px;
    background: #f8fafc;
}

.test-case-scope-item small {
    color: #738196;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.test-case-scope-item strong {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #263b52;
    font-size: 12px;
}

.test-case-scope-item i {
    color: #2f6b96;
    font-size: 11px;
}

/* Diagram-first business test design */
.business-flow-list { display: grid; }
.business-flow-list-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(190px, auto) auto; gap: 14px; align-items: center; padding: 18px 20px; border-top: 1px solid #e4e9ef; }
.business-flow-list-item:first-child { border-top: 0; }
.business-flow-list-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #1f5c87; background: #eaf3fa; }
.business-flow-list-title { display: flex; gap: 10px; align-items: center; }
.business-flow-list-title code { color: #64748b; font-size: 11px; }
.business-flow-list-item p { margin: 5px 0; color: #596a7d; }
.business-flow-list-item small { color: #7a8797; }
.business-flow-audit-meta { justify-self: end; }

.business-flow-tabs { margin-bottom: 16px; }
.business-flow-tabs button { gap: 7px; }
.business-flow-tabs button small { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 3px; padding: 0 6px; border-radius: 10px; background: #edf1f5; color: #66758a; font-size: 10px; }
.business-flow-tabs button.active small { background: #dbe9f4; color: #174b75; }
.business-flow-editor-marker { display: none; }
.content:has(.business-flow-editor-marker) { width: 100%; max-width: none; padding: 20px 22px 36px; }
.business-flow-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.business-flow-editor-grid.inspector-closed { grid-template-columns: minmax(0, 1fr); }
.business-flow-design-panel { overflow: hidden; }
.business-flow-node-toolbar { position: relative; display: flex; gap: 8px; align-items: center; }
.business-flow-node-toolbar .form-control.compact { width: 142px; min-width: 0; }
.business-flow-node-toolbar .business-flow-add-button,
.business-flow-open-inspector { gap: 6px; }
.business-flow-open-inspector { margin-left: 3px; }
.business-flow-workspace > .panel-header { min-height: 76px; }
.business-flow-canvas { position: relative; overflow: auto; height: max(520px, calc(100dvh - 300px)); min-height: 0; padding: 18px; background-color: #fbfcfd; background-image: radial-gradient(#dce5ed 0.8px, transparent 0.8px); background-size: 18px 18px; border-top: 1px solid #e4e9ef; }
.business-flow-canvas svg { display: block; width: max(100%, 1200px); height: max(100%, 720px); min-height: 0; touch-action: none; user-select: none; }
.business-flow-center-button { position: sticky; z-index: 4; top: 0; left: 100%; display: flex; width: max-content; gap: 7px; align-items: center; margin: 0 0 -34px auto; padding: 7px 10px; border: 1px solid #d5dfe8; border-radius: 8px; color: #526479; background: #fffffff2; box-shadow: 0 2px 7px #17334d12; font: inherit; font-size: 11px; cursor: pointer; }
.business-flow-center-button:hover { border-color: #91b3ca; color: #174b75; background: #fff; }
.business-flow-edge { fill: none; pointer-events: none; stroke: #718096; stroke-width: 1.5; }
.business-flow-edge-hit { fill: none; cursor: pointer; stroke: transparent; stroke-width: 14; }
.business-flow-edge.selected { stroke-width: 2.6; filter: drop-shadow(0 1px 2px #176da544); }
.business-flow-edge.default { stroke-dasharray: 5 4; }
.business-flow-arrow-head { fill: #718096; }
.business-flow-edge-label-wrapper { cursor: pointer; overflow: visible; }
.business-flow-edge-label { overflow: hidden; width: fit-content; max-width: 132px; margin: 2px auto; padding: 3px 7px; border: 1px solid #dce4eb; border-radius: 8px; color: #536579; background: #fff; box-shadow: 0 1px 3px #18334f12; font-size: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-edge-label.selected { border-color: #5b9bc4; color: #125c8a; background: #edf7fd; }
.business-flow-connection-preview { fill: none; pointer-events: none; stroke: #2386bd; stroke-width: 2; stroke-dasharray: 6 4; }
.business-flow-endpoint-preview { fill: none; pointer-events: none; stroke: #2386bd; stroke-width: 2; stroke-dasharray: 5 4; }
.business-flow-edge-endpoint { fill: #fff; stroke: #2386bd; stroke-width: 2.5; cursor: move; filter: drop-shadow(0 1px 2px #173b5533); transition: r .12s ease, fill .12s ease; }
.business-flow-edge-endpoint:hover { fill: #dff3ff; r: 10; }
.business-flow-canvas svg.moving-endpoint .business-flow-edge-endpoint { pointer-events: none; }
.business-flow-node { cursor: grab; }
.business-flow-connector { cursor: crosshair; opacity: 0; transition: opacity .14s ease; }
.business-flow-connector-hit { pointer-events: all; }
.business-flow-connector-dot { pointer-events: none; transition: fill .14s ease, r .14s ease; }
.business-flow-node:hover .business-flow-connector, .business-flow-node.selected .business-flow-connector { opacity: 1; }
.business-flow-canvas svg.connecting .business-flow-connector { opacity: .4; }
.business-flow-connector:hover { opacity: 1 !important; }
.business-flow-connector:hover .business-flow-connector-dot { fill: #2386bd; r: 4; }
.business-flow-node.connection-target rect, .business-flow-node.connection-target path { stroke: #2386bd; stroke-width: 2.8; filter: drop-shadow(0 0 5px #2386bd55); }
.business-flow-node.dragging, .business-flow-canvas svg.dragging .business-flow-node.dragging { cursor: grabbing; }
.business-flow-node rect, .business-flow-node path { fill: #fff; stroke: #8393a5; stroke-width: 1.4; transition: stroke .15s ease, filter .15s ease; }
.business-flow-node.node-start rect { fill: #e7f5e7; stroke: #62a45b; }
.business-flow-node.node-end rect { fill: #174b75; stroke: #103b5e; }
.business-flow-node.node-decision path { fill: #fff5cf; stroke: #d7a916; }
.business-flow-node.node-outcome rect { fill: #f0f5ff; stroke: #6f8fc4; }
.business-flow-node.node-apirequest rect { fill: #eaf6ff; stroke: #3b82ad; }
.business-flow-node.node-uiverification rect { fill: #f3efff; stroke: #8064b3; }
.business-flow-node.selected rect, .business-flow-node.selected path { stroke: #092f55; stroke-width: 2.4; filter: drop-shadow(0 3px 5px #1f3d5a2d); }
.business-flow-node.invalid rect, .business-flow-node.invalid > path { stroke: #c7434f !important; stroke-width: 2.6 !important; filter: drop-shadow(0 0 5px #c7434f66); }
.business-flow-live-validation { display: grid; gap: 5px; margin: 8px 18px; padding: 8px 11px; }
.business-flow-validation-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.business-flow-validation-heading > i { font-size: 15px; }
.business-flow-validation-heading > div { display: grid; gap: 2px; }
.business-flow-validation-heading span { color: #8a4a51; font-size: 10px; line-height: 1.3; }
.business-flow-validation-list { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid #efcbd0; }
.business-flow-validation-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 9px; border-radius: 7px; background: #fff8f9; }
.business-flow-validation-item > div { display: grid; gap: 3px; }
.business-flow-validation-item strong { font-size: 11px; }
.business-flow-validation-item small { color: #7f4c52; line-height: 1.35; }
.business-flow-validation-item small b { color: #70232c; }
.business-flow-validation-more { padding: 0 0 0 24px; }
.business-flow-validation-more summary { width: fit-content; color: #8f2934; font-size: 11px; font-weight: 700; cursor: pointer; }
.business-flow-validation-more[open] { display: grid; gap: 4px; }
.business-flow-validation-more[open] summary { margin-bottom: 3px; }
.business-flow-issues-menu { position: relative; }
.business-flow-issues-trigger { display: inline-flex; height: 34px; gap: 7px; align-items: center; padding: 0 11px; border: 1px solid #e7b8be; border-radius: 9px; color: #9c303c; background: #fff3f4; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.business-flow-issues-trigger:hover, .business-flow-issues-trigger[aria-expanded="true"] { border-color: #d98892; background: #ffe9eb; }
.business-flow-issues-popover { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; display: grid; width: min(410px, 72vw); max-height: min(480px, calc(100dvh - 230px)); overflow: hidden; border: 1px solid #e1b4ba; border-radius: 12px; background: #fff; box-shadow: 0 18px 50px #51202a2b; }
.business-flow-issues-popover > header { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 11px 12px; background: #fff5f6; border-bottom: 1px solid #efd2d6; }
.business-flow-issues-popover > header > div { display: grid; gap: 2px; }
.business-flow-issues-popover > header strong { color: #76242e; font-size: 12px; }
.business-flow-issues-popover > header small { color: #9b5d65; font-size: 10px; }
.business-flow-issues-list { min-height: 0; overflow: auto; padding: 5px; }
.business-flow-issue-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; width: 100%; padding: 9px; border: 0; border-radius: 8px; color: #29384a; background: transparent; text-align: left; cursor: pointer; }
.business-flow-issue-row:hover, .business-flow-issue-row:focus-visible { background: #fff1f2; outline: none; }
.business-flow-issue-row > i { margin-top: 2px; color: #b23a47; text-align: center; }
.business-flow-issue-row > span { display: grid; gap: 3px; }
.business-flow-issue-row strong { font-size: 11px; line-height: 1.35; }
.business-flow-issue-row small { color: #82575d; font-size: 10px; line-height: 1.35; }
.business-flow-node.coverage-passed rect, .business-flow-node.coverage-passed > path { filter: drop-shadow(0 0 5px #3f9b5480); }
.business-flow-node.coverage-failed rect, .business-flow-node.coverage-failed > path { filter: drop-shadow(0 0 6px #c7434f99); }
.business-flow-node-label { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; color: #172033; line-height: 1.2; text-align: center; pointer-events: none; }
.node-end .business-flow-node-label { color: #fff; }
.business-flow-node-label strong { font-size: 11px; }
.business-flow-node-label small { margin-top: 4px; color: #8390a0; font-size: 8px; text-transform: uppercase; }
.node-end .business-flow-node-label small { color: #d5e8f6; }
.node-end.custom-appearance .business-flow-node-label { color: #172033; }
.node-end.custom-appearance .business-flow-node-label small { color: #65758a; }
.business-flow-inspector { position: sticky; top: 16px; min-width: 0; max-height: calc(100dvh - 32px); overflow: hidden; }
.business-flow-inspector > .panel-header { padding: 17px 18px; }
.business-flow-inspector-header { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 10px; align-items: center; }
.business-flow-inspector-header > div { min-width: 0; }
.business-flow-inspector-header h2 { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-inspector .panel-body.stack { display: grid; grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 116px); gap: 12px; overflow-x: hidden; overflow-y: auto; align-items: end; padding: 15px; }
.business-flow-inspector .form-field,
.business-flow-inspector .form-control { min-width: 0; max-width: 100%; }
.business-flow-inspector .panel-body.stack > .button { align-self: end; justify-self: start; }
.business-flow-inspector-primary,
.business-flow-inspector-fields { display: grid; min-width: 0; gap: 11px; }
.business-flow-field-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; color: #53627a; font-size: 13px; font-weight: 650; }
.business-flow-field-help { position: relative; flex: 0 0 auto; }
.business-flow-field-help > summary { display: inline-grid; width: 20px; height: 20px; padding: 0; place-items: center; border: 1px solid #94abc0; border-radius: 50%; color: #356f99; background: #f4f9fc; font-size: 10px; cursor: pointer; list-style: none; }
.business-flow-field-help > summary::-webkit-details-marker { display: none; }
.business-flow-field-help > summary:hover,
.business-flow-field-help > summary:focus-visible,
.business-flow-field-help[open] > summary { border-color: #2386bd; color: #fff; background: #2386bd; outline: none; }
.business-flow-field-help > summary:focus-visible { box-shadow: 0 0 0 3px #2386bd24; }
.business-flow-field-help-popover { position: absolute; z-index: 25; top: 27px; right: 0; display: grid; width: min(440px, calc(100vw - 80px)); gap: 7px; padding: 14px 15px; border: 1px solid #cddbe6; border-radius: 11px; color: #33465a; background: #fff; box-shadow: 0 14px 34px #17334d2b; font-size: 11px; font-weight: 400; line-height: 1.45; }
.business-flow-field-help-popover strong { color: #183d5b; font-size: 11px; }
.business-flow-field-help-popover p { margin: 0; }
.business-flow-field-help-popover ul { display: grid; gap: 3px; margin: 0; padding-left: 18px; }
.business-flow-field-help-popover code { padding: 1px 4px; border-radius: 4px; color: #155d88; background: #edf6fb; font-size: 10px; }
.business-flow-template-options { display: flex; flex-wrap: wrap; gap: 5px; }
.business-flow-field-help-warning { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 7px; margin-top: 3px !important; padding: 8px 9px; border-radius: 7px; color: #765614; background: #fff8df; }
.business-flow-field-help-warning > i { margin-top: 2px; color: #c28a16; }
.business-flow-connection-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 12px; border-radius: 9px; color: #526479; background: #f2f6f9; font-size: 11px; }
.business-flow-connection-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-connection-summary i { color: #2386bd; }
.business-flow-inspector-section { display: grid; gap: 10px; margin-top: 2px; padding-top: 14px; border-top: 1px solid #e8edf2; }
.business-flow-disclosure { display: block; padding-top: 0; }
.business-flow-disclosure > summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 0 8px; color: #526276; font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
.business-flow-disclosure > summary::-webkit-details-marker { display: none; }
.business-flow-disclosure > summary::after { content: "\f078"; color: #7a8a9b; font: 900 10px/1 "Font Awesome 6 Free"; transition: transform .15s ease; }
.business-flow-disclosure[open] > summary::after { transform: rotate(180deg); }
.business-flow-disclosure > summary small { margin-left: auto; color: #8a97a6; font-size: 9px; font-weight: 600; }
.business-flow-disclosure > .business-flow-appearance-grid,
.business-flow-disclosure > .form-field { margin-top: 3px; padding-bottom: 4px; }
.business-flow-appearance-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.business-flow-color-control { display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 7px; align-items: center; }
.business-flow-color-control input[type="color"] { width: 42px; height: 38px; padding: 3px; border: 1px solid #cbd5df; border-radius: 8px; background: #fff; cursor: pointer; }
.business-flow-color-control code { overflow: hidden; color: #536579; font-size: 11px; text-overflow: ellipsis; }
.business-flow-color-control .icon-button { width: 34px; height: 34px; }
.business-flow-anchor-values { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.business-flow-line-preview-picker { display: grid; gap: 7px; }
.business-flow-line-preview-picker.compact { gap: 0; }
.business-flow-line-preview-group { display: grid; gap: 3px; }
.business-flow-line-preview-picker.compact .business-flow-line-preview-group { padding: 6px 9px; border-bottom: 1px solid #edf1f5; }
.business-flow-line-preview-group > strong { color: #526276; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.business-flow-visual-choices { display: grid; gap: 4px; }
.business-flow-visual-choices.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.business-flow-visual-choices.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.business-flow-context-menu .business-flow-visual-choices button,
.business-flow-visual-choices button { display: flex; min-width: 0; min-height: 30px; flex-direction: column; gap: 0; align-items: center; justify-content: center; padding: 2px; border: 1px solid #dbe3ea; border-radius: 6px; color: #64748b; background: #fff; cursor: pointer; }
.business-flow-context-menu .business-flow-visual-choices button:hover,
.business-flow-visual-choices button:hover { border-color: #9bbdd2; background: #f5fafc; }
.business-flow-context-menu .business-flow-visual-choices button.active,
.business-flow-visual-choices button.active { border-color: #3187b7; color: #17658f; background: #eaf6fc; box-shadow: inset 0 0 0 1px #3187b71f; }
.business-flow-visual-choices button svg { display: block; width: 100%; max-width: 44px; height: 15px; overflow: visible; }
.business-flow-visual-choices button svg path { fill: none; stroke: var(--line-preview-color); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.business-flow-visual-choices button svg .arrow-head { fill: var(--line-preview-color); stroke: none; }
.business-flow-visual-choices button span { overflow: hidden; max-width: 100%; font-size: 7px; line-height: 9px; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-line-preview-picker.compact .business-flow-visual-choices button { min-height: 28px; }
.business-flow-field-wide { grid-column: 1 / -1; }
.business-flow-inspector .selected-endpoint-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-width: 0; padding: 11px 12px; border-radius: 10px; }
.business-flow-inspector .selected-endpoint-card > div { min-width: 0; }
.business-flow-inspector .selected-endpoint-card h4 { display: block; overflow: hidden; margin: 3px 0 4px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.business-flow-inspector .selected-endpoint-card small { overflow: hidden; margin-top: 0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-inspector .selected-endpoint-card .button { align-self: start; padding-inline: 10px; }
.business-flow-context-menu { position: absolute; z-index: 30; display: grid; width: 284px; overflow: hidden; padding: 7px; border: 1px solid #d8e0e8; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px #18334f30; }
.business-flow-context-menu header { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 10px; border-bottom: 1px solid #edf1f5; }
.business-flow-context-menu header span { color: #172033; font-size: 13px; font-weight: 700; }
.business-flow-context-menu header small { color: #7b8796; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.business-flow-context-menu button { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: #263548; background: transparent; text-align: left; cursor: pointer; }
.business-flow-context-menu button:hover, .business-flow-context-menu button:focus-visible { background: #edf5fb; outline: none; }
.business-flow-context-menu button > i { color: #2b678f; text-align: center; }
.business-flow-context-menu button > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.business-flow-context-menu button strong { font-size: 12px; }
.business-flow-context-menu button small { overflow: hidden; color: #758295; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-context-menu.object-menu { width: 260px; }
.business-flow-menu-section { display: grid; gap: 6px; padding: 8px 9px; border-bottom: 1px solid #edf1f5; }
.business-flow-menu-section > strong { color: #526276; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.business-flow-color-picker { display: flex; gap: 7px; align-items: center; }
.business-flow-context-menu .color-swatch { display: block; width: 18px; height: 18px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px var(--swatch-border); }
.business-flow-context-menu .color-swatch:hover, .business-flow-context-menu .color-swatch:focus-visible { background: var(--swatch); box-shadow: 0 0 0 2px var(--swatch-border); }
.business-flow-context-menu .color-swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch-border); }
.business-flow-choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.business-flow-context-menu .business-flow-choice-row button { display: block; padding: 7px 5px; border: 1px solid #dbe3ea; color: #536579; background: #fff; font-size: 10px; text-align: center; }
.business-flow-context-menu .business-flow-choice-row button:hover { background: #f1f6f9; }
.business-flow-context-menu .business-flow-choice-row button.active { border-color: #4f91ba; color: #155f8e; background: #eaf5fb; font-weight: 700; }
.business-flow-context-menu button.menu-danger { margin-top: 5px; color: #a52f3d; }
.business-flow-context-menu button.menu-danger > i { color: #bf3f4d; }
.business-flow-definition, .business-flow-transitions, .business-flow-preview { margin-top: 0; }
.business-flow-history { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #e4e9ef; }
.business-flow-history-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #e4e9ef; border-radius: 9px; background: #f8fafc; }
.business-flow-history-row > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.business-flow-history-row small { color: #758295; }
.generated-path-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e6ebf0; }
.business-flow-transition-list { display: grid; gap: 10px; }
.business-flow-routing-actions { display: flex; gap: 10px; align-items: end; }
.business-flow-routing-source { display: grid; gap: 4px; color: #64748b; font-size: 10px; font-weight: 700; }
.business-flow-routing-source .form-control.compact { width: 190px; min-height: 32px; padding-block: 5px; }
.business-flow-transition-help { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; padding: 10px 12px; color: #496176; background: #f2f7fb; border: 1px solid #dce8f1; border-radius: 9px; font-size: 12px; }
.business-flow-transition-help > i { color: #2f78a5; }
.business-flow-transition-row { display: grid; grid-template-columns: minmax(180px, .8fr) 18px minmax(210px, 1fr) minmax(210px, 1fr) 120px 36px; gap: 10px; align-items: end; padding: 10px; border: 1px solid #e1e8ee; border-radius: 11px; background: #fff; }
.business-flow-transition-row.direct-transition { grid-template-columns: minmax(180px, .8fr) 18px minmax(210px, 1fr) 140px 36px; }
.business-flow-transition-source { display: grid; min-width: 0; gap: 3px; padding: 7px 10px; border: 1px solid #dbe4eb; border-radius: 9px; background: #f7fafc; }
.business-flow-transition-source small { color: #8190a0; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.business-flow-transition-source strong { overflow: hidden; color: #33475a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.business-flow-transition-arrow { align-self: center; color: #8aa0b3; font-size: 11px; }
.business-flow-transition-field { display: grid; min-width: 0; gap: 4px; color: #64748b; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.business-flow-transition-field .form-control { min-width: 0; text-transform: none; letter-spacing: normal; }
.business-flow-fallback-check { align-self: center; min-height: 38px; }
.business-flow-direct-pill { align-self: center; justify-self: start; padding: 6px 9px; color: #64748b; background: #f1f5f8; border-radius: 999px; font-size: 10px; font-weight: 700; }
.generated-path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.generated-path-card { padding: 16px; border: 1px solid #dce4ec; border-radius: 12px; background: #fbfcfd; }
.generated-path-identity { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: -3px 0 12px; padding-bottom: 10px; border-bottom: 1px solid #e6ebf0; }
.generated-path-identity code { color: #6b7b8d; font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.generated-path-identity .button { flex: 0 0 auto; }
.generated-path-card header { display: flex; gap: 9px; align-items: flex-start; }
.generated-path-card > small { display: block; margin: 8px 0; color: #718096; }
.generated-path-card ol { display: grid; gap: 9px; margin: 12px 0 0; padding-left: 22px; }
.generated-path-card li { padding-left: 4px; color: #445468; }
.generated-path-card li strong, .generated-path-card li span { display: block; }
.generated-path-card li span { margin-top: 2px; color: #748195; font-size: 12px; }

/* Business-flow editor uses one compact shell on every tab; only active content scrolls. */
@media (min-width: 1101px) {
    body:has(.business-flow-editor-marker) { overflow: hidden; background: #f4f7f9; }
    body:has(.business-flow-editor-marker) .app-shell { height: 100vh; min-height: 0; overflow: hidden; }
    .page-shell:has(.business-flow-editor-marker) { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; min-height: 0; overflow: hidden; }
    .page-shell:has(.business-flow-editor-marker) > .topbar { min-height: 56px; padding-block: 7px; }
    .content:has(.business-flow-editor-marker) { display: flex; width: 100%; max-width: none; height: 100%; min-height: 0; flex-direction: column; overflow: hidden; padding: 9px 18px 12px; }
    .content:has(.business-flow-editor-marker) > .page-header { flex: 0 0 42px; height: 42px; align-items: center; margin-bottom: 7px; }
    .content:has(.business-flow-editor-marker) > .page-header h1 { overflow: hidden; max-width: min(720px, 48vw); font-size: clamp(20px, 1.7vw, 24px); text-overflow: ellipsis; white-space: nowrap; }
    .content:has(.business-flow-editor-marker) > .page-header p { display: none; }
    .content:has(.business-flow-editor-marker) > .page-header .page-actions { flex-wrap: nowrap; gap: 7px; }
    .content:has(.business-flow-editor-marker) > .page-header .button { min-height: 34px; padding: 6px 13px; white-space: nowrap; }
    .content:has(.business-flow-editor-marker) > .alert { position: fixed; z-index: 70; top: 64px; right: 18px; width: min(460px, calc(100vw - 36px)); margin: 0; box-shadow: 0 12px 34px #17334d24; }
    .content:has(.business-flow-editor-marker) > .business-flow-tabs { flex: 0 0 42px; min-height: 42px; margin-bottom: 8px; }
    .content:has(.business-flow-editor-marker) > .business-flow-tabs button { min-height: 34px; padding-block: 6px; }
    .business-flow-editor-grid { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); min-height: 0; height: 100%; align-items: stretch; gap: 12px; }
    .business-flow-workspace { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: 100%; }
    .business-flow-workspace > .panel-header { position: relative; z-index: 10; min-height: 64px; padding: 11px 16px; }
    .business-flow-workspace > .panel-header h2 { font-size: 15px; }
    .business-flow-workspace > .panel-header small { font-size: 10px; }
    .business-flow-canvas { min-height: 0; height: auto; padding: 12px; }
    .business-flow-inspector { position: static; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: 100%; max-height: none; }
    .business-flow-inspector > .panel-header { padding: 12px 15px; }
    .business-flow-inspector .panel-body.stack { min-height: 0; height: auto; max-height: none; gap: 11px; overflow: auto; padding: 14px 15px; align-content: start; overscroll-behavior: contain; }
    .content:has(.business-flow-editor-marker) > .business-flow-definition,
    .content:has(.business-flow-editor-marker) > .business-flow-transitions,
    .content:has(.business-flow-editor-marker) > .business-flow-preview { display: grid; flex: 1 1 auto; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: 100%; overflow: hidden; }
    .content:has(.business-flow-editor-marker) > .business-flow-definition > .panel-header,
    .content:has(.business-flow-editor-marker) > .business-flow-transitions > .panel-header,
    .content:has(.business-flow-editor-marker) > .business-flow-preview > .panel-header { padding: 12px 18px; }
    .content:has(.business-flow-editor-marker) > .business-flow-definition > .panel-body,
    .content:has(.business-flow-editor-marker) > .business-flow-transitions > .panel-body,
    .content:has(.business-flow-editor-marker) > .business-flow-preview > .panel-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
}

@media (max-width: 1100px) {
    .business-flow-editor-grid { grid-template-columns: 1fr; }
    .business-flow-inspector { position: static; }
    .business-flow-inspector .panel-body.stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .business-flow-inspector, .business-flow-inspector .panel-body.stack { max-height: none; overflow: visible; }
    .business-flow-transition-row { grid-template-columns: 1fr; }
    .business-flow-transition-row.direct-transition { grid-template-columns: 1fr; }
    .business-flow-transition-arrow { display: none; }
    .business-flow-routing-actions { align-items: stretch; flex-direction: column; }
    .business-flow-routing-source .form-control.compact { width: 100%; }
}

/* Business-flow settings use a roomy modal so the canvas never gets compressed. */
.business-flow-settings-backdrop { z-index: 80; padding: 24px; }
.business-flow-settings-modal.business-flow-inspector {
    position: relative;
    top: auto;
    display: grid;
    width: min(900px, 100%);
    min-width: 0;
    max-height: min(860px, calc(100dvh - 48px));
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #d6e0e8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 28px 70px #0b20394d;
}
.business-flow-settings-modal.business-flow-inspector:not(:has(> .business-flow-settings-tabs)) {
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.business-flow-settings-modal.business-flow-inspector > .panel-header {
    min-height: 72px;
    padding: 17px 21px;
    background: linear-gradient(180deg, #fbfdff, #f7fafd);
    border-bottom: 1px solid #dfe7ee;
}
.business-flow-settings-tabs {
    display: flex;
    gap: 6px;
    padding: 0 21px;
    border-bottom: 1px solid #dfe7ee;
    background: #fbfdff;
}
.business-flow-settings-tabs button {
    display: inline-flex;
    min-height: 44px;
    gap: 8px;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #66758a;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.business-flow-settings-tabs button:hover { color: #174b75; }
.business-flow-settings-tabs button.active { border-bottom-color: #195783; color: #123f61; }
.business-flow-settings-tabs button:focus-visible {
    border-radius: 6px 6px 0 0;
    outline: 2px solid #6aa6d1;
    outline-offset: -2px;
}
.business-flow-settings-modal.business-flow-inspector .panel-body.stack {
    min-height: 0;
    height: auto;
    max-height: none;
    gap: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 22px 24px;
    align-content: start;
}
.business-flow-settings-modal .business-flow-inspector-primary {
    grid-template-columns: minmax(170px, .36fr) minmax(0, 1fr);
}
.business-flow-settings-modal .business-flow-inspector-fields {
    grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr);
}
.business-flow-settings-modal .business-flow-inspector-fields > :last-child { grid-column: 1 / -1; }
.business-flow-settings-modal .business-flow-appearance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.business-flow-settings-tab-intro {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 2px;
}
.business-flow-settings-tab-intro h3 { margin: 3px 0 0; font-size: 17px; }
.business-flow-settings-tab-intro > small { max-width: 360px; color: #718096; text-align: right; }
.business-flow-settings-modal .selected-endpoint-card { padding: 14px 16px; }
.business-flow-settings-modal .selected-endpoint-card h4 { font-size: 15px; }
.business-flow-settings-modal .business-flow-disclosure textarea.code { min-height: 210px; resize: vertical; }
.business-flow-settings-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 21px;
    border-top: 1px solid #dfe7ee;
    background: #f8fafc;
}
.business-flow-settings-footer small { color: #718096; font-size: 11px; }


@media (max-width: 680px) {
    .business-flow-settings-backdrop { padding: 8px; }
    .business-flow-settings-modal.business-flow-inspector { max-height: calc(100dvh - 16px); }
    .business-flow-settings-modal.business-flow-inspector > .panel-header,
    .business-flow-settings-tabs,
    .business-flow-settings-modal.business-flow-inspector .panel-body.stack,
    .business-flow-settings-footer { padding-inline: 14px; }
    .business-flow-settings-modal .business-flow-inspector-primary,
    .business-flow-settings-modal .business-flow-inspector-fields,
    .business-flow-settings-modal .business-flow-appearance-grid { grid-template-columns: 1fr; }
    .business-flow-settings-modal .business-flow-inspector-fields > :last-child { grid-column: auto; }
    .business-flow-settings-tabs { overflow-x: auto; }
    .business-flow-settings-tabs button { flex: 0 0 auto; }
    .business-flow-settings-tab-intro { align-items: flex-start; flex-direction: column; gap: 6px; }
    .business-flow-settings-tab-intro > small { text-align: left; }
    .business-flow-settings-footer { align-items: stretch; flex-direction: column; }
    .business-flow-settings-footer .button { align-self: flex-end; }
    .business-flow-field-help-popover { position: fixed; top: 72px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 96px); overflow: auto; }
}

@media (min-width: 1101px) and (max-width: 1450px) {
    .business-flow-node-toolbar .business-flow-add-button,
    .business-flow-node-toolbar .business-flow-open-inspector { width: 36px; min-width: 36px; padding-inline: 0; }
    .business-flow-node-toolbar .business-flow-add-button span,
    .business-flow-node-toolbar .business-flow-open-inspector span { display: none; }
}

@media (max-width: 680px) {
    .business-flow-list-item { grid-template-columns: 42px minmax(0, 1fr); }
    .business-flow-list-item > .business-flow-audit-meta { grid-column: 2; justify-self: start; justify-items: start; }
    .business-flow-list-item > :is(.button, .grid-action-icon) { grid-column: 2; justify-self: start; }
    .business-flow-node-toolbar { align-items: stretch; flex-direction: column; }
    .content:has(.business-flow-editor-marker) { padding: 14px 12px 28px; }
    .business-flow-canvas { height: 600px; min-height: 600px; padding: 10px; }
    .business-flow-inspector .panel-body.stack { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .test-case-catalog.catalog-mode .test-case-toolbar {
        grid-template-columns: 1fr;
    }

    .test-case-catalog.catalog-mode .test-case-nav-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
    }

    .test-case-catalog.catalog-mode .test-case-nav-item > .test-case-identity-cell {
        grid-column: 1 / -1;
    }

    .test-case-catalog.catalog-mode .test-case-nav-item > .test-case-title-cell {
        grid-column: 1;
    }

    .test-case-catalog.catalog-mode .test-case-nav-item > small,
    .test-case-catalog.catalog-mode .test-case-audit-meta {
        grid-column: 2;
        grid-row: 2;
    }

    .test-case-catalog.catalog-mode .test-case-audit-meta { justify-items: end; }

    .test-case-catalog.catalog-mode .test-case-automation-cell { grid-column: 1 / -1; grid-row: 3; }

    .test-case-catalog.catalog-mode .test-case-tree > .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1180px) and (min-width: 761px) {
    .test-case-catalog.catalog-mode .test-case-nav-item {
        grid-template-columns: minmax(145px, .42fr) minmax(270px, 1.5fr) minmax(125px, .5fr) minmax(120px, .42fr);
        gap: 10px;
    }

    .test-case-catalog.catalog-mode .test-case-audit-meta > span {
        grid-template-columns: 10px auto;
    }

    .test-case-catalog.catalog-mode .test-case-audit-meta > span > span {
        display: none;
    }
}

/* Unified contract for compact system actions: close, reset, expand, refresh, and similar controls. */
.app-shell button.icon-button:not(.delete-icon-button) {
    appearance: none;
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    place-items: center;
    color: #465b70;
    background: #fff;
    border: 1px solid #ccd7e0;
    border-radius: var(--radius-compact, 8px);
    box-shadow: 0 1px 2px #17334d0d;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .08s ease;
}

.app-shell button.icon-button:not(.delete-icon-button):hover:not(:disabled) {
    color: #174b75;
    background: #f2f7fa;
    border-color: #9fb8ca;
    box-shadow: 0 2px 5px #17334d14;
}

.app-shell button.icon-button:not(.delete-icon-button):active:not(:disabled) {
    transform: translateY(1px);
    background: #e8f1f6;
    box-shadow: none;
}

.app-shell button.icon-button:not(.delete-icon-button):focus-visible {
    border-color: #4e8db8;
    outline: 3px solid #2386bd24;
    outline-offset: 2px;
}

.app-shell button.icon-button:not(.delete-icon-button):disabled {
    opacity: .45;
    cursor: not-allowed;
}

.app-shell button.icon-button:not(.delete-icon-button) > i,
.app-shell button.icon-button:not(.delete-icon-button) > svg {
    pointer-events: none;
}

/* One project-wide control for icon-only destructive actions. */
.delete-icon-button.delete-icon-button {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    place-items: center;
    align-self: center;
    color: #b42318;
    background: #fce8e7;
    border: 1px solid transparent;
    border-radius: var(--radius-control, 8px);
    box-shadow: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.delete-icon-button.delete-icon-button:hover:not(:disabled) {
    color: #8f1d14;
    background: #f8d4d1;
    border-color: #efb6b2;
}

.delete-icon-button.delete-icon-button:focus-visible {
    outline: 3px solid #b4231830;
    outline-offset: 2px;
}

.delete-icon-button.delete-icon-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.test-case-source-card {
    display: grid;
    gap: .3rem;
    margin: .8rem 0;
    padding: .85rem 1rem;
    border: 1px solid var(--border-color, #dbe2ea);
    border-left: 4px solid #5b6ee1;
    border-radius: .65rem;
    background: #f7f8ff;
}

.test-case-source-card strong { color: #26347c; }
.test-case-source-card small { color: var(--muted, #667085); }

.testrail-import-layout {
    display: grid;
    gap: 1rem;
}

.testrail-import-hub {
    display: grid;
    gap: 1rem;
}

.import-launch-panel {
    display: grid;
    grid-template-columns: minmax(20rem, 1.4fr) minmax(13rem, .7fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
}

.import-launch-copy {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.import-launch-copy > div { display: grid; gap: .18rem; }
.import-launch-copy h2 { margin: 0; }
.import-launch-copy p { max-width: 43rem; margin: .15rem 0 0; color: var(--muted, #667085); }
.import-launch-icon {
    display: grid;
    flex: 0 0 2.75rem;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--accent, #0a2c52);
    background: #e7eef5;
    border-radius: .75rem;
    font-size: 1rem;
}

.import-launch-destination {
    display: grid;
    gap: .15rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-color, #dbe2ea);
}

.import-launch-destination > span {
    color: var(--muted, #667085);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.import-launch-destination strong { color: #263443; }
.import-launch-destination small { color: var(--muted, #667085); }
.import-launch-action { display: flex; justify-content: flex-end; }
.import-launch-action .button { white-space: nowrap; }

.import-history-panel { overflow: hidden; }
.import-history-header { align-items: center; }
.import-history-header > div { display: grid; gap: .15rem; }
.import-history-header h2 { margin: 0; }
.import-history-header small { color: var(--muted, #667085); }
.import-history-table td { vertical-align: middle; }
.import-history-table td:nth-child(1),
.import-history-table td:nth-child(2),
.import-history-table td:nth-child(3),
.import-history-table td:nth-child(5) { display: table-cell; }
.import-history-table td strong,
.import-history-table td small { display: block; }
.import-history-table td small { margin-top: .18rem; color: var(--muted, #667085); }
.import-history-table td:last-child { width: 1%; text-align: right; }
.import-history-table td:last-child .button { gap: .45rem; white-space: nowrap; }
.import-history-table .import-history-error { max-width: 21rem; color: #b42318; }

.import-progress {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .25rem .35rem;
}

.import-progress > div {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    color: #7a8796;
}

.import-progress > div > span {
    display: grid;
    flex: 0 0 1.85rem;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    color: #617084;
    background: #e9eef3;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
}

.import-progress > div > div { display: grid; line-height: 1.2; }
.import-progress strong { color: inherit; font-size: .85rem; }
.import-progress small { font-size: .72rem; }
.import-progress > i { color: #c0c8d1; font-size: .65rem; }
.import-progress > div.active { color: var(--accent, #0a2c52); }
.import-progress > div.active > span { color: #fff; background: var(--accent, #0a2c52); box-shadow: 0 4px 12px #0a2c5226; }
.import-progress > div.complete { color: #28754d; }
.import-progress > div.complete > span { color: #28754d; background: #def3e7; }

.import-scope-card { overflow: hidden; }
.import-scope-header { min-height: 4.6rem; padding-block: .85rem; }
.import-scope-heading { display: flex; align-items: center; gap: .8rem; }
.import-scope-heading > div { display: grid; gap: .1rem; }
.import-scope-heading h2 { margin: 0; }
.import-scope-heading small { color: var(--muted, #667085); }
.import-scope-icon,
.import-target-icon {
    display: grid;
    flex: 0 0 2.35rem;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--accent, #0a2c52);
    background: #e7eef5;
    border-radius: .65rem;
}
.import-target-icon { color: #28754d; background: #e3f3e9; }

.import-scope-body { display: grid; gap: .9rem; padding-block: 1rem; }
.import-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.import-source-grid .form-field { gap: .35rem; }
.import-source-grid .form-control { min-height: 2.6rem; }
.import-complete-project { margin: -.1rem 0 0; color: #526171; }

.import-target-bar {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) minmax(12rem, 17rem) auto;
    gap: 1rem;
    align-items: end;
    padding: .8rem;
    background: #f6f8fa;
    border: 1px solid #e0e6ec;
    border-radius: .7rem;
}
.import-target-summary,
.import-scope-summary-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.import-target-summary > div,
.import-scope-summary-main > div { display: grid; gap: .12rem; min-width: 0; }
.import-target-summary small,
.import-scope-summary-main small,
.import-client-scope > span { color: var(--muted, #667085); font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.import-target-summary strong,
.import-scope-summary-main strong { overflow: hidden; color: #263443; text-overflow: ellipsis; white-space: nowrap; }
.import-target-summary strong span,
.import-scope-summary-main strong span { color: #a0a9b3; padding: 0 .25rem; }
.import-client-scope { display: grid; gap: .3rem; }
.import-client-scope .form-control { min-height: 2.45rem; }
.import-discovery-action { display: grid; justify-items: end; gap: .25rem; }
.import-discovery-action small { max-width: 15rem; color: #996000; font-size: .72rem; text-align: right; }
.import-discovery-action .button { min-height: 2.45rem; white-space: nowrap; }

.import-scope-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 4.75rem;
    padding: .8rem 1rem;
}
.import-scope-summary-card .import-scope-arrow { color: #b5bec8; }

.import-mapping-disclosure {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: .7rem;
    background: #fff;
}
.import-mapping-disclosure > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: .7rem;
    align-items: center;
    min-height: 4rem;
    padding: .7rem .85rem;
    cursor: pointer;
    list-style: none;
}
.import-mapping-disclosure > summary::-webkit-details-marker { display: none; }
.import-mapping-disclosure > summary:hover { background: #f8fafc; }
.import-mapping-disclosure > summary > div { display: grid; gap: .1rem; }
.import-mapping-disclosure > summary small { color: var(--muted, #667085); }
.import-mapping-disclosure > summary > i { color: #8995a3; transition: transform .16s ease; }
.import-mapping-disclosure[open] > summary > i { transform: rotate(180deg); }
.import-mapping-summary-icon { display: grid; place-items: center; width: 2rem; height: 2rem; color: #526880; background: #edf2f6; border-radius: .55rem; }
.import-mapping-content { padding: 0 .85rem .85rem; border-top: 1px solid #e6ebf0; }
.import-selection-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; }
.import-selection-footer p { margin: 0; }
.import-selection-footer .actions { display: flex; gap: .55rem; }

.import-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(7rem, 1fr));
    gap: .5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.import-steps li {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem .8rem;
    border: 1px solid var(--border, #dfe3ea);
    border-radius: .65rem;
    color: var(--muted, #667085);
    background: var(--surface, #fff);
}

.import-steps li strong { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #eef1f6; }
.import-steps li.active { border-color: var(--primary, #3157d5); color: var(--primary, #3157d5); }
.import-steps li.complete strong { background: #dff5e8; color: #18794e; }

.import-case-picker {
    display: grid;
    gap: .75rem;
    margin: 1rem 0 1.4rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: .8rem;
    background: #f8fafc;
}

.import-case-picker-toolbar {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(18rem, 28rem) auto;
    gap: .75rem;
    align-items: center;
}

.import-case-picker-toolbar h3,
.import-mapping-title { margin: .15rem 0 0; }
.import-case-picker-toolbar .actions { display: flex; gap: .45rem; justify-content: flex-end; }

.import-case-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.5rem;
    padding: 0 .75rem;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: .6rem;
    background: #fff;
}

.import-case-search i { color: var(--muted, #667085); }
.import-case-search input { width: 100%; border: 0; outline: 0; background: transparent; }

.import-section-list {
    display: grid;
    max-height: 34rem;
    overflow: auto;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: .65rem;
    background: #fff;
}

.import-section-group { border-bottom: 1px solid var(--border-color, #e7ebf0); }
.import-section-group:last-child { border-bottom: 0; }
.import-section-group > summary {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    min-height: 3.15rem;
    padding: .55rem .8rem .55rem calc(.8rem + var(--section-indent, 0px));
    cursor: pointer;
    list-style: none;
}

.import-section-group > summary::-webkit-details-marker { display: none; }
.import-section-group > summary:hover { background: #f7f9fc; }
.import-section-group > summary > i { color: #bd7a18; }
.import-section-group > summary > span { display: grid; min-width: 0; }
.import-section-group > summary strong,
.import-section-group > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-section-group > summary small { color: var(--muted, #667085); }
.import-section-group > summary em { color: var(--muted, #667085); font-size: .8rem; font-style: normal; font-weight: 700; }

.import-section-cases { display: grid; padding: 0 .8rem .55rem calc(3.6rem + var(--section-indent, 0px)); }
.import-case-option {
    display: grid;
    grid-template-columns: auto 4.5rem minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    min-height: 2.4rem;
    padding: .35rem .5rem;
    border-radius: .45rem;
    cursor: pointer;
}
.import-case-option:hover { background: #f3f7fb; }
.import-case-option code { color: var(--muted, #667085); }
.import-case-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-mapping-title { margin-top: .25rem; }

.integration-settings-layout { display: grid; grid-template-columns: minmax(15rem, .7fr) minmax(25rem, 1.3fr); gap: 1rem; }
.integration-connection-list .panel-body { display: grid; gap: .55rem; }
.integration-connection-item { display: grid; gap: .25rem; width: 100%; padding: .8rem; border: 1px solid var(--border, #dfe3ea); border-radius: .55rem; background: #fff; text-align: left; cursor: pointer; }
.integration-connection-item.active { border-color: var(--primary, #3157d5); box-shadow: 0 0 0 2px rgb(49 87 213 / 10%); }
.integration-connection-item span, .integration-connection-item small { overflow-wrap: anywhere; color: var(--muted, #667085); }
.integration-security-note { display: flex; gap: .65rem; margin: 1rem 0; padding: .8rem; border-radius: .55rem; background: #eef6ff; color: #174ea6; }
.form-guidance { margin: .65rem 0; color: #8a5700; }
.integration-connections-panel .panel-header > .actions { align-items: center; }
.integration-connections-empty { min-height: 20rem; }
.integration-empty-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto .25rem; color: var(--accent, #0a2c52); background: #e6eef7; border-radius: .8rem; font-size: 1.2rem; }
.integration-connection-name { display: flex; align-items: center; gap: .65rem; min-width: 11rem; }
.integration-connection-icon { display: grid; flex: 0 0 auto; place-items: center; width: 2rem; height: 2rem; color: var(--accent, #0a2c52); background: #e6eef7; border-radius: .55rem; }
.integration-connection-url { display: inline-block; max-width: 19rem; overflow: hidden; color: var(--accent, #0a2c52); text-overflow: ellipsis; white-space: nowrap; }
.integration-verification-status { display: grid; justify-items: start; gap: .3rem; }
.integration-verification-status small { color: var(--text-muted, #667085); white-space: nowrap; }
.integration-connection-modal { grid-template-rows: auto minmax(0, 1fr) auto; max-width: 56rem; }
.integration-access-section { margin-top: 1rem; }
.integration-enabled-check { align-items: flex-start; padding: .85rem 1rem; background: #f7f9fb; border: 1px solid var(--line-soft, #dfe6e7); border-radius: .65rem; }
.integration-enabled-check > span { display: grid; gap: .15rem; }
.integration-enabled-check small { color: var(--text-muted, #667085); font-weight: 400; }
.test-case-type { display: inline-flex; align-items: center; gap: .3rem; color: #5b48a2; }
.test-case-source-metadata {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: .7rem;
    background: #f8fafc;
}

.test-case-source-metadata > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: .7rem;
    align-items: center;
    min-height: 3.75rem;
    padding: .7rem .85rem;
    cursor: pointer;
    list-style: none;
}

.test-case-source-metadata > summary::-webkit-details-marker { display: none; }
.test-case-source-metadata > summary:hover { background: #f2f6f9; }
.test-case-source-metadata > summary > span:nth-child(2) { display: grid; gap: .08rem; }
.test-case-source-metadata > summary small { color: var(--muted, #667085); }
.test-case-metadata-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: #49647f;
    background: #e6eef5;
    border-radius: .55rem;
}

.test-case-metadata-chevron { color: #8492a1; transition: transform .16s ease; }
.test-case-source-metadata[open] .test-case-metadata-chevron { transform: rotate(180deg); }
.test-case-metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding: .85rem;
    border-top: 1px solid var(--border-color, #dbe2ea);
    background: #fff;
}

.test-case-metadata-item {
    display: grid;
    gap: .45rem;
    align-content: start;
    min-width: 0;
    padding: .75rem;
    border: 1px solid #e3e8ee;
    border-radius: .6rem;
    background: #fbfcfd;
}

.test-case-metadata-item > span { display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: baseline; }
.test-case-metadata-item code { color: var(--muted, #667085); font-size: .72rem; }
.test-case-metadata-item > div {
    max-height: 8rem;
    overflow: auto;
    color: #435160;
    font-size: .84rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .test-case-metadata-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .import-launch-panel { grid-template-columns: 1fr; }
    .import-launch-destination { padding: .85rem 0 0; border-top: 1px solid var(--border-color, #dbe2ea); border-left: 0; }
    .import-launch-action { justify-content: stretch; }
    .import-launch-action .button { width: 100%; }
    .import-steps { grid-template-columns: 1fr; }
    .import-progress { align-items: flex-start; flex-direction: column; }
    .import-progress > i { display: none; }
    .import-source-grid,
    .import-target-bar,
    .import-scope-summary-card { grid-template-columns: 1fr; }
    .import-scope-summary-card .import-scope-arrow { transform: rotate(90deg); }
    .import-discovery-action { justify-items: stretch; }
    .import-discovery-action small { max-width: none; text-align: left; }
    .import-selection-footer { align-items: stretch; flex-direction: column; }
    .import-selection-footer .actions { flex-wrap: wrap; }
    .integration-settings-layout { grid-template-columns: 1fr; }
    .import-case-picker-toolbar { grid-template-columns: 1fr; }
    .import-case-picker-toolbar .actions { justify-content: flex-start; }
}

.import-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(7rem, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.import-summary-grid > div {
    display: grid;
    gap: .15rem;
    padding: .8rem;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: .65rem;
    background: #f8fafc;
}

.import-summary-grid strong { font-size: 1.35rem; }
.import-summary-grid span { color: var(--muted, #667085); }
.import-summary-grid .warning { border-color: #f2c572; background: #fffaf0; }

@media (max-width: 900px) {
    .import-summary-grid { grid-template-columns: repeat(2, minmax(7rem, 1fr)); }
}
.two-column-grid,
.manual-run-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}
.manual-run-layout > main,
.manual-run-layout > aside,
.manual-step-list,
.button-stack,
.evidence-list { display: grid; gap: 14px; }
.sticky-panel { position: sticky; top: 18px; }
.details-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
.details-grid dt { color: #71809a; font-weight: 600; }
.details-grid dd { margin: 0; }
.manual-step-instructions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.manual-step-instructions small { color: #71809a; font-weight: 700; text-transform: uppercase; }
.manual-verdict-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-list { margin: 16px 0 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; gap: 5px; padding: 12px; border: 1px solid #e1e6ef; border-radius: 12px; }
.evidence-list small { color: #71809a; }
.evidence-upload { margin-top: 16px; }
.runs-list-panel { overflow: hidden; }
.runs-list-toolbar { display: grid; grid-template-columns: minmax(260px, 430px) auto minmax(240px, 1fr); gap: 14px; align-items: center; padding: 12px 15px; background: #fff; border-bottom: 1px solid #dde5ea; }
.runs-search-field { position: relative; display: block; }
.runs-search-field > i { position: absolute; z-index: 1; top: 50%; left: 13px; color: #6e7f8d; transform: translateY(-50%); pointer-events: none; }
.runs-search-field .form-control { padding-left: 38px; }
.runs-result-count { color: #71808b; font-size: 11px; white-space: nowrap; }
.runs-result-count strong { color: #263b4d; }
.runs-toolbar-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.runs-filter-button { display: inline-flex; gap: 8px; align-items: center; }
.runs-filter-count { display: grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; color: #fff; background: #0a477d; border-radius: 999px; font-size: 10px; font-weight: 800; }
.runs-filter-backdrop { position: fixed; z-index: 90; inset: 0; background: #102b3d52; backdrop-filter: blur(2px); }
.runs-filter-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(520px, calc(100vw - 24px)); background: #f8fafb; border-left: 1px solid #cfdbe3; box-shadow: -18px 0 44px #102b3d24; animation: runs-filter-slide-in .16s ease-out; }
@keyframes runs-filter-slide-in { from { transform: translateX(24px); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
.runs-filter-drawer-header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 20px 22px 17px; background: #fff; border-bottom: 1px solid #dce5ea; }
.runs-filter-drawer-header h2 { margin: 3px 0 4px; }
.runs-filter-drawer-header p { margin: 0; color: #6c7c87; font-size: 11px; }
.runs-filter-drawer-body { display: grid; align-content: start; gap: 20px; padding: 18px 22px 26px; overflow: auto; }
.runs-filter-section { display: grid; gap: 10px; }
.runs-filter-drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.runs-filter-wide { grid-column: 1 / -1; }
.runs-filter-drawer-footer { display: flex; gap: 10px; justify-content: space-between; padding: 13px 22px; background: #fff; border-top: 1px solid #dce5ea; }
@media (max-width: 900px) {
    .two-column-grid,
    .manual-run-layout,
    .manual-step-instructions { grid-template-columns: 1fr; }
    .runs-list-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .runs-result-count { display: none; }
    .sticky-panel { position: static; }
}
@media (max-width: 620px) {
    .runs-list-toolbar { grid-template-columns: 1fr; }
    .runs-toolbar-actions { justify-content: space-between; }
    .runs-filter-drawer { width: 100%; }
    .runs-filter-drawer-grid { grid-template-columns: 1fr; }
    .runs-filter-wide { grid-column: auto; }
}

/* Unified catalog grids: Runs & Results is the visual contract for every main list. */
.data-grid-panel {
    overflow: hidden;
}

/* A backdrop filter makes the panel a containing block for its fixed drawer,
   so overflow clips the drawer to the toolbar/table instead of the viewport. */
.panel:has(> .data-grid-toolbar) {
    backdrop-filter: none;
}

.data-grid-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 430px) auto minmax(240px, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 68px;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #dde5ea;
}

.data-grid-search-field {
    position: relative;
    display: block;
    min-width: 0;
}

.data-grid-search-field > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 13px;
    color: #6e7f8d;
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.data-grid-search-field .form-control {
    min-height: 44px;
    padding: 10px 36px 10px 38px;
    border-color: #cbd7de;
    border-radius: 10px;
    font-size: 12px;
}

.data-grid-search-field input[type="search"]::-webkit-search-cancel-button {
    opacity: .55;
}

.data-grid-result-count {
    color: #71808b;
    font-size: 11px;
    white-space: nowrap;
}

.data-grid-result-count strong {
    color: #263b4d;
    font-weight: 800;
}

.data-grid-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.data-grid-filter-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding-inline: 15px;
    font-size: 12px;
    font-weight: 750;
}

.data-grid-filter-count {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    place-items: center;
    color: #fff;
    background: #0a477d;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.data-grid-table {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    width: 100%;
    border-collapse: collapse;
    color: #31414b;
    font-size: 13px;
    line-height: 1.48;
}

.data-grid-table th,
.data-grid-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #dde5e8;
    text-align: left;
    vertical-align: top;
}

.data-grid-table th {
    color: #65737a;
    background: #f5f8f8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.35;
    text-transform: uppercase;
}

.data-grid-table th[aria-sort="ascending"],
.data-grid-table th[aria-sort="descending"] {
    color: #163f68;
    background: #edf3f6;
}

.data-grid-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}

.data-grid-sort-button:hover {
    color: #0a477d;
}

.data-grid-wrap-headers th,
.data-grid-wrap-headers .data-grid-sort-button {
    white-space: normal;
    overflow-wrap: anywhere;
}

.data-grid-header-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.data-grid-sort-button:focus-visible {
    outline: 2px solid #5d91ba;
    outline-offset: 3px;
    border-radius: 2px;
}

.data-grid-sort-button i {
    flex: 0 0 auto;
    width: 9px;
    color: #81909a;
    font-size: 9px;
    text-align: center;
}

.data-grid-table th[aria-sort="ascending"] .data-grid-sort-button i,
.data-grid-table th[aria-sort="descending"] .data-grid-sort-button i {
    color: #0a477d;
}

.data-grid-table td strong,
.data-grid-table .table-primary-link,
.data-grid-table .run-link {
    color: #152b3e;
    font-weight: 760;
}

.data-grid-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-grid-table tbody tr:hover {
    background: #f7faf9;
}

.data-grid-filter-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: #102b3d52;
    backdrop-filter: blur(2px);
}

.data-grid-filter-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(520px, calc(100vw - 24px));
    background: #f8fafb;
    border-left: 1px solid #cfdbe3;
    box-shadow: -18px 0 44px #102b3d24;
    animation: data-grid-filter-slide-in .16s ease-out;
}

@keyframes data-grid-filter-slide-in {
    from { opacity: .65; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.data-grid-filter-drawer-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 22px 17px;
    background: #fff;
    border-bottom: 1px solid #dce5ea;
}

.data-grid-filter-drawer-header h2 {
    margin: 3px 0 4px;
    color: #172c3d;
    font-size: 20px;
}

.data-grid-filter-drawer-header p {
    margin: 0;
    color: #6c7c87;
    font-size: 11px;
}

.data-grid-filter-drawer-body {
    display: grid;
    align-content: start;
    gap: 20px;
    padding: 18px 22px 26px;
    overflow: auto;
}

.data-grid-filter-section {
    display: grid;
    gap: 10px;
}

.data-grid-filter-drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.data-grid-filter-wide {
    grid-column: 1 / -1;
}

.data-grid-filter-context {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    color: #667780;
    background: #eef3f4;
    border: 1px solid #dce5e8;
    border-radius: 10px;
    font-size: 11px;
}

.data-grid-filter-context > span {
    color: #65737a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.data-grid-filter-context > strong {
    color: #1f3444;
    font-size: 13px;
}

.data-grid-filter-drawer-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 13px 22px;
    background: #fff;
    border-top: 1px solid #dce5ea;
}

.shared-step-catalog-row,
.business-flow-list-item,
.scenario-list-heading,
.scenario-card {
    font-size: 12px;
}

.scenario-grid-toolbar-panel {
    margin-bottom: 16px;
}

.test-case-tree > .data-grid-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
}

.test-case-tree > .data-grid-toolbar .data-grid-result-count {
    display: none;
}

@media (max-width: 900px) {
    .data-grid-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .data-grid-result-count { display: none; }
}

@media (max-width: 620px) {
    .data-grid-toolbar,
    .test-case-tree > .data-grid-toolbar { grid-template-columns: 1fr; }
    .data-grid-toolbar-actions { justify-content: space-between; }
    .data-grid-filter-drawer { width: 100%; }
    .data-grid-filter-drawer-grid { grid-template-columns: 1fr; }
    .data-grid-filter-wide { grid-column: auto; }
}

/* Shared button sizing: align action buttons with the standard 34px fields. */
.button,
button.button,
.button.small,
button.button.small,
.test-case-tab-header .button,
.test-case-tab-header button.button {
    box-sizing: border-box;
    gap: 7px;
    height: var(--control-height) !important;
    min-height: var(--control-height) !important;
    padding-block: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.button > i,
button.button > i {
    flex: 0 0 auto;
}

/* Opt in when an action label must remain visible on narrow or zoomed screens. */
.button.wrap,
button.button.wrap {
    height: auto !important;
    min-height: var(--control-height) !important;
    min-width: 0;
    padding-block: var(--space-2);
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Microsoft identity branding: shared light sign-in button, with wrapping labels. */
.button.microsoft-sign-in.wrap {
    min-height: 41px !important;
    padding: 10px 12px;
    gap: 12px;
    color: #5e5e5e;
    background: #fff;
    border: 1px solid #8c8c8c;
    border-radius: 0;
    box-shadow: none;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    transform: none;
}
.button.microsoft-sign-in.wrap:hover { background: #f3f3f3; border-color: #5e5e5e; }
.button.microsoft-sign-in.wrap:active { background: #e5e5e5; }
.button.microsoft-sign-in.wrap:focus-visible { outline: 2px solid #0067b8; outline-offset: 3px; }
.microsoft-sign-in-logo { flex: 0 0 21px; width: 21px; height: 21px; }
.microsoft-sign-in > span { min-width: 0; }

/* Persistent route highlight in the primary navigation. */
.nav-menu a.active,
.nav-menu .nav-parent-link:has(+ .nav-submenu a.active) {
    color: #0a2c52;
    background: #e8f1f9;
    border-radius: 8px;
    box-shadow: inset 2px 0 #0a5c9c;
    font-weight: 760;
}

.nav-menu a.active:hover,
.nav-menu .nav-parent-link:has(+ .nav-submenu a.active):hover {
    color: #071f39;
    background: #dcebf7;
}

.nav-menu a.active i,
.nav-menu .nav-parent-link:has(+ .nav-submenu a.active) i {
    color: #0a5c9c;
}

.nav-menu .nav-submenu a.active {
    color: #0a4f85;
    background: #f0f6fb;
    box-shadow: inset 2px 0 #4388ba;
}

/* Shared field density. Compact editor variants retain their existing dimensions. */

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select:not([multiple]):not([size]) {
    box-sizing: border-box;
    height: var(--field-height) !important;
    min-height: var(--field-height) !important;
    padding-block: 3px !important;
    font-size: var(--field-font-size) !important;
    line-height: 1.4 !important;
}

.scenario-editor-studio { --field-height: var(--control-height-compact); --field-font-size: var(--font-size-field-compact); }
.version-workspace-picker select,
.relation-picker-toolbar .form-control { --field-height: var(--control-height-compact); --field-font-size: var(--font-size-field-compact); }
.form-control.compact,
.workflow-routing-compact .form-control { --field-height: var(--control-height-dense); --field-font-size: var(--font-size-field-compact); }

textarea.form-control {
    min-height: var(--control-height);
    padding-block: 5px;
    font-size: var(--field-font-size);
    line-height: 1.5;
}
textarea.form-control.code { min-height: 210px; }
textarea.form-control.small-code { min-height: 82px; }
textarea.form-control.compact-textarea { min-height: 76px; }
.scenario-editor-studio textarea.form-control { min-height: 64px; padding-block: 5px; font-size: 10px; }
.scenario-editor-studio textarea.form-control.compact-textarea { min-height: 48px; }
/* Keep full-height JSON workspaces and resizable multiline editors usable. */
textarea.json-editor.form-control { min-height: 350px; font-size: 11px; }
.scenario-editor-studio textarea.json-editor.form-control { min-height: 0; }
/* Short literal values start at one row; rows and vertical resize retain multiline content. */
textarea.form-control.value-textarea { min-height: var(--control-height); resize: vertical; }

.step-execution-details { display: grid; gap: 14px; min-width: 0; }
.step-result-toolbar, .step-result-meta, .step-result-check > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.step-result-toolbar { justify-content: space-between; }
.step-result-meta { color: #586a7b; font-size: 12px; }
.step-execution-details details { min-width: 0; border: 1px solid #dce4ed; border-radius: 9px; padding: 10px 12px; }
.step-execution-details summary { cursor: pointer; font-weight: 700; }
.step-execution-details pre {
    margin: 8px 0 0;
    padding: 10px;
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f4f7fb;
    border-radius: 6px;
    font: 12px/1.55 Consolas, monospace;
}
.step-result-error, .step-result-check.failed { border: 1px solid #efc3c8; background: #fff3f4; }
.step-result-error { padding: 12px; border-radius: 9px; color: #a71e32; }
.step-result-error > code { display: block; margin-top: 6px; }
.step-result-error pre, .step-result-check.failed pre { background: transparent; }
.step-result-tab-error { color: #c32940; }

.page-header.load-report-page-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.page-header.load-report-page-header h1 { font-size: 22px; }
.load-report-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; padding: 5px 12px; border: 1px solid #dce5ef; border-radius: 10px; background: #f7faff; }
.load-report-tabs { align-items: center; flex-wrap: wrap; padding: 0; margin: 0; border: 0; background: transparent; }
.load-report-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.load-report-updated { padding: 4px 6px; color: #718098; font-size: 11px; white-space: nowrap; }
.load-live-inspect { border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; background: transparent; cursor: pointer; }
.load-step-report-section { margin-bottom: 18px; }
.load-step-report-section > .panel-header { padding: 12px 18px; flex-wrap: wrap; gap: 4px 16px; }
.load-step-report-info { width: 34px; padding: 0; flex-shrink: 0; }
.load-step-report-info:focus-visible { outline: 2px solid #285fc4; outline-offset: 2px; }
.load-step-report-help { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; padding: 20px; overflow: auto; border: 1px solid #dce5ef; border-radius: 14px; color: #263b51; background: #fff; box-shadow: 0 18px 60px #0c22384d; font-size: 13px; line-height: 1.6; }
.load-step-report-help::backdrop { background: #0b1c3459; }
.load-step-report-help header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.load-step-report-help h3 { margin: 0; font-size: 16px; }
.load-step-report-help header button { flex-shrink: 0; }
.load-step-report-help p { margin: 16px 0 0; }
.load-step-report-table { font-size: 12px; }
.load-step-report-table th { white-space: normal; min-width: 76px; }
.load-step-report-table th:first-child { min-width: 190px; }
.load-step-report-table .has-failures { background: #fff2f3; }
.load-step-report-step { cursor: pointer; }
.load-step-report-step:hover, .load-step-report-step.is-expanded { box-shadow: inset 3px 0 #285fc4; }
.load-step-report-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.load-step-report-toggle i { flex: 0 0 10px; font-size: 9px; }
.load-step-report-toggle:focus-visible { outline: 2px solid #285fc4; outline-offset: 4px; border-radius: 3px; }
.load-step-report-detail-row { background: #f8faff; }
.load-step-report-reasons { padding: 4px; }
.load-step-report-reasons summary, .load-iteration-history > summary { cursor: pointer; font-weight: 650; }
.load-step-report-reason { border: 1px solid #efc3c8; background: #fff7f8; border-radius: 8px; padding: 12px; margin-top: 10px; }
.load-step-report-reason pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow: auto; font: 12px/1.6 Consolas, monospace; }
.load-step-report-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.load-iteration-dialog .workflow-preview-workspace { grid-template-columns: 300px minmax(0, 1fr); }
.load-iteration-dialog .workflow-preview-step.is-passed { background: #f0fbf5; }
.load-iteration-dialog .workflow-preview-step.is-failed { background: #fff0f2; }
.load-iteration-dialog .workflow-preview-step.selected { box-shadow: inset 4px 0 #285fc4; outline: 1px solid #285fc4; outline-offset: -1px; }
.load-step-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.load-iteration-history { border: 1px solid #dce5ef; border-radius: 10px; padding: 14px; margin-bottom: 12px; min-width: 0; }
.load-iteration-history > summary { line-height: 1.8; }
.load-iteration-history pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.load-iteration-fallback { min-height: 0; overflow: auto; }
.load-iteration-error-summary { color: #ad2538; font-size: 12px; margin: 8px 0 0; max-height: 54px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .load-iteration-dialog .workflow-preview-workspace { grid-template-columns: minmax(0, 1fr); }
}
.step-result-check { display: grid; gap: 6px; padding: 10px; margin-top: 10px; border: 1px solid #dce4ed; border-radius: 7px; min-width: 0; }
.step-result-check code { overflow-wrap: anywhere; }
.button.load-test-stop { color: #a82535; background: #fff0f2; border: 1px solid #e5aeb6; box-shadow: none; white-space: nowrap; }
.button.load-test-stop:hover:not(:disabled) { color: #8a1726; background: #ffe2e7; border-color: #cb7180; }
.load-items-panel td.load-item-outcome { min-width: 140px; vertical-align: top; }
.load-iteration-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 22px; border-top: 1px solid #e0e8ef; color: #53687d; font-size: 12px; }
.load-iteration-pagination > span { margin-right: auto; font-variant-numeric: tabular-nums; }
.load-iteration-pagination label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.load-iteration-pagination input, .load-iteration-pagination select { width: 72px; min-height: 32px; padding: 4px 7px; }
.load-item-outcome-content { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.load-item-outcome-content .status-badge { flex: 0 0 auto; white-space: nowrap; }
.load-items-panel .load-item-duration { white-space: nowrap; font-variant-numeric: tabular-nums; }
.load-item-outcome-content .load-item-duration { display: block; color: #667990; font-size: 11px; }
.load-item-outcome-content .load-item-error { display: block; margin: 0; max-width: 280px; overflow-wrap: anywhere; white-space: normal; line-height: 1.5; }

.notification-stack {
    position: fixed;
    z-index: 10000;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    pointer-events: none;
}
.transient-notification {
    flex: 0 0 auto;
    pointer-events: auto;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: min(620px, calc(100vw - 32px));
    padding: 14px 12px 14px 18px;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 12px 36px #132d4126;
    font-size: 14px;
    line-height: 1.5;
    animation: notification-enter 220ms ease-out both, notification-exit var(--notification-exit) ease-in var(--notification-display) forwards;
}
.transient-notification.success { color: #16633f; background: #eaf8ef; border-color: #9ed6b3; }
.transient-notification.error { color: #a02335; background: #fff0f2; border-color: #efb3bc; }
.transient-notification > i { font-size: 19px; }
.transient-notification-content { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.transient-notification-content a { display: block; margin-top: 4px; color: inherit; font-weight: 600; text-decoration: underline; }
.transient-notification.hiding { pointer-events: none; animation: notification-exit var(--notification-exit) ease-in forwards; }
.transient-notification-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; }
.transient-notification-close:hover { background: #0000000b; }
.transient-notification-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.connection-check-details { margin-top: 12px; padding: 12px; border: 1px solid #dbe3ec; border-radius: 8px; }
.connection-check-details > :not(summary) { display: block; margin-top: 6px; }
@keyframes notification-enter {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes notification-exit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-18px); }
}
@media (prefers-reduced-motion: reduce) {
    .transient-notification { animation: notification-fade 1ms linear var(--notification-display) forwards; }
    .transient-notification.hiding { animation: notification-fade 1ms linear forwards; }
    @keyframes notification-fade { to { opacity: 0; } }
}

/* Keep the editor shell stable across tabs, loading and empty states. */
.content:has(.load-test-editor-marker) { padding-top: 12px; padding-bottom: 16px; }
.workspace-page:has(.load-test-editor-marker) > .page-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.workspace-page:has(.load-test-editor-marker) > .page-header > div:first-child { flex: 1; min-width: 0; }
.workspace-page:has(.load-test-editor-marker) > .page-header h1 { font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.workspace-page:has(.load-test-editor-marker) > .page-header .page-actions { gap: 8px; }
.workspace-page:has(.load-test-editor-marker) > .page-header .button { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.workspace-page:has(.load-test-editor-marker) > .load-workspace-tabs { margin-bottom: 8px; gap: 4px; }
.workspace-page:has(.load-test-editor-marker) > .load-workspace-tabs > button { padding: 8px 12px; gap: 7px; font-size: 13px; }
.workspace-page:has(.load-test-editor-marker) > .load-run-picker { margin-bottom: 8px; }
.workspace-page:has(.load-test-editor-marker) .load-run-picker-row { gap: 6px 10px; }
@media (max-width: 650px) {
    .workspace-page:has(.load-test-editor-marker) > .page-header > div:first-child { flex-basis: 100%; }
    .workspace-page:has(.load-test-editor-marker) > .page-header h1 { font-size: 20px; }
}
/* The selected run, live progress and timings share one compact summary. */
.load-run-summary { margin-bottom: 0; container: load-summary / inline-size; }
.load-live-panel.embedded { margin: 0; border: 0; border-radius: 18px 18px 0 0; box-shadow: none; background: transparent; }
.load-live-panel.embedded > .panel-body { padding: 16px 22px 12px; }
.load-live-panel.embedded .load-live-progress-heading { margin-top: 0; }
.load-live-panel.embedded .load-live-metrics { gap: 10px; margin: 8px 0 10px; }
.load-live-panel .load-live-metrics.finished.with-cancelled { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.load-live-panel.embedded .load-live-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.load-live-panel.embedded .load-live-metrics strong { font-size: 24px; line-height: 1.2; }
.load-live-panel.embedded .load-live-metrics span { font-size: 12px; white-space: normal; text-align: right; }
.load-live-panel.embedded .load-verification-note { margin: 6px 0; }
.load-live-panel.embedded .load-live-error { max-height: none; overflow: visible; }
.load-live-panel.embedded .load-live-footer { padding-top: 8px; }
.load-run-summary .load-live-panel.embedded > .panel-body { padding: 12px 16px 8px; }
.load-run-summary .load-live-stage { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, auto); gap: 3px 16px; align-items: center; }
.load-run-summary .load-live-stage + .load-live-stage { margin-top: 8px; }
.load-run-summary .load-live-stage > .load-live-progress-heading { grid-column: 1; margin: 0; }
.load-run-summary .load-live-stage > .inline-progress { grid-column: 1; height: 5px; align-self: start; }
.load-run-summary .load-live-panel.embedded .load-live-metrics { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.load-run-summary .load-live-panel.embedded .load-live-metrics > div { gap: 7px; padding: 6px 10px; }
.load-run-summary .load-live-panel.embedded .load-live-metrics strong { font-size: 18px; }
.load-run-summary .load-live-panel.embedded .load-live-metrics span { font-size: 11px; }
.load-run-summary .load-live-panel.embedded .load-live-footer { padding-top: 6px; }
.load-run-performance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 10px 16px; border-top: 1px solid #e0e8ef; gap: 10px 12px; }
.load-run-performance > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.load-run-performance > div:not(:nth-child(4n+1)) { padding-left: 12px; border-left: 1px solid #e0e8ef; }
.load-run-performance dt { color: #677e97; font-size: 11px; }
.load-run-performance dd { order: -1; margin: 0; color: #163b61; font-size: 18px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.load-run-performance dd small { font-size: 11px; font-weight: 500; color: #677e97; }
.load-run-throughput dd { display: flex; flex-direction: column; gap: 2px; }
.load-run-throughput dd > span { white-space: nowrap; }
.load-run-performance .load-analytics-success dd { color: #17734b; }
.load-run-performance .load-analytics-errors dd { color: #ad342f; }
.load-run-performance .load-analytics-range dd { font-size: 15px; min-height: 21.6px; display: flex; align-items: center; overflow-wrap: anywhere; }
.load-run-summary + .load-data-summary { margin: 8px 0 0; }
.load-run-summary + .load-data-summary > summary { padding: 10px 0; }
.load-overview-stack > .panel > .panel-header { padding: 12px 22px; flex-wrap: wrap; gap: 12px; }
.load-overview-stack > .panel > .panel-header > .button { flex-shrink: 0; }
.load-overview-execution .load-live-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: center; margin-bottom: 10px; }
.load-overview-execution .load-live-stage > .load-live-progress-heading { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 7px; }
.load-overview-execution .load-live-stage > .inline-progress { grid-column: 1; grid-row: 2; align-self: start; }
.load-overview-execution .load-live-stage > .load-live-metrics { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.load-overview-execution .load-live-metrics:not(.finished) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) {
    .app-shell:has(.load-test-editor-marker) > .sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; box-sizing: border-box; overflow-y: auto; scrollbar-gutter: stable; }
}
@media (max-width: 650px) {
    .load-overview-execution .load-live-stage { display: block; }
    .load-overview-execution .load-live-stage > .load-live-metrics { margin-top: 8px; }
    .load-profile-facts > div:not(.load-profile-stat) { grid-column: 1 / -1; }
    .load-overview-run-heading h2 { flex-basis: 100%; }
    .load-run-switcher { flex: 1 1 100%; }
    .load-run-switcher select { width: 100%; }
    .load-run-picker-context { flex: 1 1 auto; }
    .load-live-panel.embedded .load-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-live-panel.embedded .load-live-metrics > div { padding: 10px; }
}
@container load-summary (min-width: 1000px) {
    .load-run-performance { grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(150px, 1.3fr); gap: 10px; }
    .load-run-performance > div:nth-child(n+2) { padding-left: 12px; border-left: 1px solid #e0e8ef; }
}
@container load-summary (max-width: 650px) {
    .load-run-performance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-run-performance > div:nth-child(odd) { border-left: 0; padding-left: 0; }
    .load-run-summary .load-live-stage { display: block; }
    .load-run-summary .load-live-stage > .load-live-progress-heading { margin-bottom: 5px; }
    .load-run-summary .load-live-panel.embedded .load-live-metrics { margin-top: 6px; }
}
.adaptive-flow { padding: 18px; margin: 0 0 18px; border: 1px solid #dce5ef; border-radius: 14px; background: #f8fbff; }
.adaptive-flow-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.adaptive-flow-heading h3, .adaptive-flow-details h4 { margin: 0; }
.adaptive-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 14px; }
.adaptive-flow li { min-width: 0; padding: 16px; background: white; border: 1px solid #dce5ef; border-radius: 10px; }
.adaptive-flow-number { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: white; background: #0a2c52; margin-bottom: 10px; }
.adaptive-flow-details p { margin: 10px 0; font-size: .85rem; }
.adaptive-flow-details code, .adaptive-flow-details small, .adaptive-flow-details a { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: .8rem; }
.adaptive-flow-details code { color: #174979; background: #f0f5fa; padding: 5px; border-radius: 4px; }
.adaptive-flow-details small { color: #607489; }
.load-settings-content .adaptive-flow { padding: 0; margin: 0; border: 0; background: transparent; }
.load-execution-diagram { min-width: 0; border: 1px solid #dce5ef; border-radius: 12px; overflow: hidden; background: #fbfcfd; }
.load-diagram-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e2e9ef; background: #fff; }
.load-diagram-legend { display: flex; flex-wrap: wrap; gap: 14px; color: #607489; font-size: .75rem; }
.load-diagram-key { display: inline-flex; align-items: center; gap: 6px; }
.load-diagram-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1px solid #8997a4; background: #fff; }
.load-diagram-key.is-api::before { background: #f0f6df; border-color: #91a75a; }
.load-diagram-key.is-control::before { background: #fff4cc; border-color: #d8a718; }
.load-diagram-canvas { height: clamp(480px, 72vh, 900px); overflow: auto; overscroll-behavior: contain; padding: 8px; }
.load-diagram-canvas .workflow-diagram-svg { width: 1100px; max-width: none; height: auto; }
.load-execution-diagram.is-fitted .load-diagram-canvas { height: auto; }
.load-execution-diagram.is-fitted .workflow-diagram-svg { width: 100%; height: auto; max-height: min(72vh, 900px); }
.load-diagram-toolbar button.button.secondary[aria-pressed="true" i] { color: #fff; background: #17466f; }
.load-diagram-lane-title { color: #596675; font-size: 15px; font-weight: 650; }
.load-diagram-node.is-static { cursor: default; }
.load-diagram-node.node-control rect { fill: #fff4cc; stroke: #d8a718; }
.load-diagram-node:focus-visible { outline: none; }
.load-diagram-node:focus-visible rect { stroke: #17466f; stroke-width: 3; }
.load-diagram-node .diagram-node-label strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.adaptive-flow .load-diagram-node .diagram-node-label small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; margin: 4px 0 0; color: #607489; font-size: 12px; line-height: 1.3; white-space: pre-line; }
.adaptive-flow .load-diagram-node.node-control .diagram-node-label small { -webkit-line-clamp: 4; }
.adaptive-flow .load-diagram-node .diagram-node-label.inverse small { color: #fff; }
.load-diagram-edge-label { display: inline-block; padding: 3px 5px; background: #fbfcfd; color: #607489; font-size: 11px; line-height: 1.3; text-align: center; }
.load-diagram-workflow-link { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid #e2e9ef; color: #607489; font-size: .8rem; background: #fff; }
.adaptive-flow .load-diagram-workflow-link a { margin: 0; overflow-wrap: anywhere; }
.adaptive-flow .load-diagram-notice { margin: 0; padding: 12px 16px; background: #fff7df; color: #765510; }
.adaptive-flow-details { margin-top: 16px; }
.adaptive-flow-details > summary { padding: 12px 0; color: #174979; cursor: pointer; font-size: .85rem; font-weight: 600; }
.adaptive-flow-details[open] > summary { margin-bottom: 8px; }
.load-settings-content .adaptive-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1200px) { .adaptive-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .adaptive-flow ol { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .load-settings-content .adaptive-flow ol { grid-template-columns: 1fr; } }
.adaptive-chart { margin-top: 1rem; }
.adaptive-chart svg { display: block; width: 100%; height: auto; font-size: 13px; color: #475569; overflow: visible; }
.adaptive-chart svg text { fill: currentColor; }
.adaptive-conclusion { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid #cdddec; border-radius: 14px; background: #f4f8fc; }
.adaptive-conclusion > i { display: grid; place-items: center; width: 34px; height: 34px; margin-top: 2px; border-radius: 50%; color: #28567f; background: #e1edf7; font-size: 17px; }
.adaptive-conclusion.success { border-color: #b8dfc7; background: #effaf3; }
.adaptive-conclusion.success > i { color: #1e6b42; background: #d6f1df; }
.adaptive-conclusion.incomplete { border-color: #efc4c1; background: #fff5f4; }
.adaptive-conclusion.incomplete > i { color: #a93e37; background: #f9deda; }
.adaptive-conclusion h3 { margin: 3px 0 6px; color: #173b5f; font-size: 18px; }
.adaptive-conclusion p { margin: 0; color: #53687d; line-height: 1.55; }
.adaptive-result-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.adaptive-result-metrics article { display: grid; gap: 7px; min-width: 0; padding: 17px; border: 1px solid #dbe4ed; border-radius: 12px; background: #fff; }
.adaptive-result-metrics article.confirmed { border-color: #b9dfc7; background: #f5fbf7; }
.adaptive-result-metrics span { color: #64778b; font-size: 11px; font-weight: 700; }
.adaptive-result-metrics strong { color: #15395d; font-size: 22px; font-variant-numeric: tabular-nums; }
.adaptive-result-metrics article.confirmed strong { color: #19613d; }
.adaptive-result-metrics small { color: #6d7e90; line-height: 1.4; }
.adaptive-observations { padding: 17px 20px; border-radius: 12px; background: #f7f9fb; }
.adaptive-observations h3 { margin: 0 0 12px; font-size: 14px; }
.adaptive-observations ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.adaptive-observations li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; color: #4d6175; line-height: 1.5; }
.adaptive-observations li > i { margin-top: 4px; color: #55728f; text-align: center; }
.adaptive-observations li:first-child > i { color: #238052; }
.adaptive-workflow-link { margin: 18px 0; color: #596d82; font-size: 13px; }
.adaptive-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 22px 0 10px; }
.adaptive-section-heading h3 { margin: 0 0 4px; font-size: 15px; }
.adaptive-section-heading small { color: #718297; }
.adaptive-stage-summary table { min-width: 760px; }
.adaptive-stage-summary td, .adaptive-stage-summary th { padding: 10px 12px; }
.adaptive-stage-summary td { font-variant-numeric: tabular-nums; }
.adaptive-stage-summary .adaptive-stage-time { white-space: nowrap; }
.adaptive-stage-summary td small { color: #718197; }
.adaptive-stage-result { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #edf2f6; color: #53687d; font-size: 11px; font-weight: 750; white-space: nowrap; }
.adaptive-stage-result.success { color: #1e6741; background: #ddf5e6; }
.adaptive-stage-result.warning { color: #985420; background: #fff0d8; }
.adaptive-rps-visual { margin-top: 20px; }
.adaptive-rps-sample:hover { fill: #0f766e; }
.adaptive-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.adaptive-small-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.adaptive-chart details { margin-top: 1rem; }
.adaptive-chart summary { cursor: pointer; font-weight: 600; }
.adaptive-details { padding-top: 4px; border-top: 1px solid #e0e8ef; }
@media (max-width: 1000px) { .adaptive-result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .adaptive-small-charts, .adaptive-result-metrics { grid-template-columns: 1fr; } .adaptive-conclusion { padding: 15px; } }

/* Load report workspace: persistent progress, then focused report sections. */
.load-report-workspace { container: load-report / inline-size; min-width: 0; }
.load-report-workspace [hidden] { display: none !important; }
.load-report-live { margin-bottom: 10px; border-radius: 10px; box-shadow: none; }
.load-report-live .load-live-panel.embedded > .panel-body { padding: 10px 14px; }
.load-live-embedded-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.load-live-embedded-heading .load-live-indicator { margin-bottom: 0; }
.load-live-embedded-heading > small { color: #677e97; font-size: 11px; }
.load-report-live .load-live-embedded-heading { gap: 6px 12px; margin-bottom: 6px; }
.load-live-summary-content, .load-live-summary-content > .load-live-progress-column { display: contents; }
.load-live-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.load-live-summary-grid > .load-http-progress { padding-right: 20px; }
.load-live-summary-grid > .load-live-progress-column { min-width: 0; padding-left: 20px; border-left: 1px solid #dce5ef; }
.load-report-live .load-live-summary-grid .load-live-stage { display: block; }
.load-report-live .load-live-summary-grid .load-live-progress-heading { gap: 6px 12px; flex-wrap: wrap; margin-bottom: 9px; font-size: 13px; }
.load-report-live .load-live-summary-grid .load-live-progress-heading > strong { font-size: 18px; }
.load-report-live .load-live-summary-grid .load-live-progress-heading small { font-size: 12px; }
.load-report-live .load-live-summary-grid .inline-progress { height: 7px; }
.load-run-summary .load-live-panel.embedded .load-live-summary-grid .load-live-metrics { margin-top: 10px; gap: 6px; }
.load-run-summary .load-live-panel.embedded .load-live-summary-grid .load-live-metrics > div { padding: 7px 10px; }
.load-run-summary .load-live-panel.embedded .load-live-summary-grid .load-live-metrics strong { font-size: 20px; }
.load-run-summary .load-live-panel.embedded .load-live-summary-grid .load-live-metrics span { font-size: 12px; }
.load-http-progress { display: grid; align-content: start; gap: 8px; min-width: 0; color: #244664; }
.load-http-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; font-weight: 650; }
.load-http-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 6px 10px; border-left: 3px solid #2563eb; border-radius: 7px; background: #eff6ff; }
.load-http-total > strong { color: #1d4ed8; font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.load-http-progress small { font-size: 12px; color: #526982; font-weight: 400; }
.load-http-total > strong > small { font-size: 13px; }
.load-http-heading > small { padding: 2px 7px; border-radius: 5px; background: #eef2f7; color: #526079; font-size: 11px; }
.load-http-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #526982; font-variant-numeric: tabular-nums; }
.load-http-meta > span { white-space: nowrap; }
.load-http-meta b { color: #274c77; font-weight: 650; }
.load-http-methods { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.load-http-method { --method-accent: #64748b; --method-ink: #334155; --method-tint: #f1f5f9; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 6px 8px; border-left: 3px solid var(--method-accent); border-radius: 6px; background: var(--method-tint); color: var(--method-ink); font-variant-numeric: tabular-nums; }
.load-http-method[data-method="GET"] { --method-accent: #d97706; --method-ink: #92400e; --method-tint: #fff7e8; }
.load-http-method[data-method="POST"] { --method-accent: #0d9488; --method-ink: #115e59; --method-tint: #eafaf6; }
.load-http-method[data-method="PUT"] { --method-accent: #3b82f6; --method-ink: #1e40af; --method-tint: #edf4ff; }
.load-http-method[data-method="PATCH"] { --method-accent: #8b5cf6; --method-ink: #5b21b6; --method-tint: #f4efff; }
.load-http-method[data-method="DELETE"] { --method-accent: #e55a7b; --method-ink: #9f2344; --method-tint: #fff0f4; }
.load-http-method b { padding: 2px 4px; border-radius: 4px; background: #ffffffb3; font-size: 11px; letter-spacing: .02em; }
.load-http-method > strong { color: var(--method-ink); font-size: 18px; }
.load-http-note { flex-basis: 100%; }
.load-live-summary-grid > .load-http-progress,
.load-report-live .load-live-summary-grid .load-live-generation { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(22px, auto) minmax(46px, auto) auto; align-content: start; align-items: stretch; gap: 8px; }
.load-report-live .load-live-summary-grid .load-live-generation > .load-live-progress-heading { display: flex; align-items: center; margin: 0; font-weight: 650; }
.load-http-heading { min-height: 22px; align-items: center; }
.load-live-summary-grid .load-http-total { min-height: 46px; }
.load-live-progress-total { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; min-height: 46px; padding: 4px 12px 9px; border-radius: 7px; background: #f0f4f9; color: #244664; }
.load-live-progress-total > strong { font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.load-live-progress-total > strong > span { font-size: 18px; font-weight: 500; }
.load-live-progress-total > small { margin-left: auto; font-size: 13px; font-weight: 650; }
.load-report-live .load-live-summary-grid .load-live-progress-total > .inline-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; border-radius: 0 0 7px 7px; }
.load-run-summary .load-live-panel.embedded .load-live-summary-grid .load-live-generation > .load-live-metrics { grid-column: 1; grid-row: 3; margin: 0; align-self: start; }
@container load-report (max-width: 760px) {
    .load-live-summary-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .load-live-summary-grid > .load-http-progress { padding-right: 0; }
    .load-live-summary-grid > .load-live-progress-column { padding: 14px 0 0; border-left: 0; border-top: 1px solid #dce5ef; }
}
.adaptive-dashboard > .adaptive-dashboard-body:not(:has(> .adaptive-result-metrics)) { grid-template-areas: "chart" "insights" "http" "stages"; }
.load-report-execution-link { display: block; margin: 0 0 0 auto; border: 0; padding: 3px 0; color: #23558a; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.load-report-workspace .load-report-toolbar { padding: 0; border: 0; border-bottom: 1px solid #dce5ef; border-radius: 0; background: transparent; margin-bottom: 16px; }
.load-report-workspace .load-report-tabs { gap: 4px; }
.load-report-workspace .load-report-tabs > button { padding: 10px 12px; border-radius: 0; border-bottom: 3px solid transparent; background: transparent; }
.load-report-workspace .load-report-tabs > button.active { color: #15395d; border-bottom-color: #2357b6; box-shadow: none; }
.load-report-execution { margin: 0 0 16px; }
.load-report-execution .load-run-performance { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; padding: 18px; border-top: 0; }
.load-report-execution .load-run-performance > div { padding-left: 12px; border-left: 2px solid #e0e8ef; }
.load-report-execution .load-run-performance dt { order: -1; }
.load-report-threads > .panel-body { padding: 16px 18px; }
.load-report-threads .load-thread-grid { gap: 10px; }
.load-report-threads .load-thread-card { padding: 11px; }
.load-report-context { margin-top: 16px; }
.load-report-context dl { margin: 0; padding: 4px 18px 16px; }
.load-report-context dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-bottom: 1px solid #e0e8ef; padding: 12px 0; }
.load-report-context dt { color: #677e97; }
.load-report-context dd { margin: 0; }
.adaptive-dashboard { margin: 0; border: 0; background: transparent; box-shadow: none; container: adaptive-report / inline-size; }
.adaptive-dashboard > .adaptive-dashboard-body { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "metrics" "chart" "insights" "http" "stages"; gap: 14px; align-items: start; }
.adaptive-insights { grid-area: insights; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.adaptive-dashboard .adaptive-result-metrics { grid-area: metrics; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adaptive-dashboard .adaptive-result-metrics article { padding: 14px 16px; border-radius: 10px; height: 100%; }
.adaptive-dashboard .adaptive-result-metrics strong { font-size: 22px; overflow-wrap: anywhere; }
.adaptive-dashboard .adaptive-conclusion { grid-area: conclusion; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px; border-radius: 10px; border-top: 3px solid #28567f; }
.adaptive-dashboard .adaptive-conclusion > i { display: none; }
.adaptive-dashboard .adaptive-conclusion h3 { font-size: 17px; }
.adaptive-dashboard .adaptive-conclusion p { font-size: 13px; }
.adaptive-dashboard .adaptive-observations { grid-area: observations; padding: 16px; border: 1px solid #dbe4ed; border-radius: 10px; background: #fff; }
.adaptive-dashboard .adaptive-observations li { font-size: 12px; }
.adaptive-dashboard .adaptive-rps-visual { grid-area: chart; align-self: stretch; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 16px; border: 1px solid #dbe4ed; border-radius: 10px; background: #fff; }
.adaptive-dashboard .adaptive-rps-visual svg { margin: auto 0; }
.adaptive-dashboard .adaptive-section-heading { margin: 0 0 12px; align-items: center; flex-wrap: wrap; }
.adaptive-dashboard .adaptive-legend { font-size: 11px; gap: 8px 14px; margin: 4px 0 12px; }
.adaptive-dashboard .adaptive-stage-summary { grid-area: stages; min-width: 0; padding: 16px; border: 1px solid #dbe4ed; border-radius: 10px; background: #fff; }
.adaptive-dashboard .adaptive-stage-summary table { min-width: 650px; }
.adaptive-dashboard .adaptive-stage-summary th:not(:first-child), .adaptive-dashboard .adaptive-stage-summary td:not(:first-child) { text-align: right; }
.load-cache-report { margin: 16px 0 0; border-radius: 10px; }
.load-cache-report > summary { padding: 14px 18px; cursor: pointer; font-size: 13px; overflow-wrap: anywhere; }
.load-cache-report > summary > * { margin-right: 12px; }
.load-cache-report > summary small { color: #677e97; }
.load-cache-report .load-cache-failed { color: #ad342f; background: #fff0ef; }
.load-cache-content { padding: 0 18px 16px; }
.load-cache-content > p { font-size: 13px; overflow-wrap: anywhere; }
@container adaptive-report (max-width: 800px) {
    .adaptive-dashboard > .adaptive-dashboard-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "metrics" "chart" "insights" "http" "stages"; }
    .adaptive-dashboard .adaptive-result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container load-report (max-width: 650px) {
    .load-report-execution .load-run-performance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .load-report-workspace .load-report-tabs > button { padding: 10px 8px; }
    .load-report-live .load-live-stage { display: block; }
    .load-report-live .load-live-metrics { margin-top: 8px; }
}
@container adaptive-report (max-width: 400px) {
    .adaptive-dashboard svg text { font-size: 24px; }
    .adaptive-dashboard .adaptive-result-metrics article { padding: 12px; }
    .adaptive-dashboard .adaptive-result-metrics strong { font-size: 19px; }
    .adaptive-dashboard .adaptive-stage-summary, .adaptive-dashboard .adaptive-rps-visual { padding: 12px; }
}
.cache-builder { display: grid; gap: 18px; }
.cache-builder > p { margin: 0; }
.cache-builder-empty { padding: 26px; border: 1px dashed #bacbd0; border-radius: 12px; text-align: center; background: #f7fafb; }
.cache-builder-empty p { margin: 8px 0 0; }
.cache-source-card { padding: 20px; border: 1px solid #d6e1e4; border-radius: 12px; background: #fff; min-width: 0; }
.cache-source-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cache-source-heading code { color: #476b78; overflow-wrap: anywhere; }
.cache-source-heading button { margin-left: auto; }
.cache-source-card > p { margin: 16px 0 0; overflow-wrap: anywhere; }
.cache-source-card details { margin-top: 16px; }
.cache-source-card details > summary { cursor: pointer; margin-bottom: 12px; }
.cache-preparation-fields { border: 0; margin: 0; padding: 0; min-width: 0; }

.adaptive-dashboard .adaptive-http-summary { grid-area: http; min-width: 0; padding: 16px; border: 1px solid #dbe4ed; border-radius: 10px; background: #fff; }
.adaptive-dashboard .adaptive-http-history { grid-area: http; margin: 0; }
.adaptive-http-summary table { min-width: 500px; }
.adaptive-http-summary th, .adaptive-http-summary td { padding: 10px 12px; }
.adaptive-http-summary th:not(:first-child), .adaptive-http-summary td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adaptive-http-summary td small { display: block; color: #718197; }
.adaptive-http-summary > p { margin: 12px 0 6px; }

/* The report leads with measured HTTP traffic; workflow pacing stays one click away. */
.adaptive-dashboard .adaptive-result-metrics .http-metric-total { border-top: 3px solid #2563eb; }
.adaptive-dashboard .adaptive-result-metrics .http-metric-post { border-top: 3px solid #0f766e; }
.adaptive-dashboard .adaptive-result-metrics .http-metric-get { border-top: 3px solid #d97706; }
.adaptive-chart-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #dce5ef; border-radius: 8px; background: #f4f7fb; }
.adaptive-chart-switch button { padding: 7px 12px; border: 0; border-radius: 5px; background: transparent; color: #546b82; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.adaptive-chart-switch button[aria-pressed="true"] { color: #174b94; background: white; box-shadow: 0 1px 4px #16365a26; font-weight: 700; }
.adaptive-chart-switch button:focus-visible, .adaptive-dashboard summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.adaptive-chart-context { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.adaptive-chart-context > small { color: #677e97; font-size: 11px; }
.adaptive-dashboard .adaptive-rps-visual svg { width: 100%; height: auto; margin: 0; }
.adaptive-chart-note { margin: 4px 0 0; color: #677e97; font-size: 11px; line-height: 1.6; }
.adaptive-dashboard .adaptive-conclusion { margin: 0; }
.adaptive-confirmation-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dce5ef; font-size: 12px; color: #61768c; }
.adaptive-confirmation-facts strong { margin-left: 6px; color: #234463; }
.adaptive-dashboard .adaptive-observations, .adaptive-dashboard .adaptive-http-summary { margin-top: 0; }
.adaptive-dashboard .adaptive-observations > summary, .adaptive-http-summary > summary { font-size: 13px; }
.adaptive-http-summary > summary small { margin-left: 10px; color: #677e97; font-weight: 400; }
.adaptive-observations[open] > summary { margin-bottom: 14px; }
.adaptive-disclosure-content { margin-top: 14px; }
.adaptive-disclosure-content > p { margin: 12px 0 6px; }
@container adaptive-report (max-width: 600px) {
    .adaptive-dashboard .adaptive-rps-visual svg text { font-size: 24px; }
    .adaptive-chart-switch { width: 100%; }
    .adaptive-chart-switch button { flex: 1; }
    .adaptive-http-summary > summary small { display: block; margin: 4px 0 0 16px; }
}

/* Shared catalog grid and page typography. */
.shared-data-grid {
    min-width: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.shared-data-grid .table-wrap { max-width: 100%; overflow-x: auto; }
.shared-data-grid .data-grid-table { margin: 0; }
.shared-data-grid .data-grid-table th { white-space: nowrap; }
.shared-data-grid .data-grid-table td { line-height: 1.5; }
.shared-data-grid .data-grid-table td small {
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    color: #65737a;
}
.shared-data-grid .data-grid-table td > small,
.shared-data-grid .automated-test-main > small { display: block; margin-top: 3px; }
.shared-data-grid .data-grid-table td:first-child { min-width: 220px; }
.shared-data-grid .data-grid-table td:last-child:has(.grid-action-icon) { white-space: nowrap; }
.shared-data-grid .automated-test-main > a { font-weight: 700; color: #152b3e; }
.shared-data-grid .automated-test-main { width: 48%; }
.shared-data-grid .automated-test-actions .grid-row-actions { flex-wrap: nowrap; }
.shared-data-grid .workflow-target-table th:nth-child(4),
.shared-data-grid .workflow-target-table td:nth-child(4) { width: 84px; min-width: 84px; }
.shared-data-grid .workflow-target-table th:nth-child(2),
.shared-data-grid .workflow-target-table td:nth-child(2) { width: 16%; min-width: 160px; }
.shared-data-grid tr.is-return-focus { outline: 2px solid #5d91ba; outline-offset: -2px; }
.page-header {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    align-items: flex-start;
    gap: var(--space-5);
}
.page-header h1 { font-family: inherit; font-size: var(--font-size-heading); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.page-header p { font-family: inherit; font-size: var(--font-size-body); line-height: 1.5; }
.page-header .page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.scenario-browser > .scenario-grid-toolbar-panel { margin-bottom: 16px; }
.scenario-type-header { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
@media (max-width: 720px) {
    .page-header { flex-direction: column; }
    .page-header h1 { font-size: var(--font-size-heading-small); }
    .shared-data-grid .data-grid-table th,
    .shared-data-grid .data-grid-table td { padding: 10px 12px; }
}

/* MetricGrid and MetricCard: shared presentation for dashboard and report summaries. */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-4);
    min-width: 0;
    margin: 0 0 var(--space-4);
}
.metric-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    min-width: 0;
    padding: var(--space-4);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-section);
    background: var(--surface-card);
    overflow-wrap: anywhere;
}
.metric-card-label,
.metric-card-description {
    color: #52616b;
    font-size: var(--font-size-caption);
    line-height: 1.5;
}
.metric-card-label { font-weight: 650; }
.metric-card-value {
    max-width: 100%;
    color: var(--text-strong);
    font-size: var(--font-size-metric);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.metric-card-description { margin-top: auto; }
