.sbml-ai-presentation{--sbml-pres-bg:#071f35;--sbml-pres-gold:#d7aa43;--sbml-pres-soft:#eef4f8;border:1px solid #d8e0e6;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 16px 42px rgba(10,30,50,.12);margin:18px 0}.sbml-presentation-stage{position:relative;min-height:430px;background:linear-gradient(135deg,#071f35,#123754);display:grid;place-items:center;padding:26px}.sbml-presentation-slide-canvas{width:min(100%,980px);aspect-ratio:16/9;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 18px 55px rgba(0,0,0,.3);position:relative}.sbml-presentation-slide{height:100%;display:grid;grid-template-columns:1.08fr .92fr}.sbml-presentation-slide.has-no-visual{grid-template-columns:1fr}.sbml-presentation-copy{padding:7% 7% 6%;display:flex;flex-direction:column;justify-content:center}.sbml-presentation-copy .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#8b6b22;font-weight:800}.sbml-presentation-copy h3{font-size:clamp(24px,3.1vw,46px);line-height:1.06;margin:10px 0 12px;color:#102b42}.sbml-presentation-copy h4{font-size:clamp(15px,1.5vw,21px);font-weight:500;margin:0 0 18px;color:#536978}.sbml-presentation-copy ul{padding-left:20px;margin:0}.sbml-presentation-copy li{font-size:clamp(14px,1.35vw,20px);line-height:1.45;margin:7px 0;color:#253d50}.sbml-presentation-copy .interaction{margin-top:18px;background:#f8f1df;border-left:4px solid var(--sbml-pres-gold);padding:12px 14px;border-radius:7px;font-size:14px;color:#59481f}.sbml-presentation-visual{background:#dce8ee;min-height:100%;position:relative}.sbml-presentation-visual img{width:100%;height:100%;object-fit:cover;display:block}.sbml-presentation-visual .visual-placeholder{height:100%;display:grid;place-items:center;padding:30px;text-align:center;color:#547080;background:radial-gradient(circle at 30% 25%,#f6fbfd,#d5e5ed)}.sbml-presentation-presenter{position:absolute;z-index:4;background:rgba(8,30,49,.93);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:10px;box-shadow:0 10px 32px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:3px;align-items:center;transition:.2s}.sbml-avatar-layout-corner .sbml-presentation-presenter,.sbml-avatar-layout-pip .sbml-presentation-presenter{right:18px;bottom:18px;width:140px}.sbml-avatar-layout-side .sbml-presentation-stage{padding-right:200px}.sbml-avatar-layout-side .sbml-presentation-presenter{right:18px;top:50%;transform:translateY(-50%);width:160px}.sbml-presentation-presenter strong{font-size:12px}.sbml-presentation-presenter>span{font-size:10px;opacity:.75}.sbml-presenter-media{width:112px;height:112px;border-radius:13px;overflow:hidden;background:#173f5c;position:relative}.sbml-presenter-media img,.sbml-presenter-media video{width:100%;height:100%;object-fit:cover}.sbml-presenter-placeholder{height:100%;display:grid;place-items:center;font-size:48px}.sbml-presenter-mouth{position:absolute;width:19%;height:6%;left:40.5%;top:69%;border-radius:50%;background:rgba(55,20,22,.55);opacity:0;transform:scaleY(.2);pointer-events:none}.sbml-presentation-presenter.is-speaking .sbml-presenter-mouth{opacity:.72;animation:sbmlMouth .22s infinite alternate}.sbml-presentation-presenter.is-speaking{box-shadow:0 0 0 3px rgba(215,170,67,.25),0 12px 35px rgba(0,0,0,.35)}@keyframes sbmlMouth{from{transform:scaleY(.25) scaleX(.8)}to{transform:scaleY(1.25) scaleX(1.1)}}.sbml-presentation-controls{display:flex;gap:7px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid #e4e9ed;background:#fbfcfd;justify-content:center}.sbml-presentation-controls .button{font-size:12px;min-height:32px}.sbml-presentation-progress{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:0 18px 12px;font-size:12px;color:#61717c;background:#fbfcfd}.sbml-presentation-progress>div{height:6px;background:#e4e9ed;border-radius:99px;overflow:hidden}.sbml-presentation-progress i{display:block;height:100%;width:0;background:var(--sbml-pres-gold);transition:width .2s}.sbml-presentation-transcript{padding:12px 18px 16px;background:#fff;color:#455e6d;font-size:13px;line-height:1.55;border-top:1px solid #eef1f3}.sbml-ai-presentation-studio{border:1px solid #d8e0e6;border-radius:14px;padding:16px;margin-top:14px;background:#fbfcfd}.sbml-ai-presentation-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.sbml-ai-presentation-heading h4{margin:2px 0 4px}.sbml-ai-presentation-heading p{margin:0;color:#657682}.sbml-presentation-slide-row{border:1px solid #dce3e7;border-radius:12px;background:#fff;padding:12px;margin:12px 0}.sbml-presentation-row-actions{display:flex;gap:10px;align-items:center;margin:8px 0}.sbml-presentation-source-list{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.sbml-presentation-source-list span{font-size:11px;background:#edf3f6;border-radius:99px;padding:4px 8px}.sbml-ai-presentation-status{min-height:18px;margin-top:8px;font-size:12px;font-weight:600;color:#446070}.sbml-ai-presentation-status.is-error{color:#a72d2d}.sbml-presentation-slide-editor>.sbml-ai-presentation-heading{margin-top:10px}@media(max-width:800px){.sbml-presentation-stage{padding:12px;min-height:330px}.sbml-presentation-slide{grid-template-columns:1fr}.sbml-presentation-visual{position:absolute;inset:0;opacity:.16}.sbml-presentation-copy{position:relative;z-index:1}.sbml-avatar-layout-side .sbml-presentation-stage{padding-right:12px}.sbml-avatar-layout-side .sbml-presentation-presenter,.sbml-presentation-presenter{width:94px!important;right:10px!important;bottom:10px!important;top:auto!important;transform:none!important}.sbml-presenter-media{width:70px;height:70px}.sbml-presentation-controls{gap:5px}.sbml-presentation-controls .button{font-size:11px;padding:0 7px}}


/* v0.16.1 — adaptive slide fitting and question-pause polish */
.sbml-presentation-copy{padding:5.25% 5.75% 4.75%;min-height:0;overflow:hidden;justify-content:center}
.sbml-presentation-copy h3{font-size:clamp(21px,2.5vw,38px);line-height:1.08;margin:7px 0 9px}
.sbml-presentation-copy h4{font-size:clamp(13.5px,1.2vw,18px);line-height:1.3;margin:0 0 12px}
.sbml-presentation-copy li{font-size:clamp(12.5px,1.08vw,16.5px);line-height:1.34;margin:4px 0}
.sbml-presentation-copy .eyebrow{font-size:10px;letter-spacing:.12em}
.sbml-presentation-copy .interaction{margin-top:11px;padding:9px 11px;font-size:12.5px;line-height:1.35}
.sbml-presentation-copy.is-fit-1{padding:4.5% 5% 4%}
.sbml-presentation-copy.is-fit-1 h3{font-size:clamp(19px,2.2vw,34px)}
.sbml-presentation-copy.is-fit-1 h4{font-size:clamp(13px,1.1vw,16.5px);margin-bottom:9px}
.sbml-presentation-copy.is-fit-1 li{font-size:clamp(12px,1vw,15px);line-height:1.28;margin:3px 0}
.sbml-presentation-copy.is-fit-1 .interaction{font-size:12px;margin-top:8px;padding:7px 9px}
.sbml-presentation-copy.is-fit-2{padding:3.8% 4.4% 3.4%}
.sbml-presentation-copy.is-fit-2 h3{font-size:clamp(18px,2vw,30px);margin:5px 0 7px}
.sbml-presentation-copy.is-fit-2 h4{font-size:clamp(12.5px,1vw,15px);margin-bottom:7px}
.sbml-presentation-copy.is-fit-2 li{font-size:clamp(11.5px,.92vw,13.8px);line-height:1.23;margin:2px 0}
.sbml-presentation-copy.is-fit-2 .interaction{font-size:11.5px;margin-top:6px;padding:6px 8px}
.sbml-presentation-copy.is-fit-3{padding:3.1% 3.8% 2.8%;justify-content:flex-start}
.sbml-presentation-copy.is-fit-3 h3{font-size:clamp(17px,1.8vw,27px);margin:4px 0 6px}
.sbml-presentation-copy.is-fit-3 h4{font-size:clamp(12px,.92vw,14px);margin-bottom:6px}
.sbml-presentation-copy.is-fit-3 li{font-size:clamp(11px,.86vw,12.8px);line-height:1.18;margin:2px 0}
.sbml-presentation-copy.is-fit-3 .interaction{font-size:11px;margin-top:5px;padding:5px 7px}
.sbml-presentation-copy.is-overflowing{overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(16,43,66,.28) transparent}
.sbml-presentation-copy.is-overflowing::-webkit-scrollbar{width:5px}.sbml-presentation-copy.is-overflowing::-webkit-scrollbar-thumb{background:rgba(16,43,66,.28);border-radius:8px}
.sbml-ai-presentation.is-question-paused .sbml-presentation-stage:after{content:"Paused for your question";position:absolute;left:18px;bottom:18px;z-index:5;background:rgba(7,31,53,.9);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700;letter-spacing:.01em;pointer-events:none}
@media(max-width:800px){.sbml-presentation-copy{padding:5% 5.5%}.sbml-presentation-copy h3{font-size:clamp(20px,5.6vw,31px)}.sbml-presentation-copy h4{font-size:clamp(13px,3.4vw,16px)}.sbml-presentation-copy li{font-size:clamp(12px,3.15vw,14.5px)}}


/* v0.16.2 — presenter dock/minimize + microphone hard-pause polish */
.sbml-avatar-layout-corner .sbml-presentation-stage,
.sbml-avatar-layout-pip .sbml-presentation-stage{padding:24px 24px 104px}
.sbml-avatar-layout-corner .sbml-presentation-presenter,
.sbml-avatar-layout-pip .sbml-presentation-presenter{right:24px;bottom:12px;top:auto;transform:none;width:auto;min-width:158px;max-width:220px;padding:6px 32px 6px 6px;border-radius:13px;flex-direction:row;align-items:center;gap:8px}
.sbml-avatar-layout-corner .sbml-presenter-media,
.sbml-avatar-layout-pip .sbml-presenter-media{width:54px;height:54px;flex:0 0 54px;border-radius:10px}
.sbml-avatar-layout-corner .sbml-presenter-placeholder,
.sbml-avatar-layout-pip .sbml-presenter-placeholder{font-size:28px}
.sbml-presenter-meta{display:flex;min-width:0;flex:1;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.15}
.sbml-presenter-meta strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.sbml-presenter-meta>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;opacity:.78}
.sbml-presenter-toggle{position:absolute;right:5px;top:5px;width:22px;height:22px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font:700 16px/18px Arial,sans-serif;cursor:pointer;display:grid;place-items:center;z-index:7}
.sbml-presenter-toggle:hover,.sbml-presenter-toggle:focus{background:rgba(255,255,255,.2);outline:none}
.sbml-presentation-presenter.is-minimized{min-width:0!important;max-width:none!important;width:46px!important;height:46px!important;padding:5px!important;border-radius:999px!important;gap:0!important}
.sbml-presentation-presenter.is-minimized .sbml-presenter-media{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:50%!important}
.sbml-presentation-presenter.is-minimized .sbml-presenter-meta{display:none!important}
.sbml-presentation-presenter.is-minimized .sbml-presenter-toggle{right:-5px;top:-5px;width:19px;height:19px;font-size:13px;line-height:16px;background:#173f5c}
.sbml-avatar-layout-side .sbml-presenter-meta{align-items:center}
.sbml-ai-presentation.is-question-paused .sbml-presentation-stage:after{bottom:15px}
@media(max-width:800px){
 .sbml-avatar-layout-corner .sbml-presentation-stage,.sbml-avatar-layout-pip .sbml-presentation-stage,.sbml-presentation-stage{padding:12px 12px 76px;min-height:330px}
 .sbml-avatar-layout-side .sbml-presentation-stage{padding:12px 12px 76px}
 .sbml-avatar-layout-side .sbml-presentation-presenter,.sbml-presentation-presenter{right:12px!important;bottom:10px!important;top:auto!important;transform:none!important;width:auto!important;min-width:126px;max-width:170px;padding:5px 27px 5px 5px!important;flex-direction:row!important;gap:6px!important;border-radius:12px!important}
 .sbml-presenter-media{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:9px!important}
 .sbml-presenter-placeholder{font-size:23px}
 .sbml-presenter-meta strong{font-size:10px}.sbml-presenter-meta>span{font-size:8px}
 .sbml-presentation-presenter.is-minimized{min-width:0!important;width:40px!important;height:40px!important;padding:4px!important;border-radius:999px!important}
 .sbml-presentation-presenter.is-minimized .sbml-presenter-media{width:30px!important;height:30px!important;flex:0 0 30px!important}
 .sbml-ai-presentation.is-question-paused .sbml-presentation-stage:after{left:12px;bottom:13px;max-width:calc(100% - 170px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Presentation Studio 2.0: visual scene compositions; existing content remains compatible. */
.sbml-ai-presentation{--sbml-pres-bg:#142637;--sbml-pres-gold:#DCA958;border-radius:22px;box-shadow:0 22px 60px rgba(16,37,55,.19)}
.sbml-presentation-stage{background:radial-gradient(circle at 15% 10%,#405b72,#101c2b 70%);padding:32px}
.sbml-presentation-slide-canvas{box-shadow:0 28px 70px rgba(0,0,0,.4)}
.sbml-presentation-slide{position:relative;isolation:isolate;background:#f8f7f2}
.sbml-presentation-slide .eyebrow{color:#A26F19;font-weight:800;letter-spacing:.19em}
.sbml-presentation-slide h3{font-weight:850;letter-spacing:-.035em}
.sbml-presentation-slide .sbml-scene-accent{position:absolute;left:0;bottom:0;width:36%;height:7px;background:linear-gradient(90deg,#DCA958,#8C0E0F);z-index:2}
.sbml-scene-hero{background:linear-gradient(132deg,#172D3C 10%,#344D5B 75%,#6A3D36);color:#fff}
.sbml-scene-hero .sbml-presentation-copy{position:relative;z-index:2}
.sbml-scene-hero h3{color:#fff;font-size:clamp(28px,3.7vw,54px)}
.sbml-scene-hero h4,.sbml-scene-hero li{color:#eee6d9}
.sbml-scene-hero .eyebrow{color:#E1B83A}
.sbml-scene-hero.has-visual .sbml-presentation-visual{position:absolute;inset:0;opacity:.35}
.sbml-scene-hero.has-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,30,43,.94),rgba(18,33,46,.58) 70%,rgba(18,33,46,.18));z-index:1;pointer-events:none}
.sbml-scene-hero.has-visual .sbml-presentation-copy{max-width:78%}
.sbml-scene-cards,.sbml-scene-process .sbml-scene-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.sbml-scene-card{border:1px solid #e6d6b9;background:linear-gradient(155deg,#fff,#f5ede0);border-radius:14px;min-width:0;padding:14px;box-shadow:0 6px 20px rgba(26,37,49,.07);display:flex;flex-direction:column;gap:9px;line-height:1.25}
.sbml-scene-number{color:#8C0E0F;font-size:12px;font-weight:900;letter-spacing:.12em}
.sbml-scene-card strong{font-size:clamp(12px,1.15vw,17px);color:#1d3447}
.sbml-scene-process .sbml-scene-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sbml-scene-process .sbml-scene-card{position:relative;padding:12px 9px}
.sbml-scene-process .sbml-scene-card:not(:last-child):after{content:'›';position:absolute;right:-9px;top:40%;color:#8C0E0F;font-size:26px;z-index:2}
.sbml-scene-statement{background:linear-gradient(135deg,#F8F2E6,#fff)}
.sbml-scene-statement .sbml-presentation-copy{max-width:78%;z-index:2}
.sbml-scene-statement h3{font-size:clamp(27px,3.5vw,52px);color:#202F3D}
.sbml-scene-orbit{position:absolute;right:6%;top:20%;width:24%;aspect-ratio:1;border:18px solid rgba(220,169,88,.22);border-radius:50%}
.sbml-scene-orbit span{position:absolute;width:26%;aspect-ratio:1;background:#8C0E0F;border-radius:50%;left:-14%;top:-14%}
.sbml-scene-orbit span:nth-child(2){background:#DCA958;left:auto;right:-15%;top:42%}
.sbml-scene-orbit span:nth-child(3){background:#38424E;left:35%;top:auto;bottom:-15%}
.sbml-scene-cards .sbml-presentation-copy,.sbml-scene-process .sbml-presentation-copy{padding:5%}
.sbml-scene-cards.has-visual,.sbml-scene-process.has-visual{grid-template-columns:1fr}
.sbml-scene-cards.has-visual .sbml-presentation-visual,.sbml-scene-process.has-visual .sbml-presentation-visual{position:absolute;inset:0;opacity:.12;z-index:0}
.sbml-scene-cards.has-visual .sbml-presentation-copy,.sbml-scene-process.has-visual .sbml-presentation-copy{position:relative;z-index:1}
.sbml-presentation-slide .sbml-scene-cards{max-width:100%}
.sbml-presentation-slide .interaction{background:#f5eacd}
@media(max-width:680px){.sbml-scene-process .sbml-scene-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sbml-scene-card{padding:9px}.sbml-scene-statement .sbml-presentation-copy{max-width:92%}.sbml-scene-hero.has-visual .sbml-presentation-copy{max-width:100%}}
@media(prefers-reduced-motion:reduce){.sbml-presentation-slide *{animation:none!important;transition:none!important}}
