/* ── MDSAP panel (Oct 2026) ── */
.mdsap-panel { margin-top: 18px; }
.mdsap-lead { margin: 4px 0 14px; color: var(--ink); line-height: 1.55; max-width: 900px; }
.mdsap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.mdsap-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 0; }
.mdsap-card summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; min-height: 44px; }
.mdsap-card summary::-webkit-details-marker { display: none; }
.mdsap-card summary::after { content: "▸"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.mdsap-card[open] summary::after { transform: rotate(90deg); }
.mdsap-card p { margin: 0; padding: 0 12px 12px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.mdsap-mkt { font-weight: 800; font-size: 13.5px; }
.mdsap-chip { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.mdsap-class { font-size: 11.5px; color: var(--muted); }
.mdsap-req .mdsap-chip { background: #fde7c7; color: #7a3d00; }
.mdsap-good .mdsap-chip { background: var(--teal-soft); color: #0b5f58; }
.mdsap-part .mdsap-chip { background: #e8eef9; color: #1e3a8a; }
.mdsap-no .mdsap-chip { background: var(--surface); color: var(--muted); }
.mdsap-req { border-color: #f0c88a; }
.mdsap-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.mdsap-facts > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--surface); }
.mdsap-facts h3 { margin: 0 0 6px; font-size: 14px; }
.mdsap-facts ol, .mdsap-facts ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.mdsap-facts li { margin-bottom: 4px; }
.mdsap-actions { margin: 14px 0 6px; }
.mdsap-src { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.mdsap-src a { color: var(--teal); }
.gs-modal-card.mdsap-tmpl { max-width: 860px; max-height: 85vh; overflow: auto; }
:root[data-theme="dark"] .mdsap-req .mdsap-chip { background: #4a3214; color: #f8d6a3; }
:root[data-theme="dark"] .mdsap-good .mdsap-chip { color: #8fe3d8; }
:root[data-theme="dark"] .mdsap-part .mdsap-chip { background: #1e2a44; color: #b9c9f0; }
:root[data-theme="dark"] .mdsap-req { border-color: #6b4a1e; }
