/* MOTD modal */
.motd-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.motd-modal {
  background: #1a1410;
  color: #e8d8b8;
  border: 2px solid #c9a14d;
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 520px; width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  font-family: serif;
}
.motd-modal-title { font-size: 22px; font-weight: bold; margin: 0 0 10px; }
.motd-modal-body { font-size: 15px; white-space: pre-wrap; line-height: 1.45; margin-bottom: 18px; }
.motd-modal-ok {
  background: linear-gradient(to bottom, #c9a14d 0%, #a0822f 100%);
  color: #1a1410;
  border: 1px solid #6f5520;
  border-top-color: #d9b76a;
  border-left-color: #d9b76a;
  padding: 7px 18px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}
.motd-modal-ok:hover { background: linear-gradient(to bottom, #d9b76a 0%, #b89539 100%); }

/* MOTD toast stack */
.motd-toast-stack {
  position: fixed;
  top: 50px; right: 16px;
  z-index: 8000;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 320px;
  pointer-events: none;
}
.motd-toast {
  background: #2a1f17;
  color: #e8d8b8;
  border-left: 4px solid #c9a14d;
  border-radius: 4px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: auto;
  cursor: pointer;
  font-family: serif;
  animation: motd-toast-in 220ms ease-out;
}
@keyframes motd-toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.motd-toast-title { font-weight: bold; font-size: 14px; margin-bottom: 2px; }
.motd-toast-preview { font-size: 12px; opacity: 0.8; }
.motd-toast-close {
  float: right;
  background: none; border: none;
  color: inherit; opacity: 0.6;
  font-size: 14px; cursor: pointer;
  padding: 0 4px;
}
.motd-toast-close:hover { opacity: 1; }

/* Mail button in #right-controls — matches the quality-select look */
#motd-btn {
  background: linear-gradient(to bottom, #4a4540 0%, #3a3530 100%);
  color: #e8e0d4;
  border: 1px solid #2a2622;
  border-top-color: #5a5550;
  border-left-color: #5a5550;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-family: Georgia, serif;
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
  line-height: 1;
}
#motd-btn:hover { background: linear-gradient(to bottom, #5a5550 0%, #4a4540 100%); }

/* MOTD list panel — anchored under the mail button */
.motd-list-panel {
  position: fixed;
  top: 38px;
  right: 8px;
  z-index: 7500;
  background: #1a1410;
  color: #e8d8b8;
  border: 1px solid #c9a14d;
  border-radius: 6px;
  width: 320px;
  max-height: 60vh; overflow-y: auto;
  font-family: serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.motd-list-row {
  padding: 8px 12px;
  border-bottom: 1px solid #3a2a20;
  cursor: pointer;
}
.motd-list-row:last-child { border-bottom: none; }
.motd-list-row:hover { background: #2a1f17; }
.motd-list-row-alert .motd-list-title { color: #ff8866; font-weight: bold; }
.motd-list-row-passive .motd-list-title { opacity: 0.65; font-style: italic; }
.motd-list-title { font-size: 14px; }
.motd-list-empty { padding: 12px; opacity: 0.6; font-style: italic; text-align: center; }

/* Work-mode email reader (renders inside .wm-reading-pane-content) */
.wm-motd-reader {
  position: absolute;
  inset: 0;
  background: #ffffff;
  color: #222;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}
.wm-motd-reader-header {
  padding: 16px 24px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}
.wm-motd-reader-subject {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}
.wm-motd-reader-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #444;
  margin-top: 2px;
}
.wm-motd-reader-sender { color: #0078d4; font-weight: 600; }
.wm-motd-reader-to { color: #777; }
.wm-motd-reader-date { color: #888; }
.wm-motd-reader-importance {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #c0392b;
  margin-left: 8px;
  letter-spacing: 0.5px;
}
.wm-motd-reader-body {
  flex: 1;
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #222;
  white-space: pre-wrap;
  overflow-y: auto;
}
.wm-motd-reader-footer {
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  background: #f9f9f9;
}
.wm-motd-reader-dismiss {
  background: #0078d4;
  color: #fff;
  border: 1px solid #0067b8;
  padding: 6px 18px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.wm-motd-reader-dismiss:hover { background: #106ebe; }
.wm-motd-reader-dismiss:active { background: #005a9e; }

/* Work-mode email reader — dark theme overrides */
body.work-mode-active.work-mode-dark .wm-motd-reader {
  background: #1a1a1a;
  color: #e6e6e6;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-header {
  background: #1a1a1a;
  border-bottom-color: #333;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-subject,
body.work-mode-active.work-mode-dark .wm-motd-reader-body {
  color: #e6e6e6;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-meta-row {
  color: #bcbcbc;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-sender {
  color: #4cc2ff;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-to,
body.work-mode-active.work-mode-dark .wm-motd-reader-date {
  color: #9a9a9a;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-importance {
  color: #ff8866;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-footer {
  background: #1f1f1f;
  border-top-color: #333;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-dismiss {
  background: #106ebe;
  border-color: #106ebe;
  color: #ffffff;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-dismiss:hover {
  background: #1380d6;
}
body.work-mode-active.work-mode-dark .wm-motd-reader-dismiss:active {
  background: #0e5fa6;
}

/* ─── Collection Log reading pane (renders inside .wm-reading-pane-content) ─── */
.wm-collection-reader {
  position: absolute;
  inset: 0;
  background: #ffffff;
  color: #2a2622;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-y: auto;
  padding: 0;
}
.wm-collection-reader-header {
  padding: 16px 24px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.wm-collection-reader-subject {
  font-size: 22px;
  font-weight: 600;
  color: #1a1816;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.wm-collection-reader-complete {
  font-size: 11px;
  padding: 2px 8px;
  background: #2e7d32;
  color: white;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.wm-collection-reader-meta {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}
.wm-collection-reader-desc {
  font-size: 13px;
  font-style: italic;
  color: #666;
  margin-top: 8px;
}
.wm-collection-reader-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 24px;
  flex: 1;
}
.wm-collection-entry {
  display: flex;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  min-width: 0;
}
.wm-collection-entry--missing {
  opacity: 0.55;
}
.wm-collection-entry-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wm-collection-entry-name {
  font-weight: 600;
  color: #1a1816;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-collection-entry--missing .wm-collection-entry-name {
  color: #777;
}
.wm-collection-entry-status {
  font-size: 11px;
}
.wm-collection-entry--got .wm-collection-entry-status {
  color: #2e7d32;
  font-weight: 600;
}
.wm-collection-entry--missing .wm-collection-entry-status {
  color: #999;
}
.wm-collection-entry-desc {
  font-size: 11px;
  color: #666;
  margin-top: 3px;
  line-height: 1.35;
  font-style: italic;
}
.wm-collection-reader-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  background: #f9f9f9;
}
.wm-collection-reader-back {
  padding: 6px 14px;
  background: #e8e8e8;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.wm-collection-reader-back:hover { background: #d8d8d8; }
/* Completed category row highlight in email list */
.wm-collection-complete { background: #f0f9f0; }

/* ─── Dark mode overrides for collection log reader ─── */
body.work-mode-active.work-mode-dark .wm-collection-reader {
  background: #1a1a1a;
  color: #e6e6e6;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-header {
  background: #1a1a1a;
  border-bottom-color: #333;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-subject {
  color: #e6e6e6;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-meta {
  color: #bcbcbc;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-desc {
  color: #9a9a9a;
}
body.work-mode-active.work-mode-dark .wm-collection-entry {
  background: #222;
  border-color: #3a3a3a;
}
body.work-mode-active.work-mode-dark .wm-collection-entry-name {
  color: #e6e6e6;
}
body.work-mode-active.work-mode-dark .wm-collection-entry--missing .wm-collection-entry-name {
  color: #888;
}
body.work-mode-active.work-mode-dark .wm-collection-entry--got .wm-collection-entry-status {
  color: #81c784;
}
body.work-mode-active.work-mode-dark .wm-collection-entry--missing .wm-collection-entry-status {
  color: #666;
}
body.work-mode-active.work-mode-dark .wm-collection-entry-desc {
  color: #8a8a8a;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-footer {
  background: #1f1f1f;
  border-top-color: #333;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-back {
  background: #2a2a2a;
  border-color: #444;
  color: #e6e6e6;
}
body.work-mode-active.work-mode-dark .wm-collection-reader-back:hover {
  background: #333;
}
body.work-mode-active.work-mode-dark .wm-collection-complete {
  background: #1a2e1a;
}

/* ── Slayer Master reader (work mode) ─────────────────────────────────────
   The Slayer Master panel as an Outlook message: tabs are attachment chips,
   actions are plain business buttons. Wording is shared with the canvas
   panel (render/slayerMasterCopy.js); only the look differs. */
.wm-slayer-reader {
  position: absolute;
  inset: 0;
  background: #ffffff;
  color: #222;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}
.wm-slayer-reader-header {
  padding: 16px 24px 10px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.wm-slayer-reader-subject-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wm-slayer-reader-subject { font-size: 20px; font-weight: 600; color: #222; }
.wm-slayer-reader-tools { display: flex; gap: 4px; }
.wm-slayer-tool {
  min-width: 28px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #444;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wm-slayer-tool:hover { background: #f0f0f0; border-color: #d6d6d6; }
.wm-slayer-tool--on { background: #deecf9; border-color: #c7e0f4; color: #0078d4; }
.wm-slayer-reader-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 6px;
}
.wm-slayer-reader-sender { color: #0078d4; font-weight: 600; }
.wm-slayer-reader-date { color: #888; font-variant-numeric: tabular-nums; }
.wm-slayer-reader-greeting { font-size: 13px; font-style: italic; color: #555; margin-top: 8px; }

.wm-slayer-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wm-slayer-attachment {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  background: #fafafa;
  border: 1px solid #d6d6d6;
  border-radius: 2px;
  color: #333;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wm-slayer-attachment:hover { background: #f0f0f0; }
.wm-slayer-attachment--active { background: #deecf9; border-color: #0078d4; color: #004578; font-weight: 600; }
.wm-slayer-attachment-icon { font-size: 12px; opacity: 0.7; }
.wm-slayer-attachment-flag {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8a317;
  border: 1px solid #fff;
}

.wm-slayer-reader-body {
  flex: 1;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.55;
  overflow-y: auto;
}
.wm-slayer-reader-body p { margin: 0 0 12px; max-width: 70ch; }
.wm-slayer-reader-footer {
  flex-shrink: 0;
  padding: 6px 24px;
  border-top: 1px solid #e0e0e0;
  font-size: 11px;
  color: #888;
}
.wm-slayer-status {
  margin: 0 0 12px;
  padding: 6px 10px;
  background: #fff4ce;
  border: 1px solid #f1dc93;
  font-size: 13px;
  color: #5c4a00;
}
.wm-slayer-muted { color: #777; }
.wm-slayer-heading { font-weight: 600; margin-bottom: 4px !important; }
.wm-slayer-heading--sub { color: #0078d4; margin-top: 12px; }
.wm-slayer-stats, .wm-slayer-balance { font-variant-numeric: tabular-nums; }
.wm-slayer-hint { color: #555; font-size: 13px; }

.wm-slayer-task {
  border: 1px solid #e0e0e0;
  border-left: 3px solid #0078d4;
  padding: 10px 14px;
  margin-bottom: 14px;
  max-width: 460px;
}
.wm-slayer-task--complete { border-left-color: #107c10; }
.wm-slayer-task-header { font-size: 11px; letter-spacing: 0.06em; color: #666; font-weight: 600; }
.wm-slayer-task-enemy { font-size: 17px; font-weight: 600; margin-top: 2px; }
.wm-slayer-task-progress { font-size: 13px; color: #444; font-variant-numeric: tabular-nums; }
.wm-slayer-task-done { color: #107c10; font-weight: 600; font-size: 13px; margin-top: 6px; }
.wm-slayer-bar { height: 6px; background: #edebe9; margin-top: 6px; }
.wm-slayer-bar-fill { height: 100%; background: #0078d4; }
.wm-slayer-task--complete .wm-slayer-bar-fill { background: #107c10; }

.wm-slayer-callout {
  display: block;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: #fff4ce;
  border: 1px solid #e8a317;
  color: #5c4a00;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wm-slayer-callout:hover { background: #ffe9a8; }

.wm-slayer-tier-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.wm-slayer-tier-label { font-weight: 600; margin-right: 4px; }
.wm-slayer-button-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.wm-slayer-disabled-wrap { display: inline-flex; }

.wm-slayer-btn, .wm-slayer-chip {
  background: #f0f0f0;
  color: #222;
  border: 1px solid #ccc;
  padding: 4px 14px;
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wm-slayer-btn:hover:not(:disabled), .wm-slayer-chip:hover:not(:disabled) { background: #e0e0e0; }
.wm-slayer-btn:disabled, .wm-slayer-chip:disabled { color: #a6a6a6; background: #f8f8f8; border-color: #e1e1e1; cursor: default; }
.wm-slayer-btn:focus-visible, .wm-slayer-chip:focus-visible, .wm-slayer-attachment:focus-visible,
.wm-slayer-tier-head:focus-visible, .wm-slayer-card:focus-visible, .wm-slayer-shop-row:focus-visible {
  outline: 2px solid #0078d4;
  outline-offset: 1px;
}
.wm-slayer-btn--primary { background: #0078d4; border-color: #0067b8; color: #fff; }
.wm-slayer-btn--primary:hover:not(:disabled) { background: #106ebe; }
.wm-slayer-btn--danger { background: #a4262c; border-color: #8e1f24; color: #fff; }
.wm-slayer-btn--danger:hover:not(:disabled) { background: #8e1f24; }
.wm-slayer-btn--small { padding: 2px 10px; min-width: 34px; white-space: nowrap; }
.wm-slayer-chip { padding: 2px 10px; min-width: 30px; }
.wm-slayer-chip--on { background: #deecf9; border-color: #0078d4; color: #004578; font-weight: 600; }

.wm-slayer-confirm {
  border: 1px solid #f1bbbc;
  background: #fde7e9;
  padding: 10px 14px 2px;
  margin-bottom: 14px;
  max-width: 460px;
}
.wm-slayer-confirm-title { font-weight: 600; color: #a4262c; margin-bottom: 4px; }

.wm-slayer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* Unlocks */
.wm-slayer-tier { border-bottom: 1px solid #f0f0f0; }
.wm-slayer-tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: #444;
  cursor: pointer;
}
.wm-slayer-tier-head:hover { background: #f5f5f5; }
.wm-slayer-caret { color: #888; width: 10px; }
.wm-slayer-tier--claimable .wm-slayer-tier-head { color: #8a5a00; font-weight: 600; }
.wm-slayer-tier--locked .wm-slayer-tier-head { color: #999; }
.wm-slayer-tier--open { background: #fafafa; }
.wm-slayer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 4px 8px 10px 22px; }
.wm-slayer-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  color: #222;
  cursor: pointer;
}
.wm-slayer-card:hover { border-color: #a6a6a6; }
.wm-slayer-card--picked { border: 2px solid #0078d4; padding: 7px 9px; }
.wm-slayer-card--dim { opacity: 0.5; cursor: default; }
.wm-slayer-card-name { font-weight: 600; font-size: 13px; margin-top: 4px; }
.wm-slayer-card-style { color: #0078d4; }
.wm-slayer-card-line { color: #555; font-variant-numeric: tabular-nums; }
.wm-slayer-tier .wm-slayer-button-row { padding-left: 22px; margin-top: 0; }

/* Trapping + shop rows */
.wm-slayer-trap-list { max-width: 620px; font-size: 13px; }
.wm-slayer-trap-row {
  display: grid;
  grid-template-columns: 1fr auto 112px;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-bottom: 1px solid #f0f0f0;
}
.wm-slayer-trap-row--total { font-weight: 600; border-bottom: 0; border-top: 1px solid #d6d6d6; }
.wm-slayer-trap-row .wm-slayer-btn { justify-self: end; }
.wm-slayer-cell-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wm-slayer-cell-num { text-align: right; color: #555; font-variant-numeric: tabular-nums; white-space: nowrap; }

.wm-slayer-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0078d4;
  margin: 14px 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #e0e0e0;
  max-width: 620px;
}
.wm-slayer-section:first-of-type { margin-top: 0; }
.wm-slayer-shop-list { max-width: 620px; }
.wm-slayer-shop-row {
  display: grid;
  grid-template-columns: 1fr 64px 72px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f5f5f5;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: #222;
  cursor: pointer;
}
.wm-slayer-shop-row:hover { background: #f5f5f5; }
.wm-slayer-shop-row--open { background: #deecf9; }
.wm-slayer-shop-row--blocked { color: #999; }
.wm-slayer-shop-row--blocked .wm-slayer-icon { opacity: 0.5; }
.wm-slayer-shop-level { color: #777; font-size: 12px; text-align: right; }
.wm-slayer-shop-price { text-align: right; font-variant-numeric: tabular-nums; }
.wm-slayer-buy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 8px 32px;
  background: #f3f9fd;
  border-bottom: 1px solid #deecf9;
}
.wm-slayer-cost { font-size: 12px; color: #444; margin-left: 6px; font-variant-numeric: tabular-nums; }
.wm-slayer-cost--short { color: #a4262c; }
.wm-slayer-bundle { font-size: 12px; margin-left: auto; font-style: italic; }
.wm-slayer-prompt { flex-basis: 100%; margin-top: 6px; font-size: 13px; }
.wm-slayer-prompt-value {
  display: inline-block;
  min-width: 90px;
  min-height: 22px;
  margin: 4px 0;
  padding: 1px 6px;
  border: 1px solid #0078d4;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

/* Slayer Master reader — dark theme overrides */
body.work-mode-active.work-mode-dark .wm-slayer-reader { background: #1a1a1a; color: #e6e6e6; }
body.work-mode-active.work-mode-dark .wm-slayer-reader-header,
body.work-mode-active.work-mode-dark .wm-slayer-reader-footer { border-color: #333; }
body.work-mode-active.work-mode-dark .wm-slayer-reader-subject,
body.work-mode-active.work-mode-dark .wm-slayer-task-enemy,
body.work-mode-active.work-mode-dark .wm-slayer-card,
body.work-mode-active.work-mode-dark .wm-slayer-shop-row { color: #e6e6e6; }
body.work-mode-active.work-mode-dark .wm-slayer-reader-sender,
body.work-mode-active.work-mode-dark .wm-slayer-heading--sub,
body.work-mode-active.work-mode-dark .wm-slayer-card-style,
body.work-mode-active.work-mode-dark .wm-slayer-section { color: #4da6ff; }
body.work-mode-active.work-mode-dark .wm-slayer-reader-greeting,
body.work-mode-active.work-mode-dark .wm-slayer-hint,
body.work-mode-active.work-mode-dark .wm-slayer-task-progress,
body.work-mode-active.work-mode-dark .wm-slayer-card-line,
body.work-mode-active.work-mode-dark .wm-slayer-cell-num,
body.work-mode-active.work-mode-dark .wm-slayer-cost { color: #bbb; }
body.work-mode-active.work-mode-dark .wm-slayer-shop-row--blocked,
body.work-mode-active.work-mode-dark .wm-slayer-muted,
body.work-mode-active.work-mode-dark .wm-slayer-task-header,
body.work-mode-active.work-mode-dark .wm-slayer-shop-level,
body.work-mode-active.work-mode-dark .wm-slayer-tier--locked .wm-slayer-tier-head { color: #888; }
body.work-mode-active.work-mode-dark .wm-slayer-tool { color: #ccc; }
body.work-mode-active.work-mode-dark .wm-slayer-tool:hover { background: #2a2a2a; border-color: #444; }
body.work-mode-active.work-mode-dark .wm-slayer-tool--on,
body.work-mode-active.work-mode-dark .wm-slayer-attachment--active,
body.work-mode-active.work-mode-dark .wm-slayer-chip--on,
body.work-mode-active.work-mode-dark .wm-slayer-shop-row--open { background: #0b3a5e; border-color: #4da6ff; color: #e6f2ff; }
body.work-mode-active.work-mode-dark .wm-slayer-attachment,
body.work-mode-active.work-mode-dark .wm-slayer-btn,
body.work-mode-active.work-mode-dark .wm-slayer-chip,
body.work-mode-active.work-mode-dark .wm-slayer-card { background: #242424; border-color: #444; color: #e6e6e6; }
body.work-mode-active.work-mode-dark .wm-slayer-attachment:hover,
body.work-mode-active.work-mode-dark .wm-slayer-btn:hover:not(:disabled),
body.work-mode-active.work-mode-dark .wm-slayer-chip:hover:not(:disabled),
body.work-mode-active.work-mode-dark .wm-slayer-tier-head:hover,
body.work-mode-active.work-mode-dark .wm-slayer-shop-row:hover { background: #333; }
body.work-mode-active.work-mode-dark .wm-slayer-btn:disabled,
body.work-mode-active.work-mode-dark .wm-slayer-chip:disabled { background: #1f1f1f; border-color: #333; color: #666; }
body.work-mode-active.work-mode-dark .wm-slayer-btn--primary { background: #0078d4; border-color: #2b88d8; color: #fff; }
body.work-mode-active.work-mode-dark .wm-slayer-btn--danger { background: #a4262c; border-color: #c4383e; color: #fff; }
body.work-mode-active.work-mode-dark .wm-slayer-attachment-flag { border-color: #1a1a1a; }
body.work-mode-active.work-mode-dark .wm-slayer-status,
body.work-mode-active.work-mode-dark .wm-slayer-callout { background: #3d3510; border-color: #7a6512; color: #f3dc8a; }
body.work-mode-active.work-mode-dark .wm-slayer-confirm { background: #3b1a1c; border-color: #6e2a2e; }
body.work-mode-active.work-mode-dark .wm-slayer-confirm-title { color: #f1a8ac; }
body.work-mode-active.work-mode-dark .wm-slayer-task { border-color: #333; border-left-color: #4da6ff; }
body.work-mode-active.work-mode-dark .wm-slayer-task--complete { border-left-color: #54b054; }
body.work-mode-active.work-mode-dark .wm-slayer-bar { background: #333; }
body.work-mode-active.work-mode-dark .wm-slayer-tier,
body.work-mode-active.work-mode-dark .wm-slayer-trap-row,
body.work-mode-active.work-mode-dark .wm-slayer-shop-row,
body.work-mode-active.work-mode-dark .wm-slayer-section { border-color: #2a2a2a; }
body.work-mode-active.work-mode-dark .wm-slayer-tier--open { background: #202020; }
body.work-mode-active.work-mode-dark .wm-slayer-tier--claimable .wm-slayer-tier-head { color: #f3c969; }
body.work-mode-active.work-mode-dark .wm-slayer-buy-bar { background: #1e2a33; border-color: #0b3a5e; }
body.work-mode-active.work-mode-dark .wm-slayer-cost--short { color: #f1a8ac; }
body.work-mode-active.work-mode-dark .wm-slayer-prompt-value { background: #242424; border-color: #4da6ff; }

/* Mobile portrait layout (body.mobile, see css/mobile.css) */
body.mobile .motd-modal { width: calc(100% - 32px); max-height: 80dvh; overflow-y: auto; box-sizing: border-box; }
body.mobile .motd-modal-ok { min-height: 48px; min-width: 120px; font-size: 17px; }
body.mobile .motd-toast-stack { top: calc(48px + env(safe-area-inset-top)); left: 16px; right: 16px; max-width: none; }
body.mobile .motd-list-panel { top: calc(44px + env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; max-height: 70dvh; }
body.mobile .motd-list-row { min-height: 48px; }
/* Landscape phone: keep the toast over the world, clear of the side sheet. */
@media (orientation: landscape) {
  body.mobile .motd-toast-stack { top: calc(40px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); right: auto; width: min(340px, 40vw); }
}

/* Unread MOTDs (per-character read state) */
.motd-list-row-unread .motd-list-title { font-weight: bold; }
.motd-list-row-unread .motd-list-title::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e0b04a;
  vertical-align: middle;
}
#motd-btn, [data-more="motd"] { position: relative; }
#motd-btn[data-unread]::after, [data-more="motd"][data-unread]::after {
  content: attr(data-unread);
  position: absolute;
  top: -6px; right: -6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #c0392b;
  color: #fff;
  font: bold 10px/16px sans-serif;
  text-align: center;
  pointer-events: none;
}
