/* (4.94) Day and night mode and the theme colour (ZVEPOW, 2026-10-05 and 2026-11-04: "系统主题的颜色增加 ... 晚上白天的一个模式").
   Each person picks their own with the button in the top bar; it is kept with their account. Day mode is app.css as it
   always was: no name below is set in day mode except the theme colour. Night: html[data-mode="dark"]; the colour:
   html[data-accent="blue" | "green" | "purple" | "teal"] (orange, the ZVEPOW colour, is the default and sets nothing). */

/* ---------- the theme colours (day) ---------- */
html[data-accent="blue"] { --orange: #2563eb; --orange-2: #1d4ed8; --acc-50: #f5f8ff; --acc-100: #eaf1ff; --acc-200: #c7d7fe; --acc-300: #a9c1fb; --acc-g: #6b95f3; }
html[data-accent="green"] { --orange: #15803d; --orange-2: #166534; --acc-50: #f2fbf5; --acc-100: #e4f6ea; --acc-200: #bfe5cb; --acc-300: #9ad6ae; --acc-g: #5cb97c; }
html[data-accent="purple"] { --orange: #7c3aed; --orange-2: #6d28d9; --acc-50: #f8f5ff; --acc-100: #f1eafe; --acc-200: #dccbfb; --acc-300: #c7acf8; --acc-g: #a47bf2; }
html[data-accent="teal"] { --orange: #0e7490; --orange-2: #155e75; --acc-50: #f1fafc; --acc-100: #e1f3f7; --acc-200: #b8e2ec; --acc-300: #93d2e1; --acc-g: #4fa9c0; }

/* ---------- night: the palette of app.css ---------- */
html[data-mode="dark"] {
  color-scheme: dark;
  --navy: #eef3f8; --navy-2: #dfe7ef; --navy-bg: #1a2531;
  --ink: #d6dfe9; --ink-2: #a8b8ca; --muted: #8fa2b6;
  --line: #3a4856; --line-2: #2a3542;
  --bg: #0f151c; --panel: #161e27; --bg-2: #1b242e;
  --teal: #45c4de; --teal-bg: #102a31; --green: #2bc4dc;
  --ok: #4fd49d; --ok-bg: #0f2a20; --warn: #f2b65e; --warn-bg: #2e2513; --bad: #ff7d87; --bad-bg: #37191e; --bad-solid: #d93f4c;
  --shadow: 0 1px 3px rgba(0, 0, 0, .5);
  /* the few colours app.js writes into a page itself */
  --js-hl: #222d3a; --js-soft: #1b242e; --js-ok-soft: #12301f; --d-t-c0392b: #ff7d87;
}
html[data-mode="dark"] body { background: var(--bg); }
/* the board's columns stay darker than their cards, as in the day */
html[data-mode="dark"] .col { background: #121a22; }
/* what is chosen stands out: the dark pills of the day would melt into the night */
html[data-mode="dark"] .subnav a.on, html[data-mode="dark"] .gchips a.on, html[data-mode="dark"] .subnav .bview button.on { background: #3b4d61; }
html[data-mode="dark"] #toast:not(.bad), html[data-mode="dark"] .updbar { background: #2b3a4b; border: 1px solid #3f5063; }
html[data-mode="dark"] .top { border-bottom: 1px solid #263342; }
/* an email preview shows the email as the customer sees it: on white */
html[data-mode="dark"] .lhframe { background: #fff; }
/* pictures a little softer on a dark page; company logos keep their white tile */
html[data-mode="dark"] main img:not(.logo img) { filter: brightness(.94); }

/* ---------- the button in the top bar and its panel ---------- */
.thsw { display: inline-grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.thsw:hover, .thsw[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.thsw svg { width: 17px; height: 17px; }
.thpop { position: absolute; right: 16px; top: 52px; z-index: 45; width: 300px; max-width: calc(100vw - 24px); padding: 14px 16px 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px var(--d-l-a45-62-80-022, rgba(45, 62, 80, .22)); }
.thpop[hidden] { display: none; }
.thpop h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--navy); }
.thpop .thk { font-size: 13px; color: var(--ink-2); margin: 10px 0 6px; }
.thmodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thmodes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 13px; cursor: pointer; }
.thmodes button svg { width: 18px; height: 18px; color: var(--ink-2); }
.thmodes button:hover { border-color: var(--orange); }
.thmodes button.on { border-color: var(--orange); background: var(--acc-50, #fff8f6); color: var(--acc-text2, var(--orange-2)); font-weight: 500; }
.thmodes button.on svg { color: var(--acc-text, var(--orange)); }
.thcolors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.thcolors button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.thcolors button i { display: block; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.thcolors button:hover { border-color: var(--line); }
.thcolors button.on { border-color: var(--line); color: var(--ink); font-weight: 500; }
.thcolors button.on i { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px currentColor; }
.thpop .thnote { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) { .thpop { right: 8px; } }
/* the top bar on a phone holds the language switch, the product line, this button and the account without running past the
   screen (4.93 already did at 320 wide): tighter gaps and a narrower product line button; on the smallest phones the logo goes
   (the menu's 全球总控 is the same page) */
@media (max-width: 420px) {
  .top .right { gap: 6px; }
  .linesw { max-width: 92px; padding: 0 8px; }
  .thsw { width: 30px; }
  .avatar { width: 30px; height: 30px; }
}
@media (max-width: 360px) { .top .brand { display: none; } }

/* ---------- night values of app.css: made by tests/theme-gen.js, do not edit by hand ---------- */
html[data-mode="dark"] {
  --d-b-a16-42-67-007: rgba(255, 255, 255, 0.06);
  --d-b-b0c1d4: #4c5a69;
  --d-b-dfe8f1: #313941;
  --d-b-e5f5f8: #282f37;
  --d-b-eaf0f6: #2a3139;
  --d-b-ede7fb: #2e353d;
  --d-b-eef1f6: #283038;
  --d-b-eef2f6: #282f37;
  --d-b-eef2f7: #282f37;
  --d-b-eef2f8: #282f37;
  --d-b-eef7f2: #252d35;
  --d-b-f1f1f1: #282f38;
  --d-b-f2f4f7: #262d35;
  --d-b-f3f5f7: #252c34;
  --d-b-f3f7fd: #232b33;
  --d-b-f3faf6: #222932;
  --d-b-f5f8fa: #232a32;
  --d-b-f7f9fb: #222931;
  --d-b-f8fafc: #212830;
  --d-b-fafcfd: #1f262e;
  --d-b-fbfcfd: #1f262e;
  --d-b-fbfdfe: #1f262d;
  --d-b-ffe1d9: #44241b;
  --d-b-fff: #161e27;
  --d-b-fff1d6: #3b2b04;
  --d-b-fff1ee: #252c35;
  --d-b-fff2dc: #3a2b0e;
  --d-b-fff4e0: #252c34;
  --d-b-fff7d6: #372d01;
  --d-b-fffaf0: #20272f;
  --d-b-fffaf2: #20272f;
  --d-l-9fb3c8: #566574;
  --d-l-a0-0-0-015: rgba(0, 0, 0, 0.45);
  --d-l-a0-0-0-02: rgba(0, 0, 0, 0.6);
  --d-l-a0-0-0-025: rgba(0, 0, 0, 0.6);
  --d-l-a45-62-80-014: rgba(0, 0, 0, 0.42);
  --d-l-a45-62-80-018: rgba(0, 0, 0, 0.54);
  --d-l-a45-62-80-022: rgba(0, 0, 0, 0.6);
  --d-l-b0c1d4: #576574;
  --d-l-b0e0ea: #275e68;
  --d-l-b9e0c9: #36604a;
  --d-l-ddd: #4b545e;
  --d-l-dfe3eb: #49525c;
  --d-l-e3e8ef: #48505a;
  --d-l-e5ebf0: #474f59;
  --d-l-eef2f5: #444d57;
  --d-l-f5d9a8: #644f2a;
  --d-t-00566a: #93d8ef;
  --d-t-00657a: #87d6ed;
  --d-t-1565c0: #9ec8ff;
  --d-t-1f7a4d: #85daa8;
  --d-t-516f90: #a6c7eb;
  --d-t-5c3fb5: #c6bfff;
  --d-t-6b4200: #f3c28b;
  --d-t-888: #bbbbbb;
  --d-t-8a5300: #f6b877;
  --d-t-8a5a00: #f0ba73;
  --d-t-8a6d00: #debf68;
  --d-t-8a99a8: #abb9ca;
  --d-t-99acc2: #a2b5cb;
  --d-t-aaa: #b3b3b3;
  --d-t-b3290a: #feae9c;
}
html[data-mode="dark"] { --acc-text: #fe8d71; --acc-text2: #ffa28b; --acc-50: #301e19; --acc-100: #3d221b; --acc-200: #6c3629; --acc-300: #7f4132; --acc-g: #b44d35; }
html[data-mode="dark"][data-accent="blue"] { --acc-text: #88b0ff; --acc-text2: #9cbeff; --acc-50: #1b2331; --acc-100: #1e2a40; --acc-200: #304773; --acc-300: #3a5487; --acc-g: #446ec2; }
html[data-mode="dark"][data-accent="green"] { --acc-text: #6ac982; --acc-text2: #7cd591; --acc-50: #18271b; --acc-100: #19301e; --acc-200: #235430; --acc-300: #2b633a; --acc-g: #208744; }
html[data-mode="dark"][data-accent="purple"] { --acc-text: #b5a0fe; --acc-text2: #c0b0fe; --acc-50: #232030; --acc-100: #2b263e; --acc-200: #4a3f6f; --acc-300: #584b82; --acc-g: #765ebb; }
html[data-mode="dark"][data-accent="teal"] { --acc-text: #68bedd; --acc-text2: #75cbea; --acc-50: #11262d; --acc-100: #0b2f3a; --acc-200: #015065; --acc-300: #065f76; --acc-g: #1e7d99; }
/* ---------- end of the made part ---------- */

/* (4.95) 彻底删除 in the replies' recycle bin: a red that reads on the button in day and in night mode (5.8 and 6.0) */
.btn.danger { color: #b0242f; border-color: #f0c3c8; }
.btn.danger:hover { background: #fde8ea; }
html[data-mode="dark"] .btn.danger { color: #ff8f98; border-color: #5a2a31; }
html[data-mode="dark"] .btn.danger:hover { background: #37191e; }