/* One sharing surface for both themes. */
.sharing-dialog{width:min(540px,calc(100vw - 28px));padding:34px;border:1px solid var(--line);background:var(--page,#f7f7f9);border-radius:28px}
.sharing-dialog h2{margin:4px 40px 8px 0;font-size:28px;letter-spacing:-1px;font-weight:650}
.sharing-dialog .sharing-subtitle{font-size:15px;color:var(--secondary,#666);margin:0 0 26px}
.share-access{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.share-access button{position:relative;text-align:left;padding:20px 16px 17px;border:1.5px solid var(--line);border-radius:16px;min-height:126px;color:var(--ink);background:var(--surface,#fff)}
.share-access button[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 .5px var(--ink)}
.share-access svg{display:block;width:24px;height:24px;margin-bottom:14px}
.share-access strong{font-size:15px;display:block;font-weight:600;letter-spacing:-.2px}
.share-access small{display:block;color:var(--secondary,#686870);font-size:12px;margin-top:5px}
.access-check{position:absolute;right:14px;top:15px;width:20px;height:20px;border-radius:50%;background:var(--ink);color:var(--page);display:grid;place-items:center;font-size:12px;opacity:0}
[aria-pressed=true] .access-check{opacity:1}
.share-values-row{display:flex;align-items:center;justify-content:space-between;padding:23px 0;gap:16px}
.share-values-row strong{display:block;font-size:15px;font-weight:600}.share-values-row div>span{font-size:12px;color:var(--secondary,#6e6e78);display:block;margin-top:4px}
.share-switch{width:46px;height:28px;padding:3px;border-radius:30px;background:#a4a7ad;transition:background .18s;flex-shrink:0}.share-switch>span{display:block;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .18s}.share-switch[aria-checked=true]{background:#25885e}.share-switch[aria-checked=true]>span{transform:translateX(18px)}
.sharing-dialog .share-preview{background:var(--surface,#fff);border:1px solid var(--line);border-radius:18px;margin:0 0 22px;padding:17px;text-align:center;overflow:hidden}
.share-preview-top{display:flex;justify-content:space-between;align-items:center;color:var(--secondary,#777);font-size:11px}.share-preview-top>span:first-child{font-size:9px;letter-spacing:1.4px;font-weight:650}.share-preview-top>span:last-child{background:var(--soft,#f0f1f4);padding:5px 8px;border-radius:20px}
#share-mini-cards{display:flex;justify-content:center;align-items:center;gap:8px;min-height:156px;margin-top:18px}
.share-mini{position:relative;width:98px;height:138px;background:linear-gradient(140deg,#243549,#080e16);border:1px solid #8896a2;border-radius:10px;overflow:hidden;box-shadow:0 7px 16px #0002;color:white;flex-shrink:0}
.share-mini:nth-child(1):not(:only-child){transform:rotate(-7deg) translateY(4px)}.share-mini:nth-child(3){transform:rotate(7deg) translateY(4px)}.share-mini img{width:100%;height:100%;object-fit:cover}.share-mini>svg{width:40px;height:40px;margin:34px auto;opacity:.6}.share-mini>div{position:absolute;inset:auto 0 0;padding:25px 8px 10px;background:linear-gradient(transparent,#06101deb);text-align:left}.share-mini strong{font-size:10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-mini span{font-size:10px;color:#d5dde5;display:block;margin-top:4px}
.sharing-dialog .share-preview h3{font-size:16px;font-weight:600;margin:16px 0 4px}.sharing-dialog .share-preview>span:last-child{font-size:12px;margin:0;color:var(--secondary)}
#share-link-row:not([hidden]){display:flex;align-items:center;gap:8px;padding:4px 8px 4px 12px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;margin-bottom:12px}#share-link{font-size:12px;margin:0;border:0;box-shadow:none;background:transparent;color:var(--secondary);padding:10px 0;min-width:0}#share-open{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;font-size:23px;border-radius:8px;color:var(--ink)}#share-open:hover{background:var(--soft)}
#share-primary{width:100%;min-height:48px;justify-content:center;font-size:15px;border-radius:12px}#share-primary:disabled{opacity:.5;cursor:default}
.sharing-dialog #share-status{font-size:12px;line-height:1.5;margin:12px 0 0;text-align:center;min-height:18px;color:var(--secondary)}.sharing-dialog #share-local-note{font-size:11px;text-align:center;color:var(--secondary);margin:5px 0 0}
.sharing-dialog button:focus-visible,.sharing-dialog a:focus-visible{outline:3px solid #438bea;outline-offset:3px}
.share-empty{font-size:13px;color:var(--secondary)}
.shared-heading{padding:64px 0 35px}.shared-heading h1{font-size:48px;letter-spacing:-2px}.shared-heading p{color:var(--muted);margin-top:12px}.shared-shell{max-width:1440px;padding:0 64px;margin:auto}.shared-header{padding:28px 0;border-bottom:1px solid var(--line);font-size:24px;font-weight:650}.shared-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;padding:0 0 60px}.shared-gallery .collectible{width:100%;pointer-events:none}.shared-error{padding:100px 0;text-align:center}.shared-error h1{font-size:32px;margin-bottom:14px}.shared-error p{color:var(--muted)}
@media(max-width:700px){.sharing-dialog{padding:25px 20px}.share-access button{padding:17px 12px;min-height:124px}.share-access strong{font-size:14px}.shared-shell{padding:0 22px}.shared-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.shared-heading{padding-top:38px}.shared-heading h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){.share-switch,.share-switch>span{transition:none}}

.shared-shell>main{padding:0;max-width:none;margin:0}
