.cbm-shell {
    --cbm-border: rgba(255, 255, 255, 0.11);
    --cbm-muted: #94a3b8;
    --cbm-panel: rgba(12, 19, 38, 0.74);
    --cbm-panel-strong: rgba(9, 15, 31, 0.94);
    --cbm-accent: #38bdf8;
    --cbm-green: #34d399;
    --cbm-red: #fb7185;
    --cbm-orange: #fbbf24;
    --cbm-blue: #60a5fa;
    color: #e5edf8;
}

body.cbm-monitor-active #page-cbond > .cb-container > :not(#cbMainTabs):not(#cbTabMonitor) {
    display: none !important;
}

.cbm-shell .cbm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.cbm-shell .cbm-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cbm-shell .cbm-title-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(14, 116, 144, 0.18);
    color: #7dd3fc;
    font-size: 20px;
}

.cbm-shell .cbm-title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.3;
}

.cbm-shell .cbm-subtitle {
    margin: 4px 0 0;
    color: var(--cbm-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

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

.cbm-shell .btn {
    border-radius: 6px;
    white-space: nowrap;
}

.cbm-shell .cbm-subnav {
    display: flex;
    gap: 4px;
    padding: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    border: 1px solid var(--cbm-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    scrollbar-width: thin;
}

.cbm-shell .cbm-subnav-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #9fb0c7;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cbm-shell .cbm-subnav-button:hover,
.cbm-shell .cbm-subnav-button:focus-visible {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.1);
    outline: none;
}

.cbm-shell .cbm-subnav-button.active {
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(14, 116, 144, 0.22);
}

.cbm-shell .cbm-view {
    display: none;
    min-height: 380px;
}

.cbm-shell .cbm-view.active {
    display: block;
}

.cbm-shell .cbm-notice {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 14px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 8px;
    background: rgba(120, 53, 15, 0.2);
    color: #fde68a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.cbm-shell .cbm-notice.show {
    display: flex;
}

.cbm-shell .cbm-notice.error {
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(127, 29, 29, 0.2);
    color: #fecdd3;
}

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

.cbm-shell .cbm-metric {
    min-height: 94px;
    padding: 13px 14px;
    border: 1px solid var(--cbm-border);
    border-radius: 8px;
    background: var(--cbm-panel);
}

.cbm-shell button.cbm-metric {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
}

.cbm-shell .cbm-metric-action {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.cbm-shell .cbm-metric-action:hover,
.cbm-shell .cbm-metric-action:focus-visible {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(15, 38, 66, 0.9);
    outline: none;
}

.cbm-shell .cbm-metric-action:active {
    transform: translateY(1px);
}

.cbm-shell .cbm-metric-label {
    color: var(--cbm-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.cbm-shell .cbm-metric-value {
    margin-top: 10px;
    color: #f8fafc;
    font-size: 1.42rem;
    font-weight: 750;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cbm-shell .cbm-metric-subvalue {
    margin-top: 3px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.cbm-shell .cbm-metric-note {
    margin-top: 5px;
    color: #7f90a8;
    font-size: 0.72rem;
}

.cbm-shell .cbm-price-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.cbm-shell .cbm-price-pair span {
    display: block;
    color: #7f90a8;
    font-size: 0.7rem;
}

.cbm-shell .cbm-price-pair strong {
    display: block;
    margin-top: 2px;
    color: #f8fafc;
    font-size: 1.14rem;
    font-weight: 750;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cbm-shell #cbmStatusCoverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cbm-shell .cbm-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 14px;
}

.cbm-shell .cbm-panel {
    border: 1px solid var(--cbm-border);
    border-radius: 8px;
    background: var(--cbm-panel);
    overflow: hidden;
}

.cbm-shell .cbm-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--cbm-border);
}

.cbm-shell .cbm-panel-title {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 700;
}

.cbm-shell .cbm-panel-body {
    padding: 13px 14px;
}

.cbm-shell .cbm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--cbm-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    margin-bottom: 12px;
}

.cbm-shell .cbm-field {
    min-width: 150px;
}

.cbm-shell .cbm-field.grow {
    flex: 1 1 230px;
}

.cbm-shell .cbm-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--cbm-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.cbm-shell .form-control,
.cbm-shell .form-select {
    min-height: 36px;
    border-color: rgba(148, 163, 184, 0.24);
    border-radius: 6px;
    background-color: rgba(8, 14, 28, 0.82);
    color: #e2e8f0;
    font-size: 0.84rem;
}

.cbm-shell .form-control:focus,
.cbm-shell .form-select:focus {
    border-color: rgba(56, 189, 248, 0.58);
    background-color: rgba(8, 14, 28, 0.96);
    color: #f8fafc;
    box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.11);
}

.cbm-shell .form-control::placeholder {
    color: #64748b;
}

.cbm-shell .form-select option {
    background: #0f172a;
    color: #e2e8f0;
}

.cbm-shell .cbm-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--cbm-border);
    border-radius: 8px;
    background: var(--cbm-panel);
}

.cbm-shell .cbm-table {
    width: 100%;
    min-width: 960px;
    margin: 0;
    color: #dbe7f5;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.81rem;
}

.cbm-shell .cbm-table.compact {
    min-width: 700px;
}

.cbm-shell .cbm-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 11px;
    border-bottom: 1px solid var(--cbm-border);
    background: #101a30;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cbm-shell .cbm-table td {
    padding: 10px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    vertical-align: middle;
}

.cbm-shell .cbm-table tbody tr:last-child td {
    border-bottom: 0;
}

.cbm-shell .cbm-table tbody tr.clickable {
    cursor: pointer;
}

.cbm-shell .cbm-table tbody tr.clickable:hover {
    background: rgba(56, 189, 248, 0.055);
}

.cbm-shell .cbm-name {
    max-width: 180px;
}

.cbm-shell .cbm-name strong {
    display: block;
    color: #f1f5f9;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbm-shell .cbm-name small {
    color: #7f90a8;
    font-variant-numeric: tabular-nums;
}

.cbm-shell .cbm-alert-content {
    min-width: 260px;
    max-width: 560px;
}

.cbm-shell .cbm-alert-content strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.cbm-shell .cbm-alert-bond {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
    line-height: 1.35;
    text-align: center;
}

.cbm-shell .cbm-alert-bond .name {
    color: #cbd5e1;
    font-weight: 650;
}

.cbm-shell .cbm-alert-bond .code {
    color: var(--cbm-muted);
    font-variant-numeric: tabular-nums;
}

.cbm-shell .cbm-alert-trigger {
    max-width: 420px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cbm-shell .cbm-trigger-line {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.cbm-shell .cbm-trigger-line span {
    flex: 0 0 auto;
    color: var(--cbm-muted);
    font-size: 0.72rem;
}

.cbm-shell .cbm-trigger-line strong {
    color: #dbeafe;
    font-weight: 650;
}

.cbm-shell .cbm-alert-keyword-trigger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--cbm-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.cbm-shell .cbm-matched-keyword {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 5px;
    color: #fde68a;
    background: rgba(146, 64, 14, 0.22);
    font-size: 0.76rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.cbm-shell .cbm-matched-keyword.unavailable {
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
    font-weight: 650;
}

.cbm-shell .cbm-num {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cbm-shell .cbm-pnl-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cbm-shell .cbm-pnl-rate {
    color: currentColor;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.1;
    opacity: 0.82;
}

.cbm-shell .cbm-pnl-interest {
    color: var(--cbm-muted);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.cbm-shell .positive {
    color: var(--cbm-red) !important;
}

.cbm-shell .negative {
    color: var(--cbm-green) !important;
}

.cbm-shell .muted {
    color: var(--cbm-muted) !important;
}

.cbm-shell .cbm-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 210px;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbm-shell .cbm-chip.critical {
    border-color: rgba(251, 113, 133, 0.38);
    color: #fecdd3;
    background: rgba(159, 18, 57, 0.2);
}

.cbm-shell .cbm-chip.warning {
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
    background: rgba(146, 64, 14, 0.18);
}

.cbm-shell .cbm-chip.watch {
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.18);
}

.cbm-shell .cbm-chip.verified,
.cbm-shell .cbm-chip.applied,
.cbm-shell .cbm-chip.success,
.cbm-shell .cbm-chip.available {
    border-color: rgba(52, 211, 153, 0.34);
    color: #a7f3d0;
    background: rgba(6, 78, 59, 0.2);
}

.cbm-shell .cbm-chip.rule_trigger,
.cbm-shell .cbm-chip.partial,
.cbm-shell .cbm-chip.running {
    border-color: rgba(251, 191, 36, 0.34);
    color: #fde68a;
    background: rgba(120, 53, 15, 0.18);
}

.cbm-shell .cbm-chip.data_missing,
.cbm-shell .cbm-chip.not_available,
.cbm-shell .cbm-chip.failed {
    border-color: rgba(251, 113, 133, 0.34);
    color: #fecdd3;
    background: rgba(127, 29, 29, 0.18);
}

.cbm-shell .cbm-chip.conflict {
    border-color: rgba(216, 180, 254, 0.42);
    color: #e9d5ff;
    background: rgba(88, 28, 135, 0.22);
}

.cbm-shell .cbm-button-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
}

.cbm-shell .cbm-table-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cbm-shell .cbm-empty {
    padding: 32px 18px;
    color: #7f90a8;
    text-align: center;
    font-size: 0.84rem;
}

.cbm-shell .cbm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #94a3b8;
    font-size: 0.84rem;
}

.cbm-shell .cbm-status-list,
.cbm-shell .cbm-risk-list {
    display: grid;
    gap: 8px;
}

.cbm-shell .cbm-status-row,
.cbm-shell .cbm-risk-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(130px, 1fr) minmax(180px, 1.5fr);
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 0.8rem;
}

.cbm-shell .cbm-status-row:last-child,
.cbm-shell .cbm-risk-row:last-child {
    border-bottom: 0;
}

.cbm-shell .cbm-status-row .reason,
.cbm-shell .cbm-risk-row .reason {
    color: var(--cbm-muted);
    line-height: 1.45;
}

.cbm-shell .cbm-risk-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
}

.cbm-shell .cbm-rule {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cbm-border);
}

.cbm-shell .cbm-rule:last-child {
    border-bottom: 0;
}

.cbm-shell .cbm-rule-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cbm-shell .cbm-rule-name {
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 700;
}

.cbm-shell .cbm-rule-desc {
    margin-top: 4px;
    color: #7f90a8;
    font-size: 0.72rem;
    line-height: 1.45;
}

.cbm-shell .cbm-rule-severity-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.cbm-shell .cbm-rule-severity-field select {
    width: 104px;
    min-height: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.cbm-shell .cbm-rule-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

.cbm-shell .cbm-rule-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 5px;
    align-items: stretch;
}

.cbm-shell .cbm-rule-item-severity {
    min-width: 0;
    padding-left: 8px;
    padding-right: 24px;
}

.cbm-shell .cbm-rule-extra-action {
    align-self: end;
    justify-self: start;
}

.cbm-shell .cbm-keyword-form {
    display: grid;
    grid-template-columns: 180px minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.cbm-shell .cbm-keyword-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cbm-shell .cbm-modal.keyword-manager {
    width: min(1040px, 96vw);
}

.cbm-shell .cbm-keyword-count {
    margin-top: 3px;
    color: var(--cbm-muted);
    font-size: 0.74rem;
}

.cbm-shell .cbm-keyword-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    color: var(--cbm-muted);
    font-size: 0.76rem;
}

.cbm-shell .cbm-keyword-page-info {
    min-width: 82px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cbm-shell .cbm-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.cbm-shell .cbm-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cbm-shell .cbm-switch span {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cbm-shell .cbm-switch span::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    margin: 2px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: transform 0.15s ease;
}

.cbm-shell .cbm-switch input:checked + span {
    background: #0284c7;
}

.cbm-shell .cbm-switch input:checked + span::after {
    transform: translateX(16px);
    background: #f8fafc;
}

.cbm-shell .cbm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(4px);
}

.cbm-shell .cbm-modal-backdrop.show {
    display: flex;
}

.cbm-shell .cbm-modal {
    width: min(860px, 96vw);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #0c1426;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.cbm-shell .cbm-modal.narrow {
    width: min(620px, 96vw);
}

.cbm-shell .cbm-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cbm-border);
    background: rgba(12, 20, 38, 0.98);
}

.cbm-shell .cbm-modal-title {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
}

.cbm-shell .cbm-modal-body {
    padding: 16px;
}

.cbm-shell .cbm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--cbm-border);
}

.cbm-shell .cbm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cbm-shell .cbm-form-grid .full {
    grid-column: 1 / -1;
}

.cbm-shell .cbm-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.cbm-shell .cbm-detail-item {
    padding: 10px;
    border: 1px solid var(--cbm-border);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.62);
}

.cbm-shell .cbm-detail-item span {
    display: block;
    color: #7f90a8;
    font-size: 0.7rem;
}

.cbm-shell .cbm-detail-item strong {
    display: block;
    margin-top: 5px;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cbm-shell .cbm-detail-rate {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cbm-shell .cbm-source-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #7f90a8;
    font-size: 0.72rem;
}

.cbm-shell .cbm-source-line a {
    color: #7dd3fc;
    text-decoration: none;
}

.cbm-shell .cbm-source-line a:hover {
    text-decoration: underline;
}

.cbm-shell .cbm-toast-wrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    display: grid;
    gap: 8px;
    width: min(360px, calc(100vw - 36px));
}

.cbm-shell .cbm-toast {
    padding: 11px 13px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 7px;
    background: #0f1b31;
    color: #e2e8f0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cbm-shell .cbm-toast.error {
    border-color: rgba(251, 113, 133, 0.42);
    color: #fecdd3;
}

.cbm-shell .cbm-inline-error {
    display: none;
    margin-top: 10px;
    color: #fecdd3;
    font-size: 0.8rem;
}

.cbm-shell .cbm-inline-error.show {
    display: block;
}

.cbm-shell .cbm-event-title {
    max-width: 420px;
    color: #e2e8f0;
    line-height: 1.45;
}

.cbm-shell .cbm-date-confirmed {
    color: #a7f3d0;
}

.cbm-shell .cbm-date-pending {
    color: #fde68a;
}

@media (max-width: 1199.98px) {
    .cbm-shell .cbm-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cbm-shell .cbm-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cbm-shell .cbm-header {
        flex-direction: column;
    }

    .cbm-shell .cbm-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cbm-shell .cbm-actions .btn {
        flex: 1 1 auto;
    }

    .cbm-shell .cbm-metric-grid,
    .cbm-shell .cbm-detail-summary,
    .cbm-shell .cbm-form-grid {
        grid-template-columns: 1fr;
    }

    .cbm-shell #cbmStatusCoverage {
        grid-template-columns: 1fr;
    }

    .cbm-shell .cbm-form-grid .full {
        grid-column: auto;
    }

    .cbm-shell .cbm-rule {
        grid-template-columns: 1fr;
    }

    .cbm-shell .cbm-rule-fields {
        grid-template-columns: 1fr;
    }

    .cbm-shell .cbm-keyword-form {
        grid-template-columns: 1fr;
    }

    .cbm-shell .cbm-keyword-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cbm-shell .cbm-rule-severity-field {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .cbm-shell .cbm-rule-severity-field select {
        width: 100%;
    }

    .cbm-shell .cbm-rule-control {
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .cbm-shell .cbm-status-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cbm-shell .cbm-price-pair {
        gap: 6px;
    }

    .cbm-shell .cbm-field {
        min-width: 100%;
    }

    .cbm-shell .cbm-toolbar {
        align-items: stretch;
    }

    .cbm-shell .cbm-modal-backdrop {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cbm-shell *,
    .cbm-shell *::before,
    .cbm-shell *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
