/* SWISO 0.20.293 corrective presentation. Exact baseline: 0.20.292. */

/* Platform Guidance is a reversible view. Native Forge nodes remain mounted. */
body[data-portal="forge"] #moduleView[data-v293-guidance-active]>*:not(.v293-guidance){display:none!important}
body[data-portal="forge"] #moduleView>.v293-guidance{display:grid!important;gap:16px!important;padding:2px!important}
body[data-portal="forge"] #moduleView .v293-guidance-hero{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr)!important;gap:18px!important;padding:24px!important;border:1px solid #a8cbd2!important;border-left:5px solid #168c91!important;border-radius:16px!important;background:#fff!important;box-shadow:0 12px 30px rgba(18,68,83,.1)!important}
body[data-portal="forge"] #moduleView .v293-guidance-hero h2{margin:4px 0 8px!important;font-size:25px!important}
body[data-portal="forge"] #moduleView .v293-guidance-hero p{max-width:72ch!important;font-size:14px!important;line-height:1.55!important}
body[data-portal="forge"] #moduleView .v293-guidance-note{padding:15px!important;border:1px solid #c6d9dd!important;border-radius:12px!important;background:#fff!important}
body[data-portal="forge"] #moduleView .v293-journey{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
body[data-portal="forge"] #moduleView .v293-journey>article,body[data-portal="forge"] #moduleView .v293-guide-grid>article{padding:16px!important;border:1px solid #c9dce0!important;border-top:3px solid #168c91!important;border-radius:12px!important;background:#fff!important;box-shadow:0 6px 16px rgba(20,58,81,.07)!important}
body[data-portal="forge"] #moduleView .v293-guide-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}

/* Forge Current is the clean white-surface reference across every portal except Pathway. */
html:not([data-theme="dark"]) body[data-portal]:not([data-portal="pathway"]) #pageContent{background:linear-gradient(145deg,#f2f7f8,#f8fbfc)!important}
html:not([data-theme="dark"]) body[data-portal]:not([data-portal="pathway"]) #moduleView :is(.module-workbench,.special-workspace,.filter-strip,.workflow-summary,.register-toolbar,.register-frame,.register-card-grid,.empty-register,.page-status,.panel,.licence-page,.licensed-products,[data-users]){background:#fff!important}
html:not([data-theme="dark"]) body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users],
html:not([data-theme="dark"]) body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user{background:#fff!important}

/* Stable Users columns in every Forge theme. */
body[data-portal="forge"] #moduleView#moduleView .v291-user-head,
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"]>[data-users]>.forge209-user{grid-template-columns:38px minmax(280px,1.65fr) 140px 120px minmax(230px,1fr) 118px!important;align-items:center!important;column-gap:12px!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .forge209-user>div:first-of-type{grid-column:2!important;grid-row:1!important;align-self:center!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .forge209-user>div:nth-of-type(2){display:contents!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .v291-user-role{grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:start!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .forge209-user .f272-status{grid-column:4!important;grid-row:1!important;align-self:center!important;justify-self:start!important;width:88px!important;text-align:center!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .forge209-user>small{grid-column:5!important;grid-row:1!important;align-self:center!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .forge209-user>button{grid-column:6!important;grid-row:1!important;align-self:center!important;width:100%!important}

html[data-theme="dark"] body[data-portal="forge"] #moduleView :is(.v293-guidance-hero,.v293-guidance-note,.v293-journey>article,.v293-guide-grid>article){background:var(--surface,#172a34)!important;border-color:var(--line,#38545f)!important;color:var(--ink,#edf7f8)!important}
@media(max-width:1200px){body[data-portal="forge"] #moduleView .v293-journey{grid-template-columns:repeat(3,minmax(0,1fr))!important}body[data-portal="forge"] #moduleView .v293-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body[data-portal="forge"] #moduleView .v293-guidance-hero,body[data-portal="forge"] #moduleView .v293-journey,body[data-portal="forge"] #moduleView .v293-guide-grid{grid-template-columns:1fr!important}}
