body.product-tourist {
  background:
    radial-gradient(circle at 85% 12%, rgba(14, 97, 85, 0.13), transparent 28rem),
    #f6f2e8;
}

body.product-prompt {
  background:
    radial-gradient(circle at 88% 10%, rgba(38, 79, 142, 0.13), transparent 28rem),
    #f4f1ea;
}

.product-shell {
  width: min(1260px, calc(100% - 2rem));
  margin: 0 auto;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 2rem;
  align-items: end;
  padding: 3.8rem 0 2.4rem;
}

.product-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.92;
}

.product-hero p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-seal {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 1.4rem;
  color: white;
  border-radius: 45% 55% 48% 52% / 53% 42% 58% 47%;
  transform: rotate(2deg);
}

.product-tourist .hero-seal {
  background: var(--sea);
}

.product-prompt .hero-seal {
  background: var(--blue);
}

.hero-seal img {
  width: 82px;
  height: 82px;
  border-radius: 19px;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding-bottom: 1rem;
}

.studio-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.input-panel {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
}

.output-panel {
  min-height: 620px;
  padding: 1.5rem;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: #ebe7dc;
  border-radius: 13px;
}

.mode-tab {
  flex: 1 1 92px;
  padding: 0.56rem 0.65rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 800;
}

.mode-tab[aria-selected="true"] {
  color: var(--ink);
  background: white;
  box-shadow: 0 5px 16px rgba(28, 45, 40, 0.08);
}

.tool-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.form-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.form-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.32rem;
}

.field > span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
  background: #fbf9f3;
  border: 1px solid #cbc7bb;
  border-radius: 9px;
  outline: none;
}

.field textarea {
  min-height: 102px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(14, 97, 85, 0.13);
}

.product-prompt .field input:focus,
.product-prompt .field select:focus,
.product-prompt .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 79, 142, 0.13);
}

.tool-form .button {
  width: 100%;
  margin-top: 0.15rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.output-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.output-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.output-heading p {
  max-width: 500px;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.status-dot::before {
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: #5c8b68;
  border-radius: 50%;
}

.empty-state {
  display: grid;
  min-height: 470px;
  place-items: center;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  margin: 0 auto 1rem;
  color: white;
  background: #e6e1d5;
  border-radius: 34% 66% 52% 48% / 47% 43% 57% 53%;
}

.empty-illustration img {
  width: 55px;
  height: 55px;
  opacity: 0.84;
}

.empty-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.empty-state p {
  max-width: 430px;
  margin: 0.45rem auto 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.result-stack {
  display: grid;
  gap: 1rem;
  padding-top: 1.1rem;
}

.result-banner {
  padding: 1rem;
  background: #edf2ec;
  border: 1px solid #cad8cf;
  border-radius: 13px;
}

.product-prompt .result-banner {
  background: #edf1f8;
  border-color: #cad6e8;
}

.result-banner strong,
.result-banner span {
  display: block;
}

.result-banner span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.result-card {
  min-width: 0;
  padding: 0.9rem;
  background: #f7f4ec;
  border: 1px solid #ddd8cb;
  border-radius: 12px;
}

.result-card.wide {
  grid-column: 1 / -1;
}

.result-card h3,
.result-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.result-card p,
.result-card li {
  color: var(--muted);
  font-size: 0.76rem;
}

.result-card ul,
.result-card ol {
  padding-left: 1.05rem;
  margin: 0;
}

.result-card li + li {
  margin-top: 0.32rem;
}

.result-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.36rem 0.8rem;
  margin: 0;
  font-size: 0.74rem;
}

.result-card dt {
  color: var(--muted);
}

.result-card dd {
  margin: 0;
  font-weight: 750;
}

.timeline {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.7rem;
  color: var(--ink);
}

.timeline b {
  color: var(--sea);
  font-size: 0.72rem;
}

.product-prompt .timeline b {
  color: var(--blue);
}

.prompt-output {
  position: relative;
}

.prompt-output pre {
  max-height: 560px;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e8eee9;
  background: #16201e;
  border-radius: 13px;
  font: 0.76rem/1.65 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.copy-button {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  padding: 0.36rem 0.58rem;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 800;
}

.error-box {
  padding: 0.9rem 1rem;
  color: var(--danger);
  background: #fbefef;
  border: 1px solid #e8caca;
  border-radius: 11px;
}

.product-boundary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem 1.5rem;
  margin: 1rem 0 0;
  color: #e9f1ed;
  background: var(--deep);
  border-radius: 20px;
  font-size: 0.76rem;
}

.product-boundary p {
  max-width: 840px;
  margin: 0;
  color: rgba(233, 241, 237, 0.75);
}

.product-boundary a {
  color: white;
  font-weight: 800;
}

@media (max-width: 980px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
  }

  .output-panel {
    min-height: 430px;
  }

  .empty-state {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .product-hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-seal {
    display: none;
  }

  .product-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .input-panel,
  .output-panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .field-row,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-card.wide {
    grid-column: auto;
  }

  .output-heading,
  .product-boundary {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
