:root {
    --brand: #0066aa;
    --brand-hover: #00558f;
    --brand-active: #004977;
    --brand-subtle: #e6f2fa;
    --brand-subtle-strong: #cce6f5;
    --brand-border: #8fc5e6;
    --brand-ring: rgba(0, 102, 170, 0.26);
    --text-strong: #102033;
    --text-muted: #5f6e7f;
    --line: #dce3eb;
    --surface: #ffffff;
    --surface-soft: #f4f8fc;
    --success: #128943;
    --warning: #c76c00;
    --danger: #cf2e2e;
    --priority-critical-bg: #fff5f5;
    --priority-critical-border: #f4b4b4;
    --priority-high-bg: #fff8ed;
    --priority-high-border: #ffd29b;
    --priority-medium-bg: #f3f8ff;
    --priority-medium-border: #bed7ff;
    --priority-low-bg: #f2fbf6;
    --priority-low-border: #badfca;
    --kendo-color-primary: var(--brand);
    --kendo-color-primary-hover: var(--brand-hover);
    --kendo-color-primary-active: var(--brand-active);
    --kendo-color-primary-subtle: var(--brand-subtle);
    --kendo-color-primary-subtle-hover: var(--brand-subtle-strong);
    --kendo-color-primary-emphasis: var(--brand-border);
    --kendo-color-on-primary: #ffffff;
    --kendo-focus-ring: 0 0 0 3px var(--brand-ring);
}

body {
    margin: 0;
    background: #f7f8fa;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--brand);
}

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

.k-button-solid-primary {
    border-color: var(--brand) !important;
    background-color: var(--brand) !important;
    color: #ffffff !important;
}

.k-button-solid-primary:hover,
.k-button-solid-primary.k-hover {
    border-color: var(--brand-hover) !important;
    background-color: var(--brand-hover) !important;
}

.k-button-solid-primary:active,
.k-button-solid-primary.k-active {
    border-color: var(--brand-active) !important;
    background-color: var(--brand-active) !important;
}

.k-button-solid-base:hover,
.k-button-solid-base.k-hover,
.k-button-flat-primary,
.k-button-link {
    color: var(--brand) !important;
}

.k-button:focus,
.k-button.k-focus,
.k-input:focus-within,
.k-picker:focus-within,
.k-textbox:focus,
.k-textarea:focus,
.k-dropdownlist.k-focus,
.k-numerictextbox.k-focus {
    box-shadow: 0 0 0 3px var(--brand-ring) !important;
}

.k-input:focus-within,
.k-picker:focus-within,
.k-textbox:focus,
.k-textarea:focus,
.k-dropdownlist.k-focus,
.k-numerictextbox.k-focus {
    border-color: var(--brand-border) !important;
}

.k-list-item.k-selected,
.k-list-optionlabel.k-selected {
    background-color: var(--brand) !important;
    color: #ffffff !important;
}

.k-list-item.k-hover,
.k-list-optionlabel.k-hover {
    background-color: var(--brand-subtle) !important;
    color: var(--text-strong) !important;
}

.k-pager-numbers .k-link.k-selected,
.k-pager-numbers .k-link.k-state-selected {
    border-color: var(--brand) !important;
    background-color: var(--brand) !important;
    color: #ffffff !important;
}

.k-pager .k-link:hover,
.k-pager .k-link.k-hover {
    border-color: var(--brand-border) !important;
    background-color: var(--brand-subtle) !important;
    color: var(--brand) !important;
}

.k-grid .k-table-row.k-selected > td,
.k-grid .k-table-row.k-state-selected > td,
.k-grid .k-master-row.k-selected > td,
.k-grid .k-master-row.k-state-selected > td {
    background-color: var(--brand-subtle) !important;
    color: var(--text-strong) !important;
}

.k-grid .k-table-row:hover > td,
.k-grid .k-master-row:hover > td {
    background-color: #f0f7fc;
}

.k-grid-header,
.k-grid .k-header {
    background-color: #f7fafc !important;
    color: #39485a !important;
}

.k-window-titlebar {
    border-color: var(--line) !important;
    background-color: #f7fafc !important;
    color: var(--text-strong) !important;
}

.k-notification-success {
    border-color: #a9ddbf !important;
    background-color: #e7f6ed !important;
    color: #106f37 !important;
}

.k-notification-error {
    border-color: #f0b3b3 !important;
    background-color: #fdecec !important;
    color: #ab2525 !important;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.page-header,
.workspace-toolbar,
.workspace-card,
.org-bar,
.project-panel {
    border: 1px solid #d8dee6;
    background: #ffffff;
}

.page-header,
.workspace-card,
.org-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header {
    flex-wrap: wrap;
    padding: 20px 24px;
}

.page-header > div {
    min-width: 0;
}

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.language-switcher label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.language-switcher .k-dropdownlist {
    width: 180px;
}

@media (max-width: 640px) {
    .workspace-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .language-switcher {
        align-items: stretch;
        flex: 1 1 100%;
        flex-direction: column;
    }

    .language-switcher .k-dropdownlist,
    .workspace-header-actions .link-button {
        width: 100%;
    }

    .workspace-header-actions .link-button {
        justify-content: center;
    }
}

.page-header h1,
.project-panel h1 {
    margin: 0 0 6px;
}

.page-header p,
.workspace-card p,
.project-panel p {
    margin: 0;
    color: #52616f;
}

.workspace-toolbar {
    margin-top: 20px;
    padding: 16px 20px;
}

.workspace-toolbar label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.workspace-section {
    margin-top: 28px;
}

.workspace-section h2 {
    font-size: 20px;
}

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

.workspace-section-heading h2 {
    margin: 0 0 6px;
}

.workspace-section-heading p {
    margin: 0;
    color: var(--text-muted);
}

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

.workspace-card {
    min-height: 96px;
    padding: 18px;
    border-radius: 8px;
}

.workspace-card h3 {
    margin: 0 0 8px;
}

.workspace-card-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.workspace-invitation-section {
    padding: 18px;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 100%);
}

.workspace-invitation-card {
    border-color: var(--brand-border);
    box-shadow: 0 12px 28px rgba(0, 102, 170, 0.08);
}

.workspace-invitation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.workspace-limit-note {
    margin: -6px 0 14px;
    color: var(--text-muted);
}

.workspace-dialog-form {
    display: grid;
    gap: 10px;
}

.workspace-dialog-form label {
    font-weight: 700;
}

.workspace-dialog-error {
    min-height: 20px;
    color: #ab2525;
    font-size: 13px;
}

.workspace-invitation-empty {
    justify-content: flex-start;
}

.primary-button,
.link-button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    text-decoration: none;
}

.primary-button {
    background: var(--brand);
    color: #ffffff;
}

.primary-button:hover {
    background: var(--brand-hover);
    color: #ffffff;
}

.account-entry-kendo-button.k-button {
    min-height: 36px;
    text-decoration: none;
}

.account-entry-kendo-button.k-button .k-icon {
    flex: 0 0 auto;
}

.account-entry-kendo-button.k-button span:not(.k-icon) {
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-login-button.is-loading {
    cursor: progress;
    pointer-events: none;
}

.account-login-button.is-loading .account-login-button-icon {
    animation: app-loader-spin 0.8s linear infinite;
}

.link-button {
    border: 1px solid #c7d0da;
    color: #1f2933;
}

.link-button:hover {
    border-color: var(--brand-border);
    background: var(--brand-subtle);
    color: var(--brand);
}

.account-entry-main,
.workspace-entry-main {
    width: min(1120px, calc(100% - 48px));
    margin: 32px auto;
}

.account-entry-main {
    min-height: calc(100vh - 64px);
    display: grid;
    align-items: center;
}

.account-entry-shell,
.workspace-entry-shell {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.10);
}

.account-entry-shell {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
}

.account-entry-brand,
.workspace-entry-brand {
    position: relative;
    display: grid;
    gap: 32px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(0, 102, 170, 0.96), rgba(0, 79, 132, 0.96)),
        var(--brand);
    color: #ffffff;
}

.account-entry-brand {
    grid-template-rows: 1fr auto 1fr;
}

.account-entry-brand::after,
.workspace-entry-brand::after {
    content: "";
    position: absolute;
    right: 34px;
    bottom: 34px;
    width: 128px;
    height: 128px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: rotate(18deg);
}

.account-entry-wordmark,
.workspace-entry-wordmark,
.account-entry-copy,
.workspace-entry-copy,
.workspace-summary-list {
    position: relative;
    z-index: 1;
}

.account-entry-wordmark,
.workspace-entry-wordmark {
    align-self: start;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.account-entry-copy {
    align-self: center;
}

.account-entry-copy h1,
.workspace-entry-copy h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.12;
}

.account-entry-copy p,
.workspace-entry-copy p {
    max-width: 36rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.5;
}

.account-entry-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.account-entry-kicker,
.workspace-panel-kicker {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.account-entry-panel h2,
.workspace-panel-top h2 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: 28px;
    line-height: 1.15;
}

.account-entry-muted {
    margin: 0;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.account-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #eef2f6;
}

.account-entry-notice {
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    background: var(--brand-subtle);
    color: var(--text-strong);
}

.account-entry-alert {
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid #ffd29b;
    border-radius: 8px;
    background: #fffaeb;
    color: #93370d;
}

.account-entry-footer {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #eef2f6;
}

.secondary-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.secondary-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.workspace-entry-main {
    width: min(1180px, calc(100% - 48px));
}

.workspace-entry-shell {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
}

.workspace-entry-brand {
    grid-template-rows: auto 1fr auto;
    align-content: stretch;
}

.workspace-entry-copy {
    align-self: center;
}

.workspace-summary-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.workspace-summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.workspace-summary-list dt,
.workspace-summary-list dd {
    margin: 0;
}

.workspace-summary-list dt {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.workspace-summary-list dd {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.workspace-entry-panel {
    min-width: 0;
    padding: 30px;
    background: #ffffff;
}

.workspace-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef2f6;
}

.workspace-panel-top > div {
    min-width: 0;
}

.workspace-header-actions {
    flex-shrink: 0;
}

.workspace-toolbar {
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.workspace-toolbar label {
    margin-bottom: 8px;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
}

.workspace-toolbar .k-dropdownlist,
.workspace-toolbar .k-picker {
    width: 100%;
}

.workspace-section {
    margin-top: 28px;
}

.workspace-section h2,
.workspace-section-heading h2 {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-size: 17px;
    line-height: 1.3;
}

.workspace-section-heading {
    align-items: flex-start;
    margin-bottom: 14px;
}

.workspace-section-heading p {
    color: var(--text-muted);
}

.workspace-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.workspace-card {
    min-height: 112px;
    padding: 18px;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.workspace-card-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.workspace-card-main > div {
    min-width: 0;
}

.workspace-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #b8dcf5;
    border-radius: 50%;
    background: #e5f3ff;
    color: var(--brand-active);
    font-size: 20px;
}

.workspace-card-icon-company {
    border-color: #cfd8e3;
    background: #f2f4f7;
    color: #344054;
}

.workspace-card h3 {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.workspace-card-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.workspace-card-meta {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.workspace-empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--border-strong, #c8d1dc);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-muted);
}

.workspace-invitation-section {
    padding: 18px;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    background: #f7fbff;
}

.workspace-invitation-card {
    border-color: var(--brand-border);
    box-shadow: 0 12px 28px rgba(0, 102, 170, 0.08);
}

.workspace-invitation-card .workspace-card-main,
.workspace-invitation-empty .workspace-card-main {
    align-items: start;
}

.workspace-invitation-actions {
    flex-shrink: 0;
}

.workspace-limit-note {
    margin: -4px 0 14px;
    color: var(--text-muted);
}

.primary-button,
.link-button {
    justify-content: center;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .account-entry-shell,
    .workspace-entry-shell {
        grid-template-columns: 1fr;
    }

    .account-entry-brand,
    .workspace-entry-brand {
        min-height: 240px;
        grid-template-rows: auto 1fr;
    }

    .account-entry-brand::after,
    .workspace-entry-brand::after {
        display: none;
    }

    .workspace-summary-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .workspace-summary-list div {
        display: block;
        padding: 10px 0 0;
    }
}

@media (max-width: 640px) {
    .account-entry-main,
    .workspace-entry-main {
        width: auto;
        min-height: 100vh;
        margin: 0;
        padding: 18px;
    }

    .account-entry-brand,
    .account-entry-panel,
    .workspace-entry-brand,
    .workspace-entry-panel {
        padding: 24px;
    }

    .account-entry-copy h1,
    .workspace-entry-copy h1,
    .account-entry-panel h2,
    .workspace-panel-top h2 {
        font-size: 24px;
    }

    .workspace-panel-top,
    .workspace-section-heading,
    .workspace-card {
        display: block;
    }

    .workspace-header-actions {
        margin-top: 18px;
    }

    .workspace-summary-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .workspace-card .primary-button,
    .workspace-invitation-actions {
        width: 100%;
        margin-top: 16px;
    }

    .workspace-invitation-actions {
        justify-content: flex-start;
    }

    .workspace-section-heading #createCompanyOrgButton,
    .workspace-section-heading .k-button {
        width: 100%;
        margin-top: 14px;
    }
}

.org-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 24px;
}

.org-bar span {
    display: block;
    margin-top: 4px;
    color: #52616f;
    font-size: 14px;
}

.project-panel {
    padding: 24px;
    border-radius: 8px;
}

.project-panel dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.project-panel dt {
    color: #52616f;
    font-size: 13px;
}

.project-panel dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.app-layout {
    --brand-deep: var(--brand-hover);
    --muted: var(--text-muted);
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
    grid-template-areas:
        "topbar topbar"
        "sidebar main";
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    background: #f6f8fb;
}

.app-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px;
    border-right: 1px solid var(--line);
    background: var(--surface);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    color: #132235;
}

.brand-mark strong {
    font-size: 18px;
}

.brand-mark span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.brand-shield {
    display: inline-grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff !important;
    font-weight: 800;
}

.top-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.top-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #243246;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.top-icon-button:hover {
    background: var(--brand-subtle);
    color: var(--brand);
}

.side-nav,
.sidebar-section {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.side-nav {
    display: grid;
    gap: 4px;
}

.side-nav-item,
.sidebar-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #243246;
    font: inherit;
    text-align: left;
    text-decoration: none;
    padding: 0 10px;
    cursor: pointer;
}

.side-nav-item {
    justify-content: flex-start;
}

.side-nav-item:hover,
.sidebar-filter:hover,
.side-nav-item.active,
.sidebar-filter.active {
    background: #eaf3fb;
    color: var(--brand);
}

.side-nav-item.active {
    box-shadow: inset 4px 0 0 var(--brand);
}

.archive-tag-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0 3px 0 2px;
    border: 2px solid currentColor;
    border-radius: 4px 4px 4px 2px;
    transform: rotate(-45deg);
}

.archive-tag-icon::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: var(--surface);
}

.sidebar-title {
    color: #4b5a6b;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-title-row .sidebar-title {
    margin: 0;
}

.sidebar-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-icon-button,
.product-line-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #52616f;
    cursor: pointer;
}

.sidebar-icon-button:hover,
.product-line-actions button:hover {
    background: #eaf3fb;
    color: var(--brand);
}

.product-line-list {
    display: grid;
    gap: 4px;
}

.product-line-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 6px;
}

.product-line-row:hover,
.product-line-row.active {
    background: #eaf3fb;
    color: var(--brand);
}

.product-line-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 0 10px;
    cursor: pointer;
}

.product-line-list > .product-line-select:hover,
.product-line-list > .product-line-select.active {
    background: #eaf3fb;
    color: var(--brand);
}

.product-line-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-line-count,
.product-line-select > span:last-child {
    min-width: 24px;
    border-radius: 999px;
    background: #eef2f6;
    color: #52616f;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
}

.product-line-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding-right: 4px;
}

.product-line-empty {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
}

.sidebar-filter span:last-child {
    min-width: 24px;
    border-radius: 999px;
    background: #eef2f6;
    color: #52616f;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
}

.case-sections-sidebar {
    display: grid;
    gap: 10px;
}

.section-tree-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.section-tree-panel[hidden] {
    display: none;
}

.section-tree-view {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.section-tree-view .k-treeview-leaf {
    max-width: 100%;
    border-radius: 6px;
    line-height: 1.35;
}

.section-tree-view .k-treeview-leaf.k-selected,
.section-tree-view .k-treeview-leaf.k-state-selected,
.section-tree-view .k-in.k-selected,
.section-tree-view .k-in.k-state-selected {
    border-color: #f0b75f !important;
    background: #fff3d8 !important;
    color: #9a5a00 !important;
}

.section-tree-view .k-treeview-leaf.k-selected:hover,
.section-tree-view .k-treeview-leaf.k-state-selected:hover,
.section-tree-view .k-in.k-selected:hover,
.section-tree-view .k-in.k-state-selected:hover {
    background: #ffe8b0 !important;
    color: #7c4700 !important;
}

.section-tree-view .k-in,
.section-tree-view .k-treeview-leaf-text {
    overflow-wrap: anywhere;
}

.workspace-panel {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.workspace-panel[hidden] {
    display: none;
}

.workspace-panel > .case-workspace {
    width: 100%;
}

.case-load-progress-banner {
    position: fixed;
    top: 76px;
    left: 50%;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(420px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    transform: translateX(-50%);
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.case-load-progress-banner[hidden] {
    display: none;
}

.case-load-circular-progress {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.case-load-progress-value {
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.case-load-progress-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.case-load-progress-copy strong {
    color: #1f2a37;
    font-size: 14px;
    line-height: 1.3;
}

.case-load-progress-copy span {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.section-management-workspace {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 28px;
}

.section-management-workspace[hidden] {
    display: none;
}

.case-import-workspace {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 28px;
    background: #ffffff;
}

.case-import-workspace[hidden] {
    display: none;
}

.case-import-heading {
    align-items: center;
}

.case-import-shell {
    min-width: 0;
    background: #ffffff;
}

.case-import-shell .k-wizard {
    border: 0;
}

.case-import-shell .k-wizard-content {
    min-height: min(620px, calc(100vh - 250px));
}

.case-import-step {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 18px;
}

.case-import-step[hidden] {
    display: none;
}

.case-import-grid,
.case-import-preview-grids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 16px;
    min-width: 0;
}

.case-import-card {
    min-width: 0;
    padding: 18px;
}

.case-import-card h2,
.case-import-step-heading h2,
.case-import-complete h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 18px;
}

.case-import-step-heading p,
.case-import-card p,
.case-import-complete p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.case-import-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.case-import-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 800;
}

.case-import-form input[type="file"] {
    width: 100%;
    min-width: 0;
}

.case-import-form .k-dropdownlist {
    width: min(260px, 100%);
}

.case-import-actions,
.case-import-step-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.case-import-note-list {
    display: grid;
    gap: 10px;
}

.case-import-note-list strong {
    color: var(--text-strong);
}

.case-import-data-grid {
    min-width: 0;
}

.case-import-data-grid .k-grid {
    min-width: 0;
}

.case-import-help-header,
.case-import-help-cell {
    text-align: center;
}

.case-import-field-help {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--warning);
    cursor: help;
    vertical-align: middle;
}

.case-import-field-help:hover,
.case-import-field-help:focus {
    background: #fff8ed;
    outline: none;
}

.case-import-field-help .k-icon {
    flex: 0 0 auto;
}

.case-import-field-tooltip-content {
    max-width: 340px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.case-import-data-grid.compact .k-grid-content {
    max-height: 260px;
}

.case-import-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    min-width: 0;
}

.case-import-summary-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
}

.case-import-summary-item span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.case-import-summary-item strong {
    color: var(--text-strong);
    font-size: 22px;
}

.case-import-complete {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 360px;
    padding: 60px 20px;
    text-align: center;
}

.case-import-complete-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e7f6ed;
    color: var(--success);
    font-size: 28px;
}

.section-manager-layout {
    display: grid;
    grid-template-columns: minmax(440px, 1.8fr) minmax(320px, 0.9fr);
    gap: 24px;
    min-width: 0;
}

.section-manager-tree-card,
.section-manager-editor-card {
    min-width: 0;
    padding: 18px;
}

.section-manager-tree-card {
    align-self: start;
}

.section-manager-tree-card .detail-header {
    align-items: center;
    margin-bottom: 12px;
}

#shareManagedSectionBtn {
    flex: 0 0 auto;
}

.section-manager-editor-card.section-share-target-highlight {
    animation: sectionShareTargetPulse 4.2s ease-out;
}

.section-share-target-title {
    color: #0369a1 !important;
}

@keyframes sectionShareTargetPulse {
    0% {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.24), 0 18px 50px rgba(14, 165, 233, 0.18);
    }
    45% {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14), 0 18px 50px rgba(14, 165, 233, 0.12);
    }
    100% {
        border-color: var(--line);
        box-shadow: none;
    }
}

.section-tree-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-meta {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.section-default-node {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff3d8;
    color: #9a5a00;
    font-size: 12px;
    font-weight: 700;
}

.section-parent-node {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e6f2fa;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.section-manager-tree {
    max-height: min(560px, calc(100vh - 230px));
    min-height: 420px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    overflow: auto;
}

.section-manager-tree .k-checkbox-wrapper {
    flex: 0 0 auto;
}

.section-manager-tree .k-treeview-leaf {
    min-height: 34px;
}

.section-manager-form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.section-manager-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.section-manager-form .k-input,
.section-manager-form .k-textbox,
.section-manager-form .k-textarea,
.section-manager-form .k-dropdownlist {
    width: 100%;
}

.section-editor-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.section-case-preview {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.section-case-preview[hidden] {
    display: none;
}

.section-case-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.section-case-preview-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.section-case-jump-button.k-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border-color: #cbd5e1;
    border-radius: 9px;
    color: #475569;
    background: #ffffff;
}

.section-case-jump-button.k-button:hover {
    border-color: #f97316;
    color: #ea580c;
    background: #fff7ed;
}

.section-case-jump-button.k-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.section-case-preview-header h3 {
    margin: 0;
    color: #1f2a3a;
    font-size: 15px;
}

.section-case-preview-list {
    display: grid;
    gap: 8px;
}

.section-case-preview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfdff;
}

.section-case-preview-title {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #243246;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-empty-state {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.section-first-step-empty {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #f0b75f;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff8e8 0%, #fffdf7 100%);
    box-shadow: 0 8px 20px rgba(154, 90, 0, 0.08);
    color: #6c4a13;
}

.section-first-step-empty[hidden] {
    display: none;
}

.section-first-step-empty strong {
    color: #9a5a00;
    font-size: 13px;
    font-weight: 800;
}

.section-first-step-empty span {
    color: #6f5a35;
    font-size: 12px;
    line-height: 1.55;
}

.recent-project-list,
.recent-run-list {
    display: grid;
    gap: 6px;
}

.recent-project-link,
.recent-run-link {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #243246;
    text-decoration: none;
}

.recent-project-link:hover,
.recent-run-link:hover {
    background: #eaf3fb;
    color: var(--brand);
}

.recent-project-link .k-icon,
.recent-run-link .k-icon {
    grid-row: span 2;
    margin-top: 2px;
}

.recent-project-name,
.recent-run-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.recent-project-link small,
.recent-run-link small,
.recent-project-empty,
.recent-run-empty {
    color: var(--muted);
    font-size: 12px;
}

.recent-project-empty,
.recent-run-empty {
    padding: 8px 10px;
}

.workspace-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.app-layout.run-detail-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "topbar"
        "main";
}

.app-layout.run-report-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "topbar"
        "main";
}

.run-detail-main {
    height: 100%;
}

.top-bar {
    grid-area: topbar;
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.top-left-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.top-project-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.top-project-switcher[hidden] {
    display: none;
}

.top-project-switcher .k-dropdownlist {
    width: 220px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    max-width: min(280px, 28vw);
    padding: 4px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex: 0 1 auto;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.user-menu-trigger:hover {
    background: var(--brand-subtle);
}

.user-menu-trigger:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 3px;
}

.user-chip {
    display: grid;
    gap: 2px;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    color: #1c2a39;
    font-size: 13px;
}

.user-chip strong,
.user-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip span {
    color: var(--muted);
}

.content-eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 26px 28px;
}

.project-content {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.content-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.case-breadcrumb {
    margin-bottom: 8px;
}

.case-breadcrumb .k-breadcrumb {
    min-height: 36px;
    padding: 4px 10px;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    background: var(--brand-subtle);
}

.case-breadcrumb .k-breadcrumb .k-link,
.case-breadcrumb .k-breadcrumb-item .k-link,
.case-breadcrumb .k-breadcrumb-link {
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
}

.case-breadcrumb .k-breadcrumb .k-link:hover,
.case-breadcrumb .k-breadcrumb-item .k-link:hover,
.case-breadcrumb .k-breadcrumb-link:hover {
    color: var(--brand-hover);
}

.member-activity-workspace {
    display: block;
    min-height: 0;
    height: 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

.member-activity-heading {
    align-items: center;
}

.member-activity-splitter {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.member-activity-splitter:not(.k-splitter) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
}

.member-activity-splitter.k-splitter {
    border: 0;
    background: transparent;
}

.member-activity-splitter.k-splitter > .k-pane {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.member-activity-splitter.k-splitter > .k-splitbar {
    position: relative;
    width: 16px;
    border: 0;
    background: transparent;
}

.member-activity-splitter.k-splitter > .k-splitbar::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--line);
    transition: background 0.15s ease, width 0.15s ease;
}

.member-activity-splitter.k-splitter > .k-splitbar:hover::before,
.member-activity-splitter.k-splitter > .k-splitbar:focus::before,
.member-activity-splitter.k-splitter > .k-splitbar:active::before {
    width: 3px;
    border-radius: 999px;
    background: var(--brand-border);
}

.member-activity-pane {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.member-activity-content {
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    overscroll-behavior: contain;
    padding: 26px 22px 26px 28px;
}

.member-activity-filter-card {
    margin-bottom: 18px;
}

.member-activity-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) 36px auto;
    align-items: end;
    gap: 12px;
}

.member-activity-filter-row label {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.member-activity-filter-row .k-datepicker,
.member-activity-filter-row .k-dropdownlist {
    width: 100%;
}

.member-activity-help-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand);
    cursor: help;
}

.member-activity-help-button:hover,
.member-activity-help-button:focus-visible {
    border-color: var(--brand-border);
    background: var(--brand-subtle);
    outline: 0;
}

.member-activity-kpi-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.metric-card.member-activity-kpi-card {
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 8px 10px;
}

.metric-card.member-activity-kpi-card .metric-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
}

.member-activity-kpi-help-icon {
    cursor: help;
}

.member-activity-tooltip-content {
    display: block;
    width: 280px;
    max-width: min(80vw, 320px);
    white-space: normal;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.metric-card.member-activity-kpi-card > div {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 8px;
}

.metric-card.member-activity-kpi-card p {
    flex: 0 1 auto;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.metric-card.member-activity-kpi-card strong {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    font-size: 20px;
    line-height: 1;
}

.member-activity-chart-card,
.member-activity-summary-card,
.member-activity-detail-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-activity-chart-card,
.member-activity-summary-card {
    margin-bottom: 18px;
}

.project-detail-panel.member-activity-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    overflow-y: auto;
    overflow-x: auto;
    overscroll-behavior: contain;
    padding: 26px 28px 26px 22px;
}

.member-activity-detail-card {
    position: static;
    margin-bottom: 0;
}

.member-activity-chart-card {
    margin-bottom: 0;
}

#memberActivityTrendChart,
#memberActivitySummaryGrid,
#memberActivityDetailsGrid {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-activity-chart-card .k-chart,
.member-activity-summary-card .k-grid,
.member-activity-detail-card .k-grid {
    max-width: 100%;
    min-width: 0;
}

#memberActivitySummaryGrid .k-grid-content,
#memberActivityDetailsGrid .k-grid-content {
    overflow-x: auto;
}

.member-activity-detail-header {
    align-items: flex-start;
}

.member-activity-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-subtle);
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.member-activity-member-cell,
.member-activity-event-title {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.member-activity-member-cell strong,
.member-activity-event-title strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-strong);
}

.member-activity-event-link {
    color: var(--brand);
    text-decoration: none;
}

.member-activity-event-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.member-activity-member-cell span,
.member-activity-event-title span,
.member-activity-source {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 12px;
}

.member-activity-metric-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-subtle);
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.member-activity-metric-link:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.member-activity-zero {
    color: #9aa7b5;
}

.member-activity-header-help {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 4px;
    white-space: normal;
    line-height: 1.25;
    cursor: help;
}

.member-activity-header-help .k-icon {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .member-activity-workspace {
        height: auto;
        overflow: visible;
    }

    .member-activity-splitter,
    .member-activity-splitter.k-splitter {
        display: block;
        height: auto;
        overflow: visible;
    }

    .member-activity-splitter > .k-pane,
    .member-activity-pane {
        width: 100% !important;
        height: auto !important;
        overflow: visible;
    }

    .member-activity-splitter > .k-splitbar {
        display: none;
    }

    .member-activity-filter-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .member-activity-help-button {
        justify-self: start;
    }

    .member-activity-detail-card {
        position: static;
    }

    .member-activity-content,
    .project-detail-panel.member-activity-detail-panel {
        height: auto;
        overflow: visible;
        padding: 18px 16px;
    }
}

.case-breadcrumb .k-breadcrumb .k-icon,
.case-breadcrumb .k-breadcrumb .k-svg-icon {
    color: var(--brand);
    filter: saturate(1.05);
}

.case-breadcrumb .k-breadcrumb .k-breadcrumb-delimiter,
.case-breadcrumb .k-breadcrumb-delimiter {
    color: var(--brand-hover);
    opacity: 0.9;
}

.case-breadcrumb .k-breadcrumb .k-current-location,
.case-breadcrumb .k-breadcrumb-current-location {
    color: var(--text-strong);
}

.content-heading h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #101828;
}

.content-heading p {
    margin: 0;
    color: var(--muted);
}

.heading-actions,
.project-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.switch-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.project-toolbar {
    margin-bottom: 18px;
    align-items: center;
}

.case-list-sticky-controls {
    position: sticky;
    top: 0;
    z-index: 7;
    background: #f6f8fb;
}

.case-list-sticky-controls .case-toolbar {
    margin-bottom: 12px;
}

.case-action-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
}

.case-action-loader-overlay[hidden] {
    display: none;
}

.case-action-loader-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 176px;
    padding: 16px 18px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
    color: #233246;
}

.case-action-loader-card strong {
    font-size: 14px;
    line-height: 1.3;
}

.app-loading-region {
    position: relative;
}

.app-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(248, 250, 252, 0.78);
}

.app-loader-overlay[hidden] {
    display: none;
}

.app-loader-panel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(320px, 100%);
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    color: #233246;
    font-size: 13px;
    font-weight: 800;
}

.app-loader-spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 3px solid #d8eaf8;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: app-loader-spin 0.8s linear infinite;
}

.app-loader-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.project-toolbar label,
.sort-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.project-toolbar label > span:not(.k-icon) {
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.project-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 240px;
    min-width: min(220px, 100%);
    max-width: 360px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
}

.case-toolbar-scroll-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.project-toolbar .k-dropdownlist,
.project-toolbar .k-picker {
    flex: 0 0 auto;
}

.project-toolbar .k-multiselect {
    flex: 0 0 auto;
}

.project-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font: inherit;
}

.defect-filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.04);
}

.defect-heading-actions {
    justify-content: flex-end;
}

.jira-full-sync-meta {
    display: grid;
    gap: 2px;
    min-width: 176px;
    max-width: 260px;
    padding: 9px 12px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 41, 51, 0.04);
}

.jira-full-sync-meta span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.jira-full-sync-meta strong {
    min-width: 0;
    color: #172033;
    font-size: 14px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jira-full-sync-meta small {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.jira-full-sync-meta .sync-running {
    color: #986a00;
}

.jira-full-sync-meta .sync-success {
    color: #128943;
}

.jira-full-sync-meta .sync-error {
    color: #c23030;
}

.defect-filter-panel label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    min-width: 0;
}

.defect-filter-panel label > span:not(.k-icon) {
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.defect-filter-panel select,
.defect-filter-panel .k-dropdownlist,
.defect-filter-panel .k-picker {
    width: 100%;
    min-width: 0;
}

.defect-status-section {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #dde7f2;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(45, 91, 255, 0.08), transparent 34%),
        linear-gradient(135deg, #fbfdff 0%, #f5f8fc 100%);
}

.defect-status-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
}

.defect-status-heading span {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.defect-status-heading small {
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.defect-status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(144px, 1fr));
    gap: 10px;
}

.defect-status-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label count"
        "meta count";
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 41, 51, 0.045);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.defect-status-card:hover,
.defect-status-card:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(0, 98, 190, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.defect-status-card.active {
    border-color: var(--brand);
    background: #eef6ff;
    box-shadow: 0 0 0 2px rgba(0, 98, 190, 0.14);
}

.defect-status-card-label {
    grid-area: label;
    min-width: 0;
    color: #26364d;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.defect-status-card strong {
    grid-area: count;
    color: #111827;
    font-size: 30px;
    line-height: 1;
}

.defect-status-card small {
    grid-area: meta;
    color: var(--muted);
    font-size: 12px;
}

.defect-status-empty {
    padding: 12px 14px;
    border: 1px dashed #c8d5e5;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    font-size: 13px;
}

.defect-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.defect-grid-toolbar-title {
    flex: 0 0 auto;
    color: #172033;
    font-weight: 800;
}

.defect-grid-search {
    flex: 0 1 320px;
    min-width: min(240px, 100%);
    max-width: 360px;
}

.defect-title-link {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #102a56;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.defect-title-link:hover,
.defect-title-link:focus-visible {
    color: var(--brand);
    text-decoration: underline;
    outline: 0;
}

.defect-editor-panel {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    z-index: 35;
    width: 70vw;
    max-width: calc(100vw - 20px);
    padding: 18px;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.16), rgba(248, 250, 252, 0.98) 18%);
    box-shadow: -24px 0 60px rgba(16, 24, 40, 0.22);
}

.defect-editor-panel[hidden] {
    display: none;
}

.defect-editor-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 1px solid #dce6f2;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(16, 24, 40, 0.18);
}

.defect-editor-card .case-editor-header {
    min-height: 0;
    padding: 14px 18px 12px;
}

.defect-editor-card .case-editor-header p {
    margin-top: 4px;
}

.defect-editor-sections {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px 16px;
}

.defect-editor-section {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    background: #ffffff;
}

.defect-editor-section > :last-child {
    margin-bottom: 0;
}

.defect-editor-jira-card {
    background:
        radial-gradient(circle at top left, rgba(0, 98, 190, 0.08), transparent 34%),
        #fbfdff;
}

.defect-editor-armoury-card {
    background:
        radial-gradient(circle at bottom right, rgba(18, 137, 67, 0.07), transparent 36%),
        #ffffff;
}

.defect-editor-readonly-grid,
.jira-link-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 8px 0 0;
}

.defect-editor-readonly-grid > div,
.jira-link-preview-grid > div {
    min-width: 0;
}

.defect-editor-readonly-grid .span-2,
.jira-link-preview-grid .span-2 {
    grid-column: 1 / -1;
}

.defect-editor-readonly-grid dt,
.jira-link-preview-grid dt {
    color: var(--muted);
    font-size: 12px;
}

.defect-editor-readonly-grid dd,
.jira-link-preview-grid dd {
    margin: 4px 0 0;
    color: #182436;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.defect-editor-readonly-grid .defect-ticket-edit-field dd {
    font-weight: 400;
}

.defect-editor-readonly-grid .defect-ticket-description-readonly {
    font-weight: 400;
}

.defect-editor-readonly-grid .defect-ticket-edit-field .k-input,
.defect-editor-readonly-grid .defect-ticket-edit-field .k-textarea,
.defect-editor-readonly-grid .defect-ticket-edit-field .k-input-inner,
.defect-editor-readonly-grid .defect-ticket-description-readonly .k-textarea,
.defect-editor-readonly-grid .defect-ticket-description-readonly .k-input-inner {
    width: 100%;
}

.defect-editor-readonly-grid .defect-ticket-edit-field .k-textarea,
.defect-editor-readonly-grid .defect-ticket-edit-field textarea,
.defect-editor-readonly-grid .defect-ticket-description-readonly .k-textarea,
.defect-editor-readonly-grid .defect-ticket-description-readonly textarea {
    min-height: 96px;
}

.defect-editor-readonly-grid .defect-ticket-edit-field textarea,
.defect-editor-readonly-grid .defect-ticket-description-readonly textarea {
    box-sizing: border-box;
    overflow-y: hidden;
}

.defect-editor-readonly-grid .defect-ticket-description-readonly textarea[disabled],
.defect-editor-readonly-grid .defect-ticket-description-readonly .k-disabled .k-input-inner {
    color: #182436;
    cursor: default;
    opacity: 1;
    -webkit-text-fill-color: #182436;
}

.defect-editor-panel .defect-detail-ellipsis {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jira-link-change-box {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 12px;
}

.jira-link-change-box label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.jira-link-change-box .k-textbox,
.jira-link-change-box .k-input {
    width: 100%;
    min-width: 0;
}

.form-help {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.defect-editor-form-grid {
    margin: 0;
    padding: 0;
}

.defect-run-case-editor {
    min-width: 0;
    margin-top: 14px;
}

.defect-run-case-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 10px;
}

.defect-run-case-editor-heading h4 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.defect-run-case-editor-heading small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.defect-run-case-grid,
.defect-run-case-picker-grid {
    min-width: 0;
}

.defect-run-case-title-link {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #164f8f;
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.defect-run-case-title-link:hover,
.defect-run-case-title-link:focus-visible {
    color: var(--brand);
    text-decoration: underline;
    outline: 0;
}

.defect-run-case-picker-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.defect-run-case-section-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.defect-run-case-section-field .k-dropdowntree {
    width: 100%;
    min-width: 0;
}

.defect-run-case-picker-grid .k-grid-content {
    max-height: 420px;
    overflow-y: auto;
}

#defectsGrid .k-grid-toolbar {
    align-items: center;
}

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

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.project-summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.project-summary-metrics .metric-card {
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 84px;
    padding: 12px;
    text-align: center;
}

.project-summary-metrics .metric-card > div {
    flex: 1 1 auto;
    text-align: center;
}

.project-summary-metrics .metric-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
}

.project-summary-metrics .metric-icon .k-icon {
    font-size: 16px;
}

.project-summary-metrics .metric-card p,
.project-summary-metrics .metric-card small {
    line-height: 1.35;
    font-size: 12px;
}

.project-summary-metrics .metric-card strong {
    margin: 4px 0;
    font-size: 24px;
    line-height: 1.18;
}

.metric-card,
.detail-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.04);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 116px;
    padding: 18px;
}

.metric-card > div {
    min-width: 0;
}

.metric-card p,
.metric-card small {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.metric-card strong {
    display: block;
    margin: 6px 0;
    color: #101828;
    font-size: 30px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.metric-icon {
    display: grid;
    flex: 0 0 50px;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.metric-icon.blue {
    background: #e6f1fa;
    color: var(--brand);
}

.metric-icon.green {
    background: #e8f7ef;
    color: #128943;
}

.metric-icon.orange {
    background: #fff3e2;
    color: #c76c00;
}

.metric-icon.red {
    background: #fdecec;
    color: #cf2e2e;
}

.metric-icon.purple {
    background: #f2edf8;
    color: #6f3aa8;
}

#projectsGrid {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #ffffff;
}

#testRunsGrid,
#runCasesGrid,
#defectsGrid,
#dashboardRunsGrid,
#dashboardDefectsGrid,
#dashboardAssignedCasesGrid,
#dashboardPendingCasesGrid,
#dashboardQualityMetricsGrid,
#dashboardQualityCasesGrid,
#dashboardMemberWorkloadGrid,
#selectedCaseStepGrid,
#expandedCaseStepGrid,
.case-grid {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

#expandedCaseStepGrid {
    min-height: 360px;
}

#expandedCaseStepGrid .k-grid-content {
    min-height: 280px;
    max-height: clamp(280px, 45vh, 520px);
    overflow-y: auto;
}

#expandedCaseStepGrid .k-grid-norecords {
    min-height: 280px;
}

#projectsGrid .k-grid-header {
    background: #f8fafc;
}

#projectsGrid .k-grid-content tr.k-selected,
#projectsGrid .k-grid-content tr.k-state-selected {
    background: var(--brand-subtle);
}

#projectsGrid .k-grid-norecords,
#testGroupsGrid .k-grid-norecords,
#projectTagsGrid .k-grid-norecords,
.section-case-grid .k-grid-norecords {
    display: grid;
    place-items: center;
    min-height: 180px;
    width: 100%;
    color: var(--text-muted);
    text-align: center;
}

#testGroupsGrid .k-grid-norecords-template,
#projectTagsGrid .k-grid-norecords-template,
.section-case-grid .k-grid-norecords-template,
.grid-empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    width: 100%;
    color: var(--text-muted);
    text-align: center;
}

.section-case-groups {
    display: grid;
    gap: 18px;
}

.section-case-groups[hidden] {
    display: none;
}

.section-case-block {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.section-case-groups > .section-case-block {
    border-bottom: 1px solid #4b5563;
    padding-bottom: 18px;
}

.section-case-block-content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.section-case-block-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.section-case-block-header h2 {
    margin: 0;
    color: #1f2a3a;
    font-size: 18px;
    transition: color 0.22s ease;
}

.section-case-block-header h2.section-case-title-jump-highlight {
    color: #f97316;
}

.section-case-block-header p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.section-case-block-title {
    flex: 1 1 260px;
    min-width: 0;
}

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

.run-section-title-row h2 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.run-section-remove-icon-button.k-button {
    flex: 0 0 auto;
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-color: #f1b4b4 !important;
    color: var(--danger) !important;
    background: #fff5f5 !important;
}

.run-section-remove-icon-button.k-button:hover,
.run-section-remove-icon-button.k-button:focus-visible {
    border-color: var(--danger) !important;
    color: #ffffff !important;
    background: var(--danger) !important;
}

.run-section-case-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.run-section-priority-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.run-section-priority-cell {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    min-height: 24px;
    min-inline-size: 30px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #233246;
    line-height: 1.1;
}

.run-section-priority-cell strong {
    color: var(--text-strong);
    font-size: 12px;
    line-height: 1;
}

.run-section-priority-cell.critical,
.run-priority-metric-cell.critical {
    border-color: var(--priority-critical-border);
    background: var(--priority-critical-bg);
}

.run-section-priority-cell.high,
.run-priority-metric-cell.high {
    border-color: var(--priority-high-border);
    background: var(--priority-high-bg);
}

.run-section-priority-cell.medium,
.run-priority-metric-cell.medium {
    border-color: var(--priority-medium-border);
    background: var(--priority-medium-bg);
}

.run-section-priority-cell.low,
.run-priority-metric-cell.low {
    border-color: var(--priority-low-border);
    background: var(--priority-low-bg);
}

.run-priority-metric-cell.deprecated {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.run-priority-metric-cell.not-run {
    border-color: #d0d5dd;
    background: #f8fafc;
}

.section-case-children {
    display: grid;
    gap: 18px;
    min-width: 0;
    margin-top: 6px;
    padding-left: 6px;
    border-left: 2px solid var(--brand-border);
}

.section-case-children:empty {
    display: none;
}

.section-case-grid-empty-compact .k-grid-header,
.section-case-grid-empty-compact .k-grid-container,
.section-case-grid-empty-compact .k-grid-content,
.section-case-grid-empty-compact .k-grid-norecords {
    display: none;
}

.section-case-grid-empty-compact .k-grid-toolbar {
    border-bottom: 0;
}

.tag-editor-card,
.tag-editor-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tag-editor-panel[hidden],
#tagEditorEmpty[hidden] {
    display: none;
}

.tag-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.tag-editor-header .heading-actions {
    flex-wrap: wrap;
}

.tag-editor-danger-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.tag-editor-danger-actions[hidden] {
    display: none;
}

.tag-editor-header h2 {
    margin: 0;
    font-size: 18px;
}

.tag-editor-header p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.tag-editor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-width: 0;
}

.tag-editor-grid label,
.tag-color-field,
.tag-preview-field {
    display: grid;
    gap: 8px;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.tag-editor-grid .k-input,
.tag-editor-grid .k-textbox,
.tag-editor-grid .k-textarea,
.tag-editor-grid .k-picker,
.tag-editor-grid .k-colorpicker {
    width: 100%;
    min-width: 0;
}

.tag-color-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.tag-color-control .k-colorpalette {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.tag-color-control .k-colorpalette table {
    max-width: 100%;
}

.tag-editor-preview {
    min-height: 36px;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.tag-editor-actions {
    flex-wrap: wrap;
}

.tag-editor-actions .k-button {
    flex: 1 1 min(150px, 100%);
    min-width: min(150px, 100%);
}

.archive-confirm-content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.archive-confirm-content label {
    display: grid;
    gap: 7px;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.archive-confirm-message,
.archive-confirm-warning,
.archive-confirm-hint {
    margin: 0;
    overflow-wrap: anywhere;
}

.archive-confirm-message {
    color: var(--text-strong);
    font-weight: 700;
}

.archive-confirm-warning {
    color: var(--danger);
}

.archive-confirm-hint {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .tag-color-control {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.project-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.project-open-link {
    min-width: 0;
    overflow: hidden;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-open-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.project-open-link.disabled {
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
    text-decoration: none;
}

.default-project-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e6f1fa;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.grid-subtitle {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.k-grid .numeric-cell {
    text-align: right;
}

.case-grid-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.22s ease;
}

.case-grid-title.is-newly-created {
    color: #f97316;
}

.case-grid .case-grid-title.case-deep-link-title-highlight,
.case-grid .k-selected .case-grid-title.case-deep-link-title-highlight,
.case-grid .k-state-selected .case-grid-title.case-deep-link-title-highlight {
    color: #f97316 !important;
}

.case-attachment-panel,
.case-attachment-editor,
.run-case-attachment-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.case-attachment-editor {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.case-attachment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.case-attachment-heading h3,
.case-attachment-heading h4 {
    margin: 0;
}

.case-attachment-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.attachment-count-label {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 10px;
    min-width: 0;
}

.attachment-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.attachment-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    flex: 0 0 56px;
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-thumb.is-file {
    border: 1px solid #dbe4ee;
}

.attachment-card-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.attachment-card-body strong {
    overflow: hidden;
    color: #182436;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-card-body span {
    color: var(--muted);
    font-size: 12px;
}

.attachment-card-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment-card-actions button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #233246;
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    cursor: pointer;
}

.attachment-card-actions button:hover {
    border-color: var(--brand-border);
    color: var(--brand);
}

.attachment-card-actions .attachment-delete-btn {
    color: var(--danger);
}

.case-attachment-editor .k-upload {
    border-radius: 14px;
}

.case-selection-help {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin-top: 12px;
}

.case-selection-help[hidden] {
    display: none;
}

.selected-test-run-chip-slot[hidden] {
    display: none;
}

.case-test-run-dialog label {
    display: grid;
    gap: 8px;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.case-test-run-dialog .k-dropdownlist {
    width: 100%;
}

#testGroupsGrid .k-grid-toolbar,
#testRunsGrid .k-grid-toolbar,
#testGroupsSortGrid .k-grid-toolbar,
.section-case-grid .k-grid-toolbar,
.section-case-sort-grid .k-grid-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#testGroupsGrid .k-grid-search,
#testRunsGrid .k-grid-search {
    margin-left: auto;
}

#testGroupsSortGrid .k-grid-toolbar {
    justify-content: flex-end;
}

.section-case-sort-grid .k-grid-toolbar {
    justify-content: flex-end;
}

.section-case-grid .k-grid-toolbar .k-spacer {
    display: inline-flex;
    flex: 1;
}

.section-grid-sort-cases-btn,
.section-grid-finish-case-sort-btn {
    margin-left: auto;
}

.drag-cell {
    text-align: center;
}

.group-drag-handle,
.case-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--muted);
    cursor: grab;
}

.group-drag-handle:active,
.case-drag-handle:active {
    cursor: grabbing;
}

.grid-sort-hint {
    display: table;
    border: 1px solid var(--brand-border);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(31, 41, 51, 0.16);
}

.grid-sort-placeholder td {
    background: var(--brand-subtle) !important;
}

.status-pill,
.risk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 700;
}

.risk-pill {
    margin-left: 6px;
}

.status-pill.active {
    background: #dff6e8;
    color: #12783c;
}

.status-pill.draft,
.status-pill.not_run {
    background: #e9edf3;
    color: #495568;
}

.status-pill.in_progress {
    background: #e6f1fa;
    color: var(--brand);
}

.status-pill.completed,
.status-pill.passed {
    background: #dff6e8;
    color: #12783c;
}

.status-pill.failed,
.risk-pill.critical {
    background: #fde7e7;
    color: #c62828;
}

.status-pill.blocked,
.status-pill.deprecated {
    background: #fff0d8;
    color: #a35a00;
}

.status-pill.skipped {
    background: #f2edf8;
    color: #6f3aa8;
}

.status-pill.archived {
    background: #e9edf3;
    color: #495568;
}

.status-pill.jira-status-new,
.status-pill.jira-status-unlinked {
    background: #edf2ff;
    color: #344b8e;
}

.status-pill.jira-status-indeterminate,
.status-pill.jira-status-in-flight {
    background: #fff4d6;
    color: #8a5c00;
}

.status-pill.jira-status-done,
.status-pill.jira-status-completed {
    background: #dff6e8;
    color: #12783c;
}

.status-pill.jira-status-unknown {
    background: #e9edf3;
    color: #495568;
}

.risk-pill.low {
    background: #e2f5e9;
    color: #15783e;
}

.risk-pill.medium {
    background: #fff0dc;
    color: #b65f00;
}

.risk-pill.high {
    background: #fde7e7;
    color: #c62828;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin: 2px 4px 2px 0;
    padding: 0 8px;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    background: var(--tag-background-color, #ffffff);
    color: var(--tag-text-color, #000000);
    font-size: 12px;
    font-weight: 700;
}

.tag-chip.archived {
    opacity: 0.6;
}

.grid-progress strong {
    display: inline-block;
    min-width: 36px;
    margin-right: 8px;
}

.grid-progress span,
.progress-track {
    display: inline-block;
    width: 74px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
    vertical-align: middle;
}

.grid-progress i,
.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.project-detail-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.case-workspace,
.run-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 26px 28px;
}

.case-workspace.editor-active {
    grid-template-columns: 1fr;
}

.case-workspace.group-active {
    grid-template-columns: 1fr;
}

.case-group-panel,
.case-list-panel,
.run-list-panel {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.group-grid-panel {
    min-width: 0;
}

.group-editor-form {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.group-editor-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.group-editor-form .k-input,
.group-editor-form .k-textbox,
.group-editor-form .k-textarea {
    width: 100%;
}

.group-editor-actions {
    flex-wrap: wrap;
}

.text-action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.case-detail-panel,
.run-detail-panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.run-index-workspace {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 28px;
}

.run-index-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.run-index-heading {
    align-items: flex-start;
}

.run-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
    gap: 12px;
    align-items: end;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.run-filter-bar label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.run-filter-bar .k-dropdownlist,
.run-filter-bar .k-picker {
    width: 100%;
    min-width: 0;
}

.run-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.run-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 12px;
    min-width: 0;
}

.run-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.04);
}

.run-summary-card > div {
    min-width: 0;
}

.run-summary-card p,
.run-summary-card small {
    margin: 0;
    color: var(--muted);
}

.run-summary-card strong {
    display: block;
    margin: 6px 0;
    color: #101828;
    font-size: 30px;
    line-height: 1.12;
}

.run-grid-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

#testRunsGrid .k-grid-toolbar .run-sort-control,
#testRunsGrid .k-grid-toolbar .k-dropdownlist {
    flex: 0 0 150px;
    margin-left: 0;
    width: 150px;
}

.run-icon-button:hover {
    background: var(--brand-subtle);
    color: var(--brand);
}

.run-name-link {
    display: block;
    overflow: hidden;
    color: var(--brand);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.run-name-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.run-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    background: var(--brand-subtle);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.run-duplicate-dialog-content {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.run-duplicate-dialog-content label {
    display: grid;
    gap: 6px;
    color: var(--text-strong);
    font-weight: 700;
}

.run-duplicate-dialog-content input,
.run-duplicate-dialog-content .k-textbox {
    width: 100%;
}

.run-chip.environment {
    border-color: #d6bde8;
    background: #f2edf8;
    color: #6f3aa8;
}

.run-muted-cell {
    color: var(--muted);
    font-size: 12px;
}

.run-due-overdue {
    color: var(--danger);
    font-weight: 700;
}

.run-progress-cell {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 10px;
    align-items: center;
    min-width: 0;
}

.run-progress-cell span {
    color: #243246;
    font-size: 12px;
    font-weight: 700;
}

.run-progress-cell strong {
    color: var(--text-muted);
    font-size: 12px;
}

.run-version-summary-detail {
    display: grid;
    gap: 12px;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fbff 0%, #eef6f3 100%);
}

.run-version-summary-heading {
    display: grid;
    gap: 3px;
}

.run-version-summary-heading strong {
    color: var(--text-strong);
    font-size: 14px;
}

.run-version-summary-heading span,
.run-version-summary-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.run-version-summary-list {
    display: grid;
    gap: 8px;
}

.run-version-summary-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(120px, .6fr) minmax(260px, 1.8fr) minmax(140px, .8fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .82);
}

.run-version-summary-version,
.run-version-summary-count,
.run-version-summary-statuses,
.run-version-summary-latest {
    min-width: 0;
}

.run-version-summary-version {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.run-version-summary-version strong,
.run-version-summary-latest strong {
    overflow-wrap: anywhere;
}

.run-version-current-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--brand-subtle);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.run-version-summary-count span {
    color: var(--brand);
    font-size: 18px;
    font-weight: 800;
}

.run-version-summary-count small,
.run-version-summary-latest span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.run-version-summary-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.run-version-status-chip {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9edf3;
    color: #495568;
    font-size: 11px;
    font-weight: 700;
}

.run-version-status-chip small {
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.run-version-status-chip strong {
    color: inherit;
    font-size: 13px;
}

.run-version-status-chip.passed {
    background: #dff6e8;
    color: #12783c;
}

.run-version-status-chip.failed {
    background: #fde7e7;
    color: #c62828;
}

.run-version-status-chip.blocked,
.run-version-status-chip.deprecated {
    background: #fff0d8;
    color: #a35a00;
}

.run-version-status-chip.skipped {
    background: #f2edf8;
    color: #6f3aa8;
}

.run-version-summary-latest {
    justify-self: end;
    text-align: right;
}

@media (max-width: 640px) {
    .run-version-summary-row {
        grid-template-columns: 1fr;
    }

    .run-version-summary-latest {
        justify-self: stretch;
        text-align: left;
    }
}

.run-progress-track {
    grid-column: 1 / -1;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.run-progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.run-defect-count-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #f0b9b9;
    border-radius: 999px;
    background: #fff3f3;
    color: var(--danger);
    font-weight: 800;
    text-decoration: none;
}

.run-defect-count-link:hover {
    border-color: var(--danger);
    background: #ffe5e5;
    color: var(--danger);
    text-decoration: none;
}

.run-result-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.run-result-bars,
.run-result-counts {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.run-result-bars {
    height: 4px;
}

.run-result-bars span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: 999px;
}

.run-result-counts span {
    flex: 1 1 0;
    min-width: 22px;
    color: #243246;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.run-result-bars .pass {
    background: #128943;
}

.run-result-bars .fail {
    background: #cf2e2e;
}

.run-result-bars .blocked {
    background: #c76c00;
}

.run-result-bars .retest {
    background: #6f3aa8;
}

.run-result-bars .not-run {
    background: #96a1ad;
}

.run-result-counts .pass {
    color: #128943;
}

.run-result-counts .fail {
    color: #cf2e2e;
}

.run-result-counts .blocked {
    color: #c76c00;
}

.run-result-counts .retest {
    color: #6f3aa8;
}

.run-assignee {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #243246;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.run-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #243246;
    cursor: pointer;
}

.run-icon-button.danger:hover {
    border-color: #f0b6b6;
    background: #fdecec;
    color: var(--danger);
}

.case-editor-panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.case-editor-card {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.case-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #fbfdff;
}

.case-editor-header h2 {
    margin: 0;
    font-size: 22px;
}

.case-editor-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.case-editor-grid {
    padding: 18px 22px 0;
}

.case-editor-footer-fields {
    padding-top: 6px;
    padding-bottom: 20px;
}

.case-version-header-actions {
    justify-content: flex-end;
}

.case-version-select-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.case-version-select-label .k-dropdownlist {
    max-width: 100%;
}

.case-version-loading {
    padding: 20px 22px;
}

.case-version-field-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.case-version-diff-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid #ffd29b;
    border-radius: 999px;
    background: #fff8ed;
    color: #b54708;
    cursor: help;
    font-size: 13px;
}

.case-version-diff-icon:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.28);
    outline-offset: 2px;
}

.case-version-step-input-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.case-version-step-input-wrap .step-row-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.case-version-step-diff-icon {
    margin-top: 8px;
}

#caseVersionContent[hidden] {
    display: none;
}

.case-step-editor {
    padding: 8px 22px 6px;
}

.case-step-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.case-step-editor-header h3 {
    margin: 0;
    font-size: 18px;
}

.case-version-step-header {
    justify-content: flex-start;
}

.step-editor-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

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

.step-editor-table thead th {
    height: 42px;
    border-bottom: 1px solid var(--line);
    background: #f8fafd;
    color: #39485a;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    padding: 0 12px;
}

.step-editor-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f6;
    vertical-align: top;
}

.step-editor-table tbody tr:last-child td {
    border-bottom: 0;
}

.step-col-order,
.step-order-cell {
    width: 80px;
}

.step-col-actions,
.step-action-cell {
    width: 168px;
}

.step-order-pill {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef3fa;
    color: #2f3f53;
    font-size: 12px;
    font-weight: 700;
}

.step-row-input {
    width: 100%;
    min-height: 78px;
    border: 1px solid #d4dde8;
    border-radius: 6px;
    resize: vertical;
    padding: 8px 10px;
    font: inherit;
    color: #152235;
    background: #ffffff;
}

.step-row-input:focus {
    outline: 0;
    border-color: var(--brand-border);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.case-version-step-table .step-row-input {
    background: #fbfdff;
}

.case-version-step-table .step-row-input:focus {
    border-color: #d4dde8;
    box-shadow: none;
}

.step-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.step-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 1px solid #d4dde8;
    border-radius: 6px;
    background: #ffffff;
    color: #3b4a5c;
    cursor: pointer;
}

.step-row-button:hover {
    border-color: var(--brand-border);
    background: var(--brand-subtle);
    color: var(--brand);
}

.step-row-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.step-row-button.danger:hover {
    border-color: #e5b9b9;
    background: #fdecec;
    color: #b12929;
}

.structure-tree {
    min-height: 140px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
}

.step-list {
    display: grid;
    gap: 10px;
    margin: 8px 0 16px;
    padding-left: 20px;
    color: #243246;
}

.step-list li strong {
    display: block;
}

.step-list li span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.case-detail-text-block,
.run-case-text-block {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0;
}

.compact-metrics .metric-card {
    min-height: 86px;
    padding: 14px;
}

.compact-metrics .metric-card strong {
    font-size: 22px;
}

.detail-card {
    padding: 18px;
}

.detail-card.compact {
    padding: 16px;
}

.detail-header,
.detail-title-row,
.detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.detail-header-actions .k-button {
    width: 32px;
    height: 32px;
    padding: 0;
}

.case-detail-top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
}

.case-detail-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.case-version-pill {
    background: #ffffff;
    border: 1px solid #d5d9e2;
    color: #111827;
}

.case-version-pill.is-clickable {
    cursor: pointer;
    user-select: none;
}

.case-version-pill.is-clickable:hover,
.case-version-pill.is-clickable:focus-visible {
    border-color: var(--brand-border);
    color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-ring);
    outline: 0;
}

.detail-card h2 {
    margin: 0;
    font-size: 18px;
}

.detail-title-row {
    min-width: 0;
}

.detail-body h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 18px 0 0;
    font-size: 20px;
}

.detail-body h4 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #101828;
    font-size: 20px;
}

.defect-detail-section {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    background: #ffffff;
}

.defect-detail-section + .defect-detail-section {
    margin-top: 12px;
}

.defect-detail-jira-section {
    background:
        radial-gradient(circle at top left, rgba(0, 98, 190, 0.08), transparent 34%),
        #fbfdff;
}

.defect-detail-armoury-section {
    background:
        radial-gradient(circle at bottom right, rgba(18, 137, 67, 0.07), transparent 36%),
        #ffffff;
}

.defect-detail-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 12px;
}

.defect-detail-section-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.defect-detail-section-heading small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.detail-body p,
.empty-detail {
    color: var(--muted);
    line-height: 1.55;
}

.detail-body dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 18px 0;
}

.defect-detail-section dl {
    margin: 10px 0 0;
}

.defect-detail-section > :last-child {
    margin-bottom: 0;
}

.defect-detail-armoury-section .detail-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 12px;
}

.detail-body dl > div {
    min-width: 0;
}

.detail-body dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-body dd {
    margin: 4px 0 0;
    color: #182436;
    font-weight: 700;
}

.detail-body .defect-detail-ellipsis {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-title-row .status-pill.defect-detail-ellipsis {
    display: inline-flex;
    flex: 0 1 auto;
    max-width: 45%;
}

.organization-summary dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 18px 0 0;
}

.organization-summary dt {
    color: var(--muted);
    font-size: 12px;
}

.organization-summary dd {
    margin: 4px 0 0;
    color: #182436;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.organization-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.organization-overview-page .organization-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.organization-overview-page .metric-card {
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
}

.organization-overview-page .metric-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.organization-overview-page .metric-icon .k-icon {
    font-size: 18px;
}

.organization-overview-page .metric-card p {
    font-size: 12px;
    line-height: 1.35;
}

.organization-overview-page .metric-card strong {
    margin: 3px 0 2px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.organization-overview-page .metric-card small {
    font-size: 12px;
    line-height: 1.35;
}

.organization-overview-page .detail-card {
    padding: 14px 16px;
}

.organization-overview-page .organization-summary dl {
    gap: 8px 14px;
    margin-top: 12px;
}

.organization-overview-page .organization-summary dt {
    font-size: 11px;
    line-height: 1.35;
}

.organization-overview-page .organization-summary dd {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.organization-overview-page .organization-billing-card {
    margin-top: 14px;
}

.organization-overview-page .organization-billing-table {
    font-size: 13px;
}

.organization-overview-page .organization-billing-table th,
.organization-overview-page .organization-billing-table td {
    padding: 8px 10px;
}

.organization-workspace {
    grid-template-columns: minmax(0, 1fr);
}

.organization-workspace .detail-actions {
    flex-wrap: wrap;
}

.profile-content {
    display: grid;
    align-content: start;
    gap: 18px;
}

.profile-content .content-heading,
.profile-content .metric-grid {
    margin-bottom: 0;
}

.profile-content > .detail-card {
    min-width: 0;
}

.profile-content .detail-header {
    align-items: flex-start;
}

.profile-content .detail-header p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.organization-action-link {
    justify-content: center;
    white-space: normal;
    text-align: center;
}

.organization-access-card {
    margin-top: 20px;
}

.organization-personal-plan-note {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: #f8fbff;
    color: #4b5a6b;
}

.organization-billing-card {
    margin-top: 20px;
}

.organization-billing-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.organization-billing-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.organization-billing-table th,
.organization-billing-table td {
    border-bottom: 1px solid #e4e7ec;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.organization-billing-table td:first-child {
    min-width: 0;
}

.organization-billing-table strong,
.organization-billing-table span {
    display: block;
    overflow-wrap: anywhere;
}

.organization-billing-table span {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}

.billing-admin-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 24px;
}

.billing-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 16px;
    max-width: 1440px;
}

.billing-admin-header h1 {
    margin: 0 0 4px;
    font-size: 28px;
}

.billing-admin-header p {
    margin: 0;
    color: #667085;
}

.billing-default-plan-banner {
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 8px 10px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.billing-default-plan-banner span + span {
    margin-left: 14px;
}

#billingAdminTabs {
    max-width: 1440px;
    margin: 0 auto;
}

.billing-admin-tab {
    padding: 16px;
}

.billing-admin-grid-stack {
    display: grid;
    gap: 16px;
}

.billing-admin-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.billing-admin-org-stack,
.billing-entitlement-audit-section {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.billing-organization-select-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    min-width: 0;
}

.billing-organization-select-row h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.billing-organization-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.billing-subscription-section {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.billing-subscription-content-grid {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.billing-selected-organization {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.billing-selected-organization > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.billing-selected-organization strong {
    overflow-wrap: anywhere;
}

.billing-selected-organization span {
    color: #667085;
    font-size: 13px;
}

.billing-organization-picker-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#organizationPickerKeyword {
    width: min(460px, 100%);
}

.billing-admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.billing-admin-section-heading h2 {
    margin: 0;
    font-size: 18px;
}

.billing-admin-section-heading span {
    color: #667085;
    overflow-wrap: anywhere;
}

.billing-admin-detail-panel {
    min-width: 0;
}

.billing-plan-name {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.billing-grid-entity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.billing-grid-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2937;
    font-weight: 700;
    white-space: nowrap;
}

.billing-grid-secondary {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #667085;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

.billing-default-plan-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 7px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.billing-admin-empty {
    color: #667085;
    border: 1px dashed #cbd5e1;
    padding: 16px;
    background: #fff;
}

.billing-entitlement-audit-heading {
    margin-top: 0;
}

.billing-entitlement-audit-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.billing-entitlement-audit-controls .k-datetimepicker {
    width: min(240px, 100%);
}

.billing-expired-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f5f7fb;
}

.billing-expired-panel {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.billing-expired-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #b42318;
    background: #fee4e2;
}

.billing-expired-eyebrow {
    margin: 0 0 6px;
    color: #475467;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.billing-expired-panel h1 {
    margin: 0;
    font-size: 28px;
}

.billing-expired-message {
    margin: 10px 0 16px;
    color: #667085;
    line-height: 1.7;
}

.billing-expired-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}

.billing-expired-meta div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
}

.billing-expired-meta dt {
    color: #667085;
}

.billing-expired-meta dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.billing-expired-actions {
    margin-top: 20px;
}

.billing-dialog-form {
    display: grid;
    gap: 12px;
}

.billing-dialog-form-extra {
    margin-top: 12px;
}

.billing-dialog-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.billing-dialog-form .k-input,
.billing-dialog-form .k-picker,
.billing-dialog-form .k-textbox,
.billing-dialog-form .k-textarea,
.billing-dialog-form select {
    width: 100%;
}

.billing-checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
}

.billing-checkbox-row input {
    width: auto;
}

.billing-limit-dialog {
    display: grid;
    gap: 12px;
    line-height: 1.7;
}

.billing-limit-dialog p {
    margin: 0;
}

.billing-limit-dialog-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 8px;
    margin: 0;
}

.billing-limit-dialog-meta div {
    min-width: 0;
    border: 1px solid #e4e7ec;
    background: #f8fafc;
    padding: 9px 10px;
}

.billing-limit-dialog-meta dt {
    color: #667085;
    font-size: 12px;
}

.billing-limit-dialog-meta dd {
    margin: 3px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.billing-limit-dialog-next {
    color: #344054;
}

.billing-subscription-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
}

.billing-subscription-current strong,
.billing-subscription-current span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.billing-subscription-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 8px;
    margin: 12px 0;
}

.billing-subscription-meta div {
    min-width: 0;
    background: #fff;
    border: 1px solid #e4e7ec;
    padding: 10px 12px;
}

.billing-subscription-meta dt {
    color: #667085;
    font-size: 12px;
}

.billing-subscription-meta dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.organization-personal-plan-note strong {
    color: #182436;
    font-size: 15px;
}

.organization-personal-plan-note p {
    margin: 0;
    line-height: 1.7;
}

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

.organization-dialog-form label {
    display: grid;
    gap: 6px;
    color: var(--text-strong);
    font-weight: 700;
}

.invitation-resend {
    margin-right: 6px;
}

.access-management-card {
    display: grid;
    gap: 16px;
}

.access-layout,
.settings-member-layout {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.access-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
}

.settings-member-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 30%);
}

.settings-dashboard-quality-card {
    margin-top: 18px;
}

#dashboardQualityMetricSettingsGrid {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.access-list-panel,
.access-detail-panel,
.settings-member-grid-panel,
.settings-member-editor {
    min-width: 0;
}

.access-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.access-detail-heading,
.compact-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.access-detail-heading h3,
.access-detail-heading p,
.compact-heading h2,
.compact-heading p {
    margin: 0;
}

.access-detail-heading p,
.compact-heading p {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.permission-matrix {
    display: grid;
    gap: 12px;
}

.permission-lock-note {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #f5c16c;
    border-radius: 10px;
    background: #fff8e8;
    color: #7a4b00;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.permission-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
}

.permission-group h4 {
    margin: 0;
    color: #182436;
    font-size: 14px;
}

.permission-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 8px;
}

.permission-option,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #243246;
}

.permission-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.member-role-editor {
    display: grid;
    gap: 14px;
}

.member-role-editor[hidden] {
    display: none;
}

.member-role-editor label {
    display: grid;
    gap: 6px;
    color: #4b5a6b;
    font-size: 13px;
    font-weight: 700;
}

.member-role-editor .checkbox-label {
    display: flex;
    font-weight: 700;
}

.member-project-access-section {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    min-width: 0;
}

.member-project-access-section[hidden] {
    display: none;
}

.member-project-access-heading {
    margin-bottom: 0;
}

.member-project-access-heading h4 {
    margin: 0;
    color: #182436;
    font-size: 15px;
}

.owner-transfer-layout,
.owner-transfer-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.owner-transfer-card {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.owner-transfer-form[hidden] {
    display: none;
}

.owner-transfer-current,
.owner-transfer-summary {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
    overflow-wrap: anywhere;
}

.owner-transfer-current span,
.owner-transfer-form small {
    color: var(--muted);
    font-size: 12px;
}

.owner-transfer-current strong {
    color: #182436;
    overflow-wrap: anywhere;
}

.owner-transfer-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #4b5a6b;
    font-size: 13px;
    font-weight: 700;
}

.owner-transfer-form .k-dropdownlist,
.owner-transfer-form .k-picker,
.owner-transfer-form .k-textbox {
    width: 100%;
}

.owner-transfer-summary {
    background: #fff8e8;
    color: #7a4b00;
    font-weight: 700;
}

.owner-transfer-dialog-content {
    display: grid;
    gap: 12px;
}

.owner-transfer-dialog-content p {
    margin: 0;
}

.owner-transfer-dialog-content dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.owner-transfer-dialog-content dt {
    color: var(--muted);
    font-size: 12px;
}

.owner-transfer-dialog-content dd {
    margin: 2px 0 0;
    color: #182436;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#projectMembersGrid .k-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-member-dialog {
    display: grid;
    gap: 12px;
}

.project-member-dialog p {
    margin: 0;
}

.project-member-dialog label {
    display: grid;
    gap: 8px;
    color: #4b5a6b;
    font-size: 13px;
    font-weight: 700;
}

.project-member-dialog .k-dropdownlist,
.project-member-dialog .k-picker {
    width: 100%;
}

#organizationRolesGrid,
#projectRolesGrid,
#organizationMembersGrid,
#memberProjectAccessGrid,
#projectMembersGrid {
    min-width: 0;
}

.profile-jira-status-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px 8px;
    overscroll-behavior-inline: contain;
}

.profile-jira-status-card {
    position: relative;
    display: flex;
    flex: 1 0 168px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 168px;
    min-height: 112px;
    padding: 16px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(22, 104, 163, 0.08), rgba(255, 255, 255, 0) 42%),
        var(--surface-soft);
    box-shadow: 0 10px 22px rgba(31, 41, 51, 0.06);
    overflow: hidden;
}

.profile-jira-status-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #4fb3d9);
}

.profile-jira-status-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.profile-jira-status-value {
    color: var(--text-strong);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.attachment-management-workspace,
.attachment-management-content {
    min-height: calc(100vh - 64px);
}

.attachment-management-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.attachment-file-manager {
    flex: 1 1 auto;
    min-height: 620px;
}

.attachment-file-manager .k-filemanager-toolbar .k-searchbox {
    display: none;
}

.attachment-storage-summary {
    display: grid;
    min-width: 220px;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    text-align: right;
}

.attachment-storage-summary span {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
}

.attachment-storage-summary strong {
    color: var(--text-strong);
    font-size: 18px;
    line-height: 1.2;
}

.attachment-file-name-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.attachment-file-name-cell > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-file-thumbnail {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand);
}

.attachment-file-thumbnail.attachment-file-open-link {
    text-decoration: none;
}

.attachment-file-thumbnail.attachment-file-open-link[href]:hover,
.attachment-file-thumbnail.attachment-file-open-link[href]:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-ring);
    outline: none;
}

.attachment-file-thumbnail.small {
    width: 34px;
    height: 34px;
    font-size: 18px;
}

.attachment-file-thumbnail.large {
    width: 92px;
    height: 92px;
    font-size: 32px;
}

.attachment-file-thumbnail img,
.attachment-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-file-list-card {
    display: grid;
    justify-items: center;
    align-content: start;
    width: 148px;
    min-height: 156px;
    min-width: 0;
    gap: 8px;
    padding: 10px 8px;
    text-align: center;
}

.attachment-file-list-name {
    display: -webkit-box;
    width: 100%;
    min-height: 34px;
    min-width: 0;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.attachment-file-list-meta {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.attachment-case-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: var(--brand);
    font-weight: 700;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.attachment-preview-empty {
    display: grid;
    min-height: 100%;
    place-items: center;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.attachment-preview {
    display: grid;
    align-content: start;
    justify-items: stretch;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    text-align: left;
}

.attachment-preview-media {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.attachment-preview-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand);
    font-size: 42px;
}

.attachment-preview-icon.has-thumbnail {
    padding: 6px;
    background: #fff;
}

.attachment-preview-icon.has-thumbnail img {
    display: block;
    object-fit: contain;
}

.attachment-preview h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.attachment-preview dl {
    display: grid;
    gap: 0;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
}

.attachment-preview dl > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.attachment-preview dl > div:last-child {
    border-bottom: 0;
}

.attachment-preview dt {
    color: #6f7c8a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.attachment-preview dd {
    margin: 0;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.detail-progress {
    padding: 14px;
    border-radius: 8px;
    background: var(--surface-soft);
}

.detail-progress span:first-child {
    color: var(--muted);
}

.detail-progress strong {
    float: right;
}

.progress-track {
    width: 100%;
    margin-top: 10px;
}

.detail-actions {
    justify-content: flex-start;
    margin-top: 16px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.quick-actions button {
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #27364a;
    cursor: pointer;
}

.dashboard-workspace {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.dashboard-workspace-splitter {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.dashboard-workspace-splitter:not(.k-splitter) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 24px;
    padding: 26px 28px;
}

.dashboard-workspace-splitter:not(.k-splitter).is-stacked {
    grid-template-columns: 1fr;
}

.dashboard-workspace-splitter.k-splitter {
    border: 0;
    background: transparent;
}

.dashboard-workspace-splitter.k-splitter .k-pane {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.dashboard-workspace-splitter.k-splitter > .dashboard-content,
.dashboard-workspace-splitter.k-splitter > .dashboard-right-panel {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dashboard-workspace-splitter.k-splitter > .dashboard-content {
    padding: 26px 22px 26px 28px;
}

.dashboard-workspace-splitter.k-splitter > .dashboard-right-panel {
    padding: 26px 28px 26px 22px;
}

.dashboard-workspace-splitter.k-splitter .k-splitbar {
    position: relative;
    width: 16px;
    border: 0;
    background: transparent;
}

.dashboard-workspace-splitter.k-splitter .k-splitbar::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--line);
    transition: background 0.15s ease, width 0.15s ease;
}

.dashboard-workspace-splitter.k-splitter .k-splitbar:hover::before,
.dashboard-workspace-splitter.k-splitter .k-splitbar:focus::before {
    width: 3px;
    border-radius: 999px;
    background: var(--brand-border);
}

.dashboard-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    align-items: end;
    gap: 12px;
}

.project-toolbar.dashboard-filter-toolbar label {
    display: grid;
    gap: 6px;
    width: 100%;
    max-width: none;
    min-width: 0;
    white-space: normal;
}

.dashboard-filter-toolbar .k-dropdownlist {
    width: 100%;
    min-width: 0;
}

.dashboard-run-card {
    margin-bottom: 18px;
}

.dashboard-trend-card {
    min-width: 0;
    margin-bottom: 18px;
}

.dashboard-run-card .detail-header,
.dashboard-panel .detail-header,
.dashboard-trend-card .detail-header {
    margin-bottom: 14px;
}

#dashboardProgressTrendChart,
#dashboardDefectTrendChart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 280px;
}

#dashboardProgressTrendChart.k-chart,
#dashboardDefectTrendChart.k-chart {
    width: 100% !important;
    max-width: 100%;
}

#dashboardProgressTrendChart svg,
#dashboardDefectTrendChart svg {
    max-width: 100%;
}

.dashboard-right-panel {
    align-content: start;
    min-width: 0;
}

.dashboard-run-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.dashboard-run-toolbar span {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.dashboard-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.dashboard-metric-card {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-metric-card:hover,
.dashboard-metric-card:focus-visible,
.dashboard-metric-card.is-active {
    border-color: var(--brand-border);
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.11);
    outline: 0;
    transform: translateY(-1px);
}

.dashboard-metric-card.is-active {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.dashboard-panel[hidden] {
    display: none;
}

.dashboard-panel .detail-header {
    align-items: flex-start;
    flex-wrap: wrap;
}

.dashboard-panel .detail-header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-quality-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.dashboard-quality-layout > * {
    min-width: 0;
}

.dashboard-quality-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-quality-summary strong {
    color: #0f172a;
    font-size: 18px;
}

.dashboard-quality-summary span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-quality-metric-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-quality-metric-cell strong {
    color: var(--text-strong);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dashboard-quality-metric-cell span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.dashboard-quality-metric-cell small {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.dashboard-quality-metric-cell small.has-issues {
    color: var(--danger);
}

.dashboard-quality-metric-cell small.is-clean {
    color: var(--success);
}

.dashboard-case-title-link {
    color: var(--brand);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.dashboard-case-title-link:hover,
.dashboard-case-title-link:focus-visible {
    color: var(--brand-hover);
    text-decoration: underline;
    outline: 0;
}

.dashboard-aging-pill,
.dashboard-quality-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 2px 4px 2px 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dashboard-aging-pill.normal {
    background: #ecfdf3;
    color: #087443;
}

.dashboard-aging-pill.watch {
    background: #fff7d6;
    color: #925400;
}

.dashboard-aging-pill.warning {
    background: #fff3e2;
    color: #b45309;
}

.dashboard-aging-pill.critical {
    background: #fdecec;
    color: #b42318;
}

.defect-aging-watch td {
    background: #fffdf2;
}

.defect-aging-warning td {
    background: #fff7ed;
}

.defect-aging-critical td {
    background: #fff1f2;
}

.dashboard-quality-count {
    display: inline-block;
    min-width: 32px;
    text-align: right;
}

.dashboard-quality-count.has-issues {
    color: var(--danger);
}

.dashboard-quality-count.is-clean {
    color: var(--success);
}

.dashboard-quality-tag {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-strong);
}

.dashboard-sidebar-card {
    margin-top: 16px;
    box-shadow: none;
}

.dashboard-activity-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-activity-list li {
    min-width: 0;
}

.dashboard-activity-list li.empty-detail {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.dashboard-activity-link {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-activity-link:hover,
.dashboard-activity-link:focus-visible {
    border-color: var(--brand-border);
    box-shadow: 0 8px 18px rgba(31, 41, 51, 0.09);
    outline: 0;
    transform: translateY(-1px);
}

.dashboard-activity-link strong {
    color: #182436;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.dashboard-activity-link span,
.dashboard-activity-link small {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-member-list {
    display: grid;
    gap: 8px;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.member-row span {
    color: var(--muted);
    font-size: 12px;
}

.defect-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 26px 28px;
}

.setting-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.setting-summary-list dt {
    color: var(--muted);
    font-size: 12px;
}

.setting-summary-list dd {
    margin: 2px 0 0;
    color: #182436;
    font-weight: 700;
}

.settings-jira-integration-stack {
    display: grid;
    gap: 20px;
}

.run-detail-workspace {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 26px 28px;
}

.run-detail-outer-splitter {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.run-detail-outer-splitter:not(.k-splitter) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
}

.run-detail-outer-splitter.k-splitter {
    border: 0;
    background: transparent;
}

.run-detail-outer-splitter.k-splitter > .k-pane {
    min-width: 0;
    min-height: 0;
    border: 0;
    background: transparent;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar {
    position: relative;
    height: 16px;
    border: 0;
    background: transparent;
    cursor: default;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    transform: translateY(-50%);
    background: #d8e0ea;
    transition: background 0.15s ease, height 0.15s ease;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar .k-resize-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    margin: 0;
    transform: translate(-50%, -50%);
}

.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-prev,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-next,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-prev,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-next {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 16px;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    color: #344054;
    cursor: pointer;
    transition: color 0.15s ease;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-prev::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-next::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-prev::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 8px;
    transform: translate(-50%, -50%);
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #d8e0ea;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-prev .k-icon,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-next .k-icon,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-prev .k-icon,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-next .k-icon {
    position: static;
    z-index: 1;
    margin: 0;
    color: inherit;
    transform: none;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar:hover::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:active::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within::before {
    height: 2px;
    background: #64748b;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-collapse-prev,
.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-collapse-next,
.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-expand-prev,
.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-expand-next,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-collapse-prev,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-collapse-next,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-expand-prev,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-expand-next,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-prev:hover,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-next:hover,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-prev:hover,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-next:hover {
    color: #ffffff;
}

.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-collapse-prev::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-collapse-next::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-expand-prev::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:hover .k-expand-next::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-collapse-prev::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-collapse-next::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-expand-prev::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar:focus-within .k-expand-next::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-prev:hover::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-collapse-next:hover::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-prev:hover::before,
.run-detail-outer-splitter.k-splitter > .k-splitbar .k-expand-next:hover::before {
    border-color: #64748b;
    background: #64748b;
}

.run-detail-header-band {
    min-width: 0;
}

.run-detail-body-pane {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.run-detail-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
}

.run-detail-title-actions {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.run-detail-title-block {
    flex: 0 1 auto;
    width: fit-content;
    max-width: min(400px, 100%);
    min-width: 0;
    cursor: help;
}

.run-detail-title-block h1 {
    margin: 0 0 8px;
    max-width: 100%;
    overflow: hidden;
    color: #101828;
    font-size: 30px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.run-detail-title-block p {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.run-title-hover-content {
    display: grid;
    gap: 8px;
    max-width: 360px;
    overflow-wrap: anywhere;
}

.run-title-hover-content strong {
    color: var(--text-strong);
    font-size: 14px;
}

.run-title-hover-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.run-detail-inline-metrics {
    display: flex;
    justify-content: flex-start;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.run-detail-inline-metrics .metric-card {
    gap: 10px;
    flex: 0 0 auto;
    min-height: 0;
    width: auto;
    padding: 10px 12px;
}

.run-detail-inline-metrics .metric-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

.run-detail-inline-metrics .metric-card p {
    font-size: 12px;
}

.run-detail-inline-metrics .metric-card strong {
    margin: 3px 0 0;
    font-size: 21px;
}

.run-detail-inline-metrics .run-priority-metric-card,
.run-detail-inline-metrics .run-result-metric-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    flex-basis: 520px;
    width: 520px;
}

.run-priority-metric-heading {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
}

.run-priority-metric-heading p {
    color: var(--muted);
    font-size: 12px;
}

.run-detail-inline-metrics .run-priority-metric-heading strong {
    margin: 2px 0 0;
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
}

.run-priority-metric-grid {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.run-priority-metric-cell {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
}

.run-stat-filter-trigger {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.run-stat-filter-trigger:hover,
.run-stat-filter-trigger:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.16);
}

.run-stat-filter-trigger:active {
    transform: translateY(1px);
}

.run-priority-metric-cell span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.run-detail-inline-metrics .run-priority-metric-cell strong {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.run-detail-action-card {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.04);
}

.run-detail-action-card .k-button {
    justify-content: center;
    white-space: nowrap;
}

.run-detail-action-card .k-split-button {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.run-detail-action-card .k-split-button .k-button {
    min-width: 0;
}

.run-detail-filter-card {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.04);
}

.run-detail-filter-card .run-case-search {
    flex: 0 1 190px;
    width: 190px;
    min-width: 150px;
    max-width: 220px;
    margin: 0;
}

.run-detail-filter-card .k-dropdownlist,
.run-detail-filter-card .k-dropdowntree,
.run-detail-filter-card .k-multiselect {
    flex: 0 1 140px;
    width: 140px;
    min-width: 110px;
    max-width: 150px;
}

.run-detail-filter-card .k-multiselect {
    width: 140px;
    max-width: 150px;
}

.run-detail-filter-card .k-dropdowntree {
    flex-basis: 150px;
    width: 150px;
    min-width: 120px;
    max-width: 150px;
}

.run-case-list-card > .run-detail-filter-card {
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 12px;
}

.run-case-tag-filter-option {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.run-case-tag-filter-option .tag-chip {
    max-width: 100%;
}

.run-case-section-popup {
    overflow: hidden;
}

.run-case-section-empty-option {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 34px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.run-case-section-empty-option input {
    flex: 0 0 auto;
    margin: 0;
}

.run-case-section-popup .k-treeview {
    min-width: max-content;
    min-height: 0;
    height: calc(var(--run-case-section-popup-height, 380px) - 84px);
    max-height: calc(var(--run-case-section-popup-height, 380px) - 84px);
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 8px;
}

.run-case-section-popup .k-treeview-leaf {
    max-width: none;
    white-space: nowrap;
}

.run-detail-columns {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.run-detail-columns:not(.k-splitter) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    gap: 16px;
}

.run-detail-columns.k-splitter {
    border: 0;
    background: transparent;
}

.run-detail-columns.k-splitter .k-pane {
    min-width: 0;
    border: 0;
    background: transparent;
}

.run-detail-columns.k-splitter .k-splitbar {
    position: relative;
    width: 12px;
    border: 0;
    background: transparent;
}

.run-detail-columns.k-splitter .k-splitbar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.15s ease, width 0.15s ease;
}

.run-detail-columns.k-splitter .k-splitbar .k-resize-handle,
.run-detail-columns.k-splitter .k-splitbar .k-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    margin: 0;
    transform: translate(-50%, -50%);
}

.run-detail-columns.k-splitter .k-splitbar:hover::before,
.run-detail-columns.k-splitter .k-splitbar:focus::before,
.run-detail-columns.k-splitter .k-splitbar:active::before {
    width: 5px;
    background: #64748b;
}

.run-case-list-column,
.run-case-result-column {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.run-case-list-column,
.run-case-list-card,
.run-case-section-groups,
.run-case-section-grid,
.run-case-section-sort-grid {
    min-width: 0;
}

.run-case-result-column {
    display: grid;
    align-content: start;
    gap: 16px;
}

.run-case-panel-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    min-width: 0;
    padding-bottom: 2px;
    background: #ffffff;
}

.run-case-panel-tabs .k-button {
    flex: 1 1 0;
    min-width: 0;
}

.run-case-panel {
    min-width: 0;
}

.run-case-panel[hidden] {
    display: none;
}

.run-case-empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 22px;
    border-style: dashed;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.run-case-empty-state[hidden] {
    display: none;
}

.run-case-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
}

.run-case-empty-state h2 {
    margin: 0;
    color: #101828;
    font-size: 20px;
    line-height: 1.25;
}

.run-case-empty-state p {
    margin: 0;
    color: #475467;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.run-case-selected-header {
    display: grid;
    align-items: start;
    justify-content: stretch;
    gap: 8px;
}

.run-case-selected-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.run-case-selected-action-buttons {
    margin-left: auto;
}

.run-case-sync-warning {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ffd29b;
    border-radius: 999px;
    background: #fff8ed;
    color: #b54708;
}

.run-case-sync-warning[hidden] {
    display: none;
}

.run-case-selected-card #selectedCaseTitle {
    margin: 12px 0;
    min-width: 0;
    color: #101828;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.run-case-selected-card .grid-subtitle,
.run-case-expanded-detail-header .grid-subtitle {
    overflow-wrap: anywhere;
}

.run-case-extra-meta-panel {
    margin: 10px 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}

.run-case-extra-meta-panel[hidden] {
    display: none;
}

.run-case-detail-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 8px;
}

.run-case-detail-meta-item {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.run-case-detail-meta-item.is-wide {
    grid-column: 1 / -1;
}

.run-case-detail-meta-item span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.run-case-detail-meta-item strong {
    min-width: 0;
    color: #233246;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.run-case-detail-meta-link {
    color: var(--brand);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.run-case-detail-meta-link:hover,
.run-case-detail-meta-link:focus-visible {
    color: var(--brand-hover);
    text-decoration: underline;
    outline: 0;
}

.run-case-section-block .section-case-block-header {
    align-items: center;
}

.run-section-case-count {
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.run-case-section-grid .k-grid-content tr {
    cursor: pointer;
}

.run-case-section-grid .k-grid-content tr.k-selected,
.run-case-section-grid .k-grid-content tr.k-state-selected {
    background: var(--brand-subtle);
}

.run-case-management-toolbar {
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.run-case-management-toolbar[hidden] {
    display: none;
}

.run-case-management-toolbar.k-toolbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.run-case-management-finish-btn.k-button {
    border-color: var(--brand) !important;
    background-color: var(--brand) !important;
    color: #ffffff !important;
}

.run-case-management-finish-btn.k-button:hover,
.run-case-management-finish-btn.k-button:focus-visible {
    border-color: var(--brand-hover) !important;
    background-color: var(--brand-hover) !important;
    color: #ffffff !important;
}

.run-case-sort-mode-btn.k-button.is-active {
    border-color: var(--brand) !important;
    background-color: #eef4ff !important;
    color: var(--brand) !important;
}

.run-section-remove-mode-btn.k-button {
    border-color: #f1b4b4 !important;
    background-color: #fff5f5 !important;
    color: var(--danger) !important;
}

.run-section-remove-mode-btn.k-button:hover,
.run-section-remove-mode-btn.k-button.k-hover,
.run-section-remove-mode-btn.k-button:focus-visible,
.run-section-remove-mode-btn.k-button.is-active {
    border-color: var(--danger) !important;
    background-color: var(--danger) !important;
    color: #ffffff !important;
}

.run-case-danger-button.k-button {
    border-color: var(--danger) !important;
    background-color: var(--danger) !important;
    color: #ffffff !important;
}

.run-case-danger-button.k-button:hover,
.run-case-danger-button.k-button.k-hover,
.run-case-danger-button.k-button:focus-visible {
    border-color: #a91f1f !important;
    background-color: #a91f1f !important;
    color: #ffffff !important;
}

.run-case-danger-button.k-button:disabled,
.run-case-danger-button.k-button.k-disabled,
.run-section-remove-mode-btn.k-button:disabled,
.run-section-remove-mode-btn.k-button.k-disabled {
    border-color: #f1b4b4 !important;
    background-color: #f8d5d5 !important;
    color: #9b2c2c !important;
}

.run-case-selection-cell {
    width: 46px;
    text-align: center;
}

.run-case-selection-cell .k-checkbox {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.case-selection-cell {
    width: 46px;
    text-align: center;
}

.case-selection-cell .k-checkbox {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.case-run-membership-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    max-width: 72px;
    min-height: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.case-run-membership-pill.is-added {
    border: 1px solid #b7e4c7;
    background: #eaf8ef;
    color: #166534;
}

.case-run-membership-pill.is-loading {
    border: 1px solid #d6e4ff;
    background: #eef4ff;
    color: var(--brand);
}

.case-management-row-ineligible .case-grid-title {
    color: #667085;
}

#manageCasesBtn.k-button.is-active {
    border-color: var(--brand) !important;
    background-color: #eef4ff !important;
    color: var(--brand) !important;
}

.run-case-section-grid .k-grid-toolbar,
.run-case-section-sort-grid .k-grid-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.run-case-section-grid .k-grid-toolbar .k-spacer {
    display: inline-flex;
    flex: 1;
}

.run-case-section-sort-btn,
.run-case-section-finish-sort-btn {
    margin-left: auto;
}

.run-case-management-dialog-content {
    display: grid;
    gap: 12px;
    color: #233246;
    line-height: 1.55;
}

.run-case-management-dialog-content p {
    margin: 0;
}

.run-case-management-dialog-content label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.run-case-management-dialog-content .k-dropdownlist,
.run-case-management-dialog-content .k-dropdowntree,
.run-case-management-dialog-content .k-picker {
    width: 100%;
}

.run-case-search {
    max-width: none;
    margin-bottom: 12px;
}

.run-case-data-grid {
    display: grid;
    gap: 12px;
    margin: 12px 0 18px;
}

.run-case-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.run-case-summary-item,
.run-case-tag-panel {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.run-case-summary-item h4,
.run-case-tag-panel h4 {
    margin: 0 0 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.run-case-summary-item p {
    margin: 0;
    color: #182436;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.run-case-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.run-case-content-grid > section:last-child {
    grid-column: 1 / -1;
}

.run-case-content-grid > .run-case-text-step-block {
    grid-column: 1 / -1;
}

.run-case-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.run-case-content-grid h4,
.run-case-selected-card > h4 {
    margin: 0 0 8px;
    color: #182436;
    font-size: 14px;
}

.run-case-expanded-detail-panel,
.run-case-editor-panel,
.run-editor-panel,
.run-reports-panel,
.run-history-panel {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    z-index: 35;
    width: 70vw;
    max-width: calc(100vw - 20px);
    padding: 18px;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.16), rgba(248, 250, 252, 0.98) 18%);
    box-shadow: -24px 0 60px rgba(16, 24, 40, 0.22);
}

.run-case-expanded-detail-panel[hidden],
.run-case-editor-panel[hidden],
.run-editor-panel[hidden],
.run-reports-panel[hidden],
.run-history-panel[hidden] {
    display: none;
}

.run-case-expanded-detail-card,
.run-case-editor-card,
.run-editor-card,
.run-reports-card,
.run-history-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(16, 24, 40, 0.18);
}

.run-case-editor-header,
.run-editor-header,
.run-reports-header,
.run-history-header {
    flex: 0 0 auto;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.run-case-editor-body,
.run-editor-body,
.run-reports-body,
.run-history-body {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 18px;
}

.run-case-step-editor {
    margin-top: 0;
}

.run-editor-column-settings {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #f8fafc;
}

.run-editor-section-heading {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.run-editor-section-heading h3 {
    margin: 0;
    color: #182436;
    font-size: 15px;
}

.run-editor-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.run-case-column-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    min-width: 0;
}

.run-case-column-checkbox-grid .k-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
}

.run-case-column-checkbox-grid .k-checkbox-label {
    margin-left: 0;
    white-space: nowrap;
}

.run-case-editor-actions,
.run-editor-actions {
    flex: 0 0 auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.run-case-expanded-detail-header {
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.run-case-expanded-detail-header h2 {
    margin: 14px 0;
    color: #101828;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.run-case-expanded-detail-body {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 18px;
}

.run-case-expanded-detail-body > h4 {
    margin: 0 0 8px;
    color: #182436;
    font-size: 15px;
}

.run-case-data-grid.expanded {
    margin: 0;
}

.run-case-expanded-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.run-case-expanded-result-history-card,
.run-case-expanded-result-card {
    min-width: 0;
}

.run-result-status-field {
    max-width: 240px;
}

.run-result-status-field .k-dropdownlist,
.run-result-status-field .k-picker {
    width: 100%;
}

.run-case-result-card textarea,
.run-case-expanded-result-card textarea {
    min-height: 86px;
    overflow: hidden;
    resize: none;
}

.run-result-history-list {
    display: grid;
    gap: 10px;
}

.run-result-history-item {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.run-result-history-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.run-result-history-meta {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.run-result-convert-defect-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.run-result-convert-defect-button:hover,
.run-result-convert-defect-button:focus-visible {
    border-color: #d97706;
    background: #fed7aa;
    color: #7c2d12;
    outline: none;
}

.run-result-convert-defect-button:disabled {
    border-color: var(--line);
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.run-result-convert-defect-button.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.run-result-history-field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.run-result-history-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.run-result-history-field p {
    margin: 0;
    color: #233246;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.run-result-defect-reference-link {
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.run-result-defect-reference-link:hover,
.run-result-defect-reference-link:focus-visible {
    color: #115e59;
    text-decoration: underline;
}

.run-complete-dialog-content,
.run-case-link-not-found-dialog-content,
.run-case-content-confirm-dialog-content {
    display: grid;
    gap: 10px;
    color: #233246;
    line-height: 1.55;
}

.run-complete-dialog-content p,
.run-case-link-not-found-dialog-content p,
.run-case-content-confirm-dialog-content p,
.case-version-restore-dialog p,
.first-section-required-dialog p {
    margin: 0;
}

.case-version-restore-dialog,
.first-section-required-dialog {
    display: grid;
    gap: 10px;
    color: #39485a;
    line-height: 1.6;
}

.first-section-required-dialog p:first-child {
    color: #1f2a3a;
    font-weight: 800;
}

.run-reports-body,
.run-history-body {
    padding-top: 18px;
}

.run-reports-summary,
.run-history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.run-reports-grid,
.run-history-grid,
.run-report-panel .k-grid,
.run-report-panel .k-treelist {
    min-width: 0;
}

.run-report-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #f0b6b6;
    border-radius: 999px;
    background: #fdecec;
    color: var(--danger);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.run-report-delete-button:hover {
    border-color: var(--danger);
    background: #fbdada;
}

.run-report-closing-pill,
.run-report-locked-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.run-report-closing-pill.locked,
.run-report-locked-note {
    background: #ecfdf3;
    color: #087443;
}

.run-report-open-link,
.run-report-case-link,
.run-report-defect-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.run-report-open-link:hover,
.run-report-case-link:hover,
.run-report-defect-link:hover {
    text-decoration: underline;
}

.run-history-composer {
    display: grid;
    gap: 10px;
    margin: 14px 0 16px;
    padding: 14px;
    border: 1px solid #cfe0d5;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4fbf6, #ffffff);
}

.run-history-composer[hidden] {
    display: none;
}

.run-history-composer label {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.run-history-composer textarea,
.run-history-composer .k-textarea {
    width: 100%;
    min-height: 104px;
}

.run-history-grid {
    min-width: 0;
}

.run-history-content-cell {
    max-width: 100%;
    color: #233246;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.run-history-hide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.run-history-hide-button:hover {
    border-color: #64748b;
    background: #eef2f7;
}

.run-history-hide-dialog-content {
    display: grid;
    gap: 10px;
    color: #233246;
    line-height: 1.55;
}

.run-history-hide-dialog-content p {
    margin: 0;
}

.run-report-main {
    min-width: 0;
}

.run-report-workspace {
    display: grid;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 26px 28px;
    overflow: auto;
}

.run-report-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    padding: 24px;
    border: 1px solid #d7e0eb;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(18, 137, 67, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f4f8fb 56%, #eef5f2 100%);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.run-report-title-block {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.run-report-title-block .eyebrow {
    color: #1c6f43;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.run-report-title-block h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.run-report-title-block p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.run-report-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.run-report-meta-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.run-report-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.run-report-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 12px;
    min-width: 0;
}

.run-report-metric-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.run-report-metric-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.run-report-metric-card strong {
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.run-report-metric-card p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.run-report-metric-card.primary {
    border-color: #b8d7c4;
    background: linear-gradient(135deg, #f1fbf4, #ffffff);
}

.run-report-metric-card.success strong {
    color: #128943;
}

.run-report-metric-card.danger strong {
    color: #cf2e2e;
}

.run-report-metric-card.warning strong {
    color: #b65f00;
}

.run-report-chart-priority-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.run-report-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.run-report-panel {
    min-width: 0;
    overflow: hidden;
}

.run-report-panel.span-2 {
    grid-column: 1 / -1;
}

.run-report-chart {
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    min-height: 0;
    min-width: 0;
    margin: 4px auto 0;
}

.run-report-chart-panel {
    display: grid;
    align-content: start;
    justify-self: start;
    width: min(100%, 360px);
}

.run-report-included-priority-note {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e3a8a;
    background: #eff6ff;
}

.run-report-included-priority-note strong,
.run-report-included-priority-note span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.run-report-included-priority-note strong {
    font-size: 13px;
}

.run-report-included-priority-note span {
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.run-report-version-summary-block {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.run-report-version-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.run-report-version-summary-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}

.run-report-version-summary-heading span {
    flex-shrink: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.run-report-defect-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #172033;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.run-report-defect-summary-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
    min-width: 0;
}

.run-report-defect-summary-block {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #f8fafc;
}

.run-report-defect-summary-block h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}

.run-report-defect-summary {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.run-report-defect-stat-card {
    display: inline-grid;
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    justify-items: start;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    width: fit-content;
    padding: 8px 10px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
}

.run-report-defect-stat-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.run-report-defect-stat-card strong {
    color: #172033;
    font-size: 22px;
    line-height: 1;
}

.run-report-defect-stat-card.status {
    border-color: #dbe4ee;
    background: #ffffff;
}

.run-report-defect-stat-card.status .status-pill {
    max-width: 100%;
    white-space: normal;
}

.run-report-defect-stat-card.critical {
    border-color: #f0b6b6;
    background: #fff5f5;
}

.run-report-defect-stat-card.critical strong {
    color: #cf2e2e;
}

.run-report-defect-stat-card.high {
    border-color: #f3c8a2;
    background: #fff8eb;
}

.run-report-defect-stat-card.high strong {
    color: #c76c00;
}

.run-report-defect-stat-card.medium {
    border-color: #d9ca88;
    background: #fffbea;
}

.run-report-defect-stat-card.medium strong {
    color: #8a6d00;
}

.run-report-defect-stat-card.low {
    border-color: #b8d7c4;
    background: #f1fbf4;
}

.run-report-defect-stat-card.low strong {
    color: #128943;
}

.run-report-delete-dialog-content {
    display: grid;
    gap: 10px;
    color: #233246;
    line-height: 1.55;
}

.run-report-delete-dialog-content p {
    margin: 0;
}

.project-window {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 4px;
}

.form-grid label {
    display: grid;
    gap: 7px;
    color: #39485a;
    font-size: 13px;
    font-weight: 700;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

.form-grid.one-column {
    grid-template-columns: 1fr;
}

.small-window .form-grid {
    grid-template-columns: 1fr;
}

.window-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.dialog-loading-note {
    margin-top: 14px;
    border: 1px solid #d7e4ff;
    border-radius: 12px;
    background: #f3f7ff;
    color: #254067;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    padding: 10px 12px;
}

.daily-report-workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.daily-report-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.daily-report-heading {
    align-items: center;
    margin-bottom: 0;
}

.daily-report-heading h1 {
    margin: 0;
}

.daily-report-heading-actions,
.daily-report-composer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-report-heading-actions .k-datepicker {
    width: 150px;
}

.daily-report-heading-actions .k-dropdownlist {
    width: min(260px, 100%);
}

.daily-report-side-nav .side-nav-item {
    justify-content: flex-start;
}

.daily-report-sidebar-summary {
    display: grid;
    gap: 6px;
}

.daily-report-sidebar-summary strong {
    color: var(--text-strong);
    font-size: 20px;
}

.daily-report-sidebar-summary span {
    color: var(--text-muted);
    font-size: 13px;
}

.daily-report-overall-card {
    display: grid;
    gap: 14px;
}

.daily-report-save-state {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.daily-report-textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cad5e2;
    border-radius: 8px;
    padding: 12px;
    color: var(--text-strong);
    font: inherit;
    line-height: 1.55;
    overflow-y: hidden;
    resize: none;
}

.daily-report-textarea.compact {
    min-height: 120px;
}

.daily-report-textarea:focus {
    border-color: var(--brand-border);
    box-shadow: 0 0 0 3px var(--brand-ring);
    outline: 0;
}

.daily-report-textarea:disabled {
    background: #f4f6f8;
    color: #697586;
}

.daily-report-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.daily-report-section-heading h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: 20px;
}

.daily-report-section-heading span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.daily-report-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
    min-width: 0;
}

.daily-report-project-card {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.daily-report-project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.daily-report-project-header > div:first-child {
    min-width: 0;
}

.daily-report-project-header h3 {
    margin: 0 0 4px;
    color: var(--text-strong);
    font-size: 17px;
    overflow-wrap: anywhere;
}

.daily-report-project-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.daily-report-project-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 0 auto;
}

.daily-report-readonly-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: #52616f;
    font-size: 12px;
    font-weight: 700;
}

.daily-report-readonly-text {
    min-height: 104px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text-strong);
    line-height: 1.6;
}

.daily-report-message-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.daily-report-message-card {
    min-width: 0;
}

.daily-report-message-header p,
.daily-report-message-card p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.daily-report-message-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.daily-report-message-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dfe7ef;
    border-left: 3px solid #2f80a8;
    border-radius: 8px;
    background: #fbfdff;
}

.daily-report-message-item strong {
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.daily-report-message-item time {
    color: var(--text-muted);
    font-size: 12px;
}

.daily-report-message-item p {
    margin: 0;
    color: #243246;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.daily-report-message-empty,
.daily-report-empty-state {
    color: var(--text-muted);
}

.daily-report-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 140px;
    text-align: center;
}

.daily-report-empty-state .k-icon {
    color: var(--brand);
    font-size: 28px;
}

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

.daily-report-member-option {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.daily-report-member-option strong,
.daily-report-member-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-report-member-option small {
    color: var(--text-muted);
}

.daily-report-main-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-layout.daily-report-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "topbar"
        "main";
}

.daily-report-member-workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
}

.daily-report-team-workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
}

.daily-report-heading p {
    max-width: 760px;
}

.daily-report-muted {
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.daily-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 14px;
}

.daily-report-filter-bar {
    display: grid;
    grid-template-columns: 150px repeat(4, minmax(138px, 1fr));
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.daily-report-filter-bar label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.daily-report-filter-bar .k-datepicker,
.daily-report-filter-bar .k-dropdownlist {
    width: 100%;
    min-width: 0;
}

.daily-report-summary-grid .metric-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: 94px;
}

.daily-report-summary-grid .metric-card span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.daily-report-member-columns {
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
}

.daily-report-target-panel,
.daily-report-editor-panel,
.daily-report-comment-panel,
.daily-report-comment-card,
.daily-report-grid-card,
.daily-report-detail-panel .detail-card {
    min-width: 0;
}

.daily-report-target-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

.daily-report-target-list {
    display: grid;
    gap: 8px;
}

.daily-report-target-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(min(130px, 100%), 1fr));
    gap: 10px;
    min-width: 0;
}

.daily-report-target-filters label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.daily-report-target-filters .k-dropdownlist {
    width: 100%;
    min-width: 0;
}

.daily-report-target-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    padding: 12px;
    text-align: left;
}

.daily-report-target-row:hover,
.daily-report-target-row.active {
    border-color: #3f7fb5;
    background: #eef7ff;
    box-shadow: inset 3px 0 0 #2f80a8;
}

.daily-report-target-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    padding: 0 8px;
    white-space: nowrap;
}

.daily-report-target-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.daily-report-target-main strong,
.daily-report-target-main small,
.daily-report-target-main em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-report-target-main small {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.daily-report-target-main em {
    color: #9a4b00;
    font-size: 12px;
    font-style: normal;
}

.status-pill.muted {
    background: #e9edf3;
    color: #495568;
}

.status-pill.warning {
    background: #fff0d8;
    color: #9a4b00;
}

.daily-report-editor-form {
    display: grid;
    gap: 14px;
}

.daily-report-editor-panel .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.daily-report-form-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.daily-report-form-panel[hidden] {
    display: none;
}

.daily-report-checkbox-label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-height: 38px;
}

.daily-report-link-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.daily-report-chip-list,
.daily-report-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.daily-report-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border: 1px solid #d8e1ea;
    border-radius: 999px;
    background: #f7fafc;
    padding: 4px 8px;
}

.daily-report-chip a,
.daily-report-related-links a,
.daily-report-related-links span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.daily-report-chip button {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #52616f;
    cursor: pointer;
    flex: 0 0 auto;
}

.daily-report-bottom-summary,
.daily-report-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.daily-report-bottom-summary div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.daily-report-bottom-summary span {
    color: var(--text-muted);
    font-size: 13px;
}

.daily-report-comment-body {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.daily-report-comment-card {
    display: grid;
    gap: 14px;
}

.daily-report-comment-card .detail-header p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.daily-report-comment-box {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #39485a;
    font-size: 13px;
    font-weight: 800;
}

.daily-report-summary-panel {
    min-width: 0;
}

.daily-report-summary-groups {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.daily-report-summary-metrics {
    display: flex;
    align-self: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.daily-report-stat-group {
    display: grid;
    flex: 0 1 auto;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.daily-report-stat-group h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 13px;
}

.daily-report-stat-list {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.daily-report-stat-row,
.daily-report-stat-tile {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 64px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
}

.daily-report-stat-row {
    flex: 0 0 auto;
    min-width: max-content;
}

.daily-report-stat-tile.compact {
    flex: 0 1 auto;
    width: max-content;
    max-width: 100%;
    min-height: 52px;
    border-color: #edf2f7;
    background: #f8fbfd;
    padding: 8px 10px;
}

.daily-report-stat-row span,
.daily-report-stat-tile span {
    min-width: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-report-stat-row strong,
.daily-report-stat-tile strong {
    color: var(--text-strong);
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.daily-report-stat-tile.compact strong {
    font-size: 14px;
}

#teamReportItemsGrid .k-grid-content,
#teamReportPastUnresolvedGrid .k-grid-content,
#teamReportTrackingGrid .k-grid-content {
    height: auto !important;
    max-height: none;
}

.daily-report-grid-card .detail-header {
    margin-bottom: 12px;
}

.daily-report-grid-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.daily-report-grid-header > div:first-child {
    min-width: 0;
}

.daily-report-grid-switcher.k-button-group {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    min-width: 0;
}

.daily-report-grid-switcher .k-button {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
}

.daily-report-switch-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    background: #edf2f7;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 6px;
}

.daily-report-grid-view[hidden] {
    display: none !important;
}

#teamReportItemsGrid .k-table-row,
#teamReportItemsGrid .k-master-row,
#teamReportItemsGrid tbody tr,
#teamReportPastUnresolvedGrid .k-table-row,
#teamReportPastUnresolvedGrid .k-master-row,
#teamReportPastUnresolvedGrid tbody tr,
#teamReportTrackingGrid .k-table-row,
#teamReportTrackingGrid .k-master-row,
#teamReportTrackingGrid tbody tr {
    height: auto;
}

#teamReportItemsGrid .k-table-td,
#teamReportItemsGrid .k-grid-content td,
#teamReportPastUnresolvedGrid .k-table-td,
#teamReportPastUnresolvedGrid .k-grid-content td,
#teamReportTrackingGrid .k-table-td,
#teamReportTrackingGrid .k-grid-content td {
    padding: 6px 10px;
    line-height: 1.35;
    vertical-align: middle;
}

#teamReportItemsGrid .k-table-th,
#teamReportItemsGrid .k-grid-header th,
#teamReportPastUnresolvedGrid .k-table-th,
#teamReportPastUnresolvedGrid .k-grid-header th,
#teamReportTrackingGrid .k-table-th,
#teamReportTrackingGrid .k-grid-header th {
    padding: 7px 10px;
}

.daily-report-grid-summary {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-report-grid-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 8px;
    white-space: nowrap;
}

.daily-report-grid-chip.type-summary,
.daily-report-grid-chip.type-note {
    border-color: #d4dce7;
    background: #f3f6f9;
    color: #354155;
}

.daily-report-grid-chip.type-progress,
.daily-report-grid-chip.type-support {
    border-color: #b7dfca;
    background: #e8f7ef;
    color: #176c3a;
}

.daily-report-grid-chip.type-blocker {
    border-color: #f0b8b2;
    background: #fff0ee;
    color: #b42318;
}

.daily-report-grid-chip.type-risk,
.daily-report-grid-chip.type-decision_needed,
.daily-report-grid-chip.manager-needs_reply {
    border-color: #f3cf91;
    background: #fff7e6;
    color: #9a4b00;
}

.daily-report-grid-chip.type-question,
.daily-report-grid-chip.manager-tracking {
    border-color: #c7c3f4;
    background: #f2f0ff;
    color: #5141a4;
}

.daily-report-grid-chip.type-out_of_office {
    border-color: #d8dee8;
    background: #f5f7fa;
    color: #4b5565;
}

.daily-report-grid-chip.manager-ok {
    border-color: #a9ddbf;
    background: #e7f6ed;
    color: #106f37;
}

.daily-report-grid-chip.manager-pending {
    border-color: #c9d8e8;
    background: #edf5ff;
    color: #245c89;
}

.daily-report-list-block {
    display: grid;
    gap: 10px;
}

.daily-report-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fbfdff;
    padding: 10px 12px;
}

.daily-report-list-row div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.daily-report-list-row strong,
.daily-report-list-row small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.daily-report-list-row small {
    color: var(--text-muted);
}

.daily-report-detail-panel {
    min-width: 0;
}

.daily-report-detail-body,
.daily-report-detail-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.daily-report-detail-title {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.daily-report-detail-title h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 20px;
    overflow-wrap: anywhere;
}

.daily-report-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.daily-report-detail-meta div {
    min-width: 0;
}

.daily-report-detail-meta dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.daily-report-detail-meta dd {
    margin: 2px 0 0;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.daily-report-detail-stack h4 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 14px;
}

.daily-report-content-block {
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fbfdff;
    color: var(--text-strong);
    line-height: 1.6;
    min-height: 80px;
    overflow-wrap: anywhere;
    padding: 12px;
    white-space: pre-wrap;
}

.daily-report-comment-list {
    display: grid;
    gap: 10px;
}

.daily-report-comment {
    display: grid;
    gap: 4px;
    border-left: 3px solid #2f80a8;
    background: #f8fbff;
    padding: 10px 12px;
}

.daily-report-comment time,
.daily-report-comment span {
    color: var(--text-muted);
    font-size: 12px;
}

.daily-report-comment p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.daily-report-manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-report-dialog-content {
    display: grid;
    gap: 12px;
}

.daily-report-dialog-content label {
    display: grid;
    gap: 8px;
}

@media (max-width: 1280px) {
    .app-layout {
        grid-template-columns: 232px minmax(0, 1fr);
    }

    .app-layout.run-report-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-workspace,
    .daily-report-workspace,
    .daily-report-team-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-workspace-splitter:not(.k-splitter) {
        grid-template-columns: 1fr;
    }

    .case-workspace,
    .run-workspace,
    .defect-workspace {
        grid-template-columns: 1fr;
    }

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

    .run-detail-columns:not(.k-splitter) {
        grid-template-columns: 1fr;
    }

    .run-detail-header-row {
        flex-wrap: wrap;
    }

    .project-detail-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-report-comment-panel {
        grid-template-columns: 1fr;
    }

    .daily-report-message-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-report-member-columns {
        grid-template-columns: 1fr;
    }

    .daily-report-filter-bar {
        grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    }

}

@media (max-width: 900px) {
    .app-layout {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-sidebar {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
    }

    .workspace-main {
        height: auto;
        overflow: visible;
    }

    .project-workspace,
    .dashboard-workspace,
    .dashboard-workspace-splitter,
    .case-workspace,
    .run-workspace,
    .defect-workspace,
    .run-detail-workspace,
    .run-report-workspace,
    .run-detail-outer-splitter,
    .run-index-workspace,
    .run-detail-columns,
    .run-detail-body-pane,
    .project-content,
    .project-detail-panel,
    .case-group-panel,
    .case-list-panel,
    .section-management-workspace,
    .run-list-panel,
    .case-detail-panel,
    .run-detail-panel,
    .run-case-list-column,
    .run-case-result-column {
        overflow: visible;
    }

    .top-bar,
    .content-heading,
    .top-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .top-left-group {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .top-project-switcher {
        width: 100%;
    }

    .top-project-switcher .k-dropdownlist {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .user-menu-trigger {
        max-width: 100%;
    }

    .daily-report-heading-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .daily-report-heading-actions .k-datepicker,
    .daily-report-heading-actions .k-dropdownlist,
    .daily-report-heading-actions .k-button {
        width: 100%;
    }

    .daily-report-project-header,
    .daily-report-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .daily-report-message-panel {
        grid-template-columns: 1fr;
    }

    .daily-report-member-columns,
    .daily-report-target-filters,
    .daily-report-detail-meta,
    .daily-report-filter-bar,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .daily-report-grid-card .detail-header {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }

    .daily-report-target-row,
    .daily-report-list-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .daily-report-link-editor,
    .daily-report-bottom-summary,
    .daily-report-editor-actions {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .defect-heading-actions {
        align-items: stretch;
        width: 100%;
    }

    .jira-full-sync-meta {
        max-width: none;
        width: 100%;
    }

    .defect-detail-section dl {
        grid-template-columns: 1fr;
    }

    .defect-editor-readonly-grid,
    .jira-link-preview-grid,
    .jira-link-change-box,
    .defect-run-case-picker-layout {
        grid-template-columns: 1fr;
    }

    .defect-run-case-editor-heading {
        flex-direction: column;
    }

    .defect-run-case-editor-heading .k-button {
        width: 100%;
    }

    .defect-editor-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 10px;
    }

    .defect-editor-card {
        border-radius: 10px;
    }

    .jira-link-change-box .k-button {
        width: 100%;
    }

    .defect-filter-panel {
        grid-template-columns: 1fr;
    }

    .defect-status-heading,
    .defect-grid-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .defect-grid-toolbar .k-spacer {
        display: none;
    }

    .defect-grid-search {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .run-detail-header-row {
        flex-direction: column;
    }

    .run-detail-title-actions {
        flex-direction: column;
        width: 100%;
    }

    .run-detail-filter-card {
        width: 100%;
    }

    .run-detail-filter-card {
        flex-wrap: wrap;
    }

    .run-detail-filter-card .run-case-search {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .run-detail-filter-card .k-dropdowntree,
    .run-detail-filter-card .k-dropdownlist,
    .run-detail-filter-card .k-multiselect {
        flex: 1 1 180px;
        min-width: min(180px, 100%);
        max-width: 100%;
    }

    .run-detail-outer-splitter,
    .run-detail-outer-splitter.k-splitter {
        display: block !important;
        height: auto !important;
        min-height: 0;
        overflow: visible;
    }

    .run-detail-outer-splitter.k-splitter > .k-pane {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .run-detail-outer-splitter.k-splitter > .k-splitbar {
        display: none !important;
    }

    .run-detail-columns,
    .run-detail-columns.k-splitter {
        display: block !important;
        height: auto !important;
        min-height: 0;
        overflow: visible;
    }

    .run-detail-columns.k-splitter > .k-pane {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .run-detail-columns.k-splitter > .k-splitbar {
        display: none !important;
    }

    .run-case-expanded-result-layout {
        grid-template-columns: 1fr;
    }

    .run-case-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .run-case-content-grid {
        grid-template-columns: 1fr;
    }

    .run-case-content-grid > section:last-child {
        grid-column: auto;
    }

    .run-case-expanded-detail-panel,
    .run-case-editor-panel,
    .run-editor-panel,
    .run-reports-panel,
    .run-history-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 10px;
    }

    .run-case-expanded-detail-card,
    .run-case-editor-card,
    .run-editor-card,
    .run-reports-card,
    .run-history-card {
        border-radius: 10px;
        padding: 14px;
    }

    .run-report-hero,
    .run-report-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .run-report-actions .k-button {
        width: 100%;
    }

    .run-report-content-grid {
        grid-template-columns: 1fr;
    }

    .run-report-chart-priority-grid {
        grid-template-columns: 1fr;
    }

    .run-report-chart {
        width: min(100%, 300px);
    }

    .run-report-chart-panel {
        justify-self: stretch;
        width: 100%;
    }

    .run-report-defect-summary-groups {
        grid-template-columns: 1fr;
    }

    .run-report-panel.span-2 {
        grid-column: auto;
    }

    .metric-grid.run-detail-inline-metrics {
        justify-content: flex-start;
        width: 100%;
    }

    .run-detail-inline-metrics .run-priority-metric-card,
    .run-detail-inline-metrics .run-result-metric-card {
        grid-template-columns: 1fr;
        flex-basis: 100%;
        width: 100%;
    }

    .run-priority-metric-heading {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    #testRunsGrid .k-grid-toolbar .run-sort-control,
    #testRunsGrid .k-grid-toolbar .k-dropdownlist {
        margin-left: 0;
        width: 100%;
    }

    .run-filter-actions {
        justify-content: stretch;
    }

    .run-filter-actions > * {
        flex: 1 1 auto;
    }

    .metric-grid,
    .dashboard-grid,
    .dashboard-quality-layout,
    .project-detail-panel {
        grid-template-columns: 1fr;
    }

    .organization-summary dl {
        grid-template-columns: 1fr;
    }

    .access-layout,
    .settings-member-layout {
        grid-template-columns: 1fr;
    }

    .access-detail-heading,
    .compact-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .organization-workspace {
        padding: 20px 16px;
    }

    .organization-workspace .metric-card {
        align-items: flex-start;
    }

    .organization-workspace .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .organization-action-link {
        width: 100%;
    }

    .case-editor-header {
        flex-direction: column;
        align-items: stretch;
    }

    .case-version-header-actions,
    .case-version-select-label {
        align-items: stretch;
        flex-direction: column;
    }

    .case-version-select-label .k-dropdownlist {
        width: 100%;
        max-width: none;
    }

    .step-col-actions,
    .step-action-cell {
        width: 132px;
    }
}

/* Mind map */
.mindmap-list-workspace {
    grid-template-columns: minmax(0, 1fr);
}

.mindmap-grid-panel {
    min-width: 0;
}

.mindmap-grid-search {
    width: min(320px, 100%);
}

.mindmap-open-link {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-number-cell {
    text-align: right;
}

.mindmap-editor-page {
    min-height: 100vh;
    min-width: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 45%, #f7f1e8 100%);
}

.mindmap-editor-root {
    min-height: 100vh;
    min-width: 0;
}

.mindmap-editor-loading {
    display: grid;
    gap: 8px;
    min-height: 360px;
    place-items: center;
    text-align: center;
}

.mindmap-app {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    min-width: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 45%, #f7f1e8 100%);
}

.mindmap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
}

.mindmap-title-group {
    display: grid;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
}

.mindmap-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.mindmap-title-input {
    flex: 0 1 360px;
    width: min(360px, 32vw);
    min-width: min(220px, 100%);
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    padding: 11px 13px;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.92);
}

.mindmap-description-input {
    flex: 1 1 360px;
    width: min(520px, 40vw);
    min-width: min(240px, 100%);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
}

.mindmap-header-actions,
.mindmap-canvas-actions,
.mindmap-node-actions,
.mindmap-field-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mindmap-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #14532d;
    font-size: 0.78rem;
    font-weight: 700;
    background: #dcfce7;
}

.mindmap-status-pill.dirty {
    color: #7c2d12;
    background: #ffedd5;
}

.mindmap-status-pill.saving {
    color: #075985;
    background: #e0f2fe;
}

.mindmap-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    min-height: 0;
}

.mindmap-canvas-wrap {
    position: relative;
    min-height: 620px;
    min-width: 0;
}

.mindmap-flow {
    width: 100%;
    height: 100%;
    min-height: 620px;
}

.mindmap-canvas-actions {
    position: absolute;
    z-index: 6;
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.mindmap-icon-action {
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding-inline: 0;
}

.mindmap-side-panel {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border-left: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.9);
    overflow-y: auto;
}

.mindmap-panel-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.mindmap-panel-card h2,
.mindmap-panel-card h3 {
    margin: 0;
    color: #0f172a;
}

.mindmap-panel-card p {
    margin: 0;
    color: #64748b;
}

.mindmap-form-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.mindmap-form-field input,
.mindmap-form-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    padding: 10px 11px;
    color: #0f172a;
    font: inherit;
    font-weight: 500;
    background: #f8fafc;
}

.mindmap-color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.mindmap-color-swatch {
    width: 100%;
    min-height: 34px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}

.mindmap-color-swatch.active {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.mindmap-custom-node {
    position: relative;
    min-width: 150px;
    max-width: 260px;
    border: 2px solid var(--node-border, #60a5fa);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--node-text, #1e3a8a);
    font-weight: 800;
    text-align: center;
    background: var(--node-background, #dbeafe);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    overflow-wrap: anywhere;
}

.mindmap-custom-node.selected {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.22), 0 16px 36px rgba(15, 23, 42, 0.14);
}

.mindmap-custom-node.editing {
    min-width: 190px;
}

.mindmap-node-label {
    display: block;
    line-height: 1.25;
}

.mindmap-converted-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.mindmap-node-inline-input {
    width: 100%;
    min-width: 160px;
    border: 0;
    outline: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-align: center;
    resize: none;
    background: transparent;
}

.react-flow__edge.selected .react-flow__edge-path,
.react-flow__edge:focus .react-flow__edge-path {
    stroke: #0ea5e9;
    stroke-width: 3;
}

.react-flow__edge-textbg {
    fill: rgba(255, 255, 255, 0.94);
    stroke: rgba(15, 23, 42, 0.14);
    stroke-width: 1;
}

.react-flow__edge-text {
    fill: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.mindmap-error {
    color: #991b1b;
    font-weight: 700;
}

.mindmap-muted {
    color: #64748b;
    font-size: 0.86rem;
}

.mindmap-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mindmap-stat-chip {
    border-radius: 999px;
    padding: 6px 10px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    background: #e2e8f0;
}

.mindmap-conversion-actions {
    display: grid;
    gap: 9px;
    min-width: 0;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 16px;
    padding: 12px 13px;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
}

.mindmap-conversion-actions-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.mindmap-conversion-actions strong {
    color: #0f766e;
}

.mindmap-conversion-actions p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
}

.mindmap-panel-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mindmap-panel-card-title-row h2 {
    margin: 0;
}

.mindmap-conversion-sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 999px;
    color: #0f766e;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.78);
}

.mindmap-conversion-sync-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.mindmap-conversion-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mindmap-conversion-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.mindmap-conversion-list div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mindmap-conversion-list strong,
.mindmap-conversion-list a,
.mindmap-conversion-list span,
.mindmap-conversion-list time {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mindmap-conversion-list a {
    color: #0369a1;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.mindmap-conversion-list a:hover {
    text-decoration: underline;
}

.mindmap-conversion-list span {
    color: #64748b;
    font-size: 0.84rem;
}

.mindmap-conversion-list time {
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
}

.mindmap-conversion-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.mindmap-converted-dot.archived,
.mindmap-conversion-dot.archived {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.mindmap-converted-dot.missing,
.mindmap-conversion-dot.missing {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.mindmap-conversion-status {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 800;
}

.mindmap-conversion-status.archived {
    color: #92400e;
    background: #fef3c7;
}

.mindmap-conversion-status.missing {
    color: #991b1b;
    background: #fee2e2;
}

.mindmap-shortcut-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mindmap-shortcut-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #475569;
    font-size: 0.86rem;
}

.mindmap-shortcut-list kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 7px;
    padding: 3px 6px;
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 800;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.12);
}

@media (max-width: 1000px) {
    .mindmap-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mindmap-title-input,
    .mindmap-description-input {
        width: 100%;
    }

    .mindmap-body {
        grid-template-columns: 1fr;
    }

    .mindmap-side-panel {
        border-top: 1px solid rgba(15, 23, 42, 0.1);
        border-left: 0;
        overflow: visible;
    }

    .mindmap-canvas-wrap,
    .mindmap-flow {
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    .mindmap-header,
    .mindmap-side-panel {
        padding: 14px;
    }

    .mindmap-header-actions > *,
    .mindmap-canvas-actions > *,
    .mindmap-node-actions > * {
        flex: 1 1 auto;
    }

    .mindmap-canvas-actions {
        position: static;
        margin: 12px;
    }

    .mindmap-canvas-actions > .mindmap-icon-action {
        flex: 0 0 38px;
    }
}

@media (max-width: 900px) {
    .billing-admin-page {
        padding: 14px;
    }

    .billing-admin-header,
    .billing-admin-two-col {
        grid-template-columns: 1fr;
    }

    .billing-admin-header {
        display: grid;
    }

    .billing-admin-section-heading,
    .billing-subscription-current,
    .billing-organization-select-row {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-default-plan-banner span {
        display: block;
    }

    .billing-default-plan-banner span + span {
        margin: 4px 0 0;
    }

    .billing-expired-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .billing-expired-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
