/* MINDOER 迈一格API · site theme · 2026-11-11 */
html:root,html:root body{--background:#f6f8f1;--foreground:#172019;--card:#fff;--card-foreground:#172019;--popover:#fff;--popover-foreground:#172019;--primary:#c8ff3d;--primary-foreground:#172019;--secondary:#eaf0df;--secondary-foreground:#263a1c;--muted:#edf1e6;--muted-foreground:#606c5d;--accent:#e6f2d2;--accent-foreground:#263a1c;--destructive:#b8372b;--border:#dbe3d2;--input:#cbd6c0;--ring:#638530;--sidebar:#eff3e7;--sidebar-foreground:#172019;--sidebar-primary:#c8ff3d;--sidebar-primary-foreground:#172019;--sidebar-accent:#e0edc9;--sidebar-accent-foreground:#263a1c;--sidebar-border:#dbe3d2;--sidebar-ring:#638530;--chart-1:#638530;--chart-2:#1596af;--chart-3:#e05d46;--chart-4:#a0bc4a;--chart-5:#67598b}
html.dark:root,html.dark:root body{--background:#101214;--foreground:#f5f7f3;--card:#191d1a;--card-foreground:#f5f7f3;--popover:#191d1a;--popover-foreground:#f5f7f3;--primary:#c8ff3d;--primary-foreground:#101214;--secondary:#252d21;--secondary-foreground:#e3edda;--muted:#222820;--muted-foreground:#b0bba8;--accent:#2c3b21;--accent-foreground:#e1f7ba;--destructive:#ff8572;--border:#35402e;--input:#45513c;--ring:#c8ff3d;--sidebar:#151a14;--sidebar-foreground:#f5f7f3;--sidebar-primary:#c8ff3d;--sidebar-primary-foreground:#101214;--sidebar-accent:#29381f;--sidebar-accent-foreground:#e1f7ba;--sidebar-border:#35402e;--sidebar-ring:#c8ff3d;--chart-1:#c8ff3d;--chart-2:#35c6e8;--chart-3:#ff8068;--chart-4:#a8c177;--chart-5:#b6a6de}
html:not(.dark) .text-primary:not(button){color:#496622}html.dark .text-primary:not(button){color:#c8ff3d}
::selection{background:#c8ff3d;color:#101214}a,button,input,select,textarea{--tw-ring-color:var(--ring)}
html:root header{border-color:var(--border)}html:root button.bg-primary:hover,html:root a.bg-primary:hover{filter:brightness(.96)}

/* Keep header labels readable on both application backgrounds. */
html:root header [class*="text-muted-foreground"]{color:var(--muted-foreground)}
html:root header [class*="text-foreground/"]{color:var(--foreground)}
html:not(.dark):root header a.bg-primary,html:not(.dark):root header button.bg-primary{color:#101214}

/* Homepage header must keep a dark surface even when the app theme is light. */
html:root body:has(.custom-home-content) header{--background:#101214;--foreground:#f5f7f3;--muted-foreground:#ced8c4;--border:#718164;--primary:#c8ff3d;--primary-foreground:#101214;--accent:#29381f;--accent-foreground:#f5f7f3;color:#f5f7f3;background-color:#101214;border-bottom:1px solid #536146}
html:root body:has(.custom-home-content) header a[href="/"]{color:#f5f7f3}
html:root body:has(.custom-home-content) header .text-primary:not(.bg-primary){color:#c8ff3d}
html:root body:has(.custom-home-content) header .text-muted-foreground,html:root body:has(.custom-home-content) header [class*="text-muted-foreground/"]{color:#ced8c4}
html:root body:has(.custom-home-content) header .bg-primary{background-color:#c8ff3d;color:#101214}
