/* Canonical status palette from the approved graphite mockups.
   Layout, surfaces and the blue navigation accent live in style.css. */
:root{--status-working:#ffc52e;--status-review:#f28c28;--status-done:#21ad51;--status-incident:#f33942;--status-ink:#17191e;--status-surface:#303640;--status-label:#c0c7d1}
html[data-theme=light]{--status-surface:#fff;--status-label:#546276}
/* Navigation shows colored numbers, never a colored badge background. */
html .nav button>.nav-count{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--status-review)!important}
html .nav button[data-nav=work]>.nav-count{color:var(--status-working)!important}
html .nav button[data-nav=reports]>.nav-count{color:var(--status-review)!important}
html .nav button[data-nav=events]>.nav-count{color:var(--status-incident)!important}
/* Location counters, legends, result labels and review counters share the palette. */
html .cp-working,html .status-working,html .status-assigned,html .new-task-marker{background:var(--status-working)!important;color:var(--status-ink)!important}
html .cp-review,html .status-review,html .review-count,html .review-pill,html .cp-task-count{background:var(--status-review)!important;color:var(--status-ink)!important}
html .cp-done,html .status-complete{background:var(--status-done)!important;color:var(--status-ink)!important}
html .cp-incident,html .status-incident,html .status-incident-new,html .status-overdue,html .status-urgent{background:var(--status-incident)!important;color:white!important}
html[data-theme] .tone-working{color:var(--status-working)!important}html[data-theme] .tone-review{color:var(--status-review)!important}html[data-theme] .tone-done{color:var(--status-done)!important}html[data-theme] .tone-incident{color:var(--status-incident)!important}
/* Card names and captions stay neutral; only numbers and compact status pills signal state. */
html[data-theme] [data-status-tone]>h1,html[data-theme] [data-status-tone]>.row h3,html[data-theme] [data-status-tone] .review-result>h2,html[data-theme] [data-status-tone] .review-code>summary,
html[data-theme] .object-status-item>span,html[data-theme] .cp-status-tab>span,html[data-theme] .chief-object-metrics button>span,
html[data-theme] .hub-object .hub-object-head b,html[data-theme] .hub-object .hub-object-head small,html[data-theme] .hub-object .hub-object-reason,
html[data-theme] .chief-object .chief-object-title b,html[data-theme] .chief-object .chief-object-title small,
html[data-theme] .cp-tile .cp-label{color:var(--status-label)!important}
/* Action colors follow their meaning; ordinary primary actions remain blue. */
html .nav .create .round,html .control-circle,html .control-types [data-control-type=incident][aria-pressed=true],html .incident-alert,html .incident-alert button{background:var(--status-incident)!important;color:white!important}
html .incident-action-grid .incident-close{background:var(--status-done)!important;border-color:var(--status-done)!important;color:var(--status-ink)!important}
html button.incident-report-up{background:var(--status-working)!important;border-color:var(--status-working)!important;color:var(--status-ink)!important}
html button.incident-report-up:is([data-report-state=reported],[data-report-state=pending]){opacity:1}
html .chips [data-filter=done].active{background:var(--status-done)!important;color:var(--status-ink)!important}
html .task-overdue{border-left-color:var(--status-incident);background:var(--status-surface)}html .task-returned:not(.task-overdue){border-left-color:var(--status-working);background:var(--status-surface)}html .task-returned .eyebrow{color:var(--status-working)}
html .linked-incident{background:var(--status-surface);color:var(--status-incident);border-color:var(--status-incident)}
/* Object summaries and their numeric drilldowns. */
html .hub-object[data-tone=urgent]:after{background:var(--status-incident)}html .hub-object[data-tone=attention]:after{background:var(--status-review)}html .hub-object[data-tone=normal]:after{background:var(--status-done)}
html .chief-object-metrics [data-chief-late] b{color:var(--status-incident)!important}
html .chief-tone-critical{border-top-color:var(--status-incident)}html .chief-tone-critical i{background:var(--status-incident)}html .chief-object-metrics [data-chief-approvals] b{color:var(--status-review)!important}
html .work-tabs .review-count,html .hub-tabs [data-hub-tab=assignments] .hub-tab-count,html [data-chief-tab=approvals] .chief-count{color:var(--status-review)!important}
html .work-tabs .review-count{background:transparent!important}
html .cp-nav-orange{color:var(--status-review)!important}
html .urgent-check input,html .assignment-urgent input{accent-color:var(--status-incident)}
html .red{color:var(--status-incident)!important}html .amber{color:var(--status-working)!important}html .green{color:var(--status-done)!important}
html .hub-tabs [data-hub-tab=tasks] .hub-tab-count{color:var(--status-working)}html .hub-tabs [data-hub-tab=assignments] .hub-tab-count{color:var(--status-review)}
html .work-tabs [data-work-tab=mine] .count-badge{background:transparent!important;color:var(--status-working)!important}
html .hub-tabs [data-hub-tab=ai] .hub-tab-count{color:var(--status-review)}
html .online-warning.sync-state.state-sent{color:var(--status-done)!important}html .online-warning.sync-state.state-sending,html .online-warning.sync-state.state-waiting{color:var(--status-working)!important}html .online-warning.sync-state.state-error{color:var(--status-incident)!important}

/* Reports use the same visible numeric marker as incidents, with review orange. */
html .nav button:is([data-nav=reports],[data-nav=events])>.nav-count{left:32px;right:auto;top:3px;font-size:13px;font-weight:700;padding:0;min-width:14px;height:18px;line-height:19px!important}
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){html .nav button:is([data-nav=reports],[data-nav=events])>.nav-count{left:calc(50% + 10px);right:auto;top:2px}}
