/* D7 stays inside the existing graph workbench and uses its native stitch inks. */
.hitomezashi-repair{border-top:4px solid var(--teal);min-width:0}
.hitomezashi-repair>p,.hmr-decision>p,.hmr-delta-explanation>p{max-width:90ch}
.hitomezashi-repair .toolbar{margin:.85rem 0}
.hmr-minima-controls>button{display:flex;flex:1 1 17rem;flex-direction:column;align-items:flex-start;gap:.25rem;text-align:left;min-width:0;padding:.7rem .9rem}
.hmr-minima-controls>button>span{font-size:.95rem;font-weight:400}
.hmr-decision{padding:.8rem 1rem;margin:1rem 0;background:#f4ead1;border-left:4px solid var(--gold)}
.hmr-decision[data-hmr-result=NO]{border-left-color:var(--copper)}
.hmr-candidate-table table{min-width:59rem}
.hmr-candidate-table th:first-child{min-width:14rem}
.hmr-candidate-table th>span{white-space:normal;margin-top:.35rem}
.hmr-candidate-table td{vertical-align:top}
.hmr-candidate-table tr.is-selected{background:#e8eee4}
.hitomezashi-repair details{border:1px solid var(--soft-line);background:#fbf3df;padding:.7rem;margin:.7rem 0;min-width:0}
.hitomezashi-repair summary{font-size:1rem;font-weight:600;line-height:1.5;cursor:pointer}
.hmr-candidate-table details{padding:.4rem}
.hmr-candidate-table details p{margin:.4rem 0;overflow-wrap:anywhere}
.hmr-operand h3{font-size:1.55rem;max-width:26ch}
.hmr-delta-explanation code,.hmr-inspection code{white-space:normal;overflow-wrap:anywhere}
.hmr-line-bands{fill:#e6bc62;opacity:.3;pointer-events:none}
.hmr-delta{fill:none;stroke-width:.145;stroke-linecap:round;pointer-events:none}
.hmr-removed{stroke:#a43b38;stroke-dasharray:.13 .1}
.hmr-added{stroke:#c16a17}
.hmr-legend .hmr-key-removed{background:repeating-linear-gradient(to right,#a43b38 0 .3rem,transparent .3rem .5rem);height:.25rem}
.hmr-legend .hmr-key-added{background:#c16a17;height:.25rem}
.hmr-svg .hm-witness-path{stroke-width:.09}
.hmr-svg .hm-witness.is-selected .hm-witness-path{stroke-width:.12}
.hmr-certificate pre{max-height:25rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem;line-height:1.5}
.hmr-inspection{margin:1rem 0}
.hmr-inspection>p{font-size:1.05rem;line-height:1.6}
.hci-inspection{margin:1rem 0;padding:1rem;border:1px solid #7a90aa;background:#f3f5f6}
.hci-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.hci-selects label{display:flex;flex-direction:column;gap:.4rem;min-width:0}
.hci-selects label>span{font-size:.95rem}
.hci-selects select{font:inherit;width:100%;min-width:0;line-height:1.4;padding:.7rem;background:#fffdf7;color:#173d50}
.hci-detail code{white-space:normal;overflow-wrap:anywhere}
.hci-component{cursor:pointer}
.hci-route-path{fill:none;stroke:transparent;stroke-width:.13;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.hci-route-hit{fill:none;stroke:transparent;stroke-width:.25;pointer-events:stroke}
.hci-component.is-selected .hci-route-path{stroke:#2256bc;stroke-width:.15}
.hci-component.is-exact-match .hci-route-path{stroke:#893e99;stroke-width:.15;stroke-dasharray:.19 .08}
.hci-component:focus-visible .hci-route-path{stroke:#2256bc;stroke-width:.20;stroke-dasharray:.10 .08}
.hci-legend .hci-key-selected{background:#2256bc;height:.3rem}
.hci-legend .hci-key-match{background:repeating-linear-gradient(to right,#893e99 0 .4rem,transparent .4rem .6rem);height:.3rem}
@media(max-width:600px){.hci-selects{grid-template-columns:minmax(0,1fr)}.hci-inspection{padding:.7rem}}
@media(max-width:600px){.hmr-decision{padding:.65rem}.hitomezashi-repair .toolbar>button{width:100%;text-align:left}}
.hfi-inspection{margin-top:1rem;padding-top:.8rem;border-top:1px solid #7a90aa}
.hfi-counterparts,.hfi-piece-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}
.hfi-counterparts button,.hfi-piece-buttons button{white-space:normal;text-align:left;overflow-wrap:anywhere}
.hfi-piece-buttons button[aria-pressed=true]{outline:3px solid #087c73}
.hfi-fragment{cursor:pointer}
.hfi-fragment-path{fill:none;stroke:#087c73;stroke-width:.07;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.hfi-fragment-hit{fill:none;stroke:transparent;stroke-width:.20;pointer-events:stroke}
.hfi-fragment.is-selected .hfi-fragment-path{stroke:#006d60;stroke-width:.17;stroke-dasharray:.20 .06}
.hfi-fragment:focus-visible .hfi-fragment-path{stroke-width:.21;stroke-dasharray:.08 .08}
.hfi-legend .hfi-key{background:#087c73;height:.2rem}
.hfi-legend .hfi-key-selected{background:repeating-linear-gradient(to right,#006d60 0 .4rem,transparent .4rem .5rem);height:.3rem}
