/*
 * The form extras of the rail layout's "animate" variant (assets/animate-forms.js), after animatephoto.io's measurements
 * (clone-research/animatephoto-style.md): the typed script with its dashed suggestion pills and voice pills, the Public |
 * Private segment, the Translate switch, the result card's tabs, the Ideas tabs, the ratio buttons and the upscaler's lines.
 * Scoped to the variant's body class like templates/appshell/rail/variant-animate.css.
 */
.appshell-rail.appshell-rail-animate .ap-ws .ap-script { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-box { border: 1px solid var(--ap-input); border-radius: 10px; background: transparent; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-box:focus-within { border-color: var(--ap-teal); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-box textarea { min-height: 0; border: 0; border-radius: 10px 10px 0 0; background: transparent; padding: 8px 12px; font-size: 14px; line-height: 20px; box-shadow: none; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-box textarea:focus { outline: none; box-shadow: none; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-foot { display: flex; justify-content: flex-end; padding: 2px 12px 6px; font-size: 12px; line-height: 16px; color: var(--ap-mfg); font-variant-numeric: tabular-nums; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-ideas, .appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-list { display: flex; flex-wrap: wrap; gap: 6px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-idea-pill { max-width: 100%; padding: 4px 10px; border: 1px dashed var(--ap-border); border-radius: 999px; background: none; font-size: 11px; line-height: 16px; color: var(--ap-mfg); text-align: left; cursor: pointer; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-idea-pill:hover { border-color: color-mix(in srgb, var(--pc-20aab6, #20aab6) 50%, transparent); color: var(--ap-fg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voices-label { margin-right: 4px; font-size: 12px; font-weight: 500; color: var(--ap-fg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voice { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 1px solid var(--ap-border); border-radius: 999px; background: var(--ap-bg); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ap-mfg); cursor: pointer; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voice[aria-checked='true'] { border-color: transparent; background: var(--ap-grad); color: #fff; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voice-sex { font-size: 11px; opacity: .8; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voice-preview { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-left: auto; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ap-secondary); font-size: 12px; font-weight: 500; color: var(--ap-fg); cursor: pointer; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-voice-preview:disabled { opacity: .5; cursor: wait; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-script-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; line-height: 16px; color: var(--ap-mfg); }
.appshell-rail.appshell-rail-animate .ap-spin { display: inline-flex; animation: ap-spin 1s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* Public | Private */
.appshell-rail.appshell-rail-animate .ap-ws .ap-privacy { display: flex; flex-direction: column; gap: 6px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-privacy-head { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ap-fg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-tip { display: inline-flex; padding: 0; border: 0; background: none; color: var(--ap-mfg); cursor: pointer; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-tip:hover { color: var(--ap-fg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-tip-box { margin: 0; padding: 8px 10px; border: 1px solid var(--ap-border); border-radius: 10px; background: var(--ap-bg); font-size: 12px; line-height: 16px; color: var(--ap-mfg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-privacy-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.appshell-rail.appshell-rail-animate .ap-ws-editor .ap-privacy-seg .gen-opt { border-color: color-mix(in srgb, var(--pc-f59e0b, #f59e0b) 35%, transparent); }
.appshell-rail.appshell-rail-animate .ap-ws-editor .ap-privacy-seg .gen-opt[aria-pressed='true'] { background: linear-gradient(to right, var(--pc-f59e0b, #f59e0b), var(--pc-ec4899, #ec4899)); border-color: transparent; }
.appshell-rail.appshell-rail-animate .ap-ws-cards .ap-privacy-seg .gen-opt { border-color: var(--ap-border); }
.appshell-rail.appshell-rail-animate .ap-ws-cards .ap-privacy-seg .gen-opt[aria-pressed='true'] { background: var(--ap-teal); border-color: transparent; }

/* the Translate switch on the prompt's label row */
.appshell-rail.appshell-rail-animate .ap-ws .ap-translate { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-translate > span { font-size: 12px; font-weight: 500; color: var(--ap-mfg); }

/* "AI Images | History" in the result card */
.appshell-rail.appshell-rail-animate .ap-ws .ap-result-tabs { width: max-content; max-width: 100%; margin: 0 0 4px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-history { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 8px; text-align: center; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-history-link { font-size: 13px; color: var(--ap-teal); text-decoration: none; }
.appshell-rail.appshell-rail-animate .ap-ws .gen-feed.is-history .ap-history { display: flex; }
.appshell-rail.appshell-rail-animate .ap-ws .gen-feed.is-history :is([data-ap-compare], .ap-ex-head, .ap-result-media, .ap-car-host, .gen-feed-empty) { display: none !important; }
.appshell-rail.appshell-rail-animate .ap-ws.is-guest .gen-feed:not(.is-history) > .space-y-5 { display: none; }

/* Ideas under the prompt box */
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas { order: 4; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ap-fg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-label svg { color: var(--ap-teal); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 10px; background: var(--ap-muted); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-tabs button { padding: 3px 8px; border: 0; border-radius: 8px; background: none; font-size: 11px; line-height: 16px; font-weight: 500; color: var(--ap-mfg); cursor: pointer; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ideas-tabs button[aria-selected='true'] { background: var(--ap-bg); color: var(--ap-fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* the aspect ratio as buttons */
.appshell-rail.appshell-rail-animate .ap-ws .ap-ratio-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ratio-row { display: flex; flex-wrap: wrap; gap: 6px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ratio-row button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--ap-border); border-radius: 10px; background: var(--ap-bg); font: 500 12px/16px var(--ap-mono); color: var(--ap-mfg); cursor: pointer; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ratio-row button i { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.appshell-rail.appshell-rail-animate .ap-ws .ap-ratio-row button[aria-pressed='true'] { border-color: color-mix(in srgb, var(--pc-20aab6, #20aab6) 60%, transparent); background: color-mix(in srgb, var(--pc-20aab6, #20aab6) 10%, transparent); color: var(--ap-fg); }

/* the upscaler: the clip's duration, the target resolution */
.appshell-rail.appshell-rail-animate .ap-ws .ap-duration { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--ap-mfg); }
.appshell-rail.appshell-rail-animate .ap-ws .ap-target { display: block; }
