/* AI Studio hub: title, category filters, tool cards. No hero prompt. No pink or purple panels. */
body { background: #000; color: #f4f1ea; }
:root { --pink: #d4af37; --neon: #c4b0e0; --gold: #d4af37; }
.rc-eye { margin: 18px 0 4px; color: #d4af37; font-size: 13px; font-weight: 700; }
.rc-title, #mdT {
  margin: 8px 0 8px !important;
  font-size: clamp(26px, 7vw, 40px) !important;
  line-height: 1.45 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
#mdT span, .rc-title span {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #d4af37 !important;
  color: #d4af37 !important;
  line-height: 1.45 !important;
}
.rc-paidnote { margin: 0 0 14px; max-width: 40rem; color: #c9c4ba; font-size: 14px; line-height: 1.55; }
#hmNav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px;
  position: static !important; top: auto !important; z-index: auto !important;
  background: transparent; overflow: visible;
}
header.rnx { height: auto; overflow: visible; }
header.rnx .rnx-w {
  height: auto !important;
  min-height: 52px;
  max-width: 100% !important;
  overflow: visible !important;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.rc-main, #mdHero { height: auto !important; max-height: none !important; overflow: visible !important; }
#mdT, #mdT span, .rc-title, .rc-title span {
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.hbg.hvec, .hbg.hph { display: grid; place-items: center; background: #161a20; }
.hbg.hvec .hico { position: static; width: 64px; height: 64px; }
.hbg.hvec .hico svg { width: 40px; height: 40px; }
.hphi { color: #d4af37; font-weight: 800; }
@media (max-width: 480px) {
  header.rnx .rnx-w {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start;
    height: auto !important;
    overflow: visible !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    padding: 8px 10px !important;
  }
  header.rnx .rnx-sp { display: none !important; }
  header.rnx .rnx-brand { order: 1; flex: 0 1 auto; min-width: 0; }
  header.rnx .rnx-brand img { height: 28px !important; width: auto !important; max-width: 128px; display: block; }
  header.rnx .rnx-auth { order: 2; margin-inline-start: auto !important; flex: 0 0 auto; }
  header.rnx .rnx-back { order: 3; flex: 0 1 auto; }
  header.rnx .rnx-w > .rc-lang { order: 4; display: inline-flex !important; margin-inline-start: auto; flex: 0 0 auto; }
  #mdT, .rc-title { font-size: 28px !important; }
}
#hmNav button {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #9b86c4;
  background: #151a1f; color: #f4f1ea; font: inherit; font-weight: 700; cursor: pointer;
}
#hmNav button.on { background: #d4af37; color: #141414; border-color: #d4af37; }
#hmNav button:focus-visible, .hcard:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }
.hcard, .rc-classic {
  background: #151a1f !important; border: 1px solid #9b86c4 !important; border-radius: 16px;
  color: #f4f1ea;
}
.hsec h3 { color: #f4f1ea; }
.hsec p, .hd { color: #b7b3aa; }
.rc-main { padding: 8px 16px 40px; }
.rnx-promo {
  background: #161a20 !important;
  border: 1px solid #9b86c4 !important;
  box-shadow: none !important;
}
.rnx-promo-b, .s2-signin, .rc-cta, .mdq button, .hlab.new, .hsec.c-pink .hlab {
  background: #d4af37 !important;
  color: #141414 !important;
  box-shadow: none !important;
}
.rnx-promo-k { color: #d4af37 !important; }
.hsec.c-pink { --c: #d4af37; --ct: #141414; }
html:not(.rn-app) body { padding-bottom: var(--rn-cc-space, 0px); }
@media (prefers-reduced-motion: reduce) { #hmNav button, .hcard { transition: none; } }
@media (max-width: 759px) {
  html:not(.rn-app) body.rn-phone-studio { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html:not(.rn-app) #rn-phone-bar {
    position: fixed;
    z-index: 200;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    background: #0e1317;
    border-top: 1px solid rgba(124, 106, 154, .45);
  }
  html:not(.rn-app) #rn-phone-bar a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #f4f1ea;
    text-decoration: none;
    font: 700 10px/12px Cairo, sans-serif;
  }
  html:not(.rn-app) #rn-phone-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  html:not(.rn-app) #rn-phone-bar a[aria-current="page"] { box-shadow: inset 0 -3px 0 #8d79b0; }
  html:not(.rn-app) #rn-phone-bar a[aria-current="page"] svg { stroke: #c4b0e0; }
  html:not(.rn-app) #rn-phone-bar span { max-width: 100%; overflow: hidden; white-space: nowrap; }
}
