.diamond-viewer{margin:0 0 28px;padding:20px;border:1px solid #dce0d7;border-radius:14px;background:#fff;color:#20281b;min-width:0}
.diamond-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.diamond-head h3{font-size:22px;line-height:1.25;margin:9px 0}
.diamond-badge{font-size:10px;font-weight:850;letter-spacing:.08em;padding:5px 8px;background:#fff3bf;color:#544400;border-radius:4px}
.diamond-mark{font-size:22px;font-weight:850;color:#68715e}
.diamond-viewer #diamond-help{font-size:12px;line-height:1.7;color:#555f4c;margin:10px 0 16px}
.diamond-stage{width:100%;height:360px;border-radius:10px;overflow:hidden;background:#fafbf9;color:#20281b;position:relative;isolation:isolate}
.diamond-stage canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none;outline-offset:-4px}
.diamond-stage canvas:active{cursor:grabbing}
.diamond-stage canvas:focus-visible{outline:3px solid #716000}
.diamond-poster{width:100%;height:100%;object-fit:contain}
.diamond-poster[hidden],.diamond-tools[hidden],.diamond-stage canvas[hidden]{display:none}
.diamond-status{font-size:12px;color:#4a5541;min-height:20px;margin:10px 0}
.diamond-tools{display:flex;flex-wrap:wrap;gap:7px}
.diamond-tools button,.diamond-close{min-width:44px;min-height:44px;padding:9px 12px;border:1px solid #d1d7c9;border-radius:8px;background:#fff;color:#25301d;font:700 13px/1.3 system-ui,sans-serif;cursor:pointer}
.diamond-tools button:hover,.diamond-tools button[aria-pressed="true"]{background:#ffd335;color:#14190e;border-color:#887400}
.diamond-tools button:focus-visible,.diamond-close:focus-visible{outline:3px solid #1d2715;outline-offset:2px}
.diamond-disclaimer{font-size:11px;line-height:1.75;border-top:1px solid #e0e5d7;padding-top:14px;margin:16px 0 0;color:#58634e}
.diamond-disclaimer strong{font-weight:800}
.diamond-photos-title{font-size:16px;margin:8px 0 16px}
.diamond-dialog{width:min(1100px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #dce0d7;border-radius:16px;background:#fff;color:#20281b;overflow:auto}
.diamond-dialog::backdrop{background:#10160feb}
.diamond-dialog .diamond-viewer{padding:8px;border:0;margin:0}
.diamond-dialog .diamond-stage{height:min(55dvh,560px)}
.diamond-close{display:block;margin-left:auto;margin-bottom:12px}
@media(max-width:580px){.diamond-viewer{padding:12px}.diamond-head h3{font-size:19px}.diamond-stage{height:290px}.diamond-mark{font-size:17px}.diamond-tools{gap:6px}.diamond-tools button{padding:8px 10px}.diamond-dialog{padding:10px}.diamond-dialog .diamond-stage{height:42dvh}}

.diamond-stage{background:#fff;height:420px}.diamond-reference-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.diamond-reference-photos a{display:block;color:inherit;text-align:center;font-size:11px;text-decoration:none}.diamond-reference-photos img{display:block;width:100%;height:auto;border-radius:6px}.diamond-reference-photos a:focus-visible{outline:3px solid #716000}.diamond-viewer #diamond-help{font-size:12px;line-height:1.7;color:#555f4c;margin:10px 0 16px}@media(max-width:580px){.diamond-stage{height:310px}}

.diamond-stage{height:380px}.diamond-photo-picker{display:flex;gap:10px;margin:12px 0}.diamond-photo-picker button{flex:1;border:1px solid #d8ddd2;border-radius:8px;background:#fff;padding:8px;cursor:pointer}.diamond-photo-picker img{width:100%;height:90px;object-fit:contain}.diamond-photo-picker button[aria-pressed=true]{border:2px solid #716000}.diamond-photo-main{display:block;width:100%;height:410px;object-fit:contain;background:white;border-radius:12px}.diamond-photo-caption{font-size:12px;color:#58634e}.diamond-photo-picker button:focus-visible{outline:3px solid #716000}@media(max-width:580px){.diamond-stage{height:320px}.diamond-photo-main{height:300px}.diamond-photo-picker img{height:65px}}