.instruction-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:18px 0 24px;display:grid}.instruction-thumbnail{text-align:left;border:1px solid var(--border,#e7eef5);color:var(--ink,#0f172a);cursor:pointer;background:#fff;border-radius:14px;align-items:center;gap:12px;min-width:0;padding:10px;transition:border-color .15s,background .15s;display:flex}.instruction-thumbnail:hover{background:#f7faff;border-color:#a8ccff}.instruction-preview{object-fit:contain;background:#f4f8fc;border-radius:8px;flex-shrink:0;width:110px;height:62px}.instruction-thumbnail>span{flex-direction:column;gap:7px;min-width:0;display:flex}.instruction-thumbnail strong{font-size:13px;line-height:1.45}.instruction-thumbnail small{color:#466487;flex-wrap:wrap;align-items:center;gap:5px;font-size:11px;display:flex}.instruction-thumbnail:focus-visible,.instruction-dialog :focus-visible{outline-offset:3px;outline:3px solid #8bbcff}.instruction-dialog{color:#0f172a;background:#fff;border:1px solid #dce8f8;border-radius:20px;width:calc(100% - 24px);max-width:1200px;max-height:90dvh;margin:auto;padding:0;overflow:hidden;box-shadow:0 20px 80px #071b3e40}.instruction-dialog[open]{flex-direction:column;display:flex}.instruction-dialog::backdrop{background:#0f172ab8}.instruction-dialog-header{border-bottom:1px solid #e7eef5;flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;display:flex}.instruction-dialog-header h2{margin:0;font-size:18px;line-height:1.4}.instruction-close{cursor:pointer;color:#0f172a;background:#f4f8fc;border:1px solid #dce8f8;border-radius:12px;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.instruction-toolbar{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px 0;display:flex}.instruction-toolbar button,.instruction-toolbar a{color:#126de8;align-items:center;gap:7px;min-height:44px;font-size:13px;line-height:1.4;display:inline-flex}.instruction-toolbar button{cursor:pointer;background:#edf5ff;border:1px solid #c4dcff;border-radius:10px;padding:8px 12px}.instruction-dialog .instruction-hint{color:#52667d;flex-shrink:0;margin:8px 20px 14px;font-size:12px;line-height:1.65}.instruction-image-scroll{overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:#f4f8fc;min-height:0;overflow:auto}.instruction-dialog .instruction-full-image{width:100%;max-width:none;height:auto;display:block}.instruction-dialog .instruction-full-image.is-zoomed{width:2172px}@media (max-width:600px){.instruction-dialog{border-radius:16px;width:calc(100% - 16px);max-height:92dvh}.instruction-dialog-header{gap:10px;padding:10px 12px}.instruction-dialog-header h2{font-size:16px}.instruction-toolbar{gap:8px;padding:10px 12px 0}.instruction-dialog .instruction-hint{margin:8px 12px 12px}.instruction-preview{width:100px;height:58px}}@media (prefers-reduced-motion:reduce){.instruction-thumbnail{transition:none}}
