/* Restored selected-work gallery, scoped to this review build. */
html.ag body .alt-gallery-tools{position:relative;z-index:1;display:flex;gap:14px;margin:14px 0 6px;padding:14px 0 8px;border-top:1px solid #9a84ad55}
html.ag body .alt-gallery-tools button{padding:4px 0;border:0!important;border-radius:0;background:transparent!important;color:inherit!important;font-size:11px;box-shadow:none!important}
html.ag body .alt-gallery-tools button:hover{text-decoration:underline;text-underline-offset:4px}
html.ag body .alt-gallery-tools button:disabled{opacity:.35}
html.ag body .alt-gallery-tools [role=status]{margin-left:auto;flex-basis:auto;text-align:right;line-height:1.4}
html.ag body #resultCount{position:relative;z-index:1;margin:12px 0 16px;font-size:11px;letter-spacing:.05em}
html.ag body:not(.alt-gallery-ready) #resultCount{font-size:0}
html.ag body:not(.alt-gallery-ready) #resultCount:after{content:"loading selected work…";font-size:11px}
html.ag body:not(.alt-gallery-ready) #projectList{display:none}
html.ag body #projectList.alt-gallery{max-height:820px;overflow:auto;display:block;padding:3px 13px 10px 0;scrollbar-color:#b889d9 transparent;scrollbar-width:thin;scroll-behavior:smooth}
html.ag body #projectList.alt-gallery:focus-visible{outline:2px solid #8b4bb3}
html.ag body .alt-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:19px}
html.ag body .alt-gallery-column{display:flex;flex-direction:column;gap:19px;min-width:0}
html.ag body .alt-card{position:relative;min-width:0;background:#fff;border:1px solid #9181a273;border-radius:19px;overflow:hidden;box-shadow:0 8px 18px #44415a13;transition:transform .28s ease,box-shadow .28s ease}
html.ag body .alt-card:hover{transform:translateY(-5px);box-shadow:0 17px 35px #36314c2b}
html.ag body #projectList .alt-card-open,
html.ag body #projectList .alt-card-open:hover{display:block;width:100%;padding:0!important;margin:0!important;border:0;border-radius:0;background:none!important;text-align:left;box-shadow:none;color:#25212c}
html.ag body .alt-card-art{display:flex;align-items:center;justify-content:center;aspect-ratio:var(--ratio);min-height:150px;padding:clamp(9px,1.2vw,20px);background:var(--mat);overflow:hidden}
html.ag body #projectList .alt-card-art img,
html.ag body #projectList .alt-card-art video{display:block;width:100%;height:100%;max-height:390px;object-fit:contain;padding:0;border:0;border-radius:5px;background:transparent;filter:drop-shadow(0 8px 12px #16102626);transform:none;transition:transform .35s ease}
html.ag body .alt-card:hover .alt-card-art :is(img,video){transform:scale(1.035)!important}
html.ag body .alt-card-caption{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;min-height:66px;align-content:center;padding:12px 14px 14px;background:#fff}
html.ag body .alt-card-caption strong{grid-column:1/-1;font-size:12px;font-weight:700;line-height:1.1;letter-spacing:-.015em}
html.ag body .alt-card-caption small{grid-column:1/-1;font-size:11px;line-height:1.25;color:#62566a;overflow-wrap:anywhere}
html.ag body .alt-card-edit{position:absolute;top:8px;right:8px;display:flex;gap:3px;padding:4px;border-radius:20px;background:#fffefaee;box-shadow:0 3px 12px #0002}
html.ag body #projectList .alt-card-edit button{display:grid;place-items:center;width:31px;height:31px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:transparent;font-size:18px;color:#30233c;box-shadow:none}
html.ag body #projectList .alt-card-edit button:hover{background:#edd7fc;transform:none}
html.ag body #projectList.is-arranging .alt-card{outline:2px dashed #9a63c4;outline-offset:-3px}
html.ag body #projectList.is-arranging .alt-card-open{pointer-events:none}
body[data-theme="night"][data-experiment="alternate"] .alt-card{border-color:#a796c1;background:#29243c}
body[data-theme="night"][data-experiment="alternate"] .alt-card-caption{background:#fdfaff}

/* The project and upload dialogs are part of the gallery, with the same materials. */
html.ag body :is(#alternateGalleryPreview,#alternateGalleryUpload){width:min(920px,calc(100vw - 34px));max-width:none;max-height:90dvh;padding:0;margin:auto;border:1px solid #8d71a7;border-radius:23px;background:#f9f7ff;color:#292332;box-shadow:0 28px 90px #13102077;overflow:auto}
html.ag body :is(#alternateGalleryPreview,#alternateGalleryUpload)::backdrop{background:#0d1029bf;backdrop-filter:blur(9px)}
html.ag body .alt-preview-toolbar{position:sticky;z-index:2;top:0;display:flex;justify-content:space-between;align-items:center;min-height:49px;padding:10px 20px;background:linear-gradient(100deg,#d994ef,#c3b7f0 56%,#b3def3);border-bottom:1px solid #9b72b0;font-size:12px}
html.ag body .alt-preview-toolbar button{display:grid;place-items:center;width:29px;height:29px;margin:0;padding:0;border:1px solid #7a5688;border-radius:50%;background:#ffffffa8;color:#2d2134;font-size:23px;line-height:1}
html.ag body .alt-preview-intro{padding:30px 34px 8px}
html.ag body .alt-preview-intro>span{font-size:12px;color:#7c548f}
html.ag body .alt-preview-intro h2{font-size:clamp(28px,4vw,48px);line-height:1.02;letter-spacing:-.05em;margin:8px 0 12px;font-weight:600}
html.ag body .alt-preview-intro p{max-width:650px;font-size:13px;line-height:1.5;color:#5d5368}
html.ag body .alt-preview-media{display:grid;gap:20px;padding:14px 34px 34px}
html.ag body .alt-preview-media figure{margin:0;min-width:0}
html.ag body .alt-preview-media :is(img,video){display:block;width:100%;height:auto;max-height:68dvh;object-fit:contain;border-radius:10px;background:#e7e0f0}
html.ag body .alt-preview-media figcaption{margin-top:8px;font-size:12px;color:#62536c}
html.ag body #alternateGalleryUpload{width:min(590px,calc(100vw - 34px))}
html.ag body #alternateGalleryUpload form{display:grid;gap:16px;padding:28px 32px 32px}
html.ag body #alternateGalleryUpload h2{font-size:34px;letter-spacing:-.055em;margin:0 0 4px}
html.ag body #alternateGalleryUpload label{display:grid;gap:7px;font-size:12px}
html.ag body #alternateGalleryUpload :is(input,select){width:100%;min-width:0;padding:11px 12px;border:1px solid #ad96bb;border-radius:9px;background:#fff;color:#292332;font:13px 'Helvetica Neue',Helvetica,Arial,sans-serif}
html.ag body #alternateGalleryUpload input[type=file]{padding:8px}
html.ag body .alt-upload-pair{display:grid;grid-template-columns:1fr 1fr;gap:13px}
html.ag body #alternateGalleryUpload [role=status]{font-size:12px;min-height:16px;margin:0;color:#704386}
html.ag body #alternateGalleryUpload button[type=submit]{justify-self:start;padding:13px 21px;border:1px solid #88579d;border-radius:25px;background:#d994ef;color:#292332;font-size:13px}

/* Homepage revision. The launch build remains untouched. */
html.ag body .abc-detail{grid-template-columns:minmax(0,1fr)!important;padding-left:clamp(175px,17vw,215px)!important}
html.ag body #abcDetailLetter{left:32px}
html.ag body .abc-detail-copy{padding-left:8px}
html.ag body #abcDetailEyebrow{color:#fff!important;opacity:1!important;font-family:var(--serif);font-size:clamp(17px,1.8vw,24px);font-style:italic;text-shadow:0 1px 6px #46335877}
html.ag body[data-theme=day] #abcDetailEyebrow{color:#392f49!important;text-shadow:none}
html.ag body .abc-detail-copy p{margin-top:20px!important}
html.ag body .ag-letter-timer{margin-top:16px}

html.ag body .symbol.art{padding:10px 12px 36px}
html.ag body .symbol.art>img{max-width:100%;max-height:calc(100% - 22px);object-fit:contain}
html.ag body .symbol.art .art-caption{font-size:clamp(10px,.95vw,13px)!important;line-height:1.2!important;max-width:96%;bottom:13px!important;text-wrap:balance}
html.ag body .symbol.brand-symbol img[src$="mars-logo.svg"]{width:min(88%,190px);max-height:78%;object-fit:contain}
html.ag body .symbol.brand-symbol img[src$="persnickety-logo.png"]{max-width:88%;max-height:66%;object-fit:contain}
html.ag body .symbol.persnickety-art>img{width:100%;height:calc(100% - 16px);max-height:none;object-fit:cover;object-position:center top;rotate:0;filter:none}
html.ag body .arcade[data-persnickety-view="full"] .symbol.persnickety-art>img{object-fit:contain}
html.ag body .addy-badge{position:absolute;z-index:2;right:10px;top:14px;display:grid;place-content:center;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle at 31% 28%,#fff7c7,#e7ba51 35%,#a87322 80%);border:3px double #fff0b6;box-shadow:0 3px 10px #42311a70;color:#392514;transform:rotate(13deg);text-transform:uppercase}
html.ag body .addy-badge b{font:800 16px/1 Helvetica,Arial,sans-serif;letter-spacing:-.08em}
html.ag body .addy-badge small{font:800 6px/1.15 Helvetica,Arial,sans-serif;letter-spacing:.05em}
html.ag body .pers-view-switch{display:flex;gap:3px;padding:3px;border:1px solid #9e7ab8;border-radius:999px}
html.ag body .pers-view-switch button{border-radius:999px;padding:6px 10px;font:600 10px/1 Helvetica,Arial,sans-serif;white-space:nowrap}
html.ag body .pers-view-switch button[aria-pressed="true"]{background:#e094fc;color:#25192e}

/* Editorial lead: the wide Solful range, then HungerRush beside a vertical Virtue piece. */
html.ag body .alt-gallery-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:14px 0 35px;border:0;padding:0}
html.ag body #collection .shortlist-tools{margin:14px 0 35px!important}
html.ag body .alt-gallery-tools .gallery-edit-note{position:absolute;left:0;bottom:-22px;color:inherit;opacity:.7;font-size:10px}
html.ag body .alt-gallery-tools [role=status]:empty{display:none}
html.ag body .alt-gallery-tools button{padding:9px 13px;border:1px solid #ad8fc0!important;border-radius:999px;background:radial-gradient(circle at 2px 2px,#e9cded88 1px,transparent 1.5px) 0 0/9px 9px,#a675be20!important;color:inherit!important;text-decoration:none;white-space:nowrap}
html.ag body .alt-gallery-tools button:hover{background-color:#d88bf840!important}
html.ag body #projectList.alt-gallery{display:block!important;max-height:900px!important;overflow-y:auto!important;padding:0 9px 12px 0!important}
html.ag body .gallery-editorial-feature{display:grid;gap:18px;margin-bottom:18px}
html.ag body .gallery-feature-wide,.gallery-feature-pair{min-width:0}
html.ag body .gallery-feature-pair{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,.7fr);gap:18px;align-items:stretch}
html.ag body .gallery-feature-wide .alt-card-art{aspect-ratio:3/1;min-height:270px;max-height:390px}
html.ag body .gallery-feature-pair .alt-card{height:100%}
html.ag body .gallery-feature-pair .alt-card-art{aspect-ratio:auto;height:340px}
html.ag body .gallery-feature-pair .alt-card:first-child .alt-card-art{background:#eee6d9}
html.ag body .gallery-feature-pair .alt-card:last-child .alt-card-art{background:#ede9df}
html.ag body .gallery-feature-pair .alt-card-art :is(img,video){max-height:100%!important}
html.ag body .alt-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html.ag body #projectList .alt-card-open{height:100%!important}
html.ag body #projectList .alt-card-art img,html.ag body #projectList .alt-card-art video{height:100%!important;max-height:390px!important;object-fit:contain!important;background:transparent!important;padding:0!important;border-radius:4px!important}
html.ag body .alt-card-edit{z-index:4;right:9px;top:9px;padding:3px;border:1px solid #a984b8}
html.ag body .alt-card-edit [data-remove]{color:#4a2c55;font-size:21px!important}
html.ag body .alt-card-caption{min-height:64px}
html.ag body[data-theme=night] .alt-card-caption{color:#281e32}

/* A ring goes behind each sphere, then only its foreground arc crosses the face. */
html.ag body #kind-words #quoteStars :is(.star-0,.star-3,.star-5) .stellar-point{background:transparent!important;box-shadow:none!important;isolation:isolate;overflow:visible!important}
html.ag body #kind-words #quoteStars :is(.star-0,.star-3,.star-5) .stellar-point:after{display:none!important}
html.ag body #kind-words #quoteStars :is(.star-0,.star-3,.star-5) .stellar-point:before{z-index:4}
html.ag body #kind-words #quoteStars .planet-core{position:absolute;z-index:2;inset:0;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff 0 3%,#ffffffb0 11%,var(--planet-color) 38%,var(--planet-dark) 100%);box-shadow:inset -9px -10px 14px #1a143d55,0 12px 18px #03051c70}
html.ag body #kind-words #quoteStars .planet-ring{position:absolute;left:50%;top:50%;width:150%;height:36%;translate:none!important;rotate:none!important;border:2px solid #f7dbffbd;border-radius:50%;pointer-events:none}
html.ag body #kind-words #quoteStars .ring-back{z-index:1}
html.ag body #kind-words #quoteStars .ring-front{z-index:3;clip-path:inset(48% -8px -8px -8px)}
html.ag body #kind-words #quoteStars .star-3 .planet-ring{border-color:#f4dcabdc;transform:translate(-50%,-50%) rotate(13deg)}
html.ag body #kind-words #quoteStars .star-5 .planet-ring{border-color:#b4eaf8c7;transform:translate(-50%,-50%) rotate(-25deg)}

/* A small person catches the three strings above the inquiry. */
html.ag .ag-balloons{height:315px}
html.ag .ag-figure{position:absolute;left:calc(47% - 12px);bottom:0;width:80px;height:116px;overflow:visible;filter:drop-shadow(0 4px 5px #1b173f35)}
html.ag .ag-figure .figure-hair{fill:#7f5b9e;stroke:#513d77;stroke-width:2}
html.ag .ag-figure .figure-face{fill:#f6d9d1;stroke:#7a5e7f;stroke-width:1.5}
html.ag .ag-figure .figure-body,.ag-figure .figure-hand{fill:none;stroke:#76549c;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
html.ag body[data-theme=night] .ag-figure .figure-body,html.ag body[data-theme=night] .ag-figure .figure-hand{stroke:#d4b5f0}
@media(max-width:750px){
 html.ag body .abc-detail{padding-left:105px!important}
 html.ag body #abcDetailLetter{left:12px}
 html.ag body .abc-detail-copy{padding-left:0}
 html.ag body .abc-detail-copy p{margin-top:12px!important}
 html.ag body .symbol.art .art-caption{font-size:9px!important;bottom:6px!important}
 html.ag body .addy-badge{width:44px;height:44px;right:2px;top:6px}
 html.ag body .addy-badge b{font-size:10px}
 html.ag body .addy-badge small{font-size:4px}
 html.ag body .gallery-feature-pair{grid-template-columns:1fr 1fr;gap:10px}
 html.ag body .gallery-feature-wide .alt-card-art{aspect-ratio:1.65;min-height:180px}
 html.ag body .gallery-feature-pair .alt-card-art{height:205px}
 html.ag body .alt-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.ag .ag-balloons{height:240px;width:230px}
 html.ag .ag-figure{scale:.72;transform-origin:bottom left}
}
@media(max-width:520px){
 html.ag body .alt-gallery-tools .gallery-edit-note{flex-basis:auto}
 html.ag body #collection .shortlist-tools{gap:5px;margin-bottom:37px!important}
 html.ag body .alt-gallery-tools button{padding:7px 9px;font-size:9px}
 html.ag body .alt-gallery-grid{grid-template-columns:1fr}
 html.ag body .gallery-feature-pair{grid-template-columns:1.15fr .85fr}
 html.ag body .gallery-feature-pair .alt-card-art{height:160px}
 html.ag body .gallery-feature-pair .alt-card-caption small{font-size:9px}
 html.ag body .machine-bottom #result.machine-project:has(.pers-view-switch){display:grid!important;grid-template-columns:1fr;justify-items:center;gap:8px;width:100%}
 html.ag body .machine-bottom #result.machine-project:has(.pers-view-switch) .closer-look{max-width:100%;white-space:normal;text-align:center}
}
