/* 海天彩灯 · 生产平台界面（11-25 苹果风整体重做）
   规矩（照 Apple《人机界面指南》）：
   1. 浅灰底、白卡片，靠留白和分组分层级，不靠粗边框、色块。
   2. 品牌红只用在“现在该点的那个按钮”、当前步骤和选中；红色不再拿来当普通链接。
   3. 蓝色只表示“沟通”：聊天气泡、@人、平台通知。绿=通过，橙=待办，红=打回/失败。
   4. 图片一律放在深色画框里（灯是夜里的东西，深底才看得出亮）——这是全平台唯一“抢眼”的东西，其余都安静。
   5. 字号只有 12 / 13 / 14 / 16 / 20 / 28 六档；圆角只有 7 / 10 / 14 / 18 四档 + 胶囊；按钮高 28 / 32 / 40 三档。 */
:root {
  /* 底色和文字 */
  --bg: #F5F5F7;
  --side: #F0F0F3;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --sub: #6E6E73;
  --faint: #86868B;
  --ghost: #AEAEB2;
  --line: #E5E5EA;
  --line-strong: #D2D2D7;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --well: #1C1C1E;
  /* 品牌红：主按钮、当前步骤、选中 */
  --brand: #C8102E;
  --brand-ink: #A50D26;
  --tint: rgba(200, 16, 46, .08);
  --ring: rgba(200, 16, 46, .28);
  /* 状态色（文字用深一档，保证看得清） */
  --green: #1F7A35;
  --green-soft: #E4F4E8;
  --amber: #935200;
  --amber-soft: #FFF2DC;
  --red: #C8102E;
  --red-soft: #FCEBEE;
  --blue: #0071E3;
  --blue-ink: #0058B0;
  --blue-soft: #E8F2FD;
  --muted: var(--sub);
  /* 形状 */
  --r-sm: 7px;
  --r-md: 10px;
  --radius: 14px;
  --r-xl: 18px;
  --pill: 980px;
  --shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .05);
  --shadow-lift: 0 0 0 .5px rgba(0, 0, 0, .06), 0 10px 28px rgba(0, 0, 0, .09);
  --shadow-pop: 0 0 0 .5px rgba(0, 0, 0, .08), 0 12px 36px rgba(0, 0, 0, .16);
  --glass-dark: rgba(30, 30, 32, .86);
  /* 字 */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "华文中宋", "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  --num: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", -apple-system, var(--sans);
  --ease: cubic-bezier(.25, .1, .25, 1);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; scrollbar-width: thin; }
html { scrollbar-color: rgba(0, 0, 0, .22) transparent; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.012em; color: var(--ink); }
h1 { font-size: 28px; line-height: 1.25; }
h2 { font-size: 20px; line-height: 1.35; }
h3 { font-size: 16px; line-height: 1.4; }
p { margin: 0 0 .6em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
::selection { background: rgba(200, 16, 46, .16); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.code { font-family: var(--num); font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
details > summary { cursor: pointer; }
img { max-width: 100%; }

/* 灯（空状态、登录页的小插图） */
.l-body { fill: var(--lb, #E5E5EA); }
.l-cap { fill: #3A3A3C; }
.l-wire { fill: none; stroke: #3A3A3C; stroke-width: 1.2; }

/* ---------- 输入 ---------- */
input, select, textarea { font: inherit; font-size: 14px; color: inherit; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 7px 11px; width: 100%; min-height: 36px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input::placeholder, textarea::placeholder { color: var(--ghost); }
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus):not(:disabled) { border-color: #C2C2C8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--faint); }
input[type=checkbox], input[type=radio], input[type=range], input[type=color] { width: auto; min-height: 0; padding: 0; accent-color: var(--brand); box-shadow: none; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; cursor: pointer; vertical-align: -3px; }
input[type=file] { border-style: dashed; padding: 6px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M1.5 5L5 1.5 8.5 5M1.5 9L5 12.5 8.5 9' fill='none' stroke='%236E6E73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; }
textarea { resize: vertical; min-height: 64px; line-height: 1.6; }

/* ---------- 按钮（胶囊；主次靠样式分，不靠大小） ---------- */
.btn { font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; border: 0; background: var(--fill); color: var(--ink); border-radius: var(--pill);
  padding: 6px 15px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color .15s var(--ease), transform .08s var(--ease), opacity .15s; -webkit-user-select: none; user-select: none; }
.btn:hover { background: var(--fill-2); }
.btn:active:not(:disabled) { transform: scale(.97); }
a.btn { text-decoration: none; }
.btn.primary, .btn.make { background: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover, .btn.make:hover { background: var(--brand-ink); }
.btn.glow { background: var(--ink); color: #fff; }
.btn.glow:hover { background: #3A3A3C; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover { background: #F8DCE1; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.small { padding: 4px 12px; font-size: 12.5px; line-height: 20px; }
.btn.big { padding: 10px 24px; font-size: 15px; }
.link { background: none; border: 0; padding: 0; color: var(--brand-ink); text-decoration: none; cursor: pointer; font: inherit; justify-self: start; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link.small { font-size: 13px; }
.link[data-del], .link.quiet { color: var(--faint); font-weight: 400; }
.link[data-del]:hover { color: var(--red); text-decoration: none; }
.count { margin-left: auto; font: 600 11px/18px var(--num); background: var(--brand); color: #fff; border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center; }

/* ---------- 版式小工具 ---------- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.panel > h2 + *, .panel > .spread + * { margin-top: 12px; }
.panel > .spread h2 { margin: 0; }
.stack > * + * { margin-top: 16px; }
.notice { background: var(--amber-soft); color: #5C3800; padding: 10px 14px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.55; }
.notice a:not(.btn) { color: var(--brand-ink); font-weight: 500; }
.notice.bad { background: var(--red-soft); color: var(--brand-ink); }
.notice.good { background: var(--green-soft); color: var(--green); }
.notice.spread { align-items: center; }
.chip { display: inline-flex; align-items: center; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: var(--pill); background: var(--fill); color: var(--sub); white-space: nowrap; font-weight: 500; }
.chip.待审, .chip.待确认, .chip.草稿 { background: var(--amber-soft); color: var(--amber); }
.chip.已审, .chip.通过, .chip.同意, .chip.已定, .chip.完成 { background: var(--green-soft); color: var(--green); }
.chip.打回, .chip.有意见, .chip.失败 { background: var(--red-soft); color: var(--red); }
.empty { text-align: center; padding: 48px 20px; color: var(--sub); }
.empty svg { width: 30px; height: 40px; display: block; margin: 0 auto 12px; opacity: .45; }
/* 分段控件（macOS 那种：灰槽 + 白滑块） */
.seg, .tabs { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { font: inherit; font-size: 13px; border: 0; background: transparent; padding: 3px 12px; border-radius: 7px; cursor: pointer; color: var(--sub); line-height: 20px; transition: color .15s; }
.seg button:hover:not(.on) { color: var(--ink); }
.seg button.on, .tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.tabs { margin: 2px 0 20px; border-radius: 10px; }
.tabs a { padding: 5px 18px; border-radius: 8px; text-decoration: none; color: var(--sub); font-size: 14px; line-height: 22px; transition: color .15s; }
.tabs a:hover:not(.on) { color: var(--ink); }

/* ---------- 头像：苹果通讯录的灰色字母头像 ---------- */
.avatar { flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: linear-gradient(180deg, #A9AEBA, #878C97); letter-spacing: -.02em; }
.avatar.off { background: #E5E5EA; color: var(--ghost); }

/* ---------- 登录 ---------- */
.login { min-height: 100%; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.login-card { width: 360px; display: grid; gap: 14px; background: var(--card); padding: 40px 36px 28px; border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
.login-card h1 { text-align: center; font-size: 24px; margin-bottom: 10px; }
.login-logo { width: 68px; height: auto; justify-self: center; }
.login-lantern { display: none; }
.login-card label { display: grid; gap: 6px; font-size: 13px; color: var(--sub); }
.login-card input { min-height: 40px; }
.login-card .btn.primary { margin-top: 8px; padding: 10px; font-size: 15px; }
.login-card .link { justify-self: center; color: var(--sub); font-size: 13px; font-weight: 400; }
.form-error { min-height: 1.4em; margin: 0; color: var(--red); font-size: 13px; text-align: center; }

/* ---------- 框架：左边栏（macOS 侧边栏：半透明、选中是灰底、图标带品牌色） ---------- */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100%; }
.shell::before { content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: 224px; background: var(--side); border-right: 1px solid var(--line); }
.rail { position: sticky; top: 0; height: 100vh; z-index: 2; display: flex; flex-direction: column; padding: 22px 12px 14px; gap: 1px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; }
.brand img { width: 32px; height: auto; }
.brand small { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); margin-top: 2px; letter-spacing: 0; }
.rail a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--ink); line-height: 20px; transition: background-color .12s; }
.rail a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--sub); }
.rail a:hover { background: rgba(0, 0, 0, .045); }
.rail a.on { background: rgba(0, 0, 0, .075); font-weight: 600; }
.rail a.on svg { color: var(--brand); }
.rail-sep { height: 1px; background: var(--line); margin: 10px 10px; }
.rail-foot { margin-top: auto; padding: 14px 10px 4px; display: grid; gap: 4px; font-size: 13px; border-top: 1px solid var(--line); justify-items: start; }
.rail-foot .who { font-weight: 600; font-size: 14px; }
.rail-foot .ver { color: var(--faint); font-size: 12px; margin-bottom: 6px; }
.rail-foot .link { color: var(--sub); font-weight: 400; font-size: 13px; padding: 1px 0; }
.rail-foot .link:hover { color: var(--ink); text-decoration: none; }
.mode-badge { color: var(--amber); background: var(--amber-soft); border-radius: var(--pill); padding: 0 8px; justify-self: start; font-size: 11.5px; line-height: 20px; font-weight: 500; margin-bottom: 4px; }
.view { padding: 36px 48px 140px; width: 100%; max-width: 1400px; margin: 0 auto; }
.view:focus { outline: none; }
.view > h1:first-child { margin-bottom: 4px; }

/* ---------- 项目页：标题、六步、下一步 ---------- */
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.p-head .sub { color: var(--sub); margin-top: 4px; font-size: 14px; }
.p-head .row { align-items: center; gap: 8px; }
.cost { text-align: right; font-size: 12px; color: var(--sub); margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.cost b { display: block; font-family: var(--num); font-size: 20px; color: var(--ink); font-weight: 600; line-height: 1.2; }
.cost details summary { cursor: pointer; list-style: none; }
.cost details summary::-webkit-details-marker { display: none; }
.cost details[open] .cost-pop { display: grid; }
.cost-pop { display: none; position: absolute; right: 48px; z-index: 5; background: var(--card); box-shadow: var(--shadow-pop); border-radius: 12px; padding: 14px 16px; gap: 6px; min-width: 260px; text-align: left; color: var(--ink); font-size: 13px; }
.cost-pop div { display: flex; justify-content: space-between; gap: 18px; }
.route { display: grid; grid-template-columns: repeat(6, 1fr); margin: 24px 0 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 12px 14px; }
.step { display: grid; justify-items: center; align-content: start; gap: 6px; position: relative; text-decoration: none; color: var(--faint); font-size: 13px; text-align: center; line-height: 1.35; }
.step::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 1px; background: var(--line); }
.step:first-child::before { display: none; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--faint); font: 600 13px var(--num); position: relative; z-index: 1;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: transform .15s var(--ease); }
.step svg, .step .no { display: none; }
.step.done { color: var(--ink); }
.step.done .dot { background: var(--ink); color: #fff; box-shadow: none; font-size: 12px; }
.step.done::before, .step.now::before { background: var(--ink); }
.step.now { color: var(--brand-ink); font-weight: 600; }
.step.now .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--tint); }
.step.open { cursor: pointer; }
.step.open:hover .dot { transform: scale(1.08); }
.step.open:hover .lbl { color: var(--ink); }
.step.now.open:hover .lbl { color: var(--brand-ink); }
.step.view-on .dot { outline: 2px solid var(--ink); outline-offset: 3px; }
/* “可选”是步骤下面的一行小字（不是方案卡片 .opt） */
.step .opt { display: block; background: none; padding: 0; border-radius: 0; font-size: 11px; color: var(--ghost); font-weight: 400; margin-top: -4px; box-shadow: none; outline: 0; }
/* ---------- 今日 ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo a { text-decoration: none; }
.todo a:hover { color: var(--brand-ink); }
.proj-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.proj-row:last-child { border-bottom: 0; }
.proj-row:hover h3 { color: var(--brand-ink); }
.mini-route { display: flex; gap: 4px; align-items: center; }
.mini-route i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); display: inline-block; }
.mini-route i.done { background: var(--ink); }
.mini-route i.now { background: var(--brand); }

/* ---------- 灯组卡片（第 3 步） ---------- */
.part { margin-top: 32px; }
.part-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.part-head .link { margin-left: auto; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 18px; }
.site { background: var(--card); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; position: relative; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.site:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.site .pic { aspect-ratio: 3 / 2; background: var(--well); position: relative; display: block; overflow: hidden; }
.site .pic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site .pic .design { position: absolute; right: 8px; bottom: 8px; width: 34%; aspect-ratio: 3 / 2; background: #3A3A3C; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 7px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.site .pic .design img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site .meta { padding: 12px 14px 14px; display: grid; gap: 4px; align-content: start; }
.site .meta .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.site .meta .top b, .site .meta h3 { font-size: 14.5px; }
.site .meta .muted { font-size: 12.5px; line-height: 1.5; }
/* 勾选：照“照片”App 的圆圈 */
.site .pick-hit { position: absolute; top: 0; left: 0; width: 60px; height: 60px; z-index: 2; cursor: pointer; display: grid; place-items: center; touch-action: none; }
.site .pick { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; margin: 0; pointer-events: none; cursor: pointer;
  border: 1.5px solid #fff; background: rgba(0, 0, 0, .22); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: background-color .15s; }
.site .pick:checked { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.site.picked { box-shadow: 0 0 0 2.5px var(--brand), var(--shadow-lift); }
.site.more-toggle { border: 1.5px dashed var(--line-strong); background: transparent; box-shadow: none; display: grid; grid-template-rows: none; place-content: center; gap: 4px; min-height: 140px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: center; }
.site.more-toggle:hover { background: var(--card); border-color: var(--ghost); transform: none; box-shadow: none; }
.site.more-toggle .muted, .site.more-toggle small { font-size: 12.5px; font-weight: 400; }
.site[hidden] { display: none; }
/* 底下的批量操作条：深色玻璃 */
.batchbar { position: sticky; bottom: 16px; z-index: 6; margin-top: 24px; background: var(--glass-dark); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff; padding: 10px 12px 10px 20px; border-radius: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); font-size: 13.5px; }
.batchbar .btn { background: rgba(255, 255, 255, .14); color: #fff; }
.batchbar .btn:hover { background: rgba(255, 255, 255, .24); }
.batchbar .btn.glow, .batchbar .btn.primary, .batchbar .btn.make { background: var(--brand); color: #fff; }
.batchbar .btn.glow:hover, .batchbar .btn.primary:hover, .batchbar .btn.make:hover { background: #DC2341; }
.batchbar .btn:disabled, .batchbar .btn.make:disabled, .batchbar .btn.primary:disabled { opacity: 1; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .35); }
.batchbar .muted { color: rgba(255, 255, 255, .6); }

/* ---------- 诉求表、通用表格 ---------- */
.req, .tbl, .mtable { width: 100%; border-collapse: collapse; }
.req th, .tbl th, .mtable th { text-align: left; font-weight: 500; color: var(--sub); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.req td, .tbl td, .mtable td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.req tr:last-child td, .tbl tr:last-child td, .mtable tr:last-child td { border-bottom: 0; }
.req tbody tr:hover td, .tbl tbody tr:hover td { background: rgba(0, 0, 0, .015); }
.req td:first-child { width: 22%; font-weight: 500; }
.req td.src { width: 120px; }
.req td.ref { width: 180px; }
.req tr.need td:first-child::after { content: " 必填"; color: var(--brand); font-size: 11px; font-weight: 400; }
.req tr.ok td:first-child { color: var(--green); }
.tbl { margin: 8px 0; }
.tbl td { vertical-align: top; }

/* ---------- 灯组页 ---------- */
.lamp-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.card-form { display: grid; gap: 14px; }
.card-form label { display: grid; gap: 5px; font-size: 12px; color: var(--sub); font-weight: 500; }
.card-form label > :is(input, textarea, select) { font-size: 14px; color: var(--ink); font-weight: 400; }
.spec-row { display: grid; grid-template-columns: 64px 1fr; gap: 6px; align-items: start; }
.spec-row input { border-color: transparent; background: transparent; color: var(--sub); padding-left: 0; font-size: 14px; }
.spec-row input:focus { border-color: var(--line-strong); background: #fff; padding-left: 11px; }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.story { background: var(--card); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.story p { margin: 0; font-size: 14px; }
.shots { display: grid; gap: 20px; }
.shot { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.shot > .spread:first-child, .shot > .row:first-child { margin-bottom: 12px; }
.shot .frame { position: relative; background: var(--well); border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; }
.shot .frame img { display: block; width: 100%; height: auto; }
.shot .frame.drawing { cursor: crosshair; }
.shot .box, .site-frame .box { position: absolute; border: 2px dashed #FFD60A; background: rgba(255, 214, 10, .15); pointer-events: none; border-radius: 3px; }
.site-frame { position: relative; border-radius: var(--r-md); cursor: zoom-in; overflow: hidden; background: var(--well); }
.site-frame img { display: block; width: 100%; }
.site-frame.drawing { cursor: crosshair; }
.box.keep { border-color: #FF453A; background: rgba(255, 69, 58, .14); }
.box.keep span { position: absolute; left: 0; top: 0; transform: translateY(-100%); background: #FF453A; color: #fff; font-size: 11px; padding: 0 5px; white-space: nowrap; border-radius: 4px 4px 0 0; }
/* 版本条：v1 v2 … 像一排小标签 */
.versions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.versions button { font: 500 12px/22px var(--num); border: 0; background: var(--fill); color: var(--sub); border-radius: var(--r-sm); padding: 0 9px; cursor: pointer; transition: background-color .12s, color .12s; }
.versions button:hover { color: var(--ink); background: var(--fill-2); }
.versions button.on { background: var(--ink); color: #fff; }
.versions button.final { font-weight: 700; }
.versions .ver-older { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.versions button[hidden] { display: none; }
.ver-info { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--sub); font-size: 13px; }
.final-tag { color: var(--green); font-weight: 600; }
details.fold-list summary { cursor: pointer; }
.fold-list > div:last-child { display: grid; gap: 2px; margin-top: 4px; padding-left: 12px; }
.lamp-row { display: flex; gap: 8px; align-items: baseline; padding: 3px 6px; border-radius: var(--r-sm); font-size: 13.5px; }
.lamp-row[draggable="true"] { cursor: grab; }
.lamp-row[draggable="true"]:hover { background: var(--fill); }
.lamp-row .grip { color: var(--ghost); letter-spacing: -2px; font-size: 11px; }
.lamp-row .link, .lamp-row .muted { margin-left: auto; white-space: nowrap; }
.lamp-row a:not(.link) { text-decoration: none; }
.lamp-row a:not(.link):hover { text-decoration: underline; text-underline-offset: 3px; }
.opt-list.drop-on { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 12px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.checks li { padding: 3px 0 3px 18px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #34C759; }
.checks li.bad::before { background: #FF3B30; }
.fixbox { display: grid; gap: 8px; margin-top: 10px; }
details.brief summary { cursor: pointer; color: var(--sub); }
details.brief textarea { font-size: 13px; min-height: 90px; }

/* ---------- 审核 ---------- */
.rv { background: var(--card); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.rv-pair { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; margin: 14px 0; }
.rv-pair img { width: 100%; display: block; border-radius: var(--r-md); background: var(--well); }
.rv-card { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 14px; font-size: 14px; }
.rv-card dt { color: var(--sub); }
.rv-card dd { margin: 0; }

/* ---------- 线路图编辑器 ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.map-stage { position: relative; background: var(--well); border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: none; }
.map-stage img { display: block; width: 100%; height: auto; pointer-events: none; }
.map-stage svg.ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-stage.adding { cursor: crosshair; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pt { cursor: grab; }
.pt:active { cursor: grabbing; }
.pt circle.ring { fill: #fff; }
.pt text { font: 600 13px var(--num); fill: #fff; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.pt .lab { font: 500 12px var(--sans); fill: #fff; text-anchor: start; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 3px; }
.pt.sel circle.ring { fill: #FFD60A; }
.pt.pending circle.ring { fill: none; stroke: #FFD60A; stroke-width: 3; stroke-dasharray: 5 4; }
.pt-list { display: grid; gap: 1px; max-height: 420px; overflow: auto; margin: 8px -6px 0; }
.pt-list button { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 13px; border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; }
.pt-list button:hover, .pt-list button.on { background: var(--fill); }
.pt-list .n { font: 600 12px var(--num); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.present { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.present .map-stage { border-radius: 0; height: 100vh; display: grid; place-items: center; }
.present .map-stage img { max-height: 100vh; width: auto; max-width: 100%; }
.present aside { background: #1C1C1E; color: #F5F5F7; padding: 26px 22px; overflow: auto; display: grid; align-content: start; gap: 12px; }
.present aside h2 { color: #fff; }
.present .pcard { background: #2C2C2E; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.present .pcard.sel { outline: 2px solid #FFD60A; }
.present .seg { background: #3A3A3C; }
.present .seg button { color: #AEAEB2; }
.present .seg button.on { background: #636366; color: #fff; }
.present input { background: #3A3A3C; border-color: #48484A; color: #fff; }

/* ---------- 概念设计、方案PPT ---------- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.stat .v { font: 600 24px var(--num); }
.form-tree { display: grid; gap: 14px; }
.form-tree fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form-tree legend { font-size: 12px; color: var(--sub); font-weight: 600; padding: 0; margin-bottom: 6px; }
.form-tree .item { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; background: var(--fill); padding: 10px; border-radius: var(--r-md); }
.form-tree .item label, .form-tree > label { display: grid; gap: 3px; font-size: 12px; color: var(--sub); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.thumbs figure { margin: 0; background: var(--well); border-radius: var(--r-md); overflow: hidden; }
.thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; cursor: zoom-in; }
.thumbs figcaption { color: #D1D1D6; font-size: 12px; padding: 6px 10px; }
.confirm-row { display: grid; grid-template-columns: 180px auto 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm-row:last-child { border-bottom: 0; }

/* ---------- 浮层：任务、提示、对话框、看大图、PPT ---------- */
.jobs { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; width: 310px; z-index: 20; pointer-events: none; }
.jobs > * { pointer-events: auto; }
.job { background: var(--glass-dark); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #F5F5F7; border-radius: 14px; padding: 12px 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.job .bar { height: 4px; background: #48484A; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.job .bar i { display: block; height: 100%; background: var(--brand); transition: width .4s; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--glass-dark); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff; padding: 9px 20px; border-radius: var(--pill); z-index: 60; max-width: 70vw; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); animation: toast-in .25s var(--ease); }
.toast.bad { background: rgba(200, 16, 46, .94); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(560px, 92vw); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 28px 70px rgba(0, 0, 0, .28); color: var(--ink); }
.dialog[open] { animation: sheet-in .22s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog::backdrop { background: rgba(0, 0, 0, .28); backdrop-filter: blur(3px); }
.dialog form { padding: 26px 28px 22px; display: grid; gap: 14px; }
.dialog h2 { font-size: 19px; }
.dialog h2 + p, .dialog h2 + .muted { margin-top: -6px; }
.dialog label { display: grid; gap: 5px; font-size: 13px; color: var(--sub); }
.dialog form > .row:last-child { margin-top: 6px; gap: 8px; }
.dialog:has(.tbl) { width: min(900px, 94vw); }
dialog.wide { width: min(92vw, 1000px); max-width: none; }
dialog.wide .glb-box { width: 100%; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 55; cursor: zoom-out; animation: fade-in .2s; }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 4px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.tier { display: inline-flex; gap: 4px; align-items: center; margin-right: 14px; white-space: nowrap; }
.slides { position: fixed; inset: 0; background: #000; z-index: 45; overflow: auto; padding: 0 0 40px; }
.slides-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; background: rgba(28, 28, 30, .85);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: #F5F5F7; z-index: 1; }
.slides-bar .btn { background: rgba(255, 255, 255, .14); color: #fff; }
.slides-bar .btn:hover { background: rgba(255, 255, 255, .24); }
.slides-bar .btn.primary, .slides-bar .btn.make { background: var(--brand); }
.slides figure { margin: 24px auto 0; max-width: min(1280px, 94vw); }
.slides img { width: 100%; display: block; border-radius: 6px; }
.slides figcaption { color: #8E8E93; text-align: center; font-size: 12px; padding-top: 8px; }
.slides figcaption .link, .slides figcaption .btn { color: #D1D1D6; }
body.viewonly img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.log tr.bad td { background: rgba(200, 16, 46, .05); }
#logq label { display: flex; flex-direction: column; gap: 4px; }
.help { max-width: 760px; }
.help ol { padding-left: 20px; }
.help li { margin: 12px 0; line-height: 1.7; }

/* ---------- 语音输入（多行文字框右上角的话筒） ---------- */
.voicebox { position: relative; display: block; }
.voicebox textarea { padding-right: 44px; }
.voicebtn { position: absolute; right: 6px; top: 6px; border: 0; background: transparent; color: var(--faint); border-radius: var(--pill);
  height: 28px; min-width: 28px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font: 12px var(--num); transition: background-color .15s, color .15s; }
.voicebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.voicebtn:hover { background: var(--fill); color: var(--ink); }
.voicebox.recording .voicebtn { background: var(--brand); color: #fff; }
.voicebox.working .voicebtn { background: var(--amber-soft); color: var(--amber); }
.voicemodels { display: grid; gap: 8px; margin-top: 6px; }
.voicemodel { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; background: var(--fill); border-radius: var(--r-md); padding: 10px 12px; }
.voicemodel input { width: auto; }
.voicemodel p { grid-column: 2 / -1; margin: 0; font-size: 12px; color: var(--sub); }
.checkline { display: flex; gap: 8px; align-items: center; }
.checkline input { width: auto; }

/* ---------- 消息：左边对话列表、右边聊天（照“信息”App：自己的气泡是蓝色） ---------- */
.view.view-chat { padding: 0; max-width: none; height: 100vh; overflow: hidden; }
.chat { display: grid; grid-template-columns: 320px 1fr; height: 100%; background: var(--card); }
.chat .iconbtn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--sub); padding: 0; transition: background-color .12s; }
.chat .iconbtn:hover { background: var(--fill); color: var(--ink); }
.chat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-side { border-right: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr; min-height: 0; background: #FBFBFD; }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 14px 12px 20px; }
.chat-side-head h1 { font-size: 24px; }
.chat-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; background: var(--fill); border-radius: 9px; padding: 0 10px; color: var(--faint); }
.chat-search svg { width: 15px; height: 15px; flex: none; }
.chat-search input { border: 0; background: transparent; padding: 6px 0; min-height: 32px; box-shadow: none !important; }
.chat-threads { overflow-y: auto; padding: 0 8px 16px; }
.chat-thread { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 11px; text-decoration: none; color: var(--ink); }
.chat-thread:hover { background: rgba(0, 0, 0, .04); }
.chat-thread.on, .chat-thread.pinned.on { background: rgba(0, 0, 0, .075); }
.chat-thread .t-body { display: grid; gap: 1px; min-width: 0; }
.chat-thread .t-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chat-thread .t-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread .t-time { font-size: 12px; color: var(--faint); flex: none; font-family: var(--num); }
.chat-thread .t-prev { font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread.unread .t-prev { color: var(--ink); font-weight: 500; }
.chat-thread .t-badge { background: var(--blue); color: #fff; font: 600 11.5px/20px var(--num); min-width: 20px; height: 20px; border-radius: 10px; text-align: center; padding: 0 6px; }
.chat-thread .t-badge.muted { background: #C7C7CC; }
.chat-thread .t-mute svg { width: 15px; height: 15px; fill: none; stroke: var(--ghost); stroke-width: 1.8; }
.chat-thread.pinned { background: rgba(0, 0, 0, .022); }
.chat-sec { font-size: 12px; color: var(--faint); padding: 14px 12px 6px; font-weight: 500; }
.chat-main { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; min-width: 0; }
.chat-main:has(.chat-empty) { grid-template-rows: 1fr; }
.chat-main:has(#gc-notice:not([hidden])) { grid-template-rows: auto auto 1fr auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px); }
.chat-head b, .chat-head h2 { font-size: 16px; }
.chat-back { display: none !important; }
.chat-scroll { overflow-y: auto; padding: 18px 28px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--card); }
.chat-day { text-align: center; margin: 18px 0 8px; }
.chat-day span { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; }
.msg.first { margin-top: 12px; }
.msg.mine { justify-content: flex-end; }
.msg-gap { width: 32px; flex: none; }
.msg-col { display: flex; flex-direction: column; max-width: min(620px, 72%); }
.msg.mine .msg-col { align-items: flex-end; }
.msg-meta { font-size: 12px; color: var(--faint); margin: 0 6px 3px; }
.msg-meta b { color: var(--sub); font-weight: 500; }
.msg-bubble { background: #E9E9EB; color: var(--ink); padding: 8px 14px; border-radius: 19px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.msg.theirs.first .msg-bubble { border-top-left-radius: 6px; }
.msg.mine .msg-bubble { background: var(--blue); color: #fff; }
.msg.mine.first .msg-bubble { border-top-right-radius: 6px; }
.msg-proj { display: grid; gap: 1px; margin-top: 8px; padding: 9px 12px; border-radius: 12px; text-decoration: none; background: var(--card); color: var(--ink); white-space: normal; min-width: 200px; }
.msg-proj .small { color: var(--sub); }
.msg.mine .msg-proj { background: rgba(255, 255, 255, .18); color: #fff; }
.msg.mine .msg-proj .small { color: rgba(255, 255, 255, .82); }
.msg-proj:hover { filter: brightness(.97); }
.msg-read { font-size: 11px; color: var(--faint); margin: 3px 6px 0; }
/* 消息里附的具体东西：卡片 */
.ref-card { display: grid; gap: 6px; margin-top: 8px; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 8px; white-space: normal; min-width: 240px; max-width: 420px; text-align: left; }
.msg.mine .ref-card { box-shadow: none; }
.ref-card.off { padding: 10px 12px; }
.ref-main { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; text-decoration: none; color: inherit; border: 0; background: transparent; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.ref-main:hover b { text-decoration: underline; text-underline-offset: 3px; }
div.ref-main { grid-template-columns: 1fr; cursor: default; }
.ref-thumb { position: relative; width: 132px; flex: none; border-radius: 9px; overflow: hidden; background: var(--well); display: block; }
.ref-thumb img { width: 100%; display: block; }
.ref-box { position: absolute; border: 2px solid #FF3B30; border-radius: 3px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); pointer-events: none; }
.ref-box.big { border-width: 3px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); z-index: 2; }
.ref-text { display: grid; gap: 3px; min-width: 0; }
.ref-text b { font-size: 14px; line-height: 1.35; }
.ref-kind { font-size: 11px; color: var(--faint); }
.ref-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 7px; }
.ref-lamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; margin-top: 6px; }
.ref-lamps a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-size: 12px; }
.ref-lamps img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--well); }
.app-tag { font-size: 11px; color: var(--blue-ink); background: var(--blue-soft); border-radius: 5px; padding: 0 5px; font-weight: 500; }
.msg.msg-app .msg-bubble, .msg.mine.msg-app .msg-bubble { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px #D5E5F8; }
.sh-draw { position: relative; margin: 8px 0 4px; cursor: crosshair; touch-action: none; user-select: none; border-radius: var(--r-md); overflow: hidden; background: var(--well); }
.sh-draw img { width: 100%; display: block; pointer-events: none; }
.opt-site.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .opt-site.flash { animation: none; box-shadow: 0 0 0 3px var(--brand); } }
/* 群聊 */
.g-avatar { flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #8FB6EE, #5E8FD8); font-weight: 600; letter-spacing: -.02em; }
.g-tag { font-size: 11px; font-weight: 500; color: var(--blue-ink); background: var(--blue-soft); border-radius: 5px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.g-tag.off { color: var(--sub); background: var(--fill); }
.at-me { color: var(--brand); font-weight: 600; }
.gc-notice { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 22px; background: #FFF8E6; border-bottom: 1px solid #F2E4B5; font-size: 13px; cursor: pointer; }
.gc-notice b { color: var(--amber); }
.gc-notice-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-sys { text-align: center; margin: 10px 0; }
.msg-sys span { display: inline-block; font-size: 12px; color: var(--faint); max-width: 80%; }
.msg-quote { font-size: 12px; opacity: .8; border-left: 2px solid currentColor; padding: 1px 8px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.msg-notice .msg-bubble, .msg.mine.msg-notice .msg-bubble { background: #FFF8E6; color: var(--ink); box-shadow: 0 0 0 1px #F2E4B5; }
.msg-bubble b.at { color: var(--blue); font-weight: 600; }
.msg.mine .msg-bubble b.at { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.msg-acts { display: flex; gap: 10px; margin: 3px 6px 0; min-height: 18px; font-size: 12px; }
.msg-acts .link { color: var(--faint); font-weight: 400; }
.msg-acts .link:hover { color: var(--ink); text-decoration: none; }
.msg-acts [data-reply], .msg-acts [data-recall] { visibility: hidden; }
.msg:hover .msg-acts [data-reply], .msg:hover .msg-acts [data-recall] { visibility: visible; }
.msg-acts .gc-reads { color: var(--faint); text-decoration: none; }
.msg-acts .gc-reads:hover { color: var(--blue); }
.gc-at { position: absolute; left: 8px; bottom: calc(100% + 6px); background: var(--card); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 5px; min-width: 220px; display: grid; gap: 1px; z-index: 5; }
.gc-at button { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; text-align: left; }
.gc-at button.on, .gc-at button:hover { background: var(--blue); color: #fff; }
.gc-at button.on .muted, .gc-at button:hover .muted { color: rgba(255, 255, 255, .8); }
.reads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 14px; }
.reads-grid > div { display: grid; gap: 4px; align-content: start; }
.ng-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; max-height: 280px; overflow: auto; padding: 10px 12px; background: var(--fill); border-radius: var(--r-md); margin: 8px 0; }
.ng-person { display: flex !important; gap: 8px; align-items: center; font-size: 14px; color: var(--ink) !important; }
.ng-person input { width: auto; }
.gm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin: 8px 0 14px; }
.gm-list { display: grid; gap: 0; max-height: 360px; overflow: auto; }
.gm-row { display: flex; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.gm-row:last-child { border-bottom: 0; }
.gm-add summary { list-style: none; display: inline-block; margin-top: 10px; }
.gm-add summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) { .gm-grid, .reads-grid { grid-template-columns: 1fr; } }
.chat-hello { margin: auto; text-align: center; display: grid; justify-items: center; gap: 8px; }
.chat-loading { margin: auto; }
.chat-compose { padding: 10px 22px 14px; background: var(--card); }
.chat-box { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 4px 4px 4px 14px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.chat-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }
.chat-box textarea { border: 0; box-shadow: none !important; resize: none; padding: 7px 0; min-height: 36px; max-height: 180px; line-height: 1.5; background: transparent; }
.chat-box.voicebox textarea { padding-right: 0; }
.chat-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.chat-box .voicebtn { position: static; background: transparent; height: 32px; min-width: 32px; }
.chat-box .voicebtn:hover { background: var(--fill); }
.chat-box.recording .voicebtn { background: var(--brand); color: #fff; width: auto; padding: 0 10px; border-radius: var(--pill); }
.chat-send { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blue); color: #fff; cursor: pointer; transition: transform .08s, background-color .15s; }
.chat-send:active:not(:disabled) { transform: scale(.92); }
.chat-send svg { width: 17px; height: 17px; }
.chat-send:disabled { background: var(--fill); color: var(--ghost); cursor: default; }
.chat-hint { font-size: 11px; color: var(--ghost); margin: 6px 6px 0; }
.chat-attach { margin-bottom: 8px; }
.chat-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--fill); border-radius: var(--r-md); padding: 5px 6px 5px 10px; font-size: 13px; }
.chat-chip svg { width: 15px; height: 15px; }
.chat-chip button { border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--sub); width: 22px; height: 22px; border-radius: 50%; }
.chat-chip button:hover { background: var(--fill-2); }
.chat-menu-wrap { position: relative; }
.chat-menu { position: absolute; bottom: 44px; right: -40px; width: 300px; max-height: 320px; overflow-y: auto; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 5px; z-index: 10; }
.chat-menu button { display: grid; gap: 1px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; cursor: pointer; font: inherit; }
.chat-menu button:hover { background: var(--fill); }
.chat-empty { margin: auto; text-align: center; display: grid; justify-items: center; gap: 10px; max-width: 360px; color: var(--sub); }
.chat-empty svg { width: 56px; height: 56px; stroke-width: 1.2; color: #C7C7CC; }
.chat-empty h2 { color: var(--ink); }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; }
  .chat.has-conv .chat-side { display: none; }
  .chat:not(.has-conv) .chat-main { display: none; }
  .chat-back { display: inline-grid !important; }
  .msg-col { max-width: 84%; }
}
.pw-cell { display: inline-flex; align-items: center; gap: 8px; }
.pw-cell .pw-val { letter-spacing: .08em; color: var(--sub); }
.pw-cell .pw-val.shown { color: var(--ink); letter-spacing: .02em; user-select: all; }
.pw-cell.big .pw-val { font-size: 17px; }
.pw-note { white-space: nowrap; }

/* ---------- 第 4 步：要和甲方确认的细节 ---------- */
.detail-row { display: grid; grid-template-columns: 180px 1fr 300px; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.detail-row:first-of-type { margin-top: 12px; }
.detail-row.agreed { background: linear-gradient(90deg, rgba(52, 199, 89, .06), transparent 60%); }
.detail-text { white-space: pre-wrap; font-size: 14px; line-height: 1.65; max-height: 180px; overflow: auto; }
.detail-act { display: grid; gap: 8px; justify-items: start; }
.detail-act input { font-size: 13px; }
@media (max-width: 1100px) { .detail-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- 第 1 步 / 第 4 步：勾要确认的项 ---------- */
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pick-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: var(--pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; font-size: 13.5px; user-select: none; transition: background-color .12s, box-shadow .12s; }
.pick-chip:hover { background: var(--bg); }
.pick-chip input { width: auto; margin: 0; accent-color: var(--brand); }
.pick-chip.on { background: var(--tint); box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .35); color: var(--brand-ink); font-weight: 600; }
.add-row { display: flex; gap: 8px; margin-top: 12px; align-items: flex-start; }
.add-row .voicebox { flex: 1; }
.add-row textarea { min-height: 38px; resize: none; }
.cf-item { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 8px; }
.cf-item:first-of-type { margin-top: 12px; }
.cf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cf-item.agreed .cf-head b::after { content: "  ✓"; color: #34C759; }
.cf-text { font-size: 14px; line-height: 1.65; }
.cf-note { font-size: 13px; }
/* 灯组页：一句话改整张卡 */
.revise { display: flex; gap: 8px; align-items: flex-start; background: var(--fill); border-radius: 12px; padding: 8px; }
.revise .voicebox { flex: 1; }
.revise textarea { background: var(--card); min-height: 38px; resize: none; }

/* 其余折叠（出图要点、更多设置……）：同一种小箭头，不用浏览器自带的黑三角 */
details:not(.fold):not(.tm-new):not(.tk-row):not(.req-item):not(.gm-add):not(.asks) > summary { list-style: none; }
details:not(.fold):not(.tm-new):not(.tk-row):not(.req-item):not(.gm-add):not(.asks) > summary::-webkit-details-marker { display: none; }
details:not(.fold):not(.tm-new):not(.tk-row):not(.req-item):not(.gm-add):not(.asks) > summary::before { content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); margin: 0 10px 2px 1px; opacity: .55; vertical-align: middle; transition: transform .2s var(--ease); }
details[open]:not(.fold):not(.tm-new):not(.tk-row):not(.req-item):not(.gm-add):not(.asks) > summary::before { transform: rotate(45deg); margin-bottom: 4px; }
.cost details > summary::before { content: none !important; }
/* ---------- 折叠：诉求项、灯组卡、要确认哪些（左边一个会转的小箭头） ---------- */
details.fold > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint); transform: rotate(-45deg); transition: transform .2s var(--ease); margin: 0 3px 0 1px; }
details.fold[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.revise-panel { padding: 10px; }
.req-list { padding: 20px 24px 8px; }
.req-head { display: flex; align-items: center; gap: 12px; }
.req-count { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.req-count b { color: var(--ink); font-size: 17px; }
.req-bar { flex: 1; max-width: 220px; height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.req-bar i { display: block; height: 100%; background: #34C759; border-radius: 3px; transition: width .3s; }
.req-tip { margin: 6px 0 4px; }
.req-item { border-top: 1px solid var(--line); }
.req-item > summary { display: grid; grid-template-columns: 12em 1fr auto; gap: 18px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.req-item > summary::-webkit-details-marker { display: none; }
.req-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-item .req-val { color: var(--faint); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-item[open] .req-val { visibility: hidden; }
.req-item.ok .req-val { color: var(--ink); }
.req-ok { font: inherit; font-size: 13px; font-weight: 500; min-width: 5.5em; padding: 4px 14px; border-radius: var(--pill); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; text-align: center; transition: box-shadow .12s, color .12s; }
.req-ok:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.req-ok:disabled { color: var(--ghost); cursor: default; }
.req-ok.on { box-shadow: none; background: var(--green-soft); color: var(--green); font-weight: 600; cursor: default; }
.req-ok.on::before { content: "✓ "; }
.req-edit { display: grid; gap: 8px; padding: 0 0 16px; }
.req-ask { display: flex; gap: 8px; align-items: flex-start; }
.req-ask .voicebox { flex: 1; }
.req-ask textarea { min-height: 38px; resize: none; }
.req-ask .btn { height: 36px; min-width: 52px; }
.req-meta:has(> span:empty:only-child) { display: none; }
.req-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 1.4em; }
@media (max-width: 720px) { .req-item > summary { grid-template-columns: 1fr auto; } .req-item .req-val { display: none; } }

/* ---------- 第 6 步 三维建模 ---------- */
.model-lamp { margin-bottom: 14px; }
.model-lamp > summary { padding: 2px 0; }
.model-lamp > summary h3 { font-size: 15px; }
.model-body { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 14px; }
.model-design { width: 100%; border-radius: var(--r-md); background: var(--well); cursor: zoom-in; }
.mtable { margin-top: 14px; }
.mtable td { vertical-align: top; }
.mtable td:first-child { width: 28px; }
.mtable input[type=checkbox] { width: auto; }
.mv { margin: 0; display: grid; gap: 4px; }
.mv img { width: 110px; height: 110px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; }
.glb-box { width: min(78vw, 900px); height: 60vh; border-radius: 12px; overflow: hidden; background: #E9ECEF; margin: 10px 0; }
.viewer { position: relative; width: 100%; height: 100%; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-msg { position: absolute; inset: auto 0 12px 0; text-align: center; font-size: 13px; color: var(--sub); }
.viewer-msg .bar { display: block; width: 160px; height: 4px; margin: 6px auto 0; background: #D1D1D6; border-radius: 2px; overflow: hidden; }
.viewer-msg .bar i { display: block; height: 100%; background: var(--brand); }
@media (max-width: 1100px) { .model-body { grid-template-columns: 1fr; } }

/* ---------- 在图上画：涂要改的地方 / 画个样子 ---------- */
.shot .frame canvas.paint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shot .frame canvas.paint.mark { opacity: .42; }
.shot .frame.drawing { touch-action: none; }
.paintbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.paintbar .swatches { display: inline-flex; gap: 6px; }
.paintbar .swatches button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); cursor: pointer; padding: 0; }
.paintbar .swatches button.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- 第 2 步 点位方案：左边点位、右边几个方案 ---------- */
.opt-grid { display: grid; grid-template-columns: 272px 1fr; gap: 20px; }
.opt-left { display: grid; gap: 10px; align-content: start; }
.opt-photo-wrap { position: relative; }
.opt-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); background: var(--well); cursor: zoom-in; display: block; }
div.opt-photo { background: var(--fill); display: grid; place-items: center; cursor: default; }
.opt-photo-btn { position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .86) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.opt-photo-btn:hover { background: #fff !important; }
.opt-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.opt-title h3 { margin: 0 4px 0 0; font-size: 17px; }
.opt-gen { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }
.opt-gen .opt-idea { min-height: 36px; }
.opt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; align-content: start; }
.opt { background: var(--bg); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .035); transition: box-shadow .15s, background-color .15s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.opt h3, .opt b.opt-name { font-size: 15px; line-height: 1.4; }
.opt.chosen { box-shadow: inset 0 0 0 2px var(--brand); background: var(--card); }
.opt.picked { box-shadow: inset 0 0 0 2px var(--brand); background: var(--card); outline: 0; }
.opt.add { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); place-items: center; text-align: center; min-height: 0; padding: 14px; gap: 6px; }
.opt.add:hover { border-color: var(--ghost); background: var(--card); }
.opt-view { display: grid; gap: 6px; }
.opt-lamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.6; font-weight: 500; color: var(--ink); cursor: pointer; }
.opt-story { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; font-size: 12.5px; line-height: 1.6; color: var(--sub); }
.opt.open .opt-lamp, .opt.open .opt-story { -webkit-line-clamp: unset; display: block; }
.opt-act { margin-top: 6px; gap: 10px; align-items: center; }
.opt-form { gap: 8px; }
.opt.editing { grid-column: 1 / -1; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.opt-form .row:last-child { margin-top: 2px; }
.opt-form label { font-size: 13px; color: var(--sub); }
.opt-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--faint); font-size: 12.5px; }
.opt-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.opt-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--well); border-radius: var(--r-sm); cursor: zoom-in; margin: 6px 0 2px; }
.widen { display: grid; gap: 6px; background: var(--fill); border-radius: var(--r-md); padding: 8px; }
.widen-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.widen-row button { border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; background: var(--card); }
.widen-row button.on { border-color: var(--brand); }
.widen-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.widen-note { margin: 0; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; margin: 12px 0; }
.photo-pick button { border: 2px solid transparent; border-radius: var(--r-md); padding: 0; background: var(--fill); cursor: pointer; overflow: hidden; text-align: left; font: inherit; }
.photo-pick button.on { border-color: var(--brand); }
.photo-pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.photo-pick span { display: block; font-size: 12px; padding: 4px 8px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .opt-grid { grid-template-columns: 1fr; } }
.keep-site { margin: 12px 0; }
.keep-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 6px; font-weight: normal; }
.keep-row select { min-width: 220px; }

/* ---------- 成员与设置 ---------- */
.chip.assignee { background: var(--blue-soft); color: var(--blue-ink); }
.assignee-line { color: var(--blue-ink); }
.seg.aspect button { padding: 2px 9px; font-size: 12px; }
.team { margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 10px; }
.team h3 { margin: 22px 0 8px; font-size: 15px; }
.team-grid > * > h3:first-child { margin-top: 0; }
#team-panel { margin-top: 20px; }
.tm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tm-row .row { gap: 6px; flex-wrap: nowrap; }
.tm-new summary { list-style: none; display: inline-block; }
.tm-new summary::-webkit-details-marker { display: none; }
.tm-members { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-mem { display: inline-flex; gap: 6px; align-items: baseline; background: var(--fill); border-radius: var(--pill); padding: 3px 12px; font-size: 13px; }
label.check-line { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check-line input { width: auto; margin-top: 3px; flex: none; }
.tm-lamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; max-height: 260px; overflow: auto; padding: 10px; background: var(--fill); border-radius: var(--r-md); }
.tm-lamps > div { display: grid; gap: 2px; align-content: start; }
.tm-lamps label { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- 出图：慢速 / 快速 ---------- */
.modes { display: grid; gap: 8px; margin: 14px 0; }
.mode { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: box-shadow .12s, background-color .12s; }
.mode input { width: auto; margin: 0; accent-color: var(--brand); }
.mode span { color: var(--sub); font-size: 13.5px; }
.mode:has(input:checked) { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--brand); }
.mode.off { opacity: .5; cursor: default; }

/* ---------- 现场怎么摆（员工自己定，出夜景最优先） ---------- */
.place { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 14px; margin: 12px 0; display: grid; gap: 8px; }
.place textarea { min-height: 2.6em; }
.place-thumb { position: relative; width: 180px; cursor: zoom-in; overflow: hidden; border-radius: 7px; }
.place-thumb img { display: block; width: 100%; border-radius: 7px; }
.place-thumb i { position: absolute; border: 2px solid #FFD60A; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); border-radius: 2px; }
.boxpick { position: relative; display: block; width: fit-content; max-width: 100%; margin: 8px auto; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.boxpick img { display: block; max-width: 100%; max-height: 58vh; width: auto; height: auto; pointer-events: none; border-radius: 6px; }
.boxpick .box { position: absolute; border: 2px solid #FFD60A; background: rgba(255, 214, 10, .18); pointer-events: none; border-radius: 2px; }

/* ---------- 等待提示：海天彩灯标做的小灯笼，挂着晃、发光、冒火星；做完蹦一下 ---------- */
#waiter { display: flex; gap: 14px; align-items: flex-start; background: var(--glass-dark); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: #F5F5F7;
  border-radius: 18px; padding: 14px 16px 12px 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); cursor: pointer; position: relative; }
#waiter[hidden] { display: none; }
#waiter .w-lamp { position: relative; width: 54px; height: 58px; flex: none; margin-top: 6px; }
#waiter .w-lamp::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1.5px; height: 12px; background: #C9A96E; transform: translateX(-50%); }
#waiter .w-lamp img { position: relative; display: block; width: 54px; height: auto; transform-origin: 50% -12px;
  animation: ht-swing 1.9s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255, 90, 60, .7)); }
#waiter .w-glow { position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 60, .6), rgba(255, 60, 40, 0) 70%);
  animation: ht-glow 1.9s ease-in-out infinite; }
#waiter .w-spark { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #FFD36B; opacity: 0; animation: ht-spark 2.4s ease-out infinite; }
#waiter .w-spark:nth-of-type(2) { left: 14px; animation-delay: .2s; }
#waiter .w-spark:nth-of-type(3) { left: 30px; animation-delay: 1s; }
#waiter .w-spark:nth-of-type(4) { left: 42px; animation-delay: 1.7s; }
#waiter .w-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
#waiter .w-title { font-size: 14px; font-weight: 600; }
#waiter .w-quip { font-size: 12px; color: #FFCF9A; min-height: 1em; }
#waiter .w-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: #D1D1D6; }
#waiter .w-list li span { display: flex; gap: 8px; justify-content: space-between; }
#waiter .w-list em { font-style: normal; color: #8E8E93; white-space: nowrap; }
#waiter .w-list li.end em { color: #7EE08A; }
#waiter .w-list li.bad em { color: #FF8A80; }
#waiter .bar { display: block; height: 4px; background: #48484A; border-radius: 2px; margin-top: 4px; overflow: hidden; }
#waiter .bar b { display: block; height: 100%; background: linear-gradient(90deg, #E0352B, #FFB84D); transition: width .4s; }
#waiter.idle .w-lamp img { animation: ht-pop .7s cubic-bezier(.3, 1.6, .5, 1) 1; }
#waiter.idle .w-glow { animation: none; opacity: .8; }
#waiter.idle .w-spark { animation: none; }
#waiter.idle .w-quip { display: none; }
#waiter .w-stop { margin-left: 8px; font: inherit; font-size: 11px; color: #FF8A80; background: rgba(255, 138, 128, .15); border: 0; border-radius: var(--pill); padding: 1px 8px; cursor: pointer; }
#waiter .w-stop:hover { background: rgba(255, 138, 128, .3); }
#waiter.mini { padding: 10px; border-radius: 50%; width: 76px; height: 76px; justify-content: center; align-items: center; margin-left: auto; }
#waiter.mini .w-text { display: none; }
#waiter.mini .w-lamp { margin-top: 8px; width: 46px; height: 50px; }
#waiter.mini .w-lamp img { width: 46px; }
#waiter.mini[data-count]:not([data-count=""])::after { content: attr(data-count); position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px;
  border-radius: 10px; background: #E0352B; color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
@keyframes ht-swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes ht-glow { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes ht-spark { 0% { opacity: 0; transform: translateY(0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(.3); } }
@keyframes ht-pop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-10px) scale(1.15) rotate(-8deg); } 65% { transform: translateY(0) scale(.95) rotate(4deg); } 100% { transform: translateY(0) scale(1); } }
body.waiting #view { padding-bottom: 150px; }
.keyrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }

/* ---------- 灯组页排版：左边（灯组卡、照片）跟着滚动停在屏幕上；宽屏设计图和夜景并排 ---------- */
@media (min-width: 981px) {
  .lamp-grid > section.stack:first-child { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
    overscroll-behavior: contain; padding-right: 2px; }
}
@media (min-width: 1560px) {
  .lamp-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .lamp-grid .shots { grid-template-columns: 1fr 1fr; align-items: start; }
  .lamp-grid .shots > .panel { grid-column: 1 / -1; }
}
#card-fold > summary h2 { white-space: nowrap; margin: 0; }
#card-fold .revise { background: var(--fill); }
.photo-up { gap: 10px; }
.photo-up label.btn { cursor: pointer; }
.checks-ok { color: var(--green); margin: 8px 0 0; }
.checks-fold { margin-top: 8px; }
.checks-fold > summary { cursor: pointer; font-size: 14px; color: var(--red); }
.checks-fold > summary .muted { color: var(--sub); font-size: 12px; margin-left: 4px; }

/* 网页有新版本 */
#update-bar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; gap: 12px; align-items: center;
  background: var(--glass-dark); backdrop-filter: saturate(180%) blur(20px); color: #F5F5F7; border-radius: var(--pill); padding: 6px 6px 6px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#update-bar .small { color: #AEAEB2; }
#me-menu { position: fixed; top: 54px; right: 10px; z-index: 50; display: grid; gap: 10px; justify-items: start; min-width: 160px;
  background: var(--card); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-pop); font-size: 14px; }
.rail .count:empty { display: none; }

/* ---------- 甲方要求：概念设计时最显眼的提醒 ---------- */
.asks { background: var(--red-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; box-shadow: inset 3px 0 0 var(--brand); }
.asks h3 { margin: 0; font-size: 15px; color: var(--brand-ink); display: flex; gap: 8px; align-items: baseline; }
.asks h3 span { font-size: 12px; font-weight: 400; color: var(--brand); }
.asks ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.asks li, .asks li b { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.asks li small { display: block; color: var(--sub); font-size: 12px; margin-top: 1px; }
.asks-plan { font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .72); border-radius: 8px; padding: 8px 10px; }
.asks-plan .tag { display: inline-block; font-size: 12px; color: var(--sub); margin-right: 6px; }
.asks-note { margin-top: 4px; color: var(--amber); }
.asks.mini { margin-top: 0; padding: 8px 12px; gap: 4px; }
.asks.mini li b { font-size: 14px; }
details.asks.mini summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; color: var(--brand-ink); font-weight: 600; }
details.asks.mini summary::-webkit-details-marker { display: none; }
details.asks.mini summary > .small { color: var(--brand); font-weight: 400; }
details.asks.mini .asks-peek { color: var(--sub); flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-size: 13px; }
details.asks.mini[open] .asks-peek { display: none; }
details.asks.mini ul { font-size: 13px; line-height: 1.55; font-weight: 600; color: var(--ink); margin-top: 4px; }

/* ---------- 实际尺寸、成本、预算 ---------- */
.size-big { font-family: var(--num); font-size: 26px; font-weight: 600; letter-spacing: .01em; }
.size-big small { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 2px; }
.cost-fold > summary { cursor: pointer; font-size: 14px; }
.cost-fold .chip { margin-left: 6px; }
.stat.margin.bad b { color: var(--red); }
.stat.margin.ok b { color: var(--green); }
.stat.margin.room b { color: var(--amber); }
.advice { margin: 10px 0 0; padding-left: 18px; }

/* 撤下这一版：灰字，鼠标放上去才变红（不抢眼） */
.danger-text { color: var(--faint) !important; }
.danger-text:hover { color: var(--red) !important; }
.btn.danger-text:hover { background: var(--red-soft); }

/* ---------- PPT 配色挑选 ---------- */
.deck-style-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.deck-style-row select { width: auto; min-width: 200px; }
.sw { display: inline-flex; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.sw i { width: 16px; height: 22px; display: block; }

/* ---------- 只看的项目：按钮、输入框都点不了（服务器也拦）；看图、在线看 PPT、切换页签照常 ---------- */
.ro button:not([data-slides]):not([data-saveas]):not([data-openfile]):not(.view-ok), .ro input, .ro textarea, .ro select,
.ro [contenteditable="true"] { pointer-events: none; opacity: .45; }
.ro .batchbar, .ro .opt.add, .ro #go-next { display: none; }
.ro-bar { margin-bottom: 14px; align-items: center; }
.muted-chip { background: var(--fill); color: var(--sub); }
.edit-asks { margin-bottom: 16px; box-shadow: inset 0 0 0 1.5px #FF9F0A, var(--shadow); }
.ea-row { padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.ea-row:first-of-type { border-top: 0; }
.p-head .count { margin-left: 6px; background: #FF3B30; }

/* ---------- 项目日志：细表 ---------- */
.mini-log { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-log th { text-align: left; font-weight: 500; color: var(--sub); padding: 8px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.mini-log td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-log tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .018); }
.mini-log tr.bad td { color: var(--red); }
.mini-log td:first-child { white-space: nowrap; color: var(--sub); width: 150px; font-family: var(--num); font-variant-numeric: tabular-nums; }

/* ---------- 任务：一行一条 ---------- */
.tk-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 12px; }
.tk-filters select { width: auto; min-width: 120px; min-height: 30px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.tk-list { padding: 6px 12px; }
.tk-row { border-bottom: 1px solid var(--line); }
.tk-row:last-child { border-bottom: 0; }
.tk-row summary { list-style: none; display: grid; grid-template-columns: 10px 92px 72px minmax(120px, 1.2fr) minmax(80px, .8fr) 64px 44px minmax(0, 2fr) auto;
  gap: 10px; align-items: center; padding: 8px 6px; font-size: 13px; cursor: pointer; border-radius: 8px; }
.tk-row summary::-webkit-details-marker { display: none; }
.tk-row summary:hover { background: var(--fill); }
.tk-row summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-time, .tk-prog { color: var(--sub); font-variant-numeric: tabular-nums; font-family: var(--num); }
.tk-grp { color: var(--sub); }
.tk-label { font-weight: 600; }
.tk-last { color: var(--sub); }
.tk-act .btn.small { padding: 2px 10px; }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: #8E8E93; }
.tk-dot.进行中, .tk-dot.排队, .tk-dot.排队中 { background: #0A84FF; }
.tk-dot.完成 { background: #34C759; }
.tk-dot.失败 { background: #FF3B30; }
.tk-dot.部分失败, .tk-dot.已停止 { background: #FF9F0A; }
.tk-dot.已撤下 { background: #C7C7CC; }
.tk-more { padding: 4px 24px 12px; }
.tk-log { margin: 6px 0 0; padding-left: 18px; color: var(--sub); }

/* ---------- 设置页：顶上一排跳转（页太长） ---------- */
.toc { position: sticky; top: 0; z-index: 8; display: flex; gap: 4px; flex-wrap: wrap; margin: 14px -12px 6px; padding: 10px 12px;
  background: rgba(245, 245, 247, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.toc button { font: inherit; font-size: 13px; color: var(--sub); border: 0; background: transparent; cursor: pointer; padding: 3px 11px; border-radius: var(--pill); line-height: 20px; }
.toc button:hover { background: var(--fill); color: var(--ink); }
.toc button.on { background: var(--ink); color: #fff; }
.view section.panel { scroll-margin-top: 64px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) { .map-wrap { grid-template-columns: 1fr; } }
/* 平板、手机：左边菜单变成顶上一条——一行能横着滑；账号那几项收进“我”的小菜单 */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .shell::before { display: none; }
  .rail { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 0; padding: 6px 8px; overflow-x: auto;
    background: rgba(246, 246, 248, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail a { flex: none; white-space: nowrap; padding: 6px 9px; gap: 6px; }
  .brand { flex: none; white-space: nowrap; padding: 0 8px 0 4px; font-size: 15px; }
  .brand img { width: 26px; }
  .brand small, .rail-sep { display: none; }
  .rail-foot { flex: none; position: relative; margin: 0 0 0 auto; padding: 0 4px; gap: 0; white-space: nowrap; overflow: visible; border: 0; display: flex; }
  .rail-foot .who { cursor: pointer; padding: 5px 11px; border-radius: var(--pill); background: var(--fill); }
  .rail-foot .who::after { content: " ▾"; color: var(--sub); font-weight: 400; }
  .rail-foot > :not(.who) { display: none; }
  .view { padding: 20px 16px 120px; }
  h1 { font-size: 24px; }
  .today, .lamp-grid, .rv-pair { grid-template-columns: 1fr; }
  .route { grid-template-columns: repeat(6, minmax(70px, 1fr)); overflow-x: auto; }
  .present { grid-template-columns: 1fr; }
  .jobs { right: 10px; bottom: 10px; width: min(310px, calc(100vw - 20px)); }
  .cost { border-left: 0; padding-left: 0; margin-left: 4px; text-align: left; }
}
@media (max-width: 900px) {
  .tk-row summary { grid-template-columns: 10px 70px minmax(0, 1fr) 56px auto; }
  .tk-grp, .tk-proj, .tk-last, .tk-prog { display: none; }
}
@media (max-width: 900px) and (min-width: 641px) { .brand > div { display: none; } }
/* 手机：菜单只留图标和两个字的小标签，一屏放得下 */
@media (max-width: 640px) {
  .brand > div { display: none; }
  .rail a { flex-direction: column; gap: 2px; padding: 5px 8px; font-size: 11px; }
  .rail a svg { width: 20px; height: 20px; }
  .view { padding: 14px 10px 120px; }
  .route { grid-template-columns: repeat(6, minmax(56px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 甲方展示：平台的东西全藏起来，只留要给甲方看的（自成一套：暖黑底、宋体标题） ---------- */
body.show-mode { background: #0E0D0C; }
body.show-mode .rail, body.show-mode #jobs, body.show-mode #update-bar, body.show-mode #me-menu { display: none !important; }
body.show-mode .shell { display: block; }
body.show-mode .shell::before { display: none; }
body.show-mode #view { padding: 0; max-width: none; margin: 0; min-height: 100vh; background: #0E0D0C; }
.show { position: relative; height: 100vh; overflow: hidden; color: #EDE7DC; }
.show-bar { position: absolute; z-index: 3; inset: 0 0 auto 0; display: flex; align-items: center; gap: 18px; padding: 14px 24px;
  background: linear-gradient(rgba(14, 13, 12, .92), rgba(14, 13, 12, 0)); transition: opacity .4s; }
.show-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.show-title img { width: 34px; height: auto; }
.show-title b { display: block; font: 600 18px/1.2 "华文中宋", "STZhongsong", serif; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-title span { display: block; font-size: 12px; color: #B9B0A2; margin-top: 2px; }
.show-tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px; }
.show-tabs button { border: 0; background: transparent; color: #D8D2C8; padding: 6px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.show-tabs button.on { background: #EDE7DC; color: #1C1A17; }
.show-exit { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #B9B0A2; border-radius: 999px; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.show-exit:hover { color: #fff; border-color: #fff; }
.show-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.show-empty { margin: auto; text-align: center; color: #B9B0A2; line-height: 2; }
.sv { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 70px 46px; }
.sv-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: pointer; user-select: none; -webkit-user-drag: none; }
.sv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: #EDE7DC; font-size: 34px; cursor: pointer; transition: opacity .4s, background .2s; }
.sv-nav:hover { background: rgba(255, 255, 255, .16); }
.sv-prev { left: 12px; }
.sv-next { right: 12px; }
.sv-cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 15px "华文中宋", serif; color: #EDE7DC; text-shadow: 0 1px 6px #000; }
.sv-count { position: absolute; right: 24px; bottom: 16px; font-size: 12px; color: #8C8478; font-variant-numeric: tabular-nums; }
.sv-back { position: absolute; left: 24px; bottom: 14px; border: 0; background: rgba(255, 255, 255, .1); color: #EDE7DC; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.sv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 24px 14px; transition: opacity .4s; }
.sv-thumbs img { height: 54px; border-radius: 4px; opacity: .45; cursor: pointer; flex: none; }
.sv-thumbs img.on { opacity: 1; outline: 2px solid #D6A238; }
.show-grid { flex: 1; min-height: 0; overflow-y: auto; padding: 84px 40px 40px; display: grid; grid-auto-rows: max-content; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; align-content: start; }
.show-card { position: relative; display: block; height: auto; border: 0; padding: 0; background: #1C1A17; border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; color: inherit; line-height: 1.4; }
.show-card > img:first-child { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.show-card:hover > img:first-child { transform: scale(1.03); }
.show-card .inset { position: absolute; right: 10px; top: 10px; width: 30%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .7); }
.show-card span { display: block; padding: 12px 14px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-card b { font: 600 16px "华文中宋", serif; }
.show-card i { font-style: normal; color: #8C8478; font-size: 12px; margin-left: 10px; }
.show-idle .show-bar, .show-idle .sv-nav, .show-idle .sv-thumbs, .show-idle .sv-back { opacity: 0; }
.show-idle, .show-idle * { cursor: none !important; }
@media (max-width: 760px) {
  .show-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .show-tabs { order: 3; width: 100%; overflow-x: auto; }
  .sv { padding: 104px 8px 8px; }
  .sv-nav { display: none; }
  .show-grid { padding: 110px 12px 20px; grid-template-columns: 1fr; }
}

/* 整张卡片可点（今日“接着做”等）：鼠标放上去轻轻浮起 */
a.panel { color: inherit; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.panel:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }

/* 返回上一级：页面左上角一行小字（‹ 返回项目） */
.crumb { font-size: 13px; color: var(--faint); margin: 0 0 8px; }
.crumb a { color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.crumb a:first-child::before { content: "‹"; display: inline-block; margin-right: 5px; font-size: 17px; line-height: 0; vertical-align: -1px; font-weight: 400; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 标题行右边的筛选下拉：不拉满一行 */
.spread > select { width: auto; min-width: 150px; }
/* 今日“接着做”：卡片固定宽度一排排下来，只有一个项目时不拉满整行 */
.today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }

/* ---------- 主页（今日 + 项目）：项目一个一个小框，下面待办 ---------- */
.home-head { margin-bottom: 18px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pj-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease); min-height: 112px; }
.pj-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.pj-card:active { transform: scale(.985); }
.pj-name { font-size: 16px; font-weight: 600; line-height: 1.35; padding-right: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-stage { font-size: 13px; color: var(--brand-ink); font-weight: 500; display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pj-no { color: var(--faint); font-weight: 400; font-size: 12px; font-family: var(--num); }
.pj-card .mini-route i { flex: 1; width: auto; }
.pj-card .mini-route { margin-top: 4px; }
.pj-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: var(--pill); background: var(--fill); color: var(--sub); }
details.pj-more { margin-top: 18px; }
details.pj-more > summary { font-size: 14px; font-weight: 600; color: var(--sub); padding: 4px 0 10px; display: flex; align-items: baseline; gap: 10px; }
details.pj-more > summary .muted { font-weight: 400; }
.home-sec { font-size: 20px; margin: 32px 0 12px; }
.todo-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.todo-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; text-decoration: none; color: var(--ink); position: relative; font-size: 14px; }
.todo-row + .todo-row::before { content: ""; position: absolute; top: 0; left: 36px; right: 0; height: 1px; background: var(--line); }
a.todo-row:hover { background: rgba(0, 0, 0, .025); }
a.todo-row:active { background: rgba(0, 0, 0, .05); }
.todo-row.none { color: var(--faint); justify-content: center; }
.todo-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ghost); }
.todo-dot.red { background: #FF3B30; }
.todo-dot.blue { background: var(--blue); }
.todo-dot.green { background: #34C759; }
.todo-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-sub { flex: none; max-width: 40%; font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-go { flex: none; color: var(--ghost); font-size: 20px; line-height: 1; margin-left: 2px; }
.todo-row.job { flex-wrap: wrap; }
.todo-row.job .todo-text { white-space: normal; }

/* ---------- 推进：只在要进下一步时检查，缺什么弹出来 ---------- */
.step.can-next { cursor: pointer; }
.step.can-next .dot { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.step.can-next:hover .dot, .step.can-next:focus-visible .dot { background: var(--tint); transform: scale(1.08); }
.step.can-next .lbl { color: var(--sub); }
.adv-list { display: grid; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.adv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.adv-row + .adv-row { border-top: 1px solid var(--line); }
.adv-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.adv-text b { font-weight: 600; font-size: 14px; }

/* ---------- 长说明：收成一行，前面一个 i，点一下展开 ---------- */
p.hint { position: relative; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; padding-left: 21px; cursor: pointer; }
p.hint::before { content: "i"; position: absolute; left: 0; top: calc(.8em - 7px); width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px currentColor;
  font: italic 600 9.5px/14px Georgia, "Times New Roman", serif; text-align: center; opacity: .75; }
p.hint:hover { color: var(--ink); }
p.hint.open { display: block; -webkit-line-clamp: unset; }
.empty p.hint, .center p.hint { padding-left: 0; }

/* ---------- 手机（11-25）：底部标签栏，像真的 App；输入框 16px 不放大；顶上工具按钮一行横滑 ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  input, select, textarea { font-size: 16px; }
  .shell { display: block; }
  .rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 40; flex-direction: row; justify-content: space-around; align-items: stretch;
    gap: 0; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); overflow: visible; border-bottom: 0; border-top: 1px solid rgba(0, 0, 0, .08);
    background: rgba(249, 249, 251, .9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
  .brand, .rail-sep, #nav-people, #nav-settings, .rail a[data-nav="help"] { display: none !important; }
  .rail a { position: relative; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 0; font-size: 10.5px; line-height: 13px; font-weight: 500;
    border-radius: 10px; background: none !important; color: var(--faint); }
  .rail a svg { width: 25px; height: 25px; stroke-width: 1.6; color: inherit; }
  .rail a.on { color: var(--brand); font-weight: 600; }
  .rail a.on svg { color: var(--brand); }
  .rail .count { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; font-size: 10.5px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; }
  .rail-foot { flex: 1 1 0; margin: 0; padding: 0; display: flex; justify-content: center; }
  .rail-foot .who { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px 0; background: none; border-radius: 10px;
    font-size: 10.5px; line-height: 13px; font-weight: 500; color: var(--faint); max-width: 72px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .rail-foot .who::before { content: ""; width: 25px; height: 25px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M4.5 20c.8-3.6 3.9-6 7.5-6s6.7 2.4 7.5 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M4.5 20c.8-3.6 3.9-6 7.5-6s6.7 2.4 7.5 6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .rail-foot .who::after { content: none; }
  .view { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  body.waiting #view { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  h1 { font-size: 26px; }
  #me-menu { top: auto; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); min-width: 0; padding: 6px; gap: 0; border-radius: 16px; font-size: 16px; }
  #me-menu > * { padding: 11px 14px; width: 100%; text-align: left; border-radius: 10px; }
  #me-menu > span { padding: 8px 14px 4px; }
  #me-menu .mm-nav, #me-menu .link { color: var(--ink); text-decoration: none; font-weight: 400; font-size: 16px; }
  #me-menu .mm-nav:active, #me-menu .link:active { background: var(--fill); }
  #me-menu [data-m="logout"] { color: var(--red); }
  .jobs { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .batchbar { bottom: calc(68px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 14px; border-radius: 14px; font-size: 13px; gap: 6px; }
  .batchbar > span:first-child { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .batchbar:not(:has(> .btn:not(.small):not(:disabled))) > .btn:not(.small), .batchbar > span[style*="flex:1"] { display: none; }
  /* 项目页标题：工具按钮一行横着滑，花费跟在后面 */
  .p-head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
  .p-head > div:first-child { min-width: 0; }
  .p-head > .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .p-head > .row::-webkit-scrollbar { display: none; }
  .p-head > .row > * { flex: none; }
  .cost { display: flex; align-items: center; margin-left: 2px; padding: 0 4px; border: 0; }
  .cost details summary { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
  .cost b { display: inline; font-size: 15px; }
  .cost-pop { right: 12px; left: 12px; }
  .route { padding: 14px 4px 12px; margin: 16px 0 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .step { font-size: 11.5px; gap: 5px; }
  .step .dot { width: 26px; height: 26px; font-size: 12px; }
  .step::before { top: 12px; left: calc(-50% + 16px); right: calc(50% + 16px); }
  .tabs { display: flex; width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 6px 2px; font-size: 14px; }
  .panel, .rv, .shot { padding: 16px; border-radius: 14px; }
  .notice.spread { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pj-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pj-card { padding: 14px; min-height: 104px; }
  .pj-name { font-size: 15px; }
  .todo-sub { display: none; }
  .home-sec { margin-top: 26px; }
  .dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 40px); }
  .dialog form { padding: 20px 18px 16px; }
  .sites { grid-template-columns: 1fr; gap: 14px; }
  .today, .today-grid { grid-template-columns: 1fr; }
  .opt-list { grid-template-columns: 1fr; }
  /* 宽表格（账号、日志、预算）：表格自己横着滑，页面不被撑宽 */
  .req, .tbl, .mini-log, .mtable { display: block; overflow-x: auto; max-width: 100%; }
  .req th, .tbl th, .mini-log th { white-space: nowrap; }
  /* 聊天：进到对话里就把底部标签栏收起来（像“信息”App） */
  .view.view-chat { height: calc(100dvh - 58px - env(safe-area-inset-bottom)); padding: 0; }
  body:has(.chat.has-conv) .rail { display: none; }
  body:has(.chat.has-conv) .view.view-chat { height: 100dvh; }
  .chat-compose { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .chat-hint { display: none; }
  .chat-scroll { padding: 12px 12px 8px; }
}
@media (max-width: 380px) {
  .pj-grid { grid-template-columns: 1fr; }
}
/* 长网址、长路径：在框里断行，不把页面撑宽 */
.notice .code, .notice a, p .code { overflow-wrap: anywhere; }
.spread > p.hint { flex: 1 1 0; min-width: 0; }
@media (max-width: 640px) {
  .part-head { flex-wrap: wrap; gap: 4px 10px; }
  .part-head > .muted { order: 3; flex-basis: 100%; font-size: 13px; }
  .part-head .link { white-space: nowrap; }
  /* 灯组页标题下的按钮：一行横着滑 */
  .lamp-head { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
  .lamp-head > .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .lamp-head > .row::-webkit-scrollbar { display: none; }
  .lamp-head > .row > * { flex: none; }
}

/* ---------- 第 1 步上传队列：一个文件一行（名字 · 进度条 · 百分比 · 取消） ---------- */
.upq { text-align: left; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 6px 14px 8px; margin: -4px 0 18px; }
.upq-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 4px; font-size: 14px; }
.upq-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 92px 60px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.upq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.upq-name small { display: block; margin-top: 1px; color: var(--faint); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.shrink-opt { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; cursor: pointer; }
.shrink-opt input { margin: 0; }
.upq-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.upq-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--blue); transition: width .25s var(--ease); }
.upq-tip { color: var(--sub); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upq-act { text-align: right; }
.upq-row.s-已传 .upq-bar i, .upq-row.s-不用 .upq-bar i { background: #34C759; }
.upq-row.s-已传 .upq-tip { color: var(--green); }
.upq-row.s-等待 .upq-tip { color: var(--faint); }
.upq-row.s-失败 .upq-tip, .upq-row.s-太大 .upq-tip { color: var(--red); }
.upq-row.s-失败 .upq-bar i, .upq-row.s-太大 .upq-bar i { background: #FF3B30; width: 100% !important; opacity: .35; }
.upq-row.s-已取消, .upq-row.s-不用 { opacity: .5; }
.iconx { border: 0; background: transparent; color: var(--faint); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; }
.iconx:hover { background: var(--fill); color: var(--ink); }
@media (max-width: 640px) {
  .upq { padding: 4px 12px 6px; }
  .upq-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name act" "bar tip"; gap: 6px 10px; }
  .upq-name { grid-area: name; }
  .upq-bar { grid-area: bar; }
  .upq-tip { grid-area: tip; text-align: right; min-width: 56px; }
  .upq-act { grid-area: act; }
}
.mat-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
.upq-head { gap: 12px; }
.upq-head .muted { text-align: right; }
@media (max-width: 640px) {
  /* 甲方资料一行：名字占满一行，状态和按钮换到下面，不再一个字一个字地折 */
  .mat-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; }
  .mat-row > .row { grid-column: 2 / -1; }
  .mat-row > .chip { justify-self: end; }
}

/* ---------- 平台断开 / 马上更新：顶上一条，不挡操作 ---------- */
#offline-bar, #soon-bar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
  background: var(--glass-dark); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: #F5F5F7;
  border-radius: var(--pill); padding: 8px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: toast-in .25s var(--ease); }
#offline-bar .small, #soon-bar .small { color: #AEAEB2; }
#soon-bar { background: rgba(147, 82, 0, .92); }
#soon-bar .small { color: #FFE2B8; }
#offline-bar .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  #offline-bar, #soon-bar { flex-wrap: wrap; justify-content: center; text-align: center; border-radius: 16px; padding: 8px 14px; gap: 2px 8px; }
  #offline-bar .small, #soon-bar .small { flex-basis: 100%; font-size: 12px; }
}
