
.jb-photo-editor{box-sizing:border-box;border:1px solid #b7cbb5;border-radius:18px;padding:0;
 width:min(660px,calc(100vw - 16px));max-height:94dvh;overflow:auto;background:#f9faf4;color:#1e3c2a;
 box-shadow:0 28px 90px #10291b66;z-index:100000;font-family:system-ui,sans-serif}
.jb-photo-editor::backdrop{background:#0d2118c4}
.jb-frame-head{display:flex;justify-content:space-between;align-items:flex-start;padding:15px 18px;
 background:#eaf2e7;border-bottom:1px solid #d2dfce;gap:12px}
.jb-frame-head>div{display:grid;gap:4px}.jb-frame-head strong{font-size:18px}
.jb-frame-head small{color:#4a6951;font-size:12px;line-height:1.5}
.jb-frame-head [data-close]{border:0;background:transparent;font-size:28px;min-width:44px;cursor:pointer}
.jb-frame-canvas{display:grid;place-items:center;padding:12px;background:#152b20}
.jb-frame-canvas canvas{display:block;width:min(100%,520px);height:auto;aspect-ratio:4/3;background:#e4eae0;
 cursor:grab;touch-action:none;border-radius:7px}
.jb-frame-canvas canvas:active{cursor:grabbing}
.jb-frame-tools{padding:15px 18px}.jb-frame-modes{display:flex;gap:7px;flex-wrap:wrap}
.jb-frame-modes button{font:700 13px system-ui;border:1px solid #a8bfa6;background:#fff;
 border-radius:9px;padding:10px 14px;min-height:44px;cursor:pointer;color:#1f4a31}
.jb-frame-modes button[aria-pressed=true]{background:#264e35;color:#fff;border-color:#264e35}
.jb-frame-zoom{display:flex;align-items:center;gap:13px;margin:15px 0;font-size:13px;font-weight:700}
.jb-frame-zoom input{flex:1;max-width:320px;accent-color:#356b45}
.jb-frame-hint{font-size:12px;color:#536d59;line-height:1.5;margin:0}
.jb-frame-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d7e3d1;padding:12px 18px}
.jb-frame-actions button{border-radius:9px;min-height:44px;padding:10px 16px;font:700 13px system-ui;
 border:1px solid #acc3a9;cursor:pointer}
.jb-frame-actions [data-cancel]{background:#fff;color:#355a3f}
.jb-frame-actions [data-save]{background:#214d33;border-color:#214d33;color:#fff}
.image-preview-card [data-adjust-preview]{border:1px solid #c5d5c0;background:#f0f5eb;color:#244d36;
 padding:7px 10px;border-radius:8px;min-height:36px;font:700 11px system-ui;cursor:pointer}
.detail-gallery img,.report-gallery img,.image-preview-card img{object-fit:contain!important;background:#e6ece4}
.journal-photo-edit-list{display:grid;gap:8px;margin:8px 0 14px}
.journal-photo-edit{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid #d8e5d4;border-radius:9px;background:#fff}
.journal-photo-edit img{width:70px;height:66px;object-fit:contain;background:#e6ede5;border-radius:6px}
.journal-photo-edit button{border:1px solid #abc3aa;background:#eff5eb;border-radius:8px;padding:9px;
 color:#244934;font-weight:700;cursor:pointer;min-height:40px}
.field-adjust-photo{border:1px solid #c4d4b8;border-radius:8px;background:#eef5e9;color:#235034;
 min-height:40px;padding:8px 11px;margin:6px 0;cursor:pointer;font-weight:750}
@media(max-width:500px){.jb-frame-head{padding:12px}.jb-frame-tools{padding:12px}
.jb-frame-actions{padding:11px}.jb-photo-editor{max-height:96dvh}}
