body#maturityModelsPage {
    background: var(--countermeasure-page-background);
}

maturity-models-page,
maturity-model-workspace-panel,
maturity-model-panel,
maturity-risk-appetite-chart,
maturity-model-editor-panel,
maturity-level-editor-panel {
    color: var(--countermeasure-text);
}

maturity-models-page .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

maturity-models-page .page-title h1 {
    margin: 0;
    color: var(--countermeasure-text);
}

maturity-models-page .page-title p {
    margin: 4px 0 0;
    color: var(--countermeasure-text-muted);
}

maturity-models-page .maturity-models-canvas {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: max(920px, calc(100vh - 260px));
}

maturity-models-page .maturity-models-canvas maturity-model-workspace-panel {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

maturity-model-workspace-panel [data-countermeasure-library="maturity-models"] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

maturity-model-workspace-panel .maturity-model-workspace {
    display: grid;
    grid-template-columns: minmax(320px, 0.38fr) minmax(620px, 1fr);
    grid-template-rows: minmax(280px, 0.36fr) minmax(420px, 0.64fr);
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-items: stretch;
}

maturity-model-workspace-panel .countermeasure-glass-panel,
maturity-model-editor-panel .editor-shell,
maturity-level-editor-panel .editor-shell {
    background: var(--countermeasure-glass-surface);
    border: 1px solid var(--countermeasure-glass-border);
    border-radius: 8px;
    box-shadow: var(--countermeasure-shadow);
    backdrop-filter: blur(12px);
}

@media (prefers-reduced-transparency: reduce) {
    maturity-model-workspace-panel .countermeasure-glass-panel,
    maturity-model-editor-panel .editor-shell,
    maturity-level-editor-panel .editor-shell {
        background: var(--countermeasure-glass-surface-solid);
        backdrop-filter: none;
    }
}

maturity-model-panel,
maturity-risk-appetite-chart,
maturity-model-workspace-panel .control-maturity-browser,
maturity-model-workspace-panel .control-maturity-browser-disclosure,
maturity-model-workspace-panel .control-objective-alignment-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

maturity-model-panel {
    padding: 0;
}

maturity-risk-appetite-chart .chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--countermeasure-glass-border);
    background: linear-gradient(180deg, var(--countermeasure-glass-highlight), rgba(255, 255, 255, 0.46));
}

maturity-risk-appetite-chart .chart-header > div:first-child {
    min-width: 0;
}

maturity-model-panel .data-table-panel-shell {
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

maturity-model-panel .data-table-panel-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--countermeasure-glass-border);
    background: linear-gradient(180deg, var(--countermeasure-glass-highlight), rgba(255, 255, 255, 0.46));
}

maturity-model-panel .data-table-panel-controls {
    justify-content: flex-end !important;
    gap: 8px;
    flex-wrap: nowrap;
}

maturity-model-panel .data-table-panel-title {
    margin: 0;
    color: var(--countermeasure-text);
    font-size: 1rem;
}

maturity-model-panel .data-table-panel-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 4px 0 0;
    color: var(--countermeasure-text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow: hidden;
}

maturity-model-panel .data-table-panel-summary {
    color: var(--countermeasure-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

maturity-model-panel .data-table-panel-actions {
    gap: 8px;
    flex-wrap: nowrap;
}

maturity-model-panel .data-table-panel-body {
    flex: 1 1 auto;
}

maturity-model-panel .data-table-grid {
    font-size: 0.84rem;
}

maturity-model-panel .data-table-grid th {
    padding: 8px 10px;
}

maturity-model-panel .data-table-grid td {
    padding: 8px 10px;
    vertical-align: middle;
}

maturity-model-hierarchy-table {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    width: 100%;
}

maturity-model-hierarchy-table .hierarchy-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

maturity-model-hierarchy-table .hierarchy-toggle {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

maturity-model-hierarchy-table .hierarchy-toggle:hover {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.35);
}

maturity-model-hierarchy-table .hierarchy-toggle.placeholder {
    opacity: 0;
    pointer-events: none;
}

maturity-model-hierarchy-table .hierarchy-text {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

maturity-model-hierarchy-table .hierarchy-name {
    display: block;
    min-width: 0;
    max-width: 100%;
}

maturity-model-hierarchy-table .maturity-type-icon {
    width: 24px;
    min-width: 24px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

maturity-model-hierarchy-table .maturity-type-svg-icon {
    display: block;
    width: 24px;
    height: 18px;
}

maturity-model-hierarchy-table .maturity-type-svg-icon .icon-surface {
    fill: rgba(255, 255, 255, 0.9);
    stroke: #000000;
}

maturity-model-hierarchy-table .maturity-type-svg-icon .icon-detail {
    fill: none;
    stroke: #000000;
}

maturity-model-hierarchy-table .maturity-type-svg-icon .icon-accent {
    fill: #000000;
    stroke: #000000;
}

maturity-model-panel .maturity-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--countermeasure-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 3px 8px;
    white-space: nowrap;
}

maturity-risk-appetite-chart h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--countermeasure-text);
}

maturity-risk-appetite-chart .chart-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 4px 0 0;
    color: var(--countermeasure-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
}

maturity-risk-appetite-chart .chart-header-actions,
maturity-model-editor-panel .editor-actions,
maturity-level-editor-panel .editor-actions,
maturity-model-workspace-panel .delete-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

maturity-risk-appetite-chart .chart-header-actions {
    align-items: center;
}

maturity-risk-appetite-chart .chart-risk-toolbar {
    position: relative;
    display: none;
    align-items: center;
}

maturity-risk-appetite-chart .chart-toolbar-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: #ffffff;
    color: var(--countermeasure-accent-strong);
    padding: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

maturity-risk-appetite-chart .chart-toolbar-toggle.is-active {
    border-color: rgba(0, 119, 158, 0.72);
    color: #00779e;
    box-shadow: 0 0 0 2px rgba(0, 119, 158, 0.14), 0 1px 2px rgba(15, 23, 42, 0.08);
}

maturity-risk-appetite-chart .chart-toolbar-toggle:focus-visible {
    outline: none;
    box-shadow: var(--countermeasure-focus-ring);
}

maturity-risk-appetite-chart .chart-empty-state,
maturity-model-workspace-panel .panel-placeholder,
maturity-model-workspace-panel .delete-shell {
    padding: 16px;
    color: var(--countermeasure-text-muted);
}

maturity-model-workspace-panel .control-maturity-browser {
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

maturity-model-workspace-panel .control-maturity-browser-disclosure {
    overflow: hidden;
    --cso-border: var(--countermeasure-glass-border);
    --cso-disclosure-radius: 8px;
    --cso-disclosure-summary-padding-dense: 8px 12px;
    --cso-disclosure-title-size-dense: 0.92rem;
    --cso-disclosure-state-size-dense: 0.8rem;
    --cso-disclosure-body-padding: 0;
}

maturity-model-workspace-panel .control-maturity-browser-disclosure-content {
    min-height: clamp(360px, 46vh, 560px);
}

maturity-model-workspace-panel .control-maturity-browser control-selection-panel {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

maturity-model-workspace-panel .control-objective-alignment-panel {
    --control-objective-id-column-width: 5.5rem;
}

maturity-risk-appetite-chart .chart-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

maturity-risk-appetite-chart .chart-body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 288px;
    overflow: visible;
}

maturity-risk-appetite-chart .chart-scroll {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 210px;
    overflow-x: auto;
    overflow-y: visible;
}

maturity-risk-appetite-chart .chart-alignment-surface {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    min-width: 100%;
    width: 100%;
}

maturity-risk-appetite-chart .chart-plot-area {
    position: relative;
    min-height: 210px;
    height: 100%;
    background: linear-gradient(180deg, rgba(248, 252, 251, 0.98), rgba(236, 249, 247, 0.86));
    overflow: hidden;
    container-type: inline-size;
    container-name: maturity-level-chart;
}

maturity-risk-appetite-chart .amcharts-risk-chart {
    min-height: 210px;
    height: 100%;
    width: 100%;
}

maturity-risk-appetite-chart .risk-axis-label-top,
maturity-risk-appetite-chart .risk-axis-label-bottom {
    position: absolute;
    left: 10px;
    z-index: 3;
    color: var(--countermeasure-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    pointer-events: none;
}

maturity-risk-appetite-chart .risk-axis-label-top {
    top: 8px;
}

maturity-risk-appetite-chart .risk-axis-label-bottom {
    bottom: 8px;
}

maturity-risk-appetite-chart .maturity-step-label-layer {
    position: absolute;
    inset: 16px 0 18px;
    display: grid;
    grid-template-columns: repeat(var(--maturity-level-count, 1), minmax(0, 1fr));
    z-index: 4;
    pointer-events: none;
}

maturity-risk-appetite-chart .maturity-step-cell {
    position: relative;
    min-width: 0;
}

maturity-risk-appetite-chart .maturity-step-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: var(--maturity-step-bottom, 12%);
    display: inline-flex;
    max-width: calc(100% - 24px);
    min-width: 0;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
    cursor: pointer;
    pointer-events: auto;
}

maturity-risk-appetite-chart .maturity-step-label:focus-visible {
    outline: 2px solid var(--maturity-step-colour, #38bdf8);
    outline-offset: 3px;
    border-radius: 6px;
}

maturity-risk-appetite-chart .maturity-step-label.is-selected {
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.26));
    box-shadow: 0 0 0 2px var(--maturity-step-colour, #38bdf8);
    border-radius: 6px;
}

maturity-risk-appetite-chart .step-number,
maturity-risk-appetite-chart .step-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

maturity-risk-appetite-chart .step-number {
    min-width: 42px;
    color: var(--maturity-step-font-colour, #ffffff);
    background: var(--maturity-step-colour, #38bdf8);
    border-radius: 5px 0 0 5px;
}

maturity-risk-appetite-chart .step-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--maturity-step-label-colour, #273433);
    background: var(--maturity-step-label-background, rgba(255, 255, 255, 0.94));
    border-radius: 0 5px 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

maturity-risk-appetite-chart .maturity-step-label.is-selected .step-number {
    color: var(--maturity-step-label-colour, #273433);
    background: var(--maturity-step-label-background, rgba(255, 255, 255, 0.94));
}

maturity-risk-appetite-chart .maturity-step-label.is-selected .step-name {
    color: var(--maturity-step-font-colour, #ffffff);
    background: var(--maturity-step-colour, #38bdf8);
}

@container maturity-level-chart (max-width: 780px) {
    maturity-risk-appetite-chart .maturity-step-label .step-name,
    maturity-risk-appetite-chart .maturity-step-label.is-selected .step-name {
        color: transparent;
        text-shadow: none;
    }
}

maturity-risk-appetite-chart .maturity-level-definition-row {
    display: grid;
    grid-template-columns: repeat(var(--maturity-level-definition-count, var(--maturity-level-count, 1)), minmax(0, 1fr));
    min-height: 78px;
    border-top: 1px solid rgba(44, 93, 89, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

maturity-risk-appetite-chart .maturity-level-definition-cell {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    padding: 10px 12px 12px;
    border-right: 1px solid rgba(44, 93, 89, 0.12);
    color: var(--countermeasure-text-muted);
    cursor: help;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.32;
    outline: none;
}

maturity-risk-appetite-chart .maturity-level-definition-cell:hover,
maturity-risk-appetite-chart .maturity-level-definition-cell:focus-visible,
maturity-risk-appetite-chart .maturity-level-definition-cell.is-tooltip-active {
    background: rgba(255, 255, 255, 0.82);
}

maturity-risk-appetite-chart .maturity-level-definition-cell:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(14, 165, 197, 0.42);
}

maturity-risk-appetite-chart .maturity-level-definition-cell:last-child {
    border-right: 0;
}

maturity-risk-appetite-chart .maturity-level-definition-text {
    display: -webkit-box;
    max-height: calc(1.32em * 3);
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip {
    position: absolute;
    left: var(--definition-tooltip-left, 0);
    top: var(--definition-tooltip-top, 0);
    z-index: 30;
    box-sizing: border-box;
    width: var(--definition-tooltip-width, 280px);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip-content {
    box-sizing: border-box;
    max-height: var(--definition-tooltip-max-height, 180px);
    padding: 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip.is-above {
    transform: translateY(-100%);
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip.is-below {
    transform: none;
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip::after {
    content: "";
    position: absolute;
    left: var(--definition-tooltip-arrow-left, 50%);
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip.is-above::after {
    bottom: -6px;
}

maturity-risk-appetite-chart .maturity-level-definition-tooltip.is-below::after {
    top: -6px;
}

maturity-level-editor-panel .maturity-level-definition-tooltip {
    position: absolute;
    left: var(--definition-tooltip-left, 0);
    top: var(--definition-tooltip-top, 0);
    z-index: 30;
    box-sizing: border-box;
    width: var(--definition-tooltip-width, 280px);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

maturity-level-editor-panel .maturity-level-definition-tooltip-content {
    box-sizing: border-box;
    max-height: var(--definition-tooltip-max-height, 180px);
    padding: 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

maturity-level-editor-panel .maturity-level-definition-tooltip.is-above {
    transform: translateY(-100%);
}

maturity-level-editor-panel .maturity-level-definition-tooltip.is-below {
    transform: none;
}

maturity-level-editor-panel .maturity-level-definition-tooltip::after {
    content: "";
    position: absolute;
    left: var(--definition-tooltip-arrow-left, 50%);
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

maturity-level-editor-panel .maturity-level-definition-tooltip.is-above::after {
    bottom: -6px;
}

maturity-level-editor-panel .maturity-level-definition-tooltip.is-below::after {
    top: -6px;
}

maturity-risk-appetite-chart .risk-appetite-label-layer {
    position: absolute;
    inset: 16px 0 18px;
    display: none;
    grid-template-columns: repeat(var(--maturity-level-count, 1), minmax(0, 1fr));
    z-index: 5;
    pointer-events: none;
}

maturity-risk-appetite-chart .risk-appetite-label-cell {
    position: relative;
    min-width: 0;
}

maturity-risk-appetite-chart .risk-appetite-level-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: var(--risk-label-bottom, 50%);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 28px;
    min-width: 0;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 6px;
    padding: 4px 12px;
    background: var(--risk-label-background, var(--countermeasure-accent, #0f766e));
    color: var(--risk-label-colour, #ffffff);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

maturity-risk-appetite-chart .risk-appetite-rail {
    position: absolute;
    top: 16px;
    right: 12px;
    bottom: 16px;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(84px, 1fr) auto;
    grid-template-areas:
        "high"
        "slider"
        "low";
    justify-items: center;
    align-items: center;
    row-gap: 6px;
    width: 70px;
    min-height: 0;
    padding: 8px 6px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

maturity-risk-appetite-chart .risk-appetite-rail .risk-axis-label {
    color: var(--countermeasure-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    width: 100%;
    min-height: 13px;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

maturity-risk-appetite-chart .risk-appetite-rail .risk-axis-label-low {
    grid-area: low;
    align-self: end;
}

maturity-risk-appetite-chart .risk-appetite-rail .risk-axis-label-high {
    grid-area: high;
    align-self: start;
}

maturity-risk-appetite-chart .risk-appetite-slider {
    grid-area: slider;
    justify-self: center;
    align-self: stretch;
    width: 24px;
    height: 100%;
    min-height: 100px;
    writing-mode: vertical-lr;
    direction: rtl;
    accent-color: var(--risk-appetite-slider-accent, var(--countermeasure-accent));
    pointer-events: auto;
}

maturity-risk-appetite-chart .risk-appetite-save-indicator {
    grid-area: slider;
    align-self: center;
    justify-self: center;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}

maturity-risk-appetite-chart .risk-appetite-save-indicator::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 119, 158, 0.22);
    border-top-color: #00779e;
    border-radius: 999px;
    animation: risk-appetite-save-spin 760ms linear infinite;
}

@keyframes risk-appetite-save-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    maturity-risk-appetite-chart .risk-appetite-save-indicator::before {
        animation-duration: 1600ms;
    }
}

maturity-risk-appetite-chart .chart-target-summary {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid var(--countermeasure-glass-border);
    background: rgba(255, 255, 255, 0.54);
    color: var(--countermeasure-text-muted);
    font-size: 0.84rem;
}

maturity-risk-appetite-chart .chart-target-summary strong {
    color: var(--countermeasure-text);
}

maturity-model-editor-panel .editor-shell,
maturity-level-editor-panel .editor-shell,
maturity-model-workspace-panel .delete-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}

maturity-model-editor-panel .editor-form,
maturity-level-editor-panel .editor-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

maturity-model-editor-panel .editor-form ui-field,
maturity-level-editor-panel .editor-form ui-field {
    min-width: 0;
}

maturity-model-editor-panel .editor-form .full-width,
maturity-level-editor-panel .editor-form .full-width {
    grid-column: 1 / -1;
}

maturity-level-editor-panel .editor-checkbox-field {
    position: relative;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    margin-bottom: 1px;
}

maturity-level-editor-panel .editor-checkbox-tooltip-anchor ui-checkbox {
    display: block;
    width: 100%;
}

maturity-level-editor-panel .editor-checkbox-tooltip-anchor .checkbox-control-compact {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    justify-content: center;
}

maturity-level-editor-panel .editor-checkbox-tooltip-anchor .checkbox-main {
    justify-content: center;
    width: 100%;
}

maturity-level-editor-panel .editor-checkbox-tooltip.is-above {
    left: 50%;
    top: -10px;
    width: min(360px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(-100%);
}

@media (max-width: 1180px) {
    maturity-model-workspace-panel [data-countermeasure-library="maturity-models"] {
        min-height: 0;
    }

    maturity-models-page .maturity-models-canvas {
        height: auto;
    }

    maturity-model-workspace-panel .maturity-model-workspace {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto minmax(360px, 1fr);
    }

}
