/* EnterpriseCMS v4 — mature enterprise console shell. Light only. */
:root{--e-nav:#18283d;--e-nav-deep:#142235;--e-primary:#16457f;--e-primary-hover:#0e376d;--e-primary-soft:#edf4fb;--e-bg:#f5f7fa;--e-surface:#fff;--e-soft:#f8fafc;--e-text:#1d2939;--e-text-2:#475467;--e-muted:#98a2b3;--e-line:#e4e7ec;--e-line-2:#d0d5dd;--e-success:#16805f;--e-danger:#c2414b;--e-shadow:0 1px 2px rgba(16,24,40,.03),0 8px 24px rgba(16,24,40,.045);--sidebar-expanded:224px;--topbar-h:64px}
*{box-sizing:border-box}html{color-scheme:light!important}html,body{background:var(--e-bg)!important;color:var(--e-text)!important;font-family:"Source Han Sans SC","Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif!important}body.admin-shell{background:var(--e-bg)!important}
.sidebar{width:var(--sidebar-expanded)!important;background:linear-gradient(180deg,var(--e-nav),var(--e-nav-deep))!important;border:0!important;color:#fff!important;box-shadow:none!important}.sidebar-brand{min-height:64px!important;padding:0 16px!important;gap:11px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.sidebar-brand-mark{width:34px!important;height:34px!important;flex:0 0 34px!important;border:0!important;border-radius:7px!important;background:#255184!important;color:#fff!important;box-shadow:none!important;font-size:11px!important;font-weight:800!important}.sidebar-brand-copy strong{font-size:14px!important;font-weight:750!important}.sidebar-brand-copy span{margin-top:3px!important;color:#8d9aab!important;font-size:10px!important;letter-spacing:0!important;text-transform:none!important}
.sidebar-nav{padding:14px 10px!important;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent}.nav-group{margin:2px 0!important}.nav-link,.nav-sublink{min-height:42px!important;margin:2px 0!important;padding:0 11px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#b3becd!important;box-shadow:none!important;transition:background-color .12s ease,color .12s ease!important}.nav-icon{display:inline-flex!important;width:25px!important;height:25px!important;flex:0 0 25px!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:5px!important;background:rgba(255,255,255,.05)!important;color:inherit!important;font-size:12px!important}.nav-text{font-size:13px!important;font-weight:600!important}.nav-arrow{color:#62748a!important}.nav-link:hover,.nav-sublink:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}.nav-link.is-active,.nav-sublink.is-active{background:#264363!important;color:#fff!important;box-shadow:none!important}.nav-link.is-active:before,.nav-sublink.is-active:before,.nav-link.is-active:after,.nav-sublink.is-active:after{display:none!important}.nav-link.is-active .nav-icon{background:rgba(255,255,255,.08)!important;color:#fff!important}.nav-submenu{padding:2px 0 3px 11px!important;background:transparent!important}.nav-sublink{min-height:36px!important;padding-left:12px!important;font-size:12px!important}.sidebar-footer{margin:0!important;padding:14px 16px!important;border:0!important;border-top:1px solid rgba(255,255,255,.08)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.sidebar-footer-label{color:#718096!important;font-size:9px!important}.sidebar-footer-value{margin-top:6px!important;color:#d0d7e0!important;font-size:10px!important}
.shell-main{width:calc(100% - var(--sidebar-expanded))!important;margin-left:0!important;background:var(--e-bg)!important}.topbar{height:var(--topbar-h)!important;padding:0 18px!important;border-bottom:1px solid var(--e-line)!important;background:#fff!important;backdrop-filter:none!important;box-shadow:none!important}.topbar-left{min-width:0!important;flex:1 1 auto!important}.topbar-right{min-width:max-content!important;flex:0 0 auto!important}.topbar-left,.topbar-right{gap:8px!important;flex-wrap:nowrap!important}.topbar-action,.topbar-user,.topbar-chip{height:36px!important;padding:0 11px!important;flex-shrink:0!important;border:1px solid var(--e-line)!important;border-radius:6px!important;background:#fff!important;color:var(--e-text-2)!important;box-shadow:none!important;font-size:12px!important;font-weight:600!important;white-space:nowrap!important;word-break:keep-all!important;transition:border-color .12s ease,background-color .12s ease,color .12s ease!important}.topbar-action:after,.topbar-user:after{display:none!important}.topbar-action:hover,.topbar-user:hover{border-color:var(--e-line-2)!important;background:var(--e-soft)!important;color:var(--e-text)!important}.topbar-action:active,.topbar-user:active{background:#eef2f6!important;color:var(--e-text)!important}.topbar-action:focus-visible,.topbar-user:focus-visible{outline:3px solid rgba(22,69,127,.14)!important;outline-offset:1px!important}.topbar-action-primary,.topbar-action-primary:hover{border-color:var(--e-primary)!important;background:var(--e-primary)!important;color:#fff!important}.topbar-action-toggle{height:34px!important;margin-right:6px!important;padding:0 10px!important;background:#fff!important}.topbar-chip-brand{max-width:420px!important;min-width:0!important;flex:1 1 180px!important;background:var(--e-soft)!important;color:var(--e-muted)!important;font-size:10px!important}.global-search-trigger{min-width:88px!important;background:var(--e-soft)!important}.topbar-user{border-color:transparent!important;background:transparent!important}.topbar-user-avatar{width:31px!important;height:31px!important;border-radius:6px!important;background:var(--e-primary-soft)!important;color:var(--e-primary)!important}.topbar-user-copy strong{color:var(--e-text)!important;font-size:11px!important}.topbar-user-copy small{color:var(--e-muted)!important;font-size:9px!important}.topbar-badge{border-radius:50%!important;background:var(--e-danger)!important}.topbar-action-ghost:hover{color:var(--e-danger)!important}
.workspace{width:100%!important;padding:0!important;gap:0!important;background:var(--e-bg)!important}.workspace-frame{width:100%!important;border:0!important;border-radius:0!important;background:var(--e-bg)!important;box-shadow:none!important;outline:0!important;overflow:hidden!important}.main-iframe{background:var(--e-bg)!important;animation:none!important}.shell-alert{margin:12px 18px 0!important;border-radius:7px!important;box-shadow:none!important}.profile-overlay,.global-search-overlay{background:rgba(16,24,40,.45)!important;backdrop-filter:blur(3px)!important}.profile-panel{width:430px!important;border-left:1px solid var(--e-line)!important;background:#fff!important;box-shadow:-18px 0 50px rgba(16,24,40,.18)!important}.profile-panel-header{padding:20px!important;border-bottom:1px solid rgba(255,255,255,.1)!important;background:var(--e-nav)!important}.profile-panel-close{border-radius:7px!important}.profile-panel-body{padding:17px!important;background:var(--e-bg)!important}.profile-panel-body form>div:first-child,.profile-panel-loading{border:1px solid var(--e-line)!important;border-radius:9px!important;background:#fff!important;box-shadow:var(--e-shadow)!important}.global-search-dialog{border:1px solid var(--e-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 24px 64px rgba(16,24,40,.22)!important}.global-search-input-wrap{border-color:var(--e-line)!important;background:#fff!important}.global-search-input-wrap input{color:var(--e-text)!important}.global-search-status{color:var(--e-muted)!important}
body.sidebar-collapsed .sidebar{width:64px!important}body.sidebar-collapsed .shell-main{width:calc(100% - 64px)!important;margin-left:0!important}body.sidebar-collapsed .sidebar-brand{padding:0 15px!important}
@media(max-width:1500px){.topbar-chip-brand{display:none!important}.topbar{padding-right:12px!important;padding-left:14px!important}}@media(max-width:1280px){.topbar-action:not(.topbar-action-primary):not(.global-search-trigger) span,.topbar-user-copy{display:none!important}.global-search-trigger{min-width:42px!important}.topbar-user{padding:0 7px!important}}@media(max-width:1200px){.shell-main{width:100%!important}}@media(max-width:960px){.topbar{padding-left:64px!important}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Sidebar menu typography */
.sidebar .nav-text,.sidebar .nav-sublink span{font-size:15px!important;line-height:1.35!important}.sidebar .nav-link{min-height:46px!important}.sidebar .nav-sublink{min-height:42px!important;font-size:15px!important}

/* v4.1 professional surface and motion refinement */
:root{--e-shell-shadow:0 1px 2px rgba(16,24,40,.04),0 10px 30px rgba(16,24,40,.055)}
body.admin-shell{background:linear-gradient(180deg,#f7f9fc 0,#f5f7fa 180px,#f3f6f9 100%)!important}.sidebar{background:linear-gradient(180deg,#1b2d45 0%,#18283d 48%,#132235 100%)!important;box-shadow:4px 0 18px rgba(15,30,49,.08)!important}.sidebar-brand-mark{background:linear-gradient(145deg,#2b5d93,#1c4779)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 4px 12px rgba(4,18,36,.16)!important}.nav-link,.nav-sublink{transition:background-color .16s ease,color .16s ease,transform .16s ease!important}.nav-link:hover,.nav-sublink:hover{transform:translateX(1px)!important}.nav-link.is-active,.nav-sublink.is-active{background:linear-gradient(90deg,#2b4d72,#274564)!important;box-shadow:inset 3px 0 #76a6d6,0 3px 10px rgba(5,20,38,.12)!important}.topbar{box-shadow:0 1px 0 rgba(16,24,40,.025),0 5px 18px rgba(16,24,40,.035)!important}.topbar-action,.topbar-user,.topbar-chip{box-shadow:0 1px 2px rgba(16,24,40,.025)!important;transition:border-color .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease!important}.topbar-action:hover,.topbar-user:hover{box-shadow:0 3px 9px rgba(16,24,40,.07)!important;transform:translateY(-1px)!important}.topbar-action:active,.topbar-user:active{box-shadow:none!important;transform:translateY(0)!important}.topbar-action-primary,.topbar-action-primary:hover{background:linear-gradient(180deg,#1b508e,#16457f)!important;box-shadow:0 4px 11px rgba(22,69,127,.2)!important}.workspace,.workspace-frame,.main-iframe{background:transparent!important}.profile-panel,.global-search-dialog{animation:e-shell-dialog-in .18s cubic-bezier(.2,.75,.25,1) both}@keyframes e-shell-dialog-in{from{opacity:0;transform:translateY(5px) scale(.992)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.nav-link,.nav-sublink,.topbar-action,.topbar-user,.profile-panel,.global-search-dialog{animation:none!important;transition:none!important;transform:none!important}}

/* Keep the profile drawer closed until the account trigger is used. */
.profile-panel:not(.is-active){visibility:hidden!important;pointer-events:none!important;transform:translateX(100%)!important;animation:none!important}
.profile-overlay:not(.is-active){visibility:hidden!important;pointer-events:none!important;opacity:0!important}
.profile-panel.is-active{visibility:visible!important;pointer-events:auto!important;animation:e-profile-panel-in .18s cubic-bezier(.2,.75,.25,1) both}
@keyframes e-profile-panel-in{from{opacity:.92;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.profile-panel.is-active{transform:translateX(0)!important}}

/* v4.2 shell precision layer. */
.sidebar-brand{padding-right:17px!important;padding-left:17px!important}.sidebar-brand-copy strong{letter-spacing:-.01em!important}.sidebar-nav{padding:16px 10px!important}.nav-group{margin:3px 0!important}.nav-link,.nav-sublink{border-radius:7px!important}.nav-link.is-active,.nav-sublink.is-active{background:linear-gradient(90deg,#2a4d72 0%,#254463 100%)!important;box-shadow:inset 3px 0 #8ab4dc,0 3px 10px rgba(5,20,38,.11)!important}.nav-icon{background:rgba(255,255,255,.045)!important}.nav-link.is-active .nav-icon{background:rgba(255,255,255,.1)!important}.topbar{padding-right:20px!important;padding-left:20px!important;border-bottom-color:#e3e8ef!important}.topbar-action,.topbar-user,.topbar-chip{border-radius:7px!important}.topbar-chip-brand{letter-spacing:.01em!important}.global-search-trigger{border-color:#e1e6ed!important;background:#f7f9fc!important}.topbar-user-avatar{border:1px solid #dce7f3!important;background:#eef4fb!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important}.workspace-frame{isolation:isolate!important}.profile-panel-body{padding:20px!important}.profile-panel-body form>div:first-child,.profile-panel-loading{border-color:#dfe5ec!important;border-radius:10px!important;box-shadow:0 1px 2px rgba(16,24,40,.03),0 8px 22px rgba(16,24,40,.045)!important}.global-search-dialog{border-color:#dce3eb!important;box-shadow:0 28px 72px rgba(16,24,40,.2)!important}

/* v4.4 unified shell SVG icon system. */
.cms-nav-svg{display:block;width:15px;height:15px;flex:0 0 15px}.nav-sublink>.cms-nav-svg{margin-right:9px;color:#8293a8}.nav-sublink:hover>.cms-nav-svg,.nav-sublink.is-active>.cms-nav-svg{color:currentColor}.cms-arrow-svg{display:block;width:14px;height:14px;transition:transform .16s ease}.nav-group.is-open .cms-arrow-svg{transform:rotate(180deg)}.cms-shell-svg{display:block;width:15px;height:15px;flex:0 0 15px}.topbar-toggle-icon{display:inline-flex;width:15px;height:15px;align-items:center;justify-content:center}.topbar-action .cms-shell-svg,.topbar-chip .cms-shell-svg{margin-right:6px}.topbar-toggle-icon .cms-shell-svg{margin-right:0}.topbar-user .cms-shell-svg{width:13px;height:13px;margin-left:3px}.profile-panel-close .cms-shell-svg{width:18px;height:18px}.global-search-input-wrap>.cms-shell-svg{width:17px;height:17px;color:#64748b}.cms-inline-svg{display:inline-block;width:15px;height:15px;vertical-align:-2px}.is-spinning{animation:cms-svg-spin .8s linear infinite}@keyframes cms-svg-spin{to{transform:rotate(360deg)}}
