﻿:root {
  --orange: #ff5b2a;
  --orange-2: #ff8347;
  --ink: #121212;
  --muted: #858896;
  --soft: #fdf0eb;
  --line: #ffd9cc;
  --purple: #8659f5;
  --paper: #ffffff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef1f5; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #eef1f5; letter-spacing: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }

.mini-app {
  position: relative;
  width: min(708px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 46px 17px 26px;
  background: #fff;
}

.screen.active { display: block; }

.mini-top {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.mini-top.floating { margin-bottom: 26px; }

.soft-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  height: 58px;
  border: 2px solid #ffe2d8;
  border-radius: 28px;
  background: #fff8f4;
  color: #ff6035;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(255, 91, 42, .12);
}

.soft-tab span { font-size: 20px; }
.soft-tab i {
  position: absolute;
  top: -5px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e83a42;
  color: #fff;
  font-size: 15px;
  font-style: normal;
}

.soft-tab.purple {
  border-color: #eadcff;
  background: #f7efff;
  color: var(--purple);
  box-shadow: 0 7px 18px rgba(134, 89, 245, .16);
}

.wx-capsule {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  width: min(267px, 100%);
  min-width: 180px;
  height: 70px;
  padding: 0 28px;
  border: 1px solid #ececf0;
  border-radius: 38px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
  color: #111;
  font-size: 34px;
  font-weight: 900;
}

.wx-capsule b { width: 1px; height: 38px; background: #d7d7d7; }

.hero-logo {
  width: 108px;
  height: 108px;
  margin: 30px auto 16px;
  display: block;
  border: 0;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(18, 18, 18, .12);
}

.maker {
  margin: 0;
  color: #969aa6;
  text-align: center;
  font-size: 21px;
}

#homeTitle {
  margin: 30px 0 22px;
  color: #ff851f;
  text-align: center;
  font-size: 48px;
  line-height: 1.08;
}

#homeScreen h2 {
  margin: 0;
  text-align: center;
  font-size: 31px;
  line-height: 1.35;
}

.subline {
  margin: 18px 0 38px;
  color: #80858f;
  text-align: center;
  font-size: 27px;
}

.sample-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 94px;
  padding: 0 34px;
  border-radius: 46px;
  background: #fff2ec;
  color: var(--orange);
  text-align: left;
}

.sample-bar span { font-size: 28px; }
.sample-bar strong { font-size: 26px; font-weight: 500; }
.sample-bar em {
  margin-left: auto;
  color: #b98775;
  font-size: 20px;
  font-style: normal;
}

.voice-copy {
  margin: 58px 0 28px;
  text-align: center;
  color: #c08672;
}

.voice-copy p {
  margin: 0 0 22px;
  font-size: 29px;
}

.voice-copy strong {
  display: block;
  margin-top: 20px;
  font-size: 30px;
}

.mic-button {
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff6534, #ff3e17);
  color: #fff;
  box-shadow: 0 20px 54px rgba(255, 91, 42, .28), 0 0 0 34px rgba(255, 91, 42, .08);
  font-size: 62px;
}

.hold-tip {
  display: block;
  text-align: center;
  font-size: 25px;
}

.text-link {
  display: block;
  margin: 88px auto 0;
  border-bottom: 2px dashed var(--orange);
  color: var(--orange);
  font-size: 20px;
}

.page-title {
  margin: 0 0 14px;
  font-family: Georgia, "SimSun", serif;
  font-size: 31px;
  line-height: 1.3;
}

.page-subtitle {
  margin: 0 0 28px;
  color: #576071;
  font-size: 23px;
}

.voice-editor {
  display: block;
  min-height: 320px;
  margin-bottom: 24px;
  padding: 24px 30px;
  border: 2px solid var(--line);
  border-radius: 24px;
}

.voice-editor span {
  display: flex;
  justify-content: space-between;
  color: #9a9ba5;
  font-size: 22px;
}

.voice-editor em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.voice-editor textarea {
  width: 100%;
  min-height: 230px;
  margin-top: 18px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: #171717;
  font-size: 24px;
  line-height: 1.55;
}

.voice-editor textarea::placeholder { color: #9da1ad; }

.key-card,
.ai-elements {
  margin-bottom: 24px;
  padding: 24px 26px;
  border-radius: 20px;
  background: #f7f7f7;
}

.key-card h3,
.ai-elements h3 {
  margin: 0 0 22px;
  font-size: 23px;
}

.ai-elements small {
  color: #a2a2a2;
  font-size: 17px;
  font-weight: 500;
}

.key-card label,
.ai-elements label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 70px;
  border-bottom: 1px solid #ededed;
}

.key-card label:last-child,
.ai-elements label:last-child { border-bottom: 0; }

.key-card label span,
.ai-elements label span {
  color: #ff643a;
  font-size: 22px;
  font-weight: 900;
}

.key-card select,
.ai-elements input {
  min-height: 56px;
  border: 2px solid #ffad94;
  border-radius: 8px;
  background: #fff8f4;
  padding: 0 14px;
  color: #111;
  font-size: 24px;
  outline: 0;
}

.ai-elements label {
  grid-template-columns: 76px minmax(0, 1fr);
  position: relative;
}

.ai-elements em {
  position: absolute;
  left: 94px;
  bottom: 4px;
  color: #b57538;
  font-size: 16px;
  font-style: normal;
}

.bottom-actions {
  display: grid;
  gap: 22px;
  margin-top: 220px;
}

.outline-action,
.generate-action {
  width: 100%;
  min-height: 82px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
}

.outline-action {
  border: 2px solid var(--orange);
  background: #fff8f4;
  color: var(--orange);
}

.generate-action {
  background: linear-gradient(135deg, #ff7a3d, #ff9a60);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 91, 42, .2);
}

.generate-action:disabled {
  background: #cfcfcf;
  box-shadow: none;
}

.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  align-content: center;
  background: rgba(0, 0, 0, .66);
  color: #fff;
  text-align: center;
}

.loading-mask.show { display: grid; }

.spinner {
  width: 108px;
  height: 108px;
  margin-bottom: 28px;
  border: 8px solid rgba(255, 255, 255, .34);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.loading-mask strong { font-size: 27px; }
.loading-mask p { margin: 16px 0 0; color: #ddd; font-size: 20px; font-weight: 800; }

@keyframes spin { to { transform: rotate(360deg); } }

.result-screen {
  padding: 0 23px 24px;
  background: #fff;
}

.result-topbar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  height: 143px;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 -23px 20px;
  padding: 0 20px;
}

.result-topbar h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 500;
}

.home-icon {
  font-size: 47px;
  color: #383a3d;
}

.notice {
  display: grid;
  place-items: center;
  height: 64px;
  border-bottom: 2px solid #ffd9ad;
  background: #fff9f1;
  color: #bf5d00;
  font-size: 22px;
}

.match-panel {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 142px;
  padding: 16px 124px;
  border-radius: 0 0 24px 24px;
  background: #fff2ec;
}

.ring {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border: 11px solid #ffd6c1;
  border-right-color: var(--orange);
  border-radius: 50%;
  color: var(--orange);
}

.ring strong { font-size: 48px; line-height: .8; }
.ring span { color: #9b9b9b; font-size: 15px; }

.match-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.match-panel h3 span { color: var(--orange); font-size: 29px; }
.match-panel p { margin: 0; color: #90909a; font-size: 21px; }

.progress-line {
  height: 5px;
  margin: 0 0 15px;
  border-radius: 99px;
  background: #ffe0d7;
}

.progress-line i {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.mode-line {
  margin: 0 0 18px;
  color: #9a9ba5;
  text-align: center;
  font-size: 20px;
}

.card-stack {
  position: relative;
  min-height: 0;
  perspective: 900px;
}

.idea-card {
  position: absolute;
  left: 58px;
  right: 58px;
  top: 18px;
  min-height: 760px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(255, 91, 42, .12);
}

.idea-card.side {
  top: 28px;
  display: flex;
  align-items: flex-start;
  padding: 58px 32px;
  color: rgba(255, 255, 255, .72);
  font-size: 25px;
  font-weight: 900;
}

.idea-card.side.left {
  left: 22px;
  right: 128px;
  transform: rotate(-5deg);
  background: linear-gradient(180deg, #9e8df1 0 160px, #fff 160px);
}

.idea-card.side.right {
  left: 132px;
  right: 22px;
  transform: rotate(6deg);
  background: linear-gradient(180deg, #a9e2c7 0 160px, #fff 160px);
  justify-content: flex-end;
}

.main-card {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  z-index: 2;
  margin: 18px 58px 0;
  overflow: hidden;
  border: 2px solid #ffd9cc;
}

.idea-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 162px;
  padding: 28px;
  background: linear-gradient(135deg, #ff6535, #ff9656);
  color: #fff;
}

.idea-no {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-size: 21px;
  font-weight: 900;
}

.idea-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.idea-chip {
  padding: 8px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .22);
  font-size: 18px;
}

.idea-body {
  padding: 28px 30px 26px;
}

.idea-body h4 {
  margin: 0 0 26px;
  font-size: 29px;
  line-height: 1.38;
}

.idea-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.idea-meta span {
  color: #8b8f9b;
  font-size: 18px;
}

.percent {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-weight: 900;
}

.percent strong { font-size: 24px; }
.percent small { color: #8f8f8f; font-size: 15px; }

.idea-text {
  padding: 26px;
  border-radius: 15px;
  background: #fff3ee;
}

.idea-text h5 {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 20px;
}

.idea-text p {
  margin: 0;
  color: #292929;
  font-size: 23px;
  line-height: 1.62;
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.card-buttons button {
  min-height: 64px;
  border-radius: 34px;
  font-size: 23px;
  font-weight: 900;
}

.card-buttons .outline {
  border: 2px solid var(--orange);
  color: var(--orange);
}

.card-buttons .solid {
  background: linear-gradient(135deg, #ff7039, #ff9a5d);
  color: #fff;
}

.result-actions {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 112px 132px 112px;
  justify-content: center;
  align-items: end;
  column-gap: 58px;
  margin-top: 32px;
  padding: 8px 0 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), #fff 28%);
}

.round {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  color: #999;
  border: 2px solid #e4e4e4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
  font-size: 42px;
}

.round span {
  position: absolute;
  bottom: -36px;
  width: 120px;
  color: #818181;
  font-size: 17px;
  font-weight: 900;
}

.round.refresh {
  width: 132px;
  height: 132px;
  border-color: var(--orange);
  color: var(--orange);
  font-size: 48px;
}

.round.refresh span { color: var(--orange); font-size: 22px; }
.round.like {
  background: linear-gradient(135deg, #ff773d, #ff9655);
  color: #fff;
  border: 0;
}

.detail-screen {
  padding: 0 23px 150px;
  background: #fff;
}

.detail-product {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 20px 18px 28px;
  padding: 22px 28px;
  border: 2px solid #ffb197;
  border-radius: 18px;
  background: #fff;
}

.detail-product span {
  color: #e06b48;
  font-size: 18px;
  font-weight: 800;
}

.detail-product h3 {
  margin: 10px 0 0;
  font-size: 29px;
}

.detail-product strong {
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff3ee;
  color: #de6d4c;
  font-size: 18px;
}

.detail-hero {
  margin: 0 18px 28px;
  padding: 34px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff6334, #ff9556);
  color: #fff;
}

.detail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.detail-hero-top span {
  padding: 8px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .18);
  font-weight: 900;
}

.detail-hero-top strong {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-size: 25px;
}

.detail-hero h3 {
  margin: 0 0 14px;
  font-size: 34px;
}

.detail-hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .78);
  font-size: 21px;
}

.detail-hero h4 {
  margin: 0 0 22px;
  font-size: 27px;
  line-height: 1.42;
}

.detail-hero blockquote {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 21px;
  line-height: 1.75;
}

.why-card {
  margin: 0 18px 34px;
  padding: 28px;
  border: 1px solid #f6dfd7;
  border-radius: 18px;
  background: #fff8f5;
}

.why-card h3 {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 25px;
}

.why-card p {
  margin: 0;
  color: #3a3a3a;
  font-size: 21px;
  line-height: 1.8;
}

.timeline-wrap {
  margin: 0 18px 36px;
}

.timeline-wrap > h3 {
  margin: 0 0 18px;
  font-size: 27px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 54px;
}

.timeline-list:before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  bottom: 0;
  width: 4px;
  background: linear-gradient(#ff5b2a, #ffb13a, #d90e0e);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -54px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff5b2a;
  color: #fff;
  font-weight: 900;
}

.timeline-card {
  padding: 24px 28px;
  border: 2px solid #f1e1d9;
  border-radius: 18px;
  background: #fff;
}

.timeline-item.yellow .timeline-card {
  border-color: #f3cc24;
  background: #fffdf5;
}

.timeline-item.red .timeline-card {
  border-color: #d50d0d;
  background: #fff7f7;
}

.timeline-item.yellow .timeline-dot { background: #efbd00; }
.timeline-item.red .timeline-dot { background: #d50d0d; }

.timeline-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee5df;
}

.timeline-card h4 {
  margin: 0;
  font-size: 24px;
}

.timeline-card h4 span {
  margin-right: 12px;
  color: #9d9d9d;
  font-weight: 500;
}

.timeline-card em {
  padding: 7px 12px;
  border-radius: 10px;
  background: #ffc400;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.timeline-card li {
  margin-bottom: 12px;
  color: #505050;
  font-size: 20px;
  line-height: 1.75;
}

.timeline-card p {
  margin: 14px 0 0;
  color: #999;
  font-size: 18px;
}

.finish-box {
  margin: 28px 0 0 54px;
  padding: 22px;
  border: 2px dashed #e68b72;
  border-radius: 16px;
  color: #e46b4f;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.detail-actions {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 18px;
  padding: 18px 16px 16px;
  border-top: 1px solid #f1e5de;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.detail-actions button {
  min-height: 68px;
  border-radius: 34px;
  font-size: 22px;
  font-weight: 900;
}

.detail-save {
  border: 2px solid #ff8f6e;
  color: #e86b4b;
  background: #fff;
}

.detail-sop {
  color: #fff;
  background: linear-gradient(135deg, #ff713b, #ff9b5f);
}

.detail-actions p {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: #a6a6a6;
  text-align: center;
  font-size: 15px;
}

.sop-screen {
  padding: 0 23px 150px;
  background: #fff;
}

.sop-product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 20px 18px 20px;
  padding: 22px 28px;
  border: 2px solid #ff9d80;
  border-radius: 16px;
  background: #fff;
}

.sop-product span {
  font-size: 32px;
}

.sop-product h3 {
  margin: 0;
  font-size: 29px;
}

.sop-product strong {
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff3ee;
  color: #df6a4a;
  font-size: 18px;
}

.sop-strategy {
  margin: 0 18px 28px;
  padding: 20px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6535, #ff9656);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.sop-summary {
  margin: 0 18px 30px;
  padding: 28px;
  border: 1px solid #f1dfd8;
  border-radius: 18px;
  background: #fff8f5;
}

.sop-summary h3 {
  margin: 0 0 22px;
  color: #e76745;
  font-size: 25px;
}

.sop-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.sop-stats strong {
  display: block;
  color: var(--orange);
  font-size: 36px;
}

.sop-stats span {
  color: #888;
  font-size: 16px;
}

.sop-summary p {
  margin: 20px 0 0;
  color: #454545;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

.sop-script {
  margin: 0 18px;
}

.sop-script > h3 {
  margin: 0 0 18px;
  color: #888;
  font-size: 26px;
  font-weight: 500;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.day-tabs button {
  min-height: 74px;
  border: 2px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  color: #171717;
  font-size: 22px;
  font-weight: 900;
}

.day-tabs button span {
  display: block;
  margin-top: 3px;
  color: #63b783;
  font-size: 16px;
}

.day-tabs button.active {
  border-color: #ffcc00;
  background: linear-gradient(135deg, #ff6535, #ff9656);
  color: #fff;
}

#sopDayTitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 32px;
}

#sopDayTitle span {
  padding: 8px 14px;
  border-radius: 12px;
  background: #f6c400;
  color: #fff;
  font-size: 18px;
}

.sop-day-list {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 26px;
}

.sop-day-list:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 99px;
  background: var(--orange);
}

.sop-action-card {
  padding: 28px;
  border: 1px solid #f2ded6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(255, 91, 42, .05);
}

.sop-action-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0e6e1;
}

.sop-action-card header span {
  color: #ff6535;
  font-size: 24px;
  font-weight: 900;
}

.sop-action-card h3 {
  margin: 16px 0 0;
  font-size: 26px;
}

.sop-action-card header strong {
  align-self: start;
  padding: 8px 14px;
  border: 2px solid #d45bd6;
  border-radius: 13px;
  color: #bd42c8;
  white-space: nowrap;
}

.sop-action-card > p {
  margin: 20px 0;
  color: #555;
  font-size: 20px;
  line-height: 1.7;
}

.sop-action-card section {
  padding: 22px;
  border-radius: 16px;
  background: #fff5f1;
}

.sop-action-card h4 {
  margin: 0 0 16px;
  color: #e76745;
  font-size: 20px;
}

.sop-action-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: #2e2e2e;
  font-family: inherit;
  font-size: 22px;
  line-height: 1.8;
}

.sop-action-card button {
  margin-top: 20px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: #eef0ff;
  color: #7b7ed9;
  font-weight: 900;
}

.sop-actions {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 18px;
  padding: 18px 16px 16px;
  border-top: 1px solid #f1e5de;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.sop-actions button {
  min-height: 68px;
  border-radius: 34px;
  font-size: 22px;
  font-weight: 900;
}

.sop-actions p {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: #9c9c9c;
  text-align: center;
  font-size: 15px;
}

.profile-screen {
  padding: 0 23px 80px;
  background: #fff;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 28px 18px 20px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff4ee, #fff);
  border: 1px solid #ffd8c9;
}

.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6535, #ff9656);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.profile-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.profile-card p {
  margin: 0;
  color: #888;
  font-size: 18px;
}

.profile-card strong {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0e9;
  color: #df6a4a;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 18px 24px;
}

.profile-stats div {
  padding: 20px 10px;
  border-radius: 16px;
  background: #fff8f5;
  text-align: center;
}

.profile-stats strong {
  display: block;
  color: var(--orange);
  font-size: 32px;
}

.profile-stats span {
  color: #888;
}

.saved-panel {
  margin: 0 18px;
}

.saved-panel h3 {
  margin: 0 0 16px;
  font-size: 26px;
}

.saved-panel article {
  padding: 24px;
  border: 1px solid #f2ded6;
  border-radius: 18px;
  background: #fff;
}

.saved-panel span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff3ee;
  color: #df6a4a;
  font-weight: 900;
}

.saved-panel h4 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.saved-panel p {
  margin: 0;
  color: #777;
  font-size: 18px;
  line-height: 1.6;
}

.history-screen {
  padding: 0 23px 80px;
  background: #fff;
}

.history-panel {
  margin: 28px 18px 0;
}

.history-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #ffd8c9;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4ee, #fff);
}

.history-summary strong {
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
}

.history-summary span {
  color: #777;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-card,
.history-empty {
  padding: 22px;
  border: 1px solid #f2ded6;
  border-radius: 18px;
  background: #fff;
}

.history-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff3ee;
  color: #df6a4a;
  font-size: 13px;
  font-weight: 900;
}

.history-card h3,
.history-empty strong {
  display: block;
  margin: 0 0 8px;
  color: #151515;
  font-size: 22px;
  line-height: 1.25;
}

.history-card p,
.history-empty p {
  margin: 0;
  color: #777;
  font-size: 16px;
  line-height: 1.55;
}

.history-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.history-card button,
.history-empty button {
  min-height: 42px;
  border-radius: 999px;
  background: #fff3ee;
  color: #df6a4a;
  font-size: 15px;
  font-weight: 900;
}

.history-card button:last-child,
.history-empty button {
  background: linear-gradient(135deg, #ff6535, #ff8b4a);
  color: #fff;
}

.history-empty button {
  width: 100%;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 50;
  transform: translateX(-50%) translateY(20px);
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(18, 18, 18, .88);
  color: #fff;
  text-align: center;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .mini-app { width: 100%; }
  .screen { padding-left: 14px; padding-right: 14px; }
  .mini-top { grid-template-columns: auto auto minmax(140px, 1fr); gap: 8px; }
  .soft-tab { min-width: 112px; height: 52px; font-size: 21px; }
  .wx-capsule { min-width: 140px; height: 62px; gap: 10px; padding: 0 16px; font-size: 28px; }
  #homeTitle { font-size: 42px; }
  #homeScreen h2 { font-size: 28px; }
  .subline { font-size: 24px; }
  .sample-bar { padding: 0 22px; }
  .sample-bar strong { font-size: 22px; }
  .sample-bar em { font-size: 17px; }
  .bottom-actions { margin-top: 120px; }
  .result-screen { padding-left: 12px; padding-right: 12px; }
  .result-topbar {
    grid-template-columns: 42px minmax(80px, 1fr) 154px;
    height: 112px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 10px;
  }
  .result-topbar h2 {
    white-space: nowrap;
    font-size: 24px;
  }
  .result-topbar .wx-capsule {
    width: 154px;
    min-width: 154px;
    height: 58px;
    gap: 9px;
    padding: 0 14px;
    font-size: 25px;
  }
  .home-icon { font-size: 38px; }
  .notice { height: 56px; font-size: 18px; }
  .match-panel {
    grid-template-columns: 82px 1fr;
    gap: 14px;
    min-height: 116px;
    padding: 12px 18px;
  }
  .ring {
    width: 82px;
    height: 82px;
    border-width: 8px;
  }
  .ring strong { font-size: 36px; }
  .ring span { font-size: 12px; }
  .match-panel h3 {
    font-size: 18px;
    white-space: nowrap;
  }
  .match-panel h3 span { font-size: 23px; }
  .match-panel p { font-size: 17px; }
  .mode-line { font-size: 17px; }
  .card-stack { min-height: 0; }
  .idea-card {
    left: 16px;
    right: 16px;
    min-height: 670px;
  }
  .main-card {
    left: auto;
    right: auto;
    top: auto;
    margin: 18px 16px 0;
  }
  .idea-card.side.left { left: 2px; right: 78px; }
  .idea-card.side.right { left: 78px; right: 2px; }
  .idea-head {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 132px;
    padding: 22px 18px;
  }
  .idea-no { width: 46px; height: 46px; font-size: 18px; }
  .idea-head h3 { font-size: 16px; }
  .idea-chip { padding: 7px 12px; font-size: 15px; }
  .idea-body { padding: 22px 20px; }
  .idea-body h4 { font-size: 24px; }
  .percent { width: 72px; height: 72px; }
  .idea-meta span { font-size: 15px; }
  .idea-text p { font-size: 20px; }
  .result-actions {
    grid-template-columns: 84px 108px 84px;
    column-gap: 24px;
    margin-top: 28px;
    padding-bottom: 50px;
  }
  .round { width: 84px; height: 84px; font-size: 34px; }
  .round.refresh { width: 108px; height: 108px; }
  .round span { bottom: -32px; width: 96px; font-size: 15px; }
  .round.refresh span { font-size: 18px; }
  .detail-screen { padding-left: 12px; padding-right: 12px; }
  .detail-product,
  .detail-hero,
  .why-card,
  .timeline-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  .detail-product { padding: 18px; }
  .detail-product h3 { font-size: 25px; }
  .detail-hero { padding: 28px 24px; }
  .detail-hero h3 { font-size: 30px; }
  .detail-hero h4 { font-size: 24px; }
  .detail-hero blockquote,
  .why-card p,
  .timeline-card li { font-size: 18px; }
  .timeline-list { padding-left: 44px; }
  .timeline-dot { left: -44px; }
  .timeline-card { padding: 20px; }
  .timeline-card h4 { font-size: 21px; }
  .finish-box { margin-left: 44px; }
  .detail-actions { grid-template-columns: 1fr 1.7fr; gap: 12px; }
  .detail-actions button { min-height: 60px; font-size: 18px; }
  .sop-screen { padding-left: 12px; padding-right: 12px; }
  .sop-product,
  .sop-strategy,
  .sop-summary,
  .sop-script {
    margin-left: 0;
    margin-right: 0;
  }
  .sop-product { padding: 18px; }
  .sop-product h3 { font-size: 24px; }
  .sop-stats { gap: 8px; }
  .sop-stats strong { font-size: 30px; }
  .day-tabs { gap: 8px; }
  .day-tabs button { min-height: 64px; border-radius: 14px; font-size: 18px; }
  #sopDayTitle { font-size: 27px; }
  .sop-action-card { padding: 22px; }
  .sop-action-card h3 { font-size: 23px; }
  .sop-action-card > p { font-size: 18px; }
  .sop-action-card pre { font-size: 19px; }
  .sop-actions { grid-template-columns: 1fr 1.7fr; gap: 12px; }
  .sop-actions button { min-height: 60px; font-size: 18px; }
  .profile-screen { padding-left: 12px; padding-right: 12px; }
  .profile-card,
  .profile-stats,
  .saved-panel {
    margin-left: 0;
    margin-right: 0;
  }
  .profile-card { grid-template-columns: auto 1fr; }
  .profile-card strong { grid-column: 1 / -1; width: max-content; }
}

/* Compact typography pass for the mobile-only prototype. */
.soft-tab { font-size: 21px; }
.soft-tab span { font-size: 18px; }
.wx-capsule { font-size: 29px; }
.maker { font-size: 18px; }
#homeTitle { font-size: 42px; }
#homeScreen h2 { font-size: 27px; }
.subline { font-size: 23px; }
.sample-bar strong { font-size: 22px; }
.sample-bar em { font-size: 17px; }
.voice-copy p { font-size: 24px; }
.voice-copy strong { font-size: 25px; }
.hold-tip { font-size: 21px; }
.text-link { font-size: 18px; }
.page-title { font-size: 27px; }
.page-subtitle { font-size: 20px; }
.voice-editor span { font-size: 19px; }
.voice-editor textarea { font-size: 21px; }
.key-card h3,
.ai-elements h3 { font-size: 20px; }
.key-card label span,
.ai-elements label span { font-size: 19px; }
.key-card select,
.ai-elements input { font-size: 21px; }
.outline-action,
.generate-action { font-size: 21px; }
.result-topbar h2 { font-size: 24px; }
.notice { font-size: 19px; }
.match-panel h3 { font-size: 21px; }
.match-panel h3 span { font-size: 25px; }
.match-panel p { font-size: 18px; }
.mode-line { font-size: 18px; }
.idea-head h3 { font-size: 18px; }
.idea-chip { font-size: 16px; }
.idea-body h4 { font-size: 25px; }
.idea-meta span { font-size: 16px; }
.idea-text h5 { font-size: 18px; }
.idea-text p { font-size: 20px; }
.card-buttons button { font-size: 20px; }
.detail-product span { font-size: 16px; }
.detail-product h3 { font-size: 25px; }
.detail-product strong { font-size: 16px; }
.detail-hero h3 { font-size: 29px; }
.detail-hero p { font-size: 18px; }
.detail-hero h4 { font-size: 23px; }
.detail-hero blockquote,
.why-card p { font-size: 18px; }
.why-card h3,
.timeline-wrap > h3 { font-size: 23px; }
.timeline-card h4 { font-size: 21px; }
.timeline-card li { font-size: 18px; }
.timeline-card p { font-size: 16px; }
.finish-box { font-size: 19px; }
.detail-actions button,
.sop-actions button { font-size: 19px; }
.detail-actions p,
.sop-actions p { font-size: 14px; }
.sop-product h3 { font-size: 25px; }
.sop-product strong { font-size: 16px; }
.sop-strategy { font-size: 21px; }
.sop-summary h3 { font-size: 21px; }
.sop-stats strong { font-size: 30px; }
.sop-stats span { font-size: 14px; }
.sop-summary p { font-size: 18px; }
.sop-script > h3 { font-size: 22px; }
.day-tabs button { font-size: 19px; }
.day-tabs button span { font-size: 14px; }
#sopDayTitle { font-size: 27px; }
#sopDayTitle span { font-size: 16px; }
.sop-action-card header span { font-size: 21px; }
.sop-action-card h3 { font-size: 23px; }
.sop-action-card header strong { font-size: 15px; }
.sop-action-card > p { font-size: 18px; }
.sop-action-card h4 { font-size: 18px; }
.sop-action-card pre { font-size: 19px; }
.profile-card h3 { font-size: 24px; }
.profile-card p,
.saved-panel p { font-size: 16px; }
.profile-stats strong { font-size: 28px; }
.saved-panel h3 { font-size: 23px; }
.saved-panel h4 { font-size: 21px; }

/* User requested another 4px typography reduction. */
.soft-tab { font-size: 13px; }
.soft-tab span { font-size: 10px; }
.wx-capsule { font-size: 21px; }
.maker { font-size: 12px; }
#homeTitle { font-size: 34px; }
#homeScreen h2 { font-size: 19px; }
.subline { font-size: 15px; }
.sample-bar strong { font-size: 14px; }
.sample-bar em { font-size: 12px; }
.voice-copy p { font-size: 16px; }
.voice-copy strong { font-size: 17px; }
.hold-tip { font-size: 13px; }
.text-link { font-size: 12px; }
.page-title { font-size: 19px; }
.page-subtitle { font-size: 12px; }
.voice-editor span { font-size: 12px; }
.voice-editor textarea { font-size: 13px; }
.key-card h3,
.ai-elements h3 { font-size: 12px; }
.key-card label span,
.ai-elements label span { font-size: 12px; }
.key-card select,
.ai-elements input { font-size: 13px; }
.outline-action,
.generate-action { font-size: 13px; }
.result-topbar h2 { font-size: 16px; }
.notice { font-size: 12px; }
.match-panel h3 { font-size: 13px; }
.match-panel h3 span { font-size: 17px; }
.match-panel p { font-size: 12px; }
.mode-line { font-size: 12px; }
.idea-head h3 { font-size: 12px; }
.idea-chip { font-size: 12px; }
.idea-body h4 { font-size: 17px; }
.idea-meta span { font-size: 12px; }
.idea-text h5 { font-size: 12px; }
.idea-text p { font-size: 12px; }
.card-buttons button { font-size: 12px; }
.detail-product span { font-size: 12px; }
.detail-product h3 { font-size: 17px; }
.detail-product strong { font-size: 12px; }
.detail-hero h3 { font-size: 21px; }
.detail-hero p { font-size: 12px; }
.detail-hero h4 { font-size: 15px; }
.detail-hero blockquote,
.why-card p { font-size: 12px; }
.why-card h3,
.timeline-wrap > h3 { font-size: 15px; }
.timeline-card h4 { font-size: 13px; }
.timeline-card li { font-size: 12px; }
.timeline-card p { font-size: 12px; }
.finish-box { font-size: 12px; }
.detail-actions button,
.sop-actions button { font-size: 12px; }
.detail-actions p,
.sop-actions p { font-size: 12px; }
.sop-product h3 { font-size: 17px; }
.sop-product strong { font-size: 12px; }
.sop-strategy { font-size: 13px; }
.sop-summary h3 { font-size: 13px; }
.sop-stats strong { font-size: 22px; }
.sop-stats span { font-size: 12px; }
.sop-summary p { font-size: 12px; }
.sop-script > h3 { font-size: 14px; }
.day-tabs button { font-size: 12px; }
.day-tabs button span { font-size: 12px; }
#sopDayTitle { font-size: 19px; }
#sopDayTitle span { font-size: 12px; }
.sop-action-card header span { font-size: 13px; }
.sop-action-card h3 { font-size: 15px; }
.sop-action-card header strong { font-size: 12px; }
.sop-action-card > p { font-size: 12px; }
.sop-action-card h4 { font-size: 12px; }
.sop-action-card pre { font-size: 12px; }
.profile-card h3 { font-size: 16px; }
.profile-card p,
.saved-panel p { font-size: 12px; }
.profile-stats strong { font-size: 20px; }
.saved-panel h3 { font-size: 15px; }
.saved-panel h4 { font-size: 13px; }

/* Tighten home spacing after the sample card. */
.hero-logo {
  width: 104px;
  height: 104px;
  margin: 22px auto 12px;
}

#homeTitle {
  margin: 22px 0 16px;
}

.subline {
  margin: 12px 0 24px;
}

.sample-bar {
  min-height: 78px;
  border-radius: 39px;
}

.sample-bar.playing {
  background: #ffe6dc;
  box-shadow: inset 0 0 0 2px rgba(255, 91, 42, .18);
}

.voice-copy {
  margin: 18px 0 16px;
}

.voice-copy p {
  margin-bottom: 14px;
}

.voice-copy strong {
  margin-top: 12px;
}

.mic-button {
  width: 178px;
  height: 178px;
  margin-bottom: 14px;
  box-shadow: 0 16px 40px rgba(255, 91, 42, .24), 0 0 0 26px rgba(255, 91, 42, .08);
}

.mic-button.listening {
  transform: scale(.96);
  background: linear-gradient(145deg, #ff3d20, #e92b14);
  box-shadow: 0 12px 34px rgba(255, 63, 32, .3), 0 0 0 22px rgba(255, 91, 42, .14);
}

.text-link {
  margin-top: 54px;
}

/* User requested all typography to increase by 2px from the current compact pass. */
.soft-tab { font-size: 15px; }
.soft-tab span { font-size: 12px; }
.wx-capsule { font-size: 23px; }
.maker { font-size: 14px; }
#homeTitle { font-size: 32px; }
#homeScreen h2 { font-size: 21px; }
.subline { font-size: 17px; }
.sample-bar strong { font-size: 16px; }
.sample-bar em { font-size: 14px; }
.voice-copy p { font-size: 18px; }
.voice-copy strong { font-size: 19px; }
.hold-tip { font-size: 15px; }
.text-link { font-size: 18px; }
.page-title { font-size: 21px; }
.page-subtitle { font-size: 14px; }
.voice-editor span { font-size: 14px; }
.voice-editor textarea { font-size: 15px; }
.key-card h3,
.ai-elements h3 { font-size: 14px; }
.key-card label span,
.ai-elements label span { font-size: 14px; }
.key-card select,
.ai-elements input { font-size: 15px; }
.outline-action,
.generate-action { font-size: 15px; }
.result-topbar h2 { font-size: 18px; }
.notice { font-size: 14px; }
.match-panel h3 { font-size: 15px; }
.match-panel h3 span { font-size: 19px; }
.match-panel p { font-size: 14px; }
.mode-line { font-size: 14px; }
.idea-head h3 { font-size: 14px; }
.idea-chip { font-size: 14px; }
.idea-body h4 { font-size: 19px; }
.idea-meta span { font-size: 14px; }
.idea-text h5 { font-size: 14px; }
.idea-text p { font-size: 14px; }
.card-buttons button { font-size: 14px; }
.detail-product span { font-size: 14px; }
.detail-product h3 { font-size: 19px; }
.detail-product strong { font-size: 14px; }
.detail-hero h3 { font-size: 23px; }
.detail-hero p { font-size: 14px; }
.detail-hero h4 { font-size: 17px; }
.detail-hero blockquote,
.why-card p { font-size: 14px; }
.why-card h3,
.timeline-wrap > h3 { font-size: 17px; }
.timeline-card h4 { font-size: 15px; }
.timeline-card li { font-size: 14px; }
.timeline-card p { font-size: 14px; }
.finish-box { font-size: 14px; }
.detail-actions button,
.sop-actions button { font-size: 14px; }
.detail-actions p,
.sop-actions p { font-size: 14px; }
.sop-product h3 { font-size: 19px; }
.sop-product strong { font-size: 14px; }
.sop-strategy { font-size: 15px; }
.sop-summary h3 { font-size: 15px; }
.sop-stats strong { font-size: 24px; }
.sop-stats span { font-size: 14px; }
.sop-summary p { font-size: 14px; }
.sop-script > h3 { font-size: 16px; }
.day-tabs button { font-size: 14px; }
.day-tabs button span { font-size: 14px; }
#sopDayTitle { font-size: 21px; }
#sopDayTitle span { font-size: 14px; }
.sop-action-card header span { font-size: 15px; }
.sop-action-card h3 { font-size: 17px; }
.sop-action-card header strong { font-size: 14px; }
.sop-action-card > p { font-size: 14px; }
.sop-action-card h4 { font-size: 14px; }
.sop-action-card pre { font-size: 14px; }
.profile-card h3 { font-size: 18px; }
.profile-card p,
.saved-panel p { font-size: 14px; }
.profile-stats strong { font-size: 22px; }
.saved-panel h3 { font-size: 17px; }
.saved-panel h4 { font-size: 15px; }

