/* Scoped, opaque-fallback glass. No changes to authentication, entitlement or master artwork. */
html[data-forge272] body[data-portal="forge"] #moduleView {
 --f272-ink:#173c56;--f272-muted:#4c6579;--f272-base:#f7fafc;--f272-edge:#b5ccdd;
 --f272-blue:#eaf2fc;--f272-teal:#e7f5f1;--f272-lilac:#f1edf9;--f272-amber:#fbf1e4;
 --f272-shadow:0 3px 12px #193b5710, inset 0 1px 0 #ffffffc0;
}
html[data-forge272] body[data-portal="forge"] #moduleView [data-tone272="blue"]{--f272-tint:var(--f272-blue);--f272-outline:#9ebbd9}
html[data-forge272] body[data-portal="forge"] #moduleView [data-tone272="teal"]{--f272-tint:var(--f272-teal);--f272-outline:#91c3bc}
html[data-forge272] body[data-portal="forge"] #moduleView [data-tone272="lilac"]{--f272-tint:var(--f272-lilac);--f272-outline:#b8a5d1}
html[data-forge272] body[data-portal="forge"] #moduleView [data-tone272="amber"]{--f272-tint:var(--f272-amber);--f272-outline:#d7b68b}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-card {
 background:linear-gradient(145deg,var(--f272-base),var(--f272-tint,var(--f272-blue)))!important;
 border:1px solid var(--f272-outline,var(--f272-edge))!important;border-radius:12px!important;
 box-shadow:var(--f272-shadow)!important;color:var(--f272-ink)!important;padding:14px!important;min-width:0;
}
html[data-forge272] body[data-portal="forge"] #moduleView :is(.f272-card,.f272-step) :is(h3,h4,strong,label){color:var(--f272-ink)}
html[data-forge272] body[data-portal="forge"] #moduleView :is(.f272-card,.f272-step) :is(p,small){color:var(--f272-muted)}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-card :is(h3,h4){margin:0 0 10px!important;line-height:1.4}
html[data-forge272] body[data-portal="forge"] #moduleView :is(button,a.secondary):not(:disabled):hover {
 background:#d7eaf0!important;color:#12384b!important;border-color:#5d97a8!important;box-shadow:0 2px 6px #21445a20;
}
html[data-forge272] body[data-portal="forge"] #moduleView :is(button,a,input,select,textarea):focus-visible{outline:3px solid #287ea0!important;outline-offset:2px}
html[data-forge272] body[data-portal="forge"] #moduleView button:disabled{opacity:.65;cursor:not-allowed}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-disclosure {border:1px solid var(--f272-edge);border-radius:9px;padding:10px;margin:10px 0;background:var(--f272-base)}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-disclosure>summary{font-weight:650;cursor:pointer;color:var(--f272-ink)}
html[data-forge272] body[data-portal="forge"] #moduleView .forge209-metrics{gap:12px!important;margin:0 0 14px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge209-metrics strong{font-size:1.2rem}
/* Members: bounded, balanced cards instead of a single stretched row. */
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="users"] [data-users]{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;gap:14px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge209-user{display:flex!important;flex-direction:column!important;gap:12px!important;min-height:205px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge209-user>div:first-child{border-bottom:1px solid var(--f272-outline);padding-bottom:10px}
html[data-forge272] body[data-portal="forge"] #moduleView .forge209-user small{display:block;overflow-wrap:anywhere;line-height:1.5}
html[data-forge272] body[data-portal="forge"] #moduleView .forge209-user>button{margin-top:auto!important;width:100%}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-status{display:inline-block!important;padding:3px 9px;margin-top:6px;border:1px solid var(--f272-outline);border-radius:20px;background:var(--f272-teal)}
html[data-forge272] body[data-portal="forge"] #moduleView [data-status272="inactive"]{background:var(--f272-amber)}
/* Preferences: output, preferences, shortcuts, then backups. */
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] #specialWorkspace{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] #specialWorkspace>header{grid-column:1/-1;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] .forge211-storage{grid-column:1;grid-row:2;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] form.forge209-section{grid-column:2;grid-row:2;display:grid!important;grid-template-columns:1fr!important;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] :is(.forge226-related,.f272-backup,.forge218-storage){grid-column:1/-1!important;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] .forge226-related{display:flex!important;flex-wrap:wrap;gap:8px;justify-content:flex-start}
/* Account, systems and module tiles remain factual: no invented entitlement states. */
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="my-licence"] #specialWorkspace{gap:16px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .licensed-product-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;gap:10px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .licensed-product-grid>a{min-height:88px;transition:box-shadow .15s,border-color .15s}
html[data-forge272] body[data-portal="forge"] #moduleView .forge210-module-grid{grid-template-columns:repeat(auto-fit,minmax(195px,1fr))!important;gap:10px!important}
/* Brand editor and preview, kept on a readable measure. */
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="branding-studio"] #brandForm{display:grid!important;grid-template-columns:minmax(320px,1.2fr) minmax(300px,1fr)!important;gap:18px!important;align-items:start!important;max-width:1440px;margin:0 auto!important}
html[data-forge272] body[data-portal="forge"] #moduleView #brandForm>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
html[data-forge272] body[data-portal="forge"] #moduleView #brandForm :is(.inline-check,button[type=submit],.wide){grid-column:1/-1}
html[data-forge272] body[data-portal="forge"] #moduleView #brandForm input[type=color]{width:96px!important;height:36px!important;padding:3px!important;cursor:pointer}
html[data-forge272] body[data-portal="forge"] #moduleView #brandForm label{min-width:0;display:grid;gap:6px}
html[data-forge272] body[data-portal="forge"] #moduleView #brandPreview{position:sticky;top:12px;min-height:190px!important}
/* Reporting: remove dead air; retain the full governance tools in a disclosure. */
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="report-profiles"] :is(#specialWorkspace,.governance-assurance195){min-height:0!important;margin:12px 0!important;padding:14px!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="report-profiles"] #specialWorkspace{display:block!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="report-profiles"] .governance-metrics195{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:8px!important}
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="report-profiles"] :is(.governance-actions195,.governance-links195){display:flex!important;flex-wrap:wrap;gap:8px;margin:12px 0}
/* Packs: standards have full perimeter colour, not only a top stripe. */
html[data-forge272] body[data-portal="forge"] #moduleView .f272-pack{display:flex!important;flex-direction:column!important;gap:9px;min-height:285px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-pack :is(h3,h4){padding:9px;border-radius:7px;background:var(--f272-tint);border:1px solid var(--f272-outline)}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-pack button:hover *{color:inherit!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-pack :is(footer,.forge209-actions){margin-top:auto}
/* Builder: one home for each extension, no deletion or cloned forms. */
html[data-forge272] body[data-portal="forge"] #specialWorkspace[data-builder-step272="setup"] [data-builder-owner272]:not([data-builder-owner272="setup"]),
html[data-forge272] body[data-portal="forge"] #specialWorkspace[data-builder-step272="governance"] [data-builder-owner272]:not([data-builder-owner272="governance"]),
html[data-forge272] body[data-portal="forge"] #specialWorkspace[data-builder-step272="documents"] [data-builder-owner272]:not([data-builder-owner272="documents"]){display:none!important}
html[data-forge272] body[data-portal="forge"] #moduleView .r65-tabs{gap:8px!important;padding:8px!important;border:1px solid var(--f272-edge);border-radius:12px;background:var(--f272-base)}
html[data-forge272] body[data-portal="forge"] #moduleView .r65-tabs button{flex:1;border:1px solid var(--f272-edge)!important;border-radius:8px!important;padding:10px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .r65-tabs button.active{background:#176f81!important;color:#fff!important}
html[data-forge272] body[data-portal="forge"] #moduleView .r65-builder-body{display:block!important;padding:12px 0!important}
html[data-forge272] body[data-portal="forge"] #moduleView :is([data-builder-owner272],.f272-recovery){margin:12px 0!important}
/* Feed: editor first, compact searchable records below. */
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="feeds"] #specialWorkspace,
html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="forge-data-sources"] #specialWorkspace{display:block!important;min-height:0!important;padding:14px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed>[data-editor]{margin:0 0 16px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed>[data-editor]>form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:0!important;background:transparent!important;border:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed-group legend{font-weight:700;padding:0 6px;color:var(--f272-ink)}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed-group label{min-width:0;display:grid;gap:5px}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed :is([data-records],[data-status],[data-search]){margin:10px 0!important;min-height:0!important}
/* Two-window Find & Replace, preserving the existing processing engine. */
html[data-forge272] body[data-portal="forge"] #moduleView #findReplaceForm{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView #findReplaceForm>.f272-step{display:block!important;margin:0!important;min-height:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-step h3{font-size:15px!important;margin:0 0 10px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-step :is(.forge-batch01-panel,.office-controls199,.office-output133){border:0!important;padding:0!important;margin:6px 0!important;background:transparent!important;box-shadow:none!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-step .office-controls199>h4{display:none}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-step :is(.office-output199,.replace-destination){display:flex!important;flex-wrap:wrap;align-items:end;gap:10px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-step .office-output199>label{flex:1;min-width:180px}
html[data-forge272] body[data-portal="forge"] #moduleView #replaceSelection{max-height:150px;overflow:auto;margin:8px 0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge-rules01{width:min(1500px,96vw)!important;max-width:96vw!important;max-height:90vh!important;padding:14px!important;border:1px solid var(--f272-edge)!important;border-radius:14px!important;background:var(--f272-base)!important;color:var(--f272-ink)!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge-rules01::backdrop{background:#12344977}
html[data-forge272] body[data-portal="forge"] #moduleView .forge-rules01 [data-rules]{overflow-x:auto}
html[data-forge272] body[data-portal="forge"] #moduleView :is(.f272-rule-columns,#replacementRows>.replacement-row){display:grid!important;grid-template-columns:160px minmax(190px,1fr) minmax(190px,1fr) minmax(430px,1.8fr)!important;gap:8px!important;min-width:1020px!important;padding:8px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--f272-edge)!important;align-items:start!important}
html[data-forge272] body[data-portal="forge"] #moduleView .f272-rule-columns{background:var(--f272-teal);border-radius:7px 7px 0 0;color:var(--f272-ink)}
html[data-forge272] body[data-portal="forge"] #moduleView #replacementRows{display:block!important;overflow:visible!important;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView #replacementRows>.replacement-row:nth-child(even){background:var(--f272-blue)!important}
html[data-forge272] body[data-portal="forge"] #moduleView .replacement-row>.office-row-head148{display:flex!important;flex-wrap:wrap!important;gap:4px!important;grid-column:auto!important}
html[data-forge272] body[data-portal="forge"] #moduleView .replacement-row>.office-row-head148 button{font-size:11px!important;min-height:25px!important;padding:3px 6px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .replacement-row>label{display:grid!important;font-size:11px!important;gap:4px!important;min-width:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .replacement-row textarea{width:100%!important;min-height:34px!important;height:34px;resize:vertical!important;padding:6px!important;font-size:13px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .replacement-row>details{padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-width:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .replacement-row>details>summary{display:none!important}
html[data-forge272] body[data-portal="forge"] #moduleView .rule-scopes133{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;border:0!important;padding:0!important;margin:0!important}
html[data-forge272] body[data-portal="forge"] #moduleView .rule-scopes133 legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-forge272] body[data-portal="forge"] #moduleView .rule-scopes133 label{display:flex!important;align-items:center;gap:5px!important;font-size:11px!important;line-height:1.3;min-height:24px!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge-rules01 :is(.replace-rule-toolbar,.office-toolbar148){display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:8px!important;margin:0 0 8px!important;border:1px solid var(--f272-edge)!important;border-radius:8px!important;background:var(--f272-base)!important}
html[data-forge272] body[data-portal="forge"] #moduleView .forge-rules01 footer{display:flex!important;flex-wrap:wrap;gap:6px;padding-top:12px}
html[data-forge272] body[data-portal="forge"] #moduleView .forge-rules01 .replace-options{display:flex!important;flex-wrap:wrap;gap:12px!important;padding:10px!important}
html[data-theme="dark"][data-forge272] body[data-portal="forge"] #moduleView{--f272-ink:#e5eff8;--f272-muted:#b7cbd9;--f272-base:#1b2c3b;--f272-edge:#4c687e;--f272-blue:#233b54;--f272-teal:#203e40;--f272-lilac:#35334c;--f272-amber:#453c30;--f272-shadow:0 4px 14px #0003,inset 0 1px 0 #ffffff0a}
html[data-theme="dark"][data-forge272] body[data-portal="forge"] #moduleView :is(button,a.secondary):not(:disabled):hover{background:#35566c!important;color:#fff!important;border-color:#92bfd0!important}
@media(max-width:900px){
 html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] #specialWorkspace,
 html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="branding-studio"] #brandForm,
 html[data-forge272] body[data-portal="forge"] #moduleView .f272-feed>[data-editor]>form{grid-template-columns:1fr!important}
 html[data-forge272] body[data-portal="forge"] #moduleView[data-page272="portal-settings"] #specialWorkspace>*{grid-column:1!important;grid-row:auto!important}
 html[data-forge272] body[data-portal="forge"] #moduleView #brandPreview{position:static}
}
@media(max-width:550px){html[data-forge272] body[data-portal="forge"] #moduleView :is(.f272-feed-group,#brandForm>div){grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){html[data-forge272] body[data-portal="forge"] #moduleView *{transition:none!important;scroll-behavior:auto!important}}
