/* HanBridge keeps its warm paper, generous curves and gentle cultural illustrations. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

body.home-mode{height:100dvh;overflow:hidden}
body.home-mode #app{height:100%;min-height:0}
body.home-mode .shell{height:100%;min-height:0;display:flex;flex-direction:column}
body.home-mode .topbar{position:relative;flex-shrink:0}
body.home-mode .topbar-inner{min-height:76px;padding-top:10px;padding-bottom:10px}
body.home-mode .breadcrumb,body.home-mode .top-actions>.level-pill{display:none}
body.home-mode .top-actions{margin-left:auto}
body.home-mode .main.page-home{position:relative;display:flex;flex:1;min-height:0;max-width:1120px;width:100%;padding:22px 44px 18px;margin:auto}
.generation-home{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:14px;max-width:900px;margin:0 auto;width:100%}
.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0;min-height:34px}
.workspace-title{display:flex;align-items:center;min-width:0}
.workspace-title strong{font-size:14px;font-weight:600;white-space:nowrap;letter-spacing:.02em;color:#6d6780}
.workspace-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.workspace-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:7px 10px;border:1px solid transparent;border-radius:10px;color:#8c809d;font-size:11px;transition:color .18s,background .18s,border-color .18s}
.workspace-actions .icon{width:14px;height:14px}
.workspace-actions button:hover{color:#7163a4;background:#eee8f5}
.workspace-actions .history-toggle{background:#eeeaf4;border-color:#e5dfed}
.workspace-actions .history-toggle[aria-expanded=true]{color:#6f62a5;border-color:#c9bfdf;background:#e9e2f3}

/* Welcome and composer share one pastel card, held together in the middle of the page. */
.generation-stage{display:flex;align-items:center;justify-content:center;flex:none;min-width:0;min-height:0;overflow:hidden;margin-top:auto;margin-bottom:-14px;padding:22px 26px 18px;background:#eeeaf7;border-radius:28px 28px 0 0}
.generation-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;gap:10px}
.studio-emblem{display:flex;align-items:center;justify-content:center;width:148px;height:112px}
.studio-emblem>img,.studio-emblem>svg{display:block;width:100%;height:100%;object-fit:contain}
.generation-welcome h1{font-size:34px;line-height:1.45;font-weight:650;letter-spacing:.025em;color:#54516d}
.generation-welcome h1 span{color:inherit}
.generation-composer{position:relative;flex-shrink:0;padding:0 26px 26px;border:0;border-radius:0 0 28px 28px;background:#eeeaf7;box-shadow:none}
.generation-composer:before{content:"";position:absolute;inset:0 26px 26px;border:1px solid #dfd9eb;border-radius:19px;background:#fff;pointer-events:none;transition:border-color .18s,box-shadow .18s}
.generation-composer:focus-within:before{border-color:#aca0d4;box-shadow:0 0 0 3px #8c80be0a}
.generation-composer textarea{position:relative;display:block;border:0;border-radius:0;background:transparent;width:100%;height:74px;min-height:74px;max-height:112px;padding:17px 18px 0;resize:none;box-shadow:none;outline:none;font-size:15px;line-height:1.85;letter-spacing:.01em;color:#514b68;overflow:auto;scrollbar-width:none}
.generation-composer textarea::-webkit-scrollbar{display:none}
.generation-composer textarea::placeholder{color:#a49ab0;opacity:1}
.generation-composer textarea:focus-visible{outline:none}
.composer-bottom{position:relative;display:flex;align-items:center;justify-content:space-between;gap:13px;padding:8px 18px 14px}
.composer-settings,.composer-submit{display:flex;align-items:center;gap:12px;min-width:0}
.composer-cost{font-size:10px;line-height:1.5;color:#a28eb0;white-space:nowrap}
.composer-level{display:flex;align-items:center;gap:4px;padding:6px 9px 6px 11px;border:1px solid #e8e1ef;border-radius:9px;background:#f6f2f9;color:#9687a7;font-size:11px;font-weight:500;white-space:nowrap;line-height:1.3}
.composer-level select{border:0;border-radius:4px;padding:1px 0 1px 4px;background:transparent;color:#78648e;font-size:12px;font-weight:500;cursor:pointer;max-width:76px;min-width:0;line-height:1.5}
.composer-level select:focus-visible{outline-width:2px;outline-offset:2px}
.generation-send{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:122px;min-height:38px;padding:9px 15px;background:#7276d9;color:#fff;border:1px solid #7276d9;border-radius:11px;font-size:12px;font-weight:550;white-space:nowrap;box-shadow:0 3px 8px #7276d912;transition:background .18s,transform .18s,box-shadow .18s}
.generation-send .icon{width:16px;height:16px}
.generation-send:hover{background:#6266c6;border-color:#6266c6;box-shadow:0 4px 12px #7276d91c}
.generation-send:active{transform:translateY(1px)}
.generation-send:disabled{opacity:1;background:#bbb7d7;border-color:#bbb7d7;color:#fff;box-shadow:none;transform:none}
.is-generating .generation-send:disabled{background:#a49ecb;border-color:#a49ecb}
.composer-error{position:relative;font-size:11px;color:#b85c69;line-height:1.7;margin:0 18px;padding:8px 0 12px;border-top:1px solid #f5e6ea;overflow-wrap:anywhere;max-height:66px;overflow:auto;scrollbar-width:none}
.composer-error::-webkit-scrollbar{display:none}
.generation-composer:has(.composer-error:not([hidden])):before{border-color:#deb5c0}

.suggestion-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:12px;flex-shrink:0}
.topic-suggestion{display:flex;align-items:center;gap:15px;min-width:0;min-height:90px;padding:12px 16px;border:1px solid #ffffff80;border-radius:19px;background:#eeeaf7;text-align:left;transition:transform .18s,box-shadow .18s}
.topic-suggestion:nth-child(2){background:#f4eedf}
.topic-suggestion:nth-child(3){background:#e8edf6}
.topic-suggestion:nth-child(4){background:#f5e9e7}
.topic-suggestion:hover{transform:translateY(-3px);box-shadow:0 8px 18px #66547d0a}
.topic-suggestion:active{transform:translateY(0)}
.suggestion-image{display:block;width:62px;height:62px;object-fit:cover;border-radius:13px;flex-shrink:0}
.suggestion-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.suggestion-copy strong,.topic-suggestion>strong{font-size:14px;line-height:1.5;font-weight:550;color:#766681;white-space:nowrap}
.topic-suggestion:nth-child(2) strong{color:#93836d}
.topic-suggestion:nth-child(3) strong{color:#78839b}
.topic-suggestion:nth-child(4) strong{color:#a18186}
.workspace-footnote{display:flex;justify-content:center;align-items:center;gap:12px;min-height:22px;flex-shrink:0;margin-bottom:auto;font-size:11px;color:#a597b1;line-height:1.6}
.workspace-footnote p{font-size:11px;line-height:1.7}
#generation-footnote{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.reference-preview{color:#9380b1;margin-left:0;white-space:nowrap;font-size:11px;line-height:1.8}
.reference-preview:hover{color:#6d5b93}
.generation-home:has(.composer-error:not([hidden])) .studio-emblem{height:86px}

/* An active conversation uses the available height; the input stays within reach. */
.has-conversation .generation-stage{align-items:stretch;flex:1;min-height:0;margin:0;padding:0;border-radius:0;background:transparent}
.has-conversation .generation-composer{padding:16px 20px 14px;border:1px solid #ded7e9;border-radius:19px;background:#fff}
.has-conversation .generation-composer:before{display:none}
.has-conversation .generation-composer:focus-within{border-color:#aca0d4;box-shadow:0 0 0 3px #8c80be0a}
.has-conversation .generation-composer textarea{height:58px;min-height:58px;padding:0}
.has-conversation .composer-bottom{padding:9px 0 0}
.has-conversation .composer-error{margin:9px 0 0;padding-bottom:0}
.has-conversation .workspace-footnote{margin-bottom:0}
.has-conversation .suggestion-row{display:none}
.generation-thread{width:100%;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 10px 8px;scrollbar-width:none;scroll-behavior:smooth}
.generation-thread::-webkit-scrollbar,.generation-history-list::-webkit-scrollbar{display:none}
.conversation-prompt,.conversation-response{display:flex;align-items:flex-start;gap:13px;max-width:880px;margin:0 auto}
.conversation-prompt{flex-direction:row-reverse;justify-content:flex-start;margin-bottom:20px}
.message-avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:11px;font-size:13px;font-weight:550;line-height:1;background:#eae7f3;color:#777198}
.message-avatar.user{border-radius:50%;background:#e8e5f0;color:#827d9e}
.message-avatar.assistant{background:#eeedf7;color:#7875bf;border:1px solid #e5e2f1}
.conversation-prompt>div{max-width:calc(100% - 45px);padding:11px 16px 12px;border:1px solid #e7e3f2;background:#eeebf6;border-radius:14px 3px 14px 14px;min-width:0}
.message-label{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.6;font-weight:600;color:#615a76;min-height:21px}
.message-label small{color:#aca4bb;font-size:8px;font-weight:400}
.conversation-prompt .message-label{justify-content:flex-end}
.conversation-prompt p{font-size:13px;color:#55506a;line-height:1.85;overflow-wrap:anywhere;margin-top:3px;white-space:pre-wrap}
.response-body{flex:1;min-width:0;padding-top:4px}
.assistant-badge{border:1px solid #e9e5f2;background:#f4f1f8;border-radius:5px;padding:2px 5px;color:#a49ab5;font-size:8px;line-height:1.3;font-weight:400}
.response-copy{font-size:13px;color:#7d748b;line-height:1.85;margin-top:7px;overflow-wrap:anywhere}
.generation-steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px;margin-bottom:14px}
.generation-steps>span{display:flex;align-items:center;gap:6px;min-height:30px;padding:6px 9px;border:1px solid #e9e5ef;border-radius:8px;color:#aaa2b6;background:#f6f4f8;font-size:10px;line-height:1.5}
.generation-steps b{display:grid;place-items:center;width:14px;height:14px;border-radius:50%;border:1px solid #e0dbe9;font-size:8px;font-weight:500;color:#b0a8bc}
.generation-steps .icon{width:13px;height:13px}
.generation-steps>span.active{color:#7771b1;background:#eeebf8;border-color:#dcd5ed}
.generation-steps>span.active b{background:#8881c8;border-color:#8881c8;color:#fff}
.generation-steps>span.done{background:#eeedf8;border-color:#dfdbee;color:#8c83b1}
.generation-result{display:flex;align-items:stretch;gap:0;margin-top:15px;max-width:650px;background:#fff;border:1px solid #e5e0ed;border-radius:15px;overflow:hidden;box-shadow:0 5px 20px #59507005}
.generation-result>img{width:175px;object-fit:cover;align-self:stretch;min-height:156px;flex-shrink:0;background:#eeebf4}
.result-copy{padding:17px 22px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px}
.result-copy>span{font-size:10px;letter-spacing:.03em;color:#9589aa;line-height:1.6}
.result-copy h2{font-size:19px;line-height:1.6;color:#55506b;letter-spacing:.01em;overflow-wrap:anywhere}
.result-copy p{font-size:11px;color:#95849f;line-height:1.7}
.result-copy .btn{font-size:10px;min-height:33px;padding:8px 12px;border-radius:8px;gap:14px;margin-top:6px}
.result-copy .btn .icon{width:14px;height:14px}
.result-usage{font-size:9px;color:#a093ab;line-height:1.8;margin-top:10px}
.generation-status{display:flex;align-items:center;gap:8px;font-size:11px;color:#9784a8;line-height:1.8;margin-top:15px;overflow-wrap:anywhere}
.loading-dot{display:block;width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#9a92c4;box-shadow:0 0 0 4px #ebe6f4;animation:studio-breathe 1.8s ease-in-out infinite}
.generation-error{margin-top:13px;border:1px solid #eedce2;background:#fcf5f7;border-radius:10px;padding:12px 14px;color:#ac7685;font-size:11px;line-height:1.85;overflow-wrap:anywhere}
.retry-generation,.retry-history{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;min-height:32px;font-size:10px;color:#7770ac;border:1px solid #e0d9ed;border-radius:8px;background:#f2eef8;margin-top:10px}
.retry-generation:hover,.retry-history:hover{background:#e9e3f4;border-color:#cfc3e4}
.retry-generation .icon{width:13px;height:13px}
.has-conversation .generation-stage{align-items:stretch}
.has-conversation .suggestion-row{display:none}

.generation-history{position:absolute;z-index:20;top:44px;right:0;bottom:0;width:344px;max-width:100%;display:flex;flex-direction:column;min-height:0;background:#fffdfb;border:1px solid #e0dbe9;border-radius:16px;box-shadow:0 16px 55px #42384f1c,0 4px 13px #42384f07;overflow:hidden;animation:studio-reveal .16s ease-out}
.history-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 20px 18px;border-bottom:1px solid #eee9f0;flex-shrink:0}
.history-head strong{font-size:14px;font-weight:600;letter-spacing:.02em}
.history-head small{display:block;font-size:10px;color:#a596ae;margin-top:6px;line-height:1.6}
.close-history{display:flex;align-items:center;justify-content:center;width:29px;height:29px;border:1px solid #e8e2ed;border-radius:8px;color:#a99caf;background:#f8f5f9}
.close-history .icon{width:15px;height:15px}
.close-history:hover{color:#746896;background:#efe9f5}
.generation-history-list{display:flex;flex-direction:column;gap:9px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:15px;scrollbar-width:none}
.history-item{display:flex;flex-direction:column;gap:8px;padding:14px 13px;border:1px solid #ebe5ee;border-radius:11px;min-width:0;text-align:left;background:#fbf9fb;flex-shrink:0;transition:background .18s,border-color .18s}
.history-item strong{font-size:12px;line-height:1.75;color:#6b607b;overflow-wrap:anywhere;font-weight:550}
.history-item>span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#a093ad;line-height:1.6;flex-wrap:wrap}
.history-item:hover{background:#f4eef9;border-color:#d9cfea}
.history-item[aria-pressed=true]{background:#efebf8;border-color:#cfc5e8}
.history-status{display:inline-flex;align-items:center;padding:2px 5px;border-radius:4px;font-size:8px;font-weight:400;color:#9c8daf;background:#eee8f4}
.history-status.done{color:#8880b4;background:#eeedf8}
.history-status.failed{color:#ae7f8c;background:#f7e9ee}
.history-status.running,.history-status.queued{color:#8881b2;background:#ebe7f6}
.history-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:13px;min-height:0;flex:1;padding:30px 24px}
.history-empty>.icon{color:#b8aaca;width:28px;height:28px;margin-bottom:4px}
.history-empty strong{font-size:13px;line-height:1.7;color:#91839e;font-weight:500}
.history-empty p{font-size:11px;color:#a494b0;line-height:1.9;overflow-wrap:anywhere}
.history-empty .btn{margin-top:3px;font-size:10px;padding:8px 12px;min-height:33px}

@keyframes studio-breathe{0%,100%{opacity:.45;box-shadow:0 0 0 3px #ebe6f4}50%{opacity:1;box-shadow:0 0 0 5px #ebe6f4}}
@keyframes studio-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}


@media(max-width:1050px){
 body.home-mode .main.page-home{padding-left:30px;padding-right:30px}
 .topic-suggestion{gap:12px;padding-left:13px;padding-right:13px}
 .suggestion-image{width:55px;height:55px}
 .suggestion-copy strong,.topic-suggestion>strong{font-size:13px}
}
@media(max-width:800px){
 body.home-mode .topbar-inner{min-height:70px;padding-top:9px;padding-bottom:9px}
 body.home-mode .main.page-home{padding:18px 24px 12px}
 .generation-home{gap:12px}
 .generation-stage{margin-bottom:-12px}
 .topic-suggestion{gap:11px;padding:12px 13px;min-height:82px}
 .suggestion-image{width:48px;height:48px;border-radius:11px}
 .suggestion-copy strong,.topic-suggestion>strong{font-size:12px}
 .generation-result>img{width:150px}
 .result-copy{padding:17px 20px}
 .generation-history{top:44px}
}
@media(max-width:600px){
 body.home-mode .topbar-inner{min-height:63px;padding:9px 17px;flex-wrap:nowrap}
 body.home-mode .main.page-home{padding:15px 17px 10px}
 .generation-home{gap:10px}
 .workspace-head{min-height:29px;gap:9px}
 .workspace-title strong{font-size:12px;letter-spacing:0}
 .workspace-actions{gap:4px}
 .workspace-actions button{min-height:29px;font-size:10px;padding:6px 7px;gap:4px;border-radius:8px}
 .workspace-actions .icon{width:12px;height:12px}
 .generation-stage{margin-bottom:-10px;padding:18px 16px 14px;border-radius:22px 22px 0 0}
 .generation-welcome{gap:8px}
 .studio-emblem{width:127px;height:102px}
 .generation-welcome h1{font-size:28px;line-height:1.45;letter-spacing:.01em}
 .generation-composer{padding:0 16px 18px;border-radius:0 0 22px 22px}
 .generation-composer:before{inset:0 16px 18px;border-radius:15px}
 .generation-composer textarea{font-size:13px;line-height:1.85;height:66px;min-height:66px;max-height:100px;padding:13px 13px 0;letter-spacing:0}
 .composer-bottom{gap:8px;padding:7px 13px 12px}
 .composer-settings{gap:8px}
 .composer-settings:has(.composer-cost){flex:1;flex-wrap:wrap;column-gap:8px;row-gap:4px}
 .composer-cost{font-size:9px}
 .composer-level{font-size:10px;gap:2px;padding:5px 6px 5px 8px;border-radius:7px}
 .composer-level select{font-size:11px;max-width:54px;padding-left:2px}
 .generation-send{min-width:104px;min-height:34px;font-size:11px;border-radius:9px;padding:8px 11px;gap:8px}
 .generation-send .icon{width:14px;height:14px}
 .composer-error{font-size:10px;line-height:1.6;margin-left:13px;margin-right:13px;padding-top:7px;padding-bottom:10px}
 .suggestion-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .topic-suggestion{min-height:66px;border-radius:15px;gap:13px;padding:9px 13px}
 .suggestion-image{width:45px;height:45px;border-radius:10px}
 .suggestion-copy strong,.topic-suggestion>strong{font-size:13px}
 .workspace-footnote{min-height:20px;font-size:10px}
 .workspace-footnote p,.reference-preview{font-size:10px}
 .has-conversation .generation-composer{padding:13px 14px 11px;border-radius:15px}
 .has-conversation .generation-composer textarea{height:51px;min-height:51px}
 .has-conversation .composer-bottom{padding-top:8px}
 .generation-thread{padding:7px 0 10px}
 .conversation-prompt,.conversation-response{gap:9px}
 .conversation-prompt{margin-bottom:16px}
 .message-avatar{width:27px;height:27px;border-radius:8px;font-size:11px}
 .conversation-prompt>div{max-width:calc(100% - 36px);padding:9px 12px 10px;border-radius:12px 3px 12px 12px}
 .message-label{font-size:10px;gap:7px;min-height:18px}
 .message-label small{font-size:8px}
 .conversation-prompt p{font-size:12px;line-height:1.75;margin-top:2px}
 .assistant-badge{font-size:8px;padding:2px 4px}
 .response-body{padding-top:2px}
 .response-copy{font-size:12px;line-height:1.8;margin-top:6px}
 .generation-steps{gap:5px;margin-top:12px;margin-bottom:11px}
 .generation-steps>span{gap:4px;min-height:25px;padding:5px 6px;font-size:8px;border-radius:6px}
 .generation-steps b{width:12px;height:12px;font-size:6px}
 .generation-steps .icon{width:11px;height:11px}
 .generation-result{border-radius:12px;margin-top:12px}
 .generation-result>img{width:94px;min-height:152px}
 .result-copy{padding:12px 13px;gap:5px}
 .result-copy>span{font-size:8px;line-height:1.6}
 .result-copy h2{font-size:14px;line-height:1.6}
 .result-copy p{font-size:8px;line-height:1.8}
 .result-copy .btn{font-size:10px;min-height:31px;padding:7px 9px;gap:7px;margin-top:5px}
 .result-copy .btn .icon{width:12px;height:12px}
 .result-usage{font-size:8px;line-height:1.8;margin-top:8px}
 .generation-status{font-size:10px;gap:7px;line-height:1.8;margin-top:12px}
 .loading-dot{width:5px;height:5px}
 .generation-error{padding:10px 11px;font-size:11px;line-height:1.8;margin-top:10px;border-radius:8px}
 .retry-generation,.retry-history{font-size:10px;min-height:30px;padding:7px 10px}
 .generation-history{left:0;right:0;width:auto;top:40px;border-radius:15px}
 .history-head{padding:17px 17px 15px}
 .history-head strong{font-size:13px}
 .history-head small{font-size:10px}
 .generation-history-list{padding:12px;gap:8px}
 .history-item{padding:12px;gap:7px}
 .history-item strong{font-size:12px}
 .history-empty{padding:24px 22px;gap:11px}
}
@media(max-width:374px){
 body.home-mode .topbar-inner{padding-left:14px;padding-right:14px}
 body.home-mode .main.page-home{padding-left:14px;padding-right:14px}
 .workspace-actions button{padding-left:6px;padding-right:6px;font-size:9px}
 .workspace-actions .icon{width:11px;height:11px}
 .generation-welcome h1{font-size:25px}
 .composer-settings:has(.composer-cost){flex-direction:column;align-items:flex-start}
 .generation-stage{padding-left:13px;padding-right:13px}
 .generation-composer{padding-left:13px;padding-right:13px}
 .generation-composer:before{left:13px;right:13px}
 .topic-suggestion{gap:10px;padding-left:10px;padding-right:10px}
 .suggestion-image{width:40px;height:40px}
 .suggestion-copy strong,.topic-suggestion>strong{font-size:12px}
 .generation-result>img{width:77px}
 .result-copy{padding:11px}
 .result-copy h2{font-size:13px}
 .generation-steps{gap:4px}
 .generation-steps>span{padding:5px;font-size:7px;gap:3px}
}
@media(min-width:801px) and (max-height:780px){
 body.home-mode .topbar-inner{min-height:69px;padding-top:8px;padding-bottom:8px}
 body.home-mode .main.page-home{padding-top:17px;padding-bottom:11px}
 .generation-home{gap:12px}
 .generation-stage{margin-bottom:-12px;padding-top:17px;padding-bottom:14px}
 .studio-emblem{width:136px;height:96px}
 .generation-welcome h1{font-size:32px;line-height:1.4}
 .generation-composer{padding-bottom:22px}
 .generation-composer:before{bottom:22px}
 .generation-composer textarea{height:66px;min-height:66px;padding-top:14px}
 .composer-bottom{padding-top:7px;padding-bottom:12px}
 .topic-suggestion{min-height:82px}
 .suggestion-image{width:55px;height:55px}
 .has-conversation .generation-composer{padding:14px 18px 12px}
 .has-conversation .generation-composer textarea{height:51px;min-height:51px;padding:0}
 .has-conversation .composer-bottom{padding-top:7px;padding-bottom:0}
 .generation-thread{padding-top:8px;padding-bottom:10px}
 .conversation-prompt{margin-bottom:16px}
 .conversation-prompt>div{padding-top:9px;padding-bottom:10px}
 .generation-steps{margin-top:12px;margin-bottom:10px}
 .generation-result{margin-top:12px}
 .generation-result>img{width:156px;min-height:136px}
 .result-copy{padding:13px 20px;gap:5px}
 .result-copy h2{font-size:17px;line-height:1.5}
 .result-copy .btn{min-height:31px;margin-top:4px}
 .result-usage{margin-top:8px}
}
@media(min-width:801px) and (max-height:660px){
 body.home-mode .main.page-home{padding-top:12px;padding-bottom:8px}
 .generation-home{gap:9px}
 .generation-stage{margin-bottom:-9px;padding-top:12px;padding-bottom:10px}
 .studio-emblem{width:106px;height:70px}
 .generation-welcome{gap:6px}
 .generation-welcome h1{font-size:28px;line-height:1.35}
 .generation-composer{padding-bottom:18px}
 .generation-composer:before{bottom:18px}
 .generation-composer textarea{height:56px;min-height:56px;padding-top:11px}
 .composer-bottom{padding-top:6px;padding-bottom:10px}
 .topic-suggestion{min-height:65px;padding-top:8px;padding-bottom:8px}
 .suggestion-image{width:46px;height:46px}
}
@media(max-width:800px) and (max-height:760px){
 body.home-mode .main.page-home{padding-top:12px;padding-bottom:8px}
 .generation-home{gap:8px}
 .generation-stage{margin-bottom:-8px;padding-top:14px;padding-bottom:12px}
 .generation-welcome{gap:7px}
 .studio-emblem{width:108px;height:83px}
 .generation-welcome h1{font-size:26px;line-height:1.4}
 .generation-composer{padding-bottom:15px}
 .generation-composer:before{bottom:15px}
 .generation-composer textarea{height:61px;min-height:61px;padding-top:12px}
 .composer-bottom{padding-top:6px;padding-bottom:11px}
 .topic-suggestion{min-height:60px;padding-top:8px;padding-bottom:8px}
 .suggestion-image{height:42px;width:42px}
 .has-conversation .generation-composer textarea{height:46px;min-height:46px;padding:0}
}
@media(max-width:800px) and (max-height:660px){
 body.home-mode .main.page-home{padding-top:9px;padding-bottom:6px}
 .generation-home{gap:7px}
 .generation-stage{margin-bottom:-7px;padding-top:12px;padding-bottom:10px}
 .studio-emblem{width:96px;height:66px}
 .generation-welcome{gap:6px}
 .generation-welcome h1{font-size:24px;line-height:1.4}
 .generation-composer{padding-bottom:13px}
 .generation-composer:before{bottom:13px}
 .generation-composer textarea{height:53px;min-height:53px;padding-top:11px;font-size:12px}
 .composer-bottom{padding-top:5px;padding-bottom:10px}
 .generation-send{min-height:32px}
 .topic-suggestion{min-height:49px;padding:6px 11px;gap:11px}
 .suggestion-image{width:36px;height:36px;border-radius:9px}
 .suggestion-copy strong,.topic-suggestion>strong{font-size:12px}
 .workspace-footnote{min-height:18px}
 .generation-home:has(.composer-error:not([hidden])) .studio-emblem{display:none}
 .has-conversation .generation-composer textarea{height:43px;min-height:43px;padding:0}
}
@media(max-height:520px){
 body.home-mode{height:auto;min-height:100dvh;overflow:auto}
 body.home-mode #app,body.home-mode .shell{height:auto;min-height:100dvh}
 body.home-mode .main.page-home{flex:none;min-height:420px}
 .generation-stage{margin-top:16px}
 .generation-thread{max-height:280px}
 .generation-history{max-height:380px}
}
@media(prefers-reduced-motion:reduce){.generation-thread{scroll-behavior:auto}.loading-dot,.generation-history{animation:none}.workspace-actions button,.generation-composer:before,.generation-send,.topic-suggestion,.history-item{transition:none}}
