body.sharing-capture{overflow:hidden}
.capture-share{padding:0;width:min(100% - 48px,1000px);max-width:1000px;max-height:94dvh;border-radius:18px;background:var(--paper);overscroll-behavior:contain}
.capture-share *{letter-spacing:0}
.share-header{display:flex;align-items:center;gap:16px;padding:20px 28px;border-bottom:1px solid var(--line)}
.share-header h2{font-size:21px;margin:0;line-height:1.3}
.share-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.share-preview{background:#e8ede5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:28px;min-width:0}
.share-preview>canvas{display:block;max-width:100%;max-height:59dvh;width:auto;height:auto;box-shadow:0 5px 20px #163f3514}
.share-dimensions{font-size:11px;color:var(--muted)}
.share-controls{padding:28px;min-width:0;display:grid;gap:25px;align-content:start}
.share-controls fieldset{padding:0;margin:0;border:0;min-width:0}
.share-controls legend{font-size:13px;font-weight:650;margin-bottom:12px}
.share-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.share-templates button{background:transparent;color:var(--green);padding:5px;border:2px solid transparent;border-radius:8px;min-width:0}
.share-templates button[aria-pressed=true]{border-color:var(--green);background:#edf2e7}
.share-templates canvas{display:block;width:100%;height:auto}
.share-templates span{display:block;font-size:11px;font-weight:600;padding:8px 0 3px;overflow-wrap:anywhere}
.share-formats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.share-formats label{display:flex;flex-direction:row;align-items:center;gap:7px;min-height:48px;cursor:pointer;font-size:12px}
.share-formats input,.share-fields input{accent-color:var(--green);width:18px;height:18px;min-height:18px;margin:0;padding:0;flex-shrink:0}
.share-formats small{display:block;color:var(--muted);margin-top:3px;font-size:11px}
.share-fields label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:44px;font-size:13px;border-bottom:1px solid var(--line);cursor:pointer}
.share-photo>label{font-size:13px;font-weight:600;display:block;margin-bottom:10px}
.share-photo small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}
.share-photo input{width:100%;min-width:0;font-size:12px;padding:8px 0;border:0;background:none;min-height:44px}
.share-photo-status,.share-privacy{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
.share-privacy{display:flex;align-items:center;gap:8px}
.share-footer{position:sticky;bottom:0;background:var(--paper);border-top:1px solid var(--line);padding:12px 28px max(16px,env(safe-area-inset-bottom));z-index:1}
.share-status{font-size:12px;line-height:1.5;margin:0 0 10px;color:var(--muted);min-height:18px;overflow-wrap:anywhere}
.share-actions{display:flex;justify-content:flex-end;gap:12px}
.share-actions .button{min-width:145px}
.share-photo [hidden]{display:none}
.share-photo .share-photo-fit{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:12px 0 0;min-height:44px}
.share-photo-fit input{width:18px;height:18px;min-height:18px;padding:0;accent-color:var(--green)}
.share-photo .share-photo-fit[hidden]{display:none}
@media(max-width:650px){
  .capture-share{margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}
  .share-header{padding:max(14px,env(safe-area-inset-top)) 16px 14px;gap:10px}
  .share-header h2{font-size:19px}
  .share-layout{grid-template-columns:minmax(0,1fr)}
  .share-preview{padding:20px;gap:10px}
  .share-preview>canvas{max-height:43dvh}
  .share-controls{padding:24px 20px;gap:24px}
  .share-templates canvas{max-height:125px;width:auto;max-width:100%;margin:auto}
  .share-footer{padding-left:16px;padding-right:16px}
  .share-actions .button{min-width:0;flex:1;padding:12px 8px;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.capture-share .button{transition:none}}

.share-record-switch{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;min-height:49px;cursor:pointer}.share-record-switch span{font-size:14px;font-weight:600}.share-record-switch small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}.share-record-switch input{appearance:none;-webkit-appearance:none;flex:0 0 46px;width:46px;min-height:26px;height:26px;padding:0;border:0;border-radius:20px;background:#d6dece;position:relative;cursor:pointer}.share-record-switch input::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #163f3526}.share-record-switch input:checked{background:var(--green)}.share-record-switch input:checked::before{left:23px}.share-record-status{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 0}
