/**
 * Dark theme for Mauris Tracker (admin + Tasks).
 * Activated via html[data-theme="dark"] (session /theme/{theme}).
 * Must load AFTER mauris-tasks.css / page head stacks so hardcoded lights lose.
 *
 * Palette tuned for long-session comfort (Material Design 3 roles + Apple HIG dark):
 * - surface / surface-container elevation (not pure #000)
 * - on-surface ~87% soft white; on-surface-variant for labels (WCAG AA)
 * - outline for fields (~3:1); outline-variant for card edges
 * - desaturated primary/link (avoid neon cyan eye strain)
 */
html[data-theme="dark"] {
    color-scheme: dark;

    --page-bg: #0e1520;
    --page-text: #e6edf5;
    --surface: #1e293b;
    --surface-border: #3f4d61;
    --field-border: #5c6b82;
    --label-color: #a9b6c7;
    --btn-sec-bg: #3a4659;
    --btn-sec-text: #e6edf5;
    --table-head-bg: #182232;
    --flash-bg: #14532d;
    --flash-border: #166534;
    --flash-text: #bbf7d0;
    --error-bg: #7f1d1d;
    --error-border: #991b1b;
    --error-text: #fecaca;

    /* Calm primary (on-primary = near-black ink, not white-on-neon) */
    --accent: #5b9ec9;
    --on-accent: #0b1220;

    --link: #8ec4e0;
    --link-hover: #b9dcf0;
    --link-soft: #1a3a52;

    --yt-bg: #0e1520;
    --yt-surface: #1e293b;
    --yt-border: #3f4d61;
    --yt-text: #e6edf5;
    --yt-muted: #a9b6c7;
    --yt-link: #8ec4e0;
    --yt-link-hover: #b9dcf0;
    --yt-link-soft: #1a3a52;
    --yt-toolbar: #121a28;
    --yt-toolbar-text: #c5d0dc;
    --yt-accent: #5b9ec9;

    /* Estimate vs Actual — not two light blues; not success/error */
    --an-estimate: #5b9ec9;
    --an-actual: #d4b896;
}

html[data-theme="dark"] body {
    background: var(--page-bg);
    color: var(--page-text);
}

/*
 * Unified dark-theme links.
 * Kill browser :visited purple and light-theme blues (#1d4ed8 / #0052cc / #121a28).
 * One accent: --link / --yt-link (#8ec4e0), hover --link-hover (#b9dcf0).
 */
html[data-theme="dark"] a:link,
html[data-theme="dark"] a:visited,
html[data-theme="dark"] a:any-link {
    color: var(--link);
}
html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus-visible {
    color: var(--link-hover);
}

/* Chrome / shell: keep light text, not sky-blue */
html[data-theme="dark"] .tasks-header a:link,
html[data-theme="dark"] .tasks-header a:visited,
html[data-theme="dark"] .tasks-header a:any-link,
html[data-theme="dark"] .tasks-nav > a:link,
html[data-theme="dark"] .tasks-nav > a:visited,
html[data-theme="dark"] .admin-topbar a:link,
html[data-theme="dark"] .admin-topbar a:visited,
html[data-theme="dark"] .nav a:link,
html[data-theme="dark"] .nav a:visited,
html[data-theme="dark"] .brand:link,
html[data-theme="dark"] .brand:visited,
html[data-theme="dark"] .lang a:link,
html[data-theme="dark"] .lang a:visited,
html[data-theme="dark"] .theme a:link,
html[data-theme="dark"] .theme a:visited,
html[data-theme="dark"] .yt-toolbar a:link,
html[data-theme="dark"] .yt-toolbar a:visited {
    color: inherit;
}
html[data-theme="dark"] .tasks-nav > a:hover,
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .brand:hover {
    color: var(--page-text);
}

/* Primary filled buttons — dark ink on calm accent (M3 on-primary).
 * Never paint Delete / danger actions blue (they keep a red border from light CSS). */
html[data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.danger):not(.yt-btn-danger),
html[data-theme="dark"] .yt-btn:not(.secondary):not(.danger):not(.yt-btn-danger),
html[data-theme="dark"] .pp-btn:not(.pp-btn-ghost),
html[data-theme="dark"] button.btn:not(.secondary):not(.ghost):not(.danger):not(.yt-btn-danger),
html[data-theme="dark"] .mauris-home .btn:not(.secondary):not(.ghost):not(.danger):not(.yt-btn-danger) {
    background: var(--accent) !important;
    color: var(--on-accent) !important;
}
html[data-theme="dark"] a.yt-btn:not(.secondary):not(.danger):not(.yt-btn-danger):link,
html[data-theme="dark"] a.yt-btn:not(.secondary):not(.danger):not(.yt-btn-danger):visited,
html[data-theme="dark"] a.btn:not(.secondary):not(.ghost):not(.danger):not(.yt-btn-danger):link,
html[data-theme="dark"] a.btn:not(.secondary):not(.ghost):not(.danger):not(.yt-btn-danger):visited,
html[data-theme="dark"] a.pp-btn:not(.pp-btn-ghost):link,
html[data-theme="dark"] a.pp-btn:not(.pp-btn-ghost):visited {
    color: var(--on-accent) !important;
}
/* Delete / destructive — solid red, not accent blue */
html[data-theme="dark"] .btn.danger,
html[data-theme="dark"] .btn.yt-btn-danger,
html[data-theme="dark"] .yt-btn.danger,
html[data-theme="dark"] .yt-btn.yt-btn-danger,
html[data-theme="dark"] .yt-btn-danger,
html[data-theme="dark"] button.yt-btn-danger,
html[data-theme="dark"] button.btn.danger {
    background: #991b1b !important;
    color: #fecaca !important;
    border: 1px solid #dc2626 !important;
}
html[data-theme="dark"] .btn.danger:hover,
html[data-theme="dark"] .yt-btn.yt-btn-danger:hover,
html[data-theme="dark"] .yt-btn-danger:hover,
html[data-theme="dark"] button.yt-btn-danger:hover,
html[data-theme="dark"] button.btn.danger:hover {
    background: #b91c1c !important;
    color: #fff1f2 !important;
    border-color: #ef4444 !important;
}
html[data-theme="dark"] a.btn.danger:link,
html[data-theme="dark"] a.btn.danger:visited,
html[data-theme="dark"] a.yt-btn-danger:link,
html[data-theme="dark"] a.yt-btn-danger:visited {
    color: #fecaca !important;
}
html[data-theme="dark"] a.yt-btn.secondary:link,
html[data-theme="dark"] a.yt-btn.secondary:visited,
html[data-theme="dark"] a.btn.secondary:link,
html[data-theme="dark"] a.btn.secondary:visited,
html[data-theme="dark"] a.pp-btn-ghost:link,
html[data-theme="dark"] a.pp-btn-ghost:visited {
    color: var(--page-text);
}

/* Person name / avatar links keep surrounding text color */
html[data-theme="dark"] a.dash-person-link:link,
html[data-theme="dark"] a.dash-person-link:visited,
html[data-theme="dark"] a.yt-person-avatar-link:link,
html[data-theme="dark"] a.yt-person-avatar-link:visited,
html[data-theme="dark"] a.yt-person-name-link:link,
html[data-theme="dark"] a.yt-person-name-link:visited {
    color: inherit;
}

html[data-theme="dark"] .yt-presence-blue {
    background: #60a5fa;
    border-color: rgba(255, 255, 255, .22);
}
html[data-theme="dark"] .yt-comment-cursor-icon.avatar,
html[data-theme="dark"] .yt-comment-cursor-icon {
    background: var(--yt-link-soft);
    color: var(--yt-link);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}
html[data-theme="dark"] .yt-comment-cursor-via {
    color: var(--yt-muted);
}
html[data-theme="dark"] .yt-worklog-who .yt-person-name,
html[data-theme="dark"] .yt-worklog-hours {
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-worklog-date {
    color: var(--yt-muted);
}
/* Brief #92: 1px activity dividers must stay visible on the comment/worklog
   surface. #222c3d (list-row token) blends into --yt-surface (#1e293b) and
   looked like separators were removed. Use the theme outline token. */
html[data-theme="dark"] .yt-comment,
html[data-theme="dark"] .yt-worklog {
    border-top: 1px solid var(--yt-border);
}
html[data-theme="dark"] .yt-comment:first-of-type,
html[data-theme="dark"] .yt-worklog:first-of-type {
    border-top: none;
}

/* Hardcoded light-theme link blues → unified accent */
html[data-theme="dark"] .dash-focus-task,
html[data-theme="dark"] .dash-focus-task:link,
html[data-theme="dark"] .dash-focus-task:visited,
html[data-theme="dark"] a.dash-focus-project-name,
html[data-theme="dark"] a.dash-focus-project-name:link,
html[data-theme="dark"] a.dash-focus-project-name:visited,
html[data-theme="dark"] .yt-link-action,
html[data-theme="dark"] .yt-link-id,
html[data-theme="dark"] .yt-mention,
html[data-theme="dark"] .home-news-link,
html[data-theme="dark"] .home-news-link:link,
html[data-theme="dark"] .home-news-link:visited,
html[data-theme="dark"] .home-birthdays-link,
html[data-theme="dark"] .home-birthdays-link:link,
html[data-theme="dark"] .home-birthdays-link:visited,
html[data-theme="dark"] .day-card-id,
html[data-theme="dark"] .day-card-id a,
html[data-theme="dark"] .day-card-id a:link,
html[data-theme="dark"] .day-card-id a:visited,
html[data-theme="dark"] .news-comments-link,
html[data-theme="dark"] .news-comments-link:link,
html[data-theme="dark"] .news-comments-link:visited {
    color: var(--link) !important;
}
html[data-theme="dark"] .dash-focus-task:hover,
html[data-theme="dark"] a.dash-focus-project-name:hover,
html[data-theme="dark"] .home-news-link:hover,
html[data-theme="dark"] .home-birthdays-link:hover,
html[data-theme="dark"] .day-card-id a:hover,
html[data-theme="dark"] .news-comments-link:hover {
    color: var(--link-hover) !important;
}

html[data-theme="dark"] .btn.ghost {
    background: transparent;
    color: var(--page-text);
    border: 1px solid var(--field-border);
}

html[data-theme="dark"] .lang a.active,
html[data-theme="dark"] .theme a.active,
html[data-theme="dark"] .tasks-header .theme a.active {
    background: var(--accent);
    color: var(--on-accent);
}

/* —— Admin / shared —— */
html[data-theme="dark"] .pagination .page-link {
    background: var(--surface);
    border-color: var(--surface-border);
    color: var(--link);
}
html[data-theme="dark"] .pagination .page-link:hover:not(.disabled):not(.current) {
    background: #2a3548;
}
html[data-theme="dark"] .pagination .page-link.current {
    background: var(--link-soft);
    border-color: #2d6a8f;
    color: var(--link);
}
html[data-theme="dark"] .pagination .page-link.disabled {
    color: #64748b;
    background: #182232;
}

html[data-theme="dark"] th {
    background: var(--table-head-bg);
}

html[data-theme="dark"] .stat,
html[data-theme="dark"] .login-wrap .card,
html[data-theme="dark"] .login-card.card,
html[data-theme="dark"] .card {
    background: var(--surface);
    border-color: var(--surface-border);
    color: var(--page-text);
}

html[data-theme="dark"] .login-page {
    background:
        radial-gradient(900px 520px at 18% 12%, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(720px 480px at 88% 78%, rgba(69, 111, 147, 0.16), transparent 55%),
        linear-gradient(165deg, #0b1220 0%, #111a2a 48%, #0f172a 100%);
}
html[data-theme="dark"] .login-page::before {
    background: rgba(56, 189, 248, 0.14);
    opacity: 0.45;
}
html[data-theme="dark"] .login-page::after {
    background: rgba(51, 65, 85, 0.35);
    opacity: 0.5;
}
html[data-theme="dark"] .login-chrome {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .login-chrome .lang a,
html[data-theme="dark"] .login-chrome .theme a {
    color: #94a3b8;
}
html[data-theme="dark"] .login-chrome .lang a:hover,
html[data-theme="dark"] .login-chrome .theme a:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.15);
}
html[data-theme="dark"] .login-card.card {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(51, 65, 85, 0.95);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .admin-topbar {
    background: #121a28;
}

html[data-theme="dark"] .content main,
html[data-theme="dark"] main.page-main {
    background: transparent;
}

html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: var(--surface);
    color: var(--page-text);
    border-color: var(--field-border);
}

html[data-theme="dark"] table {
    color: var(--page-text);
}
/* Shared list/table row dividers — override hardcoded #eceef1 from mauris-tasks.css.
 * People / Projects / Tasks list views only (not Kanban cards). */
html[data-theme="dark"] .yt-table-wrap th,
html[data-theme="dark"] .yt-table-wrap td {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #222c3d;
}
html[data-theme="dark"] tr:hover td {
    background: #182232 !important;
}
html[data-theme="dark"] tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

/* —— Tasks shell —— */
html[data-theme="dark"] .tasks-header {
    background: #121a28;
    border-bottom-color: #222c3d;
}
html[data-theme="dark"] .yt-board-switcher-panel {
    background: #1a2333;
    border-color: #2a3648;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
html[data-theme="dark"] .yt-board-switcher-search {
    background: #121a28;
    color: #e2e8f0;
    border-color: #2a3648;
}
html[data-theme="dark"] .yt-board-switcher-group {
    color: #94a3b8;
}
html[data-theme="dark"] .yt-board-switcher-item {
    color: #e2e8f0;
}
html[data-theme="dark"] .yt-board-switcher-item:hover {
    background: #243044;
    color: #f8fafc;
}
html[data-theme="dark"] .yt-board-switcher-item.is-current {
    background: #2a3a52;
    color: #f8fafc;
}
html[data-theme="dark"] .yt-board-switcher-media-project {
    background: #121a28;
    border-color: #2a3648;
}
html[data-theme="dark"] .yt-board-switcher-icon {
    background: transparent;
    border-color: transparent;
}
html[data-theme="dark"] .yt-board-switcher-icon-fallback {
    color: #cbd5e1;
}
html[data-theme="dark"] .yt-board-switcher-empty {
    color: #94a3b8;
}

html[data-theme="dark"] .tasks-footer {
    color: var(--yt-muted);
    border-top-color: var(--yt-border);
}

/* Surfaces that hardcode #fff in mauris-tasks.css */
html[data-theme="dark"] .yt-issue-header,
html[data-theme="dark"] .yt-editor,
html[data-theme="dark"] .yt-editor-select,
html[data-theme="dark"] .yt-editor-mode,
html[data-theme="dark"] .yt-editor-input,
html[data-theme="dark"] .yt-editor-visual,
html[data-theme="dark"] .yt-mention-menu,
html[data-theme="dark"] .yt-modal-dialog,
html[data-theme="dark"] .yt-board-modal-dialog,
html[data-theme="dark"] .yt-modal-field select,
html[data-theme="dark"] .yt-modal-field input,
html[data-theme="dark"] .yt-link-result,
html[data-theme="dark"] .yt-view-toggle,
html[data-theme="dark"] .yt-page-icon-actions,
html[data-theme="dark"] .yt-list-icon-actions,
html[data-theme="dark"] .yt-agile-toolbar,
html[data-theme="dark"] .yt-btn.secondary,
html[data-theme="dark"] .yt-filters select,
html[data-theme="dark"] .yt-filters input,
html[data-theme="dark"] .yt-form textarea,
html[data-theme="dark"] .yt-form input[type=text],
html[data-theme="dark"] .yt-form input[type=number],
html[data-theme="dark"] .yt-form input[type=date],
html[data-theme="dark"] .yt-attachment-thumb,
html[data-theme="dark"] .yt-notify-panel,
html[data-theme="dark"] .yt-combo-panel,
html[data-theme="dark"] .yt-combo-option,
html[data-theme="dark"] .yt-summary-input,
html[data-theme="dark"] .yt-props dd > select,
html[data-theme="dark"] .yt-props dd > input,
html[data-theme="dark"] .yt-props .yt-combo input,
html[data-theme="dark"] .yt-docs-picker,
html[data-theme="dark"] .yt-iteration-card,
html[data-theme="dark"] .yt-iteration-section,
html[data-theme="dark"] .yt-iteration-delete-inline .yt-iteration-delete-confirm,
html[data-theme="dark"] .hub-card,
html[data-theme="dark"] .an-hub-card,
html[data-theme="dark"] .an-kpi,
html[data-theme="dark"] .an-filters .sh-multi {
    background: var(--yt-surface) !important;
    color: var(--yt-text);
    border-color: var(--yt-border);
}

html[data-theme="dark"] .yt-sidebar,
html[data-theme="dark"] .yt-markdown thead th,
html[data-theme="dark"] .yt-markdown th,
html[data-theme="dark"] .yt-attachment-file,
html[data-theme="dark"] .yt-editor-toolbar,
html[data-theme="dark"] .yt-editor-actions,
html[data-theme="dark"] .yt-summary-card-muted,
html[data-theme="dark"] .yt-combo-toggle,
html[data-theme="dark"] th {
    background: #182232 !important;
    color: var(--yt-text);
    border-color: var(--yt-border);
}

html[data-theme="dark"] .yt-editor-preview {
    background: #141c2a !important;
    color: var(--yt-text);
}

html[data-theme="dark"] .yt-markdown pre,
html[data-theme="dark"] .yt-editor-visual pre,
html[data-theme="dark"] .yt-editor-preview pre,
html[data-theme="dark"] .yt-markdown code {
    background: #121a28 !important;
    color: #e6edf5 !important;
    border-color: var(--yt-border);
}

html[data-theme="dark"] .yt-markdown img,
html[data-theme="dark"] .yt-lightbox-img {
    background: #121a28 !important;
    border-color: var(--yt-border);
}

html[data-theme="dark"] .yt-props > div {
    border-bottom-color: var(--yt-border);
}

html[data-theme="dark"] .yt-mention-item {
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-mention-item:hover,
html[data-theme="dark"] .yt-mention-item.is-active {
    background: #2a3548;
}
html[data-theme="dark"] .yt-mention-empty {
    color: var(--yt-muted);
}
html[data-theme="dark"] .yt-mention-avatar-fallback,
html[data-theme="dark"] .avatar-fallback,
html[data-theme="dark"] .yt-notify-avatar-fallback,
html[data-theme="dark"] .yt-editor-avatar {
    background: #3a4659 !important;
    color: #e6edf5 !important;
}

html[data-theme="dark"] .yt-flash {
    background: var(--flash-bg);
    border-color: var(--flash-border);
    color: var(--flash-text);
}

html[data-theme="dark"] .yt-notify-bell {
    color: #c5d0dc;
}
html[data-theme="dark"] .yt-notify-bell:hover {
    background: #2a3548;
    color: #eef2f7;
}
html[data-theme="dark"] .yt-notify-panel-head strong,
html[data-theme="dark"] .yt-notify-item,
html[data-theme="dark"] .yt-notify-item-body {
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-notify-item {
    border-bottom-color: var(--yt-border);
}
html[data-theme="dark"] .yt-notify-item:hover {
    background: #2a3548;
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-notify-item.is-unread {
    background: #1a3a52;
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-notify-item-meta,
html[data-theme="dark"] .yt-notify-state,
html[data-theme="dark"] .yt-notify-empty {
    color: var(--yt-muted);
}

html[data-theme="dark"] .yt-icon-btn {
    color: #a9b6c7;
}
html[data-theme="dark"] .yt-icon-btn:hover {
    background: #2a3548;
    color: #e6edf5;
}

html[data-theme="dark"] .yt-issue-panel .yt-panel-close:hover {
    background: #2a3548;
    color: #e6edf5;
}

html[data-theme="dark"] .yt-create-side label {
    color: var(--yt-muted);
}

html[data-theme="dark"] .yt-subsystem-combo .yt-subsystem-actions-menu {
    background: #182232 !important;
    border-top-color: var(--yt-border) !important;
}
html[data-theme="dark"] .yt-link-result.is-selected,
html[data-theme="dark"] .yt-link-result:hover {
    background: #243447 !important;
    outline: 2px solid #6ea8fe;
    outline-offset: -2px;
    box-shadow: inset 3px 0 0 #6ea8fe;
}

html[data-theme="dark"] .yt-btn:disabled,
html[data-theme="dark"] .yt-btn[disabled],
html[data-theme="dark"] .yt-btn[aria-disabled="true"] {
    opacity: .4;
    cursor: not-allowed;
    filter: grayscale(.25);
}
html[data-theme="dark"] .yt-combo-option.is-selected,
html[data-theme="dark"] .yt-combo-option:hover,
html[data-theme="dark"] .yt-combo-option.is-active {
    background: #1e3a5f !important;
    color: #e6edf5;
}
html[data-theme="dark"] .yt-combo-search,
html[data-theme="dark"] .yt-subsystem-search {
    background: #182232 !important;
    color: var(--yt-text);
    border-bottom-color: var(--yt-border) !important;
}
html[data-theme="dark"] .yt-subsystem-combo .yt-subsystem-actions-menu button {
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-subsystem-combo .yt-subsystem-actions-menu button:hover {
    background: #2a3548;
}
html[data-theme="dark"] .yt-subsystem-combo .yt-subsystem-actions-menu button:disabled {
    color: var(--yt-muted);
    opacity: .55;
}

html[data-theme="dark"] .yt-hidden-task-box {
    background: #3b2f14 !important;
    border-color: #854d0e;
    color: #fde68a;
}
html[data-theme="dark"] .yt-estimate-field {
    background: #3b2f14 !important;
    border-color: #854d0e;
}
html[data-theme="dark"] .yt-estimate-field dt,
html[data-theme="dark"] .yt-estimate-field .yt-field-label,
html[data-theme="dark"] .yt-estimate-lock-hint {
    color: #fbbf24;
}

html[data-theme="dark"] .an-hub-card h2 {
    color: var(--yt-text);
}
html[data-theme="dark"] .an-hub-card p,
html[data-theme="dark"] .an-filter-note,
html[data-theme="dark"] .an-exclusions-title,
html[data-theme="dark"] .an-kpi-label,
html[data-theme="dark"] .an-legend,
html[data-theme="dark"] .an-trend-legend {
    color: var(--yt-muted);
}
html[data-theme="dark"] .an-filters .sh-multi-option,
html[data-theme="dark"] .an-exclusions {
    color: var(--yt-text);
}
html[data-theme="dark"] .an-kpi.is-fit {
    background: #14532d !important;
    border-color: #166534;
}
html[data-theme="dark"] .an-kpi.is-over {
    background: #7f1d1d !important;
    border-color: #991b1b;
}
/* Result chips: reuse calendar status tokens, not light pastel fills */
html[data-theme="dark"] .an-result.is-fit {
    background: #14532d !important;
    color: #86efac !important;
}
html[data-theme="dark"] .an-result.is-over {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .an-bar.is-estimate,
html[data-theme="dark"] .an-swatch.is-estimate {
    background: var(--an-estimate) !important;
}
html[data-theme="dark"] .an-bar.is-actual,
html[data-theme="dark"] .an-swatch.is-actual {
    background: var(--an-actual) !important;
}

/* —— Agile board —— */
html[data-theme="dark"] .yt-agile-page {
    background: #0e1520 !important;
}
html[data-theme="dark"] .yt-agile-toolbar {
    background: #121a28 !important;
    border-bottom-color: #222c3d;
}
html[data-theme="dark"] .yt-agile-breadcrumb,
html[data-theme="dark"] .yt-agile-breadcrumb-current {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .yt-agile-breadcrumb-root,
html[data-theme="dark"] .yt-agile-breadcrumb-sep {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .yt-agile-view-icons {
    background: #182232 !important;
    border-color: #3f4d61;
}
html[data-theme="dark"] .yt-agile-view-icon {
    color: #a9b6c7;
}
html[data-theme="dark"] .yt-agile-view-icon.is-active,
html[data-theme="dark"] .yt-agile-view-icon:hover {
    background: var(--yt-link-soft);
    color: var(--yt-link);
}
html[data-theme="dark"] .yt-agile-assignee-select,
html[data-theme="dark"] .yt-agile-filter-input {
    background: #1e293b !important;
    color: #e6edf5 !important;
    border-color: #5c6b82 !important;
}
html[data-theme="dark"] .yt-agile-present-toggle {
    background: #1e293b !important;
    color: #c5d0dc !important;
    border-color: #5c6b82 !important;
}
html[data-theme="dark"] .yt-agile-present-toggle:has(input:checked) {
    background: #1e3a5f !important;
    border-color: #4c8bf5 !important;
    color: #9ec1ff !important;
}
html[data-theme="dark"] .yt-agile-assignee-select:hover,
html[data-theme="dark"] .yt-agile-filter-input:hover {
    border-color: #7a8aa3 !important;
}
html[data-theme="dark"] .yt-agile-assignee-select:focus,
html[data-theme="dark"] .yt-agile-filter-input:focus {
    border-color: var(--yt-accent) !important;
    box-shadow: 0 0 0 2px rgba(91, 158, 201, 0.28);
}
html[data-theme="dark"] .yt-agile-filter-icon {
    color: var(--yt-muted);
}
html[data-theme="dark"] .yt-agile-filter-input::placeholder {
    color: #8a97a8;
    opacity: 1;
}
html[data-theme="dark"] .yt-agile-column-header {
    background: #0e1520 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .yt-agile-column-count,
html[data-theme="dark"] .yt-agile-column-collapse,
html[data-theme="dark"] .yt-agile-column-plus,
html[data-theme="dark"] .yt-agile-column-add,
html[data-theme="dark"] .yt-agile-show-older,
html[data-theme="dark"] .yt-agile-column-empty,
html[data-theme="dark"] .yt-agile-collapsed-more {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .yt-agile-show-older {
    border-color: #5c6b82 !important;
}
html[data-theme="dark"] .yt-agile-column-add:hover,
html[data-theme="dark"] .yt-agile-column-plus:hover,
html[data-theme="dark"] .yt-agile-show-older:hover,
html[data-theme="dark"] .yt-agile-column.is-showing-older .yt-agile-show-older {
    background: #2a3548 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .yt-agile-column-body {
    background: #182232 !important;
}
html[data-theme="dark"] .yt-agile-column-body.yt-agile-column-drop,
html[data-theme="dark"] .yt-agile-column-body.is-drop-target {
    background: #243b55 !important;
}
html[data-theme="dark"] .yt-agile-card-project-icon,
html[data-theme="dark"] .yt-agile-card-project-fallback {
    background: #1e293b !important;
    border-color: #5c6b82 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .yt-agile-header-project-icon,
html[data-theme="dark"] .yt-agile-header-project-fallback {
    background: #1e293b !important;
    border-color: #5c6b82 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .yt-agile-card {
    background: #1e293b !important;
    border-color: #3f4d61 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    color: #e6edf5;
}
html[data-theme="dark"] .yt-agile-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .yt-agile-column-body .yt-agile-card.is-blocked,
html[data-theme="dark"] .yt-agile-card.is-blocked,
html[data-theme="dark"] .yt-agile-card.is-blocked.yt-agile-card-dragging {
    background: #3f1d1d !important;
    border-color: #7f1d1d !important;
}
html[data-theme="dark"] .yt-agile-column-body .yt-agile-card.is-blocked:hover,
html[data-theme="dark"] .yt-agile-card.is-blocked:hover {
    background: #4a2222 !important;
    box-shadow: 0 2px 8px rgba(127, 29, 29, 0.35);
}
html[data-theme="dark"] .yt-agile-card-title,
html[data-theme="dark"] .yt-agile-card-summary {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .yt-agile-card-summary:hover,
html[data-theme="dark"] .yt-agile-card-id:hover {
    color: var(--yt-link) !important;
}
html[data-theme="dark"] .yt-agile-card-id,
html[data-theme="dark"] .yt-agile-card-times,
html[data-theme="dark"] .yt-agile-attachments,
html[data-theme="dark"] .yt-agile-tag-muted {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .yt-agile-tag {
    background: #2a3548 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .yt-agile-collapsed-dot {
    background: #1e293b !important;
    border-color: #3f4d61 !important;
}
html[data-theme="dark"] .yt-agile-card-placeholder {
    background: #243b55 !important;
    border-color: #2d6a8f !important;
}

/* —— State / priority / type chips —— */
html[data-theme="dark"] .yt-state-blocked,
html[data-theme="dark"] .yt-type-blocked,
html[data-theme="dark"] .yt-agile-tag.yt-type-blocked {
    background: #3f1d1d !important;
    color: #fca5a5 !important;
    border-color: #7f1d1d;
}
html[data-theme="dark"] .yt-state-progress {
    background: #3b2f14 !important;
    color: #fcd34d !important;
}
html[data-theme="dark"] .yt-state-testing {
    background: #2e1a47 !important;
    color: #d8b4fe !important;
}
html[data-theme="dark"] .yt-state-done {
    background: #14532d !important;
    color: #86efac !important;
}
html[data-theme="dark"] .yt-priority-critical,
html[data-theme="dark"] .yt-agile-tag.yt-priority-critical {
    background: #3f1d1d !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .yt-priority-major,
html[data-theme="dark"] .yt-agile-tag.yt-priority-major {
    background: #3b2a14 !important;
    color: #fdba74 !important;
}
html[data-theme="dark"] .yt-priority-normal,
html[data-theme="dark"] .yt-agile-tag.yt-priority-normal {
    background: #1a3a52 !important;
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .yt-priority-minor,
html[data-theme="dark"] .yt-agile-tag.yt-priority-minor {
    background: #14532d !important;
    color: #86efac !important;
}
html[data-theme="dark"] .yt-priority-lowest,
html[data-theme="dark"] .yt-agile-tag.yt-priority-lowest {
    background: #222c3d !important;
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .yt-type,
html[data-theme="dark"] .yt-type-bug,
html[data-theme="dark"] .yt-type-task,
html[data-theme="dark"] .yt-type-feature,
html[data-theme="dark"] .yt-type-performance,
html[data-theme="dark"] .yt-type-usability,
html[data-theme="dark"] .yt-type-cosmetics,
html[data-theme="dark"] .yt-type-exception,
html[data-theme="dark"] .yt-type-support,
html[data-theme="dark"] .yt-agile-tag.yt-type-bug,
html[data-theme="dark"] .yt-agile-tag.yt-type-task,
html[data-theme="dark"] .yt-agile-tag.yt-type-feature,
html[data-theme="dark"] .yt-agile-tag.yt-type-performance,
html[data-theme="dark"] .yt-agile-tag.yt-type-usability,
html[data-theme="dark"] .yt-agile-tag.yt-type-cosmetics,
html[data-theme="dark"] .yt-agile-tag.yt-type-exception,
html[data-theme="dark"] .yt-agile-tag.yt-type-support {
    background: #2a3548 !important;
    color: #c5d0dc !important;
    border-color: #3f4d61;
}
html[data-theme="dark"] .yt-working-today {
    background: #14532d !important;
    color: #86efac !important;
    border-color: #166534;
}
html[data-theme="dark"] .yt-merged-banner {
    background: #3b2f14;
    border-color: #854d0e;
    color: #fde68a;
}
html[data-theme="dark"] .yt-summary-card-accent {
    background: #1a3a52 !important;
    border-color: #2d6a8f;
}
html[data-theme="dark"] .yt-mention {
    color: #8ec4e0;
    background: #1a3a52;
}

/* —— Mauris Home / My Day —— */
html[data-theme="dark"] .mauris-home {
    --mh-accent: #e6edf5;
    --mh-accent-soft: #2a3548;
    --mh-link: #8ec4e0;
    --mh-link-soft: #1a3a52;
    --mh-link-hover: #b9dcf0;
    --mh-text: #e6edf5;
    --mh-muted: #a9b6c7;
    --mh-border: #3f4d61;
    --mh-border-soft: #222c3d;
    --mh-bg: #141c2a;
    --mh-card: #1e293b;
    --mh-hover: #2a3548;
    background: linear-gradient(160deg, #0e1520 0%, #141c2a 42%, #182232 100%) !important;
    color: var(--mh-text);
}
html[data-theme="dark"] .mauris-home .home-birthdays,
html[data-theme="dark"] .mauris-home .home-cursor,
html[data-theme="dark"] .mauris-home .dash-today-card,
html[data-theme="dark"] .mauris-home .day-col,
html[data-theme="dark"] .mauris-home .day-section.card,
html[data-theme="dark"] .mauris-home .home-cursor-card,
html[data-theme="dark"] .home-block,
html[data-theme="dark"] .home-news,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .docs-card {
    background: var(--mh-card, #1e293b) !important;
    border-color: var(--mh-border, #3f4d61) !important;
    color: var(--mh-text, #e6edf5);
    box-shadow: none;
}
html[data-theme="dark"] .mauris-home .day-section.card.is-locked {
    opacity: 0.7;
    background: #182232 !important;
}
html[data-theme="dark"] .mauris-home .day-col h2 {
    background: #182232 !important;
    border-bottom-color: #3f4d61;
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .mauris-home .day-card {
    background: #182232 !important;
    border-color: #3f4d61 !important;
    color: #e6edf5 !important;
    box-shadow: none;
}
html[data-theme="dark"] .day-card-summary,
html[data-theme="dark"] .mauris-home .day-card-summary,
html[data-theme="dark"] .day-card-meta,
html[data-theme="dark"] .day-total-value,
html[data-theme="dark"] .mauris-home .day-total-value {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .day-card-id,
html[data-theme="dark"] .day-card-id a,
html[data-theme="dark"] .mauris-home .day-card-id,
html[data-theme="dark"] .mauris-home .day-card-id a {
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .day-backlog-search-input,
html[data-theme="dark"] .mauris-home .day-backlog-search-input,
html[data-theme="dark"] .day-msg-preview,
html[data-theme="dark"] .day-card-hours input {
    background: #1e293b !important;
    color: #e6edf5 !important;
    border-color: #5c6b82 !important;
}
html[data-theme="dark"] .day-list.drag-over,
html[data-theme="dark"] .mauris-home .day-list.drag-over {
    background: #243b55 !important;
    outline-color: #5b9ec9;
}
html[data-theme="dark"] .day-today-empty,
html[data-theme="dark"] .mauris-home .day-today-empty {
    background: linear-gradient(180deg, #182232 0%, #1e293b 45%, #141c2a 100%) !important;
    border-color: #5c6b82 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .day-today-empty-icon-wrap {
    background: #1e293b !important;
    border-color: #5c6b82 !important;
    color: #a9b6c7 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .day-today-empty-icon {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .mauris-home .day-today-empty-text,
html[data-theme="dark"] .day-today-empty-text {
    color: #c5d0dc !important;
}
html[data-theme="dark"] .mauris-home .day-today-empty-author,
html[data-theme="dark"] .day-today-empty-author,
html[data-theme="dark"] .day-header-date,
html[data-theme="dark"] .day-total-label,
html[data-theme="dark"] .mauris-home .day-total-label,
html[data-theme="dark"] .mauris-home .day-total-value span {
    color: #a9b6c7 !important;
}
/* Secondary / outline buttons — do not restyle primary CTAs */
html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] button.secondary,
html[data-theme="dark"] .yt-btn.secondary,
html[data-theme="dark"] .mauris-home .btn.secondary {
    background: #3a4659 !important;
    color: #e6edf5 !important;
    border-color: #5a6a80 !important;
}
html[data-theme="dark"] .mauris-home .day-card .yt-state {
    background: #1a3a52 !important;
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .mauris-home .day-card .yt-state-progress {
    background: #3b2f14 !important;
    color: #fcd34d !important;
}
html[data-theme="dark"] .mauris-home .day-card .yt-state-testing {
    background: #2e1a47 !important;
    color: #d8b4fe !important;
}
html[data-theme="dark"] .mauris-home .day-card .yt-state-blocked {
    background: #3f1d1d !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .mauris-home .day-card .yt-state-done {
    background: #14532d !important;
    color: #86efac !important;
}
html[data-theme="dark"] .home-bday-nav,
html[data-theme="dark"] .home-news-nav,
html[data-theme="dark"] .home-bday-item.home-bday-chip {
    background: #1e293b !important;
    border-color: #3f4d61 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .home-bday-nav:hover,
html[data-theme="dark"] .home-news-nav:hover,
html[data-theme="dark"] .home-bday-item.home-bday-chip:hover {
    background: #2a3548 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .home-bday-item.is-today,
html[data-theme="dark"] .home-bday-item.home-bday-chip.is-today {
    background: #3b2f14 !important;
    border-color: #854d0e !important;
}
html[data-theme="dark"] .home-bday-item.is-tomorrow,
html[data-theme="dark"] .home-bday-item.home-bday-chip.is-tomorrow {
    background: #14532d !important;
    border-color: #166534 !important;
}
html[data-theme="dark"] .home-news-link {
    color: var(--link) !important;
}
html[data-theme="dark"] .home-news-title,
html[data-theme="dark"] .home-news-title:link,
html[data-theme="dark"] .home-news-title:visited {
    color: var(--page-text) !important;
}
html[data-theme="dark"] .home-news-title:hover {
    color: var(--link) !important;
}
html[data-theme="dark"] .home-news-card {
    background: transparent !important;
    border-color: transparent !important;
}
html[data-theme="dark"] .home-news-rail {
    background: #1a2332 !important;
    border-right-color: transparent !important;
    color: var(--link, #93c5fd) !important;
}
html[data-theme="dark"] .home-news-rail:hover {
    background: #243044 !important;
}
html[data-theme="dark"] .news-icon--card,
html[data-theme="dark"] .news-icon--title {
    color: var(--link, #93c5fd) !important;
}
html[data-theme="dark"] .news-icon--card {
    background: #1a2332 !important;
}
html[data-theme="dark"] .news-meta,
html[data-theme="dark"] .news-empty,
html[data-theme="dark"] .news-hint,
html[data-theme="dark"] .news-card-mon,
html[data-theme="dark"] .news-comment-head time {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .news-ago {
    color: #c5d0dc !important;
}
html[data-theme="dark"] .news-chip {
    background: #2a3548 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] a.news-chip:hover {
    background: #3a4659 !important;
    color: #eef2f7 !important;
}
html[data-theme="dark"] .news-chip-company {
    background: #1a3a52 !important;
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .home-news-views,html[data-theme="dark"] .news-chips .news-views,
html[data-theme="dark"] .home-news-comments,html[data-theme="dark"] .news-chips .news-comments{background:#182232;color:#94a3b8}
html[data-theme="dark"] .home-news-comments:hover,html[data-theme="dark"] .news-chips .news-comments:hover{background:#243044;color:#e6edf5}
html[data-theme="dark"] .news-card-stamp {
    background: #182232 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .news-card-title a,
html[data-theme="dark"] .news-card-title a:link,
html[data-theme="dark"] .news-card-title a:visited {
    color: var(--page-text) !important;
}
html[data-theme="dark"] .news-card-title a:hover {
    color: var(--link) !important;
}
html[data-theme="dark"] .news-excerpt,
html[data-theme="dark"] .news-body,
html[data-theme="dark"] .news-article,
html[data-theme="dark"] .news-comments,
html[data-theme="dark"] .news-drafts {
    color: var(--page-text);
}
html[data-theme="dark"] .news-article,
html[data-theme="dark"] .news-comments,
html[data-theme="dark"] .news-drafts,
html[data-theme="dark"] .news-projects {
    background: var(--surface) !important;
    border-color: var(--surface-border) !important;
}
html[data-theme="dark"] .news-draft-banner {
    background: #3b2f14 !important;
    border-color: #854d0e !important;
    color: #fde68a;
}
html[data-theme="dark"] .news-cover,
html[data-theme="dark"] .news-hero {
    background: #121a28 !important;
}

html[data-theme="dark"] .news-engage{border-top-color:var(--surface-border,#334155)}
html[data-theme="dark"] .news-like-btn{background:#182232;border-color:#334155;color:#cbd5e1}
html[data-theme="dark"] .news-like-btn:hover{background:#1e293b;border-color:#475569;color:#e2e8f0}
html[data-theme="dark"] .news-like-btn.is-liked{background:#3f1d24;border-color:#7f1d1d;color:#fca5a5}
html[data-theme="dark"] .news-like-btn.is-liked:hover{background:#4c1d24;border-color:#991b1b}
html[data-theme="dark"] .news-views{color:#94a3b8}
html[data-theme="dark"] .news-unread{background:var(--surface,#1e293b);border-color:var(--surface-border,#334155);color:var(--page-text,#e2e8f0)}
html[data-theme="dark"] .news-unread-hint,
html[data-theme="dark"] .news-unread-list time{color:#94a3b8}
html[data-theme="dark"] .news-unread-list a{color:var(--page-text,#e2e8f0)}
html[data-theme="dark"] .news-unread-list a:hover{background:#182232}

/* Activity today — hardcodes in mauris.css */
html[data-theme="dark"] .dash-person-focus,
html[data-theme="dark"] .dash-chat-activity {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .dash-focus-project-name {
    color: var(--page-text) !important;
}
html[data-theme="dark"] a.dash-focus-project-name {
    color: var(--link) !important;
}
html[data-theme="dark"] .dash-focus-task-inline,
html[data-theme="dark"] .dash-focus-task-list {
    border-left-color: #3f4d61 !important;
}
html[data-theme="dark"] .dash-focus-chip {
    background: #2a3548 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .dash-day-prompts {
    color: #8ec4e0 !important;
    background: #1a3a52 !important;
    border-color: #2d6a8f !important;
}
html[data-theme="dark"] .dash-day-finished {
    color: #a9b6c7 !important;
    background: #222c3d !important;
    border-color: #3a4659 !important;
}
html[data-theme="dark"] .dash-last-seen {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .dash-today-empty-title {
    color: var(--page-text) !important;
}
html[data-theme="dark"] .dash-today-empty-text {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .mauris-home,
html[data-theme="dark"] .home-birthdays,
html[data-theme="dark"] .home-block,
html[data-theme="dark"] .home-news,
html[data-theme="dark"] .home-cursor {
    --hb-accent: var(--link);
    --hb-accent-soft: var(--link-soft);
    --hb-text: #e6edf5;
    --hb-muted: #a9b6c7;
    --hb-border: #3f4d61;
    --hb-hover: #2a3548;
}
html[data-theme="dark"] .home-block-title,
html[data-theme="dark"] .home-birthdays-title,
html[data-theme="dark"] .home-cursor-title,
html[data-theme="dark"] .mauris-home .home-block-title,
html[data-theme="dark"] .mauris-home .home-birthdays-title {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .home-block-head,
html[data-theme="dark"] .home-birthdays-head,
html[data-theme="dark"] .mauris-home .home-block-head,
html[data-theme="dark"] .mauris-home .home-birthdays-head {
    border-bottom-color: #3f4d61 !important;
}
/* Activity «Працює» / Working — green chip, never white */
html[data-theme="dark"] .dash-day-working {
    color: #86efac !important;
    background: #14532d !important;
    border-color: #166534 !important;
}
html[data-theme="dark"] .dash-day-working .dash-day-icon {
    background: #22c55e !important;
}
html[data-theme="dark"] .dash-day-on_call {
    color: #fcd34d !important;
    background: #3b2f14 !important;
    border-color: #854d0e !important;
}
html[data-theme="dark"] .dash-day-on_call .dash-day-icon {
    background: #eab308 !important;
}
html[data-theme="dark"] .dash-day-not_finished {
    color: #a9b6c7 !important;
    background: #222c3d !important;
    border-color: #3a4659 !important;
}
html[data-theme="dark"] .dash-day-not_finished .dash-day-icon {
    border-color: #94a3b8 !important;
}
html[data-theme="dark"] .dash-day-vacation,
html[data-theme="dark"] .dash-day-sick,
html[data-theme="dark"] .dash-day-unpaid,
html[data-theme="dark"] .dash-day-paid_day_off {
    color: #7dd3fc !important;
    background: #0c4a6e !important;
    border-color: #0369a1 !important;
}
/* My Day — hours entry blocks (not pale #f8fafc) */
html[data-theme="dark"] .day-card-hours,
html[data-theme="dark"] .mauris-home .day-card-hours {
    background: #141c2a !important;
    border-color: #3f4d61 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .day-card-hours label,
html[data-theme="dark"] .mauris-home .day-card-hours label {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .day-card-hours-unit,
html[data-theme="dark"] .mauris-home .day-card-hours-unit {
    color: #a9b6c7 !important;
}
/* Create-task modal — right settings column */
html[data-theme="dark"] .yt-create-side {
    background: #182232 !important;
    border-color: var(--yt-border) !important;
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-create-side input,
html[data-theme="dark"] .yt-create-side select,
html[data-theme="dark"] .yt-create-side textarea {
    background: #1e293b !important;
    color: var(--yt-text) !important;
    border-color: var(--field-border) !important;
}
html[data-theme="dark"] .yt-create-side {
    --yt-create-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a9b6c7' d='M2.4 4.2 6 7.8l3.6-3.6'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .yt-create-side .yt-combo-toggle {
    background-color: transparent !important;
    border-color: transparent !important;
    color: transparent !important;
}
/* My Day — «Надіслано» green / «Не надіслано» muted grey (not pale white) */
html[data-theme="dark"] .day-sent-badge.is-sent,
html[data-theme="dark"] .mauris-home .day-sent-badge.is-sent {
    background: #14532d !important;
    color: #86efac !important;
    border: 1px solid #166534;
}
html[data-theme="dark"] .day-sent-badge.is-pending,
html[data-theme="dark"] .mauris-home .day-sent-badge.is-pending {
    background: #222c3d !important;
    color: #94a3b8 !important;
    border: 1px solid #3a4659;
}
/* New task modal — separate from page wash (border + elevation) */
html[data-theme="dark"] .yt-create-modal .yt-board-modal-backdrop,
html[data-theme="dark"] .yt-board-modal .yt-board-modal-backdrop {
    background: rgba(0, 0, 0, 0.62) !important;
}
html[data-theme="dark"] .yt-board-modal-dialog.yt-create-dialog,
html[data-theme="dark"] .yt-create-modal .yt-create-dialog {
    background: #182232 !important;
    border: 1px solid #5c6b82 !important;
    box-shadow:
        0 0 0 1px rgba(142, 196, 224, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.55) !important;
    color: var(--yt-text);
}
html[data-theme="dark"] .yt-create-dialog .yt-board-modal-header,
html[data-theme="dark"] .yt-create-modal .yt-board-modal-header {
    border-bottom: 1px solid #3f4d61;
}
html[data-theme="dark"] .yt-create-dialog .yt-board-modal-header h2 {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .dash-today-nav-btn {
    background: #1e293b !important;
    border-color: #3f4d61 !important;
    color: #c5d0dc;
}
html[data-theme="dark"] .dash-today-empty {
    background: #182232 !important;
    color: #a9b6c7;
}

/* Staff hub (inline styles in hub.blade.php also hardcode #fff) */
html[data-theme="dark"] .hub-card,
html[data-theme="dark"] .docs-card,
html[data-theme="dark"] .news-card {
    background: var(--surface) !important;
    border-color: var(--surface-border) !important;
    color: var(--page-text) !important;
}
html[data-theme="dark"] .hub-card h2 {
    /* Section titles = on-surface (accent only for links/CTAs) */
    color: var(--page-text) !important;
}
html[data-theme="dark"] .hub-hero {
    /* Soft tonal hero — avoid electric #1e40af wash in dark rooms */
    background: linear-gradient(135deg, #121a28 0%, #1a2a44 55%, #1e3a52 100%) !important;
    color: var(--page-text);
    border: 1px solid var(--surface-border);
}
html[data-theme="dark"] .hub-hero h1 {
    color: var(--page-text) !important;
}
html[data-theme="dark"] .hub-hero p {
    color: var(--label-color) !important;
}
html[data-theme="dark"] .hub-kpi {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .hub-kpi .l {
    color: var(--label-color) !important;
}
html[data-theme="dark"] .env-prod {
    background: #14532d !important;
    color: #86efac !important;
}
html[data-theme="dark"] .env-stage {
    background: #3b2f14 !important;
    color: #fde68a !important;
}
html[data-theme="dark"] .env-dev {
    background: #1a3a52 !important;
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .env-null {
    background: #222c3d !important;
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .feed-item,
html[data-theme="dark"] .repo-row {
    border-bottom-color: var(--surface-border) !important;
}
html[data-theme="dark"] .feed-meta {
    color: var(--label-color) !important;
}
html[data-theme="dark"] .pipe-col {
    background: #182232 !important;
    color: var(--page-text);
}
html[data-theme="dark"] .pipe-col h3 {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .pipe-item {
    border-color: #3f4d61;
}
html[data-theme="dark"] .hub-card .muted,
html[data-theme="dark"] .pipe-col .muted {
    color: #a9b6c7 !important;
}

/* Docs workspace */
html[data-theme="dark"] .docs-workspace {
    background: #0e1520 !important;
    border-top-color: #222c3d !important;
}
html[data-theme="dark"] .docs-sidebar {
    background: #141c2a !important;
    border-right-color: #222c3d !important;
}
html[data-theme="dark"] .docs-sidebar-title,
html[data-theme="dark"] .docs-main,
html[data-theme="dark"] .docs-article,
html[data-theme="dark"] .docs-markdown {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .docs-main {
    background: #0e1520 !important;
}
html[data-theme="dark"] .docs-search input,
html[data-theme="dark"] .docs-project-switcher select,
html[data-theme="dark"] .docs-section-card,
html[data-theme="dark"] .docs-field input,
html[data-theme="dark"] .docs-field-body .yt-editor {
    background: #1e293b !important;
    border-color: #3f4d61 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .docs-section-card:hover {
    background: #2a3548 !important;
    border-color: #5a6a80 !important;
}
html[data-theme="dark"] .docs-tree-item.is-active > .docs-tree-row {
    background: #1a3a52 !important;
}
/* Project list: selected style lives on the link, not the row (light #e0e7ff). */
html[data-theme="dark"] .docs-project-tree-link:hover {
    background: #243044 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .docs-project-tree-item.is-active > .docs-tree-row .docs-project-tree-link {
    background: var(--yt-link-soft) !important;
    color: var(--yt-link) !important;
    font-weight: 600;
}
html[data-theme="dark"] .docs-project-tree-item.is-active > .docs-tree-row .docs-project-tree-link:hover {
    background: #2a3a52 !important;
    color: var(--yt-link-hover) !important;
}
html[data-theme="dark"] .docs-project-tree-count {
    color: var(--yt-muted) !important;
}
html[data-theme="dark"] .docs-project-tree-item.is-active .docs-project-tree-count {
    color: #b9dcf0 !important;
}
html[data-theme="dark"] .docs-tree-item.is-search-hit > .docs-tree-row {
    background: #3b2f14 !important;
}
html[data-theme="dark"] .docs-search-hit:hover {
    background: #2a3548 !important;
}
html[data-theme="dark"] .docs-markdown th,
html[data-theme="dark"] .docs-markdown td {
    border-color: #3f4d61 !important;
}
html[data-theme="dark"] .docs-workspace .docs-markdown :not(pre) > code,
html[data-theme="dark"] .docs-workspace .docs-markdown code {
    background: #222c3d !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .docs-toc-link.is-active {
    color: #b9dcf0 !important;
    background: #1a3a52 !important;
}
html[data-theme="dark"] .api-card,
html[data-theme="dark"] .staff-api-card,
html[data-theme="dark"] .sa-card,
html[data-theme="dark"] .docs-shell {
    background: var(--surface) !important;
    border-color: var(--surface-border) !important;
    color: var(--page-text);
}
/* Docs — code + «Застаріло» / deprecated banner */
html[data-theme="dark"] .docs-deprecated-banner,
html[data-theme="dark"] .staff-api-old {
    background: #3b2f14 !important;
    border-color: #854d0e !important;
    color: #fde68a !important;
}
html[data-theme="dark"] .docs-deprecated-banner a,
html[data-theme="dark"] .docs-deprecated-banner a:link,
html[data-theme="dark"] .docs-deprecated-banner a:visited,
html[data-theme="dark"] .staff-api-old a,
html[data-theme="dark"] .staff-api-old a:link,
html[data-theme="dark"] .staff-api-old a:visited {
    color: #fcd34d !important;
}
html[data-theme="dark"] .docs-workspace .docs-markdown pre,
html[data-theme="dark"] .docs-workspace .yt-markdown pre,
html[data-theme="dark"] .docs-workspace .yt-editor-visual pre,
html[data-theme="dark"] .docs-workspace .yt-editor-preview pre {
    background: #0b1220 !important;
    color: #e6edf5 !important;
    border-color: #3f4d61 !important;
}
html[data-theme="dark"] .docs-workspace .docs-markdown pre code,
html[data-theme="dark"] .docs-workspace .yt-markdown pre code,
html[data-theme="dark"] .docs-workspace .docs-markdown pre span {
    background: transparent !important;
    color: inherit !important;
}
/* Staff API catalog — kill leftover #fff paper */
html[data-theme="dark"] .staff-api,
html[data-theme="dark"] .staff-api-read {
    color: var(--page-text);
}
html[data-theme="dark"] .staff-api-nav,
html[data-theme="dark"] .staff-api-contract,
html[data-theme="dark"] .staff-api-topics a,
html[data-theme="dark"] .staff-api-try,
html[data-theme="dark"] .staff-api-client,
html[data-theme="dark"] .staff-api-client.is-on {
    background: var(--surface) !important;
    border-color: var(--surface-border) !important;
    color: var(--page-text) !important;
}
html[data-theme="dark"] .staff-api-now {
    border-color: #166534 !important;
}
/* Current-version chip: reuse calendar/estimate success tokens, not pastel #ecfdf5 */
html[data-theme="dark"] .staff-api .tag:not(.tag-old) {
    background: #14532d !important;
    color: #86efac !important;
    border: 1px solid #166534;
}
html[data-theme="dark"] .staff-api-nav-title,
html[data-theme="dark"] .staff-api-nav li a.is-current,
html[data-theme="dark"] .staff-api-contract h2,
html[data-theme="dark"] .staff-api-contract h3,
html[data-theme="dark"] .staff-api-head h1,
html[data-theme="dark"] .staff-api-path {
    color: var(--page-text) !important;
}
html[data-theme="dark"] .staff-api-nav-note,
html[data-theme="dark"] .staff-api-row-summary,
html[data-theme="dark"] .staff-api-params th,
html[data-theme="dark"] .staff-api-opt,
html[data-theme="dark"] .staff-api-try-label,
html[data-theme="dark"] .staff-api-nav-methods a {
    color: var(--label-color) !important;
}
html[data-theme="dark"] .staff-api-row {
    border-bottom-color: #222c3d !important;
    color: var(--page-text);
}
html[data-theme="dark"] .staff-api-row:hover {
    background: #2a3548 !important;
}
html[data-theme="dark"] .staff-api-params th,
html[data-theme="dark"] .staff-api-params td {
    border-bottom-color: #222c3d !important;
}
html[data-theme="dark"] .staff-api-try input,
html[data-theme="dark"] .staff-api-try select,
html[data-theme="dark"] .staff-api-try textarea,
html[data-theme="dark"] .staff-api-filter input {
    background: #141c2a !important;
    color: var(--page-text) !important;
    border-color: var(--field-border) !important;
}
html[data-theme="dark"] .staff-api-client.client-site.is-on {
    color: #93c5fd !important;
    border-color: #1e40af !important;
    background: #1a3a52 !important;
}
html[data-theme="dark"] .staff-api-client.client-app.is-on {
    color: #86efac !important;
    border-color: #166534 !important;
    background: #14532d !important;
}
html[data-theme="dark"] .staff-api-client.client-admin.is-on {
    color: #fcd34d !important;
    border-color: #854d0e !important;
    background: #3b2f14 !important;
}
/* Iterations show / list */
html[data-theme="dark"] .yt-it-sec,
html[data-theme="dark"] .yt-it-menu-toggle,
html[data-theme="dark"] .yt-it-menu-panel,
html[data-theme="dark"] .yt-iteration-platforms,
html[data-theme="dark"] .yt-iteration-add-tasks,
html[data-theme="dark"] .yt-iteration-danger {
    background: var(--yt-surface) !important;
    border-color: var(--yt-border) !important;
    color: var(--yt-text) !important;
}
html[data-theme="dark"] .yt-it-sec-head h2,
html[data-theme="dark"] .yt-iteration-card-notes,
html[data-theme="dark"] .yt-iteration-card-notes .yt-notes-text,
html[data-theme="dark"] .yt-it-notes,
html[data-theme="dark"] .yt-it-notes-body,
html[data-theme="dark"] .yt-it-notes-label,
html[data-theme="dark"] .yt-it-release-empty,
html[data-theme="dark"] .yt-it-page .yt-table-wrap th {
    color: var(--yt-muted) !important;
}
html[data-theme="dark"] .yt-iteration-card h3,
html[data-theme="dark"] .yt-iteration-card h3 a,
html[data-theme="dark"] .yt-it-release-version,
html[data-theme="dark"] .yt-it-page .yt-table-wrap td {
    color: var(--yt-text) !important;
}
html[data-theme="dark"] .yt-it-page .yt-table-wrap th {
    background: #182232 !important;
}
html[data-theme="dark"] .yt-it-page .yt-table-wrap th,
html[data-theme="dark"] .yt-it-page .yt-table-wrap td,
html[data-theme="dark"] .yt-it-release-row {
    border-bottom-color: #222c3d !important;
}
html[data-theme="dark"] .yt-it-menu-item {
    color: var(--yt-text) !important;
}
html[data-theme="dark"] .yt-it-menu-item:hover {
    background: #2a3548 !important;
}
html[data-theme="dark"] .yt-notes-input,
html[data-theme="dark"] .yt-iteration-notes {
    background: #141c2a !important;
    color: var(--yt-text) !important;
    border-color: var(--field-border) !important;
}
/* Project / person board settings — searchable multi + columns editor */
html[data-theme="dark"] .sh-multi,
html[data-theme="dark"] .sh-multi-panel,
html[data-theme="dark"] .sh-one-toggle,
html[data-theme="dark"] .sh-one-panel,
html[data-theme="dark"] .sh-cols-row,
html[data-theme="dark"] .sh-cols-picker {
    background: var(--yt-surface) !important;
    border-color: var(--yt-border) !important;
    color: var(--yt-text) !important;
}
html[data-theme="dark"] .sh-multi-option,
html[data-theme="dark"] .sh-one-option,
html[data-theme="dark"] .sh-cols-title,
html[data-theme="dark"] .sh-multi-summary {
    color: var(--yt-text) !important;
}
html[data-theme="dark"] .sh-multi-placeholder,
html[data-theme="dark"] .sh-multi-empty,
html[data-theme="dark"] .sh-one-empty,
html[data-theme="dark"] .sh-cols-state,
html[data-theme="dark"] .sh-cols-handle,
html[data-theme="dark"] .sh-cols-count {
    color: var(--yt-muted) !important;
}
html[data-theme="dark"] .sh-multi-chip {
    background: #1a3a52 !important;
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .sh-multi-chip-x {
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .sh-multi-option:hover,
html[data-theme="dark"] .sh-one-option:hover,
html[data-theme="dark"] .sh-cols-option:hover {
    background: #2a3548 !important;
}
html[data-theme="dark"] .sh-multi-option:has(input:checked),
html[data-theme="dark"] .sh-one-option.is-selected {
    background: #1a3a52 !important;
}
html[data-theme="dark"] .sh-multi-search,
html[data-theme="dark"] .sh-one-search,
html[data-theme="dark"] .sh-cols-search,
html[data-theme="dark"] .sh-cols-option,
html[data-theme="dark"] .yt-field input[type=text],
html[data-theme="dark"] .yt-field input[type=file],
html[data-theme="dark"] .yt-field textarea,
html[data-theme="dark"] .yt-field select {
    background: #141c2a !important;
    color: var(--yt-text) !important;
    border-color: var(--field-border) !important;
}
html[data-theme="dark"] .yt-field > span,
html[data-theme="dark"] label.yt-field > span {
    color: var(--yt-muted);
}

/* Player profile (player-profile.css hardcodes light paper) */
html[data-theme="dark"] .pp-page {
    --pp-ink: #e6edf5;
    --pp-muted: #a9b6c7;
    --pp-paper: #0e1520;
    --pp-card: #1e293b;
    --pp-line: #3f4d61;
    --pp-accent: #2dd4bf;
    --pp-accent-2: #fbbf24;
    --pp-glow: rgba(45, 212, 191, 0.18);
    color: var(--pp-ink);
}
html[data-theme="dark"] .pp-hero {
    background:
        radial-gradient(1200px 420px at 12% -10%, var(--pp-glow), transparent 55%),
        linear-gradient(145deg, #182232 0%, #1e293b 48%, #141c2a 100%) !important;
    border-color: var(--pp-line) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .pp-btn-ghost {
    background: #2a3548 !important;
    color: #e6edf5 !important;
    border-color: #5c6b82 !important;
}
html[data-theme="dark"] .pp-btn-ghost:hover {
    background: #3a4659 !important;
}
html[data-theme="dark"] .pp-stat,
html[data-theme="dark"] .pp-track,
html[data-theme="dark"] .pp-badge,
html[data-theme="dark"] .pp-project,
html[data-theme="dark"] .pp-recent-list,
html[data-theme="dark"] .pp-agent-list,
html[data-theme="dark"] .pp-empty,
html[data-theme="dark"] .pp-closed-list,
html[data-theme="dark"] .pp-card,
html[data-theme="dark"] .pp-panel {
    background: #1e293b !important;
    border-color: #3f4d61 !important;
    color: #e6edf5 !important;
}
html[data-theme="dark"] .pp-section-head h2,
html[data-theme="dark"] .pp-name,
html[data-theme="dark"] .pp-track-title,
html[data-theme="dark"] .pp-badge-body strong,
html[data-theme="dark"] .pp-project strong,
html[data-theme="dark"] .pp-closed-title,
html[data-theme="dark"] .pp-agent-file {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .pp-section-head p,
html[data-theme="dark"] .pp-tagline,
html[data-theme="dark"] .pp-kicker,
html[data-theme="dark"] .pp-stat-label,
html[data-theme="dark"] .pp-track-desc,
html[data-theme="dark"] .pp-track-count,
html[data-theme="dark"] .pp-badge-body > span,
html[data-theme="dark"] .pp-project span,
html[data-theme="dark"] .pp-agent-summary,
html[data-theme="dark"] .pp-agent-meta,
html[data-theme="dark"] .pp-recent-list time,
html[data-theme="dark"] .pp-closed-list time {
    color: #a9b6c7 !important;
}
html[data-theme="dark"] .pp-milestone {
    background: #2a3548 !important;
    color: #c5d0dc !important;
}
html[data-theme="dark"] .pp-track-bar,
html[data-theme="dark"] .pp-badge-bar {
    background: #3a4659 !important;
}
html[data-theme="dark"] .pp-agent-status-completed {
    background: rgba(45, 212, 191, 0.18) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .pp-agent-status-pending {
    background: rgba(251, 191, 36, 0.18) !important;
    color: #fbbf24 !important;
}
html[data-theme="dark"] .pp-agent-status-claimed,
html[data-theme="dark"] .pp-agent-status-waiting_on_user {
    background: rgba(91, 158, 201, 0.18) !important;
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .pp-agent-status-blocked,
html[data-theme="dark"] .pp-agent-status-abandoned {
    background: rgba(248, 113, 113, 0.18) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .docs-sidebar-title,
html[data-theme="dark"] .docs-tree-link,
html[data-theme="dark"] .docs-overview h1,
html[data-theme="dark"] .docs-overview-lead,
html[data-theme="dark"] .docs-overview-h,
html[data-theme="dark"] .docs-breadcrumbs a {
    color: #e6edf5 !important;
}
html[data-theme="dark"] .docs-overview-h,
html[data-theme="dark"] .docs-tree-link {
    color: #c5d0dc !important;
}
html[data-theme="dark"] .docs-tree-link:hover {
    color: #8ec4e0 !important;
}
html[data-theme="dark"] .docs-recent li {
    border-bottom-color: #222c3d !important;
}

/* Ops expenses year — nested stats / legend on phones */
html[data-theme="dark"] .ops-year-stats .stat {
    background: transparent;
    border-color: transparent;
}
html[data-theme="dark"] .ops-year-toggle--off {
    background: var(--surface);
    color: var(--page-text);
    border-color: var(--field-border);
}
html[data-theme="dark"] .ops-year-legend {
    color: #cbd5e1;
}
html[data-theme="dark"] .ops-year-tip {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .ops-year-tip-ym { color: #e2e8f0; }
html[data-theme="dark"] .ops-year-tip-row > span,
html[data-theme="dark"] .ops-year-tip-seg > span,
html[data-theme="dark"] .ops-year-tip-part > span { color: #e2e8f0; }
html[data-theme="dark"] .ops-year-tip-row.is-income > strong { color: #4ade80; }
html[data-theme="dark"] .ops-year-tip-row.is-expense > strong { color: #f87171; }
html[data-theme="dark"] .ops-year-tip-row.is-net { border-top-color: #334155; }
html[data-theme="dark"] .ops-year-tip-row.is-net > span { color: #e2e8f0; }
html[data-theme="dark"] .ops-year-tip-row.is-net.is-pos > strong { color: #4ade80; }
html[data-theme="dark"] .ops-year-tip-row.is-net.is-neg > strong { color: #f87171; }
html[data-theme="dark"] .ops-year-tip-row.is-net.is-zero > strong { color: #94a3b8; }
html[data-theme="dark"] .ops-year-tip-calc { border-top-color: #334155; }
html[data-theme="dark"] .ops-year-tip-calc .is-income { color: #4ade80; }
html[data-theme="dark"] .ops-year-tip-calc .is-expense { color: #f87171; }
html[data-theme="dark"] .ops-year-tip-calc .is-net.is-pos { color: #4ade80; }
html[data-theme="dark"] .ops-year-tip-calc .is-net.is-neg { color: #f87171; }
html[data-theme="dark"] .ops-year-tip-calc .is-net.is-zero { color: #94a3b8; }
html[data-theme="dark"] .ops-year-tip-op { color: #94a3b8; }
html[data-theme="dark"] .ops-year-tip-seg.is-income > strong { color: #4ade80; }
html[data-theme="dark"] .ops-year-tip-seg.is-expense > strong { color: #f87171; }
html[data-theme="dark"] .ops-year-tip-parts { border-top-color: #334155; }
html[data-theme="dark"] .ops-year-tip-part.is-income > strong { color: #86efac; }
html[data-theme="dark"] .ops-year-tip-part.is-expense > strong { color: #fca5a5; }
html[data-theme="dark"] .ops-year-tip-extra { border-top-color: #334155; }
html[data-theme="dark"] .ops-year-tip-extra-h { color: #94a3b8; }
html[data-theme="dark"] .ops-year-detail-btn {
    background: var(--surface);
    color: #cbd5e1;
    border-color: var(--field-border);
}
html[data-theme="dark"] .ops-year-detail-btn:hover,
html[data-theme="dark"] .ops-year-detail-btn:focus-visible {
    color: #f1f5f9;
    background: #1e293b;
    border-color: #475569;
}
html[data-theme="dark"] .ops-year-detail-btn[aria-expanded="true"] {
    color: #5eead4;
    border-color: #0f766e;
    background: #042f2e;
}
html[data-theme="dark"] .ops-year-detail-row {
    border-bottom-color: #222c3d;
}
html[data-theme="dark"] .ops-payroll-info {
    color: #94a3b8;
}
html[data-theme="dark"] .ops-payroll-info:hover,
html[data-theme="dark"] .ops-payroll-info:focus {
    color: #e2e8f0;
}
html[data-theme="dark"] .ops-payroll-info:focus-visible {
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #64748b;
}
@media (max-width: 767px) {
    html[data-theme="dark"] .ops-year-stats .stat {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--surface-border);
    }
}

html[data-theme="dark"] .news-viewers-tip{background:#1e293b;border-color:#334155;color:#e2e8f0;box-shadow:0 12px 32px rgba(0,0,0,.45)}
html[data-theme="dark"] .news-viewers-col h4{color:#94a3b8}
html[data-theme="dark"] .news-viewers-col h4 span{color:#64748b}
html[data-theme="dark"] .news-viewers-col li{color:#e2e8f0}
html[data-theme="dark"] .news-viewers-col li.is-empty,
html[data-theme="dark"] .news-viewers-loading{color:#94a3b8}

html[data-theme="dark"] .yt-cal-grid{background:#1e293b;border-color:#334155}
html[data-theme="dark"] .yt-cal-nav-btn{background:#0f172a;border-color:#334155;color:#e2e8f0}
html[data-theme="dark"] .yt-cal-title{color:#f1f5f9}
html[data-theme="dark"] .yt-cal-month-total{color:#94a3b8}
html[data-theme="dark"] .yt-cal-month-total strong{color:#e2e8f0}
html[data-theme="dark"] .yt-cal-month-title{color:#e2e8f0}
html[data-theme="dark"] .yt-cal-weekday{color:#94a3b8;border-bottom-color:#334155}
html[data-theme="dark"] .yt-cal-day{border-color:#334155;background:#1e293b}
html[data-theme="dark"] .yt-cal-day.is-adjacent{background:#162032;color:#64748b}
html[data-theme="dark"] .yt-cal-day.is-weekend{background:#141c2b}
html[data-theme="dark"] .yt-cal-task{background:#273449;color:#e2e8f0;border-color:#3d4f66;box-shadow:none}
html[data-theme="dark"] .yt-cal-task:hover{background:#1e3a5f;border-color:#4b6280}
html[data-theme="dark"] .yt-cal-day.is-weekend .yt-cal-task{background:#1e293b;border-color:#3d4f66}
html[data-theme="dark"] .yt-cal-day.is-weekend .yt-cal-task:hover{background:#1e3a5f}
html[data-theme="dark"] .yt-cal-task-id{color:#7dd3fc}
html[data-theme="dark"] .yt-cal-task-time{color:#94a3b8;background:#1b2434;border-color:#3d4f66}
html[data-theme="dark"] .yt-cal-more{color:#93c5fd}
html[data-theme="dark"] .yt-cal-date{color:#f1f5f9}
html[data-theme="dark"] .yt-cal-day.is-adjacent .yt-cal-date{color:#64748b}
html[data-theme="dark"] .yt-cal-task-title{color:#e2e8f0}
html[data-theme="dark"] .yt-cal-task-logo-fallback{color:#94a3b8}
html[data-theme="dark"] .yt-cal-day-dialog{background:#1e293b;box-shadow:0 12px 40px rgba(0,0,0,.45)}
html[data-theme="dark"] .yt-cal-day-close{color:#94a3b8}
html[data-theme="dark"] .yt-cal-day-modal-title{color:#f1f5f9}
html[data-theme="dark"] .yt-cal-day-modal-total{color:#94a3b8}
html[data-theme="dark"] .yt-cal-day-item{color:#e2e8f0;box-shadow:inset 0 -1px 0 #334155}
html[data-theme="dark"] .yt-cal-day-item:hover{background:#1e3a5f}
html[data-theme="dark"] .yt-cal-day-item-id{color:#93c5fd}
html[data-theme="dark"] .yt-cal-day-item-time{color:#94a3b8;background:#1b2434;border-color:#3d4f66}
html[data-theme="dark"] .yt-cal-day-item-title{color:#e2e8f0}
html[data-theme="dark"] .yt-cal-badge.is-neutral{background:#334155;color:#94a3b8}
html[data-theme="dark"] .yt-cal-badge.is-under{background:#3f2e15;color:#fdba74}
html[data-theme="dark"] .yt-cal-badge.is-ok{background:#14532d;color:#86efac}
html[data-theme="dark"] .yt-cal-badge.is-over{background:#7f1d1d;color:#fca5a5}
html[data-theme="dark"] .yt-cal-badge.is-weekend{background:#1e3a5f;color:#93c5fd}
