/* Contextware palette supplied by the owner. Other chosen themes stay intact. */
:root{
 --ctx-yellow:#ffcc33;--ctx-orange:#ff6600;--ctx-red:#cc0000;
 --ctx-aqua:#cff0e9;--ctx-sky:#0099ce;--ctx-purple:#af39bf;
 --ctx-blue:#0a68b0;--ctx-green:#73c846;--ctx-pink:#ff00a9;
}
:root:not([data-theme]),:root[data-theme="classic"]{
 --fw-background:#ffffff;--fw-surface:#ffffff;
 --fw-text:var(--color-gray-dark,#404040);--fw-muted:var(--color-gray,#5a5a5a);
 --fw-accent:var(--ctx-blue);--fw-accentText:#ffffff;--fw-border:var(--color-gray-lighter,#d9d9d9);
}
:root:is([data-theme="classic"],:not([data-theme])) :is(.nav-badge,.unread-count){background:var(--ctx-red);color:#fff}
:root:is([data-theme="classic"],:not([data-theme])) :is(.danger,.date-error,.share-error,.capture-error){color:var(--ctx-red)}
:root:is([data-theme="classic"],:not([data-theme])) :is(.queue-complete,.chip.done){background:var(--ctx-green);color:#17242e;border-color:var(--ctx-green)}
:root:is([data-theme="classic"],:not([data-theme])) :is(.chip.now,.dot.now){background:var(--ctx-orange);color:#17242e;border-color:var(--ctx-orange)}
:root:is([data-theme="classic"],:not([data-theme])) :is(.chip.today,.chip.tomorrow,.dot.today,.dot.tomorrow){background:var(--ctx-yellow);color:#17242e;border-color:var(--ctx-yellow)}
:root:is([data-theme="classic"],:not([data-theme])) :is(.chip.expired,.dot.expired){background:var(--ctx-red);color:#fff;border-color:var(--ctx-red)}
:root:is([data-theme="classic"],:not([data-theme])) .calendar-day.today{border-color:var(--ctx-pink);box-shadow:inset 0 0 0 2px var(--ctx-pink)}
:root:is([data-theme="classic"],:not([data-theme])) .calendar-day.selected{border-color:var(--ctx-blue);box-shadow:inset 0 0 0 2px var(--ctx-blue)}
:root:is([data-theme="classic"],:not([data-theme])) :focus-visible{outline-color:var(--color-gray,#5a5a5a)!important}
:root:is([data-theme="classic"],:not([data-theme])) #dayTabs:has([data-day-status])>.filter-ticket[aria-pressed="true"]{background:var(--ctx-orange)!important;color:#17242e!important}

/* Shared semantic colors also cover older components that supply inline defaults. */
:is([data-action-filter],[data-move]):is([data-action-filter="to_do"],[data-action-filter="next"],[data-action-filter="soon"],[data-move="to_do"]){--status-filter-color:var(--ctx-yellow)!important}
:is([data-action-filter="doing"],[data-move="doing"]){--status-filter-color:var(--ctx-orange)!important}
:is([data-action-filter="completed"],[data-move="completed"]){--status-filter-color:var(--ctx-green)!important}
:is([data-action-filter="whenever"],[data-move="whenever"]){--status-filter-color:var(--ctx-sky)!important}
:is([data-action-filter="needs_approval"],[data-action-filter="waiting_approval"],[data-move="needs_approval"],[data-move="waiting_approval"]){--status-filter-color:var(--ctx-purple)!important}
:is([data-action-filter="declined"],[data-action-filter="expired"],[data-move="declined"],[data-move="expired"]){--status-filter-color:var(--ctx-red)!important}
.today-food-plate[data-plate-tone="under"] .today-food-circle{fill:var(--ctx-green)!important}
.today-food-plate[data-plate-tone="near"] .today-food-circle{fill:var(--ctx-orange)!important}
.today-food-plate[data-plate-tone="over"] .today-food-circle{fill:var(--ctx-red)!important}
.today-food-plate[data-plate-tone="unknown"] .today-food-circle{fill:var(--color-gray-lightest,#f2f2f2)!important}
.queue-row[data-completed="true"] .row-more{--status-color:var(--ctx-green)!important}
.queue-row.expired:not([data-completed="true"]) .row-more{--status-color:var(--ctx-red)!important}
/* Now rows already distinguish Doing from Next with their own status color. */
.queue-row[data-in-progress="true"]:not(.now-row,.expired,[data-completed="true"]) .row-more{--status-color:var(--ctx-orange)!important}
.row-actions .complete-action{--status-color:var(--ctx-green)!important}

/* View matrix uses the shared neutral and brand roles. */
html.minimal-ui .minimal-header :is(.minimal-menu:not(.is-details-back),.view-matrix-toggle){background:transparent!important;color:var(--color-gray,#5a5a5a)!important}
html.minimal-ui .view-matrix{background:var(--fw-surface);color:var(--fw-text)}
html.minimal-ui .view-matrix .view-matrix-tile{background:transparent!important;color:var(--color-gray-dark,#404040)!important}
.view-matrix-circle{border-color:var(--color-gray,#5a5a5a);color:var(--color-gray,#5a5a5a);background:var(--fw-surface)}
.view-matrix-tile[aria-current="page"] .view-matrix-circle{border:0;background:transparent;color:var(--color-gray,#5a5a5a)}

/* Retro needs artwork uses the shared accent as its circular backplate. */
.needs-retro{display:grid;place-items:center;width:92%;aspect-ratio:1;border-radius:50%;background:var(--fw-accent);pointer-events:none}
#modalRoot .needs-retro .needs-artwork{width:60%;height:60%;image-rendering:pixelated}
html.vanilla .needs-retro{display:none}

/* FoodMeetsDrink selection and pairing states. */
.fmd [data-state="selected"] .fmd-disc{background:var(--ctx-red);color:#fff}
.fmd [data-state="pairing"] .fmd-disc{background:var(--ctx-yellow);color:var(--fw-text)}
.fmd-count{background:var(--fw-text);color:var(--fw-surface)}
