/* ============================================================
   QFF Paper Shell 2026-12-02 (s308)
   只改壳层：登录、品牌横栏、首页看板与全站蓝灰色板。
   业务字段、流程与交互不改。
   ============================================================ */
:root{
  --paper:#f4f2ec;
  --paper-2:#e9eef5;
  --surface:#fffdf8;
  --surface-2:#f7f9fc;
  --ink:#17304f;
  --ink-2:#24476d;
  --ink-3:#3c5f83;
  --muted:#6f8298;
  --muted-2:#94a4b7;
  --line:#d7dfe9;
  --line-2:#c3cfdd;
  --brand:#2b558b;
  --brand-deep:#1e4068;
  --brand-mid:#4c76a6;
  --brand-soft:#6e8fb5;
  --brand-pale:#eef3f9;
  --danger:#a65a4a;

  --teal:#2b558b;
  --teal-dark:#1e4068;
  --navy:#17304f;
  --navy-2:#24476d;
  --navy-3:#2b558b;
  --bg:#f4f2ec;
  --text:#17304f;

  --ui-brand:#2b558b;
  --ui-brand-strong:#1e4068;
  --ui-brand-soft:#eef3f9;
  --ui-accent:#2b558b;
  --ui-surface:#fffdf8;
  --ui-border:#d7dfe9;
  --ui-border-strong:#c3cfdd;
  --ui-radius:2px;
  --ui-radius-sm:2px;
  --ui-shadow:0 1px 2px rgba(23,48,79,.045);
}

html,body{height:100%;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Noto Sans SC","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;
  font-size:13px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
body.ui-style-classic,body.ui-style-soft,body.ui-style-green,body.ui-style-dark,
body.ui-style-classic .app,body.ui-style-soft .app,body.ui-style-dark .app,
body.ui-style-classic .main,body.ui-style-soft .main,body.ui-style-dark .main,
body.ui-style-classic .page,body.ui-style-soft .page,body.ui-style-dark .page{
  background:var(--paper);
  color:var(--ink);
}
button,input,select,textarea{font-family:inherit;}
a{color:var(--brand);}
.serif,.lg-title,.lg-brand-copy .lg-cn,.home-head h1,.panel-head h3,.page-title-row h2,
.kpi-value,.system-title{font-family:"Noto Serif SC","Songti SC","SimSun",serif;}

/* ============================================================
   登录
   ============================================================ */
.login-page{
  min-height:100vh;
  display:block;
  padding:0;
  background:linear-gradient(118deg,#f7f6f2 0%,#f1f4f9 58%,#e9eff6 100%);
}
.lg-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.36fr) minmax(430px,.64fr);
  background:var(--surface);
}
.lg-brand{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:62px 56px 58px;
  overflow:hidden;
  background:linear-gradient(118deg,#f8f7f3 0%,#f2f5fa 60%,#e9eff6 100%);
}
.lg-brand:before{
  content:"";
  position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(to right,rgba(43,85,139,.055) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(43,85,139,.045) 1px,transparent 1px);
  background-size:104px 104px;
  -webkit-mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.6) 58%,transparent 100%);
          mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.6) 58%,transparent 100%);
}
.lg-brand-top{
  position:relative;z-index:2;margin-top:13vh;
  width:100%;display:flex;align-items:center;justify-content:center;
}
.lg-lockup{display:flex;flex-direction:column;align-items:center;gap:22px;}
.lg-logo{width:108px;height:104px;display:flex;align-items:center;justify-content:center;flex:none;}
.lg-logo img{max-width:108px;max-height:104px;object-fit:contain;display:block;}
.lg-brand-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;}
.lg-cn{font-size:38px;font-weight:700;line-height:1;color:var(--ink);letter-spacing:.18em;text-indent:.18em;white-space:nowrap;}
.lg-en{margin-top:9px;font-size:7.5px;line-height:1;letter-spacing:.22em;color:var(--ink-3);font-weight:600;white-space:nowrap;}
.lg-est{margin-top:9px;font-size:7px;line-height:1;letter-spacing:.16em;color:var(--brand);font-weight:600;}
.lg-system{display:none;}
.lg-copy{position:relative;z-index:2;margin-top:8vh;max-width:790px;}
.lg-eyebrow{
  display:flex;align-items:center;gap:11px;
  font-size:9px;letter-spacing:.19em;font-weight:700;color:var(--brand);
  text-transform:uppercase;white-space:nowrap;
}
.lg-eyebrow i{display:block;width:32px;height:2px;background:var(--brand);}
.lg-eyebrow em{font-style:normal;color:var(--muted-2);}
.lg-title{
  margin:24px 0 0;
  font-size:clamp(50px,4vw,64px);
  line-height:1.22;
  font-weight:600;
  letter-spacing:.012em;
  color:var(--ink);
}
.lg-title span{color:var(--brand);}
.lg-title:after{
  content:"";display:block;width:76%;height:5px;margin:10px 0 0 18%;
  background:linear-gradient(90deg,rgba(110,143,181,.42),rgba(110,143,181,.06));
}
.lg-lede{
  margin:24px 0 0;
  font-size:13.5px;
  line-height:1.95;
  color:var(--ink-2);
  letter-spacing:.02em;
}
.lg-scope{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:20px;font-size:9.5px;color:var(--muted);
}
.lg-scope b{color:var(--brand);letter-spacing:.16em;font-weight:700;margin-right:2px;}
.lg-scope span{color:var(--ink-3);}
.lg-scope i{width:1px;height:9px;background:var(--line-2);display:block;}
.lg-quote{
  position:relative;z-index:2;
  margin-top:auto;padding-top:42px;
  display:flex;align-items:flex-start;gap:2px;
  max-width:740px;
}
.lg-quote span{
  font-family:"Noto Serif SC",serif;
  font-size:38px;line-height:.8;color:var(--brand);flex:none;
}
.lg-quote p{margin:0;font-size:11.5px;line-height:1.85;color:var(--ink-2);}
.lg-sign{
  position:absolute;z-index:2;left:50%;top:67%;
  width:min(640px,78%);transform:translate(-50%,-50%);
}
.lg-sign img{width:100%;height:auto;display:block;}
.lg-sign div{
  margin-top:-2px;padding-left:8px;
  font-size:7px;letter-spacing:.18em;color:var(--muted-2);
}
.lg-brand-foot{
  position:relative;z-index:2;margin-top:26px;
  font-size:7.5px;letter-spacing:.12em;color:var(--muted-2);
}
.lg-panel{
  position:relative;
  min-height:100vh;
  padding:clamp(96px,15vh,160px) 48px 74px;
  border-left:5px solid var(--brand);
  background:var(--surface);
  display:flex;
  flex-direction:column;
}
.lg-form{
  width:min(420px,100%);
  margin:0 auto;
  display:flex;
  flex-direction:column;
}
.lg-secure{font-size:12px;letter-spacing:.18em;font-weight:700;color:var(--muted);text-transform:uppercase;}
.lg-form h2{
  margin:22px 0 0;
  font-family:"Noto Serif SC","Songti SC","SimSun",serif;
  font-size:43px;line-height:1.15;font-weight:600;letter-spacing:.03em;color:var(--ink);
}
.lg-form-sub{margin:14px 0 12px;font-size:14.5px;line-height:1.7;color:var(--muted);}
.lg-field{
  position:relative;
  display:block;
  height:46px;
  padding:0 14px;
  margin:20px 0 34px;
  border:1px solid var(--line-2);
  border-radius:0;
  background:#fff;
}
.lg-field:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(43,85,139,.08);}
.lg-label{
  position:absolute;left:0;top:-20px;
  font-size:12.5px;line-height:1;letter-spacing:.08em;color:var(--ink-3);font-weight:500;
}
.lg-field .ico{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  color:var(--muted-2);display:flex;align-items:center;
}
.lg-field .ico svg{width:14px;height:14px;}
.lg-field input{
  width:100%;height:44px;padding:0 26px 0 30px;
  border:0;outline:none;background:none;
  font-size:14px;color:var(--ink);letter-spacing:.02em;
}
.lg-field input::placeholder{color:var(--muted-2);}
.lg-field .clear{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:none;
  color:var(--muted-2);font-size:12px;padding:2px;display:none;
}
.lg-field.has-value .clear{display:block;}
.login-account-menu{
  left:0;right:0;top:calc(100% + 5px);
  border-radius:0;border-color:var(--line-2);
  box-shadow:0 18px 44px -20px rgba(23,48,79,.45);
}
.login-error{margin:-6px 0 12px;color:var(--danger);font-size:12px;}
.lg-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 22px;flex-wrap:wrap;}
.lg-row .remember{margin:0;font-size:13px;color:var(--muted);gap:7px;}
.lg-row .remember input{width:13px;height:13px;accent-color:var(--brand);}
.login-submit{
  position:relative;
  width:100%;height:56px;padding:0 20px;
  border:0;border-radius:0;
  background:var(--brand);color:#fff;
  display:flex;align-items:center;justify-content:space-between;
  font-size:14px;font-weight:600;letter-spacing:.16em;
  transition:background .18s ease;
}
.login-submit:after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--brand-deep);
}
.login-submit:hover{background:var(--brand-deep);}
.login-submit svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:square;}
.login-submit[disabled]{opacity:.6;cursor:default;}
.lg-form .login-tip{
  margin:0;padding:0;border:0;background:none;
  display:flex;align-items:center;gap:6px;
  font-size:12.5px;color:var(--muted);
}
.lg-form .login-tip .tip-x{display:none;}
.login-tip .i{
  width:16px;height:16px;border-radius:50%;background:var(--brand);color:#fff;
  font-size:10px;line-height:16px;text-align:center;font-style:italic;flex:none;
}
.login-tip .tip-x{margin-left:auto;border:0;background:none;color:var(--muted-2);font-size:13px;padding:0 2px;}
.lg-legal{margin-top:22px;font-size:12.5px;line-height:1.8;color:var(--muted);}
.lg-register{display:block;margin-top:5px;font-size:12px;}
.lg-legal b{font-weight:600;color:var(--ink-3);}
.lg-last{
  margin-top:26px;padding:10px 0 10px 12px;
  border-left:2px solid var(--brand-mid);
  display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:start;
  font-size:12.5px;color:var(--muted);
}
.lg-last i{width:5px;height:5px;border-radius:50%;background:var(--brand);margin-top:6px;grid-row:1 / span 2;}
.lg-last div{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:3px;}
.lg-last b{font-size:11.5px;letter-spacing:.12em;color:var(--ink-3);font-weight:600;}
.lg-last span{color:var(--ink-3);}
.lg-last em{grid-column:2;grid-row:2;font-style:normal;font-size:11.5px;color:var(--muted-2);}
.lg-link{border:0;background:none;padding:0;color:var(--brand);font-size:12px;letter-spacing:.03em;}
.lg-link:hover{text-decoration:underline;}
.lg-status{
  position:absolute;left:48px;right:48px;bottom:26px;
  padding-top:10px;border-top:1px solid var(--line);
  display:flex;align-items:center;gap:7px;
  font-size:11.5px;letter-spacing:.08em;color:var(--muted);
}
.lg-status i{width:5px;height:5px;border-radius:50%;background:var(--brand-mid);}
.lg-status em{margin-left:auto;font-style:normal;color:var(--muted-2);}

/* 登录窄屏 */
@media (max-width:1100px){
  .lg-shell{grid-template-columns:1fr;}
  .lg-brand{min-height:auto;padding:34px 36px 30px;}
  .lg-copy{margin-top:52px;}
  .lg-title{font-size:48px;}
  .lg-quote{margin-top:40px;}
  .lg-sign{max-width:420px;}
  .lg-panel{min-height:auto;border-left:0;border-top:5px solid var(--brand);padding:56px 36px 80px;}
  .lg-form{min-height:0;}
  .lg-status{left:36px;right:36px;}
}

/* ============================================================
   顶部品牌横栏
   ============================================================ */
.app{
  display:block;
  height:100vh;
  min-height:100vh;
  padding-top:84px;
  background:var(--paper);
}
.sidebar{
  flex-direction:row;
  justify-content:flex-start;
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  width:auto;height:84px;
  display:flex;align-items:center;
  padding:0 352px 0 34px;
  overflow:visible;
  background:rgba(255,253,248,.97);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 2px rgba(23,48,79,.035);
  color:var(--ink);
}
.side-logo{
  height:84px;flex:0 0 auto;
  display:flex;align-items:center;gap:11px;
  padding:0 30px 0 0;margin:0;
  background:none;border:0;
  color:var(--ink);
}
.side-logo .brand-logo.small{width:auto;height:48px;}
.side-logo .brand-logo.small img{height:46px;max-width:62px;object-fit:contain;}
.side-logo strong{
  font-family:"Noto Serif SC","Songti SC","SimSun",serif;
  font-size:20px;font-weight:700;letter-spacing:.10em;white-space:nowrap;color:var(--ink);
}
.side-brand-en{
  margin-left:2px;font-size:6.5px;letter-spacing:.18em;color:var(--muted-2);
  writing-mode:vertical-rl;line-height:1;white-space:nowrap;
}
.nav{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:1px;height:84px;
  flex:1 1 auto;min-width:0;
  padding:0;margin:0;overflow:visible;
}
.nav-group{position:relative;height:84px;display:flex;align-items:center;flex:none;}
.nav-item{
  position:relative;
  width:auto;height:84px;
  display:flex;align-items:center;gap:0;
  padding:0 14px;margin:0;
  border:0;border-radius:0;
  background:none;color:var(--ink-2);
  font-size:14.5px;font-weight:400;white-space:nowrap;
  letter-spacing:.02em;
  transition:color .16s ease;
}
.nav-item i{display:none;}
.nav-item em{
  margin-left:5px;font-style:normal;font-size:11px;color:var(--muted-2);
  transition:transform .16s ease;
}
.nav-item:hover{background:none;color:var(--brand);}
.nav-item.active{background:none;color:var(--brand);box-shadow:none;font-weight:600;}
body.ui-nav-light .nav-item.active{background:transparent;box-shadow:none;}
.nav-item.active:after{
  content:"";position:absolute;left:8px;right:8px;bottom:0;height:2px;background:var(--brand);
}
.nav-item.active i{color:var(--brand);}
.nav-sub{
  position:absolute;top:76px;left:0;z-index:130;
  min-width:196px;
  display:flex;flex-direction:column;gap:1px;
  padding:8px;
  margin:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:0 18px 42px -20px rgba(23,48,79,.42);
}
.nav-sub.collapsed{display:none;}
.nav-sub{display:none;}
.nav-group.open .nav-sub{display:flex;}
.nav-item.sub{
  width:100%;height:36px;justify-content:flex-start;
  padding:0 12px;margin:0;
  border-radius:0;
  font-size:13.5px;color:var(--ink-3);font-weight:400;
}
.nav-item.sub i{display:none;}
.nav-item.sub:hover{background:var(--brand-pale);color:var(--brand);}
.nav-item.sub.active{background:var(--brand-pale);color:var(--brand);box-shadow:none;font-weight:600;}
.nav-item.sub.active:after{display:none;}

/* 右侧工具条 */
.topbar{
  position:fixed;top:0;right:0;z-index:120;
  height:84px;width:auto;
  padding:0 32px 0 0;margin:0;
  display:flex;align-items:center;
  background:transparent;border:0;box-shadow:none;
}
.topbar-app,.topbar .crumb{display:none;}
.top-right{display:flex;align-items:center;gap:11px;margin-left:auto;}
.ico-btn.top-action{
  height:30px;padding:0 10px;border-radius:0;
  border:1px solid var(--line);background:var(--surface);color:var(--ink-3);
  font-size:12.5px;
}
.ico-btn.top-action:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-pale);}
.top-action .ta-ico{color:var(--brand);font-size:13px;}
.top-action .ta-ico.gear{color:var(--ink-3);}
.avatar{
  width:28px;height:28px;border-radius:50%;
  background:var(--brand-pale);color:var(--brand);
  font-size:12.5px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;
}
.user-name{font-size:12.5px;color:var(--ink-3);white-space:nowrap;}
.top-logout{
  height:32px;padding:0 12px;
  border:1px solid var(--line);background:transparent;
  color:var(--muted);font-size:12.5px;letter-spacing:.08em;
}
.top-logout:hover{border-color:var(--brand);color:var(--brand);}
#settings-btn{display:none;}

.main{
  display:block;
  height:calc(100vh - 84px);
  min-width:0;
  overflow:hidden;
  background:var(--paper);
}
.page{
  height:100%;
  min-height:0;
  overflow:auto;
  padding:0 40px 28px;
  background:transparent;
}
.page.editor{background:#fff;}

/* 业务页通用颜色层 */
.page-title-row{padding:26px 2px 18px;align-items:center;}
.page-title-row h2{font-size:24px;font-weight:600;letter-spacing:.03em;color:var(--ink);}
.page-title-row > div:first-child::before{
  top:8px;bottom:8px;width:3px;background:var(--brand);
}
.crumb,.crumb.small{color:var(--muted);font-size:10.5px;letter-spacing:.05em;}
.orders-card,.ent-card,.personal-settings-card,.personal-module-card,.perf-task-wrap,.perf-history,
.perf-adj-list,.perf-table-wrap,.personal-table-wrap{
  background:var(--surface);border:1px solid var(--line);border-radius:2px;
  box-shadow:var(--ui-shadow);
}
.btn,.ghost{
  height:32px;border-radius:2px;border-color:var(--line-2);
  background:var(--surface);color:var(--ink-2);font-size:11px;
}
.btn:hover,.ghost:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-pale);}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;}
.btn.primary:hover{background:var(--brand-deep);border-color:var(--brand-deep);color:#fff;}
.btn.teal{background:var(--brand);border-color:var(--brand);color:#fff;}
.btn.teal:hover{background:var(--brand-deep);border-color:var(--brand-deep);color:#fff;}
.btn.orange{background:var(--brand-pale);border-color:var(--brand-soft);color:var(--brand);}
.btn.orange:hover{background:#e4edf8;border-color:var(--brand-mid);color:var(--brand-deep);}
.btn.red{background:#fbf2ef;border-color:#dfc3bc;color:var(--danger);}
.btn.red:hover{background:#f7e8e3;border-color:#c99b90;color:#8d4337;}
table.grid{font-size:11px;color:var(--ink-2);}
table.grid thead th{
  background:var(--surface-2);color:var(--muted);font-size:9.5px;
  letter-spacing:.06em;border-color:var(--line);font-weight:600;
}
table.grid tbody td{border-color:#e8eef6;color:var(--ink-2);}
table.grid tbody tr:hover td{background:#f6f9fc;}
input[type=text],input[type=search],input[type=password],input[type=date],input[type=month],
input[type=number],select,textarea{
  border-color:var(--line-2);border-radius:2px;color:var(--ink-2);
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(43,85,139,.08);
}
.enterprise-tabs button.active,.personal-subtab.active{color:var(--brand);border-bottom-color:var(--brand);}
.enterprise-tabs button:hover,.personal-subtab:hover{color:var(--brand);}

/* ============================================================
   首页
   ============================================================ */
#home-view{padding:0 40px 11px;}
.home-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  padding:20px 2px 10px;
}
.home-head-copy{min-width:0;}
.home-eyebrow{
  display:flex;align-items:baseline;gap:10px;
  font-size:11.5px;letter-spacing:.19em;font-weight:700;color:var(--brand);
  text-transform:uppercase;white-space:nowrap;
}
.home-eyebrow i{display:inline-block;width:24px;height:1px;background:var(--brand-soft);}
.home-eyebrow span:last-child{color:var(--muted-2);font-weight:500;letter-spacing:.12em;}
.home-head h1{
  margin:11px 0 0;
  font-size:44px;line-height:1.05;font-weight:600;
  letter-spacing:.03em;color:var(--ink);
}
.home-head h1 span{color:var(--brand);}
.home-head p{margin:9px 0 0;font-size:12.5px;line-height:1.7;color:var(--ink-3);}
.home-head-actions{display:flex;align-items:center;gap:9px;flex:none;padding-bottom:3px;}
.home-btn{height:38px;padding:0 16px;gap:8px;font-size:12.5px;}
.home-btn .hb-ico{font-size:14px;line-height:1;color:currentColor;}
.btn.primary.home-btn{background:var(--brand);}

.kpi-row{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;margin:0 0 14px;padding:0;
  background:none;border-radius:0;box-shadow:none;
}
.kpi{
  position:relative;min-width:0;min-height:96px;
  padding:11px 16px 10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:var(--ui-shadow);
  overflow:hidden;
}
.kpi:before{
  content:"";position:absolute;left:0;top:0;width:42px;height:3px;background:var(--brand);
}
.kpi:nth-child(1):before{background:var(--brand-deep);}
.kpi:nth-child(2):before{background:var(--brand);}
.kpi:nth-child(3):before{background:var(--brand-mid);}
.kpi:nth-child(4):before{background:var(--brand-soft);}
.kpi:nth-child(5):before{background:var(--brand-deep);}
.kpi:nth-child(6):before{background:var(--brand);}
.kpi:nth-child(7):before{background:var(--brand-mid);}
.kpi:nth-child(8):before{background:var(--brand-soft);}
.kpi-label{
  display:flex;align-items:baseline;gap:8px;
  font-size:13px;line-height:1.2;color:var(--ink-3);
  white-space:nowrap;overflow:hidden;
}
.kpi-label span{overflow:hidden;text-overflow:ellipsis;}
.kpi-label em{
  font-style:normal;font-size:10.5px;letter-spacing:.11em;
  color:var(--muted-2);font-weight:600;white-space:nowrap;
}
.kpi-value{
  margin-top:6px;
  font-size:30px;line-height:1;font-weight:600;
  color:var(--ink);letter-spacing:.02em;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.kpi-value.up,.kpi-value.down,.kpi-value.flat{color:var(--ink);}
.kpi-sub{margin-top:5px;font-size:12px;line-height:1.2;color:var(--muted-2);letter-spacing:.03em;}
.kpi-sub.up{color:var(--brand-mid);}
.kpi-sub.down{color:var(--brand-mid);}
.kpi-sub.flat{color:var(--muted-2);}

.dash-row{
  display:grid;grid-template-columns:minmax(0,1.92fr) minmax(330px,.98fr);
  gap:14px;margin-bottom:14px;align-items:stretch;
}
.panel{
  min-width:0;
  padding:12px 18px 14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:var(--ui-shadow);
}
.panel.grow{flex:none;}
.panel.w360{width:auto;max-width:none;min-width:0;}
.panel-head{
  display:flex;align-items:center;gap:10px;
  margin:0 0 8px;padding-bottom:9px;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}
.panel-head h3{
  margin:0;font-size:16px;line-height:1.25;font-weight:600;color:var(--ink);white-space:nowrap;
}
.panel-head .muted{color:var(--muted);font-size:12px;}
.panel-tools{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;}
.panel-tools .quick{display:flex;align-items:center;gap:0;}
.panel-tools .quick button{
  height:24px;padding:0 7px;border:0;border-radius:0;
  background:none;color:var(--muted);font-size:12px;
}
.panel-tools .quick button:hover{color:var(--brand);}
.panel-tools .quick button.active{background:var(--brand);color:#fff;font-weight:600;}
.panel-tools .lbl{font-size:12px;color:var(--muted-2);white-space:nowrap;}
.panel-tools input[type=date],.panel-tools input[type=month]{
  width:106px;height:24px;font-size:11.5px;color:var(--ink-3);
  border-color:var(--line);border-radius:0;background:#fff;padding:0 4px;
}
.month-wrap{width:106px;height:24px;}
.month-wrap .mv,.date-wrap .dv{left:5px;top:5px;font-size:11.5px;line-height:14px;color:var(--ink-3);}
.date-wrap{width:114px;height:24px;}
.panel-tools select{height:24px;font-size:11.5px;color:var(--ink-3);border-color:var(--line);border-radius:0;background:#fff;}
.panel-tools .arr{color:var(--muted-2);font-size:11px;}
.trend-chart{height:180px;position:relative;}
.trend-chart svg{width:100%;height:100%;display:block;}
.trend-empty{color:var(--muted-2);font-size:12px;}

.rank-list{display:flex;flex-direction:column;gap:0;}
.rank-item{
  display:grid;grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;gap:10px;
  height:31px;padding:0 2px;
  border-bottom:1px solid #e8eef6;
  font-size:12.5px;color:var(--ink-3);
}
.rank-item:last-child{border-bottom:0;}
.rank-item .no{
  width:auto;height:auto;border-radius:0;background:none;
  color:var(--muted-2);font-size:11px;font-weight:400;
  display:block;text-align:left;
}
.rank-item:nth-child(-n+3) .no{color:var(--brand);font-weight:600;background:none;}
.rank-item:nth-child(n+4) .no{background:none;color:var(--muted-2);font-size:12px;}
.rank-item .nm{
  flex:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:var(--ink-2);font-size:12.5px;
}
.rank-item .num{
  color:var(--ink-3);font-size:12.5px;font-weight:500;font-variant-numeric:tabular-nums;
}
.rank-item.multi{height:auto;min-height:52px;padding:6px 2px;align-items:start;}
.rank-item.multi .no{padding-top:1px;}
.rank-item.multi .nm{padding-top:1px;}
.rank-item.multi .num{padding-top:1px;}
.rank-item.multi .units{
  grid-column:2 / 4;display:flex;flex-wrap:wrap;
  gap:1px 10px;margin-top:3px;color:var(--muted-2);font-size:10.5px;line-height:1.35;
}
.rank-item.multi .units span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pie-row{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:center;padding:4px 8px 0;}
.pie-block{display:flex;align-items:center;gap:24px;min-width:0;justify-content:center;}
.pie{width:160px;height:160px;flex:none;border-radius:50%;position:relative;background:#eef3f9;}
.pie-label{font-size:12px;font-weight:600;color:#fff;text-shadow:0 1px 2px rgba(23,48,79,.26);}
.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;font-size:12.5px;min-width:240px;color:var(--ink-3);}
.legend .lg{display:flex;align-items:center;gap:7px;color:var(--ink-3);}
.legend .dot{width:9px;height:9px;border-radius:50%;flex:none;}
.trend-tip{
  min-width:120px;padding:7px 9px;border-radius:0;
  border:1px solid var(--line);background:rgba(255,253,248,.98);
  box-shadow:0 8px 22px -14px rgba(23,48,79,.4);
  font-size:11.5px;color:var(--ink-3);
}
.trend-tip b{color:var(--ink);}
.trend-tip span{color:var(--brand-mid);}

/* 窄屏 */
@media (max-width:1320px){
  .sidebar{padding-right:300px;}
  .side-brand-en{display:none;}
  .nav-item{padding:0 10px;font-size:12px;}
  .nav-item.active:after{left:10px;right:10px;}
  .topbar{padding-right:20px;}
  .ta-label{display:none;}
  .user-name{max-width:64px;overflow:hidden;text-overflow:ellipsis;}
  .page,#home-view{padding-left:26px;padding-right:26px;}
  .home-head h1{font-size:40px;}
}
@media (max-width:1080px){
  .side-logo strong{display:none;}
  .nav-item{padding:0 8px;font-size:11.5px;}
  .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .dash-row{grid-template-columns:1fr;}
  .home-head h1{font-size:36px;}
}

/* CAT 独立窗口：不要顶部品牌横栏的 84px 留白 */
body.editor-window .app{padding-top:0;height:100vh;}
body.editor-window .main{height:100vh;}
body.editor-window #editor-view{height:100vh;}
