:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#142337;background:#f0f4f6;font-synthesis:none;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dde6e9;padding:20px max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}a{color:#10604d}a.logo{color:#142337;text-decoration:none;font-size:23px;white-space:nowrap}nav{display:flex;gap:22px;font-size:14px}nav a{text-decoration:none}main{max-width:1208px;margin:auto;padding:36px 24px}h1{font-size:clamp(34px,5vw,56px);line-height:1.12;margin:10px 0 20px;letter-spacing:-2px}h2{font-size:23px;margin:4px 0 15px;letter-spacing:-.5px}p{margin:8px 0 18px;color:#536477}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.7px;color:#397965;margin:0 0 7px}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.hero p:not(.eyebrow){max-width:620px}.badge{border:1px solid #bfccc8;padding:7px 13px;border-radius:30px;font-size:12px;white-space:nowrap;background:#fff}.badge.live{background:#d8f5e7;color:#0b5c43}.steps{display:flex;justify-content:space-between;background:#142337;color:#92d8c1;padding:22px 26px;border-radius:15px;gap:15px;margin:16px 0 26px}.steps span{font-size:14px;display:flex;gap:10px}.steps b{color:#fff;font-weight:550}.topgrid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{background:#fff;border:1px solid #dce5e8;border-radius:15px;padding:26px;margin-bottom:22px;box-shadow:0 4px 18px #17233004}label{display:block;font-size:13px;font-weight:600;margin:14px 0 7px}input:not([type=checkbox]),textarea,select{width:100%;padding:11px 12px;border:1px solid #cad7dd;border-radius:8px;font:inherit;font-size:14px;color:#203345;background:#fff;min-width:0}textarea{min-height:110px;resize:vertical}button,.button{display:inline-block;background:#fff;color:#234936;border:1px solid #b6ccc1;border-radius:8px;padding:11px 16px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;text-decoration:none;margin-top:12px}button:hover,.button:hover{background:#e6f5ed}button.primary,.button{background:#175d49;border-color:#175d49;color:#fff}button.primary:hover{background:#0d4434}button:disabled{opacity:.5;cursor:wait}button.quiet{color:#536477;border-color:#d3dfe4}.row{display:flex;flex-wrap:wrap;gap:10px}.small{font-size:12px;line-height:1.65;margin-top:15px}.check{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px;overflow-wrap:anywhere}input[type=checkbox]{accent-color:#175d49;width:17px;height:17px;flex-shrink:0}details{margin:15px 0}summary{cursor:pointer;font-size:13px;color:#175d49}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 18px}.sectionhead h2{margin-bottom:0}.sectionhead button{margin:0}.campaigns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.campaign{overflow:hidden;align-self:start}.video{background:#101d2d;border-radius:10px;display:flex;justify-content:center;margin:16px 0}.video video{display:block;width:100%;max-height:355px;border-radius:10px}.campaign .meta{display:flex;justify-content:space-between;align-items:center;gap:10px}.campaign h3{font-size:17px;margin:0;overflow-wrap:anywhere}.status{font-size:11px;color:#466457;border-radius:20px;background:#edf6f1;padding:5px 9px}.targets{margin:12px 0;font-size:13px}.snapshot{border-left:3px solid #63ba94;padding-left:12px;white-space:pre-wrap;overflow-wrap:anywhere}.libraryitem{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e4ebee}.libraryitem>div{min-width:0;overflow-wrap:anywhere}.libraryitem b{font-size:13px}.libraryitem small{display:block;color:#718193}.libraryitem button{margin:0;white-space:nowrap;flex-shrink:0}.empty{padding:32px;border:1px dashed #b9ccc4;border-radius:13px;text-align:center;grid-column:1/-1;color:#536477;margin-bottom:20px}.error{color:#922e2e;background:#fff0eb;padding:12px;border-radius:8px;overflow-wrap:anywhere}.delivery{font-size:12px;border-top:1px solid #e2e9e6;padding-top:12px;margin-top:15px;overflow-wrap:anywhere}#notice:empty{display:none}#notice{position:sticky;top:10px;z-index:5;background:#e0f3e9;border:1px solid #a3cbb5;border-radius:10px;padding:14px;margin-bottom:20px;box-shadow:0 6px 16px #1112}#notice.error{background:#fff0eb;border-color:#e9bbb0}footer{text-align:center;color:#73818e;font-size:12px;padding:28px}ol{padding-left:20px;color:#536477}li{margin:12px 0}[hidden]{display:none!important}:focus-visible{outline:3px solid #50c598;outline-offset:2px}@media(max-width:720px){header{padding:17px 20px;align-items:flex-start;flex-direction:column;gap:10px}nav{gap:18px;font-size:12px}main{padding:28px 18px}.hero{display:block}.hero .badge{display:inline-block;margin-bottom:10px}.topgrid,.campaigns{grid-template-columns:1fr}.panel{padding:21px}.steps{display:grid;grid-template-columns:1fr 1fr;padding:20px;gap:18px 12px}.steps span{font-size:12px}.libraryitem{align-items:flex-start}.libraryitem button{padding:8px 10px;font-size:11px}.sectionhead{flex-wrap:wrap}.campaigns{gap:0}}
:root{background:#f1f4fb;color:#16264b}a{color:#285ecc}.eyebrow{color:#476fbe}.hero{padding:20px 0 12px}.hero h1{font-size:clamp(40px,6vw,76px);letter-spacing:-3px}.hero-tags{display:flex;gap:7px;flex-wrap:wrap}.hero-tags span{background:#e3eafa;color:#365487;border-radius:30px;font-size:11px;padding:6px 11px}.steps{background:#19294d}.studio{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;background:linear-gradient(135deg,#fff,#f7f9ff);padding:30px}.studio h2{font-size:29px}.studio-controls>p{max-width:480px}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.create-row{margin-top:12px}.create-row button{flex:1;padding:14px 12px}.primary,.button{background:#285ed1!important;border-color:#285ed1!important}.primary:hover{background:#16449e!important}.studio-preview{max-width:290px;width:100%;justify-self:center}.story-poster{position:relative;aspect-ratio:9/14;border-radius:24px;overflow:hidden;padding:27px 22px;background:linear-gradient(150deg,#ecf4ff,#d9e4fc);color:#172f57;box-shadow:0 20px 40px #274b7520}.story-poster.night{background:linear-gradient(150deg,#0b1530,#203055);color:#f4f8ff}.story-poster.bloom{background:linear-gradient(150deg,#faf0fa,#e0dafa);color:#352754}.poster-top{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px}.poster-top span:first-child{font-weight:800}.poster-kicker{font-size:8px;letter-spacing:1.5px;margin-top:26px;color:inherit;opacity:.65}.story-poster h3{font-size:26px;line-height:1.15;letter-spacing:-.8px;position:relative;z-index:1;margin:9px 0;max-width:220px}.poster-orbit{position:absolute;left:20px;right:20px;top:46%;height:160px}.orbit-ring{position:absolute;border:1px solid #75a4dc;border-radius:50%;width:145px;height:145px;left:24px;top:0}.orbit-ring.two{left:50px;top:18px;transform:rotate(30deg)}.orbit-core{position:absolute;top:46px;left:66px;background:#356cda;color:white;border-radius:18px;padding:18px;font-size:19px;font-weight:800;box-shadow:0 0 40px #80b0ff50}.poster-figures{position:absolute;right:14px;bottom:45px;display:flex;align-items:flex-end}.poster-figures img{height:143px;max-width:113px;object-fit:contain}.poster-figures img+img{margin-left:-14px}.poster-footer{position:absolute;bottom:12px;left:22px;font-size:8px;font-weight:750;letter-spacing:1px;color:inherit}.story-details{grid-column:1/-1;margin:0;border-top:1px solid #e1e7f2;padding-top:16px}.story-details summary{color:#285ecc;font-weight:700}#storyScript{padding-top:15px}.beat{display:grid;grid-template-columns:55px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8f2}.beat small{color:#607191;font-size:11px}.beat b{font-size:14px}.beat p{font-size:13px;margin:4px 0 0}.tech-note{padding:18px;background:#f0f4fc;border-radius:14px;margin-top:16px}.tech-note p{font-size:13px}.sources{display:flex;flex-wrap:wrap;gap:8px}.sources a,.downloads a{font-size:12px;padding:7px 10px;border:1px solid #d5dfef;border-radius:7px;text-decoration:none}.downloads{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}.knowledge{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.knowledge details{background:#f4f7fd;border:1px solid #e1e7f2;border-radius:12px;padding:15px;margin:0}.knowledge summary{font-weight:700;color:#25436e}.knowledge p{font-size:13px;margin-top:12px}.knowledge button{font-size:12px}.search-panel label{font-size:18px;margin-top:0}.search-panel input{font-size:16px;padding:15px}.buffer-panel>summary{font-size:16px;font-weight:700}.buffer-panel>div{padding-top:20px}.progress-note{font-size:13px;color:#2b60b4;background:#edf3ff;border-radius:10px;padding:13px}.campaign .meta{flex-wrap:wrap}.status{background:#eaf0fc;color:#365187}.story-meta{font-size:12px;color:#607191}.search-panel .small{margin-top:8px}.campaign video{max-height:470px}.badge{color:#35527c}#notice{position:static}#notice.error{color:#922e2e}
@media(max-width:720px){main{padding:22px 16px}.hero{padding-top:0}.hero h1{letter-spacing:-2px}.hero p:not(.eyebrow){font-size:16px}.hero-tags{margin-bottom:15px}.studio{grid-template-columns:1fr;padding:22px 18px;gap:20px}.studio-preview{max-width:235px}.studio h2{font-size:26px}.studio-controls>p{font-size:14px}.create-row{flex-direction:column;gap:0}.create-row button{width:100%;min-height:48px}.control-grid{gap:8px}.control-grid select{font-size:12px;padding:12px 8px}.knowledge{grid-template-columns:1fr}.story-poster h3{font-size:23px}.poster-figures img{height:125px}.poster-kicker{margin-top:20px}.poster-orbit{top:43%}.orbit-ring{width:120px;height:120px}.orbit-core{top:30px;left:52px}.panel{padding:20px 17px}header{padding:16px}.hero .badge{margin-top:12px}input:not([type=checkbox]),select,textarea{font-size:16px}.steps{padding:17px}.steps span{font-size:11px}.knowledge summary{font-size:14px}.beat{grid-template-columns:44px 1fr}.campaign h3{font-size:16px}.search-panel label{font-size:17px}}
@media(prefers-reduced-motion:no-preference){.orbit-core{animation:float 4s ease-in-out infinite}@keyframes float{50%{transform:translateY(-7px)}}}

/* elma mini ad workflow */
.ad-studio{max-width:920px;margin:0 auto 28px}.ad-studio h2{font-size:30px;color:#182C53}.ad-studio textarea{min-height:180px;font-size:16px}.ad-studio .row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.ad-studio .row>*{flex:1;min-width:200px;text-align:center}.ad-bundle{margin-top:28px;padding:24px;border:1px solid #cedff4;border-radius:18px;background:#F3F9FF}#adBundleList{display:grid;gap:8px;margin:16px 0}#adBundleList details{border-bottom:1px solid #cedff4;padding:8px 0}#adBundleList p{font-size:14px}header .logo{max-width:280px}header .em-lockup{display:inline-flex}.ad-studio .em-suggestions{flex-wrap:wrap}.ad-studio .em-suggestions button{white-space:normal}.story-poster .poster-top img{width:64px;height:43px;object-fit:contain}@media(max-width:600px){.ad-bundle{padding:16px}.ad-studio h2{font-size:25px}.ad-studio .row{flex-direction:column}.ad-studio .row>*{width:100%}.ad-studio .control-grid{grid-template-columns:1fr}.ad-studio .em-suggestions button{flex:1 1 100%}header nav{flex-wrap:wrap}}

.ad-regenerate-row{align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0}.ad-regenerate-row button{min-height:44px;flex:none}.ad-regenerate-row span{flex:1;min-width:180px}.ad-prompt pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 system-ui;padding:14px;border-radius:12px;background:#edf5ff;max-height:350px;overflow:auto}.ad-prompt summary{min-height:44px;cursor:pointer}@media(max-width:600px){.ad-regenerate-row button{width:100%}.ad-regenerate-row span{min-width:0;flex-basis:100%}}

/* Keep portrait video at its natural ratio instead of inside a wide fixed-height box. */
.video{width:fit-content;max-width:100%;margin:16px auto}.video video{width:auto;max-width:100%;height:auto;max-height:min(74vh,640px);object-fit:contain}.campaign video{max-height:min(74vh,640px)}
