/* SWISO 0.20.289 body legibility and density refinement.
   Exact baseline: installed 0.20.288.
   HEADER LOCK: this file contains no selectors for the top utility bar,
   application masthead, command area, or page-level workspace tabs. */

/* Semantic tokens are attached only to body-content roots and the permitted
   left navigation. They cannot cascade into the protected header. */
html[data-swiso-palette="forge-current"] body[data-portal="forge"] :is(#managementView#managementView,#moduleView#moduleView,.sidebar){
  --v288-canvas:#f3f6f8;--v288-canvas-2:#eaf0f3;--v288-surface:#fff;
  --v288-surface-2:#f7f9fa;--v288-surface-3:#edf3f5;--v288-field:#fff;
  --v288-border:#d4dfe4;--v288-border-strong:#a8bec8;--v288-text:#17354a;
  --v288-muted:#617582;--v288-brand:#176a78;--v288-brand-strong:#123c57;
  --v288-info:#3b82a6;--v288-success:#168060;--v288-warning:#b7791f;
  --v288-violet:#7868a6;--v288-danger:#b94343;--v288-focus:#2b88a4;
  --v288-shadow:0 6px 18px rgba(20,53,72,.08);--v288-shadow-hover:0 10px 25px rgba(20,53,72,.12);
  --v288-radius:10px;--v288-icon-bg:#e4f0f2;--v288-nav:#f8fafb;--v288-nav-active:#e5f1f2
}
html[data-swiso-palette="pathway-current"] body[data-portal="pathway"] :is(#workspace#workspace,.sidebar){
  --v288-canvas:#f3f7f6;--v288-canvas-2:#e9f0ee;--v288-surface:#fff;
  --v288-surface-2:#f7faf9;--v288-surface-3:#edf4f1;--v288-field:#fff;
  --v288-border:#d1dfda;--v288-border-strong:#9fbdb2;--v288-text:#183b34;
  --v288-muted:#60776f;--v288-brand:#0e7f67;--v288-brand-strong:#14544b;
  --v288-info:#3b82a6;--v288-success:#0e7f67;--v288-warning:#b7791f;
  --v288-violet:#7868a6;--v288-danger:#b94343;--v288-focus:#168d78;
  --v288-shadow:0 6px 18px rgba(15,74,61,.08);--v288-shadow-hover:0 10px 25px rgba(15,74,61,.12);
  --v288-radius:10px;--v288-icon-bg:#e1f1eb;--v288-nav:#f7faf9;--v288-nav-active:#e3f2ed
}
html[data-swiso-palette="executive-emerald"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){
  --v288-canvas:#f5f6f4;--v288-canvas-2:#ecefed;--v288-surface:#fff;
  --v288-surface-2:#f8faf8;--v288-surface-3:#edf3ef;--v288-field:#fff;
  --v288-border:#d8dfe6;--v288-border-strong:#aebdb8;--v288-text:#1f2d3d;
  --v288-muted:#64706f;--v288-brand:#0f6b46;--v288-brand-strong:#1f2d3d;
  --v288-info:#3b82f6;--v288-success:#0f6b46;--v288-warning:#b87508;
  --v288-violet:#7561a7;--v288-danger:#c13f3f;--v288-focus:#0f7c56;
  --v288-shadow:0 6px 18px rgba(31,45,61,.08);--v288-shadow-hover:0 10px 25px rgba(31,45,61,.13);
  --v288-radius:9px;--v288-icon-bg:#e3f0e9;--v288-nav:#1f2d3d;--v288-nav-active:#153c31
}
html[data-swiso-palette="british-botanical"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){
  --v288-canvas:#f8f6f2;--v288-canvas-2:#eeebe3;--v288-surface:#fffdfa;
  --v288-surface-2:#faf8f3;--v288-surface-3:#f0ede5;--v288-field:#fffefa;
  --v288-border:#e0ddd4;--v288-border-strong:#b8c4b5;--v288-text:#2e2e2e;
  --v288-muted:#6d746d;--v288-brand:#0f3d2e;--v288-brand-strong:#15352b;
  --v288-info:#6f8eae;--v288-success:#527d6c;--v288-warning:#a47b38;
  --v288-violet:#766b8d;--v288-danger:#a94b43;--v288-focus:#6b8f7e;
  --v288-shadow:0 6px 18px rgba(46,55,45,.08);--v288-shadow-hover:0 10px 25px rgba(46,55,45,.12);
  --v288-radius:10px;--v288-icon-bg:#e7eee7;--v288-nav:#0f3d2e;--v288-nav-active:#235b47
}
html[data-swiso-palette="mineral-glass"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){
  --v288-canvas:#eef2f5;--v288-canvas-2:#e5ebef;--v288-surface:#fff;
  --v288-surface-2:#f7f9fb;--v288-surface-3:#edf2f6;--v288-field:#fff;
  --v288-border:#d7e0e7;--v288-border-strong:#aabac7;--v288-text:#0f2a44;
  --v288-muted:#607286;--v288-brand:#0e7f67;--v288-brand-strong:#0f2a44;
  --v288-info:#2e7dd7;--v288-success:#0e7f67;--v288-warning:#b87508;
  --v288-violet:#7856cb;--v288-danger:#c53b3b;--v288-focus:#2e7dd7;
  --v288-shadow:0 6px 18px rgba(15,42,68,.08);--v288-shadow-hover:0 10px 25px rgba(15,42,68,.13);
  --v288-radius:10px;--v288-icon-bg:#e7f0f7;--v288-nav:#f7f9fb;--v288-nav-active:#e5eef5
}

/* Content canvas. Protected header siblings are deliberately excluded. */
body[data-portal="forge"] :is(#managementView#managementView,#moduleView#moduleView),
body[data-portal="pathway"] #workspace#workspace{
  color:var(--v288-text);background:
  radial-gradient(circle at 95% 8%,color-mix(in srgb,var(--v288-brand) 5%,transparent),transparent 21rem),
  linear-gradient(145deg,var(--v288-canvas),var(--v288-canvas-2));
  font-size:14px;line-height:1.45
}
body[data-portal="forge"] :is(#managementView#managementView,#moduleView#moduleView)>*,
body[data-portal="pathway"] #workspace#workspace>*{position:relative}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(h1,h2,h3,h4,h5,strong,legend,summary,label){color:var(--v288-text)}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) p{color:var(--v288-muted);font-size:14px!important;line-height:1.48!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(small,.muted){color:var(--v288-muted);font-size:12.5px!important;line-height:1.42!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(h1,.page-title){font-size:24px;line-height:1.2}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) h2{font-size:21px;line-height:1.25}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) h3{font-size:17px;line-height:1.3}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) h4{font-size:15.5px;line-height:1.32}

/* Permitted left navigation refinement. */
body[data-portal] .sidebar{background:var(--v288-nav)!important;border-right:1px solid var(--v288-border)!important;color:var(--v288-text)!important;box-shadow:5px 0 18px rgba(18,42,56,.045)!important}
body[data-portal] .sidebar :is(.nav-group-title,.nav-label,.nav-link,.nav-icon,.sidebar-foot,.sidebar-foot strong,.workspace-head-top strong){color:inherit!important}
body[data-portal] .sidebar .nav-group{margin:4px 7px!important;padding:0!important;border:0!important;background:transparent!important}
body[data-portal] .sidebar .nav-group-title{min-height:31px!important;padding:7px 9px!important;border-bottom:1px solid color-mix(in srgb,var(--v288-border) 75%,transparent)!important;font-size:10px!important;font-weight:850!important;letter-spacing:.055em!important;text-transform:uppercase}
body[data-portal] .sidebar .nav-link{min-height:34px!important;margin:3px 0!important;padding:6px 9px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;font-size:11.5px!important;transition:background .15s,border-color .15s,transform .15s!important}
body[data-portal] .sidebar .nav-link:hover{border-color:var(--v288-border)!important;background:color-mix(in srgb,var(--v288-surface) 72%,transparent)!important;transform:translateX(1px)}
body[data-portal] .sidebar .nav-link.active{border-color:color-mix(in srgb,var(--v288-brand) 28%,var(--v288-border))!important;background:var(--v288-nav-active)!important;color:var(--v288-text)!important;box-shadow:inset 3px 0 var(--v288-brand)!important}
body[data-portal] .sidebar :is(.nav-icon,.nav-section-icon){width:22px!important;height:22px!important;min-width:22px!important;border-radius:7px!important;background:color-mix(in srgb,var(--v288-brand) 9%,transparent)!important;color:var(--v288-brand)!important;font-size:11px!important}

/* Shared premium surfaces. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(
  .panel,.dashboard-panel,.metric,.r65-surface,.management-note,
  .pathway-overview-card,.pathway-summary-meter,.pathway-summary-list>article,
  .pathway-help-note,.pathway-settings-form,.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,.forge216-panel,.office-form,.office-controls199,
  .branding-editor,.branding-preview,.report-governance,.studio-layout,
  .replace-workspace,.source-mapping-editor){
  border:1px solid var(--v288-border)!important;border-radius:var(--v288-radius)!important;
  background:var(--v288-surface)!important;color:var(--v288-text)!important;
  box-shadow:var(--v288-shadow)!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article,.guidance-grid>article){
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article,.guidance-grid>article):hover{
  border-color:var(--v288-border-strong)!important;box-shadow:var(--v288-shadow-hover)!important
}

/* Restrained personality: one accent edge per card, neutral interiors. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article){
  --v288-card:var(--v288-brand);position:relative;overflow:hidden
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article)::after{
  content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--v288-card);opacity:.78;pointer-events:none
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article):nth-child(4n+2){--v288-card:var(--v288-info)}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article):nth-child(4n+3){--v288-card:var(--v288-success)}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.pathway-overview-card,.forge209-grid>article):nth-child(4n){--v288-card:var(--v288-warning)}

/* Compact icon system. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.forge-overview01-icon,.metric-icon,.workspace-head-icon,.view-context-icon,.glyph){
  width:28px!important;height:28px!important;min-width:28px!important;display:inline-grid!important;place-items:center!important;
  border:1px solid color-mix(in srgb,var(--v288-card,var(--v288-brand)) 18%,var(--v288-border))!important;
  border-radius:8px!important;background:color-mix(in srgb,var(--v288-card,var(--v288-brand)) 9%,var(--v288-surface))!important;
  color:var(--v288-card,var(--v288-brand))!important;font-size:13px!important;box-shadow:none!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.forge-overview01-icon,.metric-icon,.workspace-head-icon,.view-context-icon,.glyph) svg{width:16px!important;height:16px!important}

/* Buttons and action hierarchy. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) button,
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) a.secondary{
  min-height:34px!important;padding:7px 11px!important;border:1px solid var(--v288-border-strong);border-radius:8px;
  background:var(--v288-surface);color:var(--v288-text);font:inherit;font-size:13px!important;font-weight:750;
  box-shadow:0 1px 2px rgba(20,45,60,.05);transition:background .15s,border-color .15s,box-shadow .15s,transform .15s
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) button:not(:disabled):hover,
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) a.secondary:hover{border-color:var(--v288-brand);background:var(--v288-surface-3);box-shadow:0 4px 11px rgba(20,45,60,.09);transform:translateY(-1px)}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(button.primary,button[data-save],button[data-add],.primary){
  border-color:var(--v288-brand)!important;background:var(--v288-brand)!important;color:#fff!important;
  box-shadow:0 4px 11px color-mix(in srgb,var(--v288-brand) 20%,transparent)!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(button.secondary,a.secondary){
  border-color:color-mix(in srgb,var(--v288-brand) 28%,var(--v288-border))!important;
  background:color-mix(in srgb,var(--v288-brand) 5%,var(--v288-surface))!important;color:var(--v288-text)!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) button:disabled{opacity:.55!important;box-shadow:none!important;transform:none!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) button:focus-visible,
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) a:focus-visible{outline:2px solid color-mix(in srgb,var(--v288-focus) 50%,transparent)!important;outline-offset:2px!important}

/* Fields and grouped forms. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  border:1px solid var(--v288-border-strong)!important;border-radius:7px!important;background:var(--v288-field)!important;
  color:var(--v288-text)!important;box-shadow:inset 0 1px 2px rgba(20,45,60,.035)!important;font:inherit!important;font-size:13.5px!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(input:not([type="checkbox"]):not([type="radio"]),select){height:34px!important;min-height:34px!important;padding:6px 9px!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) textarea{min-height:66px!important;padding:7px 9px!important;line-height:1.4!important;resize:vertical}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(input,select,textarea):focus{border-color:var(--v288-focus)!important;outline:2px solid color-mix(in srgb,var(--v288-focus) 18%,transparent)!important;outline-offset:1px!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) fieldset{
  min-width:0;border:1px solid var(--v288-border)!important;border-radius:var(--v288-radius)!important;
  background:var(--v288-surface)!important;box-shadow:var(--v288-shadow)!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) fieldset legend{
  padding:3px 8px!important;border-radius:999px;background:var(--v288-surface-3)!important;
  color:var(--v288-brand)!important;font-size:13px!important;font-weight:850!important;letter-spacing:.025em
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) fieldset label{font-size:13.5px!important;line-height:1.4!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) fieldset label small{font-size:12.5px!important;line-height:1.4!important}

/* Neutral enterprise tables and registers. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.register-frame,.table-wrap,.table-shell){
  overflow:auto;border:1px solid var(--v288-border)!important;border-radius:var(--v288-radius)!important;background:var(--v288-surface)!important;box-shadow:var(--v288-shadow)!important
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) table{width:100%;border-collapse:separate!important;border-spacing:0!important;background:var(--v288-surface)!important;color:var(--v288-text)!important;font-size:13px!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) thead th{
  padding:9px 10px!important;border-bottom:1px solid var(--v288-border-strong)!important;
  background:var(--v288-surface-3)!important;color:var(--v288-text)!important;font-size:12.5px!important;font-weight:850!important;letter-spacing:.025em!important;text-transform:uppercase
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) tbody td{padding:8px 10px!important;border-bottom:1px solid var(--v288-border)!important;background:transparent!important;color:inherit!important}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) tbody tr:hover td{background:color-mix(in srgb,var(--v288-brand) 4%,var(--v288-surface))!important}

/* Forge Overview: quiet composition with controlled colour cues. */
body[data-portal="forge"] #managementView#managementView .forge209-grid{gap:14px!important}
body[data-portal="forge"] #managementView#managementView .forge209-grid>article{min-height:158px!important;padding:16px!important;gap:9px!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #managementView#managementView .forge209-grid>article h4{margin:1px 0 0!important;font-size:15.5px!important;line-height:1.3!important}
body[data-portal="forge"] #managementView#managementView .forge209-grid>article p{margin:0!important;font-size:13.5px!important;line-height:1.48!important}
body[data-portal="forge"] #managementView#managementView .forge209-grid>article button{margin-top:auto!important;align-self:flex-start!important}

/* Pack Library: immediate tertiary/primary/secondary action recognition. */
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;align-items:stretch!important;gap:16px!important}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack{height:100%!important;min-height:286px!important;align-self:stretch!important;padding:16px!important;gap:10px!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack>span:first-child{width:max-content;padding:4px 8px;border-radius:999px;background:var(--v288-surface-3)!important;color:var(--v288-card)!important;font-size:11.5px!important;font-weight:850!important;letter-spacing:.035em!important;text-transform:uppercase}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack h4{min-height:0!important;margin:0!important;padding:7px 0!important;border:0!important;border-bottom:1px solid var(--v288-border)!important;background:transparent!important;font-size:16px!important;line-height:1.3!important;box-shadow:none!important}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack>p{min-height:0!important;height:auto!important;margin:0!important;padding:0!important;font-size:14px!important;line-height:1.48!important}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack>p:first-of-type{flex:1 1 auto}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack>p:last-of-type{padding-top:7px!important;border-top:1px solid var(--v288-border)!important;font-size:12.5px!important}
body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid>.f272-pack>footer{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:auto!important;padding:10px 0 0!important;border-top:1px solid var(--v288-border)!important}
body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button{width:100%!important;height:auto!important;min-height:36px!important;padding:7px 9px!important;font-size:13px!important;line-height:1.3!important;border-radius:8px!important}
body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer .forge239-details{grid-column:1/-1;width:max-content!important;min-height:30px!important;padding:3px 0!important;border:0!important;background:transparent!important;color:var(--v288-brand)!important;box-shadow:none!important;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--v288-brand) 35%,transparent);text-underline-offset:3px}
body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button[data-use]{border-color:var(--v288-brand)!important;background:var(--v288-brand)!important;color:#fff!important}
body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button[data-use]::before{content:"＋";margin-right:4px;font-weight:900}
body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button[data-download]{border-color:color-mix(in srgb,var(--v288-info) 32%,var(--v288-border))!important;background:color-mix(in srgb,var(--v288-info) 6%,var(--v288-surface))!important;color:var(--v288-text)!important}
body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button[data-download]::before{content:"↓";display:inline-grid;place-items:center;width:15px;height:15px;margin-right:4px;border-radius:50%;background:color-mix(in srgb,var(--v288-info) 12%,transparent);color:var(--v288-info)}

/* Users: concise identity cards. */
body[data-portal="forge"] #moduleView#moduleView [data-users]{height:auto!important;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;align-items:stretch!important;gap:14px!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user{height:100%!important;min-height:136px!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;align-items:center!important;gap:7px 11px!important;padding:15px!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user::before{content:"◉";grid-column:1;grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--v288-card) 22%,var(--v288-border));border-radius:9px;background:color-mix(in srgb,var(--v288-card) 9%,var(--v288-surface));color:var(--v288-card);font-size:13px}
body[data-portal="forge"] #moduleView#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"] #moduleView#moduleView [data-users]>.forge209-user>div:first-of-type strong{display:block;font-size:15px!important;line-height:1.3!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user>div:first-of-type small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:12.5px!important;line-height:1.4!important;white-space:nowrap}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user>div:nth-of-type(2){grid-column:2;grid-row:2;display:flex!important;align-items:center;gap:7px;height:auto!important;font-size:12.5px!important;color:var(--v288-muted)!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user .f272-status{padding:3px 7px!important;border-radius:999px!important;font-size:11px!important;font-weight:850!important;line-height:1.25!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user .f272-status[data-status272="active"]{background:#e1f2e9!important;color:#176348!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user .f272-status[data-status272="inactive"]{background:#f4e8e4!important;color:#8b493b!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user>small{grid-column:2/4;grid-row:3;height:auto!important;font-size:12.5px!important;line-height:1.4!important}
body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user>button{grid-column:3;grid-row:2;min-height:34px!important;height:auto!important;padding:6px 10px!important;font-size:12.5px!important}
body[data-portal="forge"] #moduleView#moduleView .forge209-metrics{height:auto!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-bottom:16px!important}
body[data-portal="forge"] #moduleView#moduleView .forge209-metrics>.f272-card{height:auto!important;min-height:82px!important;padding:13px 15px!important}
body[data-portal="forge"] #moduleView#moduleView .forge209-metrics>.f272-card span{font-size:12px!important;letter-spacing:.04em!important;text-transform:uppercase}
body[data-portal="forge"] #moduleView#moduleView .forge209-metrics>.f272-card strong{font-size:19px!important;line-height:1.25!important}
body[data-portal="forge"] #moduleView#moduleView .forge209-actions{height:auto!important;grid-template-columns:minmax(220px,1fr) auto auto!important;gap:7px!important}

/* Licensing: product character without coloured walls. */
body[data-portal="forge"] #moduleView#moduleView :is(.pathway-licence-card,.licensed-products,.forge210-modules,.pathway-market-links){padding:17px!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #moduleView#moduleView .licensed-product-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:12px!important;align-items:stretch!important}
body[data-portal="forge"] #moduleView#moduleView .licensed-product-grid>a{min-height:72px!important;height:auto!important;padding:11px 12px!important;border:1px solid var(--v288-border)!important;border-left:3px solid var(--system-tone,var(--v288-brand))!important;border-radius:9px!important;background:var(--v288-surface)!important;box-shadow:0 2px 8px rgba(20,45,60,.05)!important}
body[data-portal="forge"] #moduleView#moduleView .licensed-product-grid>a:hover{border-color:var(--v288-border-strong)!important;box-shadow:var(--v288-shadow)!important}
body[data-portal="forge"] #moduleView#moduleView .licensed-product-grid>a img{width:28px!important;height:28px!important;object-fit:contain!important}
body[data-portal="forge"] #moduleView#moduleView .licensed-product-grid>a strong{font-size:13.5px!important;line-height:1.3!important}
body[data-portal="forge"] #moduleView#moduleView .licensed-product-grid>a small{font-size:12.5px!important;line-height:1.35!important}
body[data-portal="forge"] #moduleView#moduleView .forge210-module-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:10px!important}
body[data-portal="forge"] #moduleView#moduleView .forge210-module-grid>.f272-card{height:auto!important;min-height:66px!important;padding:11px 12px!important;border-left:3px solid var(--v288-card)!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #moduleView#moduleView .forge210-module-grid>.f272-card svg{width:18px!important;height:18px!important;padding:3px;border-radius:7px;background:color-mix(in srgb,var(--v288-card) 9%,var(--v288-surface));color:var(--v288-card)}
body[data-portal="forge"] #moduleView#moduleView .forge210-module-grid>.f272-card strong{font-size:13.5px!important;line-height:1.3!important}
body[data-portal="forge"] #moduleView#moduleView .forge210-module-grid>.f272-card small{width:max-content;margin-top:4px;padding:3px 7px;border-radius:999px;background:#f7edd8!important;color:#78581d!important;font-size:11px!important;line-height:1.25!important}

/* Reports Profiles: no miniature twelve-across metric wall. */
body[data-portal="forge"] #moduleView#moduleView .governance-metrics195{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
body[data-portal="forge"] #moduleView#moduleView .governance-metrics195>.f272-card{min-height:94px!important;padding:15px 16px!important}
body[data-portal="forge"] #moduleView#moduleView .governance-metrics195>.f272-card span{font-size:12.5px!important;line-height:1.35!important}
body[data-portal="forge"] #moduleView#moduleView .governance-metrics195>.f272-card strong{font-size:22px!important;line-height:1.2!important}

/* Form-heavy workspaces and System Builder. */
body[data-portal="forge"] #moduleView#moduleView :is(.forge209-form,.forge216-panel,.source-mapping-editor,.branding-editor,.office-form){gap:14px!important}
body[data-portal="forge"]:not(.sidebar-hidden167) #moduleView#moduleView :is(.forge209-form,.forge216-panel,.source-mapping-editor,.branding-editor,.office-form,.guidance-grid,.report-governance){max-width:1440px}
body[data-portal="forge"] #moduleView#moduleView :is(.f272-feed-group,.forge209-form fieldset,.forge216-panel fieldset){height:auto!important;min-height:0!important;align-content:start!important;align-items:start!important;gap:11px!important;padding:15px!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #moduleView#moduleView :is(.forge210-step,.forge221-config,.forge222-purpose,.forge223-import){padding:16px!important;background:var(--v288-surface)!important}
body[data-portal="forge"] #moduleView#moduleView :is(.forge210-step,.forge221-config,.forge222-purpose,.forge223-import) :is(h3,h4){margin:0 0 7px!important;font-size:16px!important}

/* Pathway: same family, green identity, neutral body. */
body[data-portal="pathway"] #workspace#workspace .overview-heading170{padding:14px 16px!important;border:1px solid var(--v288-border)!important;border-left:4px solid var(--v288-brand)!important;border-radius:var(--v288-radius)!important;background:var(--v288-surface)!important;box-shadow:var(--v288-shadow)!important}
body[data-portal="pathway"] #workspace#workspace .pathway-overview-card{min-height:0!important;padding:15px!important;gap:9px!important;background:var(--v288-surface)!important}
body[data-portal="pathway"] #workspace#workspace .pathway-overview-card :is(h3,h4,strong){font-size:15.5px!important;line-height:1.3!important}
body[data-portal="pathway"] #workspace#workspace .pathway-overview-card p{font-size:14px!important;line-height:1.48!important}
body[data-portal="pathway"] #workspace#workspace .pathway-overview-card small{font-size:12.5px!important;line-height:1.42!important}
body[data-portal="pathway"] #workspace#workspace .pathway-overview-card progress{accent-color:var(--v288-card)!important}
body[data-portal="pathway"] #workspace#workspace :is(.licensed-products,.pathway-market-links,.pathway-licence-card){padding:17px!important;background:var(--v288-surface)!important}
body[data-portal="pathway"] #workspace#workspace .licensed-product-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:12px!important}
body[data-portal="pathway"] #workspace#workspace .licensed-product-grid>a{min-height:70px!important;padding:11px 12px!important;border:1px solid var(--v288-border)!important;border-left:3px solid var(--system-tone,var(--v288-card,var(--v288-brand)))!important;border-radius:9px!important;background:var(--v288-surface)!important;box-shadow:0 2px 8px rgba(20,45,60,.05)!important}
body[data-portal="pathway"] #workspace#workspace .licensed-product-grid>a img{width:28px!important;height:28px!important;object-fit:contain!important}
body[data-portal="pathway"] #workspace#workspace .licence-terms-grid>article{padding:15px!important;background:var(--v288-surface)!important}

/* Empty and information states. */
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.empty-register,.empty-card-view,.empty-state){
  min-height:110px;padding:22px;border:1px dashed var(--v288-border-strong)!important;border-radius:var(--v288-radius)!important;
  background:linear-gradient(145deg,var(--v288-surface),var(--v288-surface-2))!important;color:var(--v288-muted)!important;text-align:center
}
body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.audit-notice,.learning-notice,.management-note){
  border:1px solid var(--v288-border)!important;border-left:3px solid var(--v288-info)!important;border-radius:8px!important;background:var(--v288-surface-2)!important;color:var(--v288-text)!important
}

/* Dark mode: deliberate elevation, no pale wedges. */
html[data-theme="dark"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){
  --v288-canvas:#0c1820;--v288-canvas-2:#10232d;--v288-surface:#152b35;
  --v288-surface-2:#1a333e;--v288-surface-3:#213e49;--v288-field:#183640;
  --v288-border:#31515d;--v288-border-strong:#4c7180;--v288-text:#eef6f7;
  --v288-muted:#b7c9ce;--v288-icon-bg:#1d3d47;--v288-shadow:0 7px 20px rgba(0,8,14,.25);
  --v288-shadow-hover:0 11px 27px rgba(0,8,14,.34);--v288-nav:#102630;--v288-nav-active:#1a4147
}
html[data-theme="dark"][data-swiso-palette="executive-emerald"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){--v288-canvas:#091510;--v288-canvas-2:#0e211a;--v288-surface:#162c25;--v288-surface-2:#1c382f;--v288-surface-3:#23453a;--v288-field:#1c3b31;--v288-border:#31594a;--v288-border-strong:#4a806b;--v288-text:#eff8f4;--v288-muted:#bad0c7;--v288-nav:#10231d;--v288-nav-active:#1b493a}
html[data-theme="dark"][data-swiso-palette="british-botanical"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){--v288-canvas:#101813;--v288-canvas-2:#17221b;--v288-surface:#1d2d24;--v288-surface-2:#26382d;--v288-surface-3:#304438;--v288-field:#263d31;--v288-border:#465f50;--v288-border-strong:#668270;--v288-text:#f2f4ef;--v288-muted:#c2cdc5;--v288-nav:#0f2e24;--v288-nav-active:#245440}
html[data-theme="dark"][data-swiso-palette="mineral-glass"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace,.sidebar){--v288-canvas:#0b1720;--v288-canvas-2:#10242e;--v288-surface:#172f3a;--v288-surface-2:#1d3a46;--v288-surface-3:#254854;--v288-field:#1e404c;--v288-border:#365d6b;--v288-border-strong:#537d8d;--v288-text:#f0f6f9;--v288-muted:#bdcdd5;--v288-nav:#102630;--v288-nav-active:#1b4350}
html[data-theme="dark"] body[data-portal] .sidebar .nav-group{background:transparent!important}
html[data-theme="dark"] body[data-portal] .sidebar .nav-group-title{border-bottom-color:var(--v288-border)!important}
html[data-theme="dark"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(.f272-card,.panel,.forge209-user,.licensed-products,.pathway-licence-card,.forge210-modules,fieldset,.register-frame){background:var(--v288-surface)!important;color:var(--v288-text)!important}
html[data-theme="dark"] body :is(#managementView#managementView,#moduleView#moduleView,#workspace#workspace) :is(input,select,textarea){background:var(--v288-field)!important;color:var(--v288-text)!important}
html[data-theme="dark"] body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button[data-use]{background:var(--v288-brand)!important;color:#fff!important}
html[data-theme="dark"] body[data-portal="forge"] #moduleView#moduleView .f272-pack>footer button[data-download]{background:color-mix(in srgb,var(--v288-info) 10%,var(--v288-surface))!important;color:var(--v288-text)!important}
html[data-theme="dark"] body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user .f272-status[data-status272="active"]{background:#1d4d3e!important;color:#c4ebda!important}
html[data-theme="dark"] body[data-portal="forge"] #moduleView#moduleView [data-users]>.forge209-user .f272-status[data-status272="inactive"]{background:#56372f!important;color:#f0c8bd!important}
html[data-theme="dark"] body[data-portal="forge"] #moduleView#moduleView .forge210-module-grid>.f272-card small{background:#55482a!important;color:#f0d99d!important}

/* Controlled wide-screen density: four primary cards, six report metrics. */
@media(min-width:1700px){
  body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body[data-portal="forge"] #moduleView#moduleView [data-users]{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body[data-portal="forge"] #moduleView#moduleView .governance-metrics195{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(min-width:2400px){
  body[data-portal="forge"] #moduleView#moduleView .r57-pack-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}

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