/* Shared AMRAM profile, navigation and chart disclosure spacing. */
body .personal-bar{min-height:108px;gap:20px;padding-top:20px;padding-bottom:20px}
body .personal-bar>img{width:68px!important;height:68px!important;flex:0 0 68px;object-fit:cover;object-position:50% 22%;border-radius:50%;border:1px solid var(--admin-line-strong,#cad4e0)}
body .personal-bar .personal-name{font-size:clamp(23px,2.2vw,30px)!important;font-weight:500;line-height:1.25}
body .personal-bar .personal-clock{font-size:13px;line-height:1.5}
body .personal-bar>div{gap:7px;min-width:0}
body :is(.admin-workspace aside,.aw-sidebar,.watch-sidebar) .admin-nav-icon{color:#b6c5d8!important;stroke:currentColor!important;flex-shrink:0}
body :is(.admin-workspace aside,.aw-sidebar,.watch-sidebar) :is(a,button){align-items:center;gap:12px}
body .identity-monogram:has(.identity-photo){overflow:hidden;padding:0}
body .identity-photo{width:100%;height:100%;object-fit:cover;object-position:50% 22%;border-radius:inherit}
body.kade-polished :is(.chart-values,.watch-filter-panel).smooth-disclosure>summary{min-height:48px!important;padding:12px 16px!important;display:flex!important;align-items:center;gap:14px;justify-content:flex-start;box-sizing:border-box;color:var(--admin-text,#17273c)!important;background:var(--admin-raised,#edf1f5)!important;border:1px solid var(--admin-line,#d5dde6)!important;border-radius:3px;font-size:13px;line-height:1.5;list-style:none}
body.kade-polished :is(.chart-values,.watch-filter-panel)>summary::-webkit-details-marker{display:none}
body.kade-polished :is(.chart-values,.watch-filter-panel)>summary .disclosure-indicator{margin-left:auto!important;flex-shrink:0;width:22px;height:22px;color:inherit!important}
body.kade-polished .watch-filter-panel{padding:0!important;border:0!important}
body.kade-polished .watch-filter-panel .filters{padding:18px 16px}
body.kade-polished .chart-values{padding-top:12px}
body.kade-polished .chart-card .legend{color:var(--admin-muted,#59677a)!important}
body .admin-chart-help{display:inline-flex!important;align-items:center;justify-content:center;margin-left:12px;vertical-align:middle;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:1px solid var(--admin-line-strong,#8092a9)!important;border-radius:50%!important;background:transparent!important;color:var(--admin-muted,#59677a)!important;font:500 14px/1 Arial,sans-serif!important;cursor:pointer}
body .admin-chart-help:hover{background:var(--admin-raised,#edf1f5)!important;color:var(--admin-text,#17273c)!important}
.admin-chart-explanation{width:min(520px,calc(100vw - 40px));max-height:80vh;padding:28px;background:var(--admin-panel,#fff);color:var(--admin-text,#17273c);border:1px solid var(--admin-line-strong,#cbd5e1);border-radius:6px;box-sizing:border-box}
.admin-chart-explanation::backdrop{background:#06142699}.admin-chart-explanation h2{font-size:22px;margin:0 0 18px}.admin-chart-explanation p{font-size:14px;line-height:1.7}.admin-chart-explanation button{min-height:44px;padding:10px 20px;background:var(--admin-raised,#edf1f5);color:inherit;border:1px solid var(--admin-line-strong,#cbd5e1);border-radius:3px}
@media(max-width:650px){body .personal-bar{min-height:96px;gap:14px;padding-top:16px;padding-bottom:16px}body .personal-bar>img{width:58px!important;height:58px!important;flex-basis:58px}body .personal-bar .personal-name{font-size:23px!important}body .personal-bar .personal-clock{font-size:11px}body .personal-bar>a{margin-left:72px}body.kade-polished :is(.chart-values,.watch-filter-panel).smooth-disclosure>summary{padding:12px 14px!important}}

html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy) .personal-bar>img{width:68px!important;height:68px!important;flex-basis:68px!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy) .personal-bar .personal-name{font-size:clamp(23px,2.2vw,30px)!important;line-height:1.25!important;font-weight:500!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy) :is(.admin-workspace aside,.aw-sidebar,.watch-sidebar) .admin-nav-icon{color:#b6c5d8!important;stroke:currentColor!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy) :is(.chart-values,.watch-filter-panel)>summary{min-height:48px!important;padding:12px 16px!important;gap:14px!important;justify-content:flex-start!important;color:var(--admin-text,#17273c)!important;background:var(--admin-raised,#edf1f5)!important;font-size:13px!important;line-height:1.5!important}
body.amram-surface:not(.amram-auth) :is(.chart-values,.watch-filter-panel).smooth-disclosure>summary::before{content:none!important;display:none!important}
body.amram-surface:not(.amram-auth) :is(.chart-values,.watch-filter-panel)>summary .disclosure-indicator{margin-left:auto!important;width:22px!important;max-width:22px!important;flex:0 0 22px!important}
@media(max-width:650px){html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy) .personal-bar>img{width:58px!important;height:58px!important;flex-basis:58px!important}html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-legacy) .personal-bar .personal-name{font-size:23px!important}}

html[data-amram-theme] body.amram-surface[data-amram-route] .chart-card .legend :is(span,small){color:var(--admin-muted,#59677a)!important}

/* A blank observatory is a loading state, never a measured zero. */
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .live-update-notice{margin:18px 0;padding:20px 24px;border:1px solid #72839a;border-left:3px solid #e3a33a;background:#101e30;color:#f1f5fa!important;font-size:15px;line-height:1.6}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .live-update-notice[hidden],.data-observatory .live-composition[hidden]{display:none!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .live-field-heading h2{color:#f1f5fa!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:not([data-loaded=true]) .hero-tools{display:none!important}
.data-observatory[aria-busy=true] .live-connection::before{animation:admin-loading-pulse 1.2s ease-in-out infinite}
@keyframes admin-loading-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.data-observatory[aria-busy=true] .live-connection::before{animation:none}}

html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory[data-has-data=false] .hero-tools{display:none!important}

/* Final consistency pass: clear control states and a shared spacing rhythm. */
html[data-amram-theme] body.amram-surface[data-amram-route]{--admin-bg:var(--crm-bg);--admin-header:var(--crm-soft);--admin-panel:var(--crm-panel);--admin-raised:var(--crm-soft);--admin-line:var(--crm-line);--admin-line-strong:var(--crm-border);--admin-text:var(--crm-text);--admin-muted:var(--crm-muted);--admin-accent:var(--crm-blue)}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(button,.button,.kade-select-trigger){box-sizing:border-box;line-height:1.4!important;letter-spacing:normal!important;gap:8px;max-width:100%;text-wrap:pretty;touch-action:manipulation}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-actions,.actions,.aw-pages>div,.admin-toolbar,.hero-tools,.radar-actions,.work-dialog-actions,.account-return-controls){gap:12px!important;align-items:center;flex-wrap:wrap}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.actions,.admin-actions){margin-top:18px}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(button,.button,.kade-select-trigger):disabled,html[data-amram-theme] body.amram-surface[data-amram-route] [aria-disabled=true]{opacity:.5!important;cursor:not-allowed!important;box-shadow:none!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-toolbar,.hero-tools,.actions,.admin-actions,.aw-pages,.radar-actions) :is(button,a.button):not(:disabled):not(.primary):hover{border-color:var(--crm-blue)!important;background:var(--crm-hover)!important;color:var(--crm-text)!important}
html[data-amram-theme=night] body.amram-surface[data-amram-route] :is(button.primary,.button.primary,input[type=submit],#confirm-submit,#publish-post,.cal-book){color:#081426!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.filter-grid,.aw-filters,.crm-filter,.work-form-grid,.account-grid,.form-grid){gap:20px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(form label,.admin-toolbar label,.aw-filters label){font-size:13px!important;line-height:1.5!important;color:var(--crm-text)!important;gap:8px}
html[data-amram-theme] body.amram-surface[data-amram-route] textarea{line-height:1.6!important;resize:vertical;min-height:96px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(input,select,textarea,.kade-select-trigger){border-color:var(--crm-border)!important;color:var(--crm-text)!important;background:var(--crm-panel)!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(input,textarea)::placeholder{color:var(--crm-muted)!important;opacity:1!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-table-wrap,.crm-table-wrap,.mail-table-wrap,.radar-table-wrap,.aw-table-wrap,.table-scroll){max-width:100%;min-width:0;overscroll-behavior-inline:contain}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.summary-section-head,.section-head,.radar-section-heading,.workspace-title,.account-card-heading){gap:20px!important;align-items:center;flex-wrap:wrap}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.summary-section-head,.section-head,.radar-section-heading,.account-card-heading) h2{line-height:1.3!important;margin-top:0;margin-bottom:0}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.summary-section-head,.section-head) h2{font-size:24px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .summary-intro h2{font-size:clamp(28px,3vw,40px)!important;line-height:1.2!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.method,.dashboard-note,.summary-scope,.aw-help){font-size:13px!important;line-height:1.65!important;color:var(--crm-muted)!important}
html[data-amram-theme] body.amram-surface[data-amram-route] dialog{max-width:calc(100vw - 32px)!important;max-height:90dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.aw-back,.amram-back,.crm-text-action,.summary-link){min-height:32px!important;font-size:12px!important;padding:5px 8px!important;border-radius:3px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .admin-chart-help{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important;font-size:14px!important;flex:0 0 28px}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory{--crm-panel:#0d1d32;--crm-soft:#15263d;--crm-text:#f1f5fa;--crm-muted:#b8c6d8;--crm-line:#34445a;--crm-border:#52647d;--admin-panel:#0d1d32;--admin-text:#f1f5fa;--admin-muted:#b8c6d8;--admin-line:#34445a;--admin-line-strong:#52647d}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory :is(.live-stage,.section-chart,.chart-accessible){background:#0d1d32!important;color:#f1f5fa!important;border-color:#34445a!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory :is(.hero-context,.live-description,.live-detail,.live-field-footer,.live-total,.live-field-heading .eyebrow){color:#d6e1ef!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .section-chart text{fill:#d6e1ef!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .live-inspector{background:#15263d!important;color:#f1f5fa!important;border-color:#52647d!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .hero-tools button{background:#15263d!important;color:#f1f5fa!important;border:1px solid #52647d!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory .hero-tools button:hover{background:#203652!important;color:#fff!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .personal-bar{min-height:108px!important;padding-block:20px!important;gap:20px!important}
@media(max-width:900px){html[data-amram-theme] body.amram-surface[data-amram-route] :is(.workspace-body,#aw-main,.watch-main,.radar-main){padding-inline:20px!important}html[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-toolbar,.aw-filters,.crm-filter,.filter-grid){gap:14px!important}html[data-amram-theme] body.amram-surface[data-amram-route] .admin-toolbar{width:100%;justify-content:flex-start}}
@media(max-width:650px){html[data-amram-theme] body.amram-surface[data-amram-route] :is(.admin-panel,.aw-section,.account-card,.desk-panel,.chart-card){padding:18px!important}html[data-amram-theme] body.amram-surface[data-amram-route] :is(.workspace-body,#aw-main,.watch-main,.radar-main){padding-inline:16px!important}html[data-amram-theme] body.amram-surface[data-amram-route] .personal-bar{min-height:96px!important;padding-block:16px!important;gap:14px!important}html[data-amram-theme] body.amram-surface[data-amram-route] :is(.summary-section-head,.section-head,.radar-section-heading){align-items:flex-start;gap:14px!important}html[data-amram-theme] body.amram-surface[data-amram-route] .hero-tools{justify-content:flex-start}.admin-chart-explanation{padding:22px}}

html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside :is(.nav-cluster-toggle,.nav-cluster-body button,.admin-tool-link){min-height:44px!important;padding:10px 12px!important;border-radius:3px!important;font-size:13px!important;line-height:1.5!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside .nav-cluster-toggle strong{font-size:13px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.data-view-description,.kade-chart-note,.kade-chart-freshness,.kade-chart-comparison){font-size:13px!important;line-height:1.6!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .pipeline-column .crm-actions button{min-height:40px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.4!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .personal-clock{font-size:13px!important;line-height:1.5!important}
html[data-amram-theme] body.amram-surface.amram-auth .entry-form button.primary{min-height:48px!important;font-size:14px!important}

/* Routine polling stays quiet; only initial loading and failures need notices. */
.data-observatory .live-connection[data-state=live]::before{background:#53be8a!important;animation:none!important}
.amram-online-indicator{display:inline-block!important;width:8px!important;height:8px!important;min-width:8px!important;min-height:8px!important;border-radius:50%!important;background:#8c99a9!important;flex:0 0 8px!important;margin:0 10px!important;animation:none!important;box-shadow:none!important}
.amram-online-indicator[data-state=online]{background:#17845b!important}.amram-online-indicator[data-state=attention]{background:#c08a32!important}.amram-online-indicator[data-state=offline]{background:#c24152!important}
html[data-amram-theme=night] .amram-online-indicator[data-state=online]{background:#55c69a!important}

.data-observatory .live-connection::before{animation:none!important}

/* Full-width working surfaces, compact shell, and isolated connection dots. */
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) .workspace-body{width:100%!important;max-width:none!important;margin:0!important;padding:24px clamp(16px,2vw,28px) 40px!important;align-items:stretch!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .workspace-body>:is(div,section,header,.workspace-title,.admin-footnote){width:100%!important;max-width:none!important;margin-inline:0!important;box-sizing:border-box!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(#admin-content,#admin-live-hero)>section{width:100%!important;max-width:none!important;margin-inline:0!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .screen-metric-strip{margin-block:16px!important;padding:18px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .screen-metric-strip>p{margin:0 0 14px!important;min-height:0!important;padding:0!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .screen-metric-strip>div{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .screen-metric-strip article{min-height:100px!important;padding:16px 20px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] #enquiry-search{display:flex;align-items:flex-end;gap:12px;margin-bottom:16px}
html[data-amram-theme] body.amram-surface[data-amram-route] #enquiry-search>label{flex:1;max-width:none!important;margin:0!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory{padding:24px!important;margin-bottom:18px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory :is(.hero-context,.live-controls){margin-bottom:16px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .amram-online-indicator{display:inline-block!important;box-sizing:border-box!important;width:8px!important;height:8px!important;min-width:8px!important;max-width:8px!important;min-height:8px!important;max-height:8px!important;flex:0 0 8px!important;aspect-ratio:1!important;border-radius:50%!important;clip-path:circle(50%)!important;border:0!important;padding:0!important;line-height:0!important;animation:none!important;box-shadow:none!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .live-connection{display:inline-flex!important;align-items:center!important;gap:8px!important;max-width:none!important;background:transparent!important;border:0!important;padding:0!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .live-connection::before{content:''!important;display:inline-block!important;box-sizing:border-box!important;width:8px!important;height:8px!important;min-width:8px!important;max-width:8px!important;min-height:8px!important;max-height:8px!important;flex:0 0 8px!important;border:0!important;padding:0!important;border-radius:50%!important;clip-path:circle(50%)!important;animation:none!important;box-shadow:none!important}
@media(min-width:901px){
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth)>.portal-header{display:grid!important;grid-template-columns:220px minmax(0,1fr) auto auto auto auto auto!important;grid-template-rows:62px auto!important;gap:0 10px!important;padding:0 18px 0 0!important;background:var(--crm-panel)!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>a:first-child{grid-column:1!important;grid-row:1/3!important;align-self:stretch!important;width:220px!important;padding:18px!important;background:var(--crm-nav)!important;display:flex!important;align-items:center!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.portal-label{display:none!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-banner-tabs{grid-column:2/-1!important;grid-row:2!important;display:flex!important;width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important;margin:0!important;padding:0 0 8px!important;gap:6px!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-global-search{grid-column:3!important;grid-row:1!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-quick-capture{grid-column:4!important;grid-row:1!important;width:auto!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.amram-theme-toggle{grid-column:5!important;grid-row:1!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-alerts{grid-column:6!important;grid-row:1!important;margin:0!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"]{grid-column:7!important;grid-row:1!important;margin:0!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside{top:112px!important;min-height:calc(100dvh - 112px)!important;max-height:calc(100dvh - 112px)!important}
}
@media(max-width:650px){html[data-amram-theme] body.amram-surface[data-amram-route] .screen-metric-strip>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-amram-theme] body.amram-surface[data-amram-route] #enquiry-search{flex-wrap:wrap}html[data-amram-theme] body.amram-surface[data-amram-route] #enquiry-search>label{flex-basis:100%}html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory{padding:18px!important}}
@media(min-width:901px){html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.amram-session-strip{grid-column:2!important;grid-row:1!important;min-width:0!important;margin:0!important}}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] :is(.amram-session-strip,.seo-connection,.social-status) i{display:inline-block!important;width:8px!important;height:8px!important;min-width:8px!important;max-width:8px!important;min-height:8px!important;max-height:8px!important;flex:0 0 8px!important;border-radius:50%!important;clip-path:circle(50%)!important;padding:0!important;border:0!important;animation:none!important;box-shadow:none!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>a:first-child :is(.amram-wordmark,.portal-logo){filter:brightness(0) invert(1)!important;opacity:1!important}
/* The wordmark belongs on the header surface, without a separate colour block. */
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>a:first-child{background:transparent!important}
html:not(.amram-v3)[data-amram-theme=day] body.amram-surface[data-amram-route] .portal-header>a:first-child :is(.amram-wordmark,.portal-logo){filter:brightness(0)!important;opacity:.9!important}
html:not(.amram-v3)[data-amram-theme=night] body.amram-surface[data-amram-route] .portal-header>a:first-child :is(.amram-wordmark,.portal-logo){filter:brightness(0) invert(1)!important;opacity:1!important}
@media(max-width:900px){html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth)>.portal-header{background:var(--crm-panel)!important}}

/* Phone header: override the desktop grid's explicit seven-column placements. */
@media(max-width:900px){
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth)>.portal-header{grid-template-columns:minmax(0,1fr) 44px 44px 44px!important;grid-template-rows:auto!important;min-height:72px!important;padding:14px!important;gap:8px!important;max-width:100%;box-sizing:border-box}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>a:first-child{grid-column:1!important;grid-row:1!important;align-self:center!important;width:auto!important;min-width:0!important;padding:0!important;gap:10px!important;background:transparent!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>a:first-child .amram-wordmark{width:118px!important;max-width:calc(100% - 18px)!important;height:auto!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>:is(.admin-banner-tabs,.admin-global-search,.admin-quick-capture,.amram-session-strip){display:none!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.amram-theme-toggle{grid-column:2!important;grid-row:1!important;display:inline-flex!important;margin:0!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-alerts{grid-column:3!important;grid-row:1!important;min-width:0!important;margin:0!important;justify-content:center}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"]{grid-column:4!important;grid-row:1!important;margin:0!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header :is(.amram-theme-toggle,.admin-alerts-button,form[action="/admin/logout"] button){box-sizing:border-box;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;margin:0!important;border:1px solid var(--crm-line)!important;border-radius:6px!important;background:var(--crm-panel)!important;color:var(--crm-text)!important;touch-action:manipulation}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"] button::before{content:none!important;display:none!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"] button>span{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header .admin-alerts-button svg{width:22px!important;height:22px!important}
 html[data-amram-theme] body.amram-surface[data-amram-route]>.admin-alerts-panel{background:var(--crm-panel)!important;color:var(--crm-text)!important}
 html[data-amram-theme] body.amram-surface[data-amram-route]>.admin-alerts-panel .admin-alerts-heading{background:var(--crm-panel)!important}
 html[data-amram-theme] body.amram-surface[data-amram-route]>.admin-alerts-panel .admin-alerts-close{background:var(--crm-panel)!important;color:var(--crm-text)!important}
}
@media(max-width:520px){
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth)>.portal-header{grid-template-columns:minmax(0,1fr) 44px 44px!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.amram-theme-toggle{display:none!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-alerts{grid-column:2!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"]{grid-column:3!important}
}

/* Header controls share a fixed touch target; SVGs cannot inherit chart positioning. */
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header .amram-theme-toggle,
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header .admin-alerts-button{
 position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:11px!important;margin:0!important;gap:0!important;overflow:hidden!important;line-height:1!important;color:var(--crm-text)!important;
}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header .amram-theme-toggle>svg,
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header .admin-alerts-button>svg{
 position:static!important;display:block!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;margin:0!important;overflow:visible!important;
}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header .amram-theme-toggle>span{display:none!important}
html:not(.amram-v3)[data-amram-theme=day] body.amram-surface[data-amram-route]>.portal-header>a:first-child :is(.amram-wordmark,.portal-logo){filter:brightness(0)!important;opacity:1!important}
html:not(.amram-v3)[data-amram-theme=night] body.amram-surface[data-amram-route]>.portal-header>a:first-child :is(.amram-wordmark,.portal-logo){filter:brightness(0) invert(1)!important;opacity:1!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"] button{box-sizing:border-box!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:var(--crm-text)!important}
@media(max-width:900px){
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth)>.portal-header{grid-template-columns:minmax(0,1fr) 44px 44px 44px!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.amram-theme-toggle{display:inline-flex!important;grid-column:2!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>.admin-alerts{grid-column:3!important}
 html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header>form[action="/admin/logout"]{grid-column:4!important}
}

/* Shared task navigation and an explicit decision queue. */
:root:not(.amram-v3) .amram-area-navigation--standalone{display:flex;gap:10px;overflow-x:auto;padding:12px 22px;background:var(--crm-panel);border-bottom:1px solid var(--crm-line)}
:root:not(.amram-v3) .amram-area-navigation a{white-space:nowrap}
html[data-amram-theme] body.amram-surface[data-amram-route] .amram-approvals-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:10px 18px!important;border-radius:7px!important;background:#244d7e!important;color:#fff!important;border:1px solid #244d7e!important;font-weight:600!important;text-decoration:none!important}
.summary-approvals{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px;border:1px solid var(--crm-line);background:var(--crm-panel);margin:20px 0}
.summary-approvals h3{margin:6px 0}.summary-approvals p{color:var(--crm-muted)}
html[data-amram-theme] body.amram-surface[data-amram-route] form.review-decision{display:flex!important;gap:12px!important;flex-wrap:wrap!important}
html[data-amram-theme] body.amram-surface[data-amram-route] form.review-decision button{min-width:130px!important;min-height:48px!important;font-size:16px!important;font-weight:600!important;border-radius:7px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] form.review-decision button[value=approved]{background:#205d46!important;color:white!important;border:1px solid #205d46!important}
html[data-amram-theme] body.amram-surface[data-amram-route] form.review-decision button[value=declined]{background:var(--crm-panel)!important;color:var(--crm-text)!important;border:2px solid #a04444!important}
@media(max-width:650px){.summary-approvals{align-items:stretch;flex-direction:column;gap:12px}.review-decision button{flex:1}:root:not(.amram-v3) .amram-area-navigation--standalone{padding:10px 14px}}

/* Accordion groups collapse completely; links align from a common left edge. */
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside .nav-cluster-body[hidden]{display:none!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside .nav-cluster-body>div{min-height:0!important;overflow:hidden!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside :is(.nav-cluster-body button,.nav-cluster-body a.admin-tool-link){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;text-align:left!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .admin-workspace>aside>a.amram-approvals-link{justify-content:flex-start!important;color:#fff!important}

/* Visitor geography and research cards follow the current CRM surfaces. */
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe){background:var(--crm-panel)!important;color:var(--crm-text)!important;border:1px solid var(--crm-line)!important;border-radius:10px!important;box-shadow:none!important;overflow:visible!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe)::before,html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe)::after{display:none!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe) :is(.live-stage,.live-globe){background:var(--crm-soft)!important;border:0!important;box-shadow:none!important;border-radius:8px}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe) :is(h2,.live-total,.live-description,.live-detail,.live-field-footer,.globe-guide,.globe-unknown,.globe-readout label,.globe-timeline output,.hero-context,.eyebrow){color:var(--crm-text)!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe) :is(button,select){background:var(--crm-panel)!important;color:var(--crm-text)!important;border:1px solid var(--crm-border)!important;border-radius:6px!important;min-height:44px}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe) :is(.live-readout,.live-field-footer){border-color:var(--crm-line)!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe) .globe-guide{left:16px;top:12px;font-size:12px}
html[data-amram-theme] body.amram-surface[data-amram-route] .data-observatory:has(.live-globe) .globe-tools{padding:8px 12px;box-sizing:border-box}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main section:has(#growth-signals){padding:0!important;overflow:visible!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main section:has(#growth-signals)>.growth-heading{padding:24px 28px!important;box-sizing:border-box;gap:24px;flex-wrap:wrap}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main :is(.growth-signal,.growth-campaign){padding:28px!important;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main .growth-heading h2{margin:0!important}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main .growth-heading label{display:grid;gap:8px;min-width:160px}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main .growth-review{gap:12px;min-width:0}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main .growth-review input{min-width:0;flex:1 1 260px;box-sizing:border-box}
html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main .growth-signal select{max-width:100%;box-sizing:border-box;margin:8px 0 14px}
@media(max-width:650px){html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main :is(.growth-signal,.growth-campaign),html[data-amram-theme] body.amram-surface[data-amram-route] .growth-main section:has(#growth-signals)>.growth-heading{padding:20px!important}.growth-signal header>div:first-child{min-width:0}.growth-review button{flex:1 1 auto}}
