/* v18.10.11.14 · UI/UX polish from the ui-ux-pro-max audit (loaded last, after the vivid theme).
   Priorities: 1 accessibility (contrast, focus, names) · 2 touch targets · 6 type size · conversion clarity.
   Design rules: design-system/u-dhen-ai/MASTER.md */

/* ---- 1. Call-to-action contrast: white text must reach 4.5:1 ----
   The old pink gradient (#ff3d9a→#ff7ac0) gave 2.4–3.3:1. The deeper pink→purple keeps the brand look
   ("AI purple + generation pink") at 4.8–5.1:1. Fitness / Food / Real Estate keep dark text on bright colour. */
:root{--cta1:#d61f7f;--cta2:#9d3be0;--on-cta:#fff;--muted-hi:#aab2cc}
body[data-section="style"]{--cta1:#9d3be0;--cta2:#7c3aed}
body[data-section="fitness"]{--cta1:var(--acc);--cta2:var(--acc2);--on-cta:var(--on-acc)}
body[data-section="food"]{--cta1:var(--acc);--cta2:var(--acc2);--on-cta:var(--on-acc)}
body[data-section="property"]{--cta1:var(--acc);--cta2:var(--acc2);--on-cta:var(--on-acc)}
button.primary,.generate-big,a.btn.primary,
body[data-section] #page-style #udhen-simple-style button.primary{background:linear-gradient(135deg,var(--cta1),var(--cta2))!important;color:var(--on-cta)!important;border-color:transparent!important}
button.primary:hover,.generate-big:hover{background:linear-gradient(135deg,var(--cta1),var(--cta2))!important;color:var(--on-cta)!important;filter:brightness(1.12)}
.plan-badge{background:linear-gradient(135deg,var(--cta1),var(--cta2))!important;color:#fff!important}
.carousel-dot.active,.workflow-step.active i,.lib-cat.active,.creation-tabs button.active{color:#12001f!important}

/* ---- 2. Secondary text that measured below 4.5:1 on the dark background ---- */
#crumb,.studio-shortcuts,.empty-thumb,#prompt-count,.prompt-foot span,.scene-prompt,.clip-empty,
.side-help{color:var(--muted-hi)!important}
/* Style AI studio sits on light panels: there the secondary text gets darker, not lighter (≈6:1 on white) */
/* v18.10.11.18: removed, Style is dark now (see udhen-style-dark.css) */

/* ---- 3. Minimum readable size: 11px for labels/badges, 12px for buttons and body notes ---- */
.ss-style-card small,.udhen-module-card small,.style-photo-copy small,.side-help,.prompt-foot span,.scene-prompt,
.clip-empty,.empty-thumb,.creation-copy p,.studio-shortcuts,.prompt-quality-label,.editor-subtitle,.style-count,
.credit-note span,.credit-note b,.preview-label{font-size:12px!important}
.eyebrow,.ss-eyebrow,.style-uptitle,.format-badge,.live-badge,.tag,.plan-badge,.workflow-step,.u-ready-tag,
.competitive-badge,.ss-preview-badge,.scene-status,.pro-stat,.pro-stat b,.cap-chip,.style-hero-side-label,
.udhen-passport-pill,.style-editorial-intro span,.u-k,.vault-slot,.vault-slot b,.social-preset,.social-preset b,.variant,
.u-search-btn kbd,.carousel-copy .eyebrow{font-size:11px!important}
.creation-actions button,.style-filter-bar button,.quick-tools button,.preset-chip,.udhen-module-card b,
.style-photo-copy span{font-size:12px!important}

/* ---- 4. Keyboard focus is always visible (WCAG 2.4.7) ---- */
:is(a,button,[role=tab],[role=menuitem],summary,[tabindex]:not([tabindex="-1"])):focus-visible{outline:2px solid #fff!important;outline-offset:2px!important;box-shadow:0 0 0 5px color-mix(in srgb,var(--acc) 55%,transparent)!important}
:is(input,select,textarea):focus-visible{outline:2px solid color-mix(in srgb,var(--acc) 80%,#fff)!important;outline-offset:1px}

/* ---- 5. Touch targets: 24px minimum on desktop, 44px on phones ---- */
.carousel-dot{width:24px!important;height:24px!important;padding:8px!important;background-clip:content-box!important;border-radius:999px!important}
.carousel-dot.active{width:41px!important}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-width:18px;accent-color:var(--acc)}
@media (max-width:820px){
  .side .nav button,.supplier-menu button,header.top button,.credit-pill,.u-search-btn,.creation-tabs button,
  [data-creator-tab],.style-filter-bar button,.ss-chip,.preset-chip{min-height:44px}
  input[type=checkbox],input[type=radio]{width:22px;height:22px;min-width:22px}
  button:not(.carousel-dot):not(.u3d-play):not(.udhen-module-card),.u-dd-btn{min-height:44px}
  .u-search-btn{min-width:44px}
  button:not(.carousel-dot):not(.udhen-module-card){min-width:44px}
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select{min-height:44px}
}

/* ---- 6. Pricing: what credits buy (filled in by udhen-polish.js from live prices) ---- */
.plan-value{margin:4px 0 10px;font-size:12.5px;color:var(--muted-hi);line-height:1.45}
.plan-value b{color:var(--text)}
.plan-value-note{margin-top:8px;font-size:12px;color:var(--muted-hi)}

/* ---- 7. Style AI: readable text on photos and on light panels ---- */
.style-collection-card .style-photo-copy,.style-trending-card .style-photo-copy{background:linear-gradient(to top,rgba(8,8,14,.9) 0%,rgba(8,8,14,.72) 55%,rgba(8,8,14,0) 100%);padding-top:34px!important;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.style-photo-copy small{color:#e4e6ea!important}
/* v18.10.11.18: removed, Style is dark now (see udhen-style-dark.css) */
/* v18.10.11.18: removed, Style is dark now (see udhen-style-dark.css) */
/* v18.10.11.18: removed, Style is dark now (see udhen-style-dark.css) */
/* v18.10.11.18: removed, Style is dark now (see udhen-style-dark.css) */
@media (max-width:820px){.style-create-card,#ss-style-search,#style-landing-search{min-height:44px!important}}

/* ===== v18.10.11.15 · whole-project pass ===== */
/* Sign in: "Create an account" / "Forgot password?" were browser-blue on navy (1.9:1). They are the way in for new customers. */
#auth-screen a{color:#ff8fc8!important;font-weight:650;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:10px 2px;font-size:13px}
#auth-screen a:hover{color:#ffb3da!important}
/* Orders › cost estimator header sat on a dark panel with near-black text */
.orders-cost-planner #cost-title{color:#f5f7ff!important}
.orders-cost-planner #cost-title ~ p,.orders-cost-planner .udhen-cost-disclosure{color:var(--muted-hi)!important}
/* long words (CSV column lists, URLs) wrap instead of pushing the page sideways on phones */
.field,.panel,.item{min-width:0}
.field label,.tiny,.muted,.item p{overflow-wrap:anywhere}
.field input[type=file]{max-width:100%}
/* estimator small print sits on white cards: dark grey there */
.orders-cost-planner :is(.udhen-cost-disclosure,.udhen-cost-disclosure b,.udhen-cost-small,.udhen-cost-empty,strong){color:#55595f!important}
.orders-cost-planner > p,.orders-cost-planner > div > p:first-of-type{color:var(--muted-hi)}
@media (max-width:820px){#auth-screen a{padding:12px 2px;min-height:44px}}
