/* Promptsmith Studio's Downpour shell (2026-11-06): only what the free public site does not have. The page in the app's column and the chat list in the
   new-look sidebar. The look itself is promptsmith.css. All of it is behind UsageLimits PromptsmithNewLookOn: without the .ps2 root and the ps2-side block nothing
   here applies. */

/* Tempest's page: the same 1500 cap and side margins (.cr-page already has them); the compose bar sits on the bottom edge, so no foot padding */
.cr-root.ps2 { background: var(--ps2-page); color: var(--ps2-ink); font-size: 15px; min-height: calc(100vh - var(--dv2-phonebar, 0px)); min-height: calc(100dvh - var(--dv2-phonebar, 0px)); }
.cr-page.ps2-page { padding: 20px 40px 0; gap: 12px; min-height: calc(100vh - var(--dv2-phonebar, 0px)); min-height: calc(100dvh - var(--dv2-phonebar, 0px)); }
@container (max-width: 760px) {
	.cr-page.ps2-page { padding: 0; gap: 0; }
}

/* THE BAND'S TOP RIGHT (Alec 2026-11-22, "make it feel simple"): Prompt Drops and New chat side by side, the same white buttons. The band says one
   short line, balanced so no word is left alone on a line. */
.ps2-band-actions { position: relative; z-index: 1; flex: none; align-self: center; display: flex; align-items: center; gap: 10px; }
.cr-root.ps2 .ps2-band-actions .ps2-drops-btn { align-self: auto; }
.ps2-band-new { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 12px; background: #fff; color: #5B21B6;
	font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); transition: background .15s; white-space: nowrap; }
.ps2-band-new:hover:not(:disabled) { background: #F7F4FF; }
.ps2-band-new:focus-visible { outline: 3px solid #C4B5FD; outline-offset: 2px; }
.ps2-band-new:disabled { opacity: .6; cursor: default; }
/* the settings gear (pass 2, Alec 2026-11-22: "up next to Prompt Drops and New chat at the top right, kind of like Midjourney does"): the same white button, icon only */
.ps2-band-gear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: #fff; color: #5B21B6;
	cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); transition: background .15s, box-shadow .15s; }
.ps2-band-gear svg { transition: transform .3s ease; }
.ps2-band-gear:hover { background: #F7F4FF; }
.ps2-band-gear:hover svg, .ps2-band-gear.on svg { transform: rotate(45deg); }
.ps2-band-gear.on { background: #F3EFFD; box-shadow: 0 0 0 3px rgba(196, 181, 253, .55), 0 6px 18px -8px rgba(0, 0, 0, .55); }
.ps2-band-gear:focus-visible { outline: 3px solid #C4B5FD; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ps2-band-gear svg { transition: none; } }
.cr-root.ps2 .ps2-band p.ps2-band-line { max-width: 520px; text-wrap: balance; }
@container (max-width: 760px) {
	.ps2-band-actions { order: 4; flex: 0 0 100%; gap: 8px; margin-top: 4px; }
	.ps2-band-actions .ps2-drops-btn, .ps2-band-actions .ps2-band-new { flex: 1 1 0; justify-content: center; height: 42px; margin: 0; }
	.ps2-band-actions .ps2-band-gear { width: 42px; height: 42px; }
}

/* the chat list in the sidebar's white card, Tempest's Recent runs pattern with the one violet accent. The card's lower part (.dv2side-page) is the only scroll, so
   nothing in here can squeeze: rows keep their height at any window size. */
.dv2side .ps2-side { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 2px; font-family: Roboto, Helvetica, Arial, sans-serif; box-sizing: border-box; }
.ps2-side * { box-sizing: border-box; }
.ps2-side button:focus-visible { outline: 3px solid #6D28D9; outline-offset: 1px; }
.ps2-side-label { padding: 8px 8px 4px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #94A3B8; }
.ps2-side-ghost { display: flex; flex-direction: column; gap: 4px; margin: 2px 4px; padding: 12px; border: 1px dashed #D9CDF6; border-radius: 10px; background: #FBFAFE; font-size: 13px; line-height: 1.4; color: #64748B; }
.ps2-side-ghost b { font-size: 14px; font-weight: 600; color: #1E293B; }
.ps2-side-list { display: flex; flex-direction: column; gap: 1px; }
.ps2-side-row { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 1px; width: 100%; min-height: 50px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: #1E293B; font: inherit; text-align: left; cursor: pointer; }
.ps2-side-row:hover:not(:disabled) { background: #F8F6FD; }
.ps2-side-row.on { background: #F3EFFD; }
.ps2-side-row:disabled { cursor: default; }
.ps2-side-title { font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps2-side-row.on .ps2-side-title { color: #5B21B6; }
.ps2-side-when { font-size: 13px; line-height: 1.3; color: #64748B; }

/* THE FRAME (Alec 2026-11-07, "like a placemat"): the band, the setup row, the chat and the compose bar sit in ONE rounded panel that fills the window below
   the top, so the page is a calm app surface instead of pieces floating on the background. Only in Downpour (the free site keeps its page scroll): the page
   itself no longer scrolls, the chat log (#ps2-log) is the one scroll inside the panel, and the compose bar is the panel's bottom edge. Inner edges the frame
   makes redundant are gone: the setup row is flat on the panel, the compose bar keeps its own edge because it is the box you type in. */
.cr-root.ps2 { --ps2-page: #ECEEF7; --ps2-frame: #FCFCFF; --ps2-frame-edge: #DCE1EE;
	height: calc(100vh - var(--dv2-phonebar, 0px)); height: calc(100dvh - var(--dv2-phonebar, 0px)); min-height: 0; overflow: hidden;
	background: radial-gradient(1100px 600px at 100% 0%, rgba(124, 58, 237, .07), transparent 70%), var(--ps2-page); }
.cr-page.ps2-page { height: 100%; min-height: 0; padding: 20px 28px; gap: 0; }
.ps2-frame { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; overflow: hidden;
	background: var(--ps2-frame); border: 1px solid var(--ps2-frame-edge); border-radius: 20px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 28px 56px -36px rgba(46, 16, 101, .30); }
.cr-root.ps2 .ps2-band { flex: none; border-radius: 12px; }
.cr-root.ps2 .ps2-setup { flex: none; padding: 0 4px 12px; background: transparent; border: 0; border-bottom: 1px solid #E9ECF4; border-radius: 0; box-shadow: none; }
.cr-root.ps2 .ps2-chat { flex: 1 1 auto; min-height: 0; }
.cr-root.ps2 .ps2-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 18px 16px 10px;
	scrollbar-width: thin; scrollbar-color: #CDD3E3 transparent; }
/* THE SPARKS NEVER CLIP (Alec 2026-11-29): the log is a scroll, so it clips at its padding edge, and the badge's halo and left sparks reach ~50px left of
   its centre. The log reaches out over the frame's own padding (negative margin, the same amount back as padding), so the words don't move but the clip edge
   sits on the frame's edge. The forge row keeps room under it, so the halo and the low spark still show when it is scrolled to the bottom. */
.cr-root.ps2 .ps2-log { margin-left: -14px; padding-left: 30px; }
.cr-root.ps2 .ps2-forge { padding-bottom: 26px; }
.cr-root.ps2 .ps2-msg { scroll-margin-top: 14px; scroll-margin-bottom: 14px; }
.cr-root.ps2 .ps2-block[data-long="1"] .ps2-block-body.is-folded::after { background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); }
.cr-root.ps2 .ps2-steer { flex: none; margin-top: -8px; padding: 0 0 2px 52px; }
.cr-root.ps2 .ps2-dock { position: relative; flex: none; margin-top: auto; padding: 10px 0 0; background: none; }
.cr-root.ps2 .ps2-compose { border-color: #D9DFEC; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.cr-root.ps2 .ps2-compose:focus-within { border-color: var(--ps2-accent); box-shadow: 0 0 0 3px rgba(109, 40, 217, .12); }
.cr-root.ps2 .ps2-tip { margin-top: 6px; }
/* a calm limit line above the box (a short break, one at a time, a minute's pause, off topic, the day's cap): neutral, never the red failure look (2026-11-14). Downpour only. */
.cr-root.ps2 .ps2-problem.is-calm { background: #F8FAFC; color: #334155; border-color: #CBD5E1; box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .35); }
.cr-root.ps2 .ps2-wait { margin: auto; }

/* the band's subtitle ("Your prompt helper", 2026-11-09) is gone since 2026-11-22 (Alec: "I don't think we need it") */

/* small laptops (1366x768, 1280x720): the band gives the chat its room */
@media (max-height: 820px) and (min-width: 768px) {
	.cr-page.ps2-page { padding: 14px 22px; }
	.ps2-frame { padding: 12px; gap: 10px; border-radius: 18px; }
	.cr-root.ps2 .ps2-band { min-height: 0; padding: 12px 20px; gap: 14px; border-radius: 11px; }
	.cr-root.ps2 .ps2-band-logo { width: 50px; height: 50px; border-radius: 13px; }
	.cr-root.ps2 .ps2-band h1 { font-size: 22px; margin-bottom: 2px; }
	.cr-root.ps2 .ps2-band p { font-size: 14px; }
	.cr-root.ps2 .ps2-setup { padding-bottom: 10px; }
	.cr-root.ps2 .ps2-log { padding-top: 14px; margin-left: -12px; padding-left: 28px; }
	.cr-root.ps2 .ps2-dock { padding-top: 8px; }
}

/* phones: the frame goes edge to edge with no radius, and the setup row is the card that overlaps the band again */
@container (max-width: 760px) {
	.cr-page.ps2-page { padding: 0; }
	.ps2-frame { gap: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--ps2-frame); }
	.cr-root.ps2 .ps2-band { border-radius: 0; }
	.cr-root.ps2 .ps2-setup { padding: 8px; background: var(--ps2-card); border: 1px solid var(--ps2-edge); border-radius: 12px; box-shadow: var(--ps2-shadow); }
	.cr-root.ps2 .ps2-chat { padding: 0; }
	.cr-root.ps2 .ps2-log { margin-left: 0; padding: 14px 12px 8px; }
	.cr-root.ps2 .ps2-steer { margin: -6px -12px 0; padding: 2px 12px; }
	.cr-root.ps2 .ps2-dock { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #E9ECF4; }
}

/* PASS 2 (Alec 2026-11-07): Promptsmith answers in ONE bubble (his words and the prompt blocks), the avatar outside it at the top left, like the member's
   bubble on the right but wider. The blocks stay their own white cards with Copy, softened so they don't read as a box in a box. Keep steering sits just
   under the last bubble, inside the scroll. The Plan / Output / Prompts bar is now one small Setup button above the compose box with a popover (a bottom
   sheet on phones); same choices, same save. */
.cr-root.ps2 .ps2-msg.smith { gap: 12px; }
.cr-root.ps2 .ps2-say { flex: 0 1 auto; width: min(100%, 1120px); gap: 12px; padding: 16px 18px 18px; background: #FAF8FF; border: 1px solid #ECE6FB; border-radius: 6px 20px 20px 20px;
	box-shadow: 0 1px 2px rgba(46, 16, 101, .03); }
.cr-root.ps2 .ps2-say-text { padding-top: 0; font-size: 16px; line-height: 1.55; }
.cr-root.ps2 .ps2-say .ps2-block { background: #fff; border-color: #EEE9FA; border-radius: 14px; box-shadow: none; }
.cr-root.ps2 .ps2-say .ps2-block.is-copied { border-color: #22C55E; }
.cr-root.ps2 .ps2-msg.me { border-radius: 20px 20px 6px 20px; padding: 11px 16px; }
/* a brand new answer: the bubble arrives with its words (if the script never comes, it shows by itself after 2 s, like the text) */
.cr-root.ps2 .ps2-msg[data-rv="pending"] .ps2-say { opacity: 0; animation: ps2-show-block 0s linear 2s forwards; }
.cr-root.ps2 .ps2-msg[data-rv="play"] .ps2-say { animation: ps2-bubble-in .32s cubic-bezier(.2, .8, .2, 1) both; transition: height .12s linear; } /* promptsmith.js grows it with the reveal */
@keyframes ps2-bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cr-root.ps2 .ps2-log:has(.ps2-msg[data-rv]) .ps2-steer { opacity: 0; pointer-events: none; }

/* the settings popover (pass 2, 2026-11-22): it opens from the gear at the band's top right, anchored under it (outside the band, which clips; .ps2-top
   holds both). On phones it stays the bottom sheet (below). It was the "Pro · Permutations · Auto (40)" pill over the box with a "?" beside it. */
.ps2-top { position: relative; z-index: 45; flex: none; }
.ps2-tools-scrim { position: fixed; inset: 0; z-index: 40; }
.ps2-tools-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 41; display: grid; gap: 12px; width: max-content; max-width: min(600px, calc(100vw - 32px)); padding: 14px 16px 16px;
	background: #fff; border: 1px solid #E4DDF7; border-radius: 16px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 28px 56px -24px rgba(46, 16, 101, .38); animation: ps2-pop-up .16s ease-out both; }
@keyframes ps2-pop-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ps2-pop-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@container (min-width: 761px) {
	.ps2-top .ps2-tools-pop { top: calc(100% + 8px); bottom: auto; left: auto; right: 26px; animation-name: ps2-pop-down; } /* its right edge under the gear's */
}
@media (max-height: 820px) and (min-width: 768px) {
	@container (min-width: 761px) { .ps2-top .ps2-tools-pop { right: 20px; } } /* the band's smaller padding there */
}
.ps2-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps2-tools-head b { font-size: 15px; font-weight: 700; color: var(--ps2-ink); }
.ps2-tools-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ps2-ink-3); font-size: 20px; line-height: 1; cursor: pointer; }
.ps2-tools-x:hover { background: #F4F2FA; color: var(--ps2-ink); }
.ps2-tools-row { display: grid; grid-template-columns: 96px auto; align-items: center; gap: 12px; }
.ps2-tools-row .ps2-seg { justify-self: start; } /* each choice keeps its own width; the Output pair doesn't stretch to the row */
.ps2-tools-label { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--ps2-ink-3); white-space: nowrap; }
/* the first visit's question (2026-11-22): the question is the heading, a touch bigger, and just the plan row under it */
.ps2-tools-pop.is-first .ps2-tools-head b { font-size: 16px; }
.ps2-tools-scrim.is-first { background: rgba(15, 23, 42, .14); animation: ps2-dim-in .2s ease-out both; } /* a soft dim says "this first", so a click on the page reads as closing it */

@container (max-width: 760px) {
	.cr-root.ps2 .ps2-band { padding-bottom: 14px; }
	.cr-root.ps2 .ps2-msg.smith { display: flex; gap: 8px; }
	.cr-root.ps2 .ps2-mark, .cr-root.ps2 .ps2-mark img { width: 30px; height: 30px; border-radius: 9px; }
	.cr-root.ps2 .ps2-say { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 10px; padding: 12px 12px 14px; border-radius: 6px 18px 18px 18px; }
	.cr-root.ps2 .ps2-say-text { font-size: 15px; }
	.cr-root.ps2 .ps2-say .ps2-block { margin-top: 0; padding: 12px; }
	.ps2-tools-scrim { background: rgba(15, 23, 42, .32); }
	.ps2-tools-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; gap: 14px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0; border-bottom: 0; animation: ps2-sheet-up .2s ease-out both; }
	@keyframes ps2-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
	.ps2-tools-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.ps2-tools-row .ps2-seg { display: flex; justify-self: stretch; }
	.ps2-tools-row .ps2-seg button { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 6px; }
}

/* PROMPT DROPS (Alec 2026-11-07, option B): the band's button, the drawer beside the chat (over the chat's right side on narrower windows, a full screen
   sheet on phones), the drop list as two columns of covers, an opened drop's pictures with their prompts, and the full size view. */
.ps2-drops-btn { position: relative; z-index: 1; flex: none; align-self: center; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 16px; border: 0; border-radius: 12px;
	background: #fff; color: #5B21B6; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); transition: background .15s, box-shadow .15s; }
.ps2-drops-btn:hover { background: #F7F4FF; }
.ps2-drops-btn.on { background: #F3EFFD; box-shadow: 0 0 0 3px rgba(196, 181, 253, .55), 0 6px 18px -8px rgba(0, 0, 0, .55); }
.ps2-drops-btn:focus-visible { outline: 3px solid #C4B5FD; outline-offset: 2px; }

.ps2-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; }
.cr-root.ps2 .ps2-body > .ps2-chat { flex: 1 1 auto; min-width: 0; }
/* THE DRAWER (Alec 2026-11-22: "open it outside of the chat window"): its own layer over the whole window, drawn after .cr-root (a size container would hold
   a fixed layer), so it sits over the sidebar too. A dim backdrop that closes it on a click; the panel slides in from the right edge. Above the sidebar
   (1000), under the full size picture (2100). */
.ps2-drawer-layer { position: fixed; inset: 0; z-index: 1300; font-family: Roboto, Helvetica, Arial, sans-serif; font-size: 15px; color: #0F172A;
	--ps2-accent: #6D28D9; --ps2-accent-deep: #5B21B6; --ps2-accent-soft: #F3EFFD; --ps2-accent-edge: #D9CDF6; --ps2-ok: #15803D; --ps2-ink: #0F172A; --ps2-ink-3: #64748B; }
.ps2-drawer-dim { position: absolute; inset: 0; background: rgba(15, 23, 42, .36); animation: ps2-dim-in .2s ease-out both; }
@keyframes ps2-dim-in { from { opacity: 0; } to { opacity: 1; } }
.ps2-drops { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: #fff;
	border-left: 1px solid #E4E7F0; border-radius: 20px 0 0 20px; box-shadow: -24px 0 60px -24px rgba(46, 16, 101, .45); animation: ps2-drops-in .24s cubic-bezier(.2, .8, .2, 1) both; outline: none; }
@keyframes ps2-drops-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ps2-drops, .ps2-drawer-dim { animation: none; } }
.ps2-drops * { box-sizing: border-box; }
.ps2-drops button { font: inherit; }
.ps2-drops button:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; }
.ps2-drops-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 18px; }
.ps2-drops-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.2px; color: #111827; }
.ps2-drops-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: #334155; cursor: pointer; }
.ps2-drops-x:hover { background: #F8FAFC; }
.ps2-drops-back { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: #1E293B; font-size: 14px; font-weight: 700; cursor: pointer; }
.ps2-drops-back:hover { background: #F8FAFC; }
.ps2-drops-tools { flex: none; padding: 0 18px 12px; border-bottom: 1px solid #EEF0F6; }
.ps2-drops-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid #DCE1EE; border-radius: 12px; background: #fff; color: #94A3B8; cursor: text; }
.ps2-drops-search:focus-within { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.ps2-drops-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: #1E293B; font: inherit; font-size: 15px; }
.ps2-drops-search input::placeholder { color: #94A3B8; }
.ps2-drops-search input:focus-visible { outline: none; } /* the box shows the focus ring, not a second one inside it */
.ps2-drops-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ps2-drops-chips button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; color: #334155; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ps2-drops-chips button i { font-style: normal; font-size: 12px; font-weight: 600; color: #94A3B8; }
.ps2-drops-chips button:hover { border-color: #C4B5FD; }
.ps2-drops-chips button.on { background: #F3EFFD; border-color: #C4B5FD; color: #5B21B6; }
.ps2-drops-chips button.on i { color: #7C3AED; }
.ps2-drops-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 20px; scrollbar-width: thin; scrollbar-color: #CDD3E3 transparent; }
/* PASS 2 (Alec 2026-11-22: "not separated by drop, separated by image"): every picture at its own shape in justified rows (read left to right, each row one
   height: a tile grows in step with its shape, --r = width / height), a click opens it over the grid. The last row keeps its natural size (::after). */
.ps2-pics-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ps2-pics-grid::after { content: ""; flex-grow: 1000000; }
.ps2-pic-tile { --r: 1; display: block; flex: calc(var(--r) * 100) 1 calc(var(--r) * 132px); aspect-ratio: var(--r); min-width: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #F1EFF8;
	cursor: pointer; box-shadow: 0 0 0 1px rgba(15, 23, 42, .05); transition: box-shadow .15s; }
.ps2-pic-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.ps2-pic-tile:hover { box-shadow: 0 0 0 2px #7C3AED, 0 12px 24px -16px rgba(46, 16, 101, .6); }
.ps2-pic-tile:hover img { filter: brightness(1.04); }
.ps2-pic-tile.is-ghost { cursor: default; background: linear-gradient(90deg, #F1EFF8 0%, #F8F7FC 50%, #F1EFF8 100%); background-size: 200% 100%; animation: ps2-drops-shine 1.4s linear infinite; }
@keyframes ps2-drops-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ps2-drops-empty { padding: 40px 12px; text-align: center; color: #64748B; font-size: 15px; }
.ps2-drops-empty p { margin: 0 0 12px; }
.ps2-drops-empty button { height: 38px; padding: 0 16px; border: 1px solid #D8CCF7; border-radius: 10px; background: #fff; color: #5B21B6; font-weight: 700; cursor: pointer; }
/* an open picture: over the whole drawer, big, its prompt, Use this and Copy; arrows step through the grid */
.ps2-pic-view { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; min-height: 0; background: #fff; animation: ps2-dim-in .14s ease-out both; }
.ps2-pic-view .ps2-drops-head { padding-bottom: 10px; }
.ps2-pic-view .ps2-drops-back { width: 38px; padding: 0; justify-content: center; }
.ps2-pic-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 22px; scrollbar-width: thin; scrollbar-color: #CDD3E3 transparent; }
.ps2-pic-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 16px 56px; border-radius: 14px; background: #F4F2FB; }
.ps2-pic-big { display: block; max-width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.ps2-pic-big img { display: block; max-width: 100%; max-height: min(52vh, 460px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .6); }
.ps2-pic-step { position: absolute; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid #E4E7F0; border-radius: 50%;
	background: #fff; color: #1E293B; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .5); transition: color .15s, border-color .15s; }
.ps2-pic-step:hover { color: #5B21B6; border-color: #C4B5FD; }
.ps2-pic-step.is-prev { left: 8px; }
.ps2-pic-step.is-next { right: 8px; }
.ps2-drop-text { margin: 14px 2px 0; font-size: 14.5px; line-height: 1.6; color: #334155; overflow-wrap: break-word; white-space: pre-wrap; user-select: text; }
.ps2-drop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ps2-drop-use, .ps2-drop-copy { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ps2-drop-use { border: 0; background: #6D28D9; color: #fff; }
.ps2-drop-use:hover:not(:disabled) { background: #5B21B6; }
.ps2-drop-use:disabled { opacity: .55; cursor: default; }
.ps2-drop-copy { border: 1px solid #D8CCF7; background: #fff; color: #5B21B6; }
.ps2-drop-copy:hover { background: #F7F4FF; }
.ps2-drop-copy.done, .ps2-drop-copy.done:hover { border-color: #86EFAC; background: #F0FDF4; color: #15803D; }

/* the member's "Make more like this" bubble: the label over the prompt it sent */
.ps2-more-like { display: flex; flex-direction: column; gap: 4px; }
.ps2-more-like b { color: #6D28D9; font-size: 14px; font-weight: 700; }
.ps2-more-like span { white-space: pre-wrap; }
/* the picture sits beside the words, like the mockup, not alone on its own row */
.cr-root.ps2 .ps2-msg.me:has(.ps2-more-like) { display: flex; align-items: flex-start; gap: 14px; }
.cr-root.ps2 .ps2-msg.me:has(.ps2-more-like) .ps2-pics { flex: none; margin: 2px 0 0; }
.cr-root.ps2 .ps2-msg.me:has(.ps2-more-like) .ps2-pics img { width: 76px; height: 76px; }
.cr-root.ps2 .ps2-msg.me .ps2-more-like { margin: 0; }

/* a picture full size */
.ps2-zoom { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(10, 8, 25, .88); cursor: zoom-out; animation: ps2-zoom-in .16s ease-out both; }
@keyframes ps2-zoom-in { from { opacity: 0; } to { opacity: 1; } }
.ps2-zoom img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); cursor: default; }
.ps2-zoom-x { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.ps2-zoom-x:hover { background: rgba(255, 255, 255, .26); }

/* phones: the band's buttons get their own row under the words (above), and the drawer is a full screen sheet with its close button. A media query, not a
   container one: the drawer is outside the page's container. */
@media (max-width: 760px) {
	.ps2-drops { inset: 0; width: auto; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); animation: ps2-sheet-in .22s ease-out both; }
	@keyframes ps2-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
	.ps2-drops-head { padding: 14px 14px 10px 16px; }
	.ps2-drops-tools { padding: 0 14px 10px; }
	.ps2-drops-chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px -14px 0; padding: 0 14px 2px; scrollbar-width: none; }
	.ps2-drops-chips::-webkit-scrollbar { display: none; }
	.ps2-drops-scroll { padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
	.ps2-pic-tile { flex-basis: calc(var(--r) * 104px); }
	.ps2-pic-stage { padding: 12px 48px; }
	.ps2-pic-big img { max-height: 46vh; }
	.ps2-zoom { padding: 12px; }
}

/* ================= PASS 2 (Alec 2026-11-22, "super simple and sexy") ================= */

/* the empty state: "What shall we make today?", six idea cards with a Prompt Drops picture each (the idea's two colors until it's in), one line for a picture */
.cr-root.ps2 .ps2-hello { gap: 0; padding: 12px 0 16px; }
.cr-root.ps2 .ps2-ideas { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 1120px; margin: 22px auto 0; }
.cr-root.ps2 .ps2-idea.is-pic { gap: 0; min-height: 0; padding: 0; overflow: hidden; border-radius: 14px; text-align: left; }
.ps2-idea-pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(135deg, var(--a, #A78BFA), var(--b, #6C8CFF)); }
.ps2-idea-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.cr-root.ps2 .ps2-idea.is-pic:hover:not(:disabled) .ps2-idea-pic img { transform: scale(1.04); }
.cr-root.ps2 .ps2-idea.is-pic b { display: block; padding: 10px 12px 12px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.ps2-hello-pic { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-top: 18px; padding: 0 16px; border: 1px dashed #CDBEF3; border-radius: 999px; background: transparent;
	color: var(--ps2-accent-deep); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.ps2-hello-pic:hover:not(:disabled) { background: var(--ps2-accent-soft); border-color: var(--ps2-accent-edge); }
.ps2-hello-pic:disabled { opacity: .55; cursor: default; }
@container (max-width: 1060px) {
	.cr-root.ps2 .ps2-hello { padding-top: 0; }
	.cr-root.ps2 .ps2-ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin-top: 16px; }
	.ps2-idea-pic { aspect-ratio: 16 / 9; }
	.cr-root.ps2 .ps2-idea.is-pic b { padding: 8px 12px 10px; }
	.ps2-hello-pic { margin-top: 14px; }
}
@container (max-width: 760px) {
	.cr-root.ps2 .ps2-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
	.cr-root.ps2 .ps2-idea.is-pic b { padding: 8px 10px 10px; font-size: 14px; }
}

/* NEED IDEAS? (lead review: one row, one left edge) the last chip of the Keep steering row; it opens a slim row of drop pictures in the row's place, with an x
   to fold it back. A click on a picture steers the chat. Only the row scrolls (arrows, the wheel, a swipe), never the page. */
.ps2-steer .ps2-ideas-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 11px; color: var(--ps2-accent-deep); }
.ps2-steer .ps2-ideas-chip svg { flex: none; }
.cr-root.ps2 .ps2-steer.is-strip { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.ps2-steer.is-strip .ps2-strip-wrap { margin-left: -5px; } /* the first picture lines up with the row's left edge (the row pads 5px for the hover ring) */
.ps2-strip-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ps2-edge); border-radius: 50%;
	background: #fff; color: var(--ps2-ink-2); cursor: pointer; transition: color .15s, border-color .15s; }
.ps2-strip-x:hover { color: var(--ps2-ink); border-color: #B9A5EE; }
/* the steer row's chip look (.ps2-steer button) stays off the pictures, the arrows and the x */
.ps2-steer.is-strip button.ps2-strip-pic { height: 48px; padding: 0; border: 0; border-radius: 10px; background: #EEEAF8; }
.ps2-steer.is-strip button.ps2-strip-arrow { height: 30px; padding: 0; border: 1px solid #E2E8F0; border-radius: 50%; background: #fff; }
.ps2-steer.is-strip button.ps2-strip-x { height: 32px; padding: 0; border-radius: 50%; background: #fff; }
.ps2-strip-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.ps2-strip-row { --fl: 0px; --fr: 0px; display: flex; gap: 8px; margin: -5px 0; padding: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.ps2-strip-row::-webkit-scrollbar { display: none; }
.ps2-strip-wrap:not(.at-start) .ps2-strip-row { --fl: 44px; }
.ps2-strip-wrap:not(.at-end) .ps2-strip-row { --fr: 44px; }
.ps2-strip-pic { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #EEEAF8; cursor: pointer;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .06); transition: transform .15s, box-shadow .15s; }
.ps2-strip-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps2-strip-pic:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ps2-accent), 0 8px 16px -10px rgba(46, 16, 101, .7); }
.cr-root.ps2 .ps2-strip-pic:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ps2-accent); }
.ps2-strip-pic:disabled { opacity: .5; cursor: default; }
.ps2-strip-arrow { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-top: -15px; padding: 0;
	border: 1px solid #E2E8F0; border-radius: 50%; background: #fff; color: #334155; cursor: pointer; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .45); transition: opacity .15s, color .15s; }
.ps2-strip-arrow:hover { color: var(--ps2-accent-deep); border-color: #C4B5FD; }
.ps2-strip-arrow.is-prev { left: 0; }
.ps2-strip-arrow.is-next { right: 0; }
.ps2-strip-wrap.at-start .is-prev, .ps2-strip-wrap.at-end .is-next { opacity: 0; pointer-events: none; }
@container (max-width: 760px) {
	.ps2-strip-arrow { display: none; }
	.ps2-strip-pic { width: 44px; height: 44px; }
}

/* the box: the picture button is just its icon */
.cr-root.ps2 .ps2-attach.is-icon { width: 42px; padding: 0; justify-content: center; }
/* the pictures waiting to go sit just over the box, no line under them */
.cr-root.ps2 .ps2-pending { padding-bottom: 8px; }

/* RECORDING: the box becomes Cancel, the live waveform, the time and Done (the box and Send stay in the page, hidden: what was typed and Enter keep) */
.cr-root.ps2 .ps2-compose.is-rec { align-items: center; border-color: #C4B5FD; box-shadow: 0 0 0 3px rgba(109, 40, 217, .1); }
.cr-root.ps2 .ps2-compose.is-rec > :is(.ps2-attach, textarea, .ps2-send) { display: none; }
.ps2-rec { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; height: 42px; }
.ps2-rec-x, .ps2-rec-done { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 10px; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s; }
.ps2-rec-x { border: 1px solid var(--ps2-edge); background: #fff; color: var(--ps2-ink-2); }
.ps2-rec-x:hover { border-color: #FCA5A5; background: #FEF2F2; color: #B91C1C; }
.ps2-rec-done { border: 0; background: var(--ps2-accent); color: #fff; }
.ps2-rec-done:hover { background: var(--ps2-accent-deep); }
.ps2-rec .ps2-mic-dot { flex: none; }
.ps2-rec-wave { flex: 1 1 auto; min-width: 0; display: block; height: 32px; color: var(--ps2-accent); }
.ps2-rec .ps2-mic-time { flex: none; min-width: 38px; font-size: 15px; font-weight: 600; color: var(--ps2-ink-2); text-align: right; }

/* DROP A PICTURE anywhere on the card: one clear overlay over the whole frame while a picture is dragged over it */
.cr-root.ps2 .ps2-frame { position: relative; }
.cr-root.ps2 .ps2-frame > .ps2-dropnote { display: none; }
.cr-root.ps2 .ps2-frame.is-drop > .ps2-dropnote { position: absolute; inset: 8px; z-index: 60; display: flex; align-items: center; justify-content: center; pointer-events: none;
	background: rgba(243, 239, 253, .9); border: 2px dashed var(--ps2-accent); border-radius: 16px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: ps2-dim-in .12s ease-out both; }
.cr-root.ps2 .ps2-frame > .ps2-dropnote span { position: static; display: flex; flex-direction: column; align-items: center; gap: 10px; width: auto; margin: 0; padding: 24px 40px;
	background: #fff; border: 1px solid var(--ps2-accent-edge); border-radius: 16px; box-shadow: 0 20px 40px -24px rgba(46, 16, 101, .5); color: var(--ps2-accent); }
.cr-root.ps2 .ps2-frame > .ps2-dropnote b { font-size: 19px; font-weight: 700; color: var(--ps2-accent-deep); }
/* THE QUEUED MESSAGE (2026-11-29): typed while a reply is written, it waits under the last bubble as a muted, dashed copy of a sent one, with a small
   "Queued" tag and an x to take it back. Once it goes it is drawn as a normal sent bubble. Send reads Queue meanwhile (same button, same color). */
.cr-root.ps2 .ps2-msg.me.is-queued { background: #FAF8FE; border: 1px dashed var(--ps2-accent-edge); color: var(--ps2-ink-3); padding-top: 8px; animation: ps2-queued-in .16s ease-out both; }
.cr-root.ps2 .ps2-msg.me.is-queued p { margin: 0; white-space: pre-wrap; }
.cr-root.ps2 .ps2-msg.me.is-queued .ps2-pics img { width: 56px; height: 56px; border-radius: 8px; opacity: .8; }
.cr-root.ps2 .ps2-queued-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 -6px 4px 0; }
.cr-root.ps2 .ps2-queued-tag { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ps2-accent-deep); opacity: .75; }
.cr-root.ps2 .ps2-queued-x { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px;
	background: transparent; color: var(--ps2-ink-3); cursor: pointer; transition: background .15s, color .15s; }
.cr-root.ps2 .ps2-queued-x:hover { background: var(--ps2-accent-soft); color: var(--ps2-accent-deep); }
.cr-root.ps2 .ps2-queued-x:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ps2-accent); }
@keyframes ps2-queued-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cr-root.ps2 .ps2-msg.me.is-queued { animation: none; } }
