/* Edition one. Every selector is confined to the isolated prototype. */
:is(.ct-prototype,.ct-product) .ct-select-source { display:none !important; }
:is(.ct-prototype,.ct-product) .ct-native-select { min-width:0; flex:1; }
:is(.ct-prototype,.ct-product) .ct-pagination-size { min-width:140px; }
:is(.ct-prototype,.ct-product) .ct-pagination-size .fi-input-wrp-prefix { white-space:nowrap; }
/* The prototype-only comparison dock must not cover a page-size option. */
.ct-prototype .ct-pagination-size .fi-dropdown-panel { z-index:50; }
@media(max-width:639px) {
    :is(.ct-prototype,.ct-product) .ct-pagination-size { min-width:72px; }
    :is(.ct-prototype,.ct-product) .ct-pagination-size .fi-input-wrp-prefix { display:none; }
}
:is(.ct-prototype,.ct-product) .ct-comparison-options .ct-native-select { max-width:190px; border:1px solid var(--ct-border-strong); border-radius:6px; background:white; }
:is(.ct-prototype,.ct-product) .ct-comparison-options .ct-native-select .fi-select-input-btn { min-height:32px; font-size:12px; }
:is(.ct-prototype-body,.ct-product) { --ct-primary:#047857; --ct-muted:#686868; --ct-motion:200ms; --ct-ease:cubic-bezier(0,0,.2,1); }
:is(.ct-prototype-body,.ct-product) :is(input,textarea)::placeholder { color:var(--ct-muted); opacity:1; }
:is(.ct-prototype-body,.ct-product) :is(.fi-input,.fi-select-input,.fi-fo-select-input,.fi-select-search-input,.fi-fo-date-time-picker input,.fi-input-wrp input,.fi-input-wrp select,.fi-input-wrp button):focus,
:is(.ct-prototype-body,.ct-product) :is(.fi-input,.fi-select-input,.fi-fo-select-input,.fi-select-search-input,.fi-fo-date-time-picker input,.fi-input-wrp input,.fi-input-wrp select,.fi-input-wrp button):focus-visible { outline:none; box-shadow:none; --tw-ring-shadow:0 0 #0000; }
:is(.ct-prototype-body,.ct-product) .fi-input-wrp { border:1px solid var(--ct-border-strong); border-radius:8px; outline:none; box-shadow:none; transition:border-color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype-body,.ct-product) .fi-input-wrp:focus-within { border-color:var(--ct-primary); outline:none; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) .fi-input-wrp.fi-invalid { border-color:var(--ct-danger); }
:is(.ct-prototype-body,.ct-product) .fi-fo-textarea { border:1px solid var(--ct-border-strong); border-radius:8px; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) .fi-fo-textarea:focus-within { border-color:var(--ct-primary); box-shadow:none; }
:is(.ct-prototype-body,.ct-product) .fi-fo-textarea textarea:focus-visible { outline:none; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) :is(.fi-select-input-search-ctn) .fi-input-wrp { border:0; border-radius:0; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) :is(.fi-select-input-search-ctn) { border-bottom:1px solid var(--ct-border); }
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons { gap:8px; }
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons label.fi-btn { --ct-choice-text:var(--color-800,var(--ct-text)); --ct-choice-surface:var(--color-50,var(--ct-subtle)); --ct-choice-border:var(--color-300,var(--ct-border-strong)); color:var(--ct-text); background:white; border:1px solid var(--ct-border-strong); box-shadow:none; transition:background-color var(--ct-motion) var(--ct-ease),border-color var(--ct-motion) var(--ct-ease),color var(--ct-motion) var(--ct-ease); }
/* Preserve the approved emerald tones; other options retain their native semantic palette. */
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons label.fi-btn:is(.fi-color-primary,.fi-color-success) { --ct-choice-text:#065f46; --ct-choice-surface:#ecfdf5; --ct-choice-border:#6ee7b7; }
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons input:checked + label.fi-btn { color:var(--ct-choice-text); background:var(--ct-choice-surface); border-color:var(--ct-choice-border); }
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons label.fi-btn > .fi-icon { color:inherit; }
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons input:focus-visible + label.fi-btn { outline:2px solid var(--ct-choice-text); outline-offset:3px; }
:is(.ct-prototype-body,.ct-product) .fi-fo-toggle-buttons input:disabled + label.fi-btn { opacity:.55; cursor:not-allowed; }
:is(.ct-prototype-body,.ct-product) .fi-select-input-placeholder { color:var(--ct-muted); }
:is(.ct-prototype-body,.ct-product) :is(.fi-checkbox,.fi-radio):focus-visible { outline:2px solid var(--ct-primary); outline-offset:3px; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) :is(.ct-command-search,.ct-coverage-search) input:focus-visible { outline:none; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) :is(.ct-command-search,.ct-coverage-search):focus-within { border-color:var(--ct-primary); }
:is(.ct-prototype,.ct-product) .ct-comparison-options select:focus-visible { border-color:var(--ct-primary); outline:none; box-shadow:none; }
:is(.ct-prototype-body,.ct-product) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-grouped-action):not(label) { background-color:var(--ct-primary); color:white; border-color:var(--ct-primary); }
:is(.ct-prototype-body,.ct-product) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-grouped-action):not(label):hover { background-color:#065f46; border-color:#065f46; }

:is(.ct-prototype,.ct-product) .ct-tenant-menu { flex-shrink:0; margin:24px 0 14px; }
:is(.ct-prototype,.ct-product) .ct-organization { width:100%; margin:0; text-align:left; transition:background-color var(--ct-motion) var(--ct-ease),border-color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-organization:hover,:is(.ct-prototype,.ct-product) .ct-organization[aria-expanded=true] { background:white; border-color:var(--ct-border-strong); }
:is(.ct-prototype,.ct-product) .ct-identity-copy { min-width:0; }
:is(.ct-prototype,.ct-product) .ct-identity-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
:is(.ct-prototype,.ct-product) .ct-profile { width:100%; align-items:center; text-align:left; border:1px solid transparent; border-radius:8px; padding:10px; margin:10px 0 0; transition:background-color var(--ct-motion) var(--ct-ease),border-color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-profile > .ct-icon { margin-left:auto; width:14px; color:var(--ct-muted); }
:is(.ct-prototype,.ct-product) .ct-profile:hover,:is(.ct-prototype,.ct-product) .ct-profile[aria-expanded=true] { background:var(--ct-subtle); border-color:var(--ct-border); }
:is(.ct-prototype,.ct-product) .ct-sidebar-bottom { border-top:1px dashed var(--ct-border); padding-top:10px; flex-shrink:0; }
:is(.ct-prototype,.ct-product) .ct-sidebar-bottom > a[aria-current=page] { color:var(--ct-primary); background:var(--ct-primary-soft); }
:is(.ct-prototype,.ct-product) .ct-search,:is(.ct-prototype,.ct-product) .ct-header-command { height:36px; min-height:36px; flex-shrink:0; border:1px solid var(--ct-border); border-radius:7px; padding:0 10px; background:white; transition:border-color var(--ct-motion) var(--ct-ease),background-color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-search:hover,:is(.ct-prototype,.ct-product) .ct-header-command:hover { border-color:var(--ct-border-strong); background:var(--ct-subtle); }
:is(.ct-prototype,.ct-product) .ct-search,:is(.ct-prototype,.ct-product) kbd { white-space:nowrap; }
:is(.ct-prototype,.ct-product) .ct-header-navigation .ct-tenant-menu { flex:none; width:max-content; min-width:0; margin:0; }
:is(.ct-prototype,.ct-product) .ct-header-navigation .ct-organization { flex:none; width:max-content; min-width:0; margin:0; padding:6px 8px; white-space:nowrap; background:transparent; border-color:transparent; gap:8px; }
:is(.ct-prototype,.ct-product) .ct-header-navigation .ct-organization > .ct-icon { margin-inline:0; }
:is(.ct-prototype,.ct-product) .ct-header-navigation .ct-identity-copy small { display:none; }
:is(.ct-prototype,.ct-product) .ct-header-navigation .ct-organization:hover,:is(.ct-prototype,.ct-product) .ct-header-navigation .ct-organization[aria-expanded=true] { border-color:var(--ct-border); background:var(--ct-subtle); }
:is(.ct-prototype,.ct-product) .ct-topbar .ct-profile { padding:3px; margin:0; }
:is(.ct-prototype,.ct-product) .ct-topbar .ct-profile .ct-identity-copy,:is(.ct-prototype,.ct-product) .ct-topbar .ct-profile > .ct-icon { display:none; }
:is(.ct-prototype,.ct-product) .ct-nav-section-toggle .ct-icon { transition:transform var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-nav-disclosure { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows var(--ct-motion) var(--ct-ease),opacity var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-nav-disclosure[data-expanded=true] { grid-template-rows:1fr; opacity:1; }
:is(.ct-prototype,.ct-product) .ct-nav-disclosure > div { overflow:hidden; min-height:0; }
:is(.ct-prototype,.ct-product) .ct-nav-section-toggle { transition:color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-nav-section-toggle:hover { color:var(--ct-text); }
:is(.ct-prototype,.ct-product) :is(.ct-sidebar nav a,.ct-sidebar-bottom > a,.ct-top-navigation-trigger,.ct-button) { transition-duration:var(--ct-motion); transition-timing-function:var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-menu-heading { padding:16px 16px 12px; border-bottom:1px dashed var(--ct-border); text-align:left; color:var(--ct-text); }
:is(.ct-prototype,.ct-product) .ct-menu-heading :is(strong,span) { display:block; font-size:12px; font-weight:600; }
:is(.ct-prototype,.ct-product) .ct-menu-heading small { display:block; font-size:11px; color:var(--ct-muted); margin-top:4px; }
:is(.ct-prototype,.ct-product) .ct-menu-current { display:flex; align-items:center; justify-content:space-between; gap:12px; }
:is(.ct-prototype,.ct-product) .ct-menu-current .ct-icon { width:15px; height:15px; }
:is(.ct-prototype,.ct-product) .ct-menu-footnote { padding:12px 16px; border-top:1px dashed var(--ct-border); color:var(--ct-muted); font-size:11px; }
:is(.ct-prototype-body,.ct-product) .fi-dropdown-panel { border:0; border-radius:12px; box-shadow:0 8px 24px #17171720,0 2px 6px #17171710; }
:is(.ct-prototype-body,.ct-product) .fi-dropdown-list { padding:6px; }
:is(.ct-prototype-body,.ct-product) .fi-dropdown-list-item { border-radius:7px; min-height:36px; transition:background-color var(--ct-motion) var(--ct-ease),color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype-body,.ct-product) .fi-dropdown-list-item[aria-current] { background:var(--ct-primary-soft); color:var(--ct-primary); }
:is(.ct-prototype-body,.ct-product) .fi-dropdown-list-item[aria-current] :is(.fi-icon,.fi-dropdown-list-item-label) { color:inherit; }

/* Main and child navigation share spacing; placement determines the child marker. */
:is(.ct-prototype,.ct-product) { --ct-tab-gap:4px; --ct-tab-padding-inline:12px; --ct-tab-radius:7px; }
:is(.ct-prototype,.ct-product) :is(.ct-local-tabs,.fi-tabs) { display:flex; flex-wrap:nowrap; gap:var(--ct-tab-gap); width:100%; max-width:100%; overflow-x:auto; padding:0 0 5px; margin:0 0 24px; border:0; border-bottom:1px solid var(--ct-border); border-radius:0; background:transparent; box-shadow:none; scrollbar-width:thin; scrollbar-color:var(--ct-border-strong) transparent; scroll-padding-inline:12px; }
:is(.ct-prototype,.ct-product) :is(.ct-local-tabs :is(a,button),.fi-tabs-item,.ct-section-nav :is(a,button)) { position:relative; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:7px; min-height:38px; padding:8px var(--ct-tab-padding-inline); margin:0; border:0; border-radius:var(--ct-tab-radius); background:transparent; box-shadow:none; color:var(--ct-muted); font-size:12px; line-height:20px; font-weight:500; white-space:nowrap; transition:background-color var(--ct-motion) var(--ct-ease),color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) :is(.ct-local-tabs :is(a,button),.fi-tabs-item,.ct-section-nav :is(a,button)):hover { color:var(--ct-text); background:#f2f5f3; }
:is(.ct-prototype,.ct-product) :is(.ct-local-tabs :is(a,button)[aria-current=page],.fi-tabs-item.fi-active,.fi-tabs-item[aria-selected=true],.ct-section-nav :is(a,button)[aria-current=page]) { color:var(--ct-primary); background:var(--ct-primary-soft); box-shadow:none; font-weight:600; }
:is(.ct-prototype,.ct-product) .fi-tabs-item .fi-icon { width:16px; height:16px; color:inherit; }
:is(.ct-prototype,.ct-product) .fi-tabs-item .fi-tabs-item-label { color:inherit; font-size:inherit; }
:is(.ct-prototype,.ct-product) .ct-settings-layout .fi-sc-tabs { padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
:is(.ct-prototype,.ct-product) .ct-settings-layout .fi-sc-tabs-tab { padding:0; }
:is(.ct-prototype,.ct-product) .ct-settings-layout .ct-form-context { padding:22px 0 0; border:0; border-top:1px dashed var(--ct-border); border-radius:0; }
:is(.ct-prototype,.ct-product) .ct-settings-layout .ct-form-context h2 { margin-top:0; }

:is(.ct-prototype,.ct-product) .ct-contents-nav a { position:relative; transition:background-color var(--ct-motion) var(--ct-ease),color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product) .ct-contents-nav a[aria-current=location] { color:var(--ct-primary); background:var(--ct-primary-soft); font-weight:600; }
:is(.ct-prototype,.ct-product) .ct-guide-sections { max-width:72ch; gap:0; }
:is(.ct-prototype,.ct-product) .ct-guide-sections > section { padding:0 0 40px; margin-bottom:40px; border-bottom:1px dashed var(--ct-border); scroll-margin-top:32px; }
:is(.ct-prototype,.ct-product) .ct-guide-sections h2 { font-size:20px; line-height:28px; margin-bottom:16px; }
:is(.ct-prototype,.ct-product) .ct-guide-sections p { font-size:14px; line-height:25px; color:var(--ct-muted); margin-top:12px; }
:is(.ct-prototype,.ct-product) .ct-guide-sections .ct-rules { margin-top:20px; }
:is(.ct-prototype,.ct-product) .ct-content > .ct-panel-note { margin:0 0 24px; width:100%; padding:14px 16px; }
:is(.ct-prototype,.ct-product) .ct-content > .ct-panel-note p { font-size:12px; line-height:20px; }
:is(.ct-prototype,.ct-product) .ct-intake-guidance { display:block; grid-column:auto; padding-top:6px; }
:is(.ct-prototype,.ct-product) .ct-intake-guidance .ct-evidence-note > .ct-icon { display:block; color:var(--ct-muted); margin-bottom:12px; }
:is(.ct-prototype,.ct-product) .ct-intake-guidance ol { list-style:decimal; padding-left:18px; font-size:12px; line-height:21px; color:var(--ct-muted); margin-top:12px; }
:is(.ct-prototype,.ct-product) .ct-intake-guidance li + li { margin-top:8px; }
:is(.ct-prototype,.ct-product) .ct-empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:4px; }

/* Each treatment is independently reversible through the comparison controls. */
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-ctn { padding:0; border:1px solid var(--ct-border); border-radius:12px; box-shadow:none; background:white; overflow:visible; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-main { border:0; border-radius:inherit; box-shadow:none; }
/* The native -1px header offset covers our outer border after the inner frame is removed. */
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-ctn { margin-top:0; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar { border-start-start-radius:12px; border-start-end-radius:12px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-pagination { border-end-start-radius:12px; border-end-end-radius:12px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-table { min-width:720px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar { padding:16px 20px; padding-inline-end:16px; border-bottom:1px solid var(--ct-border); background:white; }
/* Reserve the native hit areas; their inner padding supplies the gap between glyphs. */
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) { column-gap:0; }
/* Shrink search before an empty action group can push the controls onto a second line. */
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions):has(> .fi-ta-search-field) { flex:1; min-width:min(100%,192px); justify-content:flex-end; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) > .fi-ta-search-field { min-width:0; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) > .fi-ta-search-field:not(:last-child) { margin-inline-end:6px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) > * > :is(.fi-dropdown-trigger,.fi-modal-trigger) > .fi-icon-btn,
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) > .fi-ta-filters-trigger-action-ctn > .fi-icon-btn { margin:0; }
/* Counts grow inward instead of borrowing space from the frame or the next control. */
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) > * > :is(.fi-dropdown-trigger,.fi-modal-trigger) > .fi-icon-btn > .fi-icon-btn-badge-ctn,
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-toolbar > div:not(.fi-ta-actions) > .fi-ta-filters-trigger-action-ctn > .fi-icon-btn > .fi-icon-btn-badge-ctn { inset-inline-start:auto; inset-inline-end:0; translate:0 -50%; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-table > thead > tr { background:#f9faf9; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-cell { padding-block:12px; border-bottom:1px dashed var(--ct-border-strong); font-family:'CTrial Inter',Inter,sans-serif; text-transform:none; letter-spacing:0; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-cell :is(button,span) { font-family:inherit; text-transform:inherit; letter-spacing:inherit; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-header-cell-label { color:#5f6762; font-size:11px; letter-spacing:0; font-weight:600; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-table > tbody > tr { transition:background-color var(--ct-motion) var(--ct-ease); }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-table > tbody > tr:hover { background:#f7faf8; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-cell { padding-block:0; border-bottom-color:#eeeeee; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-text { min-width:100px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-icon { min-height:24px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-icon .fi-icon { width:20px; height:20px; stroke-width:1.65; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-pagination { padding:14px 20px; border-top:1px solid var(--ct-border); font-size:12px; }
:is(.ct-prototype,.ct-product)[data-table-style=refined] .fi-ta-text { font-variant-numeric:tabular-nums; }
:is(.ct-prototype,.ct-product)[data-row-style=refined] .fi-ta .fi-action-button-group { background:white; border-color:transparent; border-radius:8px; }
:is(.ct-prototype,.ct-product)[data-row-style=refined] .fi-ta .fi-action-button-group::after { border-color:var(--ct-border-strong); }
:is(.ct-prototype,.ct-product)[data-row-style=refined] .fi-ta .fi-action-button-cell + .fi-action-button-cell::before { border-left-style:solid; border-color:#eaeaea; inset-block:10px; }
:is(.ct-prototype,.ct-product)[data-row-style=refined] .fi-ta .fi-grouped-action.fi-btn[data-grouped-action] { color:#626962; transition:background-color var(--ct-motion) var(--ct-ease),color var(--ct-motion) var(--ct-ease),transform 80ms var(--ct-ease); }
:is(.ct-prototype,.ct-product)[data-row-style=refined] .fi-ta .fi-grouped-action.fi-btn[data-grouped-action]:hover { background:var(--ct-primary-soft); color:var(--ct-primary); }
:is(.ct-prototype,.ct-product)[data-header-style=refined] .ct-record-actions .fi-action-button-group { background:white; border-radius:9px; }
:is(.ct-prototype,.ct-product)[data-header-style=refined] .ct-record-actions .fi-action-button-group::after { border-color:var(--ct-border-strong); }
:is(.ct-prototype,.ct-product)[data-header-style=refined] .ct-record-actions .fi-action-button-cell + .fi-action-button-cell::before { border-left-style:solid; border-color:#e5e9e6; inset-block:12px; }
:is(.ct-prototype,.ct-product)[data-header-style=refined] .ct-record-actions .fi-grouped-action.fi-btn[data-grouped-action] { color:#525d56; transition:background-color var(--ct-motion) var(--ct-ease),color var(--ct-motion) var(--ct-ease),transform 80ms var(--ct-ease); }
:is(.ct-prototype,.ct-product)[data-header-style=refined] .ct-record-actions .fi-grouped-action.fi-btn[data-grouped-action]:hover { color:var(--ct-primary); background:var(--ct-primary-soft); }
:is(.ct-prototype,.ct-product)[data-row-style=refined] .fi-ta [data-grouped-danger=true] .fi-grouped-action.fi-btn[data-grouped-action]:hover,
:is(.ct-prototype,.ct-product)[data-header-style=refined] .ct-record-actions [data-grouped-danger=true] .fi-grouped-action.fi-btn[data-grouped-action]:hover { color:#b91c1c; background:#fef2f2; }
:is(.ct-prototype-body,.ct-product) .fi-dropdown-panel:has(.fi-ta-filters) { width:300px; max-width:calc(100vw - 32px); padding:0; }
:is(.ct-prototype-body,.ct-product) .fi-ta-filters { padding:18px; gap:20px; }
:is(.ct-prototype-body,.ct-product) .fi-ta-filters-header { padding-bottom:14px; border-bottom:1px dashed var(--ct-border); }
:is(.ct-prototype-body,.ct-product) .fi-ta-filters-heading { font-size:13px; font-weight:600; }
:is(.ct-prototype-body,.ct-product) .fi-ta-filters-header .fi-link { color:var(--ct-muted); font-size:12px; }
:is(.ct-prototype-body,.ct-product) .fi-ta-filters-header .fi-link:hover { color:var(--ct-text); }
:is(.ct-prototype-body,.ct-product) .fi-ta-filters-actions-ctn { padding-top:14px; border-top:1px dashed var(--ct-border); }

:is(.ct-prototype,.ct-product) .ct-prototype-switcher { gap:10px; padding:6px 8px 6px 14px; max-width:calc(100vw - 32px); border:0; box-shadow:0 6px 20px #17171726; }
:is(.ct-prototype,.ct-product) .ct-shell-control { display:flex; align-items:center; gap:6px; padding-inline:4px; }
:is(.ct-prototype,.ct-product) .ct-shell-control a { display:flex; align-items:center; justify-content:center; width:24px; height:28px; border-radius:4px; }
:is(.ct-prototype,.ct-product) .ct-shell-control a:hover { background:#404040; }
:is(.ct-prototype,.ct-product) .ct-shell-control .ct-icon { width:14px; height:14px; }
:is(.ct-prototype,.ct-product) .ct-scenario-trigger { gap:7px; min-height:32px; color:#fff; background:transparent; border-radius:4px; }
:is(.ct-prototype,.ct-product) .ct-scenario-trigger:is(:hover,:focus-visible,[aria-expanded=true]) { color:#fff; background:#404040; }
:is(.ct-prototype,.ct-product) .ct-scenario-trigger:focus-visible { outline-color:#d4d4d4; outline-offset:2px; }
:is(.ct-prototype,.ct-product) .ct-scenario-trigger .ct-icon { width:15px; height:15px; }
:is(.ct-prototype,.ct-product) .ct-comparison-menu .fi-dropdown-panel { color:var(--ct-text); white-space:normal; max-width:calc(100vw - 32px); max-height:calc(100dvh - 120px); overflow:auto; }
:is(.ct-prototype,.ct-product) .ct-comparison-options { padding:16px; }
:is(.ct-prototype,.ct-product) .ct-comparison-options h2 { font-size:12px; line-height:18px; }
:is(.ct-prototype,.ct-product) .ct-comparison-options p { font-size:11px; color:var(--ct-muted); margin:4px 0 16px; }
:is(.ct-prototype,.ct-product) .ct-comparison-options label { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; margin-top:12px; }
:is(.ct-prototype,.ct-product) .ct-comparison-options label > span { flex-shrink:0; }
:is(.ct-prototype,.ct-product) .ct-comparison-options select { color:var(--ct-text); font-size:12px; padding:5px 25px 5px 8px; border:1px solid var(--ct-border-strong); border-radius:6px; background-color:white; }
:is(.ct-prototype,.ct-product) .ct-scenario-options { border-top:1px dashed var(--ct-border); }
:is(.ct-prototype,.ct-product) .ct-scenario-options > div { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
:is(.ct-prototype,.ct-product) .ct-scenario-options a { padding:5px 8px; border:1px solid var(--ct-border); border-radius:5px; color:var(--ct-muted); font-size:11px; }
:is(.ct-prototype,.ct-product) .ct-scenario-options a[aria-current] { background:var(--ct-primary-soft); color:var(--ct-primary); border-color:#a7d6bf; }
@media(max-width:1250px) { :is(.ct-prototype,.ct-product) .ct-intake-guidance { grid-column:auto; } }
@media(min-width:701px) and (max-width:1100px) { :is(.ct-prototype,.ct-product) .ct-sidebar .ct-search kbd { display:none; } }
@media(max-width:1000px) { :is(.ct-prototype,.ct-product) .ct-intake-guidance { border-top:1px dashed var(--ct-border); padding-top:24px; } :is(.ct-prototype,.ct-product) .ct-prototype-badge { display:none; } }
@media(max-width:700px) {
    :is(.ct-prototype,.ct-product) .ct-prototype-switcher { left:50%; bottom:12px; width:max-content; gap:4px; padding:5px; }
    :is(.ct-prototype,.ct-product) .ct-shell-control { gap:0; font-size:10px; padding:0; }
    :is(.ct-prototype,.ct-product) .ct-shell-control a { width:20px; }
    :is(.ct-prototype,.ct-product) .ct-scenario-trigger { padding:5px; }
    :is(.ct-prototype,.ct-product) .ct-scenario-trigger > span { display:none; }
    :is(.ct-prototype,.ct-product) .ct-header-brand .ct-identity-copy { max-width:110px; }
    :is(.ct-prototype,.ct-product) .ct-header-brand .ct-organization { padding:4px; gap:6px; }
    :is(.ct-prototype,.ct-product) .ct-header-brand .ct-avatar { display:none; }
    :is(.ct-prototype,.ct-product) .ct-header-command { padding:0 8px; }
    :is(.ct-prototype,.ct-product) .ct-header-command kbd { display:none; }
    :is(.ct-prototype,.ct-product) .ct-contents-nav { gap:4px; }
    :is(.ct-prototype,.ct-product) .ct-contents-nav a { padding:7px 9px; font-size:11px; }
    :is(.ct-prototype,.ct-product) .ct-empty-actions .ct-button { white-space:normal; }
    :is(.ct-prototype,.ct-product) .ct-sidebar-bottom { padding-top:8px; }
    :is(.ct-prototype,.ct-product) .ct-sidebar .ct-tenant-menu { margin-top:20px; }
}
@media(max-width:360px) { :is(.ct-prototype,.ct-product) .ct-shell-control strong { display:none; } }
@media(prefers-reduced-motion:reduce) { :is(.ct-prototype,.ct-product) *, :is(.ct-prototype,.ct-product) *::before, :is(.ct-prototype,.ct-product) *::after { transition-duration:.001ms!important; animation-duration:.001ms!important; scroll-behavior:auto!important; } }
.ct-deletion-impact { display:grid; gap:20px; text-align:start; font-size:13px; line-height:1.6; }
.ct-deletion-impact h3 { font-size:13px; font-weight:600; color:var(--ct-text); }
.ct-deletion-impact p,.ct-deletion-impact dt ul { color:var(--ct-muted); font-size:12px; }
.ct-deletion-impact dl { margin-top:10px; }
.ct-deletion-impact dl > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:16px; padding:8px 0; border-bottom:1px dashed var(--ct-border); }
.ct-deletion-impact dl > div:last-child { border-bottom:0; }
.ct-deletion-impact dd { font-weight:600; font-variant-numeric:tabular-nums; }
.ct-deletion-impact dt ul { margin-top:4px; }
.ct-deletion-impact .ct-deletion-retained { padding-top:16px; border-top:1px dashed var(--ct-border); }
.ct-bulk-deletion-impact { display:grid; gap:24px; text-align:start; font-size:13px; line-height:1.6; }
.ct-deletion-record > h3 { margin-bottom:16px; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.ct-deletion-record + .ct-deletion-record { padding-top:20px; border-top:1px solid var(--ct-border); }
.ct-bulk-deletion-impact > .ct-deletion-retained { color:var(--ct-muted); font-size:12px; }

/* Job-monitor table commands use the native header outside the results frame. */
.ct-prototype[data-table-style] .ct-job-monitor-table .fi-ta-ctn:has(.fi-ta-header),.ct-prototype[data-table-style] .ct-job-monitor-table .fi-ta-main:has(.fi-ta-header) { border:0; border-radius:0; background:transparent; box-shadow:none; }
.ct-prototype .ct-job-monitor-table .fi-ta-header-ctn:has(.fi-ta-header) { border:0; background:transparent; }
.ct-prototype .ct-job-monitor-table .fi-ta-header { padding:0 0 18px; border:0; background:transparent; }
.ct-prototype .ct-job-monitor-table .fi-ta-header.fi-ta-header-adaptive-actions-position { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.ct-prototype .ct-job-monitor-table .fi-ta-header.fi-ta-header-adaptive-actions-position > .fi-ta-actions { margin-inline-start:auto; }
.ct-prototype .ct-job-monitor-table .fi-ta-main:has(.fi-ta-header) .fi-ta-header-toolbar { border:1px solid var(--ct-border); border-radius:12px 12px 0 0; }
.ct-prototype .ct-job-monitor-table .fi-ta-main:has(.fi-ta-header) .fi-ta-content-ctn { border-inline:1px solid var(--ct-border); background:var(--ct-surface); }
.ct-prototype .ct-job-monitor-table .fi-ta-main:has(.fi-ta-header) .fi-ta-content-ctn:last-child { border-bottom:1px solid var(--ct-border); border-radius:0 0 12px 12px; }
.ct-prototype .ct-job-monitor-table .fi-ta-main:has(.fi-ta-header) > .fi-ta-empty-state { border:1px solid var(--ct-border); border-top:0; border-radius:0 0 12px 12px; background:var(--ct-surface); }
.ct-prototype .ct-job-monitor-table .fi-ta-main:has(.fi-ta-header) .fi-pagination { border:1px solid var(--ct-border); background:var(--ct-surface); }


/* Relation headers retain their native title and create controls. */
.ct-prototype[data-table-style] :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-ctn:has(.fi-ta-header),.ct-prototype[data-table-style] :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-main:has(.fi-ta-header) { border:0; border-radius:0; background:transparent; box-shadow:none; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-header-ctn:has(.fi-ta-header) { border:0; background:transparent; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-header { padding:0 0 18px; border:0; background:transparent; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-header.fi-ta-header-adaptive-actions-position { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-header.fi-ta-header-adaptive-actions-position > .fi-ta-actions { margin-inline-start:auto; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-main:has(.fi-ta-header) .fi-ta-header-toolbar { border:1px solid var(--ct-border); border-radius:12px 12px 0 0; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-main:has(.fi-ta-header) .fi-ta-content-ctn { border-inline:1px solid var(--ct-border); background:var(--ct-surface); }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-main:has(.fi-ta-header) .fi-ta-content-ctn:last-child { border-bottom:1px solid var(--ct-border); border-radius:0 0 12px 12px; }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-main:has(.fi-ta-header) > .fi-ta-empty-state { border:1px solid var(--ct-border); border-top:0; border-radius:0 0 12px 12px; background:var(--ct-surface); }
.ct-prototype :is(.ct-contract-relation-table,.ct-protocol-relation-table) .fi-ta-main:has(.fi-ta-header) .fi-pagination { border:1px solid var(--ct-border); background:var(--ct-surface); }
