.jm-tech-trigger{display:block;width:calc(100% - 24px);margin:0 12px 12px;padding:10px;border:1px solid #98774b;border-radius:8px;background:#f7f0e4;color:#172634;font:600 .9rem system-ui;cursor:pointer}
.jm-tech-trigger:hover,.jm-tech-trigger:focus-visible{background:#ead8b6}
.jm-tech-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 26px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;background:#f5f0e6;color:#152331;overflow:auto}
.jm-tech-dialog::backdrop{background:#08121dcc}
.jm-tech-actions{display:flex;flex-wrap:wrap;gap:8px;padding:15px 18px;background:#152331;position:sticky;top:0;z-index:1}
.jm-tech-actions button{padding:9px 12px;border:1px solid #b18f58;border-radius:6px;background:#f5ead6;color:#152331;font:600 13px system-ui;cursor:pointer}
.jm-tech-actions .jm-tech-close{margin-left:auto;background:#152331;color:#fff}
.jm-tech-status{margin:0;padding:0 24px;font:600 13px system-ui;color:#8a2d28}
.jm-tech-status:not(:empty){padding-top:12px}
.jm-tech-page{box-sizing:border-box;padding:24px 30px 32px;background:#f5f0e6;color:#152331;font:15px/1.5 system-ui,sans-serif}
.jm-tech-page header{display:flex;align-items:center;gap:15px;padding-bottom:12px;border-bottom:1px solid #af8a54;font-weight:700}
.jm-tech-page header img{width:64px;height:64px;object-fit:contain}
.jm-tech-page h2{font:600 clamp(25px,6vw,40px)/1.12 Georgia,serif;margin:5px 0}
.jm-tech-category,.jm-tech-code{color:#644c33;font-weight:600;margin:10px 0}
.jm-tech-page figure{margin:14px 0;background:#fff;text-align:center;padding:10px}
.jm-tech-page figure img{display:block;margin:auto;max-width:100%;width:auto;max-height:280px;object-fit:contain}
.jm-tech-page figcaption{font-size:.85em;color:#4d4d4d}
.jm-tech-page dl{display:grid;gap:0;margin:12px 0}
.jm-tech-page dl div{display:grid;grid-template-columns:minmax(90px,28%) 1fr;gap:10px;padding:5px 0;border-bottom:1px solid #d4c6ad;break-inside:avoid}
.jm-tech-page dt{font-weight:700}
.jm-tech-page dd{margin:0;overflow-wrap:anywhere}
.jm-tech-page footer{display:flex;gap:12px;align-items:center;margin-top:16px;font-weight:700;break-inside:avoid}
.jm-tech-page footer a{color:inherit}
.jm-tech-print-frame{position:fixed;inset:auto auto 0 0;width:1px;height:1px;opacity:0;border:0;pointer-events:none}
@media print{
  @page{size:A4 portrait;margin:12mm}
  html,body{margin:0}
  .jm-tech-page{padding:0;color:#152331;background:white;font:10.5pt/1.35 system-ui,sans-serif}
  .jm-tech-page h2{font-size:25pt}
  .jm-tech-page header img{width:42px;height:42px}
  .jm-tech-page figure{margin:5px 0;padding:4px;break-inside:avoid}
  .jm-tech-page figure img{max-height:54mm}
  .jm-tech-page footer a{text-decoration:none}
}
.jm-tech-crop{position:relative;overflow:hidden;margin:auto}
.jm-tech-page .jm-tech-crop img{position:absolute;max-width:none;max-height:none;height:auto;margin:0}
.jm-tech-original{margin-top:20px}
.jm-tech-original summary{font-weight:700;cursor:pointer}
.jm-tech-original img{display:block;max-width:100%;max-height:800px;object-fit:contain;margin:10px auto 0}
@media print{
 .jm-tech-original{break-before:page}
 .jm-tech-original img{max-height:246mm}
 .jm-tech-crop{max-width:160mm;max-height:55mm}
}
