/* Conversational Brand Intelligence: scoped to Profile, no layout changes elsewhere. */
#brand .cbi-session[hidden],#brand .cbi-review[hidden],#brand .cbi-approve[hidden],#brand .cbi-notice[hidden]{display:none!important}
#brand.cbi-open>.hero,#brand.cbi-open>.g2,#brand.cbi-open>#sovaAccountSection{display:none!important}
#brand.cbi-manual>.hero,#brand.cbi-manual>.g2>.card:not(#brandEditor),#brand.cbi-manual>#sovaAccountSection{display:none!important}
#brand .cbi-session{position:relative;max-width:820px;margin:30px auto 0;padding:0 18px 40px;text-align:center;isolation:isolate}
#brand .cbi-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
#brand .cbi-top .back{padding:8px 0;font-size:13px}
#brand .cbi-caption{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7B7E87}
#brand .cbi-session h2{font-size:clamp(30px,4vw,45px);letter-spacing:-.04em;margin:0 0 10px;line-height:1.12}
#brand .cbi-subtitle{font-size:19px;color:#62646B;margin:0}
#brand .cbi-ambient{height:150px;position:relative;width:100%;max-width:600px;margin:12px auto 6px;pointer-events:none;overflow:hidden}
#brand .cbi-ambient::before,#brand .cbi-ambient::after{content:"";position:absolute;inset:25px 8%;border-radius:50%;filter:blur(18px);background:radial-gradient(ellipse at 30% 65%,rgba(237,154,234,.40),transparent 60%),radial-gradient(ellipse at 65% 40%,rgba(255,205,244,.55),transparent 60%),radial-gradient(ellipse at 80% 70%,rgba(255,119,60,.20),transparent 65%);animation:cbiBreath 4.8s ease-in-out infinite}
#brand .cbi-ambient::after{inset:45px 16%;animation-name:cbiRibbon;animation-duration:5.6s;animation-delay:-2.4s}
@keyframes cbiBreath{
 0%,100%{transform:translate(-16px,3px) scale(1,.85) rotate(-2deg);opacity:.65}
 50%{transform:translate(16px,-5px) scale(1.06,1.12) rotate(2deg);opacity:1}
}
@keyframes cbiRibbon{
 0%,100%{transform:translate(20px,-6px) scale(.94,1.15) rotate(3deg);opacity:.85}
 50%{transform:translate(-20px,7px) scale(1.08,.8) rotate(-3deg);opacity:.5}
}
/* Listening-state motion, not an audio amplitude meter or AI processing claim. */
#brand .cbi-session:has(.cbi-mic[aria-pressed="true"]) .cbi-ambient::before{animation-duration:2.4s}
#brand .cbi-session:has(.cbi-mic[aria-pressed="true"]) .cbi-ambient::after{animation-duration:2.8s}
#brand .cbi-mic{width:72px;height:72px;border:0;border-radius:50%;background:var(--sova-action-gradient);color:#fff;display:inline-grid;place-items:center;box-shadow:0 7px 25px rgba(255,119,60,.18);cursor:pointer}
#brand .cbi-mic svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8}
#brand .cbi-mic[aria-pressed="true"]{background:var(--sova-action-gradient-hover);box-shadow:0 0 0 8px rgba(255,119,60,.08)}
#brand .cbi-mic:disabled{opacity:.5;cursor:not-allowed}
#brand .cbi-status{font-size:14px;color:#62646B;line-height:1.5;min-height:24px;margin:12px auto 4px;max-width:560px}
#brand .cbi-links{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:10px 0 20px}
#brand .cbi-link{background:transparent;border:0;color:#62646B;font-size:13px;padding:10px 12px;border-radius:999px;cursor:pointer}
#brand .cbi-link:hover{background:#FFF2F7}
#brand .cbi-review,#brand .cbi-approve{text-align:left;margin:24px auto 0;max-width:660px}
#brand .cbi-review h3,#brand .cbi-approve h3{font-size:22px;margin:0 0 8px}
#brand .cbi-review p,#brand .cbi-approve p{font-size:14px;line-height:1.6;color:#62646B;margin:0 0 12px}
#brand .cbi-transcript{width:100%;min-height:180px;resize:vertical;padding:18px;font:inherit;font-size:16px;line-height:1.6;border:1px solid #E5E6E9;border-radius:18px;background:rgba(255,255,255,.82);color:#4E5057;outline:none}
#brand .cbi-transcript:focus{border-color:#E5C5DD;box-shadow:0 0 12px rgba(237,154,234,.12)}
#brand .cbi-live{min-height:20px;font-size:14px;font-style:italic;color:#7B7E87;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}
#brand .cbi-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
#brand .cbi-approved-story{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6;color:#4E5057;max-height:260px;overflow:auto;margin:16px 0}
#brand .cbi-notice{padding:16px 0;border-top:1px solid #ECEDEF;margin-top:20px}
#brand .cbi-help{font-size:12px;color:#7B7E87;line-height:1.6;max-width:580px;margin:16px auto}
#brand .cbi-error{color:#9B422C;font-size:14px;line-height:1.5;margin:12px 0;min-height:20px}
#brand .cbi-profile-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:8px}
#brand .cbi-story{margin-top:14px;font-size:13px;color:#62646B;line-height:1.6}
#brand .cbi-story summary{cursor:pointer;padding:8px 0;font-weight:600}
#brand .cbi-story-copy{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
#brand .cbi-manual-back{margin-bottom:12px}
@media(max-width:760px){
 #brand .cbi-session{margin-top:20px;padding:0 0 35px}
 #brand .cbi-top{margin-bottom:28px}
 #brand .cbi-caption{font-size:9px}
 #brand .cbi-ambient{height:130px}
 #brand .cbi-mic{width:80px;height:80px}
 #brand .cbi-actions{align-items:stretch;flex-direction:column}
 #brand .cbi-actions .btn{width:100%;min-height:46px}
 #brand .cbi-transcript{min-height:210px}
 #brand .cbi-links{gap:4px}
 #brand .cbi-manual-back{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#brand .cbi-ambient::before,#brand .cbi-ambient::after{animation:none}}
#brand .cbi-session .btn{background:var(--sova-action-gradient);color:#fff;border-color:transparent;font-weight:650}
#brand .cbi-session .btn:disabled{opacity:.6;cursor:wait}
/* Clear secondary controls and calm, borderless transcript surface. */
#brand .cbi-review .cbi-review-help{font-size:12px;line-height:1.6;color:#7B7E87}
#brand .cbi-review .cbi-next-help{margin:12px 0 4px}
#brand .cbi-transcript{border:0;background:#fff;box-shadow:0 5px 24px rgba(40,35,45,.045);border-radius:20px;transition:box-shadow .2s ease,background .2s ease}
#brand .cbi-transcript:focus{box-shadow:0 5px 24px rgba(40,35,45,.045),0 0 15px rgba(237,154,234,.14)}
#brand .cbi-link{background:#F5F5F7;color:#55565E;transition:background .2s ease,box-shadow .2s ease,transform .2s ease;min-height:40px}
#brand .cbi-link:hover{background:#FCECF5;box-shadow:0 3px 12px rgba(237,154,234,.13);transform:translateY(-1px)}
#brand .cbi-link:active{transform:scale(.98);background:#F9E2EF}
#brand .cbi-link:focus-visible,#brand .cbi-mic:focus-visible{outline:2px solid #BB52FB;outline-offset:3px}
#brand .cbi-mic{transition:background .2s ease,box-shadow .2s ease,transform .2s ease}
#brand .cbi-mic[aria-pressed="true"]{animation:cbiListening 1.6s ease-in-out infinite}
@keyframes cbiListening{0%,100%{box-shadow:0 0 0 5px rgba(255,119,60,.09)}50%{box-shadow:0 0 0 12px rgba(255,119,60,.04)}}
@media(max-width:760px){#brand .cbi-link{min-height:44px}#brand .cbi-actions [data-cbi="more"]{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){#brand .cbi-mic[aria-pressed="true"]{animation:none}#brand .cbi-link,#brand .cbi-transcript,#brand .cbi-mic{transition:none}#brand .cbi-link:hover,#brand .cbi-link:active{transform:none}}
/* A single listening entry on the saved Profile. Keep the original ID for hydration. */
#brand #editBrand.cbi-profile-mic{display:grid!important;place-items:center!important;width:64px!important;height:64px!important;min-height:64px!important;padding:0!important;margin:22px auto 0!important;border:0!important;border-radius:50%!important;background:var(--sova-action-gradient)!important;color:#fff!important;box-shadow:0 6px 20px rgba(255,119,60,.15)!important}
#brand .cbi-profile-caption{text-align:center;font-size:14px;color:#62646B;margin:10px 0 2px;line-height:1.5}
#brand.cbi-open{overflow-anchor:none}
/* Saved Profile: a coherent speech invitation and compact right-hand account card. */
#brand .cbi-profile-entry{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:22px}
#brand .cbi-entry-label{font-size:15px;color:#62646B;line-height:1.4}
#brand .cbi-profile-entry #editBrand.cbi-profile-mic{width:48px!important;height:48px!important;min-height:48px!important;margin:0!important;box-shadow:0 4px 14px rgba(255,119,60,.10)!important}
#brand .cbi-profile-entry #editBrand svg{width:22px;height:22px}
#brand #sovaAccountSection{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:18px!important;margin:0!important;padding:22px!important;background:#fff!important;border:1px solid #fff!important;border-radius:22px!important;box-shadow:0 5px 24px rgba(40,35,45,.045)!important;width:100%!important;min-width:0!important}
#brand #sovaAccountSection .sova-account-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
#brand #sovaAccountEmail{font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere;margin-top:5px}
#brand #sovaAccountSection .sova-account-title{font-size:14px!important;font-weight:650}
#brand #sovaAccountSection button{min-width:0!important;min-height:40px!important;padding:10px 8px!important;font-size:12px!important}
#brand.cbi-manual>.g2>.sova-profile-right{display:none!important}
@media(max-width:760px){#brand .cbi-profile-entry{gap:10px}#brand .cbi-entry-label{font-size:14px}#brand #sovaAccountSection button{min-height:44px!important}}

/* Match the Brand Intelligence kicker typography while retaining the invitation layout. */
#brand .cbi-profile-entry .cbi-entry-label{font-family:inherit;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;line-height:1.6}

/* Equal-height action controls; preserve the intentionally stacked phone layout. */
#brand .cbi-review .cbi-actions>button{display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:44px;margin:0;padding:0 16px;line-height:1.2;box-sizing:border-box}
@media(max-width:760px){#brand .cbi-review .cbi-actions>button{height:46px;min-height:46px}}
/* Small presentation-only refinement of the manual editor. */
#create.page .context{border:0!important;box-shadow:0 8px 30px rgba(55,45,50,.035)!important}
#brand #brandEditor{max-width:980px!important;width:100%!important;margin:0 auto!important;padding:32px 36px!important;border:0!important;border-radius:26px!important;background:#fff!important;box-shadow:0 10px 40px rgba(55,45,50,.04)!important}
#brand #brandEditor .cbi-manual-back{margin-bottom:22px}
#brand #brandEditor>h2{letter-spacing:-.035em;line-height:1.2}
#brand #brandEditor>h2+p{max-width:640px;margin-bottom:28px!important;color:#7B7E87!important;line-height:1.65}
#brand #brandEditor .brand-form{gap:24px 22px!important}
#brand #brandEditor .brand-form label{display:flex;flex-direction:column;gap:8px;color:#62646B!important}
#brand #brandEditor .field{margin-top:0!important;padding:13px 15px!important;border:1px solid #E5E6EA!important;border-radius:14px!important;background:#FAFAFB!important;color:#4E5057!important;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
#brand #brandEditor select.field{padding-right:40px!important}
#brand #brandEditor .field:focus{background:#fff!important;border-color:#ED9AEA!important;box-shadow:0 0 0 3px rgba(237,154,234,.1)!important}
#brand #brandEditor textarea.field{min-height:150px;line-height:1.75!important}
#brand #brandEditor .smart-field{padding:12px 0 0!important;margin:0!important}
#brand #brandEditor .smart-head{margin-bottom:16px!important}
#brand #brandEditor .smart-head span{margin-top:5px;color:#7B7E87!important}
#brand #brandEditor .chips{gap:8px!important}
#brand #brandEditor .chip:not(.selected){background:#F7F7F9!important;border-color:transparent!important}
#brand #brandEditor .custom-field{margin-top:14px!important}
#brand #brandEditor #saveBrand{margin-top:32px!important;min-height:46px}
@media(max-width:760px){
 #brand #brandEditor{padding:24px 20px!important;border-radius:22px!important}
 #brand #brandEditor .brand-form{gap:22px!important}
 #brand #brandEditor .field{font-size:16px!important}
 #brand #brandEditor textarea.field{min-height:180px}
}
@media(prefers-reduced-motion:reduce){#brand #brandEditor .field{transition:none}}
/* Phone-specific layout: concise controls and a listening area within the first screen. */
@media(max-width:760px){
 #home #trafficPeriod{font-size:12px!important;width:108px!important;max-width:none!important;min-height:40px!important;padding:10px 26px 10px 12px!important;background-position:calc(100% - 16px) 18px,calc(100% - 12px) 18px}
 #home .home70-panelhead{gap:10px;flex-wrap:wrap}
 #brand .cbi-session{margin-top:10px;padding-bottom:24px}
 #brand .cbi-top{margin-bottom:22px;align-items:center}
 #brand .cbi-caption{max-width:140px;font-size:8px;line-height:1.5}
 #brand .cbi-session h2{font-size:30px;max-width:300px;margin:0 auto 8px;line-height:1.12}
 #brand .cbi-subtitle{font-size:16px}
 #brand .cbi-ambient{height:100px;margin:4px auto}
 #brand .cbi-mic{width:68px;height:68px}
 #brand .cbi-status{font-size:13px;margin-top:10px}
 #brand .cbi-links{gap:8px;margin:10px 0 12px}
 #brand .cbi-help{font-size:11px;line-height:1.5;margin:12px auto;max-width:320px}
 #brand .cbi-review,#brand .cbi-approve{margin-top:22px}
 #brand .cbi-review h3,#brand .cbi-approve h3{font-size:20px}
 #brand .cbi-transcript{min-height:160px;padding:16px}
 #brand .cbi-review .cbi-actions{gap:10px}
 #brand .cbi-review .cbi-actions [data-cbi="more"]{align-self:stretch}
 #brand .cbi-profile-entry{min-height:56px;cursor:pointer;border-radius:28px}
 #brand .cbi-profile-entry:focus-visible{outline:2px solid #BB52FB;outline-offset:3px}
}

/* Phones keep one return action; desktop retains the Home shortcut. */
@media(max-width:760px){
 #brand.cbi-open>.back.homeBtn,#brand.cbi-manual>.back.homeBtn{display:none!important}
}
/* Place the range control slightly closer to the right inset; center its label. */
#home #trafficPeriod{margin-left:auto;position:relative;left:4px;text-align:center;text-align-last:center}

/* Subtle feedback for native platform selectors, without changing their behavior. */
@media(hover:hover){#brand #brandEditor select.lang-select:hover{background-color:#FFF6EF!important;border-color:#F4DDCC!important;box-shadow:0 3px 12px rgba(255,119,60,.08)!important}}
#create #dirs>.eye,#create #platforms>.eye{margin:0 0 8px!important;padding:0;text-align:left}
#create #dirs>h2,#create #platforms>h2{margin:0 0 24px!important;padding:0;text-align:left}

@media(max-width:760px){
 #create #dirs>.eye,#create #dirs>h2,#create #platforms>.eye,#create #platforms>h2{text-align:center}
 #brand .sova-conclusion{border:1px solid #ECEDEF!important;border-radius:15px!important;background:rgba(255,255,255,.72)!important}
}

/* Broad, faint Profile shadows blend into the page without a hard edge. */
@media(max-width:760px){
 #brand>.g2>.card:first-child,#brand .sova-profile-right>.card,#brand #sovaAccountSection{box-shadow:0 10px 56px -12px rgba(75,63,69,.045)!important;border-color:transparent!important}
 #brand,#brand>.g2,#brand .sova-profile-right{overflow:visible!important}
}

/* Evidence-based analysis stays inside the existing Understanding surface. */
#sova-brand-analysis .sova-analysis-insight{margin-top:18px}
#sova-brand-analysis .sova-analysis-insight p{margin:7px 0}
#sova-brand-analysis .sova-analysis-evidence{font-size:11px;color:#8b7a87;border-left:2px solid #f0dce7;padding-left:10px}
#sova-brand-analysis ul{padding-left:18px}
#sova-brand-analysis button{margin-top:10px;white-space:normal}
