/* Readability pass before component consolidation. Scope excludes sign-in screens. */
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main{font-size:14px;line-height:1.65}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(p,label,select,input,textarea){font-size:14px!important;line-height:1.6!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(h2){font-size:22px!important;line-height:1.35!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(h3){font-size:16px!important;line-height:1.45!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(small,.dashboard-note,.data-view-description,.kade-chart-note,.kade-chart-freshness,.kade-chart-comparison){font-size:12px!important;line-height:1.6!important}
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){font-size:14px!important;line-height:1.5!important;min-height:44px!important}
html[data-amram-theme] body.amram-surface[data-amram-route] :is(.status-chip,.tag,.mail-state,.review-status,.today-state,.inbox-request-status){font-size:12px!important;line-height:1.5!important;padding:5px 9px!important;white-space:normal!important}
html:not(.amram-v3)[data-amram-theme] body.amram-surface[data-amram-route] .portal-header :is(.admin-global-search,.admin-quick-capture){font-size:13px!important;min-height:44px!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(button,.button){min-height:44px;line-height:1.5}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(th,td){font-size:13px!important;line-height:1.55!important;vertical-align:top}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(.admin-table-wrap,.table-scroll){max-width:100%;overflow-x:auto}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--crm-blue,#3973c8)!important;outline-offset:3px!important}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) .amram-overview{--summary-ink:var(--crm-text);--summary-muted:var(--crm-muted);--summary-line:var(--crm-line);color:var(--crm-text)}
html[data-amram-theme=night] body.amram-surface[data-amram-route]:not(.amram-auth) .amram-overview :is(.summary-metrics,.summary-stage-group,.summary-chart,.summary-services article){background:var(--crm-panel)!important;color:var(--crm-text)!important;border-color:var(--crm-line)!important}
html[data-amram-theme=night] body.amram-surface[data-amram-route]:not(.amram-auth) .amram-overview :is(.summary-metric>strong,.summary-records strong,.summary-agenda strong,h2,h3){color:var(--crm-text)!important}
html[data-amram-theme=night] body.amram-surface[data-amram-route]:not(.amram-auth) .amram-overview :is(.summary-scope,.summary-metric>span,.summary-metric>small,.summary-records p,.summary-records small,.summary-agenda p,.summary-agenda small){color:var(--crm-muted)!important}
html:not(.amram-v3)[data-amram-theme=day] body.amram-surface[data-amram-route]:not(.amram-auth)>header>a:first-child img.amram-wordmark{filter:brightness(0)!important;opacity:1!important}
html:not(.amram-v3)[data-amram-theme=night] body.amram-surface[data-amram-route]:not(.amram-auth)>header>a:first-child img.amram-wordmark{filter:brightness(0) invert(1)!important;opacity:1!important}
.amram-help{max-width:1120px}.amram-help>section{padding:24px 0;border-bottom:1px solid var(--crm-line)}.amram-help p{max-width:78ch;color:var(--crm-muted)}.amram-help :is(a,button){color:var(--crm-blue)}.amram-help li{margin:10px 0}.amram-help dt{font-weight:600;margin-top:18px}.amram-help dd{margin:6px 0 18px;color:var(--crm-muted)}.help-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.help-area-grid section{padding:22px;background:var(--crm-panel);border:1px solid var(--crm-line);border-radius:8px}.help-area-grid ul{padding-left:20px;margin-bottom:0}.amram-help button{padding:12px 18px;background:var(--crm-panel);border:1px solid var(--crm-border);border-radius:7px}
.amram-tour{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;overflow:auto;background:var(--crm-panel,#fff);color:var(--crm-text,#17273c);border:1px solid var(--crm-border,#9aa9bc);border-radius:12px;box-shadow:0 24px 70px #0005;font:15px/1.65 Poppins,Arial,sans-serif}.amram-tour::backdrop{background:#071426a8}.amram-tour h2{font-size:24px;margin:8px 0 14px;color:inherit}.amram-tour p{color:var(--crm-muted,#59677a);margin:0 0 20px}.amram-tour .tour-progress{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.tour-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.tour-actions :is(button,a){display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--crm-border,#9aa9bc);border-radius:7px;background:var(--crm-panel,#fff);color:var(--crm-text,#17273c);font:inherit;text-decoration:none}.tour-actions button:last-child{background:#244d7e;border-color:#244d7e;color:#fff}
@media(max-width:700px){.help-area-grid{grid-template-columns:1fr}.amram-tour{padding:22px}.tour-actions>*{flex:1 1 auto}html[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) main :is(input,select,textarea){font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.amram-tour,.amram-help *{scroll-behavior:auto!important;transition:none!important}}

/* Touch form controls include dialogs mounted outside main. Keep browser zoom available. */
@media screen and (max-width:900px), screen and (pointer:coarse){
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route]:not(.amram-auth) :is(main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),select,textarea){font-size:16px!important;line-height:1.5!important;min-width:0;max-width:100%;box-sizing:border-box}
 html.amram-v3[data-amram-theme] body.amram-surface[data-amram-route] .work-more>div button{min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere}
}

.help-tour-actions{display:flex;flex-wrap:wrap;gap:12px}.amram-tour progress{display:block;width:100%;height:5px;margin:0 0 22px;accent-color:#2868d8}.amram-tour .tour-progress{margin-bottom:8px}

.amram-help :is(p,li,dd){max-width:65ch;line-height:1.8}.amram-help p{margin:0 0 16px}.amram-help ul,.amram-help ol{padding-left:24px;max-width:68ch}.amram-help li{padding-left:4px;margin:12px 0}.amram-help h2{margin-bottom:16px}.amram-help details{margin:18px 0;max-width:70ch}.amram-help summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:500}.amram-tour .tour-copy p{margin:0 0 14px;max-width:58ch}.amram-tour .tour-copy p:last-child{margin-bottom:0}
