*{box-sizing:border-box}body{margin:0;color:#243831;background:#f5f6f2;font:14px "Segoe UI","Microsoft YaHei",sans-serif}header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:16px 25px;background:#fff;border-bottom:1px solid #dce3dd}header strong{font-size:19px}header span:not(.tag){display:block;font-size:12px;color:#7b8781;margin-top:5px}.tag{white-space:nowrap;font-size:12px;color:#5f756c;background:#edf3ed;padding:8px 12px;border-radius:20px}main{display:grid;grid-template-columns:220px minmax(400px,1fr) 360px;height:calc(100dvh - 74px)}aside{padding:25px 15px;border-right:1px solid #dde4dd;overflow:auto}.eyebrow{font-size:10px;letter-spacing:2px;color:#829087}h1{font-size:19px;margin:8px 0 24px}#cases{display:grid;gap:10px}.case{background:transparent;border:1px solid transparent;text-align:left;padding:14px 12px;border-radius:9px;cursor:pointer;color:inherit}.case:hover{background:#eaf0e8}.case.active{background:#fff;border-color:#a9beb0;box-shadow:0 2px 8px #24402d08}.case strong{display:block;font-size:15px;margin-bottom:7px}.case small{display:block;line-height:1.7;color:#75827a}.aside-note{font-size:12px;line-height:1.8;color:#869087;margin:24px 10px}.workspace{min-width:0;display:flex;flex-direction:column;background:white}.result-heading{padding:18px 20px 12px;display:flex;justify-content:space-between;gap:12px;align-items:center}h2{font-size:19px;margin:0}#facts{font-size:12px;color:#6d7c74;line-height:1.8;margin:8px 0 0}iframe{border:0;width:100%;flex:1;min-height:400px}.conversation{display:flex;flex-direction:column;min-width:0;border-left:1px solid #dce3dd;background:#fafbf8}.tabs{display:flex;gap:5px;padding:15px;border-bottom:1px solid #e4e9e2}button,textarea{font:inherit}button{cursor:pointer}.tabs button{border:0;background:transparent;padding:9px 14px;color:#819087;border-radius:6px}.tabs .active{background:#e5ece2;color:#2d553e}#history{flex:1;overflow:auto;padding:20px;min-height:120px}.message{line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:22px}.message.user{padding:11px 14px;background:#eaf0e7;border-radius:9px}.message.assistant{padding:0 3px}.message .actor{font-size:11px;display:block;color:#7d897f;margin-bottom:7px}.message .content{white-space:pre-wrap}form{padding:14px 16px 10px;border-top:1px solid #e0e7de}textarea{width:100%;border:1px solid #d6dfd3;border-radius:8px;background:white;padding:12px;resize:vertical;min-height:90px;outline-color:#83a68b}.composer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.composer-bottom small,#status{color:#879186;font-size:11px}.composer-bottom button{border:0;border-radius:7px;background:#385d47;color:#fff;padding:9px 17px}button:disabled{opacity:.5;cursor:wait}#status{margin:8px 0 0;min-height:15px}@media(min-width:1700px){main{grid-template-columns:240px minmax(400px,1fr) 410px}}@media(max-width:1100px){main{grid-template-columns:175px minmax(320px,1fr) 300px}aside{padding:18px 9px}.result-heading .tag{display:none}}@media(max-width:850px){header{height:auto;padding:14px}header>.tag{display:none}main{display:block;height:auto}aside{padding:14px;border-right:0}h1,.eyebrow,.aside-note{display:none}#cases{display:flex;overflow:auto}.case{min-width:160px}.case small{font-size:11px}.workspace{height:750px}.conversation{height:650px;border-top:1px solid #dce3dd}.result-heading{padding:15px}.result-heading h2{font-size:17px}}

[hidden]{display:none!important}.account-bar{display:flex;gap:10px;align-items:center}.account-bar span{font-size:12px;color:#64766a}.account-bar button,.project-heading button,.project-menu,.task-menu,.trash,.new-task{border:0;background:transparent;color:#6a7f70;padding:5px 8px}.project-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.project-heading h1{margin:0;display:block}.project-heading button{font-size:23px}.project-entry{margin-bottom:13px}.project-row{display:flex;align-items:center;gap:3px}.project-title{min-width:0;flex:1;border:0;border-radius:6px;padding:9px 8px;background:transparent;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#354e3e;font-weight:600}.project-title.active{background:#e6ede2}.project-kind{display:block;color:#89958b;font-size:10px;padding:3px 8px}.task-list{padding-left:9px;margin-top:4px}.task-row{display:flex;gap:2px}.task-button{min-width:0;flex:1;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:0;background:transparent;padding:7px 8px;font-size:12px;border-radius:5px;color:#687c6b}.task-button.active{background:#fff;color:#2e563b}.task-menu,.project-menu{opacity:.4}.task-row:hover .task-menu,.project-row:hover .project-menu{opacity:1}.new-task,.trash{font-size:12px;margin-top:8px}.planning-card{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:640px;padding:50px;margin:auto;line-height:1.9;color:#748571}.planning-card h2{font-size:26px;color:#35513e;margin:16px 0}.planning-card ol{padding-left:20px}.planning-card li{padding:9px 0}.account-dialog{border:1px solid #ced9ca;border-radius:12px;padding:25px;min-width:340px;max-width:min(750px,95vw);max-height:85vh;color:#304a38}.account-dialog::backdrop{background:#1a30244a}.account-dialog h2{margin:0 50px 22px 0}.account-dialog .dialog-close{position:absolute;right:15px;top:15px}.account-dialog label{display:block;margin:13px 0;color:#63765f}.account-dialog input:not([type=checkbox]),.account-dialog select{display:block;width:100%;padding:9px;border:1px solid #ccd9c8;border-radius:5px;margin-top:6px;font:inherit}.account-dialog button{border:1px solid #cddaca;background:#f2f6ed;color:#38583e;border-radius:5px;padding:8px 11px;margin:5px}.account-dialog form{padding:0;border:0}.user-list{max-height:58vh;overflow:auto}.user-row{display:grid;grid-template-columns:1fr auto;min-width:400px;gap:5px;padding:12px 0;border-bottom:1px solid #e1e8de}.user-row small{grid-column:1;color:#809076}.user-row button{grid-column:2;grid-row:1/3}.message button{font-size:11px;border:0;background:transparent;color:#698363;margin-top:6px}.trash{margin-top:24px}@media(max-width:850px){.account-bar{gap:4px;flex-wrap:wrap;max-width:50%}.account-bar button{font-size:11px}.account-bar span{width:100%;font-size:11px}#cases{display:block;max-height:260px;overflow:auto}.project-entry{margin-bottom:5px}.project-heading{margin-bottom:8px}.workspace:has(.planning-card:not([hidden])){height:400px}.planning-card{padding:30px}.user-row{min-width:260px}.account-dialog{min-width:290px}}
/* Workbench layout shared with the main product: compact project rail and a
   centered planning conversation; results keep their map and right composer. */
[hidden]{display:none!important}
.access-screen{display:grid;grid-template-columns:1fr 430px;gap:70px;max-width:1080px;margin:9vh auto;padding:24px}.access-intro{align-self:center}.access-intro h1{font-size:32px;margin:0 0 20px}.access-intro p{line-height:1.9;color:#718079}.access-card{padding:30px;background:white;border:1px solid #dce3dd;border-radius:16px}.access-card h2{margin-bottom:20px}.access-card label,.application-page label{display:block;margin:16px 0}.access-card input,.application-page input,.application-page select,.application-page textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #d4dcd6;border-radius:7px;font:inherit}.access-row{display:flex;gap:8px;align-items:center}.access-row input{width:150px;flex:1}.access-card button,.application-page button{padding:10px 14px;border:1px solid #d7ded8;border-radius:7px;background:white;color:#935f47}.access-card button[type=submit]{background:#98664f;color:white;width:100%;margin-top:12px}.access-card>button{margin-top:10px}.application-page{max-width:650px;margin:30px auto;padding:30px;background:white;border-radius:14px}.application-page p{color:#758078;line-height:1.8}
.account-bar{display:flex;gap:9px;align-items:center}.account-bar a{font-size:13px;color:#875d49;text-decoration:none}.account-bar button{padding:6px 10px}.project-heading h1{font-size:14px;color:#718079}.project-title{font-size:13px!important;line-height:1.5!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500!important}.project-row{align-items:center}.project-kind{font-size:11px}.project-entry{margin:2px 0}.task-button{font-size:12px}.project-heading{margin-bottom:10px}.project-row>.project-title{padding:8px 9px}.project-title.active,.task-button.active{background:#e5e9e3!important;border-color:transparent!important}.conversation #history{font-size:15px}.message.user{margin-left:24px;background:#eef0eb;border-radius:13px;padding:12px 15px}.message .content p{margin:4px 0}.message .content pre{white-space:pre-wrap;overflow-wrap:anywhere}.is-planning{grid-template-columns:240px minmax(0,1fr)!important}.is-planning>.workspace{display:none}.is-planning>.conversation{grid-column:2;background:#fafbf8;border-left:0;max-width:1000px;width:100%;justify-self:center;padding:0 30px}.is-planning .tabs{border-bottom:0;padding-top:22px}.is-planning #history{padding:24px 10px}.is-planning #chat{padding-bottom:30px}.is-planning textarea{min-height:110px}.account-dialog:has(.audit-filter){width:min(1100px,94vw);max-height:90vh}.audit-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.audit-filter label{margin:0}.audit-filter select{max-width:200px}.audit-record{white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid #dde4dd;margin:14px 0;padding:12px 0;font-size:13px;line-height:1.8}.audit-record button{margin:10px}.assistant-output-image{max-width:100%}@media(max-width:800px){.access-screen{display:block;margin:20px}.access-card{margin-top:25px}.is-planning{display:block!important}.is-planning>.conversation{padding:0 12px;height:75vh}.account-bar{flex-wrap:wrap}header{height:auto;min-height:74px}}
.conversation-title{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e2e7e1}.conversation-title nav{display:flex;gap:16px}.conversation-title a{color:#95644d;font-size:13px;text-decoration:none}.conversation-title strong{font-weight:500;font-size:14px}.privacy-link{font-size:12px;color:#7c8179;margin:16px;display:inline-block}.planning-card{padding:24px}.planning-card label{display:block;margin:14px 0}.planning-card input:not([type=checkbox]),.planning-card select{display:block;padding:9px;border:1px solid #d5ddd5;border-radius:6px;width:100%;margin-top:6px;font:inherit}.planning-card button{padding:9px 12px;margin-right:8px}.access-intro h1{line-height:1.45}.is-planning .conversation-title{padding-left:10px;padding-right:10px}
#attachment-note{display:flex;gap:8px;padding:0 0 8px}.composer-image{display:inline-block;position:relative;width:78px;height:78px}.composer-image img{width:78px;height:78px;object-fit:cover;border-radius:10px;border:1px solid #d8dfd9}.composer-image .remove-image{position:absolute;right:-5px;top:-5px;width:22px;height:22px;padding:0;border:1px solid #d1d8d1;border-radius:50%;background:white;color:#49534b;line-height:20px}

/* Keep wheel scrolling inside the panel under the pointer. */
#workbench > aside,#history,#chat,.account-dialog,.user-list{
  overscroll-behavior:contain;
}
@media(min-width:0px){
  body:has(#workbench:not([hidden])){
    height:100dvh;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  body:has(#workbench:not([hidden])) > header{flex:0 0 auto}
  #workbench{
    flex:1 1 0;
    height:auto;
    min-height:0;
    grid-template-rows:minmax(0,1fr);
    overflow:hidden;
  }
  #workbench > aside,#workbench > .workspace,#workbench > .conversation{
    min-height:0;
    min-width:0;
  }
  #workbench > aside{overflow:auto}
  #workbench > .workspace,#workbench > .conversation{overflow:hidden}
  #workbench .conversation-title,#workbench .result-heading{flex:0 0 auto}
  #workbench #history{flex:1 1 0;min-height:0;overflow:auto}
  #workbench #chat{flex:0 0 auto;max-height:50%;overflow:auto}
  #workbench #question{max-height:25dvh}
  #workbench #viewer{min-height:0}
}
@media(max-width:850px){
  #workbench,#workbench.is-planning{
    display:flex!important;
    flex-direction:column;
  }
  #workbench > aside{flex:0 0 auto;max-height:25%;overflow:auto}
  #workbench > .workspace{flex:1 1 0;height:auto}
  #workbench > .conversation{flex:1 1 0;height:auto;grid-column:auto}
  #workbench #cases{max-height:none}
}
