/* Rev B is the shared visual contract for AMRAM working pages. Route controllers
   own behaviour; this layer owns typography, surfaces and control geometry. */
@font-face{font-family:AmramPoppins;src:url('/assets/poppins-regular.woff2') format('woff2');font-style:normal;font-weight:300 400;font-display:swap}
@font-face{font-family:AmramPoppins;src:url('/assets/poppins-medium.woff2') format('woff2');font-style:normal;font-weight:500 600;font-display:swap}
@font-face{font-family:AmramPoppins;src:url('/assets/poppins-bold.woff2') format('woff2');font-style:normal;font-weight:700 900;font-display:swap}
html[data-amram-theme=day]{--crm-bg:#f5f7fa;--crm-panel:#fff;--crm-card:#fff;--crm-soft:#f8fafc;--crm-line:#dbe3ec;--crm-border:#c5d0dd;--crm-text:#172b44;--crm-muted:#56677d;--crm-blue:#245b96;--crm-selected:#edf3fa;--crm-hover:#edf3fa;--crm-shadow:none;--crm-nav:#101f39;--crm-nav-hover:#1b3354;--crm-nav-active:#284a73;--crm-success:#26745b;--crm-warning:#946019;--crm-radius:5px;--crm-control-radius:4px}
html[data-amram-theme=night]{--crm-card:var(--crm-panel);--crm-radius:5px;--crm-control-radius:4px;--crm-shadow:none}
html[data-amram-theme] body.amram-surface[data-amram-route]{--admin-bg:var(--crm-bg);--admin-panel:var(--crm-panel);--admin-header:var(--crm-soft);--admin-text:var(--crm-text);--admin-muted:var(--crm-muted);--admin-accent:var(--crm-blue);--admin-line:var(--crm-line);--admin-line-strong:var(--crm-border);--cal-navy:var(--crm-text);--cal-blue:var(--crm-blue);--cal-muted:var(--crm-muted);--cal-line:var(--crm-line);--cal-bg:var(--crm-bg);--cal-surface:var(--crm-panel);--cal-accent:var(--crm-blue);font:400 13px/1.65 AmramPoppins,Poppins,Arial,sans-serif!important;letter-spacing:normal!important;background:var(--crm-bg)!important;color:var(--crm-text)!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(button,input,select,textarea,table,dialog){font-family:AmramPoppins,Poppins,Arial,sans-serif!important;box-sizing:border-box!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main{font-size:13px!important;line-height:1.65!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main,dialog) :is(h1,h2,h3,h4){font-family:AmramPoppins,Poppins,Arial,sans-serif!important;font-weight:500!important;color:var(--crm-text)!important;letter-spacing:normal!important;text-transform:none!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main h1{font-size:26px!important;line-height:1.25!important;letter-spacing:-.6px!important;margin:0 0 8px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main h2{font-size:16px!important;line-height:1.5!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main :is(h3,h4){font-size:14px!important;line-height:1.5!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main,dialog) :is(p,label,input,select,textarea){font-size:13px!important;line-height:1.65!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main,dialog) :is(small,.hint,.muted,.crm-note,.radar-note,.table-note,.help-note){font-size:12px!important;line-height:1.6!important;color:var(--crm-muted)!important}
/* Normal controls and tabs use the same restrained corners. Compact icon
   controls are sized by amram-control-alignment.css, loaded immediately after. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(button,.button,a.button,.kade-select-trigger,input[type=submit]){box-sizing:border-box!important;min-height:42px!important;border-radius:4px!important;font:500 12px/1.5 AmramPoppins,Poppins,Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(button.primary,.button.primary,input[type=submit],#confirm-submit,#publish-post,.cal-book){background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(button.primary,.button.primary,input[type=submit],#confirm-submit,#publish-post,.cal-book):hover:not(:disabled){background:#174777!important;border-color:#174777!important;color:#fff!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea){min-height:42px!important;border-radius:4px!important;padding:9px 10px!important;background:var(--crm-panel)!important;color:var(--crm-text)!important;border-color:var(--crm-border)!important;max-width:100%!important;min-width:0!important;font-size:13px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] textarea{resize:vertical;line-height:1.5!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(input[type=checkbox],input[type=radio]){accent-color:var(--crm-blue)!important;flex-shrink:0}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(input,select,textarea):focus-visible{outline:2px solid var(--crm-blue)!important;outline-offset:2px!important;box-shadow:none!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(.aw-tabs,.crm-tabs,.crm-subtabs,.today-tabs,.watch-tabs,.account-sections,.social-tabs,.social-channels,.review-tabs,.super-nav,.radar-entry-tabs,.dashboard-chart-tabs,.data-view-tabs,.cal-view-pills,.summary-section-links,.amram-journey nav,.tabs,[role=tablist])>:is(a,button){border-radius:4px!important;min-height:42px!important;padding:8px 13px!important;font-size:12px!important;gap:8px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(.aw-tabs,.crm-tabs,.crm-subtabs,.today-tabs,.watch-tabs,.account-sections,.social-tabs,.social-channels,.review-tabs,.super-nav,.radar-entry-tabs,.dashboard-chart-tabs,.data-view-tabs,.cal-view-pills,.summary-section-links,.amram-journey nav,.tabs,[role=tablist])>:is(a,button):is([aria-selected=true],[aria-pressed=true],[aria-current=page],[aria-current=true],.active){background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important}
/* Working surfaces share a 5px corner, fine border and predictable internal gutter. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(.panel,.admin-panel,.admin-tool-content,.account-card,.aw-section,.crm-card,.crm-relationship,.radar-panel,.radar-section,.av-section,.editor,.editor-layout>aside,.desk-panel,.glass,.dashboard-source-section,.today-services,.today-audit,.seo-disclosure,.seo-connection,.measured-channel,.kade-chart-panel,.chart-card,.room-card,.room-index,.room-requests,.cal-context,.cal-surface,.messages-workspace,.super-grid>section,.super-shell>section,.ad-section,.ac-panel){box-sizing:border-box!important;min-width:0!important;border:1px solid var(--crm-line)!important;border-radius:5px!important;background:var(--crm-panel)!important;background-image:none!important;color:var(--crm-text)!important;box-shadow:none!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(.admin-panel,.admin-tool-content,.account-card,.aw-section,.crm-card,.radar-section,.av-section,.desk-panel,.dashboard-source-section,.today-services,.today-audit,.seo-disclosure,.seo-connection,.measured-channel,.kade-chart-panel,.chart-card,.room-card,.super-grid>section,.ad-section,.ac-panel){padding:20px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(.admin-panel,.admin-tool-content,.account-card,.aw-section,.crm-card,.radar-section,.av-section,.desk-panel,.room-card)>:is(h2,h3):first-child{margin-top:0!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.panel-head,.radar-section-heading,.room-section-heading,.account-card-heading,.dashboard-section-head){gap:12px!important;align-items:center!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.crm-metrics,.aw-stats,.summary-metrics,.radar-scoreboard,.av-summary,.pack-metrics)>*{border-radius:5px!important;box-shadow:none!important;background:var(--crm-panel)!important;border-color:var(--crm-line)!important;padding:18px 20px!important;min-width:0!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.crm-metrics,.aw-stats,.summary-metrics,.radar-scoreboard,.av-summary,.pack-metrics) :is(strong,.metric-value){font-size:27px!important;font-weight:500!important;line-height:1.2!important}
/* Tables keep their own horizontal scroll, rather than widening the page. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-table-wrap,.crm-table-wrap,.aw-table-wrap,.radar-table-wrap,.av-table-wrap,.table-scroll,.super-table,.film-table,.pack-table-wrap,.interest-table){max-width:100%!important;min-width:0!important;overflow-x:auto!important;overscroll-behavior-inline:contain}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) table{width:100%!important;border-collapse:collapse!important;font-size:13px!important;text-align:left!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(th,td){padding:13px 18px!important;border-color:var(--crm-line)!important;vertical-align:top!important;line-height:1.6!important;font-size:13px!important;letter-spacing:normal!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) th{font-size:11px!important;font-weight:500!important;background:var(--crm-soft)!important;color:var(--crm-muted)!important;white-space:nowrap}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] td strong{font-weight:500!important}
/* Dialogs retain native modality, focus handling, validation and discard guards. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) dialog{box-sizing:border-box!important;border:1px solid var(--crm-line)!important;border-radius:6px!important;background:var(--crm-panel)!important;color:var(--crm-text)!important;max-width:calc(100vw - 32px)!important;max-height:92dvh!important;padding:24px!important;box-shadow:0 20px 80px #0d1e3744!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) dialog:not([open]){display:none!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] dialog::backdrop{background:#0c1b3266!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) dialog h2{font-size:20px!important;font-weight:500!important;line-height:1.4!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.crm-dialog-header,.msg-dialog-header,.cal-day-dialog>header){display:flex!important;align-items:start!important;justify-content:space-between!important;gap:20px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.crm-dialog-footer,.ac-dialog-actions,.dialog-footer){display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;padding-top:16px!important;border-top:1px solid var(--crm-line)!important}
/* Long names, links and returned records must stay inside their allocated columns. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(main,dialog) :is(article,section,form,fieldset,.form-grid,.crm-grid,.account-grid,.room-grid){min-width:0!important;box-sizing:border-box!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(main,dialog) :is(p,dd,td,.aw-info,.muted){overflow-wrap:anywhere}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-toolbar,.ac-toolbar,.crm-actions,.radar-tools,.growth-tools,.cal-options,.cal-period){flex-wrap:wrap!important;gap:12px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.radar-heading,.growth-heading,.blog-heading,.editor-heading,.messages-heading){gap:16px!important;flex-wrap:wrap!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=application-interest] :is(.interest-main,.interest-main.wide){width:100%!important;max-width:1440px!important;margin:auto!important;padding:26px 28px 44px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=application-interest] .site-footer{display:none!important}
@media(max-width:1180px){html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.radar-heading,.growth-heading,.blog-heading,.editor-heading){align-items:flex-start!important;flex-direction:column!important}}
@media(max-width:760px){
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main h1{font-size:24px!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(.admin-panel,.admin-tool-content,.account-card,.aw-section,.crm-card,.radar-section,.av-section,.desk-panel,.dashboard-source-section,.today-services,.today-audit,.seo-disclosure,.seo-connection,.measured-channel,.kade-chart-panel,.chart-card,.room-card,.super-grid>section,.ad-section,.ac-panel){padding:16px!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(button,.button,a.button,.kade-select-trigger){min-height:44px!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) dialog{padding:16px!important;max-width:calc(100vw - 20px)!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.form-grid,.account-grid,.super-grid){grid-template-columns:minmax(0,1fr)!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.panel-head,.radar-section-heading,.room-section-heading,.account-card-heading,.dashboard-section-head){flex-wrap:wrap!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.crm-metrics,.aw-stats,.summary-metrics,.radar-scoreboard,.av-summary,.pack-metrics)>*{padding:14px!important}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=application-interest] .interest-main{padding:20px 16px 36px!important}
}
@media(prefers-reduced-motion:reduce){html.amram-v3 body.amram-surface *{scroll-behavior:auto!important;transition:none!important}}
/* Account entry and recovery keep their dedicated layout and access boundary,
   with the same typography, colour and control family as the workspace. */
html[data-amram-theme] body.amram-surface.amram-auth :is(h1,h2,h3,label,p,input,select,textarea,button){font-family:AmramPoppins,Poppins,Arial,sans-serif!important}
html[data-amram-theme] body.amram-surface.amram-auth :is(h1,h2){font-weight:500!important}
html[data-amram-theme] body.amram-surface.amram-auth :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box!important;min-height:44px!important;border-radius:4px!important;font-size:13px!important}
html[data-amram-theme] body.amram-surface.amram-auth :is(button.primary,input[type=submit]){background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important}
/* A single content gutter across dashboards and separately rendered tools. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(body>main:not(.admin-workspace),.aw-main>#aw-main,.admin-workspace>.workspace-body){box-sizing:border-box!important;width:100%!important;max-width:1440px!important;min-width:0!important;margin-inline:auto!important;padding:26px 28px 44px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]>.admin-workspace{padding:0!important}
@media(max-width:760px){html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(body>main:not(.admin-workspace),.aw-main>#aw-main,.admin-workspace>.workspace-body){padding:20px 16px 36px!important}}
/* Historical My work IDs previously overrode the shared button contract. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #aw-main .aw-heading>button,
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #aw-main .crm-tabs :is(a,button){border-radius:4px!important;min-height:42px!important;font:500 12px/1.5 AmramPoppins,Poppins,Arial,sans-serif!important}
@media(max-width:760px){html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #aw-main :is(.aw-heading>button,.crm-tabs button,.crm-tabs a){min-height:44px!important}}
/* Permission and unavailable pages retain their access outcome while using the
   same readable heading and form family as normal tool pages. */
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main h1{font-family:AmramPoppins,Poppins,Arial,sans-serif!important;font-size:26px!important;line-height:1.25!important;font-weight:500!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main h2{font-family:AmramPoppins,Poppins,Arial,sans-serif!important;font-size:16px!important;font-weight:500!important}
@media(max-width:760px){html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) main h1{font-size:24px!important}}
/* Every workspace caption uses Poppins, including historical monospace labels. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(main,dialog) *{font-family:AmramPoppins,Poppins,Arial,sans-serif!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(main,dialog) svg text{font-family:AmramPoppins,Poppins,Arial,sans-serif!important}
/* Library and data-room components predate the shared workspace and contain
   ID-scoped overrides. Bring those actual surfaces into the same contract. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #aw-main #aw-content :is(.library-collections button,.library-next-actions button,.library-top-actions button,.library-filters input,.library-filters select,.library-search input,.library-tabs a,.library-local-nav a){border-radius:4px!important;background-image:none!important;box-shadow:none!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #aw-main #aw-content :is(.library-top-actions .primary,.library-primary-link){background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] :is(.library-register,.library-detail,.library-rooms>button,.library-document-choices,.library-dialog details,.library-bulk,.library-undo,.library-collection-browse,.library-queue-item,.library-room-section,.room-scoreboard>div,.room-nav,.room-release,.room-answer,.room-release-list>article,.room-readiness-metrics>div,.room-index-sections>details,.room-index-rows article,.client-library-intro,.client-library-list,.client-document-section article,.room-collection-groups>details){border-radius:5px!important;background-image:none!important;box-shadow:none!important;border-color:var(--crm-line)!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog:is(.library-dialog,.library-investor-dialog){border-radius:6px!important;padding:24px!important;background:var(--crm-panel)!important;color:var(--crm-text)!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog :is(.room-hero,.room-card){border-radius:5px!important;background:var(--crm-panel)!important;box-shadow:none!important;border:1px solid var(--crm-line)!important;padding:20px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:4px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #accounts>button{border-radius:4px!important;min-height:42px!important;font-size:12px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #accounts>button[aria-pressed=true]{background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important}
@media(max-width:760px){html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog:is(.library-dialog,.library-investor-dialog){padding:16px!important}html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog :is(.room-hero,.room-card){padding:16px!important}}
/* The shared editor's historical ID also set oversized dialog titles. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog>h2,
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog #crm-dialog-title,
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog .crm-dialog-header h2{font-size:20px!important;font-weight:500!important;line-height:1.4!important;margin-top:0!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog:not(.library-investor-dialog){width:min(780px,calc(100vw - 32px))!important}
/* Standalone permission and unavailable responses share the same component
   family without adding working-page navigation or changing their status. */
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(.admin-tool-content,.admin-panel,.panel){border-radius:5px!important;border-color:var(--crm-line)!important;background:var(--crm-panel)!important;padding:20px!important;box-shadow:none!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:4px!important;min-height:42px!important;font-family:AmramPoppins,Poppins,Arial,sans-serif!important}
/* Account-entry typography follows the same scale without exposing workspace
   navigation before sign-in. The brand lockup remains the original AMRAM asset. */
html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route] .entry-form-wrap h1{font:500 26px/1.25 AmramPoppins,Poppins,Arial,sans-serif!important;letter-spacing:-.6px!important}
html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route] .entry-form-wrap :is(p,label,.entry-notice){font-size:13px!important;line-height:1.65!important}
html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route] form :is(button[type=submit],button:not([type]),input[type=submit]){background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important;border-radius:4px!important}
html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route] .entry-utility .amram-theme-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border-radius:4px!important;min-height:44px!important;padding:8px 12px!important;font:500 12px/1.5 AmramPoppins,Poppins,Arial,sans-serif!important}
html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route] .entry-utility .amram-theme-toggle>svg{position:static!important;display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;transform:none!important}
@media(max-width:760px){html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route] .entry-form-wrap h1{font-size:24px!important}}
/* Match the legacy primary-control selector's specificity on account-entry
   pages, so its previous bright blue cannot override the Rev B blue. */
html[data-amram-theme] body.amram-surface.amram-auth[data-amram-route]:not(.amram-legacy) :is(button.primary,.button.primary,input[type=submit],#confirm-submit,#publish-post){background:var(--crm-blue)!important;border-color:var(--crm-blue)!important;color:#fff!important}
/* Ordinary Library editor dialogs use the same title/close header row. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog.library-dialog:not(.library-investor-dialog)[open]{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px 20px!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog.library-dialog:not(.library-investor-dialog)>button[data-close]{grid-column:2;grid-row:1;margin:0!important;align-self:start}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog.library-dialog:not(.library-investor-dialog)>h2{grid-column:1;grid-row:1;margin:0!important;align-self:center}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] #crm-dialog.library-dialog:not(.library-investor-dialog)>:not(h2):not(button[data-close]){grid-column:1/-1;min-width:0}

/* Every shared bordered content surface owns a real internal gutter.
   Workspace wrappers and metric strips retain their own child geometry. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main>section:not(.workspace-body):not(.growth-summary),main>details,.radar-register){box-sizing:border-box!important;min-width:0!important;padding:20px!important;overflow-wrap:anywhere}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main>section:not(.workspace-body):not(.growth-summary),main>details,.radar-register)>:first-child{margin-block-start:0}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main>section:not(.workspace-body):not(.growth-summary),main>details,.radar-register)>:last-child{margin-block-end:0}
/* Filter controls shrink into the available panel, rather than crossing it. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] main .filters{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))!important;gap:14px!important;min-width:0!important;box-sizing:border-box!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] main .filters>:is(label,button){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] main .filters :is(input,select){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] main .evidence-review{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] main .evidence-review>summary{display:flex!important;flex-wrap:wrap!important;gap:12px!important;min-width:0!important;box-sizing:border-box!important;overflow-wrap:anywhere}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] main .evidence-review>summary>*{min-width:0!important;max-width:100%!important}
@media(max-width:760px){html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy):not(.amram-auth) :is(main>section:not(.workspace-body):not(.growth-summary),main>details,.radar-register){padding:16px!important}}
/* The retired Watch rail must not leave the content in its old 260px column. */
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] .watch-workspace{display:block!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important}
html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] .watch-workspace>main{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:none!important;padding:26px 28px 44px!important}
@media(max-width:760px){html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route=intelligence] .watch-workspace>main{padding:20px 16px 36px!important}}

/* Final acceptance: visible keyboard focus and a clean printable workspace. */
html.amram-v3 body.amram-surface :is(a,button,summary,[tabindex]):focus-visible{outline:2px solid var(--crm-blue,#1763e8)!important;outline-offset:3px!important}
@media print{
 html.amram-v3 body.amram-surface{background:white!important;color:#172b44!important;display:block!important}
 html.amram-v3 body.amram-surface :is(.amram-header,.amram-permanent-sidebar,.amram-page-navigation,.personal-bar,.admin-alerts,.amram-help,.amram-tour,.amram-chat-popup){display:none!important}
 html.amram-v3 body.amram-surface :is(main,.aw-main,.workspace-body,.admin-workspace){display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-width:0!important}
 html.amram-v3 body.amram-surface :is(.crm-table-wrap,.aw-table-wrap,.admin-table-wrap,.amram-record-scroll,.kade-chart-plot){overflow:visible!important;max-height:none!important}
 html.amram-v3 body.amram-surface :is(tr,.bot-result-summary,.kade-chart-panel){break-inside:avoid}
 html.amram-v3 body.amram-surface :is(svg,canvas){max-width:100%!important}
 html.amram-v3 body.amram-surface *{animation:none!important;transition:none!important}
}
