/* Internal panel surfaces. Document previews and public portals do not load this asset. */
.fi-body {
    --nx-surface-group: #f0f2f5;
    --nx-surface-hover: #e8edf3;
    --nx-surface-edge: #e1e5eb;
    --nx-inset: 1.25rem;
}
.dark .fi-body {
    --nx-surface-group: #1b1e25;
    --nx-surface-hover: #303743;
    --nx-surface-edge: #3a414e;
}

/* Controls sit together on a quieter surface; records retain a white reading plane. */
.fi-body .fi-main .fi-section > .fi-section-header {
    background: var(--nx-surface-group);
    border-block-end: 0;
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
}
.fi-body .fi-main .fi-ta :is(.fi-ta-header-toolbar, .fi-ta-content-header, .fi-ta-header-cell) {
    background: var(--nx-surface-group);
}
/* Search and sorting share one rounded plane, including the desktop subgrid. */
.fi-body .fi-main .fi-ta .fi-ta-main {
    background: var(--nx-surface-group);
    border-radius: inherit;
}
.fi-body .fi-main .fi-ta .fi-ta-header-toolbar {
    background: transparent;
}
.fi-body .fi-main .fi-ta .fi-ta-content-header {
    border-block-end: 0;
}
.fi-body .fi-main .fi-ta .fi-ta-table {
    background: var(--nx-surface);
}
/* Standalone module fields share the same shape as Filament-wrapped fields. */
.fi-body .fi-main :is(
    input:not([type]),
    input[type="text"], input[type="search"], input[type="email"],
    input[type="tel"], input[type="url"], input[type="password"],
    input[type="number"], input[type="date"], input[type="time"],
    input[type="datetime-local"], input[type="month"], input[type="week"],
    select:not([multiple]):is(:not([size]), [size="1"])
):not(.fi-input-wrp *) {
    border-radius: 999px;
}

/* Searchable Filament selects expose their own combobox button. */
.fi-body .fi-input-wrp:has(.fi-select-input-btn[role="combobox"]),
.fi-body .fi-select-input-btn[role="combobox"],
.fi-body .fi-select-input-search-ctn .fi-input {
    border-radius: 999px;
}

/* Native selects use one rounded focus indicator on their existing wrapper. */
@supports selector(:has(*)) {
    .fi-body .fi-input-wrp:has(> .fi-input-wrp-content-ctn > :is(input.fi-input, select.fi-select-input)) {
        border-radius: 999px;
    }
    .fi-body .fi-input-wrp:has(:is(input.fi-input, select.fi-select-input):focus-visible) {
        outline: 2px solid var(--nx-focus);
        outline-offset: -1px;
    }
    .fi-body .fi-input-wrp :is(input.fi-input, select.fi-select-input):focus-visible {
        outline: none;
    }
}
.fi-body :is(.fi-badge, .nx-project-badge, .nexo-project-state, .nexo-task-state, .np-status, .nn-status, .nf-state, .nexo-account-security-state),
.fi-body .fi-main :is(.fi-badge, .nx-project-badge, .nexo-project-state, .nexo-task-state, .np-status, .nn-status, .nf-state, .nexo-account-security-state),
.fi-body .fi-main .nexo-billing-workspace .nexo-project-state {
    border-radius: 999px;
    padding-inline: .625rem;
}
.fi-body .fi-icon-btn-badge-ctn .fi-badge {
    border-radius: 999px;
    min-inline-size: 1.25rem;
    padding-inline: .25rem;
}
.fi-body .fi-main .fi-ta .fi-ta-header-toolbar :is(.fi-ta-filters-dropdown, .fi-ta-col-manager-dropdown) > .fi-dropdown-trigger > .fi-icon-btn {
    border-radius: 999px;
}
.fi-body .fi-dropdown-panel .fi-dropdown-list > .fi-dropdown-list-item {
    border-radius: 999px;
    min-block-size: 44px;
}
.fi-body .fi-main .fi-ta .fi-ta-content-grid {
    background: var(--nx-surface-group);
    gap: 1rem;
    padding: var(--nx-inset);
}
.fi-body .fi-main .fi-ta-content-grid .fi-ta-record {
    background: var(--nx-surface);
    border-color: var(--nx-surface-edge);
    box-shadow: none;
}
.fi-body .fi-main .fi-ta-table tbody > tr:hover {
    background: var(--nx-surface-group);
}
.fi-body .fi-main .fi-header-actions-ctn > .fi-ac {
    gap: .75rem;
}
.fi-body .fi-main .fi-header-actions-ctn .fi-btn {
    max-inline-size: 100%;
    white-space: normal;
}

/* A contained account/project tab is the main plane; its sections are quiet groups. */
.fi-body .fi-resource-view-record-page:is(.fi-resource-clients, .fi-resource-projects) .fi-sc-tabs.fi-contained .fi-sc-tabs-tab.fi-active .fi-section:not(.fi-section-not-contained):not(.fi-divided):not(.fi-aside) {
    background: var(--nx-surface-group);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
}
.fi-body .fi-resource-view-record-page:is(.fi-resource-clients, .fi-resource-projects) .fi-sc-tabs.fi-contained .fi-sc-tabs-tab.fi-active .fi-section:not(.fi-section-not-contained):not(.fi-divided):not(.fi-aside) > .fi-section-header {
    padding: 1rem var(--nx-inset) .75rem;
    border: 0;
    gap: .75rem;
    flex-wrap: wrap;
}
.fi-body .fi-resource-view-record-page:is(.fi-resource-clients, .fi-resource-projects) .fi-sc-tabs.fi-contained .fi-sc-tabs-tab.fi-active .fi-section:not(.fi-section-not-contained):not(.fi-divided):not(.fi-aside) > .fi-section-content-ctn > .fi-section-content {
    padding: 0 var(--nx-inset) var(--nx-inset);
}
.fi-body .fi-resource-view-record-page:is(.fi-resource-clients, .fi-resource-projects) .fi-sc-tabs-tab.fi-active .fi-section > .fi-section-content-ctn {
    border-block-start: 0;
}
.fi-body .fi-resource-view-record-page:is(.fi-resource-clients, .fi-resource-projects) .fi-sc-tabs.fi-contained .fi-sc-tabs-tab.fi-active .fi-section:not(.fi-section-has-header):not(.fi-section-not-contained):not(.fi-divided):not(.fi-aside) > .fi-section-content-ctn > .fi-section-content {
    padding: var(--nx-inset);
}
.fi-body .fi-main .nexo-project-recurrence .nexo-recurrence-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem 1.5rem;
}

/* Project finances: one block per quota, with its linked documents kept together. */
.fi-body .fi-main .nx-finance-list {
    display: grid;
    gap: .75rem;
    border: 0;
}
.fi-body .fi-main .nx-finance-list > .nx-finance-row {
    padding: 1rem;
    background: var(--nx-surface);
    border: 0;
    border-radius: 12px;
    min-inline-size: 0;
}
.fi-body .fi-main .nx-finance-linked {
    margin-block: 1rem .5rem;
    padding: .25rem 1rem;
    background: var(--nx-surface-group);
    border-radius: 8px;
}
.fi-body .fi-main .nx-finance-row-details[open] {
    margin-block-start: .75rem;
    padding-block-start: .5rem;
    border-block-start: 1px solid var(--nx-surface-edge);
}
.fi-body .fi-main .nx-finance-row-details .nx-finance-row-actions {
    margin-block: .75rem;
}
.fi-body .fi-main .nexo-project-terms {
    padding: 1rem;
    background: var(--nx-surface);
    border-radius: 12px;
}
.fi-body .fi-main .nx-finance-action-footer {
    border: 0;
    padding-block-start: .5rem;
}
.fi-body .fi-main .nx-finance-section-list > li {
    background: var(--nx-surface);
    border-radius: 12px;
    padding-inline: 1rem;
}
.fi-body .fi-main .nx-finance-section-list .nx-finance-row-link {
    border: 0;
}

/* Work: navigation, controls and task content have distinct spatial roles. */
.fi-body .fi-main .nexo-task-manager .ntm-content {
    padding: var(--nx-inset);
    background: var(--nx-surface);
    border: 1px solid var(--nx-surface-edge);
    border-radius: var(--nx-radius);
}
.fi-body .fi-main .nexo-task-manager .ntm-work-filters {
    padding: 1rem;
    background: var(--nx-surface-group);
    border-radius: 12px;
    gap: 1rem;
}
.fi-body .fi-main .nexo-task-manager .ntm-rail {
    box-shadow: none;
    border-color: var(--nx-surface-edge);
}
.fi-body .fi-main .nexo-task-manager .ntm-rail > summary {
    background: var(--nx-surface-group);
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
}
.fi-body .fi-main .nexo-task-manager .ntm-content-toolbar {
    gap: .75rem 1rem;
    padding-block: .25rem;
}

/* Prospection follows the same quiet groups and white record surfaces. */
.fi-body .fi-main .nexo-prospection :is(.np-toolbar, .np-detail-heading) {
    padding: 1rem;
    background: var(--nx-surface-group);
    border-radius: 12px;
}
.fi-body .fi-main .nexo-prospection .np-section {
    background: var(--nx-surface-group);
    border: 0;
    box-shadow: none;
    padding: var(--nx-inset);
    border-radius: var(--nx-radius);
}
.fi-body .fi-main .nexo-prospection :is(.np-opportunity, .np-proposal-link) {
    background: var(--nx-surface);
    border: 0;
    border-radius: 12px;
}
.fi-body .fi-main .nexo-prospection .np-proposal-link:hover {
    background: var(--nx-surface-hover);
}
.fi-body .fi-main .nexo-prospection .np-notes {
    padding: 1rem;
    background: var(--nx-surface-group);
    border-radius: 12px;
}
.fi-body .fi-main :is(.np-document-actions, .nexo-publication-actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-block: .75rem;
    min-inline-size: 0;
}
.fi-body .fi-main :is(.np-actions, .nexo-native-history-actions, .nexo-native-version-actions) .fi-btn {
    max-inline-size: 100%;
    white-space: normal;
}
.fi-body .fi-main :is(.np-actions, .nexo-native-history-actions, .nexo-native-version-actions) .fi-btn-label {
    overflow-wrap: anywhere;
}

/* Finance and reports reuse the same controls/content contrast. */
/* Form controls keep Filament's single wrapper; module styles only arrange fields. */
.fi-body .fi-main .nexo-finance-workspace .nf-heading {
    background: var(--nx-surface-group);
    border: 0;
    border-radius: 8px;
    padding: .75rem 1rem;
    gap: .75rem;
    flex-wrap: wrap;
}
.fi-body .fi-main .nexo-reports :is(.nr-filter-disclosure, .nr-custom-dates) {
    background: var(--nx-surface-group);
    border: 0;
    box-shadow: none;
}
.fi-body .fi-main .nexo-reports .nr-table-scroll thead th {
    background: var(--nx-surface-group);
}
.fi-body .fi-main .nexo-reports .nr-table-scroll tbody tr:hover {
    background: var(--nx-surface-group);
}
.fi-body .fi-main .nexo-reports .nr-empty {
    background: var(--nx-surface);
}

/* Dashboard groups gain contrast without adding another set of card outlines. */
.fi-body .fi-main .nexo-dashboard :is(.nd-work, .nd-finance, .nd-projects) > header {
    background: var(--nx-surface-group);
    border-radius: 8px;
    padding: .75rem 1rem;
    border: 0;
}

@media (max-width: 639px) {
    .fi-body { --nx-inset: .75rem; }
    .fi-body .fi-main .nx-finance-list > .nx-finance-row { padding: .875rem; }
    .fi-body .fi-main .nx-finance-linked { padding-inline: .75rem; }
    .fi-body .fi-main .nexo-project-terms { padding: .875rem; }
    .fi-body .fi-main .nexo-task-manager .ntm-work-filters { padding: .875rem; }
    .fi-body .fi-main .fi-header-actions-ctn { max-inline-size: 100%; }
}
@media (forced-colors: active) {
    .fi-body .fi-main :is(.nx-finance-row, .ntm-content, .ntm-work-filters, .nx-finance-linked) {
        border: 1px solid CanvasText;
    }
}

/* Style the options surface too; unsupported browsers keep their native picker. */
@supports (appearance: base-select) {
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]),
    .fi-body select:not([multiple]):is(:not([size]), [size="1"])::picker(select) {
        appearance: base-select;
    }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%235c687b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
        background-position: right .75rem center;
        background-repeat: no-repeat;
        background-size: 1rem;
        padding-inline-end: 2.5rem;
    }
    .dark .fi-body select:not([multiple]):is(:not([size]), [size="1"]) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23b5bbc6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"])::picker-icon { display: none; }
    .fi-body select::picker(select) {
        background: var(--nx-surface, #fff);
        color: var(--nx-ink, #192438);
        border: 1px solid var(--nx-surface-edge);
        border-radius: 12px;
        padding: .375rem;
        margin-block: .375rem;
        min-inline-size: 10rem;
        max-inline-size: calc(100vw - 2rem);
        max-block-size: min(24rem, calc(100dvh - 2rem));
        overflow: auto;
        box-shadow: 0 8px 24px rgb(0 0 0 / .12);
    }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]) option {
        min-block-size: 2.75rem;
        padding: .625rem .75rem;
        border-radius: 999px;
        white-space: normal;
        overflow-wrap: anywhere;
        gap: .625rem;
    }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]) option:checked { background: var(--nx-surface-group); }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]) option:hover { background: var(--nx-surface-hover); }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]) option:focus-visible { outline: 2px solid var(--nx-focus); outline-offset: -2px; }
    .fi-body select:not([multiple]):is(:not([size]), [size="1"]) option:disabled { color: var(--nx-muted); }
}

/* The supplier form and its authorized costs share the available page width. */
.fi-body .nexo-supplier-columns { container-type: inline-size; container-name: supplier-layout; }
.fi-body .nexo-supplier-columns > .fi-sc { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.fi-body .nexo-supplier-columns > .fi-sc > * { min-inline-size: 0; }
.fi-body .nexo-supplier-form { container-type: inline-size; container-name: supplier-form; }
.fi-body .nexo-supplier-costs { min-inline-size: 0; }
@container supplier-layout (min-width: 40rem) {
    .fi-body .nexo-supplier-columns > .fi-sc { grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); }
}
@container supplier-form (max-width: 36rem) {
    .fi-body .nexo-supplier-form :is(.fi-section-content.fi-sc, .fi-section-content .fi-sc) { grid-template-columns: minmax(0, 1fr); }
}

.fi-body .nexo-supplier-costs .fi-ta-record-content-ctn { flex-direction: column; align-items: stretch; gap: .75rem; }
.fi-body .nexo-supplier-costs .fi-ta-actions { justify-content: flex-start; }
.fi-body .nexo-supplier-costs .fi-ta-actions > .fi-link { min-block-size: 2.75rem; align-items: center; }

.fi-body .nexo-supplier-costs .fi-ta-actions > .fi-link .fi-link-label { align-self: center; }

/* Metric cards: one component and one shared appearance in all modules. */
.nx-metric-card{min-inline-size:0;padding:1rem;border:1px solid var(--nx-line,#e3e8f0);border-radius:var(--nx-radius,16px);background:var(--nx-surface,#fff)}
.nx-metric-card dt{color:var(--nx-muted,#59677e);font-size:.8125rem;line-height:1.5}
.nx-metric-card dd{margin:.5rem 0 0;color:var(--nx-ink,#182337);font-size:1.125rem;font-weight:600;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.nx-metric-card--primary{padding:1.25rem;background:var(--nx-soft,#f3f5f8)}
.nx-metric-card--primary dd{font-size:clamp(1.375rem,1.2rem + .4vw,1.875rem);font-weight:700}
.nx-metric-card--unknown dd{color:var(--nx-muted,#59677e);font-size:1.125rem;font-weight:500}
.fi-body .nx-metric-card--plain { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }

@media(max-width:640px) { .nx-metric-card--primary { padding:1rem; } }

/* Native table toolbar: search owns its row on narrow screens in every module. */
@media(max-width:640px) {
    .fi-body .fi-main .fi-ta .fi-ta-header-toolbar > div:has(> .fi-ta-search-field) { display:flex; flex-wrap:wrap; inline-size:100%; min-inline-size:0; justify-content:flex-start; gap:.75rem; }
    .fi-body .fi-main .fi-ta .fi-ta-header-toolbar .fi-ta-search-field { flex:1 0 100%; inline-size:100%; max-inline-size:none; }
    .fi-body .fi-main .fi-ta .fi-ta-header-toolbar .nf-native-sort { flex:1; min-inline-size:0; }
    .fi-body .fi-main .fi-ta .fi-ta-header-toolbar :is(.fi-input-wrp,.fi-input,.fi-select-input) { min-block-size:44px; }
}

/* Filters share the compact single-column layout approved in Proposals. */
.fi-body .fi-main .fi-ta-filters-dropdown > .fi-dropdown-panel { max-width:min(20rem,calc(100vw - 2rem)) !important; }

@media(max-width:640px),(max-height:700px) {
    .fi-body .fi-main .fi-ta-filters-dropdown > .fi-dropdown-panel { max-block-size:40dvh; overflow-y:auto; overscroll-behavior:contain; }
}

/* Collapsed sections have a single, fully rounded header surface. */
.fi-body .fi-section.fi-collapsible.fi-collapsed > .fi-section-header {
    border-end-start-radius: inherit;
    border-end-end-radius: inherit;
}
/* Authenticated panel. Filament's simple login layout uses .fi-simple-main. */
.dark:has(.fi-body .fi-main) {
    color-scheme: dark;
}
.dark .fi-body:has(.fi-main) {
    --nx-canvas: #141a23;
    --nx-surface: #1c2532;
    --nx-surface-group: #202c3c;
    --nx-surface-raised: #263345;
    --nx-surface-field: #171f2b;
    --nx-surface-hover: #293b51;
    --nx-selection-bg: #2c4361;
    --nx-selection-ink: #e6f0ff;
    --nx-surface-edge: #354255;
    --nx-line: var(--nx-surface-edge);
    --nx-soft: #253244;
    --nx-ink: #edf3fb;
    --nx-muted: #adbcd0;
    --nx-accent: #a8cbff;
    --nx-focus: #a8cbff;
    --nx-nav: #142034;
    --nx-card-shadow: 0 4px 16px rgb(3 9 18 / .18);
    --nx-popover-shadow: 0 12px 32px rgb(3 9 18 / .42);

    & .fi-main-sidebar {
        border-color: var(--nx-line);
    }
    & :is(.fi-main-sidebar, .fi-page-sub-navigation-sidebar) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
    & .nx-mobile-nav a[aria-current="page"] {
        background: var(--nx-selection-bg);
        color: var(--nx-selection-ink);
    }
    & :is(.fi-main-sidebar, .fi-page-sub-navigation-sidebar) .fi-sidebar-item.fi-active :is(.fi-sidebar-item-label, .fi-sidebar-item-icon) {
        color: var(--nx-selection-ink);
    }
    & .fi-page-sub-navigation-sidebar .fi-sidebar-item:not(.fi-active) .fi-sidebar-item-icon {
        color: var(--nx-muted);
    }
    & .nx-mobile-nav {
        background: var(--nx-nav);
        border-color: var(--nx-line);
    }
    & :is(.fi-tabs-item, .fi-sc-tabs-tab).fi-active {
        color: var(--nx-selection-ink);
    }
    & .fi-tabs-item.fi-active {
        background: var(--nx-selection-bg);
    }
    & :is(.fi-dropdown-panel, .fi-modal-window) {
        background: var(--nx-surface-raised);
        color: var(--nx-ink);
        box-shadow: var(--nx-popover-shadow);
    }
    & :is(.fi-input-wrp, .fi-textarea) {
        background: var(--nx-surface-field);
    }
    & :is(input, textarea)::placeholder {
        color: var(--nx-muted);
        opacity: 1;
    }
    & .fi-input-wrp:focus-within {
        outline: 1px solid var(--nx-focus);
        outline-offset: 2px;
    }
    & .fi-main .fi-btn.fi-color-primary:not(.fi-outlined) {
        background: var(--nx-accent);
        color: var(--nx-canvas);
    }
    & .fi-main .fi-btn.fi-color-primary:not(.fi-outlined):hover {
        background: #c0daff;
    }
    & .fi-main .fi-btn.fi-color-primary:is([aria-current="page"], [aria-pressed="true"]),
    & .fi-main .ntm-project-links a[aria-current="page"] {
        background: var(--nx-selection-bg);
        color: var(--nx-selection-ink);
    }
    & .fi-main .fi-btn.fi-color-primary:is([aria-current="page"], [aria-pressed="true"]):hover {
        background: var(--nx-surface-hover);
        color: var(--nx-selection-ink);
    }
    & .fi-main :is(.fi-btn:not(.fi-color), .fi-btn.fi-color-gray:not(.fi-outlined)):hover {
        background: var(--nx-surface-hover);
    }
    & :is(.fi-icon-btn:not(.fi-color), .fi-icon-btn.fi-color-gray) > .fi-icon {
        color: var(--nx-muted);
    }
    & .nexo-prospection .np-card-title .fi-icon {
        color: var(--nx-accent);
    }
    & .nexo-prospection :is(.np-card-meta, .np-card-origin) .fi-ta-text .fi-icon {
        color: var(--nx-muted);
    }
    & .nexo-reports {
        --nx-surface: inherit;
        --nx-border: var(--nx-line);
        --nx-text-secondary: var(--nx-muted);
    }
    & .ntm-rail {
        background: var(--nx-surface-group);
    }
    & .ntm-project-links :is(a:hover, a:focus-visible) {
        background: var(--nx-surface-hover);
    }
    & .nexo-task-manager .ntm-project-label .ntm-project-account {
        color: var(--nx-muted);
    }
    & .nexo-task-manager .ntm-project-links a[aria-current="page"] .ntm-project-label > span:first-child {
        color: var(--nx-selection-ink);
    }
    & .nexo-task-manager .ntm-project-links .ntm-project-glyph {
        background: var(--nx-soft);
    }
    & .nexo-task-manager .ntm-project-links .ntm-project-glyph > svg {
        color: var(--nx-accent);
    }
    & .nexo-task-workspace [data-priority="normal"] {
        --task-priority: var(--nx-accent);
    }
    & .nexo-task-workspace [data-priority="high"] {
        --task-priority: var(--nx-warning);
    }
    & .nexo-task-workspace [data-priority="urgent"] {
        --task-priority: var(--nx-danger);
    }
    & .nexo-task-workspace:not(.nexo-task-workspace-board) :is(.nexo-task-item > .nexo-task-row:hover, .nexo-task-section-heading:hover) {
        background: var(--nx-surface-hover);
        box-shadow: inset 0 0 0 1px var(--nx-line);
    }
    & .nexo-task-workspace:not(.nexo-task-workspace-board) :is(.nexo-task-row:hover .nexo-task-title, .nexo-task-section-heading:hover h2) {
        color: var(--nx-selection-ink);
    }
    & .nexo-task-workspace-board .nexo-task-list > .nexo-task-item {
        background: var(--nx-surface-group);
    }
    & .nexo-task-workspace-board .nexo-task-list > .nexo-task-item:is(:hover, :focus-within) {
        background: var(--nx-surface-hover);
    }
    & .nexo-task-manager .ntc {
        --nx-ink: #edf3fb;
        --nx-border: var(--nx-line);
        --nx-surface: #1c2532;
        --nx-muted-surface: var(--nx-surface-group);
    }
    & .nexo-timeline {
        --timeline-edge: var(--nx-line);
        --timeline-surface: var(--nx-surface-group);
        --timeline-ink: var(--nx-accent);
    }
    & :is(.nexo-timeline-scroll, .nexo-timeline-label, .nexo-timeline-actions) {
        background: var(--nx-surface);
    }
    & .nct-manager :is(.nct-scroll, .nct-item, .nct-calendar) {
        background: var(--nx-surface);
        border-color: var(--nx-line);
    }
    & .nct-manager .nct-chart thead th,
    & .nct-manager .nct-chart-row.is-phase-row :is(.nct-item, .nct-calendar),
    & .nct-manager :is(.nct-scale, .nct-unassigned th) {
        background: var(--nx-surface-group);
        border-color: var(--nx-line);
    }
    & .nct-manager .nct-chart-row:is(:hover, :focus-within) :is(.nct-item, .nct-calendar) {
        background: var(--nx-surface-hover);
    }
    & .nct-manager :is(.nct-month, .nct-chip-label, .nct-info-popover, .nct-popover-close) {
        background: var(--nx-surface-raised);
        border-color: var(--nx-line);
        color: var(--nx-ink);
    }
    & .nct-manager :is(.nct-item-heading > strong, .nct-task-link, .nct-card-title) {
        color: var(--nx-ink);
    }
    & .nct-manager :is(.nct-toolbar p, .nct-summary dt, .nct-key, .nct-scale label > span, .nct-reading-note > span, .nct-activity-head small, .nct-week, .nct-kind, .nct-state, .nct-item-dates, .nct-item-dates > span, .nct-duration, .nct-plan-caption, .nct-undated, .nct-chip-undated, .nct-unassigned-note, .nct-info-popover p, .nct-mobile-hint) {
        color: var(--nx-muted);
    }
    & .nct-manager :is(.nct-summary dl, .nct-week, .nct-link, .nct-edit, .nct-edit li, .nct-link input) {
        border-color: var(--nx-line);
    }
    & .nct-manager .nct-link input {
        background: var(--nx-surface-field);
        color: var(--nx-ink);
    }
    & .nct-manager :is(.nct-reading-note, .nct-link a) {
        color: var(--nx-accent);
    }
    & .nct-manager .nct-chip-label:is(:has(button:hover), :focus-within) {
        background: var(--nx-surface-hover);
        border-color: var(--nx-focus);
    }
    & .nct-manager .nct-scale input:focus-visible + span,
    & .nct-manager :is(.nct-edit, .nct-link) summary:focus-visible {
        outline-color: var(--nx-focus);
    }
    & .nct-manager .nct-scale input:checked + span {
        background: var(--nx-selection-bg);
        color: var(--nx-selection-ink);
    }
    & .nct-manager .nct-grid-line {
        background: var(--nx-line);
    }
    & .nct-manager .nct-today {
        background: var(--nx-accent);
    }
    & .nct-manager :is(.nct-variance.is-late, .nct-delay-caption) {
        color: var(--nx-danger);
    }
    & .nct-manager .nct-variance:not(.is-late) {
        color: var(--nx-warning);
    }
    & .nct-manager :is(.nct-extension, .nct-key-overrun) {
        background: var(--nx-danger-bg);
        border-color: var(--nx-danger);
    }
    & .nct-manager .nct-scroll {
        scrollbar-color: var(--nx-muted) var(--nx-surface);
    }
    & .nexo-finance-native-table .fi-ta :is(.fi-ta-header-cell, .fi-ta-cell) {
        border-color: var(--nx-line);
    }
    & .nexo-finance-native-table .fi-ta-row:is(:hover, :focus-within) {
        background: var(--nx-surface-hover);
    }
}
