* { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  body { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; color: #17233d; background: #f0f2f5; }
  [v-cloak] { display: none !important; }
  code { background: #eef2f7; padding: 1px 5px; border-radius: 3px; font-family: Consolas, Menlo, monospace; font-size: 12px; color: #2d8cf0; }

  /* 登录页（对齐 Demo login-mask） */
  .login-mask, .login-page,
  #app.login-mask, #app.login-page {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 100vh;
    background: linear-gradient(135deg, #1c6fd1 0%, #2d8cf0 45%, #57a3f3 100%);
    overflow: hidden;
  }
  .login-mask::before, .login-mask::after, .login-page::before, .login-page::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
  .login-mask::before, .login-page::before { width: 420px; height: 420px; top: -120px; left: -80px; }
  .login-mask::after, .login-page::after { width: 520px; height: 520px; bottom: -180px; right: -100px; }
  .login-card { position: relative; z-index: 1; flex: none; margin: 0; width: 920px; max-width: calc(100% - 32px); min-height: 460px; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 48px rgba(0, 40, 100, .28); }
  .login-aside { background: linear-gradient(160deg, #2d8cf0 0%, #1c6fd1 100%); color: #fff; padding: 50px 42px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .login-aside img { width: 84px; height: auto; margin-bottom: 22px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.18)); }
  .login-aside h1 { margin: 0 0 14px; font-size: 27px; letter-spacing: 1px; }
  .login-aside p { margin: 0; opacity: .88; line-height: 1.8; font-size: 14px; }
  .login-aside .feat { margin-top: 26px; width: 100%; border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; }
  .login-aside .feat div { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .92; margin: 9px 0; }
  .login-aside .feat svg { width: 16px; height: 16px; flex: none; }
  .login-main { padding: 50px 42px 34px; display: flex; flex-direction: column; justify-content: center; }
  .login-main .mb { display: none; align-items: center; gap: 10px; margin-bottom: 18px; }
  .login-main .mb img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  .login-main .mb span { font-size: 18px; font-weight: 700; }
  .login-main h3 { margin: 0 0 6px; font-size: 22px; }
  .login-main .sub { margin: 0 0 26px; color: #808695; font-size: 13px; }
  .login-field { margin-bottom: 18px; }
  .login-field .box { display: flex; align-items: center; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 12px; height: 40px; transition: border-color .2s; background: #fff; }
  .login-field .box:focus-within { border-color: #2d8cf0; }
  .login-field .box svg { width: 16px; height: 16px; color: #c0c4cc; margin-right: 8px; flex: none; }
  .login-field .box input { border: 0; outline: 0; flex: 1; font-size: 14px; color: #17233d; background: transparent; height: 100%; font-family: inherit; }
  .login-btn { width: 100%; height: 42px; font-size: 15px; letter-spacing: 2px; color: #fff; background: #2d8cf0; border: 0; border-radius: 4px; cursor: pointer; transition: background .2s; font-family: inherit; }
  .login-btn:hover { background: #57a3f3; }
  .login-btn:disabled { opacity: .7; cursor: default; }
  .err-tip { color: #f56c6c; font-size: 12.5px; min-height: 18px; margin: -8px 0 12px; }
  .login-foot { margin-top: 16px; text-align: center; color: #c5c8ce; font-size: 12px; }
  .login-captcha { display: flex; gap: 8px; align-items: center; }
  .login-captcha .box { flex: 1; min-width: 0; }
  .login-captcha .el-input { flex: 1; }
  .login-captcha img {
    height: 40px; width: 108px; flex: none; cursor: pointer;
    border: 1px solid #dcdfe6; border-radius: 4px; background: #f5f7fa;
  }

  /* 后台框架（登录页 #app.login-mask 不受此规则覆盖） */
  #app:not(.login-mask):not(.login-page),
  #layout-root { display: block; height: 100vh; }
  .layout { display: flex; height: 100%; }
  .side { width: 220px; flex: none; background: #fff; border-right: 1px solid #e8eaed; display: flex; flex-direction: column; }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #f0f2f5; }
  .side-brand img { width: 32px; height: 32px; }
  .side-brand b { font-size: 15px; color: #17233d; }
  .side-brand small { display: block; font-size: 11px; color: #b0b4bb; font-weight: 400; }
  .menu { padding: 12px 0; flex: 1; overflow-y: auto; }
  .menu-item { display: flex; align-items: center; gap: 11px; padding: 0; cursor: pointer; color: #515a6e; font-size: 14px; border-left: 3px solid transparent; transition: background .15s; }
  .menu-item > a { display: flex; align-items: center; gap: 11px; padding: 12px 22px; color: inherit; text-decoration: none; width: 100%; }
  .menu-item svg { width: 17px; height: 17px; flex: none; }
  .menu-item:hover { background: #f5f7fa; }
  .menu-item.active { background: #ecf5ff; color: #2d8cf0; border-left-color: #2d8cf0; font-weight: 600; }
  .side-foot { padding: 14px 20px; border-top: 1px solid #f0f2f5; font-size: 12px; color: #b0b4bb; }
  .main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f0f2f5; }
  .topbar { height: 58px; flex: none; background: #fff; border-bottom: 1px solid #e8eaed; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
  .crumbs { font-size: 14px; color: #808695; display: flex; align-items: center; gap: 7px; }
  .crumbs b { color: #17233d; font-weight: 600; }
  .top-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #515a6e; }
  .top-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#2d8cf0,#1c6fd1); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; cursor:pointer; }
  .content { flex: 1; overflow-y: auto; padding: 22px; }
  .view { display: none; } .view.active { display: block; animation: fade .25s; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .page-title { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
  .page-sub { color: #909399; font-size: 13px; margin: 0 0 20px; }

  .stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
  .stat { background: #fff; border-radius: 6px; padding: 20px; border: 1px solid #ebeef5; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
  a.stat { display: block; color: inherit; text-decoration: none; }
  .stat.is-link { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
  .stat.is-link:hover { border-color: #2d8cf0; box-shadow: 0 2px 8px rgba(45,140,240,.12); }
  .quota-bar.warn > i { background: linear-gradient(90deg,#f0b35a,#e08a2b); }
  .quota-bar.danger > i { background: linear-gradient(90deg,#f78989,#f56c6c); }
  .period-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.6;
  }
  .period-chip.warn { background: #fdf3e7; color: #e08a2b; }
  .period-chip.bad { background: #fdeaea; color: #f56c6c; }
  .stat .lab { color: #909399; font-size: 13px; display: flex; align-items: center; gap: 8px; }
  .stat .lab svg { width: 15px; height: 15px; }
  .stat .num { font-size: 28px; font-weight: 700; margin-top: 10px; color: #17233d; letter-spacing: .5px; }
  .stat .num small { font-size: 14px; color: #909399; font-weight: 400; }
  .stat .trend { font-size: 12px; margin-top: 6px; color: #67c23a; }
  .stat .trend.down { color: #f56c6c; }

  .panel { background: #fff; border-radius: 6px; border: 1px solid #ebeef5; box-shadow: 0 1px 3px rgba(0,0,0,.03); margin-bottom: 18px; }
  .panel-h { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid #f0f2f5; }
  .panel-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
  .panel-h .more { color: #2d8cf0; font-size: 13px; cursor: pointer; text-decoration: none; }
  .panel-h .more:hover { text-decoration: underline; }
  .panel-b { padding: 18px; }

  table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  th { background: #fafafa; color: #909399; font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid #ebeef5; white-space: nowrap; }
  td { padding: 12px 14px; border-bottom: 1px solid #f0f2f5; color: #515a6e; }
  tr:hover td { background: #fafcff; }
  .tag { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 12px; line-height: 1.6; }
  .tag.green { background: #e8f8ef; color: #19a35a; }
  .tag.blue { background: #ecf5ff; color: #2d8cf0; }
  .tag.gray { background: #f0f2f5; color: #909399; }
  .tag.orange { background: #fdf3e7; color: #e08a2b; }
  .tag.red { background: #fdeaea; color: #f56c6c; }
  .op { color: #2d8cf0; cursor: pointer; margin-right: 12px; }
  .op.del { color: #f56c6c; }
  .op:hover { text-decoration: underline; }

  .btn { border: 1px solid #dcdfe6; background: #fff; color: #515a6e; padding: 7px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: .15s; }
  .btn:hover { border-color: #2d8cf0; color: #2d8cf0; }
  .btn.primary { background: #2d8cf0; border-color: #2d8cf0; color: #fff; }
  .btn.primary:hover { background: #57a3f3; border-color: #57a3f3; }
  .btn.sm { padding: 5px 11px; font-size: 12.5px; }
  .toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
  .sel { border: 1px solid #dcdfe6; border-radius: 4px; padding: 7px 11px; font-size: 13px; color: #515a6e; background: #fff; cursor: pointer; }
  .ipt { border: 1px solid #dcdfe6; border-radius: 4px; padding: 7px 11px; font-size: 13px; color: #17233d; outline: none; }
  .ipt:focus { border-color: #2d8cf0; }

  .bars { display: flex; align-items: flex-end; gap: 14px; height: 160px; padding: 10px 4px 0; }
  .bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
  a.bars .col, .bars a.col { cursor: pointer; }
  .bars a.col:hover .bar { filter: brightness(1.08); }
  .bars .bar { width: 60%; max-width: 34px; background: linear-gradient(180deg,#57a3f3,#2d8cf0); border-radius: 4px 4px 0 0; transition: height .8s; }
  .bars .d { font-size: 12px; color: #909399; }
  .bars .v { font-size: 12px; color: #17233d; font-weight: 600; }

  .tenant-cell { display: flex; align-items: center; gap: 10px; }
  .tenant-cell .tmeta { min-width: 0; line-height: 1.35; }
  .tenant-cell .tname { font-weight: 600; color: #17233d; }
  .tenant-cell .tcode { margin-top: 2px; font-size: 12px; color: #909399; }
  .tenant-period { white-space: nowrap; font-variant-numeric: tabular-nums; color: #515a6e; }
  .tenant-ops { white-space: nowrap; }
  .tenant-ops .op { margin-right: 14px; }
  .tenant-ops .op:last-child { margin-right: 0; }
  .tenant-ops .op.muted { color: #c0c4cc; cursor: not-allowed; }
  .tenant-ops .op.muted:hover { text-decoration: none; }
  .tenant-table th { font-weight: 500; color: #808695; }
  .tenant-table td { padding: 16px 16px; vertical-align: middle; }
  .tenant-table .staff-pill {
    display: inline-block;
    min-width: 52px;
    text-align: center;
    padding: 2px 10px;
    background: #f4f6f8;
    color: #515a6e;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.7;
  }
  .impersonate-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 18px; background: #fff7e6; border-bottom: 1px solid #ffe7ba;
    color: #ad6800; font-size: 13px;
  }
  .impersonate-bar a { color: #2d8cf0; font-weight: 600; text-decoration: none; }
  .impersonate-bar a:hover { text-decoration: underline; }
  .tenant-cell .tlogo { width: 32px; height: 32px; border-radius: 6px; background: #e8f3ff; display:flex; align-items:center; justify-content:center; font-size:13px; color:#2d8cf0; font-weight:700; flex: none; }
  .tenant-cell .tlogo-img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; border: 1px solid #ebeef5; background: #fff; flex: none; }
  .tenant-logo-field { display: flex; align-items: flex-start; gap: 14px; }
  .tenant-logo-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    transition: border-color .2s;
  }
  .tenant-logo-uploader .el-upload:hover { border-color: #2d8cf0; }
  .tenant-logo-preview { width: 88px; height: 88px; display: block; object-fit: cover; }
  .tenant-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #909399;
    font-size: 12px;
    gap: 4px;
  }
  .tenant-logo-placeholder i { font-size: 20px; color: #c0c4cc; }
  .tenant-logo-tip { font-size: 12px; color: #909399; line-height: 1.6; padding-top: 6px; }

  /* 弹窗 + toast */
  .modal-mask { position: fixed; inset: 0; background: rgba(23,35,61,.5); display: none; align-items: center; justify-content: center; z-index: 200; }
  .modal-mask.show { display: flex; }
  .modal { background: #fff; border-radius: 6px; width: 540px; max-width: calc(100% - 32px); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 16px 50px rgba(0,0,0,.28); animation: pop .2s; }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
  .modal-h { padding: 16px 20px; border-bottom: 1px solid #f0f2f5; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
  .modal-h .x { cursor: pointer; color: #c0c4cc; font-size: 22px; line-height: 1; }
  .modal-h .x:hover { color: #909399; }
  .modal-b { padding: 20px; overflow-y: auto; }
  .modal-f { padding: 14px 20px; border-top: 1px solid #f0f2f5; display: flex; gap: 10px; justify-content: flex-end; }
  .form-row { display: flex; align-items: center; margin-bottom: 15px; }
  .form-row > label { width: 92px; flex: none; color: #606266; font-size: 13.5px; }
  .form-row .field { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .form-row .field input[type=text], .form-row .field select, .form-row .field textarea { width: 100%; border: 1px solid #dcdfe6; border-radius: 4px; padding: 8px 11px; font-size: 13.5px; color: #17233d; outline: none; font-family: inherit; }
  .form-row .field input:focus, .form-row .field select:focus, .form-row .field textarea:focus { border-color: #2d8cf0; }
  .chkid { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #515a6e; padding: 5px 10px; border: 1px solid #e4e7ed; border-radius: 4px; cursor: pointer; }
  .chkid input { accent-color: #2d8cf0; }
  .kbadge { display: inline-block; background: #ecf5ff; color: #2d8cf0; border-radius: 3px; padding: 2px 8px; font-size: 12px; margin: 2px 4px 2px 0; }
  .quota-bar { height: 8px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
  .quota-bar > i { display: block; height: 100%; background: linear-gradient(90deg,#57a3f3,#2d8cf0); }
  .kv { display: grid; grid-template-columns: 92px 1fr; gap: 10px 0; font-size: 13.5px; }
  .kv dt { color: #909399; } .kv dd { margin: 0; color: #17233d; }
  .hero { display: flex; gap: 16px; align-items: center; padding: 8px 0 16px; border-bottom: 1px solid #f0f2f5; margin-bottom: 16px; }
  .hero .ill { width: 76px; height: 76px; flex: none; border-radius: 12px; background: linear-gradient(135deg,#57a3f3,#2d8cf0); display: flex; align-items: center; justify-content: center; }
  .hero .ill svg { width: 40px; height: 40px; color: #fff; }
  .hero h4 { margin: 0 0 6px; font-size: 17px; }
  .hero p { margin: 0; color: #909399; font-size: 13px; line-height: 1.6; }
  .steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
  .steps li { position: relative; padding: 8px 0 8px 30px; font-size: 13.5px; color: #515a6e; border-left: 1px solid #e4e7ed; margin-left: 10px; }
  .steps li:last-child { border-left-color: transparent; }
  .steps li::before { counter-increment: s; content: counter(s); position: absolute; left: -11px; top: 8px; width: 21px; height: 21px; border-radius: 50%; background: #2d8cf0; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
  .upload-box { border: 1.5px dashed #c0c4cc; border-radius: 6px; padding: 28px; text-align: center; color: #909399; cursor: pointer; transition: .15s; }
  .upload-box:hover { border-color: #2d8cf0; color: #2d8cf0; }
  .upload-box svg { width: 30px; height: 30px; margin-bottom: 8px; }
  .doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #f0f2f5; border-radius: 5px; margin-bottom: 8px; font-size: 13.5px; }
  .doc-item .fi { width: 28px; height: 28px; flex: none; border-radius: 5px; background: #ecf5ff; color: #2d8cf0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
  .doc-item .dn { flex: 1; } .doc-item .ds { color: #b0b4bb; font-size: 12px; }
  .confirm-icon { width: 46px; height: 46px; border-radius: 50%; background: #fdf3e7; color: #e08a2b; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
  .confirm-icon svg { width: 24px; height: 24px; }
  .toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(23,35,61,.92); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13.5px; z-index: 300; opacity: 0; transition: .25s; pointer-events: none; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 860px) {
    .login-card { grid-template-columns: 1fr; } .login-aside { display: none; } .login-main .mb { display: flex; }
    .side { width: 64px; } .side-brand b, .side-brand small, .menu-item span { display: none; } .menu-item { justify-content: center; padding: 14px 0; } .side-foot { display: none; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
  }

/* 二级菜单（系统管理） */
.menu-item.has-children {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-left: 0;
  margin: 2px 0;
}
.menu-item.has-children:hover { background: transparent; }
.menu-item.has-children > .menu-parent {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px 12px 22px;
  color: #515a6e;
  border-left: 3px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s;
}
.menu-item.has-children > .menu-parent:hover {
  background: #f5f7fa;
  color: #2d8cf0;
}
.menu-item.has-children.open > .menu-parent {
  color: #2d8cf0;
  background: #f7faff;
}
.menu-item.has-children .menu-ico { width: 17px; height: 17px; flex: none; }
.menu-item.has-children .menu-parent > span { flex: 1; }
.menu-item.has-children .menu-arrow {
  width: 14px;
  height: 14px;
  flex: none;
  color: #c0c4cc;
  transition: transform .2s ease, color .15s;
}
.menu-item.has-children.open > .menu-parent .menu-arrow {
  transform: rotate(90deg);
  color: #2d8cf0;
}
.menu-item.has-children .sub {
  display: none;
  position: relative;
  margin: 0 12px 8px 34px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid #e8eaed;
}
.menu-item.has-children.open .sub { display: block; }
.menu-item.has-children .sub a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
  padding: 8px 12px;
  color: #808695;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.menu-item.has-children .sub a i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dcdfe6;
  flex: none;
  transition: background .15s, transform .15s;
}
.menu-item.has-children .sub a:hover {
  color: #2d8cf0;
  background: #f0f7ff;
}
.menu-item.has-children .sub a:hover i,
.menu-item.has-children .sub a.active i {
  background: #2d8cf0;
  transform: scale(1.15);
}
.menu-item.has-children .sub a.active {
  color: #2d8cf0;
  background: #ecf5ff;
  font-weight: 600;
}
.empty {
  color: #909399;
  text-align: center;
  padding: 48px 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* 统一列表筛选条 */
.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.admin-filter .af-grow {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
}
.admin-filter .af-date { width: 300px; }
.admin-filter .af-date.el-range-editor.el-input__inner {
  width: 300px !important;
  padding-right: 10px;
}
.admin-filter .af-date .el-range-separator {
  width: 24px;
  padding: 0;
  line-height: 28px;
  color: #909399;
  overflow: visible;
}
.admin-filter .af-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.admin-filter .af-tip {
  margin: 0;
  color: #909399;
  font-size: 13px;
  line-height: 1.5;
}
.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dialog-toolbar .tip {
  margin: 0;
  color: #909399;
  font-size: 13px;
  line-height: 1.5;
}
.dash-alerts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-alerts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f2f5;
  font-size: 13.5px;
  line-height: 1.55;
  color: #515a6e;
}
.dash-alerts li:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-alerts li:first-child { padding-top: 0; }
.dash-alerts .tag { flex: none; margin-top: 1px; }
.dash-alerts .txt { flex: 1; min-width: 0; }
.dash-alerts .txt b { color: #17233d; }
.dash-alerts .op { margin-left: 6px; }
.dash-expired-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.dash-expired-list span {
  display: inline-block;
  padding: 2px 8px;
  background: #fdeaea;
  color: #f56c6c;
  border-radius: 3px;
  font-size: 12px;
}

.period-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #d9ecff;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  box-shadow: 0 2px 8px rgba(45, 140, 240, .08);
}
.period-banner .pb-icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d8cf0;
  color: #fff;
}
.period-banner .pb-icon svg { width: 26px; height: 26px; }
.period-banner .pb-main { flex: 1; min-width: 0; }
.period-banner .pb-lab { font-size: 13px; color: #808695; margin-bottom: 2px; }
.period-banner .pb-date { font-size: 24px; font-weight: 700; color: #17233d; letter-spacing: .3px; line-height: 1.25; }
.period-banner .pb-sub { margin-top: 4px; font-size: 13px; color: #515a6e; }
.period-banner .pb-status {
  flex: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  background: #e8f8ef;
  color: #19a35a;
}
.period-banner.is-expiring {
  border-color: #f5d4a6;
  background: linear-gradient(135deg, #fff8ee 0%, #fff1dc 100%);
  box-shadow: 0 2px 8px rgba(224, 138, 43, .12);
}
.period-banner.is-expiring .pb-icon { background: #e08a2b; }
.period-banner.is-expiring .pb-date { color: #c56a0a; }
.period-banner.is-expiring .pb-status { background: #fdf3e7; color: #e08a2b; }
.period-banner.is-expired,
.period-banner.is-stopped {
  border-color: #f5c2c2;
  background: linear-gradient(135deg, #fff5f5 0%, #ffecec 100%);
  box-shadow: 0 2px 8px rgba(245, 108, 108, .12);
}
.period-banner.is-expired .pb-icon,
.period-banner.is-stopped .pb-icon { background: #f56c6c; }
.period-banner.is-expired .pb-date,
.period-banner.is-stopped .pb-date { color: #d94848; }
.period-banner.is-expired .pb-status,
.period-banner.is-stopped .pb-status { background: #fdeaea; color: #f56c6c; }
.period-banner.is-pending {
  border-color: #f5d4a6;
  background: linear-gradient(135deg, #fff8ee 0%, #fff1dc 100%);
}
.period-banner.is-pending .pb-icon { background: #e08a2b; }
.period-banner.is-pending .pb-status { background: #fdf3e7; color: #e08a2b; }
@media (max-width: 640px) {
  .period-banner { flex-wrap: wrap; }
  .period-banner .pb-date { font-size: 20px; }
}

/* 智能体页：轻量样式，避免撑破表格 */
#page-app .agent-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}
#page-app .agent-cell .ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  background: #ecf5ff;
  color: #2d8cf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
#page-app .agent-cell .ico.doc { background: #e8f8ef; color: #19a35a; }
#page-app .agent-cell .ico.data { background: #fdf3e7; color: #e08a2b; }
#page-app .agent-cell .meta { min-width: 0; }
#page-app .agent-cell .meta b {
  display: block;
  font-size: 14px;
  color: #17233d;
  font-weight: 600;
  line-height: 1.35;
}
#page-app .agent-cell .meta small {
  display: block;
  margin-top: 2px;
  color: #b0b4bb;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
#page-app .ops { white-space: nowrap; }
#page-app .ops .op { margin-right: 10px; }
#page-app .ops .op:last-child { margin-right: 0; }
#page-app .assign-box {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 6px 12px;
}
#page-app .assign-box .el-checkbox {
  display: block;
  margin: 8px 0;
}
#page-app .perm-tree-box {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 8px 12px;
}
#page-app .form-hint {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fdf6ec;
  border-radius: 4px;
  color: #e6a23c;
  font-size: 12.5px;
  line-height: 1.5;
}

/* 任务详情弹窗（总后台/租户共用） */
.task-detail-dialog .el-dialog__header { padding: 16px 20px 10px; }
.task-detail-dialog .el-dialog__body { padding: 6px 20px 16px; }
.task-detail { color: #17233d; }
.task-detail .td-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 4px 0 14px;
  border-bottom: 1px solid #f0f2f5;
}
.task-detail .td-ill {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #57a3f3, #2d8cf0);
  color: #fff;
}
.task-detail .td-ill svg { width: 24px; height: 24px; }
.task-detail .td-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.task-detail .td-sub {
  margin-top: 4px;
  color: #909399;
  font-size: 13px;
}
.task-detail .td-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.task-detail .td-sec { margin-top: 16px; }
.task-detail .td-sec-title {
  font-size: 13px;
  font-weight: 600;
  color: #606266;
  margin: 0 0 8px;
  padding-left: 8px;
  border-left: 3px solid #2d8cf0;
  line-height: 1.2;
}
.task-detail .td-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #f0f2f5;
  font-size: 13.5px;
  line-height: 1.5;
}
.task-detail .td-row:last-child { border-bottom: 0; }
.task-detail .td-row .k {
  width: 78px;
  flex: none;
  color: #909399;
  padding-top: 1px;
}
.task-detail .td-row .v {
  flex: 1;
  min-width: 0;
  color: #17233d;
  word-break: break-all;
}
.task-detail .td-row .muted { color: #c0c4cc; }
.task-detail .td-cmd {
  margin: 0;
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  color: #515a6e;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.task-detail .td-error {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fef0f0;
  border: 1px solid #fde2e2;
  border-radius: 8px;
  color: #f56c6c;
  font-size: 13px;
  line-height: 1.55;
}
.task-detail .td-files { display: flex; flex-direction: column; gap: 8px; }
.task-detail .td-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 8px;
}
.task-detail .td-file .fi {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecf5ff;
  color: #2d8cf0;
  font-size: 12px;
  font-weight: 700;
}
.task-detail .td-file .meta { flex: 1; min-width: 0; }
.task-detail .td-file .name {
  font-size: 13.5px;
  color: #17233d;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-detail .td-file .kind { margin-top: 2px; }
.task-detail .td-empty {
  padding: 14px;
  text-align: center;
  color: #c0c4cc;
  font-size: 13px;
  background: #fafbfc;
  border: 1px dashed #e4e7ed;
  border-radius: 8px;
}
.task-detail .td-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #909399;
  font-size: 12.5px;
}
.task-detail .td-foot b { color: #909399; font-weight: 500; margin-right: 4px; }
.task-detail code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  background: #f5f7fa;
  color: #3a4a5c;
  padding: 2px 6px;
  border-radius: 4px;
}

.win-page { margin: 0; }
.win-explorer {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  min-height: calc(100vh - 124px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
  display: flex;
  flex-direction: column;
}
.win-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
}
.win-bar > .el-input {
  width: 240px;
  flex: none;
}
.win-bar .el-upload { display: inline-block; flex: none; }
.win-back {
  width: 28px; height: 28px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #515a6e; text-decoration: none; border-radius: 4px;
}
.win-back svg { width: 16px; height: 16px; }
.win-back:hover { background: #ecf5ff; color: #2d8cf0; }
.win-title {
  font-size: 14px;
  font-weight: 600;
  color: #17233d;
  margin: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win-split {
  width: 1px; height: 16px; background: #ebeef5; flex: none;
}
.win-del { color: #f56c6c !important; }
.win-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  justify-content: start;
  gap: 8px 4px;
  padding: 20px 16px 28px;
  align-content: start;
  flex: 1;
  background: #fff;
}
.win-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 112px;
  min-height: 108px;
  padding: 10px 6px 8px;
  text-decoration: none;
  color: #17233d;
  border: 1px solid transparent;
  border-radius: 6px;
}
.win-item:hover { background: #ecf5ff; border-color: #d6e9fb; }
.win-item:focus, .win-item:active, .win-item:focus-within {
  background: #e4f0fb;
  border-color: #c6e0f8;
  outline: none;
}
.win-folder, .win-doc {
  width: 68px; height: 68px; display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
.win-item-link {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
}
.win-item-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  min-height: 22px;
}
.win-item-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #2d8cf0;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.win-item-dl:hover {
  background: #ecf5ff;
  border-color: #b3d8ff;
  color: #1a7ae8;
}
.win-item span, .win-item-link span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
  max-width: 100px;
  color: #17233d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.win-item-del {
  position: static;
  width: 22px; height: 22px; padding: 0; line-height: 20px;
  border: 1px solid #fbc4c4; border-radius: 4px; background: #fff;
  color: #f56c6c; font-size: 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  opacity: 1; pointer-events: auto;
}
.win-item-del:hover { background: #fdeaea; }
.win-empty {
  color: #909399; text-align: left; padding: 48px 8px;
  font-size: 13px; grid-column: 1 / -1;
}
.muted { color: #c0c4cc; }
