/* Atlas sharing dialog, layered after the Global source adapter. */
#hub-modal:has(.atlas-share){width:min(620px,calc(100% - 32px));border-radius:16px}
#hub-modal:has(.atlas-share)>.modal-content{padding:28px}
.atlas-share{color:var(--ink,#250c01);font-family:Manrope,system-ui,sans-serif;text-align:left}
.atlas-share-header{display:flex;align-items:center;gap:17px;padding-right:35px;margin-bottom:25px;min-width:0}
.atlas-share-thumbnail{width:78px;height:78px;object-fit:cover;border:1px solid var(--line,#ded6d0);border-radius:12px;flex-shrink:0;margin:0!important}
.atlas-share-header>div{min-width:0}
.atlas-share-eyebrow{font-size:10px;font-weight:600;color:var(--muted,#66554d);letter-spacing:.07em;text-transform:uppercase;margin-bottom:5px}
.atlas-share-header #modal-title{font-size:23px;line-height:31px;letter-spacing:0;font-weight:700;margin:0 0 5px;padding:0}
.atlas-share-material{font-size:11px;line-height:18px;color:var(--muted,#66554d);overflow-wrap:anywhere}
.atlas-share-link-form{margin:0 0 22px!important;padding:18px;background:var(--soft,#fafaf9);border:1px solid var(--line,#ded6d0);border-radius:12px}
.atlas-share-link-form>label{display:block;font-size:12px;font-weight:600;line-height:20px;margin-bottom:9px}
.atlas-share-link-row{display:flex;gap:8px;align-items:stretch;min-width:0}
.atlas-share-link-row input{flex:1;min-width:0;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line,#ded6d0);border-radius:9px;background:var(--card,#fff);color:var(--ink,#250c01);font:500 12px/20px Manrope,system-ui,sans-serif}
.atlas-share-link-row input:focus-visible{outline:2px solid #ff962f;outline-offset:2px}
.atlas-share-link-row input[aria-invalid=true]{border-color:#bb3c20}
.atlas-share-link-row .button{min-height:44px;font-size:12px;padding:10px 15px;border-radius:9px;flex-shrink:0}
.atlas-share-link-form #atlas-share-link-hint{font-size:10px;line-height:17px;color:var(--muted,#66554d);margin:8px 0 0}
.atlas-share-link-status{font-size:10px;line-height:17px;margin:6px 0 0;color:var(--accent-ink,#a04900)}
.atlas-share-link-status:empty{display:none}
.atlas-share-link-status.error{color:#b43216}
.atlas-share-posts{border:0;padding:0;margin:0;min-width:0}
.atlas-share-posts legend{font-size:14px;line-height:22px;font-weight:700;padding:0;margin-bottom:8px}
.atlas-share-post-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.atlas-share-post-heading>span{font-size:10px;line-height:18px;color:var(--muted,#66554d)}
.atlas-share-post-heading b{font-size:10px;color:var(--ink,#250c01);font-weight:600;margin-left:5px}
.atlas-share-other{display:inline-flex;align-items:center;gap:6px;background:transparent;padding:5px 0;min-height:34px;font-size:11px;line-height:18px;font-weight:600;color:var(--accent-ink,#a04900)}
.atlas-share-other .icon{width:14px;height:14px}
.atlas-share-options{display:grid;gap:10px}
.atlas-share-option{position:relative;display:grid;grid-template-columns:17px minmax(0,1fr);gap:11px;align-items:start;border:1px solid var(--line,#ded6d0);border-radius:12px;background:var(--card,#fff);padding:15px;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
.atlas-share-option:hover{border-color:#ffbf80}
.atlas-share-option.selected{border-color:#f4a34b;background:var(--surface,#fffaf3);box-shadow:inset 0 0 0 1px #ff962f1c}
.atlas-share-option input[type=radio]{appearance:none;-webkit-appearance:none;width:17px;height:17px;min-width:17px;padding:0;margin:2px 0 0;display:grid;place-content:center;border:1px solid #9c8b7f;border-radius:50%;background:var(--card,#fff);cursor:pointer}
.atlas-share-option input[type=radio]:checked{border-color:#e87612;border-width:5px}
.atlas-share-option input[type=radio]:focus-visible{outline:2px solid #ff962f;outline-offset:4px}
.atlas-share-post-text{font-size:12px;font-weight:500;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;outline:none}
.atlas-share-post-text:focus-visible{outline:2px solid #ff962f;outline-offset:4px;border-radius:2px}
.atlas-share-option>.icon{display:none}
.atlas-share-status{font-size:11px;line-height:19px;color:var(--muted,#66554d);margin:15px 0 0}
.atlas-share-status:empty{display:none}
.atlas-share-actions{margin-top:23px;display:grid;gap:10px}
.atlas-share-actions .button{border-radius:12px;min-height:48px;line-height:1.2;font-size:14px;font-weight:600;justify-content:center;gap:9px;padding:12px 16px}
.atlas-share-actions .button.primary{color:white;background:linear-gradient(to right,#ff8008 0%,#ffc837 51%,#ff8008 100%);background-size:200% auto;border-color:transparent}
.atlas-share-actions .button.primary:hover{background-position:right center;transform:none}
.atlas-share-secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.atlas-share-secondary .button{font-size:12px;min-height:44px;padding:10px 13px;white-space:normal}
.atlas-share-actions .icon{width:17px;height:17px}
.atlas-share button:disabled{cursor:wait;opacity:.55}
.atlas-share button[aria-busy=true]>.icon{opacity:.6}
[data-theme=dark] .atlas-share-link-status.error{color:#ffad88}
[data-theme=dark] .atlas-share-option.selected{background:#261b12;border-color:#c5772d}
[data-theme=dark] .atlas-share-other,[data-theme=dark] .atlas-share-link-status:not(.error){color:#ffb365}
[data-theme=dark] .atlas-share-option input[type=radio]{border-color:#b0a094}
[data-theme=dark] .atlas-share-option input[type=radio]:checked{border-color:#f4973b}
@media(max-width:480px){#hub-modal:has(.atlas-share)>.modal-content{padding:24px 19px}.atlas-share-header{gap:12px;padding-right:30px;margin-bottom:20px;align-items:flex-start}.atlas-share-thumbnail{width:62px;height:62px;border-radius:10px}.atlas-share-header #modal-title{font-size:19px;line-height:26px}.atlas-share-eyebrow{font-size:9px;line-height:14px;margin-bottom:3px}.atlas-share-material{font-size:10px;line-height:16px}.atlas-share-link-form{padding:14px;margin-bottom:19px!important}.atlas-share-link-form>label{font-size:11px}.atlas-share-link-row{gap:6px}.atlas-share-link-row input{font-size:11px;padding:10px}.atlas-share-link-row .button{font-size:11px;padding:10px 12px}.atlas-share-link-form #atlas-share-link-hint{font-size:10px}.atlas-share-post-heading{gap:10px}.atlas-share-post-heading>span,.atlas-share-post-heading b{font-size:9px}.atlas-share-other{font-size:10px;min-height:36px}.atlas-share-posts legend{font-size:13px}.atlas-share-option{padding:13px;gap:10px;grid-template-columns:16px minmax(0,1fr)}.atlas-share-option input[type=radio]{width:16px;height:16px;min-width:16px}.atlas-share-post-text{font-size:11px;line-height:19px}.atlas-share-actions{margin-top:20px}.atlas-share-actions .button{font-size:13px}.atlas-share-secondary .button{font-size:11px;padding:10px}.atlas-share-actions .icon{width:15px;height:15px}}
@media(prefers-reduced-motion:reduce){.atlas-share-option,.atlas-share-actions .button{transition:none}}
