/* 2026-10-26 ux1026: mobile overflow fixes (AyzoraOne) */
@media(max-width:640px){
 body{overflow-x:clip}
 .ov-cust{flex-wrap:wrap;max-width:100%;min-width:0}
 .ov-cust input{min-width:0;max-width:100%;flex:1 1 130px;width:auto;box-sizing:border-box}
 .toolbar.ov-range,.toolbar.rp-range{max-width:100%;min-width:0}
 .topbar .dd-menu.right{right:0;max-width:calc(100vw - 16px)}
}
@media(max-width:640px){.t5-list{grid-template-columns:minmax(0,1fr)!important}.t5,.t5-list>*{min-width:0;max-width:100%}.t5-st{flex-shrink:1;min-width:0}.topbar{column-gap:4px}}
/* tb1026b: centred product row, initials-only profile chip beside bell */
.topbar{flex-wrap:nowrap!important;overflow:visible}
.topbar>.sp{flex:1 1 auto!important;min-width:4px!important;width:auto!important}
.topbar>.ayz-top{margin-left:0!important;margin-right:0!important;position:static!important;transform:none!important;left:auto!important;top:auto!important}
.topbar>.dd:last-child>.dd-btn{padding:0!important;gap:0!important;border-radius:50%}
.topbar>.dd:last-child>.dd-btn>.name,.topbar>.dd:last-child>.dd-btn>svg.i{display:none!important}
.topbar>.dd:last-child>.dd-btn>.avatar{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}
.ux-who{display:flex;align-items:center;gap:10px;padding:2px 0 6px}
.ux-who .avatar{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;flex:none;overflow:hidden}
.ux-who .avatar img{width:100%;height:100%;object-fit:cover}
.ux-who b{display:block}.ux-who small{opacity:.7}
.topbar>.ayz-top{flex:0 0 auto!important;width:auto!important}
/* GEMBED: inside Voice */
html.ayz-embed .sidebar,html.ayz-embed .topbar,html.ayz-embed .menu-btn{display:none!important}
html.ayz-embed .layout{display:block!important}
html.ayz-embed .content,html.ayz-embed main{margin-left:0!important;width:100%!important;max-width:none!important}
/* TBFIT1026: centre icon row on the bar when there is room */
/* HDR1105: NEVER position:absolute the product nav — it overlapped Guide/bell/SEO/Data Hunting at wide widths. Flex only. */
@media(min-width:1680px){html body .topbar>span.sp{flex:1 1 auto!important;width:auto!important;min-width:8px!important}}
/* A11Y1026: Growth contrast fixes (Add client card, eyebrows, pills) */
button.card.cl-add,button.card.cl-add:hover{background:var(--card,#fff)!important;color:var(--text,#171A3D)!important;border:1.5px dashed rgba(30,107,255,.45)!important;box-shadow:none!important}
button.card.cl-add b{color:inherit!important}
button.card.cl-add small{color:#4A4D6E!important}
button.card.cl-add .ico{background:linear-gradient(135deg,#1E6BFF,#06B9E2)!important;color:#fff!important;border-radius:50%}
button.card.cl-add .ico svg,button.card.cl-add .ico svg *{stroke:#fff!important;color:#fff!important}
html[data-theme=dark] button.card.cl-add{background:#1B1E45!important;color:#fff!important}
html[data-theme=dark] button.card.cl-add small{color:#C9D3F5!important}
html:not([data-theme=dark]) .eyebrow,html:not([data-theme=dark]) .pill.ok{color:#046580!important}
.gh-pill.on{color:#126B33!important}
html:not([data-theme=dark]) .gh-foot{filter:brightness(.8)}
html[data-theme=dark] .mg-t{color:#fff!important}
html[data-theme=dark] .mg-s,html[data-theme=dark] .sidebar small{color:#C9D3F5!important}
html[data-theme=dark] .eyebrow,html[data-theme=dark] main a:not(.btn):not(.ayz-sm-a){color:#8DB8FF!important}
.kp-v{text-shadow:0 1px 2px rgba(0,0,0,.35)}

/* A11Y1026d */html[data-theme=dark] .kp[style*="06B9E2"],html[data-theme=dark] .kp[style*="0EA5E9"],html[data-theme=dark] .kp[style*="0891B2"]{background:linear-gradient(135deg,#0577A0,#08506A)!important}
@media(max-width:640px){main table{display:block;max-width:100%;overflow-x:auto}}

/* A11Y1026e */.sub-id{color:#5F6280}html[data-theme=dark] .sub-id{color:#A3A6CF}
html[data-theme=dark] b[style*="primary"],html[data-theme=dark] b[style*="0062C5" i],html[data-theme=dark] h3 b,html[data-theme=dark] .card>b{color:#8DB8FF}
@media(max-width:640px){table{display:block;max-width:100%;overflow-x:auto}}

/* A11Y1026f */html[data-theme=dark] summary b{color:#E6E9FF}html[data-theme=dark] a.cm-big,html[data-theme=dark] main a.cm-big{color:#fff!important}
@media(max-width:640px){#au_gr{max-width:100%;overflow-x:auto}#au_gr table{display:block!important;max-width:100%;overflow-x:auto!important}}

/* A11Y1026h */@media(max-width:640px){table{display:block!important;max-width:100%!important;overflow-x:auto!important}}

/* A11Y1026i */@media(max-width:640px){#au_wd{max-width:100%;overflow-x:auto}#au_wd ul,#au_wd li{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}}

/* A11Y1026j */@media(max-width:640px){#view .pill{white-space:normal;max-width:100%;overflow-wrap:anywhere}#view .card,#view section,#view aside{min-width:0;max-width:100%}#view select,#view input{max-width:100%}}

/* HDR1028 + HDR1105: one flex tools slot on the right. Guide, Ongoing tasks, bell, theme, photo live inside #ayz-top-tools.
   Never position:absolute / fixed those into the nav. Photo stays last via order. */
#ayz-top-tools{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;margin-left:auto;min-width:0;max-width:100%;position:relative;z-index:5}
#ayz-top-tools>#ayz-guide-slot,#ayz-top-tools>#ayz-bg-slot{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
#ayz-top-tools .dd:last-of-type{order:99;margin-left:0;flex-shrink:0}
.topbar>.ayz-top{flex:1 1 auto;min-width:0;overflow:hidden;justify-content:center}
.topbar>.ayz-top .lb{white-space:nowrap}
@media(max-width:1280px){.topbar>.ayz-top .lb{display:none}}
.topbar>.sp{flex:1 1 auto!important;min-width:4px!important;width:auto!important}
/* kill legacy "first after spacer gets margin-left:auto" which fought injectors */
.topbar>.sp+*{margin-left:0!important}
#ayz-top-tools,#ayz-top-tools *{position:static}
#ayz-top-tools .dd{position:relative}
#ayz-top-tools .dd-menu{position:absolute}
#gs_btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:640px){#gs_btn{padding:0 8px;width:34px;min-width:34px;max-width:34px;overflow:hidden;font-size:0!important;gap:0}#gs_btn svg{width:16px;height:16px}}
