/* MINERALNAYA v7.9.464: OWNED AI page only.  No other routes/plugins are styled. */
/* A single red design system: page -> section -> card -> input.  Premium AI keeps blue accents. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page {
  --mnrai-page:#a51d26;
  --mnrai-section:#851a25;
  --mnrai-surface:#74141f;
  --mnrai-raised:#90202c;
  --mnrai-inset:#68131d;
  --mnrai-border:rgba(255,225,229,.22);
  --mnrai-txt:#fff;
  --mnrai-sub:#f6cad0;
  --mnrai-blue:#75b6ff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell){
  --mnr-ai-ink:var(--mnrai-page);--mnr-ai-panel:var(--mnrai-surface);--mnr-ai-panel-2:var(--mnrai-inset);
  --mnr-ai-line:var(--mnrai-border);--mnr-ai-muted:var(--mnrai-sub);--mnr-ai-white:#fff;
  --aim-bg:var(--mnrai-page);--aim-panel:var(--mnrai-surface);--aim-panel-2:var(--mnrai-inset);
  --aim-line:var(--mnrai-border);--aim-text:#fff;--aim-muted:var(--mnrai-sub);
  background:var(--mnrai-page)!important;color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-tools-standalone,.mnrpd-main,.mnrpd-canvas){background-color:var(--mnrai-page)!important}
/* Legacy generators also paint html/body black with !important.  Scope the reset to this route. */
html[data-mnrpd-brand-theme="red"].mnrpd-ai-covers-html,
html[data-mnrpd-brand-theme="red"].mnrpd-ai-media-html,
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page.mnrpd-ai-covers-page,
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page.mnrpd-ai-media-page{background:#a51d26!important}
/* AI navigation is part of the same interface rather than a separate black banner. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar{
  border-color:var(--mnrai-border);background:linear-gradient(120deg,#75141e,#8c1c2a)!important;
  box-shadow:0 12px 32px rgba(69,6,15,.12);color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar>nav>a{
  border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.055);color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar>nav>a:hover{
  border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.12);
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar>nav>a.is-active{
  border-color:rgba(122,190,255,.7);background:linear-gradient(130deg,rgba(38,106,201,.3),rgba(255,255,255,.08));
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar>nav small{color:#f2c7d3}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar>nav>a>i{background:#9a2330;color:#b8d8ff}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-brand strong{color:#fff}
/* AI PRO monthly subscription: coherent with red, blue only for the Premium identity/accent. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription{
  border:1px solid rgba(130,189,255,.48)!important;
  background:radial-gradient(500px 220px at 100% -40%,rgba(80,147,255,.24),transparent 77%),linear-gradient(125deg,#771728,#812137 56%,#741627)!important;
  box-shadow:0 16px 36px rgba(59,0,13,.13)!important;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription:before{border-color:rgba(149,198,255,.20)}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription :is(.mnrpd-ai-sub-intro h3,.mnrpd-ai-sub-title h3,.mnrpd-ai-sub-quotas strong,.mnrpd-ai-sub-plans strong,.mnrpd-ai-sub-plans li){color:#fff!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription :is(.mnrpd-ai-sub-intro p,.mnrpd-ai-sub-title p,.mnrpd-ai-sub-renew small,.mnrpd-ai-sub-quotas small,.mnrpd-ai-sub-quotas span,.mnrpd-ai-sub-premium-note small,.mnrpd-ai-sub-plans p){color:var(--mnrai-sub)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription :is(.mnrpd-ai-sub-quotas article,.mnrpd-ai-sub-renew,.mnrpd-ai-sub-premium-note,.mnrpd-ai-sub-plans article){
  border-color:rgba(255,220,230,.2)!important;background:rgba(78,6,24,.20)!important;color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription .mnrpd-ai-sub-plans article.is-popular{border-color:rgba(123,192,255,.8)!important;background:rgba(61,78,154,.22)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription :is(.mnrpd-ai-sub-intro span,.mnrpd-ai-sub-title>span){color:#acd3ff}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription .mnrpd-ai-sub-intro>b{border-color:rgba(255,225,228,.24);background:rgba(255,255,255,.08);color:#fff}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription .mnrpd-ai-sub-renew input{accent-color:#66acff}
/* Cover generator: hero, progress, packs, workspace, history all red surfaces. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell :is(.mnrpd-ai-hero,.mnrpd-ai-packs,.mnrpd-ai-builder,.mnrpd-ai-history,.mnrpd-ai-side-card,.mnrpd-ai-premium-gate,.mnrpd-ai-workspace-lock){
  background:linear-gradient(155deg,var(--mnrai-section),#7b1722)!important;
  border-color:var(--mnrai-border)!important;color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-hero{background:radial-gradient(420px 240px at 95% 0,rgba(82,145,245,.11),transparent),linear-gradient(130deg,#8b1c28,#8f202b)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell :is(.mnrpd-ai-hero>aside>div,.mnrpd-ai-pack-grid article,.mnrpd-ai-version,.mnrpd-ai-steps a,.mnrpd-ai-choice label>span){
  background:var(--mnrai-surface)!important;border-color:var(--mnrai-border)!important;color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-packs.is-addon .mnrpd-ai-pack-grid article,
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-pack-grid article.is-featured{background:#8d1d29!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell :is(.mnrpd-ai-mode-tabs,.mnrpd-ai-version-media){background:var(--mnrai-inset)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-mode-tabs button{color:var(--mnrai-sub)}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-mode-tabs button.is-active{background:var(--mnrai-raised)!important;border-color:rgba(139,196,255,.54)!important;color:#fff}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell :is(.mnrpd-ai-steps a>i,.mnrpd-ai-steps a.is-complete>i){background:var(--mnrai-raised);color:#f5d1d7}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-steps a.is-active{background:#97202d!important;border-color:rgba(145,192,255,.6)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-choice input:checked+span{background:#972a39!important;border-color:rgba(123,192,255,.7)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell :is(.mnrpd-ai-builder,.mnrpd-ai-side-card,.mnrpd-ai-packs,.mnrpd-ai-history) :is(h2,h3,h4,strong){color:#fff}
/* Never render old black input islands inside the red workspace. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell .mnrpd-ai-field :is(input,textarea,select),
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell .mnrpd-aim-field :is(input,textarea,select){
  border:1px solid rgba(255,226,232,.28)!important;background:var(--mnrai-inset)!important;color:#fff!important;box-shadow:none;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) :is(input,textarea)::placeholder{color:#e8a9b5!important;opacity:1}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) :is(input,textarea,select):focus-visible{outline:2px solid #83baff;outline-offset:2px}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) select option{background:#68131d;color:#fff}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-shell :is(.mnrpd-ai-hero-copy p,.mnrpd-ai-hero aside small,.mnrpd-ai-hero aside span,.mnrpd-ai-side-card small,.mnrpd-ai-steps small,.mnrpd-ai-version-body p,.mnrpd-ai-version-body small,.mnrpd-ai-field>small){color:var(--mnrai-sub)!important}
/* Music / Video studio uses its own set of markup classes. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-hero,.mnrpd-aim-packs,.mnrpd-aim-workspace,.mnrpd-aim-builder,.mnrpd-aim-history,.mnrpd-aim-lock,.mnrpd-aim-gate){
  background:linear-gradient(145deg,var(--mnrai-section),#7d1723)!important;border-color:var(--mnrai-border)!important;color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-hero>aside article,.mnrpd-aim-pack-grid article,.mnrpd-aim-steps a,.mnrpd-aim-history-card,.mnrpd-aim-modes label>span,.mnrpd-aim-choice-grid label>span){
  background:var(--mnrai-surface)!important;border-color:var(--mnrai-border)!important;color:#fff;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-packs.is-addon,.mnrpd-aim-packs.is-addon-packs) .mnrpd-aim-pack-grid article.is-featured{background:#8b1c29!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-packs.is-addon,.mnrpd-aim-packs.is-addon-packs) .mnrpd-aim-pack-grid article{background:var(--mnrai-surface)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-steps a>i,.mnrpd-aim-progress>div){background:#942330!important;color:#fff}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-modes input:checked+span,.mnrpd-aim-choice-grid input:checked+span){background:#992334!important;border-color:rgba(120,182,255,.65)!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-aim-shell :is(.mnrpd-aim-hero p,.mnrpd-aim-hero aside small,.mnrpd-aim-hero aside span,.mnrpd-aim-steps small,.mnrpd-aim-pack-grid p,.mnrpd-aim-field>small,.mnrpd-aim-history-card>small){color:var(--mnrai-sub)!important}
/* Buttons have intentional legible states; blue remains the tool's accent, no Elementor pink ripple. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) :is(.mnrpd-ai-pack-grid button,.mnrpd-ai-submit>button,.mnrpd-aim-pack-grid button,.mnrpd-aim-submit>button){
  color:#fff!important;border:1px solid rgba(255,255,255,.28)!important;background:linear-gradient(115deg,#266cce,#448cfa)!important;
  box-shadow:none!important;transition:background .18s,border-color .18s,transform .18s;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) :is(.mnrpd-ai-pack-grid button,.mnrpd-ai-submit>button,.mnrpd-aim-pack-grid button,.mnrpd-aim-submit>button):hover:not(:disabled){background:linear-gradient(115deg,#387fe7,#5c9fff)!important;transform:translateY(-1px)}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) button:disabled{opacity:.45!important;cursor:not-allowed}
/* Profile dropdown balance: do not let the plus icon become an empty white square. */
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-profile-menu .mnrpd-profile-balance{background:#88202b!important;border-color:rgba(255,227,233,.32)!important;color:#fff!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-profile-menu .mnrpd-profile-balance>i{
  display:grid!important;place-items:center!important;flex:0 0 34px;width:34px!important;height:34px!important;
  border:1px solid rgba(255,255,255,.30)!important;border-radius:11px!important;background:#6b111d!important;color:#fff!important;
}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-profile-menu .mnrpd-profile-balance>i svg{color:#fff!important;stroke:#fff!important;fill:none!important;width:17px!important;height:17px!important;opacity:1!important;visibility:visible!important}
html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-profile-menu .mnrpd-profile-balance :is(small,strong){color:#fff!important}
/* Responsive alignment; avoid subscription tiles getting squeezed by overlay widths. */
@media(max-width:1080px){html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-sub-current{grid-template-columns:1fr}}
@media(max-width:650px){html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-subscription{padding:16px!important;border-radius:20px}html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-hero,.mnrpd-aim-hero){border-radius:22px}html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar>nav>a{min-width:104px}}
@media(prefers-reduced-motion:reduce){html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page .mnrpd-ai-tools-bar *,html[data-mnrpd-brand-theme="red"] body.mnrpd-ai-tools-page :is(.mnrpd-ai-shell,.mnrpd-aim-shell) button{transition:none!important;animation:none!important}}
