/* Conversation-first visual language, with Kitchen Wrap branding. */
.visualiser-shell{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif;background:#fff}.visualiser-shell .chat-header{border:0;min-height:76px;padding:12px 24px;position:relative}.visualiser-shell .studio-name{font-size:20px;font-weight:600;color:#171719}.visualiser-shell .main-shell{position:relative}.visualiser-shell .header-actions{gap:0;border:1px solid #e9e9ec;border-radius:28px;padding:2px;background:#fff}.visualiser-shell .header-actions>.studio-quote-button{display:none}.visualiser-shell .header-actions svg,.chat-icon-button svg{width:25px;height:25px;flex-shrink:0}.visualiser-shell .header-actions #mobileMenu{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:9px;border:0;background:transparent;box-shadow:none;border-radius:50%;color:#151517}.visualiser-shell .shell-menu-button{display:grid;width:44px;height:44px;border:1px solid #e9e9ed;border-radius:50%;background:#fff;position:static}.visualiser-shell .visualiser-title-and-balance{display:flex;flex-direction:row;align-items:center;gap:14px;padding:0}.chat-icon-button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:9px;color:#161618;border:0;border-radius:50%;background:transparent;cursor:pointer}.chat-icon-button:hover{background:#f1f1f3}.chat-account-controls{margin:18px 6px 0;padding-top:15px;border-top:1px solid #e7e7e9;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.chat-account-controls #creditBalance{font-size:12px;max-width:100%;white-space:normal;overflow:visible;color:#626267;background:transparent;padding:0}.chat-account-controls #buyCreditsButton{font-size:12px;min-height:38px;padding:9px 13px;border:1px solid #e7e7eb;border-radius:20px;background:#fff;color:var(--brand-pink);box-shadow:none}.chat-file-input{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}.shell-chat .composer-area{padding:8px 24px 12px!important;overflow:visible;max-height:none;background:#fff}.shell-chat .composer-wrap{max-width:800px}.shell-chat #chatForm{display:flex;flex-direction:column;gap:0;padding:14px 16px 10px;border:1px solid #dedee2;border-radius:30px;box-shadow:0 4px 24px #10101806;background:#fff}.shell-chat #prompt{width:100%;min-height:42px;max-height:180px;border:0;outline:none;box-shadow:none;padding:7px 2px 8px;resize:none;line-height:1.5;font-size:17px;background:transparent}.shell-chat #prompt::placeholder{color:#96969b}.shell-chat .composer-tools{display:flex;align-items:center;justify-content:flex-start;gap:4px;padding:3px 0 0}.shell-chat #composerHint{display:none}.shell-chat #send{margin-left:auto;display:grid;place-items:center;width:40px;height:40px;min-height:40px;flex:none;padding:8px;border:0;border-radius:50%;background:var(--brand-pink,#e3165b);color:#fff;box-shadow:none;font-size:0}.shell-chat #send svg{width:24px;height:24px}.shell-chat #send:disabled{background:#e9e9ec;color:#acacb1;opacity:1}.shell-chat .chat-mic{margin-left:auto}.shell-chat .chat-mic+#send{margin-left:3px}.chat-mic.listening{color:var(--brand-pink);background:var(--brand-pink-soft)}.shell-chat #attachment{position:relative;display:block;width:96px;height:96px;padding:0;margin:0 0 11px;border:0;border-radius:19px;overflow:visible;background:#f4f4f5}.shell-chat #attachment[hidden]{display:none!important}.shell-chat #attachmentImage{width:96px;height:96px;object-fit:cover;display:block;border-radius:19px}.shell-chat #attachment>div,.shell-chat #useOriginal{display:none!important}.shell-chat #removePhoto{display:grid;place-items:center;position:absolute;right:3px;top:3px;width:26px;height:26px;min-height:26px;padding:5px;border:1px solid #ffffff80;border-radius:50%;color:white;background:#5c5c60c9;backdrop-filter:blur(8px)}#removePhoto svg{width:15px;height:15px}.shell-chat .shell-disclosure{font-size:10px;color:#98989d;margin:7px auto 0;max-width:600px}.shell-chat #messages{max-width:800px}.shell-chat .message{gap:0;margin-bottom:28px}.shell-chat .message.assistant{display:block}.shell-chat .message-content{width:100%;max-width:100%;min-width:0}.shell-chat .assistant-mark,.shell-chat .message-label{display:none}.shell-chat .assistant-text{font-size:16px;line-height:1.65;color:#222225;margin-bottom:16px}.shell-chat .message.user{padding-left:36px;justify-content:flex-end}.shell-chat .user-bubble{background:#f4f4f5;border:0;border-radius:22px;padding:12px 18px;font-size:16px;line-height:1.6;max-width:85%;color:#232326}.shell-chat .user-bubble:has(.user-photo){padding:0;background:transparent}.shell-chat .user-photo{max-width:100%;max-height:340px;border-radius:20px;object-fit:contain}.shell-chat .result-card{border:0;background:transparent;border-radius:20px;box-shadow:none}.shell-chat .compare-frame{border-radius:20px;overflow:hidden}.shell-chat .result-actions{padding:10px 0;border:0;background:transparent}.shell-chat .result-actions button,.shell-chat .result-actions a{font-size:12px;border:0;background:transparent;color:#68686e;min-height:36px;padding:8px 10px;border-radius:18px}.shell-chat .result-caption{font-size:11px;color:#929298;line-height:1.5;margin:7px 0}.shell-chat .working{max-width:800px;margin:0 auto;font-size:14px}.shell-chat #shellWelcome{margin-top:clamp(35px,17vh,180px)}.shell-chat #shellWelcome h1{font-size:34px;font-weight:550;letter-spacing:-1px}.shell-chat .shell-wordmark{display:none}.shell-chat #shellWelcome>p{max-width:400px;font-size:14px}.shell-chat #shellUploadPhoto{background:#f5f5f6;border:1px solid #ececee;color:#39393e;border-radius:24px;font-size:13px;min-height:42px;padding:10px 18px}.shell-chat #shellWelcomeStatus{font-size:11px!important}#chatAttachmentMenu{position:fixed;inset:auto auto auto auto;margin:0;width:264px;max-width:calc(100vw - 24px);padding:12px;border:1px solid #e5e5e9;border-radius:28px;background:#ffffffed;backdrop-filter:blur(25px);box-shadow:0 15px 65px #1a1a2430;color:#161618}#chatAttachmentMenu::backdrop{background:#17171e0a;backdrop-filter:none}#chatAttachmentMenu button{display:flex;align-items:center;gap:16px;width:100%;padding:12px 10px;min-height:64px;border:0;border-radius:16px;background:transparent;text-align:left;font-size:19px;color:#171719}#chatAttachmentMenu button:hover{background:#f1f1f4}#chatAttachmentMenu button svg{width:24px;height:24px;flex-shrink:0;background:#f1f1f4;border-radius:50%;padding:10px;box-sizing:content-box}#chatAttachmentMenu small{display:block;font-size:10px;line-height:1.4;color:#8b8b93;margin-top:5px}#chatJump{position:absolute;bottom:220px;left:50%;z-index:8;width:38px;height:38px;border:1px solid #e5e5e9;box-shadow:0 2px 8px #1111110a;background:#fff}#chatJump[hidden]{display:none!important}
@media(max-width:760px){.visualiser-shell .main-shell{height:var(--chat-viewport,100dvh)!important;transform:translateY(var(--chat-offset,0px))}.visualiser-shell .chat-header{min-height:70px;padding:10px 16px;justify-content:space-between}.visualiser-shell .visualiser-title-and-balance{min-height:44px;position:static}.visualiser-shell .studio-name{position:absolute;left:50%;transform:translateX(-50%);font-size:18px;pointer-events:none}.visualiser-shell .shell-menu-button{position:static;width:44px;height:44px}.visualiser-shell .header-actions{margin-left:auto}.visualiser-shell .header-actions #mobileMenu,.visualiser-shell #chatNew{width:40px;height:40px;padding:8px;min-height:40px;min-width:40px}.shell-chat #conversation{padding:20px 18px 16px!important}.shell-chat .composer-area{padding:8px 10px max(10px,env(safe-area-inset-bottom))!important}.shell-chat #chatForm{padding:12px 12px 9px;border-radius:28px}.shell-chat #prompt{font-size:17px;min-height:40px;max-height:140px;padding:7px 3px}.shell-chat .composer-tools{padding-top:3px}.shell-chat .shell-disclosure{font-size:9px;line-height:1.4;max-width:310px;margin-top:6px}.shell-chat .assistant-text{font-size:16px;line-height:1.65}.shell-chat .message.user{padding-left:28px}.shell-chat .user-bubble{font-size:16px;max-width:94%;padding:11px 16px}.shell-chat .message{margin-bottom:24px}.shell-chat .result-actions{gap:4px}.shell-chat .result-caption{font-size:10px}.shell-chat #shellWelcome{margin:16vh auto 20px}.shell-chat #shellWelcome h1{font-size:29px}.shell-chat #shellWelcome>p{font-size:13px}.shell-chat #attachment,.shell-chat #attachmentImage{width:100px;height:100px}#chatJump{bottom:180px}#chatAttachmentMenu{border-radius:30px} .visualiser-shell .mobile-menu-panel{top:62px;right:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.shell-chat #attachment:not([data-pending]){display:none!important}
.visualiser-shell.shell-chat #send{min-width:40px!important;max-width:40px!important;width:40px!important;height:40px!important;flex:0 0 40px!important}
.visualiser-shell.shell-chat #send{border-radius:50%!important;min-height:40px!important;padding:8px!important}


#shellToolBack{display:flex;align-items:center;gap:14px;padding:8px 26px 14px;flex-shrink:0;background:#fff;border-bottom:1px solid #f0edf0}#shellToolBack[hidden]{display:none!important}#shellBackToChat{border:1px solid #e3165b40;background:#fff;color:var(--brand-pink,#e3165b);padding:9px 15px;border-radius:22px;min-height:42px;font-size:13px;cursor:pointer}#shellBackToChat:disabled{opacity:.45}#shellToolBack span{font-size:12px;color:#929298}@media(max-width:760px){#shellToolBack{padding:4px 16px 12px}#shellToolBack span{display:none}}


/* Reserve account space; only recent conversations scroll. */
.visualiser-shell #visualiserSidebar{height:100dvh;max-height:100dvh;box-sizing:border-box;display:flex!important;flex-direction:column;overflow:hidden;padding-bottom:64px}
.visualiser-shell #visualiserSidebar>.brand,.visualiser-shell #visualiserSidebar>.shell-tools,.visualiser-shell #visualiserSidebar>.studio-side-nav,.visualiser-shell #visualiserSidebar>.shell-new-room{flex:0 0 auto}
.visualiser-shell #visualiserSidebar>.shell-recents{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:12px}
.visualiser-shell #visualiserSidebar>.back-link{position:static!important;inset:auto!important;flex:0 0 auto;margin:8px 4px 0;min-height:44px;box-sizing:border-box;background:#f8f8fa}
.visualiser-shell #visualiserSidebar>.chat-account-controls{position:static!important;inset:auto!important;flex:0 0 auto;margin:8px 4px 0;padding:12px 0 0;min-height:54px;box-sizing:border-box;gap:8px;background:#f8f8fa}
.visualiser-shell #visualiserSidebar .chat-account-controls #creditBalance{flex:1 1 90px;min-width:0;max-width:none!important;line-height:1.4;white-space:normal}
.visualiser-shell #visualiserSidebar .chat-account-controls #buyCreditsButton{flex:0 0 auto;margin:0;white-space:nowrap}

/* Keep every sidebar section reachable on short screens. */
.visualiser-shell #visualiserSidebar{overflow-y:auto;overflow-x:hidden;padding-bottom:max(16px,env(safe-area-inset-bottom))}
.visualiser-shell #visualiserSidebar>.shell-recents{flex:1 0 180px;min-height:180px;max-height:45dvh}
.visualiser-shell #visualiserSidebar>#kwc-activity-preferences{position:static;inset:auto;flex:0 0 auto;align-self:flex-start;margin:14px 4px 0;box-shadow:none;font-size:11px;min-height:36px}
@media(max-height:800px){.visualiser-shell #visualiserSidebar>.brand{margin-bottom:14px}.visualiser-shell #visualiserSidebar .shell-tools button{min-height:38px;padding-block:8px}.visualiser-shell #visualiserSidebar>.studio-side-nav{margin-block:10px 8px;padding-top:8px}.visualiser-shell #visualiserSidebar>.shell-new-room{margin-bottom:12px}}

/* Scroll saved designs independently of the account and room controls. */
.visualiser-shell #visualiserSidebar>.shell-recents{display:flex;flex-direction:column;overflow:hidden;min-height:220px;flex:1 0 220px;height:clamp(220px,32dvh,420px);max-height:420px}
.visualiser-shell #visualiserSidebar .shell-recents>h2,.visualiser-shell #visualiserSidebar .shell-recents>a,.visualiser-shell #visualiserSidebar .shell-recents>.room-trash-toggle{flex:0 0 auto}
.visualiser-shell #savedRoomList,.visualiser-shell #shellRecentDesigns:not([hidden]){flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c5a6b5 transparent;padding-right:8px}
.visualiser-shell #savedRoomList::-webkit-scrollbar{width:6px}
.visualiser-shell #savedRoomList::-webkit-scrollbar-thumb{background:#c5a6b5;border-radius:8px}

/* A definite height makes rooms scroll inside this panel, not the sidebar. */
.visualiser-shell #visualiserSidebar>.shell-recents{flex:0 0 auto;height:auto;min-height:0;max-height:none;overflow:visible}
.visualiser-shell #visualiserSidebar #savedRoomList,.visualiser-shell #visualiserSidebar #shellRecentDesigns:not([hidden]){display:block;box-sizing:border-box;flex:none;height:190px;min-height:190px;max-height:190px;overflow-y:scroll!important;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #e8dfe4;border-radius:12px;background:#fff;padding:6px 12px}
.visualiser-shell #visualiserSidebar #savedRoomList .saved-room-row{flex-shrink:0}
