.marketing-studio {
  min-width: 0;
  --studio-blue: var(--accent, #155bea);
  --studio-light: color-mix(in srgb, var(--accent) 7%, white);
  --studio-radius: 20px;
}
.studio-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  margin: 8px 0 28px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(120deg, #fff 50%, #eaf2ff);
  overflow: hidden;
}
.studio-hero h1 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 18px 0 20px;
}
.studio-hero h1 span {
  color: var(--studio-blue);
}
.studio-hero > div > p:last-child {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 0;
}
.studio-hero-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.studio-hero-map > div {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #d7e2f5;
  border-radius: 16px;
  background: #ffffffd9;
  padding: 18px 22px;
}
.studio-hero-map b {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--studio-blue);
}
.studio-hero-map span {
  font-size: 16px;
  font-weight: 600;
}
.studio-hero-map small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.studio-demo {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}
.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.studio-toolbar > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.studio-toolbar > div:first-child {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.studio-toolbar strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.studio-toolbar span {
  font-size: 12px;
  color: var(--muted);
}
.studio-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 28px;
  padding: 6px 0 12px;
}
.studio-tabs .btn {
  flex: none;
  min-height: 42px;
}
.studio-panel {
  padding: 28px;
  min-width: 0;
}
.studio-panel h2 {
  margin: 6px 0 25px;
  font-size: 25px;
  letter-spacing: -0.6px;
}
.studio-panel h3 {
  font-size: 16px;
  line-height: 1.55;
  margin: 12px 0;
}
.studio-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.studio-side {
  display: grid;
  gap: 20px;
}
.studio-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.studio-goals label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: var(--surface);
}
.studio-goals label:has(input:checked) {
  border-color: var(--studio-blue);
  background: var(--studio-light);
  box-shadow: 0 0 0 1px var(--studio-blue);
}
.studio-goals input {
  accent-color: var(--studio-blue);
  width: 17px;
  height: 17px;
  margin: 0;
}
.studio-goals strong {
  font-size: 13px;
  line-height: 1.5;
}
.studio-goals small {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.studio-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 21px;
  min-width: 0;
}
.studio-field input,
.studio-field textarea,
.studio-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  font: 400 14px/1.7 var(--body-font, Arial, sans-serif);
}
.studio-field textarea {
  resize: vertical;
  min-height: 120px;
}
.studio-field small {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}
.studio-field input:focus,
.studio-field textarea:focus,
.studio-field select:focus {
  outline: 2px solid var(--studio-blue);
  outline-offset: 2px;
}
.studio-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.studio-details {
  border-top: 1px solid var(--line);
  margin: 8px 0 24px;
  padding-top: 8px;
}
.studio-details summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
}
.studio-details[open] summary {
  margin-bottom: 15px;
}
.studio-generate {
  width: 100%;
  justify-content: space-between;
  padding: 15px 20px !important;
}
.studio-check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 17px;
  font-size: 13px;
}
.studio-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio-check-list li:before {
  content: '✓';
  font-weight: 600;
  color: var(--studio-blue);
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--studio-light);
}
.studio-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 10px;
  background: var(--studio-light);
  color: var(--studio-blue);
  border-radius: 7px;
  line-height: 1.5;
}
.studio-tip {
  padding: 24px;
  border-radius: 16px;
  background: var(--studio-light);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.studio-side .studio-tip {
  margin-bottom: 0;
}
.studio-tip strong {
  font-size: 15px;
}
.studio-tip p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.studio-tip .btn {
  background: var(--surface);
}
.studio-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.studio-section-heading h2 {
  margin: 8px 0 14px;
  font-size: 28px;
  letter-spacing: -0.8px;
}
.studio-section-heading p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 660px;
}
.studio-section-heading > div:last-child:not(:first-child) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.studio-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.studio-post:first-child {
  border-top: 3px solid var(--studio-blue);
}
.studio-post textarea {
  min-height: 180px;
}
.studio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.studio-card-top > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--studio-blue);
}
.studio-card-top h3 {
  margin: 0;
}
.studio-card-top .btn {
  font-size: 12px;
  padding: 8px 12px;
}
.studio-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.studio-muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.studio-design-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}
.studio-poster-preview {
  border-radius: 20px;
  background: #dce5f2;
  padding: 25px;
  display: grid;
  place-items: center;
  min-width: 0;
}
.studio-poster-preview img {
  display: block;
  max-width: 100%;
  max-height: 740px;
  box-shadow: 0 20px 45px #12253e2b;
  object-fit: contain;
}
.studio-upload {
  padding: 18px;
  border: 1px dashed #98aed1;
  border-radius: 12px;
  background: var(--studio-light);
}
.studio-upload input {
  padding: 8px;
  font-size: 12px;
  background: var(--surface);
}
.studio-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.studio-browser {
  border: 1px solid #d6dfed;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  margin-bottom: 24px;
}
.studio-browser > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  border-bottom: 1px solid #dce5f1;
  background: #eff3f9;
}
.studio-browser i {
  width: 9px;
  height: 9px;
  background: #b4c3d8;
  border-radius: 50%;
}
.studio-browser span {
  font-size: 12px;
  color: #617593;
  margin-left: 10px;
  overflow-wrap: anywhere;
}
.studio-browser iframe {
  width: 100%;
  height: 780px;
  border: 0;
  display: block;
  background: #fff;
}
.studio-guides {
  display: grid;
  gap: 14px;
}
.studio-guide > summary {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 25px 28px;
  cursor: pointer;
}
.studio-guide > summary::-webkit-details-marker {
  display: none;
}
.studio-guide > summary > span {
  font-size: 12px;
  color: var(--studio-blue);
  font-weight: 600;
}
.studio-guide > summary strong {
  font-size: 17px;
  flex: 1;
}
.studio-guide > summary > b {
  font-size: 22px;
  font-weight: 400;
}
.studio-guide[open] > summary > b {
  transform: rotate(45deg);
}
.studio-guide > div {
  padding: 0 28px 28px;
}
.studio-guide article {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.studio-guide article > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 30px;
  height: 30px;
  background: var(--studio-light);
  color: var(--studio-blue);
  font-size: 12px;
  font-weight: 600;
}
.studio-guide h3 {
  font-size: 15px;
  margin: 4px 0 8px;
}
.studio-guide p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  white-space: pre-line;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.studio-guide nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.studio-guide a,
.studio-ai > a {
  font-size: 12px;
  color: var(--studio-blue);
  line-height: 1.7;
}
.studio-ai {
  padding: 40px;
}
.studio-ai > h2 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 20px 0;
}
.studio-ai p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.studio-ai h3 {
  font-size: 17px;
}
.studio-ai > .studio-form-grid {
  gap: 30px;
  margin: 28px 0;
}
.studio-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.studio-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.studio-library h3 {
  overflow-wrap: anywhere;
  margin: 18px 0;
}
.studio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 25px 0;
  font-size: 13px;
  color: var(--muted);
}
.studio-empty {
  padding: 45px;
  text-align: center;
}
.studio-empty h2,
.studio-empty h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.studio-empty p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.studio-empty-symbol {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--studio-light);
  color: var(--studio-blue);
  font-size: 30px;
}
.studio-alert,
.studio-notice {
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.studio-alert {
  background: #fff5e8;
  border: 1px solid #ebca9b;
  color: #76501d;
}
.studio-alert .btn {
  margin-right: 8px;
  background: #fff;
}
.studio-notice {
  background: #edf8f1;
  border: 1px solid #b8dfc8;
  color: #245f3f;
}
.marketing-studio fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.marketing-studio fieldset:disabled {
  opacity: 0.65;
}
.marketing-studio button:focus-visible,
.marketing-studio summary:focus-visible {
  outline: 3px solid var(--studio-blue);
  outline-offset: 3px;
}
.marketing-studio button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 1200px) {
  .studio-brief-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-side {
    grid-template-columns: 1fr 1fr;
  }
  .studio-hero {
    grid-template-columns: 1.3fr 1fr;
    padding: 28px;
    gap: 20px;
  }
  .studio-library {
    grid-template-columns: 1fr 1fr;
  }
  .studio-goals strong {
    font-size: 12px;
  }
  .studio-design-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .studio-hero {
    display: block;
    padding: 24px;
  }
  .studio-hero h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .studio-hero-map {
    margin-top: 25px;
  }
  .studio-hero-map > div {
    padding: 13px 16px;
  }
  .studio-hero-map span {
    font-size: 14px;
  }
  .studio-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-toolbar > div:last-child {
    width: 100%;
  }
  .studio-tabs {
    margin-bottom: 20px;
  }
  .studio-tabs .btn {
    font-size: 12px;
  }
  .studio-panel {
    padding: 21px;
  }
  .studio-goals {
    grid-template-columns: 1fr;
  }
  .studio-goals label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 5px 10px;
    padding: 14px;
  }
  .studio-goals input {
    grid-row: 1/3;
  }
  .studio-goals strong {
    font-size: 14px;
  }
  .studio-goals small {
    grid-column: 2;
  }
  .studio-form-grid,
  .studio-side,
  .studio-post-grid,
  .studio-copy-grid,
  .studio-design-layout,
  .studio-library {
    grid-template-columns: 1fr;
  }
  .studio-field input,
  .studio-field textarea,
  .studio-field select {
    font-size: 16px;
  }
  .studio-field small {
    font-size: 12px;
  }
  .studio-section-heading {
    flex-direction: column;
  }
  .studio-section-heading h2 {
    font-size: 26px;
  }
  .studio-browser iframe {
    height: 620px;
  }
  .studio-poster-preview {
    padding: 16px;
  }
  .studio-ai {
    padding: 23px;
  }
  .studio-ai > h2 {
    font-size: 29px;
  }
  .studio-guide > summary {
    padding: 20px;
    gap: 12px;
  }
  .studio-guide > summary strong {
    font-size: 15px;
  }
  .studio-guide > div {
    padding: 0 20px 20px;
  }
  .studio-guide article {
    gap: 12px;
  }
  .studio-guide p {
    font-size: 13px;
  }
  .studio-empty {
    padding: 30px 20px;
  }
  .marketing-studio .btn {
    min-height: 44px;
  }
  .studio-download-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
