/* V7: preserve both hero directions, make the product story easy to read. */
.story-refine-v7 .trade-conversation { display:flex; flex-direction:column; gap:9px; padding:12px; background:#edf0f2; border:1px solid #e3e7eb; border-radius:11px; }
.story-refine-v7 .trade-chat-top { display:flex; align-items:center; justify-content:space-between; padding-bottom:7px; border-bottom:1px solid #dde3e8; color:#596b7d; font-size:9px; }
.story-refine-v7 .trade-chat-top b { font-weight:500; }
.story-refine-v7 .trade-chat-top span { font-size:8px; color:#94a0ae; }
.story-refine-v7 .trade-message { display:flex; align-items:flex-start; gap:7px; }
.story-refine-v7 .trade-message-out { justify-content:flex-end; }
.story-refine-v7 .trade-message-content { min-width:0; max-width:calc(100% - 29px); }
.story-refine-v7 .trade-message-name { display:block; color:#8b959f; font-size:8px; margin-bottom:4px; }
.story-refine-v7 .trade-message-out .trade-message-name { text-align:right; }
.story-refine-v7 .trade-avatar { display:grid; place-items:center; flex-shrink:0; width:22px; height:22px; background:#d4e0f2; color:#58749c; border-radius:5px; font-style:normal; font-size:9px; margin-top:15px; }
.story-refine-v7 .trade-message-in .trade-avatar { background:#f7e7b8; color:#a08b54; }
.story-refine-v7 .trade-message .trade-bubble { position:relative; border:1px solid #e0e4e8; border-radius:5px; padding:7px 10px; background:#fff; color:#4e5a66; }
.story-refine-v7 .trade-message-out .trade-bubble { background:#d9efc8; border-color:#cce4bb; }
.story-refine-v7 .trade-message .trade-bubble:after { content:""; position:absolute; top:9px; width:6px; height:6px; background:inherit; transform:rotate(45deg); }
.story-refine-v7 .trade-message-out .trade-bubble:after { right:-4px; border-top:1px solid #cce4bb; border-right:1px solid #cce4bb; }
.story-refine-v7 .trade-message-in .trade-bubble:after { left:-4px; border-left:1px solid #e0e4e8; border-bottom:1px solid #e0e4e8; }
.story-refine-v7 .trade-bubble>b { font-size:9px; margin-bottom:3px; }
.story-refine-v7 .trade-bubble p { font-size:9px; line-height:1.7; white-space:nowrap; letter-spacing:0; }
.story-refine-v7 .trade-semantic { font-size:8px; margin-top:1px; gap:5px; line-height:1.5; }
.story-refine-v7 .trade-semantic svg { width:11px; height:11px; }
.story-refine-v7 .trade-illustrated .trade-scene-order { padding:14px 18px; }
.story-refine-v7 .trade-illustrated .trade-order-layout { gap:10px; }
.story-refine-v7 .trade-illustrated .trade-conversation { padding:9px 11px; gap:7px; }
.story-refine-v7 .trade-illustrated .trade-chat-top { padding-bottom:5px; }
.story-refine-v7 .trade-illustrated .trade-order-result { padding:10px 13px; }
.story-refine-v7 .trade-illustrated .trade-result-heading { margin-bottom:8px; }
.story-refine-v7 .trade-illustrated .trade-order-table th { padding:6px 5px; }
.story-refine-v7 .trade-illustrated .trade-order-table td { padding:8px 5px; }
.story-refine-v7 .trade-illustrated .trade-order-note { margin:6px 0; }
.story-refine-v7 .trade-wide .trade-conversation { gap:20px; padding:22px 20px; }
.story-refine-v7 .trade-wide .trade-message { gap:10px; }
.story-refine-v7 .trade-wide .trade-chat-top { font-size:12px; padding-bottom:14px; }
.story-refine-v7 .trade-wide .trade-chat-top span { font-size:10px; }
.story-refine-v7 .trade-wide .trade-message-name { font-size:10px; margin-bottom:7px; }
.story-refine-v7 .trade-wide .trade-avatar { width:29px; height:29px; font-size:11px; margin-top:22px; }
.story-refine-v7 .trade-wide .trade-message-content { max-width:calc(100% - 39px); }
.story-refine-v7 .trade-wide .trade-message .trade-bubble { padding:12px; }
.story-refine-v7 .trade-wide .trade-bubble>b { font-size:11px; }
.story-refine-v7 .trade-wide .trade-bubble p { font-size:11px; line-height:1.9; }
.story-refine-v7 .trade-wide .trade-semantic { font-size:10px; line-height:1.7; }
/* A question, two metrics, two legible trends, one recommendation. */
.story-refine-v7 .trade-analysis { padding:15px 17px; }
.story-refine-v7 .trade-quarter-metrics { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:16px; }
.story-refine-v7 .trade-quarter-metrics>article { min-width:0; }
.story-refine-v7 .trade-quarter-metrics>article+article { border-left:1px solid #e9eef5; padding-left:22px; }
.story-refine-v7 .trade-quarter-metrics>article>span { display:block; color:#8c9db4; font-size:9px; margin-bottom:8px; }
.story-refine-v7 .trade-quarter-metrics>article>div { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.story-refine-v7 .trade-quarter-metrics strong { font:29px Arial,sans-serif; color:#4c73b2; }
.story-refine-v7 .trade-quarter-metrics strong small { font-size:8px; padding-left:5px; color:#95a5bc; }
.story-refine-v7 .trade-quarter-metrics em { font-style:normal; font-size:8px; color:#a28e4e; }
.story-refine-v7 .trade-quarter-metrics em.sales-change { color:#97a5ba; }
.story-refine-v7 .trade-quarter-metrics>article>.trade-mini-chart { display:block; margin-top:17px; }
.story-refine-v7 .trade-chart-caption { display:flex; justify-content:space-between; font-size:8px; color:#a1aec1; }
.story-refine-v7 .trade-chart-caption b { font-weight:400; color:#8a9fbd; }
.story-refine-v7 .trade-mini-bars { display:flex; gap:18px; height:104px; border-bottom:1px solid #eaf0f7; margin-top:11px; background:repeating-linear-gradient(to top,#f0f3f8 0 1px,transparent 1px 28px); }
.story-refine-v7 .trade-mini-bars>div { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:flex-end; min-width:0; position:relative; padding-bottom:20px; }
.story-refine-v7 .trade-mini-bars b { font:8px Arial,sans-serif; color:#92a5c0; margin-bottom:5px; font-weight:400; }
.story-refine-v7 .trade-mini-bars i { display:block; width:65%; max-width:42px; flex-shrink:1; height:var(--bar); max-height:78%; background:linear-gradient(#9fb9e3,#dbe6f8); border-radius:4px 4px 0 0; }
.story-refine-v7 .profit-chart .trade-mini-bars i { background:linear-gradient(#e9c765,#f9edbf); }
.story-refine-v7 .trade-mini-bars span { position:absolute; bottom:4px; font-size:8px; color:#97aac6; }
.story-refine-v7 .trade-ai-advice { display:flex; gap:11px; align-items:flex-start; padding:12px; background:#f7f9fd; border-radius:8px; margin-top:16px; }
.story-refine-v7 .trade-ai-advice>b { display:flex; align-items:center; gap:4px; white-space:nowrap; font-size:9px; font-weight:500; color:#7291c1; margin-top:2px; }
.story-refine-v7 .trade-ai-advice svg { width:12px; height:12px; color:#ccb35b; }
.story-refine-v7 .trade-ai-advice>p { font-size:9px; color:#8b9cb6; line-height:1.8; }
.story-refine-v7 .trade-wide .trade-quarter-metrics strong { font-size:34px; }
.story-refine-v7 .trade-wide .trade-quarter-metrics>article>span { font-size:11px; }
.story-refine-v7 .trade-wide .trade-quarter-metrics em,.story-refine-v7 .trade-wide .trade-quarter-metrics small { font-size:10px; }
.story-refine-v7 .trade-wide .trade-mini-bars { height:124px; }
.story-refine-v7 .trade-wide .trade-chart-caption,.story-refine-v7 .trade-wide .trade-mini-bars b,.story-refine-v7 .trade-wide .trade-mini-bars span { font-size:10px; }
.story-refine-v7 .trade-wide .trade-ai-advice>b,.story-refine-v7 .trade-wide .trade-ai-advice>p { font-size:11px; }
/* Keep the wide workbench compact across all three scenes. */
@media (min-width: 701px) {
  .story-refine-v7 .trade-wide .trade-scene {
    display: grid;
    align-items: center;
    height: auto;
    min-height: 400px;
    padding-block: 18px;
  }
  .story-refine-v7 .trade-wide .trade-window-bar { height: 38px; }
  .story-refine-v7 .trade-wide .trade-frame-foot { padding-block: 9px; }

  .story-refine-v7 .trade-wide .trade-conversation { gap: 12px; padding-block: 16px; }
  .story-refine-v7 .trade-wide .trade-order-result { padding-block: 16px; }
  .story-refine-v7 .trade-wide .trade-result-heading { margin-bottom: 14px; }
  .story-refine-v7 .trade-wide .trade-order-table td { padding-block: 12px; }
  .story-refine-v7 .trade-wide .trade-order-note { margin-block: 11px; }

  .story-refine-v7 .trade-wide .trade-question { margin-bottom: 12px; }
  .story-refine-v7 .trade-wide .trade-question > p { padding-block: 8px; }
  .story-refine-v7 .trade-wide .trade-analysis { padding-block: 12px; }
  .story-refine-v7 .trade-wide .trade-quarter-metrics { margin-top: 12px; }
  .story-refine-v7 .trade-wide .trade-quarter-metrics > article > .trade-mini-chart { margin-top: 11px; }
  .story-refine-v7 .trade-wide .trade-mini-bars { height: 88px; margin-top: 8px; }
  .story-refine-v7 .trade-wide .trade-ai-advice { margin-top: 12px; padding-block: 9px; }

  .story-refine-v7 .trade-wide .trade-team { width: 100%; }
  .story-refine-v7 .trade-wide .trade-team-head { margin-block: 0 18px; }
  .story-refine-v7 .trade-wide .trade-team-grid { gap: 12px 18px; }
  .story-refine-v7 .trade-wide .trade-team-grid article { padding-block: 14px; }
  .story-refine-v7 .trade-wide .trade-team-assign { margin-top: 18px; padding-block: 13px; }
}
/* Same standard-edition composition in both variants, bounded for laptops. */
body.story-refine-v7 #order { display:grid!important; grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr)!important; align-items:center!important; gap:48px!important; width:100%!important; max-width:none!important; margin:0!important; padding:60px max(48px,calc((100% - 1180px)/2))!important; text-align:left!important; }
body.story-refine-v7 #order .feature-copy { text-align:left!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
body.story-refine-v7 #versions .section-title > .eyebrow,
body.story-refine-v7 #order .feature-copy > .eyebrow { font-size:17px; font-weight:600; letter-spacing:.02em; }
body.story-refine-v7 #order .feature-copy h2 { font-size:40px!important; line-height:1.45!important; margin:18px 0!important; }
body.story-refine-v7 #order .feature-copy>p { font-size:14px!important; max-width:430px!important; margin:0!important; line-height:1.95!important; }
body.story-refine-v7 #order .order-flow { display:flex; align-items:center; gap:10px; font-size:11px; color:#7b93b4; margin:26px 0 19px; white-space:nowrap; }
body.story-refine-v7 #order .order-flow span { display:flex; align-items:center; gap:6px; }
body.story-refine-v7 #order .order-flow b { font:9px Arial,sans-serif; color:#b7a36a; background:#fcf6df; padding:4px; border-radius:4px; }
body.story-refine-v7 #order .order-flow i { font-style:normal; color:#b8c5d7; font-size:10px; }
body.story-refine-v7 #order .capability-pills { display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr))!important; width:100%!important; max-width:none!important; gap:5px!important; margin:0 0 24px!important; }
body.story-refine-v7 #order .capability-pills>span { padding:8px 3px!important; min-width:0; text-align:center; white-space:nowrap; font-size:10px!important; letter-spacing:0!important; border-radius:6px; }
body.story-refine-v7 #order>.guide-card { width:100%!important; max-width:none!important; height:350px!important; aspect-ratio:auto!important; min-height:0!important; margin:0!important; border-radius:20px!important; }
body.story-refine-v7 #order .guide-copy { left:7%!important; width:56%!important; }
body.story-refine-v7 #order .guide-copy>strong { font-size:28px!important; line-height:1.55!important; letter-spacing:-.5px; }
body.story-refine-v7 #order .guide-art { width:42%!important; right:0!important; }
body.story-refine-v7 #order .guide-steps { display:none; }
body.story-refine-v7 #order .guide-start { font-size:15px!important; min-height:50px!important; padding:11px!important; gap:9px!important; margin-top:27px!important; }
body.story-refine-v7 #order .guide-start .watch-play { width:31px; height:31px; flex-basis:31px; }
body.story-refine-v7 #order .guide-start small { font-size:10px; }
body.story-refine-v7 #employee-video [data-unit="office"] .guide-copy { top:50%!important; transform:translateY(-50%)!important; }
body.story-refine-v7 #employee-video [data-unit="office"] .guide-copy>strong { font-size:21px!important; line-height:1.42!important; }
body.story-refine-v7 #employee-video [data-unit="office"] .guide-kicker { font-size:9px!important; margin-bottom:10px!important; }
body.story-refine-v7 #employee-video [data-unit="office"] .guide-start { margin-top:14px!important; min-height:44px!important; padding:8px 10px!important; font-size:13px!important; line-height:1.35!important; }
@media(min-width:701px) {
 .story-refine-v7 .trade-illustrated .trade-conversation { padding:8px 12px; gap:6px; }
 .story-refine-v7 .trade-illustrated .trade-chat-top { padding-bottom:3px; }
 .story-refine-v7 .trade-illustrated .trade-message .trade-bubble { padding:4px 10px; }
 .story-refine-v7 .trade-illustrated .trade-bubble p { font-size:9.5px; line-height:1.55; }
 .story-refine-v7 .trade-illustrated .trade-result-heading>div { display:flex; align-items:baseline; gap:9px; }
 .story-refine-v7 .trade-illustrated .trade-result-heading small { margin:0; }
 .story-refine-v7 .trade-illustrated .trade-order-note { font-size:8px; line-height:1.6; }
 .story-refine-v7 .trade-illustrated .trade-order-note br { display:none; }
 .story-refine-v7 .trade-illustrated .trade-order-table td { padding:7px 5px; }
 .story-refine-v7 .story-hero-art .erp-carousel-tools { right:50px!important; }
}
@media(min-width:901px) and (max-width:1150px) {
 body.story-refine-v7 #order { gap:30px!important; padding-inline:36px!important; }
 body.story-refine-v7 #order .feature-copy h2 { font-size:35px!important; }
 body.story-refine-v7 #order .guide-copy>strong { font-size:23px!important; }
 body.story-refine-v7 #order .order-flow { gap:6px; font-size:10px; }
 .story-refine-v7 .trade-wide .trade-order-layout { gap:24px; }
 .story-refine-v7 .trade-wide .trade-conversation { padding:15px 12px; }
 .story-refine-v7 .trade-wide .trade-bubble p { font-size:10px; }
}
@media(max-width:900px) {
 body.story-refine-v7 #order { grid-template-columns:1fr!important; padding:55px max(25px,calc((100% - 630px)/2))!important; gap:32px!important; }
 body.story-refine-v7 #order .capability-pills { max-width:470px!important; }
 body.story-refine-v7 #order .feature-copy>p { max-width:100%!important; }
}
@media(max-width:700px) {
 .story-refine-v7 .trade-scene-order,.story-refine-v7 .trade-illustrated .trade-scene-order,.story-refine-v7 .trade-wide .trade-scene-order { height:496px; padding:15px 12px; }
 .story-refine-v7 .trade-conversation,.story-refine-v7 .trade-illustrated .trade-conversation,.story-refine-v7 .trade-wide .trade-conversation { display:flex; flex-direction:column; gap:9px; padding:10px; }
 .story-refine-v7 .trade-chat-top,.story-refine-v7 .trade-wide .trade-chat-top { padding-bottom:6px; font-size:9px; }
 .story-refine-v7 .trade-wide .trade-chat-top span { font-size:8px; }
 .story-refine-v7 .trade-message,.story-refine-v7 .trade-wide .trade-message { gap:7px; }
 .story-refine-v7 .trade-message-name,.story-refine-v7 .trade-wide .trade-message-name { font-size:8px; margin-bottom:4px; }
 .story-refine-v7 .trade-avatar,.story-refine-v7 .trade-wide .trade-avatar { width:22px; height:22px; font-size:9px; margin-top:15px; }
 .story-refine-v7 .trade-message-content,.story-refine-v7 .trade-wide .trade-message-content { max-width:calc(100% - 29px); }
 .story-refine-v7 .trade-message .trade-bubble,.story-refine-v7 .trade-wide .trade-message .trade-bubble { padding:8px 9px; }
 .story-refine-v7 .trade-bubble p,.story-refine-v7 .trade-wide .trade-bubble p { font-size:8px; line-height:1.8; letter-spacing:0; }
 .story-refine-v7 .trade-wide .trade-bubble>b { font-size:9px; }
 .story-refine-v7 .trade-semantic,.story-refine-v7 .trade-wide .trade-semantic { font-size:8px; line-height:1.5; }
 .story-refine-v7 .trade-order-table,.story-refine-v7 .trade-wide .trade-order-table { min-width:0; font-size:8px; }
 .story-refine-v7 .trade-order-table th,.story-refine-v7 .trade-wide .trade-order-table th { font-size:8px; }
 .story-refine-v7 .trade-order-table td,.story-refine-v7 .trade-wide .trade-order-table td { padding:10px 2px; }
 .story-refine-v7 .trade-order-result,.story-refine-v7 .trade-wide .trade-order-result { padding:12px 10px; }
 .story-refine-v7 .trade-result-heading,.story-refine-v7 .trade-wide .trade-result-heading { margin-bottom:9px; }
 .story-refine-v7 .trade-order-note,.story-refine-v7 .trade-wide .trade-order-note { margin:8px 0; font-size:7px; }
 .story-refine-v7 .trade-query .trade-analysis { padding:14px 11px; }
 .story-refine-v7 .trade-quarter-metrics { gap:12px; margin-top:18px; }
 .story-refine-v7 .trade-quarter-metrics>article+article { padding-left:12px; }
 .story-refine-v7 .trade-quarter-metrics strong,.story-refine-v7 .trade-wide .trade-quarter-metrics strong { font-size:25px; }
 .story-refine-v7 .trade-quarter-metrics>article>span,.story-refine-v7 .trade-wide .trade-quarter-metrics>article>span { font-size:9px; }
 .story-refine-v7 .trade-quarter-metrics small,.story-refine-v7 .trade-wide .trade-quarter-metrics small { font-size:8px; }
 .story-refine-v7 .trade-quarter-metrics em,.story-refine-v7 .trade-wide .trade-quarter-metrics em { font-size:8px; }
 .story-refine-v7 .trade-mini-bars,.story-refine-v7 .trade-wide .trade-mini-bars { height:108px; gap:10px; }
 .story-refine-v7 .trade-wide .trade-chart-caption,.story-refine-v7 .trade-wide .trade-mini-bars b,.story-refine-v7 .trade-wide .trade-mini-bars span { font-size:8px; }
 .story-refine-v7 .trade-ai-advice { display:block; padding:11px; margin-top:19px; }
 .story-refine-v7 .trade-ai-advice>b,.story-refine-v7 .trade-wide .trade-ai-advice>b { font-size:9px; margin-bottom:6px; }
 .story-refine-v7 .trade-ai-advice>p,.story-refine-v7 .trade-wide .trade-ai-advice>p { font-size:9px; line-height:1.8; }
 body.story-refine-v7 #order { padding:50px 19px!important; }
 body.story-refine-v7 #order .feature-copy h2 { font-size:32px!important; }
 body.story-refine-v7 #order .feature-copy>p { font-size:13px!important; }
 body.story-refine-v7 #order .order-flow { gap:7px; font-size:10px; margin:23px 0 17px; }
 body.story-refine-v7 #order .order-flow span { gap:4px; }
 body.story-refine-v7 #order .capability-pills { gap:3px!important; }
 body.story-refine-v7 #order .capability-pills>span { font-size:9px!important; padding:8px 2px!important; }
 body.story-refine-v7 #order>.guide-card { height:276px!important; }
 body.story-refine-v7 #order .guide-copy>strong { font-size:22px!important; }
 body.story-refine-v7 #order .guide-start { font-size:12px!important; padding:9px!important; min-height:45px!important; gap:6px!important; }
 body.story-refine-v7 #order .guide-start small { font-size:9px; }
 body.story-refine-v7 #order .guide-start .watch-play { width:26px; height:26px; flex-basis:26px; }
 body.story-refine-v7 #employee-video [data-unit="office"] .guide-copy>strong { font-size:21px!important; }
}
