/* 拾光剧场 · 创作台 */
:root {
  --bg: #f4f5f8;
  --panel: #ffffff;
  --line: #e5e7ee;
  --text: #1c2230;
  --muted: #6b7280;
  --brand: #4b5cf0;
  --brand-dark: #3644c8;
  --brand-soft: #eef0ff;
  --gold: #b98b3c;
  --ok: #12855b;
  --warn: #b45309;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(28, 34, 48, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}

.hidden { display: none !important; }

code {
  background: #eef1f6;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #e8ebff 0%, #f7f8fb 55%, #f4f5f8 100%);
}

.login-card {
  width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px 22px;
  box-shadow: 0 18px 44px rgba(28, 34, 48, 0.1);
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #5b6cf6, #8a5cf6);
  box-shadow: 0 8px 18px rgba(91, 108, 246, 0.35);
  margin-bottom: 16px;
}

.login-card h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: 0.5px; }
.login-card .hint { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-card label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.login-card input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.login-card .btn { width: 100%; margin-top: 4px; }
.error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 10px 0 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: #f7f8fc; border-color: #d3d8e6; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
/* 列表里的「故事认领」小按钮 */
.btn.tiny {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  border-radius: 6px;
}
.btn.claim-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.btn.claim-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { background: #0f6f4b; }
.btn.danger { color: var(--danger); border-color: #f0cdc8; }
.btn.danger:hover { background: #fdf2f0; }
.btn.ghost { background: transparent; }
.link {
  border: none;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  padding: 0 0 0 6px;
}

/* ---------------- 布局 ---------------- */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 360px;
  flex: 0 0 360px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfbff, #ffffff);
}

.brand-mini { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: 0.5px; }
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #5b6cf6, #8a5cf6);
  box-shadow: 0 2px 6px rgba(91, 108, 246, 0.5);
}

.side-head .who {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.stat {
  background: #f7f8fc;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
}
.stat b { display: block; font-size: 18px; color: var(--brand-dark); }
.stat span { font-size: 11px; color: var(--muted); }

.filters {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  flex-wrap: wrap;
}
.chip {
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--muted);
  background: #f3f4f9;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.chip.on { background: var(--brand-soft); color: var(--brand-dark); border-color: #d6dbff; }

.toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  font-size: 14px;
}
.toolbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.tree { flex: 1; overflow-y: auto; padding: 8px 10px 24px; }

.user-block { margin-bottom: 10px; }
.user-name {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 6px 4px;
  display: flex;
  justify-content: space-between;
}

.project-item {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  margin-bottom: 4px;
}
.project-item:hover { background: #f5f6fc; }
.project-item.active { background: var(--brand-soft); border-color: #d6dbff; }
.project-item .row1 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 18px;
  font-size: 14px;
}
.project-item .title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 阶段徽标和「故事认领」同一行、同一水平线 */
.project-item .row1 .badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 18px;
}
.project-item .row2 {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 18px;
  line-height: 18px;
}
/* 下面一行里的「新」和右端的「故事认领」都按 18px 对齐 */
.project-item .row2 .badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 18px;
}
/* 故事认领贴着卡片右边，与上一行的阶段徽标同一条竖线 */
.project-item .row2 .claim-btn {
  flex: none;
  margin-left: auto;
}
/* 负责人名字太长时省略，别把按钮挤出卡片 */
.project-item .row2 .owner {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-line {
  height: 3px;
  margin-top: 6px;
  background: #eceef5;
  border-radius: 999px;
  overflow: hidden;
}
.progress-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5b6cf6, #8a5cf6);
  border-radius: 999px;
}

.owner { color: var(--brand-dark); }
.owner.none { color: #b0b6c3; }

.badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--muted);
  white-space: nowrap;
}
.badge.collecting { background: #f1f2f4; color: #6b7280; }
.badge.submitted { background: #fff3e0; color: var(--warn); }
.badge.need_info { background: #fdecea; color: var(--danger); }
.badge.supplement { background: #fff7e6; color: #b26a00; }
.badge.sorting { background: #eef0ff; color: var(--brand-dark); }
.badge.scripting { background: #e8f0ff; color: var(--brand-dark); }
.badge.reviewing { background: #e6f6ee; color: var(--ok); }
.badge.revising { background: #fff1e6; color: #b45309; }
.badge.confirmed { background: #e6f6ee; color: var(--ok); }
.badge.closed { background: #f1f2f4; color: #6b7280; }
.badge.broken { background: #fdecea; color: var(--danger); }
.badge.unread { background: #fdecea; color: var(--danger); }


/* ---------------- 右侧详情 ---------------- */
.detail {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 60px;
}

/* 没认领 / 别人认领：只能查看，除「认领」外的操作全部禁用 */
.lock-tip {
  border-left: 3px solid var(--warn);
  background: #fffdf7;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lock-tip__text { flex: 1; min-width: 220px; font-size: 13px; color: #8a5a00; }

/* 没认领 / 别人认领：只能查看。只禁用「操作」按钮，
   查看类的入口（版本切换、看照片/文档）仍然可以点 */
.detail.locked [data-act]:not(.claim-btn),
.detail.locked select,
.detail.locked input,
.detail.locked textarea {
  pointer-events: none;
  opacity: 0.45;
}
.detail.locked textarea,
.detail.locked input { background: #f6f7fa; }

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: #a7adba;
  font-size: 15px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.card h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 { font-size: 15px; margin: 0; }
.card h4 { font-size: 13px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card-head .inline { display: flex; align-items: center; gap: 8px; }
.card-head select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

.sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.head-card { border-top: 3px solid var(--brand); }
.head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.pill.none { background: #f3f4f9; color: #9aa1b0; }

.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: #3d4557;
}
.head-meta.sub { color: var(--muted); font-size: 12px; }
.note {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fffaf0;
  border: 1px solid #f3e3c3;
  border-radius: 8px;
  font-size: 13px;
  color: #8a6a25;
}

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 进度时间线 */
.timeline { display: flex; align-items: center; margin: 6px 0 12px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.step .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9aa1b0;
  background: #f1f2f7;
  border: 1px solid var(--line);
}
.step .label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.step.done .dot { background: var(--brand-soft); color: var(--brand-dark); border-color: #d6dbff; }
.step.on .dot {
  background: linear-gradient(135deg, #5b6cf6, #8a5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(91, 108, 246, 0.4);
}
.step.on .label { color: var(--brand-dark); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: #eceef5; margin: 0 4px 18px; }

.progress-bar {
  height: 6px;
  background: #eceef5;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5b6cf6, #8a5cf6);
  border-radius: 999px;
  transition: width 0.3s;
}

/* 对话 */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 4px; }

/* 用户 / 工作人员：左右分栏，一眼分清 */
.msg-row { display: flex; }
.msg-row-user { justify-content: flex-start; }
.msg-row-staff { justify-content: flex-end; }

.msg {
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
}
/* 用户：浅蓝气泡，靠左 */
.msg-user {
  background: #eef2ff;
  border-color: #d8e0fb;
  border-bottom-left-radius: 4px;
}
/* 工作人员：白底描边，靠右 */
.msg-staff {
  background: #ffffff;
  border-color: #dfe3ec;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(28, 34, 48, 0.05);
}

/* 系统消息：居中细条 */
.sys { display: flex; justify-content: center; }
.sys span {
  max-width: 80%;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f3f4f9;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.msg-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.msg-role { font-weight: 600; color: var(--text); }
.msg-kind {
  padding: 0 6px;
  border-radius: 999px;
  background: #eef1f6;
  font-size: 11px;
}
.msg-ver { color: var(--brand-dark); }
.msg-author { color: var(--ok); }
.msg-time { margin-left: auto; }
.msg-text { margin-top: 6px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.msg-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.att {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3d4557;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  text-decoration: none;
}
.att-img { flex-direction: column; padding: 4px; }
.att-img img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.att-audio { flex-direction: column; align-items: flex-start; }
.att-audio audio { height: 32px; }

.reply { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.reply textarea {
  flex: 1;
  min-height: 64px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  resize: vertical;
}
.reply textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* 素材 */
.editor {
  width: 100%;
  min-height: 320px;
  padding: 10px 12px;
  font-family: "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  resize: vertical;
}
.editor:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* 已交付的版本：编辑框整体置灰，明确「不能再改」 */
.editor:disabled,
.title-input:disabled {
  background: #f5f7fa;
  color: #8a94a6;
  cursor: not-allowed;
}

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs figure { margin: 0; width: 128px; }
.thumbs img {
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.thumbs figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.thumbs.storyboard figure { width: 168px; }
.thumbs.storyboard img { width: 168px; height: 120px; }
.thumbs .add-board {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 120px;
  border: 1px dashed #cfd5e3;
  border-radius: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef0f5;
  font-size: 13px;
}
.file-row .name { color: #3d4557; word-break: break-all; }
.file-row audio { height: 32px; }

.pre {
  overflow: auto;
  padding: 8px 10px;
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}


/* 剧本 */
.versions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.version-chip {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  color: #3d4557;
}
.version-chip:hover { border-color: #cfd5e3; }
.version-chip.active { background: var(--brand-soft); border-color: #d6dbff; color: var(--brand-dark); font-weight: 600; }
.version-chip.new { border-style: dashed; color: var(--brand); }
.version-chip .dot { color: var(--ok); }

.title-input {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
.title-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.publish-row { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.publish-row input {
  flex: 1;
  min-width: 220px;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
.publish-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ok-text { color: var(--ok); font-size: 13px; margin: 10px 0 0; }

/* 操作记录：一行一条，紧凑排布，行与行之间不留空白 */
.activity {
  display: block;
  margin: 0;
  padding: 0;
  max-height: 300px;
  max-width: 620px;
  overflow-y: auto;
}
.activity-row {
  display: block;
  margin: 0;
  padding: 4px 0;
  border-bottom: 1px solid #f1f2f6;
  line-height: 1.5;
  font-size: 12px;
  color: #3d4557;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: #fafbff; }
/* 时间 / 操作人 / 说明顺着排下来，不再分三列拉得很宽 */
.activity-row .time { color: var(--muted); margin-right: 8px; }
.activity-row .actor { color: var(--brand-dark); margin-right: 8px; }
.activity-row--empty { color: var(--muted); }

/* 版本记录 / 用户点评 / 成片视频 */
.version-list { margin: 4px 0 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.version-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px; font-size: 12px; color: #3d4557;
  border-bottom: 1px solid #f1f2f6; cursor: pointer;
}
.version-row:last-child { border-bottom: none; }
.version-row:hover { background: #f7f8fc; }
.version-row__name { font-weight: 600; }
.version-row__time { color: var(--muted); }
.version-row__state { color: var(--ok); }
.version-row__note { margin-left: auto; color: var(--muted); }

.notes { margin-bottom: 6px; }
.note-group { margin-bottom: 8px; }
.note-group__title { font-size: 12px; color: var(--brand-dark); margin-bottom: 4px; }
.note-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 4px 0; border-top: 1px dashed #eef0f4; font-size: 12px;
}
.note-row__text { flex: 1; min-width: 160px; color: #3d4557; }
.note-row__time { color: var(--muted); }
.note-row audio { height: 28px; }

.admin-video { width: 100%; max-width: 520px; border-radius: 10px; margin-top: 6px; background: #000; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(28, 34, 48, 0.92);
  color: #fff;
  font-size: 13px;
  z-index: 99;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.toast.error { background: rgba(192, 57, 43, 0.95); }


/* 待回复徽标（用户说了话，等工作人员回） */
.badge.reply { background: #fff1e6; color: #b45309; }

/* 用户已上传但还没发成消息的素材 */
.pending-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px dashed #f0cdc8;
  border-radius: 10px;
  background: #fdf8f7;
}
.pending-title {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 8px;
}
.pending-list { display: flex; flex-wrap: wrap; gap: 8px; }


/* 拖拽上传 Word 的虚线框 */
.drop-zone {
  margin-top: 8px;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: 9px;
  text-align: center;
  color: #8a94a6;
  font-size: 13px;
}
.drop-zone--on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* 录音转文字的结果 */
.transcript {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: #f8f6ef;
  border: 1px solid #e5dcc3;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 录音播放器和「转文字」按钮挨在一起，转写结果展开在下一行 */
.file-row__audio,
.att-audio__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.file-row__audio .transcript,
.att-audio__row .transcript { flex-basis: 100%; }

/* 修改意见：按「剧本 / 每张分镜」分组的块，文字和录音挨在一起 */
.note-groups { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.note-group {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.note-group__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}
.note-group__text {
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.note-group .att-audio__row { margin-top: 6px; }

/* 转写失败：红字提示 */
.transcript--error {
  background: #fdf2f0;
  border-color: #f0cdc8;
  color: #b3261e;
}
