.poster-studio {
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  background: var(--color-white);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.poster-studio__header {
  background: var(--color-purple);
  color: var(--color-white);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poster-studio__close {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  line-height: 1;
  cursor: pointer;
  color: var(--color-white);
}

.poster-studio__nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  background: var(--color-white);
  padding: 8px 20px;
  height: 40px;
  border-radius: 20px;
}

.nav-tab {
  border: none;
  background: transparent;
  padding: 6px 16px;
  cursor: pointer;
  border-radius: 14px;
}

.nav-tab.is-active {
  background: var(--color-yes);
  color: var(--color-white);
}

.poster-studio__body {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  flex: 1;
  overflow: hidden;
}

.poster-studio__col-left,
.poster-studio__col-right {
  padding: 16px;
  padding-top: 12px;
  overflow-y: auto;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.25);
}

.panel-subtitle {
  margin-top: 0;
}

.options-list,
.image-grid {
  background-color: var(--color-card);
  border-radius: 5px;
  box-shadow: inset 0 0 3px rgba(0, 0%, 0%, 0.25);
}

.text-options-list {
  background-color: var(--color-card);
}

.poster-studio__col-center {
  background: var(--color-ink-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.poster-studio__next {
  margin-top: 15px;
  padding: 8px 24px;
}

.poster-studio__footer {
  padding: 12px 24px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-border-light);
}

.poster-canvas {
  width: 260px;
  height: 380px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.poster-canvas__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  background-color: transparent !important;
  text-decoration: none !important;
}

.title-line {
  background-color: #ffea00;
  color: #000000 !important;
  padding: 3px 8px;
  line-height: 1.2;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.poster-canvas__subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.poster-canvas__image-wrap {
  background-color: #ffffff !important;
  width: 100%;
  height: 180px;
  margin: 10px 0;
}

.img-wrapper {
  --base: #f7392b;
  --bg-blend: multiply;
  --blur: 0px;
  --fg-blend: lighten;
  --foreground: #16006f;
  --opacity: 1;
  --spacing: 0%;

  background-color: var(--base);
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.img-wrapper img {
  filter: grayscale(100%) contrast(1) blur(var(--blur));
  height: 100%;
  max-width: 100%;
  mix-blend-mode: var(--bg-blend);
  object-fit: cover;
  opacity: var(--opacity);
  position: relative;
  width: 100%;
}

.img-wrapper::before {
  background-color: var(--foreground);
  bottom: 0;
  content: "";
  height: 100%;
  left: 0;
  mix-blend-mode: var(--fg-blend);
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: var(--color-card);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  margin-bottom: 16px;
  padding: 8px;
}

.tag-pill {
  border: none;
  background: var(--color-no);
  color: var(--color-ink-purple);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
}

.tag-pill.is-active {
  background: var(--color-ink-purple);
  color: var(--color-white);
}

.options-list {
  display: flex;
  flex-direction: column;
}

.option-item {
  border-radius: 5px;
  border: none;
  background-color: transparent;
  padding: 10px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.option-item.is-selected {
  background: var(--color-purple);
  color: var(--color-white);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px 16px;
}

.image-grid button {
  background: var(--color-white);
  border: 2px solid transparent;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  transition: all 0.2s ease;
}

.image-grid button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-grid button.is-selected {
  border-color: var(--color-purple);
  background-color: var(--color-card);
  box-shadow: 0 4px 12px rgba(152, 126, 190, 0.3);
}

.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 3px hsla(0, 0%, 0%, 0.25);
}

.color-swatch.is-selected {
  border-color: var(--color-ink-purple);
  transform: scale(1.1);
}

.progress-bar-wrap {
  flex: 1;
  height: 12px;
  background: var(--color-border-light);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-purple);
}

.popup-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.popup-container .popup {
  width: 100%;
}

.modal__question {
  font-weight: 600;
}

.modal-info {
  background-color: var(--color-no);
}