.body-reference{margin:12px 0 22px;padding:16px;border:1px solid #d8cbd7;border-radius:16px;background:#faf7fa;color:#372936}
.body-reference-intro{margin:0 0 14px;font-size:14px;line-height:1.5;color:#685569}
.body-reference-group+ .body-reference-group{margin-top:22px;padding-top:18px;border-top:1px solid #ded3dd}
.body-reference-group h4{margin:0 0 12px;font:600 15px/1.4 var(--brand-sans,Inter,system-ui,sans-serif);color:#634263}
.body-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.body-reference figure{margin:0;min-width:0}
.body-reference button{display:block;width:100%;padding:0;font:inherit;text-align:left;cursor:zoom-in;overflow:hidden;border:1px solid #d6cad3;border-radius:12px;background:#fff;color:#563451;text-decoration:none}
.body-reference button:focus-visible{outline:3px solid #895d8b;outline-offset:4px}
.body-reference button:hover{border-color:#895d8b}
.body-reference img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;max-height:none}
.body-reference button span{display:block;padding:9px 12px;font-size:12px;font-weight:600;text-align:right;background:#f1e9f1}
.body-reference figcaption{padding:9px 2px 0;font-size:13px;line-height:1.5;color:#685569}
@media(max-width:600px){.body-reference{padding:12px;margin-bottom:18px}.body-reference-grid{grid-template-columns:1fr;gap:18px}.body-reference-intro{font-size:13px}.body-reference button span{padding:11px 12px}}

.body-reference-open{overflow:hidden}
.body-reference-dialog{box-sizing:border-box;width:min(1280px,96vw);max-width:96vw;max-height:94vh;max-height:94dvh;padding:12px;border:1px solid #a98282;border-radius:16px;background:#1b151b;color:#fff5ee;box-shadow:0 24px 80px #0009}
.body-reference-dialog::backdrop{background:#08060be8}
.body-reference-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.body-reference-toolbar h2{margin:0;font:500 16px/1.4 var(--brand-sans,Inter,system-ui,sans-serif);color:inherit}
.body-reference-toolbar button{flex-shrink:0;min-height:44px;padding:10px 18px;border:1px solid #c7998b;border-radius:9px;background:#4b303e;color:#fff5ee;font:600 15px/1.4 var(--brand-sans,Inter,system-ui,sans-serif);cursor:pointer}
.body-reference-toolbar button:focus-visible{outline:3px solid #f4c6b3;outline-offset:3px}
.body-reference-dialog>img{display:block;width:100%;height:auto;max-height:calc(94vh - 90px);max-height:calc(94dvh - 90px);object-fit:contain;border-radius:8px}
@media(max-width:600px){.body-reference-dialog{padding:10px;width:96vw}.body-reference-toolbar{gap:8px}.body-reference-toolbar h2{font-size:13px}.body-reference-toolbar button{padding:10px 12px}}
