/* Readable text across DAN's light workspaces and navy headings. */
body.workspace-page .page-head,
body.workspace-page .admin-heading,
body.workspace-page .case-heading{color:#fff}
body.workspace-page .page-head h1,
body.workspace-page .page-head p,
body.workspace-page .page-head p.muted,
body.workspace-page .admin-heading h1,
body.workspace-page .admin-heading p,
body.workspace-page .admin-heading p:not(.eyebrow),
body.workspace-page .case-heading h1,
body.workspace-page .case-heading p{color:#f4f8ff!important;opacity:1}
body.workspace-page .page-head .eyebrow,
body.workspace-page .admin-heading .eyebrow,
body.workspace-page .case-eyebrow{color:#ffe17a!important}
body.workspace-page .page-head>a[href],
body.workspace-page .admin-heading>a[href],
body.workspace-page .admin-heading a.admin-primary{background:#fff!important;color:#123b66!important;border:1px solid #fff!important;opacity:1}
body.workspace-page .page-head>a[href]:hover,
body.workspace-page .admin-heading>a[href]:hover{background:#edf6ff!important;color:#0e355c!important}
body.workspace-page main .muted,
body.workspace-page main .hint,
body.workspace-page main .empty-state,
body.workspace-page main .micro-empty,
body.workspace-page main .admin-card-head p{color:#425e79;opacity:1}
body.workspace-page main label,
body.workspace-page main .admin-code-form label{color:#203c58!important;opacity:1}
body.workspace-page input::placeholder,
body.workspace-page textarea::placeholder{color:#58718a;opacity:1}
body.workspace-page main small,
body.workspace-page main .timeline-list small,
body.workspace-page main .details-grid span,
body.workspace-page main .document-list small,
body.workspace-page main .audit-list small{font-size:13px;color:#4a647d!important;opacity:1}
body.workspace-page .page-head small,
body.workspace-page .admin-heading small,
body.workspace-page .case-heading small,
body.workspace-page .admin-welcome small,
body.workspace-page .admin-welcome p,
body.workspace-page .admin-welcome .muted,
body.workspace-page .banner span{color:#f4f8ff!important}
body.workspace-page .workspace-sidebar small{color:#bdd2e5}

/* Public entrance and account creation text remain visible on light cards. */
.entry .intro,.entry .hint,.entry .radio small,.entry .org-chip small,
.signup-shell .intro,.signup-shell .hint,.signup-shell .org-chip small{color:#415c72;opacity:1}
.entry .intro,.signup-shell .intro{font-size:14px}
.entry .hint,.entry .radio small,.signup-shell .hint,.signup-shell .org-chip small{font-size:13px}
.entry .hero .partner-route p{color:#f4f8ff}
.entry .hero .partner-route-label{color:#ffe17a}
.entry .hero .partner-route a{color:#102d4a}
.entry .portal-footer,.entry .portal-footer a{color:#284b66}
.entry .portal-footer .design-credit{color:#1a526f}
.entry .portal-footer .design-credit strong{color:#0b3d68}

/* Owner governance uses its own shell. */
.app .page-head p{color:#f2f7fc;opacity:1}
.app .panel .muted,.app .panel small,.app .page-footer{color:#405b73;opacity:1}
.app .page-footer a{color:#15578c;font-weight:800}

/* Shared action colors for every account and every case surface, including
   case-main links outside simple-content. Keep existing sizes and placement. */
body.workspace-page main :is(button,input[type="submit"],input[type="button"],a.primary,a.admin-primary,a.button,a.case-button,a.document-overview-action,a.vault-download,a.finance-button,.patient-finance-actions a,.hospital-role-guide a,.consent-banner a),
body.entry :is(button.primary,a.primary),
body.team-access-page :is(button.primary,a.primary){background:#1554a0!important;border-color:#1554a0!important;color:#fff!important;opacity:1!important;text-shadow:none}
body.workspace-page main :is(button,input[type="submit"],input[type="button"],a.primary,a.admin-primary,a.button,a.case-button,a.document-overview-action,a.vault-download,a.finance-button,.patient-finance-actions a,.hospital-role-guide a,.consent-banner a):is(:hover,:focus-visible,:active),
body.entry :is(button.primary,a.primary):is(:hover,:focus-visible,:active),
body.team-access-page :is(button.primary,a.primary):is(:hover,:focus-visible,:active){background:#103e79!important;border-color:#103e79!important;color:#fff!important;opacity:1!important}
body.workspace-page main :is(button,a.primary,a.admin-primary,a.button,a.case-button,a.document-overview-action,a.vault-download,a.finance-button,.patient-finance-actions a,.hospital-role-guide a,.consent-banner a) :is(span,small,strong,b){color:inherit!important;opacity:1!important}
body.workspace-page main :is(button.danger,button.danger-button,a.danger-button,.danger button,.case-photo-remove button,.case-file-delete button){background:#a82035!important;border-color:#a82035!important;color:#fff!important}
body.workspace-page main :is(button.danger,button.danger-button,a.danger-button,.danger button,.case-photo-remove button,.case-file-delete button):is(:hover,:focus-visible,:active){background:#801a29!important;border-color:#801a29!important;color:#fff!important}
body.workspace-page main :is(button,input[type="submit"],input[type="button"]):disabled{background:#e1eaf3!important;border-color:#8babc6!important;color:#294864!important;opacity:1!important;cursor:not-allowed}
/* Navy headings retain their original light buttons with dark blue text. */
body.workspace-page main :is(.case-heading,.page-head,.admin-heading,.heading) :is(a.primary,a.admin-primary,a.button,a.case-button,button){background:#fff!important;border-color:#fff!important;color:#123b66!important}
body.workspace-page main :is(.case-heading,.page-head,.admin-heading,.heading) :is(a.primary,a.admin-primary,a.button,a.case-button,button):is(:hover,:focus-visible,:active){background:#e6f1fc!important;border-color:#e6f1fc!important;color:#10335e!important}
body.workspace-page main :is(button,a.primary,a.admin-primary,a.button,a.case-button):focus-visible{outline:3px solid #f7d116;outline-offset:3px}

/* Congo identity: blue atmosphere, restrained flag accents and soft card
   surfaces across roles. No grid, spacing, typography or navigation changes. */
body.workspace-page{background-color:#e9f3fc!important;background-image:linear-gradient(145deg,#e8f3fc 0%,#edf4fb 67%,#fff8e6 83%,#fceef0 100%)!important;background-attachment:fixed}
body.workspace-page :is(main.simple-content,main.case-main,.shell,.content){background-color:transparent!important;background-image:none!important}
body.workspace-page :is(.member-card,.form-card,.list-card,.detail-card,.panel,.admin-card,.case-panel,.signup-card){background-color:#f7fbff!important;background-image:linear-gradient(90deg,#00a3e0 0 68%,#f7d116 68% 75%,#ce1126 75% 93%,#f7d116 93%),linear-gradient(135deg,#fbfdff,#edf5fd)!important;background-size:100% 3px,100% 100%!important;background-position:top left!important;background-repeat:no-repeat!important}
body.workspace-page :is(.simple-top,.topbar,.admin-toolbar){background-color:#fff}
body.workspace-page main :is(.case-info>div,.details-grid>div){background-color:#eaf3fc}
body.team-access-page{background-color:#e9f3fc;background-image:linear-gradient(145deg,#e8f3fc,#edf4fb 67%,#fff8e6 83%,#fceef0)}
body.team-access-page .member-card{background-color:#f7fbff;background-image:linear-gradient(90deg,#00a3e0 0 68%,#f7d116 68% 75%,#ce1126 75% 93%,#f7d116 93%),linear-gradient(135deg,#fbfdff,#edf5fd);background-size:100% 3px,100% 100%;background-repeat:no-repeat}
body.workspace-page .workspace-more>summary .chat-menu-count{margin-left:8px;vertical-align:middle}
@media print{body.workspace-page,body.workspace-page main,body.workspace-page :is(.member-card,.panel,.case-panel){background:#fff!important}}

/* The Presidency publishes a white lettered seal; a navy backing makes the actual mark visible. */
img[src*="/brand-logos/presidence.png"]{background-color:#103b70!important}

/* Shared metric cards use the same blue, gold and red accents as Super Admin.
   Keep every existing grid and card size; only surfaces and text colors change. */
@media screen{
 body.workspace-page :is(.admin-kpis,.stats,.analytics-kpis,.analytics-money-grid,.patient-finance-insights,.patient-finance-summary,.case-finance-summary)>article{
  background:#fff!important;background-image:none!important;color:#203a55!important;
  border:1px solid #dce4ed;border-top:3px solid #1554a0;border-radius:13px;box-shadow:0 2px 8px #10294408;
 }
 body.workspace-page :is(.admin-kpis,.stats,.analytics-kpis,.analytics-money-grid,.patient-finance-insights,.patient-finance-summary,.case-finance-summary)>article:nth-child(4n+2){border-top-color:#dbad34}
 body.workspace-page :is(.admin-kpis,.stats,.analytics-kpis,.analytics-money-grid,.patient-finance-insights,.patient-finance-summary,.case-finance-summary)>article:nth-child(4n+3){border-top-color:#b82f46}
 body.workspace-page :is(.admin-kpis,.stats,.analytics-kpis,.analytics-money-grid,.patient-finance-insights,.patient-finance-summary,.case-finance-summary)>article :is(span,small,p,div){color:#425e79!important;opacity:1}
 body.workspace-page :is(.admin-kpis,.stats,.analytics-kpis,.analytics-money-grid,.patient-finance-insights,.patient-finance-summary,.case-finance-summary)>article :is(b,strong){color:#0b2342!important;opacity:1}
 body.workspace-page :is(.patient-finance-summary,.case-finance-summary)>article div{border-color:#dce4ed}
 body.workspace-page :is(.admin-kpis,.stats,.analytics-kpis,.analytics-money-grid,.patient-finance-insights,.patient-finance-summary,.case-finance-summary) .finance-usd-equivalent{color:#425e79!important}
 body.workspace-page .admin-kpis>.kpi-warning{background:#fffaf0!important}
 body.workspace-page .role-actions a{background:#fff!important;color:#183d65!important}
 body.workspace-page .role-actions :is(b,strong){color:#183d65!important}
 body.workspace-page .role-actions small{color:#425e79!important}
}

/* Set complete color pairs for stateful controls as well as primary actions. */
body.workspace-page main a.case-validated[href]{background:#167345!important;border-color:#167345!important;color:#fff!important}
body.workspace-page main a.case-validated[href]:is(:hover,:focus-visible,:active){background:#105934!important;border-color:#105934!important;color:#fff!important}
body.workspace-page main :is(a.secondary-button,button.secondary-button,button[data-dan-guide-motion],button[data-dan-instructions-toggle]){background:#edf5ff!important;border-color:#9ab9d8!important;color:#143d70!important;opacity:1!important}
body.workspace-page main :is(a.secondary-button,button.secondary-button,button[data-dan-guide-motion],button[data-dan-instructions-toggle]):is(:hover,:focus-visible,:active){background:#dceafa!important;color:#10335e!important;border-color:#7b9ebf!important}
body.workspace-page main :is(button,input[type="submit"],input[type="button"]):disabled{background:#e1eaf3!important;border-color:#8babc6!important;color:#294864!important;opacity:1!important;cursor:not-allowed}
body.workspace-page main :is(button,a.document-overview-action,a.vault-download,a.finance-button,a.case-validated,a.secondary-button):focus-visible{outline:3px solid #bd8100;outline-offset:3px}
body.workspace-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select,textarea){background-color:#fff;color:#173752;opacity:1}
body.workspace-page input::file-selector-button{background:#edf5ff;color:#143d70;border:1px solid #9ab9d8;border-radius:6px}
body.workspace-page .dan-page-instructions{color:#425e79;font-size:16px;margin:0 0 18px}
body.workspace-page .dan-page-instructions p{margin:0 0 7px;line-height:1.55}
body.workspace-page .dan-page-instructions button[data-dan-instructions-toggle]{display:inline-flex;align-items:center;padding:4px 9px;min-height:30px;border:1px solid #9ab9d8;border-radius:7px;font:700 13px/1.3 system-ui;cursor:pointer}
body.workspace-page .dan-page-instructions [hidden]{display:none!important}
/* A linked patient card is a full card, not an inline text button. */
body.workspace-page main a.member-card[href]{display:block;min-width:0;padding:18px;text-align:left;color:#173e64;border:1px solid #dce4ed;border-radius:14px;text-decoration:none}
body.workspace-page main a.member-card[href]:is(:hover,:focus-visible){color:#10335e;border-color:#4380c2;box-shadow:0 3px 14px #173e681a}
body.workspace-page main a.member-card[href] :is(h2,h3,b,strong){color:#10366b}
body.workspace-page main a.member-card[href] p{color:#425e79}
body.workspace-page :is(.admin-breadcrumb,.admin-footer,main>footer){color:#425e79!important}
body.workspace-page main .profile-links a[href]{color:#164b86!important}
body.login .login-card :is(.small.muted,.eyebrow){color:#425e79!important}
body.login .login-card .brand span{color:#164b86!important}
/* Public registration uses the same readable dark-blue/light-text palette. */
.entry .hero{background-image:linear-gradient(145deg,#0b3559,#0f4076 67%,#1554a0)}
.entry .hero .brand small,.entry .hero .hero-foot,.entry .hero .trust,.entry .hero .hero-copy>p:not(.eyebrow){color:#edf5ff}
.entry .top-links>span,.entry .progress span,.signup-shell .progress span,.signup-shell .signup-progress span{color:#425e79}
.signup-shell .brand small{color:#425e79!important}
@media print{
 .dan-page-instructions button[data-dan-instructions-toggle]{display:none!important}
 body.workspace-page :is(.heading,.page-head,.admin-heading,.case-heading,.admin-welcome){background:#fff!important;color:#10366b!important}
 body.workspace-page :is(.heading,.page-head,.admin-heading,.case-heading,.admin-welcome) :is(h1,p,span,small){color:#10366b!important}
}
