/* ===================================================================
   箭金 GEO SaaS · 登录页 + 新增模块样式（v2.0）
   与 styles.css 共用品牌色，单独成文件便于登录页只引这一个
   =================================================================== */

:root {
  --brand: #006835;
  --brand-d: #004e27;
  --brand-l: #E8F1E9;
  --brand-soft: #F0F6EE;
  --gold: #BCC22E;
  --gold-d: #8F941F;
  --gold-soft: #F6F7E2;
  --cream: #FAF7E6;
  --ink: #14201A;
  --ink-2: #3C4A42;
  --muted: #7C8A82;
  --line: #E2E8DE;
  --line-2: #EDF1EA;
  --red: #C0392B;
  --red-soft: #FBEAE7;
  --blue: #1E6FA8;
  --blue-soft: #E7F1F8;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 20, .06), 0 1px 3px rgba(11, 31, 20, .04);
  --shadow-md: 0 4px 16px rgba(11, 31, 20, .08), 0 1px 3px rgba(11, 31, 20, .04);
  --shadow-lg: 0 24px 60px rgba(6, 40, 24, .16), 0 8px 20px rgba(6, 40, 24, .08);
}

/* ============================ 登录页（扫码优先） ============================ */
.login-body, .login-body * { box-sizing: border-box; }
.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #EEF3EA;
  -webkit-font-smoothing: antialiased;
}

.login-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  min-height: 100vh;
}

/* 左：品牌区 */
.lg-left {
  position: relative;
  padding: 44px 56px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(188, 194, 46, .22), transparent 62%),
    radial-gradient(700px 420px at 8% 96%, rgba(188, 194, 46, .12), transparent 60%),
    linear-gradient(158deg, #04291A 0%, #00512B 46%, #006835 100%);
  overflow: hidden;
}
.lg-left::after {
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .022);
  pointer-events: none;
}

.lg-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.lg-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(145deg, var(--gold), #8FA022);
  color: #0A2A1A; font-weight: 800; font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.lg-brand strong { display: block; font-size: 15.5px; letter-spacing: .3px; }
.lg-brand span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .62); margin-top: 2px; letter-spacing: 1.2px; }

.lg-pitch { position: relative; z-index: 1; max-width: 520px; }
.lg-pitch h1 {
  margin: 0 0 16px;
  font-size: 34px; line-height: 1.34; font-weight: 700; letter-spacing: -.4px;
}
.lg-pitch > p {
  margin: 0 0 30px;
  font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .74);
}
.lg-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lg-feats li { display: flex; gap: 13px; align-items: flex-start; }
.lg-feats i {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  background: rgba(188, 194, 46, .16);
  border: 1px solid rgba(188, 194, 46, .34);
  color: var(--gold);
  font-style: normal; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.lg-feats b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.lg-feats span { display: block; font-size: 12px; color: rgba(255, 255, 255, .58); line-height: 1.6; }

.lg-stats {
  position: relative; z-index: 1;
  display: flex; gap: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.lg-stats b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.lg-stats span { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 2px; letter-spacing: .6px; }

/* 右：登录卡 */
.lg-right {
  display: grid;
  /* 隐式列默认 max-content，卡片会把手机屏撑破 —— 显式给一列 minmax(0,1fr) */
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 36px 30px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(188, 194, 46, .12), transparent 60%),
    linear-gradient(180deg, #F7FAF3, var(--cream));
}
.lg-card {
  width: 100%; max-width: 396px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px 26px 14px;
}

/* 卡头 */
.lg-head { text-align: center; margin-bottom: 12px; }
.lg-head .lg-logo {
  width: 40px; height: 40px; margin: 0 auto 9px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold), #8FA022);
  color: #0A2A1A; font-weight: 800; font-size: 21px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(143, 160, 34, .28);
}
.lg-head h2 { margin: 0; font-size: 17.5px; letter-spacing: -.2px; }
.lg-head p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }

/* 二维码 */
.lg-qr-frame {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px #F6F9F3;
}
.lg-qr-frame::before,
.lg-qr-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--brand); border-radius: 3px;
}
.lg-qr-frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.lg-qr-frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.lg-qrbox {
  width: 100%; height: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: grid; place-items: center;
  background: #fff;
}
.lg-qrbox svg { width: 100%; height: 100%; display: block; }
.lg-qrbox iframe { width: 100%; height: 100%; border: 0; }
/* 新版企微登录页（Nuxt 单页）比一张二维码大得多：整页塞进 184px 会被裁掉半边，
   所以切到 wwlogin 模式时把外框放大到卡片可用宽度，并去掉四角装饰（会和企微白卡重影）。 */
.lg-qr-frame.is-wx { width: 100%; height: 456px; padding: 0; box-shadow: none; }
.lg-qr-frame.is-wx::before,
.lg-qr-frame.is-wx::after { content: none; }
/* v3.46：真二维码走 <img> 直显。框按二维码实际尺寸收窄，别让它撑满整张卡片 */
.lg-qr-frame.is-qr { width: 210px; height: 210px; padding: 6px; box-shadow: none; }
.lg-qr-frame.is-qr::before,
.lg-qr-frame.is-qr::after { content: none; }
.lg-qrbox iframe.lg-wx-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; border-radius: 8px; }
/* 企微真二维码：直接 <img> 直显，不依赖 iframe（iframe 里企微页不渲染，就是「扫码没反应」的根因） */
.lg-qrbox img.lg-qr-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.lg-qr-alt { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--brand); text-decoration: underline; }
.lg-qr-fail {
  display: grid; place-items: center; gap: 10px;
  width: 100%; padding: 10px; box-sizing: border-box;
  font-size: 12px; line-height: 1.6; color: var(--ink-2); text-align: center;
}
.lg-qr-fail .btn { font-size: 12.5px; padding: 7px 12px; }
.lg-qr-skeleton { display: grid; gap: 8px; width: 62%; }
.lg-qr-skeleton span { height: 8px; border-radius: 4px; background: var(--line-2); animation: pulse 1.3s ease-in-out infinite; }
.lg-qr-skeleton span:nth-child(2) { width: 78%; animation-delay: .18s; }
.lg-qr-skeleton span:nth-child(3) { width: 52%; animation-delay: .36s; }

/* 状态行 */
.lg-status {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 11px 0 0;
  font-size: 12.5px; color: var(--ink-2); text-align: center; min-height: 19px;
}
.lg-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(0, 104, 53, .12);
  animation: lgPulse 1.6s ease-in-out infinite;
}
.lg-status.ok i { animation: none; }
.lg-status.ok { color: var(--brand); font-weight: 600; }
.lg-status.err { color: #96281C; }
.lg-status.err i { background: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); animation: none; }
@keyframes lgPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 提示与口径 */
.lg-tip2 {
  margin: 10px 0 0;
  font-size: 12px; line-height: 1.7; color: var(--muted); text-align: center;
}
.lg-tip2 b { color: var(--ink-2); }
.lg-roles {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin: 8px 0 0;
}
.lg-roles span {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid #DCE9D9; white-space: nowrap;
}

/* 演示模式身份选择 */
.lg-demo {
  margin-top: 11px; padding: 9px 11px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px dashed #D8DB9B;
}
.lg-demo label { display: block; font-size: 11px; font-weight: 700; color: var(--gold-d); letter-spacing: .5px; margin-bottom: 6px; }
.lg-demo select {
  width: 100%; padding: 7px 9px; font: inherit; font-size: 12.5px;
  border: 1px solid #D8DB9B; border-radius: 7px; background: #fff; color: var(--ink);
}
.lg-demo p { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: #7B7F45; }

/* 免登 */
.lg-sso { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* 运营职系自助建号 */
.lg-signup {
  margin-top: 11px; padding: 11px 12px;
  border-radius: 11px; text-align: left;
  background: #F2F8F1; border: 1px solid #CFE3CE;
}
.lg-signup-hd { display: flex; flex-direction: column; gap: 2px; margin-bottom: 9px; }
.lg-signup-hd b { font-size: 12.5px; color: var(--brand-d, #00552B); }
.lg-signup-hd span { font-size: 11px; color: var(--ink-2); line-height: 1.5; }
.lg-signup .lg-field { margin-bottom: 7px; }
.lg-signup .lg-field > span { font-size: 11px; }
.lg-signup select {
  width: 100%; padding: 8px 9px; font: inherit; font-size: 12.5px;
  border: 1px solid #CFE3CE; border-radius: 8px; background: #fff; color: var(--ink);
}
.lg-signup .lg-btn { margin-top: 3px; }

/* 按钮 */
.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 14px;
  border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .16s;
}
.lg-btn svg { width: 16px; height: 16px; }
.lg-btn.primary {
  background: linear-gradient(145deg, var(--brand), #00833F);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 104, 53, .24);
}
.lg-btn.primary:hover { filter: brightness(1.06); }
.lg-btn.primary:active { transform: translateY(1px); }
.lg-btn.primary[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.lg-btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.lg-btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* 管理员应急登录（默认折叠） */
.lg-admin { margin-top: 8px; text-align: center; }
.lg-admin-toggle {
  background: none; border: 0; padding: 4px 6px;
  font: inherit; font-size: 11.5px; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.lg-admin-toggle:hover { color: var(--brand); }
.lg-admin-toggle svg { width: 13px; height: 13px; transition: transform .18s; }
.lg-admin.open .lg-admin-toggle svg { transform: rotate(180deg); }
.lg-admin-body {
  display: none;
  margin-top: 10px; padding: 13px 13px 4px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #FBFCF9; text-align: left;
}
.lg-admin.open .lg-admin-body { display: block; }

.lg-field { display: block; margin-bottom: 11px; }
.lg-field span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.lg-field input {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--ink);
  background: #fff; transition: .15s;
}
.lg-field input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 104, 53, .11); }
.lg-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
.lg-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.lg-check input { accent-color: var(--brand); }
.lg-link { font-size: 12px; color: var(--brand); text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

.lg-msg {
  margin-top: 12px; padding: 9px 12px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.6;
  background: var(--red-soft); color: #96281C; border: 1px solid #F2D3CD;
}
.lg-msg.ok { background: var(--brand-soft); color: var(--brand); border-color: #CFE2CB; }

.lg-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2);
  /* 竖排两行：横排时三个分隔点会把一句话拆成四截（窄卡里最难看的就是这个） */
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; line-height: 1.55; color: var(--muted); text-align: center;
}
.lg-foot span { white-space: nowrap; }
.lg-foot b { font-weight: 500; }
.lg-foot-note { color: #9AA795; }
.lg-foot a { color: var(--muted); text-decoration: none; }
.lg-foot a:hover { color: var(--brand); }
.lg-dot { color: #CBD5C8; font-style: normal; margin: 0 2px; }

@media (max-width: 1080px) {
  .login-wrap { grid-template-columns: 1fr; }
  .lg-left { display: none; }
  .lg-right { min-height: 100vh; background: linear-gradient(180deg, #F7FAF4, var(--cream)); }
}
@media (max-width: 460px) {
  .lg-right { padding: 20px 14px; }
  .lg-card { padding: 20px 18px 14px; border-radius: 14px; }
  .lg-qr-frame { width: 200px; height: 200px; }
}

/* ============================ 应用内新增 ============================ */

/* 顶栏用户菜单 */
.um-wrap { position: relative; }
.um-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 8px 3px 3px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; transition: .16s;
}
.um-btn:hover { border-color: #CFDCCB; box-shadow: var(--shadow-sm); }
.um-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), #00854A);
  color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; letter-spacing: -.5px;
}
.um-nm { font-size: 12.5px; font-weight: 600; color: var(--ink); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-btn svg { width: 13px; height: 13px; color: var(--muted); }
.um-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 258px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px;
  display: none;
}
.um-menu.on { display: block; }
.um-head { padding: 10px 11px 11px; border-bottom: 1px solid var(--line-2); }
.um-head b { display: block; font-size: 13.5px; }
.um-head span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.um-tenant {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 10.5px; font-weight: 600;
}
.um-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.um-item:hover { background: var(--line-2); color: var(--ink); }
.um-item svg { width: 15px; height: 15px; color: var(--muted); }
.um-item.danger { color: var(--red); }
.um-item.danger svg { color: var(--red); }
.um-sep { height: 1px; background: var(--line-2); margin: 5px 4px; }

/* 离线 / 只读 提示条 */
.auth-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 9px; margin-bottom: 14px;
  font-size: 12.5px; line-height: 1.6;
  background: var(--gold-soft); border: 1px solid #E7E8C4; color: #6E7320;
}
.auth-banner.red { background: var(--red-soft); border-color: #F2D3CD; color: #96281C; }
.auth-banner.blue { background: var(--blue-soft); border-color: #CFE3F1; color: #1B5C8A; }
.auth-banner b { font-weight: 700; }
.auth-banner svg { width: 15px; height: 15px; flex: 0 0 15px; }
.auth-banner .ab-act { margin-left: auto; }

/* 我的自媒体账户 */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(322px, 1fr)); gap: 12px; }
.acct {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 14px 15px; display: flex; flex-direction: column; gap: 10px;
}
.acct.own { border-color: #CFE2CB; background: linear-gradient(180deg, #FBFDF9, #fff); }
.acct-hd { display: flex; align-items: flex-start; gap: 10px; }
.acct-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.acct-ico.off { background: #F1F3EF; color: var(--muted); }
.acct-nm { flex: 1; min-width: 0; }
.acct-nm b { display: block; font-size: 13.5px; line-height: 1.3; }
.acct-nm span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.acct-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-meta em {
  font-style: normal; font-size: 10.5px; color: var(--ink-2);
  background: var(--line-2); border-radius: 5px; padding: 2px 7px;
}
.acct-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.acct-acts { display: flex; gap: 7px; margin-top: 2px; }
.acct-acts .btn { flex: 1; justify-content: center; font-size: 12px; padding: 7px 10px; }

/* 团队 */
.team-tbl td .role-sel {
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 7px;
  font: inherit; font-size: 11.5px; background: #fff; color: var(--ink-2);
}
.mem-av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; flex: 0 0 26px;
}
.mem-cell { display: flex; align-items: center; gap: 9px; }

/* 集成配置 */
.integ { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.integ-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 17px; }
.integ-card.wide { grid-column: 1 / -1; }
.integ-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.integ-hd b { font-size: 14px; }
.integ-hd .st { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.integ-hd .st.on { background: var(--brand-soft); color: var(--brand); }
.integ-hd .st.off { background: #F1F3EF; color: var(--muted); }
.integ-sub { font-size: 11.5px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.integ-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.integ-row > span { font-size: 12px; color: var(--ink-2); }
.integ-row input, .integ-row select {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12.5px; background: #fff;
}
.integ-row input:focus, .integ-row select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 104, 53, .1); }
.integ-row .hint-in { font-size: 11px; color: var(--muted); margin-top: 4px; }
/* 上面那条 width:100% 会把复选框也拉满整行、盖住旁边的文字，这里必须挡掉 */
.integ-row input[type="checkbox"] {
  width: 13px; height: 13px; min-width: 13px; padding: 0; margin: 0;
  border-radius: 3px; accent-color: var(--brand); box-shadow: none;
}
.integ-acts { display: flex; gap: 8px; margin-top: 12px; }
.integ-steps { margin: 0; padding-left: 18px; font-size: 11.5px; color: var(--ink-2); line-height: 1.9; }
.integ-steps code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

/* 企微「测试连接」的结果条：成功绿、失败红、提醒黄，别再用一堆灰字让人猜 */
.wx-ok, .wx-bad, .wx-warn { margin-top: 3px; font-size: 11.5px; line-height: 1.7; }
.wx-ok { color: #1C7A4A; font-weight: 600; }
.wx-bad { color: var(--red); font-weight: 600; }
.wx-warn { color: #8A6A16; }
#wxTestMsg code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

/* 60020 出口 IP 卡片：这是唯一需要人去企微后台操作的一步，做得醒目可复制 */
.wx-ip {
  margin-top: 9px; padding: 11px 12px; border-radius: 9px;
  background: #FDF6EC; border: 1px solid #F0D9AE;
}
.wx-ip-hd { font-size: 11.5px; font-weight: 600; color: #8A6A16; margin-bottom: 7px; }
.wx-ip-val { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wx-ip-val code {
  flex: 0 0 auto; background: #fff !important; border: 1px solid #F0D9AE;
  padding: 5px 10px !important; font-size: 13.5px !important; font-weight: 700;
  color: #7A4E0A; letter-spacing: .4px; border-radius: 6px;
}
.wx-ip-val .btn.mini { padding: 4px 10px; font-size: 11.5px; }
.wx-ip-steps {
  margin: 0; padding-left: 17px; font-size: 11.5px; line-height: 1.85; color: #6B5320;
}
.wx-ip-steps li { margin: 0; }

/* 生成来源标记 */
.gen-src {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.gen-src.ai { background: #E9F3EC; color: var(--brand); }
.gen-src.tpl { background: var(--gold-soft); color: var(--gold-d); }
.gen-src svg { width: 12px; height: 12px; }

/* 登录二维码弹窗（绑定第三方账号） */
.bind-qr { text-align: center; }
.bind-qr svg { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 10px; }
.bind-qr p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
  .login-wrap { grid-template-columns: 1fr; }
  .lg-left { display: none; }
  .lg-right { min-height: 100vh; background: linear-gradient(180deg, #F7FAF4, var(--cream)); }
}
@media (max-width: 720px) {
  .lg-right { padding: 22px 16px; }
  .lg-card { padding: 20px 18px 16px; border-radius: 14px; }
  .integ { grid-template-columns: 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
}

/* ============================ 启动占位 ============================ */
.boot-splash {
  min-height: 100vh; display: grid; place-content: center; justify-items: center;
  gap: 14px; background: var(--cream);
}
.boot-mark {
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(145deg, var(--gold), #8FA022);
  color: #0A2A1A; font-weight: 800; font-size: 25px;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 104, 53, .18);
  animation: bootPulse 1.6s ease-in-out infinite;
}
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.boot-txt { font-size: 13px; color: var(--muted); letter-spacing: .3px; }

/* ============================ 弹窗表单 ============================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: block; }
.fld > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.fld input, .fld select {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 12.5px; color: var(--ink); background: #fff;
}
.fld input:focus, .fld select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 104, 53, .1); }

/* 生成失败提示 */
.gl-err {
  margin-top: 10px; font-size: 11.5px; line-height: 1.7;
  color: #96281C; background: var(--red-soft);
  border: 1px solid #F2D3CD; border-radius: 7px; padding: 8px 10px;
}

/* 表格内角色下拉 */
.tbl .role-sel {
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 7px;
  font: inherit; font-size: 11.5px; background: #fff; color: var(--ink-2); cursor: pointer;
}
.tbl .role-sel:focus { outline: 0; border-color: var(--brand); }

/* 企业微信 userid 可能很长（拼音全拼），单元格不能撑破表格 */
.tbl td.tm-wx {
  font-size: 11.5px; font-family: ui-monospace, Menlo, monospace;
  max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 侧栏离线状态 */
.sidebar-foot .live.off { color: var(--gold-d); }
.sidebar-foot .live.off i { background: var(--gold); box-shadow: 0 0 0 3px rgba(188, 194, 46, .18); }

/* 只读时隐藏写操作的兜底 */
body[data-ro="1"] .btn.primary { opacity: .55; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* 集成卡片里的图标必须限宽，否则 SVG 会撑满整行 */
.integ-hd > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--brand); }
.integ-hd > b { font-size: 14px; }
.integ-hd .st { flex: 0 0 auto; }
.auth-banner > svg { width: 15px; height: 15px; }
.umu-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }

/* 勾选项不折行 */
.lg-check { white-space: nowrap; }
.integ-row .lg-check input { flex: 0 0 auto; }

/* 用户菜单里的分校徽标图标限宽 */
.um-tenant > svg { width: 12px; height: 12px; flex: 0 0 12px; }
.um-head .um-tenant { max-width: 100%; }

/* 窄屏：关键词表本身可横向滚动，不让整页溢出 */
@media (max-width: 820px) {
  #kwTableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #kwTableWrap .tbl { min-width: 660px; }
}

/* 中等宽度：关键词页两栏会撑破，强制单列（1024 也撑，断点提到 1080） */
@media (max-width: 1080px) {
  .kw-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .kw-layout > .card { min-width: 0; }
}

/* grid 子项默认 min-width:auto 会被内容撑破，这里统一放开 */
@media (max-width: 1080px) {
  .kw-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .kw-layout > .card { min-width: 0; }
  .card-bd.flush { min-width: 0; }
}

/* ===================== 快捷重授权（登录态失效 → 重扫 → 原动作继续） ===================== */
.ra { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
.ra-l { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ra-qr {
  width: 186px; height: 186px; box-sizing: border-box; padding: 9px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.ra-qr svg { width: 100%; height: 100%; display: block; }
.ra-qr.scanning::after {
  content: ''; position: absolute; left: 8px; right: 8px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: raScan 2.4s ease-in-out infinite;
}
@keyframes raScan { 0% { top: 10%; } 50% { top: 88%; } 100% { top: 10%; } }
.ra-qr.dead { filter: grayscale(1); opacity: .32; }
.ra-qr.dead::after { display: none; }
.ra-cd { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.ra-cd b { color: var(--ink-2); }
.ra-cd.late b { color: var(--red); }
/* 二维码时长按平台自己的最长时效给：下面这行说明「为什么是 30 天 / 5 分钟」 */
.ra-cd-note { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); font-style: normal; line-height: 1.5; }
.ra-empty {
  width: 186px; height: 186px; box-sizing: border-box; border: 1px dashed var(--line);
  border-radius: 12px; display: grid; place-items: center; text-align: center;
  font-size: 11.5px; color: var(--muted); padding: 16px; line-height: 1.75; background: #FCFDFB;
}
.ra-r { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ra-bad {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: #96281C; background: var(--red-soft); border: 1px solid #F2D3CD;
  border-radius: 8px; padding: 8px 10px;
}
.ra-bad svg { width: 14px; height: 14px; flex: 0 0 14px; }
.ra-bad.ok { color: #1D6B3F; background: var(--brand-soft2); border-color: #DCEBE0; }
.ra-why { font-size: 12px; color: var(--ink-2); line-height: 1.75; }
.ra-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ra-kv li { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; }
.ra-kv i { font-style: normal; color: var(--muted); flex: 0 0 60px; }
.ra-kv span { color: var(--ink); font-weight: 600; word-break: break-all; }
.ra-imp {
  font-size: 11.5px; color: #8A5B12; background: var(--gold-soft);
  border: 1px solid #F5E8CB; border-radius: 8px; padding: 7px 9px; line-height: 1.7;
}
.ra-imp b { color: #7A4F0C; }
.ra-steps { margin: 0; padding-left: 17px; font-size: 11.5px; color: var(--muted); line-height: 1.85; }
.ra-auto { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.ra-auto input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--brand); margin: 0; }
.ra-st { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--brand); }
.ra-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: raBlink 1.2s ease-in-out infinite; }
.ra-st.bad { color: var(--red); }
.ra-st.bad i { background: var(--red); animation: none; }
@keyframes raBlink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ra-handle span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.ra-handle input {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12.5px;
}
.ra-handle input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 104, 53, .1); }
/* v3.35：电话 / 微信号并排（窄屏自动落成两行） */
.ra-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .ra-2col { grid-template-columns: 1fr; } }
/* 校区卡片：直营标 + 电话 + 教学点 */
.cst-tel { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); margin-top: 3px; flex-wrap: wrap; }
.cst-tel svg { width: 12px; height: 12px; flex: 0 0 12px; }
.cst-tel b { color: var(--ink); font-weight: 600; }
.cst-pts { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; font-size: 11px; color: var(--ink-3); line-height: 1.7; }
.cst-pts i { font-style: normal; color: var(--ink-2); font-weight: 600; }
/* 电话不折行 —— 「0575-85588699」被断成「0575-」+「85588699」很难看 */
.cst-pts .cst-pt-tel { white-space: nowrap; }
.cst-direct { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #EAF4EE; color: #0B6B3A; border: 1px solid #C9E4D5; font-weight: 700; }
@media (max-width: 760px) {
  .ra { grid-template-columns: 1fr; gap: 14px; }
  .ra-l { flex-direction: column; }
  .ra-qr, .ra-empty { width: 150px; height: 150px; }
}

/* 账号卡：失效态 */
.acct.gone { border-color: #F2D3CD; background: linear-gradient(180deg, #FEFAF8, #fff); }
.acct.gone .acct-ico { background: var(--red-soft); color: #96281C; }
.acct-life { font-size: 11px; color: var(--muted); }
.acct-life b { color: var(--ink-2); }
.acct-life.down b { color: var(--red); }
.acct-life.soon b { color: var(--gold-d); }

/* 自动化任务卡：本账号登录态提示条 */
.t-login {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 8px; font-size: 11px; line-height: 1.5;
  background: var(--red-soft); border: 1px solid #F2D3CD; color: #96281C;
}
.t-login svg { width: 12px; height: 12px; flex: 0 0 12px; }
.t-login span { min-width: 0; }
.t-login .btn { margin-left: auto; flex: 0 0 auto; padding: 3px 7px; font-size: 10.5px; }
.t-login.soft { background: var(--gold-soft); border-color: #F5E8CB; color: #8A5B12; }

/* 账号卡里的小按钮不要均分宽度，否则「模拟失效 / 解绑」挤成一团 */
.acct-acts .btn.ghost { flex: 0 0 auto; padding-left: 9px; padding-right: 9px; }

/* .ra-imp 里的图标必须限宽，否则会撑成一整块大图 */
.ra-imp { display: flex; align-items: flex-start; gap: 6px; }
.ra-imp > svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 2px; }
.ra-steps li { margin: 0; }

/* 重新授权弹窗比常规弹窗宽一点，右侧信息才能排成两栏 */
#modal.wide { width: 620px; }
#modal.wide .modal-bd { padding: 18px; }
@media (max-width: 700px) { #modal.wide { width: 94vw; } }

/* 抽屉 / 弹窗打开时先收起右下角的 AI 助手，否则它会压住「试发一篇」这类底部按钮 */
body:has(#drawer.on) [data-jianjin-ai],
body:has(#modal.on) [data-jianjin-ai] { display: none !important; }

/* ===================================================================
   平台管理（超级管理员）
   —— 一屏看完所有分校：统计在上，成员与任务在下，动作用按钮直接落地
   =================================================================== */

/* 代管横幅：比普通提示更强，因为改的是别人的分校 */
.auth-banner.acting {
  background: linear-gradient(90deg, #FDF6E7 0%, #FCF9F0 100%);
  border: 1px solid #F0DFB8;
  border-left: 3px solid var(--gold);
  color: #6E4A08;
}
.auth-banner.acting svg { color: var(--gold); }
.auth-banner.acting .btn { background: #fff; border-color: #EBD9B2; color: #6E4A08; }
.auth-banner.acting .btn:hover { background: #FFFDF7; }
.chip-env.acting { background: var(--gold-soft); border-color: #F0DFB8; color: #8A5B12; }

/* 分校卡列表 */
.adm-list { display: flex; flex-direction: column; gap: 12px; }

.adm-t {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.adm-t.on { border-color: #E4C97F; box-shadow: 0 0 0 3px #FBF3DF, var(--shadow); }

.adm-hd {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, #FCFDFB 0%, #FFFFFF 100%);
  flex-wrap: wrap;
}
.adm-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 15px;
}
.adm-t.on .adm-mark { background: var(--gold-soft); color: var(--gold); }
.adm-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-id b { font-size: 14px; letter-spacing: -.2px; }
.adm-id span { font-size: 11.5px; color: var(--ink3); }
.adm-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-acts .btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.adm-acts .btn svg { width: 13px; height: 13px; }

/* 七个统计格子：多了会挤，用 auto-fit 让它自己换行 */
.adm-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1px; background: var(--line2);
  border-bottom: 1px solid var(--line2);
}
.adm-kpis > div {
  background: #fff; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 1px;
}
.adm-kpis em { font-style: normal; font-size: 11px; color: var(--ink3); }
.adm-kpis b { font-size: 19px; letter-spacing: -.6px; line-height: 1.25; }
.adm-kpis b small { font-size: 11.5px; font-weight: 500; color: var(--ink3); }
.adm-kpis i { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.adm-kpis .good b { color: var(--brand); }
.adm-kpis .bad b { color: var(--red); }

/* 两栏：成员在左、任务在右 */
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.adm-col { min-width: 0; padding: 12px 14px 14px; }
.adm-col + .adm-col { border-left: 1px solid var(--line2); }

.adm-sec {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ink2);
  margin-bottom: 8px;
}
.adm-sec svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 14px; }
.adm-sec span { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--ink3); }

.adm-scroll { max-height: 420px; overflow: auto; }
.adm-scroll::-webkit-scrollbar { width: 7px; }

/* 成员表：固定列宽 + 溢出隐藏，否则操作列会被挤到容器外看不见 */
.adm-mem { font-size: 11.5px; table-layout: fixed; width: 100%; }
.adm-mem th { white-space: nowrap; padding: 6px 7px; font-size: 10.5px; }
.adm-mem td { padding: 7px 7px; vertical-align: middle; overflow: hidden; }
.adm-mem .mem-cell { gap: 7px; }
.adm-mem .mem-cell > div { min-width: 0; }
.adm-mem .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-mem .mem-av { width: 24px; height: 24px; font-size: 10px; }
.adm-mem tr.dim { opacity: .5; }
.adm-mem .icon-btn { width: 24px; height: 24px; }
.adm-mem .icon-btn svg { width: 13px; height: 13px; }
/* icon-btn 全局是 display:grid，表格里会各占一行，必须改成行内并排 */
.adm-mem td:last-child { white-space: nowrap; }
.adm-mem td:last-child .icon-btn { display: inline-grid; vertical-align: middle; }
.adm-mem td:last-child .icon-btn + .icon-btn { margin-left: 1px; }

/* 任务行 */
.adm-tasks { display: flex; flex-direction: column; gap: 6px; }
.adm-task {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center; gap: 9px;
  padding: 8px 10px; border: 1px solid var(--line2); border-radius: 9px;
  background: #FCFDFB;
}
.adm-task.off { background: #FAFAF9; opacity: .72; }
.at-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.adm-task.off .at-dot { background: #C3CCC2; box-shadow: 0 0 0 3px #F0F2EF; }
.at-nm { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.at-nm b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: baseline; gap: 6px; }
.at-nm b em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--ink3); flex: 0 0 auto; margin-left: auto; }
.at-nm > span { font-size: 10.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-nm .at-when { font-size: 10px; }
.at-acts { display: flex; gap: 4px; flex: 0 0 auto; }
.at-acts .btn { padding: 3px 7px; font-size: 10.5px; white-space: nowrap; }

/* 最近稿件 */
.adm-recent {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 9px 14px 12px; border-top: 1px dashed var(--line);
  background: #FCFDFB;
}
.ar-lb { font-size: 10.5px; color: var(--ink3); flex: 0 0 auto; }
.ar-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 11px; color: var(--ink2); max-width: 300px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ar-chip em { font-style: normal; font-size: 10px; color: var(--ink3); }

/* 审计流水 */
.adm-audit { display: flex; flex-direction: column; }
.au-row {
  display: grid; grid-template-columns: 96px 66px 78px minmax(80px, 150px) minmax(0, 1fr);
  gap: 8px; padding: 7px 2px; border-bottom: 1px dashed var(--line2);
  font-size: 11.5px; align-items: center;
}
.au-row:last-child { border-bottom: none; }
.au-t { color: var(--ink3); font-size: 11px; }
.au-a { font-weight: 600; }
.au-d { color: var(--brand); font-weight: 600; white-space: nowrap; }
.au-g { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-x { color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 窄屏：两栏改一栏，任务行的四个小块收成两行 */
@media (max-width: 1180px) {
  .adm-cols { grid-template-columns: minmax(0, 1fr); }
  .adm-col + .adm-col { border-left: none; border-top: 1px solid var(--line2); }
}
@media (max-width: 860px) {
  .adm-task { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .at-when { display: none; }
  .at-acts { grid-column: 2 / -1; justify-content: flex-end; }
  .adm-acts { width: 100%; margin-left: 0; }
  .au-row { grid-template-columns: 84px 60px 72px minmax(0, 1fr); }
  .au-x { display: none; }
}

/* 审计卡的标题：card-hd 里 sec-t 有 ::after 撑开，窄容器会被压成竖排，这里锁死 */
.adm-sec-t { flex: 0 0 auto; white-space: nowrap; }

/* 平台管理页内容长，右下角助手会压住最后一条任务 → 抬到列表底部之上，不藏
   ★ 2026-11-01 业务方：「AI 客服只有点管理台时在，其余页面不在，要求一直在」。
     以前这些页面是靠 display:none 藏掉的，现在统一改成 --yia-b 上抬。 */
body:has(.adm-list) [data-jianjin-ai] { --yia-b: 76px; }

/* ===================================================================
   校区中枢（v3.1）
   一个后台管 N 个校区：总部深色块 → 下行连接线 → 分校工作站卡 → × N
   =================================================================== */

.cam-busy {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px; padding: 8px 12px;
  background: var(--brand-soft); border: 1px solid var(--brand-l);
  border-radius: 9px; font-size: 12px; color: var(--brand-d); font-weight: 600;
}
.cam-busy svg { width: 14px; height: 14px; }

/* ---------------- 总部：统一运营后台 ---------------- */
.hq {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 16px 18px 0;
  color: #fff;
  background:
    radial-gradient(720px 320px at 88% -20%, rgba(188, 194, 46, .26), transparent 62%),
    radial-gradient(520px 260px at 4% 120%, rgba(188, 194, 46, .14), transparent 60%),
    linear-gradient(152deg, #06251A 0%, #06432A 52%, #005630 100%);
  box-shadow: 0 10px 30px rgba(6, 40, 24, .18);
}
.hq::after {
  content: ""; position: absolute; right: -120px; top: -140px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 48px rgba(255, 255, 255, .03), 0 0 0 110px rgba(255, 255, 255, .018);
  pointer-events: none;
}
.hq-hd { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.hq-mark {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font: 800 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .5px;
  color: #0A2A1A;
  background: linear-gradient(145deg, var(--gold), #94A020);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.hq-id { min-width: 0; flex: 1 1 auto; }
.hq-id b { display: block; font-size: 15px; letter-spacing: -.2px; }
.hq-id span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .62); margin-top: 3px; }
.hq-hd .tag { flex: 0 0 auto; white-space: nowrap; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #E7F5D8; }

.hq-ops {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px; margin: 15px 0 0; position: relative; z-index: 1;
}
.hq-op {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff; font-family: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.hq-op:hover { background: rgba(255, 255, 255, .14); border-color: rgba(188, 194, 46, .55); transform: translateY(-1px); }
.hq-op svg { width: 15px; height: 15px; color: var(--gold); margin-bottom: 2px; }
.hq-op b { font-size: 12.5px; letter-spacing: .2px; }
.hq-op em { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .58); line-height: 1.5; }

.hq-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 13px -18px 0; padding: 9px 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .16);
  font-size: 11.5px; color: rgba(255, 255, 255, .66);
}
.hq-bar b { color: #fff; font-size: 12.5px; }
.hq-bar em { font-style: normal; color: rgba(255, 255, 255, .5); }
.hq-tip { margin-left: auto; color: rgba(188, 194, 46, .85); }

/* 总部 → 工作站 的连接线 */
.hq-link { display: flex; flex-direction: column; align-items: center; gap: 0; height: 30px; }
.hq-link span { width: 2px; flex: 1; background: linear-gradient(#005132, #C9D3C9); border-radius: 2px; }
.hq-link svg { width: 15px; height: 15px; color: #A7B4A9; margin-top: -5px; }

/* ---------------- 分校工作站 ---------------- */
.cst-grid {
  display: grid; gap: 11px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
/* 宽屏固定三列：跟「总部 → ①②③ ×N」那张图一个节奏，
   五六个校区正好两行铺满，不会最后一行只挂一张卡还留个空洞 */
@media (min-width: 1200px) {
  .cst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
}
.cst-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.cst-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #D6E0D3; }
.cst-card.planned { opacity: .78; }

.cst-cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  cursor: pointer; background: #F2F6F0;
  border-bottom: 1px solid var(--line);
}
.cst-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-cover.drag { outline: 2px dashed var(--brand); outline-offset: -5px; background: var(--brand-soft); }
.cst-cover.has:hover img { transform: scale(1.03); transition: transform .35s; }

.cst-drop {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #93A296; text-align: center; padding: 10px;
  background:
    linear-gradient(135deg, rgba(0, 104, 53, .03), transparent 60%),
    repeating-linear-gradient(45deg, #F7FAF5 0 8px, #F2F6F0 8px 16px);
}
.cst-drop svg { width: 21px; height: 21px; color: #A9B7AB; margin-bottom: 2px; }
.cst-drop b { font-size: 12px; color: var(--ink2); font-weight: 600; }
.cst-drop span { font-size: 10px; color: var(--muted); }
.cst-cover:hover .cst-drop svg { color: var(--brand); }

.cst-node {
  position: absolute; left: 7px; top: 7px;
  padding: 2px 6px; border-radius: 5px;
  font: 700 9.5px/1.5 ui-monospace, Menlo, monospace; letter-spacing: .3px;
  color: #fff; background: rgba(8, 30, 19, .62); backdrop-filter: blur(3px);
}
.cst-st {
  position: absolute; right: 7px; top: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 600;
  background: rgba(255, 255, 255, .92);
}
.cst-st i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cst-st.green { color: var(--brand); } .cst-st.green i { background: #36A66A; box-shadow: 0 0 0 2px rgba(54, 166, 106, .18); }
.cst-st.gold { color: #8A6A08; } .cst-st.gold i { background: #D4A017; }
.cst-st.gray { color: #6B7A6E; } .cst-st.gray i { background: #B4C0B6; }

.cst-reup {
  position: absolute; right: 7px; bottom: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px;
  font-size: 10px; color: #fff; background: rgba(8, 30, 19, .62);
  opacity: 0; transition: opacity .16s;
}
.cst-reup svg { width: 11px; height: 11px; }
.cst-cover:hover .cst-reup { opacity: 1; }

.cst-bd { padding: 9px 11px 10px; flex: 1 1 auto; min-width: 0; }
.cst-nm { display: flex; align-items: center; gap: 5px; }
.cst-nm b {
  font-size: 12.5px; letter-spacing: -.2px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cst-nm .tag { flex: 0 0 auto; font-size: 9px; padding: 1px 5px; }
.cst-sub {
  display: flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--muted); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cst-sub svg { width: 10px; height: 10px; flex: 0 0 10px; }
.cst-addr {
  font-size: 10.5px; color: var(--ink3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cst-kpi {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.cst-kpi > div { min-width: 0; }
.cst-kpi > div + div { border-left: 1px solid var(--line2); padding-left: 7px; }
.cst-kpi b { display: block; font-size: 15px; letter-spacing: -.5px; line-height: 1.2; }
.cst-kpi em { font-style: normal; font-size: 9.5px; color: var(--muted); }

.cst-hint {
  display: flex; align-items: flex-start; gap: 4px;
  margin-top: 7px; padding: 4px 6px; border-radius: 6px;
  font-size: 10px; line-height: 1.45;
  color: #7A6410; background: var(--gold-soft);
}
.cst-hint.bad { color: #96281C; background: var(--red-soft); }
.cst-hint svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 1px; }

.cst-ft {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 9px; border-top: 1px solid var(--line2); background: #FCFDFB;
}
.cst-ft .btn {
  flex: 1 1 0; justify-content: center; min-width: 0;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 5px; font-size: 10.5px; white-space: nowrap;
}
.cst-ft .btn svg { width: 11px; height: 11px; flex: 0 0 11px; }

/* × N：横向复制扩展 */
.cst-new {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 232px; padding: 14px 10px; cursor: pointer;
  border: 1.5px dashed #C9D6C6; border-radius: 12px;
  background: linear-gradient(#FBFCFA, #F6F9F4);
  color: var(--ink2); font-family: inherit; text-align: center;
  transition: border-color .16s, background .16s;
}
.cst-new:hover { border-color: var(--brand); background: var(--brand-soft); }
.cn-x { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: -.5px; }
.cst-new b { font-size: 12px; }
.cst-new span { font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.cst-new em {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 5px; font-style: normal; font-size: 10.5px;
  color: var(--brand); font-weight: 600;
}
.cst-new em svg { width: 11px; height: 11px; }

/* ---------------- 图片素材库 ---------------- */
.as-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 9px; padding: 12px 16px 16px;
}
.as-tile {
  position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: #F2F6F0;
}
.as-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 6px 4px; font-size: 9.5px; color: #fff;
  background: linear-gradient(transparent, rgba(8, 30, 19, .78));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.as-del {
  position: absolute; right: 4px; top: 4px; width: 20px; height: 20px;
  display: grid; place-items: center; cursor: pointer;
  border: none; border-radius: 6px; color: #fff;
  background: rgba(8, 30, 19, .55); opacity: 0; transition: opacity .15s;
}
.as-del svg { width: 11px; height: 11px; }
.as-tile:hover .as-del { opacity: 1; }
.as-del:hover { background: var(--red); }

.as-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 26px 12px; text-align: center; color: var(--muted);
}
.as-empty svg { width: 24px; height: 24px; color: #B6C3B7; margin-bottom: 2px; }
.as-empty b { font-size: 12px; color: var(--ink2); }
.as-empty span { font-size: 11px; max-width: 420px; line-height: 1.6; }

/* ---------------- v1.0.2 分校相册（照片挂在分校名下，弹窗里看） ---------------- */
.as-wall.album { padding: 0; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 9px; }
.as-tile.cur { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0, 104, 53, .14); }
.as-cur {
  position: absolute; left: 5px; top: 5px;
  padding: 1px 6px; border-radius: 5px; font-size: 9px; font-weight: 700; line-height: 1.7;
  color: #fff; background: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.as-set {
  position: absolute; right: 5px; bottom: 20px;
  padding: 2px 7px; border: none; border-radius: 5px; cursor: pointer;
  font-size: 9.5px; font-weight: 600; line-height: 1.7; color: #fff;
  background: rgba(8, 30, 19, .62); backdrop-filter: blur(3px);
  transition: background .15s;
}
.as-set:hover { background: var(--brand); }
.alb-hd { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink2); margin-bottom: 9px; }
.alb-tip {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 10px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2);
  background: #F7F9F5; font-size: 11px; color: var(--muted); line-height: 1.65;
}
.alb-tip svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }

/* ---------------- 数据回流表 ---------------- */
.cam-tbl { font-size: 11.5px; table-layout: fixed; width: 100%; }
.cam-tbl th { padding: 7px 8px; font-size: 10.5px; white-space: nowrap; }
.cam-tbl td { padding: 8px; vertical-align: middle; overflow: hidden; }
.cam-nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cam-nm img, .cam-ph {
  width: 26px; height: 26px; border-radius: 6px; flex: 0 0 26px;
  object-fit: cover; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 700;
}
.cam-nm .name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-bar { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-bottom: 3px; }
.cam-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #4CA96F); }
.linkbtn {
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--brand); font: inherit; font-weight: 600; font-size: 11px;
  text-decoration: underline; text-underline-offset: 2px;
}
.card.cam-flash { animation: camFlash 1.3s ease; }
@keyframes camFlash {
  0%, 100% { box-shadow: var(--shadow-sm); }
  30% { box-shadow: 0 0 0 3px rgba(188, 194, 46, .45); }
}

/* ---------------- 弹窗：下发 / 上传 / 管控 ---------------- */
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chips .check { font-size: 11.5px; }
.pk-list { display: flex; flex-direction: column; gap: 5px; }
/* 这里的选择行是 <label>，会被 .field label{display:block} 顶掉 flex，
   所以选择器要带上 .field 压过去；复选框的 width:100% 也得改回 auto */
.field .pk-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #FCFDFB; cursor: pointer; font-weight: 400;
  transition: border-color .15s, background .15s;
}
.field .pk-row:hover { border-color: #CFDCCB; background: var(--brand-soft); }
.field .pk-row input {
  width: auto; flex: 0 0 auto; margin: 2px 0 0; padding: 0;
  border: none; border-radius: 0; background: none;
  accent-color: var(--brand); box-shadow: none;
}
.field .pk-row span { min-width: 0; }
.field .pk-row b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.field .pk-row em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--muted); }

.up-hint {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: 4px; padding: 18px 14px; border-radius: 10px; text-align: center;
  border: 1.5px dashed #D3DECF; background: #FBFCFA;
}
.up-hint svg { width: 20px; height: 20px; color: #AEBCAF; margin-bottom: 3px; }
.up-hint b { font-size: 12px; color: var(--ink2); }
.up-hint span { font-size: 11px; color: var(--muted); line-height: 1.6; max-width: 400px; }

.gd-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gd-row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 56px 62px 66px 58px;
  gap: 8px; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--line2); font-size: 11.5px;
}
.gd-row:last-child { border-bottom: none; }
.gd-node { font: 700 10px/1.6 ui-monospace, Menlo, monospace; color: var(--muted); }
.gd-id { min-width: 0; }
.gd-id b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-id em { font-style: normal; font-size: 10px; color: var(--muted); }
.gd-k { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.gd-k b { color: var(--ink); font-size: 12px; }
.gd-foot { margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.gd-foot b { color: var(--ink); }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 1180px) {
  .as-wall { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (max-width: 900px) {
  .hq-ops { grid-template-columns: minmax(0, 1fr); }
  .hq-bar { gap: 10px; font-size: 11px; }
  .hq-tip { margin-left: 0; flex-basis: 100%; }
  .cst-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .cst-new { min-height: 180px; }
  .cam-tbl { font-size: 11px; }
}
@media (max-width: 760px) {
  .cst-grid { grid-template-columns: minmax(0, 1fr); }
  .cst-new { min-height: 120px; }
  .gd-row { grid-template-columns: 40px minmax(0, 1fr) 56px; }
  .gd-row .gd-k:nth-of-type(n+2), .gd-row .tag { display: none; }
  .as-wall { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}
/* 校区中枢：卡片右下角有「进入 / 下发」按钮，把助手抬到卡片操作条之上 */
body:has(.cst-view) [data-jianjin-ai] { --yia-b: 84px; }

/* ============================ 组织架构（企业微信通讯录） ============================ */
.org-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 10px;
  background: linear-gradient(90deg, #F2F7EF, #FBFCF7);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}
.org-bar-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.org-bar-l svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }
.org-bar-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-bar-r { flex: 0 0 auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.org-bar-r b { color: var(--ink-2); }

.org-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px; align-items: start;
}
@media (max-width: 1180px) { .org-grid { grid-template-columns: 1fr; } }

.org-tree { padding: 4px 0 8px; max-height: 620px; overflow: auto; }
.od-group { border-bottom: 1px dashed var(--line-2); }
.od-group:last-child { border-bottom: 0; }
.od-gh { display: flex; align-items: center; gap: 8px; padding: 9px 14px 5px; }
.od-gh b {
  font-size: 11.5px; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #DDE9D9;
  border-radius: 5px; padding: 1px 6px; flex: 0 0 auto;
}
.od-gh span { font-size: 11px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-gh em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.od-row { display: flex; align-items: center; gap: 7px; padding: 5px 14px; font-size: 12px; }
.od-row:hover { background: #FAFBF8; }
.od-row.off { opacity: .6; }
.od-nm { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 auto; }
.od-nm b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-skip {
  font-style: normal; font-size: 9.5px; color: #96281C;
  background: var(--red-soft); border-radius: 4px; padding: 0 4px; flex: 0 0 auto;
}
.od-cnt { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.od-row .tag { flex: 0 0 auto; }

/* 纳管开关 */
.sw {
  flex: 0 0 auto; width: 34px; height: 18px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: #E9EEE7; position: relative; cursor: pointer; transition: .16s;
}
.sw i {
  position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; transition: .16s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.sw.on { background: var(--brand); border-color: var(--brand); }
.sw.on i { left: 18px; }
.sw[disabled] { opacity: .45; cursor: not-allowed; }

.org-mem { max-height: 620px; overflow: auto; }
.org-mem .tbl { table-layout: fixed; }
.org-mem .tbl td { vertical-align: middle; }

.rule-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
@media (max-width: 1100px) { .rule-3 { grid-template-columns: 1fr; } }
.rule-b { padding: 14px 16px; border-right: 1px solid var(--line-2); }
.rule-b:last-child { border-right: 0; }
.rule-t { font-size: 12.5px; font-weight: 600; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.rule-b p { margin: 10px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--muted); }
.rl-row { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 11px; }
.rl-row em { font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body:has(.org-grid) [data-jianjin-ai] { --yia-b: 76px; }

/* 卡片头：标题不许被右侧说明挤成竖排（::after 撑满会吃掉宽度） */
.org-view .card-hd { gap: 12px; align-items: center; }
.org-view .card-hd .sec-t { flex: 0 0 auto; white-space: nowrap; }
.org-view .card-hd .sec-t::after { display: none; }
.org-view .card-hd > .muted { margin-left: auto; text-align: right; min-width: 0; }
.org-view .od-row.root .od-nm b { color: var(--muted); font-weight: 500; }
.sw-hold { flex: 0 0 auto; width: 34px; height: 18px; }
.org-mem .tbl td { padding-top: 7px; padding-bottom: 7px; }
.org-mem .tbl .tag { white-space: nowrap; }

/* 矮屏（笔记本 768/800 高）再收一档，保证卡片不越出视口 */
@media (max-height: 820px) {
  .lg-qr-frame { width: 178px; height: 178px; }
  .lg-roles { display: none; }
  .lg-feats { gap: 12px; }
  .lg-pitch h1 { font-size: 30px; }
  .lg-stats { padding-top: 16px; }
}

/* 表格里两个图标按钮会竖着叠（.icon-btn 是 grid），统一改成行内 */
.tbl td .icon-btn { display: inline-grid; vertical-align: middle; }
.tbl td .icon-btn + .icon-btn { margin-left: 2px; }

/* 组织架构 KPI：宽屏四列、中屏两列、窄屏一列（不能用行内样式，否则媒体查询盖不住） */
.org-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .org-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .org-kpi { grid-template-columns: 1fr; } }

/* 快捷平台标签（我的自媒体账户 → 常用平台） */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: #F4F9F2; }

/* 列表底部渐隐：滚到一半被切断时看得出来「下面还有」 */
.org-tree-wrap, .org-mem-wrap { position: relative; }
.org-tree-wrap::after, .org-mem-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
}

/* ===================================================================
   团队与权限 v3.14 · 一人一套账号
   这一页要在一屏里说清三件事：这人是谁、他名下几个号、我能对他做什么
   =================================================================== */
.tm-view .page-head { margin-bottom: 12px; }

.tm-bar-card {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; margin-bottom: 12px;
}
.tm-bar-meta { font-size: 12px; color: var(--muted); }
.tm-bar-meta b { color: var(--ink-2); font-weight: 700; }

/* ---------- 一人一号体检条 ---------- */
.tm-audit {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid var(--line); background: #fff;
}
.tm-audit.ok { background: var(--brand-soft); border-color: #CDE2D4; }
.tm-audit.warn { background: #FFFAE8; border-color: #EFE1B4; }
.tm-audit.bad { background: var(--red-soft); border-color: #EFC8C1; }
.tm-audit-i {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line);
}
.tm-audit.ok .tm-audit-i { color: var(--brand); border-color: #CDE2D4; }
.tm-audit.warn .tm-audit-i { color: var(--gold-d); border-color: #EFE1B4; }
.tm-audit.bad .tm-audit-i { color: var(--red); border-color: #EFC8C1; }
.tm-audit-i svg { width: 17px; height: 17px; }
.tm-audit-t { min-width: 0; }
.tm-audit-t b { display: block; font-size: 13.2px; letter-spacing: .2px; }
.tm-audit-t span { display: block; font-size: 11.8px; color: var(--ink-2); margin-top: 2px; line-height: 1.6; }
.tm-audit.ok .tm-audit-t b { color: var(--brand-d); }

.tm-issues {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin: -4px 0 14px;
}
.tm-issue {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 11px; font-size: 11.5px; line-height: 1.6;
}
.tm-issue.block { border-left: 3px solid var(--red); }
.tm-issue.warn { border-left: 3px solid var(--gold); }
.tm-issue b { font-size: 12px; font-weight: 700; }
.tm-issue .muted { font-size: 11px; }
.tm-issue .tag { flex: 0 0 auto; font-size: 9.5px; }

/* ---------- KPI ---------- */
.tm-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.tm-kpi .k-val small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------- 工具条 ---------- */
.tm-card { padding: 0; overflow: hidden; }
.tm-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; border-bottom: 1px solid var(--line-2);
}
.tm-search {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #F7F9F5; color: var(--muted);
  flex: 0 1 250px; min-width: 170px;
}
.tm-search svg { width: 14px; height: 14px; flex: 0 0 auto; }
.tm-search input {
  border: 0; background: transparent; outline: 0; width: 100%;
  font-size: 12.3px; color: var(--ink); font-family: inherit;
}
.tm-search input::placeholder { color: #9AA79F; }

.tm-tabs {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px;
  background: #F3F6F0; border: 1px solid var(--line-2);
}
.tm-tab {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  padding: 5px 9px; border-radius: 6px; font-size: 12px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.tm-tab em { font-style: normal; font-size: 10.5px; color: #93A098; }
.tm-tab:hover { background: #fff; }
.tm-tab.on { background: #fff; color: var(--brand-d); font-weight: 700; box-shadow: var(--shadow-sm); }
.tm-tab.on em { color: var(--brand); }

.tm-status {
  height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 12px; font-family: inherit; color: var(--ink-2);
  padding: 0 8px; margin-left: auto;
}

/* ---------- 批量条 ---------- */
.tm-bulk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px; background: #FFFCEB;
  border-bottom: 1px dashed #E7DEB8; font-size: 12px;
}
.tm-bulk b { font-size: 12.3px; color: var(--ink); }
.tm-bulk .muted { font-size: 11.3px; margin-right: 4px; }

/* ---------- 勾选 ---------- */
.tm-ck {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #CBD5C8;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; vertical-align: middle; transition: .12s;
}
.tm-ck svg { width: 11px; height: 11px; stroke-width: 3; }
.tm-ck:hover { border-color: var(--brand); }
.tm-ck.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tm-ck.dis { background: #F4F6F1; border-style: dashed; border-color: #DCE4D8; cursor: default; opacity: .7; }

/* ---------- 成员表 ---------- */
.tm-tblwrap { overflow-x: auto; }
.tm-tbl { table-layout: fixed; width: 100%; }
.tm-tbl th { font-size: 11.3px; font-weight: 600; color: var(--muted); padding: 9px 8px; white-space: nowrap; }
.tm-tbl td { padding: 9px 8px; vertical-align: middle; font-size: 12px; }
.tm-tbl td:first-child, .tm-tbl th:first-child { padding-left: 14px; }
.tm-tbl tbody tr.on { background: var(--brand-soft); }
.tm-tbl tbody tr.off td { opacity: .55; }
.tm-tbl .mem-av { width: 30px; height: 30px; font-size: 11px; }
.tm-tbl .name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tm-tbl .role-sel { height: 27px; font-size: 11.5px; padding: 0 4px; max-width: 122px; }

.tm-ops { white-space: nowrap; }
.tm-ops .icon-btn {
  display: inline-grid; width: 26px; height: 26px; margin-right: 2px;
  vertical-align: middle; border-radius: 7px;
}
.tm-ops .icon-btn svg { width: 14px; height: 14px; }
.tm-ops .icon-btn:hover { background: var(--brand-l); color: var(--brand-d); }
.tm-ops .muted { font-size: 11.5px; }

.tm-live {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 16px; padding: 0 4px; margin-left: 5px;
  border-radius: 8px; background: var(--brand-l); color: var(--brand-d);
  font-size: 10px; font-weight: 700; vertical-align: 1px;
}

/* 名下账号按钮 */
.tm-acc {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 3px 8px; cursor: pointer; font-family: inherit; color: var(--ink);
  transition: .12s;
}
.tm-acc b { font-size: 12.3px; font-weight: 700; line-height: 1; }
.tm-acc em { font-style: normal; font-size: 10.3px; color: var(--muted); line-height: 1; }
.tm-acc:hover { border-color: var(--brand); background: var(--brand-soft); }
.tm-acc.none { color: #9AA79F; border-style: dashed; }
.tm-acc.none:hover { color: var(--brand-d); }
.tm-dot { width: 6px; height: 6px; border-radius: 50%; background: #C6D0C4; display: inline-block; }
.tm-dot.green { background: #3E9E5E; }
.tm-dot.red { background: var(--red); }
.tm-dot.gray { background: #C6D0C4; }

/* ---------- 规则卡 ---------- */
.tm-rule { margin-top: 12px; }
.tm-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 4px 16px 16px; }
.tm-rule-b { background: #F8FAF6; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.tm-rule-b b { display: block; font-size: 12.5px; margin-bottom: 4px; color: var(--brand-d); }
.tm-rule-b p { margin: 0; font-size: 11.5px; line-height: 1.78; color: var(--ink-2); }

/* ---------- 抽屉：某人的账号 ---------- */
.ta-sum {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 11.8px; color: var(--ink-2);
  padding: 2px 0 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--line);
}
.ta-sum b { color: var(--brand-d); font-size: 13px; }
.ta-list { display: flex; flex-direction: column; }
.ta-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.ta-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ta-main b { font-size: 12.5px; }
.ta-main span { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.ta-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ta-meta em { font-style: normal; font-size: 10.3px; color: var(--muted); }
.ta-meta .tag { font-size: 9.8px; }
.ta-ops { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.ta-ops .btn.sm { font-size: 11px; padding: 3px 8px; }
.ta-ops .icon-btn { width: 26px; height: 26px; display: inline-grid; }

.ta-tbl th { font-size: 11px; padding: 8px 6px; }
.ta-tbl td { padding: 8px 6px; }
.ta-tbl .icon-btn { width: 25px; height: 25px; display: inline-grid; }

@media (max-width: 1180px) {
  /* 窄屏把 KPI 压成一行：2×2 会占掉 200px，表格就被挤出首屏了 */
  .tm-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tm-kpi .kpi { padding: 9px 11px; }
  .tm-kpi .k-val { font-size: 21px; }
  .tm-kpi .k-val small { font-size: 10px; }
  .tm-kpi .k-top { font-size: 10.5px; }
  .tm-kpi .k-foot { display: none; }
  .tm-issues { grid-template-columns: 1fr; }
  .tm-rule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tm-tools { gap: 8px; }
  .tm-search { flex: 1 1 100%; }
  .tm-status { margin-left: 0; }
  .tm-kpi { grid-template-columns: 1fr; }
}

/* 抽屉头部：存量代码用 h3/p 而不是 h2/.d-meta，这里补齐，免得内文全裸奔 */
.drawer-hd { align-items: flex-start; }
.drawer-hd > div { min-width: 0; flex: 1; }
.drawer-hd h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0; }
.drawer-hd p { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 3px 0 0; }
.drawer-hd .icon-btn { margin-left: auto; flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; }
.drawer-hd .icon-btn:hover { background: #F2F5F0; }
.drawer-hd .icon-btn svg { width: 15px; height: 15px; }
.drawer-ft { justify-content: flex-end; }

/* 收敛结果提示条：操作完成后留在页面上，看得见做了什么 */
.tm-fixlog {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; margin: -2px 0 12px;
  background: var(--brand-soft); border: 1px solid #CDE2D4; border-radius: 12px;
}
.tm-fixlog-i {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #CDE2D4; color: var(--brand);
}
.tm-fixlog-i svg { width: 14px; height: 14px; stroke-width: 2.4; }
.tm-fixlog-b { flex: 1; min-width: 0; }
.tm-fixlog-b b { display: block; font-size: 12.8px; color: var(--brand-d); margin-bottom: 5px; }
.tm-fixlog-b ul { margin: 0 0 5px; padding-left: 17px; font-size: 11.6px; line-height: 1.85; color: var(--ink-2); }
.tm-fixlog-b .muted { font-size: 10.8px; }
.tm-fixlog .icon-btn { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.tm-fixlog .icon-btn:hover { background: #fff; color: var(--ink); }
.tm-fixlog .icon-btn svg { width: 13px; height: 13px; }
.ta-tbl { table-layout: fixed; }
.ta-tbl td { vertical-align: middle; }
.ta-nm { font-size: 12px; font-weight: 700; display: block; }
.ta-sub { font-size: 10.3px; line-height: 1.4; }
.ta-pf { font-size: 11.8px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-pf .tag { font-size: 9px; padding: 0 4px; flex: 0 0 auto; }
.ta-hd { font-size: 10.8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-exp { font-size: 10.8px; white-space: nowrap; }
.ta-act { display: flex; gap: 3px; align-items: center; justify-content: flex-end; }
.ta-tbl .ta-act .icon-btn { width: 24px; height: 24px; }
.tm-more {
  grid-column: 1 / -1; justify-self: start;
  border: 1px dashed var(--line); background: #fff; border-radius: 8px;
  padding: 5px 12px; font-size: 11.5px; color: var(--brand-d);
  font-family: inherit; cursor: pointer;
}
.tm-more:hover { background: var(--brand-soft); border-color: #CDE2D4; }

/* 窄屏成员列会被压，长姓名（校长兼数学教师这种）必须自己收住，不能折成两行 */
.tm-tbl .mem-cell > div { min-width: 0; }
.tm-tbl .mem-cell .name { white-space: nowrap; overflow: hidden; }
.tm-tbl .mem-cell .name .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tbl .mem-cell .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 团队页右下角会压住操作列 → 上抬，不隐藏 */
body:has(.tm-view) [data-jianjin-ai] { --yia-b: 76px; }
.tm-guide { padding: 14px 16px; margin-bottom: 12px; }
.tm-guide b { display: block; font-size: 12.8px; margin-bottom: 8px; }
.tm-guide ol { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.95; color: var(--ink-2); }
.tm-guide .hint-in { font-size: 11.3px; color: var(--muted); }

/* ===================================================================
   登录页 v3.15 · 配对码通道
   二维码由本地 qrgen.js 生成（不外链），配对码放在码下面做兜底
   =================================================================== */
.lg-qrbox svg.lg-qr-svg {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  display: block;
}
.lg-pair {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 11px 0 0;
}
/* ★ [hidden] 必须能压住 display:flex —— 否则「备用配对码 — — — — — —」会一直挂在码下面，
   这正是业务方说「配对码对不上」时看到的那一行（v3.45 之前它其实一直在首屏） */
.lg-pair[hidden], .lg-altbox[hidden], .lg-demo[hidden] { display: none !important; }
.lg-pair-lb {
  font-size: 11px; color: var(--muted); letter-spacing: .5px;
}
.lg-pair b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px; font-weight: 700; letter-spacing: 5px;
  color: var(--brand-d); padding-left: 5px;
}
.lg-altline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 4px 0 12px; font-size: 11.5px; color: var(--muted);
}
.lg-altline a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dashed var(--line); padding-bottom: 1px; }
.lg-altline a:hover { color: var(--brand-d); border-color: var(--brand); }
.lg-altline i { font-style: normal; color: var(--line); }

/* 手机浏览器里不出二维码（扫不了自己屏幕），只留「用企业微信打开」的说明（v3.45） */
body.lg-mob .lg-qr-frame { display: none !important; }

/* 扫码不通时的备用出口（v3.45）：默认藏着，只有 45 秒没结果才露出来 */
.lg-altbox {
  margin: 2px 0 12px; padding: 12px 13px;
  background: #FCFBF4; border: 1px solid #EFE7C9; border-radius: 11px;
}
.lg-altbox b { display: block; font-size: 12.4px; color: #7A5A12; margin-bottom: 4px; }
.lg-altbox span { display: block; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }
.lg-altbox .lg-btn { margin-top: 9px; height: 38px; font-size: 12.8px; }

/* 应用内「授权电脑登录」 */
.pd-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 30px; font-weight: 700; letter-spacing: 8px;
  text-align: center; color: var(--brand-d);
  background: var(--brand-soft); border: 1px dashed #CDE2D4;
  border-radius: 12px; padding: 14px 8px; margin: 6px 0 12px;
}
.pd-input {
  width: 100%; height: 52px; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px; letter-spacing: 8px; padding-left: 8px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #FAFBF8; color: var(--ink); outline: none;
}
.pd-input:focus { border-color: var(--brand); background: #fff; }
.pd-input::placeholder { letter-spacing: 4px; color: #C3CEC5; font-size: 19px; }
/* 抽屉里空得多，加一条「码在哪」的说明把版面撑住 */
.pd-note {
  margin-top: 14px; padding: 11px 13px;
  background: #F8FAF6; border: 1px solid var(--line-2); border-radius: 10px;
}
.pd-note > b { display: block; font-size: 12px; color: var(--brand-d); margin-bottom: 5px; }
.pd-note li b { display: inline; color: var(--ink); font-weight: 700; }
.pd-note ol { margin: 0; padding-left: 17px; font-size: 11.6px; line-height: 1.8; color: var(--ink-2); }

/* ===================================================================
   登录页 v3.16 · 超管视图选择
   密码登录成功且身份是超管时，先别急着放人进去：一个集团十几所分校，
   进错了地方改错稿是最常见的事故。这里让他先点一下「今天看谁」。
   =================================================================== */
body.lg-scoping .lg-qr-frame,
body.lg-scoping #pairBox,
body.lg-scoping #qrHint,
body.lg-scoping #lgTip,
body.lg-scoping .lg-roles,
body.lg-scoping #demoPick,
body.lg-scoping #signupBox,
body.lg-scoping .lg-sso,
body.lg-scoping .lg-admin,
body.lg-scoping #lgMsg,
body.lg-scoping .lg-altline,
body.lg-scoping #altBox { display: none !important; }

.lg-scope { margin-top: 4px; }
.lg-scope-hd { margin-bottom: 11px; }
.lg-scope-hd b { display: block; font-size: 14px; color: var(--ink); }
.lg-scope-hd span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.lg-scope-q {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 10px; margin-bottom: 9px;
  border: 1px solid var(--line); border-radius: 9px; background: #FAFBF8;
}
.lg-scope-q svg { width: 14px; height: 14px; color: var(--muted); flex: 0 0 auto; }
.lg-scope-q input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 12.5px; color: var(--ink);
}

.lg-scope-list {
  max-height: 268px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line-2); border-radius: 11px; background: #fff;
}
.lg-scope-load { padding: 22px 14px; text-align: center; font-size: 12px; color: var(--muted); }
.lg-scope-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line-2);
  background: #fff; font-family: inherit; text-align: left; cursor: pointer;
}
.lg-scope-row:last-child { border-bottom: 0; }
.lg-scope-row:hover { background: #F7FAF6; }
.lg-scope-row.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.lg-scope-row .sc-av {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  color: #fff; background: #8FA89A; letter-spacing: 0;
}
.lg-scope-row.hq .sc-av { background: var(--brand); }
.lg-scope-row.on .sc-av { background: var(--brand); }
.lg-scope-row .sc-mn { flex: 1; min-width: 0; }
.lg-scope-row .sc-mn b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-scope-row .sc-mn em { display: block; margin-top: 1px; font-style: normal; font-size: 10.5px; color: var(--muted); }
.lg-scope-row .sc-ck { flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line); }
.lg-scope-row.on .sc-ck { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 2.5px #fff; }
.lg-scope-row .sc-cam {
  flex: 0 0 auto; border: 1px dashed var(--line); border-radius: 7px;
  padding: 2px 7px; font-size: 10.5px; color: var(--ink-2); background: #FAFBF8;
  font-family: inherit; cursor: pointer;
}
.lg-scope-row .sc-cam:hover { border-color: var(--brand); color: var(--brand-d); }
.lg-scope-row .sc-cam.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.lg-scope-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 11px;
}
.lg-scope-foot #scopePick {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lg-scope-foot .lg-btn { flex: 0 0 auto; width: auto; padding: 0 18px; }
.lg-scope-skip {
  display: block; width: 100%; margin-top: 9px; border: 0; background: transparent;
  font-family: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.lg-scope-skip:hover { color: var(--brand-d); }

/* ===================================================================
   v3.16 · 视图切换（超管：分校 / 校区）
   =================================================================== */
.chip-scope {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 9px 0 8px; margin-right: 2px;
  border: 1px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--ink-2);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer; max-width: 190px;
}
.chip-scope:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-soft); }
.chip-scope.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-d); }
.chip-scope svg { width: 13px; height: 13px; flex: 0 0 auto; opacity: .8; }
.chip-scope b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-scope em {
  font-style: normal; font-size: 9.5px; font-weight: 500;
  padding: 0 4px; border-radius: 4px; background: #EAF3EC; color: var(--brand-d);
  white-space: nowrap;
}
.chip-scope svg:last-child { width: 11px; height: 11px; opacity: .55; }

/* 切换抽屉 */
.sc-list { display: flex; flex-direction: column; gap: 6px; }
.sc-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
}
.sc-row.cur { border-color: #CDE2D4; background: #FBFDFA; }
.sc-av {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff;
  background: #9BB0A3;
}
.sc-av.hq { background: var(--brand); }
.sc-mn { flex: 1; min-width: 0; }
.sc-mn b { display: block; font-size: 12.3px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-mn em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.sc-pick {
  flex: 0 0 auto; height: 24px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
  font-family: inherit; font-size: 11px; color: var(--ink-2); cursor: pointer;
  white-space: nowrap;
}
.sc-pick:hover { border-color: var(--brand); color: var(--brand-d); }
.sc-pick.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.sc-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 12px; padding: 10px 11px; border-radius: 10px;
  background: #F8FAF6; border: 1px solid var(--line-2);
  font-size: 11.3px; line-height: 1.7; color: var(--ink-3);
}
.sc-note svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; color: var(--gold); }

/* 校区视图提示条 */
.auth-banner.scope { background: #F3F8F3; border-color: #CFE3D4; }
.auth-banner.scope svg { color: var(--brand); }

/* ===================================================================
   v3.16 · AI 自动连接卡
   =================================================================== */
.ai-auto {
  margin: 0 0 12px; padding: 11px 12px;
  border: 1px dashed var(--line); border-radius: 11px; background: #FBFCFA;
}
.ai-auto.ok { border-style: solid; border-color: #CDE2D4; background: var(--brand-soft); }
.ai-auto-hd { display: flex; gap: 9px; align-items: flex-start; }
.ai-auto-i {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); color: var(--brand);
}
.ai-auto-i svg { width: 14px; height: 14px; }
.ai-auto.ok .ai-auto-i { border-color: #CDE2D4; }
.ai-auto-hd > div { flex: 1; min-width: 0; }
.ai-auto-hd b { display: block; font-size: 12.6px; color: var(--ink); }
.ai-auto-hd p { margin: 3px 0 0; font-size: 11.3px; line-height: 1.7; color: var(--ink-3); }
.ai-src { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0 35px; }
.ai-src-i {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 20px; font-size: 10.5px;
  background: #F1F3EF; color: var(--muted); border: 1px solid transparent;
}
.ai-src-i.on { background: #fff; color: var(--brand-d); border-color: #CDE2D4; font-weight: 600; }
.ai-src-i svg { width: 10px; height: 10px; }
.ai-auto-ft { display: flex; align-items: center; gap: 9px; margin: 9px 0 0 35px; flex-wrap: wrap; }
.ai-auto-ft .hint-in { font-size: 11px; color: var(--muted); }
.auth-banner.ai-off { background: #FBF8F0; border-color: #E8DCC0; }

/* ===================================================================
   v3.16 · 团队页三视图（按人 / 按分校 / 权限对照）
   =================================================================== */
.tm-switch {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 0 0 12px;
}
.tm-sw {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tm-sw:hover { border-color: #CDE2D4; }
.tm-sw b { font-size: 12.6px; font-weight: 700; color: var(--ink-2); }
.tm-sw span { font-size: 10.8px; color: var(--muted); line-height: 1.5; }
.tm-sw.on { background: var(--brand-soft); border-color: var(--brand); }
.tm-sw.on b { color: var(--brand-d); }

/* 三块面板按状态显隐：只改 CSS，不动模板，免得嵌套模板写错 */
.tm-view[data-tmview="branch"] .people-pane,
.tm-view[data-tmview="perm"] .people-pane { display: none; }
.tm-view[data-tmview="people"] .tm-pane-branch,
.tm-view[data-tmview="people"] .tm-pane-perm { display: none; }
.tm-view[data-tmview="branch"] .tm-pane-perm,
.tm-view[data-tmview="perm"] .tm-pane-branch { display: none; }

/* 按分校看 */
.tm-branch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.tmb { border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; background: #fff; }
.tmb-hd { display: flex; align-items: center; gap: 8px; }
.tmb-av {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-d);
}
.tmb-t { flex: 1; min-width: 0; }
.tmb-t b { display: block; font-size: 12.4px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-t em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-hd .btn.mini { flex: 0 0 auto; }
.tmb-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 9px; }
.tmb-nums div { text-align: center; background: #F8FAF6; border-radius: 8px; padding: 6px 2px; }
.tmb-nums b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tmb-nums span { display: block; font-size: 9.6px; color: var(--muted); margin-top: 1px; }
.tmb-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.tmb-ft { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

/* 权限对照 */
.tm-perm-wrap { padding: 0 14px; overflow-x: auto; }
.tm-perm { table-layout: fixed; }
.tm-perm th { font-size: 11.5px; text-align: center; vertical-align: bottom; padding-bottom: 8px; }
.tm-perm th:first-child { text-align: left; }
.tm-perm th em { display: block; font-style: normal; font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.tm-perm td { text-align: center; font-size: 12px; padding: 7px 6px; }
.tm-perm td.pm-k { text-align: left; font-size: 12px; color: var(--ink-2); }
.tm-perm tr:hover td { background: #FBFDFA; }
.pm-y {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
}
.pm-y svg { width: 11px; height: 11px; stroke-width: 3; }
.pm-n { color: #C8D2CA; }
.tm-perm-note { padding: 10px 14px 14px; display: grid; gap: 5px; }
.tm-perm-note div { font-size: 11.4px; line-height: 1.75; color: var(--ink-3); }
.tm-perm-note b { color: var(--ink-2); }

@media (max-width: 1180px) {
  .tm-branch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tm-branch { grid-template-columns: 1fr; }
  .tm-switch { grid-template-columns: 1fr; }
}

/* card-hd 里的 sec-t 自带 ::after{flex:1}，被 flex 一挤就竖排成一列字。
   这两块标题必须顶住不缩。 */
.tm-pane-branch > .card-hd .sec-t,
.tm-pane-perm > .card-hd .sec-t { flex: 0 0 auto; white-space: nowrap; }
.tm-pane-branch > .card-hd .sec-t::after,
.tm-pane-perm > .card-hd .sec-t::after { content: none; }
.tm-pane-branch > .card-hd .muted,
.tm-pane-perm > .card-hd .muted { flex: 0 1 auto; text-align: right; }
.tmb-av { font-size: 10px; letter-spacing: -.5px; }
.tm-pane-branch > .card-hd .muted,
.tm-pane-perm > .card-hd .muted { margin-left: auto; }

/* 登录页视图列表：长名称必须自己收住，否则「翁云浩(执行校长&数学教师）」会把行撑成两行 */
.lg-scope-row .sc-mn b,
.lg-scope-row .sc-mn em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-scope-row { padding: 8px 10px; }
.lg-scope-list { max-height: 316px; }

/* 手机窄屏：顶栏先保「当前在哪」，搜索框和面包屑前缀都可以让位。
   v3.16 加了视图切换胶囊后，390 宽下原来会把页面名挤成一列竖字。 */
@media (max-width: 760px) {
  .topbar { gap: 8px; }
  .crumb { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .crumb > span:first-child,
  .crumb > .sep { display: none; }
  .crumb b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-right { margin-left: auto; gap: 6px; min-width: 0; flex: 0 0 auto; }
  .searchbox { display: none; }
  .chip-env { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chip-scope { max-width: 118px; height: 24px; font-size: 11px; padding: 0 7px; }
  .chip-scope em { display: none; }
  .um-nm { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tmb-nums { gap: 3px; }
  .tm-perm th, .tm-perm td { font-size: 11px; }
}

/* ===================================================================
   组织与权限（v3.20）—— 分校 → 校长 → 运营者，一页看完
   结构：范围条 / 分校矩阵 / 本校详情（校长 + 席位 + 绩效表）/ 下发记录
   =================================================================== */
.op-wrap { padding: 2px 0 24px; }

/* ---- 顶部范围条：我在哪一层、能看到什么、能做什么 ---- */
.op-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.op-bar-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.op-bar-r { display: flex; align-items: center; gap: 8px; }
.op-lv {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 11px; border-radius: 999px; background: var(--brand-l); color: var(--brand-d);
  border: 1px solid #CFE3D3;
}
.op-lv.branch { background: var(--gold-soft); color: var(--gold-d); border-color: #E3E6B4; }
.op-lv.member { background: #EFF2EE; color: var(--ink-2); border-color: var(--line); }
.op-bar-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.op-bar-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.op-bar-s b { color: var(--ink-2); }

/* ---- 分校矩阵 ---- */
.op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1180px) { .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .op-grid { grid-template-columns: 1fr; } }
.op-camp {
  text-align: left; cursor: pointer; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; transition: .15s; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 7px;
}
.op-camp:hover { border-color: #BBD4C1; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.op-camp.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 104, 53, .10); }
.op-camp-hd { display: flex; align-items: center; gap: 8px; }
.op-camp-hd b { font-size: 14.5px; color: var(--ink); }
.op-camp-hd .tag { flex: 0 0 auto; }
.op-camp-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-camp-kpi { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.op-camp-kpi b { color: var(--ink); font-size: 13px; margin-right: 2px; }
.op-camp-warn { font-size: 11px; color: #9A6A12; background: #FDF6E3; border-radius: 6px; padding: 3px 7px; align-self: flex-start; }

/* ---- 席位进度 ---- */
.op-seat { display: flex; flex-direction: column; gap: 4px; }
.op-seat-t { display: flex; align-items: baseline; gap: 4px; font-size: 11.5px; color: var(--muted); }
.op-seat-t b { font-size: 14px; color: var(--ink); }
.op-seat-t em { margin-left: auto; font-style: normal; color: var(--red); font-weight: 600; }
.op-seat-b { height: 5px; border-radius: 99px; background: #EDF1EA; overflow: hidden; }
.op-seat-b i { display: block; height: 100%; background: linear-gradient(90deg, #006835, #4E9A6E); }
.op-seat-b i.full { background: linear-gradient(90deg, #C0392B, #DD7B6D); }

/* ---- 本校详情 ---- */
.op-detail .card-hd { padding-bottom: 10px; }
/* 详情卡标题单独一套：不复用 .sec-t —— 那个 ::after{flex:1} 会把标题压成竖排 */
.op-dt-hd { align-items: center; gap: 12px; flex-wrap: nowrap; }
.op-dt-tt {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 14px; font-weight: 650; letter-spacing: -.2px; color: var(--ink);
}
.op-dt-tt > svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--brand); }
.op-dt-tt > b { white-space: nowrap; }
.op-dt-sub {
  margin-left: auto; font-size: 11.5px; color: var(--muted);
  text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.op-sum {
  display: flex; align-items: stretch; gap: 18px; flex-wrap: wrap;
  padding: 0 4px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px;
}
.op-sum-l { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.op-sum-r { flex: 0 0 auto; display: flex; gap: 8px; align-items: flex-start; }
.op-boss { display: flex; align-items: center; gap: 10px; }
.op-boss b { font-size: 14px; margin-right: 6px; }
.op-boss em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.op-boss.none { color: var(--muted); }
.op-boss.none b { font-size: 13px; color: var(--ink-2); }
/* 空状态里的图标必须锁死尺寸：<svg> 不设宽高会按 flex 容器撑满整行 */
.op-boss.none > svg { width: 30px; height: 30px; flex: 0 0 30px; opacity: .55; }
.op-boss.none > div { min-width: 0; }
.op-boss > svg { width: 34px; height: 34px; flex: 0 0 34px; }
/* v11：一所分校多校长（柯桥 陈刚 + 芦英）—— 两个人名字长，必须给第二行留分隔 */
.op-boss + .op-boss { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.op-seatwrap { display: flex; align-items: center; gap: 10px; }

/* 「组织与权限」页所有卡片标题：.sec-t 的 ::after{flex:1} 会吃掉右侧空间，
   把标题压成竖排（老坑，必须整页一次性关掉） */
.op-wrap .card-hd .sec-t { flex: 0 0 auto; white-space: nowrap; margin-bottom: 0; }
.op-wrap .card-hd .sec-t::after { display: none; }
.op-wrap .card-hd .sec-t > span { flex: 0 0 auto; }
/* 表格「登录账号」格：账号在左、绑定方式在右，一眼能核一人一号 */
.op-acct { display: flex; align-items: center; gap: 6px; min-width: 0; }
.op-acct > b {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.op-seatwrap .op-seat { flex: 0 0 190px; }
.op-seatwrap .muted { font-size: 11.5px; }

.op-kpi {
  background: #FAFBF9; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 12px; min-width: 76px; text-align: center;
}
.op-kpi b { display: block; font-size: 18px; color: var(--ink); line-height: 1.2; }
.op-kpi span { font-size: 11px; color: var(--muted); }
.op-kpi em { display: block; font-style: normal; font-size: 10.5px; color: var(--brand); margin-top: 1px; }

/* ---- 绩效表 ---- */
.op-tbl { table-layout: fixed; }
.op-tbl td { vertical-align: middle; }
.op-tbl tr.is-me { background: #F7FBF5; }
.op-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.op-tbl .num-sub { font-style: normal; font-weight: 400; color: var(--muted); font-size: 11px; }
.op-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.op-who b { font-size: 13px; color: var(--ink); margin-right: 5px; }
.op-who em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; }
.op-av {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--brand-l); color: var(--brand-d);
}
.op-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.op-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #C6CEC8; }
.op-dot.on { color: var(--brand-d); }
.op-dot.on::before { background: #2E9E5B; box-shadow: 0 0 0 3px rgba(46, 158, 91, .14); }
.op-acts { white-space: nowrap; }
.op-acts .icon-btn { display: inline-grid; margin-left: 2px; }
/* 一格里可能挤三个按钮（设为校长 / 重置密码 / 停用），
   固定间距、不换行，列宽不够就整行横滚，别把最后一个裁掉 */
.op-tbl td.op-acts { text-align: right; white-space: nowrap; padding-left: 4px; padding-right: 8px; }
.op-tbl td.op-acts .icon-btn { margin-left: 3px; }
.op-tbl td.op-acts .icon-btn:first-child { margin-left: 0; }
/* 「兼运营」开着的时候按钮要亮：一排灰按钮里看不出哪个是开着的 */
.op-tbl td.op-acts .icon-btn.on { background: var(--brand-l); color: var(--brand-d); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---- 运营者自己的绩效 ---- */
.op-mycard { margin-top: 0; }
.op-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 4px 4px 12px; }
@media (max-width: 1100px) { .op-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .op-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op-kpis .op-kpi { padding: 14px 10px; }
.op-kpis .op-kpi b { font-size: 24px; }
.op-tip {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.7;
  color: var(--ink-2); background: #F7FAF5; border: 1px dashed #D8E4D6;
  border-radius: 10px; padding: 10px 12px; margin-top: 10px;
}
.op-tip svg { flex: 0 0 14px; margin-top: 2px; color: var(--brand); }

/* ---- 开通回执 ---- */
.op-receipt { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 2px 0 4px; }
.op-rc { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.op-rc:last-child { border-bottom: 0; }
.op-rc span { flex: 0 0 72px; font-size: 12px; color: var(--muted); }
.op-rc b { font-size: 13.5px; color: var(--ink); }
.op-rc b.pw { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; color: var(--brand-d); }

/* 没有按钮的弹窗不要留一条空底栏（否则会看到一条 11px 的横条） */
.modal-ft:empty { display: none; }

/* ---- 窄屏：绩效表改横向滚动，别把九列压成麻花 ---- */
@media (max-width: 1120px) {
  .op-tbl { min-width: 880px; }
  .op-detail .adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* 这几个小标签一旦被压窄就会竖排或折行，统一禁止 */
.op-dot, .num-sub, .op-seat-t em { white-space: nowrap; flex: 0 0 auto; }
.op-acct > b { min-width: 0; }
@media (max-width: 760px) {
  .op-seatwrap { flex-wrap: wrap; row-gap: 6px; }
  .op-seatwrap .op-seat { flex: 0 0 160px; }
  /* 席位说明在窄屏会被拉成一整行，缩到 11px 就够读 */
  .op-seatwrap .muted { flex: 1 1 100%; font-size: 11px; }
  .op-bar { flex-wrap: wrap; row-gap: 8px; }
  .op-bar-r { width: 100%; }
  .op-bar-r .btn { flex: 1 1 auto; justify-content: center; }
  .op-dt-sub { display: none; }
}
/* 右下角 AI 挂件会压住绩效表最后一列的操作按钮 → 上抬到表底之上 */
body:has(.op-detail) [data-jianjin-ai],
body:has(.op-wrap) [data-jianjin-ai] { --yia-b: 96px; }

/* ---- 备用 AI 通道（v3.21）----
   放在主通道表单下面，用一条虚线隔开、浅底，读起来像「同页的第二个区块」，
   不是一个需要另外点开关的功能。 */
.integ-fb {
  margin: 14px 0 4px; padding: 12px 13px 4px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: rgba(0, 104, 53, .022);
}
.integ-fb-hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 11px;
  flex-wrap: wrap; row-gap: 4px;
}
.integ-fb-hd > svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--brand); }
.integ-fb-hd > b { font-size: 12.5px; color: var(--ink); flex: 0 0 auto; white-space: nowrap; }
.integ-fb-hd > .muted { flex: 1 1 auto; min-width: 0; }
.integ-fb .integ-row { margin-bottom: 9px; }
/* 正在降级：这条要显眼，不然没人知道自己交的稿子已经换模型在写了 */
.integ-fb-on {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; margin-bottom: 12px;
  border-radius: 9px; background: rgba(224, 138, 43, .1);
  border: 1px solid rgba(224, 138, 43, .32);
}
.integ-fb-on > svg { width: 16px; height: 16px; flex: 0 0 16px; color: #b96a11; }
.integ-fb-on > div { flex: 1 1 auto; min-width: 0; }
.integ-fb-on b { display: block; font-size: 12.5px; color: #8a4f0d; }
.integ-fb-on em { display: block; font-style: normal; font-size: 11px; color: #a8702c; margin-top: 2px; }
.integ-fb-on .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) {
  .integ-fb-on { flex-wrap: wrap; }
  .integ-fb-on .btn { width: 100%; justify-content: center; }
  .integ-fb-hd > .muted { flex: 1 1 100%; }
}

/* 集成页两栏在 980 以下就挤了：标签 96px + 输入框，半屏宽度装不下，
   表现为 Key 输入框只剩十几个字符宽、看不到自己粘了什么 */
@media (max-width: 980px) {
  .integ { grid-template-columns: 1fr; }
}

/* ===================================================================
   待绑渠道清单（v3.26）：所有媒体渠道按「本人账号」算状态
   渠道列表里不再出现「总部/总校已经绑了哪些号」，只列你自己绑没绑。
   =================================================================== */
.acc-guide-list { max-height: 332px; overflow: auto; padding: 8px 16px 12px; }
.acc-guide-list::-webkit-scrollbar { width: 5px; }
.acc-guide-list::-webkit-scrollbar-thumb { background: #D8E1D3; border-radius: 3px; }
.acc-guide {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: #FCFDFB; margin-bottom: 6px; min-width: 0;
}
.acc-guide:last-child { margin-bottom: 0; }
.acc-guide.on { background: #fff; border-color: var(--line); }
.ag-pf { font-size: 12.5px; color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.ag-ch {
  font-size: 11px; color: var(--muted); flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}
.ag-sub { font-size: 11px; color: var(--muted); flex: 0 1 auto; min-width: 0;
  padding-left: 10px; border-left: 1px solid var(--line-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-guide .btn { flex: 0 0 auto; }
.acc-guide .tag { flex: 0 0 auto; }
@media (max-width: 760px) {
  .acc-guide { flex-wrap: wrap; }
  .ag-ch, .ag-sub { max-width: 100%; white-space: normal; }
}

/* 账号页 / 直达通道页：右侧操作列会被挂件压住 → 抬到卡片底部之上，不藏 */
body:has(.acc-guide) [data-jianjin-ai] { --yia-b: 96px; }
body:has(#chTableWrap) [data-jianjin-ai] { --yia-b: 96px; }

/* ===================================================================
   v3.27 · AI 直连灯（顶栏）+ 渠道「用 AI 写」直链
   =================================================================== */
.chip-ai {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px 0 8px; margin-right: 2px;
  border: 1px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--ink-2);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer; max-width: 168px; flex: 0 0 auto;
  transition: border-color .15s, background .15s, color .15s;
}
.chip-ai svg { width: 13px; height: 13px; flex: 0 0 auto; }
.chip-ai b { font-weight: 700; white-space: nowrap; }
.chip-ai em {
  font-style: normal; font-size: 9.5px; font-weight: 500;
  padding: 0 5px; border-radius: 4px; white-space: nowrap;
  max-width: 74px; overflow: hidden; text-overflow: ellipsis;
}
/* 已直连：绿点 + 品牌浅底，跟「AI 已接通」的语义对齐 */
.chip-ai.on {
  border-color: rgba(0, 104, 53, .22); background: var(--brand-soft); color: var(--brand-d);
}
.chip-ai.on em { background: #fff; color: var(--brand-d); box-shadow: inset 0 0 0 1px rgba(0, 104, 53, .16); }
.chip-ai.on svg { color: var(--brand); }
.chip-ai.on:hover { border-color: var(--brand); }
/* 未连：金色，点一下就直连 */
.chip-ai.off { border-color: #F0DFB8; background: var(--gold-soft); color: #8A5B12; }
.chip-ai.off em { background: #fff; color: #8A5B12; box-shadow: inset 0 0 0 1px #F0DFB8; }
.chip-ai.off:hover { border-color: var(--gold); background: #FBF1D9; }

/* 渠道台账最后一列：一行一个「写」，不抢通道名的位置 */
.ai-w { padding: 2px 8px !important; font-size: 11px !important; gap: 3px; white-space: nowrap; }
.ai-w svg { width: 12px; height: 12px; }
@media (max-width: 1180px) {
  .chip-ai em { display: none; }
}

/* ===================================================================
   v3.28 · 授权弹窗不再出假二维码
   没接开放接口就画不出平台认的码，画出来只会让人以为扫过了。
   左侧改成状态块：待登记（金色虚线） / 已提交（品牌色实线）。
   =================================================================== */
.ra-qr.none, .ra-qr.done {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border-style: dashed; background: #FCFDFB;
}
.ra-qr.none { color: #8A5B12; border-color: #EBDCBC; }
.ra-qr.done {
  color: var(--brand); border-style: solid;
  border-color: rgba(0, 104, 53, .2); background: var(--brand-soft);
}
.ra-qr.none svg, .ra-qr.done svg { width: 42px; height: 42px; flex: 0 0 auto; }
.ra-qr.none em, .ra-qr.done em {
  font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
}

/* ============================ v3.36 · 定时器 + 立即发布 ============================ */
/* 调度器状态条：开着是安心绿，没开必须红得刺眼——「以为到点会自动发」是最贵的误解 */
.sched-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #FCFDFB;
  font-size: 12px;
}
.sched-bar.on { border-color: rgba(0, 104, 53, .18); background: var(--brand-soft); }
.sched-bar.off { border-color: #EBD2CB; background: var(--red-soft); color: var(--red); }
.sched-bar .sb-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
  background: var(--muted); box-shadow: 0 0 0 3px rgba(124, 138, 130, .16);
}
.sched-bar.on .sb-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(0, 104, 53, .16); animation: schedPulse 2.4s ease-in-out infinite; }
.sched-bar.off .sb-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .16); }
@keyframes schedPulse { 0%,100% { opacity: 1 } 50% { opacity: .42 } }
.sched-bar .sb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sched-bar .sb-txt b { font-size: 12.5px; }
.sched-bar .sb-txt span { color: var(--muted); font-size: 11px; }
.sched-bar.off .sb-txt span { color: #96604F; }

/* 发布弹窗里的稿件摘要 */
.pub-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  background: #FCFDFB;
}
.pub-card b { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
.pub-meta { font-size: 11px; color: var(--muted); }
.pub-lead { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }

/* 从渠道反选稿件 */
.pick-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.pick-row:last-child { border-bottom: 0; }
.pick-main { flex: 1; min-width: 0; }
.pick-main b { display: block; font-size: 12.5px; line-height: 1.5; }
.pick-main .meta { font-size: 10.5px; color: var(--muted); }

/* ============================ v3.37 · 月度招生策略 ============================ */
/* 顶部提醒：这是唯一一条「到期会自动执行」的提醒，用琥珀色，不用红（红留给故障） */
.auth-banner.gold { background: #FDF6E7; border-color: #EFDDB4; color: #7A5310; }
.auth-banner.gold svg { color: #B07D1A; }

/* 总控台的策略卡：待审时是一张「待办」，下发后变成一条「记录」 */
.plan-card {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FCFDFB;
  overflow: hidden;
}
.plan-card.pending { border-color: #EBD9B2; background: #FFFCF4; }
.plan-card.idle { border-style: dashed; }
.plan-card .pc-hd {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700;
}
.plan-card .pc-hd svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--brand); }
.plan-card.pending .pc-hd svg { color: #B07D1A; }
.plan-card .pc-rule { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.plan-card .pc-bd { padding: 12px 16px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.plan-card .pc-body { padding: 13px 16px 6px; }
.plan-card .pc-theme { font-size: 16px; font-weight: 800; letter-spacing: .2px; margin-bottom: 8px; }
.plan-card.pending .pc-theme { color: #7A5310; }
.plan-card .pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.plan-card .pc-chips b {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-d); border: 1px solid rgba(0,104,53,.12);
}
.plan-card.pending .pc-chips b { background: #FFF4DC; color: #7A5310; border-color: #EFDDB4; }
.plan-card .pc-plan { font-size: 12.5px; line-height: 1.9; color: var(--ink-2); margin: 0 0 9px; }
.plan-card .pc-meta { font-size: 11px; color: var(--ink-3); }
.plan-card .pc-meta b { color: #96281C; }
.plan-card .pc-note {
  margin-top: 6px; font-size: 11.5px; color: var(--ink-2);
  padding: 7px 10px; border-radius: 8px; background: #F6F7F4;
}
.plan-card .pc-ft {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 10px 16px 13px;
}

/* 下发抽屉里的主题卡 */
.th-box {
  margin-top: 8px; padding: 12px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #FCFDFB;
}
.th-box .th-name { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.th-box .th-row { display: flex; gap: 10px; font-size: 11.5px; line-height: 1.8; margin-top: 7px; }
.th-box .th-row > span { flex: 0 0 74px; color: var(--ink-3); white-space: nowrap; }
.th-box .th-row > em { color: var(--ink-2); font-style: normal; }
.th-box .th-row textarea { font-size: 12px; line-height: 1.75; }
.th-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.th-chips b {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-d); border: 1px solid rgba(0,104,53,.12);
}

/* ---------------- v1.0.1 校区实拍照 ---------------- */
/* 校区卡左下角的「实拍」角标：告诉用户这张不是自己传的，是随包发的实拍照 */
.cst-seed {
  position: absolute; left: 7px; bottom: 7px;
  padding: 1px 6px; border-radius: 5px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .2px; line-height: 1.6;
  color: #0B4A2B; background: rgba(250, 247, 230, .9);
  border: 1px solid rgba(0, 104, 53, .18); backdrop-filter: blur(3px);
}
/* 预置素材（只读）：右上角一枚「预置」，没有删除按钮 */
.as-tile.seed { border-color: #E3EEE7; }
.as-seed {
  position: absolute; right: 4px; top: 4px;
  padding: 1px 5px; border-radius: 5px;
  font-size: 9px; font-weight: 600; line-height: 1.6;
  color: #fff; background: rgba(0, 104, 53, .72); backdrop-filter: blur(3px);
}

/* ---------------- v1.0.1 权威媒体下单流水 ---------------- */
.ax-hd {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 2px 2px 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.ax-hd b { font-size: 15px; letter-spacing: -.3px; }
.ax-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--ink3); }
.ax-money { text-align: right; line-height: 1; }
.ax-money b { font-size: 22px; color: #8C3A2E; letter-spacing: -.6px; }
.ax-money span { font-size: 10.5px; color: var(--ink3); margin-left: 2px; }

.ax-flow {
  font-size: 11px; color: var(--brand-d); background: var(--brand-soft);
  border: 1px solid rgba(0,104,53,.12); border-radius: 8px;
  padding: 7px 11px; margin-bottom: 10px; letter-spacing: .2px;
}
.ax-flow .muted { margin-left: 6px; }

.ax-steps { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.ax-step {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px 11px;
  background: #FDFDFB;
}
.ax-step.cur { border-color: rgba(0,104,53,.32); background: #FCFEFC; box-shadow: 0 1px 0 rgba(0,104,53,.06); }
.ax-step.done { background: #FAFCF9; }
.ax-no {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: #fff; background: #C7D2C9; margin-top: 1px;
}
.ax-step.done .ax-no { background: var(--brand); }
.ax-step.cur .ax-no { background: var(--brand-d); }
.ax-bd { flex: 1 1 auto; min-width: 0; }
.ax-bd b { font-size: 12.5px; letter-spacing: -.2px; }
.ax-bd p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink2); }
.ax-bd p.muted { color: var(--ink3); }
.ax-bd p a { color: var(--brand-d); word-break: break-all; }
.ax-bad { color: #96281C !important; }
.ax-tag {
  font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px;
  background: #FBF0ED; color: #8C3A2E; border: 1px solid #F0DAD3; margin-left: 4px;
  vertical-align: 1px;
}
.ax-no-txt { font-family: ui-monospace, Menlo, monospace; letter-spacing: .3px; color: var(--brand-d); }
.ax-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; }
.ax-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; }
.ax-form input {
  flex: 1 1 118px; min-width: 104px; height: 28px; padding: 0 9px;
  border: 1px solid var(--line2); border-radius: 7px; font-size: 11.5px; background: #fff;
}
.ax-form input#ax-amt { flex: 0 0 86px; min-width: 86px; }
.ax-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,104,53,.1); }
