/* ── M4.5 (/L): ONE modern scrollbar everywhere — slackerZ's look ported: no top
   arrows, no track, just a thin rounded thumb (the track melts into the surface).
   PURE ::-webkit-scrollbar ONLY — LAW: never pair these with scrollbar-width/
   scrollbar-color; the standard properties flip Chromium (and Vivaldi) onto the
   NATIVE scrollbar rendering, arrows and all, and the webkit styling dies. ── */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-button{display:none;height:0;width:0}
::-webkit-scrollbar-track,.dt-mount .primary-pane::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#c9c7cc;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#b3b1b7}
::-webkit-scrollbar-corner{background:transparent}
/* DreamTeam B002. Module-owned navigation; authentic light DreamTeam rail and mail panes. */
.form-actions{display:flex;gap:8px;align-items:center}.form-actions>button{font-size:11px}.master-rail{overflow-y:auto;}.rail-categories{flex-shrink:0}.rail-toggle{flex-shrink:0}
:root{--text:#252735;--muted:#78818f;--line:#e8ebf1;--soft:#f7f9fc;--accent:#4b0ad2;--accent-soft:#f0eafa;--radius:8px;--font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--hostbar-h:52px;color:var(--text);font-family:var(--font);font-size:15px}
*{box-sizing:border-box}body{margin:0;background:#fff}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:var(--radius);min-height:36px;background:white;color:var(--text);padding:7px 12px}button:hover{background:var(--soft)}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #9772ee!important;outline-offset:2px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}
.hostbar{height:58px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:16px}.wordmark{font-weight:650;color:white;display:flex;align-items:center;gap:9px;font-size:19px;white-space:nowrap}.brand-mark{font-size:28px;line-height:1}.build{font-size:10px;font-weight:500;opacity:.7;margin-left:6px;letter-spacing:1px}.hostbar nav{display:flex;align-items:center;gap:18px;font-size:12px}.hostbar a{color:white}.hostbar button{border-color:#ffffff44;background:#ffffff12;color:#fff;min-height:32px;font-size:12px}.hostbar button:hover{background:#ffffff22}#workspace{height:calc(100dvh - var(--hostbar-h));min-height:540px}#detached{max-width:560px;margin:12vh auto;padding:24px;line-height:1.7}
.dt-mount.r-multi-llm{--session-color:var(--accent);display:grid;grid-template-columns:58px 226px minmax(0,1fr);height:100%;font:14px var(--font);color:var(--text)}.dt-mount.rail-expanded{grid-template-columns:174px 226px minmax(0,1fr)}.master-rail{display:flex;flex-direction:column;align-items:stretch;padding:12px 8px;border-right:1px solid var(--line);background:#f8f9fc;gap:18px}.master-rail button{display:flex;align-items:center;gap:12px;border:0;padding:10px;min-height:42px;overflow:hidden;white-space:nowrap;background:transparent;color:#929aaa}.cw-icon{width:20px;height:20px;flex:0 0 20px;background:currentColor;mask:var(--icon) center/contain no-repeat}.rail-categories{display:grid;gap:10px}.master-rail .selected{background:var(--accent);color:white;box-shadow:0 3px 9px #4b0ad21f}.master-rail button:hover{background:#eae6f4;color:var(--accent)}.rail-label{display:none}.rail-expanded .rail-label{display:inline;font-size:12px}.rail-bottom{margin-top:auto;display:grid;place-items:center;height:38px;font-size:30px;color:var(--accent)}.worker-list{background:#f7f9fc;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0;padding:20px 10px 16px}.tenant-picker{padding:0 10px 20px}.tenant-picker label,.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.2px;color:#949bab}.tenant-picker select{width:100%;margin-top:8px;height:38px;border:1px solid #e3e6ed;border-radius:8px;background:#fff;padding:0 10px;color:#36384a}.list-title{display:flex;justify-content:space-between;color:#828998;font-size:11px;padding:0 10px 12px}.worker{display:flex;align-items:center;gap:10px;border:0;background:transparent;width:100%;text-align:left;padding:12px 10px;margin-bottom:6px;min-height:66px}.worker.selected{background:#ede6fa;color:#3f2092}.worker>span:last-child{display:grid;gap:6px;min-width:0}.worker strong{font-size:12px;font-weight:600;white-space:normal}.worker small{font-size:10px;color:#8a7d9e}.avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#e8dafa;color:#7b3cd5;font-size:12px;font-weight:650}.avatar.teal{background:#d5f2e8;color:#26836d}.scope-note{padding:20px 12px 0;margin-top:auto;font-size:10px;color:#9199a5;line-height:1.6}.scope-note strong{color:#6d7787;font-weight:600}.scope-note p{margin:6px 0 14px}.saved-dot{width:5px;height:5px;border-radius:50%;display:inline-block;background:#8f79bc;margin-right:4px}
.workspace-body{display:flex;flex-direction:column;min-width:0;min-height:0}.worker-header{height:82px;min-height:82px;padding:18px 28px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:12px}.worker-header h1{font-size:17px;line-height:1.2;margin:0 0 6px;font-weight:650}.worker-header p{font-size:11px;color:var(--muted);margin:0}.worker-header>.badge{margin-left:auto}.badge{font-size:10px;font-weight:500;background:#f3f1f7;color:#81738e;padding:5px 8px;border-radius:5px;white-space:nowrap;display:inline-block}.workspace-content{display:grid;grid-template-columns:minmax(0,1fr) 250px;flex:1;min-height:0;overflow:auto}.primary-pane{padding:30px;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:26px}.eyebrow{margin:0 0 10px}.section-heading h2{font-size:24px;line-height:1.25;letter-spacing:-.5px;font-weight:620;margin:0 0 10px}.section-heading p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.6;margin:0}.section-heading>.badge{margin-top:4px}.editor{border:1px solid var(--line);border-radius:10px;padding:20px;background:white;display:grid;gap:16px;box-shadow:0 3px 12px #20204003}.editor label{font-size:11px;color:#596170;font-weight:550;display:grid;gap:8px}.optional{font-size:10px;font-weight:400;color:#9aa1ad;display:contents}.editor input,.editor select,.editor textarea{width:100%;border:1px solid #e7e9ef;border-radius:6px;padding:10px 11px;color:#3e4653;background:#fcfcfe;font-size:12px;line-height:1.6;min-width:0}.editor input,.editor select{min-height:40px}.editor textarea{resize:vertical;min-height:92px;max-height:440px}.editor input::placeholder,.editor textarea::placeholder{color:#a0a6b1}.editor.composer textarea{border:1px solid #e7e9ef}.field-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.form-footer span{color:#9299a5;font-size:10px;line-height:1.5}.form-footer .primary{background:var(--accent);border-color:var(--accent);color:white;min-height:36px;font-size:11px;font-weight:550;white-space:nowrap;padding:9px 15px}.form-footer .primary:hover{background:#3c08b1}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:28px 0 14px}.list-heading h3{font-size:13px;margin:0;font-weight:600}.list-heading>span{font-size:10px;color:#a0a6b0}.empty{padding:28px 16px;text-align:center;border:1px dashed #e3e6ed;border-radius:9px;background:#fcfdff;color:#8b94a1}.empty-icon{font-size:24px;display:block;color:#ac97ce;margin-bottom:9px}.empty strong{display:block;font-size:12px;color:#747d8b;font-weight:500}.empty p{font-size:11px;margin:8px 0 0;line-height:1.6}.record{border:1px solid var(--line);border-radius:8px;padding:16px;margin:0 0 12px;overflow-wrap:anywhere}.record-line{display:flex;justify-content:space-between;align-items:center;gap:12px}.record-line strong{font-weight:600;font-size:12px}.record p{white-space:pre-wrap;color:#78818d;font-size:12px;line-height:1.7;margin:12px 0}.record a{font-size:11px}.record small{display:block;font-size:10px;color:#a0a6b0;margin-top:12px}.context-summary{border-left:1px solid var(--line);background:#fcfcfe;padding:30px 24px;min-width:0}.context-summary h3{font-size:20px;line-height:1.4;margin:0 0 14px;font-weight:580;letter-spacing:-.4px}.context-summary>p:not(.eyebrow){font-size:12px;line-height:1.8;color:#89909e;margin:0 0 18px}.context-summary button{font-size:11px;color:#6e53a2;border-color:#e8e2f0;min-height:32px;padding:6px 10px}.mini-divider{height:1px;background:var(--line);margin:28px 0}.readiness{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#848d9a;margin:15px 0}.readiness>span:last-child{color:#a2a8b2}.context-summary .small-copy{font-size:11px!important}.workspace-status{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:8px 20px;min-height:44px;gap:12px;background:#fff;font-size:10px;color:#9098a4}.workspace-status button{min-height:26px;font-size:10px;padding:4px 8px}.error{color:#b54453!important}.document-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 16px}.document-tabs button{font-size:11px;min-height:32px}.document-tabs [aria-pressed=true]{border-color:#d4c5ee;background:#f4effb;color:var(--accent)}.markdown-editor{font-family:ui-monospace,Consolas,monospace!important;font-size:12px!important;min-height:240px!important}.connection-grid{display:grid;gap:12px}.connection{border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:0}.connection p,.footnote{font-size:12px;color:#8b93a0;line-height:1.7;margin:10px 0 0}.footnote{margin-top:22px;font-size:11px}.loading{padding:30px;font-size:13px;grid-column:1/-1}
.compact .workspace-content{grid-template-columns:minmax(0,1fr)}.compact .context-summary{display:none}.compact.dt-mount{grid-template-columns:58px 196px minmax(0,1fr)}.compact.dt-mount.rail-expanded{grid-template-columns:174px 196px minmax(0,1fr)}body[data-presentation=compact] #host{max-width:1180px;margin:28px auto;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 12px 50px #39325510}body[data-presentation=compact]{background:#f1f3f8}body[data-presentation=compact] #workspace{height:calc(100dvh - var(--hostbar-h) - 58px);min-height:540px}
@media(min-width:1600px){.primary-pane{padding:36px 44px}.workspace-content{grid-template-columns:minmax(0,1fr) 290px}.context-summary{padding:36px 28px}.section-heading h2{font-size:28px}}
@media(max-width:1150px){.workspace-content{grid-template-columns:minmax(0,1fr)}.context-summary{display:none}.primary-pane{padding:26px}.dt-mount.r-multi-llm{grid-template-columns:58px 196px minmax(0,1fr)}.dt-mount.rail-expanded{grid-template-columns:164px 196px minmax(0,1fr)}}
@media(max-width:720px){.hostbar{padding:0 12px;gap:10px}.hostbar nav{gap:9px}.wordmark{font-size:16px;gap:6px}.build{display:none}.hostbar nav a{font-size:10px}.hostbar button{font-size:10px;padding:5px 8px}.dt-mount.r-multi-llm,.compact.dt-mount{grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.dt-mount.rail-expanded,.compact.dt-mount.rail-expanded{grid-template-columns:138px minmax(0,1fr)}.master-rail{grid-row:1/3;padding:10px 5px;gap:14px}.master-rail button{padding:10px 8px}.rail-label{font-size:10px!important}.worker-list{grid-column:2;display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:6px;border-right:0;border-bottom:1px solid var(--line)}.tenant-picker{grid-column:1/-1;padding:0;display:flex;gap:10px;align-items:center}.tenant-picker label{font-size:9px}.tenant-picker select{margin:0;height:32px;font-size:11px;flex:1;min-width:0}.list-title,.scope-note{display:none}.worker{min-height:46px;margin:0;padding:6px;gap:6px}.worker strong{font-size:10px}.worker small{font-size:9px}.worker .avatar{width:28px;height:28px;flex-basis:28px;font-size:9px}.workspace-body{grid-column:2}.worker-header{height:70px;min-height:70px;padding:12px;gap:8px}.worker-header h1{font-size:14px}.worker-header p{font-size:9px;overflow-wrap:anywhere}.worker-header>.badge{display:none}.worker-header .avatar{width:32px;height:32px;flex-basis:32px;font-size:10px}.primary-pane{padding:18px 12px}.section-heading{margin-bottom:20px}.section-heading h2{font-size:20px}.section-heading p:not(.eyebrow){font-size:11px}.section-heading>.badge{display:none}.eyebrow{font-size:8px}.editor{padding:12px;gap:14px}.editor label{font-size:10px}.editor input,.editor select,.editor textarea{font-size:12px;padding:9px 8px}.form-footer{align-items:stretch;flex-direction:column;gap:10px}.form-footer .primary{width:100%}.field-row{grid-template-columns:minmax(0,1fr);gap:14px}.list-heading{margin-top:22px;align-items:flex-start;flex-direction:column;gap:5px}.record-line{flex-wrap:wrap;gap:8px}.record{padding:12px}.workspace-status{padding:8px 10px;min-height:48px;font-size:9px}.connection{padding:12px}.connection p,.footnote{font-size:11px}.document-tabs{gap:4px}.document-tabs button{font-size:9px;min-height:29px;padding:5px 7px}body[data-presentation=compact] #host{margin:0;border:0;border-radius:0}body[data-presentation=compact] #workspace,#workspace{height:calc(100dvh - var(--hostbar-h));min-height:0}.dt-mount.rail-expanded .worker-list{grid-template-columns:1fr}.dt-mount.rail-expanded .tenant-picker{flex-direction:column;align-items:stretch;gap:5px}}
/* B002 module layout supersedes the B001 permanent worker column. */
.dt-mount.r-multi-llm,.compact.dt-mount{grid-template-columns:58px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.dt-mount.rail-expanded,.compact.dt-mount.rail-expanded{grid-template-columns:174px minmax(0,1fr)}
.module-shell{min-width:0;min-height:0;display:flex;flex-direction:column}.module-toolbar{height:44px;flex:0 0 44px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:12px}.module-toolbar h1{font-size:13px;font-weight:600;margin:0}.module-workspace-control{display:flex;align-items:center;gap:8px;min-width:0}.module-workspace-control label{font-size:10px;color:var(--muted)}.module-workspace-control select{border:1px solid var(--line);border-radius:5px;padding:4px 8px;height:28px;font-size:11px;max-width:170px;min-width:0;background:#fff}.module-layout{display:grid;grid-template-columns:220px minmax(0,1fr);flex:1;min-height:0}.module-navigation{background:var(--soft);border-right:1px solid var(--line);padding:20px 10px;overflow:auto;display:flex;flex-direction:column;gap:5px}.module-navigation .list-title{padding:0 10px 12px;font-size:11px}.module-nav-item{border:0;background:transparent;text-align:left;font-size:12px}.module-nav-item.selected{background:#ede6fa;color:var(--accent)}.primary-pane{overflow:auto;padding:24px;min-height:0}.section-heading{margin-bottom:20px}.section-heading h2{font-size:20px}.section-heading p{max-width:680px}.email-slot,.email-module-host{flex:1;min-width:0;min-height:0;display:flex}.email-app{display:grid;grid-template-columns:220px 350px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 30px;flex:1;min-width:0;min-height:0;position:relative;background:#fff}.email-app button,.email-app input,.email-app select,.email-app textarea{font-size:12px}.mail-folder-rail{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff;border:1px solid var(--line);border-radius:10px;margin:16px}/* rc-one (/L 15:38): tree sidebar re-carded to the shared panel idiom — 16px inset + border + radius, matching the Messages panel box; was flush edge-to-edge */.mail-account{padding:18px 14px 10px}.mail-account label{font-size:9px;color:#9299a5;letter-spacing:1px;display:block;margin-bottom:7px}.mail-account select{width:100%;height:32px;min-width:0;border:1px solid var(--line);background:#fff;border-radius:5px;padding:5px;color:#586171;font-size:11px}.mail-compose-action{padding:5px 15px 18px}.mail-primary{background:var(--accent);border-color:var(--accent);color:#fff}.mail-primary:hover{background:#3f08b7}.mail-compose-action button{width:100%;border-radius:22px;min-height:40px;box-shadow:0 2px 5px #490aca20;font-weight:550}.mail-compose-action button>span{margin-left:6px}.mail-folder-scroll{overflow:auto;flex:1}.mail-folder{display:flex;width:100%;gap:11px;align-items:center;border:0;border-radius:0;background:transparent;min-height:39px;padding:9px 14px 9px calc(18px + var(--folder-depth,0)*10px);text-align:left;color:#7d8592}.mail-folder>.cw-icon{width:17px;height:17px;flex-basis:17px}.mail-folder>span:not(.cw-icon){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-folder b{font-size:10px;font-weight:600}.mail-folder.selected{background:#ece5f8;color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.mail-folder-footer{padding:16px;border-top:1px solid var(--line);font-size:10px;color:#737d8d;display:grid;gap:6px;overflow-wrap:anywhere}.mail-folder-footer small{font-size:9px;color:#969eaa}.mail-message-list{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid var(--line)}.mail-list-toolbar{height:48px;min-height:48px;display:flex;align-items:center;gap:8px;padding:6px 14px;border-bottom:1px solid var(--line)}.mail-list-toolbar strong{font-weight:550;font-size:12px;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mail-list-toolbar>button{border:0;background:transparent;min-height:30px;height:30px;width:30px;flex:0 0 30px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:16px;color:#8993a1;border-radius:6px}.mail-search{display:flex;align-items:center;border-bottom:1px solid var(--line);padding:9px 12px;gap:4px}.mail-search input{width:100%;min-width:0;border:0;background:#f6f8fb;border-radius:5px;min-height:32px;padding:8px 10px;outline-offset:0}.mail-search button{min-height:30px;border:0;padding:4px 8px;color:#929baa}.mail-list-scroll{overflow:auto;flex:1;min-height:0}.mail-message-row{display:flex;align-items:stretch;border-bottom:1px solid #eef0f5;min-width:0;background:#fff}.mail-message-row.selected{background:#f1eafb}.mail-message-row:hover{background:#f7f4fb}.mail-message-row.unread{background:#fafbfe}.mail-message-row.selected.unread{background:#f1eafb}.mail-star{background:transparent;border:0;padding:10px 0 10px 11px;width:26px;flex:0 0 26px;min-height:0;align-self:flex-start;font-size:21px!important;color:#9aa1ad}.mail-star[aria-pressed=true]{color:#cba028}.mail-message-open{display:flex;align-items:flex-start;gap:10px;min-width:0;flex:1;border:0;background:transparent;border-radius:0;padding:14px 12px 14px 7px;text-align:left}.mail-message-open:hover{background:transparent}.mail-avatar{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#e8def6;color:#895fb8;font-size:10px;font-weight:650}.mail-row-copy{min-width:0;flex:1;display:grid;gap:6px}.mail-row-heading{display:flex;gap:8px;align-items:center;min-width:0}.mail-row-heading strong{font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.unread .mail-row-heading strong,.unread .mail-row-subject{font-weight:650;color:#343648}.mail-row-heading time{font-size:9px;white-space:nowrap;color:#99a0ad}.mail-row-subject,.mail-row-snippet{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#666e7c}.mail-row-snippet{color:#9aA1ad;font-size:10px}.mail-attachment-mark{font-size:9px;color:#949aa5}.mail-list-footer{padding:9px 14px;font-size:9px;color:#a0a6b0;border-top:1px solid var(--line)}.mail-load-more{display:block;margin:12px auto;font-size:11px}.mail-empty-copy{font-size:11px;color:#99a1ad;line-height:1.8;margin:0;padding:28px 18px;text-align:center}.mail-reader{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f9fafd}.mail-reader-toolbar{min-height:48px;display:flex;align-items:center;padding:8px 20px;gap:12px;border-bottom:1px solid var(--line);background:#fff}.mail-reader-toolbar h2{font-size:13px;font-weight:550;line-height:1.6;margin:0;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-reader-tools{display:flex;gap:8px}.mail-reader-tools button,.mail-reader-tools select{min-height:29px;font-size:10px;padding:5px 8px;color:#78818f;border:1px solid var(--line);border-radius:5px;background:#fff;max-width:140px}.mail-reader-scroll{flex:1;min-height:0;overflow:auto;padding:20px}.mail-reader-empty{height:100%;min-height:100px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#a3abb7;text-align:center;padding:24px;line-height:1.8}.mail-message-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;min-width:0}.mail-message-card>header{display:flex;gap:10px;align-items:flex-start}.mail-message-card>header>div{flex:1;min-width:0}.mail-message-card>header strong{font-size:11px;font-weight:600;overflow-wrap:anywhere}.mail-message-card>header p{font-size:10px;color:#939ba7;margin:6px 0 0;overflow-wrap:anywhere}.mail-message-card>header time{font-size:9px;color:#a4abb6;max-width:120px;line-height:1.5}.mail-body-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#555f6e;font-size:12px;line-height:1.85;margin:26px 0}.mail-message-card>footer{display:flex;gap:9px;flex-wrap:wrap;align-items:center;border-top:1px solid var(--line);padding-top:14px}.mail-message-card>footer button{min-height:29px;font-size:10px;padding:5px 10px;color:#7c8490}.mail-message-card>footer span{font-size:9px;color:#9aa2ae;line-height:1.6}.mail-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.mail-attachments button{display:flex;align-items:center;gap:10px;text-align:left;max-width:100%;padding:10px;min-width:150px}.mail-attachments button>span:nth-child(2){display:grid;gap:6px;min-width:0}.mail-attachments strong{font-size:10px;overflow-wrap:anywhere}.mail-attachments small{font-size:9px;color:#9aa1ac}.mail-attachments .cw-icon{color:#9e86c2}.mail-compose-form{margin:0 20px 20px;background:#fff;border:1px solid #ded7ec;border-radius:8px;box-shadow:0 3px 15px #42306506;flex:0 1 auto;overflow:auto;min-height:220px}.mail-compose-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid var(--line)}.mail-compose-heading strong{font-size:11px;font-weight:600}.mail-compose-heading button{border:0;min-height:24px;padding:0 6px;color:#9ba2ad}.mail-compose-fields{padding:0 14px}.mail-compose-fields label{display:flex;align-items:center;gap:10px;min-height:35px;border-bottom:1px solid var(--line);font-size:10px;color:#949ca8}.mail-compose-fields label>span{font-size:11px;color:#69717e;overflow-wrap:anywhere}.mail-compose-fields input{flex:1;width:100%;min-width:0;border:0;padding:8px 0;color:#586170;background:transparent;outline-offset:0}.mail-compose-fields details summary{font-size:10px;color:#9584b0;padding:7px 0;cursor:pointer}.mail-compose-fields textarea{display:block;width:100%;border:0;resize:vertical;min-height:110px;padding:14px 0;color:#586170;line-height:1.7;background:transparent}.mail-compose-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid var(--line)}.mail-compose-footer span{margin-right:auto;font-size:9px;color:#a0a6b0}.mail-compose-footer button{min-height:30px;font-size:10px;padding:5px 12px}.mail-status{grid-column:1/-1;display:flex;align-items:center;padding:6px 14px;border-top:1px solid var(--line);font-size:9px;color:#939daa;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;background:#fff}.mail-mobile-folders,.mail-back{display:none!important}body[data-presentation=compact] #host{max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}body[data-presentation=compact] #workspace,#workspace{height:calc(100dvh - var(--hostbar-h));min-height:0}body[data-presentation=compact]{background:#fff}
@media(max-width:1200px){.email-app{grid-template-columns:190px 300px minmax(0,1fr)}.mail-reader-toolbar{padding:8px 12px;flex-wrap:wrap}.mail-reader-tools{margin-left:auto}.mail-reader-scroll{padding:14px}.mail-compose-form{margin:0 14px 14px}.mail-message-card{padding:15px}.mail-message-card>header time{font-size:8px}}
@media(max-width:980px){.email-app{grid-template-columns:285px minmax(0,1fr)}.mail-folder-rail{display:none}.mail-folder-rail.mobile-open{display:flex;position:absolute;z-index:5;left:0;top:0;bottom:30px;width:230px;margin:0;border:0;border-radius:0;box-shadow:8px 0 25px #34304420}.mail-mobile-folders{display:inline-flex!important;font-size:10px!important;border:1px solid var(--line)!important}.mail-reader-tools{width:100%;justify-content:flex-end}.module-layout{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:720px){.dt-mount.r-multi-llm,.compact.dt-mount{grid-template-columns:50px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.dt-mount.rail-expanded,.compact.dt-mount.rail-expanded{grid-template-columns:138px minmax(0,1fr)}.master-rail{grid-row:auto}.module-toolbar{height:40px;flex-basis:40px;padding:0 10px;gap:6px}.module-toolbar h1{font-size:11px}.module-workspace-control{gap:4px}.module-workspace-control label{display:none}.module-workspace-control select{font-size:10px;max-width:110px;padding:3px 5px}.module-layout{display:flex;flex-direction:column}.module-navigation{flex-direction:row;flex:0 0 auto;padding:8px;border-right:0;border-bottom:1px solid var(--line);max-height:110px}.module-navigation .list-title{display:none}.module-nav-item{font-size:10px;white-space:nowrap}.module-navigation.worker-list{display:flex;grid-template-columns:none;gap:5px}.module-navigation .worker{width:auto;min-width:100px;min-height:46px}.primary-pane{padding:18px 12px}.section-heading h2{font-size:18px}.email-app{grid-template-columns:minmax(0,1fr)}.mail-message-list{grid-column:1;grid-row:1;border-right:0}.mail-reader{display:none;grid-column:1;grid-row:1}.email-app.show-reader .mail-message-list{display:none}.email-app.show-reader .mail-reader{display:flex}.mail-reader-toolbar{min-height:46px;padding:8px 10px;gap:6px}.mail-back{display:inline-flex!important;min-height:25px;font-size:9px!important;padding:4px 6px;border:0;background:transparent;color:var(--accent)}.mail-reader-tools{width:auto;flex-wrap:wrap}.mail-reader-tools button,.mail-reader-tools select{font-size:9px;max-width:110px;padding:4px 6px}.mail-reader-toolbar h2{font-size:11px;white-space:normal}.mail-reader-scroll{padding:10px}.mail-message-card{padding:12px}.mail-message-card>header{flex-wrap:wrap}.mail-message-card>header time{width:100%;max-width:none;margin-left:42px}.mail-body-text{font-size:11px;margin:20px 0}.mail-compose-form{margin:0 10px 10px;min-height:230px}.mail-compose-footer{gap:6px;padding:8px}.mail-compose-footer span{font-size:8px}.mail-compose-footer button{padding:5px 8px;font-size:9px}.mail-status{font-size:8px;padding:6px 10px}.mail-row-heading strong{font-size:11px}.mail-message-open{padding:15px 12px 15px 7px}.mail-folder-rail.mobile-open{max-width:100%}.rail-expanded .mail-compose-footer{flex-wrap:wrap}.rail-expanded .mail-compose-footer span{width:100%}.rail-expanded .mail-reader-tools{width:100%}}

.email-app.composing-new .mail-reader-scroll{display:none}.email-app.composing-new .mail-compose-form{margin-top:20px;flex:1;display:flex;flex-direction:column}.email-app.composing-new .mail-compose-fields{display:flex;flex-direction:column;flex:1;min-height:180px}.email-app.composing-new .mail-compose-fields textarea{flex:1}.mail-compose-fields input[readonly]{color:#8b8297;background:#faf8fd}
@media(max-width:720px){.email-app.composing-new .mail-compose-form{margin-top:10px}}

/* Native narrow windows keep both host controls reachable without clipping the workspace. */
@media(max-width:420px){.hostbar{padding:0 10px;gap:8px}.wordmark{font-size:14px;gap:5px}.hostbar nav{gap:8px;flex-shrink:0}.hostbar nav a{font-size:0}.hostbar nav a::after{content:'↗';font-size:15px}.hostbar button{padding:5px 7px;font-size:10px}}


/* B003: a single status-bar Options menu replaces top-level workspace/mount controls. */
.mail-reader:has(.mail-reader-empty):not(:has(.mail-compose-form)) .mail-reader-toolbar{display:none}
.hostbar{justify-content:center}.email-app{grid-template-rows:minmax(0,1fr) 34px}
.mail-status{overflow:visible;position:relative;justify-content:space-between;gap:10px;padding:0 12px}
.mail-status-text,.workspace-status>[role=status]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.workspace-status{min-height:34px;padding:0 12px}.status-options{position:relative;flex:0 0 auto;white-space:normal}
.status-options summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;color:#778092;font-size:11px;min-height:32px;padding:4px 7px;border-radius:5px}
.status-options summary::-webkit-details-marker{display:none}.status-options summary:hover{background:#eee9f7;color:var(--accent)}
.status-options summary:focus-visible{outline:2px solid #9772ee;outline-offset:0}.status-options summary .cw-icon{width:15px;height:15px;flex-basis:15px}
.status-options-panel{position:absolute;right:0;bottom:calc(100% + 7px);z-index:30;width:240px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;display:grid;gap:6px;padding:12px;background:#fff;border:1px solid #e3dcef;border-radius:9px;box-shadow:0 8px 32px #34245322;color:var(--text);text-align:left}
.status-options-panel label{display:grid;gap:7px;font-size:11px;color:#7b8290;margin-bottom:5px}.status-options-panel select{display:block;width:100%;min-width:0;min-height:34px;border:1px solid var(--line);border-radius:5px;background:#fff;padding:6px 8px;color:var(--text);font-size:12px}
.status-options-panel a,.status-options-panel button{display:flex;align-items:center;width:100%;min-height:34px;padding:7px 9px;text-align:left;font-size:12px;border:0;border-radius:5px;background:transparent;color:#605471;text-decoration:none}
.status-options-panel a:hover,.status-options-panel button:hover{background:var(--accent-soft)}
@media(max-width:980px){.mail-folder-rail.mobile-open{bottom:34px}}
@media(max-width:420px){.status-options summary{font-size:10px}.mail-status,.workspace-status{padding:0 8px}}

/* B004: indeterminate network activity, driven only by pending requests. */
.network-progress{position:fixed;inset:0 0 auto;height:3px;z-index:10000;overflow:hidden;background:#8cffd533;pointer-events:none}
.network-progress::after{content:'';display:block;height:100%;width:38%;background:#7ef1cf;box-shadow:0 0 5px #7ef1cf;animation:live-request 1.15s ease-in-out infinite}
@keyframes live-request{from{transform:translateX(-110%)}to{transform:translateX(370%)}}
@media(prefers-reduced-motion:reduce){.network-progress::after{animation:none;width:100%;opacity:.85}}

/* B005: visible totals, folder hierarchy and keyboard/pointer pane separators. */
.mail-folder-heading{display:flex;align-items:center;justify-content:space-between;padding:0 14px 6px;font-size:9px;letter-spacing:1px;color:#8993a1}
.mail-folder-heading button{border:0;background:transparent;min-height:26px;padding:2px 5px;font-size:17px}
.mail-folder-row{display:flex;align-items:center;padding-left:calc(var(--folder-depth,0)*13px);position:relative}
.mail-folder-row:has(.selected){background:#ece5f8;box-shadow:inset 3px 0 var(--accent)}
.mail-folder-row .mail-folder{min-width:0;flex:1;padding:9px 12px 9px 3px;gap:9px;box-shadow:none}
.mail-folder-toggle,.mail-folder-toggle-space{width:18px;flex:0 0 18px}.mail-folder-toggle{border:0;background:transparent;padding:0;min-height:30px;color:#858397}
.mail-folder .mail-folder-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:22px;height:21px;padding:0 6px;border-radius:7px;background:#e9edf3;color:#657184;font-size:10px;font-variant-numeric:tabular-nums}
.mail-folder.selected .mail-folder-count{background:#dcd0f4;color:#4b0ad2}.mail-folder.mail-drop-target{background:#d9f5ec;outline:2px solid #42b693;outline-offset:-2px;color:#226651}
.mail-new-folder{display:grid;gap:7px;padding:5px 12px 14px}.mail-new-folder input,.mail-new-folder select{width:100%;min-width:0;padding:7px;border:1px solid var(--line);border-radius:5px;background:white}.mail-new-folder>div{display:flex;gap:6px;justify-content:flex-end}.mail-new-folder button{min-height:28px;padding:4px 8px;font-size:10px}
.mail-separator{position:absolute;top:0;bottom:34px;width:7px;margin-left:-3px;z-index:8;cursor:col-resize;touch-action:none;outline:none}
.mail-separator::after{content:'';position:absolute;top:0;bottom:0;left:3px;width:1px;background:#e2e5ed;transition:background .15s,width .15s}
.mail-separator:hover::after,.mail-separator:focus-visible::after,.resizing .mail-separator::after{width:3px;left:2px;background:#9872e3}
.email-app.resizing{cursor:col-resize;user-select:none}.mail-message-row[draggable=true]{cursor:grab}
@media(min-width:981px){.email-app{grid-template-columns:var(--mail-folders-width,220px) var(--mail-list-width,350px) minmax(0,1fr)}}
@media(min-width:721px) and (max-width:980px){.email-app{grid-template-columns:var(--mail-list-width,285px) minmax(0,1fr)}.mail-separator[data-resize=folders]{display:none}}
@media(max-width:720px){.mail-separator{display:none}}

/* B006: quiet server status, mailbox options and signature preview. */
.mail-watch-status{min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;color:#39816d;font-variant-numeric:tabular-nums}.mail-watch-status.error{color:#a15b2c}
.mail-watch-options{display:grid;gap:5px;border-top:1px solid var(--line);margin-top:6px;padding-top:12px}.mail-watch-options>strong{font-size:12px;color:var(--text)}.mail-monitor-copy{margin:0 0 5px;font-size:10px;color:var(--muted)}.mail-watch-options>small{font-size:10px;color:var(--muted);line-height:1.6;white-space:normal;padding:5px 2px}
.status-options-panel .mail-check-option,.mail-signature-dialog .mail-check-option{display:flex;align-items:center;gap:9px;font-size:12px;margin:5px 0;color:var(--text)}.mail-check-option input{accent-color:var(--accent);width:15px;height:15px;flex:0 0 15px;margin:0}
.mail-notices{position:fixed;right:18px;bottom:47px;width:360px;max-width:calc(100vw - 24px);display:grid;gap:10px;z-index:80;pointer-events:none}.mail-notice{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid #e3dcef;border-left:3px solid var(--accent);border-radius:9px;box-shadow:0 8px 28px #34245320;padding:16px;pointer-events:auto}.mail-notice>div{flex:1;min-width:0}.mail-notice strong{font-size:13px}.mail-notice p{font-size:12px;line-height:1.6;color:#737b89;margin:7px 0;overflow-wrap:anywhere}.mail-notice button{font-size:11px;min-height:28px;padding:4px 9px}.mail-notice .mail-dismiss{border:0;padding:0;min-width:24px;min-height:24px;color:#858d9a;font-size:19px}
.mail-signature-dialog{width:560px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 36px);padding:24px;border:1px solid #dfd7ed;border-radius:14px;color:var(--text);box-shadow:0 16px 70px #24133c30;overflow:auto}.mail-signature-dialog::backdrop{background:#31234b38}.mail-signature-dialog form{display:grid;gap:16px}.mail-signature-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.mail-signature-dialog header>div{min-width:0}.mail-signature-dialog header small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.mail-signature-dialog h2{font-size:21px;font-weight:600;margin:7px 0 0}.mail-signature-dialog header button{border:0;font-size:22px}.mail-signature-dialog label{display:grid;gap:8px;font-size:12px}.mail-signature-dialog textarea{width:100%;min-height:120px;resize:vertical;line-height:1.6;border:1px solid #dfd7ed;border-radius:8px;padding:12px;font-size:13px;color:var(--text)}.signature-preview{padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:8px}.signature-preview small{font-size:9px;letter-spacing:1px;color:var(--muted)}.signature-preview pre{font:13px/1.7 var(--font);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.signature-help{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.signature-feedback{margin:0;font-size:12px;color:#a15b2c}.signature-feedback:empty{display:none}.mail-signature-dialog footer{display:flex;gap:9px;justify-content:flex-end;padding-top:10px;border-top:1px solid var(--line)}.mail-signature-dialog footer button{font-size:12px}
@media(max-width:720px){.mail-watch-status{max-width:44%}.mail-signature-dialog{padding:18px}.mail-notices{right:12px}.mail-signature-dialog h2{font-size:19px}}

/* B008: original published Markdown with a compact source strip. */
.published-context{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.context-source{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--soft)}.context-source strong{font-size:13px}.context-source span,.context-source small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.context-source button{margin-left:auto;font-size:11px;min-height:30px}.context-document{font:13px/1.85 var(--font);white-space:pre-wrap;overflow-wrap:anywhere;padding:22px;margin:0}.document-tabs{flex-wrap:wrap}
@media(max-width:720px){.context-document{padding:14px;font-size:12px}.context-source{gap:8px;padding:12px}.context-source span{width:100%}}

/* B009: centered message stars, attachment chips and centralized Settings. */
.email-app .mail-star{width:32px;flex:0 0 32px;height:32px;min-height:32px;padding:0;margin:14px 0 0 5px;display:grid;place-items:center;line-height:1;font-size:21px;align-self:flex-start;border:0;background:transparent;border-radius:6px}
.mail-star:hover{background:var(--accent-soft)}.mail-message-open{padding-left:4px}
.mail-compose-attachments{padding:10px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line)}.mail-compose-attachments>button{display:flex;align-items:center;gap:7px;font-size:11px;padding:6px 10px;min-height:32px}.mail-compose-attachments>small{font-size:10px;color:var(--muted)}.mail-compose-attachments .cw-icon{width:16px;height:16px;flex-basis:16px}.mail-attachment-chips{display:flex;flex-wrap:wrap;gap:6px;width:100%;min-width:0}.mail-attachment-chips:empty{display:none}.mail-attachment-chip{display:flex;align-items:center;gap:8px;max-width:100%;border:1px solid #e0d7ef;border-radius:7px;background:#faf8fd;padding:4px 7px 4px 10px;font-size:11px}.mail-attachment-chip>span{min-width:0;overflow-wrap:anywhere}.mail-attachment-chip small{color:var(--muted);white-space:nowrap}.mail-attachment-chip button{flex:0 0 26px;min-height:26px;padding:0;border:0;background:transparent;font-size:18px}
.settings-card{max-width:760px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:22px;min-width:0}.workspace-settings{display:grid;gap:18px}.workspace-settings label{display:grid;gap:8px;font-size:12px}.workspace-settings select{width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff}.workspace-settings>a,.workspace-settings>button{justify-self:start;font-size:12px}.settings-card .mail-watch-options{border:0;padding:0;margin:0;gap:14px}.settings-card .mail-watch-options>button{justify-self:start;font-size:12px;min-height:36px}.settings-card .mail-check-option{display:flex;align-items:center;gap:10px;font-size:13px}.settings-card h2{font-size:22px;margin:0}.settings-card p{font-size:13px;line-height:1.7;color:var(--muted)}.settings-card .connection{min-width:0;overflow-wrap:anywhere}.settings-card .mail-watch-options>small{font-size:12px}.rail-item[data-tab=settings]{margin-top:14px}
@media(max-width:720px){.settings-card{padding:16px}.mail-compose-attachments{padding:8px 10px}.module-navigation{overflow:auto}.mail-star{margin-top:15px}.mail-status{gap:6px}.mail-watch-status{max-width:50%}}

/* B009: the worker list, central work surface and contextual inspector share one mount. */
.dt-mount[data-module=context] .primary-pane{padding:0;overflow:hidden}.worker-workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;height:100%;min-height:0}.worker-main{min-width:0;min-height:0;overflow:auto}.worker-profile-heading{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--line)}.worker-profile-heading h2{font-size:19px;margin:0 0 5px}.worker-profile-heading small{font-size:11px;color:var(--muted)}.worker-profile-heading>button{margin-left:auto;font-size:11px}.worker-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding:0 18px}.worker-tabs button{border:0;border-radius:0;background:transparent;min-height:43px;font-size:12px;color:var(--muted)}.worker-tabs button[aria-pressed=true]{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.worker-tab-content{padding:22px;min-width:0}.worker-inspector{padding:22px 18px;border-left:1px solid var(--line);background:#fcfcff;min-width:0;min-height:0;overflow:auto}.worker-inspector h3{font-size:13px;margin:0 0 22px}.worker-inspector h4{font-size:12px;margin:0 0 8px}.worker-inspector section{margin-bottom:24px}.worker-inspector p{font-size:11px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.worker-inspector button{display:flex;align-items:center;gap:7px;font-size:11px;width:100%;text-align:left;margin:5px 0;padding:7px 8px;min-height:32px}.worker-inspector .cw-icon{width:14px;height:14px;flex-basis:14px}.task-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.task-actions button{font-size:11px}.task-output{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--font)}.task-editor input,.task-editor select{min-width:0}.task-editor .field-row{grid-template-columns:1fr 1fr}.worker-tab-content>p{font-size:12px;color:var(--muted)}
@media(max-width:1200px){.worker-workspace{grid-template-columns:minmax(0,1fr) 210px}.worker-inspector{padding:18px 12px}.worker-tab-content{padding:18px}}
@media(max-width:980px){.worker-workspace{grid-template-columns:minmax(0,1fr);height:auto;min-height:100%}.dt-mount[data-module=context] .primary-pane{overflow:auto}.worker-inspector{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:14px}.worker-inspector>h3{grid-column:1/-1;margin:0}.worker-inspector section{margin:0}.worker-tab-content{padding:16px}.worker-profile-heading{padding:16px}.worker-tab-content .field-row{display:flex;flex-direction:column}}
@media(max-width:420px){.worker-inspector{grid-template-columns:minmax(0,1fr)}.worker-profile-heading{flex-wrap:wrap}.worker-profile-heading .avatar{width:32px;height:32px;flex-basis:32px}.worker-profile-heading h2{font-size:16px}.worker-tabs{padding:0 8px;gap:0}.worker-tabs button{padding:8px;font-size:11px}}

/* B010: existing TESIA tool catalog and CRM, mounted into Settings and CRM. */
.dt-mount[data-module=crm] .module-layout{grid-template-columns:minmax(0,1fr)}.connector-facts{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}.connector-facts button{margin-left:auto;font-size:11px}.mcp-tool-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;margin:22px 0}.mcp-tool-layout>aside{min-width:0}.mcp-tool-layout>aside>input{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px}.mcp-tool-list{display:grid;gap:4px;margin-top:10px;max-height:520px;overflow:auto}.mcp-tool-list button{display:grid;gap:5px;text-align:left;padding:10px;border:0;background:var(--soft);min-width:0}.mcp-tool-list strong{font-size:12px;font-weight:550}.mcp-tool-list small{font-size:10px;line-height:1.6;color:var(--muted)}.mcp-tool-list .selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}.mcp-tool-layout>div{min-width:0}.mcp-tool-layout h3{font-size:16px}.mcp-tool-layout p{font-size:12px;line-height:1.7}.mcp-tool-layout pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.mcp-tool-layout form{display:grid;gap:14px}.mcp-tool-layout label{display:grid;gap:8px;font-size:12px}.mcp-tool-layout textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:7px;font:12px/1.7 monospace;resize:vertical}.mcp-tool-layout form>button{justify-self:start}.connector-loading{font-size:11px;color:var(--accent)}.crm-counts{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.crm-counts>div{display:grid;gap:7px;padding:15px 20px;background:var(--soft);border:1px solid var(--line);border-radius:8px;min-width:110px}.crm-counts strong{font-size:22px}.crm-counts span{font-size:11px;color:var(--muted)}.crm-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.crm-search label{display:grid;gap:7px;font-size:11px;flex:1;min-width:160px}.crm-search input,.crm-search select{width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff}.crm-search button{font-size:12px;min-height:38px}.crm-record-layout{display:grid;grid-template-columns:minmax(230px,35%) minmax(0,1fr);border:1px solid var(--line);border-radius:9px;overflow:hidden;min-height:330px}.crm-record-layout>section{padding:16px;min-width:0;max-height:700px;overflow:auto}.crm-record-layout>section+section{border-left:1px solid var(--line)}.crm-record{display:grid;gap:6px;text-align:left;width:100%;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:14px 10px;background:#fff}.crm-record strong{font-size:12px;overflow-wrap:anywhere}.crm-record span,.crm-record small{font-size:11px;color:var(--muted)}.crm-record.selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}.crm-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.crm-fields dt{font-size:10px;color:var(--muted);margin-bottom:5px}.crm-fields dd{margin:0;font-size:12px;overflow-wrap:anywhere}.task-tool-receipts{margin-top:14px;font-size:11px}.task-tool-receipts p{font-size:11px}.tesia-service-view>.error{padding:10px;border:1px solid #e9c1ba;border-radius:6px;font-size:12px}
@media(max-width:980px){.mcp-tool-layout{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:720px){.mcp-tool-layout,.crm-record-layout{grid-template-columns:minmax(0,1fr)}.mcp-tool-list{max-height:220px}.crm-record-layout>section+section{border-left:0;border-top:1px solid var(--line)}.crm-fields{grid-template-columns:minmax(0,1fr)}.crm-counts>div{min-width:90px;padding:12px;flex:1}.crm-counts strong{font-size:19px}.crm-record-layout>section{max-height:460px}}

.crm-search input,.crm-search select,.crm-search button,.task-editor input:not([type=hidden]),.task-editor select{height:40px;box-sizing:border-box}

/* B013: header owns rail toggle; settings stays at the rail bottom. */
.hostbar{justify-content:center;gap:10px}.hostbar .host-rail-toggle{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:0;background:transparent;flex:0 0 36px}.master-rail{overflow:hidden;gap:12px;min-height:0}.rail-categories{overflow-y:auto;min-height:0;flex:0 1 auto;}.master-rail .rail-settings{margin-top:auto;flex:0 0 42px}.hostbar .wordmark{min-width:0}.hostbar .wordmark:hover{text-decoration:none}
@media(max-width:720px){.hostbar{padding:0 8px;gap:6px}.hostbar .wordmark{font-size:16px}.master-rail{gap:8px}.rail-categories{gap:7px}}

/* B014: contacts occupy the workspace; reports own the pipeline graphs. */
.dt-mount[data-module=reports] .module-layout,.dt-mount[data-module=sites] .module-layout{grid-template-columns:minmax(0,1fr)}
.dt-mount[data-module=crm] .primary-pane{padding:0;overflow:hidden;display:flex;min-height:0}
.tesia-crm-slot{flex:1;min-width:0;min-height:0}.crm-client{height:100%;display:flex;flex-direction:column;min-height:0}
.crm-client .crm-toolbar{margin:0;padding:9px 12px;gap:8px;min-height:54px;flex-wrap:nowrap;border-bottom:1px solid var(--line)}
.crm-client .crm-toolbar select{width:220px;flex:0 1 220px}.crm-client .crm-toolbar input{flex:1;width:0}.crm-client .crm-toolbar button{flex:none;padding:6px 12px}
.crm-client .crm-toolbar input,.crm-client .crm-toolbar select,.crm-client .crm-toolbar button{height:36px;min-height:36px;font-size:12px}
.crm-client .crm-record-layout{flex:1;min-height:0;grid-template-columns:minmax(260px,32%) minmax(0,1fr);border:0;border-radius:0}
.crm-client .crm-record-layout>section{max-height:none;padding:0;overflow:auto}.crm-client .crm-record-layout>section+section{padding:18px 22px}
.crm-client .list-heading{position:sticky;top:0;background:#fff;z-index:1;margin:0;min-height:42px;padding:9px 14px;border-bottom:1px solid var(--line);display:flex;flex-direction:row;align-items:center;gap:8px}
.crm-client .list-heading h3{margin:0;font-size:12px}.crm-client .list-heading span{font-size:10px;color:var(--muted)}
.crm-client .crm-record{padding:12px 14px;gap:4px;min-height:68px}.crm-client .crm-record strong{font-size:13px}.crm-client .crm-record span,.crm-client .crm-record small{font-size:11px}
.crm-client .empty{border:0;margin:20px 0;padding:18px}.crm-client>.error{margin:0;padding:8px 12px;flex:none;border-radius:0}
.crm-client .crm-fields{margin:14px 0;gap:14px 24px}.crm-client .crm-fields dt{font-size:11px}.crm-client .crm-fields dd{font-size:13px;line-height:1.5}
.dt-mount[data-module=reports] .primary-pane{padding:16px;background:#f3f7fa}
/* /L: the pipeline page must scroll — the grid rows clip without this chain */
.dt-mount[data-module=reports] .workspace-body,.dt-mount[data-module=reports] .workspace-content,.dt-mount[data-module=reports] .primary-pane,.dt-mount[data-module=reports] .pipeline-report{min-height:0}
  .dt-mount[data-module=reports] .primary-pane{overflow-y:auto !important;overflow-x:hidden !important;max-height:100%;}  .dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar{width:10px}
  .dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar-track{background:transparent}
  .dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--th-text,#1d1c1d) 40%,transparent);border-radius:5px}
  .dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar{width:10px}
.dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--th-text,#1d1c1d) 40%,transparent);border-radius:5px}
.dt-mount[data-module=reports] .primary-pane::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}.pipeline-report .section-heading{margin-bottom:10px;align-items:center}.pipeline-report h2{font-size:20px;margin:3px 0}.pipeline-report .section-heading p{margin:4px 0;font-size:12px}
.pipeline-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:12px}.pipeline-summary strong{font-size:12px;color:var(--text)}
.pipeline-density{display:grid;gap:4px;font-size:10px;color:var(--muted);margin-right:14px}.pipeline-density span{justify-self:end;font-variant-numeric:tabular-nums}.pipeline-density input{width:120px;accent-color:var(--accent)}
.pipeline-grid{display:grid;grid-template-columns:repeat(var(--pipeline-columns,4),minmax(0,1fr));gap:8px;align-items:stretch}.pipeline-card{border:1px solid #dce3eb;background:#fff;border-radius:8px;padding:12px 9px;min-width:0;box-shadow:0 1px 3px #17283c08}
.pipeline-card header{display:flex;gap:7px;align-items:center;margin-bottom:12px;min-height:26px}.pipeline-symbol{display:grid;place-items:center;background:#eff3fa;border-radius:50%;width:25px;height:25px;flex:none;font-size:12px;font-weight:600}.pipeline-card h3{font-size:11px;text-transform:uppercase;line-height:1.5;margin:0;flex:1;min-width:0}.pipeline-total{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.pipeline-stages{display:grid;gap:3px}.pipeline-stage{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 27px;gap:5px;align-items:center;padding:0 2px;border:0;background:transparent;min-height:24px;border-radius:3px;text-align:left;font-size:11px;width:100%}.pipeline-stage:hover{background:#eef4fa}.stage-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.stage-track{height:18px;border-left:1px solid #a5b3c0;display:flex;align-items:center}.stage-bar{display:block;height:18px;border-radius:0 12px 12px 0;min-width:1px;max-width:100%}.stage-count{font-size:10px;font-variant-numeric:tabular-nums}.pipeline-pending,.pipeline-card .error{font-size:11px;line-height:1.6;min-height:45px;color:var(--muted)}.pipeline-card .error{color:#a24c39}.pipeline-card>button{font-size:11px}
.site-links{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.site-links a{padding:10px 14px;border:1px solid var(--line);border-radius:7px;font-size:12px}.site-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.site-stats article{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:8px}.site-stats strong{font-size:25px}.site-stats span{font-size:12px;color:var(--muted)}
@media(max-width:720px){.crm-client .crm-toolbar{flex-wrap:wrap;padding:8px}.crm-client .crm-toolbar select{width:auto;flex:1 1 100%}.crm-client .crm-toolbar input{min-width:60px}.crm-client .crm-record-layout{display:flex;flex-direction:column}.crm-client .crm-record-layout>section{flex:1;min-height:0}.crm-client .crm-record-layout>section+section{display:none;padding:14px}.crm-client:has(.crm-record.selected) .crm-record-layout>section:first-child{display:none}.crm-client:has(.crm-record.selected) .crm-record-layout>section+section{display:block}.dt-mount[data-module=reports] .primary-pane{padding:10px}.pipeline-grid{grid-template-columns:minmax(0,1fr)}.pipeline-report .section-heading{gap:8px;flex-wrap:wrap}.pipeline-summary{flex-wrap:wrap}.pipeline-stage{min-height:28px;font-size:12px}.pipeline-card h3{font-size:12px}}

.contact-heading{padding-bottom:12px}.contact-person{display:flex;gap:12px;align-items:center}.contact-person h2{font-size:20px;margin:0 0 5px}.contact-person p,.contact-owner{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.contact-owner{margin-top:10px}.contact-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin:0 0 14px}.contact-tabs button{border:0;border-radius:0;background:transparent;padding:8px 2px;font-size:12px;color:var(--muted)}.contact-tabs button[aria-selected=true]{color:var(--accent);box-shadow:0 2px var(--accent)}.contact-field-group h4{font-size:11px;text-transform:uppercase;color:var(--muted);letter-spacing:.6px;margin:20px 0 10px}.contact-field-group{border-bottom:1px solid var(--line);padding-bottom:10px}.contact-technical{font-size:11px;margin-top:18px;color:var(--muted)}.contact-loading{font-size:11px;color:var(--accent);margin:8px 0}.contact-back{display:none}.contact-activity article{padding:14px 0;border-bottom:1px solid var(--line)}.contact-activity header{display:flex;gap:12px;justify-content:space-between;font-size:12px;flex-wrap:wrap}.contact-activity time{font-size:10px;color:var(--muted)}.contact-activity p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.contact-files article{display:grid;gap:8px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.contact-files span,.contact-files small{font-size:11px;color:var(--muted)}
@media(max-width:720px){.contact-back{display:inline-flex;margin-bottom:12px;font-size:11px}.contact-person h2{font-size:17px}.contact-tabs{gap:12px}.contact-tabs button{font-size:11px}}

.contact-owner{display:flex;align-items:center;justify-content:space-between;gap:8px}.contact-owner button{font-size:11px;min-height:30px;padding:5px 9px}.contact-drawer{position:fixed;inset:var(--hostbar-h) 0 0 auto;margin:0;height:calc(100dvh - var(--hostbar-h));max-height:none;width:min(680px,100vw);max-width:100vw;border:0;border-left:1px solid var(--line);padding:24px;color:var(--text);box-shadow:-12px 0 50px #12243b25;overflow:auto}.contact-drawer::backdrop{background:#283d5660}.contact-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.contact-drawer h2{font-size:20px}.contact-drawer .crm-fields{grid-template-columns:1fr 1fr}.contact-drawer .crm-fields dd{padding:9px 10px;border:1px solid var(--line);border-radius:6px;min-height:36px}.contact-drawer .crm-fields dt{margin-bottom:7px}
@media(max-width:480px){.contact-drawer{padding:16px}.contact-drawer .crm-fields{grid-template-columns:1fr}}

/* B015: panel-local activity; overlays consume no layout space. */
:where(.loading-panel){position:relative}
.panel-progress{display:block;position:absolute;inset:0 0 auto;height:3px;z-index:8;overflow:hidden;pointer-events:none;background:#e6dbfb;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
.panel-progress::after{content:"";display:block;position:absolute;inset:0 auto 0 0;width:38%;background:var(--accent,#5100db);animation:panel-loading-sweep 1.25s linear infinite}
@keyframes panel-loading-sweep{from{transform:translateX(-105%)}to{transform:translateX(365%)}}
@media(prefers-reduced-motion:reduce){.panel-progress::after{animation:none;width:100%;transform:none;opacity:.7}}
.contact-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.contact-source-link{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;font-size:11px;white-space:nowrap;background:#fff}.contact-source-link:hover{background:var(--accent-soft)}
@media(max-width:720px){.contact-owner{flex-wrap:wrap}}

/* B016: compact contacts; ownership stays in the selected record. */
.crm-client .crm-record{min-height:48px;padding:6px 14px;gap:2px}.crm-client .crm-record strong{line-height:18px}.crm-client .crm-record span{line-height:15px}

/* B017: compact file explorer; independent scroll, source and rendered preview. */
.dt-mount[data-module=files] .module-layout{grid-template-columns:minmax(0,1fr)}
.dt-mount[data-module=files] .primary-pane{padding:0;overflow:hidden;min-height:0}
.files-slot,.files-module-host{height:100%;min-height:0;min-width:0}
.files-explorer{height:100%;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(170px,var(--files-tree,230px)) 5px minmax(0,var(--files-content,48fr)) 5px minmax(0,var(--files-preview,52fr));position:relative;overflow:hidden}
.files-tree-pane,.files-content-pane,.files-preview-pane{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:white}
.files-tree-pane{background:#f8f9fc}.files-pane-header{height:44px;min-height:44px;display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid var(--line);overflow:hidden}
.files-pane-header strong{font-size:12px;font-weight:600;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.files-pane-header button{font-size:11px;min-height:28px;height:28px;padding:3px 8px;flex:none;border-radius:5px}.files-kind{font-size:10px;color:var(--muted)}
.files-worker-label{display:grid;gap:6px;margin:12px 12px 8px;font-size:10px;color:var(--muted)}.files-worker-label select{height:32px;width:100%;min-width:0;border:1px solid var(--line);border-radius:5px;background:white;font-size:12px;padding:0 6px;color:var(--text)}
.files-filter{min-width:0;margin:0 12px 10px;height:32px;flex:none;width:calc(100% - 24px);padding:0 8px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:12px}
.files-tree{overflow:auto;flex:1;min-height:0;padding:4px 0}.files-tree ul{list-style:none;margin:0;padding:0}.files-tree .file-tree-row{display:flex;align-items:center;gap:5px;width:100%;min-height:32px;height:32px;border:0;border-radius:0;text-align:left;background:transparent;padding:4px 8px 4px calc(7px + var(--depth)*14px);font-size:12px;color:#4b5263}
.file-tree-row>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.file-tree-row .cw-icon{width:15px;height:15px;flex-basis:15px;color:#8692a5}.file-chevron{width:12px;flex:none;font-size:15px;text-align:center}.files-tree .file-tree-row:hover{background:#efedf6}.files-tree .file-tree-row.selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent);color:var(--accent)}.file-tree-row.selected .cw-icon{color:var(--accent)}
.files-tree-footer{border-top:1px solid var(--line);padding:10px 12px;display:grid;gap:9px;font-size:10px;color:var(--muted)}.files-tree-footer button{justify-self:start;min-height:28px;padding:4px 8px;font-size:11px;border-radius:5px}
.files-file-meta{height:34px;min-height:34px;padding:8px 12px;display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:10px;color:var(--muted);border-bottom:1px solid var(--line);overflow:hidden;white-space:nowrap}.files-file-meta span{flex:none}
.files-source,.files-preview{flex:1;min-height:0;min-width:0;overflow:auto;position:relative}.files-source>pre,.files-preview>pre{font:12px/1.8 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;margin:0;tab-size:2;color:#465068}.files-source{background:#fcfcfe}.files-preview>iframe{border:0;width:100%;height:100%;display:block;background:white}.files-preview:has(>img){display:flex;align-items:center;justify-content:center;background:#f3f4f8;padding:16px}.files-preview>img{max-width:100%;max-height:100%;object-fit:contain}
.files-markdown{padding:20px 24px;font-size:13px;line-height:1.75;overflow-wrap:anywhere}.files-markdown h1{font-size:24px;margin:0 0 20px}.files-markdown h2{font-size:18px;margin:22px 0 12px}.files-markdown h3{font-size:15px}.files-markdown p{margin:0 0 8px}.files-markdown br{display:block;content:'';margin:6px 0}.files-markdown pre{white-space:pre-wrap;background:#f4f5f9;padding:12px;border-radius:6px}.files-markdown code{font-size:12px}.file-binary,.files-empty{padding:20px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.file-binary pre{font-size:11px;white-space:pre-wrap;color:#465068;line-height:1.8}
.files-splitter{background:var(--line);cursor:col-resize;touch-action:none;z-index:2;outline:none}.files-splitter:hover,.files-splitter:focus-visible{background:#a88ae8}.files-notice{position:absolute;bottom:0;left:0;right:0;background:#fff5ec;color:#963d28;border-top:1px solid #efcfb7;padding:10px 14px;font-size:12px;z-index:9}
.files-explorer.writerz-only{grid-template-columns:minmax(170px,var(--files-tree,230px)) 5px minmax(0,1fr)}
.files-explorer.writerz-only .files-content-pane,.files-explorer.writerz-only .files-splitter[data-split=content]{display:none}
.files-explorer.writerz-only .files-preview-pane{grid-column:3;display:flex}
.files-explorer.writerz-only .files-preview{overflow:hidden}
.files-explorer.writerz-only .files-preview .writerz-frame{width:100%;height:100%;min-height:0;border:0;border-radius:0}
.files-mobile-tabs{display:none}
@media(max-width:1000px){.files-explorer{grid-template-columns:minmax(160px,190px) 5px minmax(0,1fr) 5px minmax(0,1fr)}.files-pane-header{padding:0 8px;gap:5px}.files-pane-header button{padding:3px 5px}.files-markdown{padding:16px}.files-splitter[data-split=tree]{pointer-events:none}}
@media(max-width:760px){.files-explorer{display:flex;flex-direction:column}.files-mobile-tabs{display:flex;height:40px;min-height:40px;border-bottom:1px solid var(--line);padding:0 8px;gap:6px}.files-mobile-tabs button{flex:1;font-size:12px;border:0;border-radius:0;background:transparent}.files-mobile-tabs [aria-pressed=true]{box-shadow:inset 0 -2px var(--accent);color:var(--accent)}.files-splitter{display:none}.files-tree-pane,.files-content-pane,.files-preview-pane{flex:1;display:none}.files-explorer[data-mobile-pane=tree] .files-tree-pane,.files-explorer[data-mobile-pane=content] .files-content-pane,.files-explorer[data-mobile-pane=preview] .files-preview-pane{display:flex}.files-tree .file-tree-row{height:38px;min-height:38px}.files-source>pre{padding:12px}.files-pane-header{height:42px;min-height:42px}.files-pane-header button{font-size:10px}.files-file-meta{font-size:9px}.files-tree-footer{padding:10px 12px}}

/* B017: loading edges belong to sections, never inset content margins. */
.dt-mount[data-module=reports] .primary-pane{padding:0}
.pipeline-report{min-height:100%;padding:16px}
.dt-mount[data-module=sites] .primary-pane,.primary-pane:has(> .tesia-connector-slot){padding:0}
.tesia-sites-slot>.tesia-service-view,.tesia-connector-slot>.tesia-service-view{padding:16px;min-height:100%}
.primary-pane:has(> .tesia-connector-slot)>.section-heading,.primary-pane:has(> .tesia-connector-slot)>.connection-grid,.primary-pane:has(> .tesia-connector-slot)>.footnote{margin:22px}
@media(max-width:720px){.pipeline-report{padding:10px}.tesia-sites-slot>.tesia-service-view,.tesia-connector-slot>.tesia-service-view{padding:16px}}

.files-markdown br{display:none}.files-markdown p{margin:0 0 12px}
/* B022 email specification: flush toolbars, compact account tree and fixed rows. */

/* B022 — email layout */
.hostbar{height:52px;min-height:52px;padding:0 16px;gap:12px}.wordmark{white-space:nowrap;font-size:20px}.host-search{display:flex;align-items:center;gap:4px;width:min(740px,calc(100% - 260px));max-width:740px;flex:1;margin:0 auto;padding:0 8px;background:#ffffff20;border-radius:6px;height:36px}.host-search input{border:0;background:transparent;min-width:0;flex:1;color:white;height:34px;font-size:14px}.host-search input::placeholder{color:#eee}.host-search select,.host-search button{border:0;background:transparent;color:white;height:32px;min-height:32px;white-space:nowrap;padding:4px 8px}.host-search option{color:#17213b;background:white}.host-identity{white-space:nowrap;font-size:14px;color:white}.dt-mount.rail-expanded{--rail-width:160px}.master-rail .rail-item{min-height:42px;margin-bottom:6px}.dt-mount.rail-expanded .master-rail{width:160px}.dt-mount.rail-expanded{grid-template-columns:160px minmax(0,1fr)}
.email-app{font:14px/1.4 Arial,sans-serif}.mail-compose-action{height:52px;flex:none;padding:8px 12px;display:flex;align-items:center}.mail-compose-action .mail-primary{min-height:36px;height:36px;font-size:14px;margin:0;padding:6px 14px}.mail-folder-rail{background:#f7f9fd;overflow:hidden}.mail-folder-scroll{padding:0;overflow:auto;flex:1;min-height:0}.mail-account-tree>summary{height:36px;display:flex;align-items:center;padding:0 12px;cursor:pointer}.mail-account-tree>summary strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-account-tree>summary::-webkit-details-marker{display:none}.mail-folder-row{min-height:36px;height:36px}.mail-folder-row .mail-folder{min-height:36px;height:36px;padding:4px 12px 4px 0;font-size:14px}.mail-folder .cw-icon{width:18px;height:18px}.mail-folder-count{font-size:11px;min-width:22px;line-height:22px;padding:0 4px}.mail-folder-actions{display:flex;flex-wrap:wrap;padding:8px;gap:4px}.mail-folder-actions button{font-size:11px;padding:4px 6px;min-height:28px}.mail-sidebar-tags{border-top:1px solid #e3e8f0;padding:12px 8px}.mail-sidebar-tags>header{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 4px;font-size:11px;letter-spacing:1px}.mail-sidebar-tags>header button{min-height:28px;border:0;background:transparent}.mail-tag-filter{display:flex;align-items:center;gap:10px;width:100%;height:34px;min-height:34px;border:0;background:transparent;text-align:left;padding:4px 8px;border-radius:4px;font-size:13px}.mail-tag-filter>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-tag-filter.selected{background:#eee6fc}.mail-tag-dot{width:10px;height:10px;border-radius:50%;flex:none}.mail-tag-filter b{font-size:11px;font-weight:500;background:#e9eef5;border-radius:5px;padding:2px 5px}
.mail-list-toolbar,.mail-reader-toolbar,.mail-compose-heading{height:52px;min-height:52px;max-height:52px;display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid #e1e6ef;background:white;flex:none;position:relative;z-index:4;overflow:visible}.mail-list-toolbar{justify-content:center}.mail-list-toolbar button,.mail-list-toolbar select,.mail-menu>summary,.mail-compose-heading button,.mail-reader-toolbar button{height:34px;min-height:34px;font-size:12px;white-space:nowrap;border:1px solid #e0e6ef;border-radius:5px;padding:4px 8px;color:#17213b;background:white}.mail-list-toolbar button[aria-pressed=true]{background:#eee7ff;border-color:#cbb9fd;color:#480bd4}.mail-list-toolbar select{width:88px;min-width:0}.mail-menu{position:relative;font-size:12px;flex:none}.mail-menu>summary{cursor:pointer;display:flex;align-items:center;list-style:none}.mail-menu>summary::-webkit-details-marker{display:none}.mail-menu-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:60;background:white;border:1px solid #d8e0ec;border-radius:7px;box-shadow:0 8px 24px #1c164125;min-width:220px;max-width:320px;max-height:60vh;overflow:auto;padding:8px;display:grid;gap:4px}.mail-menu-panel strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px}.mail-menu-panel button{width:100%;text-align:left;border:0;background:white}.mail-menu-panel button:hover{background:#f0eaff}.mail-menu-panel label{display:flex;align-items:center;gap:8px;font-size:13px;padding:4px}.mail-menu-panel input[type=search]{width:100%;min-width:0;height:32px;padding:6px;border:1px solid #d8e0ec;border-radius:4px}.mail-menu-panel input[type=checkbox]{width:14px;height:14px}.mail-criteria,.mail-selection-actions{padding:4px 10px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e3e8f0;font-size:12px;flex:none}.mail-criteria span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mail-criteria button{margin-left:auto}.mail-criteria button,.mail-selection-actions button{min-height:26px;height:26px;padding:2px 6px;font-size:12px}
.mail-message-list{min-width:0;overflow:visible;display:flex;flex-direction:column;background:white;border-right:1px solid #e1e6ef}.mail-list-scroll{flex:1;min-height:0;overflow:auto}.mail-message-row{box-sizing:border-box;height:80px;min-height:80px;max-height:80px;display:grid;grid-template-columns:26px 28px minmax(0,1fr);padding:8px 12px 8px 10px;gap:2px;position:relative;border-bottom:1px solid #e2e6ed;background:color-mix(in srgb,var(--tag-tint,#fff) 35%,white);align-items:start}.mail-message-row::before{content:'';position:absolute;top:0;bottom:0;left:0;width:3px;background:var(--tag-accent,transparent)}.mail-message-row.selected{background:linear-gradient(#5917e00c,#5917e00c),color-mix(in srgb,var(--tag-tint,#fff) 35%,white)}.mail-message-row.selected::after{content:'';position:absolute;inset:0;border:1px solid #c8b6f2;pointer-events:none}.mail-select-message{width:14px;height:14px;margin:6px 4px;align-self:start;accent-color:#4d11d3}.mail-message-row .mail-star{position:static;transform:none;top:auto;left:auto;padding:0!important;width:26px;height:26px;min-height:26px;border:0;background:transparent;font-size:21px;line-height:26px;display:block;color:#8796af}.mail-message-row .mail-star[aria-pressed=true]{color:#aa6500}.mail-message-open{display:block;min-height:0;height:64px;padding:0!important;border:0;background:transparent!important;text-align:left;width:100%;overflow:hidden}.mail-row-copy{display:grid;grid-template-rows:20px 20px 24px;min-width:0;width:100%;gap:0}.mail-row-heading{display:flex;min-width:0;align-items:center;gap:8px;line-height:20px}.mail-row-heading strong{font-size:13px;font-weight:500;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#17213b}.mail-message-row.unread .mail-row-heading strong{font-weight:700}.mail-row-heading time{font-size:11px;color:#687a97;flex:none}.mail-row-subject{font-size:13px;line-height:20px;color:var(--tag-subject,#17213b)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400!important}.mail-row-tags{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;padding-right:24px}.mail-tag-chip{display:inline-block;padding:2px 7px;font-size:11px;line-height:17px;border-radius:4px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}.mail-tag-overflow{position:absolute;right:8px;bottom:8px;height:22px;min-height:22px;padding:1px 5px;font-size:11px;border:1px solid #d7ddeb;border-radius:4px;background:white}.mail-list-footer{height:28px;min-height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:11px}.mail-list-footer button{height:24px;min-height:24px;border:0;padding:0 4px;background:transparent}
.mail-reader{overflow:hidden;background:white;min-width:0}.mail-reader-tools{display:flex;gap:4px;overflow:hidden;flex:1}.mail-reader-toolbar button{font-size:12px;padding:4px 6px}.mail-reader-more{margin-left:auto}.mail-reader-more .mail-menu-panel,.mail-compose-more .mail-menu-panel{left:auto;right:0}.mail-reader-scroll{padding:0!important;min-height:0;overflow:auto;background:white}.mail-message-card{padding:0;margin:0;border:0!important;border-radius:0;box-shadow:none}.mail-message-card>h2{font-size:18px;margin:16px 16px 8px;line-height:1.3}.mail-message-card>header{padding:0 16px 12px;gap:10px}.mail-message-card>header strong{font-size:13px}.mail-message-card>header p,.mail-message-card>header time{font-size:12px}.mail-reader-tags{display:flex;gap:6px;margin:0 16px}.mail-body-frame{width:100%;display:block;border:0;min-height:180px}.mail-attachments{padding:12px 16px}.mail-image-permission{padding:8px 16px;font-size:12px;background:#f3f6fa}.mail-image-permission button{min-height:28px;font-size:12px}.mail-reader.mail-composing{display:flex;flex-direction:column}.mail-compose-form{position:relative;inset:auto;display:flex;flex-direction:column;flex:1;min-height:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}.mail-compose-heading{border-radius:0;justify-content:center;padding:8px 12px;gap:6px}.mail-compose-heading .mail-primary{background:#4b0bd9;color:white;border-color:#4b0bd9}.mail-send-group{display:flex}.mail-send-group>.mail-primary{border-radius:5px 0 0 5px}.mail-send-group .mail-menu>summary{background:#4b0bd9;color:white;border-color:#4b0bd9;border-radius:0 5px 5px 0;padding:4px 6px}.mail-compose-fields{padding:0 16px;flex:none;display:block}.mail-compose-fields>label,.mail-compose-fields details label{height:40px;min-height:40px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #edf0f5;font-size:12px;margin:0}.mail-compose-fields input{font-size:13px;height:34px;min-height:0;border:0!important;background:white;padding:5px 0;flex:1;min-width:0;width:auto;box-shadow:none}.mail-compose-fields details{font-size:12px;margin:4px 0}.mail-compose-fields details summary{color:#4b0bd9;cursor:pointer}.mail-rich-wrap{display:flex;flex-direction:column;min-height:0;flex:1;margin:8px 16px;border:1px solid #e0e6ef;border-radius:5px;overflow:hidden}.mail-rich-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:3px;height:44px;min-height:44px;padding:6px;border-bottom:1px solid #e0e6ef;overflow-x:auto;flex:none}.mail-rich-toolbar button,.mail-rich-toolbar select{min-height:30px;height:30px;font-size:13px;padding:3px 7px;border:1px solid #e0e6ef;border-radius:4px;background:white;flex:none}.mail-rich-toolbar button[data-format=bold]{font-weight:700}.mail-rich-toolbar button[data-format=italic]{font-style:italic}.mail-rich-toolbar button[data-format=underline]{text-decoration:underline}.mail-rich-toolbar select[data-format=font]{width:112px}.mail-rich-toolbar select[data-format=size]{width:56px}.mail-color-control{display:flex;align-items:center;gap:3px;font-size:14px}.mail-color-control input{width:24px;height:26px;padding:0;border:0}.mail-rich-wrap .ql-container{font:14px/1.5 Arial,sans-serif;min-height:100px;flex:1;overflow:auto;height:auto}.mail-rich-wrap .ql-editor{padding:12px;min-height:100%;overflow:visible}.mail-rich-wrap .ql-editor p{margin:0 0 10px}.mail-compose-attachments{padding:0 16px;flex:none}.mail-compose-footer{height:30px;min-height:30px;padding:4px 16px;font-size:11px;border:0;flex:none}.mail-compose-more{margin-left:auto}.mail-reply-context{padding:4px 16px;font-size:11px;color:#697991;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-app.compose-expanded{grid-template-columns:0 0 minmax(0,1fr)}.email-app.compose-expanded>.mail-folder-rail,.email-app.compose-expanded>.mail-message-list,.email-app.compose-expanded>.mail-separator{visibility:hidden}.mail-link-dialog,.mail-tool-dialog{width:min(500px,calc(100vw - 32px));border:1px solid #dce2ed;border-radius:10px;padding:20px;color:#17213b}.mail-link-dialog::backdrop,.mail-tool-dialog::backdrop{background:#17213b44}.mail-link-dialog label,.mail-tool-dialog label{display:grid;gap:6px;margin:12px 0;font-size:13px}.mail-tool-dialog input,.mail-tool-dialog select,.mail-tool-dialog textarea,.mail-link-dialog input{padding:8px;width:100%;min-width:0;border:1px solid #d8e0ec;border-radius:4px}.mail-tool-dialog input[type=checkbox]{width:16px}.mail-link-dialog footer,.mail-tool-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.mail-tool-dialog footer button,.mail-link-dialog footer button{padding:7px 12px;border:1px solid #d8e0ec;border-radius:5px;background:white}.mail-tool-dialog [role=status]{font-size:12px;color:#b91c1c}.email-app :focus-visible{outline:2px solid #4b0bd9!important;outline-offset:2px}.mail-status{min-height:24px;height:24px;padding:2px 10px;font-size:10px}
@media(max-width:1450px){.mail-reader-tools button:nth-child(n+4){display:none}.mail-compose-heading .mail-desktop-action{display:none}}
@media(max-width:1100px){.host-search{max-width:600px}.wordmark{font-size:17px}.host-identity{display:none}.dt-mount.rail-expanded{grid-template-columns:56px minmax(0,1fr)}.dt-mount.rail-expanded .master-rail{width:56px}.dt-mount.rail-expanded .rail-label{display:none}.master-rail .rail-item{padding:8px}.mail-ai-action{display:none}.mail-list-toolbar{gap:4px;padding:8px}.mail-list-toolbar button,.mail-list-toolbar select,.mail-list-toolbar .mail-menu>summary{padding:4px 5px;font-size:11px}}
@media(max-width:980px){.email-app{grid-template-columns:minmax(320px,42%) minmax(0,1fr)}.mail-folder-rail{display:none}.mail-separator[data-resize=folders]{display:none}.host-search select{max-width:115px}.mail-rich-wrap{margin:8px}.mail-compose-heading{padding:8px}.mail-compose-fields{padding:0 10px}}
@media(max-width:720px){.hostbar{padding:0 8px;gap:6px}.hostbar .wordmark{display:none}.hostbar .host-search{margin:0;min-width:0;max-width:none;height:38px}.host-search input{font-size:12px}.host-search select{max-width:68px;font-size:10px;padding:0}.host-search button{font-size:11px;padding:0 4px}.email-app{grid-template-columns:minmax(0,1fr)}.mail-message-list{grid-column:1;grid-row:1}.email-app .mail-reader{display:none}.email-app.show-reader .mail-message-list{display:none}.email-app.show-reader .mail-reader{display:flex;grid-column:1;grid-row:1}.mail-separator{display:none!important}.mail-back{display:block!important;min-width:44px}.mail-list-toolbar{height:52px;padding:4px;gap:3px}.mail-list-toolbar button,.mail-list-toolbar select,.mail-list-toolbar .mail-menu>summary{min-height:44px;height:44px;font-size:11px;padding:4px}.mail-list-toolbar select{width:70px}.mail-list-toolbar button[data-mail-action=filter-starred]{font-size:0;width:44px}.mail-list-toolbar button[data-mail-action=filter-starred]::after{content:'☆';font-size:20px}.mail-menu-panel{max-width:280px;min-width:210px}.mail-menu[data-menu=filters] .mail-menu-panel{left:auto;right:0}.mail-menu-panel button{min-height:44px!important}.mail-compose-heading{gap:4px;padding:4px;height:52px}.mail-compose-heading button,.mail-compose-heading .mail-menu>summary{min-height:44px;height:44px;padding:4px 6px}.mail-rich-toolbar{height:48px;min-height:48px}.mail-rich-toolbar button,.mail-rich-toolbar select{min-height:44px;height:44px}.mail-rich-toolbar{padding:2px}.mail-compose-fields input{height:36px}.mail-compose-fields>label{height:44px}.mail-select-message{width:18px;height:18px;margin:4px}.mail-message-row .mail-star{width:28px;min-height:44px;height:44px;margin-top:-6px}.mail-message-row{grid-template-columns:26px 28px minmax(0,1fr);padding:8px 8px 8px 4px}.mail-tag-chip{font-size:10px;padding:1px 5px;max-width:95px}.mail-rich-wrap{margin:8px 6px}.mail-reader-tools button{height:44px;min-height:44px}.mail-status .mail-watch-status{display:none}.mail-tool-dialog{padding:16px}.mail-tool-dialog button{min-height:44px}}

/* B022 follow-up: measured star baseline, dialog geometry and selection hit areas. */
.email-app .mail-message-row .mail-star{margin:-3px 0 0;align-self:start;place-items:center;display:grid}
.mail-select-target{display:grid;place-items:center;width:26px;height:20px;cursor:pointer;margin:0}
.mail-select-target .mail-select-message{margin:0;width:14px;height:14px}
.mail-reader:has(.mail-reader-empty):not(:has(.mail-compose-form)) .mail-reader-toolbar{display:flex}
.mail-reader-toolbar{flex-wrap:nowrap}
.mail-action-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d8e0ec;border-radius:8px;padding:20px;color:#17213b;font:14px/1.5 Arial,sans-serif}
.mail-action-dialog::backdrop{background:#17213b44}
.mail-action-dialog header,.mail-action-dialog footer{display:flex;align-items:center;gap:8px}
.mail-action-dialog header{justify-content:space-between}.mail-action-dialog h2{font-size:18px;margin:0}
.mail-action-dialog footer{justify-content:flex-end;margin-top:16px}.mail-action-dialog button{height:34px;min-height:34px;padding:4px 10px}
.mail-action-dialog label{display:grid;gap:4px;margin:12px 0}.mail-action-dialog input,.mail-action-dialog select,.mail-action-dialog textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d8e0ec;border-radius:5px;padding:7px;font:14px/1.5 Arial,sans-serif}
.mail-action-dialog [type=checkbox]{width:18px;height:18px;margin:0;flex:none}.mail-action-dialog [type=color]{height:36px;padding:3px}.mail-action-dialog [role=status]{color:#b91c1c;font-size:13px}
.mail-dialog-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mail-managed-tags>div{display:flex;align-items:center;gap:8px;margin:8px 0}.mail-managed-tags>div>span{flex:1;overflow-wrap:anywhere}
.mail-action-dialog label[data-picker-row]{display:flex;align-items:center;gap:8px;min-height:32px}.mail-action-dialog label[data-picker-row] small{margin-left:auto}.mail-action-dialog label[hidden]{display:none}
.mail-action-dialog :focus-visible{outline:2px solid #4b0bd9;outline-offset:2px}
@media(max-width:720px){.mail-action-dialog button{height:44px;min-height:44px}.mail-action-dialog{padding:16px}.mail-message-row{grid-template-columns:44px 44px minmax(0,1fr);gap:0}.mail-select-target{width:44px;height:44px;margin-top:-12px}.mail-select-target .mail-select-message{width:18px;height:18px}.email-app .mail-message-row .mail-star{margin:-12px 0 0;width:44px;height:44px;min-height:44px}.mail-tag-overflow{height:44px;min-height:44px;bottom:0}.mail-back{display:block}.mail-reader-tools{overflow:hidden}.mail-reader-tools button:nth-child(n+2){display:none}.mail-reader-more>summary{min-width:44px;min-height:44px}}
.email-app.composing-new .mail-compose-form{margin-top:0}.email-app.composing-new .mail-compose-fields{display:block;flex:none;min-height:0}
.mail-recipient-control{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow-x:auto;height:38px}.mail-recipient-chips{display:flex;gap:4px;flex:none}.mail-recipient-chip{display:flex;align-items:center;gap:4px;max-width:230px;height:28px;background:#eef2ff;border:1px solid #dbe2fd;border-radius:5px;padding-left:6px;color:#273c75}.mail-recipient-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-recipient-chip>button{border:0;background:transparent;min-height:26px;height:26px;padding:0 6px}.mail-compose-fields .mail-recipient-entry{min-width:100px;flex:1;width:100px}.mail-recipient-entry[aria-invalid=true]{outline:1px solid #b91c1c!important}.mail-rich-toolbar button[aria-pressed=true]{background:#eee7ff;border-color:#8a64db;color:#4b0bd9}.mail-quoted-original{flex:none;max-height:180px;overflow:auto;margin:4px 16px;font-size:12px;color:#59677c}.mail-quoted-original summary{cursor:pointer;min-height:28px}.mail-quoted-original pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:8px;border-left:3px solid #ddd;font:12px/1.5 Arial,sans-serif}.mail-partial-errors{padding:8px 12px;font-size:12px;color:#994023;border-top:1px solid #efd4be}.mail-partial-errors p{margin:4px 0}
@media(max-width:720px){.mail-recipient-control{height:44px}.mail-recipient-chip{height:40px}.mail-recipient-chip>button{height:40px;min-height:40px;width:44px}.mail-quoted-original summary{min-height:44px}}
.mail-list-more{display:none}
.mail-attachment-preview{min-width:0;max-height:65dvh;overflow:auto}.mail-attachment-preview img{display:block;max-width:100%;height:auto}.mail-attachment-preview iframe{display:block;width:100%;height:60dvh;border:0}.mail-attachment-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 monospace}.mail-attachment-open{font-size:12px;min-height:32px;margin-top:4px}
.email-app .mail-message-row{background:color-mix(in srgb,var(--tag-tint,#fff) 35%,white)}.email-app .mail-message-row.selected{background:linear-gradient(#5917e00c,#5917e00c),color-mix(in srgb,var(--tag-tint,#fff) 35%,white)}
.mail-criteria{flex-wrap:wrap;gap:4px;padding:4px 8px}.mail-criteria button{margin-left:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-criteria .mail-filter-scope{font-size:11px;max-width:100%}.mail-menu-panel [aria-current=page]{background:#eee7ff;color:#480bd4}.mail-account-tree>summary::before{content:'›';width:14px;flex:none}.mail-account-tree[open]>summary::before{content:'⌄'}.mail-attachment-item{min-width:0}.mail-attachment-item>button{width:100%}.mail-attachment-item>p{margin:4px 0;font-size:12px;color:#b91c1c;overflow-wrap:anywhere}.mail-rich-wrap .ql-editor a{cursor:pointer;text-decoration:underline}.mail-rich-wrap .ql-editor a:focus-visible{outline:2px solid #4b0bd9;outline-offset:2px}
@media(max-width:720px){.mail-recipient-chip{height:44px}.mail-recipient-chip>button{height:44px;min-height:44px}.mail-criteria button{height:44px;min-height:44px}.mail-attachment-item button{min-height:44px}.mail-color-control,.mail-color-control input{height:44px;min-width:44px}.mail-compose-attachments [data-remove-attachment]{min-width:44px;min-height:44px}.mail-compose-fields details>summary{min-height:44px;display:flex;align-items:center}.mail-menu-panel label{min-height:44px}.mail-action-dialog label[data-picker-row]{min-height:44px}}
.mail-select-target .mail-select-message{align-self:center;justify-self:center}
@media(max-width:720px){.hostbar .host-rail-toggle,.host-search button,.host-search select{min-width:44px;flex-shrink:0}.master-rail .rail-item{min-height:44px}.mail-tag-overflow{min-width:44px}.mail-row-tags{padding-right:44px}.mail-rich-toolbar button,.mail-compose-heading button,.mail-compose-heading .mail-menu>summary{min-width:44px}.mail-compose-heading [data-mail-action=save-draft]{font-size:0}.mail-compose-heading [data-mail-action=save-draft]::after{content:'Save';font-size:12px}.mail-compose-heading [data-mail-action=attach]{font-size:0}.mail-compose-heading [data-mail-action=attach]::after{content:'Attach';font-size:12px}}
@media(max-width:720px){.mail-message-row{padding-top:12px;padding-bottom:4px}}
@media(max-width:720px){.mail-list-toolbar>[data-mail-action=filter-starred],.mail-list-toolbar>select[data-mail-sort]{display:none}.mail-list-more{display:block;margin-left:auto}.mail-list-more>summary{min-width:44px;text-align:center}.mail-list-more .mail-menu-panel{left:auto;right:0}.mail-list-more .mail-menu-panel select{width:100%;font-size:13px}.mail-menu[data-menu=folders]>summary{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hostbar .host-rail-toggle,.host-search button,.host-search select{height:44px;min-height:44px}.mail-list-footer button{height:44px;min-height:44px;min-width:44px}.mail-list-footer{height:48px;min-height:48px}}
/* B062 gui-polish: single stage contract for full-screen modules — one shared rule so every
   module stage (sidebar + content + optional editor pane) fills the module area edge to edge,
   instead of one patched slot chain per module. Slots and module hosts are plain wrappers:
   they get a definite width/height; the module roots keep their own display (grid/flex). */
.module-layout.module-layout-full>.primary-pane>*,
.module-layout.module-layout-full>.primary-pane>*>*{width:100%;min-width:0;height:100%;min-height:0}
.module-layout.module-layout-full>.primary-pane>*>*>*{width:100%;min-width:0;min-height:0}
/* Reports scroll as a page (content drives height); every other full module manages its own inner scroll. */
.module-layout.module-layout-full>.primary-pane>.pipeline-report-slot>.pipeline-report{height:auto;min-height:100%}
/* Sites: heading + shell share the service view; the shell takes the remaining height. */
.tesia-sites-slot>.tesia-service-view{display:flex;flex-direction:column}
.tesia-sites-slot .site-shell{flex:1 1 auto;height:auto;min-height:0}

/* B062 tenant switcher: the header account chip opens the workspace account menu (popover,
   appended to body so it escapes the hostbar; positioned fixed at the chip). Open/close is a
   short fade; reduced-motion keeps it instant. Menu styles only — the chip itself stays as is. */
#account-link[aria-expanded=true]{background:#ffffff22}
.account-menu-anchor{position:fixed;z-index:200}
.account-menu{width:264px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;padding:8px;background:#fff;border:1px solid #e3dcef;border-radius:10px;box-shadow:0 10px 34px #34245324;color:var(--text);animation:account-menu-in .14s ease-out}
@keyframes account-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.account-menu{animation:none}}
.account-menu-heading{font-size:10px;font-weight:650;letter-spacing:1.2px;color:#949bab;padding:6px 8px 8px}
.account-menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;border:0;border-radius:7px;background:transparent;padding:7px 8px;text-align:left;color:var(--text)}
.account-menu-item:hover{background:var(--accent-soft)}
.account-menu-item:focus-visible{outline:2px solid #9772ee!important;outline-offset:-2px}
.account-menu-avatar{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;font-size:11px;font-weight:650;background:hsl(var(--tenant-hue) 70% 92%);color:hsl(var(--tenant-hue) 55% 36%)}
.account-menu-copy{display:grid;gap:2px;min-width:0;flex:1}
.account-menu-copy strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-menu-copy small{font-size:10px;color:#9299a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-menu-badge{font-size:9px;font-weight:550;background:#f3f1f7;color:#81738e;padding:3px 7px;border-radius:5px;white-space:nowrap;flex:0 0 auto}
.account-menu-check{visibility:hidden;color:var(--accent);font-weight:650;font-size:13px;flex:0 0 auto}
.account-menu-item.active{background:#f4effb}
.account-menu-item.active .account-menu-check{visibility:visible}
@media(max-width:720px){.account-menu{width:min(300px,calc(100vw - 16px))}}

/* rc-one: crm-tables — 2026-09-20, RC-ONE module owner (CRM contacts/report/Data + Tables).
   ADDITIVE ONLY: appended at the end of styles.css; no rule above is modified.
   Covers: CRM Data saved-views sidebar header (was unstyled — /L layout complaint) and the
   Tables contacts CSV import flow (map preview, ready-for-ingest state). */
.verbot-sidebar>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-bottom:1px solid #e7ebf3}
.verbot-sidebar>header strong{font-size:12px;font-weight:600}
.verbot-sidebar .r-btn{min-height:30px;font-size:11px;padding:5px 10px}
.verbot-views p{margin:8px;padding:0;font-size:11px;line-height:1.7;color:#7a8393;overflow-wrap:anywhere}
.verbot-views .verbot-views-error{color:#9a6b32}
.tables-import-actions{display:flex;gap:6px;flex:0 0 auto}
.tables-sidebar .r-btn{min-height:30px;font-size:11px;padding:5px 10px;white-space:nowrap}
.tables-item-row{display:flex;align-items:stretch;gap:2px}
.tables-item-row .tables-item{flex:1 1 auto;min-width:0}
.tables-delete{flex:0 0 26px;min-height:0;min-width:26px;border:0;background:transparent;color:#9aa1ad;font-size:14px;padding:0;border-radius:6px}
.tables-delete:hover{background:#fdeaea;color:#b54453}
.tables-contacts-preview{padding:16px;display:grid;gap:14px;align-content:start}
.tables-map{display:grid;gap:8px;border:1px solid #e2e7f0;border-radius:10px;background:#fff;padding:14px;font-size:12px}
.tables-map strong{font-size:12px}
.tables-map-chips{display:flex;flex-wrap:wrap;gap:6px}
.tables-map-chip{background:#f0eafa;color:#4b0ad2;border-radius:12px;padding:3px 10px;font-size:10px;font-weight:550;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tables-map-chip.missing{background:#f3f4f8;color:#8b93a0;font-weight:400}
.tables-map small{font-size:10px;color:#7a8393}
.tables-map .tables-map-review{color:#9a6b32}
.tables-preview-actions{display:flex;gap:8px;flex-wrap:wrap}
.tables-ready{margin:auto;max-width:560px;display:grid;gap:10px;padding:28px;border:1px dashed #cdbfe9;border-radius:10px;background:#fbf9ff;text-align:center}
.tables-ready strong{font-size:14px;color:#3d2a63}
.tables-ready p{font-size:11px;color:#78818f;line-height:1.8;margin:0}
.tables-ready-file code{font-family:ui-monospace,Consolas,monospace;font-size:10px;overflow-wrap:anywhere;color:#4b0ad2}
.tables-ready .tables-preview-actions{justify-content:center}
@media(max-width:860px){.tables-import-actions{flex-direction:column;align-items:stretch}}

/* rc-one: one-search */
.one-search-panel{position:fixed;top:64px;right:16px;z-index:1200;width:min(560px,calc(100vw - 32px));max-height:min(70vh,640px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 32px #25273526;overflow:hidden}
.one-search-panel[hidden]{display:none!important}
.one-search-panel header{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--accent-soft);border-bottom:1px solid var(--line)}
.one-search-panel header strong{font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:var(--accent)}
.one-search-panel header .one-search-q{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:600}
.one-search-panel header button{min-height:28px;padding:2px 10px;border-color:var(--line);background:#fff;color:var(--text)}
.one-search-body{overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.one-search-state{margin:0;color:var(--muted)}
.one-search-state.fallback{color:#8a5b00;background:#fff7e0;border:1px solid #f0dfb2;border-radius:var(--radius);padding:8px 10px}
.one-search-answer{margin:0;white-space:pre-wrap;line-height:1.55;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}
.one-search-hits{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.one-search-hits li{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"source title" "source snippet";column-gap:10px;row-gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius)}
.one-search-source{grid-area:source;align-self:start;font-size:11px;font-weight:650;letter-spacing:.3px;text-transform:uppercase;color:var(--accent);background:var(--accent-soft);border-radius:999px;padding:3px 8px;white-space:nowrap}
.one-search-hits a{grid-area:title;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.one-search-hits small{grid-area:snippet;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.one-search-empty{margin:0;color:var(--muted)}

/* rc-one: email-search — search scope chips, Ask AI row, not-connected state (appended; no existing rule modified) */
.search-scope-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;max-width:760px}
.search-scope-chip{border:1px solid #d9dee8;background:#fff;border-radius:16px;min-height:28px;padding:4px 12px;font-size:11px;color:#657184}
.search-scope-chip:hover{border-color:#b9a5ee;color:#46088f}
.search-scope-chip.selected{background:#ece5f8;border-color:#c9b4f2;color:#46088f;font-weight:600}
.search-scope-chip:focus-visible{outline:2px solid #9772ee;outline-offset:2px}
.search-ask-row{margin:0 0 12px}
.search-ai-note{font-size:11px;color:#657184;margin:0 0 12px}
.search-not-connected{max-width:760px;background:#fff;border:1px solid #e2e7f0;border-radius:10px;padding:22px;display:grid;gap:6px}
.search-not-connected strong{font-size:13px}
.search-not-connected p{margin:0;font-size:11px;color:#657184;line-height:1.6}
@media(max-width:720px){.search-scope-chip{min-height:36px}}

/* rc-one: sites-kanban-settings */
.kanbanizer-stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #e7ebf3;background:#fff}
.kanbanizer-stage-head .r-badge{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* rc-one: files-notes-calendar */
/* Calendar: native dialog for the local "+ New event" affordance and delete control on custom events. */
.calendar-event-dialog{width:min(420px,calc(100vw - 32px));border:1px solid #dfd7ed;border-radius:12px;padding:0;box-shadow:0 16px 60px #24133c2e;color:var(--text)}
.calendar-event-dialog::backdrop{background:#31234b38}
.calendar-event-dialog form{display:grid;gap:14px;padding:20px}
.calendar-event-dialog header{display:grid;gap:3px}
.calendar-event-dialog header strong{font-size:16px}
.calendar-event-dialog header small{font-size:10px;color:var(--muted)}
.calendar-event-dialog label{display:grid;gap:6px;font-size:11px;font-weight:550;color:#596170}
.calendar-event-dialog input{width:100%;min-height:38px;border:1px solid #e7e9ef;border-radius:6px;padding:8px 10px;font-size:13px;color:var(--text);background:#fcfcfe}
.calendar-dialog-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.calendar-event-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.calendar-event-dialog footer .accent{background:var(--accent);border-color:var(--accent);color:#fff}
.calendar-event-dialog footer .accent:hover{background:#3c08b1}
.calendar-event{position:relative;padding-right:36px}
.calendar-event-delete{position:absolute;top:8px;right:8px;width:26px;height:26px;min-height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:#8a93a3;font-size:16px;line-height:1}
.calendar-event-delete:hover{background:#fdecec;color:#b54453}

/* rc-one: sites-kanban-settings — usage module primitives (AIW r-* never vendored; scoped to .usage-module) */
.usage-module{min-width:0;color:#17213b}
.usage-module .r-title{margin:2px 0 4px;font-size:22px;font-weight:700;letter-spacing:-.3px}
.usage-module .r-subtitle{margin:0;font-size:14px;font-weight:650}
.usage-module .r-label{font-size:10.5px;font-weight:650;letter-spacing:.8px;text-transform:uppercase;color:#69758a}
.usage-module .r-caption{font-size:11.5px;color:#69758a;line-height:1.6}
.usage-module .r-btn{min-height:34px;padding:6px 13px;border:1px solid #d8deea;border-radius:8px;background:#fff;font:inherit;font-size:12.5px;font-weight:550;color:#3e4653;cursor:pointer}
.usage-module .r-btn:hover{background:#f4effb;border-color:#cbb7f2}
.usage-module .r-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#eef1f7;color:#4a5568;font-size:11px;font-weight:600;white-space:nowrap}
.usage-module .r-badge.accent{background:#eee6fc;color:#4b0ad2}
.usage-module .r-badge.green{background:#e3f6e8;color:#177a37}
.usage-module .r-badge.red{background:#fde8e8;color:#b42318}
.usage-module .r-card{min-width:0;display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e2e7f0;border-radius:10px;padding:14px}
.usage-module .r-grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;align-items:stretch}
.usage-module .r-progress{position:relative;overflow:hidden;background:#edf0f6;border-radius:999px}
.usage-module .r-progress.sm{height:6px}
.usage-module .r-progress.lg{height:10px}
.usage-module .r-progress-bar{display:block;height:100%;min-width:2px;background:var(--accent,#5a17d7);border-radius:999px}
.usage-module .r-table{width:100%;border-collapse:collapse;font-size:12.5px}
.usage-module .r-table th{text-align:left;font-size:10px;font-weight:650;letter-spacing:.7px;text-transform:uppercase;color:#69758a;padding:9px 8px;border-bottom:1px solid #e2e7f0}
.usage-module .r-table td{padding:9px 8px;border-bottom:1px solid #eef1f6;vertical-align:top;overflow-wrap:anywhere}
.usage-module .r-table.zebra tbody tr:nth-child(even){background:#f8f9fc}
.usage-module .usage-loading{display:grid;gap:8px;justify-items:start;padding:6px 0}
.usage-module .usage-loading .r-progress{width:180px}
.usage-module .usage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:2px 0 12px}
.usage-module .usage-head h1{margin:2px 0 4px}
.usage-module .usage-actions{display:flex;align-items:center;gap:8px}
.usage-module .usage-error{margin:0 0 12px;padding:10px 12px;border:1px solid #f0c4bb;background:#fdf0ed;color:#9a2b12;border-radius:8px;font-size:12.5px}
.usage-module .usage-cards{margin-bottom:12px}
.usage-module .usage-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.usage-module .usage-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.usage-module .usage-metrics dt{font-size:10.5px;color:#69758a}
.usage-module .usage-metrics dd{margin:2px 0 0;font-size:15px;font-weight:650}
.usage-module .usage-tile{align-items:flex-start}
.usage-module .usage-value{font-size:21px;font-weight:700}
.usage-module .usage-days{display:grid;gap:7px}
.usage-module .usage-day{display:grid;grid-template-columns:minmax(84px,auto) minmax(0,1fr) minmax(52px,auto);gap:10px;align-items:center}
.usage-module .usage-day .r-progress{min-width:0}
.usage-module .usage-table-wrap{overflow-x:auto}
.usage-module .usage-table-wrap h2{margin-bottom:10px}
.usage-module .usage-footnote{margin-top:12px}

/* rc-one: desk — TES Desk (B062) tenant command center. Additive only; calm email-style
   language reuses the existing tokens (.record, .badge, .empty). No animation except the
   guarded status-dot transition; reduced-motion turns even that off. */
.desk-slot{height:100%;min-height:0}
.desk-module-host{height:100%;min-height:0;min-width:0;display:flex}
.desk-view{flex:1;height:100%;min-height:0;min-width:0;overflow:auto;padding:26px 30px 20px;background:#fbfcfe;display:flex;flex-direction:column;gap:16px}
.desk-view .footnote{margin-top:4px}
.desk-strip{display:flex;gap:8px;flex-wrap:wrap}
.desk-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:6px 12px;font-size:11px;color:var(--muted);max-width:100%}
.desk-chip b{font-weight:600;color:var(--text);white-space:nowrap}
.desk-chip small{font-size:10px;color:#9aa1ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.desk-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#b9bfca;transition:background .2s ease}
.desk-chip.ok .desk-dot{background:#2e9e6b}.desk-chip.warn .desk-dot{background:#d99a2b}.desk-chip.off .desk-dot{background:#c3c9d3}
@media(prefers-reduced-motion:reduce){.desk-dot{transition:none}}
.desk-search{display:flex;gap:8px;align-items:center}
.desk-search input{flex:1;min-width:0;border:1px solid #e7e9ef;border-radius:8px;padding:10px 12px;background:#fff;font-size:12px}
.desk-search input:focus-visible{outline-offset:0}
.desk-search button{min-height:38px;font-size:11px;flex:0 0 auto}
.desk-search-status{min-height:16px;font-size:11px;color:var(--muted)}
.desk-search-status.error{color:#b54453}
.desk-search-results{display:grid;gap:12px}
.desk-search-group{border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px 14px}
.desk-search-group h4{margin:0 0 8px;font-size:12px;font-weight:600}
.desk-search-group h4 small{color:#9aa1ad;font-weight:500}
.desk-search-item{border-bottom:1px solid #f0f2f7;padding:8px 0}
.desk-search-item:last-child{border-bottom:0}
.desk-search-item a{display:grid;gap:3px}
.desk-search-item strong{font-size:12px;font-weight:550}
.desk-search-item span{font-size:10px;color:#9aa1ad}
.desk-search-item p{margin:5px 0 0;font-size:11px;color:#78818d;line-height:1.6;overflow-wrap:anywhere}
.desk-search-item mark{background:#f2e9c9;color:inherit}
.desk-columns{display:grid;grid-template-columns:55fr 45fr;gap:16px;align-items:start}
.desk-col{display:grid;gap:16px;min-width:0}
.desk-panel{border:1px solid var(--line);border-radius:10px;background:#fff;padding:16px 18px;min-width:0;box-shadow:0 3px 12px #20204003}
.desk-panel>header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 12px}
.desk-panel>header h3{font-size:13px;margin:0;font-weight:600}
.desk-panel-link{border:0;background:transparent;color:var(--accent);font-size:11px;min-height:26px;padding:2px 4px}
.desk-panel-note{margin:10px 0 0;font-size:10px;color:#9aa1ad;line-height:1.6}
.desk-deferred{border:1px dashed #d8dde7;border-radius:8px;background:#fbfbfd;padding:14px 16px;display:grid;gap:6px;margin-top:10px}
.desk-deferred strong{font-size:12px;color:#6d7787;font-weight:600}
.desk-deferred p{margin:0;font-size:11px;color:#8b93a0;line-height:1.6}
.desk-deferred-tag{justify-self:start;font-size:9px;font-weight:650;letter-spacing:.8px;text-transform:uppercase;color:#8a93a3;background:#eef1f6;border-radius:4px;padding:3px 7px}
.desk-deferred .desk-row-actions{margin-top:4px}
.desk-row{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0 0 8px;background:#fff;overflow-wrap:anywhere}
.desk-row.unread{background:#fafbfe;border-color:#e4dcf2;box-shadow:inset 3px 0 var(--accent)}
.desk-row-main{display:grid;gap:3px;text-align:left;border:0;background:transparent;padding:0;min-height:0;border-radius:0;min-width:0}
.desk-row-main:hover{background:transparent}
.desk-row-main strong{font-size:12px;font-weight:550;overflow-wrap:anywhere}
.desk-row-main span{font-size:10px;color:#8b93a0;overflow-wrap:anywhere}
.desk-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.desk-row-actions button{min-height:26px;font-size:10px;padding:3px 9px}
.desk-work-form{border:1px solid #ded7ec;border-radius:8px;background:#faf8fd;padding:12px;display:grid;gap:10px}
.desk-work-form strong{font-size:12px}
.desk-work-form label{display:grid;gap:6px;font-size:11px;color:#596170}
.desk-work-form input,.desk-work-form textarea{width:100%;min-width:0;border:1px solid #e7e9ef;border-radius:6px;padding:8px 10px;font:inherit;font-size:12px;background:#fff}
.desk-work-form textarea{resize:vertical;min-height:70px}
.desk-work-form small{font-size:10px;color:#9aa1ad;line-height:1.5}
.desk-pulse-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.desk-pulse-card{border:1px solid #dce3eb;border-radius:8px;padding:10px 12px;display:grid;gap:4px;text-align:left;min-height:0}
.desk-pulse-card h4{margin:0;font-size:11px;font-weight:600;color:#5d6572;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-pulse-card strong{font-size:18px;font-weight:620;font-variant-numeric:tabular-nums}
.desk-pulse-card span{font-size:10px;color:#8b93a0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-pulse-card.error p{margin:0;font-size:10px;color:#b54453;overflow-wrap:anywhere}
.desk-timeline{list-style:none;margin:0;padding:0}
.desk-timeline li{display:flex;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid #f0f2f7;font-size:11px;min-width:0}
.desk-timeline li:last-child{border-bottom:0}
.desk-timeline time{flex:0 0 auto;color:#9aa1ad;font-size:10px;font-variant-numeric:tabular-nums}
.desk-timeline span{flex:1;min-width:0;overflow-wrap:anywhere;color:#5d6572}
.desk-timeline button{border:0;background:transparent;color:var(--accent);font-size:11px;min-height:0;padding:0;flex:0 0 auto}
.desk-timeline button:hover{text-decoration:underline}
@media(max-width:1150px){.desk-columns{grid-template-columns:minmax(0,1fr)}.desk-view{padding:22px 18px 16px}}
@media(max-width:720px){.desk-view{padding:16px 10px 14px;gap:12px}.desk-search{flex-wrap:wrap}.desk-search input{min-width:0}.desk-chip small{display:none}.desk-panel{padding:12px}}

/* rc-one: desk-compact — zero-scroll command center. The header, footnote, and verbose
   empty-state copy are hidden; the viewport height is spent on data, not decoration. */
.desk-view{padding:10px 14px 8px;gap:6px;overflow:hidden}
.desk-view>.section-heading{display:none}
.desk-view>.footnote{display:none}
.desk-strip{gap:4px;flex-wrap:nowrap}
.desk-chip{padding:3px 7px;font-size:10px;gap:4px;border-radius:10px}
.desk-chip small{display:none}
.desk-dot{width:6px;height:6px;flex:0 0 6px}
.desk-search{gap:5px}
.desk-search input{padding:5px 8px;font-size:11px;min-height:26px}
.desk-search button{min-height:26px;font-size:10px}
.desk-search-status{min-height:10px;font-size:10px}
.desk-columns{gap:8px}
.desk-col{gap:6px}
.desk-panel{padding:7px 10px}
.desk-panel>header{margin:0 0 4px}
.desk-panel>header h3{font-size:11px}
.desk-panel-link{font-size:10px;min-height:18px;padding:1px 3px}
.desk-deferred{padding:4px 7px;gap:1px;margin-top:3px}
.desk-deferred strong{font-size:10px}
.desk-deferred p{font-size:9px;line-height:1.3}
.desk-deferred-tag{font-size:8px;padding:1px 4px}
.desk-deferred .desk-row-actions{margin-top:2px}
.desk-panel-note{font-size:9px;margin:4px 0 0}
.desk-search-item{padding:5px 0}
.desk-search-item strong{font-size:11px}
.desk-search-group{padding:8px 10px}
.desk-search-group h4{font-size:11px;margin:0 0 5px}

/* rc-one: dropdowns — 2026-09-20, RC-ONE dropdown/select fixer (mission: /L reports dropdowns
   too small / misaligned at high-DPI 1920→3840; systemic, not one widget).
   ADDITIVE ONLY: appended at the end of styles.css; no rule above is modified.
   Root cause: per-module hardcoded px (widths 56/88/112/170/220px, heights 28–34px,
   font-size 10–13px) with no shared comfort floor, and panel selects without width:100%.
   Fix, same paint order as the rest of the file (later rule wins at equal specificity):
   1) one floor for every native select — font >=14px, min-height 36px, breathing room;
   2) width:100% for selects living inside dropdown panels;
   3) toolbar selects get min/max windows instead of hard px widths;
   4) stacking guard: open panels render above neighbour panes, under real overlays. */
.dt-mount select,.hostbar select,.status-options-panel select,.mail-action-dialog select,.mail-tool-dialog select{font-size:14px;line-height:1.4;min-height:36px;padding-top:4px;padding-bottom:4px;color:var(--text)}
.mail-menu-panel select{width:100%;min-width:0}
/* Toolbar selects: grow to their option text, never squeezed below a readable window. */
.mail-list-toolbar select[data-mail-sort]{width:auto;min-width:112px;max-width:200px;flex:0 1 auto}
.mail-rich-toolbar select[data-format=font]{width:auto;min-width:104px}
.mail-rich-toolbar select[data-format=size]{width:auto;min-width:64px}
.crm-client .crm-toolbar select[name=pipeline]{width:auto;min-width:180px;max-width:300px;flex:1 1 220px;font-size:14px}
/* The rich-text toolbar is a 44px strip with 6px padding: 32px is its true floor — keep the
   14px font, don't overflow the strip. */
.mail-rich-toolbar select{min-height:32px}
/* Files worker selector lives in the tree pane header: full width of its pane, comfy height. */
.files-worker-label select{height:auto;min-height:36px;font-size:14px;padding:6px 10px}
/* Tag-match select: ui-b023.css supplies the custom chevron; raise only size/readability
   (higher specificity so it wins even though ui-b023.css loads after styles.css). */
.email-app .mail-menu-panel label select[data-tag-match]{font-size:14px;min-height:32px}
/* Header unified-search scope selector: explicit readable size, no 32px squeeze (desktop;
   the sub-720px layout keeps its own compact rules from ui-b023/aiw). */
@media(min-width:721px){.hostbar .host-search select{min-height:34px;height:34px;font-size:14px}}
/* Stacking guard for open dropdown panels: above sibling toolbars (z:4) and message rows,
   below notices (80), assistant drawer (900) and one-search (1200). */
.mail-menu-panel{z-index:70}
.status-options-panel{z-index:85}

/* rc-one: kanban icon standardization — refresh icon on Kanban sidebar button */
.r-btn .mail-svg{width:14px;height:14px;flex:0 0 14px;vertical-align:middle;pointer-events:none}
.r-btn{display:inline-flex;align-items:center;gap:5px}

/* rc-one: sites-compact — 2026-09-20, RC-ONE sites compact fixer (mission: /L wants the Sites
   module edge to edge — sidebar + stage fill the space with zero wasted vertical height, the
   "TESIA request failed" error as a small inline badge in the sidebar header (badge markup
   lives in tesia-view.mjs), and an overall compact look at 1920×1080).
   ADDITIVE ONLY: appended at the end of styles.css; no rule above is modified. Scoped to
   .dt-mount[data-module=sites] / .tesia-sites-slot so CRM, connectors and every other module
   keep their paddings. Later-in-file wins at equal specificity.
   1) strip the two outer paddings (primary-pane 24px + service-view 22px) and let the shell
      own the full module height;
   2) tighten sidebar head/list/items and stage toolbar/status chips;
   3) .site-error-badge — the small inline error badge rendered in .site-sidebar-head. */
.dt-mount[data-module=sites] .module-layout-full>.primary-pane{padding:0;overflow:hidden}
.tesia-sites-slot>.tesia-service-view{padding:0}
.tesia-sites-slot .site-shell{gap:8px;height:100%}
/* Sidebar: tight header row (title + optional error badge), compact list rows. */
.tesia-sites-slot .site-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 10px;font-size:11px}
.tesia-sites-slot .site-sidebar-head strong{font-size:11px}
.tesia-sites-slot .site-error-badge{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:600;color:#b54453;background:#fbeff1;border:1px solid #e9c1ba;border-radius:999px;padding:1px 8px;cursor:default}
.tesia-sites-slot .site-list{padding:3px 4px}
.tesia-sites-slot .site-group h4{margin:6px 6px 2px;font-size:9px}
.tesia-sites-slot .site-item{padding:5px 8px;font-size:12px}
.tesia-sites-slot .site-item{margin:0 4px;width:calc(100% - 8px)}
/* Stage: slim toolbar, slim status chips, preview takes every remaining pixel. */
.tesia-sites-slot .site-toolbar{padding:4px 8px;gap:8px}
.tesia-sites-slot .site-toolbar strong{font-size:12px}
.tesia-sites-slot .site-pill{padding:2px}
.tesia-sites-slot .site-pill button{height:24px;padding:0 8px;font-size:11px}
.tesia-sites-slot .site-pill svg{width:13px;height:13px}
.tesia-sites-slot .site-toolbar .site-open,.tesia-sites-slot .site-toolbar button{min-height:24px;font-size:11px;padding:3px 8px}
.tesia-sites-slot .site-status{padding:3px 8px;gap:6px}
.tesia-sites-slot .site-status span{padding:1px 7px;font-size:10px}
.tesia-sites-slot .site-preview{background:#dde1e9}
/* Mobile preview keeps its phone frame but drops the fat padding. */
.tesia-sites-slot .site-shell.site-mobile .site-preview{padding:8px}

/* rc-one: desk-compact — hide duplicate search (top header search is the unified one) */
.desk-view .desk-search,.desk-view .desk-search-status,.desk-view .desk-search-results{display:none}

/* rc-one: tenant-theme — per-tenant accent theming. mount.mjs::applyTenantTheme() sets
   --accent/--tenant-color on <html> at mount AND on every tenant switch (select()).
   This block (a) re-derives --accent-soft from the live --accent, and (b) re-points the
   violet literals that bypassed the variables at the tenant accent. ui-b023.css loads
   after this sheet, so its overrides are body-prefixed to win on specificity. */
:root{--accent-soft:color-mix(in srgb,var(--accent) 9%,#fff)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--accent)!important}
.status-options summary:focus-visible,.account-menu-item:focus-visible,.search-scope-chip:focus-visible{outline-color:var(--accent)!important}
.master-rail button:hover{background:var(--accent-soft);color:var(--accent)}
.master-rail .selected{box-shadow:0 3px 9px color-mix(in srgb,var(--accent) 12%,transparent)}
.mail-folder.selected .mail-folder-count{background:var(--accent-soft);color:var(--accent)}
.tables-map-chip{background:var(--accent-soft);color:var(--accent)}
.tables-ready-file code{color:var(--accent)}
.usage-module .r-badge.accent{background:var(--accent-soft);color:var(--accent)}
body .mail-rich-toolbar button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 30%,#fff)}
body .mail-account-tree>summary .mail-account-new-folder:hover{background:var(--accent-soft);color:var(--accent)}
body .mail-action-flyout button:hover:not(:disabled),body .mail-action-flyout button:focus-visible:not(:disabled){background:var(--accent-soft);color:var(--accent)}
body .site-item.selected,body .tables-item.selected,body .kanbanizer-board.selected,body .verbot-view.selected,body .calendar-chip{background:var(--accent-soft);color:var(--accent)}
body .assistant-message.user{background:var(--accent-soft)}

/* mail compose attachment chips (compact) — 2026-09-20: tiny single-line chips for draft attachments
   (thumbnail/paperclip max 24px, truncated filename, size, × remove). The strip wraps horizontally and
   is capped at ~2 rows so attachments never crowd out the composer body. The composer markup in
   mail-layout.mjs now emits .mail-att-chip* classes only, so the legacy .mail-attachment-chip rules
   (earlier in this file) and ui-b023.css .mail-compose-thumbnail (64x48) no longer match. */
.mail-att-chip-strip{display:flex;flex-wrap:wrap;gap:4px;align-items:center;width:100%;min-width:0;max-height:56px;overflow-y:auto}
.mail-att-chip{display:inline-flex;align-items:center;gap:5px;height:26px;min-height:26px;max-width:100%;padding:0 3px 0 8px;border:1px solid #e0d7ef;border-radius:13px;background:#faf8fd;font-size:11px;line-height:1}
.mail-att-chip-thumb{width:24px;height:24px;max-width:24px;max-height:24px;object-fit:cover;border-radius:11px;flex:0 0 24px}
.mail-att-chip-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:0 0 16px;color:#68758b}
.mail-att-chip-icon .mail-svg{width:13px;height:13px}
.mail-att-chip-name{min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-att-chip-size{flex:0 0 auto;color:var(--muted);white-space:nowrap}
.mail-att-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-height:20px;flex:0 0 20px;padding:0;border:0;border-radius:50%;background:transparent;color:#68758b}
.mail-att-chip-remove:hover:not(:disabled){background:#eee6fc;color:#4b0bd9}
.mail-att-chip-remove .mail-svg{width:12px;height:12px}
@media(max-width:720px){.mail-att-chip{height:auto;min-height:48px}.mail-att-chip-strip{max-height:none}.mail-att-chip-name{max-width:150px}}

/* rc-one: contacts-rich — 2026-09-20, RC-ONE TES Contacts fixer (mission: /L wants Contacts
   pagination, a sane pipeline dropdown and richer contact rows; view logic in tesia-view.mjs).
   ADDITIVE ONLY: appended at the end of styles.css; no existing rule modified.
   Pipeline dropdown reuses the rc-one: dropdowns pattern of 2026-09-20
   (specs/rc-one-ledger-dropdowns.md, styles.css lines 486+): a native <select> popup cannot be
   styled or anchored, so the picker is a custom details/summary menu like .mail-menu —
   position:relative trigger + absolute panel anchored to the control, same comfort floor
   (14px font, 36px min-height), constrained width window (180–300px) instead of hard px,
   max-height with scroll, z-index guard (70, same layer as .mail-menu-panel). */
.crm-client .crm-record{display:flex;align-items:center;justify-content:space-between;gap:10px}
.crm-client .crm-record .tesia-contact-main{display:grid;gap:2px;min-width:0;flex:1}
.crm-client .crm-record .tesia-contact-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none;min-width:0;max-width:45%}
.crm-client .crm-record .tesia-contact-owner{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-client .crm-record .tesia-contact-when{white-space:nowrap;font-variant-numeric:tabular-nums}
.tesia-contact-more{display:block;width:100%;margin:10px 0 4px;min-height:36px;font-size:12px;font-weight:550;color:var(--accent);background:#fff;border:1px solid var(--line);border-radius:6px;cursor:pointer}
.tesia-contact-more:hover:not(:disabled){background:var(--accent-soft)}
.tesia-contact-cap{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 2px 4px}
.tesia-dd{position:relative;flex:1 1 220px;min-width:180px;max-width:300px}
.tesia-dd-trigger{height:36px;min-height:36px;width:100%;display:flex;align-items:center;gap:8px;padding:4px 10px;font-size:14px;line-height:1.4;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:6px;cursor:pointer;list-style:none}
.tesia-dd-trigger::-webkit-details-marker{display:none}
.tesia-dd-trigger::after{content:'⌄';margin-left:auto;flex:none;color:var(--muted)}
.tesia-dd[open] .tesia-dd-trigger{border-color:var(--accent)}
.tesia-dd-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tesia-dd-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:70;min-width:100%;max-width:320px;max-height:320px;overflow:auto;background:#fff;border:1px solid #d8e0ec;border-radius:7px;box-shadow:0 8px 24px #1c164125;padding:6px;display:grid;gap:2px}
.tesia-dd-option{width:100%;min-height:36px;text-align:left;padding:6px 10px;font-size:14px;line-height:1.4;color:var(--text);background:#fff;border:0;border-radius:5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tesia-dd-option:hover{background:var(--accent-soft)}
.tesia-dd-option.selected{background:var(--accent-soft);color:var(--accent);font-weight:600}
@media(max-width:720px){.tesia-dd{flex:1 1 100%;min-width:0;max-width:none}}
/* rc-one: sky-native-crm — pipeline controls moved into the workspace statusbar (coordinator lane C).
   Append-only block: TES connector view, contacts/mail styles owned by other workers are untouched. */
.workspace-status .status-controls[data-report-controls]{margin-left:auto;display:flex;align-items:center;gap:12px;min-width:0}
.pipeline-status-controls{display:flex;align-items:center;gap:12px;min-width:0;font-size:10px;color:#9098a4}
.pipeline-status-controls .pipeline-status-total{font-weight:600;color:var(--text);white-space:nowrap}
.pipeline-status-controls .pipeline-status-updated{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pipeline-status-controls .pipeline-density{display:inline-flex;align-items:center;margin-right:0}
.pipeline-status-controls .pipeline-density input{width:90px;accent-color:var(--accent)}
.pipeline-status-controls .pipeline-refresh{display:inline-flex;align-items:center;gap:5px;min-height:26px;font-size:10px;padding:4px 9px}
.pipeline-status-controls .pipeline-refresh svg{flex:none}
@media(max-width:720px){.pipeline-status-controls .pipeline-status-updated{display:none}.workspace-status .status-controls[data-report-controls]{gap:8px}}

/* rc-one: settings — 2026-09-20 Settings lane (settings-* prefixed, append-only):
   Settings IA sections — Workspace brand swatches, Integrations health + Zernio card,
   Keys & credentials, Advanced. Rendered by settings-view.mjs into the slots mount.mjs
   emits inside .settings-card sections. No existing rules modified. */
.settings-nav-group{font-size:9px;font-weight:650;letter-spacing:1.2px;color:#949bab;padding:12px 10px 2px;text-transform:uppercase}
.settings-nav-group:first-of-type{padding-top:0}
.settings-panel{display:grid;gap:14px;min-width:0}
.settings-note{font-size:12px;color:#26836d;margin:0}
.settings-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;display:inline-block}
.settings-dot-green{background:#1f9d61;box-shadow:0 0 0 3px #1f9d6122}
.settings-dot-yellow{background:#d9a514;box-shadow:0 0 0 3px #d9a51422}
.settings-dot-red{background:#c6454f;box-shadow:0 0 0 3px #c6454f22}
.settings-chip{font-size:10px;font-weight:500;padding:3px 8px;border-radius:5px;white-space:nowrap}
.settings-chip-green{background:#e2f5ea;color:#1c7a4c}
.settings-chip-dim{background:#f1f2f6;color:#828a97}
.settings-health-list{display:grid;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.settings-health-row{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;border-bottom:1px solid var(--line)}
.settings-health-row:last-child{border-bottom:0}
.settings-health-row.settings-probing{opacity:.55}
.settings-health-main{display:grid;gap:3px;min-width:0;flex:1}
.settings-health-main strong{font-size:12px;font-weight:600}
.settings-health-main small{font-size:10px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.settings-health-side{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.settings-health-side time{font-size:9px;color:#a0a6b0}
.settings-mini{font-size:10px;min-height:26px;padding:3px 9px}
.settings-panel-foot{display:flex;gap:8px;align-items:center}
.settings-key-row,.settings-zernio{border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px 16px;display:grid;gap:10px;min-width:0}
.settings-key-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.settings-key-head strong{font-size:13px;font-weight:600}
.settings-masked{font-size:11px;color:#5d6570;background:var(--soft);border:1px solid var(--line);border-radius:5px;padding:2px 7px}
.settings-hint{font-size:11px;color:var(--muted);line-height:1.6;margin:0;overflow-wrap:anywhere}
.settings-key-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.settings-inline{display:grid;gap:5px;font-size:10px;color:#7b828f;min-width:0}
.settings-inline input,.settings-inline select{min-height:34px;border:1px solid #e3e6ed;border-radius:6px;padding:6px 9px;font-size:12px;background:#fff;color:#3e4653;min-width:0}
.settings-inline input[type=password]{width:230px;max-width:100%}
.settings-key-form button{min-height:34px;font-size:11px}
.settings-test{font-size:11px;line-height:1.6;margin:0;overflow-wrap:anywhere}
.settings-test-verified{color:#1c7a4c}
.settings-test-unverified{color:#92700c}
.settings-test-invalid,.settings-test-error{color:#b54453}
.settings-numbers{display:grid;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.settings-number-row{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;border-bottom:1px solid var(--line);flex-wrap:wrap}
.settings-number-row:last-child{border-bottom:0}
.settings-number-main{display:flex;align-items:center;gap:8px;flex:1;min-width:0;flex-wrap:wrap}
.settings-number-main strong{font-size:12px;font-weight:600}
.settings-number-main small{font-size:10px;color:var(--muted)}
.settings-themes{display:grid;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.settings-theme-row{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;border-bottom:1px solid var(--line);flex-wrap:wrap}
.settings-theme-row:last-child{border-bottom:0}
.settings-theme-row strong{font-size:12px;font-weight:600;flex:1;min-width:120px}
.settings-monogram{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;color:#fff;font-size:10px;font-weight:650}
.settings-swatch input[type=color]{width:44px;height:30px;padding:2px;border:1px solid #e3e6ed;border-radius:6px;background:#fff;cursor:pointer}
.settings-theme-row code{font-size:11px;color:#5d6570}
.settings-theme-row button{min-height:30px;font-size:11px}
@media(max-width:720px){.settings-key-form{align-items:stretch;flex-direction:column}.settings-key-form button{width:100%}.settings-inline input[type=password]{width:100%}.settings-theme-row strong{min-width:100%}}

/* rc-one: shell-borders — 2026-09-20, RC-ONE shell double-border fixer (/L: "remove double
   borders like this on pages like that: not good" on #/TES/tesia/kanban; CRM Data reported
   with the same doubling right after).
   CAUSE: the full-bleed tesia modules kanban (data-module=kanbanizer) and CRM Data
   (data-module=crmdata) mount their <section class="kanbanizer-module"> / <section
   class="verbot-module"> as the only child of .primary-pane, and that module paints its own
   frame: ui-b023.css "kanbanizer-module,.verbot-module" = padding:16px + gray #f5f6fa canvas
   wrapped around the bordered white sidebar/stage cards. Every OTHER module with this canvas
   pattern zeroes the pane padding with a module-scoped rule — crm styles.css
   ".dt-mount[data-module=crm] .primary-pane{padding:0;…}", files ".dt-mount[data-module=files]
   .primary-pane{padding:0;…}", notes / search / calendar / tables likewise in ui-b023.css,
   sites ".dt-mount[data-module=sites] .module-layout-full>.primary-pane{padding:0;…}" — but
   kanbanizer and crmdata never got one, so .primary-pane kept its default 24px padding and the
   page showed TWO parallel rectangles: the pane gutter + module canvas edge, and the sidebar/
   stage card borders ~16px inside it. Fix follows the app convention (matches Email/Desk too,
   which are frame-less full-bleed via .email-slot/.desk-slot): the outer container draws NO
   frame — padding:0, canvas edge-to-edge — leaving the cards' own 1px border as the single
   outline, exactly how Calendar/Tables/Notes render.
   ADDITIVE ONLY: appended at the end of styles.css; no existing rule modified or reordered.
   Email/Desk internals and all other modules untouched. */
.dt-mount[data-module=kanbanizer] .primary-pane,
.dt-mount[data-module=crmdata] .primary-pane{padding:0;overflow:hidden;min-height:0;display:flex}
/* Slot + module sized to the now frame-less pane (same shape as the calendar/tables slot rules
   in ui-b023.css) so the gray canvas fills edge to edge with no white seams. */
.module-layout.module-layout-full>.primary-pane>.kanbanizer-slot,
.module-layout.module-layout-full>.primary-pane>.verbot-slot{width:100%;min-width:0;height:100%;min-height:0;display:flex}
.module-layout.module-layout-full>.primary-pane>.kanbanizer-slot>.kanbanizer-module,
.module-layout.module-layout-full>.primary-pane>.verbot-slot>.verbot-module{flex:1 1 auto;width:100%;min-width:0;height:100%;min-height:0}

/* rc-one: tables-crm — 2026-09-20, CRM merge into Tables (tables-view.mjs gains the CRM LIVE
   preset engine; CRM Data rail entry mounts the same module — two doors, one module). The
   deprecated warehouse verbot view is retired from mount.mjs (file kept, CSS untouched).
   APPEND-ONLY: new rules only, all prefixed tables-crm-; no existing rule modified. */
.tables-crm-sec{display:flex;flex-direction:column;flex:0 0 auto;min-height:0;border-bottom:1px solid #e7ebf3;background:#fbfcfe}
.tables-crm-sec>header strong{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#59657c}
.tables-crm-sec>footer{padding:7px 10px;border-top:1px solid #e7ebf3;font-size:10px}
.tables-crm-sec>footer a{color:#7a8393}
.tables-crm-list{max-height:190px;min-height:0;overflow:auto;padding:6px 8px;display:grid;gap:4px;align-content:start}
.tables-crm-preset{display:grid;gap:2px;width:100%;text-align:left;padding:7px 8px;border:0;border-radius:6px;background:transparent;font:inherit;cursor:pointer}
.tables-crm-preset:hover{background:#f0f2f7}
.tables-crm-preset.selected{background:#eee6fc;color:#4b0ad2}
.tables-crm-preset strong,.tables-crm-preset small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tables-crm-preset small{font-size:10px;color:#7a8393}
.tables-crm-preset.selected small{color:#5b21b6}
.tables-crm-empty{padding:10px 12px;font-size:11px;color:#7a8393}
.tables-crm-empty.error{color:#b54453}
.tables-crm-tools{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid #e7ebf3;flex-wrap:wrap;background:#fbfcfe}
.tables-crm-tools input[type=search],.tables-crm-tools input[type=text]{flex:1 1 120px;min-width:90px;min-height:30px;border:1px solid #d8deeb;border-radius:6px;padding:4px 8px;font:inherit;font-size:12px}
.tables-crm-tools input[data-crm-pipelines]{flex:1 1 160px}
.tables-crm-tools select{min-height:30px;border:1px solid #d8deeb;border-radius:6px;padding:4px 6px;font:inherit;font-size:12px;background:#fff}
.tables-crm-tools .r-btn,.tables-crm-runbar .r-btn{min-height:30px;font-size:11px;padding:5px 10px;white-space:nowrap}
.tables-crm-runbar{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #e7ebf3;flex-wrap:wrap}
.tables-crm-runnote{font-size:11px;color:#657184;min-width:0}
.tables-crm-runnote .error{color:#b54453}
.tables-crm-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:auto}
.tables-crm-actions a{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid #d8deeb;border-radius:6px;background:#fff;font-size:11px;color:#333;text-decoration:none;white-space:nowrap}
.tables-crm-actions a:hover{background:#f0f2f7}
@media(max-width:860px){.tables-crm-list{max-height:110px}.tables-crm-tools input[data-crm-pipelines]{flex:1 1 100%}}

/* rc-one: shell-padding — 2026-09-20, RC-ONE shell padding normalizer (/L: "padding around
   the content should be the same on each sub page — here we have a large top and left
   padding: compact this", Desk shown in the stacked inset).
   CAUSE: data-module=desk is the last module-layout-full page whose .primary-pane still
   keeps the default gutter (24px; 36px 44px >=1600px; 26px <=1150px; 18px 12px <=720px) —
   every other full-bleed page already zeroes it — and .desk-view adds its own compact inset
   (10px 14px 8px, from the "rc-one: desk-compact" block) on top: 34px top / 38px left of
   dead space at the default width (46/58 on wide screens).
   CONVENTION (same as the "rc-one: shell-borders" pass): the pane draws NO frame —
   padding:0 — and the module owns exactly ONE small inset. Full-bleed modules keep
   pane:0 with their own inset (email/desk/crm/files/sites/context even tighter, kanban/
   crmdata/calendar/tables/reports at 16px); regular pages get ONE layer at the 16px
   standard — search was 18px and notes 16px 18px, both normalized to 16px here. Settings
   keeps the classic scrolling-page padding (not a full-bleed sub page; out of scope).
   ADDITIVE ONLY: appended at the end of styles.css; no existing rule modified or
   reordered; the shell-borders, desk-compact and tables-crm blocks are untouched.
   Selectors target only the container/module chain (.dt-mount[data-module=…] …). */
.dt-mount[data-module=desk] .primary-pane{padding:0;overflow:hidden;min-height:0;display:flex}
/* Desk keeps the desk-compact block's own inset (10px 14px 8px) as its single layer —
   no new inset added inside the module. */
/* Search + Notes: one layer at the 16px standard. The explicit mobile rules re-state the
   original small-viewport compaction (a 0-3-0 override would otherwise beat it). */
.dt-mount[data-module=search] .unified-search{padding:16px}
@media(max-width:720px){.dt-mount[data-module=search] .unified-search{padding:12px}}
.dt-mount[data-module=notes] .notes-board{padding:16px}
@media(max-width:560px){.dt-mount[data-module=notes] .notes-board{padding:12px}}

/* rc-one: tables-crm-fields + sheet — 2026-09-20 follow-ups on the merged CRM engine.
   1) Preset rows no longer clip names: label wraps to max 2 lines (ellipsis after), date stays
      muted below; sidebar column widened so 30-char names always fit.
   2) Field picker (stage-head "Fields · x/y" button -> panel of every CRM column).
   3) Sheet mode (tables-crm-sheetmode): full-bleed table, no sidebar, slim head actions.
   APPEND-ONLY: new rules only, tables-crm- prefixed (plus one .tables-stage{position:relative}
   anchor rule and one .dt-mount .tables-module column widening override); nothing modified. */
.tables-crm-preset strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;overflow-wrap:anywhere}
.dt-mount .tables-module{grid-template-columns:minmax(250px,300px) minmax(0,1fr)}
.tables-stage{position:relative}
.tables-crm-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tables-crm-head .r-btn{min-height:30px;font-size:11px;padding:5px 10px;white-space:nowrap}
.tables-crm-head a.tables-crm-headbtn{display:inline-flex;align-items:center;color:#333;text-decoration:none;background:#fff;border:1px solid #d8deeb;border-radius:6px}
.tables-crm-head a.tables-crm-headbtn:hover{background:#f0f2f7}
.tables-crm-fieldsbtn{font-weight:600}
.tables-crm-panel{position:absolute;top:54px;right:10px;z-index:30;width:min(360px,92%);max-height:min(540px,82%);display:flex;flex-direction:column;background:#fff;border:1px solid #d8deeb;border-radius:10px;box-shadow:0 12px 32px rgba(20,25,40,.18);overflow:hidden}
.tables-crm-panel>header{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid #e7ebf3}
.tables-crm-panel>header strong{font-size:12px;flex:1}
.tables-crm-panel>header span{font-size:10px;color:#7a8393}
.tables-crm-panel-actions{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid #e7ebf3;flex-wrap:wrap}
.tables-crm-panel-actions .r-btn{min-height:28px;font-size:11px;padding:4px 9px}
.tables-crm-hideempty{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#59657c;margin-left:auto}
.tables-crm-fieldlist{flex:1;min-height:0;overflow:auto;padding:6px 8px;display:grid;gap:2px;align-content:start}
.tables-crm-field{display:flex;align-items:center;gap:8px;padding:5px 7px;border-radius:6px;font-size:12px;cursor:pointer}
.tables-crm-field:hover{background:#f0f2f7}
.tables-crm-field span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tables-crm-panel>footer{display:flex;align-items:center;gap:8px;padding:9px 12px;border-top:1px solid #e7ebf3}
.tables-crm-panel>footer span{flex:1;font-size:10px;color:#7a8393}
.tables-module.tables-crm-sheetmode{display:flex}
.tables-crm-sheet{flex:1 1 auto;width:100%;min-width:0;border:0;border-radius:0}
.tables-crm-sheet .tables-wrap{display:flex;flex-direction:column}
.tables-crm-sheet .tables-grid{align-self:flex-start}
@media(max-width:860px){.tables-crm-panel{right:6px;left:6px;width:auto}}

/* ===== RC-ONE mail lane fixes (/L, 2026-09-20): rail chevrons, full-width list rows, header scope select ===== */
/* 1) mail-chev-* : collapsible-rail section chevrons — TAGS gets a chevron; account trees normalized.
      Closed = right-pointing, open = down-pointing; pure CSS rotation off details[open]. */
.mail-folder-rail .mail-sidebar-tags>summary .mail-chev{display:inline-grid;place-items:center;width:12px;height:12px;flex:0 0 12px;margin-right:2px;color:#657184}
.mail-folder-rail .mail-sidebar-tags>summary .mail-chev .mail-svg{width:12px;height:12px;transition:transform .16s ease;transform:rotate(-90deg)}
.mail-folder-rail .mail-sidebar-tags[open]>summary .mail-chev .mail-svg{transform:rotate(0)}
.mail-folder-rail .mail-sidebar-tags>summary button .mail-svg{transform:none!important;transition:none}
@media(prefers-reduced-motion:reduce){.mail-folder-rail .mail-sidebar-tags>summary .mail-chev .mail-svg{transition:none}}
.mail-folder-rail .mail-account-tree>summary>.mail-svg{transform:rotate(-90deg)}
.mail-folder-rail .mail-account-tree[open]>summary>.mail-svg{transform:rotate(0)}
/* 2) message rows use the FULL lane width: sender line 1 (date stays top-right), subject wraps up to
      2 full-width lines with ellipsis only after 2 lines; tag/star actions keep their bottom-right strip. */
.email-app .mail-message-list .mail-message-row{height:auto;min-height:60px;max-height:none}
.email-app .mail-message-list .mail-message-open{height:auto;min-height:46px}
.email-app .mail-message-list .mail-row-copy{grid-template-rows:auto auto 26px}
.email-app .mail-message-list .mail-row-subject{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow:hidden;padding-right:0;line-height:18px;max-height:36px}
@media(max-width:720px){.email-app .mail-message-list .mail-row-subject{padding-right:0;line-height:18px;max-height:36px}}
/* 3) header search-scope select themed to match the adjacent search input (transparent rgba pill,
      light text, custom muted chevron, focus ring follows --tenant-color/--accent so tenant switches apply). */
#mail-unified-search select[name=scope]{-webkit-appearance:none;appearance:none;border:0;border-radius:6px;background-color:#ffffff1f;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffffb3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center;background-size:10px 6px;color:#fff;height:34px;min-height:34px;font-size:14px;padding:4px 24px 4px 10px;cursor:pointer}
#mail-unified-search select[name=scope]:hover{background-color:#ffffff2e}
#mail-unified-search select[name=scope]:focus-visible{outline:2px solid var(--tenant-color,var(--accent))!important;outline-offset:1px}
#mail-unified-search select[name=scope] option{color:#17213b;background:#fff}
@media(max-width:720px){#mail-unified-search select[name=scope]{font-size:12px;padding:4px 18px 4px 8px;background-position:right 5px center}}
/* tables-crm preset labels, take 2: -webkit-line-clamp misbehaves inside the button grid
   (rows squashed to 10px, glyphs cut). Names fit one line at the 300px sidebar; wrap freely
   instead of clamping — a label is never vertically clipped. */
.tables-crm-preset strong{display:block;-webkit-line-clamp:none;line-height:1.3;max-height:none;height:auto}
/* tables-crm preset row, take 3 (root cause): global button min-height:36px + children with
   overflow:hidden (min-content contribution 0) let the grid shrink its rows BELOW the text
   height — glyphs cut mid-glyph. Plain block flow cannot shrink: label wraps freely, date sits
   under it, nothing is ever vertically clipped. */
.tables-crm-preset{display:block}
.tables-crm-preset strong{display:block;line-height:1.3;margin:0}
.tables-crm-preset small{display:block;margin-top:2px}
/* tables-crm preset labels, take 4 — airtight per /L (flagged twice):
   1) Label never vertically clipped (block-flow base from take 3; button height grows).
   2) 2-line wrap with ellipsis only after — clamp re-applied in block flow where the grid
      squash cannot occur; if the engine ignores it the label simply wraps fully (still visible).
   3) Scrollbar never overlaps text: gutter padding-right + scrollbar-gutter:stable.
   4) Stable row heights: fixed line-heights, no layout-dependent sizing. */
.tables-crm-list{padding-right:16px;scrollbar-gutter:stable}
.tables-crm-preset{padding:7px 9px}
.tables-crm-preset strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;max-height:calc(1.35em * 2)}
.tables-crm-preset small{margin-top:3px}
/* take 4 correction: no max-height fallback that could ever clip — clamp or free wrap, never a cut. */
.tables-crm-preset strong{max-height:none}
/* ===== rc-one: desk-live (RC-ONE sprint, DESK-LIVE lane) — compact CRM pulse rows ===== */
/* One row per pipeline: name + total, top-3 stages as mini bars. Full stage-bar cards stay on the Pipelines page. */
.desk-live-pulse{display:grid;gap:8px}
.desk-live-pulse-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:6px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 12px;cursor:pointer}
.desk-live-pulse-row:hover{border-color:var(--accent)}
.desk-live-pulse-row.error{cursor:default}
.desk-live-pulse-name{font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-live-pulse-total{font-size:15px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.desk-live-pulse-stages{grid-column:1/-1;display:grid;gap:4px}
.desk-live-pulse-stage{display:grid;grid-template-columns:minmax(60px,110px) minmax(0,1fr) auto;align-items:center;gap:8px;font-size:10px;color:var(--muted)}
.desk-live-pulse-stage em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-live-pulse-stage b{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.desk-live-pulse-track{display:block;height:4px;border-radius:2px;background:var(--soft);overflow:hidden;min-width:0}
.desk-live-pulse-track i{display:block;height:100%;border-radius:2px;background:var(--accent)}
.desk-live-pulse-fail{grid-column:1;margin:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-live-pulse-row.error .desk-row-actions{grid-column:2}
@media(max-width:720px){.desk-live-pulse-stage{grid-template-columns:minmax(48px,84px) minmax(0,1fr) auto}}
/* ===== rc-one: shell-toolbar (RC-ONE sprint, DESK-LIVE lane) ===== */
/* module-toolbar removed from the shell (mount.mjs renders it for no tab; the master rail shows
   the active module and boot.mjs sets the document title). CSS audit result: no height calc,
   sticky offset or scroll container in styles.css / ui-b023.css depends on the 44px toolbar —
   .module-shell is a plain flex column and .module-layout flexes into the freed space. The rules
   below only guarantee no stale .module-toolbar markup (e.g. an older cached bundle) can take
   layout space; the dead base rules earlier in this file are left untouched (append-only). */
.module-toolbar{display:none!important}
.shell-toolbar-audit .module-shell{padding-top:0}

/* RC-ONE prompt-job scheduler (specs/rc-one-ledger-scheduler.md): scheduled-run markers in
   the mail lane (styled like tag chips) and the Co-workers › Work prompt-jobs panel. */
.mail-scheduled-chip{display:inline-flex;align-items:center;gap:3px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;color:var(--accent,#2563eb);background:color-mix(in srgb,var(--accent,#2563eb) 14%,transparent);border:1px solid color-mix(in srgb,var(--accent,#2563eb) 30%,transparent);margin-left:6px;vertical-align:middle}
.mail-scheduled-line{margin:4px 0 6px;font-size:12px;color:var(--accent,#2563eb);background:color-mix(in srgb,var(--accent,#2563eb) 10%,transparent);border:1px dashed color-mix(in srgb,var(--accent,#2563eb) 35%,transparent);border-radius:6px;padding:5px 9px}
.scheduler-module .scheduler-summary{font-style:italic;color:var(--accent,#2563eb);margin:6px 0}
.scheduler-module .scheduler-toggle{display:inline-flex;align-items:center;gap:5px;margin-left:auto}
.scheduler-module .scheduler-prompt{margin:4px 0;color:inherit;opacity:.85}
.scheduler-module .scheduler-quick{display:inline-flex;align-items:center;gap:4px;font-size:12px;opacity:.9}
.scheduler-module .scheduler-weekdays{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:6px 0}
.scheduler-module .scheduler-weekday{display:inline-flex;align-items:center;gap:4px;font-size:13px}
.scheduler-module .scheduler-run{margin:2px 0;font-size:12px}
.scheduler-module .scheduler-run-bad{color:#b91c1c}
.scheduler-module .scheduler-output{max-height:220px;overflow:auto;font-size:12px;background:rgba(127,127,127,.08);border-radius:6px;padding:8px;white-space:pre-wrap}
.scheduler-module .scheduler-enabled{display:inline-flex;align-items:center;gap:6px;margin-right:10px}
.scheduler-history{margin-top:6px}

/* ===== rc-one: upcoming-pane (RC-ONE sprint, UPCOMING-PANE lane) ===== */
/* Thunderbird-style "Upcoming events" digest. upcoming-pane.mjs renders the aside;
   email-view.mjs docks it as a persistent grid child (.upcoming-host) of .email-app,
   toggled from the mail list toolbar (.upcoming-toggle). Every rule is prefixed upcoming-
   or scoped under .email-app.upcoming-open — nothing above is modified (append-only).
   The dock is a desktop affordance: below 981px both pane and toggle hide (the same
   breakpoint where the email grid switches to tablet/mobile layouts), so narrow widths
   never squeeze or clip. .upcoming-icon reuses the .cw-icon mask convention. */
.upcoming-icon{width:16px;height:16px;flex:0 0 16px}
.upcoming-pane{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;font-size:12px;color:var(--text);background:#fff}
.upcoming-header{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);flex:none}
.upcoming-header>.cw-icon{color:var(--accent)}
.upcoming-title{font-size:12px;font-weight:650;letter-spacing:.2px}
.upcoming-count{font-size:10px;font-weight:600;background:var(--accent-soft);color:var(--accent);border-radius:9px;padding:2px 7px;margin-left:auto}
.upcoming-collapse{border:0;background:transparent;min-height:26px;min-width:26px;padding:2px;display:grid;place-items:center;color:#8993a1;border-radius:5px}
.upcoming-collapse:hover{background:var(--accent-soft);color:var(--accent)}
.upcoming-collapse .cw-icon{transition:transform .16s ease;transform:rotate(-90deg)}
.upcoming-collapse[aria-expanded=true] .cw-icon{transform:rotate(0)}
.upcoming-body{flex:1;min-height:0;overflow-y:auto;}.upcoming-day-label{margin:0;padding:9px 12px 4px;font-size:10px;font-weight:650;letter-spacing:1px;text-transform:uppercase;color:var(--muted);position:sticky;top:0;background:#fff;box-shadow:0 6px 6px -6px #fff}
.upcoming-today .upcoming-day-label{color:var(--accent)}
.upcoming-item{display:flex;align-items:baseline;gap:8px;padding:5px 12px;border-bottom:1px solid var(--soft)}
.upcoming-time{flex:0 0 52px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.upcoming-item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.upcoming-item.upcoming-past{opacity:.55}
.upcoming-chip{flex:none;font-size:9px;font-weight:600;letter-spacing:.4px;padding:2px 6px;border-radius:5px;white-space:nowrap}
.upcoming-chip.prompt{background:var(--accent-soft);color:var(--accent)}
.upcoming-chip.job{background:#e7f0fe;color:#1a56c4}
.upcoming-chip.event{background:#e7f6ec;color:#1d7a46}
.upcoming-empty{margin:0;padding:18px 12px;color:var(--muted)}
.upcoming-empty strong{display:block;font-size:12px;color:var(--text);margin-bottom:4px}
.upcoming-error{margin:0;padding:10px 12px;color:#a12222;font-size:11px;border-top:1px solid var(--line)}
/* --- email dock: persistent grid child of .email-app (column 4, desktop only) --- */
.upcoming-host{display:none;min-width:0;min-height:0}
.upcoming-toggle{display:none;border:0;background:transparent;min-height:30px;height:30px;width:30px;flex:0 0 30px;padding:0;color:#8993a1;font-size:12px;align-items:center;justify-content:center;gap:0;border-radius:5px;margin-left:auto}/* rc-one (/L 16:08): icon-only — square hit area matching .mail-list-toolbar>button; label node removed in email-view.mjs, zero neighbor shift (button is the toolbar row's right-anchored last child) */
.upcoming-toggle:hover{background:#f0eaff;color:#4b0bd9}
.upcoming-toggle[aria-pressed=true]{color:var(--accent)}
.upcoming-toggle .cw-icon{width:16px;height:16px;flex:0 0 16px}
@media(min-width:981px){
 .upcoming-toggle{display:inline-flex}
 .email-app.upcoming-open{grid-template-columns:var(--mail-folders-width,220px) var(--mail-list-width,350px) minmax(0,1fr) minmax(240px,300px)}
 .email-app.upcoming-open .upcoming-host{display:flex;flex-direction:column;grid-column:4;grid-row:1;border-left:1px solid var(--line)}
}
/* Expanded compose keeps the focused single-column composer (same intent as the
   pre-existing .email-app.compose-expanded rule): the dock steps aside, and the mirrored
   higher-specificity grid rule stops the later-in-file upcoming-open columns from winning. */
.email-app.compose-expanded .upcoming-host{display:none}
.email-app.compose-expanded.upcoming-open{grid-template-columns:0 0 minmax(0,1fr)}

/* RC-ONE · ledger "Compose order + Draft-with-AI sidebar integration" (append-only, draft-ai- prefix).
   Insert button attached to assistant sidebar chat replies; appends the reply to the open compose body. */
.draft-ai-insert{justify-self:start;margin-top:6px;min-height:26px;padding:3px 12px;font-size:11px;font-family:inherit;border:1px solid #ddd4ee;border-radius:6px;background:#fff;color:#490aca;cursor:pointer}
.draft-ai-insert:hover{background:#f4effc;border-color:#c9bce6}
.draft-ai-insert:disabled{color:#a89fbe;cursor:default}
/* rc-one CRON-AHEAD (scheduler lane): unified next-fire rows on the Desk runs panel. */
.desk-cron-ahead li{display:flex;align-items:center;gap:8px}
.desk-cron-ahead li button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;background:none;border:0;padding:2px 4px;color:inherit;cursor:pointer;text-align:left}
.desk-cron-ahead li button:hover small{text-decoration:underline}
.desk-cron-ahead li small{opacity:.75}
/* RC-ONE · ledger "Connection test + reconnect" (append-only, assistant-conn- prefix).
   ChatGPT connection state in the assistant drawer: dot+label status, inline probe result strip,
   Test + Reconnect actions. State comes from the existing /api/chatgpt-auth session seam — the
   same first hop the chat send path takes. No secret is ever rendered. */
.assistant-conn-on #assistant-status{display:none}
.assistant-conn-state{display:inline-flex;align-items:center;gap:6px;margin-left:12px;font-size:11px;font-weight:600;white-space:nowrap;color:#657184}
.assistant-conn-dot{width:8px;height:8px;border-radius:50%;background:#c2c9d6;flex:none}
.assistant-conn-state.green .assistant-conn-dot{background:#1d9e4b;box-shadow:0 0 0 3px rgba(29,158,75,.15)}
.assistant-conn-state.red .assistant-conn-dot{background:#d64545;box-shadow:0 0 0 3px rgba(214,69,69,.15)}
.assistant-conn-state.yellow .assistant-conn-dot{background:#e0a300;box-shadow:0 0 0 3px rgba(224,163,0,.15)}
.assistant-conn-state.green .assistant-conn-label{color:#177a37}
.assistant-conn-state.red .assistant-conn-label{color:#b42318}
.assistant-conn-state.yellow .assistant-conn-label{color:#8a6400}
.assistant-conn-result{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:8px 0 0;font-size:11px;line-height:1.4;color:#657184}
.assistant-conn-result[hidden]{display:none}
.assistant-conn-result.green{color:#177a37}
.assistant-conn-result.red{color:#b42318}
.assistant-conn-result.yellow{color:#8a6400}
.assistant-conn-when{color:#8a93a5;font-weight:400;white-space:nowrap}
.assistant-conn-code{font-size:12px;font-weight:700;letter-spacing:1.2px;background:#f4f6fb;border:1px solid #e3e8f0;border-radius:6px;padding:2px 8px;color:#17213b}
.assistant-conn-btn{min-height:24px;padding:2px 10px;font-size:11px;font-family:inherit;border:1px solid #ddd4ee;border-radius:6px;background:#fff;color:#490aca;cursor:pointer}
.assistant-conn-btn:hover{background:#f4effc;border-color:#c9bce6}
.assistant-conn-btn:disabled{color:#a89fbe;cursor:default}
.assistant-conn-link{color:#490aca;font-weight:600;text-decoration:none}
.assistant-conn-link:hover{text-decoration:underline}

/* rc-one: note-square- — 2026-09-20, RC-ONE Notes lane (append-only). /L defect: Post-its rendered
   as wide rectangles (ui-b023.css grid = repeat(var(--note-columns,4),minmax(0,1fr))) and the yellow
   note's textarea clipped its first line at the top. These rules win over ui-b023.css (loaded after
   styles.css) by specificity: .dt-mount[data-module=notes] (0,3,0) beats .notes-grid (0,1,0).
   Square notes: tracks capped 240-260px so aspect-ratio:1/1 yields ~240-260px squares at every
   viewport width (auto-fill handles the ui-b023 1100/860/560px media overrides too — higher
   specificity wins at all widths, one centered column on phones). Textarea scrolls INSIDE the
   note: flex:1 + min-height:0 fits it between the note top and the fixed footer, so the first
   line is never clipped and the date/× footer stays pinned at the bottom of the square. */
.dt-mount[data-module=notes] .notes-grid{grid-template-columns:repeat(auto-fill,minmax(240px,260px));justify-content:center;align-items:start;gap:14px}
.dt-mount[data-module=notes] .sticky-note{aspect-ratio:1/1;width:100%;min-height:0;overflow:hidden}
.dt-mount[data-module=notes] .sticky-note textarea{flex:1 1 auto;min-height:0;overflow:auto;resize:none;scrollbar-gutter:stable}
/* rc-one: note-scroll- — tiny rounded scrollbar for the post-it textarea (same lane). Firefox:
   thin scrollbar tinted a darker shade of the note's --note color, transparent track. Webkit:
   6px bar, thumb = the note hue darkened then set at ~35% alpha, 3px radius, transparent track.
   (Chrome 121+ honors scrollbar-color and ignores ::-webkit-scrollbar; older engines take the
   webkit rules — both paths render a small rounded thumb.) */
.dt-mount[data-module=notes] .sticky-note textarea::-webkit-scrollbar{width:6px;height:6px}
.dt-mount[data-module=notes] .sticky-note textarea::-webkit-scrollbar-track{background:transparent}
.dt-mount[data-module=notes] .sticky-note textarea::-webkit-scrollbar-thumb{background:color-mix(in srgb,color-mix(in srgb,var(--note,#fff7a3),#000 40%) 35%,transparent);border-radius:3px}
.dt-mount[data-module=notes] .sticky-note textarea::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,color-mix(in srgb,var(--note,#fff7a3),#000 45%) 60%,transparent)}

/* rc-one CALENDAR COLOR PILLS (scheduler lane, /L): one fixed color per calendar type —
   sidebar checkbox is the pill, every entry of that type is tinted with it on the grid and
   in the list. Colors come from CALENDAR_COLORS in calendar-view.mjs via --cal-color.
   `body .calendar-chip.cal-pill-chip` out-specifies the legacy `body .calendar-chip`
   accent override (styles.css line 578) — append-only, no earlier rule modified. */
.cal-pill-check{appearance:none;-webkit-appearance:none;width:17px;height:17px;flex:0 0 auto;margin:0;border-radius:999px;border:2px solid var(--cal-color,#64748b);background:color-mix(in srgb,var(--cal-color,#64748b) 16%,transparent);cursor:pointer;transition:background .12s ease,box-shadow .12s ease}
.cal-pill-check:checked{background:var(--cal-color,#64748b);box-shadow:inset 0 0 0 3px #fff}
.cal-pill-check:focus-visible{outline:2px solid var(--cal-color,#64748b);outline-offset:2px}
body .calendar-chip.cal-pill-chip{background:color-mix(in srgb,var(--cal-color,#64748b) 15%,#fff);color:color-mix(in srgb,var(--cal-color,#64748b) 62%,#161b26);border-left:3px solid var(--cal-color,#64748b);padding-left:6px;font-weight:600}
body .calendar-chip.cal-pill-chip.completed{opacity:.55;background:color-mix(in srgb,var(--cal-color,#64748b) 8%,#fff)}
body .calendar-chip.cal-pill-chip.failed,body .calendar-chip.cal-pill-chip.timed_out,body .calendar-chip.cal-pill-chip.validation_failed{text-decoration:line-through;text-decoration-color:color-mix(in srgb,#c23b3b 70%,transparent)}
.cal-pill-event{background:color-mix(in srgb,var(--cal-color,#64748b) 10%,#fff);border-left:3px solid var(--cal-color,#64748b);border-radius:8px;padding-left:10px}
.cal-pill-event.completed{opacity:.72}

/* RC-ONE · ledger "Native CRM authoring tools" (append-only, crm-editor- prefix).
   Pipeline/status editor + Forms builder for the SKY native mode, rendered inside the
   pipeline-report container. Colors/values reuse the house tokens (--accent etc.). */
.crm-editor{border:1px solid #dce3eb;background:#fff;border-radius:8px;padding:12px;box-shadow:0 1px 3px #17283c08;display:flex;flex-direction:column;gap:10px;min-width:0}
.crm-editor-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crm-editor-bar strong{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--text)}
.crm-editor-tabs{display:inline-flex;gap:2px;background:#eff3fa;border-radius:7px;padding:2px}
.crm-editor-tabs button{border:0;background:transparent;font:inherit;font-size:11px;padding:4px 12px;border-radius:5px;cursor:pointer;color:#657184}
.crm-editor-tabs button[aria-selected=true]{background:#fff;color:var(--accent);font-weight:650;box-shadow:0 1px 2px #17283c14}
.crm-editor-done{margin-left:auto}
.crm-editor-bar>button,.crm-editor-foot button,.crm-editor-forms-list>button,.crm-editor-form-edit .crm-editor-foot button{border:1px solid #dce3eb;background:#fff;font:inherit;font-size:11px;padding:4px 11px;border-radius:6px;cursor:pointer;color:var(--text)}
.crm-editor-bar>button:hover,.crm-editor-foot button:hover,.crm-editor-forms-list>button:hover,.crm-editor-form-edit .crm-editor-foot button:hover{background:#eff3fa;border-color:#c4d2e0}
.crm-editor-list{display:grid;gap:8px}
.crm-editor-pipeline{border:1px solid #e3e9f0;border-radius:7px;padding:8px 10px}
.crm-editor-pipeline>header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.crm-editor-pipeline-name{flex:1;min-width:80px;max-width:340px;border:1px solid transparent;background:transparent;font:inherit;font-size:12px;font-weight:650;color:var(--text);border-radius:5px;padding:3px 6px}
.crm-editor-pipeline-name:hover,.crm-editor-pipeline-name:focus{border-color:#dce3eb;background:#fff;outline:none}
.crm-editor-active{font-size:9px;font-weight:650;letter-spacing:.5px;text-transform:uppercase;background:var(--accent-soft);color:var(--accent);border-radius:8px;padding:2px 7px}
.crm-editor-remove{border:0;background:transparent;color:#a24c39;font-size:14px;line-height:1;cursor:pointer;border-radius:5px;min-width:22px;min-height:22px}
.crm-editor-remove:hover{background:#fbeee9}
.crm-editor-pipeline ol{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.crm-editor-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:2px 0}
.crm-editor-dot{width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #cbd5e1;cursor:pointer;flex:none;padding:0}
.crm-editor-dot-label{font-size:10px;color:var(--muted);min-width:64px;overflow:hidden;text-overflow:ellipsis}
.crm-editor-status input[type=text]{flex:1;min-width:120px;border:1px solid #e3e9f0;border-radius:5px;font:inherit;font-size:11px;padding:3px 7px;color:var(--text)}
.crm-editor-status input[type=text]:focus{outline:none;border-color:var(--accent)}
.crm-editor-row-btns{display:inline-flex;gap:1px}
.crm-editor-row-btns button{border:0;background:transparent;color:#8993a1;cursor:pointer;font-size:11px;min-width:20px;min-height:20px;border-radius:4px;padding:0}
.crm-editor-row-btns button:hover{background:#eff3fa;color:var(--accent)}
.crm-editor-palette{display:inline-flex;gap:3px;padding:3px;background:#f4f6fb;border-radius:6px}
.crm-editor-palette button{width:14px;height:14px;border-radius:50%;border:0;cursor:pointer;padding:0}
.crm-editor-palette button.crm-editor-swatch-on{box-shadow:0 0 0 2px #fff,0 0 0 3px var(--accent)}
.crm-editor-pipeline-foot{margin-top:6px}
.crm-editor-pipeline-foot button{border:0;background:transparent;font:inherit;font-size:11px;color:var(--accent);cursor:pointer;padding:2px 4px;border-radius:4px}
.crm-editor-pipeline-foot button:hover{background:var(--accent-soft)}
.crm-editor-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-editor-foot .crm-editor-save{margin-left:auto;background:var(--accent);border-color:var(--accent);color:#fff}
.crm-editor-foot .crm-editor-save:hover{filter:brightness(1.06);background:var(--accent)}
.crm-editor-foot .crm-editor-save:disabled{opacity:.5;cursor:default}
.crm-editor-foot .crm-editor-danger{color:#a24c39}
.crm-editor-validate{font-size:11px;color:var(--muted);min-width:0}
.crm-editor-note{margin:0;font-size:11px;border-radius:6px;padding:6px 10px}
.crm-editor-note.crm-editor-ok{background:#e7f6ec;color:#1d7a46}
.crm-editor-note.crm-editor-error{background:#fbeee9;color:#a24c39}
.crm-editor-note.crm-editor-warn{background:#fdf3e0;color:#8a6400}
.crm-editor-note.crm-editor-info{background:#eff3fa;color:#41526b}
.crm-editor-error{margin:0;font-size:11px;color:#a24c39}
.crm-editor-forms{display:grid;grid-template-columns:230px minmax(0,1fr);gap:10px;align-items:start}
.crm-editor-forms-list{border:1px solid #e3e9f0;border-radius:7px;padding:6px;display:flex;flex-direction:column;gap:6px}
.crm-editor-forms-list ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.crm-editor-forms-list li button{display:block;width:100%;text-align:left;border:0;background:transparent;font:inherit;border-radius:5px;padding:6px 8px;cursor:pointer}
.crm-editor-forms-list li button:hover{background:#eff3fa}
.crm-editor-forms-list li.crm-editor-form-on button{background:var(--accent-soft)}
.crm-editor-forms-list li strong{display:block;font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-editor-forms-list li small{display:block;font-size:10px;color:var(--muted)}
.crm-editor-forms-list li.crm-editor-none{font-size:11px;color:var(--muted);padding:6px 8px}
.crm-editor-form-edit{border:1px solid #e3e9f0;border-radius:7px;padding:10px;display:grid;gap:9px}
.crm-editor-field{display:grid;gap:3px;font-size:11px;font-weight:600;color:#657184}
.crm-editor-field input[type=text],.crm-editor-field select,.crm-editor-field textarea{border:1px solid #e3e9f0;border-radius:5px;font:inherit;font-size:12px;padding:5px 8px;color:var(--text);background:#fff}
.crm-editor-field input:focus,.crm-editor-field select:focus,.crm-editor-field textarea:focus{outline:none;border-color:var(--accent)}
.crm-editor-fields{border:1px solid #e3e9f0;border-radius:6px;padding:6px 10px;display:grid;gap:3px}
.crm-editor-fields legend{font-size:11px;font-weight:600;color:#657184;padding:0 4px}
.crm-editor-fields label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--text)}
.crm-editor-public{display:flex;align-items:center;gap:6px;min-width:0}
.crm-editor-public-url{flex:1;min-width:0;font-size:10px;font-family:ui-monospace,monospace;background:#f4f6fb;border:1px solid #e3e9f0;border-radius:5px;padding:4px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}
.crm-editor-public button{border:1px solid #dce3eb;background:#fff;font:inherit;font-size:10px;padding:4px 9px;border-radius:5px;cursor:pointer;flex:none}
.crm-editor-public button:hover{background:#eff3fa}
.crm-editor-empty{font-size:11px;color:var(--muted);line-height:1.7;padding:6px 2px}
.crm-editor-empty p{margin:0 0 6px}
@media(max-width:860px){.crm-editor-forms{grid-template-columns:1fr}}
/* rc-one: CRM field reorder + compact tables stage head — 2026-09-21 (append-only) */
.tables-crm-fieldgroup{display:grid;gap:2px;align-content:start;padding:2px 0 6px}
.tables-crm-grouplabel{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:#8a93a5;padding:2px 7px 3px}
.tables-crm-field.ordered{cursor:grab}
.tables-crm-field.ordered:active{cursor:grabbing}
.tables-crm-field.dragging{opacity:.4}
.tables-crm-field.drop-before{box-shadow:inset 0 2px 0 0 #4f46e5}
.tables-crm-field.drop-after{box-shadow:inset 0 -2px 0 0 #4f46e5}
.tables-crm-fieldgroup.drop-append{background:#f7f8ff;box-shadow:inset 0 -2px 0 0 #9ca3ff}
.tables-crm-pos{margin-left:auto;flex:none;min-width:16px;text-align:center;font-size:9px;font-weight:700;color:#4f46e5;background:#eef2ff;border-radius:8px;padding:0 4px;line-height:14px}
.tables-stage .tables-stage-head{padding:6px 12px;gap:8px;align-items:center}
.tables-stage-head>div{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1 1 auto}
.tables-stage-head>div small{font-size:9px}
.tables-stage-head h2{margin:0;font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tables-stage .tables-status{min-height:0;padding:2px 12px}
.tables-crm-tools{padding:5px 10px}
.tables-crm-runbar{padding:5px 10px}
.tables-crm-preset{display:flex;flex-direction:column;gap:1px}
.tables-crm-preset strong{line-height:1.3;padding-bottom:1px}
.tables-crm-preset small{line-height:1.3;margin-top:0}
/* rc-one: calendar per-calendar color picker — 2026-09-21 (append-only; lane v2: Remixerz-style SV picker, compact row dot) */
.calendar-source-list{position:relative}
.calendar-source-row{display:flex;align-items:center;gap:6px}
.calendar-source-row .calendar-source{flex:1 1 auto;min-width:0}
/* task B: subtle 14px dot affordance (was a 24px pill), solid calendar color + 1.5px white ring.
   min-height:0 defeats the app-wide button{min-height:36px} chrome; hover re-pins the color
   against the global button:hover{background:var(--soft)}. Focus uses the app-wide ring. */
.calendar-colorpick{flex:0 0 auto;width:14px;height:14px;min-height:0;padding:0;border-radius:999px;border:1.5px solid #fff;background:var(--cal-color,#64748b);cursor:pointer;box-shadow:0 0 0 1px #d8deeb}
.calendar-colorpick:hover{background:var(--cal-color,#64748b);box-shadow:0 0 0 1.5px #aeb8cc}
/* popover: Remixerz .r-color-picker DNA at compact density (~240px) */
.calendar-colorpop{position:absolute;right:8px;z-index:40;width:240px;max-width:calc(100% - 16px);padding:8px;background:#fff;border:1px solid #d8deeb;border-radius:10px;box-shadow:0 12px 32px rgba(20,25,40,.18);display:grid;gap:7px}
.calendar-colorpop[hidden]{display:none}
.calendar-colorpop-title{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#7a8393}
.cal-cp-sv{position:relative;width:100%;height:150px;border-radius:8px;cursor:crosshair;touch-action:none}
.cal-cp-sv canvas{display:block;width:100%;height:100%}
.cal-cp-cursor{position:absolute;width:14px;height:14px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.55);transform:translate(-50%,-50%);pointer-events:none}
.cal-cp-hue{position:relative;height:10px;border-radius:999px;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);cursor:pointer;touch-action:none}
.cal-cp-hue:focus-visible{outline:2px solid #4f46e5;outline-offset:3px}
.cal-cp-hue-thumb{position:absolute;top:50%;left:0;width:14px;height:14px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.35);transform:translate(-50%,-50%);pointer-events:none;background:#f00}
.cal-cp-inputs{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,52px);gap:5px;align-items:center}
.cal-cp-hex{position:relative;min-width:0;height:24px;min-height:0;padding:0 3px;border:1px solid #d8deeb;border-radius:6px;background:#f4f6fb;color:#3d4759;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1;cursor:pointer;text-align:center}
.cal-cp-hex:hover{border-color:#4f46e5;background:#eef2ff}
.cal-cp-copy-feedback{position:absolute;right:2px;bottom:1px;font-size:7px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#4f46e5;opacity:0;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease;pointer-events:none}
.cal-cp-hex.is-copied .cal-cp-copy-feedback{opacity:1;transform:translateY(0)}
.cal-cp-channel{position:relative;display:block;min-width:0}
.cal-cp-channel::before{content:attr(data-ch);position:absolute;left:5px;top:50%;transform:translateY(-50%);font-size:8px;font-weight:700;color:#8a93a5;pointer-events:none}
.cal-cp-channel input{width:100%;min-width:0;height:24px;padding:0 2px 0 13px;border:1px solid #d8deeb;border-radius:6px;background:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1;color:#3d4759}
.cal-cp-channel input:focus{outline:none;border-color:#4f46e5}
.cal-cp-presets{display:flex;flex-wrap:wrap;gap:4px}
.cal-cp-preset{width:14px;height:14px;min-height:0;padding:0;border-radius:50%;border:1px solid rgba(20,25,40,.18);background:#fff;cursor:pointer;transition:transform .1s ease}
.cal-cp-preset:hover{transform:scale(1.25)}
.cal-cp-footer{display:flex;align-items:center;gap:6px}
.cal-cp-preview{flex:0 0 auto;width:14px;height:14px;border-radius:4px;border:1px solid rgba(20,25,40,.18);background:#000}
.cal-cp-reset{flex:1 1 auto;min-width:0;min-height:0;font-size:10px;line-height:1.2;padding:3px 8px;border:1px solid #dce3eb;border-radius:5px;background:#fff;color:#3e4653;cursor:pointer}
.cal-cp-reset:hover{background:#eff3fa}

/* LANE v2 automations (2026-09-21, tenant-generic): chip tint for the Upcoming pane's
   fourth source ("Automation", upcoming-pane.mjs). The base .upcoming-chip rule sets no
   background and every other kind carries its own tint, so this kind needs one too; the
   pink family matches the calendar's automations default #db2777 (calendar-view.mjs). */
.upcoming-chip.automation{background:#fdf2f8;color:#be185d}


/* CRM-live preset rows -- 2026-09-21 (append-only): /L wants the date on the RIGHT of the row,
   same line as the name (markup unchanged: <strong>NAME</strong><small>DATE · N pipelines</small>).
   Row layout overrides the column stack from the rc-one block above; strong keeps the take-4
   2-line clamp (not re-declared here) and small keeps its colors including .selected's #5b21b6
   (no color rule here). padding-bottom:0 drops the column-era 1px name offset so name and date
   sit truly centered on one line. */
.tables-crm-preset{display:flex;flex-direction:row;align-items:center;gap:8px}
.tables-crm-preset strong{flex:1 1 auto;min-width:0}
.tables-crm-preset small{flex:0 0 auto;margin-left:auto;white-space:nowrap}
.tables-crm-preset strong{padding-bottom:0}


/* ===== rc-one: tables-crm realtime picker + grid transforms — 2026-09-21 (/L lane).
   APPEND-ONLY, tables-crm- prefixed: sortable grid headers (arrow badge), collapsible
   group section headers, and the Group-by select in the run bar / sheet toolbar. ===== */
.tables-crm-grid th[data-crm-sort]{cursor:pointer;user-select:none}
.tables-crm-grid th[data-crm-sort]:hover{background:#f0f2f7}
.tables-crm-sortarr{margin-left:4px;font-size:9px;font-weight:700;color:#5b21b6;vertical-align:baseline}
.tables-crm-grouphead{cursor:pointer}
.tables-crm-grouphead th{background:#f7f8fc;text-align:left;font-size:11px;font-weight:700;color:#3d4759;padding:6px 10px;border-bottom:1px solid #e7ebf3;border-top:1px solid #e7ebf3;cursor:pointer;user-select:none}
.tables-crm-grouphead:hover th{background:#eef2fa}
.tables-crm-grouphead:focus-visible th{outline:2px solid #5b21b6;outline-offset:-2px}
.tables-crm-chev{display:inline-block;width:10px;font-size:9px;color:#5b21b6}
.tables-crm-groupbar{display:flex;align-items:center;gap:8px;margin:8px 12px 0;font-size:11px;color:#59657c;flex-wrap:wrap}
.tables-crm-groupbar .tables-crm-groupsel{display:inline-flex;align-items:center;gap:6px}
.tables-crm-groupbar select{min-height:28px;font-size:11px;padding:3px 6px;border:1px solid #d8deeb;border-radius:6px;background:#fff;color:#3d4759;cursor:pointer}
.tables-crm-groupbar .r-btn{min-height:26px;font-size:10px;padding:3px 8px}
.tables-crm-sheet .tables-crm-groupbar{margin:8px 12px 0 0}

/* desk-pulse- (rc-one /L, 2026-09-21): CRM pulse mini bars adopt each stage's payload color
   (inline background set by desk-view.mjs from pipeline_status_board stages[].color — the
   same source the Pipelines page paints); a bar with no valid color keeps the track's
   existing neutral fill. The pipeline name gains a leading dot tinted with the lead stage
   color; hidden unless desk-view.mjs marks it desk-pulse-dot-on with a background. */
.desk-pulse-name-dot{display:none;width:8px;height:8px;border-radius:50%;margin-right:6px;flex:none;vertical-align:-1px}
.desk-pulse-name-dot.desk-pulse-dot-on{display:inline-block}

/* ===== rc-one: unified-sidebar — 2026-09-21, RC-ONE sidebar unification lane (/L: "the sidebars
   in Boards, Calendar and Tables have a border with rounded corners — this is the NEW sidebar
   style. Every sidebar gets that styling: the places that don't have it — Email, Chat, Contacts —
   need to change." + follow-up: "same sidebar actually for the Settings sub-pages").
   CANONICAL RECIPE extracted from the three reference modules (ui-b023.css, untouched):
   .kanbanizer-sidebar (ui-b023 line 284) and .calendar-sidebar / .tables-sidebar (line 239):
   background:#fff; border:1px solid #e2e7f0; border-radius:10px; overflow:hidden (sidebars
   additionally display:flex;flex-direction:column), cards sitting on the module canvas
   (#f5f6fa, padding:16px, gap:12px). Every rule below restates exactly that recipe — same
   radius (10px), same border (1px solid #e2e7f0), same white card background. NO margins,
   NO width/grid changes: full-bleed rails keep their existing footprint ("borders only" for
   the Email 3-pane + Upcoming dock, another lane's grid).
   SPECIFICITY: ui-b023.css and framework/aiw.css load AFTER styles.css, so every rule here
   is prefixed .dt-mount[data-module=…] ((0,3,0)+) to beat the flat base rules ((0,1,0)/(0,2,0))
   regardless of load order. APPEND-ONLY: no existing rule modified or reordered.
   Per-module classification (target → change):
   - email       .mail-folder-rail → white card (was flat #f7f9fd rail, border-right only).
                 Desktop grid only (≥981px): below that the rail is the hidden/mobile drawer
                 owned by the mail CSS lanes.
   - crm         .crm-client .crm-record-layout>section:first-child (Contacts record-list
                 column) → white card. The joined layout's outer frame is already border:0/
                 radius:0 in crm-client mode (styles.css crm-client block), so the list column
                 becomes the rounded card; the details pane is untouched.
   - messages    .module-navigation (the Chat tab's left nav rail) → white card.
   - threads / templates / connections: same .module-navigation rail → white card.
   - settings    .module-navigation (Settings sub-page section nav — same rail class) → card.
   - settings + connections .mcp-tool-layout>aside (TESIA connector tool list) → card
                 (padding:10px so the search input and list clear the border).
   - sites       .site-sidebar was already bordered (#e3e8f0, radius 8) → normalized to the
                 canonical border color + radius (bg/overflow already canonical).
   - files       .files-tree-pane → white card (was flat #f8f9fc). ≥761px only; the ≤760px
                 stacked one-pane strip stays as is.
   Already canonical — no rules needed: .kanbanizer-sidebar (Boards/Kanban), .calendar-sidebar,
   .tables-sidebar (Tables, and CRM Data which mounts the same Tables module).
   Out of scope (not pane sidebars, see specs/rc-one-ledger-shell-borders.md): the assistant
   chat drawer (fixed overlay, not a pane), .worker-inspector (right inspector panel on the
   Co-workers page), .upcoming-host/.upcoming-pane (another lane's email dock), .verbot-sidebar
   (retired warehouse view). ===== */
@media(min-width:981px){
.dt-mount[data-module=email] .mail-folder-rail{background:#fff;border:1px solid #e2e7f0;border-radius:10px}
}
@media(min-width:721px){
.dt-mount[data-module=crm] .crm-client .crm-record-layout>section:first-child{background:#fff;border:1px solid #e2e7f0;border-radius:10px}
.dt-mount[data-module=messages] .module-navigation,
.dt-mount[data-module=threads] .module-navigation,
.dt-mount[data-module=templates] .module-navigation,
.dt-mount[data-module=connections] .module-navigation,
.dt-mount[data-module=settings] .module-navigation{background:#fff;border:1px solid #e2e7f0;border-radius:10px}
}
@media(min-width:761px){
.dt-mount[data-module=files] .files-tree-pane{background:#fff;border:1px solid #e2e7f0;border-radius:10px}
}
.dt-mount[data-module=settings] .mcp-tool-layout>aside,
.dt-mount[data-module=connections] .mcp-tool-layout>aside{background:#fff;border:1px solid #e2e7f0;border-radius:10px;padding:10px}
.dt-mount[data-module=sites] .site-sidebar{border-color:#e2e7f0;border-radius:10px}

/* ===== rc-one: tables sidebar resizer — 2026-09-21 (/L: "this separator here in the table
   shall be a RESIZER and not fixed, so we can see more files/saved-views at once").
   The divider between .tables-sidebar and .tables-stage becomes a live drag handle: dragging
   moves the sidebar column edge (min 200px so preset names never clip, max ~50% of the module,
   both clamped in tables-view.mjs), the width rides ONE inline CSS variable set by the module
   (--tables-sidebar-w). Specificity: the rule below is (0,2,0) and sits at the END of
   styles.css, so it beats ui-b023/aiw's base minmax(230px,270px) ((0,1,0), later-loaded files)
   AND the .dt-mount widening minmax(250px,300px) (same (0,2,0), earlier line); the inline
   custom property then carries whatever width the user dragged. Desktop grid only — at ≤860px
   the module stacks to one column (ui-b023) and the handle hides. APPEND-ONLY: new rules only,
   tables-crm- prefixed; nothing modified. ===== */
@media(min-width:861px){
.tables-module.tables-crm-resizable{grid-template-columns:minmax(200px,var(--tables-sidebar-w,300px)) 5px minmax(0,1fr);gap:12px 4px}
.tables-crm-resizer{width:5px;border-radius:3px;cursor:col-resize;background:transparent;transition:background-color .12s;touch-action:none}
.tables-crm-resizer:hover{background:#cfd6e4}
.tables-crm-resizer.dragging{background:#a9b6d0}
}
@media(max-width:860px){.tables-crm-resizer{display:none}}
body.tables-crm-resizing{cursor:col-resize;user-select:none}

/* RC-ONE mail accounts manager (specs/rc-one-ledger-mail-accounts.md): Settings › Email
   accounts rows, chips and inline edit/add form. Append-only block, accounts- prefix. */
.accounts-list{display:flex;flex-direction:column;gap:10px}
.accounts-row{border:1px solid #e4e7ee;border-radius:10px;padding:12px 14px;background:#fff}
.accounts-chip{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600;vertical-align:1px}
.accounts-chip-green{background:#e2f5ea;color:#1c7a4c}
.accounts-chip-dim{background:#f1f2f6;color:#828a97}
.accounts-chip-amber{background:#faf0d4;color:#92700c}
.accounts-row-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.accounts-panel-foot{display:flex;gap:8px;margin:12px 0}
.accounts-danger{color:#b54453}
.accounts-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 14px;margin-top:10px;padding:12px;border:1px dashed #cfd6e4;border-radius:8px;background:#fafbfd}
.accounts-form .settings-inline{display:flex;flex-direction:column;gap:3px;font-size:12px}
.accounts-form .settings-inline span{color:#5a6472;font-weight:600}
.accounts-form input[type=text],.accounts-form input[type=email],.accounts-form input[type=password],.accounts-form input[type=number],.accounts-form input:not([type]){padding:6px 8px;border:1px solid #d7dce5;border-radius:6px;font:inherit;font-size:13px}
.accounts-check{flex-direction:row!important;align-items:center;gap:6px!important}
.accounts-form-foot{grid-column:1/-1;display:flex;gap:8px}
.accounts-form .footnote{grid-column:1/-1;margin:0}

/* ===== rc-one: unified-sidebar-spacing — 2026-09-21, follow-up on the unified-sidebar block.
   /L defect (on Sites): "the spacing-border and padding of the sidebar is NOT there in the new
   page — it should be." Live audit (computed styles, 127.0.0.1:9018): the cards DID get
   border/radius/background, but the SPACING layer was missing — every converted sidebar sat
   FLUSH at the pane edge (sidebar rect x=pane rect x, y=hostbar bottom; zero inset, zero
   canvas), and Sites additionally had its inner padding crushed by the earlier
   "rc-one: sites-compact" block (styles.css:523+): .tesia-sites-slot>.tesia-service-view
   padding:0 (line 535 beats line 175's 22px by order), .site-sidebar-head 6px 10px,
   .site-list 3px 4px, .site-shell gap 8px. Canonical spacing layer (kanbanizer/calendar/
   tables, ui-b023.css): canvas #f5f6fa, 16px inset from the pane edges, 12px sidebar↔stage
   gap, sidebar head padding 12px, list padding 8px. Fixes below re-add that layer with
   (0,3,0)+ specificity so they beat the flat compact/base rules by specificity, not order.
   APPEND-ONLY; the sites-compact block itself is untouched. ===== */

/* Sites (the confirmed-broken page): restore the full canonical wrapper — 16px gray canvas
   (sites-compact's padding:0 overridden), 12px card gap (was 8), head 12px + list 8px
   (the exact kanbanizer/calendar/tables inner values; was 6px 10px / 3px 4px). The compact
   lane's flex layout, typography and item margins stay. */
.dt-mount[data-module=sites] .tesia-sites-slot>.tesia-service-view{padding:16px;background:#f5f6fa}
.dt-mount[data-module=sites] .site-shell{gap:12px}
.dt-mount[data-module=sites] .site-sidebar-head{padding:12px}
.dt-mount[data-module=sites] .site-list{padding:8px}

/* Nav-rail sidebars (Chat / Threads / Templates / Connections / Settings): outer inset so the
   card no longer sits flush at the pane/hostbar edges — same 16px as the canonical canvas
   inset. Container keeps its own 20px 10px inner padding, so contents already clear the
   border. No canvas tone change: these pages' full-bleed views are designed on white. */
@media(min-width:721px){
.dt-mount[data-module=messages] .module-navigation,
.dt-mount[data-module=threads] .module-navigation,
.dt-mount[data-module=templates] .module-navigation,
.dt-mount[data-module=connections] .module-navigation,
.dt-mount[data-module=settings] .module-navigation{margin:16px}
}

/* Contacts: the record-list card sat flush inside the joined master/detail pair, and its new
   border doubled with the details pane's border-left (a ~2px seam). Inset the pair (which
   moves the sidebar card in as a unit, kanbanizer-module style) and let the card's own border
   be the single separator. Details pane content/padding untouched. ≥721px only: below that the
   pair stacks (border-top separator, owned by the ≤720 media) and must stay untouched. */
@media(min-width:721px){
.dt-mount[data-module=crm] .crm-client .crm-record-layout{margin:16px}
.dt-mount[data-module=crm] .crm-client .crm-record-layout>section+section{border-left:0}
}

/* Audited, intentionally NOT changed (full checklist in specs/rc-one-ledger-shell-borders.md):
   - Email .mail-folder-rail: inner padding is carried by its content blocks (account 18px 14px,
     tag section 8px 5px; folder-row tints bleed to the rail edge by mail-lane design). Outer
     inset would narrow the visible rail inside its fixed grid track — the unification lane is
     under an explicit "borders only, no width changes" guard for the Email 3-pane + Upcoming
     grid (another lane's), so the rail stays flush until /L says otherwise.
   - Files .files-tree-pane: joined 3-pane workbench with live splitters — insetting only the
     tree card would break splitter alignment with the content/preview panes. Inner spacing is
     fine (rows start 7px+ in ≈ the canonical 8px list inset; header 12px; footer 10px 12px).
   - TESIA .mcp-tool-layout>aside: already complete (card + padding:10px, sits in the connector
     view's pre-existing 22px padding). */

/* ===== rc-one: tables single-row toolbar — 2026-09-21 (/L: "extremely bad AI slop design for
   the header block bar — each time new stuff is added, it is added in another bar. Re-org them
   all in ONE, remove dupe info, add an icon for each button").
   The four stacked bars (tables-stage-head + tables-crm-tools + tables-crm-runbar +
   tables-crm-groupbar, ~150px) collapse into ONE tables-crm-bar (~40px):
   LEFT view name + Fields(5/89) + group-by select + collapse-all · MIDDLE search + row limit +
   pipeline-IDs + Apply · RIGHT status + XLS + live-view + Run again.
   APPEND-ONLY: new tables-crm-* rules only — every old rule above stays (the old classes are
   no longer emitted in normal mode; sheet mode still emits tables-crm-groupbar and keeps the
   old styling). One row at ≥1280px; below that the three sections wrap as units (right first),
   degrading gracefully to 2 rows instead of 4 stacked bars. ===== */
.tables-stage.tables-crm-bar-mode>.tables-stage-head{display:none}
.tables-crm-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 12px;border-bottom:1px solid #e7ebf3;background:#fbfcfe;font-size:11px}
.tables-crm-bar-left,.tables-crm-bar-mid,.tables-crm-bar-right{display:flex;align-items:center;gap:6px;min-width:0}
.tables-crm-bar-left{flex:0 1 auto}
.tables-crm-bar-mid{flex:1 1 300px;min-width:285px}
.tables-crm-bar-right{margin-left:auto;flex:0 0 auto}
.tables-crm-bar-name{flex:0 1 150px;min-width:56px;font-size:12.5px;font-weight:600;color:#20263a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tables-crm-bar .r-btn{display:inline-flex;align-items:center;gap:4px;min-height:26px;font-size:11px;padding:3px 8px;white-space:nowrap}
.tables-crm-ico{flex:none}
.tables-crm-bar-group{display:inline-flex;align-items:center;gap:5px;color:#8a93a5}
.tables-crm-bar-group select{width:140px;min-height:26px;font-size:11px;padding:3px 5px;border:1px solid #d8deeb;border-radius:6px;background:#fff;color:#3d4759;cursor:pointer}
.tables-crm-bar-field{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:0 7px;border:1px solid #d8deeb;border-radius:6px;background:#fff;color:#8a93a5}
.tables-crm-bar-field:focus-within{border-color:#5b21b6}
.tables-crm-bar-field input{border:0;outline:none;background:transparent;font:inherit;font-size:11px;color:#3d4759;min-width:0;padding:2px 0}
.tables-crm-bar-field[data-crm-bar-field=search]{flex:1 1 90px;min-width:72px}
.tables-crm-bar-field[data-crm-bar-field=search] input{flex:1 1 40px}
.tables-crm-bar-field[data-crm-bar-field=pipe]{flex:0 0 auto;width:97px;transition:width .15s ease}
.tables-crm-bar-field[data-crm-bar-field=pipe]:focus-within{width:195px}
.tables-crm-bar-field[data-crm-bar-field=pipe] input{width:100%;flex:1 1 auto}
.tables-crm-bar select[data-crm-limit]{min-height:26px;font-size:11px;padding:3px 4px;border:1px solid #d8deeb;border-radius:6px;background:#fff;color:#3d4759;cursor:pointer}
.tables-crm-bar-status{font-size:10.5px;color:#7a8393;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 140px;min-width:64px}
.tables-crm-bar-status.tables-crm-bar-error{color:#b54453}
.tables-crm-bar-iconbtn{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:26px;padding:0 5px;border:1px solid #d8deeb;border-radius:6px;background:#fff;color:#3d4759;text-decoration:none;cursor:pointer}
.tables-crm-bar-iconbtn:hover{background:#f0f2f7}

/* ===== kanban- (rc-one /L, 2026-09-21): stage-head removal + per-board hover "Open in
   tab" + Files-module Kanban mirror + archived group. APPEND-ONLY: new rules only, every
   new selector kanban- prefixed; nothing above modified. The retired .kanbanizer-stage-head
   rules live in ui-b023.css (not this lane) and are simply unreferenced now. ===== */

/* -- Kanban sidebar: head tools (status badge moved here from the removed stage-head) -- */
.kanban-head-tools{display:flex;align-items:center;gap:8px;min-width:0}
.kanban-head-tools .r-badge{min-width:0;max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}

/* -- Board rows (sidebar + Files mirror share the row/hover-action pattern): the row is a
   flex wrapper so the board button and the hover icon-button are siblings — a button can
   never nest inside a button. -- */
.kanban-board-row{display:flex;align-items:stretch;gap:2px;min-width:0}
.kanbanizer-sidebar .kanbanizer-board{flex:1 1 auto;min-width:0;padding-right:4px}
.kanban-board-open,.kanban-board-action{opacity:0;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;align-self:center;border:0;border-radius:6px;background:transparent;color:#5b6474;cursor:pointer;transition:opacity .12s,background-color .12s,color .12s}
.kanban-board-open .mail-svg,.kanban-board-action .mail-svg{width:14px;height:14px}
.kanban-board-row:hover .kanban-board-open,.kanban-board-row:focus-within .kanban-board-open,
.kanban-board-row:hover .kanban-board-action,.kanban-board-row:focus-within .kanban-board-action{opacity:1}
.kanban-board-open:focus-visible,.kanban-board-action:focus-visible{opacity:1;outline:2px solid var(--accent);outline-offset:1px}
.kanban-board-open:hover,.kanban-board-action:hover{background:#efedf6;color:var(--accent)}
/* Touch surfaces have no hover — keep the actions permanently visible there. */
@media(hover:none){.kanban-board-open,.kanban-board-action{opacity:1}}

/* -- Kanban sidebar: collapsed Archived group pinned to the bottom -- */
.kanban-archived{flex:0 0 auto;margin-top:auto;display:grid;gap:6px;padding:8px;border-top:1px solid #e7ebf3}
.kanban-archived[hidden]{display:none}
.kanban-archived-toggle{display:flex;align-items:center;gap:5px;padding:6px 8px;border:0;border-radius:7px;background:transparent;font:inherit;font-size:11px;font-weight:700;color:#5b6474;text-align:left;cursor:pointer}
.kanban-archived-toggle:hover{background:#f0f2f7;color:var(--text)}
.kanban-archived-toggle[aria-expanded=true]{color:var(--text)}
.kanban-archived-chevron{width:12px;flex:none;font-size:13px;text-align:center}

/* -- Files module: the kanban/ mirror rows in the tree -- */
.files-tree .kanban-board-row{padding-right:4px}
.files-tree .kanban-board-link{flex:1 1 auto;min-width:0}
.kanban-board-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.kanban-board-date{margin-left:auto;flex:none;font-size:10px;color:#7a8393}
.files-tree .kanban-board-action{width:22px;height:22px;border-radius:5px}

/* rc-one PIPELINES solo mode (/L): one pipeline at a time via #/…/crm-report/<pipelineId>
   (Desk CRM pulse rows jump here). Slim back control above the solo card; the card keeps
   the exact all-view markup, just capped to a readable width outside the grid. */
.pipeline-solo-back{display:inline-flex;align-items:center;gap:5px;margin:0 0 12px;padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:11px;cursor:pointer}
.pipeline-solo-back:hover{background:#eef4fa;color:var(--text)}
.pipeline-solo .pipeline-card{max-width:560px}
/* rc-one PIPELINES solo follow-up (/L): card titles open that pipeline solo in-place.
   Chrome reset against the global button rule; uppercase/wrap stays inherited from h3,
   hover affordance is the report's bar-blue underline, keyboard focus uses the global
   :focus-visible outline. */
.pipeline-card-title{display:block;width:100%;border:0;background:transparent;color:inherit;min-height:0;padding:0;text-align:left}
.pipeline-card-title:hover{color:#368cb3;text-decoration:underline}

/* -- rc-one ASSISTANT RAIL (/L, specs/rc-one-ledger-assistant-rail.md): the Assistant
   module page — sidebar of previous threads + the drawer chat surface inline. Append-only
   lane; every selector is prefixed assistant-rail-. The chat surface itself reuses the
   drawer's .assistant-tools/.assistant-message classes; only the page chrome is new. */
.assistant-rail{display:grid;grid-template-columns:270px minmax(0,1fr);height:calc(100vh - 210px);min-height:480px;border:1px solid var(--line,#e3e8f0);border-radius:12px;background:#fff;overflow:hidden}
.assistant-rail-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line,#e3e8f0);background:#fafbfe}
.assistant-rail-sidebar header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--line,#e3e8f0)}
.assistant-rail-sidebar h2{margin:0;font-size:14px;color:#17213b}
.assistant-rail-new{white-space:nowrap}
.assistant-rail-list{flex:1;overflow:auto;padding:8px;display:grid;gap:6px;align-content:start}
.assistant-rail-item{display:flex;align-items:stretch;gap:2px;border:1px solid #e7eaf2;border-radius:8px;background:#fff}
.assistant-rail-item.active{border-color:var(--accent,#6d5ae0);box-shadow:0 0 0 1px var(--accent,#6d5ae0)}
.assistant-rail-open{flex:1 1 auto;display:grid;gap:2px;min-width:0;text-align:left;padding:8px;border:0;border-radius:8px;background:transparent;font:inherit;cursor:pointer}
.assistant-rail-open strong{font-size:12px;font-weight:700;color:#17213b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assistant-rail-open small{font-size:10px;color:#737d8d}
.assistant-rail-delete{flex:none;align-self:center;border:0;border-radius:6px;background:transparent;color:#a24949;font-size:11px;line-height:1;padding:6px 8px;cursor:pointer}
.assistant-rail-delete:hover{background:#fbeeee}
.assistant-rail-main{display:flex;flex-direction:column;min-height:0;min-width:0}
.assistant-rail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line,#e3e8f0)}
.assistant-rail-head h2{margin:0;font-size:18px;color:#17213b}
.assistant-rail-head small{display:block;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#657184}
.assistant-rail-head .r-caption{margin:2px 0 0;font-size:11px;color:#737d8d}
.assistant-rail-main .assistant-tools{max-height:26vh;flex:none}
.assistant-rail-main .assistant-rail-thread{flex:1 1 auto;overflow:auto;padding:16px 20px;display:grid;gap:8px;align-content:start}
.assistant-rail-main .assistant-message{max-width:820px;font-size:14px}
.assistant-rail-form{display:grid;gap:8px;padding:12px 18px;border-top:1px solid var(--line,#e3e8f0)}
#assistant-rail-prompt{width:100%;min-height:88px;resize:vertical;border:1px solid #d8deeb;border-radius:8px;padding:8px;font:13px/1.45 Arial,sans-serif}
.assistant-rail-form .r-btn.accent{justify-self:end}
@media(max-width:900px){.assistant-rail{grid-template-columns:1fr;height:auto}.assistant-rail-sidebar{border-right:0;border-bottom:1px solid var(--line,#e3e8f0)}.assistant-rail-list{max-height:200px}}

/* rc-one IMAP EVENTS (/L): calendar sidebar "Email events" — detected event emails under
   their source row, each with Attach to calendar / Detach. Append-only block; every rule is
   imap-event- prefixed. Colors reuse the calendar pill palette (--cal-color), density matches
   the source rows above. */
.imap-event-list{display:grid;gap:4px;padding:8px 6px 4px;border-top:1px solid #e7ebf3;max-height:260px;overflow:auto}
.imap-event-item{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #e7ebf3;border-radius:8px;background:#fff}
.imap-event-item.is-attached{border-color:#bfe3ea;background:#f3fbfd}
.imap-event-main{flex:1 1 auto;min-width:0;display:grid;gap:1px}
.imap-event-summary{font-size:11px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imap-event-when{font-size:10px;color:#5b6474;display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}
.imap-event-meta{font-size:10px;color:#7a8393;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imap-event-missing{color:#a2542f;font-style:italic}
.imap-event-rrule{flex:none;padding:0 5px;border-radius:8px;background:#e6f6f9;color:#0891b2;font-size:9px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.imap-event-attach,.imap-event-detach{flex:none;min-height:0;padding:4px 8px;font-size:10px;border-radius:7px;border:1px solid var(--line);background:#fff;color:#3d4759;cursor:pointer}
.imap-event-attach:hover{border-color:#0891b2;color:#0891b2;background:#f3fbfd}
.imap-event-detach:hover{border-color:#b54453;color:#b54453;background:#fdf3f4}
.imap-event-attach:disabled,.imap-event-detach:disabled{opacity:.55;cursor:default}
.imap-event-empty{padding:8px;font-size:10px;color:#7a8393;border:1px dashed #dfe4ee;border-radius:8px;background:#fafbfd}

/* ===== rc-one: global custom selects (dd.mjs) — 2026-09-21 (/L: "fix ALL dropdowns by using
   our own class — NEVER the default one"). Every native <select> is enhanced by dd.mjs into
   this house dropdown (same visual language as .tesia-dd: anchored panel, 14px font, 36px
   rows, max-height scroll, click-away, keyboard). The real select stays in the DOM as the
   .dd-house-native state holder (visually hidden; value/readers/forms/consumers unchanged).
   APPEND-ONLY: all rules below are new dd-house-* rules — nothing above is modified.
   Excluded from enhancement (stay native): select[data-dd-skip], selects inside
   .tables-crm-bar / .tables-crm-groupbar (Tables lane owns its two), select[multiple]. ===== */
.dd-house{position:relative;display:inline-flex;flex:none;max-width:100%;vertical-align:middle}
.dd-house-trigger{flex:1 1 auto;min-width:0;width:100%;display:flex;align-items:center;gap:8px;min-height:36px;height:36px;padding:5px 28px 5px 12px;font-size:14px;line-height:1.4;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:8px;cursor:pointer;text-align:left}
.dd-house-trigger:hover{border-color:#c9d2e4;background:#fbfcfe}
.dd-house-trigger[aria-expanded=true]{border-color:var(--accent)}
.dd-house-trigger:disabled,.dd-house-trigger[aria-disabled=true]{color:var(--muted);background:var(--soft);border-color:var(--line);cursor:default;opacity:1}
.dd-house-trigger:disabled:hover,.dd-house-trigger[aria-disabled=true]:hover{border-color:var(--line);background:var(--soft)}
.dd-house-chevron{flex:none;margin-left:auto;color:var(--muted);pointer-events:none}
.dd-house-chevron::after{content:'⌄';font-size:12px;line-height:1}
.dd-house-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd-house-label.dd-house-placeholder{color:var(--muted)}
.dd-house-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:95;min-width:100%;max-width:340px;max-height:280px;overflow:auto;background:#fff;border:1px solid #d8e0ec;border-radius:10px;box-shadow:0 12px 28px #1c16412b;padding:6px;display:grid;gap:2px}
.dd-house-option{width:100%;min-height:36px;display:flex;align-items:center;padding:6px 10px;font-size:14px;line-height:1.4;color:var(--text);background:#fff;border:0;border-radius:6px;cursor:pointer;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dd-house-option:hover,.dd-house-option.dd-house-active{background:var(--accent-soft)}
.dd-house-option.dd-house-selected{background:var(--accent-soft);color:var(--accent);font-weight:600}
.dd-house-option.dd-house-option-disabled{color:#b6bdc9;cursor:default;background:transparent}
.dd-house-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;appearance:none!important;-webkit-appearance:none!important}
/* size fits inside existing toolbars (30px rich-text strip keeps its 44px row) */
.mail-rich-toolbar .dd-house{flex:none}
.mail-rich-toolbar .dd-house-trigger{min-height:30px;height:30px;padding-top:2px;padding-bottom:2px;font-size:13px}
.mail-rich-toolbar .dd-house-panel{top:calc(100% + 4px)}
@media(max-width:720px){
.host-search .dd-house{min-width:0!important}
.host-search .dd-house-trigger{height:44px;min-height:44px;font-size:11px;padding:4px 22px 4px 8px}
}

/* ===== rc-one: tables-crm strict-QA fixes — 2026-09-21 (/L defects 1, 3, 4) =====
   1) Group-by + row-limit custom dropdowns (tables-crm-dd): anchored details/summary panel
      (house tesia-dd pattern) with a filter box and keyboard support — replaces the native
      89-option <select> whose OS popup was unusable (/L screenshot 13h20).
   2) Vertical split resizer (tables-crm-vresizer) between the CRM presets section and the
      Mounted data section inside the sidebar: drag to re-split, per-tenant persistence,
      floors for both sections, double-click reset (mirrors the approved width handle).
   3) Honest "empty" chip (tables-crm-emptycol) on columns the connector returns with no
      values (Sales Amount Collected / Admin Fee, /L screenshot 13h22).
   APPEND-ONLY: new rules only, tables-crm- prefixed; no existing rule modified. ===== */

/* --- custom dropdowns (group-by, row limit) --- */
.tables-crm-dd{position:relative;display:inline-flex}
.tables-crm-dd>summary.tables-crm-dd-trigger{list-style:none;display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 7px;border:1px solid #d8deeb;border-radius:6px;background:#fff;color:#3d4759;font:inherit;font-size:11px;cursor:pointer;user-select:none}
.tables-crm-dd>summary.tables-crm-dd-trigger::-webkit-details-marker{display:none}
.tables-crm-dd>summary.tables-crm-dd-trigger:hover{border-color:#b9c2d4}
.tables-crm-dd[open]>summary.tables-crm-dd-trigger{border-color:#5b21b6}
.tables-crm-dd-label{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tables-crm-dd-chev{flex:none;color:#8a93a5;transition:transform .12s}
.tables-crm-dd[open] .tables-crm-dd-chev{transform:rotate(180deg)}
.tables-crm-dd-limit>summary.tables-crm-dd-trigger{min-width:58px;justify-content:space-between}
.tables-crm-dd-panel{position:absolute;top:calc(100% + 4px);left:0;z-index:70;min-width:238px;max-width:280px;display:flex;flex-direction:column;background:#fff;border:1px solid #d8deeb;border-radius:9px;box-shadow:0 14px 34px rgba(20,25,40,.2);overflow:hidden}
.tables-crm-dd-search{padding:6px;border-bottom:1px solid #e7ebf3}
.tables-crm-dd-search input{width:100%;box-sizing:border-box;min-height:26px;border:1px solid #d8deeb;border-radius:6px;padding:3px 7px;font:inherit;font-size:11.5px;color:#3d4759;background:#fff}
.tables-crm-dd-search input:focus{outline:none;border-color:#5b21b6}
.tables-crm-dd-search input::placeholder{color:#9aa3b5}
.tables-crm-dd-list{max-height:300px;overflow:auto;padding:4px;display:grid;gap:1px;align-content:start}
.tables-crm-dd-option{text-align:left;font:inherit;font-size:11.5px;color:#3d4759;padding:5px 8px;border:0;border-radius:6px;background:transparent;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tables-crm-dd-option:hover,.tables-crm-dd-option:focus-visible{background:#f0f2f7;outline:none}
.tables-crm-dd-option.selected{background:#eee6fc;color:#4b0ad2;font-weight:600}
.tables-crm-dd-option[hidden]{display:none}

/* --- vertical split resizer inside the sidebar --- */
.tables-crm-vresizer{flex:none;position:relative;height:10px;cursor:row-resize;background:transparent;transition:background-color .12s;touch-action:none}
.tables-crm-vresizer::after{content:"";position:absolute;left:50%;top:50%;width:34px;height:4px;transform:translate(-50%,-50%);border-radius:2px;background:#dfe4ee;transition:background-color .12s}
.tables-crm-vresizer:hover,.tables-crm-vresizer.dragging{background:#eef1f7}
.tables-crm-vresizer:hover::after,.tables-crm-vresizer.dragging::after{background:#a9b6d0}
.tables-crm-mountsec{flex:1 1 auto;display:flex;flex-direction:column;min-height:64px;min-width:0}
.tables-crm-mountsec>.tables-list{flex:1 1 auto;min-height:0}
.tables-crm-mountsec>footer{margin-top:auto}
.tables-crm-sec.tables-crm-secfixed{flex:0 0 auto;min-height:186px}
.tables-crm-sec.tables-crm-secfixed .tables-crm-list{flex:1 1 auto;max-height:none;min-height:96px}
body.tables-crm-vresizing{cursor:row-resize;user-select:none}
@media(max-width:860px){.tables-crm-vresizer{display:none}}

/* --- honest empty-column chip (connector returned no values) --- */
.tables-crm-emptycol{font-style:normal;font-size:8.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#8a93a5;background:#f1f3f8;border:1px solid #e2e7f0;border-radius:8px;padding:0 5px;margin-left:6px;vertical-align:1px;white-space:nowrap}

/* rc-one tables-crm strict-QA addendum: filter box for the Report columns panel (89 columns —
   same rationale as the group-by dropdown filter). Append-only, tables-crm- prefixed. */
.tables-crm-panel-search{padding:6px 8px;border-bottom:1px solid #e7ebf3}
.tables-crm-panel-search input{width:100%;box-sizing:border-box;min-height:26px;border:1px solid #d8deeb;border-radius:6px;padding:3px 7px;font:inherit;font-size:11.5px;color:#3d4759;background:#fff}
.tables-crm-panel-search input:focus{outline:none;border-color:#5b21b6}

/* ===== rc-one voice rail (specs/rc-one-ledger-voice-rd.md), /L directive. APPEND-ONLY:
   new rules only, voice- prefixed; no existing rule modified.
   1) The Voice module page EMBEDS the Voice Companion kit's own working compact UI (the
      CoWorkerz Home PWA shell on 127.0.0.1:9351, framing the extension app.html) instead of
      rebuilding panels. Only a slim honest header is ours: real-probe status dot (green
      yellow red), status text, Start-companion button, open-standalone link, and a collapsed
      "How this connects" explainer from the Phase-1 discovery. ===== */
.voice-shell{display:flex;flex-direction:column;gap:10px;height:100%;min-height:0}
.voice-head{flex:none;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.voice-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#c3cad8;box-shadow:0 0 0 3px rgba(195,202,216,.25)}
.voice-dot[data-state="green"]{background:#1a9e55;box-shadow:0 0 0 3px rgba(26,158,85,.18)}
.voice-dot[data-state="yellow"]{background:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.18)}
.voice-dot[data-state="red"]{background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.18)}
.voice-head small{display:block;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8a93a5}
.voice-head h2{margin:0;font-size:16px;line-height:1.2}
.voice-spacer{flex:1 1 auto}
.voice-status-text{font-size:11.5px;color:#5b6474}
.voice-btn{border:1px solid #d8deeb;border-radius:7px;background:#fff;color:#3d4759;font:inherit;font-size:11.5px;padding:5px 10px;cursor:pointer}
.voice-btn:hover{border-color:#b9c2d4}
.voice-btn.primary{background:var(--accent,#4b0ad2);border-color:transparent;color:#fff}
.voice-btn.primary:hover{filter:brightness(1.08)}
.voice-open{font-size:11.5px;color:var(--accent,#4b0ad2);text-decoration:none}
.voice-open:hover{text-decoration:underline}
.voice-frame-wrap{flex:1 1 auto;min-height:340px;position:relative;border:1px solid #dfe4ee;border-radius:12px;overflow:hidden;background:#fff}
.voice-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.voice-down{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;background:#fff;margin:0}
.voice-down[role="status"]{border:0;background:transparent}
.voice-down strong{font-size:14px;color:#3d4759}
.voice-down p{margin:0;font-size:11.5px;color:#8a93a5;max-width:480px}
.voice-down code{font-size:10.5px;background:#f1f3f8;border:1px solid #e2e7f0;border-radius:5px;padding:1px 5px;color:#3d4759}
.voice-details{flex:none;font-size:11.5px;color:#5b6474}
.voice-details summary{cursor:pointer;color:#8a93a5;font-size:11px}
.voice-details summary:hover{color:#5b6474}
.voice-details table{border-collapse:collapse;margin-top:6px;max-width:860px}
.voice-details td{padding:2px 12px 2px 0;font-size:11px;color:#5b6474;vertical-align:top}
.voice-details td:first-child{white-space:nowrap}

/* ===== LANE calendar-automations ("+ New automation" filing dialog). APPEND-ONLY,
   cal-auto- prefixed; no existing rule modified. Dialog chrome mirrors
   .calendar-event-dialog (styles.css calendar block). ===== */
.calendar-automation-dialog{width:min(520px,calc(100vw - 32px));border:1px solid #dfd7ed;border-radius:12px;padding:0;box-shadow:0 16px 60px #24133c2e;color:var(--text)}
.calendar-automation-dialog::backdrop{background:#31234b38}
.calendar-automation-dialog form{display:grid;gap:12px;padding:20px;max-height:min(86vh,720px);overflow:auto}
.calendar-automation-dialog header{display:grid;gap:3px}
.calendar-automation-dialog header strong{font-size:16px}
.calendar-automation-dialog header small{font-size:10px;color:var(--muted)}
.calendar-automation-dialog label{display:grid;gap:5px;font-size:11px;font-weight:550;color:#596170}
.calendar-automation-dialog input,.calendar-automation-dialog select,.calendar-automation-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #e7e9ef;border-radius:6px;padding:7px 9px;font:inherit;font-size:12.5px;color:var(--text);background:#fcfcfe}
.calendar-automation-dialog textarea{min-height:96px;resize:vertical}
.cal-auto-fieldset{border:1px solid #e7e9ef;border-radius:8px;padding:10px;display:grid;gap:9px;margin:0;min-width:0}
.cal-auto-fieldset legend{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a93a5;padding:0 4px}
.cal-auto-row{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}
.cal-auto-row>label{white-space:nowrap}
.cal-auto-monthly-selects{display:flex;gap:6px;min-width:0}
.cal-auto-days{display:flex;flex-wrap:wrap;gap:5px}
.cal-auto-day{border:1px solid #d8deeb;border-radius:999px;background:#fff;color:#596170;font:inherit;font-size:11px;padding:4px 9px;cursor:pointer}
.cal-auto-day:hover{border-color:#b9c2d4}
.cal-auto-day.is-on{background:var(--accent,#4b0ad2);border-color:transparent;color:#fff}
.cal-auto-note{display:block;font-size:10.5px;font-weight:400;color:#8a93a5;margin:0}
.cal-auto-rrule{display:inline-block;max-width:100%;background:#f1f3f8;border:1px solid #e2e7f0;border-radius:6px;padding:3px 8px;font:10.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#3d4759;word-break:break-all}
.cal-auto-files{font-weight:400}
.cal-auto-preview-label{display:block;font-size:11px;font-weight:550;color:#596170;margin-bottom:5px}
.cal-auto-preview{margin:0;background:#f6f7fb;border:1px solid #e2e7f0;border-radius:8px;padding:9px 10px;font:10.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#3d4759;white-space:pre-wrap;word-break:break-word;max-height:180px;overflow:auto}
.cal-auto-status{margin:0;font-size:11px;color:#5b6474;min-height:1em}
.cal-auto-status.error{color:#dc2626}
.cal-auto-status.busy{color:#5b6474}
.calendar-automation-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.calendar-automation-dialog footer .accent{background:var(--accent);border-color:var(--accent);color:#fff}
.calendar-automation-dialog footer .accent:hover{background:#3c08b1}
.calendar-automation-dialog footer button:disabled{opacity:.55;cursor:default}
/* scoped [hidden] enforcement: the display rules above would otherwise defeat the
   hidden attribute on the recurrence-builder's conditional rows (UA [hidden] loses
   to author class selectors). Contained to the automation dialog. */
.calendar-automation-dialog [hidden]{display:none!important}

/* ===== rc-one sales-data lane (specs/rc-one-ledger-sales-data-sources.md). APPEND-ONLY,
   tables-crm- prefixed. Monthly Sales per-rep dollar strip: the warehouse movement board's
   own "*Movements" summary, derived client-side from the merged run (closed Confirmed Sales
   sheets fetched live so 'Sales Amount Collected' carries real amounts). ===== */
.tables-crm-salesstrip{margin:0 14px 10px;border:1px solid #e7ebf3;border-radius:8px;background:#fbfcfe;font-size:11.5px;color:#3d4759}
.tables-crm-salesstrip>summary{cursor:pointer;padding:7px 10px;font-size:11px;color:#5b6474;user-select:none}
.tables-crm-salesstrip>summary strong{color:#3d4759}
.tables-crm-sales-table{border-collapse:collapse;min-width:280px;margin:0 10px 6px}
.tables-crm-sales-table th,.tables-crm-sales-table td{border-bottom:1px solid #eef1f7;padding:4px 12px 4px 0;text-align:left;font-weight:600;font-size:11.5px}
.tables-crm-sales-table thead th{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:#8a93a5;font-weight:600}
.tables-crm-sales-table tfoot th,.tables-crm-sales-table tfoot td{border-top:1px solid #e7ebf3;border-bottom:none;font-weight:700}
.tables-crm-sales-num{text-align:right;font-variant-numeric:tabular-nums}
.tables-crm-sales-note{margin:0 10px 8px;font-size:10.5px;color:#8a93a5;line-height:1.45}

/* ===== rc-one QA copy fixes (specs/rc-one-ledger-qa-copy-fixes.md). APPEND-ONLY block.
   RC-QA-01: mail sidebar offline state — mail child down shows an explicit offline note
   with a retry action; the plain "No mailbox assigned" copy stays for registry-empty only.
   RC-QA-03: calm, non-alarmed note style for dormant-tenant task-state copy. ===== */
.mail-service-offline{display:grid;gap:6px;text-align:center}
.mail-service-offline p{margin:0;line-height:1.6;color:#6b7382}
.mail-service-offline strong{color:#4a5160;font-weight:600}
.mail-service-offline button{min-height:28px;padding:4px 14px;font-size:11px;color:var(--accent);border:1px solid var(--line);border-radius:5px;background:#fff;justify-self:center;cursor:pointer}
.mail-service-offline button:hover{border-color:var(--accent)}
.task-calm-note{font-size:12px;color:#5b6474;background:#f6f7fa;border:1px solid #e7ebf3;border-radius:6px;padding:10px 14px;line-height:1.6;margin:0 0 14px}

/* ===== kanban-offline (rc-one RC-QA-02, 2026-09-25 · specs/rc-one-ledger-kanban-degrade.md).
   APPEND-ONLY. Honest degradation card: when the local Kanban-izer service (:8766) is down,
   the stage shows this card instead of a dead viewer iframe. House look — white stage,
   line border card, muted copy, accent .r-btn reuse. ===== */
.kanban-offline{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:32px 24px;text-align:center;background:#fff}
.kanban-offline strong{font-size:13px;font-weight:600;color:var(--text)}
.kanban-offline p{margin:0;max-width:420px;font-size:11px;line-height:1.7;color:#69758a}
.kanban-offline code{font-size:10px;background:#f0f2f7;border:1px solid #e7ebf3;border-radius:4px;padding:1px 5px}
.kanban-offline .r-btn{margin-top:6px}

/* ===== upcoming-calm (rc-one RC-WALK-03, 2026-09-25 · specs/rc-one-ledger-rewalk-and-cut.md).
   APPEND-ONLY. Calm-dormant note for the Email Upcoming pane on dormant tenants — the same
   RC-QA-03 treatment .task-calm-note gave Co-workers: honest, muted, no red/error styling,
   role="status" instead of role="alert". ===== */
.upcoming-calm{margin:0;padding:10px 12px;color:#5b6474;font-size:11px;line-height:1.6;border-top:1px solid var(--line)}

/* ===== rc-one gui-polish B064 lane (specs/rc-one-ledger-gui-polish-b064.md). APPEND-ONLY:
   new rules only (new classes or narrow data-module scoping); NO existing rule modified.
   Slice 1 — grouped master rail (ui-whiteboard "Grouped master rail": Desk + Assistant
   pinned top, then Communicate / Work / Knowledge) + menu dedupe (Chat's one-item sidebar
   removed — master rail owns module identity, in-module nav is contextual only). ===== */
.rail-group{display:grid;gap:6px}
.rail-categories .rail-group+.rail-group{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.rail-group-label{display:none;padding:0 10px 2px;font-size:9px;font-weight:650;letter-spacing:.09em;text-transform:uppercase;color:#a4abb9}
.rail-expanded .rail-group-label{display:block}
.master-rail:not(.rail-expanded) .rail-group{gap:10px}
.dt-mount[data-module=messages] .module-layout{grid-template-columns:minmax(0,1fr)}

/* ===== rc-one gui-polish B064 lane, slice 2 (specs/rc-one-ledger-gui-polish-b064.md).
   APPEND-ONLY. Meaningful status colors: mount.mjs::badge() now emits a normalized
   data-state attribute (ok / muted / warn) derived from the status WORD — unknown words
   keep the neutral badge. Shared palette, labels unchanged. ===== */
.badge[data-state="ok"]{background:#e7f5ed;color:#1c7c4d}
.badge[data-state="muted"]{background:#f1f3f8;color:#68727f}
.badge[data-state="warn"]{background:#fcefea;color:#b0413e}
/* Useful empty states (ui-whiteboard #4): centered stack, icon chip, one readable hint.
   Scoped to .primary-pane so module-internal empties (mail reader, CRM lists) keep their
   own tuned layouts. */
.primary-pane .empty{display:grid;justify-items:center;padding:36px 20px}
.primary-pane .empty strong{font-size:12.5px;font-weight:600;color:#5c6675}
.primary-pane .empty p{max-width:460px}
.primary-pane .empty .empty-icon{width:44px;height:44px;display:grid;place-items:center;background:#f1edf9;border-radius:12px;margin:0 0 10px;font-size:20px}
/* Consistent cards (ui-whiteboard #2): records and connection cards share the editor's
   soft elevation — same border/radius/padding family, no layout change. */
.primary-pane .record,.primary-pane .connection{box-shadow:0 1px 4px #20204006}

/* ===== rc-one gui-polish B064 lane, slice 3 (specs/rc-one-ledger-gui-polish-b064.md).
   APPEND-ONLY. Command palette (Ctrl/Cmd+K, .cmdk-overlay lives on <body>) + context
   breadcrumbs in the header (.context-crumbs) + the Ctrl-K chip (.host-cmdk). Header
   chrome colors are deliberate: the hostbar is --accent, so crumbs/chip use white alphas
   (no dependency on tenant accent). ===== */
.context-crumbs{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#ffffffb8;white-space:nowrap;min-width:0;overflow:hidden}
.context-crumbs .crumb{overflow:hidden;text-overflow:ellipsis}
.context-crumbs .crumb-sep{opacity:.55}
.context-crumbs .crumb-current{color:#fff;font-weight:600}
@media(max-width:1100px){.context-crumbs{display:none}}
.host-cmdk{display:inline-flex;align-items:center;gap:6px;height:32px;min-height:32px;padding:0 9px;border-radius:6px;font-size:11px;flex:0 0 auto}
.host-cmdk kbd{font:600 10px/1 var(--font);background:#ffffff20;border:1px solid #ffffff44;border-radius:4px;padding:2px 5px;color:#fff}
.host-cmdk .cw-icon{width:14px;height:14px;flex:0 0 14px}
@media(max-width:720px){.host-cmdk kbd{display:none}}
.cmdk-overlay{position:fixed;inset:0;z-index:90;background:#24133c38;display:flex;align-items:flex-start;justify-content:center;padding:12vh 16px 0}
.cmdk{width:min(560px,100%);background:#fff;border-radius:12px;box-shadow:0 24px 80px #24133c45;display:flex;flex-direction:column;overflow:hidden}
.cmdk-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);color:#8a93a5}
.cmdk-head .cw-icon{width:16px;height:16px;flex:0 0 16px}
.cmdk-input{flex:1;border:0;outline:0;font:inherit;font-size:14px;color:var(--text);background:transparent;min-width:0}
.cmdk-input::placeholder{color:#a0a6b1}
.cmdk-list{max-height:46vh;overflow:auto;padding:6px}
.cmdk-item{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:4px 10px;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:9px 10px;font:inherit;color:#3d4759;cursor:pointer}
.cmdk-item .cw-icon{grid-row:1;width:16px;height:16px;color:#8a93a5}
.cmdk-item .cmdk-label{grid-column:2;grid-row:1;font-size:12.5px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmdk-item small{grid-column:2;font-size:10px;color:#8a93a5}
.cmdk-item em{grid-column:3;grid-row:1;font-style:normal;font-size:9px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:#a4abb9;white-space:nowrap}
.cmdk-item.active,.cmdk-item:hover{background:var(--accent-soft,#efe9fb);color:var(--accent,#4b0ad2)}
.cmdk-item.active small,.cmdk-item:hover small{color:#6d5a96}
.cmdk-empty{padding:18px;text-align:center;font-size:11.5px;color:#8a93a5;margin:0}
.cmdk-foot{display:flex;justify-content:space-between;padding:8px 14px;border-top:1px solid var(--line);font-size:10px;color:#a0a6b0}

/* ===== rc-one gui-polish B064 lane, slice 4 (specs/rc-one-ledger-gui-polish-b064.md).
   APPEND-ONLY. Recents & favorites in the command palette (star toggles, pinned/recent
   groups) + the Voice module's calm-dormant probe-down state (neutral 'off' dot — the red
   state stays reserved for genuine alarm surfaces; honest probe text unchanged). ===== */
.cmdk-row{position:relative}
.cmdk-row .cmdk-item{padding-right:30px}
.cmdk-star{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:15px;line-height:1;color:#b9c2d4;cursor:pointer;padding:5px;border-radius:6px}
.cmdk-star:hover{color:#8a76c9;background:#f1edf9}
.cmdk-star.on{color:#c79a2a}
.cmdk-row:has(.cmdk-star.on) .cmdk-item em{color:#c79a2a}
.voice-dot[data-state="off"]{background:#c3cad8;box-shadow:0 0 0 3px rgba(195,202,216,.25)}


/* ===== b065 lane (/L notes 2026-09-27): rail density, shortcuts entry, search scope line ===== */
/* NOTE-1: the rail read too tall — 42px items + 6px gaps stacked 17 rows past one screen.
   Tightened to a calm 34px rhythm; collapsed mode keeps its own roomier 44px touch rules.
   Double-class specificity: ui-b023.css loads AFTER styles.css and re-asserts 42px. */
.master-rail .rail-item.rail-item{min-height:34px;margin-bottom:0;padding-top:6px;padding-bottom:6px}
.master-rail .rail-item .rail-label{font-size:12.5px}
.rail-categories .rail-group.rail-group{gap:2px}
.rail-categories .rail-group+.rail-group{margin-top:8px;padding-top:8px}
.rail-expanded .rail-group-label{padding:0 10px 3px}
.rail-item[data-tab=settings]{margin-top:6px}
/* NOTE-2: the rail Shortcuts action opens the command palette (mounted in mount.mjs) */
.master-rail .rail-shortcuts{color:inherit}
/* NOTE-4: "This folder" scope must sit on the same optical line as the placeholder —
   the generic dd-house trigger rode 2px low and 4px short inside the 36px host-search. */
.host-search .dd-house-trigger.dd-house-trigger{height:34px;min-height:34px;padding:0 26px 0 12px;display:flex;align-items:center;gap:6px}
.host-search .dd-house-trigger.dd-house-trigger .dd-house-label{line-height:34px;height:auto}
/* the generic trigger is a 2-row GRID (label row + chevron row) — that stack overflowed the
   34px bar and pushed "This folder" above the search line (/L screenshot 2026-09-27). */
.host-search .dd-house-trigger.dd-house-trigger .dd-house-chevron{position:static;margin:0}
/* keyboard-only top chip: square, centered icon (no kbd text anymore) */
.host-cmdk{width:32px;justify-content:center;padding:0}

/* ===== Messages rail (/L 2026-09-27, restyled 2026-09-27 late): reuses the Kanban
   module's exact kanbanizer-* chrome from ui-b023.css — no second sidebar design. Only
   the content-level pieces (channel icons, count pill, bubbles, composer) are local. ===== */
.inbound-slot{flex:1;min-width:0;height:100%}
.inbound-root .kanbanizer-module{grid-template-columns:minmax(250px,300px) minmax(0,1fr)}
/* ===== unified stage (2026-09-27, settled 2026-09-28 per /L): EVERY module stage =
   grey canvas + 16px margin + the content in a rounded bordered white container.
   Nothing flush. Kanban stays per-tenant. ===== */
.module-layout.module-layout-full>.primary-pane,
.module-layout>.primary-pane{
  padding:16px;background:#f8f9fc;overflow:hidden;min-height:0;display:flex;
}
.module-layout.module-layout-full>.primary-pane>.assistant-slot,
.module-layout.module-layout-full>.primary-pane>.files-slot,
.module-layout.module-layout-full>.primary-pane>.tesia-sites-slot,
 .module-shell>.email-slot{
  flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;padding:16px;background:#f8f9fc;
}
/* Settings sub-pages (connectors/keys/health) must scroll — the unified pane overflow:hidden
   locked them (/L: scrollbar not visible, cannot see all MCP connectors). */
.module-layout>.primary-pane{flex-direction:column;overflow:auto}
.module-layout>.primary-pane:has(>.workspace-settings){display:block}
/* Messages: NO slot padding — the kanbanizer-module carries its own Kanban-exact inset */
.module-layout.module-layout-full>.primary-pane>.inbound-slot{
  flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:#f8f9fc;
}
.module-layout.module-layout-full>.primary-pane>.assistant-slot>*,.module-layout.module-layout-full>.primary-pane>.files-slot>*,.module-layout.module-layout-full>.primary-pane>.tesia-sites-slot>*,.module-layout.module-layout-full>.primary-pane>.inbound-slot>*{flex:1;min-height:0;min-width:0}
/* white rounded containers on the canvas — the Kanban look, everywhere */
.module-layout.module-layout-full>.primary-pane>.inbound-slot>.kanbanizer-module,
.module-layout.module-layout-full>.primary-pane>.files-slot>.files-explorer,
.module-layout.module-layout-full>.primary-pane>.tesia-sites-slot>.site-shell{
  height:100%;background:#fff;border:1px solid #e2e7f0;border-radius:10px;
}
.module-shell>.email-slot>.email-app{
  border:1px solid #e2e7f0;border-radius:10px;overflow:hidden;
}
.assistant-rail.assistant-rail{height:100%}
.files-explorer.files-explorer{height:100%}
/* Settings content: cards keep their margin on the grey canvas */
.module-layout>.primary-pane:has(>.workspace-settings){overflow:auto}
/* ===== Messages quick-note POST-IT overlay (/L 2026-09-27): sticky notes pinned ON the
   site preview — draggable, editable. Sticky look = shared .sticky-note rules (ui-b023). ===== */
.site-preview{position:relative}
.site-postits{position:absolute;inset:0;pointer-events:none;z-index:5}
.site-postit{position:absolute;width:216px;pointer-events:auto;transform:rotate(-1.2deg);cursor:default}
.site-postit:nth-child(even){transform:rotate(1.1deg)}
.site-postit:hover{transform:rotate(0deg) scale(1.02)}
.site-postit.dragging{transform:rotate(-.35deg) scale(1.04);box-shadow:0 14px 30px #17213b26;cursor:grabbing}
.site-postit-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;font-weight:650;color:#0000008c;padding:6px 8px;cursor:grab;user-select:none;touch-action:none}
.site-postit-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-postit-grip{cursor:grab;opacity:.6}
.site-postit-text{flex:1 1 auto;min-height:0;margin:0;padding:0 10px;font-size:12.5px;line-height:1.45;overflow:auto;overflow-wrap:anywhere}
textarea.site-postit-text{border:0;background:transparent;outline:none;resize:none;font-family:inherit}
.site-postit-foot{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 8px;font-size:10px;color:#00000073}
.site-postit-foot .r-btn{min-height:26px;padding:3px 9px;font-size:11px}
.site-postit-hint{position:absolute;top:10px;left:50%;transform:translateX(-50%);pointer-events:auto;background:#ffffffd9;border:1px solid #e2e7f0;border-radius:8px;padding:6px 12px;font-size:11.5px;color:#7a8393;white-space:nowrap}
.inbound-status{padding:10px 12px;font-size:12.5px;color:#7a8393}
.inbound-empty{margin:auto;text-align:center;color:#7a8393;font-size:13px;padding:18px}
.inbound-empty small{font-size:11px}


/* ===== exterior-pane zero padding + sidebar-head unification (2026-09-28, /L) ===== */
/* NO padding on the exterior pane — the grey canvas + inset belong to each page's stage.
   CRM/Reports keep their own card design; every stage page below is covered. */
.module-layout .primary-pane,
.module-layout.module-layout-full>.primary-pane{padding:0!important}
.module-layout>.primary-pane:has(>.workspace-settings){background:#f8f9fc;overflow:auto}
.module-layout>.primary-pane:has(>.workspace-settings)>*{margin:16px 16px 0}
.module-layout>.primary-pane:has(>.workspace-settings)>*:last-child{margin-bottom:16px}
/* the Sites sidebar-head's tiny-cute style — now on Kanban | Calendar | Assistant too */
.kanbanizer-sidebar-head,.calendar-sidebar header,.tables-sidebar header,.assistant-rail-sidebar header{
  padding:6px 10px;font-size:11px;
}
.kanbanizer-sidebar-head strong,.assistant-rail-sidebar header h2,.calendar-sidebar header strong,.calendar-sidebar header h2,.tables-sidebar header strong{font-size:11px;margin:0}


/* ===== Messages stage content (2026-09-28, /L: formatting lost in the settled-rewrite —
   these rules were accidentally deleted; restored. Chrome = kanbanizer-* from ui-b023.) ===== */
.inbound-root{flex:1;min-width:0;width:100%;height:100%}
.inbound-contact.inbound-contact{display:flex;align-items:center;gap:10px}
.inbound-contact .inbound-chicon{width:34px;height:34px;flex-basis:34px}
.inbound-contact .inbound-chicon svg{width:20px;height:20px}
.inbound-chicon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%}
.inbound-chicon svg{width:16px;height:16px}
/* B082 (/L): the official WhatsApp app symbol (assets/icons/whatsapp-app-symbol.svg) is a SELF-COLORED tile — brand gradient + white glyph — so the chip steps aside (transparent) and the mark reads identically on both themes; no currentColor needed. */
.inbound-chicon.wa{background:transparent}
.inbound-chicon.ig{background:linear-gradient(135deg,#fdf3f8,#f5e6fb);color:#d6249f}
.inbound-chicon.fv{background:transparent;color:#e0445c}
/* official FanVue mark: the SVG is a full rounded-square icon — let it fill the circle-box
   (list 30px, contact 34px, main-head 26px — same footprint the PNG had) */
.inbound-chicon.fv svg{width:100%;height:100%;display:block}
.inbound-main-head .inbound-chicon.fv svg{width:100%;height:100%}
.inbound-chicon.sms{background:#e3eaff;color:#3355c8}
.inbound-chicon.other{background:#eef1f7;color:#5a6474}
.inbound-contact-copy{display:grid;gap:1px;min-width:0;flex:1}
.inbound-contact-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbound-contact-copy small{font-size:10px;color:#7a8393}
.inbound-platform{flex:0 0 auto;font-size:9.5px;font-weight:650;letter-spacing:.03em;padding:2px 8px;border-radius:99px}
.inbound-platform.wa{background:#dcf7ec;color:#128c5e}
.inbound-platform.fv{background:#dcfce8;color:#0a7d33}
.inbound-platform.sms{background:#e3eaff;color:#3355c8}
.inbound-platform.other{background:#eef1f7;color:#5a6474}
.inbound-count{flex:0 0 auto;min-width:22px;text-align:center;font-size:11px;font-weight:650;padding:2px 7px;border-radius:99px;background:#eef1f7;color:#4a5468}
.inbound-main-head{display:flex;align-items:center;gap:10px;font-size:14px}
.inbound-main-head .inbound-chicon{width:26px;height:26px;flex-basis:26px}
.inbound-main-head .inbound-chicon svg{width:14px;height:14px}
.inbound-channel{font-size:10px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:#7a8393;background:#eef1f7;border-radius:99px;padding:3px 9px}
.inbound-bubbles{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.inbound-bubble{max-width:72%;padding:8px 12px;border-radius:14px;font-size:13.5px;line-height:1.45}
.inbound-bubble p{margin:0 0 2px;white-space:pre-wrap;overflow-wrap:anywhere}
.inbound-bubble small{font-size:10px;opacity:.62}
.inbound-bubble.in{align-self:flex-start;background:#fff;border:1px solid var(--line,#e2e7f0);border-bottom-left-radius:4px}
.inbound-bubble.out{align-self:flex-end;background:var(--accent,#4b0ad2);color:#fff;border-bottom-right-radius:4px}
.inbound-bubble.out small{color:#ffffffcc}
.inbound-composer{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e2e7f0;background:#fff}
.inbound-composer input{flex:1;min-width:0;height:36px;border:1px solid #e2e7f0;border-radius:8px;padding:0 12px;font-size:13px}
.inbound-composer .inbound-send{height:36px;border:0;border-radius:8px;background:var(--accent,#4b0ad2);color:#fff;font-size:12.5px;padding:0 14px;cursor:pointer}
.inbound-composer .inbound-send:disabled{opacity:.45;cursor:default}
.inbound-bubble.failed{border-color:#c0392b}
.inbound-bubble.failed small{color:#c0392b}
.inbound-status{padding:10px 12px;font-size:12.5px;color:#7a8393}
.inbound-empty{margin:auto;text-align:center;color:#7a8393;font-size:13px;padding:18px}
.inbound-empty small{font-size:11px}
.inbound-contact-list .inbound-contact{width:100%}


/* ===== Calendar Upcoming dock + Email spacing (2026-09-28, /L) ===== */
.calendar-slot{padding:0;background:transparent}
.calendar-slot>.calendar-module{background:#fff;border:1px solid #e2e7f0;border-radius:10px}
.calendar-slot.upcoming-open>.upcoming-host{display:flex;flex:0 0 300px;flex-direction:column;min-width:0;background:#fff;border:1px solid #e2e7f0;border-radius:10px;overflow:hidden;margin-left:12px}
.email-slot{padding:0;background:transparent}
.email-app{background:#f8f9fc;gap:14px}
.email-app>.mail-folder-rail,.email-app>.mail-message-list,.email-app>.mail-reader,.email-app>.upcoming-host{background:#fff;border:1px solid #e2e7f0;border-radius:10px}
.email-app.upcoming-open{grid-template-columns:var(--mail-folders-width,220px) var(--mail-list-width,350px) minmax(0,1fr) minmax(240px,300px)}
.email-app.upcoming-open .upcoming-host{display:flex;flex-direction:column;grid-column:4;grid-row:1}

/* ===== Email module defect pass (2026-09-28, /L defect-finder: defects 4 + 5).
   APPEND-ONLY. Both defects are cascade/positioning bugs — no template change needed
   (the message-row markup lives in mail-layout.mjs, the pane markup in upcoming-pane.mjs;
   both already emit the right structure). Every rule below out-specifies or post-dates the
   rules it overrides, so the aiw.css/ui-b023.css files that load AFTER styles.css cannot
   re-assert the old geometry. ===== */

/* ----- DEFECT 4: message-row tag/star icons detached from the subject block. -----
   Root cause: ui-b023.css/aiw.css pin .mail-row-actions at position:absolute;bottom:4px;
   right:8px, and styles.css still reserves an empty 26px third row in .mail-row-copy — so
   the icon strip floats in that empty bottom strip ("own line at the row's bottom-right"),
   rows grow past their text (ragged bottoms) and the unread/tag-accent left border runs
   through the emptiness instead of tracking the text block. Fix: anchor the strip ON the
   subject's line (row pad 7px + heading line 22px = subject top 29px; the 26px strip is
   optically centered on the 18px subject line at top:25px), give the subject back its
   right-hand icon clearance, drop the empty legacy copy row so rows hug their text, and
   re-assert that the unread/tag-accent border spans the full (now text-hugging) row. */
.email-app .mail-message-list .mail-row-actions{position:absolute;top:25px;bottom:auto;right:10px}
.email-app .mail-message-list .mail-row-subject{padding-right:88px}
.email-app .mail-message-list .mail-row-copy.mail-row-copy{grid-template-rows:auto auto}
.email-app .mail-message-list .mail-message-row::before{top:0;bottom:0}
@media(max-width:720px){
 .email-app .mail-message-list .mail-row-actions{top:18px;right:6px}
 .email-app .mail-message-list .mail-row-subject{padding-right:105px}
}

/* ----- DEFECT 5: Upcoming pane header misaligned with the reader header. -----
   Root cause: .upcoming-header (10px pad + 26px content + 1px border = 47px) sits ~6px
   shorter than .mail-reader-toolbar (52px, border-box), so the pane's first "TOMORROW"
   day label hangs below the reader's "Select a message" header line; the "Event" pill row
   ends flush at the pane edge where the thin overlay scrollbar paints over the 12px pad.
   Fix: one shared pane-header token pair for both headers + explicit right padding on the
   pill row. Mobile keeps its tuned 46px reader toolbar (guarded by min-width:721px). */
.email-app{--pane-header-h:52px;--pane-header-pad-x:12px}
@media(min-width:721px){
 .email-app .mail-reader-toolbar{height:var(--pane-header-h);min-height:var(--pane-header-h);max-height:var(--pane-header-h)}
}
.email-app .upcoming-header{height:var(--pane-header-h);min-height:var(--pane-header-h);padding:0 var(--pane-header-pad-x)}
.email-app .upcoming-item{padding-right:16px}

/* ----- DEFECT 4/5 verification follow-up (same pass, live-DOM + screenshot verified):
   with both fixes above active, the one control the tight-toolbar budget never accounted
   for still overflowed — the toolbar's Upcoming toggle carried its 60px text label at list
   panes ≤430px, driving .mail-list-toolbar scrollWidth past clientWidth (401 > 380
   measured at the default 381px pane) so the button slid under the reader pane's edge and
   its label clipped. Inside the EXISTING .mail-message-list size container (ui-b023.css
   "container-type:inline-size" — the same one the 430px filter/sort rules above it in
   aiw/ui-b023 already query), drop the label and keep the calendar icon; the button keeps
   its aria-label + title, and margin-left:auto still pins it to the pane's right edge. */
@container (max-width:430px){
 .mail-list-toolbar .upcoming-toggle .upcoming-toggle-label{display:none}
 .mail-list-toolbar .upcoming-toggle{padding:3px 6px;min-width:0}
}

/* ===== Tenant profile system (2026-09-28, /L: per-tenant identity card modeled on the
   subagents profile page). APPEND-ONLY. The card lives on Settings › Workspace identity
   (settings-view.mjs section 'workspace'); the photo also renders in the header account
   chip and the Settings sidebar identity strip (mount.mjs). ===== */
.settings-profile-card{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px}
.settings-profile-card>.settings-key-head{margin-bottom:4px}
.settings-profile-row{border-top:1px solid var(--line);margin-top:10px;padding-top:12px;display:grid;gap:10px}
.settings-profile-head{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.settings-profile-head strong{font-size:12px;font-weight:600}
.settings-profile-head code{font-size:11px;color:#5d6570}
.settings-profile-photo{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;overflow:hidden;background:#eef1f6}
.settings-profile-photo img{width:100%;height:100%;object-fit:cover;display:block}
.settings-profile-monogram{font-size:12px;font-weight:650;color:#7b828f}
.settings-profile-fields{display:flex;flex-wrap:wrap;gap:10px 14px}
.settings-profile-fields .settings-inline{flex:1 1 220px}
.settings-profile-fields .settings-profile-bio{flex:1 1 100%}
.settings-profile-fields textarea{width:100%;min-height:64px;resize:vertical;font:inherit;color:inherit;background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 9px}
.settings-nav-identity{display:flex;align-items:center;gap:9px;margin:8px 0 2px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0}
.settings-nav-photo{width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover;display:block}
span.settings-nav-photo{display:grid;place-items:center;background:var(--accent,#1e40af);color:#fff;font-size:11px;font-weight:650}
.settings-nav-copy{display:grid;min-width:0;line-height:1.25}
.settings-nav-copy strong{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-nav-copy small{font-size:10px;color:#7b828f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:720px){.settings-profile-fields .settings-inline{flex-basis:100%}}

/* ===== Messages channel-filter buttons (2026-09-28, /L): little brand SQUARES in the
   sidebar head — one per channel present in the workspace; click filters the contact
   list, click again clears. Inactive = dimmed, active = accent ring. Square per /L
   (border-radius 50% read as squashed ovals next to the head text). ===== */
.inbound-chfilters{display:flex;align-items:center;gap:5px;margin-left:auto}
.inbound-chfilter{width:20px;height:20px;min-width:20px;min-height:20px;flex:0 0 20px;padding:0;border:0;border-radius:5px;display:grid;place-items:center;background:#eef1f7;cursor:pointer;opacity:.45;transition:opacity .15s,box-shadow .15s}
.inbound-chfilter:hover{opacity:.8}
.inbound-chfilter.active{opacity:1;box-shadow:0 0 0 2px var(--accent,#4b0ad2)}
.inbound-chfilter svg{width:13px;height:13px;display:block}
.inbound-chfilter.wa{background:transparent}/* B082: self-colored WhatsApp tile */
.inbound-chfilter img{width:15px;height:15px;display:block;border-radius:4px}
.inbound-chicon.sz{background:#f3edf6;color:#4A154B}
.inbound-platform.sz{background:#f3edf6;color:#4A154B}

/* ── M4.4 theme-picker widget (template-widget shared with slackerZ) ── */
.thgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;justify-items:start}
.thcard{cursor:pointer;border-radius:10px;position:relative;outline:2px solid transparent;outline-offset:2px;width:120px}
.thcard:hover{transform:translateY(-1px)}
.thcard.inuse{outline-color:var(--th-active,#e01e5a)}
.thcard.inuse::after{content:"";position:absolute;top:-7px;right:7px;width:20px;height:20px;border-radius:50%;
    background-color:var(--th-presence,#2bac76);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.6 3.3 3.3L17.4 8.8' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size:13px;background-repeat:no-repeat;background-position:center;box-shadow:0 1px 5px rgba(0,0,0,.35)}
.thwidget{border-radius:9px;padding:6px;background:var(--wbg);color:var(--wtext);height:120px;
    box-shadow:0 3px 10px rgba(0,0,0,.16);font-size:11px;box-sizing:border-box;overflow:hidden}
.thw-head{display:flex;align-items:center;gap:5px;font-weight:800;padding:5px 7px;margin-bottom:4px;
    border-radius:4px;background:var(--whover);font-size:10.5px;white-space:nowrap;overflow:hidden}
.thw-head .thw-presence{width:8px;height:8px;border-radius:50%;background:var(--wpresence)}
.thw-item{display:flex;align-items:center;gap:5px;padding:4px 7px;border-radius:4px;position:relative;color:var(--wtext)}
.thw-item .bar{height:6px;width:58%;border-radius:99px;background:currentColor;opacity:.75}
.thw-item .thw-presence{width:7px;height:7px;border-radius:50%;background:var(--wpresence);flex:none}
.thw-item.active{background:var(--wactive);color:var(--wactivetext)}
.thw-item.active .thw-mention{background:var(--wmention)}
.thw-mention{margin-left:auto;background:var(--wmention);color:#fff;font-size:9px;font-weight:800;
    border-radius:8px;padding:0 5px;line-height:13px}
.thgap{grid-column:1/-1;height:14px}   /* /L: the dark rows split with a gap, no titles */
  .thname{margin-top:6px;font-size:11.5px;font-weight:700;color:#1d1c1d;display:flex;justify-content:space-between;align-items:center}

/* ═══ rc-tenant-palette (M4.4 template-widget wear, /L 2026-10-04) ═══
   The tenant's picked palette (Settings › Themes → theme-widget.mjs THEMES) tints the
   chrome — top header bar, master rail, module/settings sidebars, status strip — like
   slackerZ. mount.mjs resolves the worn palette on boot + every tenant switch, mounts the
   --th-* vars via applyThemeVars() and toggles .th-worn on <html>; every rule below is
   gated on .th-worn, so an accent-only tenant (themeName "") keeps today's look untouched.
   LAWS: the main content area stays PALE in every theme (only chrome wears the palette);
   text contrast is forced by the module's var derivation (--th-hover-text/--th-active-text);
   the accent system (--accent) keeps working underneath — nothing here falls back through
   --accent, the accent keeps driving the brand touches it always did. */
.th-worn .hostbar{background:var(--th-column,var(--accent));color:var(--th-text,#fff)}
.th-worn .hostbar .wordmark,.th-worn .hostbar .host-identity{color:var(--th-text,#fff)}
.th-worn .hostbar nav a,.th-worn .hostbar .host-account-link{color:var(--th-text,#fff)}
.th-worn .hostbar button{border-color:color-mix(in srgb,var(--th-text,#fff) 27%,transparent);background:color-mix(in srgb,var(--th-text,#fff) 7%,transparent);color:var(--th-text,#fff)}
.th-worn .hostbar button:hover{background:color-mix(in srgb,var(--th-text,#fff) 13%,transparent)}
.th-worn .hostbar .host-search{background:color-mix(in srgb,var(--th-text,#fff) 12%,transparent)}
.th-worn .hostbar .host-search input{color:var(--th-text,#fff)}
.th-worn .hostbar .host-search input::placeholder{color:color-mix(in srgb,var(--th-text,#fff) 70%,transparent)}
.th-worn .hostbar .host-search select,.th-worn .hostbar .host-search button{color:var(--th-text,#fff)}
.th-worn .master-rail{background:var(--th-rail,#1d1c1d)}
.th-worn .master-rail button{color:var(--th-text,#fff)}
.th-worn .master-rail button:hover{background:var(--th-hover);color:var(--th-hover-text)}
.th-worn .master-rail .selected,.th-worn .master-rail .selected:hover{background:var(--th-active);color:var(--th-active-text)}
.th-worn .master-rail .rail-group{border-top-color:color-mix(in srgb,var(--th-text,#fff) 14%,transparent)}
.th-worn .master-rail .rail-group-label{color:color-mix(in srgb,var(--th-text,#fff) 48%,transparent)}
.th-worn .dt-mount .module-navigation{background:var(--th-column,var(--soft));color:var(--th-text,#fff);border-color:color-mix(in srgb,var(--th-text,#fff) 14%,transparent)}
.th-worn .module-navigation .list-title,.th-worn .module-navigation .settings-nav-group{color:color-mix(in srgb,var(--th-text,#fff) 48%,transparent)}
.th-worn .module-navigation .module-nav-item{color:var(--th-text,#fff)}
.th-worn .module-navigation .module-nav-item:hover{background:var(--th-hover);color:var(--th-hover-text)}
.th-worn .module-navigation .module-nav-item.selected{background:var(--th-active);color:var(--th-active-text)}
.th-worn .module-navigation .settings-nav-identity{background:var(--th-hover);border-color:color-mix(in srgb,var(--th-text,#fff) 14%,transparent)}
.th-worn .module-navigation .settings-nav-copy strong{color:var(--th-text,#fff)}
.th-worn .module-navigation .settings-nav-copy small,.th-worn .module-navigation .worker small{color:color-mix(in srgb,var(--th-text,#fff) 60%,transparent)}
.th-worn .module-navigation .worker:hover{background:var(--th-hover);color:var(--th-hover-text)}
.th-worn .module-navigation .worker.selected,.th-worn .module-navigation .worker.selected:hover{background:var(--th-active);color:var(--th-active-text)}
/* B086 (/L: "the status bar rides the theme tokens like every chrome element — no
   white-on-white anywhere"): the bar wears --th-column (SOLID per-theme — the old
   --th-hover broke on Aubergine, whose hover is translucent white over a pale page),
   text rides --th-text, and the bar's buttons / options summary follow on tokens. */
.th-worn .workspace-status{background:var(--th-column,#fff);color:var(--th-status-text,var(--th-text,#9098a4));border-top-color:color-mix(in srgb,var(--th-status-text,var(--th-text,#fff)) 15%,transparent)}
.th-worn .workspace-status .status-options summary{color:var(--th-status-text,var(--th-text,#778092))}
.th-worn .workspace-status .status-options summary:hover{background:var(--th-hover);color:var(--th-hover-text)}
.th-worn .workspace-status button{border-color:color-mix(in srgb,var(--th-status-text,var(--th-text,#fff)) 27%,transparent);background:color-mix(in srgb,var(--th-status-text,var(--th-text,#fff)) 7%,transparent);color:var(--th-status-text,var(--th-text,#fff))}
.th-worn .workspace-status button:hover{background:color-mix(in srgb,var(--th-status-text,var(--th-text,#fff)) 13%,transparent);color:var(--th-status-text,var(--th-text,#fff))}

/* ── M4.4 th-worn: module SUB-sidebar treatment (email folder tree, kanban, all pages) ── */
.th-worn .email-app .mail-folder-rail{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d)}
.th-worn .email-app .mail-folder-rail .mail-folder{color:var(--th-text,#1d1c1d)}
.th-worn .email-app .mail-folder:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .email-app .mail-folder.selected,.th-worn .email-app .mail-folder.selected:hover{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff)}
.th-worn .email-app .mail-folder-count{background:var(--th-badge,#e01e5a);color:#fff}
.th-worn .email-app .mail-list-toolbar,.th-worn .email-app .mail-search input{background:var(--th-main,#fff);color:var(--th-text,#1d1c1d)}
.th-worn .email-app .mail-message-open:hover{background:var(--th-hover,transparent)}
.th-worn .kanban-izer,.th-worn .kanban-izer *{color:var(--th-text,#1d1c1d)}
.th-worn .settings-panel,.th-worn .settings-card{background:var(--th-main,#fff);color:var(--th-text,#1d1c1d)}
.th-worn .settings-card,.th-worn .settings-panel{border-color:var(--line)}

/* ═══ rc-tenant-palette M4.5 (2026-10-04): module SUB-sidebars — every rail section ═══
   Owner ruling: Mail + Settings were done in M4.4; EVERY remaining rail section's own
   sidebar/secondary pane now wears the palette too — "no exception". Same laws as M4.4:
   every rule is gated on .th-worn (accent-only tenants keep today's look), every value
   carries a fallback so nothing changes with no palette worn, and the PRIMARY content
   pane of each module stays PALE (white) — only the chrome/sidebars wear the palette.
   Selectors reuse each module's existing sidebar hooks (ui-b023 house classes), which is
   why inbound deliberately re-themes .kanbanizer-sidebar under its own .inbound-root scope. */

/* ── Sites (tesia-view.mjs): .site-sidebar folder list + .site-toolbar stage strip ── */
.th-worn .site-shell .site-sidebar{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .site-shell .site-sidebar-head{color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .site-shell .site-group h4{color:color-mix(in srgb,var(--th-text,#1d1c1d) 55%,transparent)}
.th-worn .site-shell .site-item{color:var(--th-text,#1d1c1d)}
.th-worn .site-shell .site-item small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .site-shell .site-item:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .site-shell .site-item.selected,.th-worn .site-shell .site-item.selected:hover{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff)}
/* stage toolbars get the same near-white --th-main tint the email list toolbar wears, but
   they sit on the PALE side — keep their dark text, tint background/border only */
.th-worn .site-shell .site-toolbar{background:var(--th-main,#fff);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}

/* ── Kanban (kanban-view.mjs): .kanbanizer-sidebar boards list ── */
.th-worn .kanbanizer-slot .kanbanizer-sidebar{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .kanbanizer-slot .kanbanizer-sidebar-head{color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .kanbanizer-slot .kanbanizer-board{color:var(--th-text,#1d1c1d)}
.th-worn .kanbanizer-slot .kanbanizer-board small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .kanbanizer-slot .kanbanizer-board:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .kanbanizer-slot .kanbanizer-board.selected,.th-worn .kanbanizer-slot .kanbanizer-board.selected:hover{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff)}
.th-worn .kanbanizer-slot .kanbanizer-board.selected small{color:color-mix(in srgb,var(--th-active-text,#fff) 78%,transparent)}
.th-worn .kanbanizer-slot .kanbanizer-sidebar .r-badge{background:var(--th-badge,#e01e5a);color:#fff}
.th-worn .kanbanizer-slot .kanbanizer-sidebar .r-btn:not(.accent){border-color:color-mix(in srgb,var(--th-text,#fff) 27%,transparent);background:color-mix(in srgb,var(--th-text,#fff) 7%,transparent);color:var(--th-text,#fff)}
.th-worn .kanbanizer-slot .kanbanizer-sidebar .r-btn:not(.accent):hover{background:color-mix(in srgb,var(--th-text,#fff) 13%,transparent)}
.th-worn .kanbanizer-slot .kanbanizer-sidebar .r-caption{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .kanbanizer-slot .kanban-archived{border-top-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .kanbanizer-slot .kanban-archived-toggle{color:color-mix(in srgb,var(--th-text,#1d1c1d) 65%,transparent)}
.th-worn .kanbanizer-slot .kanban-archived-toggle:hover{background:var(--th-hover,rgba(0,0,0,.05));color:var(--th-text,#1d1c1d)}

/* ── Messages / Inbound (inbound-view.mjs): reuses the kanbanizer hooks for its contacts rail ── */
.th-worn .inbound-root .kanbanizer-sidebar{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .inbound-root .kanbanizer-sidebar-head{color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .inbound-root .kanbanizer-board{color:var(--th-text,#1d1c1d)}
.th-worn .inbound-root .kanbanizer-board small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .inbound-root .kanbanizer-board:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .inbound-root .kanbanizer-board.selected,.th-worn .inbound-root .kanbanizer-board.selected:hover{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff)}
.th-worn .inbound-root .kanbanizer-board.selected small{color:color-mix(in srgb,var(--th-active-text,#fff) 78%,transparent)}
.th-worn .inbound-root .inbound-count{background:var(--th-badge,#eef1f7);color:#fff}
.th-worn .inbound-root .inbound-chfilter{background:color-mix(in srgb,var(--th-text,#fff) 14%,transparent)}
.th-worn .inbound-root .inbound-chfilter.wa{background:transparent}/* B082: the WhatsApp tile carries its own colors on worn themes */
.th-worn .inbound-root .inbound-status{color:color-mix(in srgb,var(--th-text,#1d1c1d) 62%,transparent)}

/* ── CRM (tesia-view.mjs crm mode): .crm-client contacts list pane + toolbar ──
   NOTE the .dt-mount chain: the canonical carding layer (~line 1241) whites this pane out
   at (0,5,1), so this rule must out-rank that, not just the bare ui-b023 rules. */
.th-worn .crm-client .crm-toolbar{background:var(--th-main,#fff);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .crm-client .crm-toolbar input,.th-worn .crm-client .crm-toolbar select{color:var(--text,#1d1c1d)}
.th-worn .dt-mount .crm-client .crm-record-layout>section:first-child{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .crm-client .crm-record-layout>section+section{border-left-color:var(--line)}
.th-worn .crm-client .list-heading{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .crm-client .list-heading span{color:color-mix(in srgb,var(--th-text,#1d1c1d) 58%,transparent)}
.th-worn .crm-client .crm-record{background:transparent;color:var(--th-text,#1d1c1d);border-bottom-color:color-mix(in srgb,var(--th-text,#1d1c1d) 12%,transparent)}
.th-worn .crm-client .crm-record span,.th-worn .crm-client .crm-record small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .crm-client .crm-record.selected{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff);box-shadow:inset 3px 0 color-mix(in srgb,var(--th-active-text,#fff) 55%,transparent)}
.th-worn .crm-client .crm-record.selected span,.th-worn .crm-client .crm-record.selected small{color:color-mix(in srgb,var(--th-active-text,#fff) 78%,transparent)}

/* ── Files (files-view.mjs): .files-tree-pane folder tree — content + preview panes stay pale ── */
.th-worn .dt-mount .files-tree-pane{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .files-tree-pane .files-pane-header{color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .files-tree-pane .files-pane-header button{border-color:color-mix(in srgb,var(--th-text,#fff) 27%,transparent);background:color-mix(in srgb,var(--th-text,#fff) 7%,transparent);color:var(--th-text,#fff)}
.th-worn .files-worker-label{color:color-mix(in srgb,var(--th-text,#1d1c1d) 62%,transparent)}
.th-worn .files-tree .file-tree-row{color:var(--th-text,#1d1c1d)}
.th-worn .files-tree .file-tree-row .cw-icon{color:color-mix(in srgb,var(--th-text,#1d1c1d) 55%,transparent)}
.th-worn .files-tree .file-tree-row:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .files-tree .file-tree-row.selected{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff);box-shadow:inset 3px 0 color-mix(in srgb,var(--th-active-text,#fff) 55%,transparent)}
.th-worn .files-tree .file-tree-row.selected .cw-icon{color:var(--th-active-text,#fff)}
.th-worn .files-tree-footer{color:color-mix(in srgb,var(--th-text,#1d1c1d) 62%,transparent);border-top-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .files-tree-footer button{border-color:color-mix(in srgb,var(--th-text,#fff) 27%,transparent);background:color-mix(in srgb,var(--th-text,#fff) 7%,transparent);color:var(--th-text,#fff)}

/* ── Calendar (calendar-view.mjs): .calendar-sidebar sources/events/legend — grid stage stays pale ── */
.th-worn .calendar-sidebar{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .calendar-sidebar header{color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .calendar-sidebar .calendar-source{background:color-mix(in srgb,var(--th-text,#1d1c1d) 8%,transparent);color:var(--th-text,#1d1c1d)}
.th-worn .calendar-sidebar .calendar-source:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .calendar-sidebar .cal-pill-check{accent-color:var(--th-active,#6d5ae0)}
/* event cards sit ON the dark column — translucent white overlay, not near-white --th-main
   (their text is forced light and would wash out on a near-white card) */
.th-worn .calendar-sidebar .imap-event-item{background:color-mix(in srgb,var(--th-text,#fff) 8%,transparent);color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .calendar-sidebar .imap-event-item.is-attached{border-color:color-mix(in srgb,var(--th-presence,#38a3dd) 45%,transparent);background:color-mix(in srgb,var(--th-presence,#38a3dd) 22%,transparent)}
.th-worn .calendar-sidebar .imap-event-empty{background:transparent;color:color-mix(in srgb,var(--th-text,#1d1c1d) 62%,transparent);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 30%,transparent)}
.th-worn .calendar-sidebar .calendar-legend{color:color-mix(in srgb,var(--th-text,#1d1c1d) 62%,transparent);border-top-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
/* the color-picker pop is a near-white card full of dark controls — keep its text dark */
.th-worn .calendar-sidebar .calendar-colorpop{background:var(--th-main,#fff);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent);color:var(--text,#1d1c1d)}
.th-worn .calendar-stage>header.calendar-toolbar{background:var(--th-main,#fff);border-bottom-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}

/* ── Tables + CRM Data (tables-view.mjs): .tables-sidebar (both sections) — stage stays pale ── */
.th-worn .tables-sidebar{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .tables-sidebar .tables-crm-sec{background:color-mix(in srgb,var(--th-text,#1d1c1d) 5%,transparent);border-bottom-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .tables-sidebar .tables-crm-sec>header strong,.th-worn .tables-sidebar .tables-crm-mountsec>header strong{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .tables-sidebar .tables-item{color:var(--th-text,#1d1c1d)}
.th-worn .tables-sidebar .tables-item small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .tables-sidebar .tables-item:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .tables-sidebar .tables-item.selected,.th-worn .tables-sidebar .tables-item.selected:hover{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff)}
.th-worn .tables-sidebar .tables-item.selected small{color:color-mix(in srgb,var(--th-active-text,#fff) 78%,transparent)}
.th-worn .tables-sidebar footer{color:color-mix(in srgb,var(--th-text,#1d1c1d) 62%,transparent);border-top-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .tables-sidebar .tables-crm-sec>footer a{color:color-mix(in srgb,var(--th-text,#1d1c1d) 70%,transparent)}
.th-worn .tables-sidebar .tables-crm-sec>footer{border-top-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .tables-sidebar .r-btn:not(.accent){border-color:color-mix(in srgb,var(--th-text,#fff) 27%,transparent);background:color-mix(in srgb,var(--th-text,#fff) 7%,transparent);color:var(--th-text,#fff)}
.th-worn .tables-sidebar .r-btn:not(.accent):hover{background:color-mix(in srgb,var(--th-text,#fff) 13%,transparent)}

/* ── Assistant (assistant-rail-view.mjs): .assistant-rail-sidebar threads — chat main stays pale ── */
.th-worn .assistant-rail-sidebar{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .assistant-rail-sidebar header{color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .assistant-rail-sidebar header h2{color:var(--th-text,#1d1c1d)}
/* thread cards sit ON the dark column — translucent white overlay, not near-white --th-main
   (white text would wash out on a near-white card); the active thread still wears --th-active */
.th-worn .assistant-rail-sidebar .assistant-rail-item{background:color-mix(in srgb,var(--th-text,#fff) 8%,transparent);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 14%,transparent)}
.th-worn .assistant-rail-sidebar .assistant-rail-item:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .assistant-rail-sidebar .assistant-rail-item.active{background:var(--th-active,#ece4f8);border-color:color-mix(in srgb,var(--th-active-text,#fff) 40%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--th-active-text,#fff) 40%,transparent)}
.th-worn .assistant-rail-sidebar .assistant-rail-open strong{color:var(--th-text,#1d1c1d)}
.th-worn .assistant-rail-sidebar .assistant-rail-open small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .assistant-rail-sidebar .assistant-rail-item.active .assistant-rail-open strong{color:var(--th-active-text,#fff)}
.th-worn .assistant-rail-sidebar .assistant-rail-item.active .assistant-rail-open small{color:color-mix(in srgb,var(--th-active-text,#fff) 78%,transparent)}
.th-worn .assistant-rail-sidebar .assistant-rail-delete{color:color-mix(in srgb,#c23b3b 70%,var(--th-text,#1d1c1d))}
.th-worn .assistant-rail-sidebar .assistant-rail-delete:hover{background:color-mix(in srgb,var(--th-text,#fff) 12%,transparent)}

/* ── Search (search-view.mjs): the scope-chip filter row — results stay pale. Search has no
      sidebar pane; this is its only chrome row. ── */
.th-worn .unified-search .search-scope-chip:hover{border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 35%,transparent);color:var(--th-text,#1d1c1d)}
.th-worn .unified-search .search-scope-chip.selected{background:var(--th-active,#ece5f8);border-color:color-mix(in srgb,var(--th-active-text,#fff) 40%,transparent);color:var(--th-active-text,#fff)}

/* ── Settings › MCP connectors sub-page: the TESIA tool-list aside (the carding layer
      (~line 1252) whites it out at (0,3,0) — mirror that .dt-mount chain so the tool
      picker wears the palette like every other sidebar) ── */
.th-worn .dt-mount .mcp-tool-layout>aside{background:var(--th-column,var(--th-main,#fff));color:var(--th-text,#1d1c1d);border-color:color-mix(in srgb,var(--th-text,#1d1c1d) 16%,transparent)}
.th-worn .dt-mount .mcp-tool-layout>aside>input{color:var(--text,#1d1c1d)}
.th-worn .mcp-tool-list button{color:var(--th-text,#1d1c1d);background:color-mix(in srgb,var(--th-text,#1d1c1d) 6%,transparent)}
.th-worn .mcp-tool-list button small{color:color-mix(in srgb,var(--th-text,#1d1c1d) 60%,transparent)}
.th-worn .mcp-tool-list button:hover{background:var(--th-hover,rgba(0,0,0,.05))}
.th-worn .mcp-tool-list .selected,.th-worn .mcp-tool-list .selected:hover{background:var(--th-active,#ece4f8);color:var(--th-active-text,#fff)}
.th-worn .mcp-tool-list .selected small{color:color-mix(in srgb,var(--th-active-text,#fff) 78%,transparent)}

/* Sections with NO sidebar of their own — verified against their view files, nothing themed
   on purpose (their whole pane IS the pale primary content):
   · Desk (desk-view.mjs)     — status strip + white panels dashboard, no list rail.
   · Reports (pipeline-report.mjs) — pipeline board, no list rail.
   · Notes (notes-view.mjs)   — post-it card grid, no list rail.
   · Voice (voice-view.mjs)   — embed stage + launch card, no list rail.
   · CRM Data in sheet mode (tables-crm-sheetmode) renders stage-only by design. */

/* ── M4.5b (/L QA): themed hover pair + scrollbars for the email tree — the aiw.css
   hardcoded light-lavender hovers blanked the themed white text on dark palettes ── */
.th-worn .email-app .mail-folder-row:hover,.th-worn .email-app .mail-tag-filter:hover{background:var(--th-hover,rgba(255,255,255,.06))}
.th-worn .email-app .mail-folder-row .mail-folder:hover,.th-worn .email-app .mail-folder-row:hover .mail-folder{color:var(--th-hover-text,#fff)}
.th-worn .email-app .mail-folder-row:has(.mail-folder.selected),.th-worn .email-app .mail-folder-row:has(.mail-folder.selected):hover{background:transparent}
.th-worn .email-app .mail-folder.selected,.th-worn .email-app .mail-folder.selected:hover{color:var(--th-active-text,#fff)}
.th-worn .email-app .mail-message-row:hover{background:var(--th-zebra,rgba(255,255,255,.04))}
.th-worn .email-app .mail-message-row.selected:hover{background:var(--th-hover,rgba(255,255,255,.06))}
.th-worn .email-app .mail-folder-scroll::-webkit-scrollbar,.th-worn .email-app .mail-list-scroll::-webkit-scrollbar,.th-worn .email-app .mail-reader-scroll::-webkit-scrollbar,.th-worn .module-navigation::-webkit-scrollbar{width:6px}
.th-worn .master-rail::-webkit-scrollbar{width:6px}
.th-worn .master-rail::-webkit-scrollbar-track{background:transparent}
.th-worn .master-rail::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--th-text,#fff) 38%,transparent);border-radius:3px}
.th-worn .rail-categories::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--th-text,#fff) 38%,transparent);border-radius:3px}
.th-worn .rail-categories::-webkit-scrollbar-track{background:transparent}
.th-worn .email-app .mail-folder-scroll::-webkit-scrollbar-thumb,.th-worn .email-app .mail-list-scroll::-webkit-scrollbar-thumb,.th-worn .email-app .mail-reader-scroll::-webkit-scrollbar-thumb,.th-worn .module-navigation::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--th-text,#fff) 38%,transparent);border-radius:3px}
.th-worn .email-app .mail-folder-scroll::-webkit-scrollbar-track,.th-worn .email-app .mail-list-scroll::-webkit-scrollbar-track,.th-worn .email-app .mail-reader-scroll::-webkit-scrollbar-track{background:transparent}

/* dtround 2026-10-07 (/L default sizing): larger base font plus DPR-aware bump for hi-DPI
   screens; explicit-px components keep their layout, inheriting text scales up. */
@media (min-resolution: 1.25dppx){:root{font-size:15.5px}}
@media (min-resolution: 1.5dppx){:root{font-size:16px}}

/* ===== dtround 2026-10-07 (/L round) - end-of-file so these settle every earlier wave ===== */
/* B4: no gutter around the email frame - the status bar must always display fully. */
.email-slot{padding:0;background:transparent}
/* B3: email list pane header - uniform rounded squares; one height, one width, one radius. */
.mail-list-toolbar>button{height:34px;min-height:34px;width:34px;flex:0 0 34px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:17px;border-radius:8px}
.mail-list-toolbar>button[data-mail-action="filter-starred"]{font-size:17px;display:inline-flex}
.mail-list-toolbar>button[data-mail-action="filter-starred"]::after{content:none}
.mail-list-toolbar>button[data-mail-action="filter-unread"]{font-size:17px;display:inline-flex}
.mail-list-toolbar>select[data-mail-sort]{height:34px;min-height:34px;border-radius:8px}
.mail-list-toolbar .mail-list-more>summary{height:34px;width:34px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}

/* B1: the header search takes the default focus on every render - no blinking caret there. */
.host-search input[name=query]{caret-color:transparent}
/* B4: the module-shell email slot is the padded wrapper that clipped the status bar. */
.module-shell>.email-slot{padding:0;background:transparent}

/* C feature (/L): Settings > Rail menu - per-tenant rail entry toggles. */
.settings-rail-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}
.settings-rail-row{display:flex;align-items:center;gap:9px;padding:8px 11px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:12px;cursor:pointer}
.settings-rail-row:hover{background:var(--soft)}
.settings-rail-row small{color:#8a93a5;margin-left:auto;font-size:9px}

/* dtround 2026-10-07 (/L crm-data month widget): prev/next + native month picker + This month. */
.tables-crm-month{display:inline-flex;align-items:center;gap:4px}
.tables-crm-month .r-btn{min-height:26px;padding:2px 8px;font-size:12px}
.tables-crm-month input[type=month]{border:1px solid var(--line);border-radius:5px;height:26px;padding:2px 6px;font-size:11px;background:#fff;color:var(--text)}
/* dtround 2026-10-07 (/L): the Desk page clipped below the fold - its own overflow:hidden
   swallowed 30px+ of content with no way to scroll. Let it scroll. */
.desk-view{overflow-y:auto}

/* F23 (/L): the header search takes the default focus on every render - a colored accent
   contour there is permanent noise, not a focus cue. Neutral on THIS input only; every
   other focus-visible ring keeps its accent. */
.host-search input[name=query]:focus-visible{outline-color:transparent!important;outline-offset:0}
.host-search input[name=query]:focus{outline-color:transparent}
/* F20: period dropdown (presets + custom range) inside the Monthly Sales bar. */
.tables-crm-period{flex:0 0 auto}
.tables-crm-period-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 10px 4px}
.tables-crm-period-presets .r-btn{min-height:28px;font-size:11px;padding:3px 8px}
.tables-crm-period-custom{display:flex;align-items:center;gap:6px;padding:8px 10px;flex-wrap:wrap}
.tables-crm-period-custom label{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#7a8393}
.tables-crm-period-custom input[type=date]{border:1px solid var(--line);border-radius:5px;height:26px;padding:2px 6px;font-size:11px;background:#fff;color:var(--text)}
.tables-crm-dd-panel .tables-crm-period-custom ~ .r-btn{margin:4px 10px 10px}

/* miniZ (/L): the hosted kit face in the module page - full-height same-origin frame. */
.miniz-slot{flex:1;min-height:0;min-width:0;display:flex}
.miniz-frame{flex:1;width:100%;height:100%;min-height:0;border:0;background:#0d0d10}

/* ===== B065 R2 (/L 21:32 'sites are not loading unlike claimed' + queued 1oxh5sl):
   hosts that refuse framing (DENY / frame-ancestors 'none' / SAMEORIGIN - headers
   verified live 2026-10-07) get the honest card instead of Chrome's silent
   blocked-frame. House empty-state idiom: glyph circle + muted caption + one accent
   action. Absolute fill mirrors .site-frame geometry in desktop + mobile previews. ===== */
.site-embed-blocked{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:40px 28px;background:#fff}
.site-embed-glyph{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:color-mix(in srgb,var(--accent,#4b0ad2) 10%,#fff);color:var(--accent,#4b0ad2)}
.site-embed-glyph svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.site-embed-blocked strong{font-size:15px;color:#26314b}
.site-embed-blocked p{max-width:470px;margin:0;font-size:12.5px;line-height:1.7;color:#7a8393}
.site-embed-blocked .site-embed-open{display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding:9px 18px;border-radius:8px;background:var(--accent,#4b0ad2);color:#fff;font-size:13px;font-weight:600;text-decoration:none}
.site-embed-blocked .site-embed-open:hover{filter:brightness(1.08)}
.site-embed-blocked small{font-size:11px;color:#9aa3b2}

/* ===== B065 Q4 (1kkhwrx, /L): the list pane header's button row must SCROLL, not clip
   behind its container. Same idiom as the reader toolbar (overflow-x auto + thin bar);
   every control keeps its size (flex:none) and the kebab menu sticky-pins to the right
   edge so compose/actions stay reachable at any pane width. ===== */
.mail-list-toolbar{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.mail-list-toolbar>*{flex:0 0 auto}
.mail-list-toolbar .mail-list-more{position:sticky;right:0;margin-left:auto;background:inherit}

/* ===== B066 (/L): the loader is the thgaskell/KmRjOx PEN ITSELF - the path animation
   embedded verbatim from labs/codepen-downloader/pen-KmRjOx/ (pen.html structure via
   panel-loading.mjs, pen.css rules below; the pen has no JS). The B065 re-created cube is
   REMOVED. Adaptations per the codepen-manage contract: (1) namespacing kmr- on classes /
   ids / keyframes and the pen's global `svg` rule scoped to .kmr-container - collision
   safety, one-to-one renames; (2) theming: the SMIL stop-color values are rewritten at
   inject time from the tenant accent (SMIL cannot read CSS variables), pattern + durations
   byte-preserved; (3) host glue: overlay tint + anchors (kept from the B015 contract),
   footer colors, reduced-motion freeze on the pen's CSS animations. ===== */
.panel-progress{inset:0;height:auto;width:auto;display:block;background:color-mix(in srgb,var(--panel-bg,#fff) 55%,transparent);border-radius:inherit;overflow:hidden}
.panel-progress::before,.panel-progress::after{content:none}

/* ---- pen.css, rule-for-rule under the kmr- namespace ---- */
.kmr-container{
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.kmr-container svg {
  transform: rotate(45deg);
}

.kmr-gradient {
  animation-iteration-count: infinite;
  animation-duration: 1s;
  fill: url('#kmr-gradient-fill');
}
.kmr-square {
  animation-iteration-count: infinite;
  animation-duration: 2s;
  transition-timing-function: ease-in-out;
}

.kmr-s1 {
  animation-name: kmr-slide-1;
}

.kmr-s2 {
  animation-name: kmr-slide-2;
}

.kmr-s3 {
  animation-name: kmr-slide-3;
}

.kmr-s4 {
  animation-name: kmr-slide-4;
}

.kmr-s5 {
  animation-name: kmr-slide-5;
}

.kmr-s6 {
  animation-name: kmr-slide-6;
}

.kmr-s7 {
  animation-name: kmr-slide-7;
}

@keyframes kmr-slide-1 {
  37.5% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(100px);
  }
  100% {
    transform: translateX(100px);
  }
}

@keyframes kmr-slide-2 {
  25% {
    transform: translateX(0px);
  }
  37.5% {
    transform: translateX(100px);
  }
  100% {
    transform: translateX(100px);
  }
}

@keyframes kmr-slide-3 {
  12.5% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(100px);
  }
  100% {
    transform: translateY(100px);
  }
}

@keyframes kmr-slide-4 {
  50% {
    transform: translateY(0px);
  }
  62.5% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(-100px);
  }
}

@keyframes kmr-slide-5 {
  12.5% {
    transform: translate(-100px, 0px);
  }
  87.5% {
    transform: translate(-100px, 0px);
  }
  100% {
    transform: translate(-100px, 100px);
  }
}

@keyframes kmr-slide-6 {
  62.5% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(-100px);
  }
}

@keyframes kmr-slide-7 {
  75%  {
    transform: translateX(0px);
  }
  87.5% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(-100px);
  }
}

/* B067 (/L): the pen's footer credit element + its margin/color rules are removed from
   the embed - the loader renders the animation only (attribution lives in the
   panel-loading.mjs source comment). The pen's .container centering rule stays. */
@media(prefers-reduced-motion:reduce){.kmr-square,.kmr-gradient{animation:none!important}}
/* loader anchors: the overlay is absolute - these containers are the positioned parents */
.notes-grid,.tables-wrap{position:relative}



/* ===== B065 N4 (qiu3av, /L 08:26): settings pages use the full container width, like
   Connectors already does (Connectors measures full-pane; Keys + Integrations were capped
   at the shared .settings-card max-width:760px). Lift the cap for the named pages only. ===== */
.settings-keys-slot.settings-card,.settings-integrations-slot.settings-card,.settings-themes-slot.settings-card,.workspace-settings.settings-card{max-width:none;margin-left:0;margin-right:0}
.module-layout>.primary-pane:has(>.workspace-settings)>.workspace-settings.settings-card{margin-left:0;margin-right:0}
/* ===== B069 - full-history audit round (/L notes; ledger in #dreamteam) ===== */
/* G11 (00:40): tesia sites slot flush - /L's spec verbatim */
.module-shell .primary-pane .tesia-sites-slot{padding-top:0px !important;padding-left:0px !important}
.tesia-sites-slot>.tesia-service-view{padding-top:0px;padding-left:0px}
/* G12 (00:36): settings sidebar sits at the top edge; identity + list title leave */
.module-shell .module-navigation{transform:translatex(0px) translatey(0px);position:relative;top:-16px}
.module-shell .module-navigation .settings-nav-identity{display:none}
@media (min-width:721px){
 .module-shell .module-navigation{padding-top:2px}
 .module-shell .module-navigation .list-title{display:none}
}

/* ===== B065 N5 (4u2fzn + 1y5cx7x, /L): PageTransitions remix - one restrained view-swap
   beat on the primary pane. Codrops concept, house scale: fade + 10px slide, 190ms, on
   TAB CHANGE only (never on data refreshes), disabled under prefers-reduced-motion. ===== */
@keyframes dt-view-in{from{opacity:.35;transform:translateX(12px)}to{opacity:1;transform:none}}
.primary-pane.dt-view-swap{animation:dt-view-in .19s ease-out}
@media(prefers-reduced-motion:reduce){.primary-pane.dt-view-swap{animation:none}}

/* ===== B067 (/L, live on the demo lane): 'crm-report loaders never display in boxes' —
   setPanelLoading hosts must be their OWN overlay anchor. .pipeline-card (and the
   pipeline-report root, the files panes, .worker-main) had no position, so the absolute
   .panel-progress overlay anchored to a distant ancestor and the per-box loader never
   painted in its box. One shared anchor rule for every unpositioned host. ===== */
.pipeline-card,.pipeline-report,.files-tree-pane,.files-content-pane,.files-preview-pane,.worker-main{position:relative}


/* ===== B068 (/L): the assistant DRAWER hosts the mounted miniZ — the chat face fills
   the drawer body full height (kit sidebar + task-panel chrome are hidden by the hosted
   drawer mode inside the frame). The header keeps the close control; the assistant NAME
   is per-tenant settings (Settings › Rail menu; default TESIA). ===== */
.assistant-miniz-slot{flex:1;min-height:0;min-width:0;display:flex}
.assistant-miniz-frame{flex:1;width:100%;height:100%;min-height:0;border:0;background:#0d0d10}
/* B072 (G4) — contacts stage multi-select: stage dot + live count inside the tesia-dd panel */
.tesia-dd-stages .tesia-dd-option{display:flex;align-items:center;gap:8px;padding-right:8px}
.tesia-dd-stages .tesia-dd-option.selected{background:var(--accent-soft)}
.tesia-stage-dot{flex:none;width:10px;height:10px;border-radius:3px;background:var(--stage,#8a93a6)}
.tesia-stage-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tesia-stage-count{margin-left:auto;flex:none;color:var(--muted);font-size:12px}
.tesia-stage-check{flex:none;min-width:14px;color:var(--accent);font-weight:700}
.tesia-dd-clear{color:#a33}
/* B074 (G8) — contact Files tab explorer: month folders, list/icons pill, PDF glyph, open ↗ */
.file-glyph{flex:none;width:16px;height:16px;color:#b3413a}
.file-glyph.big{width:34px;height:34px}
.file-glyph-tag{font-size:5.6px;font-weight:700;fill:currentColor;letter-spacing:.3px}
.contact-files-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 10px}
.contact-file-group{margin:0 0 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.contact-file-group summary{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12.5px;font-weight:600;cursor:pointer;list-style:none}
.contact-file-group summary::-webkit-details-marker{display:none}
.contact-file-group summary small{color:var(--muted);font-weight:400}
.contact-files-list{display:grid}
.contact-file-row{display:flex;align-items:center;gap:10px;padding:7px 12px;border-top:1px solid var(--line);font-size:13px}
.contact-file-row:hover{background:var(--accent-soft)}
.contact-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact-file-meta{flex:none;margin-left:auto;color:var(--muted);font-size:11px}
.contact-file-row time.contact-file-meta{margin-left:0}
.contact-file-open{flex:none;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;color:var(--text);text-decoration:none;font-size:13px}
.contact-file-open:hover{border-color:var(--accent);color:var(--accent)}
.contact-files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:10px;padding:10px 12px;border-top:1px solid var(--line)}
.contact-file-tile{position:relative;display:grid;justify-items:center;gap:4px;padding:12px 8px;border:1px solid var(--line);border-radius:8px;text-align:center}
.contact-file-tile .contact-file-name{white-space:normal;max-height:2.6em;font-size:12px}
.contact-file-tile .contact-file-meta{margin-left:0}
.contact-file-tile .contact-file-open{position:absolute;top:6px;right:6px;width:22px;height:22px;font-size:12px}
/* B073 (G5) — crm-data [+] create-view dialog */
.tables-newview{width:min(460px,92vw);border:1px solid var(--line);border-radius:10px;padding:0;background:#fff;color:var(--text);box-shadow:0 18px 50px #10131a2e}
.tables-newview::backdrop{background:#0d0f14a8}
.tables-newview header{padding:14px 18px 0}
.tables-newview h3{margin:0;font-size:15px}
.tables-newview-cap{margin:8px 18px 0;font-size:11.5px;line-height:1.6;color:var(--muted)}
.tables-newview label{display:grid;gap:6px;margin:12px 18px 0;font-size:11px;color:var(--muted)}
.tables-newview input{padding:9px 10px;border:1px solid var(--line);border-radius:6px;font-size:13px;background:#fff;color:var(--text)}
.tables-newview-sum{margin:10px 18px 0;font-size:11px;line-height:1.7;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:8px 10px}
.tables-newview-error{margin:8px 18px 0;font-size:11.5px;color:#b3261e}
.tables-newview footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px 16px}
/* B077 (/L quickie) — rail mounts: slackerZ + launcherZ iframe doors.
   B078 (/L): FULL FLUSH TOP — the mounted page drops its header block entirely: no title
   bar, no pane padding, no card border/radius; the iframe edge IS the page top and the
   frame runs full height to the shared status strip. The pane override wears the Sites
   pattern (data-module selector beats the unified-stage 16px canvas rule); the dead
   .railmount-head/.railmount-open rules from B077 are removed with their markup.
   B079 (/L mobile regression): the ≤720px media block flips .module-layout to a COLUMN
   flex, so the pane sized to CONTENT and the flush % chain collapsed to the iframe's
   150px intrinsic height (B077's old min-height:420px floor had masked this pre-B078).
   flex:1 1 auto makes the pane eat the remaining height there — inert in the desktop
   grid — and the 100% chain above turns it into dvh-derived full-viewport fill: no fixed
   px anywhere on the mount chain. */
.dt-mount[data-module=slackerz] .module-layout-full>.primary-pane,
.dt-mount[data-module=launcherz] .module-layout-full>.primary-pane,
/* B082: writerz joins the mount pane rule — same flush-top + mobile flex:1 fill (the third rail mount). */
.dt-mount[data-module=writerz] .module-layout-full>.primary-pane{padding:0;overflow:hidden;flex:1 1 auto;min-height:0}
.railmount-view{display:grid;grid-template-rows:minmax(0,1fr);height:100%;min-height:0}
.railmount-stage{position:relative;min-height:0;overflow:hidden}
.railmount-frame{display:block;width:100%;height:100%;border:0}
.railmount-stage .site-embed-blocked{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;text-align:center;padding:24px}
.dt-rail-mode .dt-rail-tile img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 1px 2px #0006)}

/* B086 theme wash — the Color Changin' overlay (theme-transition.mjs, MIT pen embed).
   Pen style.css verbatim (canvas display:block 100vw/100vh) + fixed-overlay positioning;
   the module also sets these inline so it stays drop-in without this block. */
#theme-wash{position:fixed;top:0;left:0;display:block;width:100vw;height:100vh;pointer-events:none;z-index:2147483000}

/* ── B094 MOBILE PASS (/L: every rail entry must present correctly on a phone —
   Gmail-style: one pane full-width, mounts full-bleed, nothing clipped).
   The mount iframes lose their desktop height chain below 700px and collapse to
   the 500×150 iframe default (clipped <AI>) — force them full-bleed; the multi-pane
   modules stack; the status pills and settings nav wrap. ── */
@media(max-width:700px){
  /* mounts: full-bleed, viewport-height, never the 500×150 default */
  .railmount-frame,.miniz-frame,.assistant-miniz-frame,.module-mount iframe,.dt-mount iframe{
    width:100% !important;max-width:100% !important;
    height:calc(100dvh - 64px) !important;min-height:420px !important}
  .miniz-slot,.railmount-stage,.railmount-view,.module-mount,.module-mount .primary-pane{
    width:100% !important;max-width:100% !important;min-width:0 !important;height:auto !important;min-height:0 !important}
  .module-layout,.module-layout-full,.module-shell,.primary-pane{min-width:0 !important;max-width:100% !important}
  /* the desk status pills wrap instead of pushing wide */
  .mail-status,.mail-status-text{white-space:normal !important;overflow:visible !important}
  .mail-status{flex-wrap:wrap !important;row-gap:4px}
  .email-app{grid-template-columns:minmax(0,1fr) !important;max-width:100% !important}
  /* B098: the upcoming drawer never splits the grid on a phone - single column, the drawer stacks above */
  .email-app.upcoming-open{grid-template-columns:minmax(0,1fr) !important}
  .email-app.upcoming-open .upcoming-host{grid-column:1 !important;grid-row:auto !important;border-left:0 !important;border-bottom:1px solid var(--line);max-height:40vh;overflow:auto}
  .email-app.compose-expanded.upcoming-open{grid-template-columns:minmax(0,1fr) !important}
  .calendar-slot.upcoming-open{grid-template-columns:minmax(0,1fr) !important}
  .calendar-slot.upcoming-open>.upcoming-host{grid-column:auto !important;width:100% !important;flex:0 0 auto !important;margin:0 0 12px}
  /* B098: Messages (inbound) Gmail pattern - the list full; a selection opens the reader full */
  /* B098: Messages (inbound) Gmail pattern - the contacts list full; a selection opens the stage full with a back chip */
  .inbound-root .kanbanizer-module{grid-template-columns:minmax(0,1fr) !important}
  .inbound-root .kanbanizer-stage{display:none !important}
  .inbound-root.inbound-open .kanbanizer-stage{display:flex !important;grid-column:1 !important}
  .inbound-root.inbound-open .kanbanizer-sidebar{display:none !important}
  .inbound-root.inbound-open .inbound-main-head::before{content:'← back';display:inline-flex;align-items:center;margin-right:10px;padding:4px 10px;border:1px solid var(--line);border-radius:6px;font-size:11px;color:var(--accent);cursor:pointer}
  .inbound-root.inbound-open .inbound-main-head{cursor:default}
  .inbound-root .inbound-contact{min-height:52px}
  /* the calendar stacks */
  .calendar-slot .fc{max-width:100% !important}
  /* the email list keeps a usable floor when the reader shows */
  .mail-message-list{min-width:0 !important}
  /* B098 (/L): the workspace-status bar hides ONLY inside the launcherZ mount */
  .dt-mount[data-module=launcherz] footer.workspace-status{display:none !important}
  .email-slot,.email-module-host{max-width:100% !important;min-width:0 !important}
  .mail-status{max-width:100% !important;width:auto !important}
  .mail-status>*{min-width:0 !important;flex-shrink:1 !important;max-width:100% !important;overflow:hidden !important;text-overflow:ellipsis}
  .mail-status .upcoming-host,.mail-status .upcoming-pane,.mail-status .mail-status-text{min-width:0 !important;max-width:100% !important;white-space:normal !important;overflow-wrap:anywhere}
  /* the settings nav wraps */
  .settings-nav-group,.module-nav-item{max-width:100%;overflow-wrap:anywhere}
  /* the assistant drawer (top-right toggle) covers the whole phone */
  .assistant-drawer{width:100vw !important;max-width:100vw !important;border-left:0}
  .assistant-resizer{display:none !important}
  body.assistant-open #host{margin-right:0 !important}
  /* hr4 multi-cols stack (the Files/Treads side panels go above the main) */
  .hr4-cols{flex-direction:column !important}
  .hr4-cols>aside.vitals{max-width:100% !important;width:100% !important}
  .hr4-logscroll,.hr4-treadbox{max-height:52vh !important}
  /* the standalone-mirroring treads/files side grids keep their own scroll */
  .cols.treads-open,.cols.files-open{grid-template-columns:1fr !important}
  .cols .colsplit{display:none !important}
  .files-tree,.h4logscroll{max-height:46vh !important;overflow-y:auto !important}
}

/* ── B097 (/L): the expand-rail button matches the AI toggle EXACTLY — same header,
   same size, square. The AI toggle (ui-b023.css .host-assistant-toggle) is the reference:
   32×32 inline-flex centered. ── */
.hostbar .host-rail-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;flex:0 0 32px;border-radius:8px}
@media(max-width:720px){.hostbar .host-rail-toggle{width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px}}

/* B098 (/L): the status bar drops when in launcherZ - any viewport */
.dt-mount[data-module=launcherz] footer.workspace-status{display:none !important}
/* ===== B103 CORE split — the plugin registry chrome (append; the log above is frozen) ===== */
.pm-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.pm-chips{display:flex;gap:6px;flex-wrap:wrap}
.pm-chip{border:1px solid color-mix(in oklab,currentColor 22%,transparent);background:transparent;color:inherit;border-radius:999px;padding:4px 12px;cursor:pointer;font:inherit}
.pm-chip em{font-style:normal;opacity:.6;margin-left:4px}
.pm-chip.on{background:var(--accent,#1e40af);color:#fff;border-color:transparent}
.pm-search{flex:1;min-width:180px;max-width:320px;border:1px solid color-mix(in oklab,currentColor 22%,transparent);background:transparent;color:inherit;border-radius:8px;padding:6px 10px;font:inherit}
.pm-list{display:flex;flex-direction:column;gap:8px}
.pm-row{display:flex;gap:12px;align-items:flex-start;border:1px solid color-mix(in oklab,currentColor 14%,transparent);border-radius:10px;padding:10px 12px;background:color-mix(in oklab,currentColor 3%,transparent)}
.pm-tile{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:10px;background:color-mix(in oklab,var(--accent,#1e40af) 22%,transparent);font-weight:700;font-size:13px}
.pm-main{flex:1;min-width:0}
.pm-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pm-version{opacity:.55;font-size:12px}
.pm-desc{margin:4px 0;font-size:13px;opacity:.85}
.pm-path{opacity:.5;font-size:11px;word-break:break-all}
.pm-actions{flex:none;display:flex;align-items:center}
.pm-toggle{border:1px solid color-mix(in oklab,currentColor 22%,transparent);background:transparent;color:inherit;border-radius:8px;padding:6px 14px;cursor:pointer;font:inherit}
.pm-toggle.primary{background:var(--accent,#1e40af);border-color:transparent;color:#fff}
.plugin-module-host{min-height:0}
