/* UNPNC 0.9.298 — Front-office Délégué. CSS scoped to dedicated views.
 * Original Task Manager JavaScript, Firebase and Firestore data stay unchanged.
 * No changes to the independent SPG Pro stylesheet.
 */
.unpnc-app .unpnc-delegate-ui{--ui-navy:#003264;--ui-orange:#eb610b;display:grid;gap:18px;max-width:1440px;margin:12px auto 35px}
.unpnc-app .unpnc-delegate-ui-hero{position:relative;overflow:hidden;padding:clamp(23px,3vw,38px);border-radius:14px;background:linear-gradient(110deg,#003264,#0a4b78);color:#fff}
.unpnc-app .unpnc-delegate-ui-hero::after{content:"";position:absolute;top:-85px;right:-25px;width:265px;height:265px;border:1px solid rgba(255,255,255,.25);border-radius:50%;box-shadow:0 0 0 43px rgba(255,255,255,.035),0 0 0 90px rgba(255,255,255,.025);pointer-events:none}
.unpnc-app .unpnc-delegate-ui-hero small{color:#ffbc91;letter-spacing:.15em;font-weight:800;text-transform:uppercase;font-size:11px}
.unpnc-app .unpnc-delegate-ui-hero h2{color:#fff!important;font-size:clamp(23px,3vw,34px);font-weight:820;letter-spacing:-.025em;margin:8px 0 10px}
.unpnc-app .unpnc-delegate-ui-hero p{color:#d7e7f2!important;max-width:710px;line-height:1.65;margin:0}
.unpnc-app .unpnc-delegate-ui-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.unpnc-app .unpnc-delegate-ui-card{display:flex;flex-direction:column;gap:13px;padding:clamp(18px,2.3vw,27px);border:1px solid #dce7ee;background:#fff;border-radius:13px;box-shadow:0 5px 22px rgba(0,44,75,.045)}
.unpnc-app .unpnc-delegate-ui-card-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:#e9f2f9;color:#003264;font-size:22px}
.unpnc-app .unpnc-delegate-ui-card h3{margin:0;color:#123b56;font-size:20px}
.unpnc-app .unpnc-delegate-ui-card p{margin:0;color:#668297;line-height:1.6;flex:1}
.unpnc-app .unpnc-delegate-ui-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:9px;background:#eb610b!important;color:#fff!important;padding:13px 18px;font-weight:800;min-height:46px;cursor:pointer;text-decoration:none!important}
.unpnc-app .unpnc-delegate-ui-action:hover{background:#cb5106!important}
.unpnc-app .unpnc-delegate-ui-action:focus-visible{outline:3px solid #ffad78;outline-offset:3px}
.unpnc-app .unpnc-delegate-ui-action[disabled]{opacity:.55;cursor:not-allowed}
.unpnc-app .unpnc-delegate-ui-extra{padding:20px;background:#fff;border:1px solid #dce7ee;border-radius:13px}
.unpnc-app .unpnc-delegate-ui-extra h3{color:#123b56;margin:0 0 14px}
.unpnc-app .unpnc-delegate-ui-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.unpnc-app .unpnc-delegate-ui-links a{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 13px;color:#174d71;text-decoration:none;background:#f4f8fb;border:1px solid #dce7ee;border-radius:9px;font-size:12px;font-weight:720}
.unpnc-app .unpnc-delegate-ui-links a:hover{border-color:#eb610b;background:#fff6f0;color:#bd510c}
.unpnc-app .unpnc-delegate-ui-warning{margin:0;color:#b45a2e}
@media(max-width:1024px){.unpnc-app .unpnc-delegate-ui-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.unpnc-app .unpnc-delegate-ui-cards,.unpnc-app .unpnc-delegate-ui-links{grid-template-columns:1fr}}

/* Carnet de tâches : le document est désormais ouvert directement en front. */
body.unpnc-taskboard-embedded{background:#f3f6fb!important;color:#102b41!important;overflow-x:hidden}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard{--unpnc-primary:#003264!important;--unpnc-primary-2:#003264!important;--unpnc-primary-rgb:0,50,100!important;--unpnc-nav-1:#061a30!important;--unpnc-nav-2:#003264!important;--unpnc-page-bg:#f3f6fb!important;min-height:100dvh;background:#f3f6fb!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav{position:fixed!important;z-index:80;left:0;top:0;width:260px;height:100dvh;overflow-y:auto;background:linear-gradient(160deg,#003264,#071d35 78%)!important;border-right:1px solid rgba(255,255,255,.09)!important;border-bottom:0!important;box-shadow:none!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-inner{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:15px!important;max-width:none!important;min-width:0!important;height:100%!important;padding:27px 15px 18px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-left{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:24px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-brand{color:#fff!important;font-size:21px!important;font-weight:900!important;letter-spacing:.17em!important;padding:5px 12px 18px!important;border-bottom:1px solid rgba(255,255,255,.12)}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-links{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;align-items:stretch!important;justify-content:stretch!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-link{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;border:1px solid transparent!important;padding:12px 13px!important;background:transparent!important;color:#c5d8e7!important;border-radius:9px!important;text-align:left!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;text-decoration:none!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-link span{color:inherit!important;font-size:12.5px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-link:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-link.active,body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-link.is-active{background:#12466e!important;border-color:rgba(255,255,255,.07)!important;color:#fff!important;box-shadow:inset 3px 0 #eb610b!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-right{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;margin-top:auto!important;padding-top:15px!important;border-top:1px solid rgba(255,255,255,.10)!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-user-pill{border-radius:10px!important;max-width:100%!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-user-initials{background:#eb610b!important;color:#fff!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard #unpnc-task-manager.unpnc-tm-container{width:calc(100% - 260px)!important;max-width:none!important;margin:0 0 0 260px!important;padding:clamp(18px,3vw,36px)!important;min-width:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-card{border-radius:14px!important;background:linear-gradient(110deg,#003264,#0a4b78)!important;border:0!important;color:#fff!important;box-shadow:none!important;padding:26px 29px!important;min-height:128px}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-title{color:#fff!important;font-size:clamp(22px,2.5vw,31px)!important;letter-spacing:-.02em!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-subtitle,body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-datetime{color:#dceaf4!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-icon{border:1px solid rgba(255,255,255,.14)!important;background:rgba(255,255,255,.09)!important;color:#fff!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-btn-primary,body.unpnc-taskboard-embedded .unpnc-modern-taskboard #unpnc-tm-new-task-btn{background:#eb610b!important;border:1px solid #d75909!important;color:#fff!important;border-radius:9px!important;font-weight:800!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-btn-ghost{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.22)!important;color:#fff!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-stat-card{border:1px solid #e0eaf1!important;background:#fff!important;box-shadow:0 7px 25px rgba(0,45,75,.035)!important;border-radius:12px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-stat-value{color:#003264!important;font-weight:850!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-stat-label{color:#617f94!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-filters-row{background:#fff!important;border:1px solid #dfe8ee!important;border-radius:12px!important;box-shadow:none!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-filter-btn.active{background:#e8f3fa!important;color:#003264!important;border-color:#c6dfef!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table-card,body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-tasks-list{max-width:100%!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table-card{border:1px solid #dfe8ee!important;border-radius:13px!important;background:#fff!important;box-shadow:0 7px 25px rgba(0,45,75,.035)!important;overflow:hidden}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table thead th{background:#f0f5f9!important;color:#315b79!important;font-weight:800!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table tbody tr:hover{background:#fafcff!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard input:focus-visible,body.unpnc-taskboard-embedded .unpnc-modern-taskboard button:focus-visible,body.unpnc-taskboard-embedded .unpnc-modern-taskboard a:focus-visible{outline:3px solid #f7a269!important;outline-offset:2px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-link[href*="wp-admin"]{display:none!important}
body.unpnc-taskboard-embedded .unpnc-front-mobile-toggle{display:none}
body.unpnc-taskboard-embedded .unpnc-front-return-link{display:block;padding:10px 12px;color:#f9bf97!important;font-size:12px;font-weight:800;text-decoration:none;border:1px solid rgba(235,97,11,.4);border-radius:9px;background:rgba(235,97,11,.08)}
body.unpnc-taskboard-embedded .unpnc-front-return-link:hover{background:rgba(235,97,11,.2)}

/* Management screens rendered in the frontend, with the original callbacks. */
body.unpnc-delegate-hub{margin:0!important;padding:0!important;background:#f3f6fb;color:#173850;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body.unpnc-delegate-hub *,body.unpnc-delegate-hub *::before,body.unpnc-delegate-hub *::after{box-sizing:border-box}
body.unpnc-delegate-hub .unpnc-front-shell{display:flex;min-height:100dvh}
body.unpnc-delegate-hub .unpnc-hub-side{position:sticky;top:0;flex:0 0 262px;width:262px;align-self:flex-start;height:100dvh;overflow:auto;padding:26px 14px;background:linear-gradient(160deg,#003264,#061b31);color:#fff}
body.unpnc-delegate-hub .unpnc-hub-brand{display:grid;gap:4px;padding:5px 13px 20px;border-bottom:1px solid rgba(255,255,255,.13);margin-bottom:17px}
body.unpnc-delegate-hub .unpnc-hub-brand strong{font-size:22px;letter-spacing:.15em;color:#fff}
body.unpnc-delegate-hub .unpnc-hub-brand span{color:#a0c0d8;letter-spacing:.13em;font-size:10px;font-weight:700}
body.unpnc-delegate-hub .unpnc-hub-side nav{display:grid;gap:3px}
body.unpnc-delegate-hub a.unpnc-hub-nav{display:block;text-decoration:none;color:#c7deec;padding:10px 13px;font-size:12.5px;font-weight:700;border-radius:9px;border-left:3px solid transparent}
body.unpnc-delegate-hub a.unpnc-hub-nav:hover{color:#fff;background:rgba(255,255,255,.07)}
body.unpnc-delegate-hub a.unpnc-hub-nav.is-active{background:#164970;color:#fff;border-left-color:#eb610b}
body.unpnc-delegate-hub a.unpnc-hub-carnet{margin-top:16px;background:#eb610b;color:#fff;border-radius:9px;text-align:center}
body.unpnc-delegate-hub .unpnc-hub-content{flex:1;min-width:0;padding:clamp(16px,3vw,38px)}
body.unpnc-delegate-hub .unpnc-hub-hero{padding:26px 30px;border-radius:14px;background:linear-gradient(110deg,#003264,#0b4e7b);color:#fff;margin-bottom:19px}
body.unpnc-delegate-hub .unpnc-hub-hero span{font-size:10px;letter-spacing:.15em;color:#f4b38e;font-weight:800}
body.unpnc-delegate-hub .unpnc-hub-hero h1{color:#fff;font-size:clamp(23px,3vw,32px);margin:8px 0 7px}
body.unpnc-delegate-hub .unpnc-hub-hero p{color:#d1e5f3;margin:0;font-size:12px}
body.unpnc-delegate-hub .unpnc-hub-panel{padding:clamp(15px,2vw,28px);background:#fff;border:1px solid #dce7ef;border-radius:13px;box-shadow:0 6px 25px rgba(0,50,100,.035);min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap{margin:0;max-width:none}
body.unpnc-delegate-hub .unpnc-hub-panel h1,body.unpnc-delegate-hub .unpnc-hub-panel h2{color:#123c5a}
body.unpnc-delegate-hub .unpnc-hub-panel .widefat,body.unpnc-delegate-hub .unpnc-hub-panel .form-table{width:100%;border-collapse:collapse;background:#fff;font-size:12px}
body.unpnc-delegate-hub .unpnc-hub-panel table th,body.unpnc-delegate-hub .unpnc-hub-panel table td{padding:11px;border-bottom:1px solid #e3edf3;text-align:left;vertical-align:middle}
body.unpnc-delegate-hub .unpnc-hub-panel table th{color:#285873;background:#f4f8fb;font-weight:750}
body.unpnc-delegate-hub .unpnc-hub-panel input:not([type="radio"]):not([type="checkbox"]),body.unpnc-delegate-hub .unpnc-hub-panel select,body.unpnc-delegate-hub .unpnc-hub-panel textarea{max-width:100%;min-height:38px;border:1px solid #cedfe9;border-radius:8px;background:#fbfdfe;color:#173e57;padding:8px 11px;font-size:13px}
body.unpnc-delegate-hub .unpnc-hub-panel .button,body.unpnc-delegate-hub .unpnc-hub-panel button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;background:#f0f6fa;color:#164e74;border:1px solid #d2e4ee;border-radius:8px;text-decoration:none;font-weight:700;cursor:pointer}
body.unpnc-delegate-hub .unpnc-hub-panel .button-primary,body.unpnc-delegate-hub .unpnc-hub-panel button.button-primary{background:#eb610b;color:#fff;border-color:#cd550c}
body.unpnc-delegate-hub .unpnc-hub-panel .notice{padding:10px 15px;border-left:4px solid #eb610b;background:#fff7f0;margin:12px 0}
body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab-wrapper a[href*="unpnc-seo-statistiques"]{display:none!important}
body.unpnc-delegate-hub .unpnc-front-editor{margin:20px 0;padding:clamp(14px,2vw,24px);border:1px solid #d9e6ef;border-radius:13px;background:linear-gradient(160deg,#fff,#fbfdff)}
body.unpnc-delegate-hub .unpnc-front-editor h2{font-size:19px;margin:0 0 14px;color:#003264}
body.unpnc-delegate-hub .unpnc-front-editor h3{margin:22px 0 12px;color:#174b70}
body.unpnc-delegate-hub .unpnc-front-editor label{display:grid;gap:6px;margin:11px 0;color:#31536a;font-size:13px;font-weight:700}
body.unpnc-delegate-hub .unpnc-front-editor label input,body.unpnc-delegate-hub .unpnc-front-editor label textarea,body.unpnc-delegate-hub .unpnc-front-editor label select{width:100%;min-width:0}
body.unpnc-delegate-hub .unpnc-front-editor .spg-partner-grid label{display:block;margin:4px 0;font-size:13px}
body.unpnc-delegate-hub .unpnc-front-editor .spg-partner-grid{width:100%;max-width:100%;grid-template-columns:minmax(150px,220px) minmax(0,1fr)}
body.unpnc-delegate-hub .unpnc-hub-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.unpnc-delegate-hub .unpnc-front-term-list{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 15px;padding:0}
body.unpnc-delegate-hub .unpnc-front-term-list li{padding:6px 11px;border:1px solid #d9e5ee;border-radius:9px;background:#f5f9fc;color:#224b67;font-size:12px}
body.unpnc-delegate-hub .unpnc-hub-panel a[data-unpnc-unavailable]{opacity:.65;cursor:not-allowed;border-style:dashed!important}
body.unpnc-delegate-hub .unpnc-hub-panel table{display:table}
body.unpnc-delegate-hub .unpnc-hub-panel [style*="overflow-x:auto"]{max-width:100%;-webkit-overflow-scrolling:touch}
body.unpnc-delegate-hub .unpnc-hub-mobile-toggle{display:none}
body.unpnc-delegate-hub .unpnc-hub-message{position:fixed;bottom:20px;right:20px;z-index:200;padding:14px;background:#003264;color:#fff;border-radius:10px;max-width:350px;box-shadow:0 7px 25px #00326433}
body.unpnc-delegate-hub .unpnc-hub-message[hidden]{display:none!important}
@media(max-width:1024px){
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav{width:210px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard #unpnc-task-manager.unpnc-tm-container{width:calc(100% - 210px)!important;margin-left:210px!important;padding:22px!important}
body.unpnc-delegate-hub .unpnc-hub-side{flex-basis:210px;width:210px}
body.unpnc-delegate-hub .unpnc-hub-content{padding:21px}
}
@media(max-width:900px){
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav{position:sticky!important;width:100%!important;height:auto!important;top:0!important;overflow:visible!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-inner{height:auto!important;min-height:62px!important;padding:10px 15px!important;gap:0!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-left{flex-direction:row!important;align-items:center!important;gap:10px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-brand{padding:8px 7px!important;border:0!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-links{position:absolute!important;display:none!important;top:62px;left:0;right:0;max-height:calc(100dvh - 70px);overflow-y:auto!important;background:#092b4b!important;padding:12px!important;box-shadow:0 18px 28px #071f3940!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-links.is-open{display:grid!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-right{margin:0!important;padding:0!important;border:0!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-user-name{display:none!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard #unpnc-task-manager.unpnc-tm-container{width:100%!important;margin:0!important;padding:16px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-card{padding:19px!important}
body.unpnc-taskboard-embedded .unpnc-front-mobile-toggle{display:inline-flex!important;background:#eb610b;border:0;border-radius:9px;color:#fff;padding:10px 13px;margin-left:7px;font-weight:850;min-height:41px}
body.unpnc-delegate-hub .unpnc-hub-side{position:fixed;z-index:100;top:0;bottom:0;left:0;max-width:80vw;width:285px;transform:translateX(-105%);transition:transform .18s;box-shadow:12px 0 30px #061c3440}
body.unpnc-delegate-hub .unpnc-hub-side.is-open{transform:translateX(0)}
body.unpnc-delegate-hub .unpnc-hub-mobile-toggle{position:sticky;top:0;z-index:110;display:block;padding:13px 17px;background:#eb610b;color:#fff;border:0;width:100%;text-align:left;font-weight:800}
body.unpnc-delegate-hub .unpnc-front-shell{display:block}
}
@media(max-width:540px){
body.unpnc-delegate-hub .unpnc-front-editor .spg-partner-grid{display:grid;grid-template-columns:1fr;gap:5px}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-card{flex-wrap:wrap!important;gap:13px!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-actions{width:100%!important;flex-wrap:wrap!important}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-hero-btn{flex:1!important}
body.unpnc-delegate-hub .unpnc-hub-content{padding:13px}
body.unpnc-delegate-hub .unpnc-hub-hero{padding:20px}
body.unpnc-delegate-hub .unpnc-hub-panel{padding:13px}
}
@media(prefers-reduced-motion:reduce){body.unpnc-delegate-hub *,body.unpnc-taskboard-embedded .unpnc-modern-taskboard *{transition:none!important;animation:none!important}}

/* 0.9.298 — Day / night presentation, confined to UNPNC Delegate surfaces. */
body.unpnc-delegate-hub .unpnc-hub-hero{position:relative;padding-right:170px}
body.unpnc-delegate-hub .unpnc-delegate-theme-toggle{position:absolute;right:22px;top:22px}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-right .unpnc-delegate-theme-toggle{flex:0 0 auto}
body.unpnc-delegate-hub .unpnc-delegate-theme-toggle,
body.unpnc-taskboard-embedded .unpnc-delegate-theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border:1px solid #ffa86e;border-radius:10px;background:#eb610b;color:#fff;font:800 12px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.12)}
body.unpnc-delegate-hub .unpnc-delegate-theme-toggle:hover,
body.unpnc-taskboard-embedded .unpnc-delegate-theme-toggle:hover{background:#c95007;color:#fff}
body.unpnc-delegate-hub .unpnc-delegate-theme-toggle:focus-visible,
body.unpnc-taskboard-embedded .unpnc-delegate-theme-toggle:focus-visible{outline:3px solid #ffbd93;outline-offset:3px}
@media(max-width:900px){
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-right .unpnc-delegate-theme-toggle{min-width:42px;width:42px;padding:7px;font-size:0}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-delegate-theme-toggle::before{content:"☀";font-size:19px}
html[data-unpnc-delegate-theme="light"] body.unpnc-taskboard-embedded .unpnc-delegate-theme-toggle::before{content:"☾";font-size:19px}
}
@media(max-width:600px){
body.unpnc-delegate-hub .unpnc-hub-hero{padding:73px 20px 20px}
body.unpnc-delegate-hub .unpnc-delegate-theme-toggle{top:16px;right:17px}
body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-topnav-right .unpnc-delegate-theme-toggle{padding:8px 9px;font-size:11px;min-height:38px}
}

/* The primary app already owns [data-theme]. The Delegate landing follows it. */
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-card,
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-extra{background:#142532;border-color:#38505f;color:#edf4f8;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-card h3,
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-extra h3{color:#e7f4ff}
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-card p{color:#b7c7d1}
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-card-icon{background:#1c3b50;color:#b7dcff}
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-links a{background:#203a4c;border-color:#38505f;color:#dfedfa}
.unpnc-app[data-theme="dark"] .unpnc-delegate-ui-links a:hover{background:#344858;border-color:#eb610b;color:#ffc69e}

/* Hub: the dark palette matches the existing UNPNC application (#0b1620). */
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub{background:#0b1620;color:#edf4f8}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel{background:#142532;border-color:#38505f;box-shadow:0 8px 25px rgba(0,0,0,.16);color:#edf4f8}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel h1,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel h2,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel h3{color:#d6ecff}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel p,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel label,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .description{color:#c1d2de}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-front-editor{background:#172c3b;border-color:#3b5363;color:#edf4f8}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .widefat,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .form-table,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .wp-list-table{background:#142532;border-color:#38505f;color:#edf4f8}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel table th{background:#203a4c;color:#d6ebf9;border-color:#38505f}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel table td{background:#142532;color:#e7f2f9;border-color:#38505f}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel input:not([type="radio"]):not([type="checkbox"]),
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel select,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel textarea{background:#0e2130;color:#edf4f8;border-color:#466071}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .button:not(.button-primary){background:#203a4c;color:#dceefb;border-color:#466071}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .notice{background:#263643;color:#fff0e5;border-left-color:#eb610b}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-front-term-list li{background:#203a4c;border-color:#466071;color:#dceefb}

/* Taskboard: its original templates and Firebase handlers are untouched. */
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded{background:#0b1620!important;color:#edf4f8!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard{--unpnc-page-bg:#0b1620!important;--unpnc-card:#142532;--unpnc-text:#edf4f8;--unpnc-muted:#b7c7d1;--unpnc-border:#38505f;--unpnc-gray-50:#0b1620;--unpnc-gray-100:#152b3a;--unpnc-gray-200:#38505f;--unpnc-gray-600:#b7c7d1;background:#0b1620!important;color:#edf4f8!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard #unpnc-task-manager.unpnc-tm-container{background:#0b1620!important;color:#edf4f8!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-stat-card,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-filters-row,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table-card,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-tasks-list,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-webmail-wrapper,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-memo-wrapper{background:#142532!important;border-color:#38505f!important;color:#edf4f8!important;box-shadow:0 7px 25px rgba(0,0,0,.15)!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-stat-value{color:#d8ecff!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-stat-label{color:#b7c7d1!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table thead th,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-task-table thead th{background:#203a4c!important;color:#d4e9f8!important;border-color:#38505f!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table td,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-task-table td{background:#142532!important;color:#edf4f8!important;border-color:#38505f!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-table tbody tr:hover,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-task-table tbody tr:hover{background:#1e3545!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-task-details{background:#203444!important;border-color:#466071!important;color:#edf4f8!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-task-details p{color:#d1e0ec!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-filter-btn:not(.unpnc-filter-section):not(.unpnc-filter-adherent),
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-action-btn{background:#203a4c!important;border-color:#466071!important;color:#eaf4ff!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-filter-btn.active{background:#315773!important;color:#fff!important;border-color:#60809a!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard input,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard select,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard textarea{background:#10283a!important;color:#edf4f8!important;border-color:#466071!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard input::placeholder,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard textarea::placeholder{color:#a9bdcb!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-modal-content,
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-archive-modal-content{background:#142532!important;color:#edf4f8!important;border-color:#466071!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-tm-modal-body{background:#142532!important;color:#edf4f8!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-badge.status-pending{color:#b8deff!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-taskboard-embedded .unpnc-modern-taskboard .unpnc-badge.status-completed{color:#bcefd7!important}

/* 0.9.299: correct inherited WordPress/admin inline colours and top spacing. */
html:has(body.unpnc-delegate-hub),html:has(body.unpnc-taskboard-embedded){margin-top:0!important;padding-top:0!important}
body.unpnc-delegate-hub .unpnc-hub-content{padding-top:14px}
body.unpnc-delegate-hub .unpnc-hub-side{padding-top:17px}
body.unpnc-delegate-hub .unpnc-hub-panel{line-height:1.5}
body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab-wrapper{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #cedfe9;padding-bottom:9px;margin:10px 0 17px}
body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab{float:none;margin:0;padding:9px 13px;border:1px solid #cbdde9;border-radius:8px;background:#eaf2f8;color:#143f5c;text-decoration:none;font-weight:750}
body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab:hover{background:#dcecf7;color:#003264}
body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab-active{background:#003264;color:#fff;border-color:#003264}
body.unpnc-delegate-hub .unpnc-hub-panel form[style*="background:#fff"]{background:#f2f7fb!important;border-color:#cbdde9!important;border-radius:10px}
body.unpnc-delegate-hub .unpnc-hub-panel form[style*="background:#fff"] label,
body.unpnc-delegate-hub .unpnc-hub-panel form[style*="background:#fff"] strong,
body.unpnc-delegate-hub .unpnc-hub-panel form[style*="background:#fff"] small{color:#24465e!important}
body.unpnc-delegate-hub .unpnc-hub-panel input::placeholder,
body.unpnc-delegate-hub .unpnc-hub-panel textarea::placeholder{color:#667e90;opacity:1}
body.unpnc-delegate-hub .unpnc-hub-panel :is(input,select,textarea):focus-visible{outline:2px solid #eb610b;outline-offset:1px}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel form[style*="background:#fff"]{background:#203747!important;border-color:#466071!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel form[style*="background:#fff"] :is(label,strong,small){color:#e0edf7!important}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab-wrapper{border-bottom-color:#466071}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab{background:#203a4c;color:#e0effa;border-color:#466071}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab:hover{background:#315773;color:#fff}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel .nav-tab-active{background:#eb610b;color:#fff;border-color:#eb610b}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel input::placeholder,
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel textarea::placeholder{color:#b4c9d8!important;opacity:1}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel :is(.widefat,.form-table,.wp-list-table) :is(a,small,span){color:inherit}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel :is(.widefat,.form-table,.wp-list-table) a{color:#a4d9ff;text-decoration:underline}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel :is(.widefat,.form-table,.wp-list-table) .button{color:#eaf4ff;text-decoration:none}
@media(max-width:900px){body.unpnc-delegate-hub .unpnc-hub-content{padding-top:12px}}

/* 0.9.300 — Adhésions: full control inventory, including native WP elements. */
body.unpnc-delegate-hub .unpnc-hub-panel{--member-bg:#f6f9fc;--member-surface:#fff;--member-ink:#173850;--member-muted:#4c6578;--member-border:#c8d9e6;--member-control:#fff;--member-link:#075b94;--member-head:#e6f0f7}
html[data-unpnc-delegate-theme="dark"] body.unpnc-delegate-hub .unpnc-hub-panel{--member-bg:#102432;--member-surface:#172d3c;--member-ink:#e8f3fa;--member-muted:#c1d5e2;--member-border:#496678;--member-control:#0e2534;--member-link:#a9dcff;--member-head:#244254}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap,
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes{color:var(--member-ink)!important}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap :is(h1,h2,h3,h4,strong,legend),
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(h1,h2,h3,h4,strong,legend){color:var(--member-ink)!important}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap :is(p,small,.description,label),
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(p,small,.description,label){color:var(--member-muted)!important}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap a:not(.button):not(.nav-tab),
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes a:not(.button){color:var(--member-link)!important}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap .nav-tab-wrapper{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;min-height:42px}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap .nav-tab-wrapper .nav-tab{display:inline-flex!important;position:static!important;float:none!important;align-items:center!important;min-height:38px!important;margin:0!important;padding:9px 14px!important;background:var(--member-head)!important;border:1px solid var(--member-border)!important;border-radius:8px!important;color:var(--member-ink)!important;font-size:13px!important;text-decoration:none!important;line-height:1.3!important;box-shadow:none!important}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap .nav-tab-wrapper .nav-tab-active{background:#eb610b!important;border-color:#eb610b!important;color:#fff!important}
body.unpnc-delegate-hub .unpnc-hub-panel .wrap .nav-tab-wrapper a[href*="unpnc-seo-statistiques"]{display:inline-flex!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create{background:var(--member-surface)!important;border:1px solid var(--member-border)!important;border-radius:12px!important;padding:19px!important;gap:12px!important;align-items:end!important;box-shadow:none!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create :is(strong,label,small){color:var(--member-ink)!important;opacity:1!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create label{display:flex!important;flex:1 1 155px!important;flex-direction:column!important;gap:6px!important;min-width:135px!important;font-size:13px!important;font-weight:700!important;line-height:1.4!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create label br{display:none!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea){background:var(--member-control)!important;color:var(--member-ink)!important;border:1px solid var(--member-border)!important;border-radius:7px!important;min-height:38px!important;opacity:1!important;box-shadow:none!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes input::placeholder{color:var(--member-muted)!important;opacity:1!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create input{min-width:0!important;width:100%!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-search{padding:12px!important;background:var(--member-bg)!important;border:1px solid var(--member-border)!important;border-radius:10px!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-search input[type="search"]{flex:1 1 220px!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-search select{flex:1 1 180px!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes table.widefat{background:var(--member-surface)!important;border:1px solid var(--member-border)!important;color:var(--member-ink)!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes table.widefat :is(th,td){border:1px solid var(--member-border)!important;color:var(--member-ink)!important;background:var(--member-surface)!important;overflow-wrap:anywhere}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes table.widefat thead th{background:var(--member-head)!important;font-weight:800!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes table.widefat tbody tr:nth-child(even) td{background:var(--member-bg)!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes table.widefat :is(label,span,small){color:var(--member-ink)!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(.button,button){min-height:36px!important;background:var(--member-head)!important;border:1px solid var(--member-border)!important;color:var(--member-ink)!important;border-radius:8px!important;text-decoration:none!important;opacity:1!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(.button-primary,button.button-primary){background:#eb610b!important;border-color:#c95007!important;color:#fff!important}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(.button,button):hover{filter:brightness(1.09)}
body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes :is(input,select,button,a):focus-visible{outline:3px solid #ef8a49!important;outline-offset:2px!important}
body.unpnc-delegate-hub .unpnc-hub-panel .notice :is(p,strong){color:inherit!important}
@media(max-width:650px){body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create label{flex-basis:100%!important}body.unpnc-delegate-hub .unpnc-hub-panel #unpnc-comptes .unpnc-member-create button{width:100%!important}}
