:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --brand: #fe2c55;
  --brand-soft: #fff0f3;
  --side: #0f1115;
  --side-text: #c9ced6;
  --blue: #2563eb;  --blue-soft: #eff4ff;
  --amber: #b45309; --amber-soft: #fff7e6;
  --green: #15803d; --green-soft: #ecfdf3;
  --red: #dc2626;   --red-soft: #fef2f2;
  --gray-soft: #f3f4f6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
[v-cloak] { display: none; }

/* ---------- 布局 ---------- */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
/* 菜单多了放不下时菜单区自己滚动，底部的登录信息和「退出登录」始终看得到 */
.side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2e37 transparent; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; padding: 2px 8px 18px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #25f4ee, #fe2c55); display: grid; place-items: center; font-size: 15px; }
.nav-group { font-size: 11px; color: #6b7280; padding: 14px 10px 6px; letter-spacing: .06em; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--side-text); padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; text-decoration: none; }
.nav a:hover { background: #1b1e25; color: #fff; }
.nav a.on { background: #23262e; color: #fff; }
.nav .ico { width: 18px; text-align: center; opacity: .85; }
.nav .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.side-foot { margin-top: auto; border-top: 1px solid #23262e; padding: 12px 8px 0; font-size: 13px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot .role { color: #6b7280; font-size: 12px; }
.side-foot button { margin-top: 8px; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 28px 0; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.page { padding: 18px 28px 120px; }

/* ---------- 通用组件 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 16px 18px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pre { white-space: pre-wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: #f9fafb; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #e8264c; }
.btn.dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn.danger { color: var(--red); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.side .btn.ghost { color: var(--side-text); padding: 0 8px; }
.side .btn.ghost:hover { background: #1b1e25; }

input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; height: 34px; outline: none; }
textarea { padding: 8px 10px; height: auto; min-height: 64px; resize: vertical; line-height: 1.5; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
label.field, div.field.pw { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label.field > span, div.field.pw > span { font-weight: 550; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--gray-soft); color: var(--muted); white-space: nowrap; line-height: 20px; }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: inherit; padding: 9px 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; }
.tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.tabs .n { font-size: 12px; color: var(--faint); margin-left: 4px; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafafa; white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fafafa; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 28px; margin-bottom: 6px; }

/* ---------- 数据卡片 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 550; }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 2px; letter-spacing: -.01em; }
.stat .h { font-size: 12px; color: var(--faint); }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover { border-color: var(--line-strong); }

/* ---------- 视频网格 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; position: relative; }
.vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vcard.sel { outline: 2px solid var(--brand); outline-offset: -1px; }
.vthumb { aspect-ratio: 3 / 4; background: #e5e7eb center / cover no-repeat; position: relative; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.vthumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 4px; line-height: 18px; }
.vthumb .st { position: absolute; left: 6px; bottom: 6px; }
.vthumb .chk { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #fff; background: rgba(0,0,0,.25); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.vcard.sel .chk { background: var(--brand); border-color: var(--brand); }
.vthumb .tasks { position: absolute; right: 6px; top: 8px; }
.vbody { padding: 9px 10px 10px; }
.vbody .au { font-weight: 600; font-size: 13px; }
.vbody .ds { font-size: 12px; color: var(--muted); min-height: 36px; margin-top: 2px; }
.vbody .nums { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.vbody .nums b { color: var(--text); font-weight: 650; }
.er-hot { color: var(--brand) !important; }

.selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--text); color: #fff; border-radius: 12px; padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); z-index: 30; }
.selbar .btn { height: 32px; }
.selbar .btn:not(.primary) { background: transparent; color: #fff; border-color: #374151; }
.selbar .btn.danger { color: #fca5a5; }
/* 做视频三栏：栏里按「等你处理 / 在做 / 等开工 / 暂停的」分组，组头点一下收起或展开 */
.stage-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; cursor: pointer; user-select: none; font-size: 14px; }
.stage-h:first-of-type { margin-top: 4px; }
.stage-h .caret { width: 12px; color: var(--muted); }
.stage-h .n { font-size: 12px; color: var(--muted); background: var(--gray-soft); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.tbl tr.picked td { background: var(--brand-soft); }

/* ---------- 抽屉、弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15,17,21,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--panel); z-index: 41; overflow-y: auto; box-shadow: var(--shadow-lg); }
.drawer-head { position: sticky; top: 0; background: var(--panel); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 20px 40px; }
.modal { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-mask { z-index: 50; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-body { padding: 18px 20px; display: grid; gap: 14px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.85); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

.detail-top { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.player { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; background: #000; border-radius: 10px; object-fit: contain; }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 10px; font-size: 13px; }
.kv .k { color: var(--muted); }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.frames img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; cursor: zoom-in; background: #eee; }
.frames .t { font-size: 11px; color: var(--muted); text-align: center; margin-top: 2px; }
.transcript { max-height: 240px; overflow-y: auto; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.files a { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }

/* ---------- 任务详情 ---------- */
.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.task-side { position: sticky; top: 12px; display: grid; gap: 14px; }
.brief { background: var(--amber-soft); border: 1px solid #fde4b8; border-radius: 10px; padding: 12px 14px; }
.sec-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.sec-title .num { width: 22px; height: 22px; border-radius: 6px; background: var(--text); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.shots { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; }
.shots th { font-size: 12px; color: var(--muted); text-align: left; padding: 8px; border-bottom: 1px solid var(--line); background: #fafafa; position: sticky; top: 0; z-index: 1; }
.shots td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.shots td.no { font-weight: 700; width: 36px; }
.shots td.time { width: 78px; font-size: 12px; color: var(--muted); }
.shots td.fr { width: 132px; }
.shots td.fr .imgs { display: flex; gap: 4px; }
.shots td.fr img { width: 60px; aspect-ratio: 9/16; object-fit: cover; border-radius: 5px; cursor: zoom-in; }
.shots td.line { width: 170px; font-size: 12.5px; color: #374151; }
.shots td.edit { min-width: 170px; }
.shots textarea { min-height: 72px; font-size: 13px; }
.savebar { position: sticky; bottom: 0; background: rgba(245,246,248,.92); backdrop-filter: blur(6px); padding: 12px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 18px; z-index: 5; }
.events { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.event { font-size: 13px; border-left: 2px solid var(--line); padding-left: 10px; }
.event .when { font-size: 11px; color: var(--faint); }
.event.revise { border-left-color: var(--red); }
.event.approve { border-left-color: var(--green); }
.event.submit { border-left-color: var(--amber); }
.event.comment { border-left-color: var(--blue); }
.progress { height: 6px; background: var(--gray-soft); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); transition: width .2s; }

/* ---------- 博主 ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ccard { padding: 14px 16px; display: grid; gap: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #e5e7eb; object-fit: cover; flex: none; }
.avatar.lg { width: 64px; height: 64px; }
.cnums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fafafa; border-radius: 8px; padding: 8px; text-align: center; }
.cnums b { display: block; font-size: 15px; }
.cnums span { font-size: 11px; color: var(--muted); }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #ffe4ea, transparent 40%), radial-gradient(circle at 80% 90%, #d8fbfa, transparent 40%), var(--bg); }
.login { width: 360px; padding: 28px; display: grid; gap: 14px; }
.login .logo { color: var(--text); padding: 0 0 6px; font-size: 18px; }

.toast-box { position: fixed; top: 16px; right: 16px; z-index: 70; display: grid; gap: 8px; }
.toast { background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 380px; font-size: 13px; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }

@media (max-width: 1100px) {
  .task-grid { grid-template-columns: minmax(0, 1fr); }
  .task-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .page, .topbar { padding-left: 16px; padding-right: 16px; }
  .detail-top { grid-template-columns: 1fr; }
}

/* 复刻包：逐镜拆解表 */
.shot-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.shot-tbl .tbl { min-width: 640px; }
.shot-tbl td { vertical-align: top; }
.thumbs { display: flex; gap: 4px; }
.thumbs img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; cursor: zoom-in; background: #eee; }
.nowrap { white-space: nowrap; }

/* 高表现、复刻目标 */
.vbody .badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.vbody .vfoot { display: flex; justify-content: space-between; gap: 6px; }
.target-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
.target-box .excl { margin: 0; padding-left: 18px; }
.chk-inline { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.chk-inline input { height: auto; }

/* 中文译文：原文下方的灰色小字 */
.zh { color: var(--muted); font-size: 12px; line-height: 1.5; white-space: normal; }
.transcript .cue { margin-bottom: 6px; }

/* 板块二：账号档案、开始复刻 */
.modal.wide { width: min(780px, calc(100vw - 32px)); }
.ref-imgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ref-thumb { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; background: #eee; }
.ref-img { position: relative; display: grid; gap: 2px; justify-items: center; }
.ref-img img { width: 96px; height: 128px; object-fit: cover; border-radius: 8px; background: #eee; cursor: zoom-in; }
.ref-img .btn { position: absolute; top: 2px; right: 2px; background: rgba(255,255,255,.9); padding: 0 6px; height: 22px; }
.prod { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.remake-videos { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; }
.rv-cover { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; background: #eee; flex: none; }
.rv-cover.sm { width: 40px; height: 54px; }
.acc-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.acc-field { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 8px; }
.acc-chip { display: inline-flex; gap: 4px; align-items: center; background: var(--gray-soft); border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 13px; font-weight: 400; cursor: pointer; }
.acc-chip.on { box-shadow: 0 0 0 1px var(--line-strong); }
.acc-chip.warn { background: var(--amber-soft); color: var(--amber); }
.acc-x { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0 3px; width: auto; height: auto; }
.acc-add { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 2px 4px; }
.acc-add:hover { color: var(--text); }
.acc-drop { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.acc-list { max-height: 220px; overflow-y: auto; }
.acc-item { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 400; }
.acc-item:hover { background: var(--gray-soft); }
.acc-item input { width: auto; height: auto; flex: none; }
.acc-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.acc-pick.off { opacity: .55; }
.acc-sum { display: grid; gap: 4px; border-top: 1px dashed var(--line); padding-top: 8px; }
.choice { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; font-weight: 400; }
.choice input, .choice.inline input { width: auto; height: auto; }
.choice.inline { display: inline-flex; gap: 6px; margin-right: 18px; }

/* 复刻任务详情：AI 进度和产出 */
/* 任务详情页：宽表格在自己的框里横向滚动，不把整页撑宽 */
.job-page > * { min-width: 0; }
.ask-box { border-color: var(--amber, #f59e0b); background: #fffbeb; }
.steps-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.step-chip { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: grid; gap: 2px; min-width: 112px; color: var(--muted); }
.step-chip b { color: var(--text); }
.step-chip.done { border-color: #86efac; background: #f0fdf4; }
.step-chip.now { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.step-chip.skip { opacity: .5; }
.step-chip.bad { border-color: #fca5a5; background: #fef2f2; color: var(--red); }
.step-chip.ask { border-color: var(--amber, #f59e0b); background: #fffbeb; }
.step-row { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.jv-obj { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 6px 14px; }
.jv-k { color: var(--muted); font-size: 13px; }
.jv-text { white-space: pre-wrap; word-break: break-word; }
.jv-list { margin: 0; padding-left: 18px; }
.jv-table { overflow-x: auto; }
.jv-table .tbl td, .jv-table .tbl th { font-size: 13px; vertical-align: top; }

/* 复刻任务详情：每一步的中文展示、制作包 */
button.step-chip { font: inherit; text-align: left; background: var(--panel); cursor: pointer; }
.step-chip.on { box-shadow: 0 0 0 2px var(--text); }
.sv-note { background: var(--amber-soft); border-radius: 8px; padding: 8px 12px; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sv-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; }
.sv-list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.copy-box { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fafafa; margin-top: 6px; }
.copy-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow-y: auto; margin: 4px 0 0; }
/* 制作包：一个分镜一行，点开按步骤做；每段描述前都有小标题 */
.pk-lines { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; align-items: baseline; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pk-progress { display: grid; gap: 4px; background: var(--gray-soft); border-radius: 10px; padding: 10px 12px; }
.pk-row { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: var(--panel); }
.pk-row.on { border-color: var(--line-strong); }
.pk-head { display: grid; grid-template-columns: 64px 48px minmax(0, 1fr) auto 12px; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 14px; color: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.pk-head:hover { background: var(--gray-soft); }
.pk-head2 { grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto 12px; }
.pk-brief { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-pills { display: flex; gap: 4px; }
.pk-body { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }
.pk-info { display: grid; gap: 8px; }
.pk-step { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; font-size: 13px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pk-chip { background: var(--gray-soft); border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.pk-text { margin-top: 6px; max-height: 320px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fafafa; }
.pk-kv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13px; }
.pk-kv > span:first-child { color: var(--muted); font-size: 12px; font-weight: 600; }
.btn.on { background: var(--gray-soft); border-color: var(--line-strong); }
.asset-row.flat { border-top: 0; padding: 0; }
@media (max-width: 760px) {
  .pk-lines { grid-template-columns: 1fr; }
  .pk-head, .pk-head2 { grid-template-columns: 56px minmax(0, 1fr) 12px; }
  .pk-head > .pk-brief, .pk-head > .pk-pills { grid-column: 1 / -1; order: 3; }
  .pk-head2 > b { grid-column: 1 / 3; }
  .pk-pills { flex-wrap: wrap; }
}
.shot-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot-head { display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.shot-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 14px; }
@media (max-width: 900px) { .shot-body { grid-template-columns: 1fr; } }
.shot-line { padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* 经验库：问题 / 原因 / 以后怎么做，左边标题右边内容 */
.lesson-body { display: grid; gap: 6px; font-size: 14px; }
.lesson-body > div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.lesson-body b { color: var(--muted); font-weight: 550; }

/* 任务页：你的发布前审核 */
.review-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg, #fafafa); display: grid; gap: 4px; }

/* 任务页：员工交给账号档案的参考图 */
.slot-files { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-card { display: grid; gap: 4px; align-content: start; width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.sub-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; background: #eee; cursor: zoom-in; }

/* 账号总览 */
.staff-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.staff-card { display: grid; gap: 2px; text-align: left; padding: 10px 14px; min-width: 220px; cursor: pointer; font: inherit; color: inherit; }
.staff-card.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.face { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; background: #eee; }
.pill.topic { margin: 0 4px 4px 0; }

/* 回填第 1/3/7 天数据的表单：5 个数一行 */
.stat-form { margin-top: 6px; align-items: flex-end; gap: 6px; }
.stat-form label { display: grid; gap: 2px; color: var(--muted); }
.stat-form input { width: 84px; height: 30px; }

/* 密码框旁边的「显示 / 隐藏」 */
.pw-box { display: flex; gap: 6px; align-items: center; }
.pw-box input { flex: 1; min-width: 0; }

/* 任务卡：分镜图和视频片段 */
.asset-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.asset-media { flex: none; width: 96px; }
.asset-media img { width: 96px; height: 170px; object-fit: cover; border-radius: 8px; background: #eee; cursor: zoom-in; display: block; }
.asset-media video { width: 96px; height: 170px; border-radius: 8px; background: #000; display: block; }
.asset-empty { width: 96px; height: 60px; border: 1px dashed var(--line-strong); border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

/* AI 找素材：候选卡片下面写 AI 的理由 */
.hunt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hunt-card { display: grid; gap: 6px; align-content: start; }
.job-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.job-tab { display: inline-flex; gap: 6px; align-items: baseline; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 6px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; width: auto; height: auto; }
.job-tab b { font-size: 17px; color: var(--text); }
.job-tab.on { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.hunt-acc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.hunt-acc-top { display: flex; gap: 8px; overflow-x: auto; padding-top: 2px; }
.hunt-acc-top > div { flex: none; width: 76px; cursor: pointer; }
.hunt-acc-top img { width: 76px; height: 102px; object-fit: cover; border-radius: 6px; background: #eee; display: block; }
.tbl tr.on td { background: var(--blue-soft); }

/* 角色库 */
.char-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gray-soft); }
.char-face.empty { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--faint); }
.char-face.sm { width: 40px; height: 40px; }
.char-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.char-slot { display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.char-img { aspect-ratio: 3 / 4; background: var(--gray-soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.char-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.char-img.tall img { object-fit: contain; }
.char-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; font-size: 13px; line-height: 1.3; }
.char-chip:hover { border-color: var(--line-strong); }
.char-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ref-thumb.sm { width: 30px; height: 30px; }
label.btn.disabled { opacity: .5; pointer-events: none; }
.ai-fill { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--gray-soft); }
/* 每日登记：粉丝数趋势 */
.trend svg { width: 100%; height: 90px; display: block; cursor: crosshair; }
.trend-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-axis { stroke: var(--line); stroke-width: 1; }
.trend-cross { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.trend-tip { color: var(--text); min-height: 18px; }
/* 这条任务的操作顺序、操作指南 */
.ai-trail { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.work-order { display: grid; gap: 6px; }
.wo-step { font-weight: 650; margin-top: 8px; }
.wo-tbl td { padding: 6px 10px; font-size: 13px; vertical-align: top; }
.guide-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; }

/* AI 员工 */
.ais { padding: 16px; margin-bottom: 14px; }
.ais-head { gap: 8px; }
.ais-name { font-size: 15px; }
.ais-alert { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ais-meta { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ais-acc { margin-left: 4px; }
.ais-none { margin-top: 12px; }
.ais-works { display: grid; gap: 10px; margin-top: 12px; }
.ais-work { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ais-stuck { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; overflow-wrap: anywhere; }
.ais-stuck .btn { flex: none; }
.ais-log { margin-top: 12px; }
.ais-log .tbl td { padding: 6px 8px; overflow-wrap: anywhere; }

/* AI 员工信息框 */
.ais-sec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ais-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.ais-accs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ais-accs .ais-acc { margin-left: 0; }
.ais-x { margin-left: 4px; color: var(--muted); font-size: 11px; }
.ais-assign { height: 28px; width: auto; max-width: 100%; font-size: 12px; }
.ais-hold { color: var(--amber); }
.ais-tabs { display: flex; gap: 14px; }
.ais-form { display: grid; gap: 8px; margin-top: 8px; }
.ais-form textarea { width: 100%; }
.ais-form select { height: 34px; max-width: 100%; }
.ais-job { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.jobs-ai { margin-top: 4px; white-space: normal; max-width: 240px; }
.jobs-ai-why { color: var(--red); margin-top: 2px; }
.stp-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stp-step { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stp-step i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gray-soft); font-style: normal; font-size: 12px; }
.stp-step.done { color: var(--green); }
.stp-step.done i { background: var(--green-soft); }
.stp-step.doing { color: var(--blue); font-weight: 600; }
.stp-step.doing i { background: var(--blue-soft); }
.stp-step.fail { color: var(--red); }
.stp-step.fail i { background: var(--red-soft); }
.stp-sug { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.stp-faces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stp-faces figure { margin: 0; text-align: center; }
.stp-faces img { display: block; width: 72px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--gray-soft); cursor: zoom-in; }

/* 要你处理（2026-11-06）：必须管理员动手的事集中在一处，红色；提醒、进行中小字放下面 */
.nav a.nav-needs { font-weight: 600; margin-bottom: 4px; }
.nav a.nav-needs.hot { background: rgba(220, 38, 38, .22); color: #fff; }
.nav a.nav-needs.hot .count, .nav a.nav-needs .count { background: var(--red); }
.todo-now { border-color: var(--red); }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.todo-row:hover { background: var(--red-soft); }
.todo-item { border-top: 1px solid var(--line); }
.todo-item .todo-row { border-top: 0; }
.todo-repair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 18px 10px 18px; }
.repair-card { padding: 14px 18px; border-top: 1px solid var(--line); }
.todo-who { font-weight: 600; white-space: nowrap; font-size: 13px; }
.todo-text { font-size: 13px; min-width: 0; }
.todo-quiet { background: transparent; box-shadow: none; }
.todo-mini { font-size: 13px; padding: 6px 0; border-top: 1px dashed var(--line); }
.todo-mini:first-of-type { margin-top: 8px; }
.todo-link { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: inherit; text-decoration: none; }
.todo-link.hot { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.work-needs { border: 2px solid var(--red); background: var(--red-soft); }
.work-needs-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(220, 38, 38, .2); font-size: 13px; }
.work-needs-row:first-of-type { border-top: 0; }
a.ais-stuck { color: var(--red); text-decoration: none; }

.pilot { margin-bottom: 14px; }
.pilot-log { display: grid; gap: 2px; max-height: 140px; overflow-y: auto; }
