:root {
    /* Brand / Primary */
    --primary: #3370FF;
    --primary-hover: #245BDB;
    --primary-active: #1C4FC4;
    --primary-light: #E8F0FF;

    /* Surfaces */
    --bg-page: #F5F6F7;
    --bg-container: #FFFFFF;
    --bg-secondary: #F7F8FA;
    --bg-hover: #F2F3F5;
    --bg-selected: #E8F0FF;

    /* Text hierarchy */
    --text-primary: #1F2329;
    --text-secondary: #646A73;
    --text-tertiary: #8F959E;
    --text-placeholder: #A9AFB8;
    --text-disabled: #C9CDD4;

    /* Borders */
    --border: #DEE0E3;
    --border-light: #EFF0F1;

    /* Semantic colors */
    --success: #23A559;
    --success-bg: #EAF8F0;
    --warning: #D46B08;
    --warning-bg: #FFF3E0;
    --danger: #D83931;
    --danger-bg: #FDEEEE;
    --info: #3370FF;
    --info-bg: #E8F0FF;

    /* Shape */
    --radius-sm: 4px;
    --radius-base: 6px;
    --radius-lg: 8px;

    /* Typography */
    --font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    --font-size-xs: 14px;
    --font-size-sm: 15px;
    --font-size-base: 17px;
    --font-size-md: 19px;
    --font-size-lg: 22px;
    --font-size-xl: 26px;

    /* Page-local token bridge: generated from admin page CSS. */
    --theme-color-1c4fc4: #1C4FC4;
    --theme-color-1f2329: #1F2329;
    --theme-color-1f23290f: #1F23290F;
    --theme-color-1f232914: #1F232914;
    --theme-color-1f23291a: #1F23291A;
    --theme-color-1f232940: #1F232940;
    --theme-color-1f232947: #1F232947;
    --theme-color-1f232957: #1F232957;
    --theme-color-1f23298a: #1F23298A;
    --theme-color-1f232994: #1F232994;
    --theme-color-23a559: #23A559;
    --theme-color-245bdb: #245BDB;
    --theme-color-2b5fd9: #245BDB;
    --theme-color-2f3540: #2F3540;
    --theme-color-30343b: #30343B;
    --theme-color-3370ff: #3370FF;
    --theme-color-3370ff1c: #3370FF1C;
    --theme-color-3370ff38: #3370FF38;
    --theme-color-34c724: #23A559;
    --theme-color-373b42: #373B42;
    --theme-color-389e0d: #389E0D;
    --theme-color-3f7d55: #3F7D55;
    --theme-color-3f8068: #3370FF;
    --theme-color-4e5969: #4E5969;
    --theme-color-52759a: #3370FF;
    --theme-color-5f6762: #646A73;
    --theme-color-646a73: #646A73;
    --theme-color-858d88: #8F959E;
    --theme-color-86909c: #86909C;
    --theme-color-8f959e: #8F959E;
    --theme-color-a2a8b0: #A2A8B0;
    --theme-color-a9afb8: #A9AFB8;
    --theme-color-ad741f: #D46B08;
    --theme-color-b7eb8f: #B7EB8F;
    --theme-color-b8423d: #B82E27;
    --theme-color-b8babf: #B8BABF;
    --theme-color-bac8e8: #BAC8E8;
    --theme-color-bfcbf0: #BFCBF0;
    --theme-color-c6534c: #D83931;
    --theme-color-c9cdd4: #C9CDD4;
    --theme-color-c9d6f2: #C9D6F2;
    --theme-color-d46b08: #D46B08;
    --theme-color-d6e4ff: #D6E4FF;
    --theme-color-d7e2ff: #D7E2FF;
    --theme-color-d83931: #D83931;
    --theme-color-d8ddd9: #DEE0E3;
    --theme-color-d9363e: #D9363E;
    --theme-color-dee0e3: #DEE0E3;
    --theme-color-e5484d: #E5484D;
    --theme-color-e5e6eb: #E5E6EB;
    --theme-color-e7eae7: #EFF0F1;
    --theme-color-e8f0ff: #E8F0FF;
    --theme-color-eaf8f0: #EAF8F0;
    --theme-color-eafbe7: #EAFBE7;
    --theme-color-edf2f6: #F0F4FF;
    --theme-color-edf3ff: #E8F0FF;
    --theme-color-edf6f0: #EDF6F0;
    --theme-color-eff0f1: #EFF0F1;
    --theme-color-f0f1f2: #F0F1F2;
    --theme-color-f1f3f0: #F2F3F5;
    --theme-color-f2f3f5: #F2F3F5;
    --theme-color-f4f7ff: #F4F7FF;
    --theme-color-f54a45: #D83931;
    --theme-color-f5f6f7: #F5F6F7;
    --theme-color-f6ffed: #F6FFED;
    --theme-color-f7f8fa: #F7F8FA;
    --theme-color-f8f9f7: #F7F8FA;
    --theme-color-f8faff: #F8FAFF;
    --theme-color-f9ecea: #FDEEEE;
    --theme-color-faf3e6: #FFF3E0;
    --theme-color-fafbfc: #FAFBFC;
    --theme-color-fbfbfc: #FBFBFC;
    --theme-color-fdeded: #FDEEEE;
    --theme-color-fdeeee: #FDEEEE;
    --theme-color-ff8800: #FF8800;
    --theme-color-fff3e0: #FFF3E0;
    --theme-color-fff4e8: #FFF4E8;
    --theme-color-fffffff5: #FFFFFFF5;
    --theme-color-rgba-106-140-255-022: rgba(106, 140, 255, 0.22);
    --theme-color-rgba-143-178-255-01: rgba(143, 178, 255, 0.1);
    --theme-color-rgba-148-163-184-014: rgba(148, 163, 184, .14);
    --theme-color-rgba-15-23-42-002: rgba(15, 23, 42, 0.02);
    --theme-color-rgba-15-23-42-0035: rgba(15, 23, 42, 0.035);
    --theme-color-rgba-15-23-42-004: rgba(15, 23, 42, 0.04);
    --theme-color-rgba-15-23-42-0045: rgba(15, 23, 42, 0.045);
    --theme-color-rgba-15-23-42-005: rgba(15, 23, 42, 0.05);
    --theme-color-rgba-15-23-42-0055: rgba(15, 23, 42, 0.055);
    --theme-color-rgba-15-23-42-008: rgba(15, 23, 42, .08);
    --theme-color-rgba-15-23-42-014: rgba(15, 23, 42, .14);
    --theme-color-rgba-15-23-42-02: rgba(15, 23, 42, 0.2);
    --theme-color-rgba-15-23-42-022: rgba(15, 23, 42, .22);
    --theme-color-rgba-15-23-42-024: rgba(15, 23, 42, .24);
    --theme-color-rgba-15-23-42-025: rgba(15, 23, 42, 0.25);
    --theme-color-rgba-15-23-42-028: rgba(15, 23, 42, 0.28);
    --theme-color-rgba-15-23-42-034: rgba(15, 23, 42, 0.34);
    --theme-color-rgba-15-23-42-04: rgba(15, 23, 42, .40);
    --theme-color-rgba-15-23-42-042: rgba(15, 23, 42, .42);
    --theme-color-rgba-15-23-42-046: rgba(15, 23, 42, 0.46);
    --theme-color-rgba-15-23-42-048: rgba(15, 23, 42, .48);
    --theme-color-rgba-15-23-42-052: rgba(15, 23, 42, 0.52);
    --theme-color-rgba-15-23-42-055: rgba(15, 23, 42, 0.55);
    --theme-color-rgba-15-23-42-062: rgba(15, 23, 42, 0.62);
    --theme-color-rgba-16-24-40-0025: rgba(16, 24, 40, 0.025);
    --theme-color-rgba-16-24-40-0035: rgba(16, 24, 40, 0.035);
    --theme-color-rgba-16-24-40-004: rgba(16, 24, 40, 0.04);
    --theme-color-rgba-16-24-40-005: rgba(16, 24, 40, 0.05);
    --theme-color-rgba-16-24-40-007: rgba(16, 24, 40, 0.07);
    --theme-color-rgba-16-24-40-008: rgba(16, 24, 40, 0.08);
    --theme-color-rgba-16-24-40-01: rgba(16, 24, 40, 0.1);
    --theme-color-rgba-16-24-40-012: rgba(16, 24, 40, 0.12);
    --theme-color-rgba-16-24-40-014: rgba(16, 24, 40, 0.14);
    --theme-color-rgba-16-24-40-016: rgba(16, 24, 40, 0.16);
    --theme-color-rgba-16-24-40-018: rgba(16, 24, 40, 0.18);
    --theme-color-rgba-16-24-40-02: rgba(16, 24, 40, 0.2);
    --theme-color-rgba-16-24-40-022: rgba(16, 24, 40, 0.22);
    --theme-color-rgba-16-24-40-024: rgba(16, 24, 40, 0.24);
    --theme-color-rgba-16-24-40-025: rgba(16, 24, 40, 0.25);
    --theme-color-rgba-16-24-40-028: rgba(16, 24, 40, .28);
    --theme-color-rgba-16-24-40-042: rgba(16, 24, 40, 0.42);
    --theme-color-rgba-16-24-40-046: rgba(16, 24, 40, 0.46);
    --theme-color-rgba-16-24-40-05: rgba(16, 24, 40, 0.5);
    --theme-color-rgba-16-24-40-055: rgba(16, 24, 40, 0.55);
    --theme-color-rgba-16-24-40-058: rgba(16, 24, 40, 0.58);
    --theme-color-rgba-16-24-40-065: rgba(16, 24, 40, 0.65);
    --theme-color-rgba-17-24-39-048: rgba(17, 24, 39, 0.48);
    --theme-color-rgba-192-54-44-006: rgba(192, 54, 44, 0.06);
    --theme-color-rgba-20-32-55-008: rgba(20, 32, 55, 0.08);
    --theme-color-rgba-20-32-55-014: rgba(20, 32, 55, 0.14);
    --theme-color-rgba-20-32-55-024: rgba(20, 32, 55, 0.24);
    --theme-color-rgba-20-32-55-042: rgba(20, 32, 55, 0.42);
    --theme-color-rgba-206-72-57-007: rgba(206, 72, 57, 0.07);
    --theme-color-rgba-22-130-93-005: rgba(22, 130, 93, 0.05);
    --theme-color-rgba-22-130-93-008: rgba(22, 130, 93, 0.08);
    --theme-color-rgba-22-163-74-01: rgba(22, 163, 74, .1);
    --theme-color-rgba-220-63-69-007: rgba(220, 63, 69, 0.07);
    --theme-color-rgba-223-231-255-0: rgba(223, 231, 255, 0);
    --theme-color-rgba-225-230-239-095: rgba(225, 230, 239, 0.95);
    --theme-color-rgba-225-29-72-014: rgba(225, 29, 72, 0.14);
    --theme-color-rgba-238-243-255-096: rgba(238, 243, 255, 0.96);
    --theme-color-rgba-240-68-56-008: rgba(240, 68, 56, 0.08);
    --theme-color-rgba-245-74-69-012: rgba(245, 74, 69, 0.12);
    --theme-color-rgba-250-251-254-096: rgba(250, 251, 254, 0.96);
    --theme-color-rgba-252-252-250-072: rgba(252,252,250,.72);
    --theme-color-rgba-255-255-255-007: rgba(255, 255, 255, 0.07);
    --theme-color-rgba-255-255-255-028: rgba(255, 255, 255, 0.28);
    --theme-color-rgba-255-255-255-055: rgba(255, 255, 255, 0.55);
    --theme-color-rgba-255-255-255-06: rgba(255, 255, 255, 0.6);
    --theme-color-rgba-255-255-255-066: rgba(255, 255, 255, 0.66);
    --theme-color-rgba-255-255-255-07: rgba(255, 255, 255, 0.7);
    --theme-color-rgba-255-255-255-072: rgba(255, 255, 255, 0.72);
    --theme-color-rgba-255-255-255-088: rgba(255, 255, 255, 0.88);
    --theme-color-rgba-255-255-255-09: rgba(255,255,255,.9);
    --theme-color-rgba-255-255-255-095: rgba(255, 255, 255, 0.95);
    --theme-color-rgba-255-255-255-096: rgba(255, 255, 255, 0.96);
    --theme-color-rgba-255-255-255-098: rgba(255,255,255,.98);
    --theme-color-rgba-27-39-60-0025: rgba(27, 39, 60, 0.025);
    --theme-color-rgba-28-39-60-0035: rgba(28, 39, 60, 0.035);
    --theme-color-rgba-28-39-60-004: rgba(28, 39, 60, 0.04);
    --theme-color-rgba-28-39-60-0045: rgba(28, 39, 60, 0.045);
    --theme-color-rgba-28-39-60-006: rgba(28, 39, 60, 0.06);
    --theme-color-rgba-30-166-105-008: rgba(30, 166, 105, 0.08);
    --theme-color-rgba-30-42-65-0055: rgba(30, 42, 65, 0.055);
    --theme-color-rgba-30-42-65-006: rgba(30, 42, 65, 0.06);
    --theme-color-rgba-31-35-41-003: rgba(31, 35, 41, 0.03);
    --theme-color-rgba-31-35-41-0035: rgba(31, 35, 41, 0.035);
    --theme-color-rgba-31-35-41-005: rgba(31, 35, 41, 0.05);
    --theme-color-rgba-31-35-41-022: rgba(31, 35, 41, 0.22);
    --theme-color-rgba-31-35-41-042: rgba(31, 35, 41, 0.42);
    --theme-color-rgba-31-35-41-092: rgba(31, 35, 41, 0.92);
    --theme-color-rgba-31-41-55-0025: rgba(31, 41, 55, 0.025);
    --theme-color-rgba-31-41-55-003: rgba(31, 41, 55, 0.03);
    --theme-color-rgba-31-41-55-0035: rgba(31, 41, 55, .035);
    --theme-color-rgba-31-41-55-004: rgba(31,41,55,.04);
    --theme-color-rgba-31-41-55-0045: rgba(31,41,55,.045);
    --theme-color-rgba-31-41-55-005: rgba(31, 41, 55, .05);
    --theme-color-rgba-31-41-55-006: rgba(31, 41, 55, .06);
    --theme-color-rgba-31-41-55-007: rgba(31, 41, 55, .07);
    --theme-color-rgba-31-41-55-008: rgba(31,41,55,.08);
    --theme-color-rgba-31-41-55-01: rgba(31, 41, 55, 0.1);
    --theme-color-rgba-31-41-55-014: rgba(31,41,55,.14);
    --theme-color-rgba-31-41-55-016: rgba(31, 41, 55, 0.16);
    --theme-color-rgba-31-41-55-022: rgba(31, 41, 55, 0.22);
    --theme-color-rgba-34-197-94-012: rgba(34, 197, 94, 0.12);
    --theme-color-rgba-51-112-255-0025: rgba(51, 112, 255, 0.025);
    --theme-color-rgba-51-112-255-0045: rgba(51, 112, 255, 0.045);
    --theme-color-rgba-51-112-255-005: rgba(51, 112, 255, 0.05);
    --theme-color-rgba-51-112-255-0055: rgba(51, 112, 255, 0.055);
    --theme-color-rgba-51-112-255-006: rgba(51, 112, 255, 0.06);
    --theme-color-rgba-51-112-255-0065: rgba(51, 112, 255, 0.065);
    --theme-color-rgba-51-112-255-007: rgba(51, 112, 255, 0.07);
    --theme-color-rgba-51-112-255-008: rgba(51, 112, 255, 0.08);
    --theme-color-rgba-51-112-255-009: rgba(51, 112, 255, 0.09);
    --theme-color-rgba-51-112-255-01: rgba(51, 112, 255, 0.1);
    --theme-color-rgba-51-112-255-011: rgba(51, 112, 255, 0.11);
    --theme-color-rgba-51-112-255-0115: rgba(51, 112, 255, 0.115);
    --theme-color-rgba-51-112-255-012: rgba(51, 112, 255, 0.12);
    --theme-color-rgba-51-112-255-013: rgba(51, 112, 255, 0.13);
    --theme-color-rgba-51-112-255-014: rgba(51, 112, 255, 0.14);
    --theme-color-rgba-51-112-255-015: rgba(51, 112, 255, 0.15);
    --theme-color-rgba-51-112-255-016: rgba(51, 112, 255, 0.16);
    --theme-color-rgba-51-112-255-017: rgba(51, 112, 255, 0.17);
    --theme-color-rgba-51-112-255-018: rgba(51, 112, 255, 0.18);
    --theme-color-rgba-51-112-255-02: rgba(51, 112, 255, 0.2);
    --theme-color-rgba-51-112-255-022: rgba(51, 112, 255, 0.22);
    --theme-color-rgba-51-112-255-024: rgba(51, 112, 255, 0.24);
    --theme-color-rgba-51-112-255-028: rgba(51, 112, 255, 0.28);
    --theme-color-rgba-51-112-255-03: rgba(51, 112, 255, 0.3);
    --theme-color-rgba-51-112-255-032: rgba(51, 112, 255, 0.32);
    --theme-color-rgba-51-112-255-042: rgba(51, 112, 255, 0.42);
    --theme-color-rgba-51-112-255-045: rgba(51, 112, 255, 0.45);
    --theme-color-rgba-51-112-255-055: rgba(51, 112, 255, 0.55);
    --theme-color-rgba-51-112-255-078: rgba(51, 112, 255, 0.78);
    --theme-color-rgba-61-87-202-008: rgba(61, 87, 202, 0.08);
    --theme-color-rgba-63-128-104-016: rgba(51, 112, 255, 0.16);
    --theme-color-rgba-63-128-104-012: rgba(51, 112, 255, 0.12);
    --theme-color-rgba-63-128-104-082: rgba(88, 117, 141, 0.82);
    --theme-color-rgba-91-124-250-0035: rgba(91, 124, 250, 0.035);
    --theme-color-rgba-98-84-216-012: rgba(98, 84, 216, 0.12);
    --theme-color-rgba-98-84-216-014: rgba(98, 84, 216, 0.14);
    --theme-color-rgba-98-84-216-016: rgba(98, 84, 216, 0.16);
    --theme-color-white: #fff;
    --font-size-0: 0;
    --font-size-10: 10px;
    --font-size-10-5: 10.5px;
    --font-size-11: 11px;
    --font-size-11-5: 11.5px;
    --font-size-12: 12px;
    --font-size-12-5: 12.5px;
    --font-size-13: 13px;
    --font-size-14: 14px;
    --font-size-15: 15px;
    --font-size-16: 16px;
    --font-size-17: 17px;
    --font-size-18: 18px;
    --font-size-19: 19px;
    --font-size-20: 20px;
    --font-size-21: 21px;
    --font-size-22: 22px;
    --font-size-23: 23px;
    --font-size-24: 24px;
    --font-size-25: 25px;
    --font-size-26: 26px;
    --font-size-27: 27px;
    --font-size-28: 28px;
    --font-size-30: 30px;
    --font-size-46: 46px;
    --font-size-8: 8px;
    --font-size-8-5: 8.5px;
    --font-size-8-8: 8.8px;
    --font-size-9: 9px;
    --font-size-9-5: 9.5px;
    --font-size-92: 92px;
    --radius-0: 0;
    --radius-10: 10px;
    --radius-11: 11px;
    --radius-12: 12px;
    --radius-13: 13px;
    --radius-14: 14px;
    --radius-15: 15px;
    --radius-16: 16px;
    --radius-18: 18px;
    --radius-20: 20px;
    --radius-3: 3px;
    --radius-4: 4px;
    --radius-5: 5px;
    --radius-6: 6px;
    --radius-7: 7px;
    --radius-8: 8px;
    --radius-9: 9px;
    --radius-99: 99px;
    --radius-pill: 999px;
    --radius-round: 50%;
    /* End page-local token bridge. */

    /* Existing layout/spacing tokens retained for compatibility. */
    --header-height: 64px;
    --sidebar-width: 236px;
    --control-height: 32px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    --shadow-popup:
        0 4px 12px rgba(37, 42, 39, 0.07),
        0 2px 4px rgba(37, 42, 39, 0.04);

    /* Compatibility aliases used by existing pages. */
    --bg: var(--bg-page);
    --background: var(--bg-page);
    --page-bg: var(--bg-page);
    --card: var(--bg-container);
    --panel: var(--bg-container);
    --surface: var(--bg-container);
    --surface-soft: var(--bg-secondary);
    --surface-muted: var(--bg-hover);

    --text: var(--text-primary);
    --text-2: var(--text-secondary);
    --ink: var(--theme-color-1f2329);
    --muted: var(--text-secondary);
    --muted-light: var(--theme-color-8f959e);

    --line: var(--border-light);
    --line-strong: var(--border);
    --soft-border: var(--theme-color-f0f1f2);
    --neutral-soft: var(--theme-color-f5f6f7);

    --primary-dark: var(--primary-hover);
    --primary-soft: var(--primary-light);
    --success-soft: var(--theme-color-eafbe7);
    --warning-soft: var(--theme-color-fff3e0);
    --danger-soft: var(--theme-color-fdeded);
    --danger-border: var(--theme-color-fdeded);
    --channel-color: var(--primary);

    --radius: var(--radius-base);
    --topbar-height: var(--header-height);
    --sidebar-collapsed-width: 76px;

    --shadow-sm: 0 4px 14px var(--theme-color-rgba-31-41-55-0045);
    --shadow-md: 0 14px 38px var(--theme-color-rgba-31-41-55-007);
    --shadow-soft: 0 6px 22px var(--theme-color-rgba-30-42-65-0055);
    --shadow: var(--shadow-sm);
}

/*
 * Shared Feishu-light polish for top-level admin pages.
 * Intentionally does not target #sidebar, .nav-*, or .app-topbar so the shared
 * navigation/topbar layout remains controlled by assets/style/nav.css.
 */
body.feishu-light {
    color: var(--text-primary);
    background: var(--bg-page);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.feishu-light input,
body.feishu-light select,
body.feishu-light textarea,
body.feishu-light button {
    font-family: var(--font-family);
}

body.feishu-light input,
body.feishu-light select,
body.feishu-light textarea {
    color: var(--text-primary);
}

body.feishu-light input::placeholder,
body.feishu-light textarea::placeholder {
    color: var(--text-placeholder);
}

body.feishu-light h1,
body.feishu-light h2,
body.feishu-light h3,
body.feishu-light h4,
body.feishu-light h5,
body.feishu-light h6 {
    color: var(--text-primary);
}

/* Descriptive copy should stay neutral instead of competing with actions. */
body.feishu-light .muted,
body.feishu-light .panel-sub,
body.feishu-light .panel-subtitle,
body.feishu-light .panel-meta,
body.feishu-light .page-summary p,
body.feishu-light .summary-flow,
body.feishu-light .helper,
body.feishu-light .helper-text,
body.feishu-light .field-help,
body.feishu-light .form-help,
body.feishu-light .hint,
body.feishu-light .description,
body.feishu-light .eyebrow,
body.feishu-light .hero-kicker {
    color: var(--text-secondary) !important;
}

/* Labels explain a field; focus/selection carries the blue emphasis. */
body.feishu-light .form-field,
body.feishu-light .field label,
body.feishu-light .form-group label,
body.feishu-light .seo-schedule-grid label,
body.feishu-light .user-modal-card .form-group label {
    color: var(--text-secondary) !important;
}

/* Table hierarchy: header = secondary; actual data = primary. */
body.feishu-light table th {
    color: var(--text-secondary) !important;
}

body.feishu-light table td {
    color: var(--text-primary);
}

/* Neutral buttons are neutral until interaction; primary actions remain blue. */
body.feishu-light .btn-secondary,
body.feishu-light .button.secondary,
body.feishu-light .shared-button-secondary {
    color: var(--text-secondary);
    background: var(--theme-color-white);
    border-color: var(--border);
}

body.feishu-light .btn-secondary:hover,
body.feishu-light .button.secondary:hover,
body.feishu-light .shared-button-secondary:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border);
}

body.feishu-light .btn-primary,
body.feishu-light .btn.primary,
body.feishu-light .button.primary,
body.feishu-light .shared-button-primary {
    color: var(--theme-color-white);
    background: var(--primary);
    border-color: var(--primary);
}

body.feishu-light .btn-primary:hover,
body.feishu-light .btn.primary:hover,
body.feishu-light .button.primary:hover,
body.feishu-light .shared-button-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

body.feishu-light .btn-danger,
body.feishu-light .button.danger {
    color: var(--danger);
}

/* Keep focus visible, but avoid using blue as passive decoration. */
body.feishu-light input:focus,
body.feishu-light select:focus,
body.feishu-light textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* -------- Neutralize accidental blue text in content-heavy pages -------- */
body.page-prompt-library .group-row .group-name,
body.page-prompt-library .site-binding-name,
body.page-user .group-row .group-name,
body.page-sites .copy-source-summary strong,
body.page-practice-development .strategy-item b,
body.page-practice-development .parser-settings select,
body.page-practice-development .field select,
body.page-practice-development .student-trigger,
body.page-practice-development .student-option,
body.page-practice-development .data-table td,
body.page-practice-development .student-cell b,
body.page-practice-development .number-cell b,
body.page-practice-development .option-item,
body.page-practice-questions td,
body.page-practice-questions td.title,
body.page-practice-questions .id-cell,
body.page-practice-questions .site-primary-cell,
body.page-practice-questions .review-id,
body.page-practice-questions .quality-foot b,
body.page-practice-questions .paper-name,
body.page-practice-questions .assembly-number,
body.page-practice-questions .edit-card-head b,
body.page-practice-questions .relation-title-row h3,
body.page-practice-questions .site-search input,
body.page-practice-questions .relation-card,
body.page-practice-questions .relation-card-top b,
body.page-practice-questions .relation-card-foot b,
body.page-products .set-nav-title strong,
body.page-products .bound-set-card-top > strong,
body.page-products .preview-product-name,
body.page-articles .markdown-body,
body.page-ai-creation .page-summary h2 {
    color: var(--text-primary) !important;
}

/* Passive metadata / counters should sit below content, not look clickable. */
body.page-sites .site-list-head,
body.page-practice-development .student-option small,
body.page-practice-development .data-table th,
body.page-practice-development .page-link,
body.page-practice-questions .review-kicker,
body.page-practice-questions .meta-chip,
body.page-practice-questions .relation-total,
body.page-practice-questions .assembly-caption,
body.page-practice-questions .edit-field label,
body.page-practice-questions .scope-eyebrow,
body.page-practice-questions .scope-desc,
body.page-practice-questions .flow-node,
body.page-practice-attempts .panel-meta,
body.page-website-templates .panel-subtitle,
body.page-site-api .panel-sub,
body.page-ai-creation .page-summary p,
body.page-ai-creation .task-spec,
body.page-articles .batch-manager-modal .modal-head .muted,
body.page-products .product-modal .modal-head .muted,
body.page-products .set-modal .modal-head .muted,
body.page-site-admin .sales-revenue-label {
    color: var(--text-secondary) !important;
}

body.page-practice-questions .review-kicker,
body.page-practice-questions .assembly-caption,
body.page-practice-development .student-option small {
    color: var(--text-tertiary) !important;
}

/* Counts are informative, not actions. */
body.page-roles .module-count,
body.page-operations-management .operations-count,
body.page-practice-development .result-count {
    color: var(--text-secondary) !important;
    background: var(--bg-secondary) !important;
    border-color: var(--border-light) !important;
}

/* Accent stays on selected/active/actionable elements. */
body.feishu-light .is-active,
body.feishu-light .is-selected,
body.feishu-light .active {
    --selection-accent: var(--primary);
}

/* Semantic states keep their own meaning. */
body.feishu-light .success,
body.feishu-light .status-success,
body.feishu-light .is-success {
    color: var(--success);
}

body.feishu-light .error,
body.feishu-light .danger,
body.feishu-light .status-error,
body.feishu-light .is-error {
    color: var(--danger);
}

body.feishu-light .warning,
body.feishu-light .status-warning {
    color: var(--warning);
}

/* -------- Readability fixes for the two densest data pages -------- */
body.page-site-users .btn { font-size: var(--font-size-14); }
body.page-site-users .btn-small { font-size: var(--font-size-13); }
body.page-site-users .card-head h2 { font-size: var(--font-size-16); }
body.page-site-users .card-head p { color: var(--text-tertiary); font-size: var(--font-size-13); }
body.page-site-users .card-head-right,
body.page-site-users .bulk-count,
body.page-site-users .pagination { font-size: var(--font-size-13); }
body.page-site-users table th { font-size: var(--font-size-14) !important; font-weight: 600; }
body.page-site-users table td { font-size: var(--font-size-15); }
body.page-site-users .primary { color: var(--text-primary); font-size: var(--font-size-15); }
body.page-site-users .secondary { color: var(--text-tertiary); font-size: var(--font-size-13); }
body.page-site-users .badge,
body.page-site-users .site-chip { font-size: var(--font-size-13); }
body.page-site-users .permission-note { color: var(--text-secondary); background: var(--bg-secondary); }

body.page-practice-development .field label { font-size: var(--font-size-14); }
body.page-practice-development .field select,
body.page-practice-development .student-trigger,
body.page-practice-development .student-option { font-size: var(--font-size-15); }
body.page-practice-development .data-table th { font-size: var(--font-size-14) !important; font-weight: 600; }
body.page-practice-development .data-table td { font-size: var(--font-size-15); }
body.page-practice-development .student-cell b,
body.page-practice-development .number-cell b { font-size: var(--font-size-15); }

/* Login also follows the same neutral hierarchy. */
body.page-login .form-group label { color: var(--text-secondary) !important; }
body.page-login .login-subtitle,
body.page-login .subtitle,
body.page-login .help-text { color: var(--text-secondary) !important; }

/* Shared floating flash messages, similar to Element Plus message. */
.startlife-message-layer,
.startlife-message-layer * {
    box-sizing: border-box;
}

.startlife-message-layer {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 3600;
    display: grid;
    width: min(560px, calc(100vw - 32px));
    gap: 10px;
    justify-items: center;
    pointer-events: none;
    transform: translateX(-50%);
}

.startlife-message {
    display: flex;
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    min-height: 40px;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-8);
    color: var(--text-primary);
    background: var(--theme-color-white);
    box-shadow:
        0 14px 38px var(--theme-color-rgba-15-23-42-014),
        0 3px 10px var(--theme-color-rgba-15-23-42-008);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-12px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.startlife-message.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.startlife-message.is-leaving {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
}

.startlife-message:before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: var(--radius-round);
    color: var(--theme-color-white);
    background: var(--success);
    font-size: var(--font-size-11);
    font-weight: 800;
    line-height: 1;
}

.startlife-message-error:before {
    content: "!";
    background: var(--danger);
}

.startlife-message-warning:before {
    content: "!";
    background: var(--warning);
}

.startlife-message-info:before {
    content: "i";
    background: var(--info);
}

.startlife-message-body {
    min-width: 0;
    color: inherit;
    font-size: var(--font-size-13);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.startlife-message-body a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.startlife-message-body a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .startlife-message-layer {
        top: 10px;
        width: calc(100vw - 20px);
    }

    .startlife-message {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .startlife-message {
        transition: none;
    }
}

/* Shared system modal for alert/confirm/prompt replacements. */
.startlife-dialog-backdrop,
.startlife-dialog-backdrop * {
    box-sizing: border-box;
}

.startlife-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--theme-color-rgba-15-23-42-042);
    backdrop-filter: blur(4px);
}

.startlife-dialog-backdrop.is-open {
    display: flex;
}

.startlife-dialog {
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-12);
    color: var(--text-primary);
    background: var(--theme-color-white);
    box-shadow: 0 24px 70px var(--theme-color-rgba-15-23-42-024);
}

.startlife-dialog-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px 18px 10px;
}

.startlife-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-round);
    color: var(--theme-color-white);
    background: var(--primary);
    font-size: var(--font-size-15);
    font-weight: 800;
    line-height: 1;
}

.startlife-dialog.is-danger .startlife-dialog-icon {
    background: var(--danger);
}

.startlife-dialog.is-warning .startlife-dialog-icon {
    background: var(--warning);
}

.startlife-dialog-title {
    min-width: 0;
    margin: 3px 0 0;
    font-size: var(--font-size-16);
    line-height: 1.35;
}

.startlife-dialog-body {
    min-width: 0;
    padding: 0 18px 16px 57px;
    overflow: auto;
    color: var(--text-secondary);
    font-size: var(--font-size-13);
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.startlife-dialog-input {
    width: 100%;
    min-height: 38px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-8);
    color: var(--text-primary);
    background: var(--theme-color-white);
    font: inherit;
    outline: none;
}

.startlife-dialog-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--theme-color-rgba-63-128-104-012);
}

.startlife-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.startlife-dialog-button {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-8);
    color: var(--text-secondary);
    background: var(--theme-color-white);
    font: inherit;
    font-size: var(--font-size-13);
    font-weight: 700;
    cursor: pointer;
}

.startlife-dialog-button:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.startlife-dialog-button-primary {
    border-color: var(--primary);
    color: var(--theme-color-white);
    background: var(--primary);
}

.startlife-dialog-button-primary:hover {
    color: var(--theme-color-white);
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.startlife-dialog.is-danger .startlife-dialog-button-primary {
    border-color: var(--danger);
    background: var(--danger);
}

.startlife-dialog.is-danger .startlife-dialog-button-primary:hover {
    border-color: var(--theme-color-b8423d);
    background: var(--theme-color-b8423d);
}

@media (max-width: 640px) {
    .startlife-dialog-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .startlife-dialog {
        width: 100%;
    }

    .startlife-dialog-body {
        padding-left: 18px;
    }

    .startlife-dialog-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .startlife-dialog[data-kind="alert"] .startlife-dialog-actions {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================
 * Semantic color discipline (v2)
 * Blue is reserved for actions, focus, selection and current state.
 * Headings/data use neutral text; labels/table headers use secondary text.
 * ====================================================================== */
body.feishu-light .panel-title,
body.feishu-light .section-title,
body.feishu-light .card-title,
body.feishu-light .modal-title,
body.feishu-light .modal-header h2,
body.feishu-light .modal-head h3 {
    color: var(--text-primary) !important;
}

body.feishu-light label,
body.feishu-light .field-label {
    color: var(--text-secondary);
}

body.page-user .user-modal-card .form-group label,
body.page-sites .site-search-field label,
body.page-sites .seo-schedule-grid label,
body.page-roles .form-field,
body.page-prompt-ai-demo label,
body.page-practice-development .field label,
body.page-practice-attempts .field label,
body.page-practice-questions .edit-field label {
    color: var(--text-secondary) !important;
}

body.page-sites .site-list-head,
body.page-practice-development .data-table th,
body.page-practice-attempts th,
body.page-practice-questions th,
body.page-practice-questions .management-table th,
body.page-site-users th,
body.page-site-api .param-table th {
    color: var(--text-secondary) !important;
    background: var(--bg-secondary);
}

body.page-site-api .doc-name,
body.page-site-api .panel-title,
body.page-site-api .api-name,
body.page-site-api .detail-name {
    color: var(--text-primary) !important;
}
body.page-site-api .doc-description,
body.page-site-api .panel-sub,
body.page-site-api .api-row-summary,
body.page-site-api .detail-summary {
    color: var(--text-secondary) !important;
}
body.page-site-api .api-path,
body.page-site-api .detail-path {
    color: var(--text-tertiary) !important;
}
body.page-site-api .api-row.active .api-name,
body.page-site-api .tab.active {
    color: var(--primary) !important;
}
body.page-site-api .tab:not(.active) {
    color: var(--text-secondary) !important;
}
body.page-site-api .search {
    color: var(--text-primary) !important;
}

body.page-practice-development .field select,
body.page-practice-development .student-trigger,
body.page-practice-development .student-option,
body.page-practice-development .data-table td,
body.page-practice-attempts .field input,
body.page-practice-attempts .field select,
body.page-practice-attempts .user-name,
body.page-practice-attempts .relation-value,
body.page-practice-attempts .progress-number,
body.page-practice-attempts .score-main,
body.page-practice-attempts .time-cell,
body.page-practice-attempts .date-main,
body.page-practice-questions td,
body.page-practice-questions .management-table td,
body.page-practice-questions .cell-main,
body.page-practice-questions .paper-name,
body.page-practice-questions .answer-value-readonly {
    color: var(--text-primary) !important;
}

body.page-practice-attempts .metric-label,
body.page-practice-attempts .panel-meta,
body.page-practice-attempts .user-meta,
body.page-practice-attempts .relation-meta,
body.page-practice-attempts .score-sub,
body.page-practice-attempts .pager,
body.page-practice-questions .paper-option-meta,
body.page-practice-questions .paper-edit-summary,
body.page-practice-questions .exam-review-title span,
body.page-practice-questions .exam-review-answer-summary span,
body.page-website-templates .env-modal-meta,
body.page-ai-creation .task-spec {
    color: var(--text-secondary) !important;
}

body.page-site-users .site-chip,
body.page-site-users .permission-note,
body.page-practice-attempts .relation-meta .id-chip,
body.page-practice-attempts .relation-meta .mode-chip,
body.page-website-templates .env-file-count,
body.page-ai-creation .task-spec {
    background: var(--bg-secondary) !important;
    border-color: var(--border-light) !important;
}

body.page-articles .markdown-body {
    color: var(--text-primary) !important;
}

html,
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans SC",
    Arial,
    sans-serif;

  font-size: var(--font-size-16);
  font-weight: 400;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shared content readability scale.
 * Keep the persistent sidebar/topbar controlled by nav.css; this block targets
 * page content, data surfaces, and modals where dense local CSS often used
 * 10-13px text.
 */
body.feishu-light main,
body.feishu-light .modal,
body.feishu-light .drawer,
body.feishu-light .paper-edit-drawer,
body.feishu-light .user-modal-card,
body.feishu-light .product-modal,
body.feishu-light .set-modal,
body.feishu-light .batch-manager-modal,
body.feishu-light .startlife-dialog,
body.feishu-light .startlife-message {
    font-size: var(--font-size-base);
    line-height: 1.55;
}

body.feishu-light main input,
body.feishu-light main select,
body.feishu-light main textarea,
body.feishu-light main button,
body.feishu-light .modal input,
body.feishu-light .modal select,
body.feishu-light .modal textarea,
body.feishu-light .modal button,
body.feishu-light .drawer input,
body.feishu-light .drawer select,
body.feishu-light .drawer textarea,
body.feishu-light .drawer button,
body.feishu-light .paper-edit-drawer input,
body.feishu-light .paper-edit-drawer select,
body.feishu-light .paper-edit-drawer textarea,
body.feishu-light .paper-edit-drawer button,
body.feishu-light .user-modal-card input,
body.feishu-light .user-modal-card select,
body.feishu-light .user-modal-card textarea,
body.feishu-light .user-modal-card button,
body.feishu-light .product-modal input,
body.feishu-light .product-modal select,
body.feishu-light .product-modal textarea,
body.feishu-light .product-modal button,
body.feishu-light .set-modal input,
body.feishu-light .set-modal select,
body.feishu-light .set-modal textarea,
body.feishu-light .set-modal button,
body.feishu-light .batch-manager-modal input,
body.feishu-light .batch-manager-modal select,
body.feishu-light .batch-manager-modal textarea,
body.feishu-light .batch-manager-modal button,
body.feishu-light .startlife-dialog input,
body.feishu-light .startlife-dialog select,
body.feishu-light .startlife-dialog textarea,
body.feishu-light .startlife-dialog button {
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

body.feishu-light main table th,
body.feishu-light .modal table th,
body.feishu-light .drawer table th {
    font-size: var(--font-size-xs) !important;
    line-height: 1.45;
}

body.feishu-light main table td,
body.feishu-light .modal table td,
body.feishu-light .drawer table td {
    font-size: var(--font-size-sm) !important;
    line-height: 1.55;
}

body.feishu-light main label,
body.feishu-light main .field-label,
body.feishu-light main .form-field,
body.feishu-light .modal label,
body.feishu-light .drawer label,
body.feishu-light .user-modal-card label,
body.feishu-light .product-modal label,
body.feishu-light .set-modal label {
    font-size: var(--font-size-xs);
    line-height: 1.45;
}

body.feishu-light main .btn,
body.feishu-light main .button,
body.feishu-light main .link-btn,
body.feishu-light main .icon-btn,
body.feishu-light main .page-link,
body.feishu-light main .tab,
body.feishu-light main .view-switch a,
body.feishu-light .modal .btn,
body.feishu-light .modal .button,
body.feishu-light .drawer .btn,
body.feishu-light .drawer .button,
body.feishu-light .user-modal-card .btn,
body.feishu-light .product-modal .btn,
body.feishu-light .set-modal .btn {
    font-size: var(--font-size-xs);
}

body.feishu-light main .btn-sm,
body.feishu-light main .btn-small,
body.feishu-light main .small-btn,
body.feishu-light main .mini-btn,
body.feishu-light .modal .btn-sm,
body.feishu-light .modal .btn-small,
body.feishu-light .drawer .btn-sm,
body.feishu-light .drawer .btn-small {
    font-size: var(--font-size-13);
}

body.feishu-light main .muted,
body.feishu-light main .panel-sub,
body.feishu-light main .panel-subtitle,
body.feishu-light main .panel-meta,
body.feishu-light main .helper,
body.feishu-light main .helper-text,
body.feishu-light main .field-help,
body.feishu-light main .form-help,
body.feishu-light main .hint,
body.feishu-light main .description,
body.feishu-light main .eyebrow,
body.feishu-light main .meta,
body.feishu-light main .mini,
body.feishu-light main small,
body.feishu-light .modal .muted,
body.feishu-light .modal .helper,
body.feishu-light .modal small,
body.feishu-light .drawer .muted,
body.feishu-light .drawer .helper,
body.feishu-light .drawer small {
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

body.feishu-light main .badge,
body.feishu-light main .chip,
body.feishu-light main .tag,
body.feishu-light main .site-chip,
body.feishu-light main .meta-chip,
body.feishu-light main .status,
body.feishu-light main .pill,
body.feishu-light .modal .badge,
body.feishu-light .modal .chip,
body.feishu-light .modal .tag,
body.feishu-light .drawer .badge,
body.feishu-light .drawer .chip,
body.feishu-light .drawer .tag {
    font-size: var(--font-size-13);
    line-height: 1.35;
}

body.feishu-light .startlife-message-body,
body.feishu-light .startlife-dialog-body,
body.feishu-light .startlife-dialog-button {
    font-size: var(--font-size-xs);
}
