*{box-sizing:border-box} :root{--paper:#f4f7fb;--card:#fff;--ink:#16334d;--muted:#526b81;--line:#d6e2ec;--blue:#155a8a;--pale-blue:#e6f1fa;--amber:#155a8a;--warm:#edf4fb} body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a,select,input{touch-action:manipulation}button,a,select{min-height:44px}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;background:white;padding:10px 16px;font-weight:600}a{color:var(--blue);text-decoration:none}button:hover,a:hover{filter:brightness(.96)}:focus-visible{outline:3px solid #0489cc;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3.2vw,39px);letter-spacing:-1.3px;line-height:1.18;margin-bottom:12px}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:18px}p{margin-bottom:16px}small,.muted{color:var(--muted)}small{display:block;font-size:13px}.demo-banner{min-height:44px;display:flex;align-items:center;justify-content:space-between;background:#e6f1fa;padding:0 30px;color:#264e6c;font-size:11px;font-weight:750;letter-spacing:1.1px}.demo-banner button{font-size:12px;background:transparent;border:0;letter-spacing:0;padding:8px}.site-header{display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line);padding:22px 32px;background:var(--card)}.brand{display:flex;align-items:center;gap:12px;font-size:26px;font-weight:800;letter-spacing:-.8px}.brand small{font-size:11px;letter-spacing:.2px;font-weight:500}.brand-mark{background:var(--blue);color:white;width:48px;height:48px;text-align:center;line-height:46px;border-radius:15px;font-family:Georgia,serif;font-size:39px}.campaign-picker{margin-left:auto;max-width:330px}.campaign-picker label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:1.2px;font-weight:700;margin-bottom:4px}.campaign-picker select{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:8px 28px 8px 12px;width:100%;font-size:14px;font-weight:600}.profile{border:0;display:flex;align-items:center;gap:10px;text-align:left;padding:0 5px}.avatar{display:inline-grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:#e1edf7;color:#155a8a;font-weight:700}.workspace{max-width:1400px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr)}.rail{padding:36px 18px;border-right:1px solid var(--line);min-height:calc(100vh - 147px)}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:750;color:var(--muted);margin-bottom:14px}.rail .eyebrow{font-size:10px;padding-left:14px}.primary-nav{display:grid;gap:9px}.primary-nav a{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:12px;color:var(--muted);font-size:15px;font-weight:650}.primary-nav a span{font-size:23px}.primary-nav a[aria-current=page]{background:var(--blue);color:white}.rail-note{font-size:12px;color:var(--muted);margin:52px 14px 0}.rail-note p{margin-top:12px}.status-dot{display:inline-block;background:#0489cc;border-radius:50%;width:7px;height:7px;margin-right:5px}main{padding:32px 38px 65px;min-width:0;outline:none}.topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:23px}.crumb{color:var(--muted);font-size:13px}.badge{display:inline-flex;border:1px solid var(--line);border-radius:30px;padding:4px 10px;font-size:11px;letter-spacing:.25px;gap:6px;background:white;font-weight:600}.hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 130px;align-items:center;background:var(--pale-blue);padding:30px;border:1px solid #c8deee;border-radius:19px;margin-bottom:23px}.hero p{color:#365872;font-size:15px;max-width:540px;margin-bottom:17px}.hero .eyebrow{color:#155a8a}.hero-art{width:130px;max-width:100%;opacity:.95}.meta{display:flex;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.primary{background:var(--blue);border-color:var(--blue);color:white}.secondary{background:transparent}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.actions a,.button-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border:1px solid var(--line);border-radius:11px;font-weight:600;font-size:14px}.notice{background:var(--card);padding:17px 20px;border:1px solid var(--line);border-left:4px solid #0489cc;border-radius:12px;margin:20px 0;display:flex;gap:13px;font-size:14px}.notice p{margin:0}.notice strong{display:block;margin-bottom:3px}.notice-icon{color:#155a8a;font-size:22px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 14px}.section-head h2{margin:0}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.filters button,.filters a{padding:9px 13px;font-size:13px;border:1px solid var(--line);border-radius:25px;background:white;display:inline-flex;align-items:center}.filters [aria-pressed=true],.filters .selected{background:var(--blue);color:white;border-color:var(--blue)}.thread-list{display:grid;gap:10px}.thread-card{display:grid;grid-template-columns:44px 1fr auto;gap:14px;align-items:center;padding:19px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink)}.thread-card strong{display:block;font-size:16px;line-height:1.35;margin-bottom:6px}.thread-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}.thread-card .arrow{color:#587d99;font-size:22px}.thread-card .topic-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--pale-blue);font-size:21px;color:var(--blue)}.count{font-size:12px;color:var(--muted);margin-top:7px}.subtle-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;min-height:44px}.thread-panel,.card{background:white;border:1px solid var(--line);border-radius:18px;padding:25px;margin-bottom:20px}.thread-panel h1{font-size:28px;letter-spacing:-.7px;margin-top:12px}.message{border-top:1px solid var(--line);padding:20px 0}.message-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}.message-head strong{font-size:14px}.message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.author-context{font-size:11px;color:var(--muted)}.related{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0}.related button{font-size:12px;font-weight:550;background:var(--paper)}label{display:block;font-weight:650;font-size:14px;margin-bottom:8px}textarea,input[type=text],select{width:100%;border:1px solid #b8cedf;border-radius:11px;background:white;padding:12px}textarea{resize:vertical;min-height:108px;margin-bottom:9px}.composer .actions{justify-content:space-between}.composer .subtle-link{border:0;padding:0;background:none}.help-text{font-size:12px;color:var(--muted);margin-top:10px}.back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;margin-bottom:14px}.desktop-list{margin-top:30px}.map{width:100%;height:auto;max-height:290px;display:block;border-radius:12px;background:#edf4fb;margin-bottom:15px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:13px}.cards .card{margin:0}.cards .card p{font-size:14px;color:var(--muted)}.cards .card button{width:100%}.calendar-row{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid var(--line);align-items:center}.calendar-row:last-child{border:0}.calendar-date{background:var(--pale-blue);padding:8px 12px;text-align:center;border-radius:12px;min-width:60px;font-weight:750}.calendar-date small{font-size:10px}.calendar-row button{margin-left:auto}.calendar-row strong{font-size:15px}.calendar-row p{font-size:12px;margin:3px 0 0;color:var(--muted)}.error{border:1px solid #b8cedf;background:var(--warm);border-radius:16px;padding:26px}.empty{padding:24px;text-align:center;color:var(--muted);border:1px dashed #b8cedf;border-radius:13px}dialog{width:min(520px,calc(100% - 28px));max-height:85vh;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);padding:24px;box-shadow:0 24px 100px #122e4b40}dialog::backdrop{background:#122e4b88}dialog header{display:flex;align-items:center;gap:15px;justify-content:space-between;margin-bottom:18px}dialog header h2{margin:0}dialog header button{font-size:25px;line-height:1;padding:6px 12px}dialog p{font-size:15px}#demo>button{display:block;width:100%;margin:10px 0}.check{display:flex;align-items:center;gap:10px;min-height:52px;margin-top:12px}.check input{width:22px;height:22px}.drawer-options{display:grid;gap:10px}.drawer-options button{text-align:left}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:12px;padding:12px 20px;z-index:5;max-width:90%;font-size:14px;pointer-events:none}#toast:empty{display:none}.list-tools{display:flex;align-items:center;gap:10px}.list-tools button{font-size:13px}.subtitle{font-size:15px;color:var(--muted)}
@media(max-width:760px){.demo-banner{padding:0 14px;font-size:9px;letter-spacing:.8px}.demo-banner button{font-size:11px}.site-header{padding:15px 16px;gap:14px;flex-wrap:wrap}.brand{font-size:23px;flex:1}.brand-mark{width:40px;height:40px;line-height:39px;font-size:34px}.brand small{font-size:10px}.profile{font-size:13px}.profile small{font-size:10px}.profile .avatar{display:none}.campaign-picker{order:3;flex-basis:100%;max-width:none;width:100%;display:flex;align-items:center;gap:10px}.campaign-picker label{white-space:nowrap;margin:0;font-size:10px}.campaign-picker select{font-size:13px;min-width:0}.workspace{display:block}.rail{min-height:0;padding:0;border:0}.rail>.eyebrow,.rail-note{display:none}.primary-nav{position:fixed;bottom:0;left:0;right:0;z-index:4;display:flex;justify-content:space-around;background:#fffffff5;border-top:1px solid var(--line);padding:7px 9px calc(7px + env(safe-area-inset-bottom))}.primary-nav a{flex:1;flex-direction:column;gap:0;justify-content:center;padding:6px 4px;font-size:11px;border-radius:12px;min-height:58px}.primary-nav a span{font-size:23px;line-height:26px}.primary-nav a[aria-current=page]{background:var(--pale-blue);color:var(--blue)}main{padding:20px 16px 110px}.topline{margin-bottom:15px}.crumb{font-size:11px}.badge{font-size:10px}.hero{padding:22px;grid-template-columns:1fr;margin-bottom:18px}.hero-art{position:absolute;width:74px;right:16px;top:22px;opacity:.20}.hero h1{position:relative;font-size:31px;max-width:230px}.hero p{font-size:14px}.hero .eyebrow{font-size:10px}.hero .actions{margin-top:4px}.notice{padding:15px;font-size:13px}.section-head{margin-top:24px}.section-head h2{font-size:19px}.list-tools{gap:5px}.list-tools button{padding:8px 11px;font-size:12px}.thread-card{padding:16px 13px;gap:10px;grid-template-columns:36px 1fr 12px}.thread-card .topic-icon{width:34px;height:38px;font-size:19px}.thread-card strong{font-size:15px}.thread-card p{font-size:12px}.thread-panel{padding:19px 16px}.thread-panel h1{font-size:25px}.thread-panel .message p{font-size:16px}.desktop-list{display:none}.cards{grid-template-columns:1fr}.calendar-row{gap:10px}.calendar-row button{font-size:12px;padding:8px 11px}.calendar-row strong{font-size:14px}.composer .actions{align-items:stretch}.composer .primary{width:100%}.filters{gap:6px}.filters button,.filters a{font-size:12px}.card{padding:20px}#toast{bottom:90px;width:max-content;text-align:center}.topline button{font-size:12px;padding:8px 10px}dialog{padding:20px}.meta{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Identité TCollectif ; menu global superposé à la navigation de campagne. */
.tco-logo{width:46px;height:46px;flex-shrink:0}.wordmark{font-family:"Times New Roman",Times,serif;font-weight:700;font-size:32px;letter-spacing:0;color:#155a8a}.brand small{font-size:11px}.brand{gap:9px}#menu-open{color:#fff;background:#155a8a;border-color:#155a8a}#ecosystem{margin:0;height:100dvh;max-height:100dvh;width:min(340px,90vw);border-radius:0;padding:22px;overflow:auto}#ecosystem .drawer-brand{display:flex;flex-direction:column;align-items:center;gap:9px}#ecosystem .tco-logo{width:85px;height:85px}#ecosystem header{align-items:flex-start}#ecosystem h2{font-size:16px}#door-content a,#door-content button{display:flex;width:100%;align-items:center;min-height:44px;padding:10px 12px;text-align:left;margin:5px 0;border-radius:8px}#door-content a{background:#e6f1fa}#door-content details{border-bottom:1px solid var(--line);padding:8px 0}summary{cursor:pointer;min-height:44px;padding:10px 4px;font-weight:600}summary::marker{color:#155a8a}.combined-filters{border:1px solid var(--line);background:white;border-radius:14px;padding:16px;margin:18px 0}.filter-entry{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filter-entry button{min-width:0;background:var(--pale-blue);color:var(--blue)}.filter-summary{margin:12px 0 0;font-size:13px;color:var(--muted)}.tree-panel{padding:12px 0 0}.tree-panel details{border-left:2px solid #c8deee;padding-left:12px;margin:6px 0}.tree-actions{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.tree-actions button{font-size:13px}.tree-panel button[aria-pressed=true]{background:var(--blue);color:white}.thread-card>span{min-width:0}.thread-card strong,.thread-panel h1{overflow-wrap:anywhere}.map-key{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.map-key button{font-size:13px}.primary-nav a{min-height:52px}.section-head{flex-wrap:wrap}
@media(max-width:760px){.site-header{gap:10px}.brand{font-size:20px}.wordmark{font-size:27px}.brand small{font-size:9px}.tco-logo{width:34px;height:34px}.profile{margin-left:auto}.filter-entry button{font-size:13px;padding:10px 6px}.primary-nav a{justify-content:center}.tree-actions button{width:100%;text-align:left}.hero h1{max-width:none}#menu-open{padding:8px 10px}.brand{flex:initial}}

.hero{grid-template-columns:1fr}.drawer-brand .wordmark{font-size:32px}#menu-open:focus-visible{outline-color:#0a84ff}

/* Recherche locale et filtres taxonomiques multi-sélection. */
.search-row{display:flex;gap:8px;margin-bottom:14px}.search-row input{min-width:0;width:100%;border:1px solid #b8cedf;border-radius:10px;padding:10px;font:inherit}.taxonomy-choice{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 4px;font-size:14px;font-weight:500;margin:0;cursor:pointer}.taxonomy-choice input{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:#155a8a}.result-count{font-size:13px;color:var(--muted);margin:0}.tree-panel details .taxonomy-choice{margin-left:4px}@media(max-width:420px){.search-row{flex-wrap:wrap}.search-row input{flex-basis:100%}.search-row button{width:100%}}

/* Doctrino Chat : bloc de filtres unique et aperçus de partage horizontaux. */
.welcome-compact{padding:22px 26px}.welcome-compact h1{font-size:clamp(25px,3vw,33px)}.welcome-compact p{margin-bottom:12px}.conversation-browser .combined-filters{margin:0;border-radius:14px 14px 0 0}.conversation-browser .tree-panel{max-height:min(320px,34dvh);overflow:auto;overscroll-behavior:contain;padding-right:6px}.write-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;margin-bottom:16px;background:var(--pale-blue);border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px}.write-row>span{font-weight:650;font-size:14px}.conversation-browser .section-head{margin:20px 0 12px}.chat-lifecycle{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:13px;padding:10px 0}.chat-lifecycle button{font-size:13px}.shared-media,.attachment-draft{display:grid;gap:10px;margin-top:14px}.shared-media:empty,.attachment-draft:empty{display:none}.share-preview{display:grid;grid-template-columns:minmax(64px,1fr) minmax(0,3fr) 12px;gap:12px;align-items:center;text-align:left;width:100%;padding:10px;background:var(--paper);border-radius:12px;font-weight:400}.share-visual{display:grid;place-items:center;align-self:stretch;min-height:82px;background:var(--pale-blue);border-radius:8px;overflow:hidden;color:var(--blue)}.share-visual svg{width:100%;height:100%;min-height:82px;max-height:110px;object-fit:cover}.share-copy{display:grid;gap:4px;min-width:0}.share-copy small{font-size:11px;color:var(--muted)}.share-copy strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere}.share-copy>span{font-size:13px;line-height:1.45;color:var(--muted)}.share-arrow{color:var(--blue);font-size:22px}.file-symbol{font-size:18px;font-family:Georgia,serif;font-weight:700;border:2px solid currentColor;border-radius:3px;padding:12px 5px}.play-symbol{font-size:44px;line-height:1}.expanded-picture svg{display:block;width:100%;height:auto}.external-video{display:grid;place-items:center;background:var(--pale-blue);padding:24px;border-radius:12px;color:var(--blue)}.external-video p{margin:16px 0 0}.document-preview{padding:18px;background:white;border:1px solid var(--line);border-radius:12px}.attachment-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.attachment-tools>span{font-size:13px;flex-basis:100%}.attachment-tools button{font-size:14px}.draft-share .remove-attachment{font-size:12px;background:transparent;border:0;text-decoration:underline}.archive-actions{display:flex;gap:6px 16px;flex-wrap:wrap;margin-top:12px;align-items:center}.archive-actions label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;min-height:44px;margin:0}.archive-actions input{width:20px;height:20px;min-height:20px;accent-color:var(--blue)}.archive-actions button{font-size:13px;background:transparent}.destination-label{font-size:13px;color:var(--blue);padding:10px 12px;background:var(--pale-blue);border-radius:8px}.maturation{padding-left:24px}.maturation li{padding:6px 0}.maturation p{font-size:14px;margin:4px 0}blockquote{margin:12px 0;padding:12px;border-left:3px solid var(--blue);background:white;overflow-wrap:anywhere}
@media(max-width:760px){.welcome-compact{padding:18px}.share-preview{gap:8px;grid-template-columns:minmax(56px,1fr) minmax(0,3fr) 10px}.share-copy strong{font-size:15px}.share-copy>span{font-size:13px}.share-visual{min-height:80px}.share-copy small{font-size:11px}.chat-lifecycle{flex-wrap:wrap}.archive-actions{gap:3px 12px}.write-row{padding:10px 12px}.conversation-browser .section-head h2{font-size:22px}.section-head .subtle-link{font-size:12px}.composer .attachment-tools button{flex:1}.composer .actions{margin-top:14px}}

[hidden]{display:none!important}.session-label{margin-left:auto;font-size:13px;max-width:100%;overflow-wrap:anywhere}.message-head{justify-content:space-between;flex-wrap:wrap}.message-head small{font-size:12px}.rail a{overflow-wrap:anywhere}.wordmark{margin:0}.thread-panel h2{margin:0}.thread-panel{scroll-margin-top:12px}#search{width:100%}#messages{max-height:60vh;overflow:auto}#state{overflow-wrap:anywhere}.actions{margin-top:12px}.workspace .hero{margin-bottom:18px}.danger{border-color:#996b42}.limit-note{font-size:13px;color:var(--muted)}.tco-logo{max-width:100%}#disconnected{max-width:720px;margin:30px auto;padding:24px}#disconnected a{display:inline-flex;align-items:center}#disconnected p{overflow-wrap:anywhere}@media(max-width:760px){.session-label{flex-basis:100%;margin:0}.thread-panel{padding:16px}#messages{max-height:none}.site-header .brand{flex:1}.session-label button{font-size:13px}.rail .primary-nav{padding-bottom:env(safe-area-inset-bottom)}}

#search{font:inherit;padding:12px;border:1px solid #b8cedf;border-radius:10px;min-width:0;margin-bottom:12px}

.discussion-modes{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.discussion-modes>span,.discussion-modes>strong{flex:1;min-width:95px;padding:12px;border:1px solid var(--line);border-radius:12px;text-align:center;background:var(--card)}.discussion-modes .mode-current{background:var(--blue);color:white;border:2px solid var(--blue)}.discussion-modes .mode-current small{color:white}.discussion-modes small{font-size:12px}#draft-recovery{max-width:900px;margin:16px auto}#draft-text{width:100%;box-sizing:border-box}html{scroll-behavior:auto}

.thread-list{display:grid;gap:8px;margin:0 0 18px;scroll-margin-top:16px}.thread-choice{display:flex;flex-direction:column;gap:5px;text-align:left;padding:14px;min-width:0}.thread-choice strong{overflow-wrap:anywhere}.thread-choice small{font-weight:400;color:var(--muted)}.thread-choice[aria-pressed=true]{border:2px solid var(--blue);background:var(--pale-blue)}#thread-title{width:100%;box-sizing:border-box;font:inherit;padding:12px;margin:8px 0 16px;border:1px solid var(--line);border-radius:10px}.write-row{flex-wrap:wrap}#thread-navigation-state:empty{display:none}#general-title{overflow-wrap:anywhere;min-width:0}.section-head{flex-wrap:wrap}#discard-draft{margin-top:10px}

#drafts-panel{width:min(640px,calc(100vw - 28px));max-height:85dvh;box-sizing:border-box;overflow:auto;padding:18px;border:1px solid var(--line);border-radius:14px}#drafts-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}#drafts-panel h2{margin:0}#drafts-panel p,#drafts-panel strong{overflow-wrap:anywhere}#drafts-list{display:grid;gap:12px;margin:16px 0}.draft-item{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--pale-blue)}.draft-item strong,.draft-item small{display:block}.draft-item p{white-space:pre-wrap;font-size:14px}.draft-item .actions{display:flex;flex-wrap:wrap;gap:8px}.draft-item button{min-height:44px}#draft-copy{width:100%;box-sizing:border-box}#drafts-open{white-space:nowrap}#drafts-open-composer{margin-bottom:10px}#drafts-panel::backdrop{background:#10243c99}
/* Classement privé en préparation : sélection et lot sur mobile. */
.classification-box{border:1px solid var(--line);border-radius:12px;background:var(--pale-blue);padding:16px;margin:18px 0}.classification-box h3{margin-top:0}.classification-box p{font-size:14px}.classification-box label{margin-top:14px}.classification-box input[type=text],.classification-box select{box-sizing:border-box;font:inherit}.classification-plan{padding:14px;background:white;border:1px solid var(--line);border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.classification-plan>strong{display:block}.classification-plan blockquote{font-size:14px;white-space:pre-wrap}.classification-plan button{min-height:44px}.classification-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.classification-tags button{font-size:12px;color:var(--blue);background:var(--pale-blue);min-height:44px;max-width:100%;overflow-wrap:anywhere}.message>.taxonomy-choice{margin-bottom:12px}.classification-box .actions{flex-wrap:wrap}#classify-toggle[aria-pressed=true]{background:var(--blue);color:white}@media(max-width:420px){.classification-box{padding:12px}.classification-plan{padding:12px}.classification-box .actions>button{width:100%}}
.author-link{border:0;background:none;padding:6px 0;text-align:left;color:var(--blue);min-height:44px;font-weight:700}.message-more{margin-left:auto;min-width:44px;min-height:44px;font-size:24px}.context-actions{display:grid;gap:10px}.context-actions button{text-align:left;min-height:44px}.id-detail{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.id-detail textarea{font:13px monospace;min-height:60px;box-sizing:border-box}.draft-destination{border-top:1px solid var(--line);margin-top:12px}.draft-destination input,.draft-destination select{box-sizing:border-box;font:inherit;width:100%;margin:8px 0 14px}#object-panel,#rename-panel{box-sizing:border-box;overflow:auto}#rename-title{box-sizing:border-box}#object-panel p{overflow-wrap:anywhere}#classification-state{font-weight:600}

/* Shared status/identity affordances for messages, threads and future notifications. */
.inline-status{position:relative;max-width:100%;margin:10px 0;color:var(--blue)}.inline-status>summary{display:list-item;width:fit-content;max-width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--pale-blue);padding:10px 14px;min-height:44px;font-size:14px}.inline-status summary small{font-weight:400;margin-left:8px}.status-popover{box-sizing:border-box;max-width:440px;padding:14px;border:1px solid var(--line);border-radius:10px;background:white;box-shadow:0 4px 14px #10243c14;font-size:14px;overflow-wrap:anywhere}.status-popover p{margin:8px 0}.header-notifications{margin:0}.header-notifications .status-popover{position:absolute;right:0;z-index:20;width:min(360px,calc(100vw - 32px))}.id-hint{font-size:13px;color:var(--blue)}.id-detail textarea{width:100%;cursor:help}.inline-status>summary:focus-visible{outline:3px solid #0a84ff;outline-offset:2px}@media(max-width:760px){.header-notifications{flex-basis:100%}.header-notifications .status-popover{position:static;width:100%;max-width:none}.inline-status>summary{font-size:13px}}

/* Dense menus and thread hierarchy; simple code-native SVG, no image/font download. */
.ui-symbol{display:inline-block;width:18px;height:18px;flex:0 0 18px;vertical-align:middle;margin-right:6px}.icon-action{display:inline-flex;align-items:center;justify-content:center;padding:5px;min-width:30px;min-height:30px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:13px}.icon-action .ui-symbol{margin:0}.icon-action:hover:not(:disabled){background:var(--pale-blue);color:var(--blue)}.icon-action:disabled{opacity:.45;cursor:not-allowed}.message-tools{display:flex;align-items:center;gap:2px;margin-left:auto}.message-more{margin:0;border:0;background:transparent;min-width:30px;min-height:30px;padding:2px 5px;font-size:22px}.message-head{gap:8px;flex-wrap:nowrap;align-items:center}.message-head .author-link{font-size:13px;min-height:30px;padding:2px 0;min-width:0;overflow-wrap:anywhere}.message-head .message-time{display:flex;flex-direction:column;color:#72818e;font-size:10px;line-height:1.15;white-space:nowrap;font-weight:400}.thread-panel .message{padding:10px 0;margin:0}.thread-panel .message p{font-size:14px;line-height:1.45;margin:5px 0 9px}.thread-choice{padding:8px 10px;gap:0;flex-direction:row;align-items:center;justify-content:space-between;font-size:13px}.thread-choice strong{font-size:14px;min-width:0}.thread-choice small{font-size:11px;white-space:nowrap;margin-left:8px}.thread-list{gap:4px;margin-bottom:10px}#general-title{font-size:19px;line-height:1.3}.thread-panel .section-head{margin:8px 0;gap:6px}.thread-panel .section-head button,.thread-panel>.actions button{font-size:12px;min-height:32px;padding:6px 9px}.thread-panel>.actions{margin:6px 0;gap:6px}.thread-panel .limit-note{margin:5px 0;font-size:11px}.thread-panel .inline-status{margin:6px 0}.thread-panel .inline-status>summary{font-size:12px;min-height:30px;padding:5px 8px}
#object-panel.compact-menu{width:min(310px,calc(100vw - 24px));padding:10px;border-radius:9px}#object-panel.compact-menu header{margin-bottom:6px;gap:6px}#object-panel.compact-menu h2{font-size:14px}#object-panel.compact-menu header button{min-width:28px;min-height:28px;padding:2px 6px;font-size:20px}.compact-menu .context-actions{gap:1px}.compact-menu .context-actions button{justify-content:flex-start;text-align:left;min-height:32px;font-size:13px;padding:6px 8px;border:0;border-radius:5px;gap:9px;background:transparent}.compact-menu .context-actions button:hover:not(:disabled){background:var(--pale-blue)}
.id-detail{display:grid;grid-template-columns:20px minmax(0,1fr) 30px;align-items:center;gap:6px;margin-top:7px;padding-top:7px}.id-symbol{font:700 9px/15px sans-serif;border:1px solid currentColor;border-radius:3px;text-align:center;color:var(--muted)}.id-detail input{width:100%;min-width:0;box-sizing:border-box;border:0;background:transparent;font:11px monospace;color:var(--muted);padding:4px 0;height:28px;text-overflow:ellipsis;cursor:help;margin:0}.id-hint{grid-column:1/-1;font-size:11px;margin:0}.id-detail .icon-action{min-width:28px;min-height:28px}.compact-menu #object-status:empty{display:none}.compact-menu #object-status{font-size:11px;margin:4px 0}
@media(pointer:coarse){.message-tools .icon-action,.message-more{min-width:36px;min-height:40px}.compact-menu .context-actions button{min-height:40px}.id-detail .icon-action{min-height:40px}.id-detail input{height:40px}.id-detail{grid-template-columns:20px minmax(0,1fr) 40px}}
@media(max-width:420px){.message-head{gap:5px}.message-tools{gap:0}.message-head .author-link{font-size:12px}.thread-choice{flex-wrap:wrap}.thread-choice small{margin-left:24px}.thread-panel{padding:12px}}

/* Date locale en deux lignes, valeurs des IDs gardées hors du DOM. */
.message-head .message-time{display:flex;flex-direction:column;flex:0 0 40px;font-size:10px;line-height:1.25;color:#72818e;white-space:nowrap;font-weight:400;text-align:left}.id-detail .id-label{border:0;background:transparent;text-align:left;color:var(--muted);font-size:12px;min-height:28px;min-width:0;padding:4px 0;margin:0}.id-detail .id-label:hover{color:var(--blue)}@media(pointer:coarse){.id-detail .id-label{min-height:40px}}

.thread-panel .section-head .title-tool{display:inline-flex;justify-content:center;align-items:center;width:32px;min-width:32px;height:32px;padding:0;border:0;background:transparent;font-size:22px;color:var(--blue)}.thread-panel .section-head .info-tool{font:700 15px Georgia,serif;border:1px solid var(--line);border-radius:50%;width:28px;min-width:28px;height:28px;min-height:28px}@media(pointer:coarse){.thread-panel .section-head .title-tool{min-width:40px;min-height:40px}}
/* Grouped classification replies stay in the same inline panels on touch/desktop. */
.status-popover{max-height:65dvh;overflow:auto;overscroll-behavior:contain;width:min(440px,calc(100vw - 40px));box-sizing:border-box}
.classification-notification{border-bottom:1px solid var(--line,#c9d9e5);padding:8px 0;font-size:.85rem}
.classification-notification section{padding:8px 0}.classification-notification .actions{gap:5px;flex-wrap:wrap}
.classification-notification button{font-size:.8rem;padding:6px 9px;min-height:38px}
.classification-state-label{display:block;font-size:.78rem;color:#476879;margin:3px 0}
.classification-author{display:flex;align-items:center;gap:8px;font-size:.8rem}
.classification-notification blockquote{margin:8px 0;padding:4px 10px;border-left:2px solid #adc9df}
.classification-notification blockquote p{white-space:pre-wrap;margin:4px 0}
.classification-tag{font-size:.75rem;padding:3px 7px;margin:4px 3px 0 0;min-height:30px}
#classification-pending{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.85rem}
#classification-feedback:empty{display:none}.classification-warning{border-left:3px solid #b66f25;padding-left:8px}
@media(max-width:480px){.header-notifications .status-popover{position:absolute;left:0;right:auto;top:calc(100% + 4px);width:min(360px,calc(100vw - 36px))}.classification-notification button{min-height:44px}}

.classification-notification .section-head{margin:0 0 4px;gap:6px}.classification-notification section{margin:0;padding:6px 0}.classification-notification summary{font-size:12px;padding:4px 2px;min-height:36px}.classification-notification .author-link{min-height:32px;padding:3px 0}.classification-notification .actions{margin:4px 0}.inline-status summary small{display:inline}

.message-origin{font-size:12px;min-height:32px;padding:4px 8px;margin:4px 0;background:var(--pale-blue)}.classification-open{color:var(--blue);margin-top:4px}

/* Header actions stay together; help overlays instead of moving the conversation. */
.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.header-actions .header-notifications{flex-basis:auto}.header-actions>button{font-size:13px;white-space:nowrap}.conversation-browser>h2{margin-bottom:8px}#pap-help{width:min(370px,calc(100vw - 28px));padding:16px;border-radius:12px}#pap-help header{margin-bottom:10px}#pap-help h2{font-size:18px}#pap-help p{font-size:14px;line-height:1.5;margin:0}#pap-help-close{min-width:40px;min-height:40px}
@media(max-width:760px){.header-actions{flex-basis:100%;order:3;gap:10px}.header-actions .header-notifications{flex-basis:auto}.header-actions .inline-status>summary,.header-actions>button{font-size:13px;padding:8px 10px;min-height:44px}.site-header .session-label{order:4;font-size:11px}.site-header{row-gap:8px}.conversation-browser>h2{margin-bottom:8px}}
@media(max-width:360px){.site-header{padding:12px;column-gap:8px}.site-header .wordmark{font-size:23px}.site-header .tco-logo{width:28px;height:28px}.site-header .brand{gap:6px}.site-header #drafts-open{font-size:12px;padding:8px}.site-header #menu-open{font-size:13px;padding:8px}.site-header .brand small{font-size:8px}}

/* Rattachements: a compact anchored label, never a new screen. */
#thread-approvals{position:relative;width:fit-content}#thread-approvals>.status-popover{position:absolute;top:100%;left:0;z-index:21;width:min(360px,calc(100vw - 64px));max-height:55dvh;padding:10px;font-size:12px}#thread-approvals .classification-box{margin:0;padding:0;border:0;background:none}#thread-approvals .classification-box h3{font-size:12px;margin:0 24px 5px 0}#thread-approvals .classification-plan{margin:5px 0;padding:6px;border-radius:6px}#thread-approvals .classification-plan .actions{margin:3px 0;gap:5px}#thread-approvals button{font-size:12px;padding:5px 7px;min-height:32px}#thread-approvals small{font-size:11px}#thread-approvals .classification-author{gap:6px}#thread-approvals .classification-state-label{display:inline;margin-left:6px}#thread-approvals p{font-size:12px;margin:5px 0}#thread-approvals .classification-notification .section-head{margin:0}.popover-close{position:absolute;right:5px;top:3px;border:0;background:transparent;font-size:20px!important}#classification-result:empty,#classification-batch-state:empty{display:none}#classification-picker{padding:10px;margin:8px 0}#classification-picker h3{font-size:14px;margin:0 0 5px}#classification-picker label{margin-top:6px}#classification-picker .actions{margin-top:7px;gap:6px}#classification-picker button{font-size:12px;min-height:38px;padding:6px 9px}#classification-picker .actions>button{width:auto}.classification-author .author-link{padding:0;min-height:28px}.composer .help-text:empty{display:none}
@media(pointer:coarse){#thread-approvals button{min-height:40px}#thread-approvals>.status-popover{max-height:50dvh}}

#thread-approvals .classification-notification{padding:4px 0;font-size:12px}#thread-approvals .classification-notification .section-head{padding-right:22px}#thread-approvals .classification-author .author-link{min-height:28px;padding:2px 0}#thread-approvals .id-detail{margin-top:5px;padding-top:5px}

/* Compact dismissible session identity and connection state. */
.session-label #state{margin:2px 0 0;padding:0;background:transparent;font-size:inherit;line-height:1.4;color:var(--muted)}body:has(#workspace:not([hidden])) .session-label #state{color:#24633a}

.live-status{display:flex;align-items:center;gap:12px;padding:6px 24px;background:var(--pale-blue)}.live-status .session-label{margin:0;flex:1;font-size:13px;min-width:0}.live-status #status-dismiss{flex:0 0 40px;border:0;background:transparent;min-height:40px;padding:0;font-size:22px;color:var(--muted)}@media(max-width:760px){.live-status{padding:6px 16px}.live-status .session-label{font-size:11px;flex-basis:auto}}

/* Theme > thread > text, with a bounded thread picker. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.discussion-modes{gap:6px;margin-bottom:9px;flex-wrap:nowrap}.discussion-modes>strong,.discussion-modes>span{min-width:0;min-height:42px;padding:4px 8px;border-radius:8px;font-size:14px;line-height:1.15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.discussion-modes small{font-size:10px;line-height:1.1}
.conversation-browser{margin-bottom:4px;min-width:0}.theme-context{display:flex;align-items:center;gap:5px;min-height:34px;padding:3px 6px;border:0;background:transparent;font-size:12px;color:var(--blue)}.theme-context .ui-symbol{width:15px;height:15px;flex-basis:15px;margin:0}.theme-context>span:last-child{margin-left:5px}
.thread-current{display:flex;align-items:flex-start;gap:0;width:100%;min-width:0;border:1px solid var(--line);background:var(--card);border-radius:9px}.thread-current>button{border:0;border-radius:7px;background:transparent}.thread-open{display:flex;align-items:center;justify-content:center;flex:0 0 40px;min-width:40px;min-height:40px;padding:6px;border:0;background:transparent;border-radius:6px;color:var(--blue);align-self:flex-start}.thread-open .ui-symbol{margin:0}
.thread-title-preview{display:block;flex:1;min-width:0;min-height:40px;max-width:100%;border:0;border-radius:6px;background:transparent;padding:9px 4px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:500;line-height:1.5}.thread-title-preview.expanded{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}.thread-current .thread-title-preview{font-weight:650}#thread-picker-toggle{flex:0 0 40px;min-width:40px;min-height:40px;padding:4px}
.thread-picker{display:flex;flex-direction:column;max-height:min(420px,62dvh);width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:white;margin-top:3px;overflow:hidden}.thread-search-row{display:flex;align-items:center;gap:4px;padding:6px;flex:none;border-bottom:1px solid var(--line)}.thread-search-row #search{flex:1;min-width:0;width:0;min-height:40px;margin:0;font-size:14px;padding:8px;border-radius:7px}.thread-search-row button{min-width:40px;min-height:40px;padding:5px;font-size:12px;border-radius:7px;color:var(--blue)}.thread-search-row button[aria-expanded=true]{background:var(--pale-blue)}
.thread-picker-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;max-height:calc(62dvh - 55px)}.thread-picker .filter-entry{display:flex;flex-direction:column;gap:0}.picker-filter{margin:0;padding:8px 10px;background:var(--warm);border-bottom:1px solid var(--line)}.picker-filter h3{font-size:12px;margin:0 0 3px}.picker-filter label{font-size:12px;margin:0;min-height:36px}.picker-filter small{font-size:11px}.picker-filter input{min-height:20px}
.thread-picker .thread-list{gap:0;margin:0;padding:3px}.thread-picker .thread-choice{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:0;min-width:0;padding:0;border:1px solid transparent;border-radius:7px;font-size:13px}.thread-picker .thread-choice.selected{border-color:var(--blue);background:var(--pale-blue)}.thread-picker .thread-choice .thread-title-preview{font-size:13px}.thread-incomplete{font-size:12px;align-self:center;padding:0 7px}.thread-picker .empty{font-size:12px;padding:10px;margin:0;border:0}
.conversation-browser .write-row{justify-content:flex-end;flex-wrap:nowrap;padding:3px 0;margin:0;background:none;border:0;gap:6px}.conversation-browser .write-row>button{font-size:13px;min-height:36px;padding:5px 12px;border-radius:8px}.composer{padding:12px;margin-bottom:8px}.composer #drafts-open-composer{float:right;min-height:30px;font-size:11px;padding:3px 8px;margin:0 0 4px 8px}.composer #composer-label{font-size:13px;padding-top:4px;margin-bottom:6px}.composer #new-thread-fields:not([hidden]){clear:both}.composer #text{min-height:80px;font-size:14px;padding:10px;margin-bottom:4px}.composer .destination-label{font-size:11px;padding:5px 8px;margin:2px 0 6px}.composer #send{font-size:13px;min-height:38px;padding:6px 12px}.composer #send-state:empty{display:none}.thread-panel{padding:12px;margin-top:0}.thread-panel .section-head{margin:0 0 4px}#thread-navigation-state{font-size:12px;margin:4px 0}#current-thread-title:focus-visible,.thread-title-preview:focus-visible{outline-offset:-3px}
@media(max-width:760px){.workspace main{padding-left:10px;padding-right:10px}.composer{padding:10px}.conversation-browser .write-row>button{min-height:40px}.thread-panel{padding:10px}.thread-picker .thread-choice{flex-wrap:nowrap}}

.thread-picker{scroll-margin-bottom:80px}

/* Editor sheet is independent from navigation; only its handle remains when folded. */
#talk{padding-bottom:var(--editor-space,64px)}.editor-drawer{position:fixed;left:6px;right:6px;bottom:74px;z-index:15;max-height:var(--drawer-max,80dvh);display:flex;flex-direction:column;background:var(--card);border:1px solid #afcbdc;border-radius:14px 14px 0 0;box-shadow:0 -4px 18px #16334d1a;min-width:0}.editor-drawer #drawer-handle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:40px;flex:0 0 40px;border:0;border-radius:13px 13px 0 0;background:var(--pale-blue);padding:4px 12px;color:var(--blue);touch-action:none;cursor:ns-resize}.drawer-grip{height:4px;width:28px;flex:0 0 28px;background:#7c9caf;border-radius:5px}#drawer-caption{font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}#drawer-chevron{font-size:18px}.drawer-body{padding:5px 8px 8px;min-height:0;overflow:auto;overscroll-behavior:contain;max-height:calc(var(--drawer-max,80dvh) - 40px);scrollbar-gutter:stable}
.editor-drawer .conversation-browser{margin:0}.editor-drawer .theme-context{min-height:28px;padding:2px 4px;font-size:11px}.editor-drawer .thread-current{min-height:36px}.editor-drawer .thread-open,.editor-drawer .thread-title-preview,.editor-drawer #thread-picker-toggle{min-height:36px}.editor-drawer .thread-title-preview{padding:7px 4px}.editor-drawer .thread-picker{max-height:min(260px,34dvh);scroll-margin-bottom:0}.editor-drawer .thread-picker-content{max-height:none}
.drawer-toolbar{display:flex;align-items:center;gap:5px;margin:4px 0;min-width:0}.drawer-toolbar>button{min-height:36px;padding:4px 9px;border-radius:7px;font-size:12px;white-space:nowrap}.drawer-toolbar #drafts-open-composer{float:none;margin:0 auto 0 0;min-height:36px;font-size:12px}.drawer-toolbar #editor-more{flex:0 0 36px;width:36px;font-size:23px;line-height:1;border:0;padding:0}.editor-drawer .composer{padding:0;margin:0;border:0;border-radius:0;background:transparent}.editor-drawer .composer #text{min-height:80px;max-height:36dvh;margin:0 0 4px;font-size:14px}.editor-drawer .composer #send{min-height:38px;margin:0}.editor-drawer .composer #new-thread-fields label{font-size:12px;margin:2px 0}.editor-drawer #thread-title{margin:2px 0 5px;padding:8px;font-size:14px}.editor-drawer #send-state{font-size:12px;margin:4px 0 0}
.editor-menu{position:fixed;z-index:35;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;width:min(330px,calc(100vw - 24px));padding:8px;border:1px solid var(--line);border-radius:9px;background:white;box-shadow:0 5px 24px #16334d33;font-size:12px}.editor-menu>button,.editor-menu .drawer-info>button{display:block;width:100%;border:0;border-radius:5px;background:transparent;text-align:left;min-height:36px;padding:5px 8px;font-size:12px}.editor-menu>button:hover{background:var(--pale-blue)}.editor-menu label{font-size:11px;margin:6px 0 2px}.editor-menu select{font-size:12px;padding:7px;min-height:36px}.editor-menu .drawer-info{border-top:1px solid var(--line);margin-top:6px}.editor-menu .drawer-info summary{font-size:12px;padding:5px 8px;min-height:36px}.editor-menu .drawer-info p{font-size:11px;margin:6px 0}.editor-menu #discard-draft{margin:0}.editor-menu #thread-approvals{width:100%;margin:0}.editor-menu #thread-approvals>summary{min-height:36px;width:100%;border:0;border-radius:5px;background:transparent;padding:5px 8px;font-size:12px}.editor-menu #thread-approvals>.status-popover{position:relative;left:auto;top:auto;width:100%;max-height:none;padding:6px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}.editor-menu #thread-approvals button{min-height:36px}.editor-menu #thread-approvals .popover-close{top:0;right:0}.editor-menu #thread-approvals .classification-box{padding-top:10px}
#messages{max-height:none;overflow:visible}.thread-panel{padding:8px 10px;margin:0}.thread-panel .message:first-child{border-top:0}#message-warning:empty,#thread-action-state:empty{display:none}#message-warning{font-size:12px;margin:5px 0;color:#855124}.thread-panel .message-head{margin-bottom:5px}.thread-panel .message{padding:7px 0}.thread-panel .message p{margin:3px 0 7px}
@media(orientation:landscape) and (min-width:560px) and (max-width:760px){.workspace{display:grid;grid-template-columns:140px minmax(0,1fr)}.rail{padding:8px 4px;min-height:0}.rail .primary-nav{position:sticky;top:8px;bottom:auto;left:auto;right:auto;display:grid;gap:4px;padding:0;background:transparent;border:0}.primary-nav a{font-size:12px;min-height:44px;padding:8px 4px}.workspace main{padding:12px 10px 20px}.drawer-toolbar>button{padding:4px 7px}}
@media(pointer:coarse){.drawer-toolbar>button,.drawer-toolbar #drafts-open-composer,.editor-menu>button{min-height:40px}}

.editor-menu #editor-menu-close{position:absolute;z-index:1;right:3px;top:3px;width:34px;min-height:34px;padding:0;text-align:center;font-size:21px}.editor-menu #refresh{padding-right:38px}

/* Mobile review: less vertical chrome, a tight visible edge around the sheet. */
.editor-drawer{box-shadow:0 -2px 4px #13273740}
.editor-drawer.open{border-color:#72899b;box-shadow:0 -3px 5px #13273780,0 0 3px 1px #13273759}
.editor-drawer #drawer-handle{height:28px;min-height:28px;flex-basis:28px;padding:2px 10px}
.editor-drawer .drawer-body{padding:3px 6px 5px;max-height:calc(var(--drawer-max,80dvh) - 28px)}
.editor-drawer .drawer-toolbar{margin:2px 0;gap:4px}
.editor-drawer .drawer-toolbar>button,.editor-drawer .drawer-toolbar #drafts-open-composer{height:32px;min-height:32px;padding:2px 8px;font-size:12px}
.editor-drawer .drawer-toolbar #editor-more{flex-basis:32px;width:32px;padding:0;font-size:23px}
@media(max-width:760px) and (orientation:portrait),(max-width:559px){
 .rail .primary-nav{padding:2px 6px calc(2px + env(safe-area-inset-bottom));gap:3px}
 .rail .primary-nav a{min-height:40px;padding:2px 4px;border-radius:9px}
}

/* Three detents: the sheet follows the finger, then settles without rebuilding its editor. */
.editor-drawer .drawer-body{display:flex;flex-direction:column;flex:1;max-height:none}
.editor-drawer .conversation-browser{display:flex;flex-direction:column;flex:0 0 auto}
.editor-drawer .conversation-browser:has(.thread-picker:not([hidden])){flex:1 1 auto;min-height:180px}
.editor-drawer .theme-context,.editor-drawer .thread-current,.editor-drawer .drawer-toolbar{flex-shrink:0}
.editor-drawer .thread-picker{flex:1;min-height:100px;max-height:none}
.editor-drawer .thread-picker-content{flex:1;min-height:0}
.editor-drawer .thread-search-row{flex-shrink:0}
.editor-drawer .composer{display:flex;flex-direction:column;flex:0 0 auto}
.editor-drawer .composer #text{flex:none;max-height:36dvh}
.editor-drawer .composer #send{flex-shrink:0}
.editor-drawer.drawer-snap{transition:height .26s cubic-bezier(.4,0,.2,1)}
.editor-drawer.drawer-dragging{transition:none}
.editor-drawer #drawer-handle{cursor:grab;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.editor-drawer.drawer-dragging #drawer-handle{cursor:grabbing}
@media(prefers-reduced-motion:reduce){.editor-drawer.drawer-snap{transition:none}}

.editor-drawer .drawer-body:has(.thread-picker[hidden]) .composer{flex:1 0 auto}
.editor-drawer .drawer-body:has(.thread-picker[hidden]) .composer #text{flex:1 0 auto}

/* TDLV: inline choices, independent from thread search and the editor text. */
button.theme-context{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;border:0;background:transparent;padding:4px 6px;text-align:left;font-size:.85rem}
#current-theme-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
button.theme-context:disabled{opacity:1;color:#527083;cursor:default}
.theme-panel{border:1px solid #a9c4d8;background:#fff;border-radius:8px;padding:6px;max-height:45dvh;min-height:160px;display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}
.theme-tree{overflow:auto;min-height:0;flex:1}.theme-panel-heading,.theme-panel-actions,.theme-chosen{flex-shrink:0}
.theme-panel-heading,.theme-panel-actions{display:flex;align-items:center;gap:6px;justify-content:space-between}
.theme-panel-heading button,.theme-panel-actions button{padding:4px 8px;min-height:32px;font-size:.8rem}
.theme-node{display:flex;align-items:flex-start;gap:5px;min-width:0;font-size:.82rem;line-height:1.35;margin:3px 0}
.theme-node-controls{display:flex;gap:3px;flex:none;padding-top:3px}
.theme-node input{width:18px;height:18px;margin:0;accent-color:#155a8a}
.theme-node details{min-width:0;flex:1}.theme-node summary{min-height:26px;padding:3px 1px;overflow-wrap:anywhere;cursor:pointer;font-weight:500}
.theme-leaf{padding:3px 1px;overflow-wrap:anywhere}.theme-node .theme-node{margin-left:4px}
.theme-chosen{font-size:.75rem;line-height:1.3;overflow-wrap:anywhere;margin:5px 0}
.theme-budget{flex-shrink:0;font-size:11px;line-height:1.3;margin:3px 0 6px}.theme-over-budget{color:#982727;font-weight:600}
.theme-prepare{padding:4px 9px;min-height:32px;font-size:12px;margin:0 0 5px}
.message-themes{flex:0 0 auto;font-size:10px;font-weight:600;min-height:30px;padding:2px 4px;border:0;background:transparent;color:var(--blue)}
.assigned-theme-primary{font-size:12px;overflow-wrap:anywhere;margin:0 0 8px}
.assigned-theme-paths{list-style:none;padding:0;margin:0;max-height:55dvh;overflow:auto;overscroll-behavior:contain}
.assigned-theme-path{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;font-size:12px;line-height:1.5;padding:6px 2px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.assigned-theme-path>span,.assigned-theme-path>strong{min-width:0;max-width:100%}.theme-path-separator{color:var(--muted)}
@media(pointer:coarse){.message-themes{min-height:40px}}
#new-thread-fields:not([hidden]),#classification-title-field:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;align-items:center}
#new-thread-fields label,#classification-title-field label{grid-column:1/-1}
@media(max-width:480px){.theme-prepare{max-width:110px;white-space:normal;font-size:11px}}
#theme-feedback{font-size:.78rem;margin:2px 4px}#theme-feedback:empty{display:none}
#theme-filter-toggle[aria-pressed=true]{background:#155a8a;color:white}
.theme-panel:not([hidden])~.thread-current{margin-top:4px}

.space-control{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;font-size:.85rem}.space-control select{min-width:0;flex:1;max-width:100%;padding:8px;border:1px solid var(--border,#c9dbe6);border-radius:8px;background:white;color:inherit}.space-control [role=status]{flex-basis:100%}.space-control [role=status]:empty{display:none}
.group-theme-profile{margin:0 0 8px;font-size:.8rem}
.group-theme-profile summary{cursor:pointer;padding:5px 2px}
.group-theme-profile summary small{display:inline;font-weight:normal;color:#527083}
.group-theme-profile p{margin:4px 0;color:#527083}
.group-theme-profile ul{list-style:none;padding:0;margin:4px 0;max-height:28dvh;overflow:auto}
.group-theme-profile li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;padding:4px 0;border-top:1px solid #d8e3eb}
.group-theme-profile li span{min-width:0;overflow-wrap:anywhere}
.group-theme-profile li small{color:#527083;white-space:nowrap}

/* Compact location above date/author; expands in place without opening a screen. */
.message-location{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:8px;margin:0 0 2px;min-width:0}
.message-location button{display:flex;align-items:flex-start;gap:4px;min-width:0;min-height:24px;margin:0;padding:3px 0;border:0;border-radius:3px;background:transparent;color:#496579;font-size:11px;font-weight:650;line-height:1.25;text-align:left;cursor:pointer}
.message-location button span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.message-location .message-location-spaces{justify-content:flex-end;text-align:right}
.message-location .ui-symbol{width:12px;height:12px;flex:0 0 12px;margin:0}
.message-location button.expanded span{white-space:normal;overflow-wrap:anywhere}
.message-location button:hover{color:var(--blue)}
.message-location button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(pointer:coarse){.message-location button{min-height:28px;padding:5px 0}}

/* One compact space banner; thread messages do not repeat their location. */
.workspace .hero.welcome-compact{grid-template-columns:minmax(0,1fr);padding:10px 14px;margin-bottom:8px;border-radius:12px}
.welcome-compact #space-kind{font-size:11px;line-height:1.3;letter-spacing:1px;margin:0 0 4px;max-width:none}
.welcome-compact #welcome:not(.sr-only){font-size:18px;line-height:1.25;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}
.welcome-compact #destination{font-size:12px;line-height:1.4;margin:0;max-width:none;overflow-wrap:anywhere}
.workspace .hero.welcome-compact{grid-template-columns:minmax(0,1fr) 32px;gap:8px}
#space-info{align-self:start;width:30px;min-height:30px;padding:2px;border-radius:50%;color:var(--blue);background:transparent;font:700 18px Georgia,serif}
.drawer-bar{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:center;gap:2px;flex:0 0 36px;height:36px;padding:2px 4px;background:var(--pale-blue);border-radius:13px 13px 0 0;min-width:0}
.drawer-bar>button,.drawer-side>button{display:flex;align-items:center;justify-content:center;gap:3px;min-height:32px;height:32px;padding:3px 7px;border:0;border-radius:6px;background:transparent;white-space:nowrap;font-size:12px;color:var(--blue)}
.editor-drawer .drawer-bar #drawer-handle{width:100%;min-width:24px;min-height:32px;height:32px;padding:3px 5px;border-radius:5px;background:transparent}
.drawer-bar .drawer-grip{flex:0 1 60px;width:60px;height:18px;border-radius:4px;background-color:#cadde9;background-image:radial-gradient(#4c708b 1px,transparent 1px);background-size:5px 5px;box-shadow:inset 0 1px 2px #16334d35}
.drawer-bar #drawer-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:-1px}
.drawer-bar #drawer-collapse{font-size:21px;width:30px;padding:0}.drawer-bar #drawer-votes{font-weight:800;width:28px;border:1px solid #adc9dd}.drawer-bar #drawer-search .ui-symbol{width:16px;height:16px}
.drawer-toolbar{justify-content:flex-end}.thread-expand{min-height:36px;width:28px;flex:0 0 28px;padding:2px;border:0;background:transparent;font-size:18px}
.thread-picker-content{position:relative}.thread-picker-content:has(#territory-filter-panel:not([hidden])){overflow:hidden}
#territory-filter-panel{position:absolute;inset:0;z-index:3;overflow:auto;overscroll-behavior:contain;border:1px solid #93b0c4;border-radius:5px;background:var(--paper);box-shadow:0 0 4px 1px #16334d70;padding:6px 9px 12px;scrollbar-gutter:stable}
.filter-heading{display:flex;align-items:center;gap:8px;position:sticky;top:-6px;z-index:1;background:var(--paper);padding:3px 0 6px}.filter-heading button{min-height:30px;padding:2px 8px;font-size:12px}.filter-heading strong{flex:1;font-size:13px}
.filter-led{display:inline-block;width:6px;height:6px;border:1px solid #7892a6;border-radius:50%;background:transparent}.filter-active .filter-led{background:#226c48;border-color:#226c48}
#territory-filter-toggle[aria-pressed=true]{background:#cfdfeb;border-color:#698ba5;box-shadow:inset 0 0 0 1px #698ba5}
#theme-filter-toggle.filter-active{border-color:#226c48;color:#226c48}
#advanced-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
#advanced-filters>label,#advanced-filters legend{font-size:12px;margin:0;font-weight:600;min-width:0}
#advanced-filters input,#advanced-filters select{display:block;width:100%;min-width:0;min-height:32px;font-size:12px;padding:5px 7px;border:1px solid #b8cedf;border-radius:5px;margin-top:3px;background:white}
#advanced-filters select[multiple]{height:64px}#advanced-filters fieldset{margin:0;min-width:0;padding:5px;border:1px solid var(--line);border-radius:5px}
.date-range{display:flex;gap:5px}.date-range label{flex:1;min-width:0;font-size:11px}.inline-date{display:block;width:100%;min-height:30px;padding:3px;font-size:12px;border-radius:4px;white-space:nowrap}.inline-date.has-date{color:var(--blue);background:var(--pale-blue);text-decoration:underline;font-weight:750}
#advanced-filters>small,#advanced-filters>.filter-status,#advanced-filters>.inline-calendar,#advanced-filters>button{grid-column:1/-1}
#advanced-filters>small{font-size:10px;line-height:1.3}.filter-status{font-size:11px;margin:0}.filter-status:empty{display:none}#advanced-filters>button{min-height:30px;padding:4px;font-size:12px}
.inline-calendar{border:1px solid #91aec3;background:var(--card);box-shadow:0 0 4px #16334d65;padding:8px;border-radius:6px;max-width:340px;width:100%;justify-self:center}
.calendar-heading,.calendar-mask,.calendar-actions{display:flex;align-items:center;gap:5px}.calendar-heading{justify-content:space-between}.calendar-heading button{min-height:28px;padding:2px 8px}.calendar-mask{justify-content:center}.calendar-mask button{min-height:32px;padding:3px 10px;font-variant-numeric:tabular-nums}.calendar-mask [aria-pressed=true]{background:var(--blue);color:white}.calendar-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:6px 0}.calendar-keys button{min-height:34px;padding:4px;font-size:16px}.calendar-keys button:last-child{font-size:11px}.calendar-actions button{flex:1;min-height:32px;padding:3px;font-size:12px}.inline-calendar small{font-size:11px;margin:2px 0}
dialog.theme-panel{position:fixed;width:min(800px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);min-height:0;margin:auto;padding:12px;border:1px solid #87a8c2;border-radius:12px;box-shadow:0 4px 20px #13273770}
.theme-panel-heading{font-size:14px}.theme-breadcrumb{display:flex;gap:4px;flex-wrap:wrap;flex-shrink:0;margin:6px 0}.theme-breadcrumb button{min-height:30px;padding:3px 6px;font-size:11px;max-width:100%;overflow-wrap:anywhere}
.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:5px;max-height:60dvh;overscroll-behavior:contain}
.theme-grid .theme-node{align-items:center;gap:3px;margin:0;border:1px solid var(--line);border-radius:6px;padding:4px;min-height:48px}.theme-grid .theme-node-controls{padding:0;flex-direction:column;gap:5px}.theme-grid .theme-node>button{min-height:36px;padding:3px;font-size:12px;line-height:1.25;border:0;background:transparent}
.theme-grid .theme-node-name{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;font-weight:500}.theme-grid .theme-node>button:last-child:not(.theme-node-name){font-size:20px;width:24px;flex:none}
.theme-pages{display:flex;justify-content:center;align-items:center;gap:10px;font-size:12px;flex-shrink:0}.theme-pages button{min-height:30px;padding:2px 12px;margin:5px 0}.theme-chosen{font-size:11px;margin:4px 0;overflow-wrap:anywhere}.theme-panel-actions{flex-wrap:wrap}.vote-families{list-style:none;padding:0;margin:10px 0 0}.vote-families li{padding:6px 0;border-top:1px solid var(--line);font-size:13px}.vote-families small{display:inline;margin-left:6px;font-size:11px}
@media(max-width:600px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-grid .theme-node{min-height:42px}.theme-grid .theme-node>button{font-size:11px}#advanced-filters{grid-template-columns:minmax(0,1fr)}.drawer-bar>button,.drawer-side>button{padding:3px 5px}.drawer-bar .drawer-grip{max-width:42px}}

/* Campaign discovery: compact modal, separate from the writing context. */
#groups-panel{width:min(720px,calc(100vw - 20px));padding:14px;border-radius:12px;max-height:88dvh;overflow:auto}#groups-panel header{margin-bottom:8px;gap:8px}#groups-panel h2{font-size:18px}#groups-panel button{min-height:36px;padding:5px 10px;font-size:13px}#groups-panel p{font-size:13px;overflow-wrap:anywhere}.groups-toolbar,.groups-search,.groups-filters{display:flex;align-items:center;gap:6px}.groups-toolbar{flex-wrap:wrap;margin-bottom:8px}.groups-search input{min-width:0;flex:1;width:0;padding:9px;border:1px solid var(--line);border-radius:8px;background:white}.groups-filters{padding:6px;margin:4px 0 8px;background:var(--pale-blue);box-shadow:0 2px 5px #12334b40;border-radius:7px}.groups-filters span{flex:1;font-size:12px}#groups-filter.filter-active::before{content:'● ';color:#217047}#groups-results{max-height:49dvh;overflow:auto;overscroll-behavior:contain}.group-result{border-bottom:1px solid var(--line);padding:10px 3px;overflow-wrap:anywhere}.group-result strong{font-size:14px}.group-result p{margin:4px 0}.group-result details{font-size:12px;margin:6px 0}.group-result button{margin-top:4px}#group-create-form{padding:10px;background:var(--pale-blue);border-radius:8px;margin-top:8px}#group-create-form input,#group-create-form textarea{width:100%;box-sizing:border-box}#group-create-form .groups-toolbar{margin:6px 0 0}#groups-theme-panel{width:min(780px,calc(100vw - 20px));padding:12px;max-height:88dvh}#groups-theme-panel .theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#groups-open{margin-left:auto;font-size:13px}#notifications.drawer-notifications{flex:0 0 auto;margin:0;position:static}#notifications.drawer-notifications>summary{display:flex;align-items:center;gap:3px;min-height:32px;height:32px;padding:3px 6px;border:0;border-radius:6px;background:transparent;font-size:14px;box-sizing:border-box}#notifications.drawer-notifications summary small{margin:0;font-size:11px}#notifications.drawer-notifications .status-popover{position:fixed;right:12px;left:auto;bottom:calc(var(--drawer-bottom,0px) + 40px);top:auto;z-index:60;max-height:60dvh;width:min(370px,calc(100vw - 24px));background:white;box-shadow:0 2px 14px #12334b66}#notifications.drawer-notifications[open]>summary{background:#c8dde9}@media(max-width:760px){#notifications.drawer-notifications .status-popover{bottom:calc(75px + env(safe-area-inset-bottom))}.site-header{flex-wrap:nowrap}.site-header .brand{min-width:0}.site-header .wordmark{font-size:25px}.site-header #groups-open{padding:7px}.drawer-bar .drawer-grip{max-width:30px}}@media(max-width:370px){.site-header .tco-logo{width:28px;height:28px}.site-header .wordmark{font-size:23px}.drawer-bar>button,.drawer-side>button{padding:3px}.drawer-bar #drawer-handle{min-width:18px}}

/* Accès immédiats, indépendants de la disponibilité de l’annuaire. */
#groups-memberships{margin:8px 0 12px}#groups-memberships h3{font-size:12px;margin:0 0 5px;color:var(--muted)}.groups-space-list{display:flex;flex-wrap:wrap;gap:5px;max-height:22dvh;overflow:auto;overscroll-behavior:contain}.groups-space{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;text-align:left;overflow-wrap:anywhere}.groups-space[aria-current=page]{background:var(--pale-blue);border-color:var(--blue);opacity:1;cursor:default}.groups-space small{font-size:10px;white-space:nowrap}@media(max-width:760px){.groups-space-list{display:grid;grid-template-columns:minmax(0,1fr)}.groups-space{justify-content:space-between;width:100%}}

/* Equal side tracks keep the handle at the bar's actual centre, whatever the counts. */
.drawer-side{display:flex;align-items:center;gap:2px;min-width:0}.drawer-side-start{justify-content:flex-start}.drawer-side-end{justify-content:flex-end}
.drawer-side>button{flex-shrink:0}.drawer-side #drafts-open-composer{flex-direction:column;gap:0;margin:0;line-height:1.05;padding:2px 4px;font-size:11px;min-width:48px}
#drafts-count{font-variant-numeric:tabular-nums;max-width:48px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:350px){#editor-drawer .drawer-side-end{gap:0}#editor-drawer #drawer-votes,#editor-drawer #drawer-collapse{width:22px}#editor-drawer #drafts-open-composer{width:46px;min-width:46px;padding-inline:1px}#editor-drawer #notifications>summary{width:24px}}
@media(max-width:350px){#editor-drawer #drawer-search{font-size:10px;width:40px;padding-inline:0;gap:2px}}
#notifications.drawer-notifications summary small{max-width:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.dunbar-control{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0;max-width:100%}.dunbar-control label{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:5px;font-weight:bold;flex-shrink:0}.dunbar-control select{min-width:0;max-width:260px;padding:5px;border:1px solid var(--line);border-radius:6px;color:inherit;background:var(--pale-blue);font-size:12px}.workspace .hero.welcome-compact{grid-template-columns:minmax(0,1fr) minmax(160px,260px) 32px}.welcome-compact>div:first-child{min-width:0}.terrain-notifications-button{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;width:30px;min-width:30px;height:32px;padding:1px!important}.terrain-notifications-button small{font-size:9px;font-variant-numeric:tabular-nums}#terrain-notifications-panel{width:min(520px,calc(100vw - 20px));box-sizing:border-box;max-height:85dvh;overflow:auto;padding:14px;border-radius:12px}#terrain-notifications-panel h2{font-size:18px}#terrain-notifications-panel header{gap:8px}.terrain-notification{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.terrain-notification p{margin:4px 0}.terrain-notification small,.terrain-notification a{display:block;margin-top:6px}.terrain-notification small{font-size:11px;color:var(--muted)}#groups-panel .space-control{display:flex;flex-wrap:wrap;margin:8px 0}#space-status:not(:empty){display:block;width:100%}
@media(max-width:600px){.workspace .hero.welcome-compact{grid-template-columns:minmax(0,1fr) 32px;gap:5px}.dunbar-control{margin-left:0;grid-column:1 / -1;grid-row:2;width:100%}.dunbar-control select{flex:1;max-width:100%;min-height:32px}.welcome-compact #space-info{grid-column:2;grid-row:1}.drawer-side-start #drawer-search{font-size:11px}.drawer-side-start #drawer-search svg{width:14px;height:14px}.drawer-side-start #drawer-groups{font-size:10px}.drawer-side-start .terrain-notifications-button{width:26px;min-width:26px}}
@media(max-width:600px){.drawer-bar{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:1px;padding-inline:3px}.drawer-side{gap:1px}.drawer-side>button{padding:2px 4px;font-size:11px}.editor-drawer .drawer-bar #drawer-handle{padding:3px 1px}.drawer-bar #drawer-collapse{width:24px}.drawer-bar #drawer-votes{width:24px}#notifications.drawer-notifications>summary{flex-direction:column;justify-content:center;width:28px;padding:2px;gap:0}#notifications.drawer-notifications summary small{max-width:24px;line-height:1;font-size:10px}#notifications.drawer-notifications summary svg{height:16px}}

#space-status:empty{display:none}#space-status{font-size:12px;margin:4px 0 8px;color:var(--ink)}

/* Profondeur is selected through E; notifications flank the geometric centre. */
.drawer-side-start #terrain-notifications-open{margin-left:auto}
#notifications.drawer-notifications{margin-right:auto}
#drawer-dunbar{width:28px;min-width:28px;padding:2px;border:1px solid #9bbad0;background:transparent;border-radius:4px;font-weight:700}
.workspace .hero.welcome-compact{grid-template-columns:minmax(0,1fr) auto 32px}
.welcome-compact .dunbar-current{font-size:12px;margin:0;max-width:260px;overflow-wrap:anywhere}
#dunbar-panel{width:min(480px,calc(100vw - 24px));box-sizing:border-box;max-height:85dvh;padding:16px;border-radius:12px;overflow:auto}
#dunbar-panel header{gap:10px}#dunbar-panel h2{font-size:18px}#dunbar-panel p{font-size:13px;overflow-wrap:anywhere}
#dunbar-panel .dunbar-control{display:block;margin:0;width:100%}
#dunbar-panel label{display:block;width:auto;height:auto;border:0;font-size:12px;font-weight:500;margin-bottom:6px}
#dunbar-panel select{width:100%;max-width:none;min-height:40px;font-size:14px}
@media(max-width:600px){
 .workspace .hero.welcome-compact{grid-template-columns:minmax(0,1fr) 32px}
 .welcome-compact .dunbar-current{grid-column:1;grid-row:2;max-width:100%;font-size:11px}
 #editor-drawer #drawer-groups{padding-inline:2px;font-size:10px}
 #editor-drawer #drawer-dunbar{width:22px;min-width:22px;padding:0;font-size:11px}
 #editor-drawer #drawer-search{width:35px;min-width:35px;padding:0;gap:1px;font-size:10px}
 #editor-drawer #drawer-search svg{width:12px;height:12px}
 #editor-drawer .terrain-notifications-button{width:24px;min-width:24px}
 #notifications.drawer-notifications>summary{width:24px}
}

/* 11 October: user-approved square E, joined search label, wider centred grip. */
#editor-drawer .drawer-bar{--bar-side:170px;--bar-gap:14px;column-gap:var(--bar-gap);grid-template-columns:minmax(0,1fr) clamp(24px,calc(100% - var(--bar-side) - var(--bar-side) - var(--bar-gap) - var(--bar-gap) - 8px),180px) minmax(0,1fr)}
#editor-drawer #drawer-dunbar{box-sizing:border-box;width:32px;min-width:32px;height:32px;min-height:32px;padding:0}
/* PROTECTED UI — Yannick, 13 October: same square, current level/type inside. */
#editor-drawer #drawer-dunbar{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.1}
#drawer-dunbar .dunbar-level{font-size:10px;font-weight:700}
#drawer-dunbar .dunbar-mode{font-size:9px;font-weight:400}
/* One whole dropdown control; unchanged icon/title/caret positions. */
.thread-current>#thread-picker-toggle{display:flex;align-items:flex-start;flex:1;min-width:0;width:100%;padding:0;color:inherit}
#thread-picker-caret{display:grid;place-items:center;flex:0 0 40px;min-height:36px;padding:4px}
#editor-drawer #drawer-search{width:auto;min-width:31px;padding-inline:2px;gap:1px;justify-content:center}
#editor-drawer #drawer-search .ui-symbol{flex:none;margin:0}
#editor-drawer .drawer-bar #drawer-handle{padding-inline:0}
#editor-drawer .drawer-bar .drawer-grip{width:100%;max-width:none;flex:1 1 auto}
@media(max-width:600px){#editor-drawer .drawer-bar{--bar-side:134px;--bar-gap:4px;grid-template-columns:minmax(0,1fr) clamp(16px,calc(100% - var(--bar-side) - var(--bar-side) - 14px),66px) minmax(0,1fr)}#editor-drawer .drawer-bar #drawer-handle{min-width:16px}}

/* 12 October: approved stacked navigation; original TDLV cells stay unchanged. */
dialog.theme-stacked{display:flex;flex-direction:column;overflow:hidden}
.theme-stacked .theme-stack{overflow:auto;min-height:0;flex:1 1 auto;overscroll-behavior:contain}
.theme-stacked .theme-stack-level{border:1px solid #a9c4d8;border-radius:12px;padding:12px;background:#fff;margin:0 0 12px;scroll-margin-top:4px}
.theme-stacked .theme-stack-level:last-child{margin-bottom:0}
.theme-stacked .theme-stack-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.theme-stacked .theme-stack-heading h2{font-size:14px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.theme-stacked .theme-stack-heading button{flex:none;font-size:12px;min-height:32px;padding:4px 8px}
.theme-stacked .theme-stack .theme-grid{max-height:none;overflow:visible}
.theme-stacked>.theme-panel-heading,.theme-stacked>.theme-breadcrumb,.theme-stacked>.theme-chosen,.theme-stacked>.theme-budget,.theme-stacked>.theme-panel-actions{flex-shrink:0}
dialog.theme-stacked:not([open]){display:none}

/* PROTECTED LAYOUT — Yannick, 12 October 2026 (posts2).
   Date at left; pseudo above Fil; arrows above ellipsis. Bottom spacing unchanged.
   Before THIS change: one-line post 80.390625px; three separators enclose TWO
   intervals = 160.78125px. Coarse-pointer reference 164.59375px, CSS-derived.
   Initial pre-compaction 85.390625px remains documented in PASSATION entetes-posts.
   Future carousel uses the recorded pre-posts2 span, never the new compact height. */
.thread-panel{--message-preview-row-height:160.8px;--message-text-leading:21px;--message-media-spacing:calc(1.5 * var(--message-text-leading));--message-file-color:#0000ff}
.thread-panel .message{padding-top:2px}
.thread-panel .message-head{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:8px;padding-right:64px;margin-bottom:2px}
.message-identity{display:flex;flex-direction:column;align-items:stretch;gap:1px;min-width:0}
.message-head .author-link{align-self:flex-start;max-width:100%;min-height:0;padding:0;line-height:1.25}
.message-thread{position:relative;display:flex;align-items:baseline;min-width:0;min-height:0;gap:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--blue);font-size:12px;line-height:1.3;text-align:left}
.message-thread-prefix{flex:none}
.message-thread-title{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.message-thread:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.message-thread-tooltip{position:absolute;top:calc(100% + 4px);left:0;z-index:40;width:max-content;max-width:100%;padding:7px 9px;border:1px solid #8bb9dc;border-radius:6px;background:#16334d;color:white;box-shadow:0 3px 10px #16334d33;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4;font-weight:500;pointer-events:none}
.message-head .message-tools{position:absolute;right:-2px;top:-4px;display:grid;grid-template-columns:repeat(2,30px);grid-template-rows:18px 18px;gap:0;margin:0}
.message-tools .icon-action,.message-tools .message-more{min-width:30px;min-height:18px;height:18px;padding:0;line-height:18px}
.message-tools .message-more{grid-column:2;grid-row:2;justify-self:stretch}
.thread-panel .message p{margin-top:0;line-height:1.5}
/* Reserved for attachment rendering; no upload/transport in this layout lot. */
.message-attachment-carousel{display:flex;gap:var(--message-media-spacing);height:var(--message-preview-row-height);margin-top:var(--message-media-spacing);overflow-x:auto;overflow-y:hidden}
.message-attachment-carousel img{display:block;height:100%;width:auto;object-fit:contain;flex:none}
.message-file-link,.message-file-link:visited,.message-file-link:hover{font-weight:700;color:var(--message-file-color,#0000ff);text-decoration:none}
@media(max-width:420px){.thread-panel .message-head{gap:5px}}
@media(pointer:coarse){.thread-panel{--message-preview-row-height:164.6px}.thread-panel .message-head{padding-right:76px}.message-head .message-tools{grid-template-columns:repeat(2,36px)}.message-tools .icon-action,.message-tools .message-more{min-width:36px}}

/* PROTECTED LAYOUT — Yannick, 12 October 2026: compact drawer, direct title.
   Keep the existing bar, post headers and TDLV panels. Expanded editing remains.
   A successful connection notice disappears after 10 s, without a framed row. */
.site-header:has(#session-status){flex-wrap:wrap;row-gap:0}
.site-header #session-status{flex:1 0 100%;min-width:0;padding:2px 0 0;border:0;box-shadow:none;background:transparent;gap:4px;justify-content:flex-end}
.site-header #session-status .session-label{margin:0;font-size:11px;line-height:1.25;text-align:right;flex:1}
.site-header #session-status #state{display:inline;margin:0 0 0 5px;line-height:1.25}
.site-header #status-dismiss{flex:0 0 20px;min-height:20px;height:20px;font-size:17px}
.editor-drawer .drawer-toolbar #new-thread-fields{display:block;flex:1;min-width:0}
.editor-drawer .drawer-toolbar #thread-title{display:block;width:100%;height:30px;min-height:30px;margin:0;padding:3px 7px;border-radius:6px;background:#eeeeee;color:var(--ink);font-size:14px;line-height:20px}
.editor-drawer .composer #text{box-sizing:border-box;height:70px;min-height:70px;line-height:20px;padding:4px 8px;resize:none;max-height:none}
.editor-drawer .drawer-body{scrollbar-gutter:auto}
.editor-drawer .drawer-body:has(.thread-picker[hidden]) .composer{flex:1 1 auto;min-height:0}
.editor-drawer .drawer-body:has(.thread-picker[hidden]) .composer #text{flex:1 1 auto;min-height:70px}
.editor-menu #current-theme{width:100%;text-align:left;white-space:normal}

/* PROTECTED LAYOUT — Yannick, 12 October 2026: equal space above/below
   the banner, Home in place of i, no Terrain/Discuter/Vie du groupe rail.
   Post layout, TDLV panels and drawer bar remain as approved. */
.workspace{display:block}
.workspace main{padding-top:8px;padding-bottom:20px}
.workspace .welcome-compact #space-home{display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:5px;border:1px solid var(--line);border-radius:50%;color:var(--blue);text-decoration:none;align-self:start}
.workspace .welcome-compact #space-home svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workspace .welcome-compact #space-home[aria-current="page"]{background:var(--blue);color:#fff}
.workspace .view-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.workspace .view-heading h2{margin:0}
.workspace #group-context{margin:0 0 8px}
.editor-drawer{--drawer-safe-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:600px){.workspace .welcome-compact #space-home{grid-column:2;grid-row:1}}
/* PROTECTED UI — Yannick, 13 October 2026: replaces + Écrire only.
   Order: title, paperclip, image, square Auto/PN, existing … at the right.
   Placement and behavior require approval before future changes; see manual. */
.drawer-toolbar .composer-tools{display:flex;align-items:center;gap:4px;flex:none}
.editor-drawer .composer-tools>button{display:flex;align-items:center;justify-content:center;flex:none;width:30px;min-width:30px;height:30px;min-height:30px;padding:4px;border-radius:5px;color:var(--blue);background:var(--pale-blue)}
.editor-drawer .composer-tools>button:disabled{opacity:.6;cursor:not-allowed}
.composer-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.editor-drawer .composer-tools>.autopn-tool{flex-direction:column;gap:0;padding:1px;font-size:10px;line-height:12px}

/* N.M.A. visitor lobby: descriptive label, no political status. */
.author-link.visitor-label,.visitor-lobby #identity{color:#4b4b4b}
.visitor-lobby #identity{font-weight:600}
