/* «نابغه Agent» — خانهٔ استودیو (۱۴۰۵/۰۹/۰۴) سبکِ تیزر (ریلِ t26) + نتایجِ جستجویِ «چه کاری…» نسخهٔ ۲.
   اندازه = همان نسخهٔ جمع‌وجور (۷۶۰×۱۹۴ دسکتاپ، ۱۸۸ گوشی) به خواستِ مالک. */
:is(#envStudioHub,.agh-mkt) .agh{
  --agh-1: #7C5CFF; --agh-2: #C04BF2; --agh-3: #FF6FA8;
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 22px;
  max-width: 760px; height: 194px; margin: 40px auto 0; padding: 0 28px 0 22px; box-sizing: border-box;
  border-radius: 22px; text-decoration: none; color: #fff; cursor: pointer; overflow: visible;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(50% 110% at 0% 100%, rgba(192,75,242,.12), transparent 60%),
    #07070B;   /* مشکیِ عمیق (مالک) — در حالتِ روشن هم */
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 14px 34px -16px rgba(0,0,0,.6);
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
:is(#envStudioHub,.agh-mkt) .agh-glow{ position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; overflow: hidden; }
:is(#envStudioHub,.agh-mkt) .agh-glow::before{ content: ""; position: absolute; inset: -40% -10%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.10) 80%, transparent 90%);
  animation: aghSweep 7s linear infinite; }
@keyframes aghSweep{ to { transform: rotate(360deg); } }
:is(#envStudioHub,.agh-mkt) .agh:hover{ transform: translateY(-3px); box-shadow: 0 22px 46px -16px rgba(124,92,255,.75), 0 0 0 1px rgba(255,255,255,.08) inset; }
:is(#envStudioHub,.agh-mkt) .agh:active{ transform: translateY(0) scale(.99); }
:is(#envStudioHub,.agh-mkt) .agh:focus-visible{ outline: 3px solid rgba(124,92,255,.6); outline-offset: 3px; }
/* قابِ گوشی — کمی از لبهٔ بالا بیرون می‌زند (ارتفاعِ کادر عوض نمی‌شود) */
:is(#envStudioHub,.agh-mkt) .agh-phone{ flex: none; align-self: flex-end; position: relative; width: 122px; height: 216px; margin-bottom: 12px; border-radius: 20px; padding: 4px; box-sizing: border-box;
  background: #0B0518; box-shadow: 0 0 0 1.5px rgba(255,255,255,.18), 0 18px 34px -10px rgba(0,0,0,.6); transform: rotate(-4deg); transition: transform .3s; }
:is(#envStudioHub,.agh-mkt) .agh:hover .agh-phone{ transform: rotate(0) translateY(-4px); }
:is(#envStudioHub,.agh-mkt) .agh-phone::after{ content: ""; position: absolute; top: 8px; left: 50%; width: 30px; height: 5px; margin-left: -15px; border-radius: 9px; background: rgba(0,0,0,.55); }
:is(#envStudioHub,.agh-mkt) .agh-phone video, :is(#envStudioHub,.agh-mkt) .agh-poster{ position: absolute; inset: 4px; display: block; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover; border-radius: 16px; }
:is(#envStudioHub,.agh-mkt) .agh-poster{ background: linear-gradient(160deg, #2E1065, #12081F); }   /* هرگز خالی نمی‌ماند */
:is(#envStudioHub,.agh-mkt) .agh-phone video{ background: transparent; }
/* کدِ پس‌زمینه: ۷٪، لبه‌ها محو، آرام بالا می‌رود */
:is(#envStudioHub,.agh-mkt) .agh-code{ position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: .075;
  -webkit-mask-image: radial-gradient(75% 90% at 50% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(75% 90% at 50% 50%, #000 35%, transparent 100%); }
:is(#envStudioHub,.agh-mkt) .agh-code pre{ margin: 0; padding: 0 0 0 40%; direction: ltr; text-align: left; white-space: pre; color: #C4B5FD;
  font: 500 11px/18px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; animation: aghCode 42s linear infinite; }
@keyframes aghCode{ to { transform: translateY(-50%); } }
:is(#envStudioHub,.agh-mkt) .agh.is-off .agh-code pre, :is(#envStudioHub,.agh-mkt) .agh.is-off .agh-glow::before, :is(#envStudioHub,.agh-mkt) .agh.is-off .agh-cta::after{ animation-play-state: paused; }
:is(#envStudioHub,.agh-mkt) .agh-body{ flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
:is(#envStudioHub,.agh-mkt) .agh-top{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
:is(#envStudioHub,.agh-mkt) .agh-title{ display: inline-flex; align-items: center; gap: 7px; font-size: 1.4rem; font-weight: 900; line-height: 1.3; }
:is(#envStudioHub,.agh-mkt) .agh-title .ui-ic{ width: 21px; height: 21px; color: #F0ABFC; }
:is(#envStudioHub,.agh-mkt) .agh-tag{ padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #FDE68A; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.35); }
:is(#envStudioHub,.agh-mkt) .agh-tag--ok{ color: #A7F3D0; background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.35); }
:is(#envStudioHub,.agh-mkt) .agh-lead{ font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.78); }
:is(#envStudioHub,.agh-mkt) .agh-cta{ position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 900; color: #2E1065; background: #fff; box-shadow: 0 8px 20px -8px rgba(255,255,255,.55); transition: transform .2s, box-shadow .2s; }
:is(#envStudioHub,.agh-mkt) .agh-cta i{ font-style: normal; transition: transform .2s; }
:is(#envStudioHub,.agh-mkt) .agh-cta::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(240,171,252,.7); animation: aghRing 2.2s ease-out infinite; pointer-events: none; }
@keyframes aghRing{ 0% { box-shadow: 0 0 0 0 rgba(240,171,252,.65); } 80%, 100% { box-shadow: 0 0 0 12px rgba(240,171,252,0); } }
:is(#envStudioHub,.agh-mkt) .agh:hover .agh-cta{ transform: scale(1.03); box-shadow: 0 10px 26px -6px rgba(255,255,255,.7); }
:is(#envStudioHub,.agh-mkt) .agh:hover .agh-cta i{ transform: translateX(-4px); }
@media (max-width: 640px){
  :is(#envStudioHub,.agh-mkt) .agh-code pre{ padding-left: 10%; }
  :is(#envStudioHub,.agh-mkt) .agh{ height: 188px; gap: 14px; margin-top: 30px; padding: 0 14px 0 12px; border-radius: 20px; }
  :is(#envStudioHub,.agh-mkt) .agh-phone{ width: 96px; height: 170px; margin-bottom: 9px; border-radius: 17px; padding: 3px; }
  :is(#envStudioHub,.agh-mkt) .agh-phone video, :is(#envStudioHub,.agh-mkt) .agh-poster{ inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 14px; }
  :is(#envStudioHub,.agh-mkt) .agh-title{ font-size: 1.12rem; }
  :is(#envStudioHub,.agh-mkt) .agh-title .ui-ic{ width: 17px; height: 17px; }
  :is(#envStudioHub,.agh-mkt) .agh-body{ gap: 6px; }
  :is(#envStudioHub,.agh-mkt) .agh-lead{ font-size: .78rem; line-height: 1.6; }
  :is(#envStudioHub,.agh-mkt) .agh-cta{ align-self: stretch; justify-content: center; padding: 9px 10px; font-size: .8rem; }
}
@media (max-width: 360px){ :is(#envStudioHub,.agh-mkt) .agh-tag{ display: none; } }
@media (prefers-reduced-motion: reduce){
  :is(#envStudioHub,.agh-mkt) .agh, :is(#envStudioHub,.agh-mkt) .agh *, :is(#envStudioHub,.agh-mkt) .agh *::before, :is(#envStudioHub,.agh-mkt) .agh *::after{ animation: none !important; transition: none !important; }
}
.env-calm :is(#envStudioHub,.agh-mkt) .agh-glow::before, .env-calm :is(#envStudioHub,.agh-mkt) .agh-cta::after{ animation: none; }

/* ۱۴۰۵/۰۹/۰۴ (مالک) — همین کادر در صفحهٔ اولِ نابغه‌مارکت، زیرِ کارتِ «استودیوی نابغه» (templates/index.html) */
.agh-mkt #agHero.agh{ max-width: 1000px; margin: 22px auto 0; font-family: inherit; }   /* #id: بر قاعده‌هایِ :is(#envStudioHub,…) غلبه کند */
.agh-mkt .agh-title .ui-ic{ display: inline-block; flex: none; }
.agh-mkt .agh-body, .agh-mkt .agh-lead, .agh-mkt .agh-title{ color: #fff; }
.agh-mkt .agh-lead{ color: rgba(255,255,255,.78); }
@media (max-width: 640px){ .agh-mkt #agHero.agh{ margin-top: 30px; } }
@media (prefers-reduced-motion: reduce){ .agh-mkt .agh, .agh-mkt .agh *, .agh-mkt .agh *::before, .agh-mkt .agh *::after{ animation: none !important; transition: none !important; } }

/* ── نتایجِ جستجویِ «چه کاری می‌خواهید انجام دهید؟» (hub_search.js) ── */
#envStudioHub .hsr{ max-width: 680px; margin: 10px auto 26px; padding: 6px; border-radius: 18px; background: var(--env-solid); border: 1px solid var(--env-border-strong); box-shadow: var(--shadow-md); }
#envStudioHub .hsr[hidden]{ display: none; }
#envStudioHub .hsr-row{ display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 13px; text-decoration: none; color: var(--env-ink); }
#envStudioHub .hsr-row:hover, #envStudioHub .hsr-row.is-sel{ background: color-mix(in srgb, var(--accent) 9%, transparent); }
#envStudioHub .hsr-row.is-sel{ box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent); }
#envStudioHub .hsr-ic{ flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); }
#envStudioHub .hsr-ic > *{ max-width: 26px; max-height: 26px; }
#envStudioHub .hsr-ic--ag{ color: #fff; font-size: 1rem; background: linear-gradient(130deg, #6D5BFF, #B44CF0 60%, #FF6FA8); }
#envStudioHub .hsr-tx{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#envStudioHub .hsr-tx b{ font-size: .88rem; font-weight: 800; }
#envStudioHub .hsr-tx small{ font-size: .74rem; color: var(--env-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#envStudioHub .hsr-tx mark{ background: color-mix(in srgb, #FACC15 38%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
#envStudioHub .hsr-go{ flex: none; color: var(--env-ink-muted); font-weight: 800; opacity: 0; transition: opacity .15s, transform .15s; }
#envStudioHub .hsr-row:hover .hsr-go, #envStudioHub .hsr-row.is-sel .hsr-go{ opacity: 1; transform: translateX(-3px); }
#envStudioHub .hsr-row--agent{ margin-top: 4px; border: 1px dashed color-mix(in srgb, #8B5CF6 45%, transparent); }
#envStudioHub .hsr-row--agent:first-child{ margin-top: 0; margin-bottom: 4px; }
#envStudioHub .hsr-row--agent .hsr-tx b{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #7C3AED; }
#envStudioHub .hsr-empty{ display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px 10px; font-size: .84rem; color: var(--env-ink-muted); text-align: center; }
#envStudioHub .hsr-try{ display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
#envStudioHub .hsr-try button{ padding: 4px 11px; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--env-ink); background: var(--env-paper); border: 1px solid var(--env-border-strong); }
#envStudioHub .hsr-try button:hover{ border-color: var(--accent); }
@media (prefers-color-scheme: dark){
  .env-shell:not(.env-force-light) #envStudioHub .hsr-row--agent .hsr-tx b{ color: #C4B5FD; }
}
.env-shell.env-force-dark #envStudioHub .hsr-row--agent .hsr-tx b{ color: #C4B5FD; }
