:root{color:#0d0d0d;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}button,input,textarea,select{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}img{display:block;max-width:100%}.app-shell{display:flex;min-width:0;height:100%;overflow:hidden;background:#fff}.boot-screen,.login-screen{display:grid;min-height:100%;place-items:center;background:#fff}.login-panel{width:min(420px,calc(100vw - 32px));padding:28px;border:1px solid #e7e7e7;border-radius:8px;box-shadow:0 16px 55px #00000014}.brand-row{display:flex;align-items:center;gap:12px}.brand-row.compact{gap:10px}.brand-row h1{margin:0 0 4px;font-size:26px;line-height:1.1}.brand-row p{margin:0;color:#6f6f6f}.logo-mark{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:50%;background:#111;color:#fff;font-size:14px;font-weight:700;letter-spacing:0}.logo-mark.small{width:30px;height:30px;font-size:11px}.login-form{display:grid;gap:12px;margin-top:28px}.login-form label{font-weight:600}.login-form input{width:100%;height:48px;padding:0 14px;border:1px solid #cfcfcf;border-radius:8px;outline:none}.login-form input:focus{border-color:#0d0d0d}.primary-button{height:46px;border-radius:8px;background:#0d0d0d;color:#fff;font-weight:650}.form-error{margin:0;color:#b42318}.sidebar{display:flex;width:300px;min-width:300px;height:100%;flex-direction:column;overflow:hidden;border-right:1px solid #ececec;background:#f9f9f9;transition:margin-left .18s ease}.sidebar:not(.open){margin-left:-300px}.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px}.icon-button{display:grid;width:38px;height:38px;place-items:center;border-radius:8px}.icon-button:hover,.sidebar-action:hover,.conversation-item:hover,.parameter-button:hover{background:#ededed}.sidebar-action{display:flex;align-items:center;gap:12px;min-height:48px;margin:8px 12px;padding:0 14px;border-radius:8px;font-size:16px;text-align:left}.sidebar-action.active{background:#efefef}.conversation-group{min-height:0;min-width:0;flex:1;padding:18px 10px 12px;overflow-x:hidden;overflow-y:auto}.group-label{margin:0 0 12px 8px;color:#262626;font-size:15px;font-weight:700}.conversation-list{display:grid;min-width:0;gap:2px}.conversation-item{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;min-height:42px;gap:8px;padding:0 12px;border-radius:8px;color:#1f1f1f;text-align:left}.conversation-item span{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis}.conversation-item svg{flex:0 0 auto;color:#777;opacity:0}.conversation-item:hover svg,.conversation-item.selected svg{opacity:1}.conversation-item.selected{background:#ececec}.sidebar-footer{display:flex;align-items:center;gap:10px;min-height:74px;padding:12px 16px;border-top:1px solid #ececec;background:#f9f9f9}.avatar{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border-radius:50%;background:#9a3d34;color:#fff;font-size:12px;font-weight:700}.user-meta{display:grid;min-width:0;flex:1}.user-meta strong,.user-meta span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.user-meta span{color:#777;font-size:12px}.workspace{position:relative;display:flex;min-width:0;height:100%;flex:1;flex-direction:column;background:#fff}.mobile-topbar{display:none}.floating-sidebar-button{position:absolute;z-index:5;top:18px;left:18px;display:grid;width:40px;height:40px;place-items:center;border-radius:8px;background:#fff;box-shadow:0 6px 20px #0000001a}.message-scroll{min-height:0;flex:1;overflow:auto;scroll-behavior:smooth}.workspace.is-empty{justify-content:center}.workspace.is-empty .message-scroll{flex:0 0 auto;min-height:0;overflow:visible}.message-stack{width:min(780px,calc(100vw - 48px));margin:0 auto;padding:54px 0 260px}.empty-state{display:grid;place-items:center;padding:0 20px 22px}.empty-state h2{margin:0;color:#0d0d0d;font-size:clamp(28px,4vw,36px);font-weight:650;letter-spacing:0}.message{display:flex;margin:26px 0}.user-message{justify-content:flex-end}.assistant-message{justify-content:flex-start}.message-body{max-width:100%}.bubble{max-width:min(520px,78vw);margin:10px 0 0;padding:14px 18px;border-radius:24px;background:#f4f4f4;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.reference-grid{display:flex;justify-content:flex-end;gap:10px;margin-bottom:8px}.reference-grid img{width:96px;height:96px;border-radius:8px;object-fit:cover}.generated-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.image-card{width:min(520px,100%);margin:0}.image-button{display:block;width:100%;overflow:hidden;border-radius:28px;background:#f5f5f5}.image-button img{width:100%;max-height:720px;object-fit:contain}.image-card figcaption{display:flex;gap:8px;padding:10px 4px 0}.image-card figcaption button{display:grid;width:34px;height:34px;place-items:center;border-radius:8px;color:#5f5f5f}.image-card figcaption button:hover{background:#efefef}.assistant-caption{margin:12px 0 0;color:#6f6f6f;line-height:1.5;overflow-wrap:anywhere}.generating{display:flex;align-items:center;gap:10px;margin:22px 0;color:#777}.spinner{width:18px;height:18px;border:2px solid #d8d8d8;border-top-color:#111;border-radius:50%;animation:spin .9s linear infinite}.composer-wrap{position:absolute;right:0;bottom:0;left:0;display:grid;justify-items:center;padding:22px 20px 14px;background:linear-gradient(180deg,#fff0,#fff 22%)}.composer-wrap.drag-ready{background:linear-gradient(180deg,#fff0,#fff 14%)}.workspace.is-empty .composer-wrap{position:static;padding:0 20px;background:transparent}.workspace.is-empty .fine-print{display:none}.composer{position:relative;width:min(780px,100%);border:1px solid #d6d6d6;border-radius:30px;background:#fff;box-shadow:0 16px 45px #00000017;transition:border-color .16s ease,box-shadow .16s ease}.composer.drop-target-active{border-color:#111;box-shadow:0 0 0 4px #11111117,0 16px 45px #0000001f}.composer-drop-hint{display:grid;min-height:96px;margin:14px 14px 2px;place-items:center;border:1px dashed #777;border-radius:24px;background:#fafafa;color:#333;font-size:14px;font-weight:650;text-align:center}.composer.drop-target-active .composer-drop-hint{border-color:#111;background:#f0f7f4;color:#111}.composer-row{display:flex;align-items:end;gap:8px;padding:10px 12px}.composer textarea{width:100%;min-width:0;min-height:42px;max-height:180px;padding:10px 4px 6px;resize:none;border:0;outline:0;color:#1f1f1f;background:transparent;line-height:1.45}.composer textarea::placeholder{color:#8a8a8a}.round-button,.send-button{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:50%}.round-button{color:#111}.round-button:hover{background:#f2f2f2}.send-button{background:#0d0d0d;color:#fff}.parameter-button{display:flex;align-items:center;gap:8px;height:42px;flex:0 0 auto;padding:0 13px;border:1px solid #e0e0e0;border-radius:999px;color:#333;font-size:15px;line-height:1;white-space:nowrap}.attachment-strip{display:flex;gap:10px;padding:14px 14px 4px;overflow-x:auto}.attachment-preview{position:relative;width:72px;height:72px;flex:0 0 auto;overflow:hidden;border-radius:8px;background:#f1f1f1}.attachment-preview img{width:100%;height:100%;object-fit:cover}.attachment-preview button{position:absolute;top:4px;right:4px;display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#000000ad;color:#fff}.error-bar{display:flex;align-items:center;justify-content:space-between;width:min(780px,100%);gap:12px;margin-bottom:10px;padding:10px 14px;border:1px solid #f3b3a7;border-radius:8px;background:#fff6f4;color:#9f2a19}.error-bar span{min-width:0;overflow-wrap:anywhere}.fine-print{margin:10px 0 0;color:#777;font-size:12px}.modal-layer{position:fixed;z-index:18;inset:0;display:grid;place-items:center;padding:20px;background:#00000047}.parameter-modal{width:min(430px,100%);padding:18px;border:1px solid #e6e6e6;border-radius:8px;background:#fff;box-shadow:0 20px 80px #0000002e}.parameter-modal header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.parameter-modal h2{margin:0;font-size:19px;font-weight:700}.parameter-group{margin:0;padding:16px 0;border:0;border-top:1px solid #f0f0f0}.parameter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.parameter-options button{min-height:42px;padding:0 12px;border:1px solid #dcdcdc;border-radius:8px;color:#333;text-align:center}.parameter-options button:hover{background:#f6f6f6}.parameter-options button.selected{border-color:#111;background:#111;color:#fff}.modal-confirm{width:100%;margin-top:8px}.lightbox{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:72px 24px;background:#000000d1}.lightbox img{max-width:min(100%,1100px);max-height:100%;border-radius:8px;object-fit:contain}.close-lightbox{position:fixed;top:22px;right:22px;color:#fff}.download-lightbox{position:fixed;right:24px;bottom:24px;display:flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border-radius:999px;background:#fff;color:#111;font-weight:650}.mobile-scrim{display:none}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:12;inset:0 auto 0 0;width:min(310px,84vw);min-width:0;transform:translate(-100%);transition:transform .18s ease;margin-left:0!important}.sidebar.open{transform:translate(0)}.workspace{height:100%}.mobile-topbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;height:54px;padding:0 10px;border-bottom:1px solid #eee;background:#fff}.floating-sidebar-button{display:none}.mobile-scrim{position:fixed;z-index:10;inset:0;display:block;background:#0003}.message-stack{width:calc(100vw - 28px);padding-top:20px;padding-bottom:250px}.empty-state h2{font-size:28px}.composer-wrap{padding:18px 10px 10px}.workspace.is-empty .composer-wrap{padding:0 10px}.composer{border-radius:24px}.image-button{border-radius:18px}.bubble{max-width:calc(100vw - 52px)}}
