.install-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:12px 0}
.etanna-mobile-install{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #c7d8cb;color:#176f50;background:#fff;border-radius:9px;padding:12px 16px;min-height:44px;text-decoration:none;font-weight:650;font-size:14px;max-width:100%}
.etanna-mobile-install:hover{background:#e8f3eb}
.etanna-mobile-install:focus-visible{outline:2px solid #176f50;outline-offset:3px}
.etanna-mobile-install svg{flex:none}
.install-page main{max-width:950px;padding:32px 22px}
.install-page header{justify-content:space-between}
.install-hero{display:flex;align-items:center;gap:22px;margin-bottom:26px}
.install-icon{width:100px;height:100px;border-radius:24px;flex:none;border:1px solid #e3e7df}
.install-page h1{font-size:clamp(30px,5vw,47px);letter-spacing:-1px}
.install-hero p{margin:8px 0 0}
.install-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.install-guide{padding:24px}
.install-guide li{padding-left:4px;margin:0 0 12px;line-height:1.55}
.install-guide ol{padding-left:22px}
.install-page a:not(.brand):not(.primary){color:#176f50}
.install-info{margin-top:16px}
.install-info p{margin-bottom:13px}
.install-return{max-width:260px}
.install-notice{background:#e7f5ec;color:#176f50;padding:12px 16px;border:1px solid #c8e0cf;border-radius:10px}
@media(max-width:700px){.install-grid{grid-template-columns:1fr}.install-page main{padding:24px 16px}.install-hero{gap:14px;align-items:flex-start}.install-icon{width:66px;height:66px;border-radius:16px}.install-guide,.install-info{padding:18px}}
.etanna-offline-action{display:flex;align-items:center;gap:12px;min-height:64px;min-width:0;width:fit-content;max-width:100%;text-decoration:none;color:#254c39;background:#fff;border:1px solid #cbd9ce;border-radius:12px;padding:10px 14px;box-shadow:0 2px 6px #254c390a}
.etanna-offline-action:hover{border-color:#176f50;background:#f4faf5}
.etanna-offline-action:focus-visible{outline:2px solid #176f50;outline-offset:3px}
.offline-symbol{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:10px;background:#e7f2eb;color:#176f50}
.offline-copy{display:grid;gap:3px;min-width:0;line-height:1.35}
.offline-copy strong{font-size:15px}
.offline-copy small{font-size:12px;white-space:normal}
.offline-arrow{margin-left:8px;font-size:20px;flex:none}
#portal-unavailable .etanna-offline-action{margin-top:12px}

/* Les outils occupent une seule barre au bureau, une grille lisible sur mobile. */
html[data-etanna="portal"] .portal-home .portal-header-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end;min-width:0;margin-left:auto}
html[data-etanna="portal"] .portal-home .portal-header-actions:not(:has(>.portal-header-action:not([hidden]))){display:none}
html[data-etanna="portal"] .portal-home .portal-header-actions .portal-header-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 11px;border:1px solid #d5e0d6;border-radius:8px;background:#fff;color:#254c39;font:650 13px/1.2 system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-sizing:border-box;cursor:pointer}
html[data-etanna="portal"] .portal-home .portal-header-actions .portal-header-action:hover{background:#edf5ee;border-color:#a9caba}
html[data-etanna="portal"] .portal-home .portal-header-actions .portal-header-action:focus-visible{outline:2px solid #176f50;outline-offset:2px}
html[data-etanna="portal"] .portal-home .portal-header-actions .portal-header-action svg{width:20px;height:20px;flex:none}
html[data-etanna="portal"] .portal-home .portal-header-actions .portal-offline-shortcut{background:#e8f3eb;border-color:#a9caba;color:#176f50}
html[data-etanna="portal"] .portal-home .portal-header-actions #logout{color:#5d5f57}
html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])){position:sticky;top:0;z-index:20}
@media(min-width:841px){html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) #mode-label{margin-left:auto}html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) .portal-header-actions{margin-left:0}}
@media(max-width:840px){html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) #mode-label{display:none}html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) .portal-header-actions{margin-left:auto}}
@media(max-width:600px){
 html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) .portal-header-actions{width:100%;margin-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html[data-etanna="portal"] .portal-home .portal-header-actions .portal-header-action{min-height:44px;font-size:12px;padding:8px 6px;white-space:normal;text-align:center}
 html[data-etanna="portal"] .portal-home header:has(#public-nav:not([hidden])) #public-nav{order:3}
 html[data-etanna="portal"] .portal-home header:has(#public-nav:not([hidden])) .portal-header-actions{order:1}
 html[data-etanna="portal"] .portal-home header:has(#login-nav:not([hidden])) .portal-header-actions{margin-left:auto}
 .etanna-offline-action{width:100%;min-height:56px}.offline-copy{flex:1}.offline-arrow{margin-left:auto}
}
@media print{.portal-header-actions{display:none!important}}

@media(max-width:600px){
 html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) .portal-header-actions:has(.etanna-mobile-install:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:480px) and (max-width:600px){
 html[data-etanna="portal"] .portal-home:not(.member-compact) header:has(.portal-offline-shortcut:not([hidden])) .portal-header-actions:not(:has(.etanna-mobile-install:not([hidden]))){grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* 0.9.66 — compact member-only workspace, public header untouched */
html[data-etanna="portal"] body.portal-home.member-compact header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 18px;min-height:56px;position:sticky;top:0;z-index:20;width:100%;max-width:100%;min-width:0}
html[data-etanna="portal"] body.member-compact header .brand{flex:none;padding:0;min-width:0}
html[data-etanna="portal"] body.member-compact header .brand .etanna-logo{width:125px;max-width:100%;height:auto}
html[data-etanna="portal"] body.member-compact header .brand .subbrand,html[data-etanna="portal"] body.member-compact header #mode-label{display:none!important}
html[data-etanna="portal"] body.member-compact .member-name{flex:1;min-width:0}
html[data-etanna="portal"] body.member-compact .member-name h1{font-size:clamp(14px,2vw,20px);line-height:1.3;letter-spacing:0;margin:0;color:#254c39;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-etanna="portal"] body.portal-home.member-compact header .portal-header-actions{display:flex!important;grid-column:3;flex:0 0 auto;flex-wrap:nowrap;width:auto!important;min-width:0;max-width:100%;margin:0!important;gap:6px;align-items:center}
html[data-etanna="portal"] body.member-compact .member-tools{position:relative;flex:none}
html[data-etanna="portal"] body.member-compact .member-tools summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #d5e0d6;background:#fff;color:#254c39;border-radius:8px;cursor:pointer;font-size:13px;font-weight:700;list-style:none}
html[data-etanna="portal"] body.member-compact .member-tools summary::-webkit-details-marker{display:none}
html[data-etanna="portal"] body.member-compact .member-tools summary::before{content:"☰";margin-right:6px;font-size:18px}
html[data-etanna="portal"] body.member-compact .member-tools-list{position:absolute;right:0;top:calc(100% + 6px);display:grid;gap:5px;width:min(250px,calc(100vw - 24px));padding:8px;background:#fff;border:1px solid #d5e0d6;border-radius:10px;box-shadow:0 8px 25px #213c3026}
html[data-etanna="portal"] body.member-compact .member-tools:not([open]) .member-tools-list{display:none}
html[data-etanna="portal"] body.member-compact .member-tools-list .portal-header-action{width:100%;justify-content:flex-start;min-height:44px}
html[data-etanna="portal"] body.portal-home.member-compact main{width:min(1200px,100%);padding:16px 18px 26px}
html[data-etanna="portal"] body.member-compact #dashboard .welcome{display:none}
html[data-etanna="portal"] body.member-compact #dashboard .section-heading{margin:0 0 12px;align-items:center;flex-direction:row;flex-wrap:wrap}
html[data-etanna="portal"] body.member-compact #dashboard .section-heading h2{font-size:22px}
html[data-etanna="portal"] body.member-compact #dashboard .cards{gap:10px;grid-auto-rows:auto}
html[data-etanna="portal"] body.member-compact #dashboard .app{padding:12px 14px;gap:0;min-height:0}
html[data-etanna="portal"] body.member-compact #dashboard .app .app-icon,html[data-etanna="portal"] body.member-compact #dashboard .app .app-icon img,html[data-etanna="portal"] body.member-compact #dashboard .app .app-icon svg{width:38px;height:38px}
html[data-etanna="portal"] body.member-compact #dashboard .app .tag{margin:0;font-size:11px;padding:4px 8px}
html[data-etanna="portal"] body.member-compact #dashboard .app h3{margin:7px 0 3px;font-size:17px}
html[data-etanna="portal"] body.member-compact #dashboard .app p{margin:0 0 8px;font-size:13px;line-height:1.4}
html[data-etanna="portal"] body.member-compact #dashboard .app-footer .primary,html[data-etanna="portal"] body.member-compact #dashboard .app-footer .locked-action{min-height:44px;padding:8px;font-size:13px}
html[data-etanna="portal"] body.member-compact #dashboard .account-strip{margin-top:10px;padding:10px 12px}
@media(min-width:1000px){html[data-etanna="portal"] body.member-compact #dashboard .cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 html[data-etanna="portal"] body.portal-home.member-compact header{padding:6px 9px;gap:7px;grid-template-columns:83px minmax(0,1fr) 94px}
 html[data-etanna="portal"] body.member-compact header .brand .etanna-logo{width:83px}
 html[data-etanna="portal"] body.portal-home.member-compact header .portal-header-actions{display:grid!important;grid-template-columns:44px 44px!important;width:94px!important;gap:6px}
 html[data-etanna="portal"] body.member-compact .member-tools summary{min-width:44px;max-width:44px}
 html[data-etanna="portal"] body.member-compact #offline-shortcut{width:44px;min-height:44px;padding:5px}
 html[data-etanna="portal"] body.member-compact #offline-shortcut span{display:none}
 html[data-etanna="portal"] body.member-compact .member-tools summary{width:44px;padding:0;font-size:0}
 html[data-etanna="portal"] body.member-compact .member-tools summary::before{margin:0;font-size:21px}
 html[data-etanna="portal"] body.portal-home.member-compact main{padding:12px 10px 22px}
 html[data-etanna="portal"] body.member-compact #dashboard .section-heading{gap:3px}
 html[data-etanna="portal"] body.member-compact #dashboard #app-summary{font-size:11px;white-space:normal}
 html[data-etanna="portal"] body.member-compact #dashboard .app{display:grid;grid-template-columns:1fr;gap:3px;padding:10px 12px}
 html[data-etanna="portal"] body.member-compact #dashboard .app h3{margin:3px 0;font-size:16px}
}
