/* SWISO 0.20.295 controlled UI handover implementation. Baseline 0.20.294. */

/* Remove both broken Forge-local Platform Guidance entries without touching Pathway guidance. */
body[data-portal="forge"] #r65WorkspaceViews :is(.v292-platform-tab,.v293-platform-tab,.v294-platform-tab){display:none!important}

/* Final supplied overview banners: exact source ratio 2048:211. */
#pageContent>.v295-overview-banner{width:100%;margin:0 0 14px;overflow:hidden;border:1px solid var(--line,#d4dfe4);border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(18,68,83,.07)}
#pageContent>.v295-overview-banner img{display:block;width:100%;height:auto;aspect-ratio:2048/211;object-fit:cover;object-position:left center}
#pageContent>.sw246-banner.v295-banner-superseded{display:none!important}

/* Forge Current surface structure shared by all four light-mode palettes. */
html:not([data-theme="dark"]) body[data-portal="forge"] #moduleView :is([data-forge-layout="users"],[data-forge-layout="my-licence"],.pathway-licence-card,.licence-meta>article,.licensed-products,.licensed-product-grid>a,.forge210-modules,.forge209-metrics>article,.pathway-market-links,.licence-terms-grid>article,[data-users]){background:#fff!important;background-image:none!important;color:#17354a!important}
html:not([data-theme="dark"]) body[data-portal="forge"] #moduleView :is(.pathway-licence-card,.licence-meta>article,.licensed-products,.licensed-product-grid>a,.forge210-modules,.forge209-metrics>article,.pathway-market-links,.licence-terms-grid>article,[data-users]){border-color:#c7d8dd!important;box-shadow:0 4px 12px rgba(20,58,81,.055)!important}
html:not([data-theme="dark"]) body[data-portal="forge"] #moduleView [data-forge-layout="users"]>[data-users]>.forge209-user{background:#fff!important;background-image:none!important;border:0!important;border-bottom:1px solid #dce6e9!important;border-radius:0!important;box-shadow:none!important}

/* Stable User list columns and readable text. */
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;font-size:14px!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}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="users"] .f272-status{grid-column:4!important;grid-row:1!important;align-self:center!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;font-size:13px!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}

/* Licence modules: aligned three-column list without decorative card noise. */
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="my-licence"] .forge210-module-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;border:1px solid var(--line,#d4dfe4)!important;border-radius:10px!important;overflow:hidden!important}
body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="my-licence"] .forge210-module-grid>*{min-height:52px!important;margin:0!important;padding:10px 12px!important;border:0!important;border-right:1px solid var(--line,#d4dfe4)!important;border-bottom:1px solid var(--line,#d4dfe4)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}

/* Compact Folder Indexer process strip: desktop target 104–120px. */
body[data-portal="forge"] #moduleView#moduleView[data-v291-workflow="folder"] .v291-workflow-banner{display:grid!important;grid-template-columns:minmax(220px,.8fr) repeat(5,minmax(145px,1fr))!important;gap:8px!important;min-height:0!important;max-height:120px!important;padding:10px 12px!important;align-items:stretch!important;overflow:visible!important}
body[data-portal="forge"] #moduleView#moduleView[data-v291-workflow="folder"] :is(.v291-workflow-intro,.v291-workflow-step){min-height:0!important;height:auto!important;padding:9px 10px!important;margin:0!important;align-content:start!important}

/* Shared file selection control alignment. */
body[data-portal="forge"] #moduleView .v290-file-field{display:grid!important;grid-template-columns:minmax(140px,max-content) minmax(260px,1fr)!important;gap:10px!important;align-items:center!important;min-height:38px!important;margin:0!important}
body[data-portal="forge"] #moduleView .v290-file-field>input[type="file"]{width:100%!important;min-height:36px!important;height:36px!important;padding:0!important;line-height:34px!important;overflow:visible!important}
body[data-portal="forge"] #moduleView input[type="file"]::file-selector-button{height:34px!important;margin:0 10px 0 0!important;padding:0 13px!important;border:0!important;border-right:1px solid var(--line,#c7d8dd)!important;background:var(--surface-2,#eef4f5)!important;color:var(--ink,#17354a)!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1!important}
body[data-portal="forge"] #moduleView input[type="file"]:focus-visible{outline:3px solid color-mix(in srgb,var(--app-accent,#278895) 35%,transparent)!important;outline-offset:2px!important}

@media(max-width:1280px){body[data-portal="forge"] #moduleView#moduleView[data-v291-workflow="folder"] .v291-workflow-banner{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:none!important}body[data-portal="forge"] #moduleView#moduleView[data-v291-workflow="folder"] .v291-workflow-intro{grid-column:1/-1!important}}
@media(max-width:1024px){body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="my-licence"] .forge210-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:768px){#pageContent>.v295-overview-banner img{min-height:82px;object-fit:cover;object-position:left center}body[data-portal="forge"] #moduleView .v290-file-field{grid-template-columns:1fr!important}body[data-portal="forge"] #moduleView#moduleView[data-v291-workflow="folder"] .v291-workflow-banner{display:flex!important;overflow-x:auto!important;max-height:none!important}body[data-portal="forge"] #moduleView#moduleView[data-v291-workflow="folder"] .v291-workflow-step{min-width:210px!important}}
@media(max-width:520px){#pageContent>.v295-overview-banner{border-radius:8px}#pageContent>.v295-overview-banner img{width:auto;height:92px;max-width:none;object-position:left center}body[data-portal="forge"] #moduleView#moduleView [data-forge-layout="my-licence"] .forge210-module-grid{grid-template-columns:1fr!important}}
