/* R16 主站冷灰颜色层。只含颜色声明（background-color / color / border-color），不改尺寸、间距、圆角、字号、行距、布局或交互。
   只作用于带侧栏的登录后页面；整页排除密钥页（.key-workspace）。首页、登录页、模型广场没有侧栏，不受影响。保留品牌绿。 */

/* 浅色：统一为一套冷灰，修正暖灰文字与边框混用 */
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) body { background-color: #f6f7f8 !important; color: #111827 !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .sidebar,
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) header { background-color: #f6f7f8 !important; border-color: #e5e7eb !important; color: #111827 !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .card { background-color: #ffffff !important; border-color: #e5e7eb !important; color: #111827 !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .table th { background-color: transparent !important; color: #6b7280 !important; border-color: #e5e7eb !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .table td { border-color: #f1f2f4 !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .btn-secondary { border-color: #d1d5db !important; color: #1f2937 !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .input { border-color: #d1d5db !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .sidebar-link:hover { background-color: #eceef0 !important; }
html:not(.dark):has(.sidebar):not(:has(.key-workspace)) .border-green-500\/35 { border-color: #d2ded7 !important; }

/* 深色：统一为一套中性黑灰，去掉蓝调灰 */
html.dark:has(.sidebar):not(:has(.key-workspace)) body { background-color: #0f0f10 !important; color: #f4f4f5 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .sidebar,
html.dark:has(.sidebar):not(:has(.key-workspace)) header { background-color: #0f0f10 !important; border-color: #27272a !important; color: #f4f4f5 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .card { background-color: #18181b !important; border-color: #27272a !important; color: #f4f4f5 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .table th { background-color: transparent !important; color: #a1a1aa !important; border-color: #27272a !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .table td { border-color: #1f1f22 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .btn-secondary { background-color: #18181b !important; border-color: #3f3f46 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .input { background-color: #18181b !important; border-color: #3f3f46 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .sidebar-link:hover { background-color: #1f1f22 !important; }
html.dark:has(.sidebar):not(:has(.key-workspace)) .border-green-500\/35 { border-color: #375445 !important; }
