main > .container, main > .container-fluid {
    padding: 70px 15px 20px;
}

.theme-dark {
    background: #0b1220;
    color: #e5eefb;
}

.theme-dark .main-content,
.theme-dark main.container {
    background: #0b1220;
}

.theme-dark .navbar,
.theme-dark footer,
.theme-dark .modal-content,
.theme-dark .dropdown-menu,
.theme-dark .project-switcher-toggle,
.theme-dark .project-switcher-menu,
.theme-dark .checklist-page-card,
.theme-dark .profile-page-card,
.theme-dark .scheme-card,
.theme-dark .animated-card,
.theme-dark .alert-light,
.theme-dark .card {
    background: #111a2e !important;
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.theme-dark .navbar-brand,
.theme-dark .nav-link,
.theme-dark .user-menu-name,
.theme-dark .checklist-page-title,
.theme-dark .scheme-card-title a,
.theme-dark .profile-summary-item strong,
.theme-dark .profile-telegram-title,
.theme-dark .dropdown-item,
.theme-dark .project-switcher-item,
.theme-dark .project-switcher-create,
.theme-dark .text-dark {
    color: #f8fbff !important;
}

.theme-dark .text-muted,
.theme-dark .form-text,
.theme-dark .project-switcher-label,
.theme-dark .project-switcher-item-icon,
.theme-dark .profile-summary-label,
.theme-dark .user-menu-plan-label {
    color: #94a3b8 !important;
}

.theme-dark .table,
.theme-dark .table td,
.theme-dark .table th,
.theme-dark .checklist-overview-table th,
.theme-dark .checklist-overview-table td {
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .form-control,
.theme-dark .form-select,
.theme-dark .input-group-text {
    background: #0f172a;
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.25);
}

.theme-dark .form-control::placeholder {
    color: #64748b;
}

.theme-dark .btn-outline-secondary,
.theme-dark .btn-outline-primary,
.theme-dark .btn-outline-danger,
.theme-dark .btn-outline-success {
    border-color: rgba(148, 163, 184, 0.35);
}

.theme-dark .project-switcher-item:hover,
.theme-dark .project-switcher-create:hover,
.theme-dark .dropdown-item:hover,
.theme-dark .dropdown-item:focus {
    background: #18233b;
    color: #ffffff !important;
}

.theme-dark .project-switcher-item.is-current,
.theme-dark .checklist-run-tabs .nav-link {
    background: #18233b;
}

.theme-dark .profile-summary-item {
    background: #18233b;
    border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .language-switch-code,
.theme-dark .user-menu-plan-value {
    color: #f8fbff;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    min-height: 60px;
    height: auto;
    padding: 16px 0;
    flex-shrink: 0;
}
.text-small{
    font-size: 8px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
    .navbar form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

.task-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.task-menu-badge {
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.theme-dark .task-menu-badge {
    box-shadow: 0 0 0 2px #111a2e;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a {
    text-decoration: none;
}

.request-item:hover {
    cursor: pointer;
}

.hover-show .hover-hide {
    display: none;
}

.onlist .hover-show:hover .hover-hide {
    display: inline;
}

.onlist .item-item {
    cursor: pointer;
}

tr.row-item-item.selected td {
    background-color: #fafafa !important;
}

tr.row-item-item:hover td, .row-item-item.selected,
.table-wrapper.onselect table tr.row-item-item td.row-item-item.selected {
    box-shadow: 4px 3px 6px -3px #c3c6d8;
    background-color: rgb(245, 246, 248);
}

table.table-items tr.row-done td {
    background-color: #f2ffef !important;
}
table.table-items tr td:first-child {
    border-left: 4px solid #ffffff;

}

table.table-items tr td:last-child {
    border-right: 4px solid #ffffff;

}

table.table-items tr.row-ready td {
    background-color: #d0ffd0 !important;
}

table.table-items tr td .fa-eye-slash {
    display: none;
}

table.table-items tr.selected td .fa-eye-slash {
    display: block;
}

table.table-items tr.selected td .fa-eye {
    display: none;
}

table.table-items tr td .fa-eye {
    display: block;
}


table.table-items tr.loading td {
    opacity: 0.2;
}

.variants-controls-cell {
    text-align: center;
    white-space: nowrap;
}

.variants-cell .variant-row,
.variants-controls-cell .variant-row {
    margin-bottom: 4px;
}

table tr.row-next td:first-child{
    border-left: 4px solid rgba(13, 110, 253, 0.5);
}
table tr.row-next td{
    background-color: rgba(13, 110, 253, 0.05);
}
table tr.row-prev td{
    background-color: rgba(255, 193, 7, 0.05);
}
table tr.row-prev td:first-child{
    border-left: 4px solid rgba(255, 193, 7, 0.5);
}
.done-check {
    cursor: pointer;

}

.text-fade, .text-color {
    transition: color, background-color 0.2s;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-pointer.text-primary:hover {
    color: #0a58ca !important;
}

.cursor-pointer.text-danger:hover {
    color: #bb2d3b !important;
}

.cursor-pointer.text-warning:hover {
    color: #ffcd39 !important;
}

.table-wrapper.onselect tr.row-item-item {
    cursor: crosshair !important;
}

.table-wrapper.onselect tr.row-item-item.selected {
    cursor: not-allowed !important;
}

.checklist-editor-page {
    max-width: 1440px;
    background: transparent;
}

.checklist-page-shell .checklist-editor-page h1,
.checklist-page-shell .checklist-editor-page h2,
.checklist-page-shell .checklist-editor-page h3,
.checklist-page-shell .checklist-editor-page h4,
.checklist-page-shell .checklist-editor-page h5,
.checklist-page-shell .checklist-editor-topbar h1 {
    color: inherit;
    font-weight: inherit;
}

.project-switcher {
    margin: 18px 0 20px;
    position: relative;
}

.project-switcher-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #1f2937;
    text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    position: relative;
}

.project-switcher-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.project-switcher-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.project-switcher-name {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-switcher-toggle .fa-chevron-down {
    flex: 0 0 14px;
    line-height: 1;
    margin: 0;
}

.project-switcher-menu {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    min-width: 0;
}

.project-switcher-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-switcher-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-switcher-item-form {
    flex: 1 1 auto;
    margin: 0;
}

.project-switcher-item,
.project-switcher-create {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
}

button.project-switcher-item {
    border: 0;
    background: transparent;
    text-align: left;
}

.project-switcher-item:hover,
.project-switcher-create:hover {
    background: #f3f6fb;
    color: #111827;
}

.project-switcher-item.is-current {
    background: #e9f2ff;
}

.project-switcher-item-title {
    font-weight: 600;
}

.project-switcher-item-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.project-switcher-item-icon {
    width: 16px;
    text-align: center;
    color: #64748b;
    flex: 0 0 16px;
}

.project-switcher-item-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.project-switcher-item-edit:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}

.project-switcher-create {
    white-space: nowrap;
}

.checklist-editor-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.checklist-editor-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-shared-toolbar {
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.checklist-mode-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.checklist-editor-mode-switcher {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.checklist-editor-mode-switcher__option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.checklist-editor-mode-switcher__option + .checklist-editor-mode-switcher__option {
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.checklist-editor-mode-switcher__option:hover,
.checklist-editor-mode-switcher__option:focus {
    color: #1d4ed8;
    background: #f8fbff;
    text-decoration: none;
}

.checklist-editor-mode-switcher__option.is-active {
    color: #2563eb;
    background: linear-gradient(180deg, #eef4ff 0%, #dceafe 100%);
    box-shadow: inset 0 2px 0 rgba(96, 165, 250, 0.7);
    pointer-events: none;
}

.checklist-toolbar-button-active {
    pointer-events: none;
}

.checklist-editor-mode-switcher__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.checklist-editor-mode-switcher__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checklist-editor-mode-switcher__icon svg circle {
    fill: currentColor;
    stroke: none;
}

.checklist-editor-mode-switcher__label {
    white-space: nowrap;
}

.checklist-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.checklist-mode-toggle:hover,
.checklist-mode-toggle:focus {
    color: #1d4ed8;
    background: #f8fbff;
    text-decoration: none;
}

.checklist-mode-toggle.is-active {
    color: #2563eb;
    border-color: rgba(96, 165, 250, 0.45);
    background: linear-gradient(180deg, #eef4ff 0%, #dceafe 100%);
    box-shadow: inset 0 2px 0 rgba(96, 165, 250, 0.7), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.checklist-mode-toggle__label {
    white-space: nowrap;
}

.checklist-page-shell,
.checklist-index {
    display: grid;
    gap: 20px;
}

.checklist-page-header {
    display: grid;
    gap: 10px;
}

.checklist-page-header__line {
    min-width: 0;
}

.checklist-page-header__line--toolbar {
    display: flex;
    justify-content: flex-end;
}

.checklist-page-header__line--page-actions {
    display: flex;
    justify-content: flex-end;
}

.checklist-page-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist-page-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checklist-page-breadcrumbs__item:not(:last-child)::after {
    content: '›';
    color: #94a3b8;
}

.checklist-page-breadcrumbs__link,
.checklist-page-breadcrumbs__current {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checklist-page-breadcrumbs__link {
    color: inherit;
    text-decoration: none;
}

.checklist-page-breadcrumbs__link:hover,
.checklist-page-breadcrumbs__link:focus {
    color: #1e40af;
}

.checklist-page-breadcrumbs__item.is-current,
.checklist-page-breadcrumbs__current {
    color: #0f172a;
}

.checklist-page-eyebrow {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.checklist-page-title {
    margin: 0 0 0.25rem;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
}

.checklist-page-title--single {
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checklist-page-status-badge-wrap {
    margin-bottom: 10px;
}

.checklist-page-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.checklist-page-status-badge.is-public {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.checklist-page-status-badge.is-private {
    color: #92400e;
    border-color: #fde68a;
    background: #fffbeb;
}

.checklist-page-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
}

.checklist-header-inline-field {
    min-width: 0;
}

.checklist-header-inline-field__display {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    max-width: min(100%, 980px);
}

.checklist-header-inline-field__display > *:first-child {
    flex: 0 1 auto;
    min-width: 0;
}

.checklist-header-inline-field__edit {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d7e1ee;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(2px);
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease;
}

.checklist-header-inline-field:hover .checklist-header-inline-field__edit,
.checklist-header-inline-field:focus-within .checklist-header-inline-field__edit,
.checklist-header-inline-field.is-editing .checklist-header-inline-field__edit {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.checklist-header-inline-field__edit:hover,
.checklist-header-inline-field__edit:focus {
    color: #1d4ed8;
    border-color: #bfd0ea;
    background: #f8fbff;
}

.checklist-header-inline-field__form {
    display: grid;
    gap: 10px;
    max-width: 980px;
}

.checklist-header-inline-field__form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checklist-header-inline-field.is-empty .checklist-page-description {
    color: #94a3b8;
}

.checklist-page-header__line--toolbar .checklist-editor-topbar-actions,
.checklist-page-header__line--toolbar .checklist-header-actions-stack {
    justify-content: flex-end;
}

.checklist-page-header__line--page-actions .checklist-editor-topbar-actions,
.checklist-page-header__line--page-actions .checklist-header-actions-stack,
.checklist-page-header__line--page-actions .btn-group {
    margin-left: auto;
    justify-content: flex-end;
}

.checklist-editor-topbar .checklist-page-title {
    margin: 0 0 0.25rem !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.15 !important;
}

.checklist-editor-topbar .checklist-page-eyebrow {
    margin-bottom: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
}

.checklist-page-card {
    padding: 24px 26px;
    border: 1px solid #e3e9f4;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.checklist-page-table {
    margin-bottom: 0;
}

.checklist-page-table thead th {
    border-top: 0;
    border-bottom-width: 1px;
    border-color: #e8edf5;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checklist-page-table tbody td {
    border-color: #edf2f7;
    vertical-align: middle;
}

.scheme-card {
    position: relative;
    overflow: hidden;
    border-color: #e6ebf5 !important;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.scheme-card:hover {
    transform: translateY(-2px);
    border-color: #d7e2f4 !important;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}

.scheme-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

.scheme-card-title a:hover,
.scheme-card-title a:focus {
    color: #0d6efd !important;
}

.scheme-card-description {
    min-height: 2.9em;
    line-height: 1.45;
}

.scheme-card-badge {
    padding: 0.45rem 0.75rem;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
}

.scheme-card-meta {
    padding-top: 4px;
}

.scheme-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.scheme-card-stat i {
    color: #2563eb;
}

.scheme-card-stat a:hover,
.scheme-card-stat a:focus {
    color: #0d6efd !important;
}

.scheme-card-start {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.58rem 0.9rem;
    line-height: 1.2;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.18);
}

.scheme-card-manage {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.58rem 0.9rem;
    line-height: 1.2;
    border-radius: 16px;
}

.scheme-card-actions {
    align-items: center;
}

.scheme-card-icon-action {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.34);
}

.scheme-card-icon-action:hover,
.scheme-card-icon-action:focus {
    background: linear-gradient(135deg, #34d399 0%, #16a34a 100%);
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.4);
    transform: translateY(-1px);
}

.scheme-card-icon-action i {
    color: inherit;
    font-size: 1.05rem;
}

.checklist-publish-link-button {
    min-width: 42px;
}

.plan-limit-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.checklist-run-tabs {
    gap: 10px;
    margin-bottom: 20px;
}

.checklist-run-tabs .nav-link {
    border-radius: 999px;
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.checklist-run-tabs .nav-link.active,
.checklist-run-tabs .show > .nav-link {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.checklist-run-tabs .nav-link .badge {
    color: #475569;
}

.checklist-run-tabs .nav-link.active .badge,
.checklist-run-tabs .show > .nav-link .badge {
    color: #0d6efd;
}

.checklist-run-tab-content {
    width: 100%;
}

.checklist-run-card {
    height: 100%;
    position: relative;
}

.checklist-overview-summary-card {
    margin-bottom: 24px;
}

.task-dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.task-dashboard-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.task-dashboard-filter-label {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.task-dashboard-filter .form-select {
    min-width: 210px;
    border-radius: 999px;
    padding-left: 1rem;
    padding-right: 2.25rem;
}

.checklist-overview-table-wrap {
    overflow-x: auto;
}

.checklist-overview-table th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom-width: 1px;
}

.checklist-overview-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: top;
}

.checklist-overview-step-title {
    font-weight: 600;
    color: #0f172a;
}

.checklist-overview-row {
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.checklist-overview-row.item-parent {
    background: rgba(220, 38, 38, 0.08);
}

.checklist-overview-row.item-child {
    background: rgba(22, 163, 74, 0.08);
}

.checklist-overview-step-info {
    margin-top: 0.35rem;
    max-width: 34rem;
}

.run-history-link {
    min-width: 132px;
    justify-content: center;
    border-radius: 999px;
}

.run-history-card {
    margin-bottom: 12px;
}

.run-history-count {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.run-history-table th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom-width: 1px;
}

.run-history-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: top;
}

.run-history-step-cell {
    min-width: 240px;
}

.run-flow-table .run-history-step-cell {
    min-width: 0;
    white-space: nowrap;
}

.run-flow-table .run-history-step-number {
    display: inline;
    min-width: 0;
    height: auto;
    margin: 0 0.45rem 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.run-flow-table .run-history-step-title {
    font-weight: 400;
    color: #334155;
}

.run-history-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    margin-bottom: 0.6rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}

.run-history-step-title {
    font-weight: 700;
    color: #0f172a;
}

.run-history-step-info {
    margin-top: 0.45rem;
    max-width: 28rem;
    line-height: 1.55;
}

.run-history-answer-badge {
    font-weight: 600;
}

.run-history-details-cell {
    min-width: 280px;
}

.run-history-result {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #0f172a;
    line-height: 1.55;
}

.run-next-steps-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.run-next-steps-title {
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.run-next-step-row + .run-next-step-row {
    margin-top: 0.75rem;
}

.run-next-step-variant {
    margin-bottom: 0.4rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}

.run-next-step-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.run-next-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.2;
}

.run-next-step-chip.is-ready {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.run-next-step-chip.is-finish {
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
}

.run-next-step-number {
    font-weight: 700;
}

.run-next-step-state {
    margin-left: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.run-check-card.is-overdue {
    border-color: rgba(220, 38, 38, 0.32) !important;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.08);
}

.run-check-card.has-deadline {
    padding-top: 0.65rem !important;
}

.run-check-deadline-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0;
    margin-bottom: 0.15rem;
    font-size: 0.69rem;
    line-height: 1.3;
    color: #64748b;
}

.run-check-deadline-meta span {
    font-weight: 600;
}

.run-check-deadline-meta.is-overdue {
    color: #dc2626;
}

.task-run-overdue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.task-run-outdated-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.52rem;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
    z-index: 2;
}

.checklist-run-card.has-outdated-version {
    border-color: rgba(220, 38, 38, 0.28) !important;
}

.run-flow-section + .run-flow-section {
    margin-top: 1.35rem;
}

.run-flow-title {
    margin-bottom: 0.85rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.run-flow-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.run-flow-board-sidebar .run-flow-section + .run-flow-section {
    margin-top: 1rem;
}

.run-flow-table-wrap {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    overflow: hidden;
}

.run-flow-table-wrap-next.has-hidden::after,
.run-flow-table-wrap-prev.has-hidden::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 34px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.run-flow-table-wrap-next.has-hidden::after {
    bottom: 46px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,250,252,0.95) 100%);
}

.run-flow-table-wrap-prev.has-hidden::after {
    top: 46px;
    background: linear-gradient(180deg, rgba(248,250,252,0.95) 0%, rgba(255,255,255,0) 100%);
}

.run-flow-table {
    margin-bottom: 0;
}

.run-flow-table td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    vertical-align: middle;
}

.run-flow-row-completed td {
    background: #f8fafc;
    color: #64748b;
}

.run-flow-row-active td {
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
    color: #1e40af;
}

.run-flow-row-upcoming td {
    background: #fbfdff;
}

.run-flow-row-upcoming.is-linked td {
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.run-flow-row-upcoming td,
.run-flow-row-completed td {
    border-bottom-color: rgba(148, 163, 184, 0.1) !important;
}

.run-flow-compact-cell {
    white-space: nowrap;
    font-size: 0.83rem;
    color: #475569;
}

.run-flow-row-active .run-history-step-title,
.run-flow-row-active .run-flow-compact-cell {
    color: #1e3a8a;
}

.run-flow-details-cell {
    max-width: 360px;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.35;
}

.run-flow-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0.75rem 0.7rem;
    background: #fff;
}

.run-flow-more-wrap-top {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.run-flow-detail-trigger {
    padding: 0.1rem 0.2rem;
    color: #64748b;
    text-decoration: none;
}

.run-flow-detail-trigger:hover {
    color: #1d4ed8;
}

.run-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.run-detail-block + .run-detail-block {
    margin-top: 1rem;
}

.run-detail-block-title {
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.run-detail-field-row + .run-detail-field-row {
    margin-top: 0.7rem;
}

.run-detail-field-name {
    font-weight: 600;
    color: #0f172a;
}

.run-detail-field-value {
    margin-top: 0.2rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.run-history-step-cell .run-history-step-number {
    margin-bottom: 0.08rem;
}

.run-history-step-cell .run-history-step-title {
    line-height: 1.25;
}

.run-flow-row.is-revealing {
    animation: runFlowReveal 0.26s ease;
}

.run-sidebar-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.run-sidebar-accordion-item {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.run-sidebar-accordion .accordion-button {
    background: #fff;
    font-weight: 700;
    color: #0f172a;
    box-shadow: none;
}

.run-sidebar-accordion .accordion-button:not(.collapsed) {
    background: #f8fbff;
    color: #0f172a;
    box-shadow: none;
}

.run-sidebar-accordion .accordion-button:focus {
    box-shadow: none;
}

.run-sidebar-accordion .accordion-body {
    padding: 1rem;
    background: #fff;
}

.run-sidebar-progress-summary__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

@keyframes runFlowReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checklist-overview-flags-cell .badge {
    margin-right: 0.35rem;
}

.plan-limit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe 0%, #eef2ff 100%);
    color: #2563eb;
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.plan-limit-eyebrow {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.plan-limit-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.checklist-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    border: 1px solid rgba(22, 163, 74, 0.2);
    background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 36%), linear-gradient(145deg, #157347 0%, #1ea765 52%, #56c58c 100%);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 18px 34px rgba(21, 115, 71, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.checklist-start-button-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
}

.checklist-start-button-icon > .fa-bolt {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.78rem;
    color: rgba(255, 244, 163, 0.95);
}

.checklist-start-button-glyph {
    margin-left: 2px;
    font-size: 1rem;
}

.checklist-start-button:hover,
.checklist-start-button:focus {
    color: #fff;
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 22px 38px rgba(21, 115, 71, 0.28);
}

.checklist-kebab-button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
}

.checklist-more-menu {
    min-width: 220px;
    border-radius: 16px;
    padding: 8px;
}

.checklist-more-menu .dropdown-item.active,
.checklist-more-menu .dropdown-item:active {
    background: #0d6efd;
    color: #fff;
    border-radius: 10px;
}

.checklist-more-menu .checklist-more-menu-delete,
.checklist-more-menu .checklist-more-menu-delete:visited {
    color: #dc3545;
}

.checklist-more-menu .checklist-more-menu-delete:hover,
.checklist-more-menu .checklist-more-menu-delete:focus,
.checklist-more-menu .checklist-more-menu-delete:active {
    color: #b02a37 !important;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 10px;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.language-switch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    color: #111827;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.language-switch-toggle::after {
    margin-left: 8px;
}

.language-switch-code {
    font-size: 0.82rem;
    line-height: 1;
}

.language-switch-dropdown {
    min-width: 180px;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.user-menu-toggle::after {
    margin-left: 2px;
}

.user-menu-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 48%, #e9d5ff 100%);
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
    font-size: 1.35rem;
}

.user-menu-name {
    font-weight: 600;
    color: #111827;
}

.user-menu-dropdown {
    min-width: 220px;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.user-menu-plan {
    display: grid;
    gap: 4px;
    padding: 10px 14px 8px;
}

.user-menu-plan-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.user-menu-plan-value {
    color: #111827;
    font-size: 0.98rem;
}

.checklist-editor-listbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.checklist-steps-toolbar__title {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.checklist-editor-listmeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checklist-editor-listtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.checklist-editor-listactions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.checklist-accordion-head {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(220px, 320px);
    gap: 16px;
    padding: 0 20px 12px;
    color: #6c757d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checklist-accordion {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    isolation: isolate;
}

.checklist-graph-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.checklist-graph-path {
    fill: none;
    stroke-linecap: round;
    stroke-width: 3;
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.12));
}

.checklist-graph-path-parent {
    stroke: #198754;
}

.checklist-graph-path-child {
    stroke: #dc3545;
}

.checklist-graph-label-bg {
    fill: rgba(255, 255, 255, 0.92);
    stroke: rgba(148, 163, 184, 0.4);
    stroke-width: 1;
}

.checklist-graph-label-text {
    fill: #0f172a;
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.checklist-step {
    position: relative;
    z-index: 2;
    border: 1px solid #dfe5f1;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(26, 43, 74, 0.06);
}

.checklist-step .accordion-button {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fc 100%);
    box-shadow: none;
    padding: 20px;
}

.checklist-step .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    color: inherit;
}

.checklist-step-summary {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(220px, 320px);
    gap: 16px;
    align-items: center;
    width: 100%;
    text-align: left;
}

.checklist-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
}

.checklist-step-title-inline {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.checklist-step-title-inline__view,
.checklist-step-title-inline__edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.checklist-step-title-inline__edit {
    display: none;
    width: min(100%, 560px);
}

.checklist-step-title-inline.is-editing .checklist-step-title-inline__view {
    display: none;
}

.checklist-step-title-inline.is-editing .checklist-step-title-inline__edit {
    display: inline-flex;
}

.checklist-step-title-inline__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checklist-step-title-inline__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #64748b;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    flex: 0 0 auto;
}

.checklist-step-title-inline__action:hover,
.checklist-step-title-inline__action:focus {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    outline: none;
}

.checklist-step-title-inline__action.is-save:hover,
.checklist-step-title-inline__action.is-save:focus {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.checklist-step-title-inline__action.is-cancel:hover,
.checklist-step-title-inline__action.is-cancel:focus {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.checklist-step-title-inline__edit .form-control {
    min-width: 220px;
}

.checklist-step-title .fa-image {
    flex: 0 0 auto;
}

.checklist-step-number {
    color: #8190aa;
    font-weight: 700;
}

.checklist-step-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.checklist-editor-page .checklist-step-variants {
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    padding: 0;
    margin-top: 8px;
}

.checklist-editor-page .checklist-step-variant-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.checklist-editor-page .checklist-step-variant-chip .badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    max-width: 180px;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    font-size: 0.72rem !important;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checklist-editor-page .checklist-step-variant-chip.is-graph-answer-source,
.checklist-editor-page .checklist-step-variant-chip.is-graph-answer-active {
    transform: translateY(-1px);
}

.checklist-editor-page .checklist-step-variant-chip.is-graph-answer-source .badge {
    background: #dbeafe !important;
    border-color: rgba(37, 99, 235, 0.38) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14);
}

.checklist-editor-page .checklist-step-variant-chip.is-graph-answer-active .badge {
    background: #bfdbfe !important;
    border-color: rgba(37, 99, 235, 0.5) !important;
    color: #1e3a8a !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.checklist-editor-page .checklist-step-variant-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    text-decoration: none;
    font-size: 0.68rem;
    line-height: 1;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.08);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.checklist-editor-page .checklist-step-variant-create:hover,
.checklist-editor-page .checklist-step-variant-create:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.checklist-step-flags {
    display: flex;
    align-items: center;
}

.step-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checklist-flag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.checklist-step .accordion-body {
    background: #fff;
    padding: 24px;
}

.checklist-step {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.checklist-step .accordion-button {
    transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.checklist-step.is-graph-focus .accordion-button {
    background: linear-gradient(90deg, rgba(25, 135, 84, 0.14) 0%, #ffffff 14%, #ffffff 86%, rgba(220, 53, 69, 0.14) 100%);
    box-shadow: inset 6px 0 0 #198754, inset -6px 0 0 #dc3545;
}

.checklist-step.is-graph-ancestor {
    transform: translateX(-18px);
}

.checklist-step.is-graph-ancestor .accordion-button {
    background: #eefbf3;
    box-shadow: inset 5px 0 0 #198754;
}

.checklist-step.is-graph-descendant {
    transform: translateX(18px);
}

.checklist-step.is-graph-descendant .accordion-button {
    background: #fff1f3;
    box-shadow: inset -5px 0 0 #dc3545;
}

.checklist-item-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checklist-create-form label,
.checklist-item-form label {
    font-weight: 700;
    color: var(--ci-heading);
}

.checklist-create-form .field-item-name > label,
.checklist-create-form .field-item-info > label,
.checklist-item-form .field-item-name > label,
.checklist-item-form .field-item-info > label {
    font-weight: 700 !important;
    color: var(--ci-heading) !important;
}

.checklist-collapsible-card summary {
    list-style: none;
    cursor: pointer;
}

.checklist-collapsible-card summary::marker {
    display: none;
}

.checklist-collapsible-card summary::-webkit-details-marker {
    display: none;
}

.checklist-collapsible-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checklist-collapsible-card__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checklist-collapsible-card__title-wrap::before {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    color: #1f2937;
    flex: 0 0 auto;
}

.checklist-collapsible-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ci-heading);
}

.checklist-collapsible-card[open] .checklist-collapsible-card__title-wrap::before {
    transform: rotate(45deg);
}

.checklist-collapsible-card__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: #6c757d;
}

.checklist-step-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 18px;
    align-items: start;
}

.checklist-step-form-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
    gap: 18px 22px;
    align-items: start;
}

.checklist-step-form-main .checklist-step-form-info {
    grid-column: 1 / -1;
}

.checklist-step-form-image {
    display: flex;
    justify-content: center;
}

.checklist-step-form-image-box {
    width: 100%;
    max-width: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.checklist-step-form-upload {
    position: relative;
    width: 100%;
}

.checklist-step-form-upload input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.checklist-step-form-upload-trigger {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed #bfd2f7;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7faff 0%, #eff5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f65f5;
    font-size: 2rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.checklist-step-form-upload:hover .checklist-step-form-upload-trigger,
.checklist-step-form-upload:focus-within .checklist-step-form-upload-trigger {
    border-color: #2f65f5;
    box-shadow: 0 12px 24px rgba(47, 101, 245, 0.12);
    transform: translateY(-1px);
}

.checklist-step-form-upload-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #d7e3fb;
    background: #fff;
}

.checklist-step-form-upload-status {
    font-size: 0.95rem;
    color: #64748b;
    text-align: center;
}

.checklist-step-form-upload-status.is-selected {
    color: #1e40af;
    font-weight: 600;
}

.checklist-step-form-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.checklist-step-form-type-option {
    position: relative;
    border: 1px solid #d7e3fb;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checklist-step-form-type-option .form-check-input {
    margin-top: 0.1rem;
}

.checklist-step-form-type-option .form-check-label {
    display: block;
    margin-left: 1.9rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ci-heading);
}

.checklist-step-form-type-option:has(.form-check-input:checked) {
    border-color: #2f65f5;
    box-shadow: 0 16px 30px rgba(47, 101, 245, 0.12);
    transform: translateY(-1px);
}

.checklist-step-form-type-option:has(.form-check-input:checked) .form-check-label {
    color: #2f65f5;
}

.checklist-step-form-variants[hidden] {
    display: none !important;
}

.checklist-step-form-variant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.checklist-step-form-variant-row + .checklist-step-form-variant-row {
    margin-top: 10px;
}

.checklist-step-form-variant-remove {
    width: 42px;
    height: 42px;
    padding: 0;
}

@media (max-width: 991.98px) {
    .checklist-step-form-grid {
        grid-template-columns: 1fr;
    }

    .checklist-step-form-main {
        grid-template-columns: 1fr;
    }

    .checklist-step-form-image {
        justify-content: start;
    }
}

@media (max-width: 767.98px) {
    .checklist-step-form-type-grid {
        grid-template-columns: 1fr;
    }
}

.checklist-answer-card {
    padding: 16px;
    border: 1px solid #e4e9f4;
    border-radius: 14px;
    background: #f9fbff;
    margin-bottom: 12px;
}

.checklist-create-shell {
    padding: 4px 2px;
}

.theme-dark .item-info-wrapper,
.theme-dark .checklist-create-shell,
body.theme-dark .item-info-wrapper,
body.theme-dark .checklist-create-shell {
    background: transparent;
    color: #e5eefb;
    border-radius: 18px;
}

.checklist-create-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
    border: 1px solid #dfe7f5;
}

.theme-dark .checklist-create-hero {
    background: linear-gradient(135deg, #111a2e 0%, #16233a 100%);
    border-color: rgba(148, 163, 184, 0.24);
}

.checklist-create-card {
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e4e9f4;
    box-shadow: 0 10px 24px rgba(26, 43, 74, 0.05);
}

.checklist-create-step-badge {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #dfe7f5;
}

.theme-dark .checklist-create-card {
    background: #0f172a;
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.theme-dark .checklist-create-step-badge,
body.theme-dark .checklist-create-step-badge {
    background: rgba(15, 23, 42, 0.88);
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.24);
}

.theme-dark .checklist-create-card .text-muted,
.theme-dark .checklist-create-hero .text-muted,
body.theme-dark .checklist-create-card .text-muted,
body.theme-dark .checklist-create-hero .text-muted {
    color: #94a3b8 !important;
}

.modal-header .modal-header-content {
    flex: 1 1 auto;
    min-width: 0;
}

.modal-header .checklist-create-hero {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.modal-header .checklist-create-hero .text-muted {
    max-width: 100%;
}

#universalModal .modal-dialog {
    margin: 88px auto 20px;
    max-width: min(1120px, calc(100vw - 32px));
}

#universalModal .modal-content {
    overflow: hidden;
}

#universalModal .modal-header {
    align-items: flex-start;
    padding: 18px 20px;
}

#universalModal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

#universalModal .modal-body {
    padding: 16px 20px 20px;
}

#universalModal .modal-body .content > :first-child {
    margin-top: 0 !important;
}

#universalModal .modal-body .content > :last-child {
    margin-bottom: 0 !important;
}

#universalModal .checklist-create-shell {
    padding: 0;
}

#universalModal .checklist-create-form .row.g-3 {
    --bs-gutter-y: 1rem;
}

#universalModal .checklist-create-form .checklist-step-form-grid {
    margin-bottom: 0 !important;
}

#universalModal .checklist-create-form .d-flex.flex-wrap.gap-2.mt-4 {
    margin-top: 20px !important;
}

#universalModal.is-checklist-create-modal .modal-header {
    padding-bottom: 12px;
}

#universalModal.is-checklist-create-modal .modal-body {
    padding-top: 12px;
}

#universalModal.is-checklist-create-modal .checklist-create-hero {
    display: none !important;
}

#universalModal.is-checklist-create-modal .modal-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#universalModal.is-checklist-create-modal .modal-header-copy {
    min-width: 0;
}

#universalModal.is-checklist-create-modal .modal-header-copy .text-uppercase {
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    #universalModal .modal-dialog {
        margin: 74px 12px 12px;
        max-width: none;
    }

    #universalModal .modal-header,
    #universalModal .modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.checklist-step-preview {
    max-width: 160px;
}

.checklist-item-form .select2-container {
    width: 100% !important;
}

.checklist-item-form .select2-selection {
    min-height: 38px !important;
    border-color: #ced4da !important;
}

.checklist-precondition-links {
    display: grid;
    gap: 8px;
}

.checklist-precondition-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e4e9f4;
    border-radius: 12px;
    background: #f8fbff;
}

.checklist-precondition-link-step {
    font-weight: 600;
    color: #1f2937;
}

.checklist-precondition-link-arrow {
    color: #6b7280;
}

.checklist-precondition-link-answer {
    padding: 2px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1d4ed8;
    font-size: 0.9rem;
}

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

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

.profile-page-card {
    display: grid;
    gap: 22px;
}

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

.profile-summary-item {
    padding: 16px 18px;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    background: #fbfcfe;
}

.profile-summary-label {
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-telegram-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.profile-telegram-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.profile-telegram-form {
    max-width: 520px;
}

.error-page-shell {
    min-height: calc(100vh - 220px);
    align-content: center;
}

.error-page-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    justify-items: center;
    background:
        radial-gradient(circle at top center, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.error-page-illustration {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 280px);
    height: 180px;
    margin-bottom: 8px;
}

.error-map-card,
.error-server-stack {
    position: relative;
    width: 220px;
    height: 150px;
}

.error-map-card {
    overflow: hidden;
    border: 1px solid #dbe6f7;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.06) 25%, transparent 25%) 0 0 / 34px 34px,
        linear-gradient(135deg, transparent 75%, rgba(37, 99, 235, 0.06) 75%) 0 0 / 34px 34px,
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
}

.error-map-grid {
    position: absolute;
    inset: 18px;
    border-radius: 16px;
    background:
        linear-gradient(#dce7f7 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(90deg, #dce7f7 1px, transparent 1px) 0 0 / 36px 36px;
    opacity: 0.8;
}

.error-map-route {
    position: absolute;
    left: 38px;
    top: 78px;
    width: 132px;
    height: 42px;
    border: 4px solid #2563eb;
    border-top: 0;
    border-left: 0;
    border-radius: 0 0 28px 0;
}

.error-map-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #ffffff;
    border: 5px solid #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.error-map-pin-a {
    left: 31px;
    top: 64px;
}

.error-map-pin-b {
    right: 40px;
    top: 97px;
    border-color: #dc3545;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.18);
}

.error-search-lens {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 70px;
    height: 70px;
    border: 8px solid rgba(17, 24, 39, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
}

.error-search-lens::after {
    content: "";
    position: absolute;
    right: -25px;
    bottom: -18px;
    width: 42px;
    height: 8px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.85);
    transform: rotate(42deg);
    transform-origin: left center;
}

.error-search-lens span {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 18px;
    height: 18px;
    border-top: 4px solid #2563eb;
    border-left: 4px solid #2563eb;
    transform: rotate(-18deg);
}

.error-server-stack {
    display: grid;
    align-content: center;
    gap: 12px;
}

.error-server-unit {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 12px 12px;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 18px;
    border: 1px solid #dbe6f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.error-server-unit span {
    height: 10px;
    border-radius: 999px;
    background: #dbe6f7;
}

.error-server-unit i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
}

.error-server-unit i:last-child {
    background: #9fb6dc;
}

.error-warning-badge {
    position: absolute;
    right: 8px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    box-shadow: 0 18px 32px rgba(234, 88, 12, 0.18);
    transform: rotate(8deg);
}

.error-warning-badge strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dc3545;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
}

.error-page-code {
    margin-bottom: 8px;
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    color: #0d6efd;
}

.error-page-text {
    max-width: 560px;
    margin: 0;
    color: #5b6474;
    font-size: 1.05rem;
    line-height: 1.65;
}

.error-page-message {
    width: 100%;
    max-width: 560px;
    margin: 10px 0 0;
    text-align: left;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.role-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 26px;
    border: 1px solid #e3e9f4;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.role-page-eyebrow {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.role-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.role-page-subtitle {
    margin: 10px 0 0;
    max-width: 640px;
    color: #5b6474;
}

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

.role-page-card {
    padding: 24px 26px;
    border: 1px solid #e3e9f4;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.role-users-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.role-users-hint {
    margin: 6px 0 18px;
    color: #6b7280;
}

.role-users-list {
    display: grid;
    gap: 10px;
}

.role-user-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    background: #fbfcfe;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.role-user-option:hover {
    border-color: #cfd9eb;
    background: #f5f8fd;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.role-user-option-check {
    padding-top: 2px;
}

.role-user-option-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.role-user-option-name {
    font-weight: 600;
    color: #111827;
}

.role-user-option-meta {
    color: #6b7280;
    word-break: break-word;
}

.role-users-actions {
    margin-top: 18px;
}

.role-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

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

.checklist-start-eyebrow {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.checklist-start-shell {
    display: grid;
}

.checklist-start-card {
    padding: 24px 26px;
    border: 1px solid #e3e9f4;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.checklist-start-card-head {
    margin-bottom: 18px;
}

.checklist-start-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.checklist-start-field {
    margin-bottom: 18px;
}

.checklist-start-roles {
    margin-bottom: 22px;
}

.checklist-start-roles-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border: 1px solid #e4e9f4;
    border-radius: 18px;
    background: #f8fbff;
    color: #111827;
    text-align: left;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.checklist-start-roles-toggle:hover {
    border-color: #cfd9eb;
    background: #f3f8ff;
}

.checklist-start-roles-toggle .fa-chevron-down {
    transition: transform 0.18s ease, color 0.18s ease;
    color: #64748b;
}

.checklist-start-roles-toggle:not(.collapsed) {
    border-color: #cfe0ff;
    background: #eef4ff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.checklist-start-roles-toggle:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
    color: #0d6efd;
}

.checklist-start-roles-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checklist-start-roles-panel {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    background: #fbfcfe;
}

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

.checklist-start-role-card {
    padding: 18px;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    background: #ffffff;
}

.checklist-start-role-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.checklist-start-role-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.checklist-start-role-trigger-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checklist-start-role-title {
    font-weight: 700;
    color: #111827;
}

.checklist-start-role-summary {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.checklist-start-role-trigger .fa-chevron-down {
    color: #64748b;
    transition: transform 0.18s ease, color 0.18s ease;
}

.checklist-start-role-trigger:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
    color: #0d6efd;
}

.checklist-start-role-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #e8edf5;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.checklist-start-role-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.checklist-start-role-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #fbfcfe;
    cursor: pointer;
}

.checklist-start-role-user {
    color: #334155;
    font-weight: 500;
    word-break: break-word;
}

.checklist-start-default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.checklist-start-schedule {
    margin-bottom: 22px;
}

.checklist-start-schedule-modes .form-group {
    margin-bottom: 0;
}

.checklist-start-schedule-mode-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.checklist-start-schedule-mode-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
}

.checklist-start-schedule-section {
    margin-top: 16px;
}

.checklist-start-schedule-mode-label,
.checklist-start-schedule .form-label,
.checklist-start-schedule-checkbox-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    color: #111827;
}

.checklist-start-form label,
.checklist-start-form .form-label,
.checklist-start-form .control-label,
.checklist-start-default label {
    font-weight: 700;
    color: var(--ci-heading);
}

.checklist-start-schedule-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.checklist-start-schedule-checkbox-grid-monthdays {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.checklist-start-schedule-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5eaf3;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

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

.checklist-publish-eyebrow {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.checklist-publish-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.checklist-publish-column {
    display: grid;
    gap: 20px;
}

.checklist-publish-card {
    padding: 24px 26px;
    border: 1px solid #e3e9f4;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.checklist-publish-card-title {
    margin-bottom: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.checklist-publish-link-shell {
    display: grid;
    gap: 14px;
}

.checklist-publish-link-layout {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.checklist-publish-link-main {
    display: flex;
    flex: 1 1 520px;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}

.checklist-publish-link-row {
    max-width: 680px;
    width: 100%;
    align-self: flex-start;
}

.checklist-publish-link-value {
    padding: 14px 16px;
    border: 1px solid #dfe7f5;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    color: #1f2937;
    word-break: break-all;
}

.checklist-publish-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.checklist-publish-action-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.checklist-publish-action-icon {
    display: inline-block;
    color: currentColor;
    line-height: 1;
}

.checklist-publish-qr-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.checklist-publish-qr-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    padding: 12px;
    border: 1px solid #dfe7f5;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.checklist-publish-qr-image {
    display: block;
    width: 196px;
    height: 196px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.checklist-publish-link-button,
.checklist-publish-link-button i {
    color: #475569;
}

.checklist-publish-link-button,
.checklist-publish-qr-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.checklist-publish-qr-download i {
    color: currentColor;
}

.checklist-publish-qr-title {
    color: #111827;
    font-size: 0.96rem;
    font-weight: 700;
}

.checklist-publish-flow-shell {
    overflow: hidden;
    border: 1px solid #e6ebf3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.checklist-flow-table-wrap {
    max-height: min(70vh, 960px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
}

.checklist-flow-table {
    margin: 0;
    background: transparent;
}

.checklist-flow-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #e6ebf3;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.checklist-flow-table tbody td {
    min-width: 220px;
    padding: 14px 16px;
    border-color: #edf2f7;
    vertical-align: top;
}

.checklist-flow-table .item-item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 8px 8px 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f1ff !important;
    color: #1d4ed8 !important;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.checklist-flow-table .item-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.12);
}

.checklist-flow-table .item-item.item-parent {
    background: #fff1f2 !important;
    color: #be123c !important;
}

.checklist-flow-table .item-item.item-child {
    background: #ecfdf3 !important;
    color: #15803d !important;
}

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

.checklist-publish-summary-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5eaf3;
}

.checklist-publish-summary-item strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
    color: #111827;
}

.checklist-publish-summary-label {
    color: #6b7280;
    font-size: 0.84rem;
}

.checklist-publish-description {
    margin-top: 18px;
    color: #475569;
    line-height: 1.6;
}

.checklist-publish-option {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #eef2f7;
}

.checklist-publish-option:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.checklist-publish-option-control .form-group {
    margin-bottom: 0;
}

.checklist-publish-option-control .form-check {
    min-height: auto;
}

.checklist-publish-option-control .form-check-label {
    font-weight: 600;
    color: #111827;
}

.checklist-publish-option-text {
    color: #64748b;
    line-height: 1.55;
}

@media (max-width: 991px) {
    .checklist-editor-topbar,
    .checklist-editor-listbar {
        flex-direction: column;
        align-items: stretch;
    }

    .checklist-editor-topbar-actions,
    .checklist-editor-listactions {
        justify-content: flex-start;
    }

    .checklist-publish-link-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .checklist-page-breadcrumbs__list {
        gap: 6px;
    }

    .checklist-page-breadcrumbs__item {
        font-size: 0.7rem;
    }

    .checklist-page-title {
        font-size: 1.7rem;
    }

    .checklist-header-inline-field__display {
        gap: 8px;
    }

    .checklist-accordion-head {
        display: none;
    }

    .checklist-step-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checklist-step-groups {
        min-width: 0;
    }

    .role-page-hero {
        flex-direction: column;
    }

    .role-page-actions {
        justify-content: flex-start;
    }

    .checklist-publish-grid {
        grid-template-columns: 1fr;
    }

    .checklist-publish-summary {
        grid-template-columns: 1fr;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .profile-telegram-head {
        flex-direction: column;
    }

    .error-page-shell {
        min-height: auto;
    }

    .checklist-publish-option {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

body.theme-dark,
body.theme-dark .main-content,
body.theme-dark main.container {
    background: #0b1220 !important;
    color: #e5eefb;
}

body.theme-dark .checklist-page-title,
body.theme-dark .checklist-editor-topbar .checklist-page-title,
body.theme-dark .project-switcher-name,
body.theme-dark .checklist-overview-step-title,
body.theme-dark .scheme-card-title a,
body.theme-dark .navbar-brand,
body.theme-dark .nav-link,
body.theme-dark .user-menu-name,
body.theme-dark .profile-summary-item strong,
body.theme-dark .profile-telegram-title,
body.theme-dark .text-dark {
    color: #f8fbff !important;
}

body.theme-dark .checklist-page-status-badge.is-public {
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.38);
    background: rgba(20, 83, 45, 0.72);
}

body.theme-dark .checklist-page-status-badge.is-private {
    color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(120, 53, 15, 0.72);
}

body.theme-dark .checklist-page-breadcrumbs__item,
body.theme-dark .checklist-page-breadcrumbs__link {
    color: #94a3b8;
}

body.theme-dark .checklist-page-breadcrumbs__item.is-current,
body.theme-dark .checklist-page-breadcrumbs__current {
    color: #f8fbff;
}

body.theme-dark .checklist-page-eyebrow,
body.theme-dark .text-muted,
body.theme-dark .form-text,
body.theme-dark .project-switcher-label,
body.theme-dark .profile-summary-label,
body.theme-dark .user-menu-plan-label,
body.theme-dark .checklist-publish-summary-label,
body.theme-dark .checklist-overview-step-info {
    color: #94a3b8 !important;
}

body.theme-dark .checklist-page-description {
    color: #cbd5e1;
}

body.theme-dark .checklist-header-inline-field.is-empty .checklist-page-description {
    color: #94a3b8;
}

body.theme-dark .checklist-header-inline-field__edit {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

body.theme-dark .checklist-header-inline-field__edit:hover,
body.theme-dark .checklist-header-inline-field__edit:focus {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(30, 41, 59, 0.94);
    color: #dbeafe;
}

body.theme-dark .navbar,
body.theme-dark footer,
body.theme-dark .modal-content,
body.theme-dark .dropdown-menu,
body.theme-dark .project-switcher-toggle,
body.theme-dark .project-switcher-menu,
body.theme-dark .checklist-page-card,
body.theme-dark .profile-page-card,
body.theme-dark .scheme-card,
body.theme-dark .animated-card,
body.theme-dark .alert-light,
body.theme-dark .card,
body.theme-dark .user-menu-dropdown,
body.theme-dark .language-switch-dropdown {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark .user-menu-toggle,
body.theme-dark .language-switch-toggle {
    background: transparent !important;
    color: #f8fbff !important;
}

body.theme-dark .language-switch-code,
body.theme-dark .user-menu-plan-value,
body.theme-dark .project-switcher-item,
body.theme-dark .project-switcher-create,
body.theme-dark .dropdown-item {
    color: #f8fbff !important;
}

body.theme-dark .project-switcher-item-icon {
    color: #94a3b8 !important;
}

body.theme-dark .project-switcher-item-edit {
    color: #94a3b8 !important;
}

body.theme-dark .project-switcher-item-edit:hover {
    color: #ffffff !important;
    background: rgba(148, 163, 184, 0.16) !important;
}

body.theme-dark .project-switcher-item:hover,
body.theme-dark .project-switcher-create:hover,
body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
    background: #18233b !important;
    color: #ffffff !important;
}

body.theme-dark .checklist-more-menu .checklist-more-menu-delete,
body.theme-dark .checklist-more-menu .checklist-more-menu-delete:visited {
    color: #ff7b88 !important;
}

body.theme-dark .checklist-more-menu .checklist-more-menu-delete:hover,
body.theme-dark .checklist-more-menu .checklist-more-menu-delete:focus,
body.theme-dark .checklist-more-menu .checklist-more-menu-delete:active {
    color: #ff9aa4 !important;
    background: rgba(220, 53, 69, 0.18) !important;
}

body.theme-dark .project-switcher-item.is-current,
body.theme-dark .checklist-run-tabs .nav-link,
body.theme-dark .profile-summary-item,
body.theme-dark .scheme-card-stat,
body.theme-dark .checklist-publish-summary-item,
body.theme-dark .checklist-flow-table .item-item,
body.theme-dark .badge.text-bg-light {
    background: #18233b !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark .checklist-publish-summary-item strong,
body.theme-dark .scheme-card-stat a,
body.theme-dark .scheme-card-stat span {
    color: #f8fbff !important;
}

body.theme-dark .table,
body.theme-dark .table td,
body.theme-dark .table th,
body.theme-dark .checklist-overview-table th,
body.theme-dark .checklist-overview-table td,
body.theme-dark .grid-view th,
body.theme-dark .grid-view td {
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.theme-dark .checklist-page-table thead th,
body.theme-dark .grid-view thead th {
    background: #18233b !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .input-group-text {
    background: #0f172a !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

body.theme-dark .form-control::placeholder {
    color: #64748b !important;
}

body.theme-dark .nav-pills .nav-link,
body.theme-dark .nav-pills .link-dark,
body.theme-dark .nav-link.link-dark {
    color: #cbd5e1 !important;
}

body.theme-dark .nav-pills .nav-link:hover,
body.theme-dark .nav-pills .nav-link:focus,
body.theme-dark .nav-pills .nav-link.active {
    background: #18233b !important;
    color: #f8fbff !important;
}

body.theme-dark .dropdown-divider {
    border-top-color: rgba(148, 163, 184, 0.18) !important;
}

body.theme-dark .table,
body.theme-dark .grid-view table,
body.theme-dark .checklist-overview-table,
body.theme-dark .checklist-page-table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #e5eefb !important;
    --bs-table-border-color: rgba(148, 163, 184, 0.18) !important;
    --bs-table-striped-bg: #111a2e !important;
    --bs-table-hover-bg: #18233b !important;
    background: transparent !important;
}

body.theme-dark .table > :not(caption) > * > *,
body.theme-dark .grid-view table > :not(caption) > * > *,
body.theme-dark .checklist-overview-table > :not(caption) > * > *,
body.theme-dark .checklist-page-table > :not(caption) > * > * {
    background-color: transparent !important;
    box-shadow: none !important;
}

body.theme-dark .grid-view,
body.theme-dark .checklist-overview-table-wrap,
body.theme-dark .checklist-page-table {
    background: transparent !important;
}

body.theme-dark .grid-view thead th,
body.theme-dark .checklist-overview-table thead th,
body.theme-dark .checklist-page-table thead th {
    background: #18233b !important;
    color: #f8fbff !important;
}

body.theme-dark .checklist-flow-table thead th {
    background: #18233b !important;
    color: #f8fbff !important;
}

body.theme-dark .scheme-card-stat,
body.theme-dark .checklist-publish-summary-item,
body.theme-dark .profile-summary-item,
body.theme-dark .checklist-flow-table .item-item {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16) !important;
}

body.theme-dark .checklist-graph-path {
    stroke-width: 3.5 !important;
    opacity: 1 !important;
    filter: drop-shadow(0 2px 8px rgba(2, 6, 23, 0.65)) !important;
}

body.theme-dark .checklist-graph-path-parent {
    stroke: #34d399 !important;
}

body.theme-dark .checklist-graph-path-child {
    stroke: #f87171 !important;
}

body.theme-dark .checklist-graph-label-bg {
    fill: rgba(15, 23, 42, 0.94);
    stroke: rgba(148, 163, 184, 0.26);
}

body.theme-dark .checklist-graph-label-text {
    fill: #e2e8f0;
}

body.theme-dark .checklist-step {
    background: #111a2e !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.35) !important;
}

body.theme-dark .checklist-step .accordion-button,
body.theme-dark .checklist-step .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #111a2e 0%, #16233a 100%) !important;
    color: #f8fbff !important;
}

body.theme-dark .checklist-step .accordion-button::after {
    filter: brightness(1.8);
}

body.theme-dark .checklist-step-number {
    color: #94a3b8 !important;
}

body.theme-dark .checklist-step .accordion-body,
body.theme-dark .checklist-item-form,
body.theme-dark .checklist-answer-card,
body.theme-dark .checklist-precondition-links,
body.theme-dark .checklist-precondition-link {
    background: #0f172a !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.theme-dark .checklist-step .accordion-body {
    border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body.theme-dark .checklist-item-form .form-label,
body.theme-dark .checklist-item-form h6,
body.theme-dark .checklist-precondition-link-step,
body.theme-dark .checklist-precondition-link-answer,
body.theme-dark .checklist-step-title,
body.theme-dark .checklist-step-groups .badge,
body.theme-dark .checklist-item-form .text-dark {
    color: #f8fbff !important;
}

body.theme-dark .checklist-step-title-inline__action {
    color: #94a3b8;
}

body.theme-dark .checklist-step-title-inline__action:hover,
body.theme-dark .checklist-step-title-inline__action:focus {
    background: rgba(96, 165, 250, 0.16);
    color: #dbeafe;
}

body.theme-dark .checklist-step-title-inline__action.is-save:hover,
body.theme-dark .checklist-step-title-inline__action.is-save:focus {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

body.theme-dark .checklist-step-title-inline__action.is-cancel:hover,
body.theme-dark .checklist-step-title-inline__action.is-cancel:focus {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

body.theme-dark .checklist-item-form .text-muted,
body.theme-dark .checklist-item-form .small,
body.theme-dark .checklist-precondition-link-arrow,
body.theme-dark .checklist-step-groups .text-muted {
    color: #94a3b8 !important;
}

body.theme-dark .checklist-step-groups .bg-primary-subtle,
body.theme-dark .checklist-step-groups .border-primary-subtle {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
}

body.theme-dark .checklist-step-groups .text-primary-emphasis {
    color: #bfdbfe !important;
}

body.theme-dark .checklist-editor-page .checklist-step-variant-create {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(96, 165, 250, 0.26);
    color: #93c5fd;
    box-shadow: 0 8px 14px rgba(2, 6, 23, 0.26);
}

body.theme-dark .checklist-editor-page .checklist-step-variant-create:hover,
body.theme-dark .checklist-editor-page .checklist-step-variant-create:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

body.theme-dark .checklist-editor-page .checklist-step-variant-chip.is-graph-answer-source .badge {
    background: rgba(37, 99, 235, 0.24) !important;
    border-color: rgba(96, 165, 250, 0.34) !important;
    color: #bfdbfe !important;
}

body.theme-dark .checklist-editor-page .checklist-step-variant-chip.is-graph-answer-active .badge {
    background: rgba(96, 165, 250, 0.3) !important;
    border-color: rgba(147, 197, 253, 0.44) !important;
    color: #eff6ff !important;
}

body.theme-dark .checklist-step.is-graph-focus .accordion-button {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.16) 0%, #16233a 14%, #16233a 86%, rgba(248, 113, 113, 0.16) 100%) !important;
    box-shadow: inset 3px 0 0 #34d399, inset -3px 0 0 #f87171 !important;
}

body.theme-dark .checklist-step.is-graph-ancestor .accordion-button {
    background: linear-gradient(135deg, #10231d 0%, #132a23 100%) !important;
    box-shadow: inset 3px 0 0 #34d399 !important;
}

body.theme-dark .checklist-step.is-graph-descendant .accordion-button {
    background: linear-gradient(135deg, #2a1519 0%, #30191e 100%) !important;
    box-shadow: inset -3px 0 0 #f87171 !important;
}

body.theme-dark .checklist-step.is-graph-ancestor,
body.theme-dark .checklist-step.is-graph-descendant {
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.4) !important;
}

body.theme-dark .checklist-flag-badge.text-bg-light {
    background: #18233b !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body.theme-dark .checklist-editor-listbar {
    background: linear-gradient(180deg, rgba(17, 26, 46, 0.98) 0%, rgba(22, 35, 58, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34) !important;
}

body.theme-dark .checklist-editor-listtitle,
body.theme-dark .checklist-editor-listmeta,
body.theme-dark .checklist-editor-listbar .text-muted {
    color: #f8fbff !important;
}

body.theme-dark .checklist-item-form-heading .badge,
body.theme-dark .checklist-item-form-heading .bg-light,
body.theme-dark .checklist-item-form-heading .text-dark {
    background: #18233b !important;
    color: #f8fbff !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.theme-dark .checklist-precondition-link-answer {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #bfdbfe !important;
}

body.theme-dark .checklist-item-form .select2-selection,
body.theme-dark .select2-container--default .select2-selection--single,
body.theme-dark .select2-container--default .select2-selection--multiple {
    background: #0f172a !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

body.theme-dark .checklist-item-form .select2-selection__rendered,
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice__display,
body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__placeholder,
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #e5eefb !important;
}

body.theme-dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: #94a3b8 !important;
    border-bottom-color: #94a3b8 !important;
}

body.theme-dark .select2-dropdown,
body.theme-dark .select2-container--default .select2-search--dropdown .select2-search__field {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark .select2-results__option {
    background: transparent !important;
    color: #e5eefb !important;
}

body.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body.theme-dark .select2-container--default .select2-results__option--highlighted[data-selected] {
    background: #18233b !important;
    color: #f8fbff !important;
}

body.theme-dark .select2-container--default .select2-results__option[aria-selected=true],
body.theme-dark .select2-container--default .select2-results__option[data-selected=true] {
    background: #16233a !important;
    color: #bfdbfe !important;
}

body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #18233b !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #e5eefb !important;
}

body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #94a3b8 !important;
}

body.theme-dark .select2-container--default .select2-selection--multiple .select2-search__field,
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e5eefb !important;
}

body.theme-dark .checklist-progress,
body.theme-dark .run-executors-card,
body.theme-dark .run-history-card {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32) !important;
}

body.theme-dark .checklist-progress .text-secondary,
body.theme-dark .run-executors-card .text-secondary,
body.theme-dark .run-history-card .text-secondary,
body.theme-dark .run-history-card .text-muted {
    color: #94a3b8 !important;
}

body.theme-dark .task-dashboard-filter-label {
    color: #94a3b8 !important;
}

body.theme-dark .task-dashboard-filter .form-select {
    background-color: #111a2e;
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .run-history-table th {
    color: #94a3b8 !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body.theme-dark .run-history-table td {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body.theme-dark .run-history-step-title,
body.theme-dark .run-history-result,
body.theme-dark .run-history-card .alert {
    color: #e5eefb !important;
}

body.theme-dark .run-history-result,
body.theme-dark .run-history-card .alert {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body.theme-dark .run-history-step-number {
    background: rgba(96, 165, 250, 0.18) !important;
    color: #bfdbfe !important;
}

body.theme-dark .checklist-progress .progress {
    background: #18233b !important;
}

body.theme-dark .checklist-publish-card {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32) !important;
}

body.theme-dark .checklist-publish-card-title,
body.theme-dark .checklist-publish-card .text-muted {
    color: #f8fbff !important;
}

body.theme-dark .checklist-publish-link-row .form-control,
body.theme-dark .checklist-publish-link-row .btn {
    background: #0f172a !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

body.theme-dark .checklist-publish-link-row .btn i {
    color: #f8fbff !important;
}

body.theme-dark .checklist-publish-link-row .btn:hover,
body.theme-dark .checklist-publish-link-row .btn:focus {
    background: #18233b !important;
    color: #ffffff !important;
    border-color: rgba(96, 165, 250, 0.32) !important;
}

body.theme-dark .checklist-publish-link-button,
body.theme-dark .checklist-publish-link-button i,
body.theme-dark .checklist-publish-qr-download,
body.theme-dark .checklist-publish-qr-download i {
    color: #f8fbff !important;
}

body.theme-dark .checklist-publish-qr-frame {
    border-color: rgba(71, 85, 105, 0.55);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.96) 100%);
}

body.theme-dark .checklist-publish-qr-title {
    color: #f8fafc;
}

body.theme-dark .scheme-card-icon-action {
    background: linear-gradient(135deg, #1f8b4c 0%, #166534 100%) !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 12px 22px rgba(22, 101, 52, 0.28) !important;
}

body.theme-dark .scheme-card-icon-action:hover,
body.theme-dark .scheme-card-icon-action:focus {
    background: linear-gradient(135deg, #249c57 0%, #1f8b4c 100%) !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 14px 24px rgba(22, 101, 52, 0.34) !important;
}

body.theme-dark .checklist-publish-link-button,
body.theme-dark .checklist-publish-link-button i {
    color: #f8fbff !important;
}

body.theme-dark .checklist-editor-mode-switcher {
    background: #111a2e;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.3);
}

body.theme-dark .checklist-editor-mode-switcher__option {
    color: #cbd5e1;
}

body.theme-dark .checklist-editor-mode-switcher__option + .checklist-editor-mode-switcher__option {
    border-left-color: rgba(148, 163, 184, 0.14);
}

body.theme-dark .checklist-editor-mode-switcher__option:hover,
body.theme-dark .checklist-editor-mode-switcher__option:focus {
    color: #bfdbfe;
    background: #16233a;
}

body.theme-dark .checklist-editor-mode-switcher__option.is-active {
    color: #bfdbfe;
    background: linear-gradient(180deg, #1b3258 0%, #173057 100%);
    box-shadow: inset 0 2px 0 rgba(96, 165, 250, 0.78);
}

body.theme-dark .btn.checklist-toolbar-button-active,
body.theme-dark .btn.checklist-toolbar-button-active:hover,
body.theme-dark .btn.checklist-toolbar-button-active:focus {
    color: #bfdbfe !important;
    background: linear-gradient(180deg, #1b3258 0%, #173057 100%) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: inset 0 2px 0 rgba(96, 165, 250, 0.78) !important;
}

body.theme-dark .checklist-mode-toggle {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.2);
    background: #111a2e;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.3);
}

body.theme-dark .checklist-mode-toggle:hover,
body.theme-dark .checklist-mode-toggle:focus {
    color: #bfdbfe;
    background: #16233a;
}

body.theme-dark .checklist-mode-toggle.is-active {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.42);
    background: linear-gradient(180deg, #1b3258 0%, #173057 100%);
    box-shadow: inset 0 2px 0 rgba(96, 165, 250, 0.78), 0 14px 28px rgba(2, 6, 23, 0.3);
}

body.theme-dark .run-check-card {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32) !important;
}

body.theme-dark .run-check-card p,
body.theme-dark .run-check-card h5,
body.theme-dark .run-check-card label,
body.theme-dark .run-check-card .help-block,
body.theme-dark .run-check-card .text-muted {
    color: #e5eefb !important;
}

body.theme-dark .run-next-steps-preview {
    border-top-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .run-next-steps-title,
body.theme-dark .run-next-step-variant {
    color: #94a3b8;
}

body.theme-dark .run-next-step-chip {
    background: #18233b;
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

body.theme-dark .run-next-step-chip.is-ready {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

body.theme-dark .run-next-step-chip.is-finish {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

body.theme-dark .run-check-card.is-overdue {
    border-color: rgba(248, 113, 113, 0.34) !important;
    box-shadow: 0 12px 24px rgba(127, 29, 29, 0.18);
}

body.theme-dark .run-check-deadline-meta {
    color: #94a3b8;
}

body.theme-dark .run-check-deadline-meta.is-overdue {
    color: #fca5a5;
}

body.theme-dark .task-run-overdue-icon {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

body.theme-dark .task-run-outdated-icon {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

body.theme-dark .checklist-run-card.has-outdated-version {
    border-color: rgba(248, 113, 113, 0.36) !important;
}

body.theme-dark .run-flow-title,
body.theme-dark .run-flow-details-cell {
    color: #cbd5e1;
}

body.theme-dark .run-flow-table-wrap {
    background: #111a2e;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .run-flow-table-wrap-next.has-hidden::after {
    background: linear-gradient(180deg, rgba(17,26,46,0) 0%, rgba(15,23,42,0.96) 100%);
}

body.theme-dark .run-flow-table-wrap-prev.has-hidden::after {
    background: linear-gradient(180deg, rgba(15,23,42,0.96) 0%, rgba(17,26,46,0) 100%);
}

body.theme-dark .run-flow-row-completed td {
    background: #0f172a;
    color: #cbd5e1;
}

body.theme-dark .run-flow-row-active td {
    background: rgba(37, 99, 235, 0.2);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
    color: #bfdbfe;
}

body.theme-dark .run-flow-table .run-history-step-number,
body.theme-dark .run-flow-table .run-history-step-title {
    color: #e5eefb;
}

body.theme-dark .run-flow-row-upcoming td {
    background: #111a2e;
    color: #e5eefb;
}

body.theme-dark .run-flow-row-upcoming.is-linked td {
    background: rgba(37, 99, 235, 0.18);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

body.theme-dark .run-flow-more-wrap {
    background: #111a2e;
}

body.theme-dark .run-sidebar-accordion-item {
    background: #111a2e;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32);
}

body.theme-dark .run-sidebar-accordion .accordion-button,
body.theme-dark .run-sidebar-accordion .accordion-button:not(.collapsed),
body.theme-dark .run-sidebar-accordion .accordion-body {
    background: #111a2e;
    color: #e5eefb;
}

body.theme-dark .run-flow-detail-trigger {
    color: #cbd5e1;
}

body.theme-dark .run-detail-block-title,
body.theme-dark .run-detail-field-value {
    color: #cbd5e1;
}

body.theme-dark .run-detail-field-name {
    color: #f8fbff;
}

body.theme-dark .checklist-start-card,
body.theme-dark .checklist-start-roles-panel,
body.theme-dark .checklist-start-role-card,
body.theme-dark .checklist-start-schedule-mode-card,
body.theme-dark .checklist-start-schedule-checkbox-item {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.28) !important;
}

body.theme-dark .checklist-start-roles-toggle {
    background: linear-gradient(135deg, #111a2e 0%, #16233a 100%) !important;
    color: #f8fbff !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.theme-dark .checklist-start-roles-toggle:hover,
body.theme-dark .checklist-start-roles-toggle:focus,
body.theme-dark .checklist-start-roles-toggle:not(.collapsed) {
    background: #18233b !important;
    color: #ffffff !important;
}

body.theme-dark .checklist-start-card-title,
body.theme-dark .checklist-start-role-title,
body.theme-dark .checklist-start-role-user,
body.theme-dark .checklist-start-role-all,
body.theme-dark .checklist-start-schedule-mode-label,
body.theme-dark .checklist-start-schedule-checkbox-text,
body.theme-dark .checklist-start-default label,
body.theme-dark .checklist-start-form .form-label {
    color: #f8fbff !important;
}

body.theme-dark .checklist-start-form .text-muted,
body.theme-dark .checklist-start-form .form-text {
    color: #94a3b8 !important;
}

body.theme-dark .checklist-start-role-summary {
    color: #94a3b8 !important;
}

body.theme-dark .checklist-start-role-all {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body.theme-dark .checklist-start-role-user-row {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body.theme-dark .checklist-start-role-user-row:hover,
body.theme-dark .checklist-start-schedule-mode-card:hover,
body.theme-dark .checklist-start-schedule-checkbox-item:hover {
    background: #18233b !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
}

body.theme-dark .checklist-start-default {
    background: #0f172a !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    border-radius: 14px;
    padding: 12px 14px;
}

body.theme-dark .checklist-start-form .form-check-input {
    background-color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

body.theme-dark .checklist-start-form .form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

body.theme-dark .role-page-hero,
body.theme-dark .role-page-card {
    background: #111a2e !important;
    color: #e5eefb !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32) !important;
}

body.theme-dark .role-page-title,
body.theme-dark .role-users-heading,
body.theme-dark .role-user-option-name {
    color: #f8fbff !important;
}

body.theme-dark .role-page-eyebrow,
body.theme-dark .role-page-subtitle,
body.theme-dark .role-users-hint,
body.theme-dark .role-user-option-meta {
    color: #94a3b8 !important;
}

body.theme-dark .role-user-option {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #e5eefb !important;
}

body.theme-dark .role-user-option:hover {
    background: #18233b !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28) !important;
}

body.theme-dark .role-users-form .form-check-input {
    background-color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

body.theme-dark .role-users-form .form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

body.theme-dark .checklist-flow-table .item-item.item-parent {
    background: #2a1519 !important;
    color: #fda4af !important;
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.28) !important;
}

body.theme-dark .checklist-flow-table .item-item.item-child {
    background: #10231d !important;
    color: #86efac !important;
    box-shadow: 0 10px 22px rgba(20, 83, 45, 0.28) !important;
}

body.theme-dark .checklist-overview-row.item-parent {
    background: #2a1519 !important;
}

body.theme-dark .checklist-overview-row.item-child {
    background: #10231d !important;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.dashboard-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.dashboard-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.dashboard-summary-card-warning .dashboard-summary-icon {
    background: #fef3c7;
    color: #d97706;
}

.dashboard-summary-card-danger .dashboard-summary-icon {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-summary-card-success .dashboard-summary-icon {
    background: #dcfce7;
    color: #16a34a;
}

.dashboard-summary-card-info .dashboard-summary-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.dashboard-summary-card-neutral .dashboard-summary-icon {
    background: #e2e8f0;
    color: #334155;
}

.dashboard-summary-value {
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-summary-label {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.92rem;
}

.dashboard-section-card {
    padding: 22px 24px;
}

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

.dashboard-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-section-subtitle {
    margin: 6px 0 0;
    color: #64748b;
}

.dashboard-run-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-run-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-run-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashboard-run-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.dashboard-run-title a,
.dashboard-scheme-title a {
    color: #0f172a;
    text-decoration: none;
}

.dashboard-run-title a:hover,
.dashboard-scheme-title a:hover {
    color: #2563eb;
}

.dashboard-run-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #64748b;
    font-size: 0.92rem;
}

.dashboard-run-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-run-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-run-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.92rem;
}

.dashboard-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-chip-accent {
    background: #dcfce7;
    color: #166534;
}

.dashboard-run-waiting-title {
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-run-actions {
    margin-top: auto;
}

.dashboard-empty-state {
    padding: 26px 8px 8px;
    text-align: center;
}

.dashboard-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.55rem;
}

.dashboard-empty-state h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-empty-state p {
    margin: 0;
    color: #64748b;
}

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

.dashboard-scheme-card {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-scheme-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-scheme-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-scheme-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-scheme-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-scheme-metric {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dashboard-scheme-metric span,
.dashboard-scheme-last-run span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.8rem;
}

.dashboard-scheme-metric strong,
.dashboard-scheme-last-run strong {
    color: #0f172a;
    font-size: 1rem;
}

.dashboard-scheme-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.theme-dark .dashboard-summary-card,
body.theme-dark .dashboard-run-card,
body.theme-dark .dashboard-scheme-card,
body.theme-dark .dashboard-scheme-metric {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.36) !important;
}

body.theme-dark .dashboard-summary-value,
body.theme-dark .dashboard-section-title,
body.theme-dark .dashboard-run-title a,
body.theme-dark .dashboard-scheme-title a,
body.theme-dark .dashboard-scheme-metric strong,
body.theme-dark .dashboard-scheme-last-run strong,
body.theme-dark .dashboard-empty-state h3 {
    color: #f8fafc !important;
}

body.theme-dark .dashboard-summary-label,
body.theme-dark .dashboard-section-subtitle,
body.theme-dark .dashboard-run-meta,
body.theme-dark .dashboard-run-progress-label,
body.theme-dark .dashboard-run-waiting-title,
body.theme-dark .dashboard-empty-state p,
body.theme-dark .dashboard-scheme-metric span,
body.theme-dark .dashboard-scheme-last-run span,
body.theme-dark .dashboard-run-card .text-muted,
body.theme-dark .dashboard-section-card .text-muted {
    color: #94a3b8 !important;
}

body.theme-dark .dashboard-chip {
    background: #1e293b !important;
    color: #c7d2fe !important;
}

body.theme-dark .dashboard-chip-accent {
    background: #10231d !important;
    color: #86efac !important;
}

@media (max-width: 992px) {
    .dashboard-run-card {
        grid-template-columns: 1fr;
    }
}

.project-empty-state-card {
    max-width: 760px;
    margin: 18px auto 0;
    padding: 32px 32px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

.project-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #dbeafe 0%, #eef2ff 100%);
    color: #2563eb;
    font-size: 1.7rem;
}

.project-empty-state-text {
    max-width: 42rem;
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.project-empty-state-actions {
    margin-top: 22px;
}

.project-empty-state-list {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-empty-invite-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.project-empty-invite-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

body.theme-dark .project-empty-state-card,
body.theme-dark .project-empty-invite-card {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.38) !important;
}

body.theme-dark .project-empty-state-text,
body.theme-dark .project-empty-state-list .text-muted,
body.theme-dark .project-empty-invite-card .text-muted {
    color: #94a3b8 !important;
}

body.theme-dark .project-empty-invite-title {
    color: #f8fafc !important;
}

body.theme-light,
body.theme-light-blue {
    background: linear-gradient(180deg, #edf4ff 0%, #f8fbff 26%, #f9fbff 100%);
    color: #1e293b;
}

body.theme-light .main-content,
body.theme-light-blue .main-content {
    background: transparent;
}

body.theme-light .app-navbar,
body.theme-light-blue .app-navbar {
    border-bottom: 1px solid rgba(30, 64, 175, 0.14);
}

body.theme-light .app-sidebar-shell,
body.theme-light-blue .app-sidebar-shell {
    min-height: calc(100vh - 60px);
    padding-top: 18px;
    padding-bottom: 24px;
    border-right: 1px solid rgba(30, 64, 175, 0.12);
}

body.theme-light .app-sidebar-shell .nav-link,
body.theme-light-blue .app-sidebar-shell .nav-link {
    border-radius: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.theme-light .app-sidebar-shell .nav-link:hover,
body.theme-light-blue .app-sidebar-shell .nav-link:hover,
body.theme-light .app-sidebar-shell .nav-link:focus,
body.theme-light-blue .app-sidebar-shell .nav-link:focus {
    transform: translateX(1px);
}

body.theme-light .project-switcher-toggle,
body.theme-light-blue .project-switcher-toggle {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.theme-light .language-switch-dropdown,
body.theme-light .user-menu-dropdown,
body.theme-light-blue .language-switch-dropdown,
body.theme-light-blue .user-menu-dropdown {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.theme-light .app-navbar {
    background: linear-gradient(135deg, #dbeafe 0%, #c7dcfb 100%) !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

body.theme-light .app-navbar .navbar-brand,
body.theme-light .app-navbar .nav-link,
body.theme-light .app-navbar .user-menu-name,
body.theme-light .app-navbar .language-switch-code,
body.theme-light .app-navbar .text-dark {
    color: #10213f !important;
}

body.theme-light .app-navbar .nav-link:hover,
body.theme-light .app-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.34);
    color: #0f172a !important;
}

body.theme-light .language-switch-toggle,
body.theme-light .user-menu-toggle {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(148, 163, 184, 0.22);
}

body.theme-light .app-sidebar-shell {
    background: linear-gradient(180deg, #d9e8ff 0%, #eaf2ff 100%);
}

body.theme-light .app-sidebar-shell .nav-link,
body.theme-light .app-sidebar-shell .nav-link.link-dark {
    color: #1d3557 !important;
}

body.theme-light .app-sidebar-shell .nav-link:hover,
body.theme-light .app-sidebar-shell .nav-link:focus {
    background: rgba(255, 255, 255, 0.58);
    color: #0f172a !important;
}

body.theme-light .project-switcher-toggle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(241, 247, 255, 0.96) 100%);
    border-color: rgba(59, 130, 246, 0.16);
}

body.theme-light-blue .app-navbar {
    background: linear-gradient(135deg, #0f2747 0%, #183a67 55%, #214f83 100%) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

body.theme-light-blue .app-navbar .navbar-brand,
body.theme-light-blue .app-navbar .nav-link,
body.theme-light-blue .app-navbar .user-menu-name,
body.theme-light-blue .app-navbar .language-switch-code,
body.theme-light-blue .app-navbar .text-dark {
    color: #eff6ff !important;
}

body.theme-light-blue .app-navbar .nav-link:hover,
body.theme-light-blue .app-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

body.theme-light-blue .language-switch-toggle,
body.theme-light-blue .user-menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(191, 219, 254, 0.2);
}

body.theme-light-blue .language-switch-toggle::after,
body.theme-light-blue .user-menu-toggle::after {
    color: #dbeafe;
}

body.theme-light-blue .app-sidebar-shell {
    background: linear-gradient(180deg, #163154 0%, #1b3f6c 100%);
    box-shadow: inset -1px 0 0 rgba(191, 219, 254, 0.08);
}

body.theme-light-blue .app-sidebar-shell .nav-link,
body.theme-light-blue .app-sidebar-shell .nav-link.link-dark,
body.theme-light-blue .project-switcher-label,
body.theme-light-blue .project-switcher-name {
    color: #dbeafe !important;
}

body.theme-light-blue .app-sidebar-shell .nav-link:hover,
body.theme-light-blue .app-sidebar-shell .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

body.theme-light-blue .project-switcher-toggle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(191, 219, 254, 0.1) 100%);
    border-color: rgba(191, 219, 254, 0.14);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.16);
}

body.theme-light-blue .project-switcher-menu {
    background: #ffffff !important;
}

.checklist-run-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #dbe4f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checklist-run-tabs .nav-link:hover,
.checklist-run-tabs .nav-link:focus {
    background: #eef4ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.checklist-run-tabs .nav-link.active,
.checklist-run-tabs .show > .nav-link {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #0d6efd 100%);
    border-color: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.checklist-run-tabs .nav-link .badge {
    background: rgba(148, 163, 184, 0.16) !important;
    color: #334155 !important;
}

.checklist-run-tabs .nav-link.active .badge,
.checklist-run-tabs .show > .nav-link .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

body.theme-dark .checklist-run-tabs .nav-link {
    background: #111a2e !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06) !important;
}

body.theme-dark .checklist-run-tabs .nav-link:hover,
body.theme-dark .checklist-run-tabs .nav-link:focus {
    background: #18233b !important;
    color: #f8fbff !important;
    border-color: rgba(96, 165, 250, 0.32) !important;
}

body.theme-dark .checklist-run-tabs .nav-link.active,
body.theme-dark .checklist-run-tabs .show > .nav-link {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.3) !important;
}

body.theme-dark .checklist-run-tabs .nav-link .badge {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
}

body.theme-dark .checklist-run-tabs .nav-link.active .badge,
body.theme-dark .checklist-run-tabs .show > .nav-link .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

.landing-plan-price {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.upgrade-plan-form,
.upgrade-plan-options {
    display: grid;
    gap: 16px;
}

.upgrade-plan-page-card {
    max-width: 1280px;
}

.upgrade-billing-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.24);
    width: fit-content;
}

.upgrade-billing-switch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.upgrade-billing-switch-button:hover,
.upgrade-billing-switch-button:focus {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.72);
}

.upgrade-billing-switch-button.is-active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.upgrade-plan-options-vertical {
    grid-template-columns: minmax(0, 1fr);
}

.upgrade-plan-columns {
    align-items: stretch;
}

.upgrade-plan-column {
    display: block;
    height: 100%;
    min-height: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upgrade-plan-column:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.upgrade-plan-column.is-selected {
    border-color: #2563eb;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.upgrade-plan-column.is-current {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

.upgrade-plan-column.is-disabled {
    opacity: 0.9;
}

.upgrade-plan-column-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
}

.upgrade-plan-column-top {
    position: relative;
    padding-top: 10px;
    margin-bottom: 22px;
}

.upgrade-plan-column-check {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    min-height: 0;
}

.upgrade-plan-column-check .form-check-input {
    float: none;
    margin: 0;
}

.upgrade-plan-column-badge {
    margin-bottom: 14px;
}

.upgrade-plan-column-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.upgrade-plan-column-body {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    flex: 1 1 auto;
}

.upgrade-plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #334155;
    line-height: 1.45;
}

.upgrade-plan-feature strong {
    color: #111827;
}

.upgrade-plan-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    flex: 0 0 auto;
}

.upgrade-plan-column-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.upgrade-plan-option {
    display: block;
    padding: 20px;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upgrade-plan-option-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}

.upgrade-plan-option:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.upgrade-plan-option.is-selected {
    border-color: #2563eb;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.upgrade-plan-option.is-current {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

.upgrade-plan-option .form-check {
    margin: 0;
    min-height: 0;
    padding-left: 1.75rem;
}

.upgrade-plan-option .form-check-input {
    float: none;
    margin-left: -1.75rem;
}

.upgrade-plan-name {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.upgrade-plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.upgrade-plan-price-old,
.upgrade-invoice-old-price {
    margin-bottom: 0.35rem;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.upgrade-plan-yearly-note {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.upgrade-plan-limits {
    display: grid;
    gap: 10px;
}

.upgrade-plan-limits-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.upgrade-plan-limit-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.upgrade-plan-limits-inline .upgrade-plan-limit-row {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.upgrade-invoice-summary {
    display: grid;
    gap: 8px;
}

.upgrade-invoice-box {
    padding: 20px;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

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

.upgrade-invoice-field {
    display: grid;
    gap: 4px;
}

.upgrade-invoice-field > span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.upgrade-admin-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.upgrade-admin-table .form-control {
    min-width: 96px;
}

.upgrade-admin-plans {
    display: grid;
    gap: 18px;
}

.upgrade-admin-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.82);
}

.upgrade-admin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.upgrade-admin-card-title {
    font-size: 1.15rem;
    font-weight: 700;
}

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

body.theme-dark .landing-plan-price,
body.theme-dark .upgrade-plan-name,
body.theme-dark .upgrade-plan-price,
body.theme-dark .upgrade-plan-column-title,
body.theme-dark .upgrade-plan-feature strong {
    color: #f8fbff;
}

body.theme-dark .upgrade-plan-option,
body.theme-dark .upgrade-invoice-box,
body.theme-dark .upgrade-plan-column {
    background: linear-gradient(180deg, #111a2e 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .upgrade-billing-switch {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .upgrade-billing-switch-button {
    color: #94a3b8;
}

body.theme-dark .upgrade-billing-switch-button:hover,
body.theme-dark .upgrade-billing-switch-button:focus {
    color: #f8fbff;
    background: rgba(30, 41, 59, 0.72);
}

body.theme-dark .upgrade-billing-switch-button.is-active {
    color: #f8fbff;
    background: #1e293b;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
}

body.theme-dark .upgrade-plan-option.is-current,
body.theme-dark .upgrade-plan-column.is-current {
    background: linear-gradient(180deg, #172036 0%, #111827 100%);
}

body.theme-dark .upgrade-plan-option.is-selected,
body.theme-dark .upgrade-plan-column.is-selected {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

body.theme-dark .upgrade-invoice-field > span,
body.theme-dark .upgrade-admin-table th {
    color: #94a3b8;
}

body.theme-dark .upgrade-plan-limits-inline .upgrade-plan-limit-row,
body.theme-dark .upgrade-plan-feature {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

body.theme-dark .upgrade-plan-feature-icon {
    background: rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
}

body.theme-dark .upgrade-plan-column-bottom {
    border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .upgrade-plan-price-old,
body.theme-dark .upgrade-invoice-old-price,
body.theme-dark .upgrade-plan-yearly-note {
    color: #94a3b8;
}

body.theme-dark .upgrade-admin-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 991.98px) {
    .upgrade-admin-fields {
        grid-template-columns: 1fr;
    }

    .upgrade-plan-option-top {
        flex-direction: column;
        gap: 14px;
    }

    .upgrade-plan-column-inner {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .upgrade-billing-switch {
        width: 100%;
    }

    .upgrade-billing-switch-button {
        flex: 1 1 50%;
    }

    .upgrade-invoice-grid {
        grid-template-columns: 1fr;
    }

    .upgrade-plan-limits-inline {
        grid-template-columns: 1fr;
    }
}

.landing-hero-scene {
    position: relative;
    min-height: 520px;
    padding: 1.5rem 0.5rem;
}

.landing-hero-card {
    position: absolute;
    z-index: 2;
}

.landing-hero-card-main {
    top: 2.5rem;
    right: 1rem;
    width: min(100%, 27rem);
}

.landing-hero-card-task {
    top: 16rem;
    left: 0;
    width: min(100%, 20rem);
}

.landing-hero-card-check {
    right: 0.5rem;
    bottom: 1.5rem;
    width: min(100%, 21rem);
}

.landing-hero-card-eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.landing-hero-project-switcher {
    position: absolute;
    top: 0;
    left: 2rem;
    z-index: 3;
    width: min(100%, 15rem);
}

.landing-hero-mini-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    color: #64748b;
}

.landing-hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.18;
    z-index: 1;
}

.landing-hero-orb-primary {
    top: 3rem;
    right: 2rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, #0d6efd 0%, rgba(13, 110, 253, 0) 72%);
}

.landing-hero-orb-success {
    bottom: 2rem;
    left: 1rem;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, #198754 0%, rgba(25, 135, 84, 0) 72%);
}

@media (max-width: 991.98px) {
    .landing-hero-scene {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .landing-hero-card,
    .landing-hero-project-switcher {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: none;
    }

    .landing-hero-orb {
        display: none;
    }
}

.checklist-workflow-page .workflow-tree-page-card {
    overflow: hidden;
}

.workflow-tree-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.workflow-tree-toolbar-copy h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.workflow-tree-toolbar-copy p {
    margin: 0;
    color: #6b7280;
}

.workflow-tree-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.workflow-tree-viewport {
    overflow: auto;
    border: 1px solid #dbe3ef;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    min-height: 70vh;
    padding: 32px;
    cursor: grab;
}

.workflow-tree-viewport.is-dragging {
    cursor: grabbing;
}

.workflow-tree-canvas {
    transform-origin: top left;
    min-width: max-content;
    width: max-content;
}

.workflow-tree-root-list,
.workflow-tree-branch-list,
.workflow-tree-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workflow-tree-root-list,
.workflow-tree-child-list {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
}

.workflow-tree-node-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workflow-tree-node-item::before {
    content: "";
    position: absolute;
    top: -24px;
    width: 2px;
    height: 24px;
    background: #bfd0e6;
}

.workflow-tree-root-list > .workflow-tree-node-item::before {
    display: none;
}

.workflow-tree-node-card {
    width: 280px;
    border: 1px solid #ced8e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    padding: 16px 18px;
}

.workflow-tree-node-card.is-reference {
    background: #f8fafc;
    border-style: dashed;
}

.workflow-tree-node-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.workflow-tree-node-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
}

.workflow-tree-node-badge {
    font-size: 0.7rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 3px 8px;
}

.workflow-tree-node-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.workflow-tree-node-roles {
    margin-top: 8px;
    color: #475569;
    font-size: 0.82rem;
}

.workflow-tree-node-info {
    margin-top: 10px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.workflow-tree-branch-list {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.workflow-tree-branch-item {
    position: relative;
    min-width: 280px;
    padding-top: 22px;
}

.workflow-tree-branch-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 22px;
    background: #bfd0e6;
    transform: translateX(-50%);
}

.workflow-tree-branch-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 4px 12px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #e8f1ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.workflow-tree-child-list {
    position: relative;
    padding-top: 8px;
}

.workflow-tree-child-list::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 2px;
    background: #bfd0e6;
}

.workflow-tree-end {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

body.theme-dark .workflow-tree-viewport {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, #0f172a 0%, #111c31 100%);
}

body.theme-dark .workflow-tree-node-card {
    background: #132033;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
}

body.theme-dark .workflow-tree-node-card.is-reference {
    background: #0f1a2b;
}

body.theme-dark .workflow-tree-node-title {
    color: #e5eefc;
}

body.theme-dark .workflow-tree-node-roles,
body.theme-dark .workflow-tree-node-info,
body.theme-dark .workflow-tree-end,
body.theme-dark .workflow-tree-toolbar-copy p {
    color: #9fb0c8;
}

body.theme-dark .workflow-tree-branch-label {
    background: rgba(30, 64, 175, 0.22);
    border-color: rgba(96, 165, 250, 0.34);
    color: #bfdbfe;
}

@media (max-width: 991px) {
    .workflow-tree-toolbar {
        flex-direction: column;
    }

    .workflow-tree-root-list,
    .workflow-tree-child-list,
    .workflow-tree-branch-list {
        flex-direction: column;
        align-items: center;
    }

    .workflow-tree-child-list::before {
        display: none;
    }

    .workflow-tree-viewport {
        min-height: 60vh;
        padding: 20px;
    }
}

.workflow-graph-page-card {
    overflow: hidden;
}

.workflow-graph-toolbar,
.checklist-steps-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.workflow-graph-toolbar-copy h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700 !important;
}

.workflow-graph-toolbar-copy .checklist-steps-toolbar__title {
    font-weight: 700 !important;
    line-height: 1.2;
}

.workflow-graph-toolbar-copy p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
}

.workflow-graph-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.workflow-zoom-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.workflow-zoom-control__button,
.workflow-zoom-control__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    color: #475569;
    box-shadow: none;
}

.workflow-zoom-control__button {
    width: 38px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.workflow-zoom-control__value {
    min-width: 72px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.workflow-zoom-control__button:hover,
.workflow-zoom-control__button:focus,
.workflow-zoom-control__value:hover,
.workflow-zoom-control__value:focus {
    border-color: #bfd0ea;
    color: #1e3a8a;
    background: #f8fbff;
}

.workflow-dry-run-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.workflow-dry-run-panel-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.workflow-dry-run-panel-copy strong {
    font-size: 0.92rem;
    color: #1e3a8a;
}

.workflow-dry-run-panel-copy span,
.workflow-dry-run-panel-stats {
    font-size: 0.78rem;
    color: #475569;
}

.workflow-dry-run-panel-stats {
    white-space: nowrap;
}

.workflow-role-legend {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 220px;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.workflow-role-legend-title {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.workflow-role-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.workflow-role-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--workflow-role-color, #2563eb);
    flex: 0 0 auto;
}

.workflow-role-name {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.78rem;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workflow-role-assign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(96, 132, 187, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--workflow-role-color, #2563eb);
    cursor: pointer;
}

.workflow-role-assign.is-active {
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.45);
}

.workflow-graph-viewport {
    position: relative;
    overflow: auto;
    min-height: 72vh;
    border: 1px solid #dbe4f0;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    cursor: grab;
}

.workflow-graph-viewport.is-dragging {
    cursor: grabbing;
}

.workflow-graph-viewport.is-dry-run-mode {
    cursor: default;
}

.workflow-graph-viewport.is-dry-run-mode .workflow-role-legend {
    display: none;
}

.workflow-graph-stage {
    position: relative;
    transform-origin: top left;
    min-width: max-content;
    min-height: max-content;
}

.workflow-graph-svg,
.workflow-graph-canvas {
    position: absolute;
    inset: 0;
}

.workflow-graph-canvas {
    pointer-events: none;
}

.workflow-graph-lane {
    position: absolute;
    left: 0;
    height: 1px;
    border-top: 1px solid rgba(148, 163, 184, 0.32);
}

.workflow-graph-node-card {
    position: absolute;
    width: 272px;
    min-height: 158px;
    padding: 0;
    border-radius: 18px;
    border: 1px solid #d7e1ee;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
    overflow: hidden;
}

.workflow-graph-node-card.is-reference {
    border-style: dashed;
    background: rgba(248, 250, 252, 0.96);
}

.workflow-graph-node-card.is-dry-run-ready {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14), 0 18px 36px rgba(15, 23, 42, 0.08);
}

.workflow-graph-node-card.is-dry-run-done {
    border-color: #cbd5e1;
    background: rgba(248, 250, 252, 0.98);
}

.workflow-graph-node-body {
    padding: 14px 16px 12px;
    min-height: 110px;
}

.workflow-graph-node-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.workflow-graph-node-number {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
}

.workflow-graph-node-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 700;
}

.workflow-graph-node-actions {
    margin-left: auto;
}

.workflow-graph-node-menu {
    color: #64748b;
    text-decoration: none;
    line-height: 1;
    box-shadow: none !important;
}

.workflow-graph-node-menu:hover,
.workflow-graph-node-menu:focus {
    color: #1e40af;
}

.workflow-graph-node-menu-list {
    min-width: 10rem;
}

.workflow-graph-node-undo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px;
    background: #fff !important;
    color: #475569 !important;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1;
    font-size: 0.88rem;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
}

.workflow-graph-node-undo:hover,
.workflow-graph-node-undo:focus {
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

.workflow-graph-node-undo-icon {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transform: rotate(90deg);
}

.workflow-graph-node-title {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.workflow-graph-node-dry-run-state {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.workflow-graph-node-roles {
    margin-top: 6px;
    color: #475569;
    font-size: 0.76rem;
}

.workflow-graph-node-role-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
}

.workflow-graph-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #475569;
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.2;
}

.workflow-graph-role-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--workflow-role-color, #2563eb);
    flex: 0 0 auto;
}

.workflow-graph-node-info {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workflow-graph-node-answers {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 2px;
    margin-top: auto;
    border-top: 1px solid #dbe4f0;
    padding-top: 2px;
    background: #c9d9f2;
}

.workflow-graph-answer-brick {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    min-width: 0;
    background: linear-gradient(180deg, #edf4ff 0%, #dceafe 100%);
}

.workflow-graph-answer-brick.is-link-source {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.workflow-graph-answer-brick.is-final-branch {
    box-shadow: inset 0 -2px 0 0 rgba(34, 197, 94, 0.42);
}

.workflow-graph-answer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 7px 84px 7px 10px;
    border-radius: 0;
    border: 0;
    border-right: 0;
    background: transparent;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    appearance: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.workflow-graph-viewport.is-linking-mode .workflow-graph-node-card.is-link-candidate {
    cursor: copy;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.28), 0 18px 36px rgba(15, 23, 42, 0.08);
}

.workflow-graph-viewport.is-linking-mode .workflow-graph-node-card.is-link-candidate:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.42), 0 20px 40px rgba(15, 23, 42, 0.12);
}

.workflow-graph-viewport.is-linking-mode {
    cursor: crosshair;
}

.workflow-graph-viewport.is-linking-mode .workflow-graph-answer-link,
.workflow-graph-viewport.is-linking-mode .workflow-graph-answer-create,
.workflow-graph-viewport.is-linking-mode .workflow-graph-answer-pill {
    cursor: crosshair;
}

.workflow-graph-node-card.is-link-hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.46), 0 22px 42px rgba(15, 23, 42, 0.14);
}

.workflow-graph-viewport.is-role-linking-mode {
    cursor: crosshair;
}

.workflow-graph-viewport.is-role-linking-mode .workflow-graph-node-card.is-role-candidate {
    cursor: copy;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28), 0 18px 36px rgba(15, 23, 42, 0.08);
}

.workflow-graph-viewport.is-role-linking-mode .workflow-graph-node-card.is-role-candidate:hover,
.workflow-graph-node-card.is-role-hover {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.42), 0 20px 40px rgba(15, 23, 42, 0.12);
}

.workflow-graph-answer-create {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(96, 132, 187, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1d4ed8;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.workflow-graph-answer-link {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(96, 132, 187, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1d4ed8;
    font-size: 0.68rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.workflow-graph-answer-final {
    position: absolute;
    top: 50%;
    right: 58px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #16a34a;
    font-size: 0.66rem;
}

.workflow-graph-answer-link:hover,
.workflow-graph-answer-link:focus {
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.45);
    color: #1e40af;
}

.workflow-graph-answer-create:hover,
.workflow-graph-answer-create:focus {
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.45);
    color: #1e40af;
}

.workflow-graph-answer-pill.is-muted {
    opacity: 0.6;
}

.workflow-graph-answer-pill.is-active {
    background: linear-gradient(180deg, #dbeafe 0%, #c6dcff 100%);
    box-shadow: inset 0 2px 0 0 #60a5fa;
}

.workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-brick {
    background: linear-gradient(180deg, #eef4ff 0%, #dfeafe 100%);
}

.workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-brick[style*="flex: 1 1 0"] {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-brick[style*="flex: 0 0 auto"] {
    flex: 0 0 auto !important;
    min-width: max-content;
}

.workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-pill {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-pill:not(:disabled):hover,
.workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-pill:not(:disabled):focus {
    background: linear-gradient(180deg, #dbeafe 0%, #c6dcff 100%);
}

.workflow-graph-answer-pill.is-done {
    color: #1d4ed8;
}

.workflow-graph-answer-pill.is-skipped {
    opacity: 0.52;
}

.workflow-graph-answer-pill:disabled {
    cursor: default;
}

.workflow-graph-answer-pill:last-child {
    border-right: 0;
}

.workflow-graph-link {
    fill: none;
    stroke: #9eb4d6;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workflow-graph-link.is-draft {
    stroke: #60a5fa;
    stroke-width: 2.5;
    stroke-dasharray: 6 4;
}

body.theme-dark .workflow-graph-viewport {
    border-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 32, 51, 0.98) 100%);
}

body.theme-dark .workflow-graph-node-card {
    background: rgba(19, 32, 51, 0.96);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.theme-dark .workflow-graph-node-card.is-reference {
    background: rgba(15, 26, 43, 0.96);
}

body.theme-dark .workflow-graph-node-card.is-dry-run-ready {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.theme-dark .workflow-graph-node-card.is-dry-run-done {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(17, 28, 45, 0.98);
}

body.theme-dark .workflow-graph-toolbar-copy p,
body.theme-dark .workflow-dry-run-panel-copy span,
body.theme-dark .workflow-dry-run-panel-stats,
body.theme-dark .workflow-graph-node-roles,
body.theme-dark .workflow-graph-node-info {
    color: #94a3b8;
}

body.theme-dark .workflow-dry-run-panel {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(20, 34, 56, 0.98) 0%, rgba(18, 30, 49, 0.98) 100%);
}

body.theme-dark .workflow-zoom-control {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(20, 34, 56, 0.98) 0%, rgba(18, 30, 49, 0.98) 100%);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.22);
}

body.theme-dark .workflow-zoom-control__button,
body.theme-dark .workflow-zoom-control__value {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
}

body.theme-dark .workflow-zoom-control__button:hover,
body.theme-dark .workflow-zoom-control__button:focus,
body.theme-dark .workflow-zoom-control__value:hover,
body.theme-dark .workflow-zoom-control__value:focus {
    border-color: rgba(96, 165, 250, 0.42);
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.94);
}

body.theme-dark .workflow-dry-run-panel-copy strong {
    color: #bfdbfe;
}

body.theme-dark .workflow-graph-node-title {
    color: #e2e8f0;
}

body.theme-dark .workflow-graph-node-dry-run-state {
    color: #cbd5e1;
}

body.theme-dark .workflow-role-legend {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.theme-dark .workflow-role-legend-title,
body.theme-dark .workflow-role-name,
body.theme-dark .workflow-graph-role-chip {
    color: #e2e8f0;
}

body.theme-dark .workflow-role-assign {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .workflow-graph-node-menu {
    color: #94a3b8;
}

body.theme-dark .workflow-graph-node-menu:hover,
body.theme-dark .workflow-graph-node-menu:focus {
    color: #dbeafe;
}

body.theme-dark .workflow-graph-node-undo {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
}

body.theme-dark .workflow-graph-node-undo:hover,
body.theme-dark .workflow-graph-node-undo:focus {
    border-color: rgba(96, 165, 250, 0.42);
    color: #dbeafe;
}

body.theme-dark .workflow-graph-node-answers {
    border-top-color: rgba(148, 163, 184, 0.18);
    background: rgba(77, 102, 141, 0.55);
}

body.theme-dark .workflow-graph-answer-brick {
    background: linear-gradient(180deg, rgba(28, 44, 70, 0.98) 0%, rgba(22, 37, 59, 0.98) 100%);
}

body.theme-dark .workflow-graph-answer-brick.is-link-source {
    background: linear-gradient(180deg, rgba(44, 82, 152, 0.75) 0%, rgba(34, 75, 149, 0.7) 100%);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.5);
}

body.theme-dark .workflow-graph-answer-brick.is-final-branch {
    box-shadow: inset 0 -2px 0 0 rgba(74, 222, 128, 0.45);
}

body.theme-dark .workflow-graph-answer-pill {
    border-right-color: transparent;
    background: transparent;
    color: #bfdbfe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .workflow-graph-viewport.is-linking-mode .workflow-graph-node-card.is-link-candidate {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35), 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.theme-dark .workflow-graph-node-card.is-link-hover {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.48), 0 20px 40px rgba(2, 6, 23, 0.32);
}

body.theme-dark .workflow-graph-viewport.is-role-linking-mode .workflow-graph-node-card.is-role-candidate {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35), 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.theme-dark .workflow-graph-node-card.is-role-hover {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.46), 0 20px 40px rgba(2, 6, 23, 0.32);
}

body.theme-dark .workflow-graph-link.is-draft {
    stroke: #93c5fd;
}

body.theme-dark .workflow-graph-answer-create {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.82);
    color: #bfdbfe;
}

body.theme-dark .workflow-graph-answer-link {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.82);
    color: #bfdbfe;
}

body.theme-dark .workflow-graph-answer-final {
    border-color: rgba(74, 222, 128, 0.36);
    background: rgba(15, 23, 42, 0.86);
    color: #4ade80;
}

body.theme-dark .workflow-graph-answer-link:hover,
body.theme-dark .workflow-graph-answer-link:focus {
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

body.theme-dark .workflow-graph-answer-create:hover,
body.theme-dark .workflow-graph-answer-create:focus {
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

body.theme-dark .workflow-graph-answer-pill.is-active {
    background: linear-gradient(180deg, rgba(48, 96, 181, 0.48) 0%, rgba(34, 75, 149, 0.5) 100%);
    box-shadow: inset 0 2px 0 0 rgba(96, 165, 250, 0.75);
}

body.theme-dark .workflow-graph-viewport.is-dry-run-mode .workflow-graph-answer-brick {
    background: linear-gradient(180deg, rgba(28, 44, 70, 0.98) 0%, rgba(22, 37, 59, 0.98) 100%);
}

body.theme-dark .workflow-graph-link {
    stroke: #6f8db6;
}

@media (max-width: 991px) {
    .workflow-graph-toolbar,
    .checklist-steps-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .workflow-dry-run-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .workflow-graph-viewport {
        min-height: 60vh;
    }
}

/* ==========================================================
   CheckIT design system override
   Keeps pages visually consistent across light, light-blue, and dark themes.
   ========================================================== */

body.theme-light,
body.theme-light-blue,
body.theme-dark {
    --ci-primary: #2563eb;
    --ci-primary-hover: #1d4ed8;
    --ci-primary-soft: #dbeafe;
    --ci-primary-softer: #eff6ff;
    --ci-info: #0ea5e9;
    --ci-success: #16a34a;
    --ci-warning: #d97706;
    --ci-danger: #dc2626;
    --ci-radius-xs: 6px;
    --ci-radius-sm: 8px;
    --ci-radius-md: 10px;
    --ci-radius-lg: 12px;
    --ci-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --ci-shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
    --ci-shadow-focus: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
    --bs-primary: var(--ci-primary);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: var(--ci-primary);
    --bs-link-hover-color: var(--ci-primary-hover);
    color: var(--ci-text);
    background: var(--ci-bg);
}

body.theme-light .main-content,
body.theme-light-blue .main-content,
body.theme-dark .main-content,
body.theme-light main.container,
body.theme-light-blue main.container,
body.theme-dark main.container {
    background:
        radial-gradient(circle at top left, var(--ci-primary-softer), transparent 34rem),
        var(--ci-bg) !important;
    color: var(--ci-text);
}

.main-content {
    padding: 28px;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.app-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.app-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-sm);
    background: var(--ci-surface) !important;
    color: var(--ci-primary) !important;
    box-shadow: var(--ci-shadow-sm);
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus {
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary-hover) !important;
}

.app-navbar-actions {
    min-width: 0;
}

.app-navbar-mobile-actions .task-menu-link {
    min-height: 40px;
    padding: 8px 12px;
    background: var(--ci-primary-softer);
    color: var(--ci-primary) !important;
    border-radius: var(--ci-radius-sm);
}

.app-navbar-mobile-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius-sm);
    background: var(--ci-surface);
    color: var(--ci-primary) !important;
    box-shadow: var(--ci-shadow-sm);
}

.app-sidebar-mobile-language-list {
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius-md);
    overflow: hidden;
}

.app-sidebar-mobile-language-list .list-group-item {
    background: var(--ci-surface);
    color: var(--ci-text);
    border-color: var(--ci-border);
}

.app-sidebar-mobile-language-list .list-group-item.active {
    background: var(--ci-primary) !important;
    color: #ffffff !important;
    border-color: var(--ci-primary) !important;
}

.app-navbar.navbar,
body.theme-light .app-navbar,
body.theme-light-blue .app-navbar,
body.theme-dark .app-navbar,
body.theme-light .navbar,
body.theme-light-blue .navbar,
body.theme-dark .navbar {
    position: relative;
    z-index: 2000;
    background: var(--ci-navbar) !important;
    border-bottom: 1px solid var(--ci-border) !important;
    box-shadow: var(--ci-shadow-sm) !important;
    backdrop-filter: blur(10px);
}

.app-navbar .navbar-brand,
body.theme-light .navbar-brand,
body.theme-light-blue .navbar-brand,
body.theme-dark .navbar-brand {
    color: var(--ci-primary) !important;
    font-weight: 800;
    letter-spacing: 0;
}

.app-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(180px, 42vw);
    object-fit: contain;
}

.cookie-consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1080;
    max-width: 880px;
    margin-left: auto;
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, rgba(15, 23, 42, 0.12));
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.cookie-consent-banner.is-visible {
    display: block;
}

.cookie-consent-banner__content {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem 1.125rem;
}

.cookie-consent-banner__text {
    min-width: 0;
}

.cookie-consent-banner__title {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text-strong, #0f172a);
}

.cookie-consent-banner__message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--app-text-muted, #475569);
}

.cookie-consent-banner__link {
    color: var(--app-primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
}

.cookie-consent-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.cookie-consent-modal .modal-dialog {
    max-width: 560px;
}

.cookie-consent-option {
    padding: 1rem;
    border: 1px solid var(--app-border, rgba(15, 23, 42, 0.12));
    border-radius: 12px;
    background: var(--app-surface-soft, rgba(248, 250, 252, 0.9));
}

.cookie-consent-option + .cookie-consent-option {
    margin-top: 0.875rem;
}

.cookie-consent-option__description {
    margin-top: 0.5rem;
    padding-left: 2.6rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--app-text-muted, #64748b);
}

.app-navbar .nav-link,
body.theme-light .nav-link,
body.theme-light-blue .nav-link,
body.theme-dark .nav-link {
    color: var(--ci-muted) !important;
    border-radius: var(--ci-radius-sm);
    font-weight: 600;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active {
    color: var(--ci-primary) !important;
    background: var(--ci-primary-softer);
}

.app-sidebar-shell {
    width: 276px;
    flex: 0 0 276px;
    min-height: calc(100vh - 73px);
    padding: 20px 14px !important;
    background: var(--ci-sidebar) !important;
    border-right: 1px solid var(--ci-border);
}

.app-sidebar-shell__inner {
    min-height: inherit;
}

.app-sidebar-shell .nav {
    gap: 6px;
}

.app-sidebar-shell .nav-link,
body.theme-light .app-sidebar-shell .nav-link,
body.theme-light-blue .app-sidebar-shell .nav-link,
body.theme-dark .app-sidebar-shell .nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px !important;
    border-radius: var(--ci-radius-sm);
    color: var(--ci-muted) !important;
    font-weight: 650;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.app-sidebar-shell .nav-link i {
    width: 18px;
    color: currentColor;
}

.app-sidebar-shell .nav-link:hover,
.app-sidebar-shell .nav-link:focus {
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary) !important;
}

.app-sidebar-shell .nav-link.active,
.app-sidebar-shell .nav-pills .nav-link.active {
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary-hover) !important;
    box-shadow: inset 0 0 0 1px var(--ci-primary-soft);
}

.project-switcher-toggle,
body.theme-light .project-switcher-toggle,
body.theme-light-blue .project-switcher-toggle,
body.theme-dark .project-switcher-toggle {
    width: 100%;
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-md);
    background: var(--ci-surface) !important;
    color: var(--ci-text);
    box-shadow: var(--ci-shadow-sm);
}

.project-switcher-menu,
.dropdown-menu,
.user-menu-dropdown,
.language-switch-dropdown,
body.theme-light .dropdown-menu,
body.theme-light-blue .dropdown-menu,
body.theme-dark .dropdown-menu {
    z-index: 2010;
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-md);
    background: var(--ci-surface) !important;
    color: var(--ci-text);
    box-shadow: var(--ci-shadow-md) !important;
}

.dropdown-item,
.project-switcher-item,
.project-switcher-create {
    border-radius: var(--ci-radius-xs);
    color: var(--ci-text) !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.project-switcher-item:hover,
.project-switcher-create:hover {
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary) !important;
}

.card,
.checklist-page-card,
.profile-page-card,
.scheme-card,
.animated-card,
.dashboard-summary-card,
.dashboard-run-card,
.dashboard-scheme-card,
.project-empty-state-card,
.project-empty-invite-card,
.role-page-card,
.role-page-hero,
.checklist-start-card,
.checklist-start-roles-panel,
.checklist-start-role-card,
.run-executors-card,
.run-history-card,
.upgrade-admin-card,
.upgrade-plan-column,
.upgrade-plan-option,
.upgrade-invoice-box {
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-lg) !important;
    background: var(--ci-surface) !important;
    color: var(--ci-text);
    box-shadow: var(--ci-shadow-sm) !important;
}

.card-header,
.card-footer {
    border-color: var(--ci-border) !important;
    background: var(--ci-surface-muted) !important;
    color: var(--ci-heading);
}

.checklist-page-title,
.role-page-title,
.profile-page-title,
.dashboard-section-title,
.dashboard-summary-value,
.scheme-card-title a,
.run-history-step-title,
.upgrade-plan-name,
.upgrade-plan-price,
.landing-section h2,
.landing-final h2,
h1, h2, h3, h4, h5, h6 {
    color: var(--ci-heading);
    letter-spacing: 0;
}

.checklist-page-shell .checklist-editor-page .checklist-page-title,
.checklist-page-shell .checklist-editor-page .checklist-page-title--single {
    color: var(--ci-heading) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.text-muted,
.form-text,
.checklist-page-description,
.role-page-subtitle,
.dashboard-section-subtitle,
.dashboard-run-meta,
.profile-summary-label,
.user-menu-plan-label {
    color: var(--ci-muted) !important;
}

a {
    color: var(--ci-primary);
}

a:hover,
a:focus {
    color: var(--ci-primary-hover);
}

.btn {
    border-radius: var(--ci-radius-sm);
    font-weight: 650;
    letter-spacing: 0;
    box-shadow: none !important;
}

.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--ci-primary) !important;
    box-shadow: var(--ci-shadow-focus) !important;
}

.btn-primary,
.btn-success,
.btn-info {
    border-color: var(--ci-primary) !important;
    background: var(--ci-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-info:hover,
.btn-info:focus {
    border-color: var(--ci-primary-hover) !important;
    background: var(--ci-primary-hover) !important;
    color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success {
    border-color: var(--ci-border-strong) !important;
    background: var(--ci-surface) !important;
    color: var(--ci-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    border-color: var(--ci-primary) !important;
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary-hover) !important;
}

.btn.checklist-toolbar-button-active,
.btn.checklist-toolbar-button-active:hover,
.btn.checklist-toolbar-button-active:focus {
    color: #2563eb !important;
    font-weight: 700 !important;
    background: linear-gradient(180deg, #eef4ff 0%, #dceafe 100%) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: inset 0 2px 0 rgba(96, 165, 250, 0.7) !important;
}

.btn.checklist-toolbar-button-active i {
    color: inherit !important;
}

.btn-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    border-color: var(--ci-danger) !important;
    background: var(--ci-danger) !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    border-color: rgba(220, 38, 38, 0.35) !important;
    background: var(--ci-surface) !important;
    color: var(--ci-danger) !important;
}

.form-control,
.form-select,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-sm) !important;
    background: var(--ci-surface) !important;
    color: var(--ci-text) !important;
}

.form-control::placeholder {
    color: var(--ci-muted);
    opacity: 0.72;
}

.form-label {
    color: var(--ci-heading);
    font-weight: 650;
}

.form-check-input {
    border-color: var(--ci-border-strong);
}

.form-check-input:checked {
    border-color: var(--ci-primary);
    background-color: var(--ci-primary);
}

.table,
.grid-view table,
.checklist-page-table,
.checklist-overview-table,
.run-history-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ci-text);
    --bs-table-border-color: var(--ci-border);
    --bs-table-striped-bg: var(--ci-surface-muted);
    --bs-table-hover-bg: var(--ci-primary-softer);
    color: var(--ci-text) !important;
    border-color: var(--ci-border) !important;
}

.grid-view,
.table-responsive,
.checklist-overview-table-wrap,
.run-flow-table-wrap {
    border-color: var(--ci-border) !important;
    border-radius: var(--ci-radius-lg) !important;
    background: var(--ci-surface) !important;
    box-shadow: var(--ci-shadow-sm);
}

.table thead th,
.grid-view thead th,
.checklist-page-table thead th,
.checklist-overview-table thead th,
.run-history-table th {
    border-bottom: 1px solid var(--ci-border) !important;
    background: var(--ci-surface-muted) !important;
    color: var(--ci-muted) !important;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table td,
.table th,
.grid-view td,
.grid-view th {
    border-color: var(--ci-border) !important;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
}

.text-bg-primary,
.bg-primary,
.badge.bg-primary {
    background-color: var(--ci-primary) !important;
    color: #ffffff !important;
}

.text-bg-light,
.bg-light,
.badge.text-bg-light {
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary) !important;
    border: 1px solid var(--ci-border);
}

.alert {
    border-radius: var(--ci-radius-md);
    border: 1px solid var(--ci-border);
    box-shadow: var(--ci-shadow-sm);
}

.app-flash-container {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 1085;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.app-flash-alert {
    position: relative;
    margin: 0 !important;
    padding: 14px 44px 14px 16px;
    border-radius: var(--ci-radius-md);
    box-shadow: var(--ci-shadow-md) !important;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-flash-alert.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.alert-success {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.alert-info {
    color: #075985;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.alert-warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.alert-danger {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.modal-content {
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-lg);
    background: var(--ci-surface) !important;
    color: var(--ci-text);
    box-shadow: var(--ci-shadow-md);
}

.modal-header,
.modal-footer {
    border-color: var(--ci-border) !important;
}

.pagination .page-link {
    border-color: var(--ci-border);
    color: var(--ci-primary);
    background: var(--ci-surface);
}

.pagination .active .page-link,
.page-item.active .page-link {
    border-color: var(--ci-primary);
    background: var(--ci-primary);
    color: #ffffff;
}

.checklist-page-shell,
.profile-page-shell,
.dashboard-page,
.project-page,
.team-page {
    color: var(--ci-text);
}

.checklist-page-eyebrow,
.role-page-eyebrow,
.landing-eyebrow {
    color: var(--ci-primary) !important;
    letter-spacing: 0;
}

.landing-page {
    background: var(--ci-bg);
    color: var(--ci-text);
}

.landing-section,
.landing-section-alt,
.landing-final {
    background: transparent !important;
}

.landing-feature-card,
.landing-step-card,
.landing-price-card,
.landing-product-card,
.landing-faq-card {
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--ci-radius-lg) !important;
    background: var(--ci-surface) !important;
    color: var(--ci-text);
    box-shadow: var(--ci-shadow-sm) !important;
}

.landing-section-copy {
    max-width: 42rem;
    margin-top: 14px;
    color: var(--ci-muted);
    line-height: 1.7;
}

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

.landing-faq-card {
    padding: 24px;
}

.landing-faq-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 750;
}

.landing-faq-card p {
    margin: 0;
    color: var(--ci-muted);
    line-height: 1.7;
}

.landing-btn,
.landing-btn-primary,
.landing-btn-card {
    border-radius: var(--ci-radius-sm) !important;
    background: var(--ci-primary) !important;
    border-color: var(--ci-primary) !important;
    color: #ffffff !important;
    font-weight: 750;
}

.landing-btn:hover,
.landing-btn:focus {
    background: var(--ci-primary-hover) !important;
    border-color: var(--ci-primary-hover) !important;
}

.landing-btn-ghost {
    background: var(--ci-surface) !important;
    color: var(--ci-primary) !important;
    border-color: var(--ci-border-strong) !important;
}

.feedback-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1070;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 12px 16px;
    border: 1px solid var(--ci-primary) !important;
    border-radius: 999px !important;
    background: var(--ci-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2) !important;
}

.feedback-fab:hover,
.feedback-fab:focus {
    background: var(--ci-primary-hover) !important;
    border-color: var(--ci-primary-hover) !important;
    color: #ffffff !important;
}

.feedback-fab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.98rem;
}

.feedback-fab__text {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.feedback-modal__hero {
    margin-bottom: 18px;
}

.feedback-modal__eyebrow {
    margin-bottom: 8px;
    color: var(--ci-primary);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feedback-modal__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 750;
}

.feedback-modal__subtitle {
    margin: 0;
    color: var(--ci-muted);
}

.feedback-page-input[readonly] {
    background: var(--ci-surface-muted) !important;
}

footer,
body.theme-light footer,
body.theme-light-blue footer,
body.theme-dark footer {
    border-top: 1px solid var(--ci-border) !important;
    background: var(--ci-surface) !important;
    color: var(--ci-muted);
    position: static !important;
    width: 100%;
}

.checklist-run-tabs .nav-link {
    background: var(--ci-surface-muted) !important;
    color: var(--ci-muted) !important;
    border-color: var(--ci-border) !important;
}

.checklist-run-tabs .nav-link:hover,
.checklist-run-tabs .nav-link:focus {
    background: var(--ci-primary-softer) !important;
    color: var(--ci-primary-hover) !important;
    border-color: var(--ci-primary-soft) !important;
}

.checklist-run-tabs .nav-link.active,
.checklist-run-tabs .show > .nav-link {
    background: var(--ci-primary) !important;
    color: #ffffff !important;
    border-color: var(--ci-primary) !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22) !important;
}

.checklist-run-tabs .nav-link.active .badge,
.checklist-run-tabs .show > .nav-link .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .feedback-fab {
        right: 14px;
        bottom: 14px;
        padding: 12px 14px;
    }

    .feedback-fab__text {
        font-size: 0.86rem;
    }

    .landing-faq-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        display: block !important;
        min-height: auto;
    }

    .app-navbar .container-fluid {
        align-items: center;
    }

    .app-navbar .navbar-collapse {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--ci-border);
    }

    .app-navbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .app-navbar-mobile-actions {
        margin-left: auto;
    }

    .app-sidebar-shell {
        width: min(88vw, 320px) !important;
        max-width: min(88vw, 320px);
        min-height: 100vh;
        padding: 0 !important;
        border-right: 1px solid var(--ci-border);
        border-bottom: 0;
    }

    .app-sidebar-shell.offcanvas-lg {
        --bs-offcanvas-bg: var(--ci-sidebar);
        --bs-offcanvas-border-color: var(--ci-border);
    }

    .app-sidebar-shell__inner {
        min-height: 100%;
        padding: 16px 14px 20px;
    }

    .offcanvas-header {
        border-bottom: 1px solid var(--ci-border);
        background: var(--ci-surface);
    }

    .main-content {
        padding: 18px;
    }

    .checklist-page-header__line,
    .checklist-page-header__line--toolbar,
    .checklist-page-header__line--page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checklist-page-header__line--toolbar .checklist-editor-topbar-actions,
    .checklist-page-header__line--toolbar .checklist-header-actions-stack,
    .checklist-page-header__line--page-actions .checklist-editor-topbar-actions,
    .checklist-page-header__line--page-actions .checklist-header-actions-stack,
    .checklist-page-header__line--page-actions .btn-group {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .checklist-run-tabs,
    .checklist-view-mode-switcher,
    .btn-group {
        flex-wrap: wrap;
    }

    .cookie-consent-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-consent-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-banner__actions {
        justify-content: stretch;
    }

    .cookie-consent-banner__actions .btn {
        width: 100%;
    }

    .table-responsive {
        border-radius: var(--ci-radius-md);
    }

    .modal-dialog {
        margin: 0.75rem;
    }
}

@media (max-width: 575px) {
    .main-content {
        padding: 14px;
    }

    .app-navbar .container-fluid {
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    .app-navbar-actions {
        gap: 0.75rem !important;
    }

    .app-navbar-actions > * {
        width: 100%;
    }

    .app-navbar-actions .btn,
    .app-navbar-actions .dropdown,
    .app-navbar-actions .dropdown-toggle {
        width: 100%;
    }

    .app-navbar-mobile-actions .task-menu-link {
        padding-left: 10px;
        padding-right: 10px;
    }

    .checklist-page-title {
        font-size: 1.5rem;
    }

    .app-flash-container {
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
