:root {
  /* 运动配色:蓝紫 #5b63ee → 紫 #8b74f4 → 粉紫 #e3a2ef,底色淡紫蓝 */
  --bg: #f1f0fd;
  --panel: #ffffff;
  --ink: #1f2140;
  --muted: #6f7396;
  --line: #e2e0f6;
  --brand: #6c6ff5;
  --brand-2: #5b5fe6;
  --brand-3: #3b3f9e;
  --pink: #d97be6;
  --soft: #eeedfe;
  --soft-2: #dfddfc;
  --grad: linear-gradient(120deg, #5b63ee 0%, #776ff4 38%, #9e82f2 68%, #cf86e6 100%);
  --grad-btn: linear-gradient(120deg, #6268f2 0%, #8a72f4 55%, #c27ce9 100%);
  --ok: #15803d;
  --ok-bg: #e8f7ee;
  --warn: #b45309;
  --warn-bg: #fdf3e2;
  --bad: #c62828;
  --bad-bg: #fdecec;
  --info: #4c55d8;
  --info-bg: #eaecfe;
  --r: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(1200px 520px at 8% -10%, rgba(140, 150, 250, .22), transparent 60%), radial-gradient(900px 600px at 105% 110%, rgba(232, 164, 240, .2), transparent 60%), linear-gradient(160deg, #f3f2ff 0%, #eef1ff 55%, #f7f0fd 100%); font-size: 13px; display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
.muted { color: var(--muted); }

/* —— 顶栏 —— */
.top {
  flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: radial-gradient(120% 140% at 18% -60%, rgba(255,255,255,.38), transparent 55%), radial-gradient(90% 160% at 92% 170%, rgba(255, 214, 250, .55), transparent 60%), var(--grad);
  color: #fff; -webkit-app-region: drag; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 22px rgba(98, 99, 230, .25);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { font-size: 16px; letter-spacing: .5px; display: block; }
.brand .sub { font-size: 12px; color: rgba(255,255,255,.62); letter-spacing: .3px; display: block; margin-top: 4px; }
.logo {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: linear-gradient(140deg, #ffffff, #e6e4ff); color: #4b4fd6; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
}
.top-right { display: flex; gap: 8px; -webkit-app-region: no-drag; }
.chip, .top-btn {
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover, .top-btn:hover { background: rgba(255,255,255,.16); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.chip.off .dot { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
body.mac .top { padding-left: 88px; }

/* —— 顶上两页:认领 | 切片上传 —— */
.tabs { flex: none; display: flex; align-items: stretch; gap: 6px; height: 50px; padding: 0 20px; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tabs button { position: relative; border: 0; background: none; padding: 0 18px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tabs button:hover { color: var(--brand-2); }
.tabs button.on { color: var(--brand-2); font-weight: 700; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #6c6ff5, #b183f2, #e3a2ef); }
.tabs i { font-style: normal; font-size: 12px; font-weight: 600; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--brand-2); display: grid; place-items: center; }
.tabs i:empty { display: none; }
.tabs button.on i { background: var(--brand); color: #fff; }
.tabs em { font-style: normal; font-size: 11px; font-weight: 600; color: #a6a9d4; font-family: ui-monospace, Menlo, monospace; }
.tabs button.on em { color: var(--brand); }
.tabs i.warn { background: var(--bad-bg); color: var(--bad); }
.tabs #nTeam { background: var(--ok-bg); color: var(--ok); }
body:not([data-page="claim"]) .side { display: none; }
.web .host-only { display: none !important; }
body:not(.web) .web-only { display: none !important; }

/* —— 布局 —— */
.layout { flex: 1; display: flex; min-height: 0; }
.side { flex: none; width: 270px; padding: 12px 0 12px 12px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.main { flex: 1; min-width: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.lab { font-size: 12px; color: var(--muted); }
.field input {
  height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; outline: none; background: #fbfbff;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); background: #fff; }
.field input.need { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }

.seg { display: flex; background: var(--soft); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 6px; height: 28px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--brand-2); font-weight: 600; box-shadow: 0 1px 3px rgba(70, 72, 170, .15); }

.drop {
  border: 1.5px dashed #c3c5f6; border-radius: 10px; background: linear-gradient(180deg, #f8f8ff, #efeeff);
  padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop b { font-size: 14px; color: var(--brand-3); }
.drop .muted { font-size: 12px; }
.drop:hover, .drop.over { border-color: var(--brand); background: #e9e8ff; }
.drop-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
  background: var(--grad-btn); box-shadow: 0 6px 16px rgba(98, 99, 230, .3); }
.tip { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.inline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #464a6b; }
.inline[hidden] { display: none; }
.inline input { width: 56px; height: 28px; border: 1px solid var(--line); border-radius: 7px; padding: 0 6px; text-align: center; outline: none; background: #fbfbff; }
.inline input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.thumb .from { position: absolute; right: 4px; top: 4px; background: rgba(18, 20, 50, .7); color: #fff; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.form-msg { margin: -2px 0 0; min-height: 0; font-size: 12px; color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.form-msg.info { color: var(--brand-2); }
.form-msg:empty { display: none; }

.rules h3 { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.rules ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rules li { font-size: 12px; line-height: 1.5; padding-left: 12px; position: relative; color: #464a6b; }
.rules li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* —— 任务 —— */
.empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.empty b { color: var(--ink); font-size: 15px; }

.job { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.job-head { display: flex; align-items: center; gap: 10px; }
.job-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.job-title b { font-size: 14px; white-space: nowrap; }
.job-title .meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--brand-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.acts { display: flex; gap: 6px; flex: none; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 7px; height: 28px; padding: 0 10px; font-size: 12px; }
.btn:hover { border-color: #c3c5f6; background: #f7f7ff; }
.btn.primary, .primary { background: var(--grad-btn); border: 0; color: #fff; border-radius: 7px; height: 30px; padding: 0 14px; font-weight: 600; box-shadow: 0 3px 10px rgba(98, 99, 230, .25); }
.btn.primary:hover, .primary:hover { filter: brightness(1.06); }
.btn.primary:disabled, .primary:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.danger { color: var(--bad); }
.ghost { border: 1px solid var(--line); background: #fff; border-radius: 7px; height: 30px; padding: 0 12px; }

.progress { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6c6ff5, #b183f2, #e3a2ef); transition: width .3s; }
.stage { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.err { font-size: 12px; color: var(--bad); background: var(--bad-bg); border-radius: 7px; padding: 6px 9px; }

.summary { font-size: 12px; color: #464a6b; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.summary details { width: 100%; }
.summary summary { cursor: pointer; color: var(--muted); }
.drops { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; }
.drops li { font-size: 12px; color: var(--muted); }
.drops li em { font-style: normal; color: #464a6b; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.card { border-radius: 8px; border: 1px solid var(--line); background: #fff; overflow: hidden; cursor: pointer; position: relative; transition: border-color .12s, opacity .12s; }
.card:hover { border-color: #c3c5f6; }
.card.off { opacity: .42; }
.card.locked { cursor: default; }
.thumb { position: relative; background: #16172e; aspect-ratio: 9 / 16; }
.thumb.land { aspect-ratio: 16 / 9; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 4px; bottom: 4px; background: rgba(18, 20, 50, .7); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.thumb .tick { position: absolute; left: 5px; top: 5px; width: 18px; height: 18px; border-radius: 5px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; box-shadow: 0 0 0 1.5px #fff; }
.card.off .thumb .tick { background: rgba(255,255,255,.85); color: transparent; }
.card.locked .thumb .tick { display: none; }
.cbody { padding: 5px 7px 6px; display: flex; flex-direction: column; gap: 2px; }
.cname { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmeta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }
.st { font-size: 11px; font-weight: 600; }
.cmeta .small { color: var(--warn); }
.warn-text { color: var(--warn); }
.st.pending { color: var(--muted); font-weight: 400; }
.st.uploading { color: var(--brand-2); }
.st.submitted, .st.cloning { color: var(--warn); }
.st.ready { color: var(--ok); }
.st.partial { color: var(--warn); }
.st.failed, .st.error { color: var(--bad); }
.upbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.3); }
.upbar i { display: block; height: 100%; background: #9fa3fb; }

.foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.foot .note { font-size: 12px; color: var(--muted); }
.foot .note.bad { color: var(--bad); }
.foot .spacer { flex: 1; }

/* —— 设置弹窗 —— */
.modal { position: fixed; inset: 0; background: rgba(30, 32, 80, .35); display: grid; place-items: center; z-index: 10; backdrop-filter: blur(2px); }
.modal[hidden] { display: none; }
.modal-card { width: 460px; max-width: calc(100% - 32px); background: #fff; border-radius: 14px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(40, 42, 110, .28); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head b { font-size: 15px; }
.x { border: 0; background: none; font-size: 20px; color: var(--muted); line-height: 1; }
.modal h4 { margin: 6px 0 0; font-size: 12px; color: var(--brand-2); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.path { flex: 1; min-width: 0; font-size: 11px; background: var(--soft); padding: 6px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* —— 设开始/结束时间 —— */
.setup { display: flex; gap: 12px; align-items: flex-start; }
.setup video { width: min(46%, 420px); max-height: 300px; background: #120a22; border-radius: 8px; flex: none; }
.range { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl { font-size: 13px; color: #464a6b; }
.rrow input { width: 96px; height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; outline: none; font-variant-numeric: tabular-nums; background: #fbfbff; }
.rrow input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.rmsg { font-size: 12px; color: var(--bad); }
.meta-range { font-size: 12px; color: var(--brand-2); background: var(--soft); border-radius: 999px; padding: 4px 10px; align-self: center; font-variant-numeric: tabular-nums; }

/* —— 「?」说明 —— */
.q { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #c3c5f6; background: #fff; color: var(--brand-2); font-size: 10.5px; line-height: 1; padding: 0; margin-left: 4px; vertical-align: 1px; cursor: pointer; }
.q:hover { background: var(--soft); }
.help-card { width: 520px; max-height: calc(100vh - 80px); }
.help-body { overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.help-body h4 { margin: 0 0 4px; font-size: 13px; color: var(--brand-2); }
.help-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.help-body li { font-size: 12.5px; line-height: 1.6; color: #3c3f5e; }

/* —— 隐身工作 / 展示工作 —— */
.work-mode { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.work-mode button { border: 0; background: transparent; color: rgba(255,255,255,.72); font-size: 12px; padding: 3px 11px; border-radius: 999px; }
.work-mode button.on { background: #fff; color: var(--brand-2); font-weight: 600; box-shadow: 0 1px 4px rgba(40,42,120,.3); }
.work-mode button[data-v=show].on { background: linear-gradient(120deg, #ffffff, #ffe3fb); color: #b0389f; }

/* —— 版本号 / 更新记录 —— */
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 2px 2px 0; }
.ver { border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ver:hover { border-color: var(--brand); color: var(--brand-2); }
.log-item h4 { display: flex; align-items: center; gap: 8px; }
.log-item .date { font-weight: 400; color: var(--muted); font-size: 12px; }
.log-item .tag { font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; }
.log-item.now h4::after { content: "当前"; font-size: 11px; color: var(--brand-2); background: var(--soft); border-radius: 999px; padding: 1px 8px; }
input.num { width: 72px; height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; text-align: center; }
.foot .keep { font-size: 12px; color: var(--muted); }

/* —— 刷新到新版 —— */
.ver.upd { position: relative; color: var(--brand-2); }
.ver.upd::before { content: "↻ "; }
.ver.upd.has { background: #ef4444; color: #fff; border-color: #ef4444; font-weight: 700; }
.ver.upd.has::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #fff; }
.toast { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 20; background: #2c2f6e; color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 8px 24px rgba(40,42,110,.28); }

/* —— 团队共用 —— */
.team-chip .dot { background: rgba(255,255,255,.45); box-shadow: none; }
.team-chip.on .dot { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.t-on { width: 120px; flex: none; }
.t-addr { display: flex; flex-direction: column; gap: 8px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.t-addr[hidden] { display: none; }
.t-rows { display: flex; flex-direction: column; gap: 8px; }
.t-row { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 10px; padding: 8px; }
.t-row img { width: 104px; height: 104px; border-radius: 6px; background: #fff; flex: none; image-rendering: pixelated; }
.t-row-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.t-tag { font-size: 12px; font-weight: 600; color: var(--brand-2); }
.t-row .url.sub { font-size: 12px; font-weight: 400; color: var(--muted); user-select: text; word-break: break-all; }
.t-urls { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-urls .url { font-size: 15px; font-weight: 600; color: var(--brand-3); user-select: text; word-break: break-all; }
.t-urls .url.sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.t-pub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-pub .url { font-size: 22px; font-weight: 800; letter-spacing: .3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-light { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.t-light i { width: 9px; height: 9px; border-radius: 50%; background: #c8c8d4; flex: none; }
.t-light.ok i { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.t-light.ok { color: #15803d; }
.t-light.bad i { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.t-light.bad { color: #b91c1c; }
.t-light.wait i { background: #f59e0b; animation: fsBlink 1s infinite; }
.t-lan { font-size: 12px; color: var(--muted); }
.t-lan summary { cursor: pointer; }
.pv-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16 / 9; background: var(--soft); border-radius: 10px; color: var(--muted); font-size: 12.5px; text-align: center; padding: 12px; }
.pv-wait b { color: var(--brand-3); font-size: 14px; }
.t-members { display: flex; flex-wrap: wrap; gap: 6px; }
.t-member { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.t-member .btn { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; }
.t-member .role { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--brand-2); }
.t-member .role.shoot { background: var(--info-bg); color: var(--info); }
.t-member .role.admin { background: var(--warn-bg); color: var(--warn); }
.t-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }
.t-add { display: flex; gap: 6px; align-items: center; }
.t-add input { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; outline: none; background: #fbfbff; }
.t-add input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.t-add #tName { width: 110px; } .t-add #tPin { width: 130px; text-align: center; }
.t-add .seg { flex: 1; }
.hint.bad { color: var(--bad); }
.team-tag { font-size: 11px; color: var(--info); background: var(--info-bg); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
#help { z-index: 12; }
.bad-text { color: var(--bad) !important; }

/* —— 认领、一键切片、多个账号 —— */
.batch { position: sticky; top: -12px; z-index: 3; margin: -12px -12px 0; padding: 8px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(241,240,253,.96) 70%, rgba(241,240,253,0)); font-size: 13px; }
.batch[hidden] { display: none; }
.batch b { color: var(--brand-2); }
.batch .busy { color: var(--muted); font-size: 12px; }
.batch .sep { width: 1px; height: 16px; background: var(--line); }
.batch .warn-text { font-size: 12px; }
.badge.claim { background: var(--info-bg); color: var(--info); }
.acc-tag { font-size: 11px; color: var(--brand-3); background: var(--soft); border-radius: 999px; padding: 1px 8px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.job-title b.noname { color: var(--warn); font-weight: 600; }
.rrow input.rn { width: 150px; }
.seg.mini { padding: 2px; }
.seg.mini button { flex: none; width: 34px; height: 24px; }
.racc { height: 30px; min-width: 150px; max-width: 240px; border: 1px solid var(--line); border-radius: 7px; padding: 0 6px; background: #fbfbff; font: inherit; color: var(--ink); outline: none; }
.racc:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.acc-list { display: flex; flex-direction: column; gap: 6px; }
.acc { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.acc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.acc .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc .spacer { flex: 1; }
.acc .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.acc .dot.off { background: #f59e0b; }
.acc-add { display: flex; gap: 6px; align-items: center; }
.acc-add input { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; outline: none; background: #fbfbff; }
.acc-add input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
#loginMsg:empty { display: none; }

/* —— 在浏览器里打开(团队共用):跟软件同一页,藏掉只能在主机上做的 —— */
.web .side-foot, .web #updBtn, .web #workMode, .web #openSettings, .web #teamChip { display: none !important; }
.web .top { padding-left: 16px; -webkit-app-region: no-drag; }
.web-login { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(80% 60% at 15% 0%, rgba(255,255,255,.35), transparent 60%), radial-gradient(70% 70% at 100% 100%, rgba(255, 214, 250, .6), transparent 60%), var(--grad); }
/* 网页登录页:上面品牌,下面左边下载安装包、右边登录;没有安装包时只有登录 */
.wl-stack { width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.web-login.has-dl .wl-stack { width: 760px; }
.wl-card { width: 100%; background: #fff; border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(40, 42, 120, .4); }
.wl-brand { display: flex; align-items: center; gap: 10px; }
.wl-brand b { font-size: 16px; }
.wl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.web-login.has-dl .wl-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wl-dl, .wl-login { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wl-dl[hidden] { display: none; }
.web-login.has-dl .wl-dl { padding-right: 20px; border-right: 1px solid var(--line); }
.web-login.has-dl .wl-login { padding-left: 20px; }
.wl-h { display: flex; align-items: baseline; gap: 8px; }
.wl-h b { font-size: 15px; color: var(--brand-3); }
.wl-ver { font-size: 12px; color: var(--muted); }
.wl-tip { margin: 0; font-size: 13px; color: var(--muted); }
.wl-card input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 15px; outline: none; background: #fff; }
.wl-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.wl-card input[type=password] { letter-spacing: 3px; }
.wl-card input[type=password]::placeholder { letter-spacing: 0; }
.wl-go { height: 38px; }
.wl-pkgs { display: flex; flex-direction: column; gap: 6px; }
.wl-pkgs button { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: 14px; color: var(--brand-3); cursor: pointer; }
.wl-pkgs button:hover { border-color: var(--brand); }
.wl-pkgs button span { font-size: 12px; color: var(--muted); }
.wl-pkgs button:disabled { opacity: .6; }
.wl-pkgs button.on { border-color: var(--brand); background: #fff; }
.wl-keyrow { display: flex; gap: 8px; }
.wl-keyrow[hidden] { display: none; }
.wl-keyrow input { flex: 1; min-width: 0; }
.wl-keyrow .primary { height: 38px; flex: none; }
.wl-hint { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.wl-msg { margin: 0; min-height: 18px; font-size: 13px; color: var(--bad); }
.wl-msg.ok { color: var(--ok); }
@media (max-width: 640px) {
  .web-login.has-dl .wl-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .web-login.has-dl .wl-login { order: -1; padding-left: 0; }
  .web-login.has-dl .wl-dl { padding-right: 0; border-right: 0; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* 手机上:播放器和设置上下排,顶栏收紧 */
@media (max-width: 760px) {
  body { overflow: auto; height: auto; }
  .layout { display: block; }
  .side { width: auto; padding: 10px 10px 0; overflow: visible; }
  .main { overflow: visible; padding: 10px 10px 24px; }
  .batch { position: sticky; top: 0; margin: 0 -10px; padding: 8px 10px; }
  .top { height: auto; min-height: 52px; padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .brand .sub { display: none; }
  .top-right { flex-wrap: wrap; gap: 6px; }
  .tabs { padding: 0 6px; height: 46px; }
  .tabs button { flex: 1; justify-content: center; padding: 0 8px; }
  .job-head { flex-wrap: wrap; gap: 6px; }
  .job-title { flex-basis: 100%; flex-wrap: wrap; }
  .job-title .meta { white-space: normal; }
  .acts { flex-wrap: wrap; }
  .setup { flex-direction: column; }
  .setup video { width: 100%; max-height: 52vh; }
  .rrow input.rn { flex: 1; min-width: 0; }
  .racc { flex: 1; max-width: none; }
  .pa { flex: 1 1 auto; justify-content: center; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .foot .spacer { display: none; }
}

/* —— 03 形象 / 04 账号 / 05 团队 这几页 —— */
.pane-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pane-head h3 { margin: 0; font-size: 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pane-head h3 .muted { font-size: 12px; font-weight: 400; }
.pane-head .spacer { flex: 1; }
.d-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-today { font-size: 14px; margin-right: 6px; }
.d-today b { font-size: 20px; color: var(--brand-2); }
.d-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 13px; font-size: 13px; color: #464a6b; }
.d-chip.on { border-color: var(--brand); background: var(--soft); color: var(--brand-2); font-weight: 600; }
.d-chip.ready.on { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.d-chip.failed.on { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.d-find { height: 30px; width: 170px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; outline: none; background: #fff; font: inherit; }
.d-find:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.d-list { display: flex; flex-direction: column; gap: 8px; }
.d-day { margin: 8px 0 0; font-size: 13px; color: var(--brand-2); }
.d-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.d-acc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 64px; }
.d-err { font-size: 11px; color: var(--bad); line-height: 1.4; }

.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--ok); }
.acc-card.warn { border-top-color: #f59e0b; }
.acc-card.bad { border-top-color: var(--bad); }
.acc-top { display: flex; align-items: center; gap: 10px; }
.acc-ava { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: var(--grad-btn); flex: none; }
.acc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-name .muted { font-size: 12px; }
.acc-st { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.acc-st.ok { background: var(--ok-bg); color: var(--ok); }
.acc-st.warn { background: var(--warn-bg); color: var(--warn); }
.acc-st.bad { background: var(--bad-bg); color: var(--bad); }
.acc-when { font-size: 12.5px; color: #464a6b; }
.acc-when b { color: var(--brand-2); }
.acc-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--soft); border-radius: 9px; padding: 8px 6px; }
.acc-nums div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.acc-nums b { font-size: 18px; color: var(--ink); }
.acc-nums span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.acc-nums .bad b { color: var(--bad); }
.acc-acts { display: flex; gap: 8px; justify-content: flex-end; }
.acc-new { max-width: 720px; }
.acc-new h4 { margin: 0; font-size: 13px; color: var(--brand-2); }
.acc-site input { max-width: 360px; }

.team-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.team-cols h4 { margin: 0; font-size: 13px; color: var(--brand-2); }
.t-left, .t-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* 外网、内网放一排,窄了自动换行 */
#tUrls { flex-direction: row; flex-wrap: wrap; }
#tUrls .t-row { flex: 1 1 300px; min-width: 0; }

@media (max-width: 760px) {
  .tabs { overflow-x: auto; }
  .tabs button { flex: none; }
  .tabs em { display: none; }
  .d-find { width: 100%; }
  .team-cols { grid-template-columns: 1fr; }
}

/* —— 认领卡片:传到哪个账号(大按钮)、确认认领 —— */
.pick-acc { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; background: var(--soft); border: 1.5px solid #cfd0fa; border-radius: 12px; max-width: 620px; }
.pa-lab { font-size: 14px; font-weight: 700; color: var(--brand-3); }
.pa-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pa { height: 42px; padding: 0 18px; border-radius: 10px; border: 1.5px solid #c9cbf7; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.pa:hover { border-color: var(--brand); }
.pa i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.pa.off i { background: #f59e0b; }
.pa small { font-size: 11px; font-weight: 500; color: var(--warn); }
.pa.on { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(98, 99, 230, .32); }
.pa.on i { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.pa.on small { color: #fde68a; }
.pa-none { font-size: 13px; color: var(--warn); }
.btn.primary.big { height: 42px; padding: 0 28px; font-size: 15px; border-radius: 10px; }

/* —— 左边:飞书提交素材表单 —— */
.fs-card { gap: 8px; border-color: #d5d4fa; background: linear-gradient(180deg, #ffffff, #f6f5ff); }
.fs-head { display: flex; align-items: center; gap: 4px; }
.fs-head b { font-size: 14px; color: var(--brand-3); }
.fs-tip { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.fs-btns { display: flex; gap: 8px; }
.fs-btns .btn { flex: 1; height: 34px; }
.fs-status { margin: 0; font-size: 12px; line-height: 1.6; color: #464a6b; background: var(--soft); border-radius: 8px; padding: 7px 9px; }
.fs-status b { color: var(--brand-2); }
.fs-sync { align-self: flex-start; }
.fs-tag { background: #e8f3ff; color: #1f6feb; }
.fs-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#settings .modal-card { width: 580px; max-height: calc(100vh - 60px); overflow: auto; }


.guest-tip { font-size: 12px; }
#batch button[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.fs-card.flash { animation: fsFlash 1.6s ease-out; }
@keyframes fsFlash { 0%, 40% { box-shadow: 0 0 0 4px #a855f7; } 100% { box-shadow: 0 0 0 0 transparent; } }
.vlog-box { gap: 8px; }
.vl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vl-head b { font-size: 14px; color: var(--brand-3); }
.vl-head .muted { font-size: 12px; }
.vl-row { display: flex; flex-direction: column; gap: 6px; padding: 9px 11px; background: var(--soft); border-radius: 10px; }
.vl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vl-top .meta { font-size: 12px; color: var(--muted); }
.vl-st { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--brand-2); }
.vl-row.st-done .vl-st { color: var(--ok); }
.vl-row.st-error .vl-st, .vl-row.st-waitLogin .vl-st { color: var(--bad); }
.vl-top .acts { display: flex; gap: 6px; }
.vl-bar { height: 5px; border-radius: 99px; background: #fff; overflow: hidden; }
.vl-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .3s; }
.vl-err { margin: 0; font-size: 12px; color: var(--bad); word-break: break-all; }
.fs-why { margin: -4px 0 0; font-size: 12px; line-height: 1.5; color: var(--bad); word-break: break-all; }
.drop.busy { opacity: .6; pointer-events: none; }
.fs-bot { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--brand-3); }
.fs-bot i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #4ade80; flex: none; }
.fs-bot.busy i { background: #f59e0b; box-shadow: 0 0 6px #fbbf24; animation: fsBlink 1s ease-in-out infinite; }
.fs-bot.bad i { background: var(--bad); box-shadow: 0 0 6px #f87171; }
.fs-bot.off i { background: #c3c5d8; box-shadow: none; }
@keyframes fsBlink { 50% { opacity: .35; } }

/* —— 素材类型:IP形象(紫)/ Vlogo(橙),左边放视频、认领卡片上都一眼分得出 —— */
:root { --vlog: #ea580c; --vlog-bg: #fff1e6; --vlog-grad: linear-gradient(120deg, #f97316 0%, #fb923c 60%, #fbbf24 100%); }
.kind-seg { padding: 4px; }
.kind-seg button { height: 36px; font-size: 14px; font-weight: 600; }
.kind-seg button.on { background: var(--grad-btn); color: #fff; }
.kind-seg button[data-v="vlog"].on { background: var(--vlog-grad); color: #fff; box-shadow: 0 2px 8px rgba(234, 88, 12, .3); }
/* 两个类型按钮上各一个「?」,点了看这种怎么切、传到哪(说明不摆出来) */
.kind-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.kq { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0; font-size: 11.5px; font-weight: 700; vertical-align: 0; }
.kind-seg button.on .kq { border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.kind-seg button[data-v="vlog"] .kq { color: var(--vlog); border-color: #fbc9a5; }
#addForm.k-vlog .ip-only { display: none !important; }
#addForm:not(.k-vlog) .vlog-only { display: none !important; }
.kind-tag { flex: none; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 7px; color: #fff; background: var(--grad-btn); white-space: nowrap; }
.kind-tag.vlog { background: var(--vlog-grad); }
.pick-kind { display: flex; flex-direction: column; gap: 8px; }
.pk-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pk { min-height: 54px; padding: 7px 18px; border-radius: 11px; border: 2px solid #c9cbf7; background: #fff; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; cursor: pointer; }
.pk b { font-size: 16px; color: var(--ink); }
.pk small { font-size: 11.5px; color: var(--muted); }
.pk.vlog { border-color: #fbc9a5; }
.pk:hover { border-color: var(--brand); }
.pk.vlog:hover { border-color: var(--vlog); }
.pk.on { background: var(--grad-btn); border-color: transparent; box-shadow: 0 4px 14px rgba(98, 99, 230, .32); }
.pk.vlog.on { background: var(--vlog-grad); box-shadow: 0 4px 14px rgba(234, 88, 12, .3); }
.pk.on b, .pk.on small { color: #fff; }
.setup.k-vlog .ip-only { display: none !important; }
.setup:not(.k-vlog) .vlog-only { display: none !important; }
.vlog-to { padding: 11px 14px; border-radius: 12px; background: var(--vlog-bg); border: 1.5px solid #fbc9a5; color: #9a3412; font-size: 13.5px; max-width: 620px; }
@media (max-width: 760px) { .pk { flex: 1 1 100%; } }
.retry-note { margin-bottom: 10px; padding: 10px 14px; border-radius: 10px; background: var(--vlog-bg); border: 1.5px solid #fbc9a5; color: #9a3412; font-size: 13.5px; font-weight: 600; }
/* Vlogo 传到哪个分类:跟选账号一样的大按钮,橙色 */
.pick-grp { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--vlog-bg); border: 1.5px solid #fbc9a5; border-radius: 12px; max-width: 620px; }
.pick-grp .rrow { margin: 0; }
.pick-grp .rg { flex: 1; min-width: 0; max-width: 340px; font-weight: 600; }
.pick-grp .pa-lab .muted { font-size: 12px; font-weight: 500; }
.pg-none { align-self: center; font-size: 12.5px; color: var(--muted); }
/* 04 账号:每个账号的素材库 */
.acc-libs { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--vlog-bg); border: 1.5px solid #fbc9a5; display: flex; flex-direction: column; gap: 8px; }
.al-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.al-head b { font-size: 14px; color: #9a3412; }
.al-head .muted { font-size: 12px; }
.al-list { display: flex; flex-wrap: wrap; gap: 6px; }
.al-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 8px; background: var(--vlog-grad); color: #fff; font-size: 13.5px; font-weight: 700; }
.al-chip small { font-size: 11px; font-weight: 600; margin-left: 4px; }
.al-chip.gone { background: #fee2e2; color: #b91c1c; }
.al-chip button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .25); color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.al-chip button:hover { background: rgba(0, 0, 0, .18); }
.al-add { display: flex; gap: 8px; }
.al-add .al-in { flex: 1; min-width: 0; height: 36px; border: 1px solid #fbc9a5; border-radius: 8px; padding: 0 10px; outline: none; background: #fff; font-size: 14px; }
.al-add .al-in:focus { border-color: var(--vlog); box-shadow: 0 0 0 3px rgba(234, 88, 12, .15); }
.al-add .btn { height: 36px; }
.al-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.al-more .muted { font-size: 12px; }
.al-q { height: 28px; padding: 0 10px; border-radius: 7px; border: 1.5px dashed #fbc9a5; background: #fff; font-size: 12.5px; font-weight: 600; color: #9a3412; cursor: pointer; }
.al-q:hover { border-color: var(--vlog); border-style: solid; }
.al-msg { margin: 0; font-size: 13px; font-weight: 600; }
.al-msg.ok { color: #15803d; }
.al-msg.bad { color: #b91c1c; }
.btn.mini { height: 24px; padding: 0 9px; font-size: 12px; font-weight: 500; }
.pg { display: inline-flex; flex-direction: column; justify-content: center; min-height: 42px; line-height: 1.2; text-align: left; padding: 4px 16px; border-radius: 10px; border: 1.5px solid #fbc9a5; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pg:hover { border-color: var(--vlog); }
.pg.on { background: var(--vlog-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(234, 88, 12, .3); }

.pg small { font-size: 11.5px; font-weight: 500; opacity: .75; }
.pg.off { opacity: .6; }

/* 认领卡片:账号、素材库下拉(账号几十个也只占一行) */
.rrow select { height: 34px; width: 300px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fbfbff; outline: none; cursor: pointer; }
.rrow select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.rrow select.sel-grp { border-color: #fbc9a5; background: var(--vlog-bg); }
.rrow select:disabled { opacity: .6; cursor: default; }
.sel-tip { font-size: 12px; }
.grp-tip { font-size: 12.5px; }
.grp-tip:empty { display: none; }

/* —— 飞书机器人:左边每个机器人一份;05 团队页一个机器人一张卡片 + 添加 —— */
.fs-list { display: flex; flex-direction: column; gap: 8px; }
.fs-one { display: flex; flex-direction: column; gap: 7px; padding-top: 9px; border-top: 1px dashed #cfcdf7; }
.fs-one:first-child { border-top: 0; padding-top: 0; }
.fs-none { font-size: 13px; color: var(--muted); }
.fs-go { height: 34px; }
.t-fs h4 { margin: 0; font-size: 13px; color: var(--brand-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 05 团队 · 飞书机器人:接好的跟成员一样一个小牌(灯 + 名字 + 删除),下面一行填 3 项 */
.t-botchip.ok { border-color: #bfe8cd; }
.t-botchip.bad { border-color: #f5b5b5; background: #fffafa; }
.t-botchip .fs-bot { font-weight: 700; }
.tb-why { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--bad); font-weight: 600; word-break: break-all; }
.tb-noforms { display: flex; flex-direction: column; gap: 8px; }
.tb-noforms:empty { display: none; }
.tb-noform { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); }
.tb-noform input { flex: 1; min-width: 0; }
.tb-warn { color: var(--warn); font-weight: 600; }
.tb-add { flex-wrap: wrap; }
.tb-add #bAppId { width: 150px; }
.tb-add #bSecret { width: 130px; }
.tb-add #bTable { flex: 1 1 200px; min-width: 0; }
.tb-msg { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); word-break: break-all; }
.tb-msg:empty { display: none; }
.tb-msg.ok { color: var(--ok); }
.tb-msg.warn { color: var(--warn); }
.tb-msg.bad { color: var(--bad); }
@media (max-width: 760px) {
  .tb-add input, .tb-add #bAppId, .tb-add #bSecret { flex: 1 1 100%; width: auto; }
}
/* 外网、内网并排时网址字小一点,窄了也不撑出卡片 */
#tUrls .t-pub .url { font-size: clamp(16px, 1.5vw, 22px); overflow-wrap: anywhere; }
/* 有新版:顶上红按钮,一闪一闪 */
.chip.upd-chip { background: #ef4444; border-color: #ef4444; color: #fff; font-weight: 700; animation: updPulse 1.6s ease-in-out infinite; }
.chip.upd-chip:hover { background: #dc2626; }
.chip.upd-chip[hidden] { display: none; }
@keyframes updPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }
.upd-card { width: 460px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 12px; }
.upd-notes { max-height: 260px; overflow-y: auto; }
.upd-notes[hidden] { display: none; }
#uKeyRow input { flex: 1; letter-spacing: 2px; }
#uKeyRow input::placeholder { letter-spacing: 0; }
#uKeyRow[hidden] { display: none; }
.upd-bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.upd-bar[hidden] { display: none; }
.upd-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.t-tls { font-size: 12px; color: var(--muted); }
.t-tls.error { color: var(--warn); }
/* 登录页下面「配套工具」:一个工具一行,名字在左,包在右边一排 */
.wl-extra[hidden] { display: none; }
.wl-xlist { display: flex; flex-direction: column; gap: 10px; }
.wl-xtool { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wl-xname { min-width: 64px; font-size: 15px; color: var(--brand-3); }
.wl-xtool .wl-pkgs { flex: 1; flex-direction: row; flex-wrap: wrap; }
.wl-xtool .wl-pkgs button { flex: 1 1 180px; }
/* 04 账号:下面左「添加账号」、右「飞书机器人」 */
.acc-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 12px; align-items: start; margin-top: 12px; }
/* 05 团队 · 开通密钥:上面一行开通,下面一张表 */
.t-lic { margin-top: 12px; }
.t-lic h4 { margin: 0; font-size: 13px; color: var(--brand-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.t-lic h4 .muted { font-size: 12px; font-weight: 400; }
.lic-add { flex-wrap: wrap; }
.lic-add #lName { width: 130px; } .lic-add #lPhone { width: 150px; }
.lic-add select, .lic-table select { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 6px; background: #fbfbff; }
.lic-list { overflow-x: auto; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lic-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lic-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lic-table tr.st-off td, .lic-table tr.st-bad td { color: var(--muted); }
.lic-key { font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: 1px; background: var(--soft); padding: 2px 6px; border-radius: 5px; color: var(--brand-3); }
.lic-st { font-size: 12px; font-weight: 600; }
.lic-st.ok { color: var(--ok); } .lic-st.warn { color: var(--warn); } .lic-st.bad { color: var(--bad); } .lic-st.off { color: var(--muted); }
.lic-table td.ops { display: flex; gap: 6px; align-items: center; }
.lic-table td.ops .btn { height: 28px; padding: 0 10px; font-size: 12px; }
/* 客户电脑没开通 / 到期:盖住整个软件 */
.lic-lock { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(80% 60% at 15% 0%, rgba(255,255,255,.35), transparent 60%), radial-gradient(70% 70% at 100% 100%, rgba(255, 214, 250, .6), transparent 60%), var(--grad); }
.lic-lock[hidden] { display: none; }
.lic-card { width: 420px; max-width: 100%; background: #fff; border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(40, 42, 120, .4); }
.lic-card h3 { margin: 4px 0 0; font-size: 18px; color: var(--brand-3); }
.lic-card .t-add input { flex: 1; height: 38px; font-size: 15px; letter-spacing: 1px; }
.lic-card .t-add .primary { height: 38px; padding: 0 18px; }
.lic-card .hint { margin: 0; }
.chip.lic-chip { background: var(--warn-bg); color: var(--warn); border-color: #f3d08a; font-weight: 700; }
.chip.lic-chip[hidden] { display: none; }
