/* Presentation only;
   overrides follow studio.css. */
[hidden] {
  display:none!important;
}

.shell {
  grid-template-rows:76px 60px minmax(0,1fr) 80px;
}
.topbar {
  padding:12px 20px;
}
.top-actions {
  gap:10px;
}
.balancebtn {
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  padding:8px 12px!important;
}
.account-overview,.balance-summary,.balance-label {
  display:block;
}
.balance-label {
  font-size:12px;
  color:#48625a;
}
.balance-summary {
  font-size:13px;
  white-space:nowrap;
}
.balance-short {
  display:none;
}
.balance-wide {
  font-size:15px;
}
.top-recharge {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  color:#065c55;
  text-decoration:none;
  font-weight:650;
  padding:8px;
}
.balance-loading {
  display:inline-block;
  min-width:72px;
  background:#e2e9e5;
  border-radius:4px;
  color:transparent;
}

.progressbar {
  padding:10px 20px;
}
.stepdots {
  display:flex;
  flex:1;
  justify-content:space-between;
  gap:10px;
}
.progress-step {
  display:flex;
  align-items:center;
  gap:7px;
  color:#536970;
  font-size:13px;
}
.progress-step.current {
  color:#065c55;
  font-weight:700;
}
.stepdot {
  flex-shrink:0;
}
.step-label {
  display:none;
}

.step[data-step=mode] {
  padding:24px;
}
.step[data-step=mode] h1 {
  font-size:clamp(1.7rem,3vw,2.2rem);
  margin-bottom:10px;
}
.step[data-step=mode] .leadcopy {
  font-size:15px;
  max-width:650px;
}
.modegrid {
  gap:18px;
  margin-top:24px;
}
.modecard {
  padding:0!important;
  border:2px solid #dce4df;
  border-radius:16px;
  background:white;
  overflow:visible;
  cursor:pointer;
  transition:border-color .15s,background .15s;
}
.modecard:hover {
  border-color:#76998e;
  transform:none!important;
}
.modecard.selected {
  border-color:#087f75;
  background:#f0f9f5;
  box-shadow:none!important;
}
.modecard[data-mode=video].selected {
  border-color:#6651a5;
  background:#f7f4fc;
}
.format-select {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  width:100%;
  padding:22px;
  border:0;
  background:transparent;
  color:#172c32;
  text-align:left;
  border-radius:13px;
  font-weight:400;
  min-height:290px;
}
.format-select:disabled {
  opacity:1;
}
.format-select:focus-visible {
  outline:3px solid #065c55;
  outline-offset:5px;
}
.format-check {
  position:absolute;
  top:20px;
  right:20px;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#087f75;
  color:white;
  visibility:hidden;
}
.selected .format-check {
  visibility:visible;
}
.modecard[data-mode=video] .format-check {
  background:#6651a5;
}
.modeicon {
  width:48px;
  height:48px;
  font-size:24px;
  background:#e8f5f1;
  color:#065c55;
  border-radius:12px;
  display:grid;
  place-items:center;
  margin:0;
}
.modeicon.icon-video {
  color:#6651a5;
  background:#eee8f8;
}
.modetitle {
  font-size:20px;
  font-weight:750;
  line-height:1.3;
  margin:0;
}
.modecopy {
  font-size:14px;
  color:#536970;
  line-height:1.6;
  margin:0;
}
.mode-features {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.mode-tag {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:6px;
  background:#e8f5f1;
  color:#065c55;
  font-size:13px;
  line-height:1.4;
  font-weight:550;
}
.mode-tag.tag-video {
  background:#eee8f8;
  color:#57418f;
}
.format-facts {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:auto;
  color:#536970;
  font-size:13px;
}
.format-facts>span {
  display:flex;
  align-items:center;
  gap:6px;
}
.format-cost {
  color:#172c32;
  font-weight:650;
}
.format-example {
  padding:10px 22px;
  border-top:1px solid #dce4df;
}
.text-action {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  background:transparent;
  border:0;
  color:#065c55;
  font-weight:650;
  font-size:14px!important;
  padding:4px 0;
  text-decoration:underline;
  text-underline-offset:4px;
}
.format-estimate-note {
  font-size:13px;
  line-height:1.6;
  color:#536970;
  margin:14px 0 28px;
}

.active-job-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#fff9f0;
  border:1px solid #eadbc7;
  border-radius:12px;
  padding:16px;
  margin-bottom:24px;
  box-shadow:none;
}
.active-job-content {
  display:flex;
  gap:12px;
  min-width:0;
}
.active-job-icon {
  color:#96551a;
  font-size:22px;
  flex-shrink:0;
}
.active-job-badge {
  color:#805022;
  background:none;
  font-size:12px;
  font-weight:700;
  padding:0;
  margin-bottom:5px;
}
.active-job-info {
  min-width:0;
}
.active-job-info b {
  display:block;
  font-size:14px;
  overflow-wrap:anywhere;
}
.active-job-info p {
  margin:5px 0;
  color:#634f3b;
  font-size:13px;
  line-height:1.5;
}
.job-scene-count {
  font-size:13px;
  color:#634f3b;
  font-weight:650;
}
.job-actions {
  display:flex;
  flex-direction:column;
  gap:4px;
  flex-shrink:0;
}
.btn-resume,.quiet-button {
  border:1px solid #b6c9bf;
  color:#065c55;
  background:white;
  border-radius:8px;
  min-height:44px;
  padding:8px 12px;
  font-size:14px!important;
  font-weight:650;
}
.btn-resume {
  background:#fff9f0;
  border-color:#c6a782;
  color:#754516;
}
.quiet-button {
  background:transparent;
}
.job-actions .quiet-button {
  border-color:transparent;
  color:#634f3b;
  text-decoration:underline;
  text-underline-offset:3px;
}
.ongoing-notice {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
  font-size:14px;
  color:#536970;
}
.job-lookup {
  height:36px;
  border-radius:8px;
  margin-bottom:18px;
  font-size:13px;
  padding:9px;
  color:#536970;
}
.inline-error {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:#9b2737;
  font-size:13px;
}
.inline-error button {
  background:transparent;
  color:#9b2737;
  border:0;
  text-decoration:underline;
  min-height:40px;
  font-size:14px!important;
}

.recent-heading {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.recent-heading h2 {
  font-size:18px;
  margin:0;
}
.recent-grid,.recent-skeletons {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.recent-item {
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid #dce4df;
  border-radius:10px;
  padding:12px;
  min-width:0;
  text-align:left;
  color:#172c32;
}
.recent-item:hover {
  background:#f0f9f5;
}
.recent-icon {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:35px;
  height:35px;
  border-radius:8px;
  background:#e8f5f1;
  color:#065c55;
}
.recent-video {
  background:#eee8f8;
  color:#57418f;
}
.recent-copy {
  min-width:0;
  flex:1;
}
.recent-copy strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.recent-copy>span {
  display:block;
  font-size:12px;
  color:#536970;
  line-height:1.6;
}
.recent-empty {
  display:flex;
  gap:14px;
  border:1px dashed #bdcdc4;
  border-radius:12px;
  padding:20px;
  background:#f8faf8;
}
.recent-empty>i {
  font-size:26px;
  color:#087f75;
}
.recent-empty strong {
  font-size:14px;
}
.recent-empty p,.recent-load-error p {
  font-size:14px;
  color:#536970;
  margin:6px 0 0;
  line-height:1.6;
}
.recent-skeletons>div {
  height:74px;
  border-radius:10px;
}
.ui-skeleton {
  background:linear-gradient(100deg,#edf1ee 20%,#dce6df 50%,#edf1ee 80%);
  background-size:220% 100%;
  animation:ui-shimmer 1.8s ease-in-out infinite;
}
@keyframes ui-shimmer {
  to {
  background-position:-220% 0;
}
}

.footerbar {
  padding:12px 20px;
}
.foot-main {
  font-size:14px;
  color:#172c32;
}
.foot-sub {
  font-size:13px;
  color:#536970;
}
.btn-next:disabled {
  opacity:1!important;
  background:#dfe7e2!important;
  color:#42574c!important;
  cursor:not-allowed;
}
.btn-next {
  min-height:46px;
}
.support-action {
  position:fixed;
  right:24px;
  bottom:108px;
  z-index:50;
  display:flex;
  align-items:center;
  gap:7px;
  background:#fff;
  color:#065c55;
  border:1px solid #b6c9bf;
  border-radius:24px;
  min-height:44px;
  padding:10px 15px;
  text-decoration:none;
  font-size:14px!important;
  box-shadow:0 2px 8px #17352b10;
}
.format-example-media {
  display:block;
  max-width:100%;
  width:100%;
  max-height:60vh;
  margin:auto;
}
.format-illustration {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  min-height:180px;
  border-radius:12px;
  background:#e8f5f1;
  color:#065c55;
  margin-bottom:18px;
}
.format-illustration>i {
  font-size:48px;
}
.illustration-video {
  background:#eee8f8;
  color:#57418f;
}
.global-ui-error {
  position:fixed;
  inset:0;
  z-index:8000;
  background:#f3f5f2;
  display:grid;
  place-items:center;
  padding:24px;
}
.global-error-card {
  width:min(480px,100%);
  padding:28px;
  background:#fff;
  border:1px solid #dce4df;
  border-radius:16px;
}
.global-error-card h1,.global-error-card h2 {
  font-size:24px;
}
.global-error-card p {
  color:#536970;
  line-height:1.6;
}
.global-error-card .btn-next {
  width:100%;
  margin:16px 0;
}
.modal-content {
  border-radius:16px;
}
.modal-body p {
  line-height:1.6;
}
button:focus-visible,a:focus-visible {
  outline:3px solid #065c55;
  outline-offset:3px;
}

@media(max-width:1000px) {
  #balanceDetail {
  display:none;
}
.brandtag {
  display:none;
}
.progress-name {
  font-size:12px;
}
.progressbar {
  padding:10px 12px;
}
.stepdots {
  gap:5px;
}
}

@media(max-width:600px) {
  .shell {
  grid-template-rows:104px 42px minmax(0,1fr) 108px;
  padding:8px;
  gap:8px;
}
.topbar {
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  padding:9px 12px!important;
}
.brand {
  width:100%!important;
}
.brandname {
  font-size:17px!important;
}
.brandmark {
  width:30px;
  height:30px;
}
.top-actions {
  width:100%;
  justify-content:space-between;
  gap:7px;
}
.account-overview {
  display:block;
}
.balance-label,.balance-wide,#balanceDetail {
  display:none;
}
.balance-short {
  display:inline;
  font-size:14px;
}
.balancebtn {
  min-height:40px;
  padding:6px 9px!important;
}
.top-recharge {
  min-height:40px;
  font-size:13px;
  padding:4px;
}
.gallerybtn {
  min-height:40px!important;
}
.progressbar {
  padding:8px 12px;
}
.stepdots {
  display:none;
}
.step-label {
  display:block;
  font-size:13px;
  color:#065c55;
  font-weight:650;
}
.step[data-step=mode] {
  padding:18px 12px;
}
.step[data-step=mode] h1 {
  font-size:26px;
  line-height:1.2;
}
.modegrid {
  grid-template-columns:1fr!important;
  gap:14px;
  margin-top:20px;
}
.format-select {
  padding:18px;
  min-height:250px;
}
.format-example {
  padding:6px 18px;
}
.modetitle {
  font-size:19px;
}
.active-job-banner {
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  padding:14px;
}
.job-actions {
  flex-direction:row;
  flex-wrap:wrap;
  gap:8px;
}
.job-actions>* {
  flex:1;
  white-space:normal;
}
.ongoing-notice {
  flex-wrap:wrap;
  font-size:13px;
}
.recent-grid,.recent-skeletons {
  grid-template-columns:1fr;
}
.recent-skeletons>div {
  height:60px;
}
.recent-heading h2 {
  font-size:17px;
}
.recent-empty {
  padding:16px;
}
.footerbar {
  position:fixed;
  left:8px;
  right:8px;
  bottom:0;
  width:auto!important;
  max-width:none!important;
  z-index:60;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
  display:flex!important;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
}
.footerbar .navs {
  display:flex;
  width:100%;
  gap:10px;
}
.footerbar #nextBtn {
  flex:1;
  min-height:46px;
}
.foot-main {
  display:none;
}
.foot-sub {
  font-size:13px;
  line-height:1.4;
}
.support-action {
  right:16px;
  bottom:calc(112px + env(safe-area-inset-bottom));
  padding:10px 12px;
}
.support-action span {
  display:none;
}
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important;
}
}

.progress-step.active {
  color:#065c55;
  font-weight:700;
}

@media(max-width:600px) {
  .foot-title {
  display:none;
}
.footerbar .navs .btn-back {
  flex:0 0 44px;
}
}

/* Reset legacy truncation and hover styles on the redesigned controls. */
.active-job-info b,.active-job-info p {
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}

.active-job-content {
  align-items:flex-start;
}
.active-job-badge {
  text-transform:none;
  letter-spacing:0;
}

.btn-resume {
  box-shadow:none;
}
.btn-resume:hover {
  background:#f8ecd9;
  color:#754516;
}

.foot-sub {
  white-space:normal;
  max-width:none;
  overflow:visible;
  text-overflow:clip;
}

.modeicon {
  box-shadow:none;
}
.step[data-step=mode] .modegrid {
  margin-top:22px;
}

.progress-step .stepdot {
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
}

@media(max-width:720px) {
  .active-job-banner .btn-resume {
  width:auto;
}
}


.modecard { display:flex; flex-direction:column; ;
}
.modecard.selected,.modecard:hover { transform:none; box-shadow:none; ;
}
.format-select { flex:1; ;
}
.format-example { width:100%; ;
}
#reloadUiButton { display:flex; align-items:center; justify-content:center; text-decoration:none; }

/* Creative layer: brand color remains subtle; motion uses transform/opacity. */
body {
  background: linear-gradient(135deg, #e7f4ef 0%, #f5edf9 48%, #fff3e6 100%) top / 100% 280px no-repeat, #f3f5f2;
}
.format-heading { position:relative; isolation:isolate; padding:6px 0; }
.format-heading::before,.format-heading::after {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  border-radius:48% 52% 62% 38%;
}
.format-heading::before { width:210px; height:95px; right:8%; top:0; background:#f2f6f3; transform:rotate(-12deg); }
.format-heading::after { width:110px; height:75px; right:0; top:38px; background:#f7f2fb; transform:rotate(14deg); }
.step[data-step=mode] h1 { max-width:710px; line-height:1.17; }
.modecard { transition:transform 200ms ease,box-shadow 200ms ease,border-color 200ms ease,background-color 200ms ease; }
.modecard:hover { transform:translateY(-3px); box-shadow:0 8px 20px #17352b12; }
.modecard:focus-within { box-shadow:0 4px 12px #17352b0d; }
.modecard.selected { transform:none; }
.format-select { gap:13px; padding:16px 20px 20px; }
.format-visual { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:156px; border-radius:11px; overflow:hidden; position:relative; margin-bottom:4px; }
.visual-audio { background:#e8f5f1; color:#087f75; }
.audio-wave { width:86%; max-width:290px; height:96px; }
.wave-bar { fill:currentColor; transform-box:fill-box; transform-origin:center; animation:creative-wave var(--wave-time,2s) ease-in-out var(--wave-delay,0s) infinite alternate; }
.modecard:hover .wave-bar,.modecard.selected .wave-bar { animation-name:creative-wave-strong; }
.visual-caption { font-size:12px; font-weight:600; line-height:1.5; color:#065c55; }
.visual-video { background:#eee8f8; color:#57418f; gap:7px; }
.visual-video .visual-caption { color:#57418f; }
.mini-video-frame { position:relative; display:block; width:62px; aspect-ratio:9/16; border:3px solid #fff; border-radius:9px; overflow:hidden; background:linear-gradient(145deg,#6651a5,#c795b9 58%,#efd1a6); box-shadow:0 3px 8px #57418f18; }
.mini-video-shape { position:absolute; width:50px; height:85px; border-radius:45% 55% 35% 65%; left:20px; bottom:-12px; background:#f9dfb2; opacity:.55; transform:rotate(20deg); }
.mini-video-play { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:28px; }
.mini-video-play i { display:grid; place-items:center; width:36px; height:36px; background:#493678; border-radius:50%; }
.mini-video-frame video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; opacity:0; transition:opacity 180ms ease; }
.mini-video-frame.preview-ready video { opacity:1; }
.mini-video-frame.preview-ready .mini-video-play { opacity:0; }
.format-check { z-index:2; top:24px; right:28px; box-shadow:0 0 0 3px #fff; }
.modecard.selected .format-check { animation:creative-check 180ms ease-out both; }
.format-motion-tools { display:flex; justify-content:flex-end; margin-top:8px; }
.motion-toggle { color:#536970; font-size:12px!important; min-height:32px; }
.format-estimate-note { margin-top:6px; }
.recent-spot { min-width:0; border:1px solid #dce4df; border-radius:12px; overflow:hidden; background:#fff; }
.recent-spot .recent-item { border:0; border-radius:0; width:100%; min-height:85px; }
.recent-icon { width:45px; height:52px; font-size:24px; background:#e8f5f1; }
.recent-video { background:#eee8f8; }
.recent-play-row { border-top:1px solid #e5ece7; padding:4px 12px; }
.quick-play { gap:6px; font-size:13px!important; min-height:38px; }
.recent-audio { display:block; width:100%; height:42px; margin-bottom:8px; }
.recent-play-error { font-size:13px; line-height:1.5; color:#9b2737; margin:4px 0 8px; }
.social-proof { background:#f8faf8; border:1px solid #dce4df; border-radius:12px; padding:18px; margin:20px 0; }
.social-proof h2 { font-size:17px; }.social-proof p,.social-proof blockquote { font-size:14px; color:#536970; line-height:1.6; }
.social-proof blockquote { margin:12px 0 0; }.social-proof cite { display:block; font-style:normal; font-weight:600; color:#172c32; margin-top:6px; }
.sample-error { color:#9b2737; font-size:14px; line-height:1.6; margin-top:12px; }
@keyframes creative-wave { from { transform:scaleY(.55); } to { transform:scaleY(.95); } }
@keyframes creative-wave-strong { from { transform:scaleY(.35); } to { transform:scaleY(1.05); } }
@keyframes creative-check { from { transform:scale(.6); opacity:0; } to { transform:scale(1); opacity:1; } }
.landing-motion-paused .wave-bar,.creative-offscreen .wave-bar { animation-play-state:paused; }
@media(hover:none) { .modecard:hover { transform:none; box-shadow:none; } }
@media(max-width:600px) {
  .format-heading::before { width:150px; height:90px; right:3%; }
  .format-heading::after { width:85px; right:0; top:78px; }
  .step[data-step=mode] h1 { font-size:27px; }
  .format-select { padding:13px 16px 18px; }
  .format-visual { height:140px; }
  .audio-wave { height:82px; }
  .mini-video-frame { width:56px; }
  .format-check { top:21px; right:24px; }
  .recent-spot .recent-item { min-height:78px; }
}
@media(prefers-reduced-motion:reduce) {
  .wave-bar { animation:none!important; transform:none; }
  .modecard:hover { transform:none; }
  .modecard.selected .format-check { animation:none!important; }
  .motion-toggle { display:none; }
}
