/* One quiet conversation surface, shared by the gallery and studio. */
.gallery-chat{position:relative;padding:24px 28px 18px;margin:24px 0 34px;border-radius:24px;background:linear-gradient(130deg,#21182e,#14111c 70%);box-shadow:0 12px 36px #0002;backdrop-filter:none;-webkit-backdrop-filter:none;scroll-margin-top:140px;min-width:0}
.chat-heading{align-items:flex-start;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.chat-identity{display:flex;align-items:center;gap:15px;min-width:0}.chat-avatar{display:grid;place-items:center;flex:0 0 45px;height:45px;border:1px solid #b18ce435;border-radius:15px;background:#b18ce410;color:var(--accent2)}
.chat-kicker{display:block;font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:var(--soft)}
.gallery-chat .chat-heading h2{font-size:22px;line-height:1.3;letter-spacing:-.6px;font-weight:550;margin:5px 0 0}.chat-heading p{font-size:11px;color:var(--soft);line-height:1.6;margin:7px 0 0}.chat-heading-meta{display:flex;gap:8px;align-items:end;flex-direction:column;flex-shrink:0;padding-top:4px}.chat-heading-meta .status-pill{font-size:9px;border-color:#ffffff18}
.chat-new-badge{font-size:10px;color:#e4d4ff;background:#a379ff25;border:1px solid #a379ff50;border-radius:20px;padding:3px 10px}
.gallery-chat .chat-messages{height:280px;max-height:44dvh;min-height:180px;display:flex;flex-direction:column;align-items:stretch;gap:14px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8e73ad55 transparent;scrollbar-gutter:stable;padding:22px max(12px,calc((100% - 920px)/2));border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.gallery-chat .chat-message{flex:0 0 auto;min-width:0;max-width:min(78%,640px);border:1px solid #ffffff14;border-radius:15px 15px 15px 4px;padding:12px 16px;background:#ffffff06;align-self:flex-start;box-shadow:none}
.gallery-chat .chat-message.admin,.gallery-chat .chat-message.customer{align-self:flex-start;background:#ffffff06;border-radius:15px 15px 15px 4px}
.gallery-chat[data-role=admin] .chat-message.admin,.gallery-chat[data-role=customer] .chat-message.customer{align-self:flex-end;background:#8b5cf619;border-color:#a379ff28;border-radius:15px 15px 4px 15px}
.gallery-chat .chat-message p{font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 8px}.gallery-chat .chat-message small{font-size:9px;letter-spacing:.15px;color:#d0b7ef}.gallery-chat .chat-message time{display:block;font-size:9px;line-height:1.5;color:#a398b0}
.gallery-chat .chat-message.system{max-width:min(90%,740px);align-self:center;background:#b18ce408;border:1px solid #b18ce419;border-radius:12px;padding:11px 16px}.gallery-chat .chat-message.system small{font-size:8px;color:#bda5d8}.gallery-chat .chat-message.system p{font-size:11px;color:#d0c7d9;line-height:1.75}.gallery-chat .chat-message.system time{font-size:8px;color:#91849f}
.chat-empty{align-self:center;margin:auto!important;text-align:center;font-size:12px;color:var(--soft)}
.gallery-chat .chat-form{max-width:920px;margin:18px auto 0;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:end}.gallery-chat .chat-form label{min-width:0;gap:8px;font-size:10px;color:var(--soft)}.gallery-chat .chat-form textarea{min-height:68px;max-height:180px;resize:vertical;font-size:12px;line-height:1.65;padding:11px 14px;border:1px solid #ffffff20;border-radius:13px;background:#09070f55}.gallery-chat .chat-form .btn{font-size:11px;padding:12px 18px;height:auto;min-height:44px;border-radius:12px;white-space:nowrap}.gallery-chat .chat-status{font-size:10px;line-height:1.6;min-height:0}.gallery-chat .chat-status:empty{display:none}.chat-footnote{text-align:center;margin:13px 0 0;font-size:9px;color:#93869f;line-height:1.6}
.chat-latest{display:block;margin:12px auto 0;padding:6px 14px;border:1px solid #b18ce440;border-radius:20px;background:#38234f;color:#e4d4ff;font-size:10px}.gallery-chat>[data-chat-download]{display:table;font-size:11px;margin:15px auto 0}
.conversation-alert{position:fixed;right:26px;bottom:24px;z-index:70;display:flex;align-items:center;gap:24px;padding:14px 20px;max-width:calc(100vw - 32px);border:1px solid #b18ce46b;border-radius:17px;background:#2b1c3f;box-shadow:0 12px 45px #0007;font-size:12px;color:#f3eaff}.conversation-alert span{font-size:10px;color:#c8a5fa;white-space:nowrap}
/* A sticky summary is confined to the side column during selection. */
.customer-gallery>.selection-summary{position:static;grid-column:auto;grid-row:auto;margin:0 0 30px;padding:26px 28px;background:#ffffff05;box-shadow:none;border-radius:23px}.customer-gallery>.selection-summary .btn{display:inline-flex;margin-top:15px;font-size:12px}.customer-gallery>.selection-summary .order-summary{gap:16px}.customer-gallery>.photo-grid{position:relative;isolation:isolate;clear:both}.customer-gallery .selection-form>.selection-summary{z-index:1;background:#17121f}.customer-gallery .selection-form{margin-top:30px}
.chat-widget .gallery-chat{background:transparent;padding:18px;margin:0;isolation:auto}.chat-widget .chat-messages{height:260px;max-height:37dvh;padding:10px 0 18px}.chat-widget .chat-message{max-width:91%}.chat-widget .chat-message.system{max-width:97%}.chat-widget .chat-form{grid-template-columns:1fr;margin-top:14px}.chat-widget .chat-form .btn{justify-self:end}.chat-widget .chat-footnote{font-size:8px}.chat-widget .conversation-alert{display:none!important}
@media(min-width:1600px){.gallery-chat .chat-messages{height:310px}}
.admin-gallery-top{display:grid;gap:22px;margin:25px 0 32px;align-items:start}.admin-gallery-top>.selection-summary,.admin-gallery-top>.gallery-chat{margin:0;min-width:0}.admin-gallery-top>.selection-summary{padding:25px;border-radius:24px}.admin-gallery-top .gallery-heading{align-items:start;flex-wrap:wrap;gap:12px}.admin-gallery-top .gallery-heading>span{font-size:11px;color:var(--soft)}.admin-gallery-top h2{overflow-wrap:anywhere}.admin-gallery-top .selection-summary>p{font-size:12px}.admin-gallery-top .selection-summary>.note{font-size:11px}.admin-gallery-top .selection-actions{gap:10px}.admin-gallery-top .selection-actions .btn{font-size:10px;padding:11px 14px}.admin-gallery-top .stage-actions{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.admin-gallery-top .billing-controls .check{font-size:11px}
@media(min-width:1050px){.admin-gallery-top{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px}.admin-gallery-top>.gallery-chat{padding:23px 22px 16px}.admin-gallery-top .chat-avatar{flex-basis:38px;height:38px;border-radius:12px}.admin-gallery-top .chat-identity{gap:12px}.admin-gallery-top .chat-heading h2{font-size:21px}.admin-gallery-top .chat-heading p{font-size:10px}.admin-gallery-top .chat-messages{height:225px;max-height:36dvh;min-height:160px;padding:18px 3px}.admin-gallery-top .chat-message{max-width:91%}.admin-gallery-top .chat-message.system{max-width:98%}.admin-gallery-top .chat-form{gap:9px;margin-top:15px}.admin-gallery-top .chat-form textarea{min-height:64px;font-size:11px}.admin-gallery-top .chat-form .btn{padding:11px 13px;font-size:10px}.admin-gallery-top .chat-heading-meta .status-pill{font-size:8px}.admin-gallery-top .chat-heading{gap:12px}.admin-gallery-top .chat-footnote{font-size:8px}.admin-gallery-top .selection-summary .gallery-heading h2{font-size:27px;line-height:1.25;margin-top:14px}}
@media(max-width:800px){.customer-gallery .selection-form>.selection-summary{position:static;order:1;width:100%;padding:25px}}
@media(max-width:760px){.gallery-chat{padding:20px;margin-bottom:28px;border-radius:21px}.chat-heading{padding-bottom:17px;gap:12px}.chat-identity{gap:12px}.gallery-chat .chat-heading h2{font-size:20px}.chat-heading p{font-size:10px;max-width:280px}.chat-avatar{flex-basis:39px;height:39px;border-radius:13px}.chat-heading-meta .status-pill{font-size:8px}.gallery-chat .chat-messages{padding:18px 3px;gap:12px}.gallery-chat .chat-message{max-width:88%;padding:11px 13px}.gallery-chat .chat-message.system{max-width:96%;padding:10px 13px}.gallery-chat .chat-form .btn{font-size:10px;padding:11px 14px}.customer-gallery>.selection-summary{padding:24px}.conversation-alert{right:16px;bottom:16px;font-size:11px;gap:16px}}
@media(max-width:580px){.gallery-chat{padding:18px 15px;border-radius:19px;scroll-margin-top:115px}.chat-heading-meta .status-pill{display:none}.chat-heading-meta{padding:0}.chat-kicker{font-size:8px;letter-spacing:1px}.gallery-chat .chat-heading h2{font-size:18px;letter-spacing:-.4px}.chat-heading p{font-size:10px;line-height:1.7}.chat-avatar{display:none}.gallery-chat .chat-messages{height:260px;max-height:42dvh;min-height:160px}.gallery-chat .chat-message p{font-size:12px}.gallery-chat .chat-message.system p{font-size:11px}.gallery-chat .chat-form{grid-template-columns:1fr}.gallery-chat .chat-form textarea{min-height:72px;font-size:13px}.gallery-chat .chat-form .btn{justify-self:end;min-height:42px;font-size:11px}.chat-footnote{font-size:8px}.conversation-alert{padding:12px 15px;font-size:11px;gap:14px}.conversation-alert span{font-size:9px}}

