/* Clear, consistent inactive states in both themes, independent of the chosen accent. */
:root{--control-disabled-bg:#e8edf3;--control-disabled-text:#526375;--control-disabled-border:#b7c3d2}
:root[data-theme=dark]{--control-disabled-bg:#344357;--control-disabled-text:#c4d0df;--control-disabled-border:#61738b}
/* Shared unavailable controls keep a readable label; disabled semantics remain native. */
:root[data-theme] body :is(.workspace-content,.public-page,.auth-panel,.owner-console,.practice-page,dialog) :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea):disabled,
:root[data-theme] body :is(.workspace-content,.public-page,.auth-panel,.owner-console,.practice-page,dialog) :is(.primary-action,.secondary-action,[role=button])[aria-disabled=true]{opacity:1;color:var(--control-disabled-text);background:var(--control-disabled-bg);border-color:var(--control-disabled-border);box-shadow:none;cursor:not-allowed}
:root[data-theme] body :is(.workspace-content,.public-page,.auth-panel,.owner-console,.practice-page,dialog) button:disabled :is(span,small,strong,em){opacity:1;color:inherit}
/* Neighbouring days and empty calendar labels are secondary information, not faded content. */
:root[data-theme] .calendar-month__days button[data-outside]{opacity:1}
:root[data-theme] .calendar-month__days button[data-outside]:not([aria-selected=true]):not([aria-current=date]){color:var(--theme-text-secondary);background:var(--theme-surface-soft)}
:root[data-theme] .hr-calendar-free{opacity:1;color:var(--theme-text-secondary)}
:root[data-theme] .assignment-card--ended{opacity:1;border-style:dashed}

/* Administrator counters use the same theme surfaces as the rest of the cabinet. */
:root[data-theme] .admin-metric-grid article{background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text)}
:root[data-theme] .admin-metric-grid strong{color:var(--theme-text)}
:root[data-theme] .admin-metric-grid small{color:var(--theme-text-secondary)}

:root[data-theme] .admin-heading>span{background:var(--theme-surface-accent);color:var(--theme-accent)}

:root[data-theme] #reference-q::placeholder{color:var(--theme-text-secondary);opacity:1}

:root[data-theme] .company-context__soon{color:var(--theme-text-secondary)}
:root[data-theme=dark] .dialog-error{color:#ffb2bc}
