.chapter-menu{display:grid;gap:6px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.chapter-menu button{position:relative;text-align:left;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:12px 30px 12px 12px;display:grid;gap:3px}
.chapter-menu button:first-child{background:#8b63e813;border-color:#8b63e845}.chapter-menu span{font-weight:600;font-size:12px}.chapter-menu small{font-size:10px;color:var(--muted);line-height:1.5}.chapter-menu b{position:absolute;right:12px;top:12px;color:var(--accent-hover)}
.studio-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(320px,3fr);height:calc(100dvh - 40px);min-height:620px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}
.studio-workflow{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}
.studio-canvas-label{display:flex;justify-content:flex-end;padding:16px 24px 8px;flex-shrink:0}
.studio-demo-tag{max-width:100%;font-size:10px;line-height:1.5;letter-spacing:.01em;color:var(--muted);border:1px solid var(--line-strong);border-radius:4px;padding:5px 9px}
.studio-canvas{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background-image:radial-gradient(#ffffff0c .8px,transparent .8px);background-size:22px 22px;scroll-behavior:smooth}
.studio-nodes{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px 24px 90px}
.studio-nodes.extended{justify-content:flex-start;padding-top:28px;padding-bottom:180px}
.studio-node{width:min(330px,100%);flex-shrink:0;position:relative;background:#131318;border:1px solid var(--line-strong);border-radius:12px;padding:22px;text-align:left;display:grid;gap:12px;color:var(--text);box-shadow:0 8px 25px #00000020;animation:studio-arrive .48s cubic-bezier(.2,0,0,1) both}
.studio-node:hover{border-color:#8b63e870;background:#17151e}.studio-node.selected{border-color:#8b63e890;box-shadow:0 0 0 1px #8b63e820,0 0 36px #8b63e80a}
.studio-node[data-status=processing]{box-shadow:0 0 30px #8b63e820;border-color:#8b63e899}.studio-node[data-status=complete] .studio-node-state{color:var(--green)}
.studio-node-top{display:flex;align-items:center;gap:10px}.studio-node-number{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line-strong);border-radius:8px;color:var(--accent-hover);font-size:11px;font-family:var(--mono)}
.studio-node-title{font-size:13px;font-weight:500;flex:1}.studio-node-state{font-size:9px;color:var(--muted);font-weight:400}.studio-node-copy{font-size:11px;line-height:1.7;color:var(--muted)}.studio-node-copy strong{font-weight:500;color:var(--text);display:block}
.studio-node-hero{width:100%;height:122px;object-fit:contain;background:var(--bg);border-radius:6px}.studio-node[data-step=upload][data-status=waiting]{border-style:dashed;padding:30px;text-align:center}.studio-node[data-step=upload][data-status=waiting] .studio-node-top{justify-content:center;flex-direction:column}.studio-node[data-step=upload][data-status=waiting] .studio-node-number{width:44px;height:44px;font-size:22px;margin-bottom:6px}.studio-node[data-step=upload][data-status=waiting] .studio-node-title{font-size:15px}.studio-node[data-step=upload][data-status=waiting] .studio-node-state{display:none}
.studio-upload-cta{color:var(--accent-hover);font-size:11px;display:block;margin-top:12px}.studio-connector{width:1px;height:48px;background:#8b63e86b;flex-shrink:0;position:relative;transform-origin:top;animation:studio-connect .5s ease-out both}.studio-connector:after{content:'';position:absolute;bottom:0;left:-2px;width:5px;height:5px;border-right:1px solid #8b63e899;border-bottom:1px solid #8b63e899;transform:rotate(45deg)}
.studio-working{display:flex;gap:4px}.studio-working i{width:3px;height:3px;background:var(--accent-hover);border-radius:50%;animation:studio-breathe 1.5s ease-in-out infinite}.studio-working i:nth-child(2){animation-delay:.2s}.studio-working i:nth-child(3){animation-delay:.4s}
.studio-inspector{border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0;overflow:hidden}.studio-inspector>header{padding:28px 24px 22px;border-bottom:1px solid var(--line)}.studio-inspector h2{font-size:17px;letter-spacing:-.02em;font-weight:500;margin-top:7px}.studio-inspector-body{padding:24px;overflow:auto;min-height:0;flex:1;overflow-wrap:anywhere}.studio-inspector-body p{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:14px}
.studio-intro{padding-top:28px}.studio-intro-mark{width:60px;height:60px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:15px;color:var(--accent-hover);font-size:24px;margin-bottom:28px}.studio-inspector-body h3{font-size:12px;font-weight:500;margin:22px 0 10px}.studio-hint{padding:13px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:10px;line-height:1.8;margin:14px 0}.studio-error{color:var(--red)!important;border-color:#ff968940!important}.studio-notice{padding:10px 24px;background:var(--panel-2);border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.studio-inspector-body .button{font-size:11px;min-height:36px}.studio-inspector-body .button.primary{width:100%}.studio-inspector-body video{width:100%;max-height:260px;border-radius:8px;background:#08080a}.studio-file-name{display:flex;justify-content:space-between;gap:10px;margin:10px 0 18px;font-size:10px;color:var(--muted)}.studio-frame-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.studio-frame-grid button{padding:0;position:relative;background:var(--panel-2);border:2px solid transparent;border-radius:6px;overflow:hidden}.studio-frame-grid button[aria-pressed=true]{border-color:var(--accent)}.studio-frame-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.studio-frame-grid span{position:absolute;bottom:2px;right:3px;font-size:9px;background:#000a;padding:1px 4px;border-radius:3px}.studio-hero-large{width:100%;max-height:260px;object-fit:contain;background:var(--bg);border-radius:8px}
.studio-attributes{display:grid;gap:0;margin:0}.studio-attributes>div{padding:12px 0;border-bottom:1px solid var(--line)}.studio-attributes dt{font-size:9px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}.studio-attributes dd{margin:0;font-size:11px;line-height:1.7}.studio-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.studio-tags span{padding:4px 7px;background:var(--panel-2);border-radius:5px;font-size:10px;color:var(--muted)}
.studio-form{display:grid;gap:15px}.studio-form label{display:grid;gap:6px;font-size:10px;color:var(--muted)}.studio-form input,.studio-form select,.studio-form textarea{width:100%;font-size:11px;color:var(--text);-webkit-text-fill-color:var(--text);color-scheme:dark}.studio-form textarea{min-height:90px;resize:vertical;border:1px solid var(--line-strong);background:var(--panel-2);border-radius:7px;padding:10px;color:var(--text);font:inherit;line-height:1.65}.studio-form textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.studio-field{animation:studio-field .45s both;animation-delay:calc(var(--field)*35ms)}.studio-form details{border-top:1px solid var(--line);padding-top:15px}.studio-form details>div{display:grid;gap:15px;padding-top:15px}.studio-form summary{font-size:11px;cursor:pointer}.studio-form .studio-confirm{grid-template-columns:16px 1fr;align-items:start;gap:8px;font-size:10px;line-height:1.6}.studio-confirm input{height:15px;width:15px;margin:2px 0;accent-color:var(--accent)}.studio-approved{font-size:11px;color:var(--green);margin-bottom:15px}.studio-actions{display:grid;gap:8px;margin-top:18px}.studio-reference{display:flex;justify-content:space-between;gap:15px;font-size:10px;margin:8px 0;color:var(--muted)}.studio-reference span:first-child{max-width:75%}
.studio-images{display:grid;gap:18px}.studio-image-card{border-bottom:1px solid var(--line);padding-bottom:18px}.studio-image-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.studio-image-placeholder{aspect-ratio:1;display:grid;place-content:center;gap:10px;background:var(--panel-2);border:1px dashed var(--line-strong);border-radius:8px;text-align:center;color:var(--muted);font-size:11px}.studio-image-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;font-size:10px}.studio-image-meta label{display:flex;align-items:center;gap:5px}.studio-image-meta input{height:14px;width:14px;accent-color:var(--accent)}.studio-image-meta button{font-size:10px}.studio-ai-label{font-size:9px;color:var(--accent-hover);display:block;margin:6px 0}.studio-channel{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line-strong);padding:20px 15px;border-radius:8px;margin:10px 0;font-size:12px}.studio-channel span{font-size:10px;color:var(--muted)}.studio-channel.published span{color:var(--green)}
.studio-audience-total{font-size:42px;font-weight:400;letter-spacing:-.05em;line-height:1.2}.studio-audience-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.studio-audience-stats div{border-top:1px solid var(--line-strong);padding-top:12px;display:grid;gap:4px}.studio-audience-stats b{font-size:20px;font-weight:400}.studio-audience-stats span{color:var(--muted);font-size:10px}.studio-match{border-top:1px solid var(--line);padding:12px 0;font-size:11px}.studio-match summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px}.studio-match summary span{color:var(--accent-hover);font-size:9px}.studio-match ul{padding-left:16px;font-size:10px;color:var(--muted);line-height:1.8}.studio-match p{font-size:10px;margin:8px 0}.studio-dragging{outline:1px dashed var(--accent);outline-offset:-12px}.studio-empty-progress{padding:15px 0}.studio-empty-progress strong{display:block;font-size:12px;font-weight:400;margin:18px 0 8px}.studio-empty-progress .studio-working{margin-bottom:16px}
.studio-node[data-step=edm],.studio-node[data-step=edm_sent]{width:min(440px,100%)}
.studio-ab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.studio-ab-panel{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px;border:1px solid var(--line-strong);border-radius:8px;background:#0d0d12;min-width:0}.studio-ab-letter{display:grid;place-items:center;width:24px;height:24px;background:#8b63e81c;border:1px solid #8b63e83d;border-radius:6px;color:var(--accent-hover);font-family:var(--mono);font-size:11px}.studio-ab-subject{font-size:10px;line-height:1.6;overflow-wrap:anywhere}.studio-ab-status{font-size:9px;color:var(--accent-hover);margin-top:auto;padding-top:5px}.studio-ab-status.sent{color:var(--green)}
.studio-email-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0 8px}.studio-email-tabs button{display:grid;gap:4px;text-align:left;padding:12px;background:var(--panel-2);border:1px solid var(--line-strong);border-radius:8px;font-size:12px}.studio-email-tabs button span{font-size:9px;color:var(--muted)}.studio-email-tabs button[aria-selected=true]{border-color:var(--accent);background:#8b63e813;color:var(--accent-hover)}.studio-inspector-body .studio-email-angle{font-size:10px;margin:10px 0;color:var(--accent-hover)}
.studio-email-preview{min-width:0}.studio-email-envelope{display:grid;gap:5px;padding:12px 0 14px;font-size:11px;line-height:1.65}.studio-email-envelope span{font-size:10px;color:var(--muted)}.studio-email-paper{background:#faf9f6;color:#243b2b;border-radius:8px;overflow:hidden;border:1px solid #ffffff15}.studio-email-brand{padding:25px 16px 20px;text-align:center;letter-spacing:.13em;font-size:12px;font-weight:600}.studio-email-brand span{display:block;margin-top:6px;font-size:9px;letter-spacing:.03em;color:#64705f;font-weight:400}.studio-email-paper>img{width:100%;max-height:260px;aspect-ratio:1;object-fit:contain;display:block;background:#eeede7}.studio-email-content{padding:22px 20px}.studio-inspector-body .studio-email-content h3{font-family:Georgia,serif;color:#243b2b;font-size:25px;line-height:1.15;font-weight:400;margin:0 0 16px;letter-spacing:-.02em}.studio-inspector-body .studio-email-copy{color:#51594e;font-size:11px;line-height:1.9;white-space:pre-wrap;margin-bottom:20px}.studio-email-product{display:grid;gap:5px;padding-top:15px;border-top:1px solid #243b2b25;font-size:11px;line-height:1.6}.studio-email-product strong{font-weight:500}.studio-email-product span{font-size:15px}.studio-email-cta{display:block;text-align:center;background:#294b38;color:#fff;border-radius:4px;padding:12px;margin-top:20px;font-size:11px;font-weight:500}.studio-email-footer{text-align:center;padding:16px;border-top:1px solid #243b2b15;color:#73786c;font-size:9px;line-height:1.9}.studio-email-footer span{text-decoration:underline}.studio-email-preview-label{font-size:9px;color:var(--muted);padding:10px 0 18px;text-align:center}.studio-email-edit{margin-top:6px}.studio-channel strong small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:6px}
@keyframes studio-arrive{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}}@keyframes studio-connect{from{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes studio-breathe{0%,100%{opacity:.25}50%{opacity:1}}@keyframes studio-field{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:1800px){.studio-layout{grid-template-columns:minmax(0,7fr) minmax(380px,3fr)}}
@media(max-width:1000px){.studio-layout{grid-template-columns:minmax(0,1fr) 320px}.studio-canvas-label{padding:14px 20px 8px}.studio-inspector-body{padding:20px}}
@media(max-width:720px){.studio-layout{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 24px)}.studio-workflow{height:65dvh;min-height:460px}.studio-inspector{border-left:0;border-top:1px solid var(--line);min-height:300px}.studio-inspector-body{max-height:70dvh}.studio-canvas-label{padding:12px 16px 6px}.studio-inspector>header{padding:20px}.studio-nodes{padding:24px 20px 50px}.studio-nodes.extended{padding-bottom:80px}}
@media(prefers-reduced-motion:reduce){.studio-layout *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.studio-canvas{scroll-behavior:auto}}

/* The activity terminal occupies the bottom of the canvas column. */
.studio-workflow{container-type:inline-size}
.studio-node-row{width:100%;display:grid;justify-items:center;flex-shrink:0;position:relative}
.studio-nodes.has-branches .studio-node-row{grid-template-columns:minmax(0,440px) 260px;gap:32px;justify-content:center;align-items:center}
.studio-nodes.has-branches>.studio-connector{translate:-146px 0}
.studio-node-row.has-previews:before{content:'';position:absolute;left:calc(50% - 146px);top:0;bottom:0;width:1px;background:#8b63e850}
.studio-node-row.has-previews>.studio-node{width:100%;z-index:1}
.studio-branches{display:grid;gap:14px;width:100%;position:relative;padding-left:20px;border-left:1px solid #8b63e870}
.studio-branches:before{content:'';position:absolute;left:-33px;top:50%;width:32px;height:1px;background:#8b63e870}
.studio-listing-card{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);text-align:left;gap:0;width:100%;padding:0;border:1px solid #8b63e840;border-radius:10px;background:#141318;overflow:visible;animation:studio-arrive .48s both}
.studio-listing-card:before{content:'';position:absolute;left:-21px;top:50%;width:20px;height:1px;background:#8b63e870}
.studio-listing-card:hover{border-color:var(--accent)}
.studio-listing-platform{grid-column:1/-1;display:flex;align-items:center;gap:7px;padding:10px 12px;font-size:10px}
.studio-listing-platform>span{margin-left:auto;color:var(--muted);font-size:9px}
.studio-platform-icon{width:21px;height:21px;object-fit:contain;display:inline-block;flex-shrink:0;vertical-align:middle}
.studio-listing-image{width:100%;height:112px;object-fit:contain;display:block;background:#09090b}
.studio-listing-copy{display:grid;gap:5px;padding:12px;font-size:11px;line-height:1.55;min-width:0}
.studio-listing-copy strong{font-weight:500;overflow-wrap:anywhere}.studio-listing-copy b{color:var(--accent-hover);font-size:12px;font-weight:500}
.studio-listing-copy>span{font-size:10px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.studio-listing-status{grid-column:1/-1;display:flex;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--line);font-size:9px;color:var(--green)}.studio-listing-status small{color:var(--muted)}
.studio-channel{flex-wrap:wrap;align-items:center}.studio-channel>strong{display:flex;align-items:center;gap:8px}.studio-channel>button{flex-basis:100%;text-align:left;font-size:10px}
.studio-simulation-label{font-size:9px;color:var(--muted);border:1px solid var(--line);padding:4px 7px;border-radius:4px}
.studio-image-focus{position:relative;width:100%;padding:0;border:0;display:block;border-radius:8px;background:#09090c;cursor:zoom-in}
.studio-image-card .studio-image-focus img{display:block;width:100%;height:auto;max-height:420px;aspect-ratio:auto;object-fit:contain}
.studio-image-focus>span{position:absolute;bottom:9px;right:9px;border:1px solid #ffffff30;border-radius:4px;background:#101015d9;color:#eee;padding:5px 8px;font-size:9px}
.studio-ai-label{font-size:11px;line-height:1.7;margin:10px 0 3px}.studio-ai-label strong{font-weight:500}.studio-generated-label{font-size:9px;color:var(--muted)}
.studio-activity{flex-shrink:0;border-top:1px solid var(--line-strong);background:#0d0c12;min-width:0}
.studio-activity>header{display:flex;align-items:center;padding:0 18px;gap:16px;background:#121117;border-bottom:1px solid var(--line)}
#studioActivityToggle{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:11px 0;background:none;border:0;text-align:left;font-size:10px}
#studioActivityToggle>strong{font-size:11px;font-weight:500}#studioActivityToggle>span:last-child{margin-left:auto;color:var(--muted)}
#studioActivityStatus{font-size:9px;color:var(--accent-hover)}#studioPlayback{font-size:10px;white-space:nowrap}
.studio-terminal-lights{display:flex;gap:4px}.studio-terminal-lights i{width:6px;height:6px;background:#9b79e5;border-radius:50%;opacity:.4}.studio-terminal-lights i:first-child{opacity:1}.studio-terminal-lights i:last-child{opacity:.2}
#studioActivityBody{position:relative}.studio-activity-log{height:150px;max-height:21dvh;overflow:auto;overscroll-behavior:contain;padding:8px 18px 16px;scroll-behavior:auto}
.studio-activity-row{display:flex;gap:10px;padding:5px 0;border-bottom:1px solid #ffffff06;font-size:10px;line-height:1.5}
.studio-activity-row>div{min-width:0}.studio-activity-symbol{font:12px var(--mono);color:var(--accent-hover);padding-top:2px;flex-shrink:0;width:12px}
.studio-activity-row.complete .studio-activity-symbol{color:var(--green)}.studio-activity-row.failed .studio-activity-symbol{color:var(--red)}
.studio-activity-meta{display:flex;gap:10px;flex-wrap:wrap;font-family:var(--mono);font-size:8px;color:#88828f}
.studio-activity-row strong{font-weight:500;color:#e0dce7}.studio-activity-row p{color:#9b96a5;margin:0;font-size:10px;overflow-wrap:anywhere}
.studio-activity-docs{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}.studio-activity-docs span{padding:2px 5px;border:1px solid #8b63e82b;border-radius:4px;font-size:8px;color:#a599be}
.studio-activity-latest{position:absolute;bottom:10px;right:18px;background:#312447;color:#dfcfff;border:1px solid #8b63e866;border-radius:15px;padding:6px 12px;font-size:9px}.studio-activity.collapsed #studioActivityToggle>span:last-child{rotate:180deg}
.studio-focus{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0b0b10;color:var(--text);overflow:hidden}
.studio-focus::backdrop{background:#08080be8}.studio-focus>header{height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 28px;border-bottom:1px solid var(--line)}
.studio-focus h2{font-size:15px;font-weight:500}.studio-focus>header button{min-height:36px;padding:8px 14px;font-size:11px}
#studioFocusBody{height:calc(100% - 70px);overflow:auto}.studio-focus-image{width:100%;height:100%;object-fit:contain;padding:24px;display:block}
.studio-storefront{max-width:1240px;margin:30px auto;background:#fff;color:#292d32;border-radius:12px;overflow:hidden}
.studio-storefront-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 32px;border-top:8px solid #eda136;border-bottom:1px solid #eee}
.studio-storefront-brand{display:flex;align-items:center;gap:8px;font-size:23px;letter-spacing:-.04em}.studio-storefront-brand small{font-size:10px;color:#b58551;letter-spacing:0;display:block}.studio-flora-emblem{font-size:42px;color:#dd9639;line-height:1}
.studio-preview-badge{font-size:10px;color:#6a6570;border:1px solid #ddd;padding:5px 9px;border-radius:4px;letter-spacing:0}.studio-storefront-nav{padding:14px;text-align:center;background:#fffafa;font-size:12px;border-bottom:1px solid #eee}
.studio-storefront-product{display:grid;grid-template-columns:1.15fr 1fr;gap:36px;padding:32px}.studio-storefront-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}.studio-storefront-gallery img{display:block;width:100%;height:200px;object-fit:contain;border-radius:8px;background:#f6f5f3}.studio-storefront-gallery img:first-child{grid-column:1/-1;height:auto;max-height:620px;min-height:260px}
.studio-storefront-category{font-size:11px;color:#777;margin-bottom:10px}.studio-storefront-info h3{font-size:30px;line-height:1.2;font-weight:600;letter-spacing:-.035em;margin-bottom:22px;overflow-wrap:anywhere}.studio-storefront-price{font-size:28px;color:#bf6344;display:block;margin-bottom:24px}.studio-storefront-description{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.studio-storefront-cta{display:block;margin:25px 0 20px;padding:15px;text-align:center;border-radius:5px;background:#df9e40;color:#fff;font-size:13px}.studio-storefront-info details{border-top:1px solid #e3dfdc;padding-top:16px;font-size:12px;line-height:1.9}.studio-storefront-info details summary{cursor:pointer}.studio-storefront-note{font-size:10px;color:#888;margin-top:20px}
.studio-storefront.shopee{background:#f5f5f5}.studio-storefront.shopee .studio-storefront-header{background:#ee4d2d;color:#fff;border-top-color:#ee4d2d}.studio-storefront.shopee .studio-platform-icon{filter:brightness(0) invert(1)}.studio-storefront.shopee .studio-preview-badge{color:#fff;border-color:#ffffff70}.studio-storefront.shopee .studio-storefront-nav{background:#fff}.studio-storefront.shopee .studio-storefront-product{background:#fff;margin:20px;border-radius:5px}.studio-storefront.shopee .studio-storefront-price{color:#ee4d2d;background:#fafafa;padding:15px}.studio-storefront.shopee .studio-storefront-cta{background:#ee4d2d}
.studio-storefront.tiktok .studio-storefront-header{background:#151515;color:#fff;border-top-color:#25f4ee}.studio-storefront.tiktok .studio-preview-badge{color:#ddd;border-color:#555}.studio-storefront.tiktok .studio-storefront-price{color:#161616}.studio-storefront.tiktok .studio-storefront-cta{background:#fe2c55}.studio-storefront.tiktok .studio-storefront-nav{background:#f7f7f7}
@container(max-width:760px){.studio-nodes.has-branches .studio-node-row{grid-template-columns:minmax(0,440px);gap:24px}.studio-nodes.has-branches>.studio-connector{translate:0}.studio-node-row.has-previews:before{display:none}.studio-node-row.has-previews>.studio-node{width:min(330px,100%)}.studio-branches{width:min(330px,100%);padding:0 0 0 20px}.studio-branches:before{left:50%;top:-25px;width:1px;height:24px}.studio-listing-image{height:150px}}
@media(max-width:720px){.studio-activity-log{height:130px;max-height:19dvh}.studio-activity>header{padding:0 14px}.studio-storefront{margin:12px;border-radius:8px}.studio-storefront-header{padding:20px 16px;align-items:flex-start;flex-direction:column;gap:12px}.studio-storefront-product{grid-template-columns:1fr;padding:16px;gap:24px}.studio-storefront.shopee .studio-storefront-product{margin:10px}.studio-storefront-info h3{font-size:24px}.studio-focus>header{padding:12px 16px}.studio-focus-image{padding:12px}}
@media(prefers-reduced-motion:reduce){.studio-listing-card{animation:none}.studio-focus *{animation:none;transition:none}}
.studio-activity-meta{font-size:8px}.studio-activity-docs span{font-size:8px}
.studio-listing-platform{padding:8px 10px}.studio-listing-image{height:88px}.studio-listing-copy{padding:8px;gap:3px;font-size:10px;line-height:1.4}.studio-listing-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.studio-listing-copy b{font-size:11px}.studio-listing-copy>span{-webkit-line-clamp:1;font-size:9px}.studio-listing-status{padding:6px 10px}

/* A playable upload has a separate inspector button and native video controls. */
.studio-node button.studio-node-top{width:100%;padding:0;border:0;background:none;color:inherit;text-align:left}
.studio-node-video{display:block;width:100%;height:190px;object-fit:contain;background:#08080a;border-radius:7px}
.studio-form option{color:var(--text);background:var(--panel-2)}

/* Generated outputs fill their own slots as each image is committed. */
.studio-node-visuals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.studio-node-visual{min-width:0;height:116px;border-radius:5px;overflow:hidden;background:#09090c;display:grid;place-items:center;color:var(--muted);font-size:9px}
.studio-node-visual img{display:block;width:100%;height:116px;object-fit:contain}
/* End the branch spine at the first and last card centres. */
.studio-branches{border-left:0;grid-auto-rows:1fr}
.studio-branches:after{content:'';position:absolute;left:0;width:1px;background:#8b63e870;top:calc((100% - (var(--branch-count,1) - 1) * 14px) / var(--branch-count,1) / 2);bottom:calc((100% - (var(--branch-count,1) - 1) * 14px) / var(--branch-count,1) / 2)}
.studio-listing-copy{align-content:center}
.studio-activity-row[data-agent="Media agent"]{--agent-colour:#7dd3fc}
.studio-activity-row[data-agent="Vision agent"]{--agent-colour:#c4b5fd}
.studio-activity-row[data-agent="Knowledge agent"]{--agent-colour:#f5cf79}
.studio-activity-row[data-agent="Product agent"]{--agent-colour:#8faeff}
.studio-activity-row[data-agent="Copy agent"]{--agent-colour:#f5a2bd}
.studio-activity-row[data-agent="Visual agent"]{--agent-colour:#9cdba0}
.studio-activity-row[data-agent="Commerce agent"]{--agent-colour:#f6b286}
.studio-activity-row[data-agent="Audience agent"]{--agent-colour:#67dfcc}
.studio-activity-row[data-agent="Campaign agent"]{--agent-colour:#e2a0ed}
.studio-activity-row[data-agent="Staff approval"]{--agent-colour:#c9cfdb}
.studio-activity-meta .studio-agent-name{color:var(--agent-colour,var(--accent-hover))}
.studio-audience-progress{display:grid;gap:10px;font-size:10px;color:var(--muted);margin:20px 0}
.studio-audience-progress progress{width:100%;height:4px;accent-color:var(--accent);border:0;border-radius:3px;overflow:hidden}
.studio-audience-progress progress::-webkit-progress-bar{background:var(--line)}
.studio-audience-progress progress::-webkit-progress-value{background:var(--accent)}
.studio-audience-group{padding:18px 0;border-top:1px solid var(--line)}
.studio-audience-group h3{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.studio-audience-group h3 b{font-size:11px;font-weight:400;color:var(--accent-hover);background:#8b63e817;padding:3px 7px;border-radius:5px}
.studio-inspector-body .studio-audience-group-note{font-size:10px;margin:-5px 0 14px}
.studio-audience-people{display:flex;flex-wrap:wrap;gap:10px;padding:4px}
.studio-audience-more{margin-top:6px}
.studio-audience-toggle{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;border:1px dashed #8b63e870;background:#8b63e80c;color:var(--accent-hover);padding:0;font-size:11px;font-weight:500}
.studio-audience-toggle:hover,.studio-audience-toggle[aria-expanded=true]{border-color:var(--accent-hover);background:#8b63e820}
.studio-person-thumb{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff18;padding:0;font-size:11px;font-weight:500;animation:studio-arrive .3s ease-out both}
.studio-person-thumb:hover{border-color:var(--accent-hover)}
.studio-person-thumb[aria-expanded=true]{outline:2px solid var(--accent-hover);outline-offset:2px}
.studio-audience-empty{font-size:10px;color:var(--muted);padding:8px 0}
.studio-audience-person{margin-top:15px;padding:15px;background:#17151e;border:1px solid #8b63e83d;border-radius:9px;animation:studio-arrive .25s ease-out both}
.studio-audience-person h4{font-size:13px;font-weight:500;margin:0 0 4px}
.studio-inspector-body .studio-person-email{font-size:10px;margin:0 0 8px;color:#c4bece}
.studio-person-profile{font-size:10px;color:var(--accent-hover)}
.studio-audience-person h5{font-size:10px;font-weight:500;margin:16px 0 6px}
.studio-audience-person p,.studio-audience-person li{font-size:10px;line-height:1.8;color:var(--muted)}
.studio-audience-person ul{padding-left:16px;margin:10px 0 0}
.studio-profile-fit{border-top:1px solid var(--line);padding:4px 0 8px}
.studio-profile-fit>p{font-size:10px;margin-bottom:18px}
.studio-fit-row{margin:0 0 16px}
.studio-fit-row>div{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:6px}
.studio-fit-row strong{color:var(--accent-hover);font-weight:500}
.studio-fit-row meter{appearance:none;width:100%;height:5px;display:block;border:0;background:var(--line);border-radius:4px;overflow:hidden}
.studio-fit-row meter::-webkit-meter-bar{border:0;background:var(--line);height:5px}
.studio-fit-row meter::-webkit-meter-optimum-value{background:var(--accent)}
.studio-fit-row meter::-moz-meter-bar{background:var(--accent)}
.studio-fit-row small{display:block;font-size:9px;margin-top:5px;color:var(--muted)}
.studio-inspector-body .studio-rehearsal-label{font-size:9px}

/* Pulse only for running operations or saved activity the viewer has not read. */
.studio-activity.has-activity .studio-terminal-lights i{animation:studio-signal 1.4s ease-in-out infinite}
.studio-activity.has-activity .studio-terminal-lights i:nth-child(2){animation-delay:.18s}
.studio-activity.has-activity .studio-terminal-lights i:nth-child(3){animation-delay:.36s}
@keyframes studio-signal{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.studio-activity.has-activity .studio-terminal-lights i{opacity:1;transform:none}}

.studio-demo-tag strong{font-weight:600;color:var(--text)}
.studio-demo-tag em{font-weight:400}
.studio-ab-header{display:flex;justify-content:space-between;align-items:center;gap:6px;width:100%;min-width:0}
.studio-ab-header .studio-ab-letter{flex-shrink:0}
.studio-ab-recipients{font-size:9px;font-weight:400;color:var(--muted);text-align:right;line-height:1.4}
.studio-ab-angle{font-size:11px;line-height:1.55;color:var(--text);overflow-wrap:anywhere}
.studio-ab-angle>small{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}
.studio-experiment{border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:20px}
.studio-inspector-body .studio-experiment h3{margin:0 0 10px}
.studio-experiment dl{display:grid;gap:8px;margin:16px 0}
.studio-experiment dl>div{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;font-size:11px;line-height:1.6}
.studio-experiment dt{color:var(--accent-hover)}
.studio-experiment dd{margin:0;color:var(--text)}
.studio-experiment h4{font-size:11px;font-weight:500;margin:18px 0 6px}
.studio-inspector-body .studio-experiment-controls{font-size:10px;color:var(--muted)}
