/* Lucas GILL · Mon espace V0.79 · Common visual and CRM system */
:root{--crm-accent:#206fac;--crm-accent-soft:#e7f2fb;--crm-surface:var(--v74-surface,#fff);--crm-bg:var(--v74-bg,#f4f7fb);--crm-text:var(--v74-text,#172b42);--crm-muted:var(--v74-muted,#52677b);--crm-border:var(--v74-line,#d5e0eb);--crm-shadow:0 8px 25px #1027460a}
html[data-theme="dark"],body[data-theme="dark"]{--crm-accent:#8dcfff;--crm-accent-soft:#1d3c5e}
.portal-layout .dash-main{min-width:0}
.portal-layout .sidebar-brand .brand-monogram{background:#102a49;color:#f7fbff;border:1px solid #347cc1}
.portal-layout .brand-text strong,.portal-layout .brand-text small{color:var(--v74-text)!important;opacity:1!important}
.portal-layout .hub-card,.portal-layout .crm-card,.portal-layout .tile{color:var(--v74-text)}
.portal-layout button:focus-visible,.portal-layout a:focus-visible,.crm-dialog :focus-visible{outline:3px solid var(--v74-focus);outline-offset:2px}
[hidden]{display:none!important}
/* The catalog is editable without hiding other personal tools. */
.v075-tile-management{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:9px 0 13px}
.v075-tile-management .hub-link-action{min-height:39px}
.v075-tile-editor{padding:12px;border:1px solid var(--v74-line);border-radius:13px;background:var(--v74-surface);margin:6px 0 14px}
.v075-tile-editor form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,2fr) auto;align-items:end;gap:10px}
.v075-tile-editor label{display:grid;gap:5px;font-size:12px;color:var(--v74-muted)}
.v075-tile-editor input{min-width:0;min-height:41px;border:1px solid var(--v74-line);border-radius:9px;padding:9px 11px;background:var(--v74-surface);color:var(--v74-text);font:inherit}
.v075-tiles-own{margin:15px 0}.v075-tiles-own .sec-head{margin-bottom:8px}
.v075-tiles-own .tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(166px,1fr));gap:10px}
.v075-tile-remover{position:absolute;right:7px;top:6px;z-index:3;width:28px;height:28px;border-radius:8px;border:1px solid var(--v74-line);background:var(--v74-surface);color:var(--v74-text);cursor:pointer;font-size:19px;line-height:1}
.v075-tiles-own .tile{position:relative;min-height:118px}.v075-tile-remover:hover{color:#e56c6c}
.reorder-active .tile-entry{position:relative}.reorder-active .tile-entry .v075-tile-remover{display:flex}
.tile-entry .v075-tile-remover{display:none}
.v075-hidden-panel{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 15px}.v075-hidden-panel button{padding:7px 10px;border-radius:9px;background:var(--v74-soft);border:1px solid var(--v74-line);color:var(--v74-text);cursor:pointer}
/* CRM page */
.crm-main{width:100%;min-height:100vh}.crm-content{max-width:1530px;margin:0 auto;padding:22px clamp(14px,2.7vw,34px) 75px;color:var(--crm-text)}
.crm-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.crm-heading h1{font:760 clamp(30px,3vw,43px)/1.1 Inter,"Segoe UI",system-ui,sans-serif;letter-spacing:-.05em;color:var(--v74-text);margin:4px 0 7px}
.crm-heading p{font-size:13px;line-height:1.5;color:var(--crm-muted);max-width:600px;margin:0}
.crm-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.crm-btn{appearance:none;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:9px 13px;border-radius:9px;border:1px solid var(--crm-border);font:650 12px/1.25 Inter,"Segoe UI",system-ui,sans-serif;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,transform .15s}
.crm-btn:hover{transform:translateY(-1px)}.crm-btn-primary{background:#155f99;color:white;border-color:#155f99}.crm-btn-primary:hover{background:#0b4b7e}.crm-btn-soft{background:var(--crm-surface);color:var(--crm-text)}.crm-btn-soft:hover{background:var(--v74-soft)}.crm-btn-ghost{border-color:transparent;background:transparent;color:var(--v74-strong)}.crm-btn-small{min-height:33px;padding:7px 10px;font-size:11px}
.crm-message{padding:9px 12px;font:600 12px/1.45 system-ui;border:1px solid var(--crm-border);border-radius:9px;color:var(--crm-muted);background:var(--crm-surface);margin-bottom:14px}.crm-message[data-status="error"]{border-color:#d46e6e;color:#b84f50}.crm-message[data-status="busy"]{color:var(--v74-strong)}
.crm-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:12px 0 17px}
.crm-stat{min-width:0;min-height:90px;border:1px solid var(--crm-border);border-radius:12px;text-align:left;padding:14px 12px;background:var(--crm-surface);color:var(--crm-text);display:flex;flex-direction:column;gap:8px;box-shadow:var(--crm-shadow);cursor:pointer}
.crm-stat:disabled{cursor:default;opacity:1}.crm-stat strong{font-size:24px;line-height:1;letter-spacing:-.04em;color:var(--v74-strong)}.crm-stat small{color:var(--crm-muted);font-size:11px;line-height:1.35;font-weight:620}
.crm-toolbar{display:flex;align-items:center;gap:9px;margin:12px 0;flex-wrap:wrap}.crm-toolbar-search{flex:1 1 300px;min-width:180px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--crm-border);border-radius:10px;background:var(--crm-surface);height:42px}.crm-toolbar-search svg{width:17px;height:17px;color:var(--crm-muted)}
.crm-toolbar-search input{flex:1;min-width:0;border:0;background:transparent;outline:0;color:var(--crm-text);font:500 13px system-ui}.crm-toolbar-select{flex:0 1 170px}.crm-toolbar-select select,.crm-status-select{width:100%;min-height:42px;max-width:100%;border:1px solid var(--crm-border);border-radius:10px;padding:9px 11px;background:var(--crm-surface);color:var(--crm-text);font:600 12px system-ui}
.crm-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--crm-border);margin-bottom:12px;overflow-x:auto;scrollbar-width:thin}.crm-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--crm-muted);min-height:43px;padding:11px 15px;white-space:nowrap;font:650 12px system-ui;cursor:pointer}.crm-tab.active{border-color:var(--v74-blue);color:var(--v74-strong)}.crm-filter-count{font-size:11px;color:var(--crm-muted);margin-left:auto;white-space:nowrap;padding-right:8px}
.crm-results{min-height:170px}.crm-list-head{display:grid;grid-template-columns:minmax(190px,2fr) minmax(235px,2.1fr) minmax(140px,.85fr);gap:12px;color:var(--crm-muted);font-size:10px;font-weight:750;letter-spacing:.1em;padding:9px 17px}
.crm-record{display:grid;grid-template-columns:minmax(180px,2fr) minmax(225px,2.1fr) minmax(170px,.85fr);align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--crm-border);background:var(--crm-surface);border-radius:10px;margin-bottom:7px;min-width:0;box-shadow:var(--crm-shadow)}
.crm-record-lead{display:flex;align-items:center;gap:11px;min-width:0}.crm-avatar{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;background:var(--v74-soft);border:1px solid var(--crm-border);border-radius:10px;color:var(--v74-strong);font:800 18px system-ui}.crm-company{min-width:0;display:grid;gap:2px}.crm-company strong{font:750 13px/1.25 system-ui;white-space:normal;overflow-wrap:anywhere}.crm-company small{font:500 11px/1.4 system-ui;color:var(--crm-muted);overflow-wrap:anywhere}
.crm-record-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0;color:var(--crm-muted);font-size:11px}.crm-record-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end;flex-wrap:wrap}.crm-record-actions .crm-status-select{min-height:32px;padding:6px 7px;font-size:11px;flex:1 1 120px}.crm-record-due.due{color:#a94850;font-weight:700}
.crm-status{border:1px solid var(--crm-border);background:var(--v74-soft);color:var(--v74-strong);padding:4px 7px;border-radius:6px;white-space:nowrap;font-size:10px;font-weight:730}.crm-status-refus{color:#ab4e5c}.crm-status-offre{color:#1c8b70}.crm-status-relance{color:#b47a2c}
.crm-empty{margin:0;color:var(--crm-muted);padding:19px 13px;font:500 12px/1.6 system-ui}
.crm-board{display:grid;grid-template-columns:repeat(7,minmax(205px,1fr));gap:10px;overflow-x:auto;align-items:stretch;padding:2px 1px 12px;min-width:0}.crm-column{display:flex;flex-direction:column;min-height:270px;background:var(--v74-soft);border:1px solid var(--crm-border);border-radius:12px;padding:8px}.crm-column-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 7px 12px;font-size:12px}.crm-column-head strong{font-weight:750;color:var(--crm-text)}.crm-column-head span{color:var(--crm-muted)}.crm-column-cards{flex:1;min-height:150px;display:grid;align-content:start;gap:7px}.crm-column .crm-record{grid-template-columns:1fr;margin:0;padding:11px;gap:8px}.crm-column .crm-record-meta{gap:6px}.crm-column .crm-record-actions{justify-content:flex-start}.crm-column-empty{padding:10px;font-size:11px;color:var(--crm-muted)}.crm-add-column{margin-top:8px;min-height:32px;border:1px dashed var(--crm-border);border-radius:7px;background:transparent;color:var(--crm-muted);cursor:pointer}
.crm-section-head{display:flex;justify-content:space-between;align-items:center;margin:19px 2px 9px}.crm-section-head h2{font-size:17px;color:var(--crm-text);margin:0}.crm-section-head span{font-size:12px;color:var(--crm-muted)}
.crm-analytics{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.crm-analytics-card{background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:12px;padding:17px;min-height:210px}.crm-analytics-card h2{font-size:15px;color:var(--crm-text);margin:0 0 15px}.crm-bar-row{display:grid;grid-template-columns:84px minmax(50px,1fr) 74px;gap:10px;align-items:center;font-size:11px;margin-bottom:12px;color:var(--crm-muted)}.crm-bar-row strong{text-align:right;font-size:11px;color:var(--crm-text)}.crm-bar-track{height:9px;border-radius:9px;background:var(--v74-soft);overflow:hidden}.crm-bar-fill{display:block;height:100%;background:var(--v74-blue);border-radius:9px}.crm-stat-line{display:flex;justify-content:space-between;gap:15px;margin-bottom:11px;font-size:12px;color:var(--crm-muted)}.crm-stat-line strong{color:var(--crm-text)}
.crm-footnote{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:25px;padding:14px 2px;border-top:1px solid var(--crm-border);font:500 11px/1.5 system-ui;color:var(--crm-muted)}.crm-footnote a{color:var(--v74-strong)}
.crm-dialog{border:1px solid var(--crm-border);border-radius:17px;padding:0;background:var(--crm-surface);color:var(--crm-text);width:min(770px,calc(100vw - 26px));max-height:min(91dvh,900px);box-shadow:0 35px 85px #0005}.crm-dialog::backdrop{background:#04162bbc;backdrop-filter:blur(3px)}.crm-dialog form{display:flex;flex-direction:column;max-height:min(91dvh,900px)}.crm-dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:19px 22px;border-bottom:1px solid var(--crm-border)}.crm-dialog-head h2{font-size:20px;color:var(--crm-text);margin:4px 0 0}.crm-close{display:grid;place-items:center;border:1px solid var(--crm-border);background:var(--v74-soft);border-radius:9px;cursor:pointer;color:var(--crm-text);min-width:36px;height:36px}.crm-dialog-body{padding:17px 22px 20px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:15px}.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.crm-field{display:grid;gap:5px;font-size:11px;font-weight:700;color:var(--crm-muted);min-width:0}.crm-field input,.crm-field select,.crm-field textarea{display:block;width:100%;min-width:0;min-height:39px;background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:9px;padding:9px 11px;color:var(--crm-text);font:500 13px/1.35 system-ui}.crm-field textarea{resize:vertical;min-height:80px}.crm-checkbox{display:flex;align-items:center;gap:8px;color:var(--crm-text);font-size:12px;line-height:1.35}.crm-checkbox input{accent-color:#2473ad;width:16px;height:16px}.crm-form-section{border:1px solid var(--crm-border);border-radius:10px;padding:0 12px}.crm-form-section>summary{cursor:pointer;list-style:none;padding:12px 2px;font-size:12px;font-weight:700}.crm-form-section[open]{padding-bottom:14px}.crm-form-section .crm-event-compose{display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-bottom:10px}.crm-history-item{display:flex;flex-wrap:wrap;gap:9px;border-bottom:1px solid var(--crm-border);padding:7px 0;font-size:11px}.crm-history-item>span{color:var(--crm-muted)}.crm-history-item>small{flex:1 0 100%;color:var(--crm-muted)}.crm-dialog-actions{display:flex;gap:9px;align-items:center;padding:13px 22px 18px;border-top:1px solid var(--crm-border)}.crm-spacer{flex:1}.crm-upload{display:block;padding:22px 12px;border:2px dashed var(--crm-border);border-radius:10px;text-align:center;font-size:13px;font-weight:700;cursor:pointer;background:var(--v74-soft)}.crm-upload input{display:block;margin:12px auto 0;max-width:100%;font-size:12px}.crm-import-preview{background:var(--v74-soft);border:1px solid var(--crm-border);border-radius:9px;padding:12px;display:grid;gap:6px;font-size:12px;color:var(--crm-text)}.crm-import-preview span,.crm-import-preview small{color:var(--crm-muted)}
@media(max-width:1250px){.crm-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-board{grid-template-columns:repeat(7,215px)}}
@media(max-width:860px){.crm-content{padding:17px 14px calc(92px + env(safe-area-inset-bottom))}.crm-heading{flex-direction:column;margin-bottom:14px}.crm-heading-actions{justify-content:flex-start;width:100%}.crm-heading-actions .crm-btn{flex:1 1 auto}.crm-heading h1{font-size:34px}.crm-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.crm-stat{min-height:82px;padding:12px 10px}.crm-stat strong{font-size:21px}.crm-stat small{font-size:10px}.crm-list-head{display:none}.crm-record-full{grid-template-columns:1fr 1fr;gap:11px}.crm-record-full .crm-record-lead{grid-column:1/-1}.crm-record-full .crm-record-actions{grid-column:1/-1;justify-content:flex-start}.crm-record-full .crm-status-select{flex:none;max-width:185px}.crm-toolbar{gap:7px}.crm-toolbar-search{flex:1 0 100%}.crm-toolbar-select{flex:1 1 calc(50% - 8px)}.crm-board{margin:0 -4px;padding:2px 4px 12px;grid-template-columns:repeat(7,230px)}.crm-tabs .crm-tab{padding:11px 10px}.crm-filter-count{display:none}.v075-tile-editor form{grid-template-columns:1fr}}
@media(max-width:480px){.crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-stat{min-height:76px}.crm-dialog-head{padding:15px 14px}.crm-dialog-body{padding:14px}.crm-dialog-actions{padding:11px 14px;position:sticky;bottom:0;background:var(--crm-surface)}.crm-form-grid,.crm-form-section .crm-event-compose{grid-template-columns:1fr}.crm-record-full{grid-template-columns:1fr}.crm-record-full .crm-record-meta{grid-column:1/-1}.crm-record-full .crm-record-actions{grid-column:1/-1}.crm-heading-actions .crm-btn{font-size:11px;padding:8px}.crm-btn{white-space:normal}.crm-toolbar-select select{min-width:0}}
@media(prefers-reduced-motion:reduce){.crm-btn{transition:none}.crm-btn:hover{transform:none}}

.v075-crm-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;margin-bottom:11px;background:var(--v74-soft);border:1px solid var(--v74-line);border-radius:10px;color:var(--v74-text)}.v075-crm-shortcut span{display:grid;gap:3px}.v075-crm-shortcut strong{font-size:13px}.v075-crm-shortcut small{font-size:11px;color:var(--v74-muted)}.v075-crm-shortcut a{text-decoration:none!important;white-space:nowrap;min-height:37px}

.v075-brand-image{width:36px!important;height:36px!important;min-width:36px;object-fit:cover;border-radius:10px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}

/* Partage ciblé CRM (V0.79+) */
.crm-share-dialog{width:min(650px,calc(100vw - 24px))}.crm-share-dialog .crm-dialog-body{max-height:65dvh}.crm-share-lead{font:500 12px/1.6 system-ui;margin:0;color:var(--crm-muted)}.crm-share-scope{display:grid;gap:12px;border:1px solid var(--crm-border);border-radius:10px;padding:14px;margin:0}.crm-share-scope legend{padding:0 6px;font-size:12px;font-weight:750;color:var(--crm-text)}.crm-share-result{display:flex;gap:9px;flex-wrap:wrap;align-items:end;border:1px solid var(--crm-border);padding:13px;background:var(--v74-soft);border-radius:9px}.crm-share-result[hidden]{display:none}.crm-share-result .crm-field{flex:1 1 220px}.crm-share-result p{margin:0;font-size:11px;color:var(--crm-muted);flex:1 0 100%}.crm-share-status{font:600 12px/1.55 system-ui;margin:0;color:var(--crm-text)}.crm-share-status[data-status="error"]{color:#b54e51}.crm-share-list-title{font-size:14px;margin:3px 0 0;color:var(--crm-text)}.crm-share-list{display:grid;gap:7px}.crm-share-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px;border:1px solid var(--crm-border);border-radius:8px}.crm-share-meta{display:grid;gap:3px;min-width:0}.crm-share-meta strong{font-size:12px;overflow-wrap:anywhere}.crm-share-meta small,.crm-share-empty{font-size:11px;color:var(--crm-muted)}.crm-share-entry button{flex-shrink:0}.crm-share-dialog small{font-size:11px;color:var(--crm-muted)}

/* V0.79 · shared rhythm and accessible version footer */
.site-build-version{display:inline-flex;align-items:center;vertical-align:middle;margin-inline:8px;padding:3px 8px;border:1px solid var(--v74-line,#d1deec);border-radius:50px;color:var(--v74-muted,#52677b);background:var(--v74-surface,#fff);font:700 10px/1.45 system-ui,sans-serif;white-space:nowrap;letter-spacing:.04em}
.crm-footnote,.dash-footer,.research-footer{flex-wrap:wrap;gap:10px}
.crm-content{padding-bottom:max(82px,calc(80px + env(safe-area-inset-bottom)))}
.crm-tab{flex:0 0 auto}
@media(max-width:600px){.crm-heading-actions{width:100%;justify-content:stretch}.crm-heading-actions .crm-btn{flex:1 1 calc(50% - 6px);min-width:0;white-space:normal;text-align:center}.crm-tabs{scroll-snap-type:x proximity}.crm-tab{scroll-snap-align:start}.dash-top-left .eyebrow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.dash-top-left{min-width:0;flex:1}.dash-top-right{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.crm-btn,.site-build-version{transition:none!important;animation:none!important}}

.lg-login-version{position:fixed;bottom:12px;right:16px;font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.07em;color:#52728e;padding:5px 9px;border-radius:99px;background:#f5f9fc;border:1px solid #ccdeeb;z-index:5}
html[data-theme="dark"] .lg-login-version{background:#102b48;border-color:#365575;color:#b9d9f0}
/* V0.79 · iPhone : clear label, comfortable interactive targets, reduced top-bar clutter. */
@media(max-width:600px){
 .dash-top-left .eyebrow{font-size:0;letter-spacing:0;white-space:nowrap;overflow:visible;text-overflow:clip}
 .dash-top-left .eyebrow:before{content:"MON ESPACE";font-size:10px;letter-spacing:.105em;font-weight:800}
 .dash-top-left .eyebrow .eyebrow-divider{display:none}
 .v74-top-search{min-width:42px;width:42px;max-width:42px;min-height:42px;justify-content:center;padding:8px;gap:0;font-size:0}
 .v74-top-search svg{flex:0 0 19px;width:19px;height:19px}
 .v74-top-search kbd{display:none}
 .crm-heading h1{font-size:clamp(31px,9vw,40px)}
}
@media(pointer:coarse){
 .crm-btn{min-height:44px}
 .crm-tabs .crm-tab{min-height:44px}
 .crm-toolbar-select select,.crm-toolbar-search{min-height:44px}
 .v74-top-search{min-height:44px}
}

/* V0.79 · Dark mode refinement layer: higher contrast, clearer surfaces, better form and card readability. */
html[data-theme="dark"]{
  --crm-surface:#13283f;
  --crm-bg:#091523;
  --crm-text:#f2f7ff;
  --crm-muted:#c4d2e1;
  --crm-border:#45617c;
  --crm-shadow:0 12px 38px rgba(0,0,0,.26);
}
html[data-theme="dark"] body{background:radial-gradient(circle at top,#11253d 0,#0b1726 42%,#08111d 100%)}
html[data-theme="dark"] .portal-layout .dash-main,
html[data-theme="dark"] .crm-main{background:transparent}
html[data-theme="dark"] .crm-btn-soft,
html[data-theme="dark"] .crm-btn-ghost,
html[data-theme="dark"] .crm-btn-small,
html[data-theme="dark"] .crm-stat,
html[data-theme="dark"] .crm-record,
html[data-theme="dark"] .crm-analytics-card,
html[data-theme="dark"] .crm-dialog,
html[data-theme="dark"] .crm-upload,
html[data-theme="dark"] .crm-toolbar-search,
html[data-theme="dark"] .crm-toolbar-select select,
html[data-theme="dark"] .crm-status-select,
html[data-theme="dark"] .crm-field input,
html[data-theme="dark"] .crm-field select,
html[data-theme="dark"] .crm-field textarea,
html[data-theme="dark"] .v075-tile-editor,
html[data-theme="dark"] .v075-hidden-panel button,
html[data-theme="dark"] .v075-tile-remover{
  background:#13283f!important;
  color:#f2f7ff!important;
  border-color:#45617c!important;
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}
html[data-theme="dark"] .crm-column,
html[data-theme="dark"] .crm-avatar,
html[data-theme="dark"] .crm-status,
html[data-theme="dark"] .crm-bar-track,
html[data-theme="dark"] .crm-close,
html[data-theme="dark"] .crm-form-section,
html[data-theme="dark"] .crm-import-preview,
html[data-theme="dark"] .crm-empty-state,
html[data-theme="dark"] .crm-help-card,
html[data-theme="dark"] .crm-share-card,
html[data-theme="dark"] .crm-footnote,
html[data-theme="dark"] .crm-message,
html[data-theme="dark"] .site-build-version,
html[data-theme="dark"] .v075-hidden-panel button,
html[data-theme="dark"] .crm-board-empty{
  background:#1b3450!important;
  color:#e9f4ff!important;
  border-color:#45617c!important;
}
html[data-theme="dark"] .crm-btn-soft:hover,
html[data-theme="dark"] .crm-btn-ghost:hover,
html[data-theme="dark"] .crm-btn-small:hover,
html[data-theme="dark"] .crm-tab:hover,
html[data-theme="dark"] .crm-record:hover,
html[data-theme="dark"] .crm-close:hover,
html[data-theme="dark"] .v075-hidden-panel button:hover,
html[data-theme="dark"] .v075-tile-remover:hover{
  background:#23435f!important;
  border-color:#5c7c98!important;
  color:#fff!important;
}
html[data-theme="dark"] .crm-btn-primary{
  background:#2c78ad!important;
  border-color:#4595cc!important;
  color:#fff!important;
}
html[data-theme="dark"] .crm-btn-primary:hover{background:#3c89bf!important}
html[data-theme="dark"] .crm-toolbar-search input::placeholder,
html[data-theme="dark"] .crm-field input::placeholder,
html[data-theme="dark"] .crm-field textarea::placeholder,
html[data-theme="dark"] .v075-tile-editor input::placeholder{color:#9fb2c7}
html[data-theme="dark"] .crm-heading h1,
html[data-theme="dark"] .crm-section-head h2,
html[data-theme="dark"] .crm-analytics-card h2,
html[data-theme="dark"] .crm-company strong,
html[data-theme="dark"] .crm-dialog-head h2,
html[data-theme="dark"] .crm-stat strong,
html[data-theme="dark"] .crm-column-head strong{color:#f5f9ff!important}
html[data-theme="dark"] .crm-heading p,
html[data-theme="dark"] .crm-company small,
html[data-theme="dark"] .crm-record-meta,
html[data-theme="dark"] .crm-footnote,
html[data-theme="dark"] .crm-empty,
html[data-theme="dark"] .crm-filter-count,
html[data-theme="dark"] .crm-bar-row,
html[data-theme="dark"] .crm-stat-line,
html[data-theme="dark"] .crm-field,
html[data-theme="dark"] .crm-history-item > span,
html[data-theme="dark"] .crm-history-item > small{color:#c4d2e1!important}
html[data-theme="dark"] .crm-tab{color:#c4d2e1}
html[data-theme="dark"] .crm-tab.active{color:#f5f9ff;border-color:#7fcfff;background:linear-gradient(180deg,rgba(127,207,255,.16),rgba(127,207,255,.02))}
html[data-theme="dark"] .crm-results,
html[data-theme="dark"] .crm-dialog-body{scrollbar-color:#527394 #102032}
html[data-theme="dark"] .crm-record-due.due{color:#ffbebc}
html[data-theme="dark"] .crm-status-refus{color:#ffb9c4}
html[data-theme="dark"] .crm-status-offre{color:#bff4d7}
html[data-theme="dark"] .crm-status-relance{color:#ffd394}
html[data-theme="dark"] .crm-message[data-status="error"]{background:#3a2227!important;border-color:#8d545b!important;color:#ffd7da!important}
html[data-theme="dark"] .crm-message[data-status="busy"]{background:#19364e!important;color:#e9f5ff!important}
html[data-theme="dark"] .crm-btn:focus-visible,
html[data-theme="dark"] .crm-dialog :focus-visible,
html[data-theme="dark"] .v075-tile-editor :focus-visible{outline:3px solid #8fd5ff;outline-offset:2px}
@media (max-width:640px){
  html[data-theme="dark"] .crm-list-head{display:none}
  html[data-theme="dark"] .crm-record{box-shadow:0 10px 22px rgba(0,0,0,.2)}
}

/* V0.81 · denser CRM records and stable controls. */
.crm-content{padding-top:16px}.crm-heading{margin-bottom:9px}.crm-heading h1{font-size:clamp(28px,2.7vw,37px)}.crm-stats{margin:9px 0 11px;gap:7px}.crm-stat{min-height:70px;padding:10px 12px;gap:3px;border-radius:10px}.crm-stat strong{font-size:22px}.crm-toolbar{margin:7px 0;gap:7px}.crm-toolbar-search,.crm-toolbar-select select,.crm-status-select{min-height:36px;height:36px}.crm-tabs{margin-bottom:6px}.crm-tab{min-height:38px;padding:8px 12px}.crm-list-head{padding:7px 12px}.crm-record{min-height:49px;padding:7px 11px;gap:9px;margin-bottom:5px;border-radius:9px}.crm-avatar{width:32px;height:32px;flex-basis:32px;font-size:14px;border-radius:7px}.crm-record-lead{gap:8px}.crm-company{gap:1px}.crm-company strong{font-size:12px}.crm-company small,.crm-record-meta{font-size:10.5px}.crm-record-meta{gap:5px}.crm-status{font-size:10px;padding:3px 6px}.crm-record-actions{gap:4px}.crm-btn-small{min-height:29px;font-size:10px;padding:6px 8px}.crm-record-actions .crm-status-select{min-height:30px;font-size:10px}.crm-column{padding:7px;min-height:200px}.crm-board{grid-template-columns:repeat(7,minmax(195px,1fr));gap:8px}.crm-column .crm-record{padding:9px}.crm-analytics-card{min-height:170px}
@media(max-width:670px){.crm-heading h1{font-size:30px}.crm-stat{min-height:69px;padding:9px 10px}.crm-stats{gap:6px}.crm-record{padding:9px}.crm-record-meta{gap:6px}.crm-toolbar-search,.crm-toolbar-select select{min-height:39px;height:39px}}

/* V0.81 · large featured horizontal document portal, placed above daily modules. */
.hub-featured-drive{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;margin:12px 0 15px;border:1px solid #b9cbe0;border-radius:13px;background:linear-gradient(110deg,#f0f5ff 0%,#fff 70%);box-shadow:0 10px 28px #17365a0c;scroll-margin-top:85px}
.hub-featured-drive-label{display:grid;gap:4px;min-width:0;flex:1}.hub-featured-drive-label .hub-drive-eyebrow{color:#37638e;font-size:9px;font-weight:800;letter-spacing:.11em}.hub-featured-drive-label strong{color:#152f4d;font-size:16px;letter-spacing:-.025em}.hub-featured-drive-label>span:last-child{color:#546e88;font-size:11px;line-height:1.35}.hub-featured-drive .hub-drive-cta{display:flex;align-items:center;gap:10px;padding:5px 5px 5px 8px;min-width:min(380px,44%);border:1px solid #b9cae0;border-radius:10px;background:#fff;color:#152c48;text-decoration:none}.hub-featured-drive .hub-proton-visual{width:41px;height:41px;flex:0 0 41px;border-radius:9px;background:#f5f2ff;box-shadow:none}.hub-featured-drive .hub-proton-visual img{width:35px;height:35px;object-fit:contain}.hub-featured-drive .hub-proton-info{flex:1;gap:2px}.hub-featured-drive .hub-proton-info strong{color:#2b286e;font-size:13px}.hub-featured-drive .hub-proton-info span{color:#58708a;font-size:10px}.hub-featured-drive .hub-proton-go{background:#235e9a;font-size:11px;min-height:37px;display:flex;align-items:center;gap:3px;padding:7px 11px}.hub-featured-drive .hub-drive-cta:hover{border-color:#629cc8;box-shadow:0 4px 20px #24678a17}.hub-featured-drive .hub-drive-cta:focus-visible{outline:3px solid #78bafd;outline-offset:3px}
@media(max-width:720px){.hub-featured-drive{flex-direction:column;align-items:stretch;gap:9px;padding:13px}.hub-featured-drive-label strong{font-size:15px}.hub-featured-drive .hub-drive-cta{width:100%;min-width:0;padding:5px}.hub-featured-drive .hub-proton-go{margin-left:auto}}

/* V0.81 · private dark mode typography: white ink, blue reserved for emphasis. */
html[data-theme="dark"]{--v74-text:#f5f8ff;--v74-strong:#fff;--v74-muted:#c9d9e8;--v74-blue:#a8dcff;--v74-line:#45627e;--crm-text:#f5f8ff;--crm-muted:#ccdeed;--crm-border:#45627e;--crm-accent:#a9dfff}
html[data-theme="dark"] .portal-layout :is(.hub-card,.hub-card-body,.hub-pinned,.hub-feature-route,.v74-customize,.tile,.research-card,.research-article,.crm-record,.crm-stat,.crm-dialog,.crm-analytics-card){color:#f5f8ff!important}
html[data-theme="dark"] .portal-layout :is(.hub-link-action,.hub-feature-route,.hub-quick-menu a,.v74-reading-entry a,.hub-pinned-card a,.hub-proton-direct,.hub-catalog-tools button,.hub-application a,.crm-footnote a){color:#f3f8ff!important}
html[data-theme="dark"] .portal-layout :is(.hub-disclaimer,.hub-subnote,.hub-empty,.hub-card-description,.hub-card-head p,.hub-task-main small,.hub-agenda-label small,.hub-link-name small,.hub-vault-detail small,.crm-record-meta,.crm-company small,.crm-stat small,.crm-heading p,.crm-section-head span,.research-muted,.research-evidence,.research-small-note){color:#c9d9e8!important}
html[data-theme="dark"] .portal-layout :is(input,textarea,select){color:#fff!important;accent-color:#9bd5ff}html[data-theme="dark"] .portal-layout :is(input,textarea)::placeholder{color:#b7cadd!important}
html[data-theme="dark"] .portal-layout :is(.crm-tab.active,.v74-mobile-dock .is-active,.nav-item.is-current,.hub-filter .active){color:#fff!important}
html[data-theme="dark"] .portal-layout :is(.hub-pinned,.hub-card,.hub-feature-route,.research-card,.crm-record,.crm-stat,.crm-analytics-card){border-color:#46647d!important}
html[data-theme="dark"] .crm-status-offre{color:#c6ffe5!important}html[data-theme="dark"] .crm-status-refus{color:#ffcad4!important}html[data-theme="dark"] .crm-status-relance{color:#ffe0aa!important}
html[data-theme="dark"] .hub-featured-drive{background:linear-gradient(105deg,#192e49,#14263f)!important;border-color:#56738e!important;box-shadow:0 12px 32px #0004!important}
html[data-theme="dark"] .hub-featured-drive-label .hub-drive-eyebrow{color:#a8dbff!important}
html[data-theme="dark"] .hub-featured-drive-label strong{color:#fff!important}
html[data-theme="dark"] .hub-featured-drive-label>span:last-child{color:#c9d9e8!important}
html[data-theme="dark"] .hub-featured-drive .hub-drive-cta{background:#243951!important;border-color:#5d7896!important;color:#fff!important}
html[data-theme="dark"] .hub-featured-drive .hub-proton-visual{background:#f8f6ff!important}
html[data-theme="dark"] .hub-featured-drive .hub-proton-info strong{color:#fff!important}
html[data-theme="dark"] .hub-featured-drive .hub-proton-info span{color:#d3e0ee!important}
html[data-theme="dark"] .hub-featured-drive .hub-proton-go{background:#327eb8!important;color:#fff!important}

/* V0.81 patch: compact horizontal Proton action on narrow iPhones. */
@media(max-width:720px){
 .hub-featured-drive .hub-drive-cta{display:grid!important;grid-template-columns:42px minmax(0,1fr) 85px;align-items:center;gap:9px;min-width:0;width:100%!important;padding:7px!important}
 .hub-featured-drive .hub-proton-visual{grid-column:1;width:39px;min-width:0;flex:none!important}
 .hub-featured-drive .hub-proton-info{grid-column:2;min-width:0!important;max-width:100%;width:auto;flex:none!important}
 .hub-featured-drive .hub-proton-info strong{font-size:12px}
 .hub-featured-drive .hub-proton-info span{font-size:10px;overflow-wrap:break-word}
 .hub-featured-drive .hub-proton-go{grid-column:3;width:auto!important;min-width:0!important;max-width:85px;flex:none!important;justify-self:end;justify-content:center!important;padding:7px 8px!important;white-space:nowrap}
}
@media(max-width:355px){.hub-featured-drive .hub-drive-cta{grid-template-columns:36px minmax(0,1fr) 74px;gap:6px}.hub-featured-drive .hub-proton-go{padding-inline:5px!important}}
