.measure-dialog {
  box-sizing: border-box;
  width: min(600px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 32px);
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
.measure-dialog::backdrop { background: rgb(20 21 18 / 64%); }
.measure-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.measure-dialog-head h2 { margin: 4px 0 16px; font: 400 clamp(24px, 4vw, 36px)/1.12 var(--display); }
.measure-dialog-head button {
  flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--soft); color: var(--ink); font-size: 26px; cursor: pointer;
}

.photo-share {
  position:absolute; right:12px; top:12px; z-index:1; display:inline-flex; align-items:center;
  gap:7px; min-height:44px; padding:8px 15px; border-radius:30px;
  background:#fffffff0; color:#252421; font-weight:600; font-size:.86rem;
}

.share-preview { display:flex; align-items:center; gap:16px; }
.share-preview img { width:80px; height:96px; object-fit:cover; border-radius:10px; }
.share-preview p { margin:6px 0 0; }
.share-options { display:grid; gap:6px; }
.share-options a,.share-options button { display:grid; place-items:center; min-height:44px; border:1px solid var(--line); border-radius:30px; background:transparent; }
.share-options a { background:var(--ink); color:var(--paper); }
.product-share-sheet [data-share-status]:empty { display:none; }

@media(max-width:700px){
  .measure-dialog { width:100%; max-width:100%; max-height:86dvh; margin:auto 0 0; border-radius:20px 20px 0 0; padding-bottom:max(20px,env(safe-area-inset-bottom)); }
  .measure-dialog::before { content:''; display:block; width:36px; height:4px; border-radius:3px; background:var(--line); margin:0 auto 14px; }
}

.share-options button,.share-options a { appearance:none; color:inherit; font:inherit; cursor:pointer; }
.share-options a { color:var(--paper); }
.share-options [hidden] { display:none; }
.look-media .photo-share { top:8px; right:8px; width:44px; justify-content:center; padding:0; }
