/* Readable text in both themes (owner request, 11 Nov 2026). Loaded last.
   Each rule fixes a text measured under the 4.5:1 contrast level in the browser, page by page, dark and light.
   Hues stay as designed; only how light or dark a colour is changes. The menu on the left is dark in both themes. */

/* ---- 1. White text on a coloured button: the colour is deepened only as far as white needs (--accent-btn, set by ux.js) ---- */
html[data-accent] #content .primary:not(:disabled),.pickBtn:not(.hist){background:linear-gradient(180deg,var(--accent-btn,color-mix(in srgb,var(--accent,#7c3aed) 70%,#000)),color-mix(in srgb,var(--accent-btn,color-mix(in srgb,var(--accent,#7c3aed) 70%,#000)) 86%,#000))!important;color:#fff!important}
.primary{background:linear-gradient(105deg,#8b52f0,#6d3fd6)}
.tlPlay{background:linear-gradient(135deg,#7446e0,#1a7fa6)}
.ugcSeg button.on{background:#c2410c}
.upBtn:not(:disabled):not(.outline){background:color-mix(in srgb,var(--plan) 76%,#000)}
.upBtn.featured:not(:disabled){background:#1d4ed8}
.upBtn:disabled{opacity:1}
.vxTag.anNew{background:#15803d!important}
.hvMerge span.on{background:color-mix(in srgb,var(--c) 72%,#000)}

/* ---- 2. Text written in a tool's colour: lighter on dark, darker on light ---- */
html:not(.theme-light) :is(.hmPrice:not(.free):not(.soon),.hvChips span,.hvFaces span,.hvMerge span:not(.on),.hvMerge b,.hvArrow,.hvGo){color:color-mix(in srgb,var(--c) 55%,#fff)}
.theme-light :is(.hmPrice:not(.free):not(.soon),.hvChips span,.hvFaces span,.hvMerge span:not(.on),.hvMerge b,.hvArrow,.hvGo){color:color-mix(in srgb,var(--c) 58%,#000)}
html[data-accent]:not(.theme-light) #content .pagehead .eyebrow{color:color-mix(in srgb,var(--accent) 55%,#fff)}
html[data-accent].theme-light #content .pagehead .eyebrow{color:color-mix(in srgb,var(--accent) 58%,#000)}
html:not(.theme-light) :is(.bpPill,.bpFeature>span,.blHelp a,.mgCount){color:color-mix(in srgb,var(--accent,#9566ff) 55%,#fff)}
.theme-light :is(.mgCount,.pickBtn.hist){color:color-mix(in srgb,var(--accent,#7c3aed) 58%,#000)}
html:not(.theme-light) .upCard h3{color:color-mix(in srgb,var(--plan) 55%,#fff)}
html:not(.theme-light) :is(.modeCard em,.biTabs .on,.howList span){color:#b79cf7}
.shNum{opacity:1;color:#a78bfa}
.theme-light .shNum{color:#6d3cf0}
.theme-light :is(.hmPrice.free,.blBadge.ok,.upSave,.upAlt em,.vxLive,.mgNotice.ok,.shStep em.free){color:#166534}
.theme-light .hmPrice.soon{color:#155e75}
.theme-light .shStep em{color:#0e7490}
.theme-light .mgNotice{color:#92400e}
.theme-light .reqPill{color:#b91c1c}
.theme-light .headerRight .creditPill.low,.theme-light .creditPill.low b{color:#c81e1e}

/* ---- 3. Parts that stayed dark in the light theme, with text turned dark on them ---- */
.theme-light .shCard{background:radial-gradient(ellipse at 0 0,#8b5cf61f,transparent 60%),radial-gradient(ellipse at 100% 100%,#22d3ee1a,transparent 55%),#fff;border-color:#d6c8fb}
.theme-light .shStep{background:#f7f5ff;border-color:#e3dafc}
.theme-light .shCard .pill{color:#0e7490;background:#e0f5fa}
.theme-light .dangerOutline{background:#fff5f7;border-color:#f0b4c3;color:#b4234a}
.theme-light .dangerOutline:hover{background:#ffe9ee}
.theme-light .content label.pickBtn:not(.hist){color:#fff!important}
.theme-light .muHero :is(p,.muBanner){color:#fff!important}
.theme-light .muHero .muHow{color:#c9c9c9!important}

/* ---- 4. Grey secondary text that was too pale ---- */
.theme-light{--muted:#5b6272}
.theme-light :is(.onlinefoot,.searchBox,.searchBox kbd,.sectionlabel,.previewheading span,.total,.optPill,.bpMode button:not(.on)),.theme-light .rcShell .accountName small,.theme-light .accountFormGrid input[readonly]{color:#5b6272}
.theme-light :is(input,textarea)::placeholder{color:#646b7a}
html:not(.theme-light) :is(input,textarea)::placeholder{color:#9b99ad}
html:not(.theme-light) .onlinefoot{color:#9a8ea8}
.progressBubble.idle{opacity:.7}
html:not(.theme-light) .optPill{color:#c4c1d6}
html:not(.theme-light) .activeOffer p{color:#bda8cc}
.sidebar .navtitle{color:#9895ad}
.sidebottom .devby{color:#8f8ca6}

/* ---- 5. Account menu: "My subscription" is a button that opens the plans ---- */
button.menuPlan{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-left:0;border-right:0;border-radius:0}
button.menuPlan:hover{background:#ffffff0d}
.theme-light button.menuPlan:hover{background:#f4f5f7}
.theme-light .menuPlan em{color:#0f766e}
.menuPlan>span{font-size:10.5px;letter-spacing:.3px}
.menuPlan b{font-size:10.5px}
.menuPlan em{font-size:11px;font-weight:700;color:#8fe3c4}
.theme-light .menuPlan{background:#f7f8fa}
.theme-light .menuSymbol{color:#6d3cf0}
.theme-light .logout .menuSymbol{color:#9a4a6a}

/* ---- 6. Light theme: task history, 1 Click Video and Animated stickman forms ---- */
.theme-light .historyHeading button,.theme-light .historyItems p{color:#5b6272}
.theme-light :is(.vmBadge,.vmPill){color:#5b2fd0}
.theme-light .anLocked{opacity:.9}
.vmBtn.dark{background:#7446e0}
html:not(.theme-light) :is(.vmBadge,.vmPill){color:#b79cf7}
.theme-light .vmLink{color:#92400e}
.theme-light .vmMore{color:#5b2fd0}
html[data-accent]:not(.theme-light) #content .inlineHead em{color:color-mix(in srgb,var(--accent) 55%,#fff)}
html[data-accent].theme-light #content .inlineHead em{color:color-mix(in srgb,var(--accent) 58%,#000)}

/* ---- 7. Admin (owner only) and the notification badge ---- */
.theme-light .rc{--rc-muted:#5b6272;--rc-sub:#5b6272}
.rcTopRow span{text-shadow:0 1px 2px #000a}
.bellBadge{background:#dc2626}
.theme-light .rcStatus.active{color:#166534}
.theme-light :is(.rcStatus.suspended,.rcErr,.rcBtn.danger){color:#b91c1c}
.theme-light :is(.rcBtn.orange,.rcTag){color:#9a3412}
.theme-light .auKind.on b{color:#5b2fd0}
html:not(.theme-light) .rc{--rc-navy:#7c4ce6;--rc-navy2:#6a3fd9}
.axNote.done,.axNote.st-done,.axNote.st-cancelled{opacity:.92}
.svRow.sv-past,.svRow.sv-unused{opacity:.9}
html:not(.theme-light) :is(.axResult.gain b,.axNote.st-done .axNoteSt,.svTag.sv-active,.svTag.bi-free){color:#4ade80}
html:not(.theme-light) :is(.axResult.loss b,.axUrgent,.axNote.st-cancelled .axNoteSt,.svRisk.hot,.svRisk.hot span){color:#f87171}
html:not(.theme-light) .rc .neg{color:#f87171!important}
html:not(.theme-light) :is(.axInfo,.svTag.sv-planned){color:#93b4f8}
html:not(.theme-light) :is(.axNoteSt,.svCatHead small,.svTag.bi-paid,.svLink){color:#b79cf7}
html:not(.theme-light) :is(.axResult em,.axNote.st-hold .axNoteSt,.svTag.sv-confirm){color:#fbbf24}
html:not(.theme-light) .axTodo{color:#fb923c}
html:not(.theme-light) .svTag.bi-usage{color:#5cc8e0}
html:not(.theme-light) :is(.svTag.sv-unused,.svTag.sv-past){color:#b6c2d2}
html:not(.theme-light) .axPlanHead b{color:color-mix(in srgb,var(--c) 55%,#fff)}
.theme-light :is(.axResult.gain b,.axNote.st-done .axNoteSt,.svTag.sv-active,.svTag.bi-free,.rc .ok>span){color:#166534}
.theme-light :is(.axResult.loss b,.axUrgent,.axNote.st-cancelled .axNoteSt,.svRisk.hot,.svRisk.hot span){color:#b91c1c}
.theme-light .rc .neg{color:#b91c1c!important}
.theme-light :is(.axInfo,.svTag.sv-planned){color:#1d4ed8}
.theme-light :is(.axNoteSt,.svCatHead small,.svTag.bi-paid,.svLink){color:#5b2fd0}
.theme-light :is(.axResult em,.axNote.st-hold .axNoteSt,.svTag.sv-confirm){color:#92400e}
.theme-light .axTodo{color:#9a3412}
.theme-light .svTag.bi-usage{color:#0b5a6c}
.theme-light :is(.svTag.sv-unused,.svTag.sv-past){color:#475569}
.theme-light .axPlanHead b{color:color-mix(in srgb,var(--c) 58%,#000)}
html:not(.theme-light) :is(.rc .ok>span){color:#4ade80}
html:not(.theme-light) :is(.auUserLink,.auKind.on b){color:#b79cf7}
html:not(.theme-light) .rcStatus.suspended{color:#f87171}
.theme-light :is(.svKey.ok,.wlTag.live,.wlIn.ok){color:#166534}
.theme-light :is(.svKey.no,.wlNote.amber){color:#92400e}
.theme-light :is(.wlNote.red,.wlIn.red){color:#b91c1c}
.theme-light .rc .ready>span{color:#1d4ed8}
