/* HeroUI reference treatment, shared with the feature-card product fragments.
   Native CSS on the existing Forma examples; layout and local controls stay intact. */
.fp-app,.fp-scene{
 --fp-ink:#27272a;--fp-muted:#686872;--fp-line:#e9e9ed;
 --fp-surface:#fff;--fp-control:#ededf0;--fp-soft:#f5f5f7;
 --fp-shadow:0 1px 2px #18181b0d,0 3px 6px #18181b08,0 14px 26px -12px #48233c29;
 --fp-shadow-small:0 1px 2px #18181b0d,0 3px 6px #18181b08;
}
#sort .story-tabs{margin-bottom:32px}
.fp-app{background:#fff}
.fp-main{--fp-column-gap:20px;padding:18px 30px 27px}
.fp-rail{background:#fff;border-color:var(--fp-line)}
.fp-rail button{color:#686872;border-radius:10px}
.fp-rail .fp-person{background:var(--fp-control);color:#52525b}
.fp-topbar{gap:14px;min-height:36px}
.fp-period{min-height:34px;padding:7px 10px;border:0;border-radius:999px;background:#f7f6f8;box-shadow:inset 0 0 0 1px #efedf1;font-size:11px;color:var(--fp-ink)}
.fp-period>span{border-color:#d7d7dd;color:inherit}
.fp-watching>button{min-height:34px;padding:7px 10px;border:0;border-radius:999px;background:#f7f6f8;box-shadow:inset 0 0 0 1px #efedf1;font-size:11px;color:var(--fp-ink)}
.fp-watching>button>b{width:19px;height:19px;background:#fff;color:var(--fp-ink);font-size:11px;box-shadow:var(--fp-shadow-small)}
.fp-watching .fp-icon{width:15px;height:15px}
.fp-metric-area{margin:20px 0 24px;padding-bottom:0;border-bottom:0}
.fp-metrics{gap:var(--fp-column-gap)}
.fp-kpi,.fp-kpi:first-child,.fp-kpi:last-child{position:relative;padding:8px 0;border:0;border-radius:0;background:none;box-shadow:none}
.fp-kpi:not(:first-child)::before{content:"";position:absolute;left:calc(var(--fp-column-gap) / -2);top:9px;bottom:9px;width:1px;background:var(--fp-line)}
.fp-kpi>span{margin-bottom:9px;font-size:12px;color:#686872}
.fp-kpi>div{gap:7px}
.fp-kpi strong{font-size:31px;letter-spacing:-.05em;color:var(--fp-ink)}
.fp-kpi small{font-size:11px;color:#387644}
.fp-kpi--down small{color:#b54848}
.fp-kpi[aria-expanded=true]{background:var(--fp-control);border-radius:16px;box-shadow:var(--fp-shadow-small)}
.fp-popover{top:calc(100% + 10px);padding:21px;border:1px solid #fff;border-radius:20px;box-shadow:var(--fp-shadow)}
.fp-revenue-popover{top:calc(100% + 12px);left:0;width:390px}
.fp-popover-heading{font-size:14px;color:#686872;margin-bottom:12px}
.fp-icon-button{width:32px;height:32px;padding:8px;background:var(--fp-soft);color:#686872}
.fp-popover .fp-text-button{font-size:13px;min-height:40px}
.fp-watch-list li{padding-block:12px;font-size:13px}
.fp-watch-list small,.fp-revenue-popover>small{font-size:11px;color:#686872}
.fp-overview-grid{gap:var(--fp-column-gap);grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.fp-bestseller,.fp-findings{min-width:0;padding:15px;border-radius:18px;background:var(--fp-soft);box-shadow:none}
.fp-bestseller{position:relative;isolation:isolate;grid-column:span 1;display:grid;align-content:end;height:288px;margin-right:calc(var(--fp-column-gap) / -2);padding:0;overflow:hidden;background:#b8a38b}
.fp-bestseller::after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,#17130e52,transparent 27%,transparent 40%,#17130e38 57%,#17130edb 100%)}
.fp-section-label{font-size:12px;font-weight:500;color:#52525b}
.fp-section-label>span{font-size:11px;color:#686872;font-weight:400}
.fp-bestseller>.fp-section-label{position:absolute;z-index:2;inset:14px 14px auto;margin:0;color:#fff;text-shadow:0 1px 5px #0005}
.fp-bestseller>.fp-photo{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:inherit;background:none}
.fp-bestseller>.fp-photo>svg{display:block;width:100%;height:100%;overflow:hidden}
.fp-product-caption{position:relative;z-index:2;gap:2px;margin:0;padding:16px;color:#fff;text-shadow:0 1px 5px #0003}
.fp-product-caption>b{font-size:14px;line-height:1.2}
.fp-product-caption>span,.fp-product-caption>div>span{font-size:11px;line-height:1.25;color:#fffffff0}
.fp-product-caption>div{margin-top:7px;gap:7px}
.fp-product-caption strong{font-size:23px;line-height:1.1}
.fp-findings{grid-column:span 3;padding:4px 0 0;border-left:0;border-radius:0;background:none;box-shadow:none}
.fp-findings>.fp-section-label{margin-bottom:4px}
.fp-finding{min-height:86px;padding-block:12px;gap:12px}
.fp-finding-copy>small{display:inline-flex;justify-self:start;align-items:center;width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:var(--fp-soft);font-size:11px;line-height:1.2;color:var(--fp-ink)}
.fp-finding-copy>small.fp-opportunity{background:#edf5ef;color:#387644}
.fp-finding-copy>b{font-size:15px;font-weight:500}
.fp-finding-copy>span{font-size:12px;color:#686872}
.fp-finding-value>strong{font-size:26px}
.fp-finding-value>small{font-size:11px;color:#686872}
.fp-finding>.fp-icon{width:14px;height:14px;color:#8a8a95}
.fp-suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 8px;margin:24px 0 0;max-width:none}
.fp-suggestions-label{display:flex;align-items:center;gap:7px;flex-basis:100%;margin:0;font-size:12px;font-weight:500;color:#686872}
.fp-suggestions-label .fp-mark{width:16px;height:16px;color:inherit}
/* HeroUI Button: small + outline, expressed in native CSS for this static demo.
   https://heroui.com/en/docs/react/components/button */
#heroWebPanel .fp-suggestions .button{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:max-content;min-width:0;height:32px;min-height:32px;padding:0 12px;border:1px solid #e4e4e7;border-radius:24px;background:transparent;color:var(--fp-ink);font-size:12px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:none;cursor:pointer;transition:transform 160ms cubic-bezier(.23,1,.32,1),background-color 100ms ease-out}
#heroWebPanel .fp-suggestions .button::before{content:"";position:absolute;inset:-6px 0}
#heroWebPanel .fp-suggestions .button:active{background:#f4f4f5;transform:scale(.98)}
#heroWebPanel .fp-suggestions .button:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
.fp-suggestions .button>.fp-icon{width:14px;height:14px;flex:none;color:#71717a}
/* See: a neutral overview with one elevated explanation. */
.fp-scene{border:0;border-radius:24px;background:var(--fp-soft)}
.fp-scene--see{padding:26px 30px 0}
.fp-see-app{min-height:448px;border:1px solid #fff;border-radius:20px 20px 0 0;background:#fff;box-shadow:var(--fp-shadow)}
.fp-fragment-topbar{min-height:58px;padding-inline:24px;gap:14px;color:#686872;font-size:12px;border-color:#eeeef1}
.fp-fragment-topbar>small{padding:6px 9px;border-radius:9px;background:var(--fp-soft);color:#686872;font-size:11px}
.fp-fragment-metrics{gap:12px;padding:22px 24px}
.fp-fragment-metrics>div{min-width:0;padding:11px 12px;border-radius:14px;background:var(--fp-soft);color:#686872}
.fp-fragment-metrics>div>span{font-size:12px}
.fp-fragment-metrics>div>strong{font-size:30px;color:#686872}
.fp-fragment-metrics>div>small{font-size:11px;color:#686872}
.fp-selected-metric{min-width:0;margin:0;padding:11px 12px;border-radius:14px;background:var(--fp-control)}
.fp-selected-metric>span{font-size:12px;color:#52525b}
.fp-selected-metric>div{gap:8px;margin-top:4px}
.fp-selected-metric strong{font-size:36px;letter-spacing:-.05em}
.fp-selected-metric small{font-size:11px;color:#387644}
.fp-see-product{top:220px;right:24px;width:136px;color:#686872;font-size:12px}
.fp-see-product .fp-photo{width:136px;opacity:1;border-radius:14px}
.fp-see-product small{font-size:11px;color:#686872}
.fp-see-background{left:24px;top:230px;color:#90909a}
.fp-see-background b{color:#90909a}
.fp-insight-card{width:402px;max-width:calc(100% - 24px);padding:20px 22px 6px;margin:-5px 0 25px 18px;border:1px solid #fff;border-radius:20px;box-shadow:var(--fp-shadow)}
.fp-driver-list{gap:12px;margin:18px 0}
.fp-driver-list>div{grid-template-columns:94px minmax(0,1fr) 83px;gap:10px;font-size:12px;color:#686872}
.fp-driver-list i{height:6px;background:var(--fp-control);border-radius:3px}
.fp-driver-list em{border-radius:3px;background:#a1a1aa}
.fp-driver-list>div:first-child em{background:#52525b}
.fp-driver-list b{font-size:12px;color:#52525b}
.fp-insight-total{padding-top:13px;font-size:12px;color:#686872}
.fp-insight-total b{font-size:16px;color:var(--fp-ink)}
.fp-assumptions summary{min-height:40px;font-size:12px;color:#686872}
.home-page .fp-assumptions p{font-size:12px;color:#686872}
/* Watch: open assistant reply, filled message, editable white composer. */
.fp-scene--watch{min-height:460px;padding:32px 48px 26px;background:var(--fp-soft)}
.fp-user-message{padding:14px 18px;border-radius:20px 20px 6px 20px;background:var(--fp-control);color:var(--fp-ink);font-size:15px}
.fp-agent-message{margin-top:25px}
.fp-watch-draft{margin-top:17px;padding:15px;border:1px solid #fff;border-radius:16px;background:#fff;box-shadow:var(--fp-shadow-small)}
.fp-watch-product{gap:12px}
.fp-watch-product>.fp-photo{width:48px;border-radius:11px}
.fp-watch-product b{font-size:14px}
.fp-watch-product>div>span{font-size:12px;color:#686872}
.fp-state{padding:4px 8px;border-radius:8px;background:var(--fp-control);color:#686872;font-size:11px}
.fp-watch-draft dl>div{font-size:12px}
.fp-watch-draft dt,.fp-watch-draft dd{color:#686872}
.home-page .fp-agent-message .fp-watch-question{font-size:14px;color:#686872}
.fp-watch-composer{min-height:60px;padding:10px 11px 10px 18px;margin-top:20px;border:1px solid #fff;border-radius:18px;background:#fff;box-shadow:var(--fp-shadow)}
.fp-watch-composer input{font-size:14px;color:var(--fp-ink)}
.fp-watch-composer:focus-within{border-color:#f9206480;box-shadow:0 0 0 3px #f9206412,var(--fp-shadow-small)}
.fp-watch-composer button{width:36px;height:36px}
.home-page .fp-watch-feedback{font-size:11px;color:#686872}
/* Act: filled evidence fields and the same white review surface. */
.fp-scene--act{background:var(--fp-soft)}
.fp-act-underlay{padding-inline:18px;color:#90909a}
.fp-act-underlay .fp-fragment-topbar{min-height:66px}
.fp-act-underlay .fp-fragment-topbar .fp-forma{color:#73737d}
.fp-act-underlay>.fp-section-label{font-size:12px;color:#73737d}
.fp-selected-finding{padding:15px 13px;border-radius:14px;background:#e9e9ed}
.fp-selected-finding>small,.fp-selected-finding>span{font-size:11px;color:#73737d}
.fp-selected-finding>b{font-size:16px;color:#52525b}
.fp-act-underlay>.fp-photo{width:96px;opacity:.8;border-radius:12px}
.fp-underlay-product{font-size:11px;color:#73737d}
.fp-inspector{margin:14px 14px 14px 0;padding:22px 24px 20px;border:1px solid #fff;border-radius:20px;background:#fff;box-shadow:var(--fp-shadow)}
.fp-inspector-top{font-size:13px}
.fp-inspector-top .fp-mark{width:20px;height:20px}
.fp-action-context{grid-template-columns:1fr 1fr auto;gap:10px;margin-top:22px}
.fp-action-context>div{min-width:0;padding:11px 12px;border-radius:12px;background:var(--fp-soft);gap:6px}
.fp-action-context>div>span{font-size:12px;color:#686872}
.fp-action-context>div>b{font-size:30px}
.fp-action-context b>small{font-size:12px;color:#686872}
.fp-action-context>span{padding-left:12px;border-color:var(--fp-line);font-size:11px;color:#686872}
.fp-action-context>span>b{font-size:13px;color:#52525b}
.fp-evidence summary{min-height:38px;font-size:12px}
.home-page .fp-evidence p{font-size:12px}
.fp-action-line{padding-top:17px;margin-top:8px}
.fp-action-line>.fp-section-label{font-size:12px}
.fp-action-line>.fp-section-label>small{font-size:11px}
.home-page .fp-action-line h4{font-size:25px}
.home-page .fp-action-line p{font-size:14px;line-height:1.55;color:#686872}
.fp-review-controls{margin-block:18px 19px}
.fp-review-controls button{min-height:40px;padding:9px 13px;border-radius:12px;background:var(--fp-control);font-size:13px;color:#52525b}
.fp-review-controls button:first-child{background:#df1454;color:#fff}
.fp-review-controls button:last-child{background:var(--fp-soft);padding-inline:12px}
.fp-plan-more summary{min-height:44px;font-size:12px}
.fp-plan-more summary>span{font-size:11px;color:#686872}
.home-page .fp-plan-more p,.home-page #fp-review-feedback{font-size:12px;color:#686872}
#fp-proposal-editor label{font-size:12px;color:#686872}
#fp-proposal-editor textarea{border:0;border-radius:12px;background:var(--fp-soft);font-size:14px;padding:13px}
@media(hover:hover) and (pointer:fine){
 .fp-finding:hover{background:var(--fp-control);box-shadow:0 0 0 8px var(--fp-control);border-radius:10px}
 #heroWebPanel .fp-suggestions .button:hover{background:#f4f4f5}
 .fp-watching>button:hover{background:#f0edf3}
 .fp-icon-button:hover{background:#e8e8ed}
}
@media(max-width:1100px){
 .fp-main{padding:18px 25px 25px}
 .fp-kpi,.fp-kpi:first-child,.fp-kpi:last-child{padding:8px 0}
 .fp-kpi strong{font-size:28px}
 .fp-kpi>div{gap:5px}
 .fp-kpi small{font-size:10px}
}
@media(max-width:800px){
 .fp-main{--fp-column-gap:16px;padding:16px 22px 22px}
 .fp-topbar{gap:10px}
 .fp-period,.fp-watching>button{font-size:10px;padding-inline:9px}
 .fp-kpi>span{font-size:11px;white-space:normal;align-items:start}
 .fp-kpi>div{display:grid;gap:4px}
 .fp-kpi strong{font-size:27px}
 .fp-kpi small{font-size:11px}
 .fp-bestseller{height:272px;padding:0}
 .fp-bestseller>.fp-section-label{inset:12px 12px auto}
 .fp-product-caption{padding:16px}
 .fp-findings>.fp-section-label>span{display:none}
 .fp-finding-copy>b{font-size:14px}
 .fp-finding-copy>span{font-size:11px}
 .fp-finding-value>strong{font-size:22px}
}
@media(max-width:640px){
 #sort .story-tabs{margin-bottom:28px}
 .fp-main{padding:16px 16px 20px}
 .fp-period{width:100%;margin-top:8px;padding:8px 10px;font-size:11px}
 .fp-watching>button{min-height:36px;font-size:11px}
 .fp-metric-area{margin:20px 0;padding-bottom:0}
 .fp-metrics{column-gap:var(--fp-column-gap);row-gap:12px}
 .fp-kpi,.fp-kpi:first-child,.fp-kpi:nth-child(3),.fp-kpi:last-child{padding:8px 0;border-radius:0}
 .fp-kpi:nth-child(odd)::before{content:none}
 .fp-kpi:nth-child(n+3){border-top:1px solid var(--fp-line);padding-top:14px}
 .fp-kpi>span{font-size:11px;margin-bottom:8px;justify-content:space-between}
 .fp-kpi strong{font-size:28px}
 .fp-kpi[aria-expanded=true]{box-shadow:var(--fp-shadow-small);border-radius:14px}
 .fp-revenue-popover{width:100%;left:0;top:calc(100% + 10px);padding:18px}
 .fp-overview-grid{grid-template-columns:1fr;gap:18px}
 .fp-bestseller{grid-column:auto;grid-template-columns:1fr;gap:0;align-items:end;height:280px;margin-right:0;padding:0}
 .fp-bestseller>.fp-section-label{inset:15px 15px auto;margin:0;font-size:12px}
 .fp-bestseller>.fp-photo{width:100%;border-radius:inherit}
 .fp-product-caption{margin:0;gap:2px;padding:16px}
 .fp-product-caption>b{font-size:14px}
 .fp-product-caption>span{font-size:11px}
 .fp-product-caption>div{display:flex;gap:6px;align-items:baseline}
 .fp-findings{grid-column:auto;padding:0;border-left:0}
 .fp-findings>.fp-section-label{font-size:12px}
 .fp-finding{grid-template-columns:minmax(0,1fr) auto;min-height:0;padding-block:13px;gap:10px}
 .fp-finding-copy>small{font-size:11px}
 .fp-finding-copy>b{font-size:14px;line-height:1.3}
 .fp-finding-copy>span{font-size:11px;line-height:1.5}
 .fp-finding-value{display:grid;gap:3px;text-align:right}
 .fp-finding-value>strong{font-size:22px}
 .fp-finding-value>small{font-size:10px}
 .fp-suggestions{margin-top:20px;gap:12px 8px}
 #heroWebPanel .fp-suggestions .button{height:36px;min-height:36px}
 #heroWebPanel .fp-suggestions .button::before{inset:-4px 0}
 .fp-scene{border-radius:20px}
 .fp-scene--see{min-height:0;padding:18px 14px 0}
 .fp-see-app{min-height:415px;border-radius:17px 17px 0 0}
 .fp-fragment-topbar{min-height:55px;padding-inline:16px;gap:11px}
 .fp-fragment-topbar>small{font-size:10px;padding:5px 7px}
 .fp-fragment-metrics{gap:9px;padding:18px 14px;grid-template-columns:1.15fr 1fr}
 .fp-fragment-metrics>div{padding:10px}
 .fp-fragment-metrics>div>span{font-size:11px}
 .fp-fragment-metrics>div>strong{font-size:27px}
 .fp-selected-metric{margin:0;padding:10px}
 .fp-selected-metric>span{font-size:11px}
 .fp-selected-metric>div{display:grid;gap:3px}
 .fp-selected-metric strong{font-size:31px}
 .fp-selected-metric small{font-size:11px}
 .fp-see-product{display:none}
 .fp-insight-card{width:calc(100% - 12px);max-width:none;margin:0 6px 18px;padding:16px 14px 5px;border-radius:17px}
 .fp-popover-heading{font-size:13px}
 .fp-driver-list{gap:12px;margin-block:15px}
 .fp-driver-list>div{grid-template-columns:78px minmax(0,1fr) 72px;gap:7px;font-size:11px}
 .fp-driver-list b{font-size:11px}
 .fp-insight-total{font-size:11px}
 .fp-insight-total b{font-size:14px}
 .fp-assumptions summary{min-height:44px;font-size:11px}
 .home-page .fp-assumptions p{font-size:11px}
 .fp-scene--watch{min-height:0;padding:25px 18px}
 .fp-user-message{max-width:94%;font-size:14px;padding:13px 15px}
 .home-page .fp-agent-message>div>p:first-child{font-size:14px}
 .fp-watch-draft{padding:13px;margin-left:-29px}
 .fp-watch-product{gap:10px;flex-wrap:wrap}
 .fp-watch-product>.fp-photo{width:42px}
 .fp-watch-product>div{max-width:calc(100% - 52px)}
 .fp-watch-product b{font-size:13px}
 .fp-watch-product>div>span{font-size:11px}
 .fp-watch-product>.fp-state{margin-left:52px;font-size:11px}
 .fp-watch-draft dl>div{font-size:11px}
 .home-page .fp-agent-message .fp-watch-question{font-size:13px}
 .fp-watch-composer{margin:20px 0 0;min-height:60px;padding:10px 9px 10px 14px}
 .fp-watch-composer input{font-size:16px}
 .fp-watch-composer button{width:38px;height:38px}
 .home-page .fp-watch-feedback{margin:11px 0 0;font-size:11px}
 .fp-inspector{margin:10px;padding:20px 17px;border-radius:17px}
 .fp-inspector-top{font-size:12px;gap:8px;flex-wrap:wrap}
 .fp-inspector-top>.fp-state{margin-left:27px;font-size:11px}
 .fp-action-context{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:20px}
 .fp-action-context>div{padding:11px}
 .fp-action-context>div>span{font-size:11px}
 .fp-action-context>span{grid-column:1/-1;border:0;padding:0;font-size:11px}
 .fp-action-context>span>br{display:none}
 .fp-action-context>span>b{margin-left:4px;font-size:12px}
 .fp-evidence summary{min-height:44px;font-size:12px}
 .home-page .fp-action-line h4{font-size:24px}
 .home-page .fp-action-line p{font-size:14px}
 .fp-review-controls{gap:7px;flex-wrap:wrap}
 .fp-review-controls button{min-height:44px;padding:10px 12px;font-size:12px}
 .fp-review-controls button:last-child{padding-inline:12px}
 .fp-plan-more summary{font-size:12px}
 .fp-plan-more summary>span{font-size:10px}
 #fp-proposal-editor textarea{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 #heroWebPanel .fp-suggestions .button{transition:none}
 #heroWebPanel .fp-suggestions .button:active{transform:none}
}
@media(max-width:360px){
 .fp-main{padding-inline:13px}
 .fp-kpi,.fp-kpi:first-child,.fp-kpi:nth-child(3),.fp-kpi:last-child{padding:8px 0}
 .fp-kpi:nth-child(n+3){padding-top:14px}
 .fp-kpi strong{font-size:25px}
 .fp-kpi small{font-size:10px}
 .fp-finding-value>strong{font-size:20px}
 .fp-fragment-topbar{padding-inline:13px}
 .fp-fragment-metrics{padding-inline:10px}
 .fp-insight-card{padding-inline:12px}
 .fp-driver-list>div{grid-template-columns:71px minmax(0,1fr) 67px;gap:5px;font-size:10px}
 .fp-driver-list b{font-size:10px}
 .fp-inspector{padding-inline:14px}
}
