:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#252b38;background:#e9ebef;font-synthesis:none;--blue:#4d6cf2;--muted:#8c94a3;--line:#eceef2}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #9bacff;outline-offset:2px}.shell{height:100dvh;min-height:580px;display:grid;grid-template-columns:72px 290px minmax(420px,1fr) 300px;background:#fff;overflow:hidden}.rail{background:#f6f7f9;border-right:1px solid #e9ebef;display:flex;flex-direction:column;align-items:center;padding:20px 0 18px;gap:26px}.brand{width:54px;height:36px;overflow:hidden;border-radius:5px;background:#f9f2e8;position:relative}.brand img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}.rail-group{display:flex;flex-direction:column;gap:13px;align-items:center}.rail-bottom{margin-top:auto}.iconbtn{width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:#929aa9;display:grid;place-items:center}.iconbtn:hover{background:#edf0f6;color:#45546b}.iconbtn.active{background:#e7ebff;color:#4d6cf2}.iconbtn svg,.small-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.profile{height:35px;width:35px;border-radius:12px;background:#262f40;color:white;font-size:13px;font-weight:650;display:grid;place-items:center}.sidebar{background:#fafbfc;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.side-head{padding:29px 22px 18px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;color:#a1a8b4}.side-title{display:flex;align-items:center;justify-content:space-between;margin:7px 0 20px}.side-title h1{font-size:21px;letter-spacing:.02em;margin:0}.add{background:#edf0ff;color:#536ff0;border:0;border-radius:9px;width:29px;height:29px;font-size:21px;line-height:1}.search{height:38px;background:#f0f2f5;border-radius:9px;display:flex;gap:9px;align-items:center;padding:0 12px;color:#a1a8b3}.search svg{width:15px}.search input{width:100%;background:none;border:0;outline:none;font-size:12px;color:#333}.section-label{padding:9px 23px 10px;display:flex;justify-content:space-between;font-size:11px;color:#9ba3b1;font-weight:600;letter-spacing:.04em}.chat-list{overflow:auto;flex:1}.chat-item{border:0;background:none;width:calc(100% - 18px);margin:2px 9px;text-align:left;border-radius:10px;padding:12px 11px;display:flex;gap:11px;align-items:center;color:inherit}.chat-item:hover{background:#f0f2f7}.chat-item.selected{background:#e9edfb}.avatar{width:42px;height:42px;flex:none;border-radius:13px;display:grid;place-items:center;font-weight:700;font-size:15px;color:#fff}.avatar.chief{background:#536de4}.avatar.student{background:#5f8b88}.avatar.class{background:#a08072}.avatar.dev{background:#7787b7}.avatar.custom{background:#8e8aa9}.chat-info{min-width:0;flex:1}.chat-name{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:650}.chat-name time{color:#a5acb8;font-size:10px;font-weight:400}.chat-preview{margin-top:7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;color:#9aa1ae}.pin{font-size:10px;color:#8c9ee9;margin-left:5px}.side-foot{margin:16px;padding:14px;border:1px solid #edf0f3;border-radius:11px;background:#fff;font-size:11px;color:#9aa1ac;line-height:1.7}.side-foot strong{display:block;color:#626d7f;font-size:12px}.main{display:flex;flex-direction:column;min-width:0;background:#fff}.main-head{height:75px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;gap:12px}.main-head .avatar{width:38px;height:38px;border-radius:12px}.head-text{flex:1}.head-text h2{font-size:15px;margin:0 0 5px;font-weight:650}.head-text p{font-size:11px;color:#a0a8b5;margin:0}.dot{width:6px;height:6px;border-radius:50%;background:#77bb9d;display:inline-block;margin-right:5px}.head-actions{display:flex;gap:4px}.conversation{flex:1;overflow-y:auto;padding:30px max(32px,calc((100% - 770px)/2));background:#fff}.date{text-align:center;color:#b1b8c2;font-size:10px;margin:2px 0 26px}.intro{max-width:650px;margin:5px auto 27px;padding:22px 24px;background:#f7f8fc;border:1px solid #eff1f6;border-radius:14px}.intro-top{display:flex;justify-content:space-between;align-items:center}.intro-label{font-size:10px;color:#8792af;letter-spacing:.12em;font-weight:700}.intro h3{font-size:17px;margin:11px 0 8px;color:#343c4c}.intro p{font-size:12px;line-height:1.8;color:#8992a1;margin:0}.tag{background:#fff;border:1px solid #e9edf4;padding:5px 8px;border-radius:6px;font-size:10px;color:#8e99ab}.message{display:flex;align-items:flex-start;gap:11px;margin:22px auto;max-width:650px}.message .avatar{width:33px;height:33px;border-radius:10px;font-size:12px}.message-body{min-width:0;max-width:82%}.message-meta{font-size:11px;color:#8b94a4;margin:0 0 8px}.message-meta time{color:#bcc2cb;margin-left:8px;font-size:10px}.bubble{font-size:13px;line-height:1.85;background:#f5f6f8;border-radius:2px 13px 13px 13px;padding:13px 16px;color:#4a5361;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{flex-direction:row-reverse}.message.user .bubble{background:#e9eeff;color:#3d4c78;border-radius:13px 2px 13px 13px}.message.user .message-meta{text-align:right}.sample-note{text-align:center;font-size:10px;color:#b1b8c2;margin:20px 0}.composer-wrap{flex:none;padding:10px max(32px,calc((100% - 770px)/2)) 20px}.composer{border:1px solid #e4e7ed;border-radius:14px;box-shadow:0 5px 18px #293d6b09;background:#fff}.composer textarea{border:0;outline:0;resize:none;width:100%;height:71px;padding:17px 18px 3px;color:#3a4251;background:transparent;font-size:13px}.composer textarea::placeholder{color:#b5bdc9}.composer-bottom{display:flex;align-items:center;justify-content:space-between;padding:0 10px 10px}.composer-tools{display:flex;gap:3px}.composer-tools .iconbtn{width:31px;height:31px}.composer-tools svg{width:17px;height:17px}.send{border:0;background:#526ff0;color:white;border-radius:9px;padding:9px 14px;font-size:12px;font-weight:600}.send:hover{background:#415ede}.send:disabled{opacity:.5}.composer-hint{text-align:center;font-size:10px;color:#b4bbc5;margin:9px 0 0}.details{border-left:1px solid var(--line);padding:27px 23px;overflow-y:auto;background:#fff}.details-heading{font-size:13px;font-weight:650;display:flex;justify-content:space-between;align-items:center}.details-heading button{border:0;background:none;color:#a0a9b6;font-size:17px}.profile-card{text-align:center;padding:24px 0 23px;border-bottom:1px solid var(--line)}.profile-card .avatar{width:54px;height:54px;border-radius:17px;margin:0 auto 12px;font-size:20px}.profile-card h3{font-size:14px;margin:0 0 7px}.profile-card p{font-size:11px;color:#9aa3b1;margin:0;line-height:1.7}.detail-section{padding:24px 0;border-bottom:1px solid var(--line)}.detail-heading{font-size:12px;font-weight:650;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.detail-heading span{font-size:11px;color:#aab1bb;font-weight:400}.status-line{display:flex;align-items:center;gap:8px;color:#697486;font-size:12px}.status-badge{margin-left:auto;background:#f0f6f3;color:#6caa8d;border-radius:5px;padding:4px 7px;font-size:10px}.mini-task{display:flex;gap:9px;margin:14px 0;color:#6e7786;font-size:12px;line-height:1.5}.check{width:14px;height:14px;flex:none;border:1px solid #d4dae4;border-radius:4px;margin-top:2px}.empty{color:#aab2bd;font-size:12px;line-height:1.8}.capability{display:flex;justify-content:space-between;color:#7d8796;font-size:11px;margin:14px 0}.capability b{color:#aab2bc;font-weight:500}.back{display:none}.overlay{position:fixed;inset:0;background:#18223566;display:grid;place-items:center;padding:20px;z-index:10}.modal{background:white;border-radius:16px;width:min(420px,100%);padding:24px;box-shadow:0 20px 80px #15203930}.modal h2{font-size:17px;margin:0 0 8px}.modal p{font-size:12px;color:#8a94a3;line-height:1.7}.modal label{display:block;font-size:12px;font-weight:600;margin:18px 0 7px}.modal input{border:1px solid #e4e7ed;padding:11px;border-radius:8px;width:100%;outline:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.modal-actions button{padding:9px 15px;border-radius:8px;border:1px solid #e7e9ef;background:#fff;color:#697386;font-size:12px}.modal-actions .primary{background:#526ff0;color:#fff;border-color:#526ff0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#2d3544;color:#fff;padding:10px 15px;border-radius:8px;font-size:12px;display:none;z-index:20}@media(max-width:1200px){.shell{grid-template-columns:64px 260px minmax(360px,1fr)}.details{display:none}}@media(max-width:720px){.shell{min-height:0;grid-template-columns:58px minmax(0,1fr)}.rail{padding-top:17px}.sidebar{display:flex}.main{display:none}.shell.chat-open .sidebar{display:none}.shell.chat-open .main{display:flex}.back{display:grid}.main-head{padding:0 15px;height:65px}.conversation{padding:24px 18px}.composer-wrap{padding:8px 15px 16px}.brand{width:46px}.side-head{padding-top:25px}}
.search svg{height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* Warm paper palette and a quieter, larger brand header. */
:root{font-family:Georgia,"Songti SC","Noto Serif SC",serif;--line:#e8dfd2;background:#f8f2e9;color:#332d29}
.shell,.main,.conversation,.details{background:#faf4eb}
.rail{background:#f4ede2;border-color:#e8dfd2;padding-top:29px}
.sidebar{background:#f7f0e6;border-color:#e8dfd2}
.side-head{padding:22px 22px 18px}
.brand{position:relative;width:155px;height:55px;border-radius:0;overflow:hidden;background:transparent;margin:0 0 21px -4px}
.brand img{object-fit:cover;mix-blend-mode:darken}
.side-title{margin:0 0 18px}.side-title h1{font-size:19px}
.search{background:#eee8df}.chat-item:hover{background:#eee7de}.chat-item.selected{background:#e7e8f5}
.intro{background:#f4ede4;border-color:#ece2d5}.bubble{background:#f0e9df}.composer{background:#fffaf4;border-color:#e6dbcd}.details{border-color:#e8dfd2}
.iconbtn.active{background:#e9e8f2}.modal{background:#fffaf4}.modal input,.modal textarea{background:#fffdf9}
.collect-btn{border:0;background:none;color:#77716e;display:flex;gap:6px;align-items:center;font-size:12px;padding:6px 9px;border-radius:7px}.collect-btn:hover{background:#f3ece3}.collect-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.modal textarea{width:100%;height:180px;resize:vertical;border:1px solid #e6ded3;border-radius:9px;padding:12px;outline:0;font:inherit;font-size:13px;line-height:1.7}.modal input[type=file]{display:none}.file-label{display:inline-block!important;color:#526ff0;cursor:pointer;margin:12px 0 0!important}.collect-note{margin-bottom:0}
@media(max-width:720px){.brand{width:140px;height:50px}.side-head{padding-top:20px}}
.avatar.partner{background:#a9826d}.shortcuts{display:flex;gap:8px;align-items:center;padding:0 max(32px,calc((100% - 770px)/2)) 5px;flex-wrap:wrap}.shortcuts span{font-size:11px;color:#a39b92;margin-right:2px}.shortcuts button{border:1px solid #e7ded2;background:#faf5ee;color:#746b64;border-radius:8px;padding:7px 10px;font-size:11px}.shortcuts button:hover,.feature-card:hover{background:#eee7dc}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.feature-card{text-align:left;border:1px solid #e9e1d6;border-radius:10px;padding:14px;background:#fcf8f2;color:#413a35}.feature-card strong,.feature-card span{display:block}.feature-card strong{font-size:13px}.feature-card span{font-size:11px;color:#9a9188;margin-top:6px;line-height:1.5}.quiet-note{font-size:11px!important;color:#a49a90!important}.record-list{max-height:200px;overflow:auto;margin:14px 0}.record-row,.pref-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #eee6dc}.record-check{border:1px solid #cfc7bc;background:none;border-radius:5px;width:19px;height:19px;color:#526ff0;flex:none}.record-check.checked{background:#e9edff;border-color:#bdc9fa}.record-content{display:flex;flex-direction:column;gap:5px;font-size:12px}.record-content span,.resume-row span{font-size:11px;color:#9c938b;line-height:1.5}.record-content .done{text-decoration:line-through;color:#aaa}.record-empty{font-size:12px;color:#a59c92;padding:16px 0}.resume-row{padding:12px 0;border-bottom:1px solid #eee6dc;display:flex;flex-direction:column;gap:5px;font-size:13px}.pref-row{justify-content:space-between;font-size:12px;color:#625a54}.pref-row button{border:0;background:transparent;color:#968c84;font-size:11px}.modal input[type=date]{color:#655d57}@media(max-width:720px){.shortcuts{padding:0 15px 5px}.shortcuts span{display:none}}
.modal{max-height:calc(100dvh - 40px);overflow-y:auto}
.partner-history{max-height:200px;overflow-y:auto}.partner-message{padding:9px 0;border-bottom:1px solid #eee6dc}.partner-message span{font-size:10px;color:#a69d93}.partner-message p{margin:5px 0;color:#554d46;white-space:pre-wrap;overflow-wrap:anywhere}
.home-entry{width:100%;border:1px solid #e8ddce;border-radius:11px;background:#fbf6ef;color:#403a34;padding:11px;text-align:left;display:flex;align-items:center;gap:10px;margin:0 0 23px}.home-entry:hover,.home-entry.selected{background:#ececf7;border-color:#e4e4f0}.home-entry-icon{width:34px;height:34px;border-radius:10px;background:#536de4;color:white;display:grid;place-items:center;flex:none}.home-entry-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}.home-entry strong,.home-entry small{display:block}.home-entry strong{font-size:13px}.home-entry small{font-size:10px;color:#9b9690;margin-top:4px}.home-arrow{margin-left:auto;color:#aaa3a0;font-size:20px}.chief-home{flex:1;overflow:auto;padding:40px max(32px,calc((100% - 770px)/2)) 24px}.home-content{max-width:700px;margin:0 auto}.home-welcome{padding:10px 0 25px}.home-kicker{font-size:11px;color:#968d83}.home-welcome h1{font-size:23px;font-weight:650;margin:13px 0 9px;color:#302d2c}.home-welcome p{font-size:12px;color:#9c9288;margin:0;line-height:1.7}.home-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.home-stats button{text-align:left;border:1px solid #e9e0d5;background:#fcf8f2;border-radius:13px;padding:18px;display:flex;flex-direction:column;gap:9px;color:#514b47}.home-stats button:hover{border-color:#cfc7e9;background:#faf7f3}.home-stats span{font-size:12px;color:#938a82}.home-stats strong{font-size:24px;font-weight:600}.home-stats small{font-size:10px;color:#a29a92}.home-section{padding-top:29px}.home-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.home-section-title h2{font-size:14px;margin:0}.home-section-title button{border:0;background:none;color:#8b84a5;font-size:11px}.home-section-title span{font-size:10px;color:#aaa198}.home-empty{min-height:79px;border:1px dashed #e4dbd0;border-radius:11px;display:flex;align-items:center;justify-content:space-between;padding:16px;color:#a39a91;font-size:12px}.home-empty button{border:0;background:transparent;color:#6974bd;font-size:12px}.home-task{background:#fcf8f2;border:1px solid #ebe3d9;border-radius:10px;padding:13px;display:flex;gap:10px;margin-bottom:8px}.home-task-dot{width:8px;height:8px;background:#8588cb;border-radius:50%;margin-top:5px}.home-task strong,.home-task small{display:block}.home-task strong{font-size:12px}.home-task small{font-size:10px;color:#aaa198;margin-top:6px}.home-history .message{margin:12px 0}.home-history .message-body{max-width:90%}.home-history .profile{width:30px;height:30px;font-size:11px}
@media(max-width:720px){.chief-home{padding:25px 18px 18px}.home-welcome h1{font-size:20px}.home-stats{gap:7px}.home-stats button{padding:12px 9px}.home-stats strong{font-size:21px}.home-empty{gap:10px}.home-entry{margin-bottom:18px}}
.header-brand{display:none}
@media (min-width:551px) and (max-width:720px){
 .shell,.shell.chat-open{grid-template-columns:52px 190px minmax(0,1fr)}
 .shell .sidebar,.shell.chat-open .sidebar,.shell .main,.shell.chat-open .main{display:flex}
 .rail{padding-top:20px}.brand{width:130px;height:48px}.side-head{padding:19px 14px 12px}
 .section-label{padding-left:16px;padding-right:16px}.chat-item{padding:10px 8px;gap:8px}.chat-item .avatar{width:34px;height:34px;border-radius:10px}.chat-name{font-size:12px}.chat-preview{font-size:10px}.back{display:none}.main-head{padding:0 17px}
 .conversation,.chief-home{padding-left:18px;padding-right:18px}.composer-wrap{padding-left:15px;padding-right:15px}.shortcuts{padding-left:15px;padding-right:15px}
}
@media(max-width:550px){
 .shell,.shell.chat-open{position:relative;grid-template-columns:52px minmax(0,1fr)}
 .shell .main,.shell.chat-open .main{display:flex;grid-column:2;grid-row:1}
 .shell .sidebar{display:flex;position:absolute;z-index:5;left:52px;top:0;bottom:0;width:min(280px,calc(100vw - 52px));box-shadow:12px 0 35px #40352b25}
 .shell.chat-open .sidebar{display:none}.back{display:grid;flex:none}.main-head{gap:8px;padding:0 10px}
 .header-brand{width:88px;height:36px;position:relative;overflow:hidden;display:block;flex:none}
 .header-brand img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center;mix-blend-mode:darken}
 .main-head>.avatar{display:none}.head-text h2{font-size:13px}.head-text p{font-size:10px}
}
/* A restrained, avatar-free layout. */
.home-entry{padding:14px 15px;margin-bottom:26px;border-color:transparent;background:transparent;border-radius:8px;gap:0}
.home-entry:hover,.home-entry.selected{background:#eee9e1;border-color:transparent}
.home-entry strong{font-size:14px;color:#332d29}.home-entry small{font-size:11px;color:#9a9187;margin-top:5px}
.home-arrow{font-size:17px;color:#a59a8c}
.side-title h1{font-size:17px;letter-spacing:.02em}.section-label{padding-top:13px;color:#a59c91}
.chat-item{position:relative;padding:14px 15px;border-radius:8px;margin:2px 9px;min-height:60px}
.chat-item.selected{background:#eee9e1}.chat-item.selected:before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:2px;background:#6877b5}
.chat-name{font-size:13px;color:#3c3530}.chat-preview{display:block;margin-top:6px;color:#a39a90;font-size:11px}
.main-head{padding-left:32px}.head-text h2{font-size:15px}.head-text p{font-size:11px}
.message{display:block}.message.user .message-body{margin-left:auto}.message-body{max-width:85%}.message.user .message-meta{text-align:right}
.profile-card{text-align:left;padding:20px 0}.profile-card h3{font-size:15px}.profile-card p{margin-top:7px}
@media (min-width:551px) and (max-width:720px){.chat-item{padding:12px 13px}.main-head{padding-left:18px}}
@media(max-width:550px){.main-head{padding-left:10px}}
.home-welcome{padding-bottom:24px}.home-welcome h1{margin:8px 0 0}.home-entry{min-height:47px}.chat-item{min-height:46px;padding-top:12px;padding-bottom:12px}.home-stats button{min-height:82px;justify-content:space-between}.head-text h2{margin:0}.main-head{height:66px}.profile-card{padding:12px 0 20px}
/* Type scale and structural separators */
:root{--divider:#dcd1c4;--text-main:#302a25;--text-muted:#82786f}
.rail{border-right:1px solid var(--divider)}
.sidebar{border-right:1px solid var(--divider)}
.side-head{padding-bottom:20px;border-bottom:1px solid var(--divider)}
.brand{margin-bottom:24px}
.home-entry{margin-bottom:24px;padding:13px 14px}
.home-entry strong,.chat-name{font-size:14px;font-weight:600;line-height:1.45;color:var(--text-main)}
.side-title h1{font-size:16px;line-height:1.4;letter-spacing:0}
.section-label{font-size:12px;line-height:1.5;color:var(--text-muted);padding-top:18px;padding-bottom:8px}
.chat-item{margin-top:3px;margin-bottom:3px;min-height:48px}
.chat-preview,.search input{font-size:12px;line-height:1.5}
.main-head{height:66px;border-bottom:1px solid var(--divider);padding-right:28px}
.head-text h2{font-size:16px;line-height:1.4;font-weight:600;color:var(--text-main)}
.chief-home{padding-top:32px}
.home-welcome{padding:8px 0 24px}
.home-welcome h1{font-size:22px;line-height:1.45;font-weight:600;letter-spacing:.01em}
.home-stats{gap:12px}
.home-stats button{min-height:92px;padding:16px 18px;border:1px solid var(--divider);border-radius:10px;background:#fbf7f1}
.home-stats span{font-size:13px;line-height:1.4;color:var(--text-muted)}
.home-stats strong{font-size:22px;line-height:1.1;color:var(--text-main)}
.home-section{margin-top:26px;padding-top:22px;border-top:1px solid var(--divider)}
.home-section-title{margin-bottom:15px}
.home-section-title h2{font-size:15px;line-height:1.4;font-weight:600;color:var(--text-main)}
.home-section-title button,.home-empty,.home-empty button{font-size:13px;line-height:1.5}
.home-empty{border-color:var(--divider);min-height:72px}
.shortcuts{padding-top:14px;border-top:1px solid var(--divider)}
.shortcuts button,.collect-btn,.send{font-size:12px;line-height:1.4}
.composer{border-color:#d8cdbf;box-shadow:none}
.composer textarea{font-size:14px;line-height:1.6}
.composer-hint{font-size:11px;color:#948a80}
.details{border-left:1px solid var(--divider)}
.details-heading,.detail-heading{font-size:14px}.profile-card h3{font-size:15px}.profile-card p,.status-line{font-size:12px}
@media(min-width:551px) and (max-width:720px){.side-head{padding:19px 14px 17px}.home-welcome h1{font-size:19px}.home-stats{gap:8px}.home-stats button{padding:13px;min-height:84px}.chief-home{padding:25px 18px 18px}.shortcuts{padding:12px 15px 5px}.section-label{padding-left:16px;padding-right:16px}}
@media(max-width:550px){.home-welcome h1{font-size:19px}.home-stats button{padding:12px 10px;min-height:78px}.home-stats span{font-size:12px}.home-stats strong{font-size:20px}.chief-home{padding:22px 18px}.shortcuts{padding:12px 15px 5px}.main-head{padding-right:10px}}
.chat-list{padding-top:12px}
.chat-item + .chat-item::after{content:"";position:absolute;top:-2px;left:14px;right:14px;height:1px;background:var(--divider);pointer-events:none}
.priority-dot{width:9px;height:9px;border-radius:50%;display:block;flex:none;margin-right:11px;background:#a8a29b}.color-red{background:#d8655d}.color-orange{background:#d89657}.color-yellow{background:#c8ac55}.color-green{background:#71a08b}.color-blue{background:#708fd1}.color-purple{background:#a286b5}.chat-item{align-items:center}.modal select{width:100%;padding:11px;border:1px solid #e4e7ed;border-radius:8px;background:#fffdf9;color:#332d29;font:inherit;font-size:13px}
.chat-list{padding:12px 15px 20px;overflow-y:auto}.chat-group{border:1px solid var(--divider);border-radius:9px;overflow:hidden;background:#faf5ed}.chat-group .chat-item{width:100%;margin:0;border-radius:0;padding:13px 15px;min-height:50px}.chat-group .chat-item+.chat-item::after{top:0;left:15px;right:15px}.chat-group .chat-item.selected:before{top:10px;bottom:10px}.chat-group .empty{margin:0;padding:16px!important}
.commander-icon{display:grid;place-items:center;width:25px;height:25px;margin-right:10px;color:#566594;flex:none}.commander-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.home-entry strong,.chat-name{font-size:14px;font-weight:600}.priority-dot{width:9px;height:9px;margin-right:12px}
.modal .color-picker{display:flex;align-items:center;gap:10px}.modal .color-picker input[type=color]{width:42px;height:38px;padding:3px;flex:none;border-radius:7px;cursor:pointer}.modal .color-picker input[type=text]{flex:1;width:auto;font-family:ui-monospace,monospace}.color-presets{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.color-swatch{width:22px;height:22px;border-radius:50%;border:1px solid #0002;cursor:pointer}.color-swatch:focus-visible{outline:2px solid #536de4;outline-offset:3px}
@media(min-width:551px) and (max-width:720px){.chat-list{padding-left:12px;padding-right:12px}.chat-group .chat-item{padding-left:12px;padding-right:12px}}
/* Compact navigation and independent task windows. */
@media(min-width:1201px){.shell{grid-template-columns:64px 245px minmax(420px,1fr) 265px}}
@media(min-width:721px) and (max-width:1200px){.shell{grid-template-columns:60px 230px minmax(360px,1fr)}}
.home-entry strong{font-size:17px;font-weight:650;letter-spacing:.04em}.home-entry{padding-top:12px;padding-bottom:12px}.home-arrow{font-size:15px}
.task-bar{display:flex;align-items:center;gap:8px;min-height:49px;padding:0 20px;border-bottom:1px solid var(--divider);background:#f9f3eb;flex:none}.task-tabs{display:flex;gap:3px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin}.task-tab{display:flex;align-items:center;gap:7px;max-width:180px;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:transparent;color:#8a8076;padding:13px 10px 12px;font-size:12px}.task-tab span:last-child{overflow:hidden;text-overflow:ellipsis}.task-tab.selected{color:#34302c;border-bottom-color:#6978b9;font-weight:600}.task-dot{width:8px;height:8px;border-radius:50%;flex:none;box-shadow:0 0 0 1px #0002}.task-manage{border:1px solid var(--divider);background:#fcf8f2;color:#716a63;width:27px;height:27px;border-radius:7px;font-size:19px;line-height:1}.task-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #ebe2d8}.task-row-name{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-row button{border:0;background:#f1eae1;color:#71675e;border-radius:6px;padding:6px 8px;font-size:12px}.task-row button:disabled{opacity:.3;cursor:default}.task-management{max-height:240px;overflow:auto}
@media(max-width:720px){.task-bar{padding:0 12px}.task-tab{max-width:130px;padding-left:8px;padding-right:8px}}
.composer-send{display:flex;align-items:center;gap:8px}.model-select{position:relative;display:flex;align-items:center}.model-select select{appearance:none;-webkit-appearance:none;max-width:145px;border:1px solid #e3dace;background:#faf5ee;color:#655e57;border-radius:9px;padding:8px 27px 8px 11px;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}.model-select::after{content:"";position:absolute;right:11px;top:50%;width:6px;height:6px;border-right:1.4px solid #91877c;border-bottom:1.4px solid #91877c;transform:translateY(-70%) rotate(45deg);pointer-events:none}.model-select select:focus-visible{outline:3px solid #9bacff;outline-offset:2px}.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}@media(max-width:550px){.composer-send{gap:5px}.model-select select{max-width:104px;padding-left:8px;padding-right:21px;font-size:11px}.model-select::after{right:8px}.send{padding:9px 10px}}
.side-tools{display:flex;align-items:center;gap:6px}.search-toggle{width:29px;height:29px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#8f99aa;cursor:pointer}.search-toggle:hover,.search-toggle.active{background:#eee8df;color:#536de4}.search-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.side-title:has(+ .search){margin-bottom:14px}.side-title:not(:has(+ .search)){margin-bottom:0}
/* The conversation group meets the sidebar boundaries. */
.chat-list{padding:0}
.chat-group{border:0;border-bottom:1px solid var(--divider);border-radius:0}
@media(min-width:551px) and (max-width:720px){.chat-list{padding:0}}
.chat-group .chat-item+.chat-item::after{left:0;right:0;background:#eae2d8}
.main-head{height:48px;min-height:48px}
/* Tighter, consistent spacing across navigation and content. */
.rail{padding-top:14px;gap:14px}.rail-group{gap:7px}
.side-head{padding-top:14px;padding-bottom:12px}
.brand{height:46px;margin-bottom:12px}
.home-entry{min-height:40px;padding:9px 12px;margin-bottom:14px}
.side-title{margin-bottom:0}.side-title:has(+ .search){margin-bottom:10px}
.chat-group .chat-item{min-height:43px;padding:9px 13px}
.chat-group .chat-item.selected:before{top:8px;bottom:8px}
.chief-home{padding-top:18px;padding-bottom:14px}
.home-welcome{padding:4px 0 14px}.home-welcome h1{margin:0}
.home-stats{gap:8px}.home-stats button{min-height:74px;padding:11px 14px;gap:6px}
.home-section{margin-top:15px;padding-top:14px}.home-section-title{margin-bottom:9px}
.home-empty{min-height:58px;padding:11px 13px}.home-task{padding:10px;margin-bottom:6px}
.shortcuts{padding-top:8px;padding-bottom:3px;gap:6px}.shortcuts button{padding:5px 8px}
.composer-wrap{padding-top:6px;padding-bottom:10px}.composer textarea{height:54px;padding:12px 14px 2px}.composer-bottom{padding:0 8px 8px}.composer-hint{margin-top:5px}
.task-bar{min-height:41px}.task-tab{padding-top:10px;padding-bottom:9px}
.profile-card{padding:10px 0 14px}.detail-section{padding:15px 0}
@media(min-width:551px) and (max-width:720px){.side-head{padding-top:14px;padding-bottom:12px}.chief-home{padding-top:18px;padding-bottom:14px}.shortcuts{padding-top:8px}.home-stats button{min-height:68px;padding:10px 11px}}
@media(max-width:550px){.chief-home{padding-top:16px;padding-bottom:12px}.home-stats button{min-height:65px;padding:9px}.shortcuts{padding-top:8px}}
/* Solid surfaces distinguish the main regions. */
.rail{background:#eee6da}
.sidebar{background:#f4ece1}
.main,.chief-home,.conversation{background:#faf4eb}
.home-entry.selected{background:#e8e6f1}
.chat-group .chat-item.selected{background:#eae8f2}
.home-stats button{background:#fffaf4}
.composer{background:#fffcf8}
.send{background:#526de4}
.send:hover{background:#415bca}
.main-head{background:#f4ece1}
.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.composer-footer .composer-hint{margin:0 0 0 auto}.add-matter-quick{padding:5px 2px;border:0;background:transparent;color:#596cae;font:inherit;font-size:12px;cursor:pointer}.add-matter-quick:hover{color:#384e97}
.expand-mark{color:#a99f94;font-family:system-ui,sans-serif;font-size:16px;margin-left:5px}.nested-tasks{padding:2px 0 6px;background:#f3ece3;border-top:1px solid #eae2d8}.nested-task{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;border:0;background:transparent;text-align:left;padding:7px 13px 7px 32px;font:inherit;font-size:12px;color:#716960;cursor:pointer}.nested-task:hover,.nested-task.selected{background:#e9e5e4;color:#39342f}.nested-dot{width:6px;height:6px;border-radius:50%;flex:none}.nested-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.sample-badge{font-size:10px;color:#a29a91;flex:none}.demo-card{max-width:620px;margin:10px auto;background:#f4ede4;border:1px solid #e7ded2;border-radius:10px;padding:18px 20px}.demo-card h3{margin:0;font-size:16px}.composer textarea:disabled{opacity:.55}.send:disabled{cursor:not-allowed}
.chat-group > .chat-item:not(:first-child)::after{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:#eae2d8;pointer-events:none}
.nested-manage{width:100%;border:0;background:transparent;color:#8e877f;text-align:left;padding:7px 13px 8px 46px;font:inherit;font-size:11px;cursor:pointer}.nested-manage:hover{color:#526de4;background:#e9e5e4}
.storage-warning{position:fixed;z-index:30;top:0;left:50%;transform:translateX(-50%);max-width:min(650px,95vw);padding:11px 16px;border:1px solid #d5a071;border-radius:0 0 9px 9px;background:#fff2dc;color:#694321;font-size:13px;line-height:1.5;box-shadow:0 4px 16px #392a171c}
.archived-title{font-size:11px;color:#8b8178;margin-top:16px;padding-bottom:4px}
.import-file{position:absolute;width:1px;height:1px;opacity:0}.import-file-label{display:inline-block!important;padding:9px 12px;margin:8px 0!important;border:1px solid var(--divider);border-radius:7px;color:#596cae;cursor:pointer}.import-file:focus-visible+.import-file-label,.import-file-label:has(+ .import-file:focus-visible){outline:3px solid #9bacff;outline-offset:2px}.modal-actions{flex-wrap:wrap}.modal-actions button:disabled{opacity:.45;cursor:not-allowed}
.modal select:not([multiple]){width:100%;border:1px solid #e4e7ed;border-radius:8px;background:#fffdf9;color:#514b47;padding:10px 11px;font:inherit;font-size:13px}.record-content{flex:1;min-width:0;overflow-wrap:anywhere}.record-edit{border:0;background:transparent;color:#7d78a2;font:inherit;font-size:11px;cursor:pointer;padding:2px 4px}
.lookup-list{max-height:min(50vh,380px);overflow:auto;margin-top:12px}.lookup-row{display:flex;flex-direction:column;gap:5px;width:100%;padding:11px 4px;text-align:left;border:0;border-bottom:1px solid #eee6dc;background:transparent;color:#403a35}.lookup-row:hover{background:#f5eee5}.lookup-row span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.lookup-row small{font-size:11px;color:#958b81}
.due-overview{display:grid;gap:18px}.due-group h3{margin:0;color:var(--text-main);font-size:13px;line-height:1.5}.due-group .lookup-list{margin-top:5px}.due-group:first-child h3{color:#a45248}body[data-theme="dark"] .due-group:first-child h3{color:#e6a39a}
.message-found .bubble{outline:2px solid #8e9cec;outline-offset:3px;transition:outline-color .3s}
.home-task{width:100%;text-align:left;color:inherit;font:inherit;align-items:flex-start}.home-task:hover{border-color:#cfc7e9;background:#faf7f3}
.message-edit{border:0;background:transparent;color:#8a8290;font:inherit;font-size:11px;padding:2px 4px;margin-left:6px;opacity:0}.message:hover .message-edit,.message:focus-within .message-edit{opacity:1}@media(hover:none){.message-edit{opacity:1}}
.modal input.import-file{display:block;position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0}.file-label:has(+ .import-file:focus-visible){outline:3px solid #9bacff;outline-offset:2px}
.matter-source{border-top:1px solid var(--divider);margin-top:16px;padding-top:12px}.matter-source span{font-size:12px;color:#6d645b}.matter-source p{max-height:72px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.matter-source button{border:0;padding:3px 0;background:transparent;color:#596cae;font:inherit;font-size:12px}
.overview-row{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.overview-row small{white-space:nowrap}.coord-date{padding:12px 4px 3px;color:#746b62;font-size:12px;font-weight:600}
.extra-identities{margin-top:9px;font-size:12px;color:#71685e}.extra-identities summary{cursor:pointer;padding:4px 0}.extra-identities>div{display:flex;flex-wrap:wrap;gap:7px 13px;padding:7px 0}.modal .identity-check{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:400}.modal .identity-check input{width:15px;height:15px;margin:0;padding:0;accent-color:#526de4}
.ask-model{border:1px solid #cbd1eb;background:#f4f5fd;color:#4d5d9c;border-radius:9px;padding:8px 12px;font-size:12px}.ask-model:hover:not(:disabled){background:#e8ebfa}.ask-model:disabled{opacity:.45;cursor:not-allowed}.message.assistant{flex-direction:row}.message.assistant .bubble{background:#f0e9df;color:#413b35;border-radius:2px 13px 13px 13px}.unstored-reply{position:fixed;z-index:40;right:15px;bottom:15px;width:min(420px,90vw);padding:13px;border:1px solid #d8b993;border-radius:10px;background:#fff9ef;box-shadow:0 5px 24px #392a1728;font-size:13px}.unstored-reply summary{cursor:pointer;color:#694321}.unstored-reply pre{max-height:35vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.unstored-reply button{border:1px solid #dccfbd;border-radius:7px;background:#fff;padding:6px 12px;color:#594b3f}
.priority-dot,.nested-dot{background:var(--marker-color,#808080);border:1px solid var(--marker-color,#808080)}.priority-dot.hollow,.nested-dot.hollow{background:transparent}
.model-row{display:flex;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid #ebe2d8}.model-row>div{min-width:0;flex:1}.model-row strong,.model-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row strong{font-size:13px}.model-row small{font-size:11px;color:#81786e;margin-top:5px}.model-row button{flex:none;border:0;border-radius:6px;background:#f1eae1;color:#71675e;padding:6px 8px;font-size:12px}.model-row button:disabled{opacity:.4}
.agent-progress,.task-progress{font-size:10px;color:#6676ad;white-space:nowrap;flex:none}.agent-progress:empty,.task-progress:empty{display:none}
.clear-marker{border:1px solid #d8cec2;border-radius:6px;background:transparent;color:#766d63;padding:2px 7px;font-size:11px}
.task-dot{background:var(--marker-color,#808080);border:1px solid var(--marker-color,#808080);box-shadow:none}.task-dot.hollow{background:transparent}
.composer-tools .context-active{background:#e9eaf8;color:#536de4}.modal .share-option{display:flex;align-items:center;gap:9px;margin:14px 0;font-weight:400}.modal .share-option input{width:16px;height:16px;margin:0;padding:0;accent-color:#526de4}
.progress-history{margin-top:13px;font-size:12px;color:#746b62}.progress-history summary{cursor:pointer}.progress-history>div{max-height:160px;overflow:auto;margin-top:8px}.progress-entry{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-bottom:1px solid #eee6dc;overflow-wrap:anywhere}.progress-entry small{font-size:10px;color:#948a80}
.send-short{display:none}.send,.ask-model{white-space:nowrap;flex:none}@media(max-width:550px){.composer-bottom{flex-wrap:wrap;gap:6px}.composer-tools,.composer-send{flex-shrink:0}.composer-send{margin-left:auto}.model-select select{max-width:80px}.send-full{display:none}.send-short{display:inline}}
@media(max-width:400px){.model-row small{white-space:normal;overflow-wrap:anywhere;line-height:1.4}}
.ai-content{white-space:normal}.ai-content p{margin:0 0 9px;line-height:1.75}.ai-content p:last-child,.ai-content ul:last-child,.ai-content ol:last-child,.ai-content pre:last-child{margin-bottom:0}.ai-content .ai-heading{margin-top:12px}.ai-content ul,.ai-content ol{margin:6px 0 10px;padding-left:20px}.ai-content li{margin:3px 0}.ai-content code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:.92em;background:#e9e2d9;padding:1px 4px;border-radius:4px;overflow-wrap:anywhere}.ai-content pre{overflow:auto;white-space:pre;margin:10px 0;padding:10px;border:1px solid #e3d9cb;border-radius:7px;background:#faf6ef}.ai-content pre code{padding:0;background:none}.ai-content a{color:#5067af;text-decoration:underline;overflow-wrap:anywhere}
/* Keep navigation and composer fixed while long conversations scroll. */
.shell{grid-template-rows:minmax(0,1fr)}.main,.sidebar,.rail,.details,.chief-home,.conversation{min-height:0}

/* Unified interface typography and directly editable markers. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Inter","PingFang SC","Microsoft YaHei",sans-serif}
.agent-row,.task-row-wrap{position:relative}.agent-row:not(:first-child){border-top:1px solid #eae2d8}.marker-control{position:absolute;z-index:1;display:block;border:0;background:transparent;padding:0;cursor:pointer;border-radius:50%;top:50%;transform:translateY(-50%)}.agent-marker{left:12px;width:10px;height:10px}.task-marker{left:31px;width:8px;height:8px}.marker-control:hover{background:#7387c322}.marker-control:focus-visible{outline-width:2px;outline-offset:1px}.color-empty{background:transparent;border:1.5px solid #89827b}

.color-presets .color-swatch[aria-pressed="true"]{outline:2px solid #596ec2;outline-offset:3px}

/* Compact workspace with identity actions beside each conversation. */
@media(min-width:721px){.shell{grid-template-columns:52px 215px minmax(0,1fr)}}
.rail{padding-top:12px}.rail-group{gap:5px}.rail .iconbtn{width:36px;height:36px}
.side-head{padding:12px 14px 10px}.brand{height:40px;margin-bottom:10px}.home-entry{min-height:35px;padding:7px 10px;margin-bottom:12px}.home-entry strong{font-size:15px}.side-title h1{font-size:14px}.side-title{margin:0}.side-tools .add{width:27px;height:27px}.chat-group .chat-item{min-height:40px;padding-right:52px}.chat-name{font-size:13px}.agent-options{position:absolute;right:27px;top:50%;transform:translateY(-50%);width:25px;height:26px;border:0;border-radius:6px;background:transparent;color:#8b8178;font-size:17px;line-height:1;cursor:pointer}.agent-options:hover,.agent-options:focus-visible{background:#e7dfd5;color:#3e3934}.expand-mark{position:absolute;right:12px}.agent-menu{display:flex;flex-direction:column;margin-top:12px}.agent-menu-summary{padding:4px 7px 12px;font-size:12px;color:#8b8178;border-bottom:1px solid var(--divider)}.agent-menu button{padding:11px 7px;border:0;border-bottom:1px solid var(--divider);background:transparent;text-align:left;color:#433d37;font:inherit;font-size:13px}.agent-menu button:hover{background:#f4eee6}.chief-home{padding-top:18px}.home-content{max-width:700px}.home-welcome h1{font-size:19px}.home-stats button{min-height:62px;padding:9px 12px}.home-stats strong{font-size:19px}.home-section-title h2{font-size:15px}.home-empty{min-height:48px}.composer textarea{height:48px}.composer{border-radius:12px}
@media(max-width:720px){.agent-options{right:27px}}
/* Compact the overview and let message bubbles fit their content. */
.main-head{height:42px;min-height:42px;padding-left:22px;padding-right:18px}
.chief-home{padding-top:12px}.home-welcome{padding:2px 0 10px}.home-welcome h1{font-size:18px;line-height:1.35}
.home-stats{display:flex;gap:6px;flex-wrap:wrap}.home-stats button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px;min-height:0;padding:6px 10px;border-radius:7px;background:transparent}.home-stats span{font-size:12px}.home-stats strong{font-size:13px;line-height:1.3}
.home-section{margin-top:11px;padding-top:10px}.home-section-title{margin-bottom:6px}.home-empty{min-height:0;padding:8px 10px}.home-history .message:first-of-type{margin-top:10px}
.message .message-body{width:fit-content;max-width:min(85%,650px)}.message.user .bubble{width:fit-content;max-width:100%;margin-left:auto}.message .bubble{overflow-wrap:anywhere}
@media(max-width:550px){.main-head{padding-left:10px}.home-stats button{min-height:0;padding:6px 9px}.home-stats strong{font-size:13px}}

/* A single primary send action, with local-only recording kept secondary. */
.composer-send{gap:6px}.model-select select{max-width:125px;padding:7px 25px 7px 9px;background:transparent}.composer-send .send{padding:8px 14px}.composer-send .send:disabled{cursor:not-allowed}.composer-footer{margin-top:5px}.shortcuts button{padding:4px 8px}
@media(max-width:550px){.model-select select{max-width:90px}.composer-send .send{padding:7px 10px}}

@media(max-width:550px){.shell .sidebar{width:calc(100vw - 52px)}}

.record-only{border:0;background:transparent;color:#776f68;padding:6px;font:inherit;font-size:11px;white-space:nowrap}.record-only[hidden]{display:none}.record-only:hover{color:#4d5f9d}

.head-text h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.head-task{color:#716a64;font-size:.88em;font-weight:500}.message-model{font-size:inherit;color:#6f6a65}.message-meta,.chat-preview,.composer-hint,.quiet-note{color:#746d67!important}.modal h2:focus{outline:none}
.analysis-review{display:block;margin:10px 0 0;padding:5px 0 0;border:0;border-top:1px solid #dcd4cc;background:transparent;color:#5266ad;font:inherit;font-size:12px;text-align:left}.suggestion-row{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--divider)}.suggestion-row>div{flex:1;min-width:0}.suggestion-row strong,.suggestion-row small{display:block;overflow-wrap:anywhere}.suggestion-row strong{font-size:13px}.suggestion-row small{margin-top:5px;color:#746d67;font-size:11px}.suggestion-row button{border:0;border-radius:6px;padding:6px 9px;background:#f1eae1;color:#59524b;font:inherit;font-size:12px}.suggestion-row button:disabled{opacity:.55}.suggestion-evidence{white-space:pre-wrap;overflow-wrap:anywhere}
.head-matters{align-self:center;border:0;border-radius:6px;padding:6px 8px;background:transparent;color:#77716b;font:inherit;font-size:12px}.head-matters:hover{background:#e9e2d8;color:#4b4540}
.delegation-row{padding:8px 0;border-bottom:1px solid var(--divider)}.delegation-row .share-option{align-items:flex-start}.delegation-row small{display:block;margin-top:4px;color:#746d67;font-size:11px}.delegation-row textarea{min-height:74px;margin-top:5px}
.delegation-auto small{display:block;margin-top:4px;color:#746d67;font-size:11px}
.auto-summary-source summary{cursor:pointer;font-size:12px;font-weight:600}.auto-summary-source>div{margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65}
.message-meta{line-height:1.4}.message-meta time{margin-left:6px}.message-edit{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:4px;margin-left:3px;vertical-align:middle;border-radius:5px}.message-edit svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.message-edit:hover,.message-edit:focus-visible{background:#eae2d8;color:#504a44}

/* Keep the original wordmark intact and align the compact conversation controls. */
.brand{height:60px}.brand img{object-position:center}
.agent-options{right:10px}.chat-group .chat-item{padding-right:38px}
.shortcuts,.composer-wrap{width:min(100%,740px);align-self:center;padding-left:16px;padding-right:16px}
@media(max-width:550px){.agent-options{right:10px}.shortcuts,.composer-wrap{width:100%;padding-left:15px;padding-right:15px}}

/* Account menu follows the compact workspace palette. */
.user-menu{position:fixed;z-index:30;left:10px;bottom:56px;width:min(248px,calc(100vw - 20px));padding:8px;background:#fffaf4;border:1px solid #e3d9cc;border-radius:12px;box-shadow:0 12px 36px #493b2e26,0 2px 8px #493b2e12;color:#342f2b}
.user-menu-heading{display:flex;align-items:center;gap:10px;padding:8px 9px 11px;min-width:0}
.user-menu-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#eee7dc;color:#6c625a;flex:none}
.user-menu-identity{display:flex;flex-direction:column;gap:2px;min-width:0}.user-menu-identity strong{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-identity small{font-size:11px;color:#8e847a}
.user-menu-section{padding:5px 0;border-top:1px solid #eee5da}.user-menu-section:last-child{padding-bottom:0}.user-menu button,.user-data-list button{display:flex;align-items:center;gap:11px;width:100%;min-height:37px;padding:8px 9px;border:0;border-radius:7px;background:transparent;color:#403a35;text-align:left;font:inherit;font-size:13px}.user-menu button:hover,.user-menu button:focus-visible,.user-data-list button:hover{background:#f2ebe2}.user-menu svg,.user-data-list svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:#8b8178}.user-menu-avatar svg{width:18px;height:18px}.user-menu button:focus-visible{outline:2px solid #9bacff;outline-offset:-2px}
.user-data-summary{padding:10px 0 12px;font-size:12px;color:#81776e}.user-data-list{border-top:1px solid #eee5da;padding-top:6px}.user-data-list button{min-height:40px}.user-data-list button+button{border-top:1px solid #f0e8de;border-radius:0}

/* Personal profile and application settings. */
.profile-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.rail .rail-profile{width:26px;height:26px}.user-menu-avatar{overflow:hidden}.profile-avatar-edit{display:flex;align-items:center;gap:14px;margin:18px 0}.profile-avatar-large{width:64px;height:64px;flex:none;border-radius:50%;background:#eee7dc;display:grid;place-items:center;color:#8b8178;overflow:hidden}.profile-avatar-large svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.profile-avatar-edit>div{display:flex;gap:10px;align-items:center}.modal .profile-upload,.profile-remove{display:inline-flex!important;align-items:center;margin:0!important;padding:7px 10px;border:1px solid #e3d9cc;border-radius:7px;background:#fffdf9;color:#514b47;font:inherit;font-size:12px;cursor:pointer}.profile-remove{border-color:transparent;background:transparent;color:#80766c}.modal input.profile-file{display:block;position:absolute;opacity:0;width:1px;height:1px;padding:0;border:0}.profile-upload:has(+ .profile-file:focus-visible){outline:2px solid #9bacff;outline-offset:2px}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.profile-fields label{margin:13px 0 6px}.profile-fields input,.profile-fields textarea{grid-row:auto}.profile-fields{display:block}.profile-fields textarea{height:82px;min-height:82px}.settings-section{margin-top:18px}.settings-section h3{margin:0 0 8px;font-size:12px;color:#8a8076;font-weight:600}.modal .settings-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:11px 0;border-bottom:1px solid #eee5da;font-size:13px;font-weight:400}.modal .settings-toggle input{width:16px;height:16px;margin:0;padding:0;accent-color:#526de4}.settings-section .user-data-list{border-top:0;padding-top:0}
.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.profile-field-wide{grid-column:1/-1}.profile-fields label{margin:10px 0 5px}.profile-fields input{padding:9px}.profile-fields textarea{height:70px;min-height:70px}.profile-avatar-edit{margin:14px 0 6px}@media(max-width:400px){.profile-fields{grid-template-columns:1fr}.profile-field-wide{grid-column:auto}}
.settings-links small{margin-left:auto;color:#948a80;font-size:11px;text-align:right}.settings-links button span{min-width:0}.help-content h3{margin:17px 0 4px;font-size:13px}.help-content p{margin:0;line-height:1.7}.user-menu{max-height:calc(100dvh - 70px);overflow-y:auto}
.chief-header-stats{display:flex;align-items:center;gap:3px;min-width:0;overflow-x:auto;scrollbar-width:none}.chief-header-stats::-webkit-scrollbar{display:none}.chief-header-stats button{border:0;border-radius:6px;background:transparent;padding:5px 7px;color:#776f68;white-space:nowrap;font:inherit;font-size:11px}.chief-header-stats button:hover{background:#eae2d8;color:#403a35}.chief-header-stats strong{font-weight:650;color:#3b3631}.chief-chat-history{margin-top:0;padding-top:0;border:0}.processing-status{display:flex;align-items:center;gap:7px;margin:0 1px 7px;color:#786f65;font-size:11px}.processing-status time{color:#998e83}.processing-pulse{width:6px;height:6px;border-radius:50%;background:#667bc8;animation:processing-pulse 1.2s infinite alternate}@keyframes processing-pulse{to{opacity:.35}}@media(prefers-reduced-motion:reduce){.processing-pulse{animation:none}}.message-workflow{margin-top:9px;color:#7a7168;font-size:11px}.message-workflow summary{cursor:pointer}.message-workflow ol{margin:5px 0 0;padding-left:19px}.message-workflow li{margin:2px 0}@media(max-width:550px){.head-text{flex:0 0 auto}.chief-header-stats button{padding:4px;font-size:10px}}
.task-start{max-width:700px;margin:0 auto;color:#71685e}.task-start-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--divider);padding-bottom:9px}.task-start-head h3{margin:0;color:#39332e;font-size:14px;font-weight:600}.task-start-head button{border:0;background:transparent;color:#596bb0;font-size:12px;padding:4px}.task-start p{font-size:12px;color:#998f84;margin:13px 0}.task-start-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--divider);padding:11px 2px;background:transparent;text-align:left;color:#403a34;font-size:13px}.task-start-item:hover{background:#f1e9df}.task-start-item small{color:#92887e;white-space:nowrap;font-size:11px}
.usage-row{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-bottom:1px solid var(--divider);font-size:13px}.usage-row span{color:#81776c;font-size:12px;line-height:1.5}
.composer-tools .iconbtn[data-tip]{position:relative;overflow:visible}.composer-tools .iconbtn[data-tip]::after{content:attr(data-tip);position:absolute;z-index:8;top:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:5px 8px;border-radius:6px;background:#45413e;color:#fff;box-shadow:0 3px 10px #0002;font-size:11px;line-height:1.3;font-weight:500;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden}.composer-tools .iconbtn[data-tip]:hover::after,.composer-tools .iconbtn[data-tip]:focus-visible::after{opacity:1;visibility:visible}

/* Settings uses the same warm palette as the workspace. */
.modal.settings-modal{width:min(680px,calc(100vw - 32px));max-width:680px;padding:24px}.settings-modal>h2{font-size:19px;margin:0 0 20px}.settings-layout{display:grid;grid-template-columns:138px minmax(0,1fr);min-height:230px;border-top:1px solid var(--divider)}.settings-nav{display:flex;flex-direction:column;gap:3px;padding:16px 12px 16px 0;border-right:1px solid var(--divider)}.settings-nav button{border:0;border-radius:7px;background:transparent;padding:9px 11px;text-align:left;color:#70675e;font-size:13px}.settings-nav button[aria-current]{background:#e9e6ef;color:#34313a;font-weight:600}.settings-nav button:hover{background:#eee8e0}.settings-content{padding:17px 0 0 24px}.settings-content section[hidden]{display:none}.settings-content h3{margin:0 0 10px;color:#38322d;font-size:15px}.modal .settings-control{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0;padding:14px 0;border-bottom:1px solid var(--divider);cursor:pointer}.settings-control>span{display:flex;flex-direction:column;gap:4px}.settings-control strong{color:#403a34;font-size:13px;font-weight:500}.settings-control small{color:#8c8278;font-size:11px;line-height:1.4}.modal .settings-control input{appearance:none;position:relative;flex:none;width:34px;height:20px;margin:0;padding:0;border:0;border-radius:12px;background:#c7beb4;cursor:pointer}.settings-control input::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}.settings-control input:checked{background:#536ce0}.settings-control input:checked::after{transform:translateX(14px)}.settings-modal .modal-actions{margin-top:18px}.compact-layout .chat-group .chat-item{min-height:34px;padding-top:6px;padding-bottom:6px}.compact-layout .nested-task{min-height:32px;padding-top:6px;padding-bottom:6px}.compact-layout .chat-preview{margin-top:2px}.compact-layout .nested-manage{padding-top:6px;padding-bottom:6px}@media(max-width:550px){.modal.settings-modal{padding:20px}.settings-layout{grid-template-columns:1fr;min-height:220px}.settings-nav{flex-direction:row;border-right:0;border-bottom:1px solid var(--divider);padding:10px 0}.settings-content{padding:17px 0 0}.settings-nav button{padding:8px 12px}}
.settings-modal .settings-choice select{flex:none;width:auto;min-width:100px;max-width:185px;height:34px;padding:0 28px 0 10px;border:1px solid var(--divider);border-radius:7px;background-color:#fbf7f1;color:#4d4640;font-size:12px}.settings-info{display:flex;flex-direction:column;gap:5px;padding:14px 0;border-bottom:1px solid var(--divider)}.settings-info strong{font-size:13px;font-weight:500;color:#403a34}.settings-info small{font-size:11px;line-height:1.5;color:#8c8278}.text-large .message .bubble,.text-large .composer textarea{font-size:15px;line-height:1.65}@media(max-width:550px){.settings-nav{flex-wrap:wrap}.settings-choice{flex-wrap:wrap}}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--divider);border-radius:9px;margin:2px 0 18px;overflow:hidden}.profile-stats div{display:flex;flex-direction:column;gap:5px;padding:11px 12px;min-width:0}.profile-stats div+div{border-left:1px solid var(--divider)}.profile-stats strong{font-size:14px;color:#3c3631;font-weight:600}.profile-stats small{color:#8b8177;font-size:11px;line-height:1.35}@media(max-width:420px){.profile-stats div{padding:9px 7px}.profile-stats strong{font-size:12px}}
.ai-content.plain-reply{white-space:pre-wrap;overflow-wrap:anywhere}.wide-chat .home-content,.wide-chat .composer-wrap,.wide-chat .shortcuts{max-width:1000px}.wide-chat .conversation{padding-left:max(24px,calc((100% - 1000px)/2));padding-right:max(24px,calc((100% - 1000px)/2))}.wide-chat .message{max-width:1000px}
/* A browsable guide within the existing workspace palette. */
.modal.tips-modal{width:min(690px,calc(100vw - 32px));max-width:690px;padding:24px}.tips-modal>h2{font-size:18px;margin:0 0 18px}.tips-intro{display:flex;gap:14px;align-items:center;padding:17px;border-radius:12px;background:#eee9e7}.tips-search svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.tips-intro h3{font-size:15px;margin:0;color:#3b3530}.tips-intro p{margin:5px 0 0;color:#7c7269;font-size:12px}.modal label.tips-search{display:flex;align-items:center;gap:8px;border:1px solid var(--divider);border-radius:9px;background:#fffcf8;margin:16px 0 11px;padding:0 10px;color:#938a80}.tips-search svg{width:16px;height:16px}.modal .tips-search input{border:0;background:transparent;outline:none;box-shadow:none;padding:10px 0;font-size:13px}.tips-categories{display:flex;gap:6px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:thin}.tips-categories button{flex:none;border:1px solid var(--divider);border-radius:20px;padding:6px 10px;background:transparent;color:#766c63;font:inherit;font-size:12px}.tips-categories button[aria-pressed="true"]{background:#e6e8f6;border-color:#d9dcef;color:#4f5f9b}.tips-count{padding:11px 0 8px;color:#91867b;font-size:11px}.tips-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tips-card{display:flex;align-items:flex-start;gap:11px;min-width:0;border:1px solid var(--divider);border-radius:10px;padding:12px;background:#fffaf4;text-align:left;color:#403a34;font:inherit}.tips-card:hover,.tips-card:focus-visible{background:#f3ede6;border-color:#c9c3d4}.tips-card-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.tips-card-copy small{font-size:10px;color:#8b8177}.tips-card-copy strong{font-size:13px;font-weight:600}.tips-card-copy>span{font-size:11px;line-height:1.5;color:#81776e}.tips-arrow{align-self:center;color:#a69a8c;font-size:18px}.tips-empty{grid-column:1/-1;padding:24px;text-align:center;color:#8b8177;font-size:12px}.tip-back{border:0;background:transparent;color:#5d6daa;padding:0;font:inherit;font-size:12px}.tip-detail-kicker{margin-top:22px;color:#8d8276;font-size:11px}.tip-detail-heading{display:flex;align-items:center;gap:12px;margin-top:10px}.tip-detail-heading h3{margin:0;color:#39332e;font-size:19px}.tip-detail>p{margin:14px 0;color:#7e746a;font-size:13px}.tip-steps{margin:18px 0;padding-left:24px;color:#484039;font-size:13px;line-height:1.8}.tip-steps li{padding:4px 0 4px 4px}.tip-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px;color:#9b9084;font-size:11px}.tip-pagination button{border:0;border-radius:6px;background:transparent;color:#5b6ca8;padding:6px;font:inherit}.tip-pagination button:disabled{opacity:.35;cursor:default}@media(max-width:520px){.modal.tips-modal{padding:18px}.tips-list{grid-template-columns:1fr}.tips-intro{padding:13px}}
/* Dark appearance uses a near-black, cool-toned palette. */
body[data-theme="dark"]{color-scheme:dark;--line:#303641;--divider:#343c49;background:#0d1016;color:#e4e9f1}
body[data-theme="dark"] .shell,body[data-theme="dark"] .main,body[data-theme="dark"] .chief-home,body[data-theme="dark"] .conversation{background:#11151c;color:#e4e9f1}
body[data-theme="dark"] .rail{background:#0b0f15;border-color:#303744}body[data-theme="dark"] .sidebar,body[data-theme="dark"] .main-head{background:#151a22;border-color:#303744}body[data-theme="dark"] .chat-group,body[data-theme="dark"] .nested-tasks{background:#141922;border-color:#353d49}
body[data-theme="dark"] .brand{background:#151a22}body[data-theme="dark"] .brand img,body[data-theme="dark"] .header-brand img{filter:invert(1) grayscale(1);mix-blend-mode:screen}
body[data-theme="dark"] .side-title h1,body[data-theme="dark"] .home-entry strong,body[data-theme="dark"] .chat-name,body[data-theme="dark"] .head-text h2,body[data-theme="dark"] .home-welcome h1,body[data-theme="dark"] .home-section-title h2,body[data-theme="dark"] .task-start-head h3{color:#e4e9f1}
body[data-theme="dark"] .home-entry.selected,body[data-theme="dark"] .chat-group .chat-item.selected,body[data-theme="dark"] .nested-task.selected,body[data-theme="dark"] .iconbtn.active{background:#353a4a;color:#e4e8ff}body[data-theme="dark"] .chat-item:hover,body[data-theme="dark"] .nested-task:hover,body[data-theme="dark"] .agent-options:hover,body[data-theme="dark"] .iconbtn:hover{background:#252c38;color:#e4e9f1}
body[data-theme="dark"] .nested-task,body[data-theme="dark"] .nested-manage,body[data-theme="dark"] .head-task,body[data-theme="dark"] .head-matters,body[data-theme="dark"] .record-only{color:#abb4c1}body[data-theme="dark"] .agent-row:not(:first-child),body[data-theme="dark"] .nested-tasks{border-color:#343b48}
body[data-theme="dark"] .home-stats button,body[data-theme="dark"] .home-task,body[data-theme="dark"] .demo-card,body[data-theme="dark"] .composer{background:#1a202b;border-color:#394251;color:#e2e7ef}body[data-theme="dark"] .home-stats strong,body[data-theme="dark"] .home-task strong{color:#f0f3f9}body[data-theme="dark"] .home-empty{border-color:#394251;color:#a2adbc}
body[data-theme="dark"] .composer textarea,body[data-theme="dark"] .search input{color:#edf1f7}body[data-theme="dark"] .composer textarea::placeholder{color:#8995a5}body[data-theme="dark"] .model-select select,body[data-theme="dark"] .shortcuts button{background:#202733;border-color:#394251;color:#d8dfeb}
body[data-theme="dark"] .message .bubble{background:#202733;color:#e3e9f2}body[data-theme="dark"] .message.user .bubble{background:#353e61;color:#ecf0ff}body[data-theme="dark"] .message-meta,body[data-theme="dark"] .chat-preview,body[data-theme="dark"] .composer-hint,body[data-theme="dark"] .quiet-note{color:#a2adbc!important}body[data-theme="dark"] .ai-content code{background:#303a49}body[data-theme="dark"] .ai-content pre{background:#161d28;border-color:#394250}body[data-theme="dark"] .ai-content a,body[data-theme="dark"] .add-matter-quick,body[data-theme="dark"] .analysis-review{color:#aebcf9}
body[data-theme="dark"] .overlay{background:#000a}body[data-theme="dark"] .modal,body[data-theme="dark"] .user-menu{background:#1a202b;border-color:#3d4654;color:#e4e9f1}body[data-theme="dark"] .modal h2,body[data-theme="dark"] .modal h3,body[data-theme="dark"] .settings-control strong,body[data-theme="dark"] .settings-info strong,body[data-theme="dark"] .profile-stats strong{color:#e4e9f1}body[data-theme="dark"] .modal p,body[data-theme="dark"] .settings-control small,body[data-theme="dark"] .settings-info small,body[data-theme="dark"] .profile-stats small{color:#aeb9c8}
body[data-theme="dark"] .modal input:not([type="checkbox"]):not([type="file"]),body[data-theme="dark"] .modal textarea,body[data-theme="dark"] .modal select:not([multiple]),body[data-theme="dark"] .profile-upload{background:#111721!important;border-color:#465161!important;color:#edf1f7!important}body[data-theme="dark"] .modal input::placeholder,body[data-theme="dark"] .modal textarea::placeholder{color:#8d99aa}body[data-theme="dark"] .modal-actions button{background:#252d3a;border-color:#465161;color:#e0e7f0}body[data-theme="dark"] .modal-actions .primary{background:#586fda;border-color:#586fda;color:white}
body[data-theme="dark"] .user-menu button,body[data-theme="dark"] .user-data-list button,body[data-theme="dark"] .lookup-row,body[data-theme="dark"] .task-start-item{color:#e1e7f0;border-color:#394250}body[data-theme="dark"] .user-menu button:hover,body[data-theme="dark"] .user-menu button:focus-visible,body[data-theme="dark"] .user-data-list button:hover,body[data-theme="dark"] .lookup-row:hover{background:#252d3a}body[data-theme="dark"] .user-menu-section,body[data-theme="dark"] .settings-control,body[data-theme="dark"] .settings-info{border-color:#394250}body[data-theme="dark"] .user-menu-avatar,body[data-theme="dark"] .profile-avatar-large{background:#303a49;color:#ced6e2}
body[data-theme="dark"] .settings-nav button,body[data-theme="dark"] .tips-categories button{color:#b7c0cf}body[data-theme="dark"] .settings-nav button[aria-current],body[data-theme="dark"] .tips-categories button[aria-pressed="true"]{background:#3b4053;color:#e4e8ff;border-color:#555c76}body[data-theme="dark"] .settings-nav button:hover{background:#28313d}body[data-theme="dark"] .tips-intro,body[data-theme="dark"] .tips-card{background:#1d2632;border-color:#3b4655;color:#e4e9f1}body[data-theme="dark"] .tips-card:hover{background:#293341}body[data-theme="dark"] .tips-intro h3,body[data-theme="dark"] .tip-detail-heading h3{color:#edf1f7}body[data-theme="dark"] .tips-card-copy>span,body[data-theme="dark"] .tip-steps{color:#b7c0ce}body[data-theme="dark"] .tips-search{background:#111721;border-color:#465161}body[data-theme="dark"] .tips-search input{background:transparent!important;border:0!important}body[data-theme="dark"] .tip-back,body[data-theme="dark"] .tip-pagination button{color:#b1bff9}
.daily-greeting{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:9px 18px;border-bottom:1px solid var(--divider);background:#f1edf1;color:#5a534f;font-size:12px}.daily-greeting>span{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.daily-greeting strong{color:#393537;font-size:13px;font-weight:600}.daily-greeting button{width:25px;height:25px;border:0;border-radius:6px;background:transparent;color:#8d8581;font:inherit;font-size:18px;line-height:1}.daily-greeting button:hover{background:#e7e0e5}.daily-greeting button:focus-visible{outline:2px solid #9bacff}body[data-theme="dark"] .daily-greeting{background:#2e323b;border-color:#414550;color:#c1c5d1}body[data-theme="dark"] .daily-greeting strong{color:#f0f0f3}body[data-theme="dark"] .daily-greeting button:hover{background:#414655}
.tips-list{max-height:min(45vh,420px);overflow:auto;padding-right:3px}.tips-modal .modal-actions{margin-top:14px}body[data-theme="dark"] .tips-card-copy small,body[data-theme="dark"] .tips-count,body[data-theme="dark"] .tip-detail-kicker{color:#b6b1a8}body[data-theme="dark"] .brand img,body[data-theme="dark"] .header-brand img{filter:invert(1) grayscale(1) contrast(3)}

/* Workspace cards share the same dark surfaces as other panels. */
body[data-theme="dark"] .feature-card{background:#1a202b;border-color:#394251;color:#e4e9f1}
body[data-theme="dark"] .feature-card strong{color:#edf1f7}
body[data-theme="dark"] .feature-card span{color:#abb7c8}
body[data-theme="dark"] .feature-card:hover{background:#252e3b;border-color:#536177}

/* Model picker: provider marks and optional, focused descriptions. */
.model-picker::after{display:none}
.model-picker-trigger{display:flex;align-items:center;gap:8px;max-width:175px;padding:7px 10px;border:1px solid #ded6ca;border-radius:9px;background:#faf6f0;color:#514c47;font:inherit;font-size:12px;line-height:1.4}
.model-picker-current{display:flex;align-items:center;gap:7px;min-width:0}.model-picker-current>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-picker-chevron{width:6px;height:6px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:translateY(-2px) rotate(45deg);flex:none}
.model-picker-menu{position:absolute;z-index:25;right:0;bottom:calc(100% + 9px);width:min(305px,calc(100vw - 36px));max-height:min(55vh,380px);overflow-y:auto;padding:5px;border:1px solid #ded6ca;border-radius:12px;background:#fffaf4;box-shadow:0 12px 32px #13192730}
.model-picker-menu[hidden]{display:none}.model-picker-option{position:relative;display:flex;align-items:center;gap:9px;width:100%;min-height:36px;padding:8px;border:0;border-radius:7px;background:transparent;color:#302d2b;text-align:left;font:inherit;font-size:12px}.model-picker-option:hover,.model-picker-option:focus-visible{background:#ecebf3;outline:none}.model-option-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-provider-icon{width:18px;height:18px;flex:none}.model-provider-icon.deepseek{filter:invert(42%) sepia(81%) saturate(1935%) hue-rotate(208deg) brightness(96%)}.model-provider-icon.gemini{filter:invert(43%) sepia(34%) saturate(1796%) hue-rotate(195deg) brightness(100%)}.model-generic{display:grid;place-items:center;color:#7889aa;font-size:16px}.model-check{color:#6278d5}.model-option-tip{display:none;white-space:normal;color:#727178;font-size:11px;line-height:1.45}.model-picker-option:hover .model-option-tip,.model-picker-option:focus-visible .model-option-tip{display:block;flex-basis:100%;padding-left:27px}.model-picker-option:has(.model-option-tip:hover),.model-picker-option:hover,.model-picker-option:focus-visible{flex-wrap:wrap}
body[data-theme="dark"]{background:#080b10;--line:#272d37;--divider:#303744}
body[data-theme="dark"] .shell,body[data-theme="dark"] .main,body[data-theme="dark"] .chief-home,body[data-theme="dark"] .conversation{background:#0b0e14}
body[data-theme="dark"] .rail{background:#070a0f}body[data-theme="dark"] .sidebar,body[data-theme="dark"] .main-head,body[data-theme="dark"] .brand{background:#10141b}body[data-theme="dark"] .chat-group,body[data-theme="dark"] .nested-tasks{background:#0e1219}
body[data-theme="dark"] .modal,body[data-theme="dark"] .user-menu,body[data-theme="dark"] .composer,body[data-theme="dark"] .feature-card{background:#141a24}
body[data-theme="dark"] .model-picker-trigger{background:#171e29;border-color:#394251;color:#e2e7f1}body[data-theme="dark"] .model-picker-menu{background:#151a23;border-color:#343e4d;box-shadow:0 12px 32px #0009}body[data-theme="dark"] .model-picker-option{color:#e3e9f3}body[data-theme="dark"] .model-picker-option:hover,body[data-theme="dark"] .model-picker-option:focus-visible{background:#283241}body[data-theme="dark"] .model-option-tip{color:#bac5d5}
@media(max-width:550px){.model-picker-trigger{max-width:115px}.model-picker-menu{right:-62px}}

/* Keep the interface near black with a subtle cool tint. */
body[data-theme="dark"]{background:#06080c;--line:#252a34;--divider:#2c323d}
body[data-theme="dark"] .shell,body[data-theme="dark"] .main,body[data-theme="dark"] .chief-home,body[data-theme="dark"] .conversation{background:#080a0f}
body[data-theme="dark"] .rail{background:#05070a}
body[data-theme="dark"] .sidebar,body[data-theme="dark"] .main-head,body[data-theme="dark"] .brand{background:#0c0f15}
body[data-theme="dark"] .chat-group,body[data-theme="dark"] .nested-tasks{background:#0a0d13}
body[data-theme="dark"] .modal,body[data-theme="dark"] .user-menu,body[data-theme="dark"] .composer,body[data-theme="dark"] .feature-card{background:#10141d}
body[data-theme="dark"] .model-picker-trigger{background:#141922}
body[data-theme="dark"] .model-picker-menu{background:#10141b}
body[data-theme="dark"] .model-picker-option:hover,body[data-theme="dark"] .model-picker-option:focus-visible{background:#1c2431}
.model-provider-icon.gemini{display:inline-block;filter:none;background:conic-gradient(from 0deg,#ed554b,#4285f4,#2aa866,#fbbc05,#ed554b);-webkit-mask:url('/brand/providers/gemini.svg') center/contain no-repeat;mask:url('/brand/providers/gemini.svg') center/contain no-repeat}
.model-picker-option[data-model-choice=""],.model-picker-option[data-model-choice="__add_api__"],.model-picker-option[data-model-choice="__manage_models__"]{padding-left:35px}

/* Softer foregrounds in dark mode. */
body[data-theme="dark"] .brand img,body[data-theme="dark"] .header-brand img{opacity:.84}
body[data-theme="dark"] .side-title h1,body[data-theme="dark"] .home-entry strong,body[data-theme="dark"] .chat-name,body[data-theme="dark"] .head-text h2,body[data-theme="dark"] .home-welcome h1,body[data-theme="dark"] .home-section-title h2,body[data-theme="dark"] .task-start-head h3{color:#ccd4df}

/* Interaction motion */
:root{--motion-quick:120ms;--motion-standard:180ms;--motion-ease:cubic-bezier(.2,.7,.2,1)}
@keyframes mibun-fade-in{from{opacity:0}to{opacity:1}}
@keyframes mibun-panel-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mibun-menu-in{from{opacity:0;transform:translateY(5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.overlay{animation:mibun-fade-in var(--motion-standard) var(--motion-ease) both}
.overlay>.modal{animation:mibun-panel-in var(--motion-standard) var(--motion-ease) both;transform-origin:center}
.user-menu,.model-picker-menu:not([hidden]){animation:mibun-menu-in var(--motion-standard) var(--motion-ease) both;transform-origin:bottom left}
.iconbtn,.add,.home-entry,.chat-item,.nested-task,.nested-manage,.agent-options,.shortcuts button,.send,.model-picker-trigger,.model-picker-option,.modal-actions button,.settings-nav button,.feature-card,.tips-card,.user-menu button{transition:background-color var(--motion-quick) ease,color var(--motion-quick) ease,border-color var(--motion-quick) ease,box-shadow var(--motion-quick) ease,transform var(--motion-quick) var(--motion-ease)}
@media(hover:hover){.send:not(:disabled):hover,.modal-actions .primary:not(:disabled):hover{transform:translateY(-1px)}}
.send:not(:disabled):active,.modal-actions button:not(:disabled):active,.add:active,.iconbtn:active{transform:scale(.97)}
.composer{transition:border-color var(--motion-standard) ease,box-shadow var(--motion-standard) ease}
.composer:focus-within{border-color:#8295dd;box-shadow:0 0 0 3px #7286de1f}
body[data-theme="dark"] .composer:focus-within{border-color:#667cbd;box-shadow:0 0 0 3px #667cc52b}
.settings-control input{transition:background-color var(--motion-quick) ease}
#toast:not(:empty){animation:mibun-fade-in var(--motion-quick) ease both}
@media(prefers-reduced-motion:reduce){
 .overlay,.overlay>.modal,.user-menu,.model-picker-menu:not([hidden]),#toast:not(:empty){animation:none}
 .iconbtn,.add,.home-entry,.chat-item,.nested-task,.nested-manage,.agent-options,.shortcuts button,.send,.model-picker-trigger,.model-picker-option,.modal-actions button,.settings-nav button,.feature-card,.tips-card,.user-menu button,.composer,.settings-control input,.settings-control input::after{transition:none}
 .send:not(:disabled):hover,.modal-actions .primary:not(:disabled):hover,.send:not(:disabled):active,.modal-actions button:not(:disabled):active,.add:active,.iconbtn:active{transform:none}
}

/* Sample task: a clear illustration, never live work. */
.demo-card{max-width:620px;margin:12px auto;padding:22px 24px;background:#fbf7f1;border:1px solid var(--divider);border-radius:14px;color:#38332e}
.demo-label{color:#777db0;font-size:11px;font-weight:600;letter-spacing:.02em}
.demo-card h3{margin:9px 0 0;font-size:18px;line-height:1.35}
.demo-divider{height:1px;margin:19px 0;background:var(--divider)}
.demo-card h4{margin:0 0 13px;font-size:12px;font-weight:650;color:#82786e}
.demo-steps{display:grid;gap:13px;margin:0;padding:0;list-style:none}
.demo-steps li{display:flex;align-items:center;gap:11px;font-size:13px;line-height:1.5}
.demo-step-number{width:23px;height:23px;flex:none;display:grid;place-items:center;border-radius:8px;background:#eceaf4;color:#626ea9;font-size:11px;font-weight:700}
.demo-foot{margin:20px 0 0;color:#8b8178;font-size:11px;line-height:1.55}
body[data-theme="dark"] .demo-card{background:#111721;border-color:#303c4e;color:#ccd4df}
body[data-theme="dark"] .demo-label{color:#9daee0}
body[data-theme="dark"] .demo-card h4,body[data-theme="dark"] .demo-foot{color:#9ba7b8}
body[data-theme="dark"] .demo-step-number{background:#222c40;color:#b2c2f1}
@media(max-width:550px){.demo-card{margin:4px auto;padding:18px}.demo-card h3{font-size:16px}}

.agent-options,.side-tools .add{display:grid;place-items:center;padding:0}.agent-options svg,.side-tools .add svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

.rail-bottom .iconbtn{border:1px solid currentColor;border-radius:50%}

.model-picker-option[aria-disabled="true"] .model-option-label{color:#928c86}
body[data-theme="dark"] .model-picker-option[aria-disabled="true"] .model-option-label{color:#929daf}
