.share-dialog{width:min(1000px,calc(100% - 24px));max-width:1000px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d7e3e6;border-radius:8px;background:#fff;color:#172f3c;overflow:auto;overscroll-behavior:contain;letter-spacing:0}
.share-dialog::backdrop{background:rgb(10 25 31 / .65)}
.share-dialog svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none}
.share-dialog{margin:auto}
.share-head{position:sticky;top:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #dce6e9}
.share-head h2{font-size:21px;margin:0}.share-head p{margin:0;font-size:12px;color:#55717f}.share-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,1fr);gap:24px;padding:22px;align-items:start}
.share-stage{background:#eaf0f2;min-width:0;display:flex;justify-content:center;align-items:center;border-radius:6px;padding:12px;min-height:260px}
.share-stage canvas{display:block;width:auto;max-width:100%;height:auto;max-height:60dvh;object-fit:contain;border-radius:4px;box-shadow:0 8px 22px #17384825}
.share-controls{display:grid;gap:18px;min-width:0}.share-controls fieldset{border:0;padding:0;margin:0;min-width:0}.share-controls legend{font-weight:700;font-size:13px;margin-bottom:8px}.share-sources,.share-models{display:flex;gap:8px}.share-sources button{flex:1;min-width:0;padding:10px 4px;display:grid;justify-items:center;gap:6px;font-size:12px;background:#f1f6f6;color:#254852;border:1px solid #cadbdd;border-radius:6px;cursor:pointer}.share-sources svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
.share-sources button[aria-pressed=true]{background:#daf5f2;border-color:#00897e}
.share-models{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.share-models button{min-width:0;border:2px solid transparent;border-radius:6px;padding:7px 4px;background:#eef3f4;color:#294955;font-size:12px;cursor:pointer}
.share-models button[aria-pressed=true]{border-color:#00877d;background:#e1f4ee}
.share-swatch{position:relative;display:block;height:66px;margin-bottom:6px;border-radius:3px;background:#bcc8c4;overflow:hidden}
.share-swatch::before{content:'';position:absolute;inset:33px 5px 5px;background:#17211c;border-radius:3px}
.share-swatch::after{content:'';position:absolute;left:10px;right:10px;bottom:13px;height:8px;background:repeating-linear-gradient(90deg,#e7ebe7 0 27%,transparent 27% 35%);border-radius:2px}
.share-swatch.contrast::before{background:#fff}.share-swatch.contrast::after{background:#bdcbc5}
.share-swatch.editorial::after{background:#3f4b46}
.share-swatch.compact::before{top:46px}.share-swatch.compact::after{bottom:10px;height:3px}
.share-swatch.stripe::before{inset:12px 48% 5px 5px;border-left:2px solid #10c2bf}
.share-swatch.stripe::after{left:11px;right:57%;bottom:13px;height:23px;background:repeating-linear-gradient(0deg,#fff 0 3px,transparent 3px 9px)}
.share-swatch.score::before{top:25px;border-top:5px solid #c6f06a}
.share-swatch.score::after{left:11px;right:45%;bottom:17px;height:12px;background:#c6f06a}
.share-swatch.free::before{inset:15px 0 0;border-radius:0;background:linear-gradient(transparent,#07110c)}
.share-swatch.free::after{left:8px;right:25%;bottom:15px;height:3px;background:#fff;box-shadow:0 -7px 0 #fff}
@media(max-width:650px){.share-models{grid-template-columns:repeat(3,minmax(0,1fr))}.share-swatch{height:58px}}
.share-controls select{width:100%;padding:10px;border:1px solid #c6d7dc;border-radius:5px;font-size:16px;background:#fff;color:#173642}.share-check{display:flex;align-items:center;gap:10px;font-size:14px}.share-check input{width:18px;height:18px;accent-color:#008c80}.share-crop{display:grid;gap:10px}.share-crop label{font-size:13px}.share-crop input{width:100%;accent-color:#008c80}.share-actions{display:grid;grid-template-columns:1fr;gap:8px}.share-actions button{min-width:0;padding:12px 8px}.share-message{font-size:13px;min-height:20px;color:#576d77;overflow-wrap:anywhere}.share-dialog [hidden]{display:none!important}.share-dialog button:focus-visible,.share-dialog input:focus-visible,.share-dialog select:focus-visible{outline:3px solid #21baad;outline-offset:3px}
@media(max-width:650px){.share-layout{grid-template-columns:1fr;gap:16px;padding:14px}.share-head{padding:14px}.share-head h2{font-size:18px}.share-stage{min-height:180px}.share-stage canvas{max-height:38dvh}.share-controls{gap:14px}.share-actions{position:sticky;bottom:-1px;background:#fff;padding:10px 0}}
.share-dialog,.share-dialog *{box-sizing:border-box}
.share-dialog button,.share-dialog input,.share-dialog select{font-family:inherit;letter-spacing:0}
.share-dialog .icon-button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;background:#fff;border:1px solid #c6d7dc;border-radius:6px;color:#254852;cursor:pointer}
.share-dialog .primary{display:flex;align-items:center;justify-content:center;min-height:46px;background:#007f79;color:#fff;border:0;border-radius:6px;font-size:16px;font-weight:700;cursor:pointer}
.share-dialog button:disabled{opacity:.5;cursor:wait}
.share-dialog .field{display:grid;gap:8px;font-size:14px;color:#172f3c}
.share-dialog .share-check{text-transform:none;font-weight:500;letter-spacing:0}
.share-dialog .share-check input{flex:0 0 18px;margin:0;padding:0}
