
/* Base: stronger contrast in both themes without flattening risk/positive semantic colors. */
html[data-theme=dark]{--mp-polish-text:#f1f6ff;--mp-polish-muted:#cad9eb;--mp-polish-border:#526982;--mp-polish-field:#0d1b2a;--mp-polish-focus:#72f1bd}
html[data-theme=light]{--mp-polish-text:#10263b;--mp-polish-muted:#3e546a;--mp-polish-border:#96aabd;--mp-polish-field:#fff;--mp-polish-focus:#006c4b}
html[data-theme] body{font-family:"IBM Plex Sans Arabic",Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:500;line-height:1.65;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
html[lang=en][data-theme] body,html[lang=fr][data-theme] body,html[lang=es][data-theme] body{font-family:Inter,"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-theme] :is(h1,h2,h3,h4,.auth-head h2,.tool-directory-name,.workspace-header h1,.screen-title b){color:var(--mp-polish-text)!important;font-weight:750;letter-spacing:0;line-height:1.38}
html[data-theme] :is(.sub,.muted,.note,.hint,.description,.auth-head p,.google-note,.tool-directory-description,.overview-item>span,.workspace-header .sub,.legal,.footnote,.field>small.password-guidance,.field>span,.mobile-brand-title small){color:var(--mp-polish-muted)!important;opacity:1;font-weight:550;line-height:1.6}
html[data-theme] :is(.tab,.back,.submit,.google-login,.workspace-home-link,.nav-item,.button,.mobile-menu-item,.mobile-tabbar button){font-weight:700;letter-spacing:0;line-height:1.35}
html[data-theme] :is(.field input,input[type=email],input[type=password],input[type=search],select,textarea){font-size:16px!important;color:var(--mp-polish-text)!important;border-color:var(--mp-polish-border)!important}
html[data-theme=dark] :is(input[type=email],input[type=password],input[type=search],textarea){background:var(--mp-polish-field)!important}
html[data-theme=light] :is(input[type=email],input[type=password],input[type=search],textarea){background:var(--mp-polish-field)!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#b6c9df!important;opacity:1}
html[data-theme=light] :is(input,textarea)::placeholder{color:#526a7d!important;opacity:1}
html[data-theme] :is(button,a,input,select,summary,textarea):focus-visible{outline:3px solid var(--mp-polish-focus)!important;outline-offset:3px}
html[data-theme=dark] :is(.tool-directory-card,.card,.auth-card,.overview,.overview-item,.mobile-menu-item){border-color:#374c64!important}
html[data-theme=light] :is(.tool-directory-card,.card,.auth-card,.overview,.overview-item,.mobile-menu-item){border-color:#acbfd0!important}
html[data-theme=dark] :is(.overview-item strong,.price-cell,.tool-directory-name,.mobile-tabbar button[aria-pressed=true]){color:#eaf5ff!important}
html[data-theme=light] :is(.overview-item strong,.price-cell,.tool-directory-name){color:#0f2a40!important}
html[data-theme=dark] .google-login{background:#fff!important;color:#202124!important;border:1px solid #d7e0e8!important}
html[data-theme=dark] .google-login .google-login-label{color:#202124!important}
html[data-theme=light] .google-login{background:#fff!important;color:#202124!important;border:1px solid #99aabc!important}
html[data-theme=light] .google-login .google-login-label{color:#202124!important}
html[data-theme] .google-login:disabled{opacity:.72;cursor:not-allowed}
/* Brand partners: three distinct roles within one horizontal footer strip, no activation claims. */
html[data-theme] .mp-provider-strip{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:8px;max-width:min(1060px,calc(100% - 24px));width:auto;margin:12px auto 0;padding:10px 0;border-top:1px solid var(--mp-polish-border)!important;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
html[data-theme] .mp-provider-strip .business-badge{border-color:var(--mp-polish-border)!important;padding:4px 7px;min-height:42px;max-height:50px;flex:0 0 auto;background:#fff!important}
html[data-theme] .mp-provider-strip .business-logo{width:104px;height:auto;max-height:34px;object-fit:contain}
html[data-theme] .mp-provider-item{min-width:0;flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:5px 10px;min-height:42px;border:1px solid var(--mp-polish-border);border-radius:9px;background:var(--surface,#121f2c);color:var(--mp-polish-text);white-space:nowrap;line-height:1.25;font-size:12px;font-weight:700}
html[data-theme] .mp-provider-item small{font-size:10px;color:var(--mp-polish-muted);font-weight:550;line-height:1.15}
html[data-theme] .mp-provider-item .mp-provider-name{font-weight:800;direction:ltr;unicode-bidi:isolate}
html[data-theme=light] .mp-provider-item{background:#fff}
html[data-theme] .mp-provider-item .mp-provider-copy{display:flex;flex-direction:column;gap:2px}
@media(max-width:760px){
 html[data-theme] .public-entry .nav .wrap{padding-block:8px!important;row-gap:5px!important}
 html[data-theme] .public-entry .nav .links{margin-top:0!important;gap:8px!important;padding-top:4px!important}
 html[data-theme] .public-entry .hero{padding:24px 0 24px!important}
 html[data-theme] .public-entry .hero h1{font-size:clamp(30px,8.7vw,43px)!important;line-height:1.26!important;margin:8px 0!important}
 html[data-theme] .public-entry .lead{font-size:15px!important;line-height:1.6!important}
 html[data-theme] .public-entry .actions{margin-top:14px!important;gap:8px!important}
 html[data-theme] .public-entry .actions .button{min-height:46px!important;padding:9px!important;font-size:14px!important}
 html[data-theme] .public-entry .hero-grid{gap:16px!important}
 html[data-theme] .public-entry .entry-explore{margin-top:5px!important}
 html[data-theme] .shell{padding-top:12px!important;width:calc(100% - 24px)!important;max-width:600px!important}
 html[data-theme] .topbar{margin-bottom:10px!important;gap:5px 9px!important}
 html[data-theme] .auth-card{padding:16px!important;border-radius:16px!important}
 html[data-theme] .auth-head h2{font-size:23px!important;margin:0 0 4px!important}
 html[data-theme] .auth-head p{font-size:13px!important;margin:0 0 10px!important}
 html[data-theme] .secure-label{margin-bottom:7px!important;font-size:11px!important}
 html[data-theme] #googleLogin{min-height:48px!important;font-size:14px!important;margin:0!important;gap:9px!important}
 html[data-theme] .google-note{font-size:12px!important;margin:5px 0 10px!important;line-height:1.5!important}
 html[data-theme] .tabs{margin-top:6px!important;gap:4px!important}
 html[data-theme] .tab{min-height:43px!important;font-size:13px!important;padding:8px!important}
 html[data-theme] .panel{padding-top:9px!important}
 html[data-theme] .panel h3{font-size:18px!important;margin:2px 0 3px!important}
 html[data-theme] .panel>.sub{font-size:12px!important;margin:0 0 10px!important}
 html[data-theme] .field{margin-bottom:10px!important;gap:4px!important}
 html[data-theme] .field input{min-height:46px!important}
 html[data-theme] .human{padding:10px!important;margin:9px 0!important}
 html[data-theme] .submit{min-height:48px!important}
 html[data-theme] .legal{margin-top:12px!important;line-height:1.55!important}
 html.mobile-workspace .x,html[dir=rtl].mobile-workspace .x{padding:11px 12px 10px!important}
 html.mobile-workspace .workspace-header{margin:0 0 10px!important}
 html.mobile-workspace .workspace-header h1{font-size:22px!important}
 html.mobile-workspace .overview{margin-bottom:14px!important}
 html.mobile-workspace .overview-item{padding:10px 12px!important;gap:3px!important}
 html.mobile-workspace .overview-item>span{font-size:12px!important;color:var(--mp-polish-muted)!important}
 html.mobile-workspace .overview-item strong{font-size:22px!important}
 html.mobile-workspace .tool-directory{margin-bottom:12px!important}
 html.mobile-workspace .tool-directory-group{margin-bottom:14px!important}
 html.mobile-workspace .tool-directory-grid{gap:8px!important}
 html.mobile-workspace .tool-directory-card{min-height:128px!important;padding:11px!important;gap:7px!important;border-radius:12px!important}
 html.mobile-workspace .tool-directory-name{font-size:14px!important;line-height:1.4!important}
 html.mobile-workspace .tool-directory-description{font-size:12px!important;line-height:1.45!important}
 html.mobile-workspace .tool-directory-group h3{font-size:13px!important}
 html.mobile-workspace .mobile-tabbar button{font-size:12px!important;color:var(--mp-polish-muted)!important;min-height:51px!important}
 html.mobile-workspace .mobile-tabbar button[aria-pressed=true]{color:var(--mp-polish-text)!important}
 html[data-theme] .mp-provider-strip{justify-content:flex-start;padding:7px 0;gap:6px;max-width:calc(100% - 20px)}
 html[data-theme] .mp-provider-item{padding:4px 7px;font-size:11px;min-height:40px}
 html[data-theme] .mp-provider-item small{font-size:9.5px}
}
@media(max-width:360px){html[data-theme] .mp-provider-strip{gap:4px}html[data-theme] .mp-provider-item{padding:4px 6px}html[data-theme] .public-entry .actions{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){html[data-theme] *{scroll-behavior:auto!important}}
/* Keep moved sidebar controls in the account sheet's own layout. */
@media(max-width:680px){
 html[data-theme] #mobileAccountDialog{padding:0 14px calc(16px + env(safe-area-inset-bottom));max-height:88dvh;overflow-y:auto;overflow-x:hidden;border-radius:20px 20px 0 0}
 html[data-theme] #mobileAccountDialog .mobile-account-head{gap:10px;padding:14px 0;margin:0 0 12px;background:var(--surface,#0e1929)}
 html[data-theme] #mobileAccountDialog .mobile-account-head h2{font-size:19px;margin:0;line-height:1.5;min-width:0}
 html[data-theme] #mobileAccountDialog .mobile-account-head button{width:40px;height:40px;min-height:40px;flex:0 0 40px;padding:0;border-radius:10px}
 html[data-theme] #mobileAccountDialog .header-actions{display:grid!important;grid-template-columns:minmax(0,1fr);gap:14px!important;align-content:start;align-items:start;justify-items:stretch;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;width:100%}
 html[data-theme] #mobileAccountDialog .workspace-disclosure{display:block!important;flex:none!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;width:100%;min-width:0}
 html[data-theme] #mobileAccountDialog .workspace-disclosure>summary{min-height:24px!important;margin:0 0 6px!important;padding:0!important;line-height:1.6}
 html[data-theme] #mobileAccountDialog .workspace-disclosure-panel{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;align-content:start;position:static!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;max-width:100%;width:100%;overflow:visible}
 html[data-theme] #mobileAccountDialog .sidebar-language-switch{display:block!important;width:100%!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important;transform:none!important}
 html[data-theme] #mobileAccountDialog .language-switch{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;padding:8px!important;min-height:0;position:static!important;inset:auto!important;transform:none!important}
 html[data-theme] #mobileAccountDialog .language-switch button{display:flex!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;flex:none!important;width:100%!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:9px 8px!important;margin:0!important;justify-content:center!important;align-items:center!important;font-size:13px!important;line-height:1.5!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere;border-radius:8px}
 html[data-theme] #mobileAccountDialog .language-switch button:before,html[data-theme] #mobileAccountDialog .language-switch button:after{display:none!important}
 html[data-theme] #mobileAccountDialog .workspace-service-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0!important;width:100%;min-width:0}
 html[data-theme] #mobileAccountDialog .workspace-service-actions .nav-item{min-width:0;min-height:48px;padding:10px;font-size:12px;line-height:1.5;white-space:normal}
 html[data-theme] #mobileAccountDialog>.workspace-home-link{margin:0!important;min-height:46px;padding:10px 12px}
 html[data-theme] #mobileAccountDialog #refreshBadge{justify-self:start;max-width:100%;margin:0;padding:5px 9px;font-size:11px}
 html[data-theme] #mobileAccountDialog #refreshInfo{margin:0;padding:8px 0;font-size:12px;line-height:1.7}
}

