*{box-sizing:border-box}body{margin:0;background:#f6f5fc;color:#302b49;font:15px/1.5 system-ui,sans-serif}main{max-width:1320px;margin:auto;padding:30px}.heading{text-align:center;margin:12px 0 30px}.badge{font-size:11px;font-weight:750;letter-spacing:2px;color:#8971c6}h1{font-size:clamp(28px,4vw,44px);line-height:1.2;letter-spacing:-1.5px;margin:12px 0}.heading p{color:#80778f;margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.preview,aside{background:white;border:1px solid #e8e3f2;border-radius:22px;padding:20px;box-shadow:0 8px 40px #51418a08}.preview canvas{width:100%;max-height:65vh;object-fit:contain;border-radius:14px;background:#151127;display:block}.transport{margin-top:20px}audio{width:100%}#filename{overflow-wrap:anywhere;font-size:13px;color:#81788f}#status{font-size:13px;color:#7762ae;min-height:20px}button,input,select{font:inherit}button,a.primary{cursor:pointer;border:1px solid #ded5f0;border-radius:12px;background:#f2edfc;color:#68519c;padding:12px;font-weight:650;transition:background .15s,transform .15s}button:hover{background:#e8def8}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b3a0ec;outline-offset:3px}.drop{width:100%;padding:24px 10px;border-style:dashed;background:#faf8ff}.drop small{display:block;font-size:11px;font-weight:400;margin-top:8px}.drop.over{background:#e8def8;outline:2px solid #aa8fe3}.secondary{width:100%;margin-top:10px}.styles{display:grid;grid-template-columns:1fr 1fr;gap:8px}.styles button{font-size:13px;padding:10px 5px}.styles button[aria-pressed=true]{background:#ded1f8;border-color:#a58ad8;color:#503580}label{display:block;margin:20px 0 8px;font-size:13px;font-weight:650}.row{display:flex;gap:16px}.row label{flex:1}input[type=color]{width:100%;height:38px;border:1px solid #e3dcef;padding:3px;background:#faf8ff;border-radius:9px;display:block;margin-top:7px}input:not([type=color]):not([type=range]),select{display:block;width:100%;border:1px solid #e4dced;background:#fcfbff;border-radius:9px;padding:10px;color:#55466d;margin-top:7px}input[type=range]{width:100%;display:block;accent-color:#9476cb;margin-top:10px}.slider output{float:right;font-weight:400}.primary{display:block;width:100%;margin-top:18px;text-align:center;text-decoration:none;background:linear-gradient(115deg,#9b7bce,#747bd1)!important;color:white!important;border:none!important}.hint{font-size:11px;color:#8a8198;margin:12px 0 0}[hidden]{display:none!important}@media(max-width:850px){.workspace{grid-template-columns:1fr}main{padding:18px}.heading{margin:15px 0 24px}aside{display:block}.preview{padding:12px}.preview canvas{max-height:55vh}}
.butterchurn-choice{grid-column:1/-1;background:linear-gradient(115deg,#eee5ff,#e7eafa)}.preset-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.preset-buttons button{font-size:11px;padding:9px 4px}#preset{font-size:12px}#butterchurn-settings{border-bottom:1px solid #eee7f6;padding-bottom:16px}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.gallery-heading h2{font-size:16px;margin:0}.gallery-heading span{font-size:12px;color:#9686ae}.styles{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.styles button{padding:7px;border-radius:13px;background:#fcfaff;font-size:11px;overflow:hidden}.styles canvas{width:100%;height:auto;aspect-ratio:1.6;max-height:none;border-radius:7px;margin-bottom:7px}.styles button[aria-pressed=true]{box-shadow:0 0 0 2px #b398e3}.butterchurn-choice{grid-column:auto}.themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.themes button{padding:5px 3px;font-size:10px;background:#fcfaff}.themes button[aria-pressed=true]{border-color:#8e70c5;box-shadow:0 0 0 1px #bda4e7}.swatch{height:24px;display:block;border-radius:5px;margin-bottom:5px}.row{gap:8px}.row label{min-width:0;font-size:11px}#image-name{display:block;overflow-wrap:anywhere}aside{min-width:0}.preview{position:sticky;top:18px}.styles button:disabled{opacity:.55}@media(max-width:1050px){.styles{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.preview{position:static}.styles{grid-template-columns:repeat(5,minmax(0,1fr))}.styles button{font-size:10px}}@media(max-width:520px){.styles{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-heading{margin-top:20px}.themes{grid-template-columns:repeat(4,minmax(0,1fr))}}

#export-progress-wrap{margin-top:16px}.export-progress-label{display:flex;justify-content:space-between;font-size:12px;color:#796797;margin-bottom:7px}#export-progress{display:block;width:100%;height:9px;appearance:none;border:0;border-radius:10px;overflow:hidden;background:#eee8f7}#export-progress::-webkit-progress-bar{background:#eee8f7}#export-progress::-webkit-progress-value{background:linear-gradient(90deg,#a78bfa,#7f8dde);border-radius:10px}#export-progress::-moz-progress-bar{background:#9477cd;border-radius:10px}.download-ready{display:block;margin-top:14px;padding:12px;border:1px solid #ded5f0;border-radius:12px;background:#f2edfc;color:#68519c;text-align:center;text-decoration:none;font-weight:650}

.primary.recording{background:linear-gradient(115deg,#b66b9b,#8c71c8)!important;box-shadow:0 0 0 4px #b48bd524}

.source-picker{margin:0 0 24px;padding:24px;border:1px solid #e2d8f3;border-radius:22px;background:linear-gradient(120deg,#fff,#f3effd);box-shadow:0 8px 32px #68519c08}
.source-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.source-heading h2{font-size:22px;letter-spacing:-.5px;margin:0 0 3px}.source-heading p{font-size:14px;color:#81758f;margin:0}.source-heading>span{color:#a190b8;font-size:10px;letter-spacing:1.5px;font-weight:700}
.source-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.source-options>div{min-width:0}.source-card{display:flex;align-items:center;gap:17px;width:100%;height:100%;min-height:144px;padding:24px;text-align:left;border:2px solid #e2d7f1;border-radius:18px;background:#fff;color:#625086;box-shadow:0 5px 16px #64518a06;transition:border-color .18s,box-shadow .18s,background .18s}.source-card:hover{background:#faf7ff;border-color:#b49bdf;box-shadow:0 7px 22px #8163b518}.source-card:disabled{opacity:.55;cursor:default}.source-card[aria-pressed=true]{border-color:#a78bd6;background:#f4edff;box-shadow:0 0 0 3px #ac8ed412}.source-card.over{border-style:dashed;background:#ebe1fc;outline:3px solid #c5b0e8}
.source-icon{display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,#ede4fc,#e5eafb);color:#8c6ac2}.source-icon svg{width:30px;height:30px}.microphone-card .source-icon{background:linear-gradient(135deg,#e6e7fb,#ede1f9);color:#8272bd}.source-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.source-copy strong{font-size:20px;letter-spacing:-.3px;color:#574276}.source-copy>span{font-size:12px;font-weight:450;color:#847394}.source-copy small{font-size:11px;font-weight:400;color:#a094ad}.source-badge{flex-shrink:0;margin-left:auto;border-radius:20px;padding:7px 11px;background:#f0eafa;color:#8566ae;font-size:10px;white-space:nowrap}.source-card[aria-pressed=true] .source-badge{background:#e4d8f8;color:#72529c}.microphone-card[aria-pressed=true] .source-badge{background:#e1e9f5;color:#627faa}
@media(max-width:1100px){.source-card{padding:19px;gap:12px}.source-badge{display:none}.source-icon{width:54px;height:54px}.source-copy strong{font-size:19px}}
@media(max-width:650px){.source-picker{padding:18px;border-radius:18px;margin-bottom:18px}.source-heading{margin-bottom:14px}.source-heading h2{font-size:20px}.source-heading p{font-size:12px}.source-heading>span{display:none}.source-options{grid-template-columns:1fr;gap:10px}.source-card{min-height:116px;padding:18px}.source-badge{display:block;font-size:9px;padding:6px 8px}.source-icon{width:48px;height:48px;border-radius:14px}.source-icon svg{width:25px;height:25px}.source-copy strong{font-size:18px}.source-copy>span{font-size:11px}.source-copy small{font-size:10px}}
@media(max-width:390px){.source-badge{display:none}}
/* Separate the style gallery so the settings do not need a tall empty column. */
.workspace{align-items:start}
.workspace>.preview{position:sticky;top:18px}
.motion-gallery{margin-top:20px;padding:20px;background:#fff;border:1px solid #e8e3f2;border-radius:22px;box-shadow:0 8px 40px #51418a08}
.motion-gallery .gallery-heading{margin:0 0 16px}
.motion-gallery .styles{grid-template-columns:repeat(10,minmax(0,1fr))}
.motion-gallery .styles canvas{display:block;width:100%;height:auto;aspect-ratio:1.6;border-radius:7px;margin-bottom:7px;background:#151127}
@media(max-width:1100px){.motion-gallery .styles{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:850px){.workspace>.preview{position:static}.motion-gallery{padding:16px;border-radius:18px}}
@media(max-width:520px){.motion-gallery .styles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:851px){
  .workspace{grid-template-columns:minmax(0,1fr) 370px}
  .workspace>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;align-content:start}
  .workspace>aside>div,.workspace>aside>.primary,.workspace>aside>.secondary,.workspace>aside>.download-ready,.workspace>aside>.hint,#intensity-label{grid-column:1/-1}
  .workspace>aside>label{min-width:0;margin-top:14px;margin-bottom:4px}
  .workspace>aside #palette-settings>label{margin-top:0}
  .workspace>aside .row label{margin-top:14px;margin-bottom:0}
  .workspace>aside input:not([type=color]):not([type=range]),.workspace>aside select{font-size:12px;padding:9px}
}
@media(min-width:1101px){.workspace{align-items:stretch}.workspace>.preview{position:static}}
@media(min-width:851px) and (max-width:1100px){.workspace{grid-template-columns:1fr}.workspace>.preview{position:static}}

/* Keep style cards with the preview, without stretching the control spacing. */
.preview .motion-gallery{padding:0;margin:20px 0 0;border:0;border-radius:0;box-shadow:none}
.preview .motion-gallery .styles{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(min-width:1101px){.workspace>aside{align-content:start}}
@media(max-width:520px){.preview .motion-gallery .styles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:851px){
  .workspace{grid-template-columns:minmax(0,1fr) 310px;align-items:stretch}
  .workspace>.preview{position:static}
  .workspace>aside{display:block}
  .workspace>aside>label{margin:18px 0 8px}
  .workspace>aside input:not([type=color]):not([type=range]),.workspace>aside select{font-size:14px;padding:10px}
}
@media(min-width:851px){
  .workspace>aside{display:flex;flex-direction:column;justify-content:space-between}
  .workspace>aside>#export{margin-top:18px}
}

.usage-guide{margin-top:32px;padding:30px;background:#fff;border:1px solid #e8e3f2;border-radius:22px;color:#71657f}.guide-heading{text-align:center;margin-bottom:28px}.guide-heading h2{font-size:27px;letter-spacing:-.7px;line-height:1.25;color:#49395f;margin:10px 0}.guide-heading>p{margin:0;font-size:14px;color:#91849e}.guide-paths{display:grid;grid-template-columns:1fr 1fr;gap:24px}.guide-path{padding:24px;background:#faf8ff;border:1px solid #ece5f5;border-radius:18px}.usage-guide h3{font-size:17px;line-height:1.4;margin:0 0 20px;color:#61487d}.guide-path ol{list-style:none;counter-reset:guide-step;padding:0;margin:0}.guide-path li{counter-increment:guide-step;position:relative;padding-left:44px;margin-bottom:22px}.guide-path li:last-child{margin-bottom:0}.guide-path li:before{content:counter(guide-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#eae0f8;color:#8864b7;font-weight:750;font-size:13px}.guide-path strong{color:#695179;font-size:14px}.usage-guide p{font-size:13px;line-height:1.75}.guide-path li p{margin:6px 0 0}.guide-tips{display:grid;grid-template-columns:1fr 1fr;gap:30px;border-top:1px solid #eee7f6;margin-top:26px;padding-top:24px}.guide-tips h3{margin-bottom:8px;font-size:15px}.guide-tips p{margin:0;color:#908299}@media(max-width:700px){.usage-guide{padding:22px 16px;margin-top:22px}.guide-heading h2{font-size:23px}.guide-paths,.guide-tips{grid-template-columns:1fr;gap:16px}.guide-path{padding:20px 16px}.guide-path li{padding-left:39px}.guide-heading>p{font-size:13px}.guide-tips{gap:20px}}

/* Use the same navigation, type and palette as the rest of Mediatavio. */
body.visualizer-page{background:#f8f7fc;color:#302b49;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.visualizer-page main{overflow:visible;padding-top:36px}
.visualizer-page .heading{margin:8px 0 30px}.visualizer-page .heading h1{font-size:clamp(30px,4vw,46px);letter-spacing:-1.4px;color:#302744}
.visualizer-page .tool-account-note{font-size:12px;margin-top:12px;color:#91849e}.tool-account-note a{color:#7a60b3;text-decoration:underline}
.visualizer-page .hub-footer{max-width:1260px;margin:0 auto;padding:30px;font-size:13px;text-align:left}
.visualizer-page .hub-header{max-width:none;margin:0}
.visualizer-page .source-card{border:2px solid #e2d7f1!important;background:#fff!important;color:#625086!important;border-radius:18px!important}
.visualizer-page .source-card[aria-pressed=true]{background:#f4edff!important;border-color:#a78bd6!important}
.visualizer-page .source-card.over{background:#ebe1fc!important;border-color:#a78bd6!important}
.visualizer-page .styles button[aria-pressed=true]{background:#ded1f8!important;border-color:#a58ad8!important;color:#503580!important}
.visualizer-page .styles button{background:#fcfaff!important;color:#68519c!important}
.visualizer-page .themes button[aria-pressed=true]{background:#f4edff!important;color:#68519c!important}
.visualizer-page #export{background:linear-gradient(115deg,#9b7bce,#747bd1)!important;color:#fff!important}
.visualizer-page #export.recording{background:linear-gradient(115deg,#b66b9b,#8c71c8)!important}
@media(max-width:850px){.visualizer-page main{padding:22px 18px}.visualizer-page .hub-footer{padding:24px 18px}}
@media(min-width:801px) and (max-width:1000px){
  .visualizer-page .hub-header{height:66px;padding:0 20px;gap:0}
  .visualizer-page .hub-header>nav{display:none}
  .visualizer-page .mobile-menu{display:block;margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:8px;width:40px;height:38px;padding:0;font-size:20px;color:var(--ink)}
  .visualizer-page .mobile-nav.open{position:absolute;display:grid;top:65px;left:12px;right:12px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 35px #17202b1c}
  .visualizer-page .mobile-nav a{padding:11px 12px;border-radius:7px;font-size:14px}
}
