/* Generated by tools/dark_css.py from main.css - do not edit by hand. */
html[data-mode="dark"] {
  --bg: #121212;
  --text: #ffffff;
  --muted: #949494;
  --icon: #b8b8b8;
  --line: #313131;
  --active: #5a5a5a;
  --blue: #a8c7fa;
  --blue-deep: #d3e3fd;
  --compose: #ffffff;
  --selected: #3d4a5c;
  --danger: #f2b8b5;
  --star: #fdd663;
  --shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 6px 2px rgba(0,0,0,.4);
}
html[data-mode="dark"] .icon-btn:hover, html[data-mode="dark"] .rail-btn:hover, html[data-mode="dark"] .avatar-btn:hover {
  background: rgba(255,255,255,0.08);
}
html[data-mode="dark"] .logo {
  color: #a0a0a0;
}
html[data-mode="dark"] .search {
  background: #474848;
}
html[data-mode="dark"] .search:focus-within, html[data-mode="dark"] .search.search-open {
  background: #282828;
  box-shadow: 0 1px 1px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.43);
}
html[data-mode="dark"] .search.search-open {
  box-shadow: 0 1px 2px rgba(0,0,0,0.66);
}
html[data-mode="dark"] .search-clear:hover {
  background: rgba(255,255,255,0.08);
}
html[data-mode="dark"] .search-chip {
  background: #5a5a5a;
  color: #ffffff;
}
html[data-mode="dark"] .search-chip button {
  color: #ffffff;
}
html[data-mode="dark"] .search-chip button:hover {
  background: rgba(168,199,250,0.12);
}
html[data-mode="dark"] .stage {
  background: #282828;
}
html[data-mode="dark"] .rail-btn.on {
  background: rgba(168,199,250,0.12);
}
html[data-mode="dark"] .rail-glyph.cal {
  background: linear-gradient(180deg, #4c8df5 0%, #a8c7fa 100%);
  box-shadow: 0 1px 2px rgba(168,199,250,0.45);
  color: #1f1f1f;
}
html[data-mode="dark"] .rail-glyph.person::before {
  background: #a8c7fa;
}
html[data-mode="dark"] .compose-btn {
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
}
html[data-mode="dark"] .compose-btn:hover {
  background: #e8e8e8;
}
html[data-mode="dark"] .nav-item:hover, html[data-mode="dark"] .more-btn:hover, html[data-mode="dark"] .nav-row:hover .nav-item, html[data-mode="dark"] .nav-row.menu-open .nav-item {
  background: rgba(0,0,0,0.26);
}
html[data-mode="dark"] .nav-caret:hover {
  background: rgba(0,0,0,0.30);
}
html[data-mode="dark"] .nav-manage {
  background: #282828;
}
html[data-mode="dark"] .nav-manage:hover {
  background: #444444;
}
html[data-mode="dark"] .nav-row:hover:has(.nav-item.active) .nav-manage, html[data-mode="dark"] .nav-row:focus-within:has(.nav-item.active) .nav-manage, html[data-mode="dark"] .nav-row.menu-open:has(.nav-item.active) .nav-manage {
  background: #3a3a3a;
}
html[data-mode="dark"] .nav-row:hover:has(.nav-item.active) .nav-manage:hover, html[data-mode="dark"] .nav-row:focus-within:has(.nav-item.active) .nav-manage:hover, html[data-mode="dark"] .nav-row.menu-open:has(.nav-item.active) .nav-manage:hover {
  background: #5a5a5a;
}
html[data-mode="dark"] .nav-section {
  color: #b8b8b8;
}
html[data-mode="dark"] .trash-note {
  color: #b8b8b8;
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,0.096);
}
html[data-mode="dark"] .nav-add {
  color: #ffffff;
}
html[data-mode="dark"] .nav-add:hover {
  background: rgba(0,0,0,0.26);
}
html[data-mode="dark"] .progress {
  background: #3a3a3a;
}
html[data-mode="dark"] .select-caret:hover {
  background: rgba(255,255,255,0.08);
}
html[data-mode="dark"] .mail-tab {
  color: #b8b8b8;
}
html[data-mode="dark"] .mail-tab:hover {
  background: rgba(0,0,0,0.24);
}
html[data-mode="dark"] .row {
  background: #141414;
  border-bottom: 1px solid rgba(255,255,255,0.096);
}
html[data-mode="dark"] .row:hover {
  box-shadow: inset 1px 0 0 #3a3a3a, inset -1px 0 0 #3a3a3a, 0 1px 2px rgba(0,0,0,0.66), 0 1px 3px 1px rgba(0,0,0,0.33);
}
html[data-mode="dark"] .nav-item.drop-target, html[data-mode="dark"] .mail-tab.drop-target {
  background: #5a5a5a;
}
html[data-mode="dark"] .drag-ghost {
  background: #282828;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.62);
}
html[data-mode="dark"] .row.unread {
  background: #282828;
}
html[data-mode="dark"] .row.unread .sender, html[data-mode="dark"] .row.unread .subject, html[data-mode="dark"] .row.unread .date-label {
  color: #ffffff;
}
html[data-mode="dark"] .row.cursor {
  outline: 1px solid #5a5a5a;
}
html[data-mode="dark"] .draft-tag {
  color: #f2b8b5;
}
html[data-mode="dark"] .row.snoozed .date-label, html[data-mode="dark"] .row.unread.snoozed .date-label {
  color: #f2b8b5;
}
html[data-mode="dark"] .star {
  color: #6d6d6d;
}
html[data-mode="dark"] .important {
  color: #6d6d6d;
}
html[data-mode="dark"] .clip {
  color: #a0a0a0;
}
html[data-mode="dark"] .msg.collapsed {
  border-top: 1px solid #313131;
}
html[data-mode="dark"] .msg.collapsed:hover {
  background: #1e1e1e;
}
html[data-mode="dark"] .details {
  background: #1e1e1e;
  color: #e3e3e3;
}
html[data-mode="dark"] .attach-block {
  border-top: 1px dotted #5a5a5a;
}
html[data-mode="dark"] .attach-label {
  color: #ffffff;
}
html[data-mode="dark"] .attach-all {
  color: #a0a0a0;
}
html[data-mode="dark"] .attach {
  border: 1px solid #5a5a5a;
  background: #282828;
}
html[data-mode="dark"] .attach img, html[data-mode="dark"] .attach .pdf-thumb {
  background: #303030;
}
html[data-mode="dark"] .attach-foot {
  background: #3a3a3a;
  border-top: 1px solid #5a5a5a;
}
html[data-mode="dark"] .attach-name {
  color: #ffffff;
}
html[data-mode="dark"] .type-ico {
  color: #a0a0a0;
}
html[data-mode="dark"] .attach-image .attach-hover {
  background: rgba(0,0,0,1.00);
}
html[data-mode="dark"] .attach-file .attach-hover {
  background: rgba(40,40,40,0.97);
  color: #ffffff;
}
html[data-mode="dark"] .attach-hover-size {
  color: #a0a0a0;
}
html[data-mode="dark"] .eml-body {
  color: #ffffff;
}
html[data-mode="dark"] .scrim.scrim-preview {
  background: rgba(0,0,0,0.92);
}
html[data-mode="dark"] .reply-btn {
  border: 1px solid #8a8a8a;
  background: #282828;
  color: #b8b8b8;
}
html[data-mode="dark"] .reply-btn:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .compose {
  background: #282828;
  box-shadow: 0 8px 10px 1px rgba(0,0,0,0.25), 0 3px 14px 2px rgba(0,0,0,0.22), 0 5px 5px -3px rgba(0,0,0,0.36);
}
html[data-mode="dark"] .compose-head {
  background: #141414;
  color: #ffffff;
}
html[data-mode="dark"] .compose-head .icon-btn, html[data-mode="dark"] .compose-head button {
  color: #b8b8b8;
}
html[data-mode="dark"] .field-row {
  border-bottom: 1px solid #313131;
}
html[data-mode="dark"] .from-pick {
  color: #ffffff;
}
html[data-mode="dark"] .from-caret {
  color: #a0a0a0;
}
html[data-mode="dark"] .chip {
  background: #444444;
}
html[data-mode="dark"] .chip button {
  color: #b8b8b8;
}
html[data-mode="dark"] .chip button:hover {
  background: rgba(0,0,0,0.32);
}
html[data-mode="dark"] .suggest {
  background: #282828;
  box-shadow: 0 2px 8px rgba(0,0,0,0.43);
}
html[data-mode="dark"] .suggest button {
  background: #282828;
}
html[data-mode="dark"] .suggest button:hover, html[data-mode="dark"] .suggest button.active {
  background: #3a3a3a;
}
html[data-mode="dark"] .file-chip {
  border: 1px solid #5a5a5a;
  color: #ffffff;
  background: #282828;
}
html[data-mode="dark"] .file-chip .material-symbols-outlined {
  color: #a0a0a0;
}
html[data-mode="dark"] .file-chip-size {
  color: #a0a0a0;
}
html[data-mode="dark"] .file-chip-bar {
  border: 1px solid #5d8fd8;
  background: #282828;
}
html[data-mode="dark"] .file-chip-bar span {
  background: #a8c7fa;
}
html[data-mode="dark"] .file-chip.uploading .file-chip-name {
  color: #a0a0a0;
}
html[data-mode="dark"] .file-chip button {
  color: #a0a0a0;
}
html[data-mode="dark"] .file-chip button:hover {
  background: #3a3a3a;
  color: #ffffff;
}
html[data-mode="dark"] .compose-foot {
  background-color: #282828;
}
html[data-mode="dark"] .send-btn {
  color: #1f1f1f;
}
html[data-mode="dark"] .toast {
  background: #e3e3e3;
  box-shadow: 0 3px 5px rgba(0,0,0,0.36);
  color: #1f1f1f;
}
html[data-mode="dark"] .mail-notice {
  background: #282828;
  box-shadow: 0 8px 24px rgba(0,0,0,0.62), 0 1px 3px rgba(0,0,0,0.44);
}
html[data-mode="dark"] .mail-notice span {
  color: #b8b8b8;
}
html[data-mode="dark"] .cal-alarm {
  box-shadow: 0 6px 18px rgba(0,0,0,0.50);
}
html[data-mode="dark"] .cal-alarm-meta {
  color: #b8b8b8;
}
html[data-mode="dark"] .cal-alarm-row select {
  background: #e3e3e3;
  color: #1f1f1f;
}
html[data-mode="dark"] .scrim {
  background: rgba(0,0,0,0.65);
}
html[data-mode="dark"] .dialog {
  background: #282828;
  box-shadow: 0 8px 28px rgba(0,0,0,0.62);
}
html[data-mode="dark"] .dialog.confirm p {
  color: #ffffff;
}
html[data-mode="dark"] .dialog.ask p {
  color: #e3e3e3;
}
html[data-mode="dark"] .dialog.ask .btn:focus-visible {
  box-shadow: 0 0 0 2px #282828, 0 0 0 4px #a8c7fa;
}
html[data-mode="dark"] .dialog h2 {
  color: #ffffff;
}
html[data-mode="dark"] .dialog > label:not(.check-row):not(.check-line) {
  color: #b8b8b8;
}
html[data-mode="dark"] .dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), html[data-mode="dark"] .dialog textarea, html[data-mode="dark"] .dialog select {
  border: 1px solid #8a8a8a;
  background-color: #282828;
}
html[data-mode="dark"] .dialog .check-row, html[data-mode="dark"] .dialog .check-line {
  color: #ffffff;
}
html[data-mode="dark"] .dialog .form-stack + .form-stack {
  border-top: 1px solid #313131;
}
html[data-mode="dark"] .dialog hr {
  border-top: 1px solid #313131;
}
html[data-mode="dark"] .dialog .colors button.on {
  box-shadow: inset 0 0 0 2px #282828;
  border-color: #e3e3e3;
}
html[data-mode="dark"] .popover.search-panel {
  box-shadow: 0 8px 10px rgba(0,0,0,0.62);
}
html[data-mode="dark"] .adv-row > span {
  color: #b8b8b8;
}
html[data-mode="dark"] .adv-row input, html[data-mode="dark"] .adv-row select {
  border-bottom: 1px solid #6d6d6d;
}
html[data-mode="dark"] .adv-checks label {
  color: #ffffff;
}
html[data-mode="dark"] .popover.search-panel .btn.primary {
  color: #1f1f1f;
}
html[data-mode="dark"] .picker-head button {
  color: #b8b8b8;
}
html[data-mode="dark"] .picker-head button:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .picker-week span {
  color: #b8b8b8;
}
html[data-mode="dark"] .picker-days button:hover:not(:disabled) {
  background: #3a3a3a;
}
html[data-mode="dark"] .picker-days button.on, html[data-mode="dark"] .picker-days button.on.today {
  color: #1f1f1f;
}
html[data-mode="dark"] .picker-days button:disabled {
  color: #6d6d6d;
}
html[data-mode="dark"] .dialog-actions {
  background: #282828;
  border-top: 1px solid #313131;
  box-shadow: 0 -6px 12px rgba(40,40,40,0.9);
}
html[data-mode="dark"] .btn:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .btn.primary {
  color: #1f1f1f;
}
html[data-mode="dark"] .btn.busy::before {
  border-top-color: #282828;
}
html[data-mode="dark"] .colors button {
  border: 2px solid #282828;
  box-shadow: 0 0 0 1px #3a3a3a;
}
html[data-mode="dark"] .popover {
  background: #282828;
  box-shadow: 0 2px 8px rgba(0,0,0,0.43);
}
html[data-mode="dark"] .popover button, html[data-mode="dark"] .menu-row {
  background: #282828;
}
html[data-mode="dark"] .popover button:hover, html[data-mode="dark"] .menu-row:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .snooze-title {
  color: #b8b8b8;
}
html[data-mode="dark"] .snooze-when {
  color: #a0a0a0;
}
html[data-mode="dark"] .popover .material-symbols-outlined {
  color: #b8b8b8;
}
html[data-mode="dark"] .menu-sep {
  background: #444444;
}
html[data-mode="dark"] .source-view {
  background: #1e1e1e;
}
html[data-mode="dark"] .account-card {
  border-bottom: 1px solid #313131;
}
html[data-mode="dark"] .popover.account-menu {
  box-shadow: 0 4px 8px 3px rgba(0,0,0,0.33), 0 1px 3px rgba(0,0,0,0.66);
}
html[data-mode="dark"] .popover.account-menu .account-id span {
  color: #b8b8b8;
}
html[data-mode="dark"] .popover button.busy {
  color: #b8b8b8;
}
html[data-mode="dark"] .popover button.busy::before {
  border: 2px solid #5a5a5a;
}
html[data-mode="dark"] .settings {
  background: #282828;
}
html[data-mode="dark"] .settings-bar {
  background: #282828;
}
html[data-mode="dark"] .settings-tabs {
  background: #282828;
}
html[data-mode="dark"] .settings-tab {
  color: #b8b8b8;
}
html[data-mode="dark"] .settings-tab:hover {
  background: rgba(168,199,250,0.06);
}
html[data-mode="dark"] .settings-photo .photo-btn {
  border: 2px solid #282828;
  background: #3a3a3a;
  color: #a8c7fa;
}
html[data-mode="dark"] .settings-photo .photo-btn:hover {
  background: #5a5a5a;
}
html[data-mode="dark"] .settings-who span {
  color: #b8b8b8;
}
html[data-mode="dark"] .settings label {
  color: #b8b8b8;
}
html[data-mode="dark"] .settings input, html[data-mode="dark"] .settings select, html[data-mode="dark"] .settings textarea {
  border: 1px solid #8a8a8a;
  background-color: #282828;
}
html[data-mode="dark"] .sig-editor {
  border: 1px solid #8a8a8a;
  background: #282828;
}
html[data-mode="dark"] .sig-tools {
  background: #1e1e1e;
}
html[data-mode="dark"] .sig-tools .icon-btn.on {
  background: #5a5a5a;
  color: #ffffff;
}
html[data-mode="dark"] .contact-tools {
  background: #282828;
}
html[data-mode="dark"] .contact-tools input {
  background: #3a3a3a;
}
html[data-mode="dark"] .contact-item {
  background: #282828;
}
html[data-mode="dark"] .contact-item.active, html[data-mode="dark"] .contact-item:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .contact-form label {
  color: #b8b8b8;
}
html[data-mode="dark"] .contact-form input, html[data-mode="dark"] .contact-form textarea {
  border: 1px solid #8a8a8a;
  background: #282828;
}
html[data-mode="dark"] .meta-row {
  color: #e3e3e3;
}
html[data-mode="dark"] .cal-side {
  background: #282828;
}
html[data-mode="dark"] .cal-agenda {
  background: #282828;
}
html[data-mode="dark"] .cal-agenda-tabs button {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-agenda-tools input {
  background: #3a3a3a;
}
html[data-mode="dark"] .cal-agenda-day {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-fab-mini {
  background: #282828;
  color: #e3e3e3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.40);
}
html[data-mode="dark"] .cal-fab {
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  color: #1f1f1f;
}
html[data-mode="dark"] .cal-done-toggle {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-done-toggle:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .task-overdue {
  background: #282828;
  color: #f2b8b5;
}
html[data-mode="dark"] .cal-form-grid > div > label {
  color: #b8b8b8;
}
html[data-mode="dark"] .cal-priority-meta {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-percent {
  border: 1px solid #313131;
  background: #303030;
}
html[data-mode="dark"] .cal-percent-range {
  accent-color: #81c995;
}
html[data-mode="dark"] .cal-percent-meta {
  color: #e3e3e3;
}
html[data-mode="dark"] .cal-cat-chip {
  background: #3a3a3a;
  color: #e3e3e3;
}
html[data-mode="dark"] .cal-cat-chip button {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-cat-add {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-cat-menu {
  background: #282828;
  border: 1px solid #5a5a5a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.44);
}
html[data-mode="dark"] .cal-cat-option {
  background: #282828;
  color: #ffffff;
}
html[data-mode="dark"] .cal-cat-option:hover, html[data-mode="dark"] .cal-cat-option.on {
  background: #3a3a3a;
}
html[data-mode="dark"] .dialog .cal-url-remove {
  border: 1px solid #5a5a5a;
  background: #282828;
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-invite {
  border: 1px solid #8a8a8a;
  background: #282828;
}
html[data-mode="dark"] .cal-invite.readonly {
  background: #303030;
}
html[data-mode="dark"] .cal-attendee-chip {
  background: #3a3a3a;
  color: #e3e3e3;
}
html[data-mode="dark"] .cal-attendee-chip button {
  color: #a0a0a0;
}
html[data-mode="dark"] .invite-card {
  border: 1px solid #313131;
  background: #282828;
}
html[data-mode="dark"] .invite-lead {
  color: #e3e3e3;
}
html[data-mode="dark"] .invite-summary {
  background: #3a3a3a;
}
html[data-mode="dark"] .invite-summary span {
  color: #a0a0a0;
}
html[data-mode="dark"] .invite-summary strong {
  color: #ffffff;
}
html[data-mode="dark"] .invite-btn {
  border: 1px solid #5a5a5a;
  background: #282828;
  color: #ffffff;
}
html[data-mode="dark"] .invite-reply-badge {
  background: #3a3a3a;
  color: #a8c7fa;
}
html[data-mode="dark"] .invite-reply-badge.accepted {
  background: #173a24;
  color: #81c995;
}
html[data-mode="dark"] .invite-reply-badge.declined {
  background: #3d1c1a;
  color: #f2b8b5;
}
html[data-mode="dark"] .invite-reply-badge.tentative {
  background: #3a2e05;
  color: #fdd663;
}
html[data-mode="dark"] .invite-organizer {
  color: #e3e3e3;
}
html[data-mode="dark"] .invite-organizer a {
  color: #a8c7fa;
}
html[data-mode="dark"] .invite-label {
  color: #a0a0a0;
}
html[data-mode="dark"] .invite-person {
  background: #3a3a3a;
  color: #e3e3e3;
}
html[data-mode="dark"] .invite-desc {
  color: #ffffff;
}
html[data-mode="dark"] .invite-links a {
  color: #a8c7fa;
}
html[data-mode="dark"] .invite-card.cancelled {
  border-color: #8c3a36;
}
html[data-mode="dark"] .invite-lead.invite-cancelled {
  color: #f2b8b5;
}
html[data-mode="dark"] .cal-group h3 {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-pick:hover {
  background: #444444;
}
html[data-mode="dark"] .cal-check.on {
  box-shadow: inset 0 0 0 2px #282828;
}
html[data-mode="dark"] .people-row {
  background: #282828;
}
html[data-mode="dark"] .people-row:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .popover hr {
  border-top: 1px solid #313131;
}
html[data-mode="dark"] .today-btn {
  border: 1px solid #5a5a5a;
  background: #282828;
}
html[data-mode="dark"] .cal-grid {
  border-top: 1px solid #313131;
}
html[data-mode="dark"] .cal-cell {
  border-right: 1px solid #313131;
  border-bottom: 1px solid #313131;
}
html[data-mode="dark"] .cal-cell.out {
  background: #303030;
}
html[data-mode="dark"] .cal-cell.today .num {
  color: #1f1f1f;
}
html[data-mode="dark"] .cal-views {
  border: 1px solid #5a5a5a;
}
html[data-mode="dark"] .cal-views button {
  background: #282828;
}
html[data-mode="dark"] .cal-views button.on {
  background: #3a3a3a;
}
html[data-mode="dark"] .cal-views button + button {
  border-left: 1px solid #5a5a5a;
}
html[data-mode="dark"] .week-head {
  border-bottom: 1px solid #313131;
}
html[data-mode="dark"] .week-day.today strong {
  color: #1f1f1f;
}
html[data-mode="dark"] .allday-row {
  border-bottom: 1px solid #313131;
}
html[data-mode="dark"] .allday-col {
  border-left: 1px solid #313131;
}
html[data-mode="dark"] .day-col {
  border-left: 1px solid #313131;
}
html[data-mode="dark"] .hour-slot {
  border-top: 1px solid #313131;
}
html[data-mode="dark"] .hour-slot:hover {
  background: rgba(168,199,250,0.04);
}
html[data-mode="dark"] .login-body {
  background: #1e1e1e;
}
html[data-mode="dark"] .login-card {
  background: #282828;
  border: 1px solid #313131;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 12px 32px rgba(0,0,0,0.22);
}
html[data-mode="dark"] .login-sub {
  color: #b8b8b8;
}
html[data-mode="dark"] .login-card label {
  color: #b8b8b8;
}
html[data-mode="dark"] .login-card input {
  border: 1px solid #5a5a5a;
  background: #282828;
}
html[data-mode="dark"] .login-card label.login-keep {
  color: #ffffff;
}
html[data-mode="dark"] .login-keep-hint {
  color: #a0a0a0;
}
html[data-mode="dark"] .form-error {
  background: #3d1c1a;
}
@media (min-width: 901px) {
html[data-mode="dark"] body.nav-collapsed .sidebar:hover, html[data-mode="dark"] body.nav-collapsed .sidebar:focus-within, html[data-mode="dark"] body.nav-collapsed.nav-peek .sidebar {
  box-shadow: 0 8px 10px rgba(0,0,0,0.33), 0 4px 16px rgba(0,0,0,0.44);
}
}
@media (max-width: 900px) {
html[data-mode="dark"] .sidebar.open {
  box-shadow: 0 8px 24px rgba(0,0,0,0.36);
}
}
html[data-mode="dark"] .pane-resize::after {
  background: #444444;
}
html[data-mode="dark"] .pane-empty .material-symbols-outlined {
  color: #6d6d6d;
}
html[data-mode="dark"] .row.open, html[data-mode="dark"] .row.open.unread {
  background: #3d4a5c;
}
html[data-mode="dark"] .row.open.checked {
  background: #4a5a70;
}
html[data-mode="dark"] .zone-caret {
  color: #b8b8b8;
}
html[data-mode="dark"] .zone-list {
  background: #282828;
  box-shadow: 0 2px 6px rgba(0,0,0,0.66), 0 6px 20px rgba(0,0,0,0.33);
}
html[data-mode="dark"] .zone-option.active {
  background: #3a3a3a;
}
html[data-mode="dark"] .zone-option.chosen.active {
  background: #3a3a3a;
}
html[data-mode="dark"] .zone-hint {
  color: #a0a0a0;
}
html[data-mode="dark"] .zone-empty {
  color: #a0a0a0;
}
html[data-mode="dark"] .tab-count-inbox {
  background: #a8c7fa;
}
html[data-mode="dark"] .search-chip-btn {
  border: 1px solid #8a8a8a;
  background: #282828;
  color: #ffffff;
}
html[data-mode="dark"] .search-chip-btn:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .search-chip-btn.on {
  background: #5a5a5a;
  border-color: #5a5a5a;
  color: #ffffff;
}
html[data-mode="dark"] .search-chip-btn.on:hover {
  background: #5a5a5a;
}
html[data-mode="dark"] .chip-x:hover {
  background: rgba(168,199,250,0.12);
}
html[data-mode="dark"] .search-chip-link:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .popover.chip-menu button.chosen {
  background: #3a3a3a;
}
html[data-mode="dark"] .chip-dates label {
  color: #b8b8b8;
}
html[data-mode="dark"] .chip-dates input {
  border: 1px solid #6d6d6d;
}
html[data-mode="dark"] .chip-to input {
  border-bottom: 1px solid #6d6d6d;
}
html[data-mode="dark"] .chip-person.active {
  background: #3a3a3a;
}
html[data-mode="dark"] .chip-person-text span {
  color: #a0a0a0;
}
html[data-mode="dark"] .chip-empty {
  color: #a0a0a0;
}
html[data-mode="dark"] .popover.account-menu .account-usage {
  background: #3a3a3a;
}
html[data-mode="dark"] .popover.account-menu .account-usage > .material-symbols-outlined {
  color: #b8b8b8;
}
html[data-mode="dark"] .usage-text {
  color: #ffffff;
}
html[data-mode="dark"] .usage-bar {
  background: #5a5a5a;
}
html[data-mode="dark"] .popover.account-menu .account-activity {
  color: #b8b8b8;
}
html[data-mode="dark"] .popover.account-menu .activity-link:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .sess-now {
  color: #81c995;
}
html[data-mode="dark"] .sess-you {
  background: #3a3a3a;
  color: #a8c7fa;
}
html[data-mode="dark"] .btn.sess-out:hover, html[data-mode="dark"] .btn.sess-out-all:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .activity-table.sess-table .sess-person:hover td {
  background: #1e1e1e;
}
html[data-mode="dark"] .activity-table.sess-table .sess-browser td {
  background: #1e1e1e;
  color: #b8b8b8;
}
html[data-mode="dark"] .activity-table th {
  background: #303030;
  color: #ffffff;
}
html[data-mode="dark"] .activity-table th span {
  color: #a0a0a0;
}
html[data-mode="dark"] .activity-table tr.current td {
  background: #1e1e1e;
}
html[data-mode="dark"] .activity-ago {
  color: #a0a0a0;
}
html[data-mode="dark"] .activity-ended {
  background: #3a3a3a;
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-guest-sum {
  color: #a0a0a0;
}
html[data-mode="dark"] .cal-rsvp {
  background: #3a3a3a;
}
html[data-mode="dark"] .cal-rsvp-from {
  color: #e3e3e3;
}
html[data-mode="dark"] .cal-rsvp-row > span {
  color: #e3e3e3;
}
html[data-mode="dark"] .cal-rsvp-btn {
  border: 1px solid #5a5a5a;
  background: #282828;
  color: #ffffff;
}
html[data-mode="dark"] .cal-rsvp-btn:hover {
  background: #303030;
}
html[data-mode="dark"] .cal-rsvp-btn.on {
  background: #3d4a5c;
  border-color: #3d4a5c;
  color: #ffffff;
}
html[data-mode="dark"] .invite-going {
  color: #e3e3e3;
}
html[data-mode="dark"] .invite-btn.maybe.chosen {
  color: #ffffff;
}
html[data-mode="dark"] .invite-note {
  color: #a0a0a0;
}
html[data-mode="dark"] .event-chip.needs-reply, html[data-mode="dark"] .block-event.needs-reply {
  background: #282828 !important;
}
html[data-mode="dark"] .cal-compose input[readonly], html[data-mode="dark"] .cal-compose textarea[readonly] {
  background: #303030;
  color: #e3e3e3;
}
html[data-mode="dark"] .file-chip.openable .file-chip-open:hover .file-chip-name {
  color: #a8c7fa;
}
html[data-mode="dark"] .file-chip.openable .file-chip-open:focus-visible {
  outline: 2px solid #a8c7fa;
}
html[data-mode="dark"] .popover .sub-arrow .material-symbols-outlined {
  color: #a0a0a0;
}
html[data-mode="dark"] .popover button.sub-open {
  background: #444444;
}
html[data-mode="dark"] .move-title {
  color: #ffffff;
}
html[data-mode="dark"] .move-search {
  border-bottom: 1px solid #8a8a8a;
}
html[data-mode="dark"] .move-search:focus-within {
  border-bottom: 2px solid #a8c7fa;
}
html[data-mode="dark"] .move-search .material-symbols-outlined {
  color: #b8b8b8;
}
html[data-mode="dark"] .move-empty {
  color: #a0a0a0;
}
html[data-mode="dark"] .theme-choice {
  border: 1px solid #6d6d6d;
  background: #282828;
  color: #ffffff;
}
html[data-mode="dark"] .theme-choice:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .theme-choice.on {
  border: 2px solid #a8c7fa;
  background: #3a3a3a;
  color: #ffffff;
}
html[data-mode="dark"] .repeat-editor .rep-row {
  color: #ffffff;
}
html[data-mode="dark"] .repeat-editor .rep-label {
  color: #b8b8b8;
}
html[data-mode="dark"] .repeat-editor select, html[data-mode="dark"] .repeat-editor input[type=number], html[data-mode="dark"] .repeat-editor input[type=date] {
  border: 1px solid #6d6d6d;
  background: #282828;
  color: #ffffff;
}
html[data-mode="dark"] .repeat-editor .rep-day {
  background: #3a3a3a;
  color: #b8b8b8;
}
html[data-mode="dark"] .repeat-editor .rep-day.on {
  background: #a8c7fa;
  color: #1f1f1f;
}
html[data-mode="dark"] .repeat-editor .rep-day:focus-visible {
  outline: 2px solid #a8c7fa;
}
html[data-mode="dark"] .repeat-editor .rep-ends {
  color: #ffffff;
}
html[data-mode="dark"] .cal-links-title {
  color: #ffffff;
}
html[data-mode="dark"] .fb {
  border: 1px solid #5a5a5a;
  background: #282828;
}
html[data-mode="dark"] .fb-title {
  color: #ffffff;
}
html[data-mode="dark"] .fb-day {
  color: #ffffff;
}
html[data-mode="dark"] .fb-nav {
  color: #b8b8b8;
}
html[data-mode="dark"] .fb-nav:hover {
  background: #3a3a3a;
}
html[data-mode="dark"] .fb-row {
  border-bottom: 1px solid #313131;
}
html[data-mode="dark"] .fb-hours {
  border-bottom: 1px solid #5a5a5a;
}
html[data-mode="dark"] .fb-names strong {
  color: #ffffff;
}
html[data-mode="dark"] .fb-names small {
  color: #a0a0a0;
}
html[data-mode="dark"] .fb-hour {
  color: #a0a0a0;
}
html[data-mode="dark"] .fb-work {
  background: #303030;
}
html[data-mode="dark"] .fb-line {
  background: #3a3a3a;
}
html[data-mode="dark"] .fb-line.major {
  background: #444444;
}
html[data-mode="dark"] .fb-busy {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.11);
}
html[data-mode="dark"] .fb-none {
  color: #a0a0a0;
  background: #282828;
}
html[data-mode="dark"] .fb-pick {
  background: rgba(168,199,250,0.14);
  border-left: 2px solid #a8c7fa;
  border-right: 2px solid #a8c7fa;
}
html[data-mode="dark"] .fb-legend {
  color: #a0a0a0;
}
html[data-mode="dark"] .fb-key.none {
  border: 1px solid #5a5a5a;
}
html[data-mode="dark"] .fb-key.pick {
  background: rgba(168,199,250,0.14);
  border-left: 2px solid #a8c7fa;
  border-right: 2px solid #a8c7fa;
}
html[data-mode="dark"] .fb-key.work {
  background: #303030;
  border: 1px solid #5a5a5a;
}
html[data-mode="dark"] .m3-switch-track {
  border: 2px solid #8a8a8a;
  background: #444444;
}
html[data-mode="dark"] .m3-switch input:checked + .m3-switch-track {
  background: #a8c7fa;
  border-color: #a8c7fa;
}
html[data-mode="dark"] .m3-switch input:checked + .m3-switch-track .m3-switch-handle {
  background: #282828;
  color: #a8c7fa;
}
html[data-mode="dark"] .m3-switch:hover input:not(:disabled) + .m3-switch-track {
  box-shadow: 0 0 0 8px rgba(168,199,250,0.08);
}
html[data-mode="dark"] .plg-card {
  background: #282828;
}
html[data-mode="dark"] .plg-card:hover {
  box-shadow: 0 1px 2px rgba(0,0,0,0.33), 0 1px 3px 1px rgba(0,0,0,0.18);
}
html[data-mode="dark"] .plg-card.on {
  border-color: #5d8fd8;
}
html[data-mode="dark"] .plg-card.broken {
  border-color: #8c3a36;
}
html[data-mode="dark"] .plg-icon {
  background: #3a3a3a;
  color: #a8c7fa;
}
html[data-mode="dark"] .plg-card.broken .plg-icon {
  background: #3d1c1a;
  color: #f2b8b5;
}
html[data-mode="dark"] .plg-chip {
  background: #3a3a3a;
  color: #b8b8b8;
}
html[data-mode="dark"] .plg-chip.ok {
  background: #173a24;
  color: #81c995;
}
html[data-mode="dark"] .plg-chip.bad {
  background: #3d1c1a;
  color: #f2b8b5;
}
html[data-mode="dark"] .plg-dot {
  background: #6d6d6d;
}
html[data-mode="dark"] .plg-card code, html[data-mode="dark"] .admin-plugins .sess-foot code, html[data-mode="dark"] .plg-empty code, html[data-mode="dark"] .mcp-section code {
  background: #3a3a3a;
}
html[data-mode="dark"] .plg-error {
  background: #3d1c1a;
  color: #f2b8b5;
}
html[data-mode="dark"] .plg-empty {
  border: 1px dashed #6d6d6d;
}
html[data-mode="dark"] .plg-empty > .material-symbols-outlined {
  color: #6d6d6d;
}
html[data-mode="dark"] .mcp-perms li > .material-symbols-outlined {
  color: #81c995;
}
html[data-mode="dark"] .mcp-perms li.no > .material-symbols-outlined {
  color: #f2b8b5;
}
html[data-mode="dark"] .consent-list li .material-symbols-outlined {
  color: #81c995;
}
html[data-mode="dark"] .consent-list li.no .material-symbols-outlined {
  color: #f2b8b5;
}
html[data-mode="dark"] .consent-error {
  background: #3d1c1a;
  color: #f2b8b5;
}

/* Hand-made parts of the dark theme, matched to Gmail's dark look */
html[data-mode="dark"] { color-scheme: dark; }
/* A letter keeps its own light page, as in Gmail: it was written for white. */
html[data-mode="dark"] .msg-body iframe { background: #fff; border-radius: 8px; padding: 12px 16px; box-sizing: content-box; width: calc(100% - 32px); }
html[data-mode="dark"] ::placeholder { color: #a0a0a0; }
html[data-mode="dark"] .search input::placeholder { color: #e7e7e8; }
html[data-mode="dark"] ::-webkit-scrollbar-thumb { background: #7e7e7e; }
html[data-mode="dark"] ::-webkit-scrollbar-track { background: transparent; }
/* Form fields without their own colours follow the dark page (zero specificity, so any app rule wins). */
:where(html[data-mode="dark"]) :where(input, textarea, select) { background-color: transparent; color: inherit; }
/* A toast turns light in dark mode; its action keeps a readable blue. */
html[data-mode="dark"] .toast button { color: #0b57d0; }
/* Message list: read rows are darker with grey text, unread rows lighter with white text. */
html[data-mode="dark"] .row { color: #b9b9b9; }
html[data-mode="dark"] .row .snippet, html[data-mode="dark"] .row .date-label { color: #8a8a8a; }
html[data-mode="dark"] .row.unread .sender, html[data-mode="dark"] .row.unread .subject, html[data-mode="dark"] .row.unread .date-label { color: #ffffff; }
html[data-mode="dark"] .row.unread .snippet { color: #949494; }
html[data-mode="dark"] .row.snoozed .date-label { color: #f2b8b5; }
/* Compose button: white with dark text, as in Gmail dark. */
html[data-mode="dark"] .compose-btn { background: #ffffff; color: #1f1f1f; }
html[data-mode="dark"] .compose-btn .material-symbols-outlined { color: #1f1f1f; }
html[data-mode="dark"] .compose-btn:hover { background: #e8e8e8; }
/* Selected folder: grey with white text. */
html[data-mode="dark"] .nav-item.active, html[data-mode="dark"] .nav-item.active .badge { color: #ffffff; }
html[data-mode="dark"] .nav-row:hover:has(.nav-item.active) .nav-manage, html[data-mode="dark"] .nav-row:focus-within:has(.nav-item.active) .nav-manage,
html[data-mode="dark"] .nav-row.menu-open:has(.nav-item.active) .nav-manage { background: #5a5a5a; }
html[data-mode="dark"] .nav-row:hover:has(.nav-item.active) .nav-manage:hover { background: #6a6a6a; }
/* Inbox tabs: the open tab is white, the others light grey; the "N new" count is a white pill. */
html[data-mode="dark"] .mail-tab { color: #bdbfbe; }
html[data-mode="dark"] .mail-tab.on { color: #ffffff; border-bottom-color: #ffffff; }
html[data-mode="dark"] .tab-count-inbox { background: #ffffff; color: #35383b; }
/* Raised surfaces (menus, dialogs, the compose window) sit a step lighter than the panel. */
html[data-mode="dark"] .popover, html[data-mode="dark"] .dialog, html[data-mode="dark"] .compose, html[data-mode="dark"] .dialog-actions, html[data-mode="dark"] .compose-foot { background: #303030; }
html[data-mode="dark"] .popover button, html[data-mode="dark"] .menu-row { background: transparent; }
html[data-mode="dark"] .popover button:hover, html[data-mode="dark"] .menu-row:hover { background: #444444; }
html[data-mode="dark"] .popover button.sub-open { background: #444444; }
html[data-mode="dark"] .dialog-actions { box-shadow: 0 -6px 12px rgba(48,48,48,.9); }
html[data-mode="dark"] .compose-head { background: #404040; color: #ffffff; }
