/* AISTAFFOS brand layer. Preserve original application behavior and dark-mode preference. */
html.aistaff-brand-theme body { font-family: Inter,"Microsoft YaHei",system-ui,sans-serif; }
html.aistaff-brand-theme:not(.dark):not([theme-mode="dark"]) { --primary: 213 65% 18% !important; --primary-foreground: 0 0% 100% !important; --background: 0 0% 100% !important; --foreground: 214 59% 15% !important; --muted: 215 40% 97% !important; --muted-foreground: 215 18% 42% !important; --border: 214 28% 88% !important; --ring: 213 65% 28% !important; --radius: .5rem !important; --td-brand-color: #102a4d !important; --td-brand-color-hover: #16385f !important; --td-brand-color-active: #10233f !important; --td-brand-color-focus: #eaf0f8 !important; }
html.aistaff-brand-theme .text-brand-gradient { background: none; -webkit-text-fill-color: currentColor; color: #10233f; }
html.aistaff-brand-theme:not(.dark) .bg-brand-gradient { background: #102a4d; }
html.aistaff-brand-theme header a.text-brand-gradient { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; white-space: nowrap; }
html.aistaff-brand-theme header a.text-brand-gradient::before { content: ""; display: block; width: 29px; height: 29px; background: url('/aistaff-brand/mark.svg') center/contain no-repeat; flex-shrink: 0; }
html.aistaff-brand-theme h1.text-brand-gradient { font-size: clamp(28px,4vw,44px); line-height: 1.2; letter-spacing: -.035em; }
html.aistaff-brand-theme .header-logo .logo-image { height: 34px; width: auto; max-width: 200px; object-fit: contain; }
html.aistaff-brand-theme .logo_box .logo { height: 31px; width: auto; max-width: 158px; object-fit: contain; }
html.aistaff-brand-theme .t-button--theme-primary { border-radius: 7px; box-shadow: none; }
html.aistaff-brand-theme .t-input,html.aistaff-brand-theme .t-select-input { border-radius: 7px; }
html.aistaff-brand-theme .aside_box { border-right: 1px solid #dce6f2; }
html.aistaff-brand-theme a:focus-visible,html.aistaff-brand-theme button:focus-visible { outline: 2px solid #3657c5; outline-offset: 3px; }
@media(max-width:620px) { html.aistaff-brand-theme header a.text-brand-gradient { font-size: 15px; gap: 7px; }html.aistaff-brand-theme .header-logo .logo-image { height: 29px; max-width: 168px; } }

html.aistaff-brand-theme.dark .text-brand-gradient{color:#e7eef8;}
html.aistaff-brand-theme.dark .logo-image,html.aistaff-brand-theme.dark .logo_box .logo{content:url(/aistaff-brand/wordmark-dark.svg);}
html.aistaff-brand-theme .login-layout{background:#f6f8fc!important;color:#10233f;}
html.aistaff-brand-theme .showcase-subtitle{color:#10233f!important;font-weight:650;}
html.aistaff-brand-theme .showcase-description{color:#617087!important;}
html.aistaff-brand-theme .header-link{background:#fff!important;border:1px solid #dce6f2!important;color:#10233f!important;border-radius:7px;}
html.aistaff-brand-theme .tag{background:#eaf0f8!important;color:#183554!important;border-radius:6px;font-size:12px;padding:7px 12px;}
html.aistaff-brand-theme .form-card{background:#fff!important;border:1px solid #dce6f2!important;border-radius:12px!important;box-shadow:0 8px 28px #10233f08!important;}
html.aistaff-brand-theme .carousel-container{filter:grayscale(1);opacity:.8;}
html.aistaff-brand-theme .login-features .feature-icon{background:#eaf0f8!important;}
html.aistaff-brand-theme [class*="bg-gradient-to-"]{background-image:none!important;background-color:#f6f8fc;}
html.aistaff-brand-theme[theme-mode="dark"] .login-layout{background:#111b2b!important;}
html.aistaff-brand-theme[theme-mode="dark"] .showcase-subtitle{color:#e7eef8!important;}
html.aistaff-brand-theme[theme-mode="dark"] .form-card{background:#182438!important;border-color:#304158!important;}
@media(max-width:620px){
 html.aistaff-brand-theme .header-logo{position:absolute;top:18px;left:20px;}
 html.aistaff-brand-theme .header-logo .logo-image{width:154px;height:32px;max-width:154px;}
 html.aistaff-brand-theme .header-links{position:absolute;top:62px;left:20px;right:20px;justify-content:flex-start;}
 html.aistaff-brand-theme .header-links .header-link{min-height:40px;box-sizing:border-box;}
 html.aistaff-brand-theme .showcase-section{padding:126px 20px 16px;min-height:0;}
 html.aistaff-brand-theme .showcase-content{margin-bottom:0;}
 html.aistaff-brand-theme .carousel-container{display:none;}
 html.aistaff-brand-theme .showcase-description{font-size:14px;margin-bottom:16px;}
}
