/* M2 portal layout: opt-in, no selectors for the Factures workspace. */
body.tg-platform { margin:0; min-block-size:100svh; display:flex; flex-direction:column; background:var(--surface); }
.tg-header { display:flex; justify-content:flex-end; align-items:center; gap:14px; padding:20px 28px; min-block-size:80px; }
.tg-language { display:flex; align-items:center; gap:6px; font-size:.875rem; color:var(--muted); }
.tg-language a { display:inline-flex; align-items:center; min-block-size:44px; padding-inline:3px; color:var(--text); text-decoration:none; }
.tg-language a:hover { text-decoration:underline; }
.tg-language [aria-current] { color:var(--muted); }
.tg-launcher { position:relative; }
.tg-launcher-button { display:grid; place-content:center; inline-size:44px; block-size:44px; border:0; border-radius:50%; color:var(--text); background:transparent; cursor:pointer; }
.tg-launcher-button:hover,.tg-launcher-button[aria-expanded=true] { background:var(--background); }
.tg-dots { display:grid; grid-template-columns:repeat(3,3px); gap:3px; }
.tg-dots i { inline-size:3px; block-size:3px; border-radius:50%; background:currentColor; }
.tg-launcher-panel { position:absolute; z-index:5; inset-block-start:calc(100% + 8px); inset-inline-end:0; inline-size:244px; max-inline-size:calc(100vw - 32px); padding:18px; border:1px solid var(--border); border-radius:var(--radius-m); background:var(--surface); box-shadow:0 8px 28px rgb(7 20 38 / .10); }
.tg-launcher-panel h2 { margin:0 0 12px; font-size:.875rem; font-weight:500; color:var(--muted); }
.tg-launcher-list { display:grid; gap:8px; }
.tg-launcher-link { display:flex; align-items:center; gap:14px; min-block-size:60px; padding:8px; border-radius:var(--radius-s); text-decoration:none; color:var(--text)!important; }
.tg-launcher-link:hover { background:var(--background); }
.tg-launcher-link img { inline-size:28px; block-size:28px; }
.tg-welcome { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:32px 24px 52px; }
.tg-brand { display:inline-flex; padding:2px; }
.tg-brand img { display:block; inline-size:240px; max-inline-size:100%; block-size:auto; }
.tg-welcome h1 { font-size:1.125rem; font-weight:600; line-height:1.55; margin:18px 0 10px; }
.tg-intro { margin:0; color:var(--muted); font-size:1rem; line-height:1.65; }
.tg-app { display:flex; flex-direction:column; align-items:center; inline-size:fit-content; max-inline-size:100%; margin:42px auto 0; text-decoration:none; color:var(--text)!important; }
.tg-app-icon { display:grid; place-items:center; inline-size:64px; block-size:64px; border-radius:18px; background:var(--pale-blue); color:var(--brand-strong); }
.tg-app-icon svg { inline-size:28px; block-size:28px; }
.tg-app-name { margin-block-start:10px; font-weight:500; font-size:1rem; }
.tg-app-description { display:block; margin:8px 0 0; color:var(--muted); font-size:.875rem; line-height:1.6; }
.tg-app:hover .tg-app-name { text-decoration:underline; text-underline-offset:3px; }
.tg-footer { margin:0 34px; border-block-start:1px solid var(--border); padding:10px 0 12px; }
.tg-footer nav { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:0 18px; }
.tg-footer a { display:inline-flex; align-items:center; min-block-size:44px; color:var(--muted); font-size:.875rem; text-decoration:none; }
.tg-footer a:hover { text-decoration:underline; }
.tg-footer .tg-services { font-size:.8125rem; text-decoration:underline dotted; text-underline-offset:3px; }
.tg-skip { position:absolute; inset-inline-start:16px; inset-block-start:8px; transform:translateY(-180%); z-index:10; padding:10px 16px; background:var(--surface); color:var(--text); }
.tg-skip:focus { transform:none; }
.tg-info { flex:1; inline-size:min(100%, 680px); margin:30px auto 60px; padding:0 24px; box-sizing:border-box; }
.tg-info .tg-brand img { inline-size:148px; }
.tg-info h1 { margin:36px 0 20px; font-size:1.75rem; line-height:1.4; font-weight:600; }
.tg-info h2 { font-size:1.125rem; margin-block-start:28px; }
.tg-info p { color:var(--muted); line-height:1.8; }
.tg-back { display:inline-flex; align-items:center; min-block-size:44px; margin-block-start:18px; text-underline-offset:3px; }
@media(max-width:480px) {
 .tg-header { padding:12px 16px; min-block-size:68px; gap:10px; }
 .tg-welcome { padding:40px 22px 52px; }
 .tg-brand img { inline-size:216px; }
 .tg-welcome h1 { max-inline-size:330px; margin-inline:auto; font-size:1.125rem; }
 .tg-intro { max-inline-size:310px; margin-inline:auto; }
 .tg-app { margin-block-start:38px; }
 .tg-app-description { max-inline-size:280px; margin-inline:auto; }
 .tg-footer { margin-inline:20px; padding-block:8px; }
 .tg-footer nav { gap:0 14px; }
 .tg-info { margin-block-start:22px; }
}
@media print { .tg-header,.tg-footer,.tg-skip { display:none!important; } }

/* dev.5 shared progressive launcher; document selectors and print geometry untouched. */
.tg-launcher-button { list-style:none; padding:0; font:inherit; }
.tg-launcher-button::-webkit-details-marker { display:none; }
.tg-launcher[open] > .tg-launcher-button { margin:0; }
.tg-launcher-button svg { inline-size:24px; block-size:24px; display:block; }
.tg-launcher-panel { inline-size:260px; box-sizing:border-box; z-index:50; text-align:start; }
.tg-launcher-panel h2 { font-weight:600; }
.tg-launcher-destinations { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tg-launcher-list { display:contents; }
.tg-launcher-link { flex-direction:column; justify-content:center; gap:8px; min-inline-size:0; min-block-size:88px; font-size:.875rem; text-align:center; }
.tg-launcher-link svg { inline-size:28px; block-size:28px; flex-shrink:0; }
.tg-launcher-link[aria-current=page] { background:var(--pale-blue); box-shadow:inset 0 0 0 1px var(--brand-strong); }
.tg-launcher-services { display:flex; justify-content:center; align-items:center; min-block-size:44px; margin-block-start:14px; padding-block-start:10px; border-block-start:1px solid var(--border); color:var(--muted); font-size:.875rem; text-decoration:none; }
.tg-launcher :focus-visible { outline:3px solid var(--navy); outline-offset:2px; }
