/* 软件地图的线路画法、目录、道岔分叉与意图看板（10-16 案例 3；画布排布见 softmap-canvas.css） */
.smm-modes button.smm-trying { background: #6B4FBB; color: #fff; }
.smm-chip { border: 1px solid var(--sep-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.smm-chip.on { background: var(--text-1); color: var(--surface); border-color: var(--text-1); }
.smm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text-2); margin: -2px 0 10px; align-items: center; }
.smm-legend i { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.smm-legend .lg-st { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #3E6FB0; background: #fff; }
.smm-legend .lg-st.done { background: #3E6FB0; }
.smm-legend .lg-st.gap { border-style: dashed; border-color: #d9534f; }
.smm-legend .lg-dia { width: 11px; height: 11px; background: #6B4FBB; transform: rotate(45deg); border-radius: 2px; }
.smm-legend .lg-opt { width: 22px; height: 12px; border: 2px solid #6B4FBB; border-radius: 999px; }
.smm-legend .lg-off { width: 22px; border-top: 3px dashed #c9c4ba; }
.smm-nav { width: 248px; flex: none; max-height: 76vh; overflow: auto; background: var(--surface); border: 1px solid var(--sep); border-radius: var(--radius-card); padding: 8px; display: grid; gap: 2px; align-content: start; }
.smm-nav button { border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; padding: 5px 8px; color: var(--text-1); display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; width: 100%; }
.smm-nav button:hover { background: var(--fill); }
.smm-nav button.on { background: var(--accent-soft); }
.smm-nav .smm-root { grid-template-columns: 1fr auto; font-size: 14px; }
.smm-root .smm-bar { grid-column: 1 / -1; }
.smm-l1 { margin-top: 6px; border-left: 3px solid var(--c); padding-left: 3px; }
.smm-h b { font-size: 13.5px; }
.smm-h .smm-bar, .smm-l2 .smm-bar { grid-column: 1 / 3; }
.smm-sw { width: 10px; height: 10px; border-radius: 3px; }
.smm-nav .smm-l2 { margin-left: 12px; grid-template-columns: 1fr auto; font-size: 12.5px; color: var(--text-2); }
.smm-nav .smm-os { margin-left: 12px; grid-template-columns: 1fr; font-size: 12px; color: #6B4FBB; }
.smm-os em { font-style: normal; color: #C2456B; font-size: 11px; display: block; }
.smm-nav small { font-size: 11px; color: var(--text-3); }
.smm-bar { display: block; height: 4px; background: var(--fill); border-radius: 2px; overflow: hidden; }
.smm-bar i { display: block; height: 100%; background: var(--success); }
.smm-svg { display: block; }
.smm-col { fill: transparent; }
.smm-col.alt { fill: rgba(0, 0, 0, .035); }
.smm-col-t { font-size: 11px; fill: #a39d92; text-anchor: middle; font-weight: 600; }
.smm-ln { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.smm-ln.merge { stroke-dasharray: 2 9; }
.smm-ln.off { stroke: #cfcac0 !important; stroke-dasharray: 8 8; stroke-width: 4; }
.smm-ln.ghost, .smm-g.ghost { opacity: .14; }
.smm-act { font-size: 10.5px; fill: #8a857c; }
.smm-g { cursor: pointer; outline: none; }
.smm-st { fill: #fff; stroke: var(--c); stroke-width: 4; }
.smm-st.s-done { fill: var(--c); }
.smm-st.s-gap { stroke-dasharray: 3 3; fill: #fff4f3; }
.smm-st.skip, .smm-st.off, .smm-st.s-dropped { stroke: #c9c4ba; fill: #f1eee8; }
.smm-g.sel .smm-st, .smm-g:focus-visible .smm-st { stroke-width: 6; filter: drop-shadow(0 0 6px #3E6FB0); }
.smm-lbl { font-size: 12.5px; fill: #222; paint-order: stroke; stroke: #fbfaf7; stroke-width: 4px; }
.smm-lbl.skip, .smm-lbl.off { fill: #aaa; text-decoration: line-through; }
.smm-lbl.b { font-weight: 800; font-size: 14px; }
.smm-cnt { font-size: 10.5px; fill: #6B4FBB; paint-order: stroke; stroke: #fbfaf7; stroke-width: 3px; }
.smm-cnt.skip { fill: #bbb; }
.smm-skip { font-size: 10.5px; fill: #fff; font-weight: 700; paint-order: stroke; stroke: #666; stroke-width: 7px; stroke-linejoin: round; }
.smm-start { fill: #1d1d1f; }
.smm-start-t { fill: #fff; font-size: 12px; font-weight: 800; text-anchor: middle; }
.smm-dia { fill: #fff; stroke: #6B4FBB; stroke-width: 4; }
.smm-dia.decided { fill: #6B4FBB; }
.smm-g.sel .smm-dia { filter: drop-shadow(0 0 6px #6B4FBB); }
.smm-dia-t { font-size: 12px; font-weight: 800; text-anchor: middle; fill: #6B4FBB; pointer-events: none; }
.smm-dia-t.decided { fill: #fff; }
.smm-q { font-size: 11.5px; line-height: 1.25; color: #4f3d8c; font-weight: 700; text-align: center; background: rgba(246, 242, 255, .93); border: 1px solid #ddd3f6; border-radius: 8px; padding: 2px 6px; }
.smm-q b { display: inline-block; margin-left: 4px; color: #fff; background: #C2456B; border-radius: 999px; font-size: 10px; padding: 0 6px; }
.smm-opt { fill: #fff; stroke: #6B4FBB; stroke-width: 2.4; }
.smm-opt.chosen { fill: #6B4FBB; }
.smm-opt.off { stroke: #cfcac0; fill: #f3f0ea; stroke-dasharray: 4 3; }
.smm-opt-t { font-size: 11.5px; fill: #4f3d8c; font-weight: 600; pointer-events: none; }
.smm-opt-t.chosen { fill: #fff; }
.smm-opt-t.off { fill: #aaa; }
.smm-tag { font-size: 10px; text-anchor: end; font-weight: 700; }
.smm-tag.off { fill: #999; }
.smm-tag.on { fill: #6B4FBB; }
.smm-end { fill: #6B4FBB; }
.smm-end.off { fill: #ccc; }
.smm-leaf { font-size: 11px; color: #4f3d8c; line-height: 1.25; background: rgba(250, 248, 255, .93); border: 1px dashed #c9bdf0; border-radius: 8px; padding: 3px 7px; }
.smm-leaf em { display: block; font-style: normal; color: #C2456B; font-weight: 600; }
.smm-leaf.off { color: #aaa; border-color: #ddd; }
.smm-leaf.off em { color: #aaa; }
/* 道岔分叉：详情面板与意图看板共用 */
.smm-fork { display: grid; grid-template-columns: 26px 1fr; margin: 8px 0; }
.smm-fork-d i { display: block; width: 16px; height: 16px; background: #6B4FBB; transform: rotate(45deg); border-radius: 3px; margin: 7px 0 0 4px; }
.smm-fork-br { border-left: 4px solid #6B4FBB; padding-left: 14px; display: grid; gap: 8px; }
.smm-fork-o { position: relative; display: grid; gap: 3px; text-align: left; font: inherit; background: var(--surface); border: 1.5px solid #ddd3f6; border-radius: 12px; padding: 7px 10px; cursor: pointer; color: var(--text-1); }
.smm-fork-o::before { content: ""; position: absolute; left: -18px; top: 15px; width: 16px; border-top: 4px solid #6B4FBB; }
.smm-fork-o.on { border-color: #6B4FBB; box-shadow: 0 0 0 3px rgba(107, 79, 187, .14); }
.smm-fork-o.off { opacity: .48; filter: grayscale(1); border-style: dashed; }
.smm-fork-o.off::before { border-top-style: dashed; border-color: #bbb; }
.smm-fork-l { font-weight: 700; font-size: 13px; }
.smm-fork-l .tag { margin-left: 6px; font-size: 10.5px; background: #6B4FBB; color: #fff; border-radius: 999px; padding: 0 7px; }
.smm-fork-l .tag.g { background: #888; }
.smm-fork-do, .smm-fork-no { font-size: 11.5px; color: var(--text-2); }
.smm-fork-no em { font-style: normal; color: #C2456B; margin-left: 4px; }
.smm-cc { display: inline-block; background: #efeaff; color: #4f3d8c; border-radius: 6px; padding: 0 6px; margin: 2px 4px 0 0; }
.smm-cc.no { background: #eee; color: #888; text-decoration: line-through; }
/* 意图看板 */
.smm-board { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 14px; align-items: start; width: 100%; }
.smm-board h3 { font-size: 14px; margin: 0 0 8px; }
.smm-board h3 span { color: var(--text-2); font-weight: 400; }
.smm-bsw { background: #fbf9ff; border: 1px solid #e3dcf5; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.smm-bsw header { display: flex; gap: 8px; align-items: flex-start; }
.smm-bsw header b { font-size: 13.5px; color: #4f3d8c; }
.smm-bsw-now { font-size: 12px; color: var(--text-2); margin: 4px 0 0 22px; }
.smm-board-cols { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; align-items: start; }
@media (max-width: 768px) {
  .smm-board { grid-template-columns: 1fr; }
  .smm-board-cols { grid-template-columns: repeat(5, 240px); }
}
