/* O2 PRIME ROYAL KINGDOM — TWO COMPLETE THEME MODES
   Normal = warm parchment / ivory royal hall.
   Dark   = obsidian / antique gold royal hall.
   Loaded after style.css and royal-kingdom.css intentionally. */

:root {
  color-scheme: light;
  --purple: #94651c;
  --purple2: #c18a32;
  --purple-soft: #f7ecd2;
  --ink: #30271d;
  --muted: #756a5a;
  --line: #d9c9aa;
  --bg: #f3eee4;
  --white: #fffaf1;
  --green: #17633e;
  --green-soft: #e5f3e9;
  --orange: #87500c;
  --orange-soft: #fff0d3;
  --red: #993a35;
  --red-soft: #fbe9e7;
  --blue: #285b91;
  --blue-soft: #e8f1fb;
  --text-primary: #30271d;
  --text-secondary: #756a5a;
  --surface: #fffaf1;
  --surface-muted: #eee5d5;
  --table-head-bg: #eadfc9;
  --table-cell-bg: #fffaf1;
  --royal-black: #f3eee4;
  --royal-obsidian: #fffaf1;
  --royal-panel: #fffaf1;
  --royal-panel-2: #f2e8d7;
  --royal-gold: #94651c;
  --royal-gold-bright: #b17a22;
  --text: #30271d;
  --border: #d9c9aa;
  --accent: #a87422;
  --surface-2: #e5dac6;
  --panel: #fffaf1;
  --card: #fffaf1;
  --input-bg: #fffdf8;
  --ca-green: #17633e;
  --ca-red: #993a35;
  --mtd-border: #d9c9aa;
  --mtd-green: #17633e;
  --mtd-red: #993a35;
}

body:not(.dark-mode) {
  color-scheme: light;
  color: var(--text-primary) !important;
  background: var(--bg) !important;
}

body:not(.dark-mode) .app-shell { background: var(--bg) !important; color: var(--text-primary) !important; }
body:not(.dark-mode) .topbar {
  background: linear-gradient(180deg, #fffaf1 0%, #eee3cf 100%) !important;
  border-bottom: 1px solid #cdb487 !important;
  box-shadow: 0 5px 20px rgba(80, 56, 20, .10) !important;
}
body:not(.dark-mode) .topbar .brand {
  background: linear-gradient(135deg, #fffdf7, #f0e4cc) !important;
  border-color: #c7a96f !important;
  box-shadow: 0 4px 14px rgba(79, 55, 18, .10) !important;
}
body:not(.dark-mode) .topbar .brand-name { color: #493317 !important; }
body:not(.dark-mode) .topbar .brand-sub { color: #78664a !important; }
body:not(.dark-mode) .sidebar {
  background: linear-gradient(160deg, #fffaf0, #eee3cf) !important;
  border: 1px solid #d5c19a !important;
  box-shadow: 0 10px 28px rgba(80, 56, 20, .09) !important;
}
body:not(.dark-mode) .nav-label { color: #8a6a35 !important; }
body:not(.dark-mode) .nav-btn { color: #4d4030 !important; }
body:not(.dark-mode) .nav-btn .nav-icon { color: #9a702c !important; }
body:not(.dark-mode) .nav-btn:hover:not(.o2-disabled-nav) {
  color: #59370c !important;
  background: #f4e7ca !important;
  border-color: #d8bd86 !important;
}
body:not(.dark-mode) .nav-btn.active {
  color: #59370c !important;
  background: linear-gradient(100deg, #f4e3bd, #ead2a1) !important;
  border-color: #c49a4d !important;
  box-shadow: inset 3px 0 #a87422, 0 3px 10px rgba(94, 62, 16, .10) !important;
}
body:not(.dark-mode) .nav-btn.o2-disabled-nav { color: #8c8272 !important; opacity: 1 !important; }
body:not(.dark-mode) .sidebar-foot { color: #77694f !important; border-top-color: #d9c8a6 !important; }
body:not(.dark-mode) #mainContent,
body:not(.dark-mode) .content { color: var(--text-primary) !important; }
body:not(.dark-mode) .page-head h1,
body:not(.dark-mode) .panel-title,
body:not(.dark-mode) .task-title,
body:not(.dark-mode) .modal-head h2 { color: #49351c !important; }
body:not(.dark-mode) .page-head p,
body:not(.dark-mode) .panel-note,
body:not(.dark-mode) .note-row,
body:not(.dark-mode) .task-desc,
body:not(.dark-mode) .muted,
body:not(.dark-mode) .small.muted,
body:not(.dark-mode) .support-text { color: #756a5a !important; }
body:not(.dark-mode) .panel,
body:not(.dark-mode) .kpi,
body:not(.dark-mode) .task-card,
body:not(.dark-mode) .empty-card,
body:not(.dark-mode) .race-history,
body:not(.dark-mode) .modal,
body:not(.dark-mode) .note-card,
body:not(.dark-mode) .outbound-stat,
body:not(.dark-mode) .sa-stat-card {
  color: #30271d !important;
  background: linear-gradient(145deg, #fffdf8, #f2e8d7) !important;
  border-color: #d8c6a3 !important;
  box-shadow: 0 7px 20px rgba(84, 61, 27, .08), inset 0 1px rgba(255,255,255,.8) !important;
}
body:not(.dark-mode) .kpi-top { color: #75664f !important; }
body:not(.dark-mode) .kpi-value { color: #3e2c17 !important; }
body:not(.dark-mode) .kpi-foot { color: #756a5a !important; }
body:not(.dark-mode) .kpi-icon,
body:not(.dark-mode) .task-number {
  color: #754a0d !important;
  background: linear-gradient(135deg, #f4e5c5, #e6cf9f) !important;
  border-color: #d1b477 !important;
}
body:not(.dark-mode) .user-pill { background: #f6eddd !important; color: #49351c !important; border-color: #d8c6a3 !important; }
body:not(.dark-mode) .user-name { color: #49351c !important; }
body:not(.dark-mode) .user-role { color: #78664a !important; }
body:not(.dark-mode) .avatar { color: #fff8e8 !important; background: linear-gradient(135deg, #93631d, #603d12) !important; }
body:not(.dark-mode) .o2-toolbar-btn,
body:not(.dark-mode) .top-actions .btn-light,
body:not(.dark-mode) .top-actions .btn-outline,
body:not(.dark-mode) .btn-outline,
body:not(.dark-mode) .btn-light {
  color: #68460f !important;
  background: linear-gradient(180deg, #fffaf0, #eee0c4) !important;
  border: 1px solid #cdb17b !important;
  box-shadow: 0 2px 7px rgba(90, 65, 25, .08) !important;
}
body:not(.dark-mode) .btn-primary {
  color: #fffaf0 !important;
  background: linear-gradient(180deg, #b7802d, #855317) !important;
  border: 1px solid #d2ad68 !important;
}
body:not(.dark-mode) .btn-danger { color: #8e302c !important; background: #f9e4e1 !important; border-color: #e8b9b2 !important; }
body:not(.dark-mode) .btn-green { color: #155b38 !important; background: #e3f2e8 !important; border-color: #b9ddc5 !important; }

/* Normal mode — forms, task surfaces and tables */
body:not(.dark-mode) .field label { color: #6e542e !important; }
body:not(.dark-mode) input,
body:not(.dark-mode) select,
body:not(.dark-mode) textarea,
body:not(.dark-mode) .task-actions input,
body:not(.dark-mode) .task-actions textarea,
body:not(.dark-mode) .final-box input {
  color: #30271d !important;
  background: #fffdf8 !important;
  border-color: #d7c7a7 !important;
}
body:not(.dark-mode) input::placeholder,
body:not(.dark-mode) textarea::placeholder { color: #887c69 !important; opacity: 1; }
body:not(.dark-mode) option { color: #30271d !important; background: #fffdf8 !important; }
body:not(.dark-mode) .table-wrap { background: #fffaf1 !important; border-color: #d8c6a3 !important; }
body:not(.dark-mode) table,
body:not(.dark-mode) .table-wrap table,
body:not(.dark-mode) .table-wrap tbody,
body:not(.dark-mode) .table-wrap tr,
body:not(.dark-mode) .table-wrap td,
body:not(.dark-mode) .o2-data-table td {
  color: #30271d !important;
  background-color: #fffaf1 !important;
  border-bottom-color: #e4d8c1 !important;
}
body:not(.dark-mode) th,
body:not(.dark-mode) .table-wrap th,
body:not(.dark-mode) .o2-data-table th {
  color: #62461c !important;
  background: linear-gradient(180deg, #f4ead7, #e9dcc4) !important;
  border-bottom-color: #d2bd94 !important;
}
body:not(.dark-mode) tr:hover td { background: #f8f0e2 !important; }
body:not(.dark-mode) .o2-count-box {
  color: #30271d !important;
  background: linear-gradient(145deg, #fffdf8, #f0e5d1) !important;
  border-color: #d8c6a3 !important;
}
body:not(.dark-mode) .o2-count-box span,
body:not(.dark-mode) .o2-count-box small { color: #756a5a !important; }
body:not(.dark-mode) .o2-count-box b { color: #49351c !important; }
body:not(.dark-mode) .o2-data-toolbar { color: #30271d !important; }
body:not(.dark-mode) .empty-state,
body:not(.dark-mode) .empty-card,
body:not(.dark-mode) .loading { color: #756a5a !important; }
body:not(.dark-mode) .task-card .task-title,
body:not(.dark-mode) #agentDailyTasksRoot .panel-title { color: #49351c !important; }
body:not(.dark-mode) .task-desc,
body:not(.dark-mode) #agentDailyTasksRoot .panel-note,
body:not(.dark-mode) #agentDailyTasksRoot .small.muted { color: #756a5a !important; }
body:not(.dark-mode) .target-chip { background: #f5ecd9 !important; border-color: #decca6 !important; }
body:not(.dark-mode) .target-chip b { color: #755019 !important; }
body:not(.dark-mode) .target-chip span,
body:not(.dark-mode) .progress-info { color: #756a5a !important; }
body:not(.dark-mode) .progress-track,
body:not(.dark-mode) .sa-progress { background: #e5dac6 !important; }
body:not(.dark-mode) .task-meta { color: #655640 !important; }
body:not(.dark-mode) .final-box { border-top-color: #d8c6a3 !important; }
body:not(.dark-mode) details > summary { color: #5e451e !important; }
body:not(.dark-mode) .banner-warning { color: #765016 !important; background: #fff1d6 !important; border-color: #e8ce9a !important; }
body:not(.dark-mode) .banner-info { color: #28547e !important; background: #eaf2fb !important; border-color: #c5d8ed !important; }
body:not(.dark-mode) .banner-success { color: #175b39 !important; background: #e6f4e9 !important; border-color: #bbdec6 !important; }
body:not(.dark-mode) .banner-danger { color: #8c302d !important; background: #fae8e5 !important; border-color: #e9c0ba !important; }

/* Normal mode — status chips use dark text on light surfaces. */
body:not(.dark-mode) .status-green { color: #165b38 !important; background: #e2f2e7 !important; border-color: #b9ddc4 !important; }
body:not(.dark-mode) .status-orange { color: #80500c !important; background: #fff0d2 !important; border-color: #ead09e !important; }
body:not(.dark-mode) .status-red { color: #922f2b !important; background: #fbe7e5 !important; border-color: #e9bab4 !important; }
body:not(.dark-mode) .status-blue { color: #285889 !important; background: #e6f0fb !important; border-color: #bfd2e9 !important; }
body:not(.dark-mode) .status-purple { color: #604080 !important; background: #f0e8f8 !important; border-color: #d7c5e8 !important; }
body:not(.dark-mode) .status-gray { color: #5e564b !important; background: #eee8dd !important; border-color: #d9cebc !important; }
body:not(.dark-mode) .filter-chip { color: #67450f !important; background: #fff3dc !important; border-color: #e6d0a7 !important; }
body:not(.dark-mode) .attendance-view-switch { background: #eee4d2 !important; border-color: #d8c6a3 !important; }
body:not(.dark-mode) .attendance-view-switch button { color: #66563e !important; }
body:not(.dark-mode) .attendance-view-switch button.active { color: #fffaf0 !important; background: linear-gradient(120deg, #a96d20, #c18a32) !important; }
body:not(.dark-mode) #attendanceTable .attendance-matrix-table thead th,
body:not(.dark-mode) #attendanceTable .attendance-matrix-table thead th:first-child,
body:not(.dark-mode) #attendanceTable .attendance-matrix-table tbody th {
  color: #5f4317 !important;
  background: #ead9b7 !important;
  border-color: #d1bd97 !important;
}
body:not(.dark-mode) #attendanceTable .attendance-matrix-table tbody td { color: #30271d !important; background: #fffaf1 !important; }

/* DARK MODE — obsidian panels, gold accents, warm ivory text. */
body.dark-mode {
  color-scheme: dark;
  --purple: #d0a14d;
  --purple2: #f0c46c;
  --purple-soft: #3b2d17;
  --ink: #f1e8d8;
  --muted: #b7aa95;
  --line: #51422c;
  --bg: #100f0d;
  --white: #211c16;
  --green: #bde8cb;
  --green-soft: #1a3d2b;
  --orange: #ffdf9c;
  --orange-soft: #493417;
  --red: #ffc4c4;
  --red-soft: #4a2024;
  --blue: #c2dfff;
  --blue-soft: #1c3447;
  --text-primary: #f1e8d8;
  --text-secondary: #b7aa95;
  --surface: #211c16;
  --surface-muted: #2a231a;
  --table-head-bg: #342919;
  --table-cell-bg: #211c16;
  --royal-black: #100f0d;
  --royal-obsidian: #181511;
  --royal-panel: #211c16;
  --royal-panel-2: #2a231a;
  --royal-gold: #c9a45b;
  --royal-gold-bright: #f4d28a;
  --text: #f1e8d8;
  --border: #51422c;
  --accent: #d0a14d;
  --surface-2: #3b3327;
  --panel: #211c16;
  --card: #211c16;
  --input-bg: #15130f;
  --ca-green: #bde8cb;
  --ca-red: #ffc4c4;
  --mtd-border: #51422c;
  --mtd-green: #bde8cb;
  --mtd-red: #ffc4c4;
  background: #100f0d !important;
  color: #f1e8d8 !important;
}
body.dark-mode .app-shell { background: #100f0d !important; color: #f1e8d8 !important; }
body.dark-mode .topbar { background: linear-gradient(180deg, #211b13, #13110e 88%) !important; border-color: #5b482c !important; }
body.dark-mode .topbar .brand { background: linear-gradient(135deg, #100e0a, #302313) !important; border-color: #765a2d !important; }
body.dark-mode .topbar .brand-name { color: #f6e5be !important; }
body.dark-mode .topbar .brand-sub { color: #b7a88e !important; }
body.dark-mode .sidebar { background: linear-gradient(155deg, #2a2116, #171511 72%) !important; border-color: #5a472b !important; }
body.dark-mode .nav-label { color: #c8a96b !important; }
body.dark-mode .nav-btn { color: #d4c6ae !important; }
body.dark-mode .nav-btn .nav-icon { color: #d5ae63 !important; }
body.dark-mode .nav-btn:hover:not(.o2-disabled-nav) { color: #ffe2a1 !important; background: rgba(190,145,62,.14) !important; border-color: rgba(200,161,91,.35) !important; }
body.dark-mode .nav-btn.active { color: #ffe2a1 !important; background: linear-gradient(100deg, rgba(113,73,24,.68), rgba(65,45,20,.68)) !important; border-color: #8b6a36 !important; }
body.dark-mode .nav-btn.o2-disabled-nav { color: #988b75 !important; opacity: 1 !important; }
body.dark-mode .sidebar-foot { color: #a99b83 !important; border-top-color: #51422c !important; }
body.dark-mode #mainContent,
body.dark-mode .content { color: #f1e8d8 !important; }
body.dark-mode .page-head h1,
body.dark-mode .panel-title,
body.dark-mode .task-title,
body.dark-mode .modal-head h2 { color: #f0dfba !important; }
body.dark-mode .page-head p,
body.dark-mode .panel-note,
body.dark-mode .note-row,
body.dark-mode .task-desc,
body.dark-mode .muted,
body.dark-mode .small.muted,
body.dark-mode .support-text { color: #b7aa96 !important; }
body.dark-mode .panel,
body.dark-mode .kpi,
body.dark-mode .task-card,
body.dark-mode .empty-card,
body.dark-mode .race-history,
body.dark-mode .modal,
body.dark-mode .note-card,
body.dark-mode .outbound-stat,
body.dark-mode .sa-stat-card {
  color: #f1e8d8 !important;
  background: linear-gradient(145deg, #292219, #191713) !important;
  border-color: #57452b !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 1px rgba(255,230,182,.04) !important;
}
body.dark-mode .kpi-top { color: #c7b99e !important; }
body.dark-mode .kpi-value { color: #fff0d1 !important; }
body.dark-mode .kpi-foot { color: #b7aa96 !important; }
body.dark-mode .kpi-icon,
body.dark-mode .task-number { color: #f5d48b !important; background: linear-gradient(135deg,#58401e,#2a1d0c) !important; border-color: #6c512c !important; }
body.dark-mode .user-pill { background: #211b13 !important; border-color: #5b482c !important; color: #f4e6cb !important; }
body.dark-mode .user-name { color: #f4e6cb !important; }
body.dark-mode .user-role { color: #b9a47d !important; }
body.dark-mode .avatar { color: #ffe2a0 !important; background: linear-gradient(135deg,#80551d,#38230d) !important; }
body.dark-mode .o2-toolbar-btn,
body.dark-mode .top-actions .btn-light,
body.dark-mode .top-actions .btn-outline,
body.dark-mode .btn-outline,
body.dark-mode .btn-light { color: #e9c577 !important; background: linear-gradient(180deg,#342a1b,#221a10) !important; border-color: #6a512c !important; }
body.dark-mode .btn-primary { color: #251908 !important; background: linear-gradient(180deg,#f1d18a,#c38a35 56%,#8d5a21) !important; border-color: #e6bf70 !important; }
body.dark-mode .btn-danger { color: #ffd1ce !important; background: #421e20 !important; border-color: #74343a !important; }
body.dark-mode .btn-green { color: #c7eed4 !important; background: #193b2a !important; border-color: #2e6548 !important; }
body.dark-mode .field label { color: #d0b77f !important; }
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .task-actions input,
body.dark-mode .task-actions textarea,
body.dark-mode .final-box input { color: #f1e8d8 !important; background: #15130f !important; border-color: #5b482c !important; }
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: #a99b83 !important; opacity: 1; }
body.dark-mode option { color: #f1e8d8 !important; background: #211c16 !important; }
body.dark-mode .table-wrap { background: #181612 !important; border-color: #57452b !important; }
body.dark-mode table,
body.dark-mode .table-wrap table,
body.dark-mode .table-wrap tbody,
body.dark-mode .table-wrap tr,
body.dark-mode .table-wrap td,
body.dark-mode .o2-data-table td { color: #e8dfd0 !important; background-color: #211c16 !important; border-bottom-color: rgba(183,145,82,.22) !important; }
body.dark-mode th,
body.dark-mode .table-wrap th,
body.dark-mode .o2-data-table th { color: #ebca83 !important; background: linear-gradient(180deg,#382c1b,#292116) !important; border-bottom-color: #6c512c !important; }
body.dark-mode tr:hover td { background: #302719 !important; }
body.dark-mode .o2-count-box { color: #f1e8d8 !important; background: linear-gradient(145deg,#302719,#211c16) !important; border-color: #57452b !important; }
body.dark-mode .o2-count-box span,
body.dark-mode .o2-count-box small { color: #b7aa96 !important; }
body.dark-mode .o2-count-box b { color: #f5dfb5 !important; }
body.dark-mode .o2-data-toolbar { color: #f1e8d8 !important; }
body.dark-mode .empty-state,
body.dark-mode .empty-card,
body.dark-mode .loading { color: #c4b7a2 !important; }
body.dark-mode .task-card .task-title,
body.dark-mode #agentDailyTasksRoot .panel-title { color: #f0dfba !important; }
body.dark-mode .task-desc,
body.dark-mode #agentDailyTasksRoot .panel-note,
body.dark-mode #agentDailyTasksRoot .small.muted { color: #b7aa96 !important; }
body.dark-mode .target-chip { background: #302719 !important; border-color: #6b522d !important; }
body.dark-mode .target-chip b { color: #f4d28a !important; }
body.dark-mode .target-chip span,
body.dark-mode .progress-info { color: #b7aa96 !important; }
body.dark-mode .progress-track,
body.dark-mode .sa-progress { background: #3b3327 !important; }
body.dark-mode .task-meta { color: #d3c2a4 !important; }
body.dark-mode .final-box { border-top-color: #51422c !important; }
body.dark-mode details > summary { color: #f0dcae !important; }
body.dark-mode .banner-warning { color: #f1d69d !important; background: #3b2c17 !important; border-color: #705322 !important; }
body.dark-mode .banner-info { color: #c8d9e7 !important; background: #1c303b !important; border-color: #3a566a !important; }
body.dark-mode .banner-success { color: #c2e7d0 !important; background: #183b2a !important; border-color: #356348 !important; }
body.dark-mode .banner-danger { color: #ffc4c4 !important; background: #4a2024 !important; border-color: #74343a !important; }
body.dark-mode .status-green { color: #bde8cb !important; background: #1a3d2b !important; border-color: #356348 !important; }
body.dark-mode .status-orange { color: #ffdf9c !important; background: #4a3418 !important; border-color: #705322 !important; }
body.dark-mode .status-red { color: #ffc4c4 !important; background: #4a2024 !important; border-color: #74343a !important; }
body.dark-mode .status-blue { color: #c2dfff !important; background: #1c3447 !important; border-color: #3a566a !important; }
body.dark-mode .status-purple { color: #e4d1ff !important; background: #382447 !important; border-color: #66457d !important; }
body.dark-mode .status-gray { color: #d4c9b8 !important; background: #39342c !important; border-color: #5b5143 !important; }
body.dark-mode .filter-chip { color: #ffd98a !important; background: #342a1b !important; border-color: #6f5427 !important; }
body.dark-mode .attendance-view-switch { background: #211c16 !important; border-color: #5b482c !important; }
body.dark-mode .attendance-view-switch button { color: #c7b99e !important; }
body.dark-mode .attendance-view-switch button.active { color: #251908 !important; background: linear-gradient(120deg,#d69a3f,#f1c66d) !important; }
body.dark-mode #attendanceTable .attendance-matrix-table thead th,
body.dark-mode #attendanceTable .attendance-matrix-table thead th:first-child,
body.dark-mode #attendanceTable .attendance-matrix-table tbody th { color: #f4dba7 !important; background: #382c1b !important; border-color: #6c512c !important; }
body.dark-mode #attendanceTable .attendance-matrix-table tbody td { color: #f1e8d8 !important; background: #211c16 !important; }

/* Strong contrast for task/status content in both modes, including nested details. */
#taskManagementPage,
#taskMonitoringPage,
#agentDailyTasksRoot { color: var(--text-primary) !important; }
#taskManagementPage .panel,
#taskMonitoringPage .panel,
#agentDailyTasksRoot > .panel,
#agentDailyTasksRoot section.panel { color: var(--text-primary) !important; }
#taskManagementPage .task-template-table td,
#taskMonitoringPage .monitoring-task-table td,
#agentDailyTasksRoot .table-wrap td { color: var(--text-primary) !important; }
#taskManagementPage .task-template-table th,
#taskMonitoringPage .monitoring-task-table th,
#agentDailyTasksRoot .table-wrap th { color: var(--royal-gold-bright) !important; }
#taskManagementPage .task-template-table .muted,
#taskMonitoringPage .muted,
#agentDailyTasksRoot .muted { color: var(--text-secondary) !important; }
#agentDailyTasksRoot .banner { color: var(--text-primary); }
#agentDailyTasksRoot details,
#agentDailyTasksRoot summary { color: var(--text-primary); }

/* Attendance matrix uses inline style rules; use stronger selectors so both themes stay legible. */
body:not(.dark-mode) #attendanceTable .attendance-matrix-table thead th,
body:not(.dark-mode) #attendanceTable .attendance-matrix-table thead th:first-child,
body:not(.dark-mode) #attendanceTable .attendance-matrix-table tbody th {
  color: #5f4317 !important; background: #ead9b7 !important;
}
body.dark-mode #attendanceTable .attendance-matrix-table thead th,
body.dark-mode #attendanceTable .attendance-matrix-table thead th:first-child,
body.dark-mode #attendanceTable .attendance-matrix-table tbody th {
  color: #f4dba7 !important; background: #382c1b !important;
}

/* Shared feedback and focus states */
body:not(.dark-mode) .toast { color: #fffaf1 !important; }
body.dark-mode .toast { color: #f7ecd7 !important; }
body:not(.dark-mode) :focus-visible { outline: 3px solid rgba(159,111,37,.38); outline-offset: 2px; }
body.dark-mode :focus-visible { outline: 3px solid rgba(232,190,105,.42); outline-offset: 2px; }

@media (max-width: 760px) {
  body:not(.dark-mode) .sidebar { background: linear-gradient(100deg,#fffaf0,#eee3cf) !important; }
  body.dark-mode .sidebar { background: linear-gradient(100deg,#2a2116,#171511) !important; }
}
