/* 项目中枢副样式表：图表矩阵、人员负荷、客户档案、随手记、上传交互、策划方案舞台与移动端导航。
   颜色令牌统一引用 app.css 的冷瓷蓝灰与皇家蓝宝石体系，两份样式表均严控在 500 行以内。 */

/* ---------- 图表：阶段分布、等待方、未来四周交付 ---------- */
.panel.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.panel.picked .cols { margin-top: 12px; }
.pipe { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.pipe-cell { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px 9px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); text-align: center; position: relative; transition: border-color .12s, background .12s; }
.pipe-cell:hover { text-decoration: none; border-color: #93c5fd; background: var(--accent-soft); }
.pipe-cell.on { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.pipe-cell b { font-size: 24px; line-height: 1.15; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pipe-cell.empty b { color: var(--line-strong); }
.pipe-cell.done { background: var(--green-bg); border-color: #a7f3d0; }
.pipe-cell.done b { color: var(--green); }
.pipe-name { font-size: 12px; white-space: nowrap; font-weight: 500; }
.pipe-cell:not(:last-child)::after { content: "›"; position: absolute; right: -7px; top: 50%; transform: translateY(-60%); color: var(--line-strong); font-size: 15px; z-index: 1; pointer-events: none; }
.pipe-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: #e2e8f0; }
.pipe-bar i { display: block; height: 100%; }
.pipe-bar .red, .dot.red { background: var(--red); }
.pipe-bar .yellow, .dot.yellow { background: #f59e0b; }
.pipe-bar .ok, .dot.ok { background: #94a3b8; }
.pipe-bar .green, .dot.green, .pipe-bar .done, .dot.done { background: var(--green); }
.pipe-bar .gray, .dot.gray { background: #cbd5e1; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 5px 0 0; background: var(--line-strong); vertical-align: -1px; }
.legend .dot { margin-left: 12px; }
.legend .dot:first-child { margin-left: 0; }
.split { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 6px 0 10px; gap: 2px; }
.split .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px; min-width: 28px; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.split .seg:hover { text-decoration: none; filter: brightness(1.07); }
.seg-1 { background: var(--accent); }
.seg-2 { background: #0284c7; }
.seg-3 { background: #64748b; }
.split-legend { display: none; }
.dueweeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; margin: 6px 0 8px; }
.dueweek { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-2); padding: 6px 4px; border-radius: 8px; }
.dueweek:hover { text-decoration: none; background: var(--soft); }
.dueweek.on { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.dueweek-n { font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.dueweek-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; height: 96px; border-bottom: 1.5px solid var(--line-strong); }
.dueweek-bar > i { display: flex; align-items: flex-end; flex: none; width: 36px; background: var(--accent); border-radius: 5px 5px 0 0; min-height: 0; overflow: hidden; }
.dueweek-bar > i > .red { display: block; width: 100%; background: var(--red); }
.dueweek-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dueweek-day { font-size: 11px; }
.viewtabs { display: inline-flex; gap: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin: 2px 0 14px; }
.viewtabs a { font-size: 13px; padding: 4px 14px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.viewtabs a:hover { text-decoration: none; color: var(--ink); }
.viewtabs a.on { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.stageboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 12px; align-items: start; padding-bottom: 8px; }
.stageboard .col > h2 { margin-top: 8px; }
:target.panel, .panel:target { animation: flash 1.4s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px #93c5fd; } 100% { box-shadow: var(--shadow); } }
body.tv .charts, body.tv .viewtabs, body.tv .picked { display: none !important; }

/* ---------- 近两周排期条与人员工作负荷 ---------- */
table.strip { table-layout: fixed; min-width: 480px; }
table.strip thead th:first-child { width: 116px; }
table.strip th, table.strip td { text-align: center; padding: 5px 2px; border-bottom: 0; font-size: 12px; }
table.strip thead th { background: none; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
table.strip thead th.now { color: var(--accent); font-weight: 600; }
table.strip tbody th { text-align: left; background: none; font-size: 13px; color: var(--ink); white-space: normal; line-height: 1.3; padding-right: 8px; }
table.strip tbody th .small { display: block; font-size: 11.5px; }
table.strip td { font-weight: 600; font-size: 12.5px; border-radius: 6px; border: 2px solid var(--surface); }
table.strip td::before { content: ""; }
table.strip td.s-free, .dot.s-free { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
table.strip td.s-busy, .dot.s-busy { background: #dbeafe; color: var(--accent); }
table.strip td.s-full, .dot.s-full { background: var(--accent); color: #fff; }
table.strip td.s-away, .dot.s-away { background: var(--soft); color: var(--muted); font-weight: 400; }

.loads { display: grid; gap: 2px; margin: 6px 0 12px; }
.load-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; border-radius: 8px; }
.load-row:last-child { border-bottom: 0; }
.load-row:target { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); }
.load-name { display: flex; flex-direction: column; line-height: 1.35; }
.load-bar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 28px; }
.blk { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.blk:hover { text-decoration: none; filter: brightness(1.04); }
.blk i { font-style: normal; font-size: 10.5px; font-weight: 600; background: rgba(255, 255, 255, .24); color: #fff; padding: 0 5px; border-radius: 4px; line-height: 1.45; }
.blk.b-doing, .dot.b-doing { background: var(--accent); color: #fff; }
.blk.b-waiting, .dot.b-waiting { background: var(--accent-soft); border: 1px dashed #93c5fd; color: var(--accent); }
.blk.b-waiting i, .blk.b-others i { background: var(--accent); color: #fff; }
.blk.b-others, .dot.b-others { background: var(--soft); border-color: var(--line); color: var(--ink-2); }
.blk.hard { box-shadow: inset 0 -2.5px 0 #0f172a; }
.blk.soon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.blk-n { font-weight: 400; font-size: 12px; opacity: .94; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-facts { line-height: 1.65; }
.loadsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.ls { border-radius: var(--radius); padding: 12px 15px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); box-shadow: var(--shadow); }
.ls-h { font-size: 13px; color: var(--ink-2); }
.ls-h b { font-size: 24px; line-height: 1.1; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 3px; }
.ls-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ls-names a { font-size: 12.5px; padding: 2px 9px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.ls-names a:hover { text-decoration: none; border-color: #93c5fd; color: var(--accent); background: var(--accent-soft); }
.ls-tight { border-left-color: #f59e0b; }
.ls-open { border-left-color: var(--green); }

/* ---------- 客户档案、随手记、上传交互与工作台 ---------- */
.meter { display: inline-block; width: 44px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.meter i { display: block; height: 100%; background: var(--accent); }
ul.checklist { list-style: none; padding: 0; margin: 4px 0 8px; }
ul.checklist li { padding: 3px 0 3px 20px; position: relative; }
ul.checklist li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
ul.timeline li { padding-left: 14px; border-left: 2px solid var(--line); border-bottom: 0; margin-left: 4px; }
ul.timeline li:first-child { padding-top: 8px; }
#rules p { margin: 7px 0; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.rule { border-radius: 8px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: 13.5px; line-height: 1.6; text-wrap: pretty; }
.rule b { display: block; font-size: 12px; letter-spacing: .03em; margin-bottom: 3px; color: var(--ink-2); font-weight: 600; }
.rule.r-red { border-left-color: var(--red); }
.rule.r-red b { color: var(--red); }
.rule.r-yellow { border-left-color: #f59e0b; }
.rule.r-yellow b { color: var(--yellow); }
.rule.r-green { border-left-color: var(--green); }
.rule.r-green b { color: var(--green); }

.fab { display: block; flex: none; margin: 0 14px 14px; padding: 7px 12px; border-radius: 8px; background: rgba(59, 130, 246, .16); color: #f8fafc; border: 1px solid rgba(96, 165, 250, .28); font-weight: 500; font-size: 13px; text-align: center; transition: background .12s, border-color .12s; }
.fab:hover { text-decoration: none; background: var(--accent); border-color: var(--accent); color: #fff; }
.quick textarea { font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 6px 14px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 500; }
.pills input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.capture { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 6px; }
.cap { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 10px; background: var(--soft); border: 1px dashed var(--line-strong); font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: center; }
.cap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cap:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cap.has { border-style: solid; border-color: var(--green); background: var(--green-bg); color: var(--green); }
.cap input { position: absolute; width: 1px; height: 1px; opacity: 0; }
button.big { font-size: 15px; padding: 10px 28px; }

.drop { display: inline-flex; flex-direction: column; gap: 5px; min-width: 220px; max-width: 100%; padding: 9px 14px; border-radius: 8px; border: 1px dashed var(--line-strong); background: var(--soft); cursor: pointer; transition: border-color .12s, background .12s; vertical-align: middle; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-hint { font-size: 12.75px; color: var(--ink-2); }
.drop-hint::before { content: "⬆ "; color: var(--accent); font-weight: 600; }
.drop-list { display: flex; flex-wrap: wrap; gap: 6px; }
.drop-list:empty { display: none; }
.file-card { font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; color: var(--ink); }
.uploading { position: fixed; left: 0; right: 0; top: 0; z-index: 60; padding: 10px 20px; background: var(--navy-900); color: #fff; font-size: 13.5px; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .25); }
.uploading::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 30%; background: #60a5fa; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { left: -30%; } 100% { left: 100%; } }
body.tv .drop { display: none; }

.track { display: flex; gap: 3px; margin: 4px 0 12px; }
.trk { flex: 1; text-align: center; font-size: 12px; padding: 5px 4px; background: var(--soft); color: var(--muted); font-weight: 500; border-radius: 4px; }
.trk:first-child { border-radius: 6px 4px 4px 6px; }
.trk:last-child { border-radius: 4px 6px 6px 4px; }
.trk.done { background: var(--accent-soft); color: var(--accent); }
.trk.now { background: var(--accent); color: #fff; font-weight: 600; }
.panel.work > h3:first-child, .panel.kit > h3:first-child { border-bottom: 0; padding-bottom: 4px; }
.panel.work table td, .panel.work table th { padding: 7px 10px; }
.grid-half > *, .grid2 > *, .cols > * { min-width: 0; }
.dots { display: inline-flex; gap: 4px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.dots i.ask { background: #f59e0b; border-color: #f59e0b; }
.dots i.more { border-style: dashed; }
@media (min-width: 641px) { #subs th:last-child, #subs td:last-child { min-width: 170px; } }
#subs td details.act:not([open]) { display: inline-block; margin: 2px 10px 2px 0; }
.empty-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.empty-bar > .submit-fold { margin-top: 0; }
.empty-bar > .submit-fold[open] { flex: 1 1 100%; margin-top: 6px; }
.bcell { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcell-main { min-width: 0; }
.hero .sub a { white-space: nowrap; }
.formrow.grow input[type=text] { flex: 1 1 220px; min-width: 0; }
.formrow.grow input[name=what] { flex: 2 1 320px; }
.jump a.go { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
tr.dirty td { background: var(--yellow-bg) !important; }
.formhead { margin: 12px 0 0; font-size: 14.5px; }
#submit-form { scroll-margin-top: 64px; }
.scroll > details.act > table { margin-top: 8px; }
td.barcell { white-space: nowrap; }
td.barcell > a, td.barcell > span.muted { display: inline-block; min-width: 1.8em; }
.hbar { display: inline-block; width: 104px; max-width: 45%; height: 7px; border-radius: 4px; background: var(--soft); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.hbar i.yellow { background: #f59e0b; }
.hero-acts { margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-acts .btn { display: inline-flex; align-items: center; }
#lists { scroll-margin-top: 16px; }
.agenda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
button.linklike { background: none; border: 0; box-shadow: none; color: var(--muted); font-weight: 400; padding: 0 4px; min-height: 0; text-decoration: underline; font-size: 12.5px; }
button.linklike:hover { color: var(--ink); background: none; }

/* ---------- 策划方案工作台 ---------- */
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 10px; }
.plan-head h3 { margin: 0; padding: 0; border: 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-top: 10px; background: var(--surface); }
.plan.is-waiting { border-color: #93c5fd; box-shadow: 0 0 0 2px var(--accent-soft); }
.plan-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.plan-brief { margin: 4px 0 8px; }
.plan-brief > summary { cursor: pointer; color: var(--ink-2); list-style: none; }
.plan-brief > summary::-webkit-details-marker { display: none; }
.plan-brief > summary:hover { color: var(--accent); }
.plan-brief > .pre { margin-top: 6px; padding: 10px 12px; background: var(--soft); border-radius: 8px; max-height: 200px; overflow-y: auto; }
.plan-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 10px; }
.plan-track .pt { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: var(--soft); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.plan-track .pt i { font-style: normal; font-weight: 600; margin-right: 4px; opacity: .75; }
.plan-track .pt.done { background: var(--accent-soft); color: var(--accent); }
.plan-track .pt.now { background: var(--accent); color: #fff; font-weight: 600; }
.plan-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-radius: 8px; margin: 8px 0 10px; background: var(--soft); }
.plan-status.wait { background: var(--accent-soft); color: #1e3a8a; border: 1px solid var(--accent-line); }
.plan-status.run { background: var(--yellow-bg); color: var(--yellow); border: 1px solid #fde68a; }
.plan-status.fail { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }
.plan-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: plan-pulse 1.3s ease-in-out infinite; flex: none; }
@keyframes plan-pulse { 0%, 100% { opacity: .35; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.15); } }
.plan-ab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 12px; }
.plan-ab-card { border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.plan-ab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.plan-ab-body { max-height: 260px; overflow-y: auto; background: var(--surface); padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); }
.plan-ab-body.tall { max-height: 360px; }
.plan-sub { margin-top: 4px; }
.plan-sub > summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.plan-sub > .pre { margin-top: 6px; max-height: 180px; overflow-y: auto; padding: 8px 10px; background: var(--surface); border-radius: 6px; border: 1px solid var(--line); }
.plan-stage { margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--navy-900); }
.plan-stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 13px; background: var(--soft); border-bottom: 1px solid var(--line); }
.plan-stage-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-preview { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #fff; }
.plan-vis { padding: 6px 13px; background: var(--soft); margin: 0; border-top: 1px solid var(--line); }
.link-chip { border: 1px solid var(--line-strong); cursor: pointer; background: var(--surface); color: var(--accent); box-shadow: none; min-height: 0; padding: 2px 8px; font-weight: 500; }
.link-chip:hover { background: var(--accent-soft); border-color: #93c5fd; }
.plan-primary-act { margin: 10px 0; }
.plan-checks { display: grid; gap: 6px; margin: 8px 0 10px; }
.plan-check-item { padding: 8px 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.plan-form { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.plan-form textarea, #proposals textarea { width: 100%; }
.plan-tools { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.plan-tools > details.act { margin: 0; }
.plan-tools > details.act[open] { flex: 1 1 100%; margin-top: 6px; }
.plan-fold { border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; margin-top: 8px; background: var(--soft); }
.plan-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plan-fold > summary::-webkit-details-marker { display: none; }
.plan-fold-in { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.plan-create { margin-top: 8px; }
.plan-create > .plan-create-sum { cursor: pointer; font-weight: 500; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13px; }
.plan-create > .plan-create-sum::-webkit-details-marker { display: none; }
.plan-create > .plan-create-sum::before { content: "＋"; color: var(--accent); font-weight: 700; }
.plan-create[open] > .plan-create-sum::before { content: "－"; }
.plan-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.plan-tabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.plan-tabs > label { padding: 5px 14px; border-radius: 6px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.plan-tabs > input[type="radio"]:checked + label { background: var(--accent); color: #fff; border-color: transparent; font-weight: 600; }
.plan-tab-pane { display: none; flex: 1 1 100%; margin-top: 8px; }
.plan-tabs > input:nth-of-type(1):checked ~ .pane-new,
.plan-tabs > input:nth-of-type(2):checked ~ .pane-ext,
.plan-tabs > input:nth-of-type(3):checked ~ .pane-manual { display: block; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 3px 0 6px; font-variant-numeric: tabular-nums; }
.kb-sink-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0; }
.ext-bridge-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 7px; }
.ext-bridge-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pptx-route-box { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.pptx-route-box[hidden] { display: none; }
.side-sub { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.submit-fold { margin-top: 10px; }
.submit-fold > summary { list-style: none; display: inline-flex; align-items: center; }
.submit-fold > summary::-webkit-details-marker { display: none; }
.submit-fold[open] > summary { background: var(--soft); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.submit-fold-in { margin-top: 8px; padding: 13px 15px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.formrow .drop { padding: 7px 12px; min-width: 200px; }

/* ---------- 手机底部导航栏与统一响应式覆盖 ---------- */
.tabbar, .nav-close { display: none; }
@media (max-width: 1000px) {
  .agenda, .load-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipe-cell:not(:last-child)::after { display: none; }
  .scroll > table:not(.strip) { min-width: 620px; }
  .panel.work { overflow-x: auto; }
  .panel.work table { min-width: 440px; }
  .jump { position: static; background: transparent; border-bottom: 0; padding: 4px 0; }
  .jump a.print { display: none; }
  .side nav { display: none; }
  .side nav:target { display: grid; order: 10; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 6px 12px 14px; overflow: visible; width: 100%; }
  .side nav:target a { background: rgba(255, 255, 255, .06); padding: 10px 12px; white-space: normal; }
  .side nav:target a.on { background: rgba(59, 130, 246, .24); }
  .side nav:target .sep { display: block; grid-column: 1 / -1; padding: 10px 4px 2px; }
  .side nav:target .nav-close { display: block; grid-column: 1 / -1; text-align: center; background: none; color: #93c5fd; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; font-size: 11px; color: #94a3b8; border-radius: 8px; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: #fff; font-weight: 600; }
  .tabbar a.on svg { stroke: #60a5fa; }
  .tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .fab { margin: 6px 12px 6px 0; padding: 5px 10px; font-size: 12px; border-radius: 7px; white-space: nowrap; }
}
@media (max-width: 780px) { .plan-ab { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rules, .capture, .plan-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
  .split .seg-l { display: none; }
  .split .seg { padding: 0 4px; }
  .split-legend { display: block; margin-top: -4px; }
  .stats, .panel .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .tag { white-space: normal; max-width: 100%; }
  #subs .scroll > table, #rows.scroll > table, #rows table { min-width: 0; }
  #subs tbody, #rows table, #rows tbody, #rows tr, #rows td { display: block; }
  #rows tr:first-child { display: none; }
  #rows tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  #rows td { border: 0; padding: 3px 0; }
  #rows td:nth-child(n+2) { padding-left: 4.2em; position: relative; min-height: 1.8em; }
  #rows td:nth-child(n+2)::before { position: absolute; left: 0; top: 3px; color: var(--muted); font-size: 12px; }
  #rows td:nth-child(2)::before { content: "阶段"; }
  #rows td:nth-child(3)::before { content: "合同"; }
  #rows td:nth-child(4)::before { content: "发票"; }
  #rows td:nth-child(5)::before { content: "回款"; }
}
@media print { .viewtabs, .fab, .tabbar { display: none; } .pipe-cell, .dueweek { break-inside: avoid; } }
body.tv .tabbar { display: none; }

/* 大会排班 */
.conf-tabs { flex-wrap: wrap; }
.daypick { margin-bottom: 12px; align-items: center; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; align-items: end; }
.formgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.formgrid label.check, label.check { flex-direction: row; align-items: center; gap: 6px; }
.conf-table { width: 100%; border-collapse: collapse; }
.conf-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.conf-table tr:first-child td { border-top: 0; }
.conf-table td.t { white-space: nowrap; width: 110px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.conf-table tr.is-red td:first-child, .issue.is-red { border-left: 3px solid var(--red); }
.conf-table tr.is-yellow td:first-child, .issue.is-yellow, .output.is-yellow { border-left: 3px solid var(--yellow); }
.conf-table tr.is-new td:first-child { border-left: 3px solid var(--accent); }
.crewname { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 6px; background: var(--soft); font-size: 12.5px; }
.crewname small { margin-left: 3px; color: var(--muted); }
.crewname.empty { background: var(--red-bg); color: var(--red); }
.issue { padding: 8px 10px; margin: 6px 0; background: var(--surface); }
.issue.is-red { background: var(--red-bg); }
.issue.is-yellow { background: var(--yellow-bg); }
.output { padding: 10px 12px; margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; }
.expert-line { padding: 8px 0; border-top: 1px solid var(--line); }
.expert-line li.ours { font-weight: 500; }
.copybox, textarea.wide { width: 100%; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
button[disabled] { opacity: .45; cursor: not-allowed; }
@media print { .side, .hero .find, .conf-tabs, .daypick, form, .fab, .toasts { display: none !important; } .panel { break-inside: avoid; box-shadow: none; } }
