/* Ver.38 — 少ない操作で条件付き紐を確認。現地で邪魔にならないよう初期は折り畳む。 */
#v38-condition-panel{margin:10px 0 14px}
.v38-fold{border:1px solid var(--border);border-radius:11px;background:var(--card);overflow:hidden}
.v38-fold>summary{list-style:disclosure-closed;cursor:pointer;padding:12px 13px;font-size:.91rem;font-weight:700;line-height:1.45}
.v38-fold[open]>summary{border-bottom:1px solid var(--border);list-style:disclosure-open}
.v38-fold>summary small{display:block;font-size:.73rem;color:var(--muted);font-weight:400;margin-top:2px}
.v38-body{padding:12px 13px}
.v38-source,.v38-foot{font-size:.77rem;line-height:1.55;color:var(--muted);margin:4px 0 12px}
.v38-source b{font-weight:700;color:var(--text)}
.v38-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}
.v38-chip{display:flex;flex-direction:column;gap:3px;background:var(--bg);border:1px solid var(--border);padding:9px 7px;border-radius:9px;min-width:0}
.v38-chip small{color:var(--muted);font-size:.71rem;line-height:1.4}
.v38-chip strong{font-size:1.2rem;line-height:1.2;font-variant-numeric:tabular-nums}
.v38-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:10px 0}
.v38-tabs button{min-height:46px;padding:9px 5px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font-size:.78rem;font-weight:650;cursor:pointer}
.v38-tabs button[aria-pressed=true]{border:2px solid var(--accent);background:var(--card)}
.v38-section h5{font-size:.9rem;margin:14px 0 7px}
.v38-section h5 small{font-size:.75rem;color:var(--muted);font-weight:400}
.v38-list{border:1px solid var(--border);border-radius:9px;overflow:hidden}
.v38-line{display:grid;grid-template-columns:62px minmax(35px,1fr) 39px 55px;align-items:center;gap:9px;padding:8px 9px;border-bottom:1px solid var(--border);font-size:.81rem;font-variant-numeric:tabular-nums}
.v38-line:last-child{border-bottom:0}
.v38-line strong,.v38-line>span:last-child{text-align:right}
.v38-line>span:last-child{color:var(--muted)}
.v38-track{height:10px;background:var(--bg);border-radius:6px;overflow:hidden;border:1px solid var(--border)}
.v38-track>span{height:100%;display:block;background:var(--accent);border-radius:6px}
.v38-choices{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 14px}
.v38-choice{display:flex;flex-direction:column;gap:4px;font-size:.81rem;font-weight:650;min-width:110px;flex:1}
.v38-choice select{font-size:1rem;min-height:42px;padding:8px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--text)}
.v38-pair-lead,.v38-remain{font-size:.84rem;line-height:1.55;padding:9px;border-radius:8px;background:var(--bg);border:1px solid var(--border)}
.v38-warning{border-left:3px solid #b58a43;background:var(--bg);padding:9px 10px;font-size:.78rem;line-height:1.55;margin:13px 0 10px}
.v38-other{border:1px solid var(--border);border-radius:9px;padding:10px 12px;background:var(--card);font-size:.81rem}
.v38-other p{color:var(--muted);font-size:.77rem;margin:4px 0 0}
@media(max-width:420px){.v38-body{padding:9px}.v38-tabs button{font-size:.74rem}.v38-chip strong{font-size:1.05rem}.v38-line{grid-template-columns:50px minmax(22px,1fr) 30px 48px;gap:5px;padding:8px 6px;font-size:.75rem}.v38-choices{gap:7px}}
