/* Figma 233:4109–233:4141: 393px creation flow, adapted to fluid web. */
#studio.figma-studio{max-width:433px;padding:0 20px 60px;position:relative;color:#3e1728;min-height:calc(100dvh - 64px)}
.figma-studio>a{display:flex;height:72px;align-items:center;font-weight:700;color:#8b4c40;font-size:16px}
.figma-studio::before{content:'';position:absolute;top:72px;left:20px;right:20px;height:4px;background:#fdeaf0;border-radius:3px}
.figma-studio::after{content:'';position:absolute;top:72px;left:20px;width:calc((100% - 40px)*var(--flow-ratio));max-width:calc(100% - 40px);height:4px;background:#c0466a;border-radius:3px}
.figma-studio #step{display:block;margin-top:20px;padding:28px 20px 0;background:#fff;border-radius:16px 16px 0 0;font:700 16px/24px 'Albert Sans',sans-serif;color:#c0466a;letter-spacing:0}
#studio.figma-studio h1{font:800 28px/34px 'Albert Sans',sans-serif;letter-spacing:0;color:#3e1728;margin:0;padding:16px 20px;background:white}
.figma-studio #form{padding:0 20px;background:#fff}
.flow-intro{font:400 16px/24px 'Albert Sans',sans-serif;color:#6b4a56;margin:0 0 24px}

.figma-studio #step, #studio.figma-studio #heading, .choice-step .flow-intro, .choice-step .voice-library {
  text-align: center;
}
.flow-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-block: 4px;
}
.figma-studio .flow-option {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 10px 20px;
  border: 1px solid #edbbcd;
  border-radius: 999px;
  background: #fff;
  color: #3e1728;
  font: 600 18px/26px 'Albert Sans', sans-serif;
  white-space: nowrap;
  transform: none;
}
.choice-step .voice-library {
  padding: 0;
}
.choice-step .voice-library button {
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.figma-studio button:focus-visible {
  outline: 3px solid #943755;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .figma-studio .flow-option:hover { background: #fff5f8; border-color: #cb819c; }
}
.figma-studio .flow-option[aria-pressed="true"] {
  background: #fdeaf0;
  border-color: #c0466a;
  box-shadow: inset 0 0 0 1px #c0466a;
}
.figma-studio .flow-actions > button[type=submit]:disabled {
  background: #e6e3e5;
  color: #675f64;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.figma-studio label{font-weight:700;margin:12px 0 8px}.figma-studio label span{font-size:12px;color:#937a83}.figma-studio input,.figma-studio textarea{border:1px solid #f3c6d5;border-radius:12px;font:400 16px/24px 'Albert Sans',sans-serif;padding:16px;color:#3e1728;background:#fff}.figma-studio textarea{min-height:180px}.flow-help{font:400 13px/18px 'Albert Sans',sans-serif;color:#6b4a56;margin:10px 0 0}.flow-actions{display:flex;align-items:center;gap:16px;padding:24px 20px;background:#fff;border-radius:0 0 16px 16px;box-shadow:0 16px 24px #a8335910}
.flow-actions>button[type=submit]{margin-inline-start:auto}.flow-actions>button[type=submit]{background:linear-gradient(170deg,#c0466a,#e0618f);border-radius:999px;min-width:118px;height:50px;padding:12px 24px;font:700 16px/24px 'Albert Sans',sans-serif}.flow-back{width:46px;height:46px;padding:0;border-radius:50%;background:#f7f3f3;color:#3e1728;font-size:22px}
@media(min-width:761px){#studio.figma-studio{max-width:620px;padding-top:12px}.figma-studio::before,.figma-studio::after{top:84px}.figma-studio #form{padding:0 32px}.figma-studio .flow-actions{padding:24px 32px 32px}.figma-studio #step{padding:32px 32px 0}#studio.figma-studio h1{padding:16px 32px}}
/* Six-segment progress belongs inside the card beneath its STEP label. */
#studio.figma-studio{padding-top:24px}
.figma-studio>a{display:none}
.figma-studio::before,.figma-studio::after{display:none;content:none}
.figma-studio #step{margin-top:0;padding-bottom:0}
.flow-segments{display:flex;gap:6px;width:100%;margin-top:14px;height:4px}
.flow-segments>span{display:block;flex:1;min-width:0;height:4px;background:#fdeaf0;border-radius:4px}
.flow-segments>span.complete{background:#c0466a}
#studio #message:empty{display:none}
/* Mobile form scrolls independently of its action bar. */
@media (max-width: 760px) {
  html:has(body.creation-active){overflow:hidden;overscroll-behavior:none}
  body.creation-active{position:fixed;inset:0;width:100%;padding:0;overflow:hidden;overscroll-behavior:none}
  body.creation-active main{margin:0;padding:0;width:100%;max-width:100%;overflow:hidden}
  body.creation-active #studio.figma-studio {
    position: fixed;
    inset: var(--dm-visible-top, 0px) 0 auto;
    width: 100%;
    max-width: none;
    height: var(--dm-visible-height, 100vh);
    height: min(var(--dm-visible-height, 100dvh), 100dvh);
    min-height: 0;
    margin: 0;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .figma-studio .flow-panel {
    flex: 0 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 16px;
    scroll-padding-block: 12px;
  }
  .figma-studio #step{padding:20px 18px 0}
  #studio.figma-studio h1{font-size:26px;line-height:32px;padding:12px 18px}
  .figma-studio #form{padding:0 18px 20px}
  .figma-studio .flow-actions {
    flex: 0 0 auto;
    margin: auto -16px 0;
    padding: 10px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f3dce5;
    border-radius: 0;
    background: #fff8fa;
    box-shadow: 0 -6px 18px #a8335910;
    z-index: 1;
  }
  .figma-studio .flow-actions>button[type=submit]{flex:1;max-width:240px;min-height:50px}
  .figma-studio .flow-actions>.flow-back{flex:0 0 46px}
  .figma-studio .flow-options{gap:14px 12px}
  .figma-studio .flow-option{min-height:48px;padding:10px 16px;font-size:16px;line-height:22px}
  .figma-studio .flow-intro{font-size:14px;line-height:21px;margin-bottom:18px}
  body.creation-active #message{flex:none;margin:0;padding:0 4px;max-height:45px;overflow-y:auto;font-size:12px}
  body.creation-active #results,body.creation-active .footer{display:none}
}
@media (min-width: 761px) {
  body.creation-active #studio.figma-studio.choice-step {
    min-height: 100dvh;
  }
}

body.creation-active{padding-top:0}
body.creation-active>.home-header{display:none}
