/* 益丰排班提交与审批 · 页面样式（叠加在 roster.css 之上） */
.rs { --hard: #ff453a; --soft: #ff9f0a; --ok: #1a7f37; }

/* 职责分工 */
.ap-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 48px; }
.ap-role { text-align: left; background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s; }
.ap-role:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); }
.ap-role b { font-size: 15px; }
.ap-role p { font-size: 13px; line-height: 1.45; color: var(--ink); }
.ap-role span { font-size: 11.5px; color: var(--ink-2); }
.ap-role.ai { background: linear-gradient(135deg, #ecfdf5, #eaf3ff); }
.ap-role.ai b { color: var(--yf); }

/* 外壳与页签 */
.ap { position: relative; margin-top: 24px; }
.ap-tabs { padding: 14px 20px 0; }
.ap-tabs .seg { margin: 0; background: var(--bg-light); }
.ap-tabs .seg button { position: relative; }
.ap-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--hard); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.ap-dot[hidden] { display: none; }
.ap-pane { padding: 16px 20px 20px; }
.ap-pane[hidden] { display: none; }
.ap-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ap-ctl .mode button { font-size: 13px; padding: 7px 14px; }
.ap-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ap-presets span { font-size: 12px; color: var(--ink-2); margin-right: 2px; }
.ap-presets button { font-size: 12.5px; padding: 5px 11px; border-radius: 980px; background: var(--bg-light); color: var(--ink); transition: background .2s, color .2s; }
.ap-presets button:hover { background: #e8e8ed; }
.ap-presets button.on { background: var(--ink); color: #fff; }

.ap-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 14px; }
.ap-side { background: var(--bg-light); border-radius: 16px; padding: 14px; align-self: start; display: grid; gap: 8px; }
.ap-side .pan-k { margin-top: 4px; }

/* 月历 */
.ap-cal-wrap { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.ap-cal { display: grid; grid-template-columns: 74px repeat(30, minmax(19px, 1fr)) 40px; gap: 2px; min-width: 760px; }
.cal-h { text-align: center; font-size: 10px; color: var(--ink-2); line-height: 1.2; padding: 2px 0 4px; border-radius: 4px; }
.cal-h b { display: block; font-size: 11px; color: var(--ink); font-weight: 600; }
.cal-h.we span { color: #c1271c; }
.cal-h.key { background: #fff1e0; box-shadow: inset 0 -2px 0 var(--soft); }
.cal-h.lock { opacity: .45; }
.cal-n { font-size: 12px; display: grid; align-content: center; line-height: 1.15; padding-right: 4px; min-height: 26px;; position: sticky; left: 0; z-index: 2; background: #fff; }
.cal-n b { font-weight: 600; }
.cal-n span { font-size: 10px; color: var(--ink-2); white-space: nowrap; }
.cal-n.bad b { color: var(--hard); }
.cal-t { font-size: 11px; display: grid; place-items: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-t.low { color: var(--hard); font-weight: 700; }
.cal-h.cal-t { display: block; }
.cal-c { position: relative; height: 26px; border-radius: 5px; font-size: 11px; font-weight: 600; display: grid; place-items: center; cursor: pointer; transition: transform .15s, box-shadow .2s, background .3s; }
.cal-c:hover { transform: scale(1.12); z-index: 1; }
.cal-c.lock { cursor: not-allowed; filter: grayscale(.6); opacity: .55; }
.cal-c.lock:hover { transform: none; }
.c-E { background: #dbeafe; color: #1d4ed8; }
.c-M { background: #e0e7ff; color: #4338ca; }
.c-L { background: #1e3a8a; color: #fff; }
.c-P, .c-N { background: #ccf2e6; color: #047857; }
.c-R { background: #f5f5f7; color: #aeaeb2; font-weight: 400; }
.c-A { background: #fde7f3; color: #be185d; }
.c-X { background: #fff; color: #aeaeb2; box-shadow: inset 0 0 0 1px #e5e5ea; font-weight: 400; }
.c-B { background: #fff; color: var(--hard); outline: 1.5px dashed var(--hard); outline-offset: -2px; }
.cal-c.m-soft { box-shadow: 0 0 0 2px var(--soft); }
.cal-c.m-hard { box-shadow: 0 0 0 2px var(--hard); animation: apPulse 1.4s infinite; }
@keyframes apPulse { 50% { box-shadow: 0 0 0 2px rgba(255,69,58,.35); } }
.cal-c.chg::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--yf); box-shadow: 0 0 0 1.5px #fff; }
.cal-sum { font-size: 11px; color: var(--ink-2); min-height: 20px; }
.cal-s { font-size: 10px; text-align: center; color: var(--ink-2); padding: 3px 0; border-radius: 4px; background: #fafafa; font-variant-numeric: tabular-nums; }
.cal-s.low { background: #fff1e0; color: #b25000; font-weight: 700; }
.ap-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11px; color: var(--ink-2); }
.ap-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ap-legend .lg-hard { box-shadow: inset 0 0 0 2px var(--hard); }
.ap-legend .lg-soft { box-shadow: inset 0 0 0 2px var(--soft); }
.ap-legend .lg-chg { width: 7px; height: 7px; border-radius: 50%; background: var(--yf); vertical-align: 1px; }
.ap-legend .lg-key { background: #fff1e0; box-shadow: inset 0 -2px 0 var(--soft); }

/* 店长修改清单 */
.ap-tweaks { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.tw-g p { font-size: 11px; color: var(--ink-2); margin: 2px 0 4px; }
.tw { display: flex; gap: 8px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 7px 9px; margin-bottom: 4px; cursor: pointer; border: 1.5px solid transparent; transition: border-color .2s; }
.tw input { margin-top: 2px; accent-color: var(--yf); flex: none; }
.tw b { display: block; font-size: 12.5px; font-weight: 600; }
.tw em { font-style: normal; font-size: 11px; color: var(--ink-2); }
.tw:has(input:checked) { border-color: var(--yf); }
.tw-hard:has(input:checked) { border-color: var(--hard); }
.tw-soft:has(input:checked) { border-color: var(--soft); }
.tw-special:has(input:checked) { border-color: var(--purple); }

/* 校验结果 */
.ap-checks { display: grid; gap: 6px; }
.ck { display: flex; gap: 8px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 8px 10px; border-left: 3px solid var(--line); }
.ck > b { flex: none; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--bg-light); white-space: nowrap; }
.ck span { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.ck em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.ck.hard { border-left-color: var(--hard); } .ck.hard > b { background: #ffe5e3; color: #c1271c; }
.ck.soft { border-left-color: var(--soft); } .ck.soft > b { background: #fff1e0; color: #b25000; }
.ck.ok { border-left-color: #34c759; } .ck.ok > b { background: #dcfce7; color: var(--ok); }
.ck-route { border-radius: 10px; padding: 9px 11px; background: #fff; display: grid; gap: 2px; }
.ck-route span { font-size: 11px; color: var(--ink-2); }
.ck-route b { font-size: 15px; }
.ck-route em { font-style: normal; font-size: 11.5px; color: var(--ink-2); }
.r-block { background: #ffe5e3; } .r-block b { color: #c1271c; }
.r-auto { background: #dcfce7; } .r-auto b { color: var(--ok); }
.r-mixed { background: #fff6e5; } .r-mixed b { color: #b25000; }
.r-manual { background: #f3e8ff; } .r-manual b { color: #7e22ce; }
.ap-submit { margin-top: 4px; width: 100%; padding: 11px; border-radius: 12px; background: var(--yf); color: #fff; font-size: 15px; font-weight: 600; transition: opacity .2s, background .2s; }
.ap-submit:disabled { opacity: .45; cursor: not-allowed; }
.ap-submit.no { background: var(--hard); }

/* 提交结果 */
.ap-result:empty { display: none; }
.ap-result { margin-top: 14px; }
.rs-card { border-radius: 16px; padding: 16px 18px; background: #fff8eb; animation: apIn .4s var(--ease); }
.rs-card.ok { background: #ecfdf5; } .rs-card.bad { background: #fff1f0; }
@keyframes apIn { from { opacity: 0; transform: translateY(8px); } }
.rs-card h4 { font-size: 17px; margin: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.rs-card p { font-size: 13.5px; color: var(--ink-2); }
.rs-push { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rs-push span { font-size: 12.5px; background: #fff; border-radius: 980px; padding: 4px 10px; }
.rs-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rs-tip { font-size: 12px !important; margin-top: 6px; }
#rsLeft { font-variant-numeric: tabular-nums; }
.ap-flow { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; counter-reset: f; }
.ap-flow li { font-size: 11.5px; padding: 3px 10px 3px 8px; border-radius: 980px; background: rgba(0,0,0,.05); color: var(--ink-2); }
.ap-flow li::before { counter-increment: f; content: counter(f) " "; font-weight: 700; }
.ap-flow li.done { background: var(--yf); color: #fff; }
.ap-flow li.cur { background: var(--soft); color: #fff; animation: apPulseB 1.6s infinite; }
@keyframes apPulseB { 50% { opacity: .65; } }

/* 按钮 */
.btn-g, .btn-r, .btn-w, .btn-b { font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; transition: filter .2s; }
.btn-g { background: var(--yf); color: #fff; }
.btn-r { background: var(--hard); color: #fff; }
.btn-b { background: #0071e3; color: #fff; }
.btn-w { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-g:hover, .btn-r:hover, .btn-b:hover { filter: brightness(1.08); }

/* 风险标签 */
.rk { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 700; color: #fff; }
.rk-A { background: var(--hard); } .rk-B { background: var(--soft); } .rk-C { background: #34c759; } .rk-undefined { display: none; }

/* ② 主任审批 */
.ap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ap-head b { font-size: 17px; }
.ap-head span { font-size: 13px; color: var(--ink-2); }
.ap-sec { margin: 10px 0 0; border-radius: 14px; border-top: 0; background: #eef6ff; padding: 12px 14px; }
.ap-tiles { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 10px; margin-top: 10px; }
.ap-tiles > div { border-radius: 14px; padding: 10px 14px; color: #fff; }
.ap-tiles b { display: block; font-size: 28px; line-height: 1.1; }
.ap-tiles span { font-size: 12.5px; opacity: .92; }
.tile-a { background: var(--hard); } .tile-b { background: var(--soft); } .tile-c { background: #34c759; }
.tile-go { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px #34c759; color: var(--ok); font-weight: 700; font-size: 14px; }
.tile-go:disabled { opacity: .4; cursor: not-allowed; }
.ap-rv { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.ap-list { display: grid; gap: 6px; align-content: start; max-height: 640px; overflow-y: auto; }
.rv-it { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; text-align: left; background: var(--bg-light); border-radius: 12px; padding: 10px 12px; border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.rv-it:hover { background: #ececf0; }
.rv-it.on { border-color: var(--ink); background: #fff; }
.rv-it.mine { box-shadow: inset 3px 0 0 var(--yf); }
.rv-it b { font-size: 14px; }
.rv-it b small { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--yf); border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.rv-it span { display: block; font-size: 11.5px; color: var(--ink-2); }
.rv-it p { font-size: 12.5px; margin-top: 2px; }
.rv-it > em { grid-column: 2; font-style: normal; font-size: 11px; color: var(--ink-2); }
.rv-it > em.late { color: #c1271c; font-weight: 700; }
.rv-k { font-size: 11px; color: var(--ink-2); margin-top: 8px; }
.rv-done { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: #fafafa; }
.rv-done span { color: var(--ink-2); text-align: right; }
.rv-empty { font-size: 13px; color: var(--ink-2); padding: 20px; text-align: center; }
.ap-detail { background: var(--bg-light); border-radius: 16px; padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.dt-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dt-h b { font-size: 19px; display: block; }
.dt-h span { font-size: 12.5px; color: var(--ink-2); }
.dt-why { font-size: 13px; }
.dt-k { font-size: 11.5px; font-weight: 700; color: var(--yf); margin-top: 6px; }
.dt-cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border-radius: 10px; overflow: hidden; }
.dt-cmp th { font-weight: 600; font-size: 11px; color: var(--ink-2); text-align: right; padding: 7px 10px; background: #fafafa; }
.dt-cmp td { padding: 7px 10px; border-top: 1px solid #f0f0f2; text-align: right; font-variant-numeric: tabular-nums; }
.dt-cmp td:first-child, .dt-cmp th:first-child { text-align: left; }
.dt-cmp tr.bad td b { color: #c1271c; }
.dt-cmp tr.bad td:first-child::before { content: "● "; color: var(--hard); font-size: 9px; vertical-align: 1px; }
.dt-ai { width: 100%; font: inherit; font-size: 13px; line-height: 1.5; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; background: #fff; }
.dt-ai:focus { outline: 2px solid rgba(0,168,112,.35); border-color: var(--yf); }
.dt-wl { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.dt-wl input { margin-top: 3px; accent-color: var(--yf); }
.dt-act, .dt-more { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-more:empty { display: none; }
.dt-in { flex: 1; min-width: 160px; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.dt-in.err { border-color: var(--hard); }
.ap-auto { margin-top: 14px; background: var(--bg-light); border-radius: 14px; padding: 10px 14px; }
.ap-auto summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.au-it { display: grid; grid-template-columns: 80px 90px 1fr auto; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 7px 0; border-top: 1px solid #e5e5ea; margin-top: 6px; }
.au-it span, .au-it code { color: var(--ink-2); font-size: 11.5px; }

/* ③ 强制提交 */
.ap-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ap-steps button { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 10px; border-radius: 12px; background: var(--bg-light); color: var(--ink-2); text-align: left; }
.ap-steps i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: #e3e3e8; color: var(--ink-2); }
.ap-steps .done i { background: var(--yf); color: #fff; }
.ap-steps .cur { background: var(--ink); color: #fff; }
.ap-steps .cur i { background: #fff; color: var(--ink); }
.ap-fc { margin-top: 16px; animation: apIn .4s var(--ease); }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; align-items: center; }
.fc-phone { background: #1d1d1f; border-radius: 26px; padding: 18px 12px 26px; min-height: 170px; }
.fc-k { font-size: 11px; color: #a1a1a6; text-align: center; margin-bottom: 10px; }
.fc-note { background: rgba(255,255,255,.92); border-radius: 14px; padding: 10px 12px; animation: apIn .5s var(--ease) .2s both; }
.fc-note b { display: block; font-size: 12px; }
.fc-note span { font-size: 12.5px; line-height: 1.45; }
.fc-note.warn b::before { content: "⚠️ "; }
.fc-txt h4 { font-size: 19px; margin-bottom: 4px; }
.fc-txt p { font-size: 14px; color: var(--ink-2); }
.fc-next { margin-top: 14px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fc-chips span { font-size: 12.5px; background: var(--bg-light); border-radius: 980px; padding: 5px 11px; }
.fc-clock { grid-column: span 2; background: #1d1d1f; color: #fff; border-radius: 22px; padding: 30px; text-align: center; }
.fc-clock b { display: block; font-size: 56px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fc-clock span { color: #a1a1a6; }
.fc-clock em { display: inline-block; margin-top: 10px; font-style: normal; font-size: 13px; color: #fff; background: var(--hard); padding: 4px 12px; border-radius: 980px; }
.fc-gen { display: grid; gap: 8px; max-width: 720px; }
.fc-st { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-light); border-radius: 12px; padding: 11px 14px; animation: apIn .45s var(--ease) both; animation-delay: calc(var(--i) * .45s); }
.fc-st i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yf); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.fc-st b { display: block; font-size: 14px; }
.fc-st span { font-size: 12.5px; color: var(--ink-2); }
.fc-done { background: #ecfdf5; border-radius: 14px; padding: 14px 16px; animation: apIn .45s var(--ease) both; animation-delay: calc(var(--i) * .45s); }
.fc-done b { display: block; font-size: 16px; color: var(--ok); }
.fc-done span { font-size: 13px; color: var(--ink-2); }
.fc-adj { margin-top: 0; }
.cal-c.qual { outline: 1.5px dashed #a855f7; outline-offset: -2px; }
.fc-q { font-size: 11.5px; color: var(--ink-2); margin-top: 8px; }
.fc-q i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; outline: 1.5px dashed #a855f7; outline-offset: -2px; margin-right: 6px; vertical-align: -1px; }
.fc-reset { width: 100%; }

/* ④ 月度复盘 */
.rc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rc-kpis div { background: var(--bg-light); border-radius: 14px; padding: 12px 14px; }
.rc-kpis span { display: block; font-size: 12px; color: var(--ink-2); }
.rc-kpis b { font-size: 28px; letter-spacing: -.02em; }
.rc-kpis em { font-style: normal; font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rc-card { background: var(--bg-light); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.rc-k { font-size: 12px; font-weight: 700; color: var(--yf); margin-top: 4px; }
.rc-stack { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 11.5px; font-weight: 600; color: #fff; }
.rc-stack i { min-width: 64px; font-style: normal; display: grid; place-items: center; white-space: nowrap; overflow: hidden; }
.s-auto { background: #34c759; } .s-mixed { background: var(--soft); } .s-manual { background: #a855f7; }
.rc-bar { display: grid; grid-template-columns: 118px 1fr 30px; gap: 8px; align-items: center; font-size: 12px; }
.rc-bar i { height: 10px; border-radius: 5px; display: block; }
.rc-bar i.hard { background: #ff8a80; } .rc-bar i.soft { background: #ffc061; }
.rc-bar b { font-variant-numeric: tabular-nums; }
.rc-bar em { grid-column: 2 / -1; font-style: normal; font-size: 11px; color: #b25000; margin-top: -4px; }
.rc-sp { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 10px; }
.rc-sp b { font-size: 13px; display: block; }
.rc-sp span { font-size: 11.5px; color: var(--ink-2); }
.rc-sp button { font-size: 11.5px; padding: 4px 8px; border-radius: 8px; background: var(--bg-light); color: var(--ink-2); }
.rc-sp button.on { background: var(--yf); color: #fff; }
.rc-sp button.on.bad { background: var(--hard); }
.rc-foot { font-size: 12px; color: var(--ink-2); }
.rc-tip { background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; }
.rc-tip b { color: #b25000; margin-right: 6px; }

/* 提示条 */
.ap-toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 16px); background: rgba(29,29,31,.92); color: #fff; font-size: 13.5px; padding: 9px 16px; border-radius: 980px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 5; max-width: calc(100% - 32px); text-align: center; }
.ap-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 响应式 */
@media (max-width: 1068px) {
  .ap-roles { grid-template-columns: repeat(2, 1fr); }
  .ap-body { grid-template-columns: 1fr; }
  .ap-tweaks { max-height: none; grid-template-columns: 1fr 1fr; }
  .ap-rv { grid-template-columns: 1fr; }
  .ap-list { max-height: 360px; }
  .fc-grid { grid-template-columns: 1fr 1fr; }
  .fc-txt { grid-column: 1 / -1; }
  .fc-clock { grid-column: 1 / -1; }
}
@media (max-width: 833px) {
  .rc-grid { grid-template-columns: 1fr; }
  .rc-kpis, .ap-steps { grid-template-columns: repeat(2, 1fr); }
  .ap-tiles { grid-template-columns: repeat(3, 1fr); }
  .tile-go { grid-column: 1 / -1; padding: 10px; }
}
@media (max-width: 560px) {
  .ap-roles { grid-template-columns: 1fr; }
  .ap-tabs { padding: 12px 12px 0; }
  .ap-tabs .seg { width: 100%; }
  .ap-tabs .seg button { padding: 8px 10px; font-size: 13px; }
  .ap-pane { padding: 12px; }
  .ap-ctl .mode { width: 100%; }
  .ap-ctl .mode button { flex: 1; font-size: 12px; padding: 7px 6px; }
  .ap-tweaks { grid-template-columns: 1fr; }
  .fc-grid { grid-template-columns: 1fr; }
  .au-it { grid-template-columns: 1fr auto; }
  .au-it em { grid-column: 1 / -1; }
  .ap-tiles b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cal-c.m-hard, .ap-flow li.cur { animation: none; }
  .fc-st, .fc-done, .fc-note, .rs-card, .ap-fc { animation: none; }
}

/* ---------- 需求对照 ---------- */
.mt-views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.mt-views div { background: var(--bg-light); border-radius: 18px; padding: 18px; }
.mt-views b { font-size: 16px; }
.mt-views p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.mt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 640px; margin: 28px auto 0; text-align: center; }
.mt-st b { display: block; font-size: 40px; letter-spacing: -.02em; }
.mt-st span { font-size: 13px; color: var(--ink-2); }
.mt-st.st-ok b { color: var(--yf); } .mt-st.st-demo b { color: #0071e3; } .mt-st.st-part b { color: #b25000; } .mt-st.st-no b { color: #8e8e93; }
.mt-path { margin-top: 28px; background: var(--bg-light); border-radius: 18px; padding: 14px 18px; }
.mt-path summary { cursor: pointer; font-size: 15px; font-weight: 600; }
.mt-path ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.mt-path li { font-size: 14px; line-height: 1.5; }
.mt-wrap { margin-top: 28px; }
.mt-seg { margin: 0 0 12px; background: var(--bg-light); max-width: 100%; }
.mt-seg button em { font-style: normal; font-size: 11px; color: var(--ink-2); margin-left: 4px; }
.mt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; box-shadow: 0 0 0 1px #ececf0; }
.mt-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.mt-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fafafa; padding: 10px 12px; position: sticky; top: 0; }
.mt-table td { padding: 10px 12px; border-top: 1px solid #f0f0f2; vertical-align: top; line-height: 1.45; }
.mt-table td.mt-g { white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }
.mt-table td.mt-loc { white-space: nowrap; font-size: 12.5px; }
.mt-table td.mt-how { color: var(--ink-2); font-size: 12.5px; }
.mt-go { color: var(--blue-link); font-weight: 700; font-size: 15px; padding: 0 1px; vertical-align: -1px; }
.mt-go:hover { text-decoration: underline; }
.mt-b { display: inline-block; white-space: nowrap; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.mt-b.st-ok { background: #dcfce7; color: var(--ok); } .mt-b.st-demo { background: #e0edff; color: #0055b3; }
.mt-b.st-part { background: #fff1e0; color: #b25000; } .mt-b.st-no { background: #f0f0f2; color: #6e6e73; }
.mt-note { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.mt-todo { margin-top: 28px; background: #fffaf0; border-radius: 18px; padding: 16px 20px; }
.mt-todo ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.mt-todo li { font-size: 13.5px; line-height: 1.5; }
.mt-todo li b { color: #b25000; margin-right: 4px; }
@media (max-width: 1068px) { .mt-views { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .mt-views { grid-template-columns: 1fr; }
  .mt-stats { grid-template-columns: repeat(2, 1fr); }
  .mt-st b { font-size: 32px; }
}
