/* Desktop entry minimal mode: reuse the mobile icon-first entry pattern on wide screens. */
:root {
    --entry-grad-blue: rgba(37, 99, 235, .10);
    --entry-grad-teal: rgba(20, 184, 166, .11);
    --entry-grad-green: rgba(34, 197, 94, .10);
    --entry-grad-indigo: rgba(99, 102, 241, .11);
    --entry-grad-violet: rgba(124, 58, 237, .10);
    --entry-grad-amber: rgba(245, 158, 11, .12);
    --entry-grad-rose: rgba(244, 63, 94, .10);
    --entry-grad-slate: rgba(71, 85, 105, .10);
    --entry-icon-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 6px 14px rgba(15, 23, 42, .06);
    --entry-icon-blue: #2563eb;
    --entry-icon-teal: #0f766e;
    --entry-icon-green: #059669;
    --entry-icon-indigo: #4f46e5;
    --entry-icon-violet: #7c3aed;
    --entry-icon-amber: #d97706;
    --entry-icon-rose: #e11d48;
    --entry-icon-slate: #475569;
}

html[data-theme="dark"] {
    --entry-grad-blue: rgba(37, 99, 235, .16);
    --entry-grad-teal: rgba(20, 184, 166, .14);
    --entry-grad-green: rgba(34, 197, 94, .13);
    --entry-grad-indigo: rgba(99, 102, 241, .15);
    --entry-grad-violet: rgba(124, 58, 237, .15);
    --entry-grad-amber: rgba(245, 158, 11, .14);
    --entry-grad-rose: rgba(244, 63, 94, .13);
    --entry-grad-slate: rgba(71, 85, 105, .18);
    --entry-icon-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .22);
    --entry-icon-blue: #93c5fd;
    --entry-icon-teal: #5eead4;
    --entry-icon-green: #86efac;
    --entry-icon-indigo: #a5b4fc;
    --entry-icon-violet: #c4b5fd;
    --entry-icon-amber: #fbbf24;
    --entry-icon-rose: #fda4af;
    --entry-icon-slate: #cbd5e1;
}

.minimal-mode-toggle {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.minimal-mode-toggle:hover,
.minimal-mode-toggle:focus-visible,
.minimal-mode-toggle[aria-pressed="true"] {
    border-color: rgba(8, 145, 178, 0.48);
    color: #0891b2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
}

html[data-theme="dark"] .minimal-mode-toggle {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(103, 232, 249, 0.28);
    color: #e5f7fb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .minimal-mode-toggle:hover,
html[data-theme="dark"] .minimal-mode-toggle:focus-visible,
html[data-theme="dark"] .minimal-mode-toggle[aria-pressed="true"] {
    border-color: rgba(103, 232, 249, 0.52);
    color: #67e8f9;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

html[data-entry-mode="minimal"] .home-flow-section {
    background: #eaf7fb !important;
    padding: 22px 28px 24px !important;
    border-top: 1px solid #d7ecf3 !important;
    border-bottom: 1px solid #d7ecf3 !important;
}

html[data-entry-mode="minimal"] .home-flow-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
}

html[data-entry-mode="minimal"] .home-flow-header h3 {
    color: #334155 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

html[data-entry-mode="minimal"] .home-flow-sub,
html[data-entry-mode="minimal"] .home-flow-seq,
html[data-entry-mode="minimal"] .home-flow-desc,
html[data-entry-mode="minimal"] .home-flow-stats,
html[data-entry-mode="minimal"] .home-flow-arrow,
html[data-entry-mode="minimal"] .home-flow-card .rbac-entry-badge {
    display: none !important;
}

html[data-entry-mode="minimal"] .home-flow-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
}

html[data-entry-mode="minimal"] .home-flow-card {
    min-width: 0 !important;
    max-width: none !important;
    min-height: 118px !important;
    padding: 18px 12px 16px !important;
    border: 1px solid #cfe3ee !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 118, 150, .08) !important;
    text-align: center !important;
    overflow: hidden !important;
}

html[data-entry-mode="minimal"] .home-flow-card::before {
    display: none !important;
}

html[data-entry-mode="minimal"] .home-flow-card:hover {
    transform: none !important;
    border-color: #b8dce8 !important;
    box-shadow: 0 12px 22px rgba(15, 118, 150, .10) !important;
}

html[data-entry-mode="minimal"] .home-flow-icon {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 10px !important;
    border-radius: 15px !important;
    color: #fff !important;
    font-size: 23px !important;
    box-shadow: var(--entry-icon-shadow) !important;
}

html[data-entry-mode="minimal"] .home-flow-name {
    max-width: 88px !important;
    margin: 0 auto !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
}

html[data-entry-mode="minimal"] .home-flow-card.fc-clinical .home-flow-icon {
    background: var(--entry-grad-blue) !important;
}

html[data-entry-mode="minimal"] .home-flow-card.fc-operations .home-flow-icon {
    background: var(--entry-grad-teal) !important;
}

html[data-entry-mode="minimal"] .home-flow-card.fc-project .home-flow-icon {
    background: var(--entry-grad-green) !important;
}

html[data-entry-mode="minimal"] .home-flow-card.fc-knowledge .home-flow-icon {
    background: var(--entry-grad-indigo) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-desc,
html[data-entry-mode="minimal"] #page-operations .ops-home-hero-side,
html[data-entry-mode="minimal"] #page-operations .ops-home-section,
html[data-entry-mode="minimal"] #page-operations .ops-home-count,
html[data-entry-mode="minimal"] #page-operations .ops-home-config-head p,
html[data-entry-mode="minimal"] #page-operations .ops-home-group-head p,
html[data-entry-mode="minimal"] #page-operations .ops-home-group-head span,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry-desc,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry-action,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title p,
html[data-entry-mode="minimal"] #page-operations .rbac-entry-badge {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-shell,
html[data-entry-mode="minimal"] #page-operations {
    background: #eaf7fb !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-config,
html[data-entry-mode="minimal"] #page-operations .ops-home-group {
    margin: 0 18px 16px !important;
    padding: 16px 14px 18px !important;
    border: 1px solid #cfe3ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(15, 118, 150, .08) !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card {
    display: block !important;
    min-height: 0 !important;
    padding: 9px 14px 9px 18px !important;
    border-radius: 10px !important;
    background: var(--entry-tile-bg, #f8fbfd) !important;
    background-image: none !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04) !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-name {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-cards {
    gap: 8px !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-main {
    display: grid !important;
    grid-template-columns: minmax(280px, 1.15fr) minmax(420px, 2fr) auto !important;
    gap: 14px !important;
    align-items: center !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-header {
    display: block !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-title-group {
    gap: 2px !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-code {
    font-size: 11px !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-desc {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-badges {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-meta {
    display: grid !important;
    grid-template-columns: minmax(120px, .7fr) minmax(220px, 1.35fr) minmax(100px, .6fr) minmax(86px, .48fr) !important;
    gap: 4px 14px !important;
    align-items: center !important;
    color: #475569 !important;
    font-size: 11px !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-meta span {
    display: inline-flex !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-meta b {
    flex: 0 0 auto !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-footer > span:first-child,
html[data-entry-mode="minimal"] #page-project-management .pm-project-enter i,
html[data-entry-mode="minimal"] #page-project-management .pm-project-card-metrics,
html[data-entry-mode="minimal"] #page-project-management .pm-project-progress {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-card-footer {
    margin-top: 0 !important;
    justify-content: flex-end !important;
    font-size: 11px !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-enter {
    min-height: 20px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-project-list-pager {
    margin: 8px 0 !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    background: var(--entry-section-bg, #f9fcfe) !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-list-toolbar {
    margin-bottom: 10px !important;
}

html[data-entry-mode="minimal"] #page-project-management .pm-list-search,
html[data-entry-mode="minimal"] #page-project-management .pm-list-filters select,
html[data-entry-mode="minimal"] #page-project-management .pm-add-btn {
    min-height: 36px !important;
}

html[data-entry-mode="minimal"] #page-project-management .module-hero {
    padding-bottom: 10px !important;
}

html[data-entry-mode="minimal"] #page-project-management .module-hero-side,
html[data-entry-mode="minimal"] #page-project-management .module-hero .hero-en,
html[data-entry-mode="minimal"] #page-project-management .module-hero .hero-desc {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-project-management .module-hero .hero-main {
    min-height: 56px !important;
}

html[data-entry-mode="minimal"] #page-project-management .module-hero .hero-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
}

html[data-entry-mode="minimal"] #page-project-management .module-hero h1 {
    font-size: 22px !important;
    margin: 0 !important;
}

@media(max-width:640px) {
    html[data-entry-mode="minimal"] #page-project-management .pm-project-card {
        grid-template-columns: 1fr !important;
    }

    html[data-entry-mode="minimal"] #page-project-management .pm-project-card-metrics {
        display: none !important;
    }

    html[data-entry-mode="minimal"] #page-project-management .pm-project-card-header,
    html[data-entry-mode="minimal"] #page-project-management .pm-project-card-main,
    html[data-entry-mode="minimal"] #page-project-management .pm-project-card-meta {
        grid-template-columns: 1fr !important;
    }
}

html[data-entry-mode="minimal"] #page-operations .ops-home-groups {
    display: block !important;
    margin: 0 !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-column {
    display: block !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-config-grid,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry,
html[data-entry-mode="minimal"] #page-operations .ops-home-config .ops-home-entry,
html[data-entry-mode="minimal"] #page-operations .ops-home-config .ops-home-entry:first-child {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry-top {
    display: block !important;
    width: 100% !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
    background: var(--entry-grad-blue) !important;
    color: #fff !important;
    font-size: 22px !important;
    box-shadow: var(--entry-icon-shadow) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(2n) .ops-home-entry-icon {
    background: var(--entry-grad-teal) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(3n) .ops-home-entry-icon {
    background: var(--entry-grad-green) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(4n) .ops-home-entry-icon {
    background: var(--entry-grad-indigo) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(5n) .ops-home-entry-icon {
    background: var(--entry-grad-amber) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(6n) .ops-home-entry-icon {
    background: var(--entry-grad-violet) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(7n) .ops-home-entry-icon {
    background: var(--entry-grad-rose) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry:nth-child(8n) .ops-home-entry-icon {
    background: var(--entry-grad-slate) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(1) .ops-home-entry-icon {
    background: var(--entry-grad-amber) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(2) .ops-home-entry-icon {
    background: var(--entry-grad-violet) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(3) .ops-home-entry-icon {
    background: var(--entry-grad-rose) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(4) .ops-home-entry-icon {
    background: var(--entry-grad-slate) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(1) .ops-home-entry-icon {
    background: var(--entry-grad-green) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(2) .ops-home-entry-icon {
    background: var(--entry-grad-indigo) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(3) .ops-home-entry-icon {
    background: var(--entry-grad-blue) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(4) .ops-home-entry-icon {
    background: var(--entry-grad-teal) !important;
}

html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title h4 {
    max-width: 82px !important;
    margin: 0 auto !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-hero-text p,
html[data-entry-mode="minimal"] #page-clinical .cr-home-hero-actions,
html[data-entry-mode="minimal"] #page-clinical .cr-home-hero-side,
html[data-entry-mode="minimal"] #page-clinical .cr-home-search-bar,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card-desc,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card-order,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card-ai,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card-tags,
html[data-entry-mode="minimal"] #page-clinical .cr-cat-desc,
html[data-entry-mode="minimal"] #page-clinical .cr-cat-count,
html[data-entry-mode="minimal"] #page-clinical .cr-cat-emoji,
html[data-entry-mode="minimal"] #page-clinical .cr-home-bottom {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-clinical {
    background: #eaf7fb !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-category {
    margin: 0 18px 16px !important;
    padding: 16px 14px 18px !important;
    border: 1px solid #cfe3ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(15, 118, 150, .08) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-category-header {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-cat-name {
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
    align-items: start !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    overflow: visible !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card-top {
    display: block !important;
    margin: 0 !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 8px !important;
    border-radius: 14px !important;
    background: var(--entry-grad-blue) !important;
    color: #fff !important;
    font-size: 21px !important;
    box-shadow: var(--entry-icon-shadow) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(2n) .cr-home-card-icon {
    background: var(--entry-grad-teal) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(3n) .cr-home-card-icon {
    background: var(--entry-grad-green) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(4n) .cr-home-card-icon {
    background: var(--entry-grad-indigo) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(5n) .cr-home-card-icon {
    background: var(--entry-grad-amber) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(6n) .cr-home-card-icon {
    background: var(--entry-grad-violet) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(7n) .cr-home-card-icon {
    background: var(--entry-grad-rose) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(8n) .cr-home-card-icon {
    background: var(--entry-grad-slate) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card-name {
    max-width: 82px !important;
    margin: 0 auto !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    word-break: break-word !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-cards-grid,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-home-entry-grid,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-home-entry-grid-nature,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-home-dept-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card {
    min-height: 78px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    overflow: visible !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry span,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry strong,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry em,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry b,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-top,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card p,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card b {
    display: none !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark {
    display: flex !important;
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 8px !important;
    border-radius: 14px !important;
    background: var(--entry-grad-blue) !important;
    box-shadow: var(--entry-icon-shadow) !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 22px !important;
    font-style: normal !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(2n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(2n) .kh-home-dept-mark {
    background: var(--entry-grad-teal) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(3n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(3n) .kh-home-dept-mark {
    background: var(--entry-grad-green) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(4n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(4n) .kh-home-dept-mark {
    background: var(--entry-grad-indigo) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(5n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(5n) .kh-home-dept-mark {
    background: var(--entry-grad-amber) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(6n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(6n) .kh-home-dept-mark {
    background: var(--entry-grad-violet) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(7n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(7n) .kh-home-dept-mark {
    background: var(--entry-grad-rose) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(8n) .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(8n) .kh-home-dept-mark {
    background: var(--entry-grad-slate) !important;
}

html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry::after,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card::after {
    content: attr(data-mobile-title);
    display: block;
    max-width: 82px;
    margin: 0 auto;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.18;
    word-break: keep-all;
}

@media (max-width: 520px) {
    .home-flow-icon,
    #page-operations .ops-home-entry-icon,
    #page-clinical .cr-home-card-icon,
    #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
    #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark {
        box-shadow: var(--entry-icon-shadow) !important;
    }

    .home-flow-card.fc-clinical .home-flow-icon {
        background: var(--entry-grad-blue) !important;
    }

    .home-flow-card.fc-operations .home-flow-icon {
        background: var(--entry-grad-teal) !important;
    }

    .home-flow-card.fc-project .home-flow-icon {
        background: var(--entry-grad-green) !important;
    }

    .home-flow-card.fc-knowledge .home-flow-icon {
        background: var(--entry-grad-indigo) !important;
    }

    html body #page-operations .ops-home-entry-icon,
    html body #page-clinical .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark {
        background: var(--entry-grad-blue) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(2n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(2n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(2n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(2n) .kh-home-dept-mark {
        background: var(--entry-grad-teal) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(3n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(3n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(3n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(3n) .kh-home-dept-mark {
        background: var(--entry-grad-green) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(4n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(4n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(4n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(4n) .kh-home-dept-mark {
        background: var(--entry-grad-indigo) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(5n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(5n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(5n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(5n) .kh-home-dept-mark {
        background: var(--entry-grad-amber) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(6n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(6n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(6n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(6n) .kh-home-dept-mark {
        background: var(--entry-grad-violet) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(7n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(7n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(7n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(7n) .kh-home-dept-mark {
        background: var(--entry-grad-rose) !important;
    }

    html body #page-operations .ops-home-entry:nth-child(8n) .ops-home-entry-icon,
    html body #page-clinical .cr-home-card:nth-child(8n) .cr-home-card-icon,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(8n) .kh-home-entry-mark,
    html body #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(8n) .kh-home-dept-mark {
        background: var(--entry-grad-slate) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(1) .ops-home-entry-icon {
        background: var(--entry-grad-amber) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(2) .ops-home-entry-icon {
        background: var(--entry-grad-violet) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(3) .ops-home-entry-icon {
        background: var(--entry-grad-rose) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(4) .ops-home-entry-icon {
        background: var(--entry-grad-slate) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(1) .ops-home-entry-icon {
        background: var(--entry-grad-green) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(2) .ops-home-entry-icon {
        background: var(--entry-grad-indigo) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(3) .ops-home-entry-icon {
        background: var(--entry-grad-blue) !important;
    }

    html body #page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(4) .ops-home-entry-icon {
        background: var(--entry-grad-teal) !important;
    }
}

/* V10.5.615: operations minimal mode should use the width instead of stacking loose rows. */
@media (min-width: 1180px) {
    html[data-entry-mode="minimal"] #page-operations .ops-home-shell {
        padding-bottom: 14px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-head {
        min-height: 0 !important;
        margin: 0 0 10px !important;
        padding: calc(var(--app-topbar-height) + 16px) 28px 14px !important;
        grid-template-columns: 1fr !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-toolbar {
        grid-template-columns: minmax(280px, 420px) !important;
        margin: 0 28px 10px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-search input {
        height: 34px !important;
        border-radius: 9px !important;
        box-shadow: 0 5px 14px rgba(15, 118, 150, .045) !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-config {
        margin: 0 28px 10px !important;
        padding: 10px 12px 12px !important;
        border-radius: 12px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-config-head,
    html[data-entry-mode="minimal"] #page-operations .ops-home-group-head {
        margin: 0 0 8px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-config-head h3,
    html[data-entry-mode="minimal"] #page-operations .ops-home-group-head h3 {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-config-grid {
        grid-template-columns: repeat(2, minmax(180px, 260px)) !important;
        gap: 8px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-groups {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: start !important;
        margin: 0 28px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-column {
        display: contents !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-group {
        margin: 0 !important;
        padding: 10px 12px 12px !important;
        border-radius: 12px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-entry,
    html[data-entry-mode="minimal"] #page-operations .ops-home-config .ops-home-entry,
    html[data-entry-mode="minimal"] #page-operations .ops-home-config .ops-home-entry:first-child {
        min-height: 52px !important;
        padding: 8px 10px !important;
        border-radius: 9px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title {
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: center !important;
        text-align: left !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-icon {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title h4 {
        max-width: none !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.22 !important;
        word-break: keep-all !important;
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 760px) {
    .minimal-mode-toggle span,
    .theme-mode-toggle span {
        display: none;
    }

    .minimal-mode-toggle,
    .theme-mode-toggle {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
}

/* V10.5.613: refine minimal and narrow entry tiles for enterprise use. */
html[data-entry-mode="minimal"] {
    --entry-tile-bg: #f8fbfd;
    --entry-tile-bg-hover: #fbfdff;
    --entry-section-bg: #f9fcfe;
    --entry-tile-border: #d7e6ee;
    --entry-tile-shadow: 0 6px 16px rgba(15, 23, 42, .04);
    --entry-tile-shadow-hover: 0 10px 22px rgba(15, 23, 42, .065);
    --entry-icon-shadow: inset -5px -5px 0 rgba(15, 23, 42, .07), 0 6px 12px rgba(14, 116, 144, .10);
}

html[data-entry-mode="minimal"] .home-flow-section,
html[data-entry-mode="minimal"] #page-operations .ops-home-shell,
html[data-entry-mode="minimal"] #page-clinical,
html[data-entry-mode="minimal"] #page-knowledge-hub {
    background: #f3f8fb !important;
}

html[data-entry-mode="minimal"] .home-flow-card,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card {
    min-height: 74px !important;
    padding: 11px 12px !important;
    border: 1px solid var(--entry-tile-border) !important;
    border-radius: 10px !important;
    background: var(--entry-tile-bg) !important;
    box-shadow: var(--entry-tile-shadow) !important;
    text-align: left !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

html[data-entry-mode="minimal"] .home-flow-card:hover,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry:hover,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card:hover,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:hover,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:hover {
    border-color: #b9d7e4 !important;
    background: var(--entry-tile-bg-hover) !important;
    box-shadow: var(--entry-tile-shadow-hover) !important;
}

html[data-entry-mode="minimal"] .home-flow-icon,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry-icon,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card-icon,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    box-shadow: var(--entry-icon-shadow) !important;
}

html[data-entry-mode="minimal"] .home-flow-name,
html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title h4,
html[data-entry-mode="minimal"] #page-clinical .cr-home-card-name,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry::after,
html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card::after {
    max-width: 96px !important;
    color: #102033 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

@media (min-width: 761px) {
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title,
    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-top {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-icon,
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-icon {
        margin: 0 !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-name,
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title h4 {
        margin: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 520px) {
    html[data-entry-mode="minimal"] .home-flow-row,
    html[data-entry-mode="minimal"] #page-operations .ops-home-config-grid,
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-grid,
    html[data-entry-mode="minimal"] #page-clinical .cr-home-cards,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-cards-grid,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-home-entry-grid,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-home-entry-grid-nature,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-home-dept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html[data-entry-mode="minimal"] .home-flow-card,
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry,
    html[data-entry-mode="minimal"] #page-clinical .cr-home-card,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card {
        min-height: 68px !important;
        padding: 10px !important;
    }

    html[data-entry-mode="minimal"] .home-flow-icon,
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-icon,
    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-icon,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 6px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
    }

    html[data-entry-mode="minimal"] .home-flow-name,
    html[data-entry-mode="minimal"] #page-operations .ops-home-entry-title h4,
    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-name,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry::after,
    html[data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card::after {
        max-width: 112px !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        word-break: keep-all !important;
        overflow-wrap: anywhere !important;
    }
}

/* V10.5.666: unified clean entry icons across home-style module entry pages. */
.home-flow-icon,
#page-operations .ops-home-entry-icon,
#page-clinical .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-mark {
    border: 1px solid rgba(37, 99, 235, .18) !important;
    background-image: none !important;
    color: var(--entry-icon-blue) !important;
    box-shadow: var(--entry-icon-shadow) !important;
}

.home-flow-card.fc-clinical .home-flow-icon,
#page-operations .ops-home-entry:nth-child(1n) .ops-home-entry-icon,
#page-clinical .cr-home-card:nth-child(1n) .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(1n) .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(1n) .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:nth-child(1n) .kh-home-project-mark {
    background: var(--entry-grad-blue) !important;
    color: var(--entry-icon-blue) !important;
    border-color: color-mix(in srgb, var(--entry-icon-blue) 24%, transparent) !important;
}

.home-flow-card.fc-operations .home-flow-icon,
#page-operations .ops-home-entry:nth-child(2n) .ops-home-entry-icon,
#page-clinical .cr-home-card:nth-child(2n) .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(2n) .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(2n) .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:nth-child(2n) .kh-home-project-mark {
    background: var(--entry-grad-teal) !important;
    color: var(--entry-icon-teal) !important;
    border-color: color-mix(in srgb, var(--entry-icon-teal) 24%, transparent) !important;
}

.home-flow-card.fc-project .home-flow-icon,
#page-operations .ops-home-entry:nth-child(3n) .ops-home-entry-icon,
#page-clinical .cr-home-card:nth-child(3n) .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(3n) .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(3n) .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:nth-child(3n) .kh-home-project-mark {
    background: var(--entry-grad-green) !important;
    color: var(--entry-icon-green) !important;
    border-color: color-mix(in srgb, var(--entry-icon-green) 24%, transparent) !important;
}

.home-flow-card.fc-knowledge .home-flow-icon,
#page-operations .ops-home-entry:nth-child(4n) .ops-home-entry-icon,
#page-clinical .cr-home-card:nth-child(4n) .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(4n) .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(4n) .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:nth-child(4n) .kh-home-project-mark {
    background: var(--entry-grad-amber) !important;
    color: var(--entry-icon-amber) !important;
    border-color: color-mix(in srgb, var(--entry-icon-amber) 24%, transparent) !important;
}

#page-operations .ops-home-entry:nth-child(5n) .ops-home-entry-icon,
#page-clinical .cr-home-card:nth-child(5n) .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(5n) .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(5n) .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:nth-child(5n) .kh-home-project-mark {
    background: var(--entry-grad-violet) !important;
    color: var(--entry-icon-violet) !important;
    border-color: color-mix(in srgb, var(--entry-icon-violet) 24%, transparent) !important;
}

#page-operations .ops-home-entry:nth-child(6n) .ops-home-entry-icon,
#page-clinical .cr-home-card:nth-child(6n) .cr-home-card-icon,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:nth-child(6n) .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:nth-child(6n) .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:nth-child(6n) .kh-home-project-mark {
    background: var(--entry-grad-rose) !important;
    color: var(--entry-icon-rose) !important;
    border-color: color-mix(in srgb, var(--entry-icon-rose) 24%, transparent) !important;
}

#page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(1) .ops-home-entry-icon,
#page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(4) .ops-home-entry-icon {
    background: var(--entry-grad-amber) !important;
    color: var(--entry-icon-amber) !important;
    border-color: color-mix(in srgb, var(--entry-icon-amber) 24%, transparent) !important;
}

#page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(2) .ops-home-entry-icon,
#page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(1) .ops-home-entry-icon {
    background: var(--entry-grad-violet) !important;
    color: var(--entry-icon-violet) !important;
    border-color: color-mix(in srgb, var(--entry-icon-violet) 24%, transparent) !important;
}

#page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(3) .ops-home-entry-icon,
#page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(2) .ops-home-entry-icon {
    background: var(--entry-grad-rose) !important;
    color: var(--entry-icon-rose) !important;
    border-color: color-mix(in srgb, var(--entry-icon-rose) 24%, transparent) !important;
}

#page-operations .ops-home-group:nth-of-type(2n) .ops-home-entry:nth-child(4) .ops-home-entry-icon,
#page-operations .ops-home-group:nth-of-type(3n) .ops-home-entry:nth-child(3) .ops-home-entry-icon {
    background: var(--entry-grad-slate) !important;
    color: var(--entry-icon-slate) !important;
    border-color: color-mix(in srgb, var(--entry-icon-slate) 24%, transparent) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(1n) .cr-home-card-icon {
    background: var(--entry-grad-blue) !important;
    color: var(--entry-icon-blue) !important;
    border-color: color-mix(in srgb, var(--entry-icon-blue) 24%, transparent) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(2n) .cr-home-card-icon {
    background: var(--entry-grad-teal) !important;
    color: var(--entry-icon-teal) !important;
    border-color: color-mix(in srgb, var(--entry-icon-teal) 24%, transparent) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(3n) .cr-home-card-icon {
    background: var(--entry-grad-green) !important;
    color: var(--entry-icon-green) !important;
    border-color: color-mix(in srgb, var(--entry-icon-green) 24%, transparent) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(4n) .cr-home-card-icon {
    background: var(--entry-grad-amber) !important;
    color: var(--entry-icon-amber) !important;
    border-color: color-mix(in srgb, var(--entry-icon-amber) 24%, transparent) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(5n) .cr-home-card-icon {
    background: var(--entry-grad-violet) !important;
    color: var(--entry-icon-violet) !important;
    border-color: color-mix(in srgb, var(--entry-icon-violet) 24%, transparent) !important;
}

html[data-entry-mode="minimal"] #page-clinical .cr-home-card:nth-child(6n) .cr-home-card-icon {
    background: var(--entry-grad-rose) !important;
    color: var(--entry-icon-rose) !important;
    border-color: color-mix(in srgb, var(--entry-icon-rose) 24%, transparent) !important;
}

#page-operations .ops-home-entry-title,
#page-operations .ops-home-entry-title > div,
#page-operations .ops-home-entry-title h4,
#page-clinical .cr-home-card-top,
#page-clinical .cr-home-card-name,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry::after,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card::after,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card::after {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* V10.5.667: entry-page cards use a softer light surface instead of pure white. */
html[data-entry-mode="minimal"]:not([data-theme="dark"]) .home-flow-section,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-operations .ops-home-config,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-operations .ops-home-group,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-operations .ops-home-support,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-clinical .cr-home-category,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-clinical .cr-home-bottom-section,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-home-section {
    background: var(--entry-section-bg) !important;
    background-image: none !important;
}

html[data-entry-mode="minimal"]:not([data-theme="dark"]) .home-flow-card,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-operations .ops-home-entry,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-operations .ops-home-config .ops-home-entry,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-clinical .cr-home-card,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card {
    background: var(--entry-tile-bg) !important;
    background-image: none !important;
}

html[data-entry-mode="minimal"]:not([data-theme="dark"]) .home-flow-card:hover,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-operations .ops-home-entry:hover,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-clinical .cr-home-card:hover,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry:hover,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-card:hover,
html[data-entry-mode="minimal"]:not([data-theme="dark"]) #page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-card:hover {
    background: var(--entry-tile-bg-hover) !important;
    background-image: none !important;
}

/* V10.5.668: clinical research minimal mode uses a denser wide-screen overview. */
@media (min-width: 1180px) {
    html[data-entry-mode="minimal"] #page-clinical #crHomeCategories {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: start !important;
        padding: 0 16px 16px !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-hero {
        min-height: 84px !important;
        padding: calc(var(--app-topbar-height) + 12px) 28px 10px !important;
        margin: 0 0 8px !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-hero-text h1 {
        margin: 0 !important;
        font-size: 23px !important;
        line-height: 1.18 !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-category {
        margin: 0 !important;
        padding: 10px 12px 12px !important;
        border-radius: 10px !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-category-header {
        margin: 0 0 8px !important;
        padding: 0 0 6px !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-cat-name {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-card {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        min-height: 50px !important;
        padding: 8px 10px !important;
        gap: 9px !important;
        text-align: left !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-top {
        display: block !important;
        width: 34px !important;
        margin: 0 !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-icon {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-card-name {
        max-width: none !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

@media (min-width: 1600px) {
    html[data-entry-mode="minimal"] #page-clinical #crHomeCategories {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html[data-entry-mode="minimal"] #page-clinical .cr-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* V10.5.673: keep dark-mode entry icons clean without extra black backing blocks. */
html[data-theme="dark"][data-entry-mode="minimal"] .home-flow-icon,
html[data-theme="dark"][data-entry-mode="minimal"] #page-operations .ops-home-entry-icon,
html[data-theme="dark"][data-entry-mode="minimal"] #page-clinical .cr-home-card-icon,
html[data-theme="dark"][data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
html[data-theme="dark"][data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark,
html[data-theme="dark"][data-entry-mode="minimal"] #page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-mark {
    background: color-mix(in srgb, currentColor 16%, transparent) !important;
    background-image: none !important;
    border-color: color-mix(in srgb, currentColor 28%, transparent) !important;
    box-shadow: none !important;
}
