/* Tout est strictement limité au portail apprenant connecté. */
#loggedIn:not(.hidden) .isx-studio-menu{margin:5px 0 24px;max-width:100%;min-width:0}
#loggedIn:not(.hidden) .isx-menu-header{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
#loggedIn:not(.hidden) .isx-eyebrow{display:block;font-size:10px;letter-spacing:.17em;font-weight:850;color:#007f77}
#loggedIn:not(.hidden) .isx-menu-header h3{color:#123a48;font-size:clamp(22px,3.4vw,33px);line-height:1.16;letter-spacing:-.03em;margin:7px 0 0}
#loggedIn:not(.hidden) .isx-menu-header p{font-size:12px;color:#52717a;margin:0;line-height:1.5}
#loggedIn:not(.hidden) .isx-menu-tabs{display:flex;gap:9px;padding:6px 3px 12px;overflow-x:auto;scrollbar-width:thin}
#loggedIn:not(.hidden) .isx-menu-tab{display:flex;align-items:center;gap:10px;flex:none;padding:12px 17px;white-space:nowrap;border:1px solid #bcdcd8;border-radius:14px;background:#fff;color:#23515d;font:750 13px system-ui,sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s,border-color .2s}
#loggedIn:not(.hidden) .isx-tab-icon{color:#0a9186;font-size:19px}
#loggedIn:not(.hidden) .isx-menu-tab:is(:hover,:focus-visible){transform:translateY(-3px);box-shadow:0 10px 25px #0b525326;border-color:#58bfa9}
#loggedIn:not(.hidden) .isx-menu-tab[aria-pressed=true]{background:linear-gradient(120deg,#083a4a,#0b7274);color:white;border-color:#0b7274;box-shadow:0 12px 26px #004b5330}
#loggedIn:not(.hidden) .isx-menu-tab[aria-pressed=true] .isx-tab-icon{color:#aef4de}
#loggedIn:not(.hidden) .isx-menu-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;background:linear-gradient(105deg,#e0f4ee,#f5fcfb);border:1px solid #b6ded6;border-radius:17px}
#loggedIn:not(.hidden) .isx-menu-status{display:block;color:#067d77;font-size:10px;font-weight:800;letter-spacing:.08em;margin-bottom:5px}
#loggedIn:not(.hidden) .isx-menu-preview.isx-preview-soon .isx-menu-status{color:#9a7134}
#loggedIn:not(.hidden) .isx-menu-title{display:block;color:#153e4e;font-size:20px}
#loggedIn:not(.hidden) .isx-menu-description{margin:5px 0 0;font-size:13px;color:#486a75;line-height:1.5}
#loggedIn:not(.hidden) .isx-preview-go{flex:none;min-height:44px;padding:10px 17px;border:none;border-radius:12px;background:#0b7274;color:#fff;font:780 12px system-ui,sans-serif;cursor:pointer;transition:background .2s,transform .2s}
#loggedIn:not(.hidden) .isx-preview-go:hover{background:#075d66;transform:translateY(-2px)}
#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-studio-card{border:1px solid #cfe5de;border-radius:22px;background:linear-gradient(140deg,#ffffff,#f7fcfa);box-shadow:0 6px 24px #093b5210;transition:transform .23s,box-shadow .23s,border-color .23s}
#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-studio-card:is(:hover,.isx-selected){transform:translateY(-3px);border-color:#4fbba9;box-shadow:0 18px 38px #054b5724}
#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-studio-card h4{color:#0d3748;font-size:clamp(1.2rem,2.6vw,1.6rem);line-height:1.24}
/* Les éléments restent les mêmes : aucun gestionnaire de clic modifié. */
#loggedIn:not(.hidden) #studiosGrid .isx-action-primary{background:linear-gradient(120deg,#088a84,#086f79)!important;color:white!important;border-color:#0b847f!important;border-radius:13px!important;font-weight:800!important;box-shadow:0 7px 18px #0b656c23!important;transition:transform .2s,box-shadow .2s!important}
#loggedIn:not(.hidden) #studiosGrid .isx-action-primary:hover{transform:translateY(-2px);box-shadow:0 11px 23px #0b656c39!important}
#loggedIn:not(.hidden) #studiosGrid .isx-action-secondary{background:transparent!important;color:#08757b!important;border-color:transparent!important;box-shadow:none!important;min-height:35px!important;padding:7px 11px!important;font-weight:700!important}
#loggedIn:not(.hidden) #studiosGrid .isx-action-secondary:hover{text-decoration:underline}
#loggedIn:not(.hidden) #studiosGrid .isx-action-tertiary{background:#e4f6f1!important;color:#076568!important;border-color:#abd9cc!important;border-radius:12px!important;box-shadow:none!important}
#loggedIn:not(.hidden) .isx-studio-menu :is(button,a):focus-visible{outline:3px solid #f7b74c;outline-offset:3px}
@media(max-width:700px){#loggedIn:not(.hidden) .isx-menu-preview{flex-direction:column;align-items:stretch;padding:14px}#loggedIn:not(.hidden) .isx-menu-tab{padding:11px 13px;font-size:12px}#loggedIn:not(.hidden) .isx-preview-go{width:100%}#loggedIn:not(.hidden) .isx-menu-header h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){#loggedIn:not(.hidden) .isx-studio-menu *,#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-studio-card{transition:none!important;scroll-behavior:auto!important;transform:none!important}}
/* Published catalogue only; CCNP is a passive teaser, never a buy link. */
#loggedIn:not(.hidden) .isx-menu-teaser{display:inline-flex;align-items:center;align-self:stretch;flex:none;white-space:nowrap;gap:6px;padding:11px 14px;border:1px dashed #dcc99c;border-radius:13px;background:#fffaf0;color:#876534;font:750 12px system-ui,sans-serif;}

/* One clear Studio entry: when the student already has an Open action, the
   duplicate offer-selection link is hidden on the card (not removed from SaaS). */
#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-studio-card:has(.isx-action-primary) .isx-action-secondary{display:none!important}


/* v20261121d: single native entry per published Studio, visual only. */
#loggedIn:not(.hidden) .isx-duplicate-hidden{display:none!important}
#loggedIn:not(.hidden) #studiosGrid>.studio-card[hidden],
#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-unpublished-card{display:none!important}
#loggedIn:not(.hidden) #studiosGrid>.studio-card.isx-studio-card{min-width:0;max-width:100%;overflow-wrap:break-word}
#loggedIn:not(.hidden) .isx-studio-menu{min-width:0;max-width:100%}
#loggedIn:not(.hidden) .isx-menu-tabs{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
#loggedIn:not(.hidden) .isx-menu-title,#loggedIn:not(.hidden) .isx-menu-description{overflow-wrap:anywhere}
/* SENTINELLE is a different educational journey, so keep its original link
   and handler accessible but make it a discreet text link, not a competing CTA. */
#loggedIn:not(.hidden) #studiosGrid .isx-action-tertiary{
 background:transparent!important;border:none!important;border-radius:0!important;
 box-shadow:none!important;color:#087b76!important;min-height:36px!important;
 padding:6px 0!important;font-size:0.87rem!important;text-decoration:underline!important;
 text-underline-offset:4px!important
}
#loggedIn:not(.hidden) #studiosGrid .isx-action-tertiary:hover{color:#07504e!important}


/* Two different actions, one Studio: native access + native billing selection. */
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
 width:100%;margin:13px 0 8px;align-items:stretch;min-width:0
}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions :is(.isx-free-entry,.isx-subscription-entry,.isx-free-unavailable){
 box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0!important;max-width:100%!important;min-height:52px!important;
 margin:0!important;padding:12px 8px!important;white-space:normal!important;overflow-wrap:break-word;
 text-align:center!important;line-height:1.3!important;font-size:clamp(12px,2.8vw,14px)!important;
 font-weight:800!important;border:1px solid transparent!important;border-radius:12px!important;
 transition:background .2s,box-shadow .2s,transform .2s
}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions .isx-free-entry{
 background:#e3f7ef!important;color:#075953!important;border-color:#8ac9b8!important;
 text-decoration:none!important;box-shadow:none!important
}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions .isx-subscription-entry{
 background:linear-gradient(115deg,#0b877e,#075d70)!important;color:white!important;
 border-color:#0a747a!important;box-shadow:0 7px 20px #075d7025!important;cursor:pointer
}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions .isx-free-unavailable{
 background:#f4f7f7!important;color:#637681!important;border-color:#d5e1e1!important;cursor:not-allowed!important
}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions :is(.isx-free-entry,.isx-subscription-entry):hover{
 transform:translateY(-2px);box-shadow:0 9px 20px #075d7028!important
}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions :is(a,button):focus-visible{outline:3px solid #f2ad55;outline-offset:3px}
#loggedIn:not(.hidden) .isx-menu-tab{max-width:100%;white-space:normal;text-align:left}
#loggedIn:not(.hidden) .isx-menu-tab span:last-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:350px){
 #loggedIn:not(.hidden) #studiosGrid .isx-studio-actions{gap:6px}
 #loggedIn:not(.hidden) #studiosGrid .isx-studio-actions :is(.isx-free-entry,.isx-subscription-entry,.isx-free-unavailable){font-size:11px!important;padding:10px 5px!important}
}
@media(prefers-reduced-motion:reduce){
 #loggedIn:not(.hidden) #studiosGrid .isx-studio-actions :is(a,button){transform:none!important;transition:none!important}
}

/* Direct learner checkout: hide the redundant FREE offer catalogue, retain billing actions. */
#loggedIn.member-premium #plans.isx-direct-free{display:none!important}
#loggedIn #studiosGrid .studio-card{min-width:0;max-width:100%;box-sizing:border-box}

/* Only redundant offer heading/note disappear; account and billing management stay available. */
#loggedIn.member-premium:has(#plans.isx-direct-free) :is(#plansTitle,#plansNote){display:none!important}

/* Narrow learner cards: prevent the navigation strip from widening the page. */
@media(max-width:700px){
 #loggedIn.member-premium #studiosGrid{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
 #loggedIn.member-premium .isx-menu-tabs{flex-wrap:wrap;overflow-x:visible}
 #loggedIn.member-premium .isx-menu-tab,#loggedIn.member-premium .isx-menu-teaser{min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
 #loggedIn.member-premium #studiosGrid .studio-card,#loggedIn.member-premium #studiosGrid .infrasec-cyber-story-box{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
}

/* Cyber FREE: free access stays separate; two exact paid monthly offers side by side. */
#loggedIn:not(.hidden) #studiosGrid .isx-cyber-three .isx-free-entry,
#loggedIn:not(.hidden) #studiosGrid .isx-cyber-three .isx-free-unavailable{grid-column:1/-1}
#loggedIn:not(.hidden) #studiosGrid .isx-cyber-three .isx-cyber-pro{background:linear-gradient(115deg,#123c51,#075d70)!important}
#loggedIn:not(.hidden) #studiosGrid .isx-studio-actions button:disabled{cursor:not-allowed;opacity:.7}

/* Mobile: wrap account identifiers and keep each existing control in its card.
   Do not hide page overflow: the browser gate must detect layout regressions. */
@media(max-width:900px){
 html.portal-workspace #loggedIn,html.portal-workspace #loggedOut,html.portal-workspace .panel{min-width:0;max-width:100%;box-sizing:border-box}
 html.portal-workspace #loggedIn :is(.dashboard-head,.security-row,.action-row,.member-actions){min-width:0;flex-wrap:wrap}
 html.portal-workspace #loggedIn :is(.dashboard-head,.security-row,.member-copy,.studio-plan,.product-note,.muted){overflow-wrap:anywhere;min-width:0}
 html.portal-workspace #loggedIn :is(.dashboard-head,.security-row,.action-row)>*{min-width:0;max-width:100%}
 html.portal-workspace #loggedIn :is(.action-row,.member-actions) :is(button,a){white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:44px;box-sizing:border-box}
}
@media(max-width:350px){
 #loggedIn:not(.hidden) #studiosGrid .isx-studio-actions{grid-template-columns:minmax(0,1fr)}
 #loggedIn:not(.hidden) #studiosGrid .isx-studio-actions :is(.isx-free-entry,.isx-subscription-entry,.isx-free-unavailable){font-size:13px!important;padding:12px 8px!important}
}

/* The Chromium 768px regression exposed a tablet header overflow (788px).
   Retain the desktop layout above 900px; do not globally hide any overflow. */
@media(min-width:701px) and (max-width:900px){
 html.portal-workspace #loggedIn.member-premium #studiosGrid{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
 html.portal-workspace #loggedIn.member-premium .member-hero{grid-template-columns:minmax(0,1fr);gap:18px}
 html.portal-workspace #loggedIn.member-premium .member-steps{grid-template-columns:minmax(0,1fr)}
 html.portal-workspace #loggedIn.member-premium .isx-menu-tabs{flex-wrap:wrap;overflow-x:visible}
 html.portal-workspace #loggedIn.member-premium :is(.isx-menu-tab,.isx-menu-teaser){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
}
