.case-example-panel { border: 1px solid #b9cbe4; background: #f3f7fc; border-radius: 12px; padding: 22px; margin-bottom: 24px; }
.case-example-panel h2 { margin: 4px 0 10px; }
.case-example-description { font-weight: 600; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; align-items: center; }
.case-actions a { display: inline-block; text-decoration: none; }
.case-actions button, .case-actions a { padding: 12px 18px; border: 1px solid #b7c7da; border-radius: 8px; font: inherit; cursor: pointer; }
.case-actions button:disabled { opacity: .5; cursor: default; }
.case-actions .primary-button { color: #fff; background: #164985; border-color: #164985; }
.case-example-dialog { max-width: 520px; width: calc(100% - 36px); box-sizing: border-box; padding: 24px; border: 1px solid #bac9dd; border-radius: 14px; color: #17314d; background: #fff; }
.case-example-dialog::backdrop { background: rgb(10 24 42 / 55%); }
.case-example-dialog p { line-height: 1.8; }
.case-coordinate-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.case-coordinate-grid pre { padding: 16px; border: 1px solid #c9d5e5; border-radius: 8px; font-size: 16px; line-height: 1.6; overflow: auto; }
.case-capture { margin: 24px 0; }
.case-capture img { display: block; width: 100%; height: auto; border: 1px solid #c9d5e5; border-radius: 10px; }
.case-capture figcaption { margin-top: 10px; line-height: 1.7; font-size: 14px; }
body.dark-mode .case-example-panel { background: #192a41; border-color: #45617f; }
body.dark-mode .case-example-dialog { background: #192a41; color: #e8eff8; }
body.dark-mode .case-actions button:not(.primary-button) { background: #22374f; color: #e8eff8; }
@media(max-width:600px) { .case-coordinate-grid { grid-template-columns: 1fr; } .case-example-panel { padding: 16px; } .case-actions { align-items: stretch; } }

/* v112: original captures remain readable on narrow screens. */
.case-capture-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 12px 0 0; padding: 10px 14px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--input-bg); color: var(--blue); font-size: 14px; font-weight: 650; text-decoration: none; }
.case-capture-open:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.case-example-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media screen and (max-width: 640px) { .case-capture-open { width: 100%; } }
