/* SWISO 0.20.287 professional surface and control refinement
   Controlled successor to the exact installed 0.20.286 baseline. */

/* Compact theme control -------------------------------------------------- */
body[data-swiso-universal-shell="r65"] .theme-control276{height:34px;display:flex;align-items:center;margin-left:2px}
body[data-swiso-universal-shell="r65"] [data-theme286-trigger]{height:34px;display:grid;grid-template-columns:10px auto minmax(76px,auto) 12px;align-items:center;gap:6px;padding:0 9px;border:1px solid rgba(255,255,255,.27);border-radius:8px;background:rgba(255,255,255,.11);color:#fff;box-shadow:none;font:inherit;font-size:.71rem;white-space:nowrap}
body[data-swiso-universal-shell="r65"] [data-theme286-trigger]>i{width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,var(--app-glow),var(--app-accent));box-shadow:0 0 0 3px rgba(255,255,255,.17)}
body[data-swiso-universal-shell="r65"] [data-theme286-trigger] :is(span,strong,b){color:#fff!important}
body[data-swiso-universal-shell="r65"] [data-theme286-trigger]>strong{max-width:126px;overflow:hidden;text-overflow:ellipsis}
body[data-swiso-universal-shell="r65"] [data-theme286-trigger]:is(:hover,:focus-visible){background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.48);outline:0}
body[data-swiso-universal-shell="r65"] .theme-native276{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}

/* Theme chooser --------------------------------------------------------- */
.theme-dialog276{width:min(900px,calc(100vw - 28px));padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 30px 86px rgba(3,25,43,.32)}
.theme-dialog276::backdrop{background:rgba(3,22,37,.58);backdrop-filter:blur(5px)}
.theme-dialog276 form{margin:0}.theme-dialog276 header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;background:linear-gradient(118deg,#163b5a,#176a78 58%,#278895);color:#fff}
.theme-dialog276 header :is(h2,p,span){color:#fff!important}.theme-dialog276 header h2{margin:4px 0 3px;font-size:1.35rem}.theme-dialog276 header p{margin:0;opacity:.82}.theme-dialog276 header span{font-size:.69rem;font-weight:900;letter-spacing:.13em}
.theme-dialog276 header>button{width:35px;height:35px;border:1px solid rgba(255,255,255,.27);border-radius:9px;background:rgba(255,255,255,.1);color:#fff;font-size:1.2rem}
.theme-grid276{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 22px 14px}.theme-grid276.has-forge{grid-template-columns:repeat(4,minmax(0,1fr))}
.theme-choice276{position:relative;min-height:154px;padding:12px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 7%,var(--surface)),var(--surface));color:var(--ink);text-align:left;box-shadow:0 7px 20px rgba(19,54,66,.07);transition:transform .16s,border-color .16s,box-shadow .16s}
.theme-choice276:hover,.theme-choice276:focus-visible{transform:translateY(-2px);border-color:var(--c1);outline:0}.theme-choice276.selected{border-color:var(--c1);box-shadow:0 0 0 2px color-mix(in srgb,var(--c1) 18%,transparent),0 10px 24px rgba(19,54,66,.09)}
.theme-choice276 strong,.theme-choice276 small{display:block}.theme-choice276 strong{margin-top:9px;color:var(--ink)}.theme-choice276 small{margin-top:4px;color:var(--muted);line-height:1.35}.theme-choice276>b{position:absolute;right:8px;top:8px;width:22px;height:22px;display:none;place-items:center;border-radius:50%;background:var(--c1);color:#fff}.theme-choice276.selected>b{display:grid}
.theme-swatch276{height:50px;display:grid;grid-template-columns:1.15fr 1fr .85fr;overflow:hidden;border:1px solid color-mix(in srgb,var(--c1) 24%,var(--line));border-radius:8px}.theme-swatch276 i:nth-child(1){background:var(--c1)}.theme-swatch276 i:nth-child(2){background:var(--c2)}.theme-swatch276 i:nth-child(3){background:var(--c3)}
.theme-settings276{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(330px,1.28fr);gap:12px;padding:0 22px 20px}.theme-settings276 fieldset,.theme-settings276>label{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.theme-settings276 legend{padding:0 5px;color:var(--muted);font-size:.72rem;font-weight:850}.theme-settings276>label{display:flex;align-items:center;gap:10px}.theme-settings276>label input{width:18px;height:18px;accent-color:var(--app-accent)}.theme-settings276>label span{display:grid}.theme-settings276>label small{color:var(--muted)}
.mode-picker276{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.mode-picker276 button{min-height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-weight:800}.mode-picker276 button.selected{border-color:var(--app-accent);background:color-mix(in srgb,var(--app-accent) 13%,var(--surface));color:var(--ink)}
.theme-dialog276 footer{display:flex;align-items:center;gap:12px;padding:14px 22px;border-top:1px solid var(--line);background:var(--surface-2)}.theme-dialog276 footer>span{flex:1;color:var(--muted);font-size:.78rem}.theme-dialog276 footer button{min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-weight:850}.theme-dialog276 footer .primary{border-color:transparent;background:linear-gradient(135deg,var(--app-tertiary),var(--app-secondary),var(--app-accent));color:#fff}

/* Permanent portal identity -------------------------------------------- */
html[data-swiso-canonical-shell="r65"] body[data-portal="pathway"] .unified-header127>header.topbar.r65-shell-owner{background-color:#08756f!important;background-image:linear-gradient(96deg,#075a63,#087c78 55%,#087078)!important;color:#fff!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.18)!important;box-shadow:0 8px 24px rgba(4,49,58,.18)!important}
html[data-swiso-canonical-shell="r65"] body[data-portal="forge"] .unified-header127>header.topbar.r65-shell-owner{background-color:#08756f!important;background-image:linear-gradient(96deg,#075a63,#087c78 55%,#087078)!important;color:#fff!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.18)!important;box-shadow:0 8px 24px rgba(4,49,58,.18)!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner :is(button,label,.suite-link,.product-lockup,.product-lockup small,.product-lockup strong,.top-actions,.top-actions span,.top-actions strong){color:#fff!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner :is(button,.icon-btn,.portal-select,.layout-mode170,[data-theme286-trigger]){border-color:rgba(255,255,255,.28)!important;background:rgba(255,255,255,.11)!important;color:#fff!important;box-shadow:none!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner select.portal-select option{color:#17394a!important;background:#fff!important;font-family:inherit!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286{height:34px;display:inline-flex;align-items:center;margin-left:3px;overflow:hidden;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(3,49,54,.2);box-shadow:inset 0 1px rgba(255,255,255,.08)}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286 button{width:31px;height:32px;padding:0!important;border:0!important;border-right:1px solid rgba(255,255,255,.18)!important;border-radius:0!important;background:transparent!important;color:rgba(255,255,255,.76)!important;font-size:.88rem!important;box-shadow:none!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286 button:last-child{border-right:0!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286 button:is(:hover,:focus-visible){background:rgba(255,255,255,.14)!important;color:#fff!important;outline:0}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286 button.selected{background:rgba(255,255,255,.27)!important;color:#fff!important;box-shadow:inset 0 -2px #8de2c8!important}
#r65MobileCommandSet187>.whats-new286{white-space:nowrap}#r65MobileCommandSet187>.whats-new286::before{content:'+';width:15px;height:15px;display:inline-grid;place-items:center;margin-right:5px;border-radius:50%;background:rgba(39,136,149,.2);color:inherit;font-weight:900}

/* Semantic palette tokens ---------------------------------------------- */
html[data-swiso-palette="british-botanical"]{--sw-theme-canvas:#e9eee6;--sw-theme-canvas2:#f6f2e8;--sw-theme-surface:#fffdf7;--sw-theme-surface2:#f1ebdd;--sw-theme-surface3:#e4eadf;--sw-theme-field:#fffdf7;--sw-theme-control:#e9eee3;--sw-theme-border:#adbeaf;--sw-theme-border-strong:#789781;--sw-theme-text:#233d35;--sw-theme-muted:#60766d;--sw-theme-accent:#557d66;--sw-theme-accent2:#9a744a;--sw-theme-soft:#d9e7dc;--sw-theme-highlight:rgba(255,255,255,.82);--sw-theme-shadow:0 10px 26px rgba(48,77,60,.12);--sw-theme-card-shadow:0 5px 14px rgba(48,77,60,.12);--sw-theme-radius:11px}
html[data-swiso-palette="executive-emerald"]{--sw-theme-canvas:#e4eeea;--sw-theme-canvas2:#f5f8f6;--sw-theme-surface:#fff;--sw-theme-surface2:#e1ede8;--sw-theme-surface3:#d2e5dc;--sw-theme-field:#fbfdfc;--sw-theme-control:#dcebe4;--sw-theme-border:#a9c5ba;--sw-theme-border-strong:#4d8b75;--sw-theme-text:#183b34;--sw-theme-muted:#5b756e;--sw-theme-accent:#087558;--sw-theme-accent2:#284f49;--sw-theme-soft:#d4e9e0;--sw-theme-highlight:rgba(255,255,255,.88);--sw-theme-shadow:0 10px 25px rgba(8,88,65,.12);--sw-theme-card-shadow:0 5px 14px rgba(8,88,65,.12);--sw-theme-radius:9px}
html[data-swiso-palette="mineral-glass"]{--sw-theme-canvas:#d6e6ec;--sw-theme-canvas2:#e8f1f4;--sw-theme-surface:#edf5f8;--sw-theme-surface2:#d4e6ec;--sw-theme-surface3:#c4dce5;--sw-theme-field:#f5fafb;--sw-theme-control:#d0e3e9;--sw-theme-border:#8fb5c4;--sw-theme-border-strong:#447f95;--sw-theme-text:#173e52;--sw-theme-muted:#557483;--sw-theme-accent:#267f98;--sw-theme-accent2:#315f75;--sw-theme-soft:#c6e0e8;--sw-theme-highlight:rgba(255,255,255,.76);--sw-theme-shadow:0 11px 26px rgba(31,92,113,.15);--sw-theme-card-shadow:0 6px 16px rgba(31,92,113,.15);--sw-theme-radius:12px}
html[data-theme="dark"][data-swiso-palette="british-botanical"]{--sw-theme-canvas:#0d1714;--sw-theme-canvas2:#13211c;--sw-theme-surface:#1b2d26;--sw-theme-surface2:#263f34;--sw-theme-surface3:#315043;--sw-theme-field:#29463a;--sw-theme-control:#2f4b40;--sw-theme-border:#4b6f5e;--sw-theme-border-strong:#76a088;--sw-theme-text:#edf5f0;--sw-theme-muted:#b7cabf;--sw-theme-accent:#8fc3a5;--sw-theme-accent2:#d0aa78;--sw-theme-soft:#294338;--sw-theme-highlight:rgba(255,255,255,.07);--sw-theme-shadow:0 12px 28px rgba(0,0,0,.31);--sw-theme-card-shadow:0 7px 18px rgba(0,0,0,.28)}
html[data-theme="dark"][data-swiso-palette="executive-emerald"]{--sw-theme-canvas:#0a1512;--sw-theme-canvas2:#10231e;--sw-theme-surface:#173029;--sw-theme-surface2:#21463a;--sw-theme-surface3:#2b5949;--sw-theme-field:#254d40;--sw-theme-control:#294f43;--sw-theme-border:#3d705e;--sw-theme-border-strong:#58a184;--sw-theme-text:#eef8f4;--sw-theme-muted:#b4cec3;--sw-theme-accent:#52c69b;--sw-theme-accent2:#74b7a5;--sw-theme-soft:#234a3e;--sw-theme-highlight:rgba(255,255,255,.07);--sw-theme-shadow:0 12px 28px rgba(0,0,0,.32);--sw-theme-card-shadow:0 7px 18px rgba(0,0,0,.29)}
html[data-theme="dark"][data-swiso-palette="mineral-glass"]{--sw-theme-canvas:#0a151d;--sw-theme-canvas2:#102630;--sw-theme-surface:#193744;--sw-theme-surface2:#244b5a;--sw-theme-surface3:#2e5f70;--sw-theme-field:#285363;--sw-theme-control:#2b5666;--sw-theme-border:#47778a;--sw-theme-border-strong:#6bafc5;--sw-theme-text:#f1f7fa;--sw-theme-muted:#b7ccd5;--sw-theme-accent:#66bed5;--sw-theme-accent2:#86b9ca;--sw-theme-soft:#254b5b;--sw-theme-highlight:rgba(255,255,255,.08);--sw-theme-shadow:0 12px 30px rgba(0,0,0,.34);--sw-theme-card-shadow:0 7px 19px rgba(0,0,0,.3)}

/* Optional palettes style the workspace only ---------------------------- */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .workspace{background:radial-gradient(circle at 90% 3%,color-mix(in srgb,var(--sw-theme-accent) 12%,transparent),transparent 28rem),linear-gradient(150deg,var(--sw-theme-canvas),var(--sw-theme-canvas2))!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .swiso-runtime-content{color:var(--sw-theme-text)!important;font-family:inherit!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .swiso-runtime-content :is(h1,h2,h3,h4,h5,strong,legend,summary,label){color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .swiso-runtime-content :is(p,small,td,.muted){color:var(--sw-theme-muted)!important}

/* Navigation is restrained: themed state, no solid coloured rail. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .sidebar{background:linear-gradient(180deg,color-mix(in srgb,var(--sw-theme-surface) 97%,transparent),var(--sw-theme-canvas2))!important;border-right-color:var(--sw-theme-border)!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .sidebar :is(.nav-group-title,.nav-label,.nav-link,.nav-icon,.sidebar-foot,.sidebar-foot strong,.workspace-head-top strong){color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .nav-group .nav-link{border:1px solid color-mix(in srgb,var(--sw-theme-border) 68%,transparent)!important;background:color-mix(in srgb,var(--sw-theme-surface) 80%,transparent)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .nav-group .nav-link:is(:hover,.active){border-color:var(--sw-theme-border-strong)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--sw-theme-accent) 20%,var(--sw-theme-surface2)),var(--sw-theme-surface2))!important;box-shadow:inset 3px 0 var(--sw-theme-accent)!important}

/* Shared working surfaces. Layout properties are intentionally untouched. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .swiso-runtime-content :is(.panel,.dashboard-panel,.metric,.r65-surface,.management-note,.pathway235-banner,.overview-heading170,.pathway-overview-card,.pathway-summary-meter,.pathway-summary-list>article,.pathway-help-note,.pathway-settings-form,.guidance-controls167,.guidance-grid>article,.pathway-licence-card,.licensed-products,.pathway-market-links,.licence-terms-grid>article,.forge209-section,.forge209-user,.forge209-metrics>article,.forge210-step,.forge210-modules,.forge210-module-grid>article,.forge211-storage,.forge218-backup,.forge218-industry,.forge221-config,.forge222-purpose,.forge223-import,.forge226-profile-bar,.forge226-sector-layout,.forge227-repository form,.forge227-revisions>article,.forge267-pack-link,.r57-pack-grid>article,.f272-card,.f272-panel,.branding-editor,.branding-preview,.report-governance,.studio-layout,.replace-workspace,.source-mapping-editor){border:1px solid var(--sw-theme-border)!important;border-radius:var(--sw-theme-radius)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 7%,var(--sw-theme-surface)),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-card-shadow)!important}

/* Inner Licence elements were hard-coded white. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content .page-head.pathway-head177{display:block!important;padding:16px 18px!important;border:1px solid var(--sw-theme-border)!important;border-radius:var(--sw-theme-radius)!important;background:linear-gradient(110deg,var(--sw-theme-surface2),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important;box-shadow:var(--sw-theme-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content .page-head.pathway-head177>span{display:block!important;margin-bottom:4px;color:var(--sw-theme-accent)!important;font-weight:850!important;letter-spacing:.04em}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content .page-head.pathway-head177 h2{margin:0 0 5px!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content .page-head.pathway-head177 p{margin:0!important;color:var(--sw-theme-muted)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(.pathway-licence-card article,.licensed-products a,.pathway-market-links a,.licence-terms-grid>article){border:1px solid var(--sw-theme-border)!important;border-top:3px solid var(--sw-theme-accent)!important;background:linear-gradient(145deg,var(--sw-theme-surface2),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-card-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(.pathway-licence-card article,.licensed-products a,.pathway-market-links a,.licence-terms-grid>article) :is(strong,h2,h3,h4,span,p,small){color:inherit!important}

/* Fields, tables and buttons use the same semantic surfaces. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(input,select,textarea){border:1px solid var(--sw-theme-border)!important;border-radius:8px!important;background:var(--sw-theme-field)!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(input,select,textarea):focus{border-color:var(--sw-theme-border-strong)!important;outline:2px solid color-mix(in srgb,var(--sw-theme-accent) 20%,transparent)!important;outline-offset:1px}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content button:not(:disabled):not(.view-tab):not(.nav-link){border-color:var(--sw-theme-border)!important;background:linear-gradient(145deg,var(--sw-theme-control),var(--sw-theme-surface2))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content button:not(:disabled):not(.view-tab):not(.nav-link):hover{border-color:var(--sw-theme-border-strong)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 14%,var(--sw-theme-control)),var(--sw-theme-control))!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(button.primary,.primary-button,[type="submit"],.button.primary){border-color:transparent!important;background:linear-gradient(135deg,var(--sw-theme-accent2),var(--sw-theme-accent))!important;color:#fff!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(table,.work-table){border-color:var(--sw-theme-border)!important;background:var(--sw-theme-surface)!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content th{background:var(--sw-theme-surface3)!important;color:var(--sw-theme-text)!important;border-color:var(--sw-theme-border)!important}

/* Pathway hero and cards: mode-safe foreground and background pairs. */
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway235-banner{background:radial-gradient(circle at 88% 18%,color-mix(in srgb,var(--sw-theme-accent) 22%,transparent),transparent 24rem),linear-gradient(120deg,var(--sw-theme-surface),var(--sw-theme-surface2))!important;border-color:var(--sw-theme-border)!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway235-banner :is(h1,h2,h3,h4,p,span,strong,em){color:inherit!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card{border-color:var(--sw-theme-border)!important;border-top:3px solid var(--sw-theme-accent)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 12%,var(--sw-theme-surface2)),var(--sw-theme-surface) 62%)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-card-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card progress{accent-color:var(--sw-theme-accent)!important;background:color-mix(in srgb,var(--sw-theme-accent) 12%,var(--sw-theme-surface))!important}

/* Forge: legacy rules below #pageContent carry ID specificity. These selectors
   deliberately meet that boundary so the chosen palette reaches the actual
   workbench, without changing Forge Current or any layout property. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge-overview01{border:1px solid var(--sw-theme-border-strong)!important;background:radial-gradient(circle at 88% 16%,color-mix(in srgb,var(--sw-theme-accent) 22%,transparent),transparent 24rem),linear-gradient(118deg,var(--sw-theme-surface),var(--sw-theme-surface2))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge209-grid>article{position:relative;overflow:hidden;border:1px solid var(--sw-theme-border)!important;border-top:3px solid var(--sw-theme-accent)!important;border-radius:var(--sw-theme-radius)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 12%,var(--sw-theme-surface2)),var(--sw-theme-surface) 68%)!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-card-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView>.module-workbench{border:1px solid var(--sw-theme-border-strong)!important;border-top:3px solid var(--sw-theme-accent)!important;border-radius:var(--sw-theme-radius)!important;background:linear-gradient(150deg,var(--sw-theme-surface),var(--sw-theme-surface2))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView #specialWorkspace{background:radial-gradient(circle at 92% 8%,color-mix(in srgb,var(--sw-theme-accent) 13%,transparent),transparent 28rem),linear-gradient(155deg,var(--sw-theme-canvas2),var(--sw-theme-canvas))!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView #specialWorkspace>section:not(.r65-builder-body):not(.sig226-sheet),
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(.forge209-section,.forge209-user,.forge209-metrics>article,.forge210-step,.forge210-modules,.forge210-module-grid>article,.forge211-storage,.forge218-backup,.forge218-industry,.forge221-config,.forge222-purpose,.forge223-import,.forge226-profile-bar,.forge226-sector-layout,.forge227-repository form,.forge227-revisions>article,.forge267-pack-link,.r57-pack-grid>article,.f272-card,.f272-panel,.forge-batch01-panel,.forge216-panel,.office-form,.office-controls199,.office-format200,.branding-editor,.branding-preview,.report-governance,.studio-layout,.replace-workspace,.source-mapping-editor){border:1px solid var(--sw-theme-border)!important;border-radius:var(--sw-theme-radius)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 8%,var(--sw-theme-surface2)),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),var(--sw-theme-card-shadow)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(.r57-pack-grid>article,.forge209-user,.forge209-metrics>article,.forge210-module-grid>article,.f272-card,.f272-panel){position:relative;overflow:hidden;border-top:3px solid var(--sw-theme-accent)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 13%,var(--sw-theme-surface2)),var(--sw-theme-surface) 68%)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article h4{border-color:var(--sw-theme-border-strong)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sw-theme-highlight) 48%,transparent)!important;font-weight:850!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(h1,h2,h3,h4,h5,strong,legend,summary,label){color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(p,small,.muted,.help-text){color:var(--sw-theme-muted)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(input,select,textarea){border:1px solid var(--sw-theme-border)!important;background:var(--sw-theme-field)!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(input,select,textarea):focus{border-color:var(--sw-theme-border-strong)!important;outline:2px solid color-mix(in srgb,var(--sw-theme-accent) 20%,transparent)!important;outline-offset:1px}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView button:not(:disabled):not(.view-tab):not(.nav-link){border-color:var(--sw-theme-border)!important;background:linear-gradient(145deg,var(--sw-theme-control),var(--sw-theme-surface2))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 1px var(--sw-theme-highlight)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView button:not(:disabled):not(.view-tab):not(.nav-link):hover{border-color:var(--sw-theme-border-strong)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 15%,var(--sw-theme-control)),var(--sw-theme-control))!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(button.primary,.primary-button,[type="submit"],.button.primary){border-color:transparent!important;background:linear-gradient(135deg,var(--sw-theme-accent2),var(--sw-theme-accent))!important;color:#fff!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(table,.work-table){border-color:var(--sw-theme-border)!important;background:var(--sw-theme-surface)!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView th{border-color:var(--sw-theme-border)!important;background:var(--sw-theme-surface3)!important;color:var(--sw-theme-text)!important}

/* Document Signing uses the semantic surround and controls; PDF paper is an
   invariant output preview and remains white. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"])[data-forge268="signature-engine"] body[data-portal="forge"] #pageContent #moduleView #specialWorkspace :is(.sig226,.sig226-palette,.sig226-selection,.sig226-page-nav,.sig270-group){border-color:var(--sw-theme-border)!important;background:linear-gradient(145deg,var(--sw-theme-surface2),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"])[data-forge268="signature-engine"] body[data-portal="forge"] #pageContent #moduleView #specialWorkspace :is(.sig270-tool,.sig226-toolbar button){border-color:var(--sw-theme-border)!important;background:var(--sw-theme-surface2)!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"])[data-forge268="signature-engine"] body[data-portal="forge"] #pageContent #moduleView #specialWorkspace .sig226-sheet{background:#fff!important;color:#173d58!important}

/* 0.20.287 professional composition -------------------------------------
   A neutral canvas carries selective feature colour. Cards no longer form a
   single wall of tint: primary, secondary and supporting surfaces have
   deliberately different weights, drawn from the supplied reference boards. */
html[data-swiso-palette="british-botanical"]{--sw-theme-canvas:#f3f1eb;--sw-theme-canvas2:#f8f6f1;--sw-theme-surface:#fffefa;--sw-theme-surface2:#ede9e0;--sw-theme-surface3:#dfe7dc;--sw-theme-feature:#0f3d2e;--sw-theme-feature2:#1f6b52;--sw-theme-info:#8ea9c6;--sw-theme-positive:#6b8f7e;--sw-theme-warm:#c9a964;--sw-theme-violet:#80758f;--sw-theme-feature-ink:#fffdf7}
html[data-swiso-palette="executive-emerald"]{--sw-theme-canvas:#f1f4f2;--sw-theme-canvas2:#f8faf9;--sw-theme-surface:#fff;--sw-theme-surface2:#e8efec;--sw-theme-surface3:#d8e3df;--sw-theme-feature:#0f6b46;--sw-theme-feature2:#087f67;--sw-theme-info:#3b82f6;--sw-theme-positive:#14a38f;--sw-theme-warm:#f59e0b;--sw-theme-violet:#7357c7;--sw-theme-feature-ink:#fff}
html[data-swiso-palette="mineral-glass"]{--sw-theme-canvas:#eef2f5;--sw-theme-canvas2:#f7f9fb;--sw-theme-surface:#fff;--sw-theme-surface2:#e6edf2;--sw-theme-surface3:#d6e1e8;--sw-theme-feature:#0f2a44;--sw-theme-feature2:#236f8c;--sw-theme-info:#2e7dd7;--sw-theme-positive:#0e7f67;--sw-theme-warm:#f59e0b;--sw-theme-violet:#885cf6;--sw-theme-feature-ink:#fff}
html[data-theme="dark"][data-swiso-palette="british-botanical"]{--sw-theme-feature:#315f4e;--sw-theme-feature2:#47816a;--sw-theme-info:#8ea9c6;--sw-theme-positive:#78a391;--sw-theme-warm:#d1ad69;--sw-theme-violet:#a69ab4;--sw-theme-feature-ink:#f7fbf8}
html[data-theme="dark"][data-swiso-palette="executive-emerald"]{--sw-theme-feature:#176247;--sw-theme-feature2:#238269;--sw-theme-info:#6ba2ef;--sw-theme-positive:#45b9a0;--sw-theme-warm:#e3a332;--sw-theme-violet:#9a80df;--sw-theme-feature-ink:#f4fbf8}
html[data-theme="dark"][data-swiso-palette="mineral-glass"]{--sw-theme-feature:#183e59;--sw-theme-feature2:#286b83;--sw-theme-info:#65a2e9;--sw-theme-positive:#41aa90;--sw-theme-warm:#e2a33a;--sw-theme-violet:#aa8aec;--sw-theme-feature-ink:#f5f9fc}

/* Forge owns a distinct navy/teal patterned control bar; Pathway stays green. */
html[data-swiso-canonical-shell="r65"] body[data-portal="forge"] .unified-header127>header.topbar.r65-shell-owner{background-color:#123c57!important;background-image:radial-gradient(circle at 82% -70%,rgba(102,206,204,.34),transparent 42%),repeating-linear-gradient(132deg,rgba(255,255,255,.035) 0 1px,transparent 1px 18px),linear-gradient(102deg,#102f4b,#14566b 58%,#147c7b)!important;border-bottom:1px solid rgba(255,255,255,.2)!important;box-shadow:0 9px 26px rgba(8,38,57,.23)!important}
html[data-swiso-canonical-shell="r65"] body[data-portal="pathway"] .unified-header127>header.topbar.r65-shell-owner{background-color:#08756f!important;background-image:radial-gradient(circle at 82% -70%,rgba(139,232,200,.24),transparent 40%),linear-gradient(96deg,#075a63,#087c78 55%,#087078)!important}
body[data-portal="forge"] .portal-masthead.r65-shell-owner{background-image:radial-gradient(circle at 88% 0,rgba(103,210,204,.24),transparent 36%),repeating-linear-gradient(128deg,rgba(255,255,255,.028) 0 1px,transparent 1px 22px),linear-gradient(118deg,#12344f,#156274 60%,#1c8585)!important}

/* Quietly textured canvas with white breathing space. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body[data-swiso-universal-shell="r65"] .workspace{background:radial-gradient(circle at 90% 4%,color-mix(in srgb,var(--sw-theme-info) 10%,transparent),transparent 28rem),radial-gradient(circle at 8% 92%,color-mix(in srgb,var(--sw-theme-positive) 8%,transparent),transparent 30rem),linear-gradient(150deg,var(--sw-theme-canvas),var(--sw-theme-canvas2))!important}

/* Pathway: one composed feature banner, restrained white cards and varied
   accents instead of colouring every complete panel. */
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway235-banner{position:relative;overflow:hidden;background:radial-gradient(circle at 86% 10%,color-mix(in srgb,var(--sw-theme-info) 38%,transparent),transparent 19rem),repeating-linear-gradient(132deg,rgba(255,255,255,.035) 0 1px,transparent 1px 24px),linear-gradient(118deg,var(--sw-theme-feature),var(--sw-theme-feature2))!important;border-color:color-mix(in srgb,var(--sw-theme-feature2) 72%,var(--sw-theme-border))!important;color:var(--sw-theme-feature-ink)!important;box-shadow:0 16px 34px color-mix(in srgb,var(--sw-theme-feature) 22%,transparent)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway235-banner :is(h1,h2,h3,h4,p,span,strong,em){color:inherit!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card{border:1px solid var(--sw-theme-border)!important;border-top:3px solid var(--sw-theme-accent)!important;background:linear-gradient(150deg,var(--sw-theme-surface),color-mix(in srgb,var(--sw-theme-surface2) 48%,var(--sw-theme-surface)))!important;box-shadow:inset 0 1px var(--sw-theme-highlight),0 8px 20px color-mix(in srgb,var(--sw-theme-feature) 10%,transparent)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card:nth-child(3n+2){border-top-color:var(--sw-theme-info)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card:nth-child(3n){border-top-color:var(--sw-theme-warm)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card{background:linear-gradient(135deg,var(--sw-theme-surface),color-mix(in srgb,var(--sw-theme-info) 7%,var(--sw-theme-surface)))!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card article{border-top-width:1px!important;background:var(--sw-theme-surface)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card article:first-child{border-left:4px solid var(--sw-theme-accent)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--sw-theme-positive) 12%,var(--sw-theme-surface)),var(--sw-theme-surface))!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card article:nth-child(2){border-left:4px solid var(--sw-theme-positive)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .pathway-licence-card article:nth-child(3){border-left:4px solid var(--sw-theme-info)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--sw-theme-info) 10%,var(--sw-theme-surface)),var(--sw-theme-surface))!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .licensed-products a{border-top-width:1px!important;background:var(--sw-theme-surface)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .licensed-products a:nth-child(4n+1){border-left:3px solid var(--sw-theme-accent)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .licensed-products a:nth-child(4n+2){border-left:3px solid var(--sw-theme-info)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .licensed-products a:nth-child(4n+3){border-left:3px solid var(--sw-theme-violet)!important}
html[data-swiso-palette]:not([data-swiso-palette="pathway-current"]) body[data-portal="pathway"] .swiso-runtime-content .licensed-products a:nth-child(4n){border-left:3px solid var(--sw-theme-warm)!important}

/* Forge: rich feature heading, neutral workbench and individually articulated
   cards. These rules deliberately exceed the legacy ID selector boundary. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge-overview01{background:radial-gradient(circle at 86% 14%,color-mix(in srgb,var(--sw-theme-info) 34%,transparent),transparent 21rem),repeating-linear-gradient(132deg,rgba(255,255,255,.035) 0 1px,transparent 1px 24px),linear-gradient(118deg,var(--sw-theme-feature),var(--sw-theme-feature2))!important;border-color:var(--sw-theme-feature2)!important;color:var(--sw-theme-feature-ink)!important;box-shadow:0 16px 36px color-mix(in srgb,var(--sw-theme-feature) 24%,transparent)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge-overview01>:not(.forge209-grid),html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge-overview01>:not(.forge209-grid) *{color:var(--sw-theme-feature-ink)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge209-grid>article{border:1px solid color-mix(in srgb,var(--sw-theme-feature-ink) 20%,transparent)!important;border-top:3px solid var(--sw-theme-positive)!important;background:color-mix(in srgb,var(--sw-theme-surface) 94%,transparent)!important;color:var(--sw-theme-text)!important;box-shadow:0 8px 22px rgba(2,25,35,.16),inset 0 1px rgba(255,255,255,.74)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge209-grid>article:nth-child(3n+2){border-top-color:var(--sw-theme-info)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #managementView .forge209-grid>article:nth-child(3n){border-top-color:var(--sw-theme-warm)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView>.module-workbench{border-color:var(--sw-theme-border)!important;border-top:3px solid var(--sw-theme-feature2)!important;background:linear-gradient(150deg,var(--sw-theme-surface),color-mix(in srgb,var(--sw-theme-canvas2) 56%,var(--sw-theme-surface)))!important;box-shadow:0 15px 34px color-mix(in srgb,var(--sw-theme-feature) 12%,transparent),inset 0 1px var(--sw-theme-highlight)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView #specialWorkspace>section:not(.r65-builder-body):not(.sig226-sheet),html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView :is(.forge209-section,.forge210-step,.forge210-modules,.forge211-storage,.forge218-backup,.forge218-industry,.forge221-config,.forge222-purpose,.forge223-import,.forge226-profile-bar,.forge226-sector-layout,.forge227-repository form,.forge-batch01-panel,.forge216-panel,.office-form,.office-controls199,.office-format200,.branding-editor,.branding-preview,.report-governance,.studio-layout,.replace-workspace,.source-mapping-editor){background:var(--sw-theme-surface)!important;border-color:var(--sw-theme-border)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),0 7px 18px color-mix(in srgb,var(--sw-theme-feature) 9%,transparent)!important}

/* Pack Library: remove the wall of colour. White cards carry varied restrained
   accents and a faint corner wash; actions remain legible and purposeful. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article,html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .f272-card{--card-accent:var(--sw-theme-accent);border:1px solid var(--sw-theme-border)!important;border-top:3px solid var(--card-accent)!important;background:radial-gradient(circle at 104% -10%,color-mix(in srgb,var(--card-accent) 14%,transparent),transparent 10rem),var(--sw-theme-surface)!important;box-shadow:inset 0 1px var(--sw-theme-highlight),0 7px 18px color-mix(in srgb,var(--sw-theme-feature) 10%,transparent)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article:nth-child(4n+2),html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .f272-card:nth-child(4n+2){--card-accent:var(--sw-theme-info)}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article:nth-child(4n+3),html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .f272-card:nth-child(4n+3){--card-accent:var(--sw-theme-violet)}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article:nth-child(4n),html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .f272-card:nth-child(4n){--card-accent:var(--sw-theme-warm)}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article :is(h3,h4),html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .f272-card :is(h3,h4){padding-bottom:8px!important;border-bottom:1px solid color-mix(in srgb,var(--card-accent) 30%,var(--sw-theme-border))!important;color:var(--sw-theme-text)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>article button,html[data-swiso-palette]:not([data-swiso-palette="forge-current"]) body[data-portal="forge"] #pageContent #moduleView .f272-card button{border-color:color-mix(in srgb,var(--card-accent) 38%,var(--sw-theme-border))!important;background:linear-gradient(145deg,color-mix(in srgb,var(--card-accent) 9%,var(--sw-theme-surface)),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important}

/* Tabs, navigation states and existing icon holders receive concise colour
   cues without changing their layout or replacing their icons. */
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(.view-tab,.r65-tabs button,.workspace-tab){border-color:var(--sw-theme-border)!important;background:var(--sw-theme-surface)!important;color:var(--sw-theme-muted)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(.view-tab,.r65-tabs button,.workspace-tab):is(.active,[aria-selected="true"]){border-color:var(--sw-theme-border-strong)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--sw-theme-accent) 16%,var(--sw-theme-surface)),var(--sw-theme-surface))!important;color:var(--sw-theme-text)!important;box-shadow:inset 0 -2px var(--sw-theme-accent)!important}
html[data-swiso-palette]:not([data-swiso-palette="forge-current"]):not([data-swiso-palette="pathway-current"]) body .swiso-runtime-content :is(.workspace-head-icon,.nav-section-icon,.view-context-icon,.forge-overview01-icon,.metric-icon,.glyph){border-color:color-mix(in srgb,var(--sw-theme-accent) 28%,var(--sw-theme-border))!important;background:linear-gradient(145deg,color-mix(in srgb,var(--sw-theme-accent) 16%,var(--sw-theme-surface)),var(--sw-theme-surface))!important;color:var(--sw-theme-accent)!important;box-shadow:inset 0 1px var(--sw-theme-highlight)!important}

/* Default themes preserve layout and typography while correcting their known
   dark-mode contrast defects. */
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway235-banner{background:linear-gradient(120deg,#173941,#1d4d55)!important;border-color:#315c62!important;color:#eef8f5!important}
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway235-banner :is(h1,h2,h3,h4,p,span,strong,em){color:inherit!important}
html[data-theme="dark"][data-swiso-palette="forge-current"] body[data-portal="forge"] .sidebar .nav-group .nav-link.active{border-color:#337b82!important;background:linear-gradient(90deg,#17414a,#12323c)!important;color:#f1fbfb!important;box-shadow:inset 3px 0 #48c1b8!important}

/* Forge spacing matches the compact Pathway relationship. */
body[data-portal="forge"] .portal-masthead+.workspace-nav{margin-top:6px!important;margin-bottom:14px!important}

/* 0.20.287 finishing pass ------------------------------------------------
   Adds the small-scale hierarchy requested after live 0.20.285 review. */

/* Workspace controls are related, but no longer read as one flat strip. */
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner #sidebarToggle167{background:linear-gradient(145deg,rgba(71,166,189,.28),rgba(255,255,255,.08))!important;border-color:rgba(148,220,231,.46)!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner #headerToggle167{background:linear-gradient(145deg,rgba(84,174,139,.27),rgba(255,255,255,.08))!important;border-color:rgba(157,224,195,.44)!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner #fullWorkspace167{background:linear-gradient(145deg,rgba(196,157,81,.25),rgba(255,255,255,.08))!important;border-color:rgba(231,204,145,.43)!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner :is(#sidebarToggle167,#headerToggle167,#fullWorkspace167){box-shadow:inset 0 1px rgba(255,255,255,.13)!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286 [data-quick-mode286="light"].selected{background:#fff!important;color:#172d3d!important;box-shadow:inset 0 -2px #d1aa5e!important}
html[data-swiso-canonical-shell="r65"] body .unified-header127>header.topbar.r65-shell-owner .mode-toggle286 [data-quick-mode286="dark"].selected{background:#102b3e!important;color:#fff!important;box-shadow:inset 0 -2px #61c8bf!important}

/* Pathway Default receives the same professional hierarchy as the optional
   palettes while retaining its established green identity. */
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .workspace{background:radial-gradient(circle at 92% 4%,rgba(36,151,143,.1),transparent 27rem),radial-gradient(circle at 7% 92%,rgba(61,121,169,.07),transparent 28rem),linear-gradient(150deg,#f4f8f8,#edf4f6)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .overview-heading170{border:1px solid #b7d6d3!important;border-left:4px solid #168f7c!important;background:linear-gradient(115deg,#fff,#edf7f5 62%,#eef5f8)!important;box-shadow:0 8px 22px rgba(18,84,91,.09)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card{--p286-accent:#148d78;border:1px solid #c6dcdf!important;border-top:3px solid var(--p286-accent)!important;background:radial-gradient(circle at 105% -15%,color-mix(in srgb,var(--p286-accent) 10%,transparent),transparent 9rem),#fff!important;box-shadow:0 7px 18px rgba(18,68,83,.09),inset 0 1px #fff!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card:nth-child(4n+2){--p286-accent:#4b83b2}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card:nth-child(4n+3){--p286-accent:#7968aa}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card:nth-child(4n){--p286-accent:#bd8d3e}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card progress{accent-color:var(--p286-accent)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-products,.pathway-market-links,.licence-terms-grid){border:1px solid #bfd8d6!important;border-radius:13px!important;background:linear-gradient(145deg,#fbfdfd,#eef7f5)!important;box-shadow:0 9px 24px rgba(15,72,78,.1)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licensed-product-grid>a{--p286-accent:#148d78;border:1px solid #ccdde1!important;border-left:3px solid var(--p286-accent)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--p286-accent) 7%,#fff),#fff 44%)!important;box-shadow:0 4px 11px rgba(18,68,83,.07)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licensed-product-grid>a:nth-child(4n+2){--p286-accent:#4b83b2}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licensed-product-grid>a:nth-child(4n+3){--p286-accent:#7968aa}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licensed-product-grid>a:nth-child(4n){--p286-accent:#bd8d3e}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licensed-product-grid>a img{width:22px!important;height:22px!important;object-fit:contain}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-market-links a{border-left:3px solid #4b83b2!important;background:linear-gradient(135deg,#f2f7fc,#fff 48%)!important;box-shadow:0 4px 11px rgba(18,68,83,.07)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licence-terms-grid>article{--p286-accent:#148d78;border:1px solid #ccdde1!important;border-top:3px solid var(--p286-accent)!important;background:linear-gradient(150deg,color-mix(in srgb,var(--p286-accent) 6%,#fff),#fff 46%)!important;box-shadow:0 7px 18px rgba(18,68,83,.08)!important}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licence-terms-grid>article:nth-child(3n+2){--p286-accent:#4b83b2}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .licence-terms-grid>article:nth-child(3n){--p286-accent:#bd8d3e}

/* Forge Current keeps the successful Pack Library composition, but adds
   smaller-scale structure and removes the dark sidebar's pale edge wedges. */
html[data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card{--p286-pack:#278895;border:1px solid #a6c6d5!important;border-top:3px solid var(--p286-pack)!important;background:radial-gradient(circle at 103% -12%,color-mix(in srgb,var(--p286-pack) 10%,transparent),transparent 9rem),rgba(255,255,255,.94)!important;box-shadow:0 7px 18px rgba(20,58,81,.09),inset 0 1px #fff!important}
html[data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card:nth-child(4n+2){--p286-pack:#4b83b2}
html[data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card:nth-child(4n+3){--p286-pack:#278f79}
html[data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card:nth-child(4n){--p286-pack:#a57cbb}
html[data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card h4{border:1px solid color-mix(in srgb,var(--p286-pack) 42%,#c8d9df)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--p286-pack) 9%,#fff),#fff)!important;box-shadow:inset 0 1px #fff!important}
html[data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card button{border-color:color-mix(in srgb,var(--p286-pack) 35%,#c5d8df)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--p286-pack) 7%,#f5f9fa),#f7fafb)!important}
html[data-theme="dark"][data-swiso-palette="forge-current"] body[data-portal="forge"] .sidebar .nav-group{background:transparent!important}
html[data-theme="dark"][data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card{border-color:color-mix(in srgb,var(--p286-pack) 42%,#3c6472)!important;background:radial-gradient(circle at 103% -12%,color-mix(in srgb,var(--p286-pack) 18%,transparent),transparent 9rem),#132f3d!important;box-shadow:0 8px 20px rgba(0,12,20,.22)!important}
html[data-theme="dark"][data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card h4{border-color:color-mix(in srgb,var(--p286-pack) 48%,#4d6f7d)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--p286-pack) 24%,#183747),#183747)!important;color:#f1f7f8!important;box-shadow:none!important}
html[data-theme="dark"][data-swiso-palette="forge-current"] body[data-portal="forge"] #pageContent #moduleView .f272-card button{border-color:color-mix(in srgb,var(--p286-pack) 44%,#496d7a)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--p286-pack) 16%,#1d4352),#1d4352)!important;color:#eff7f8!important}

/* Bring icon furniture back into scale with the text and controls. */
body[data-portal="forge"] #pageContent #managementView .forge209-grid>article :is(.forge-overview01-icon,.metric-icon,.glyph),body[data-portal="forge"] #pageContent #moduleView :is(.workspace-head-icon,.view-context-icon){width:28px!important;height:28px!important;min-width:28px!important;font-size:.86rem!important}
body[data-portal="forge"] .sidebar :is(.nav-icon,.nav-section-icon){width:22px!important;height:22px!important;min-width:22px!important;font-size:.76rem!important}

/* Pathway dark mode retains contrast with the new layered surfaces. */
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .workspace{background:radial-gradient(circle at 92% 4%,rgba(50,151,143,.12),transparent 26rem),linear-gradient(150deg,#0b2028,#102a33)!important}
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .overview-heading170{border-color:#315c62!important;background:linear-gradient(120deg,#173941,#132f38)!important;box-shadow:0 10px 25px rgba(0,12,18,.28)!important}
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card{border-color:#315763!important;background:radial-gradient(circle at 105% -15%,color-mix(in srgb,var(--p286-accent) 15%,transparent),transparent 9rem),#132f38!important;color:#eef7f6!important;box-shadow:0 8px 19px rgba(0,12,18,.25)!important}
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-products,.pathway-market-links,.licence-terms-grid){border-color:#315b62!important;background:linear-gradient(145deg,#132f38,#102a33)!important;box-shadow:0 10px 24px rgba(0,12,18,.28)!important}
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-product-grid>a,.pathway-market-links a,.licence-terms-grid>article){border-color:#345d66!important;background:linear-gradient(145deg,color-mix(in srgb,var(--p286-accent,#278f79) 12%,#173741),#142f38 48%)!important;color:#edf7f5!important;box-shadow:0 6px 15px rgba(0,12,18,.22)!important}
html[data-theme="dark"][data-swiso-palette="pathway-current"] body[data-portal="pathway"] .swiso-runtime-content :is(.licensed-product-grid>a,.pathway-market-links a,.licence-terms-grid>article) :is(strong,span,p,small,h2,h3,h4){color:inherit!important}

@media(max-width:1050px){.theme-grid276.has-forge{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-control276 [data-theme286-trigger]>span{display:none}}
@media(max-width:820px){.mode-toggle286{display:none!important}}
@media(max-width:720px){.theme-grid276,.theme-grid276.has-forge,.theme-settings276{grid-template-columns:1fr}.theme-dialog276 footer{align-items:stretch;flex-direction:column}.theme-control276 [data-theme286-trigger]>strong{max-width:88px}}

/* 0.20.287 compact professional hierarchy --------------------------------
   Live inspection of 0.20.286 found that inherited 16px controls were
   stretching Pack Library cards to 407px, Users cards to 287px and ordinary
   source inputs to nearly 69px. These rules restore the intended 13px
   workspace rhythm and give actions distinct, restrained visual roles. */

/* Pack Library: compact cards, quiet detail link, strong builder action and
   a clearly separate download action. */
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid{align-items:start!important;gap:10px!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack{height:auto!important;min-height:0!important;padding:11px!important;gap:7px!important;align-self:start!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>span:first-child{width:max-content;max-width:100%;padding:3px 7px;border:1px solid color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 32%,transparent);border-radius:999px;background:color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 9%,transparent);font-size:10px!important;line-height:1.2!important;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack h4{min-height:0!important;margin:0!important;padding:7px 8px!important;font-size:14px!important;line-height:1.25!important;border-radius:7px!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>p{min-height:0!important;height:auto!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.38!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>p:last-of-type{padding-top:6px!important;border-top:1px solid color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 20%,transparent)!important;font-size:11px!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;margin-top:2px!important;padding:7px 0 0!important;border-top:1px solid color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 18%,transparent)!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer button{width:100%!important;height:auto!important;min-height:30px!important;padding:5px 8px!important;font-size:11px!important;line-height:1.25!important;font-weight:800!important;border-radius:7px!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer .forge239-details{grid-column:1/-1;width:max-content!important;min-height:24px!important;padding:2px 1px!important;border-color:transparent!important;background:transparent!important;color:var(--p286-pack,var(--card-accent,#278895))!important;box-shadow:none!important;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer button[data-use]{border-color:color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 68%,#143b55)!important;background:linear-gradient(135deg,#163f59,color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 72%,#1b5363))!important;color:#fff!important;box-shadow:0 4px 10px color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 20%,transparent)!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer button[data-download]{border-color:color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 42%,#b9cdd6)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 13%,#f8fbfc),#f8fbfc)!important;color:#164763!important}
body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer button[data-download]::before{content:'\2193';display:inline-grid;place-items:center;width:15px;height:15px;margin-right:5px;border-radius:50%;background:color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 16%,transparent);font-size:10px}

/* Users: replace tall form-like cards with concise identity rows. */
body[data-portal="forge"] #pageContent #moduleView [data-users]{height:auto!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;align-items:start!important;gap:9px!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;align-items:center!important;gap:4px 9px!important;padding:10px!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user::before{content:'\25C9';grid-column:1;grid-row:1/3;width:28px;height:28px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 38%,transparent);border-radius:9px;background:linear-gradient(145deg,color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 18%,transparent),color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 6%,transparent));color:var(--p286-pack,var(--card-accent,#278895));font-size:13px}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>div:first-of-type{grid-column:2/4;grid-row:1;min-width:0;height:auto!important;padding:0!important;border:0!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>div:first-of-type strong{display:block;font-size:13px!important;line-height:1.25!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>div:first-of-type small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:10.5px!important;line-height:1.3!important;white-space:nowrap}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>div:nth-of-type(2){grid-column:2;grid-row:2;display:flex!important;align-items:center;gap:6px;height:auto!important;font-size:10.5px!important;color:var(--sw-theme-muted,#607482)!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user .f272-status{padding:2px 6px!important;border-radius:999px!important;font-size:9.5px!important;font-weight:850!important;line-height:1.25!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user .f272-status[data-status272="active"]{background:#dff3e9!important;color:#176448!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user .f272-status[data-status272="inactive"]{background:#f4e8e4!important;color:#8b493b!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>small{grid-column:2/4;grid-row:3;height:auto!important;font-size:10.5px!important;line-height:1.3!important;color:var(--sw-theme-muted,#607482)!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>button{grid-column:3;grid-row:2;min-height:27px!important;height:auto!important;padding:4px 8px!important;font-size:10.5px!important;line-height:1.2!important;border-radius:7px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 13%,#f8fbfc),#f8fbfc)!important}
body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>button:disabled{opacity:.72!important;background:color-mix(in srgb,var(--sw-theme-muted,#607482) 9%,transparent)!important}
body[data-portal="forge"] #pageContent #moduleView .forge209-metrics{height:auto!important;gap:9px!important;margin-bottom:10px!important}
body[data-portal="forge"] #pageContent #moduleView .forge209-metrics>.f272-card{height:auto!important;min-height:66px!important;padding:9px 11px!important}
body[data-portal="forge"] #pageContent #moduleView .forge209-metrics>.f272-card span{font-size:9.5px!important;letter-spacing:.055em;text-transform:uppercase}
body[data-portal="forge"] #pageContent #moduleView .forge209-metrics>.f272-card strong{font-size:15px!important;line-height:1.25!important}
body[data-portal="forge"] #pageContent #moduleView .forge209-actions{height:auto!important;grid-template-columns:minmax(220px,1fr) auto auto!important;gap:7px!important}
body[data-portal="forge"] #pageContent #moduleView .forge209-actions :is(input,button,a){min-height:32px!important;height:32px!important;padding:5px 9px!important;font-size:11px!important;line-height:1.2!important}

/* Licence: compact product and module rows with product colour used as a
   cue, not as a solid wall. */
body[data-portal="forge"] #pageContent #moduleView :is(.licensed-products,.forge210-modules,.pathway-licence-card,.pathway-market-links){padding:13px!important}
body[data-portal="forge"] #pageContent #moduleView .licensed-product-grid{gap:8px!important;align-items:start!important}
body[data-portal="forge"] #pageContent #moduleView .licensed-product-grid>a{min-height:54px!important;height:auto!important;padding:8px 9px!important;border-left:3px solid var(--system-tone,var(--p286-pack,#278895))!important;border-top-width:1px!important;background:linear-gradient(105deg,color-mix(in srgb,var(--system-tone,var(--p286-pack,#278895)) 10%,var(--sw-theme-surface,#fff)),var(--sw-theme-surface,#fff) 48%)!important}
body[data-portal="forge"] #pageContent #moduleView .licensed-product-grid>a img{width:24px!important;height:24px!important;object-fit:contain!important}
body[data-portal="forge"] #pageContent #moduleView .licensed-product-grid>a strong{font-size:11.5px!important;line-height:1.2!important}
body[data-portal="forge"] #pageContent #moduleView .licensed-product-grid>a small{font-size:9.5px!important;line-height:1.25!important}
body[data-portal="forge"] #pageContent #moduleView .forge210-module-grid{gap:7px!important}
body[data-portal="forge"] #pageContent #moduleView .forge210-module-grid>.f272-card{height:auto!important;min-height:52px!important;padding:8px 9px!important;border-top-width:1px!important;border-left:3px solid var(--p286-pack,var(--card-accent,#278895))!important}
body[data-portal="forge"] #pageContent #moduleView .forge210-module-grid>.f272-card svg{width:20px!important;height:20px!important;padding:3px;border-radius:7px;background:color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 12%,transparent);color:var(--p286-pack,var(--card-accent,#278895))}
body[data-portal="forge"] #pageContent #moduleView .forge210-module-grid>.f272-card strong{font-size:11px!important;line-height:1.25!important}
body[data-portal="forge"] #pageContent #moduleView .forge210-module-grid>.f272-card small{width:max-content;margin-top:3px;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,#bd8d3e 13%,transparent);color:#79591f!important;font-size:9px!important;line-height:1.2!important}

/* Forge source/editor forms: fixed compact control heights and clearer
   grouped surfaces. The underlying fields and behaviour are untouched. */
body[data-portal="forge"] #pageContent #moduleView .f272-feed .forge209-form{gap:10px!important}
body[data-portal="forge"] #pageContent #moduleView .f272-feed-group{height:auto!important;min-height:0!important;align-content:start!important;align-items:start!important;gap:8px!important;padding:11px!important}
body[data-portal="forge"] #pageContent #moduleView .f272-feed-group legend{width:auto;padding:3px 8px;border:1px solid color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 30%,transparent);border-radius:999px;background:color-mix(in srgb,var(--p286-pack,var(--card-accent,#278895)) 9%,var(--sw-theme-surface,#fff));font-size:10px!important;font-weight:850!important;letter-spacing:.04em}
body[data-portal="forge"] #pageContent #moduleView .f272-feed-group label{min-width:0;font-size:10.5px!important;line-height:1.25!important}
body[data-portal="forge"] #pageContent #moduleView .f272-feed-group label>small{margin-top:3px;font-size:9.5px!important;line-height:1.3!important}
body[data-portal="forge"] #pageContent #moduleView .f272-feed-group label>:is(input,select){height:34px!important;min-height:34px!important;padding:5px 8px!important;font-size:11.5px!important;line-height:1.2!important}
body[data-portal="forge"] #pageContent #moduleView .f272-feed-group label>textarea{height:62px!important;min-height:62px!important;padding:7px 8px!important;font-size:11.5px!important;line-height:1.35!important;resize:vertical}
body[data-portal="forge"] #pageContent #moduleView .f272-feed .forge209-form>fieldset.wide{padding:10px!important;gap:7px!important;font-size:11px!important}

/* Pathway receives the same compact, layered rhythm without changing its
   green identity or established page composition. */
body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card{padding:12px!important;gap:7px!important}
body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card :is(h3,h4,strong){font-size:14px!important;line-height:1.25!important}
body[data-portal="pathway"] .swiso-runtime-content .pathway-overview-card :is(p,small){font-size:11.5px!important;line-height:1.4!important}
body[data-portal="pathway"] .swiso-runtime-content .licensed-product-grid>a{min-height:54px!important;padding:8px 9px!important}
body[data-portal="pathway"] .swiso-runtime-content .licence-terms-grid>article{padding:11px!important}

/* Dark surfaces keep action roles and status chips readable. */
html[data-theme="dark"] body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer button[data-use]{border-color:color-mix(in srgb,var(--p286-pack,var(--card-accent,#66bed5)) 72%,#6b8b98)!important;background:linear-gradient(135deg,#102d40,color-mix(in srgb,var(--p286-pack,var(--card-accent,#66bed5)) 48%,#163b4c))!important;color:#f4fbfc!important}
html[data-theme="dark"] body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer button[data-download],html[data-theme="dark"] body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user>button{background:color-mix(in srgb,var(--p286-pack,var(--card-accent,#66bed5)) 14%,#1c4050)!important;color:#f0f8fa!important}
html[data-theme="dark"] body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user .f272-status[data-status272="active"]{background:#1f5242!important;color:#bcebd7!important}
html[data-theme="dark"] body[data-portal="forge"] #pageContent #moduleView [data-users]>.forge209-user .f272-status[data-status272="inactive"]{background:#58372f!important;color:#f0c6bb!important}
html[data-theme="dark"] body[data-portal="forge"] #pageContent #moduleView .forge210-module-grid>.f272-card small{background:#594b29!important;color:#f1d89b!important}

@media(max-width:760px){body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer{grid-template-columns:1fr!important}body[data-portal="forge"] #pageContent #moduleView .r57-pack-grid>.f272-pack>footer .forge239-details{grid-column:1!important}body[data-portal="forge"] #pageContent #moduleView [data-users]{grid-template-columns:1fr!important}body[data-portal="forge"] #pageContent #moduleView .forge209-actions{grid-template-columns:1fr 1fr!important}body[data-portal="forge"] #pageContent #moduleView .forge209-actions input{grid-column:1/-1}}
