*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--tb-color-canvas);color:var(--tb-color-text);font-family:var(--tb-font-sans);font-size:14px}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
button,a{touch-action:manipulation}
a{color:var(--tb-color-primary);text-decoration:none}
button:focus-visible,a:focus-visible{outline:3px solid #83b9a0;outline-offset:3px}
input:focus,textarea:focus,select:focus{outline:2px solid #91bca8;outline-offset:1px;border-color:var(--tb-color-primary)}
h1,h2,h3,p{margin:0}
h1{font-size:25px;line-height:1.35;letter-spacing:-.7px;font-weight:650}
h2{font-size:17px;line-height:1.5;letter-spacing:-.3px;font-weight:650}
h3{font-size:14px;font-weight:650}
small{font-size:12px}
.muted{color:var(--tb-color-text-muted)}
.subtle{color:var(--tb-color-text-secondary)}
.mono{font-variant-numeric:tabular-nums}
.icon{width:19px;height:19px;display:inline-block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:37px;padding:0 13px;border:1px solid var(--tb-color-border);background:#fff;color:var(--tb-color-text);border-radius:8px;font-weight:550;white-space:nowrap}
.btn:hover{background:#f5f8f5;border-color:#b5c7ba}
.btn.primary{color:#fff;background:var(--tb-color-primary);border-color:var(--tb-color-primary)}
.btn.primary:hover{background:var(--tb-color-primary-hover)}
.btn.danger{color:var(--tb-color-danger);border-color:#dfbdb9}
.btn.quiet{background:transparent;border-color:transparent;font-weight:500}
.btn.icon-button{width:35px;padding:0}
.btn.small{height:30px;font-size:12px;padding:0 10px}
.btn .icon{width:16px;height:16px}
.badge{font-size:12px;font-weight:500;display:inline-flex;gap:5px;align-items:center;padding:3px 8px;line-height:1.4;border-radius:5px;color:#536a60;background:#eff3ef;white-space:nowrap}
.badge.green{background:#e7f4eb;color:#226746}
.badge.orange{background:#fff1db;color:#8a571f}
.badge.blue{background:#eaf1f8;color:#315f91}
.badge.red{background:#fcece9;color:#a43e39}
.dot{width:7px;height:7px;background:#4d9a70;border-radius:50%;display:inline-block}
.dot.orange{background:#c89147}
.dot.gray{background:#a4b0a8}
.field{width:100%;border:1px solid #cdd8cf;border-radius:8px;min-height:39px;padding:9px 11px;background:white;color:var(--tb-color-text)}
textarea.field{resize:vertical;line-height:1.6}
.form-field{display:grid;gap:7px}
.form-field label{font-size:13px;font-weight:550}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.span-2{grid-column:1/-1}
.hint{font-size:12px;line-height:1.6;color:var(--tb-color-text-muted)}
.divider{height:1px;background:var(--tb-color-border);margin:20px 0}
.empty{padding:56px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--tb-color-text-secondary)}
.empty .empty-icon{width:50px;height:50px;display:grid;place-items:center;color:#5e8d76;background:#eef5ef;border:1px solid #dde9df;border-radius:14px;margin-bottom:6px}
.empty .empty-icon .icon{width:24px;height:24px}
.empty h3{color:var(--tb-color-text);font-size:16px}
.empty p{max-width:440px;font-size:13px;line-height:1.8}
.empty .btn{margin-top:6px}
.error-box{padding:12px 14px;background:#fff3ed;border:1px solid #f2d4bc;border-radius:8px;font-size:13px;line-height:1.6;color:#87552c}
.skeleton{background:#eef2ed;border-radius:5px;animation:pulse 1.3s ease-in-out infinite}
.skeleton.line{height:13px;margin:12px 0;width:60%}
@keyframes pulse{50%{opacity:.45}
}
.boot-state{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;color:var(--tb-color-text-muted)}
.boot-state img{width:195px}
.shell{display:grid;grid-template-columns:190px minmax(0,1fr);min-width:1110px;height:100vh;overflow:hidden}
.sidebar{background:var(--tb-brand-900);color:var(--tb-color-sidebar-text);display:flex;flex-direction:column;padding:22px 12px 14px;overflow:hidden}
.brand{padding:3px 10px 23px;display:block}
.brand img{width:142px;display:block;height:auto}
.sidebar-caption{padding:14px 13px 9px;color:#83aa98;font-size:12px;letter-spacing:1.3px}
.nav{display:grid;gap:5px}
.nav a{height:43px;color:var(--tb-color-sidebar-text);display:flex;align-items:center;gap:12px;padding:0 13px;border-radius:8px;transition:background 120ms}
.nav a .icon{opacity:.85}
.nav a:hover{background:#1c4e42}
.nav a.active{background:var(--tb-color-sidebar-active);color:white;font-weight:550}
.nav a.active:before{content:"";width:3px;height:18px;background:#9cceb3;position:absolute;left:12px;border-radius:2px}
.nav-count{margin-left:auto;min-width:19px;padding:2px 5px;border-radius:5px;background:#39725b;font-size:12px;text-align:center}
.sidebar-bottom{margin-top:auto;display:grid;gap:12px}
.environment{border:1px solid #376052;border-radius:8px;padding:11px;font-size:12px;line-height:1.7;color:#b9d4c4}
.environment strong{font-weight:550;color:#f1fff5;display:flex;align-items:center;gap:7px}
.user-menu{border-top:1px solid #325b4d;padding:14px 7px 0;display:flex;align-items:center;gap:9px}
.avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e7efe8;color:#426d58;font-size:13px;font-weight:650;flex-shrink:0}
.avatar.dark{color:#d8efdf;background:#30614e}
.user-info{overflow:hidden;flex:1}
.user-info strong{display:block;font-size:13px;font-weight:550;color:#f2fff5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-info small{color:#8fb69f}
.sidebar .icon-button{color:#b6d2bf;border:0;background:transparent;width:25px}
.workspace{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.topbar{height:64px;background:#fff;border-bottom:1px solid var(--tb-color-border);display:flex;align-items:center;justify-content:space-between;padding:0 30px;flex-shrink:0}
.breadcrumb{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--tb-color-text-muted)}
.breadcrumb strong{font-weight:550;color:#42594b}
.topbar-right{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--tb-color-text-muted)}
.topbar-right .connection{display:flex;align-items:center;gap:7px}
.page{overflow:auto;flex:1;min-height:0;padding:30px 34px 36px;max-width:1720px;width:100%;margin:0 auto}
.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:25px;gap:20px}
.page-header p{font-size:13px;color:var(--tb-color-text-muted);line-height:1.8;margin-top:7px}
.page-header-actions{display:flex;align-items:center;gap:8px;padding-top:2px}
.eyebrow{font-size:12px;color:#7d8f7e;letter-spacing:1.5px;margin-bottom:10px}
.card{background:#fff;border:1px solid var(--tb-color-border);border-radius:12px;box-shadow:0 3px 12px #123e3703}
.card-header{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8ede6;gap:12px}
.card-header p{font-size:12px;color:var(--tb-color-text-muted);margin-top:3px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}
.stat{padding:18px 20px;position:relative}
.stat-label{color:var(--tb-color-text-muted);display:flex;align-items:center;justify-content:space-between;font-size:13px}
.stat-label .icon{color:var(--tb-color-text-muted);width:18px;height:18px}
.stat-number{font-size:32px;letter-spacing:-1.1px;line-height:1.4;font-weight:600;margin:8px 0 3px}
.stat-note{font-size:12px;color:var(--tb-color-text-muted)}
.today-grid{display:grid;grid-template-columns:minmax(420px,1.8fr) minmax(280px,1fr);gap:22px;align-items:start}
.task-row{display:flex;align-items:center;gap:13px;padding:17px 21px;border-bottom:1px solid #edf1ea;background:none;width:100%;text-align:left;border-top:0;border-left:0;border-right:0;color:inherit}
.task-row:last-child{border-bottom:0}
.task-row:hover{background:#f8faf6}
.task-type{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;background:#eef5ed;color:#4a7658;flex-shrink:0}
.task-type.quote{color:#986e3d;background:#fff3e5}
.task-main{flex:1;min-width:0}
.task-title{font-size:14px;font-weight:550;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-subtitle{font-size:12px;color:#839081;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.task-row>.icon{color:var(--tb-color-text-muted);width:16px}
.task-right{text-align:right;display:grid;gap:5px}
.task-right small{font-size:12px;color:var(--tb-color-text-muted)}
.chart{display:flex;align-items:flex-end;gap:10px;height:108px;padding:4px 0 0;margin:15px 0 4px}
.chart-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;flex:1;gap:5px}
.chart-col .bar{background:#bad7be;border-radius:4px 4px 0 0;width:100%;max-width:28px;min-height:2px}
.chart-col .bar.today{background:#38815f}
.chart-col small{font-size:12px;color:var(--tb-color-text-muted)}
.chart-col .value{font-size:12px;color:var(--tb-color-text-muted)}
.small-card-body{padding:18px 21px}
.progress-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:10px 0;border-bottom:1px solid #edf1e9}
.progress-row:last-child{border-bottom:0}
.progress-row .icon{width:16px;height:16px;color:#86a28b}
.info-note{padding:14px 16px;border-radius:8px;background:#f2f7ef;font-size:12px;color:#617658;line-height:1.8;margin-top:18px}
.inbox-page{padding:0;max-width:none;display:flex;flex:1;min-height:0;overflow:hidden}
.inbox-layout{display:grid;grid-template-columns:294px minmax(360px,1fr) 294px;height:100%;width:100%;min-width:0}
.conversation-list{background:#fff;border-right:1px solid var(--tb-color-border);display:flex;flex-direction:column;min-height:0}
.list-heading{padding:23px 20px 17px;display:flex;justify-content:space-between;align-items:center}
.list-heading h1{font-size:19px;letter-spacing:-.4px}
.list-heading .muted{font-size:12px}
.search-wrap{padding:0 16px 13px;position:relative}
.search-wrap .icon{position:absolute;left:27px;top:11px;width:16px;height:16px;color:#8d9b8e}
.search-wrap input{background:#f4f7f1;border:1px solid #e5ebe1;border-radius:8px;width:100%;padding:10px 10px 10px 34px;font-size:12px;color:#344d3d;min-width:0}
.list-filters{padding:0 16px 12px;display:flex;gap:7px;border-bottom:1px solid #e8ede3}
.list-filters select{border:1px solid #dde5da;border-radius:6px;padding:6px;min-width:0;font-size:12px;max-width:155px;flex:1;background:#fff;color:#657760}
.list-filters .filter-tab{border:0;background:#f1f5ed;padding:7px 10px;font-size:12px;border-radius:6px;color:#617359}
.list-filters .filter-tab.active{background:#e7f0e3;color:#256747;font-weight:600}
.list-scroll{overflow:auto;flex:1;padding:6px 0}
.conversation-item{border:0;border-bottom:1px solid #f2f4ef;display:flex;width:100%;text-align:left;align-items:flex-start;gap:11px;padding:17px 17px;background:#fff;color:inherit;position:relative}
.conversation-item:hover{background:#f7f9f4}
.conversation-item.selected{background:#edf4e8}
.conversation-item.selected:before{position:absolute;content:"";left:0;top:15px;bottom:15px;width:3px;background:#4b8b66;border-radius:0 3px 3px 0}
.conversation-item .avatar{width:39px;height:39px;border-radius:12px;font-size:14px;background:#eef1e9}
.conversation-item.selected .avatar{background:#dcebd8}
.conversation-content{min-width:0;flex:1}
.conversation-line{display:flex;align-items:center;justify-content:space-between;gap:7px}
.conversation-line strong{font-size:13px;max-width:156px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}
.conversation-line time{font-size:12px;color:var(--tb-color-text-muted);flex-shrink:0}
.conversation-preview{font-size:12px;line-height:1.6;color:var(--tb-color-text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:4px 0 7px}
.conversation-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--tb-color-text-muted);min-height:15px}
.channel-mini{display:inline-flex;align-items:center;gap:4px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-mini .icon{width:12px;height:12px;color:#59a06a}
.unread{margin-left:auto;background:#4c855d;color:#fff;min-width:17px;height:17px;border-radius:9px;display:grid;place-items:center;font-size:12px}
.list-footer{padding:9px 15px;border-top:1px solid #e7eee1;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--tb-color-text-muted)}
.chat-column{display:flex;flex-direction:column;background:#f6f8f3;min-width:0;min-height:0;position:relative}
.chat-header{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#fff;border-bottom:1px solid #e3e9dd;gap:10px;flex-shrink:0}
.chat-contact{display:flex;align-items:center;gap:11px;min-width:0}
.chat-contact strong{font-size:15px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:245px}
.chat-contact small{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--tb-color-text-muted);margin-top:5px}
.chat-contact small .icon{width:12px;height:12px;color:#4b9360}
.chat-actions{display:flex;align-items:center;gap:6px}
.message-area{overflow:auto;flex:1;padding:18px 26px;min-height:0;scroll-behavior:smooth}
.message-date{display:flex;align-items:center;justify-content:center;margin:9px 0 22px;gap:10px;color:var(--tb-color-text-muted);font-size:12px}
.message-date:before,.message-date:after{content:"";height:1px;width:42px;background:#e2e8db}
.message-row{display:flex;margin-bottom:17px;flex-direction:column;align-items:flex-start}
.message-row.outgoing{align-items:flex-end}
.message-row.private{align-items:center;margin:12px 0 18px}
.message-sender{font-size:12px;color:var(--tb-color-text-muted);margin:0 4px 5px}
.message-bubble{max-width:83%;padding:12px 15px;background:white;border:1px solid #e2e8dc;border-radius:12px 12px 12px 3px;box-shadow:0 1px 3px #2e502505;word-break:break-word;line-height:1.75;font-size:13px;min-width:76px}
.message-row.outgoing .message-bubble{background:#e7f1e0;border-color:#dce7d3;border-radius:12px 12px 3px 12px}
.message-row.private .message-bubble{background:#fff5df;border-color:#eddfbd;border-radius:8px;max-width:94%;font-size:12px;color:#81683a}
.message-text{white-space:pre-wrap}
.message-time{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:12px;line-height:1;margin:8px 0 0;color:var(--tb-color-text-muted)}
.message-time .icon{height:13px;width:13px;color:#73a184}
.message-time .status-unknown{color:#a3753b}
.message-activity{text-align:center;color:var(--tb-color-text-muted);font-size:12px;margin:12px 0}
.message-file{display:flex;gap:10px;align-items:center;color:#456340;border:1px solid #dbe6d3;padding:10px;border-radius:8px;margin-top:7px;min-width:180px;background:#ffffff85}
.message-file .icon{width:25px;height:25px}
.message-file strong{font-size:12px;display:block;font-weight:550;overflow-wrap:anywhere}
.message-file small{font-size:12px;color:var(--tb-color-text-muted);display:block;margin-top:3px}
.message-image{max-width:100%;max-height:240px;display:block;border-radius:7px;margin-top:6px}
.history-button{text-align:center;margin:0 0 18px}
.chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;color:#778b6c;gap:12px}
.chat-empty .empty-art{width:78px;height:78px;border-radius:22px;background:#eaf0e4;display:grid;place-items:center;color:#82a270;margin-bottom:7px}
.empty-art .icon{height:35px;width:35px}
.chat-empty h2{font-size:19px;color:#4e6b43}
.chat-empty p{max-width:320px;line-height:1.8;font-size:13px}
.composer{border-top:1px solid #dfe8d7;background:#fff;padding:13px 22px 15px;flex-shrink:0}
.composer-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.composer-modes{display:flex;gap:14px}
.composer-mode{background:transparent;border:0;font-size:12px;color:var(--tb-color-text-muted);padding:4px 0;border-bottom:2px solid transparent}
.composer-mode.active{color:#396d3e;border-bottom-color:#589467;font-weight:600}
.save-status{font-size:12px;color:var(--tb-color-text-muted);display:flex;align-items:center;gap:5px}
.save-status.error{color:#a26936}
.save-status .icon{height:11px;width:11px}
.composer textarea{display:block;resize:none;border:0;width:100%;min-height:71px;max-height:145px;padding:0;background:transparent;font-size:13px;line-height:1.8;color:#35512e}
.composer textarea:focus{outline:none}
.composer textarea::placeholder{color:var(--tb-color-text-muted)}
.composer.note-mode{background:#fffcf5}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:8px}
.composer-tools{display:flex;gap:7px;align-items:center}
.composer-hint{font-size:12px;color:var(--tb-color-text-muted)}
.composer .btn.primary{height:34px;font-size:12px;padding:0 13px}
.composer .btn.icon-button{height:30px;width:30px;border:0;color:#788e6b}
.draft-attachments{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0 10px}
.draft-file{display:flex;align-items:center;gap:7px;padding:7px 8px;background:#f2f6ed;border:1px solid #e0e7d8;border-radius:7px;font-size:12px;max-width:100%}
.draft-file>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px;color:#5a7850}
.draft-file .icon{width:14px;height:14px}
.draft-file button{border:0;color:#879779;background:none;padding:0;display:flex}
.draft-conflict{margin:8px 0;font-size:12px;background:#fff1d8;border:1px solid #ecd7ad;border-radius:7px;color:#836431;padding:9px;line-height:1.7}
.draft-conflict button{padding:0;border:0;text-decoration:underline;background:none;color:#7c5a25}
.context-rail{background:#fff;border-left:1px solid #e0e8d9;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.rail-tabs{height:59px;display:flex;gap:23px;padding:0 20px;border-bottom:1px solid #e5ebde;flex-shrink:0}
.rail-tab{background:none;border:0;border-bottom:2px solid transparent;color:var(--tb-color-text-muted);font-size:13px;padding:0 1px}
.rail-tab.active{font-weight:600;color:#3b6e3c;border-bottom-color:#588b5c}
.rail-scroll{padding:22px 19px;overflow:auto;flex:1}
.rail-profile{text-align:center;padding:0 0 22px}
.rail-profile .avatar{margin:0 auto 11px;width:49px;height:49px;border-radius:15px;font-size:17px;background:#eaf1e3}
.rail-profile h3{font-size:15px;line-height:1.5;word-break:break-word}
.rail-profile p{font-size:12px;margin-top:6px;color:var(--tb-color-text-muted)}
.rail-section{border-top:1px solid #e6ecdf;padding-top:18px;margin-bottom:19px}
.rail-section h3{font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;color:#687f5a}
.rail-section h3 button{color:#82a26a}
.detail-row{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:12px;padding:8px 0}
.detail-row>span:first-child{color:var(--tb-color-text-muted);flex-shrink:0}
.detail-row>span:last-child{text-align:right;color:#4e6d43;overflow-wrap:anywhere}
.detail-row select{max-width:145px;border:1px solid #e0e7d8;border-radius:5px;padding:5px;font-size:12px;color:#5d7d4f;background:#fafcf7}
.rail-tags{display:flex;gap:5px;flex-wrap:wrap}
.rail-tags .badge{font-size:12px;background:#f0f4ea;color:#74915c}
.rail-project{width:100%;border:1px solid #e3ebda;border-radius:8px;background:#fafcf7;text-align:left;padding:11px;margin-bottom:8px;color:inherit}
.rail-project strong{font-size:12px;display:block;margin-bottom:7px}
.rail-project small{font-size:12px;color:var(--tb-color-text-muted)}
.rail-help{font-size:12px;line-height:1.8;color:var(--tb-color-text-muted);background:#f7faf2;border-radius:8px;padding:11px}
.assistant-intro{padding:10px 0 20px}
.assistant-mark{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-bottom:12px;color:#416f3d}
.assistant-mark .icon{color:#6b9662}
.assistant-intro p{font-size:12px;color:var(--tb-color-text-muted);line-height:1.9}
.assistant-states{list-style:none;margin:15px 0 0;padding:0;font-size:12px;line-height:1.8;color:var(--tb-color-text-muted)}
.assistant-states li{display:flex;align-items:center;gap:8px;margin:9px 0}
.assistant-states .dot{width:5px;height:5px}
.project-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.project-toolbar .search-wrap{width:310px;padding:0}
.project-toolbar .search-wrap .icon{left:11px}
.project-toolbar .search-wrap input{background:white;height:38px}
.table-wrap{overflow:auto}
.data-table{width:100%;border-collapse:collapse;font-size:13px}
.data-table thead{background:#f8faf5}
.data-table th{font-size:12px;color:var(--tb-color-text-muted);font-weight:500;text-align:left;padding:14px 20px;border-bottom:1px solid #e4ebdc;white-space:nowrap}
.data-table td{padding:18px 20px;border-bottom:1px solid #edf1e7}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr{cursor:pointer}
.data-table tbody tr:hover{background:#f8fbf4}
.data-table strong{font-weight:550;display:block;max-width:320px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.data-table .subline{margin-top:5px;font-size:12px;color:var(--tb-color-text-muted)}
.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.knowledge-card{display:flex;flex-direction:column;padding:21px;gap:14px;cursor:pointer;text-align:left;color:inherit}
.knowledge-card:hover{border-color:#a9c29a;box-shadow:0 4px 15px #1e54250a}
.knowledge-card .knowledge-top{display:flex;align-items:center;justify-content:space-between}
.knowledge-card .knowledge-top .icon{color:#8da77b;width:24px;height:24px}
.knowledge-card h3{font-size:15px}
.knowledge-preview{font-size:12px;line-height:1.85;color:var(--tb-color-text-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:67px}
.knowledge-meta{font-size:12px;color:var(--tb-color-text-muted);display:flex;justify-content:space-between;border-top:1px solid #edf2e5;padding-top:13px}
.settings-grid{display:grid;grid-template-columns:minmax(460px,1.6fr) minmax(280px,1fr);gap:22px}
.r1-settings>[data-email-settings-host]{min-width:0}
.email-account-settings{height:100%;box-sizing:border-box;min-width:0}
.email-account-settings h3{font-size:18px;margin:0 0 12px}
.email-account-settings p{font-size:13px;line-height:1.65;color:var(--text-secondary,#66736e);overflow-wrap:anywhere}
.email-account-settings label{display:block;font-size:13px;font-weight:600;margin:18px 0 8px}
.email-account-settings input[data-email-code]{display:block;width:100%;max-width:420px;margin-top:8px;box-sizing:border-box}
.email-account-settings button{margin:6px 6px 6px 0;white-space:normal}
.email-account-settings [data-email-state]{border-left:3px solid var(--accent,#2d6c58);padding-left:12px}
.email-account-settings [data-email-refresh]{margin-top:12px}
.email-account-settings details{margin-top:12px;font-size:13px;color:var(--text-secondary,#66736e)}
.email-account-settings summary{cursor:pointer}
.setting-section{padding:22px}
.channel-card{padding:17px 0;border-bottom:1px solid #e8eede;display:flex;gap:13px;align-items:flex-start}
.channel-card:last-child{border-bottom:0}
.channel-card .channel-icon{width:39px;height:39px;border:1px solid #e2ebd9;border-radius:11px;background:#f3f8ed;display:grid;place-items:center;color:#6a9a53;flex-shrink:0}
.channel-card .channel-icon .icon{width:21px;height:21px}
.channel-card h3{font-size:14px;margin-bottom:6px}
.channel-card p{font-size:12px;color:var(--tb-color-text-muted);line-height:1.7;max-width:450px}
.channel-card .channel-detail{flex:1}
.channel-card .badge{font-size:12px}
.setting-list{padding:5px 21px 16px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #edf1e7}
.setting-row:last-child{border-bottom:0}
.setting-row strong{font-size:13px;font-weight:550;display:block}
.setting-row p{font-size:12px;color:var(--tb-color-text-muted);line-height:1.7;margin-top:5px}
.feature-empty{padding:25px;display:grid;grid-template-columns:minmax(300px,1fr) minmax(290px,1fr);gap:40px;align-items:center;min-height:280px}
.feature-empty h2{font-size:22px;font-weight:600;margin:0 0 14px}
.feature-empty p{font-size:13px;line-height:1.9;color:var(--tb-color-text-muted);margin-bottom:19px}
.feature-steps{display:grid;gap:12px}
.feature-step{display:flex;gap:12px;align-items:center;padding:16px;background:#f5f9ef;border:1px solid #e6eedd;border-radius:9px}
.feature-step .step-number{font-size:12px;flex-shrink:0;width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e7f0dc;color:#73965a}
.feature-step strong{display:block;font-size:13px;font-weight:550}
.feature-step small{color:var(--tb-color-text-muted);display:block;font-size:12px;margin-top:5px}
.feature-bottom{padding:17px 23px;border-top:1px solid #e7eedd;display:flex;align-items:center;justify-content:space-between;color:var(--tb-color-text-muted);font-size:12px}
.login-screen{min-height:100vh;background:#f4f7f3;display:grid;grid-template-columns:1fr 1fr}
.login-brand{background:#123e37;padding:55px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.login-brand>img{width:182px}
.login-title{color:#e3f2df;position:relative;z-index:1;max-width:420px;margin-bottom:55px}
.login-title h1{font-size:36px;line-height:1.5;font-weight:500;letter-spacing:-1px}
.login-title p{font-size:14px;line-height:1.9;color:#9fc1aa;margin-top:20px}
.login-brand:after{content:"";width:520px;height:520px;position:absolute;border:1px solid #37634d;border-radius:50%;left:35%;top:45%;box-shadow:0 0 0 45px #ffffff02,0 0 0 95px #ffffff02}
.login-foot{font-size:12px;color:#719a81}
.login-main{display:flex;align-items:center;justify-content:center;padding:50px}
.login-panel{width:340px}
.login-panel h2{font-size:25px;font-weight:600;margin-bottom:12px}
.login-panel>p{font-size:13px;color:var(--tb-color-text-muted);margin-bottom:31px;line-height:1.8}
.login-panel form{display:grid;gap:19px}
.login-panel .btn{margin-top:5px;height:42px}
.login-panel .login-tip{font-size:12px;color:var(--tb-color-text-muted);line-height:1.8;margin-top:23px}
.modal-backdrop{position:fixed;inset:0;background:#13392465;z-index:30;display:flex;align-items:center;justify-content:center;padding:25px;backdrop-filter:blur(3px)}
.modal{background:#fff;border-radius:16px;max-width:650px;width:100%;max-height:calc(100vh - 50px);display:flex;flex-direction:column;box-shadow:0 20px 70px #0c292440;overflow:hidden}
.modal.wide{max-width:830px}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:23px 25px;border-bottom:1px solid #e3ebdb}
.modal-header h2{font-size:18px}
.modal-header .btn{height:30px;width:30px}
.modal-body{padding:25px;overflow:auto}
.modal-footer{border-top:1px solid #e6eddf;padding:17px 25px;display:flex;justify-content:flex-end;align-items:center;gap:10px}
.modal-footer>.hint{margin-right:auto}
.preview-recipient{padding:14px;border:1px solid #dce7d4;background:#f5f9ef;display:flex;justify-content:space-between;gap:15px;border-radius:9px;margin-bottom:19px}
.preview-recipient strong{font-size:14px;display:block;margin-bottom:5px}
.preview-recipient p{font-size:12px;color:var(--tb-color-text-muted)}
.preview-content{white-space:pre-wrap;word-break:break-word;border:1px solid #e3e9dd;border-radius:10px;padding:18px;line-height:1.9;font-size:13px;max-height:250px;overflow:auto}
.preview-label{font-size:12px;color:#8b9e79;margin:0 0 9px}
.preview-files{display:grid;gap:8px;margin-top:14px}
.preview-file{padding:11px;border:1px solid #dfe8d6;border-radius:8px;display:flex;align-items:center;gap:10px;font-size:12px}
.preview-file .icon{color:#94ab81}
.preview-file small{display:block;font-size:12px;color:var(--tb-color-text-muted);margin-top:3px}
.toast{position:fixed;bottom:26px;left:calc(50% + 85px);transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:10px;border-radius:10px;box-shadow:0 5px 30px #153e2426;background:#fff;border:1px solid #cddfc5;padding:13px 19px;font-size:13px;max-width:590px;line-height:1.6}
.toast.error{border-color:#e7cfb3;color:#956639}
.toast .icon{color:#589667}
.toast.error .icon{color:#b3894b}
.footer-note{font-size:12px;color:var(--tb-color-text-muted);margin-top:18px;line-height:1.8}
.project-details{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}
.project-notes{white-space:pre-wrap;font-size:13px;line-height:1.9;color:#829674}
.mini-title{font-size:12px;color:var(--tb-color-text-muted);margin-bottom:8px}
.inline-link{font-size:12px;color:#6a9351;border:0;background:none;padding:0;text-decoration:underline}
.busy-overlay{pointer-events:none;opacity:.7}
.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(min-width:1550px){.inbox-layout{grid-template-columns:320px minmax(440px,1fr) 320px}
.message-area{padding-left:40px;padding-right:40px}
}
@media(max-width:1280px){.shell{grid-template-columns:166px minmax(0,1fr)}
.brand img{width:126px}
.nav a{font-size:13px;padding:0 10px;gap:10px}
.inbox-layout{grid-template-columns:266px minmax(360px,1fr) 267px}
.chat-header{padding:0 17px}
.message-area{padding:15px 18px}
.composer{padding-left:17px;padding-right:17px}
.page{padding:26px}
.context-rail .rail-scroll{padding-left:17px;padding-right:17px}
.topbar{padding:0 25px}
.chat-contact strong{max-width:190px}
.topbar-right{gap:10px}
.knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.today-grid{grid-template-columns:minmax(380px,1.5fr) minmax(260px,1fr)}
}

/* Reading hierarchy: business text stays readable at desktop density. */
.task-title,.task-subtitle,.conversation-preview{display:block}

.sidebar-caption,.nav-count,.conversation-line time,.conversation-meta,.unread,.list-footer,.chat-contact small,.message-sender,.message-time,.message-activity,.save-status,.composer-hint,.draft-file,.draft-file small,.rail-profile p,.rail-section h3,.detail-row select,.rail-tags .badge,.rail-project small,.rail-help,.assistant-states,.data-table .subline,.knowledge-meta,.setting-row p,.feature-step small,.feature-empty .eyebrow,.feature-bottom,.footer-note,.login-tip,.preview-file small,.mini-title,.chart-col small,.chart-col .value{font-size:12px}

.conversation-line time,.message-time{font-size:12px}

.task-subtitle,.conversation-preview,.conversation-meta,.task-right small,.list-footer,.chat-contact small,.message-sender,.composer-hint,.save-status,.rail-profile p,.rail-help,.assistant-intro p,.assistant-states,.data-table .subline,.knowledge-preview,.knowledge-meta,.channel-card p,.setting-row p,.feature-empty p,.feature-step small,.footer-note,.mini-title{color:var(--tb-color-text-muted)}

.task-title{line-height:1.6}
.conversation-preview{margin-top:5px}
.rail-tags .badge{background:#edf3e7;color:#617b50}

.message-time{color:var(--tb-color-text-muted)}
.conversation-line time{color:var(--tb-color-text-muted)}
.rail-section h3{color:#567047}
.hint{color:var(--tb-color-text-muted)}
.save-status.error{color:#9a612a}
.knowledge-preview{line-height:1.8}
.rail-help{line-height:1.8}
.task-right small{font-size:12px}
.topbar-right{font-size:12px}

.list-paging{display:flex;gap:0}
.list-paging .btn.small{padding:0 5px;font-size:12px}
.selection-note{padding:10px 16px;font-size:12px;line-height:1.6;background:#f7f3e8;color:#8d774a;margin:0;border-bottom:1px solid #eee4cd}


.user-info{min-width:0}
.user-menu>.icon-button{flex-shrink:0;min-width:28px;width:28px}
.user-info strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}

.sidebar-bottom{min-width:0;grid-template-columns:minmax(0,1fr)}
.user-menu{min-width:0}

.media-pending{display:flex;align-items:flex-start;gap:7px;padding:9px 10px;margin-top:9px;background:#f5f2e8;border:1px solid #e9dfc5;color:#8a6c35;border-radius:7px;font-size:12px;line-height:1.65}
.media-pending .icon{width:15px;height:15px;margin-top:2px}


/* W3: shared task detail stays within the existing seven-entry shell. */
.work-task-list{margin-bottom:22px}.modal.wide:has(.w3-detail){width:1120px;max-width:calc(100vw - 32px)}
.w3-banner{background:#fff5e3;border:1px solid #ecd3a5;border-radius:8px;padding:12px;line-height:1.7;font-size:13px}
.w3-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 0}.w3-summary p{margin-top:6px;color:#667a6c}
.w3-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.w3-grid>main,.w3-grid>aside{min-width:0}
.w3-section{border:1px solid #e1e8df;border-radius:9px;padding:18px;margin-bottom:16px;background:#fff}.w3-section h3{font-size:15px;margin-bottom:12px}
.w3-section p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin-bottom:10px;font-size:14px}.w3-source{border-top:1px solid #e8eee6;padding:15px 0}
.w3-source strong{font-size:14px}.w3-section details{margin-top:12px;font-size:12px}.w3-section summary{cursor:pointer;min-height:36px;line-height:36px}
.w3-section pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6f1;padding:12px;border-radius:7px;font-size:12px}
.w3-section label{display:block;font-size:13px;margin:14px 0 6px}.w3-feedback,.w3-actions{display:flex;flex-wrap:wrap;gap:8px}.w3-table-wrap{overflow:auto}.w3-section .btn{min-height:40px;height:auto;white-space:normal}
.w3-fact{border-left:3px solid #c6dccb;padding:0 12px;margin:12px 0}
@media(max-width:1099px){.w3-grid{grid-template-columns:1fr}.w3-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:10px}}
@media(max-width:719px){.w3-grid>aside{display:block}.modal.wide:has(.w3-detail){max-width:calc(100vw - 12px)}.w3-section{padding:12px}.w3-summary{display:block}}

.message-delivery{display:inline-flex;align-items:center;color:#75867e;margin-left:3px}
.message-delivery .icon{width:15px;height:15px}
.message-delivery.is-read{color:#248dc0}
.message-delivery.is-unknown{color:#8c8065}
