/* AutoDM page: the automation switcher (a list on top, one phone below). Loads after scene.css.
   Icons in the list are the ones AutoDM itself uses (src/components/AutoDM/Steps/TriggerList.jsx, MustHaves/BasicArt.jsx). */
.cs-section>.sw{grid-column:1/-1;min-width:0}
.sw{--sw-grad:linear-gradient(90deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5);display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:72px}
.sw>.sw-head{grid-column:1/-1}
.portfolio-page.astra-choice .sw-head{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;font:600 var(--type-subhead)/var(--subhead-leading) var(--font-text);letter-spacing:-.01em;color:var(--ink);text-align:center}
.sw-glyph{flex:none;width:26px;height:26px}
html:not(.scene-js) .sw-list{display:none}

/* The list of automations: a vertical list on the left (desktop and tablet), the phone on the right */
.sw-list{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:32px 0 0;padding:8px;list-style:none}
.sw-list>li{margin:0;padding:0;flex:none}
.portfolio-page.astra-choice .sw-list>li+li{margin-top:0}
.sw-item{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:0 14px 0 6px;border:1.5px solid var(--line-tag);border-radius:999px;background:#fff;color:var(--ink);font:400 14px/1.2 var(--font-text);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color .2s}
.sw-item:hover{border-color:#a9afa5}
.portfolio-page.astra-choice .sw-item:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Selected: thin Instagram-gradient outline, a solid white fill, a faint halo of the same gradient behind it, and bold text. The halo sits under the white fill (::before) */
.sw-item[aria-pressed=true]{border-color:transparent;background:linear-gradient(#fff,#fff) padding-box,var(--sw-grad) border-box;font-weight:600}
.sw-item[aria-pressed=true]::before,.sw-item[aria-pressed=true]::after{content:"";position:absolute;inset:0;border-radius:inherit}
.sw-item[aria-pressed=true]::before{z-index:-1;background:#fff}
.sw-item[aria-pressed=true]::after{z-index:-2;inset:-1px;background:var(--sw-grad);filter:blur(7px);opacity:.18}
/* Bold width is kept for the plain state too, so picking an item never moves its neighbours */
.sw-name{display:inline-flex;flex-direction:column;align-items:flex-start}
.sw-name::after{content:attr(data-text);content:attr(data-text)/"";display:block;height:0;overflow:hidden;visibility:hidden;font-weight:600;user-select:none}
.sw-ic{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%}
.sw-ic svg{display:block}
/* One treatment for all six: a 30px circle, a gradient in the automation's own colour, a white 16px glyph (about 1.5px line weight) */
.ic-reel{background:linear-gradient(135deg,#24975d,#45b87f)}
.ic-dm{background:linear-gradient(135deg,#1774ff,#4b96ff)}
.ic-story{background:linear-gradient(135deg,#7300fa,#a35bff)}
.ic-menu{background:linear-gradient(135deg,#3f5bf6,#6f80ff)}
.ic-ice{background:linear-gradient(135deg,#ef6c0b,#ff9a2e)}
.ic-at{background:linear-gradient(135deg,#e0348a,#ff5fae)}
.sw-ic svg{width:16px;height:16px}

/* The phone: full size, centred. Only one journey shows at a time */
.sw-stage{display:flex;justify-content:center;margin-top:32px}
.sw-stage .scene{display:flex;justify-content:center}
.sw-scene[hidden]{display:none}

/* Half the speed of the tiles: entrances take twice as long (the kit's pace is set on each figure with data-pace) */
.sw-stage .scene [data-t]{--d:.72s}
.sw-stage .scene [data-fx=fade]{--d:.6s}
.sw-stage .scene [data-fx=pop]{--d:.64s}
.sw-stage .scene [data-fx=slide]{--d:.76s}
.sw-stage .scene [data-fx=up]{--d:.76s}

/* People: letter avatars, one colour each */
.ig-av.mono.c-teal{background:#0f766e;color:#fff}
.ig-av.mono.c-amber{background:#b45309;color:#fff}
.ig-av.mono.c-cyan{background:#0e7490;color:#fff}
.ig-av.mono.c-violet{background:#6d28d9;color:#fff}
.ig-av.mono.c-slate{background:#475569;color:#fff}

/* A second screen over the first: the DM that opens after the tap. It fades in at its time and stays */
.sw-screen{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;background:#fff}
.sw-screen>.ig-thread{flex:1}

/* Screen: a reel with its comments sheet */
.sw-reel{flex:none;height:234px}
.ig-post.sw-reel .ig-art{height:100%;aspect-ratio:auto;background:none}
.ig-post.sw-reel>.ig-post-head{padding-top:48px;padding-bottom:24px}
.sw-cover{position:absolute;inset:0;width:100%;height:100%}
.sw-cover-title{position:absolute;z-index:1;left:12px;bottom:16px;max-width:130px;font-size:19px;font-weight:600;line-height:1.1;color:#fff;text-shadow:0 1px 6px rgb(0 0 0/.35)}
.sw-sheet{flex:1;min-height:0;margin-top:-16px;z-index:1}
.sw-sheet .ig-input{position:relative;margin-top:auto;padding-bottom:12px;height:48px}
.sw-sheet .ig-comment>.ig-av.mono{font-size:10px}

/* Screen: a story, under the status bar */
.sw-story{position:absolute;inset:0;overflow:hidden;background:#222}
.sw-full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sw-story::after{content:"";position:absolute;inset:0;background:linear-gradient(rgb(0 0 0/.42),rgb(0 0 0/0) 38%,rgb(0 0 0/0) 66%,rgb(0 0 0/.4));pointer-events:none}
.portfolio-page.astra-choice .ig-storyref img,.portfolio-page.astra-choice .sw-cover{object-fit:cover}
.portfolio-page.astra-choice .ig-storyref img{position:absolute;inset:0}
.sw-prog{position:absolute;z-index:1;top:46px;left:10px;right:10px;display:flex;gap:3px}
.sw-prog i{flex:1;height:2px;border-radius:2px;background:rgb(255 255 255/.4)}
.sw-prog i.is-full{background:#fff}
.sw-prog i.is-part{background:linear-gradient(90deg,#fff 45%,rgb(255 255 255/.4) 45%)}
.sw-shead{position:absolute;z-index:1;top:56px;left:10px;right:10px;display:flex;align-items:center;gap:8px;color:#fff;font-size:13px;text-shadow:0 1px 3px rgb(0 0 0/.4)}
.sw-shead b{font-weight:600}
.sw-shead small{font-size:12px;opacity:.8}
.sw-shead .ig-av{width:30px;height:30px}
.sw-stext{position:absolute;z-index:1;left:22px;right:22px;top:150px;font-size:26px;font-weight:600;line-height:1.15;color:#fff;text-shadow:0 2px 12px rgb(0 0 0/.35)}
.sw-sreply{position:absolute;z-index:1;left:12px;right:12px;bottom:26px;display:flex;align-items:center;gap:12px}
.sw-field{position:relative;flex:1;display:flex;align-items:center;height:40px;padding:0 16px;border:1.5px solid rgb(255 255 255/.85);border-radius:999px;color:#fff;font-size:14px}
.sw-field .sw-ph{color:rgb(255 255 255/.9)}
.sw-mention{position:absolute;z-index:1;left:0;right:0;top:272px;display:flex;justify-content:center}
.sw-mention>span{display:inline-block;padding:6px 14px 5px;border-radius:9px;background:#fff;font-size:16px;font-weight:600;line-height:1.2;color:#d6249f;transform:rotate(-4deg);box-shadow:0 4px 14px rgb(0 0 0/.18)}

/* Text typed into a field, then sent. A passing part: it covers the placeholder and is gone when the message lands */
.sw-typed{position:absolute;z-index:1;left:46px;right:12px;top:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#000}
.sw-typed>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sw-typed>b{flex:none;font-weight:600;color:#0095f6}
.sw-typed.in-composer{left:42px;right:12px;font-size:13.5px}
.sw-field .sw-typed{left:16px;right:16px;color:#fff}
.sw-field .sw-typed>b{color:#fff}
.ig-composer>div{position:relative}
.scene .sw-typed.is-on>span{animation:sw-type 1.6s steps(24,end) both}
.scene .sw-typed[data-out].is-on{animation:none}
.sw-typed.is-on~.sw-ph,.sw-typed.is-on~svg{opacity:0}
@keyframes sw-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}

/* Phone and tablet */
@media (max-width:1000px){
.sw{column-gap:40px}
.sw-head{font-size:20px}
}
@media (max-width:720px){
.sw{column-gap:20px}
.sw-list{width:210px}
.sw-item{white-space:normal;padding-top:4px;padding-bottom:4px}
}
@media (max-width:600px){
.sw{display:block}
.sw-list{width:auto}
.sw-item{white-space:nowrap;padding-top:0;padding-bottom:0}
.portfolio-page.astra-choice .sw-head{justify-content:flex-start;gap:8px;font-size:20px;text-align:left}
.sw-glyph{width:24px;height:24px}
/* One row you swipe sideways. The padding leaves room for the glow */
.sw-list{flex-direction:row;align-items:center;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;gap:8px;margin:12px 0 0;padding:12px 14px;scroll-padding:0 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.sw-list::-webkit-scrollbar{display:none}
.sw-stage{display:flex;margin-top:12px}
.sw-stage .scene{width:100%}
.sw-stage .ig-phone{--ig-w:min(100%,340px)}
}
@media (prefers-reduced-motion:reduce){
.sw-item{transition:none}
}

/* Same width for every item in the vertical list (Pranav, 28 Nov) */
@media (min-width:601px){.sw-list>li{display:flex}.sw-item{flex:1;width:100%}}
.portfolio-page.astra-choice .sw-cover[src*="crunch"]{object-position:50% 12%}

/* Top picture (28 Nov): the reel with Rohan's PLAN comment, the reply and the notification, beside the DM with "Get the plan".
   Natural size 644 x 490: two phones of 300, 44 apart, the second 64 lower. Cut at y=490: below the public reply (its row ends at 485) in phone 1; phone 2 is empty white there. */
@media (min-width:1101px){
.cs-still .cs-phone--1{left:0;top:0}
.cs-still .cs-phone--2{left:344px;top:64px}
}
/* Phone layout: the comment as an Instagram comment row, a down arrow, then the DM bubble with "Get the plan" */
@media (max-width:1100px){
.cs-pic__panel{padding-bottom:16px}
.cs-still .cs-first--comment .ig-comment{padding:0}
.cs-still .cs-first--comment .ig-c-meta,.cs-still .cs-first--comment .ig-c-text{font-size:15px}
.cs-still .cs-first--comment .ig-c-reply{font-size:13px}
}

/* The agents page below the role band */
.zs-section{padding:0 0 var(--space-48,48px)}
.zs-section .zs{margin-top:0}
