:root{font-family:"PingFang SC","Microsoft YaHei",sans-serif;--accent:#566c52;--purple:#71865d;--tint:#edf0e8}
.v2{grid-template-columns:66px 250px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.v2 .rail{grid-column:1;padding:13px 7px 10px;gap:3px;min-height:0;background:#efefeb}
.v2 .rail-item{min-height:48px;flex:none;gap:3px;font-size:10px}.v2 .rail-item svg{width:19px;height:19px}
.v2 .rail-sep{margin:9px 0;flex:none}.rail-categories{flex:1;overflow-y:auto;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:3px;scrollbar-width:thin;scrollbar-color:#d7d9d1 transparent}.rail-bottom{padding-top:10px;flex:none}
.v2 .sidebar{grid-column:2;padding:22px 13px 15px;background:#f8f8f5;min-height:0}.v2 .stage{grid-column:3;min-height:0}
.view-caption{font-size:10px;color:#969a90;margin:24px 7px 12px;letter-spacing:1px}.project-picker{background:#efefea;border:1px solid #e2e4db;border-radius:9px;padding:11px 10px}.project-picker label{display:block;font-size:9px;color:#93998b;margin-bottom:7px}.project-picker select{max-width:100%;width:100%;font-size:12px;font-weight:600;border:0;background:transparent;color:#35432e;line-height:1.7}.picker-note{font-size:9px;color:#919a87;margin-top:8px}.category-heading{display:flex;align-items:center;gap:9px;padding:2px 7px}.category-heading h2{font-size:19px;font-weight:600}.category-heading>.icon{color:var(--accent);height:23px;width:23px}.category-heading .tag{margin-left:auto}.scope-note{font-size:10px;color:#969b90;padding:10px 7px 3px}.side-home-title{font-family:"Songti SC","STSong",serif;font-size:22px;padding:6px}
.v2 .new-chat{margin:15px 0 9px;padding:10px}.v2 .new-chat small{font-size:13px}.v2 .searchbox{margin-bottom:3px}.v2 .section-label{margin:14px 7px 8px;font-size:10px}.v2 .side-footer{font-size:10px;margin-top:10px;padding:14px 5px 0;color:#88927c;flex:none}.v2 .side-footer p{font-size:9px;margin-top:7px;color:#a0a596}
.thread-row{width:100%;display:flex;align-items:center;text-align:left;gap:8px;padding:12px 8px;border-radius:8px;margin:3px 0;min-height:43px}.thread-row.selected{background:#e7eae1;box-shadow:inset 2px 0 #7b8d68}.thread-row b{font-size:11px;font-weight:450;display:block;line-height:1.6;overflow-wrap:anywhere}.thread-row.selected b{font-weight:550;color:#33452c}.thread-row small{font-size:11px;display:block;margin-top:3px}.thread-symbol .icon{height:15px;width:15px;display:block}.kind-tag{font-size:11px;color:#656e57;white-space:nowrap}.group-heading{display:flex;align-items:center;gap:5px;padding:12px 6px 5px;font-size:10px;color:#949c88}.group-heading .icon{width:13px;height:13px}.group-heading span{flex:1;line-height:1.6}.group-heading small{font-size:11px}.list-group+.list-group{border-top:1px solid #e8eae2;margin-top:8px;padding-top:3px}.empty-list{padding:35px 12px;font-size:12px;text-align:center;color:#92998a}.empty-list small{display:block;font-size:10px;margin-top:10px;line-height:1.8}
.v2 .topbar{padding:0 18px}.v2 .crumb{overflow:hidden}.v2 .crumb strong{overflow:hidden;text-overflow:ellipsis;max-width:260px}.compare-link{font-size:10px;color:#77846d;text-decoration:none;white-space:nowrap;border-bottom:1px solid #cdd3c5;padding-bottom:2px}.compare-link:hover{color:#34452d}.v2 .top-right{gap:15px}
.v2 .work-content{grid-template-columns:minmax(278px,35%) minmax(0,1fr)}.v2 .product-identity{font-size:11px}.link-project{font-size:9px;display:flex;align-items:center;gap:3px;margin-left:auto;color:#8c9484;padding:5px 6px;border:1px solid #e7e9e1;border-radius:6px}.link-project .icon{width:12px;height:12px}.conversation-title{font-size:15px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}.v2 .project-chip{font-size:10px;margin-top:5px}.lens-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.text-link{font-size:9px;color:#7e8b71;padding:3px 0;border-bottom:1px solid #e2e6d9}.v2 .messages{padding:20px 18px}.v2 .user-message{background:#384438;margin-left:14px}.v2 .composer-wrap{padding:12px 13px}.v2 .composer-note{font-size:8px}.v2 .result-card{border-color:#e0e4d7}.v2 .work-body{padding:20px;min-height:0}.v2 .workspace-footer{font-size:9px;padding:0 14px;gap:8px;flex:none}.v2 .workspace-footer span{display:flex;align-items:center;gap:4px}.v2 .workspace-footer .icon{width:12px;height:12px}.v2 .workspace-footer small{font-size:8px;margin-left:auto}
.result-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;font-size:10px;color:#8d9286}.result-tools .button{font-size:10px;min-height:29px;padding:5px 9px}.small-button{padding:5px 7px;font-size:9px;border-radius:5px}.small-button.active{background:#e5e8dd;color:#46523c}.site-preview{border:1px solid #deded4;border-radius:10px;overflow:hidden;max-width:100%;margin:0 auto;transition:width .2s;background:#eee8d9;color:var(--work-color)}.site-head{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid #d7d4c6;background:#f5f0e5}.site-head b{font-family:"Songti SC",serif;font-size:17px;letter-spacing:2px}.site-head span{font-size:7px;letter-spacing:1px}.site-paper{min-height:390px;position:relative;overflow:hidden;padding:36px 25px}.site-paper>.eyebrow{font-size:7px;letter-spacing:2px;color:var(--work-color);opacity:.65}.site-paper h2{font-family:"Songti SC","STSong",serif;font-size:40px;font-weight:500;letter-spacing:3px;max-width:250px;line-height:1.45;margin:25px 0 17px;position:relative;z-index:1;white-space:pre-line;overflow-wrap:anywhere}.site-paper p{font-size:10px;line-height:1.9;max-width:200px;position:relative;z-index:1}.site-paper button{display:flex;align-items:center;gap:8px;background:var(--work-color);color:#f9f1dd;border-radius:2px;padding:11px 13px;font-size:9px;margin-top:25px;position:relative;z-index:1}.site-paper button .icon{width:14px;height:14px}.paper-circle{position:absolute;width:210px;height:210px;right:-95px;bottom:40px;border:1px solid currentColor;border-radius:50%;opacity:.4}.paper-circle:before{content:"";position:absolute;inset:12px;border:1px solid currentColor;border-radius:50%}.paper-cup{position:absolute;right:14px;bottom:64px;font-size:78px;transform:rotate(-17deg);filter:grayscale(.8);opacity:.7}.site-foot{display:flex;justify-content:space-between;font-size:6px;letter-spacing:1.2px;border-top:1px solid #cfd1bf;margin-top:65px;padding-top:14px}.phone-preview{width:280px}.phone-preview .site-paper{padding:30px 20px}.phone-preview .site-paper h2{font-size:34px}.preview-caption{font-size:9px;color:#9ba18f;text-align:center;padding-top:17px;line-height:1.8}.design-colors{display:flex;align-items:center;gap:9px;margin-bottom:15px}.design-colors small{font-size:9px;margin-left:auto}.v2 .design-canvas{padding:20px 25px}.v2 .poster h2{font-size:clamp(35px,4vw,58px);overflow-wrap:anywhere}
.film{background:var(--work-color);color:#ede7ce;border-radius:9px;min-height:310px;aspect-ratio:4/3;padding:24px;display:flex;flex-direction:column;overflow:hidden;position:relative}.film-label,.film-bottom{font-size:8px;letter-spacing:2px;z-index:1}.film-copy{margin:auto 0;z-index:1}.film-copy small{font-size:9px;color:#c3cbb8}.film-copy h2{font-family:"Songti SC",serif;font-weight:400;font-size:34px;line-height:1.6;margin-top:13px;white-space:pre-line;overflow-wrap:anywhere}.film-orbit{position:absolute;width:240px;height:240px;border-radius:50%;background:#d3bb8433;right:-75px;bottom:-75px;border:25px solid #d3bb8411}.playing .film-orbit{animation:float-film 3s ease-in-out infinite alternate}.film-controls{display:flex;align-items:center;gap:15px;margin:15px 0}.film-controls span{font-size:10px;color:#8d9681}.film-controls .button{font-size:10px}.scene-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.scene-card{text-align:left;border:1px solid #dfe3d7;padding:12px 9px;background:#fbfcf8;border-radius:8px}.scene-card.active{background:#e9eee1;border-color:#9aa88a}.scene-card small{font-size:8px;display:block;margin-bottom:9px}.scene-card b{font-size:10px;font-weight:500;line-height:1.7}.result-heading{padding:25px;border-radius:10px;border:1px solid #dfe4d5;background:#edf1e6;margin-bottom:22px}.result-heading .eyebrow{font-size:8px;color:#869673}.result-heading h2{font:400 26px/1.5 "Songti SC",serif;color:#3f5034;margin:16px 0 10px;overflow-wrap:anywhere}.result-heading p{font-size:11px;line-height:1.9;color:#8b957e}.service-progress{background:#d9e0ce;height:4px;border-radius:3px;overflow:hidden;margin:22px 0 10px}.service-progress span{display:block;height:100%;background:#7c9169}.result-heading small{font-size:9px;color:#899974}.checklist-title{margin-bottom:14px}.checklist-title h3{font-size:12px;font-weight:500}.checklist-title small{font-size:9px}.requirement-list{border:1px solid #dfe4d7;border-radius:9px;overflow:hidden}.requirement{display:flex;align-items:center;gap:10px;background:#fff;width:100%;padding:20px 14px;text-align:left;font-size:11px;border-bottom:1px solid #eaede5}.requirement:last-child{border-bottom:0}.requirement small{font-size:9px;white-space:nowrap}.check-circle{display:grid;place-items:center;width:26px;height:26px;border:1px solid #dbe3cf;border-radius:50%;font-size:9px;color:#90a07f;flex:none}.check-circle .icon{width:13px;height:13px}.check-circle.done{background:#eef3e7;border-color:transparent}.service-disclaimer{font-size:10px;line-height:1.9;color:#8b9680;margin-top:22px;padding:16px;background:#ecefe5;border-radius:8px}.service-disclaimer>.icon{width:14px;height:14px;vertical-align:middle;margin-right:6px}.service-disclaimer p{font-size:9px;color:#a0a894;margin-top:8px}.related-row{display:flex;gap:12px;align-items:center;width:100%;border-bottom:1px solid #e0e4d9;text-align:left;padding:17px 8px}.related-row>.icon{width:17px;height:17px;color:#98a18e}.related-row b{font-size:12px;font-weight:500;display:block}.related-row small{font-size:9px;display:block;margin-top:7px;line-height:1.7}
.v2 .home{padding:40px 35px;overflow:auto}.v2 .home-inner{max-width:880px}.v2 .home h1{font-family:"Songti SC",serif;font-size:35px;font-weight:500;line-height:1.5}.v2 .home-intro{margin-top:12px}.home-section{margin:35px 0 16px}.home-section h3{font-size:13px;font-weight:500}.home-section small{font-size:10px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-card{padding:22px;background:#fafbf7;border:1px solid #e1e5d8;border-radius:13px;text-align:left;color:#414d36}.project-card:hover{border-color:#aab799;background:#f3f6ec;transform:translateY(-2px)}.project-monogram{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--project-color);color:#eee5cf;font-family:"Songti SC",serif;font-size:15px;margin-bottom:20px}.project-card h2{font-size:16px;font-weight:550;line-height:1.7}.project-card p{font-size:11px;color:#939b85;line-height:1.8;margin:9px 0 16px}.project-services{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}.project-services span{font-size:9px;background:#eaf0df;color:#82916e;padding:4px 7px;border-radius:5px}.project-card .row small{font-size:10px}.project-card .row>.icon{width:17px;height:17px}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.category-tile{padding:14px 11px;display:flex;align-items:center;gap:9px;border:1px solid #e4e6dd;border-radius:8px;text-align:left;font-size:11px}.category-tile span:first-child .icon{display:block;width:17px;height:17px}.category-tile>.icon{margin-left:auto;width:12px;height:12px;color:#a4ad97}.empty-main{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;text-align:center}.empty-symbol{color:#91a17f;background:#eef2e7;padding:20px;border-radius:20px;margin-bottom:25px}.empty-symbol .icon{height:35px;width:35px}.empty-main h1{font-family:"Songti SC",serif;font-weight:500;font-size:26px;line-height:1.7}.empty-main p{font-size:12px;color:#92998a;margin:15px 0 25px;line-height:1.9}.dialog-form{display:grid;gap:18px;margin-top:22px}.dialog-form label{display:grid;gap:8px;font-size:11px;color:#7d8672}.dialog-form input,.dialog-form select,.dialog-form textarea{padding:10px 12px;border:1px solid #dce1d3;border-radius:7px;background:#f9faf6;width:100%;font-size:12px;color:#3d4735}.dialog-form textarea{min-height:100px;resize:vertical}.dialog-close{display:flex;justify-content:flex-end;margin:-8px -8px 0}dialog h2{font-size:20px;font-weight:500}dialog p{font-size:12px;color:#8c9580;line-height:1.8;margin-top:12px}.dialog-form>.button{justify-self:end}.sidebar-hidden.v2{grid-template-columns:66px 0 minmax(0,1fr)}
.v2 .service-progress{display:block}.v2 .service-progress span{flex:none}
.project-list-heading{display:flex;align-items:center;justify-content:space-between;padding:0 6px}.project-list-heading h2{font-size:20px;font-weight:550}.project-list-heading .icon-btn{color:#87947a;width:27px;height:27px}.project-list-heading .icon{width:17px;height:17px}.project-tree-group{margin:4px 0 7px}.project-tree-root{display:flex;align-items:center;gap:6px;width:100%;padding:11px 5px;text-align:left;border-radius:7px;font-size:11px;line-height:1.6;color:#747e68}.project-tree-root>.icon{height:15px;width:15px}.project-tree-root .grow{font-weight:550;overflow-wrap:anywhere}.project-tree-root small{font-size:11px;color:#a1a992}.tree-chevron{display:flex;align-items:center}.tree-chevron .icon{height:11px;width:11px}.current-project>.project-tree-root{color:#3d5131}.project-tree-children{border-left:1px solid #dfe4d6;margin:0 0 10px 10px;padding-left:7px}.project-tree-children[hidden]{display:none}.project-tree-children .thread-row{padding:9px 5px;gap:6px;min-height:38px;margin:2px 0}.project-tree-children .thread-row b{font-size:10px}.project-tree-children .thread-symbol .icon{width:13px;height:13px}.project-tree-children .kind-tag{font-size:11px}.tree-empty{padding:11px 10px;font-size:11px;color:#9ba38f}.tree-empty .text-link{display:block;margin-top:9px}
@keyframes float-film{from{transform:translateY(15px) scale(.9)}to{transform:translateY(-35px) scale(1.2)}}
.sidebar:has(.project-list-heading)>.view-caption{display:none}.project-list-heading{margin-top:22px}.project-list-heading+.scope-note{display:none}.project-tree-children .thread-row{padding:8px 5px;min-height:34px;margin:1px 0}.project-tree-children .thread-row b{font-size:11px}
@media(max-width:1180px){.v2{grid-template-columns:60px 225px minmax(0,1fr)}.v2 .rail{padding-left:4px;padding-right:4px}.v2 .work-content{grid-template-columns:280px minmax(0,1fr)}.v2 .work-body{padding:15px}.v2 .topbar{padding:0 12px}.v2 .top-right{gap:10px}.v2 .crumb strong{max-width:220px;font-size:11px}.v2 .site-paper h2{font-size:34px;max-width:220px}.v2 .site-paper{padding:28px 22px}.v2 .home{padding:32px 25px}.v2 .home h1{font-size:31px}.project-card{padding:18px}.category-grid{grid-template-columns:repeat(3,1fr)}.v2.sidebar-hidden{grid-template-columns:60px 0 minmax(0,1fr)}}
@media(max-width:760px){.v2,.v2.sidebar-hidden{grid-template-columns:60px 0 minmax(0,1fr)}.v2 .sidebar{width:265px;left:60px}.v2 .work-content{grid-template-columns:300px minmax(0,1fr)}.v2 .sidebar-hidden .sidebar{visibility:hidden}.v2.drawer-open .sidebar{visibility:visible}.v2 .crumb strong{max-width:240px}}
@media(max-width:700px){.v2 .rail-item{min-height:44px}.v2 .rail-item span{font-size:9px}.v2 .rail{padding-top:8px}.v2 .topbar{gap:3px;padding:0 7px}.v2 .crumb strong{max-width:115px;font-size:10px}.v2 .crumb .icon{display:none}.v2 .top-right{gap:7px}.compare-link{font-size:8px}.v2 .prototype-tag{font-size:8px}.conversation-title{font-size:15px}.v2 .work-content{display:flex}.v2 .home{padding:26px 18px}.v2 .home h1{font-size:25px}.project-grid{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-section{margin-top:28px}.home-section small{display:none}.category-tile{padding:14px 9px;font-size:10px}.v2 .work-body{padding:13px}.result-tools{flex-wrap:wrap}.v2 .site-paper h2{font-size:33px}.v2 .workspace-footer{padding:0 10px}.v2 .workspace-footer small{display:none}.result-heading{padding:19px}.result-heading h2{font-size:24px}.film{padding:20px;min-height:290px}.film-copy h2{font-size:29px}.v2 .home-section .button{font-size:10px}.v2 .design-canvas{padding:15px}.v2 .poster h2{font-size:46px}.v2 .scene-card{padding:10px 7px}.v2 .scene-card b{font-size:9px}}
/* History participates in layout at every width; it never overlays the work area. */
@media(max-width:760px){
  .v2 .history-shade,.v2.drawer-open .history-shade{display:none}
  .v2 .sidebar{position:static;inset:auto;width:auto;transform:none;transition:none;box-shadow:none;z-index:auto;display:none}
  .v2.drawer-open,.v2.drawer-open.sidebar-hidden{grid-template-columns:60px 220px minmax(0,1fr)}
  .v2.drawer-open .sidebar{display:flex;visibility:visible;padding:18px 12px 14px;border-right:1px solid var(--line)}
  .v2.drawer-open .work-content{grid-template-columns:minmax(220px,40%) minmax(0,1fr)}
  .v2.drawer-open .crumb strong{max-width:150px}
  .v2.drawer-open .messages{padding-left:14px;padding-right:14px}
}
@media(max-width:700px){
  .v2,.v2.sidebar-hidden,.v2.drawer-open,.v2.drawer-open.sidebar-hidden{grid-template-columns:60px minmax(0,1fr);grid-template-rows:0 minmax(0,1fr)}
  .v2.drawer-open,.v2.drawer-open.sidebar-hidden{grid-template-rows:minmax(0,40dvh) minmax(0,1fr)}
  .v2 .rail{grid-column:1;grid-row:1 / 3}
  .v2 .sidebar{grid-column:2;grid-row:1}
  .v2 .stage{grid-column:2;grid-row:2}
  .v2.drawer-open .sidebar{border-right:0;border-bottom:1px solid var(--line);padding:10px 12px}
  .v2.drawer-open .sidebar>.view-caption,.v2.drawer-open .sidebar>.scope-note,.v2.drawer-open .sidebar>.side-footer{display:none}
  .v2.drawer-open .project-list-heading{margin-top:8px}
  .v2.drawer-open .new-chat{margin:8px 0}
  .v2.drawer-open .searchbox{margin-bottom:4px}
  .v2.drawer-open .section-label{margin-top:5px}
}

.v2 .project-chip .project-name{min-width:0;overflow-wrap:anywhere}
.v2 .project-chip .link-project{margin-left:0;flex:none}


/* The brand owns the sidebar header; projects use a quiet list label. */
.v2 .section-label.project-list-heading{margin:10px 5px 5px;padding:0;min-height:28px}
.v2 .section-label.project-list-heading h2{font-size:11px;font-weight:500;color:#838c7a;letter-spacing:.5px}
.v2 .section-label .list-label-text{display:flex;align-items:center;gap:8px;flex:1}
.v2 .section-label:not(.project-list-heading) .list-label-text{justify-content:space-between}
.v2 .section-label.project-list-heading #result-count{font-size:9px;color:#a3ab9c}
.v2 .section-label.project-list-heading .icon-btn{width:25px;height:25px}

/* Starting a conversation is an input state, not a creation form. */
.project-tree-row{display:flex;align-items:center;gap:2px}
.project-tree-row .project-tree-root{flex:1;min-width:0;width:auto}
.project-tree-row>.icon-btn{flex:none;width:24px;height:28px;color:#8b977f}
.project-tree-row>.icon-btn:hover{background:#e8ecdf;color:#405635}
.project-tree-row>.icon-btn .icon{width:14px;height:14px}
.current-project>.project-tree-row .project-tree-root{color:#3d5131}
.new-conversation{flex:1;min-height:0;overflow:auto;display:flex;background:#fafbf8;padding:52px 30px 35px}
.new-conversation-inner{width:100%;max-width:680px;margin:auto;text-align:center}
.new-conversation-mark{margin:0 auto 22px;width:44px;height:44px;display:grid;place-items:center;background:#edf1e6;border-radius:14px;color:#768965}
.new-conversation-mark .icon{width:24px;height:24px}
.new-conversation h1{font-size:28px;line-height:1.5;font-weight:550;letter-spacing:-.5px}
.new-conversation-intro{font-size:12px;line-height:1.9;color:#89907f;margin:12px 0 20px}
.new-conversation .agent-launcher{width:100%;text-align:left;background:white}
.new-conversation .agent-launcher textarea{width:100%;min-height:110px;font-size:14px;line-height:1.8}
.new-conversation .agent-launcher-bar{display:flex;align-items:center;gap:12px}
.new-conversation #new-mode{margin-left:auto;border:0;background:#f1f3ed;border-radius:6px;padding:7px 9px;font-size:11px;color:#59634f}
.new-conversation .launch-send{margin-left:0}
.new-conversation-note{font-size:10px;color:#a0a794;margin:18px 0 20px}
@media(max-width:700px){.new-conversation{padding:25px 18px}.new-conversation h1{font-size:23px}.new-conversation-mark{margin-bottom:16px}.new-conversation .agent-launcher textarea{font-size:12px;min-height:80px}}

.new-conversation-intro{margin-bottom:28px}
.new-conversation .agent-launcher-bar{gap:9px;flex-wrap:wrap}
.new-conversation .composer-context-selectors{display:flex;align-items:center;gap:7px;min-width:0;max-width:calc(100% - 125px)}
.new-conversation .agent-launcher-bar select{margin-left:0;padding:7px 9px;border:0;border-radius:6px;background:#f1f3ed;color:#59634f;font-size:11px;height:32px;cursor:pointer}
.new-conversation #new-project{width:var(--project-select-width,96px);min-width:85px;max-width:100%;text-overflow:ellipsis}
.new-conversation #new-category{width:96px;flex:none}
.new-conversation .launch-send{flex:none}
@media(max-width:700px){.new-conversation .composer-context-selectors{max-width:100%;width:100%}.new-conversation #new-project{flex:0 1 var(--project-select-width,96px);width:var(--project-select-width,96px)}.new-conversation #new-mode{margin-left:0}.new-conversation .launch-send{margin-left:auto}}

.v2 .sidebar>.row{gap:3px}
.v2 .sidebar>.row>.icon-btn{flex:none;width:27px;height:28px}
.v2 .sidebar>.row>.icon-btn .icon{width:17px;height:17px}

#search-dialog{width:min(640px,calc(100vw - 40px));max-height:calc(100dvh - 64px);margin:auto;padding:8px;border:1px solid #eceee7;border-radius:20px;background:#fcfcfa;box-shadow:0 28px 90px #20271c30;color:#343a30;overflow:auto}
#search-dialog::backdrop{background:#252b2538;backdrop-filter:blur(3px)}
.search-modal-input{display:flex;align-items:center;gap:11px;padding:12px 12px 17px;border-bottom:1px solid #eceee7;margin-bottom:9px}
.search-modal-input>.icon{width:18px;height:18px;color:#8c9486;flex:none}
.search-modal-input input{flex:1;min-width:0;border:0;background:transparent;font-size:15px;line-height:1.7;color:#343a30;outline:0}
.search-modal-input input::placeholder{color:#9aa191}
.search-escape{padding:3px 6px;border:1px solid #e3e6dc;border-radius:5px;font-size:10px;color:#9aa28f}
.search-modal-label{padding:9px 12px 6px;font-size:11px;color:#929989}
#global-search-results{max-height:min(360px,49dvh);overflow:auto;padding:0 0 4px}
.search-hit{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:11px 12px;border-radius:8px;min-height:41px}
.search-hit[aria-selected="true"]{background:#eceee7}.search-hit:hover{background:#f0f2eb}
.search-hit-icon{display:flex;color:#8b9582;flex:none}.search-hit-icon>.icon{width:15px;height:15px}
.search-hit-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.search-hit-meta{max-width:43%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#9aa18f}
.search-quick{border-top:1px solid #eceee7;margin-top:6px;padding-top:2px}
.search-new{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:8px;text-align:left;font-size:12px;color:#737f66}
.search-new:hover{background:#eceee7}.search-new>.icon{width:15px;height:15px}
.search-modal-help{display:flex;gap:15px;padding:11px 12px 5px;font-size:9px;color:#a4ac9a}
.search-no-results{padding:37px 15px;text-align:center;font-size:13px;color:#737f66}.search-no-results small{display:block;margin-top:10px;font-size:11px;color:#a0a794}
@media(max-width:700px){#search-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 28px)}.search-hit{flex-wrap:wrap;gap:6px}.search-hit-title{flex-basis:calc(100% - 25px)}.search-hit-meta{max-width:100%;margin-left:21px}.search-modal-input input{font-size:13px}}

.context-actions{display:flex;align-items:center;gap:9px;margin-left:auto;flex:none}
.scope-share{display:flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid #dfe4d7;border-radius:7px;background:#fff;font-size:11px;color:#5a6550}
.scope-share>.icon{width:15px;height:15px}
.context-menu{position:relative}.context-menu>summary{list-style:none;cursor:pointer}.context-menu>summary::-webkit-details-marker{display:none}
.context-menu-items{position:absolute;right:0;top:35px;z-index:35;min-width:185px;padding:6px;border:1px solid #e0e5d9;border-radius:10px;background:#fff;box-shadow:0 12px 35px #24331c20}
.context-menu-items>.button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;border:0;background:transparent;text-align:left;font-size:11px;padding:10px 9px;color:#5d6a53}
.context-menu-items>.button:hover{background:#eef2e7}.context-menu-items .icon{width:15px;height:15px}
.v2 .workspace.is-expanded{position:fixed;inset:0;z-index:60;display:flex!important;width:100vw;height:100dvh;max-width:none;transform:none;margin:0;border:0}
.workspace.is-expanded .workspace-toolbar{padding:0 24px}.workspace.is-expanded .work-body{padding:24px;min-height:0;overflow:auto}
.workspace.is-expanded .site-preview{max-width:1100px}.workspace.is-expanded .film{min-height:300px;height:calc(100dvh - 260px);aspect-ratio:auto;max-width:1100px;margin:auto}.workspace.is-expanded .film-controls,.workspace.is-expanded .scene-grid{max-width:1100px;margin:15px auto}
.workspace.is-expanded .design-canvas{max-width:900px;margin:auto}.workspace.is-expanded .poster{max-width:500px}
.share-scope-card{display:flex;align-items:center;gap:13px;background:#eef2e8;padding:18px;border-radius:11px;margin:22px 0;color:#536846}.share-scope-card>.icon{width:25px;height:25px;flex:none}.share-scope-card strong{font-size:14px;font-weight:550}.share-scope-card small{display:block;margin-top:8px;font-size:11px;color:#89967c}
.share-link-label{font-size:11px;color:#8c9780;display:block;margin:22px 0 8px}.share-link-row{display:flex;align-items:center;gap:8px}.share-link-row input{flex:1;min-width:0;height:42px;padding:9px 10px;border:1px solid #dfe5d7;border-radius:8px;background:white;font-size:11px;color:#7a876b}.share-link-row .button{flex:none}
.assignment-list{max-height:330px;overflow:auto;display:grid;gap:15px}#dialog .assignment-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,46%);align-items:center;gap:12px}.assignment-row span{line-height:1.7;overflow-wrap:anywhere}.assignment-row small{display:block;font-size:10px;color:#9ba58e}
@media(max-width:700px){.scope-share{padding:5px 7px;font-size:10px}.context-actions{gap:4px}.context-menu-items{min-width:170px}.workspace.is-expanded .work-body{padding:14px}}

/* A recovery control appears only while the history column is collapsed. */
.v2 .reopen-sidebar{display:none;flex:none}
.v2.sidebar-hidden .reopen-sidebar{display:grid}
@media(max-width:760px){.v2 .reopen-sidebar,.v2.sidebar-hidden .reopen-sidebar{display:grid}.v2.drawer-open .reopen-sidebar,.v2.drawer-open.sidebar-hidden .reopen-sidebar{display:none}}

/* Conversation actions share one top-layer menu, outside the scrolling history. */
.thread-entry{position:relative;border-radius:8px}
.thread-entry .thread-row{padding-right:34px}
.project-tree-children .thread-entry .thread-row{padding-right:30px}
.thread-entry .thread-more{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:25px;height:25px;opacity:0;color:#747b70;background:transparent;transition:opacity .12s}
.thread-entry:hover .thread-more,.thread-entry:focus-within .thread-more,.thread-more[aria-expanded="true"]{opacity:1}
.thread-entry .thread-more:hover,.thread-entry .thread-more:focus-visible{background:#dfe3d8;color:#263326}
.thread-more .icon{width:16px;height:16px}
.thread-action-menu{position:fixed;inset:auto;margin:0;padding:5px;width:174px;border:1px solid #e5e7e0;border-radius:12px;background:#fff;color:#30362e;box-shadow:0 12px 36px #26332224;overflow:visible}
.thread-action-menu::backdrop{background:transparent}
.thread-action-menu .button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;border-radius:7px;padding:10px;text-align:left;font-size:12px;justify-content:flex-start}
.thread-action-menu .button:hover,.thread-action-menu .button:focus-visible{background:#f0f2ec;outline:none}
.thread-action-menu .icon{width:15px;height:15px}
.thread-action-menu .danger{color:#ad5145;margin-top:4px;border-top:1px solid #eceee7;border-radius:0 0 7px 7px}
.thread-action-menu .danger:hover,.thread-action-menu .danger:focus-visible{background:#fbefed}
.thread-action-subtitle{overflow-wrap:anywhere;color:#343c31}
.thread-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
#toast .toast-undo{pointer-events:none;margin-left:18px;color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:5px}
@media(hover:none){.thread-entry .thread-more{opacity:1}}
.v2 .side-scroll{padding-right:8px;scrollbar-width:thin}
.project-tree-children .thread-entry .thread-row{padding-right:5px}
.project-tree-children .thread-entry .kind-tag{min-width:28px;text-align:right}
.project-tree-children .thread-entry:hover .kind-tag,.project-tree-children .thread-entry:focus-within .kind-tag,.project-tree-children .thread-entry:has(.thread-more[aria-expanded="true"]) .kind-tag{opacity:0}

#toast:not(.visible){visibility:hidden}
#toast.visible .toast-undo{pointer-events:auto}

/* 换号登录后的明示横幅：顶号可见、可切回，不再静默刷新 */
.auth-switch-banner{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:14px;padding:10px 20px;background:var(--surface);border-bottom:1px solid var(--line);font-size:13px;line-height:1.6;color:var(--text)}
.auth-switch-banner-action{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.auth-switch-banner-dismiss{margin-left:auto;border:0;background:none;padding:2px 8px;color:var(--subtext);font-size:16px;cursor:pointer;border-radius:6px}
.auth-switch-banner-dismiss:hover,.auth-switch-banner-dismiss:focus-visible{background:var(--soft);outline:none}

/* 对话页头部：面包屑、标题、操作合成一行；高度与第三栏成果工具栏对齐。 */
.v2 .chat-head{height:63px;flex:none;display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--line);position:relative;z-index:2}
.v2 .chat-head .conversation-title{flex:1 1 auto;min-width:0;margin:0;font-size:15px;font-weight:550;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .chat-head .parent-chip{display:inline-flex;align-items:center;gap:6px;max-width:44%;min-width:0;min-height:30px;padding:0 8px;border:1px solid transparent;border-radius:8px;color:var(--subtext);font-size:12px;text-align:left;flex:none}
.v2 .chat-head .parent-chip .icon{width:14px;height:14px}
.v2 .chat-head .parent-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .chat-head .parent-chip .caret{display:flex;align-items:center;color:var(--faint)}
.v2 .chat-head .parent-chip .caret .icon{width:12px;height:12px}
.v2 .chat-head .parent-chip:hover{background:var(--soft);color:var(--text)}
.v2 .chat-head .head-actions{margin-left:auto;display:flex;align-items:center;gap:4px;flex:none}
.v2 .chat-head .head-actions .icon-btn{width:30px;height:30px;flex:none}
.v2 .chat-head .head-actions .icon{width:16px;height:16px}
.v2 .chat-head .head-actions .scope-share{min-height:30px;padding:0 9px;gap:5px;border-color:transparent;background:transparent;color:var(--subtext)}
.v2 .chat-head .head-actions .scope-share:hover{background:var(--soft);color:var(--text)}
.v2 .chat-head .head-actions .scope-share .icon{width:15px;height:15px}
.v2 .chat-head .menu-share{display:none}
.v2 .workspace-toolbar{height:63px}
@media(max-width:700px){.v2 .workspace-toolbar{height:55px}}

/* 密度看对话列自己的宽度：data-density 由 ResizeObserver 写入（chat-header.js）。 */
.v2 .chat[data-density="mid"] .chat-head .wide-only,
.v2 .chat[data-density="narrow"] .chat-head .wide-only{display:none}
.v2 .chat[data-density="mid"] .chat-head .share-label,
.v2 .chat[data-density="narrow"] .chat-head .share-label{display:none}
.v2 .chat[data-density="mid"] .chat-head .scope-share,
.v2 .chat[data-density="narrow"] .chat-head .scope-share{width:30px;padding:0;justify-content:center}
.v2 .chat[data-density="narrow"] .chat-head .parent-chip{display:none}
.v2 .chat[data-density="mid"] .compact-conversation-actions,
.v2 .chat[data-density="narrow"] .compact-conversation-actions{display:flex}
.v2 .chat[data-density="mid"] .compact-conversation-actions .conversation-meta{display:none}

/* ⋯ 菜单里的次级操作；宽列不展开，避免和头部重复。 */
.compact-conversation-actions{display:none;flex-direction:column;border-bottom:1px solid var(--line);padding-bottom:6px;margin-bottom:6px}
.compact-conversation-actions>.button,.compact-conversation-actions .conversation-context{width:100%;min-height:40px;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:8px 9px;border:0;background:transparent;font-size:13px;color:var(--text);text-align:left}
.compact-conversation-actions>.button:hover,.compact-conversation-actions .conversation-context:hover{background:var(--soft)}
.compact-conversation-actions .conversation-meta{display:flex;margin:0;max-width:none}
.conversation-meta{display:flex;flex:none;max-width:42%;min-width:0}
.conversation-context{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;padding:2px 6px;border:1px solid #e5e9df;border-radius:5px;background:#f4f6ef;color:#86917c;font-size:9px;line-height:1.6;text-align:left}
.conversation-context .icon{width:11px;height:11px;flex:none}
.conversation-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
button.conversation-context:hover{color:#53684a;background:#eaf0e3;border-color:#d4deca}
