/* SWISO 0.20.292 controlled platform guidance and body refinement.
   Exact protected baseline: installed 0.20.291. The complete header remains untouched. */

/* Forge Users: the live renderer groups Role and Status in one wrapper. Make its
   children direct grid items so every heading and value shares the same column. */
body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user>div:nth-of-type(2){display:contents!important}
body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user .v291-user-role{grid-column:3!important;align-self:center!important;justify-self:start!important;white-space:nowrap!important}
body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user .f272-status{grid-column:4!important;align-self:center!important;justify-self:start!important;min-width:72px!important;text-align:center!important}
body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user .f272-status[data-status272="active"]{border-color:#83cdb5!important;background:#e8f7f0!important;color:#08754d!important}
body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user .f272-status[data-status272="inactive"]{border-color:#ddb5aa!important;background:#fff1ed!important;color:#9a3f2b!important}
html:not([data-theme="dark"])[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]{background:#fff!important}
html:not([data-theme="dark"])[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user{background:#fff!important;border-color:#d6e1e5!important;box-shadow:none!important}

/* Pathway licence identity: white working card, three clear information panels,
   and a consistent semantic Active state in every approved light palette. */
html:not([data-theme="dark"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card{background:#fff!important;border:1px solid #c8d9dc!important;box-shadow:0 9px 24px rgba(18,68,83,.09)!important}
html:not([data-theme="dark"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-shine{opacity:.18!important}
body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta{display:grid!important;grid-template-columns:minmax(240px,1.15fr) minmax(180px,.46fr) minmax(420px,1.85fr)!important;gap:10px!important}
body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta>article{min-width:0!important;padding:13px 14px!important;border:1px solid var(--sw-theme-border,#c7dadd)!important;border-left:3px solid var(--sw-theme-accent,#148d78)!important;border-radius:10px!important;background:var(--sw-theme-surface,#fff)!important;box-shadow:0 4px 12px rgba(18,68,83,.06)!important}
body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta>article:nth-child(2){border-left-color:#22936e!important}
body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta>article:nth-child(3){border-left-color:var(--sw-theme-info,#4b83b2)!important}
body[data-portal="pathway"] .swiso-runtime-content .licence-active{display:inline-flex!important;align-items:center!important;width:max-content!important;margin-top:5px!important;padding:4px 9px!important;border:1px solid #82cbb1!important;border-radius:999px!important;background:#e8f7f0!important;color:#08754d!important;font-weight:800!important}
html:not([data-theme="dark"])[data-swiso-palette="british-botanical"] body[data-portal="pathway"] .workspace,
html:not([data-theme="dark"])[data-swiso-palette="executive-emerald"] body[data-portal="pathway"] .workspace,
html:not([data-theme="dark"])[data-swiso-palette="mineral-glass"] body[data-portal="pathway"] .workspace{background:radial-gradient(circle at 92% 4%,color-mix(in srgb,var(--sw-theme-accent) 5%,transparent),transparent 28rem),linear-gradient(150deg,#f7faf9,#f1f6f7)!important}
html:not([data-theme="dark"])[data-swiso-palette="british-botanical"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-products,.pathway-market-links,.licence-terms-grid),
html:not([data-theme="dark"])[data-swiso-palette="executive-emerald"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-products,.pathway-market-links,.licence-terms-grid),
html:not([data-theme="dark"])[data-swiso-palette="mineral-glass"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-products,.pathway-market-links,.licence-terms-grid){background:#fff!important}

/* All non-Forge shared portals: retain each portal's identity, but bring the body
   up to the approved white-surface, selective-accent Forge composition. */
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #pageContent{--v292-portal-accent:var(--app-accent,#138d8a);--v292-portal-accent2:var(--app-secondary,#4b83b2)}
html:not([data-theme="dark"]) body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #pageContent{background:radial-gradient(circle at 96% 2%,color-mix(in srgb,var(--v292-portal-accent) 7%,transparent),transparent 26rem),linear-gradient(145deg,#f3f8f8,#edf3f6)!important}
html:not([data-theme="dark"]) body[data-portal]:not([data-portal="forge"]):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){border-color:#cbdcdf!important;background:#fff!important;box-shadow:0 7px 18px rgba(20,58,81,.07)!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView .module-heading{padding:18px 20px!important;border:1px solid color-mix(in srgb,var(--v292-portal-accent) 28%,#cbdcdf)!important;border-left:4px solid var(--v292-portal-accent)!important;border-radius:14px!important;background:linear-gradient(120deg,var(--sw-theme-surface,#fff),color-mix(in srgb,var(--v292-portal-accent) 6%,var(--sw-theme-surface,#fff)))!important;box-shadow:0 9px 24px color-mix(in srgb,var(--v292-portal-accent) 10%,transparent)!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView .module-heading h2{font-size:22px!important;letter-spacing:-.015em!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView .section-kicker{color:var(--v292-portal-accent)!important;font-weight:800!important;letter-spacing:.08em!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView .workflow-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;padding:14px!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView .workflow-summary>article{border:1px solid #d4e1e4!important;border-top:3px solid var(--v292-portal-accent)!important;border-radius:10px!important;background:#fff!important;padding:13px!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView .workflow-summary>article:nth-child(even){border-top-color:var(--v292-portal-accent2)!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView :is(button.primary,.view-button.active){background:var(--v292-portal-accent)!important;border-color:var(--v292-portal-accent)!important;color:#fff!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView table{background:var(--sw-theme-surface,#fff)!important}
body[data-portal]:not([data-portal="forge"]):not([data-portal="pathway"]) #moduleView thead{background:color-mix(in srgb,var(--v292-portal-accent) 8%,var(--sw-theme-surface,#fff))!important}

/* Forge Platform Guidance and complete module tutorial. */
body[data-portal="forge"] #r65WorkspaceViews>.v292-platform-tab{white-space:nowrap!important}
body[data-portal="forge"] #moduleView .v292-guidance{display:grid!important;gap:16px!important;padding:2px!important}
body[data-portal="forge"] #moduleView .v292-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:linear-gradient(120deg,#fff,#edf8f7 62%,#edf4fa)!important;box-shadow:0 12px 30px rgba(18,68,83,.1)!important}
body[data-portal="forge"] #moduleView .v292-guidance-hero h2{margin:4px 0 8px!important;font-size:25px!important}
body[data-portal="forge"] #moduleView .v292-guidance-hero p{max-width:72ch!important;font-size:14px!important;line-height:1.55!important}
body[data-portal="forge"] #moduleView .v292-guidance-note{align-self:stretch!important;padding:15px!important;border:1px solid #c6d9dd!important;border-radius:12px!important;background:#fff!important}
body[data-portal="forge"] #moduleView .v292-journey{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
body[data-portal="forge"] #moduleView .v292-journey>article{position:relative!important;padding:16px!important;border:1px solid #c9dce0!important;border-top:3px solid var(--v292-step,#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 .v292-journey>article:nth-child(2){--v292-step:#4b83b2}body[data-portal="forge"] #moduleView .v292-journey>article:nth-child(3){--v292-step:#7d6cac}body[data-portal="forge"] #moduleView .v292-journey>article:nth-child(4){--v292-step:#bd8d3e}body[data-portal="forge"] #moduleView .v292-journey>article:nth-child(5){--v292-step:#168c91}
body[data-portal="forge"] #moduleView .v292-guide-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
body[data-portal="forge"] #moduleView .v292-guide-grid>article{padding:17px!important;border:1px solid #ccdce0!important;border-left:3px solid var(--v292-card,#168c91)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 14px rgba(20,58,81,.06)!important}
body[data-portal="forge"] #moduleView .v292-guide-grid>article:nth-child(3n+2){--v292-card:#4b83b2}body[data-portal="forge"] #moduleView .v292-guide-grid>article:nth-child(3n){--v292-card:#7d6cac}
body[data-portal="forge"] #moduleView .v292-guide-grid h3{margin:0 0 6px!important;font-size:16px!important}body[data-portal="forge"] #moduleView .v292-guide-grid p{margin:0!important;font-size:13.5px!important;line-height:1.48!important}

.v292-help-layer{position:fixed!important;inset:0!important;z-index:2147483000!important;display:grid!important;place-items:center!important;padding:24px!important;background:rgba(8,25,36,.66)!important;backdrop-filter:blur(4px)!important}
.v292-help-dialog{width:min(1180px,96vw)!important;max-height:90vh!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;overflow:hidden!important;border:1px solid #91bac3!important;border-radius:17px!important;background:var(--sw-theme-surface,#fff)!important;color:var(--sw-theme-text,#183548)!important;box-shadow:0 28px 70px rgba(4,24,37,.32)!important}
.v292-help-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding:20px 22px!important;border-bottom:1px solid #cadcdf!important;background:linear-gradient(115deg,color-mix(in srgb,var(--sw-theme-accent,#168c91) 9%,var(--sw-theme-surface,#fff)),var(--sw-theme-surface,#fff))!important}.v292-help-head h2{margin:0 0 5px!important;font-size:23px!important}.v292-help-head p{margin:0!important;max-width:76ch!important}.v292-help-close{min-width:90px!important}
.v292-help-tools{display:grid!important;grid-template-columns:minmax(260px,1fr) auto!important;gap:12px!important;padding:14px 22px!important;border-bottom:1px solid #d5e2e4!important}.v292-help-tools input{width:100%!important;min-height:38px!important}
.v292-help-content{overflow:auto!important;padding:18px 22px 24px!important}.v292-help-category{margin:0 0 20px!important}.v292-help-category>h3{margin:0 0 10px!important;padding-bottom:7px!important;border-bottom:2px solid color-mix(in srgb,var(--sw-theme-accent,#168c91) 40%,#d7e3e5)!important}.v292-help-modules{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.v292-help-module{padding:14px!important;border:1px solid #cedde0!important;border-left:3px solid var(--sw-theme-accent,#168c91)!important;border-radius:11px!important;background:var(--sw-theme-surface,#fff)!important}.v292-help-module h4{margin:0 0 7px!important;font-size:15px!important}.v292-help-module p{margin:4px 0!important;font-size:13px!important;line-height:1.45!important}.v292-help-module strong{color:var(--sw-theme-text,#183548)!important}
html[data-theme="dark"] .v292-help-dialog,html[data-theme="dark"] body[data-portal="forge"] #moduleView :is(.v292-guidance-hero,.v292-guidance-note,.v292-journey>article,.v292-guide-grid>article){background:var(--sw-theme-surface,#172a34)!important;border-color:var(--sw-theme-border,#38545f)!important;color:var(--sw-theme-text,#edf7f8)!important}
html[data-theme="dark"] body[data-portal="pathway"] .swiso-runtime-content .licence-active{background:#123b30!important;border-color:#337e64!important;color:#8be0bd!important}

@media(max-width:1200px){body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta{grid-template-columns:1fr 1fr!important}body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta>article:nth-child(3){grid-column:1/-1!important}body[data-portal="forge"] #moduleView .v292-journey{grid-template-columns:repeat(3,minmax(0,1fr))!important}body[data-portal="forge"] #moduleView .v292-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta,body[data-portal="forge"] #moduleView .v292-guidance-hero,body[data-portal="forge"] #moduleView .v292-journey,body[data-portal="forge"] #moduleView .v292-guide-grid,.v292-help-modules{grid-template-columns:1fr!important}body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card .licence-meta>article:nth-child(3){grid-column:auto!important}.v292-help-layer{padding:8px!important}.v292-help-tools{grid-template-columns:1fr!important}}
