.attachment-thumb{width:64px;height:64px;object-fit:cover;border-radius:8px;cursor:zoom-in;flex-shrink:0}.attachment-retry{border:1px solid #b8ccb8;background:#fff;border-radius:8px;padding:6px;font-size:11px}.sent-attachments{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;margin-top:10px}.sent-attachments .file-card{min-width:90px;max-width:210px;flex-shrink:0}.message.user .file-card{background:#f8faf5}.attachment-chip.uploading small{color:#687f59}
#attachments{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;max-height:100px;overscroll-behavior-x:contain;touch-action:pan-x}#attachments[hidden]{display:none}#attachments .attachment-chip{flex-shrink:0}#attachments .image-attachment{position:relative;width:78px;height:78px;padding:0;border:0;background:transparent;display:block;overflow:hidden;border-radius:10px}#attachments .image-attachment .attachment-thumb{width:100%;height:100%;display:block}#attachments .image-attachment>.icon-btn{position:absolute;right:3px;top:3px;width:22px;height:22px;min-width:0;padding:0;background:#142a24bb;color:#fff;border:0;border-radius:50%;font-size:18px}#attachments .image-transfer-state{position:absolute;bottom:0;left:0;right:0;background:#142a24b3;color:#fff;padding:3px;font-size:9px;text-align:center}#attachments .image-transfer-state strong{display:none}#attachments .image-transfer-state small{color:inherit;font-size:9px}#attachments .image-attachment.error .image-transfer-state{max-height:35px;overflow:hidden}#attachments .image-attachment .attachment-retry{position:absolute;bottom:0;left:0;z-index:1}#attachments .image-attachment.error .image-transfer-state{display:none}.sent-attachments .file-card.image-tile{padding:0;width:96px;height:96px;min-width:96px;border:0;border-radius:10px;overflow:hidden}.sent-attachments .image-tile img{display:block;width:100%;height:100%;object-fit:cover}
#image-dialog{width:min(calc(100% - 16px),1100px);height:92dvh;max-height:92dvh;padding:14px;border-radius:16px;overflow:hidden}#image-dialog[open]{display:flex;flex-direction:column}#image-title{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:85%}.zoom-stage{position:relative;overflow:hidden;touch-action:none;user-select:none;background:#17251f;border-radius:10px;min-height:120px}.zoom-target{position:absolute;left:0;top:0;max-width:none;max-height:none;transform-origin:0 0;will-change:transform;pointer-events:none}.image-stage{flex:1;min-height:0}.image-tools{display:flex;align-items:center;gap:8px;padding-top:12px}.image-tools button{padding:8px 13px;border:1px solid #d9e1d6;background:#f5f8f1;border-radius:9px}.image-tools a{margin-left:auto;text-decoration:none;font-size:12px}.image-hint{font-size:10px;color:#7b8c7b;margin:8px 0}.image-loading{position:absolute;inset:40% 12px auto;color:#fff;font-size:12px;text-align:center;z-index:1}
.desktop-button{display:grid;place-items:center;width:34px;height:34px;background:#edf3e8;border:1px solid #e1e8d9;border-radius:10px;flex-shrink:0}.desktop-button svg{width:21px;height:21px}.desktop-panel{margin:8px 13px 0;flex:0 0 auto;min-height:0;max-height:46dvh;background:#f2f6ed;border:1px solid #d9e3d2;border-radius:13px;padding:9px}.desktop-panel[hidden]{display:none}.desktop-heading{display:flex;gap:7px;align-items:center;font-size:12px;margin-bottom:7px}.desktop-heading strong{flex:1}.desktop-heading button{font-size:11px;border:0;border-radius:7px;padding:6px 9px;background:#e2ebdb}.desktop-stage{height:23dvh;min-height:100px}.desktop-status{font-size:10px;line-height:1.6;color:#697e62;margin:6px 0 0}.desktop-panel.full{position:fixed;inset:0;z-index:30;max-height:none;margin:0;border-radius:0;display:flex;flex-direction:column;padding:14px}.desktop-panel.full .desktop-stage{flex:1;height:auto}.remote-active .welcome{display:none}.remote-active .timeline{min-height:45px}.remote-active .composer textarea{max-height:100px}.remote-active .bottom-note{display:none}
@media(max-height:650px){.desktop-stage{height:18dvh;min-height:70px}.desktop-panel{padding:6px}.desktop-status{margin:3px 0}}
.desktop-panel.floating{position:fixed;z-index:8;left:12px;top:85px;width:calc(100% - 24px);height:240px;max-height:80dvh;margin:0;display:flex;flex-direction:column;box-shadow:0 8px 28px #15291e33}.desktop-panel.floating[hidden]{display:none}.desktop-panel.floating .desktop-stage{flex:1;height:auto;min-height:60px}.desktop-heading{touch-action:none;user-select:none;cursor:move}.desktop-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desktop-panel.floating .desktop-heading button{font-size:10px;padding:6px}.desktop-resize{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:28px;height:28px;color:#67845b;touch-action:none;cursor:nwse-resize;user-select:none}.desktop-panel.full{left:0!important;top:0!important;width:100%!important;height:100%!important;max-height:none!important;z-index:30}.desktop-panel.full .desktop-resize{display:none}.desktop-panel.floating .desktop-status{padding-right:15px}
.desktop-panel.mini:not(.full){padding:4px;border-radius:8px;min-width:110px;min-height:75px}.desktop-panel.mini:not(.full) .desktop-heading{margin-bottom:3px;gap:2px;font-size:8px;min-height:13px}.desktop-panel.mini:not(.full) .desktop-heading strong{font-size:0}.desktop-panel.mini:not(.full) .desktop-heading strong:after{content:'电脑';font-size:8px}.desktop-panel.mini:not(.full) .desktop-heading button{font-size:8px;padding:2px 4px;min-height:16px}.desktop-panel.mini:not(.full) #desktop-quality,.desktop-panel.mini:not(.full) #desktop-full{display:none}.desktop-panel.mini:not(.full) #desktop-stop{font-size:0;padding:2px 4px}.desktop-panel.mini:not(.full) #desktop-stop:after{content:'×';font-size:11px}.desktop-panel.mini:not(.full) .desktop-stage{min-height:20px;border-radius:4px}.desktop-panel.mini:not(.full) .desktop-status{font-size:8px;line-height:1.2;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desktop-panel.mini:not(.full) .desktop-resize{width:16px;height:16px;font-size:9px}
.desktop-chat-toggle{display:none;position:absolute;right:14px;top:46%;width:44px;height:44px;border-radius:50%;border:1px solid #c5d5bb;background:#f1f8e9;color:#315c42;font-size:22px;box-shadow:0 3px 15px #142a2433;z-index:4}.desktop-panel.full .desktop-chat-toggle{display:block}.desktop-chat-pane{position:absolute;right:8px;top:52px;bottom:28px;width:min(430px,86%);display:flex;flex-direction:column;background:#f9fbf5f5;border:1px solid #ccd9c0;border-radius:13px;box-shadow:0 8px 28px #15291e44;z-index:5;overflow:hidden}.desktop-chat-pane[hidden]{display:none}.desktop-chat-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:12px;flex-shrink:0}.desktop-chat-heading button{background:none;border:0;font-size:22px}.desktop-chat-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.desktop-chat-content .timeline{min-height:0;flex:1;padding:8px}.desktop-chat-content .composer-wrap{padding:6px;flex-shrink:0}.desktop-chat-content .composer textarea{min-height:38px;max-height:80px;font-size:14px}.desktop-chat-content .message{padding:9px!important}.desktop-chat-content .message-text{font-size:12px!important}.desktop-chat-content .composer-bottom>span{display:none}.desktop-chat-content .composer-bottom .send{margin-left:auto}.desktop-chat-content .knowledge-switch{display:none}.desktop-chat-content .composer-meta{padding:0 0 4px}
.gallery-drawer{margin-top:8px;border:1px solid #d7e2d0;border-radius:13px;padding:9px;background:#f3f7ef}.gallery-drawer[hidden]{display:none}.gallery-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:12px}.gallery-toolbar strong{flex:1}.gallery-toolbar button{font-size:11px;padding:6px 10px;border-radius:8px;border:1px solid #d5e0cf;background:#fff}.gallery-toolbar .primary{background:#285f4b;color:#fff}.gallery-rail{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;padding:2px 1px 6px;min-height:4px}.gallery-item{position:relative;flex:0 0 82px;width:82px;height:90px;border:2px solid transparent;padding:0;background:#e5ecdf;border-radius:9px;overflow:hidden}.gallery-item img{width:100%;height:100%;object-fit:cover}.gallery-item.selected{border-color:#2e7355}.gallery-tick{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:18px;height:18px;border:1px solid #eee;border-radius:50%;background:#ffffffcc;color:#fff;font-size:11px}.gallery-item.selected .gallery-tick{background:#2e7355}.gallery-note{font-size:10px;color:#71836a;line-height:1.6;margin:5px 0 0}
.main>.composer-wrap{max-height:calc(100dvh - 42px);overflow-y:auto}.desktop-chat-content .composer-wrap{max-height:65dvh;overflow-y:auto}.desktop-chat-content .timeline{min-height:24px}
.pending-check{font-size:11px;padding:6px;border:1px solid #c6d8c1;border-radius:7px;background:#edf4e9;white-space:nowrap}.pending-check[hidden]{display:none}.desktop-chat-heading strong{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desktop-chat-heading .desktop-chat-projects{font-size:22px;width:30px;height:30px;padding:0;flex-shrink:0}.desktop-chat-content[hidden],.desktop-chat-navigation[hidden]{display:none}.desktop-chat-navigation{position:relative;flex:1;min-height:0;display:flex;overflow:hidden}.desktop-chat-navigation .sidebar.screen-nav{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:100%!important;min-height:0;flex:1;padding:8px!important;box-shadow:none;border:0}.screen-nav .side-brand{padding:0 3px 6px}.screen-nav .side-brand>div,.screen-nav .side-brand>.brand-mark{display:none}.screen-nav .side-brand{justify-content:flex-end}.screen-nav .nav-search{margin-bottom:5px}.screen-nav .nav-search input{padding:7px;font-size:12px}.screen-nav .nav-tabs{margin-bottom:5px}.screen-nav .nav-tabs button{font-size:12px;padding:6px 3px}.screen-nav .section-label{margin:5px 0;padding:3px 0}.screen-nav .current-project{padding:5px 0}.screen-nav .project-row,.screen-nav .thread-row{padding:8px 6px}.screen-nav .new-thread{padding:8px;margin:5px 0;min-height:32px}.screen-nav .sidebar-bottom{padding-top:5px}.screen-nav .sidebar-bottom>div{display:none}.screen-nav .sidebar-bottom{flex-shrink:0}.screen-nav .project-title,.screen-nav .thread-row strong{font-size:12px}.desktop-panel.floating{max-width:calc(100vw - 12px);box-sizing:border-box}.desktop-panel.full{max-width:none!important}.desktop-heading strong{min-width:0}.desktop-chat-content .pending-check{margin-left:auto}
@media(orientation:landscape){.desktop-panel.full{padding:5px}.desktop-panel.full .desktop-heading{height:25px;margin:0 0 4px}.desktop-panel.full .desktop-status{font-size:9px;margin:3px}.desktop-chat-pane{width:43%;top:34px;bottom:10px}.desktop-chat-content .composer-meta{display:none}.desktop-chat-content .composer{padding:6px 9px}.desktop-chat-content .composer textarea{max-height:55px}.desktop-chat-content .gallery-rail{max-height:80px}.desktop-chat-content .gallery-item{height:64px;flex-basis:64px}.desktop-chat-content .gallery-note{display:none}}
@media(orientation:landscape) and (max-height:500px){.app{min-height:0}.main>.topbar{height:36px;min-height:36px;padding:0 12px}.composer-wrap{padding:4px 10px}.composer-meta{padding-bottom:3px}.composer{padding:6px 9px}.composer textarea{min-height:30px;max-height:55px;height:40px!important}.bottom-note{display:none}.timeline{min-height:0;padding:6px 12px}.composer-bottom{margin-top:3px}.gallery-drawer{padding:5px;margin-top:4px}.gallery-rail{max-height:75px}.gallery-item{height:64px;flex-basis:64px}.gallery-note{display:none}.gallery-toolbar{margin-bottom:2px}#attachments{max-height:65px}#attachments .image-attachment{width:58px;height:58px}}

/* Keep a scrollable list when the screen or the overlay is short. */
.sidebar.screen-nav .side-brand,.sidebar.screen-nav .sidebar-bottom{display:none}
.sidebar.screen-nav .nav-tabs{margin:5px 0 3px}
.sidebar.screen-nav .nav-search input[type=search]{padding:7px 3px;font-size:13px}
.sidebar.screen-nav .nav-panel .section-label{min-height:30px;margin:0;padding:0}
.sidebar.screen-nav .section-toggle{min-height:30px}
.sidebar.screen-nav .section-label .icon-btn{height:30px;width:30px}
.sidebar.screen-nav .new-thread{min-height:30px;padding:6px;margin-top:4px}
.sidebar.screen-nav .current-project{padding:5px;min-height:30px}
.sidebar.screen-nav .current-project strong{font-size:12px}
.sidebar.screen-nav .thread-row,.sidebar.screen-nav .project-row{min-height:42px}
@media(max-height:550px){
 .sidebar{padding:7px 10px!important}
 .sidebar>.side-brand,.sidebar>.sidebar-bottom{display:none}
 .sidebar>.nav-tabs{margin:5px 0 3px}
 .sidebar .nav-search input[type=search]{padding:7px 3px}
 .sidebar .current-project{padding:5px}
 .sidebar .nav-panel .section-label{min-height:30px;margin:0;padding:0}
 .sidebar .section-toggle{min-height:30px}
 .sidebar .section-label .icon-btn{height:30px;width:30px}
 .sidebar .new-thread{min-height:32px;padding:7px;margin-top:4px}
}

.boot-state{padding:52px 24px;color:#456550;font-size:15px;line-height:1.8}.boot-state[hidden]{display:none}

.screen-quality-options{display:grid;gap:9px}.screen-quality-options button{padding:12px 14px;border:1px solid #d7e1cf;border-radius:10px;background:#fff;color:#244c36;text-align:left;font-size:15px}.screen-quality-options button[aria-pressed=true]{background:#e1edda;border-color:#719762}.screen-quality-options small{display:block;font-size:11px;margin-top:5px;color:#728169}
