/* Editing Studio — interactive resource hub */
.pa-es-page {
  --es-bg: #09090b;
  --es-panel: #111114;
  --es-card: #17171b;
  --es-line: rgba(255, 255, 255, 0.08);
  --es-text: #fafafa;
  --es-muted: #a1a1aa;
  --es-faint: #71717a;
  --es-blue: #60a5fa;
  --es-accent: #fafafa;
  color: var(--es-text);
  background: var(--es-bg);
}
.pa-es-wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.pa-es-wrap--narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.pa-es-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  text-align: center;
}
.pa-es-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  color: var(--es-faint);
}
.pa-es-crumb a {
  color: var(--es-muted);
  text-decoration: none;
}
.pa-es-crumb a:hover {
  color: var(--es-text);
}
.pa-es-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.1);
  color: #93c5fd;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.pa-es-badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--es-blue);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
.pa-es-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: -0.04em;
  font-weight: 650;
  line-height: 1.08;
}
.pa-es-title span {
  color: #a1a1aa;
  font-weight: 550;
}
.pa-es-lead {
  margin: 0 auto 1.4rem;
  max-width: 38rem;
  color: var(--es-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.pa-es-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.pa-es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.pa-es-btn--solid {
  background: #fafafa;
  color: #09090b;
}
.pa-es-btn--solid:hover {
  filter: brightness(0.94);
}
.pa-es-btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fafafa;
  background: transparent;
}
.pa-es-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.pa-es-btn--sm {
  min-height: 2.1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* Studio app chrome */
.pa-es-studio {
  margin: 1.5rem auto 0;
  border: 1px solid var(--es-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #121216 0%, #0c0c0f 100%);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.pa-es-studio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--es-line);
  background: rgba(255, 255, 255, 0.02);
}
.pa-es-studio__name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pa-es-studio__file {
  color: var(--es-faint);
  font-size: 0.78rem;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}
.pa-es-studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  min-height: 420px;
}
@media (max-width: 860px) {
  .pa-es-studio__grid {
    grid-template-columns: 1fr;
  }
}
.pa-es-preview {
  padding: 1.1rem;
  border-right: 1px solid var(--es-line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #0a0a0c;
}
@media (max-width: 860px) {
  .pa-es-preview {
    border-right: 0;
    border-bottom: 1px solid var(--es-line);
  }
}
.pa-es-phone {
  position: relative;
  width: min(220px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(96, 165, 250, 0.18), transparent 55%),
    linear-gradient(165deg, #1a1a22, #0d0d12);
}
.pa-es-phone__grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: filter 0.25s ease, background 0.25s ease;
}
.pa-es-phone__caption {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 78%;
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: font-family 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.pa-es-phone__beat {
  position: absolute;
  top: 12%;
  left: 8%;
  right: 8%;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  color: #e4e4e7;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pa-es-phone__beat.is-on {
  opacity: 1;
  transform: translateY(0);
}
.pa-es-preview__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--es-faint);
}
.pa-es-preview__meta strong {
  color: #d4d4d8;
  font-weight: 550;
}

.pa-es-panel {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.pa-es-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pa-es-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--es-faint);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.pa-es-tab.is-active {
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.pa-es-help {
  margin: 0;
  font-size: 0.86rem;
  color: var(--es-muted);
  line-height: 1.45;
}
.pa-es-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.55rem;
}
.pa-es-opt {
  appearance: none;
  text-align: left;
  border: 1px solid var(--es-line);
  background: var(--es-card);
  border-radius: 12px;
  padding: 0.7rem 0.7rem 0.75rem;
  color: inherit;
  cursor: pointer;
  min-height: 88px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pa-es-opt:hover {
  border-color: rgba(96, 165, 250, 0.35);
}
.pa-es-opt.is-picked {
  border-color: rgba(250, 250, 250, 0.45);
  background: #1d1d22;
}
.pa-es-opt__n {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--es-faint);
  font-size: 0.65rem;
  margin-bottom: 0.45rem;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}
.pa-es-opt.is-picked .pa-es-opt__n {
  background: #fafafa;
  color: #09090b;
}
.pa-es-opt__t {
  display: block;
  font-size: 0.82rem;
  font-weight: 560;
  color: #f4f4f5;
  margin-bottom: 0.2rem;
}
.pa-es-opt__d {
  display: block;
  font-size: 0.72rem;
  color: var(--es-faint);
  line-height: 1.35;
}
.pa-es-toast {
  min-height: 1.2rem;
  font-size: 0.78rem;
  color: #93c5fd;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}

/* Sections */
.pa-es-sec {
  padding: 3.25rem 0 0;
}
.pa-es-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--es-faint);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}
.pa-es-h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  font-weight: 620;
  line-height: 1.15;
}
.pa-es-sub {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--es-muted);
  line-height: 1.55;
}
.pa-es-parts {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .pa-es-parts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pa-es-part {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--es-line);
  border-radius: 14px;
  background: var(--es-panel);
}
.pa-es-part__n {
  margin: 0 0 0.55rem;
  color: var(--es-blue);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}
.pa-es-part h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.pa-es-part p {
  margin: 0;
  color: var(--es-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pa-es-roles {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .pa-es-roles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .pa-es-roles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pa-es-role {
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--es-line);
  border-radius: 14px;
  background: var(--es-panel);
}
.pa-es-role__meta {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-blue);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}
.pa-es-role h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.pa-es-role p {
  margin: 0;
  color: var(--es-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pa-es-prompts {
  display: grid;
  gap: 0.85rem;
}
.pa-es-prompt {
  border: 1px solid var(--es-line);
  border-radius: 14px;
  background: var(--es-panel);
  overflow: hidden;
}
.pa-es-prompt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--es-line);
}
.pa-es-prompt__head h3 {
  margin: 0;
  font-size: 0.98rem;
}
.pa-es-prompt__head p {
  margin: 0.25rem 0 0;
  color: var(--es-faint);
  font-size: 0.8rem;
}
.pa-es-pre {
  margin: 0;
  padding: 1rem 1.05rem 1.15rem;
  max-height: 220px;
  overflow: auto;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 0.76rem;
  line-height: 1.55;
  color: #d4d4d8;
  white-space: pre-wrap;
  background: #0c0c0e;
}

.pa-es-tools {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .pa-es-tools {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .pa-es-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pa-es-tool {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--es-line);
  border-radius: 14px;
  background: var(--es-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pa-es-tool:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: #16161a;
}
.pa-es-tool__meta {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-blue);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
}
.pa-es-tool h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--es-text);
}
.pa-es-tool p {
  margin: 0;
  color: var(--es-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pa-es-foot {
  padding: 3.5rem 0 4.5rem;
  text-align: center;
}
.pa-es-foot .pa-es-h2 {
  margin-inline: auto;
}
.pa-es-foot .pa-es-sub {
  margin-inline: auto;
}
