:root {
  --ink: #171923;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e7ebf0;
  --paper: #f6f7fb;
  --panel: #ffffff;
  --orange: #ff7a1a;
  --orange-2: #ffb13d;
  --orange-dark: #d95f00;
  --orange-soft: #fff2e8;
  --blue: #2368d8;
  --blue-soft: #edf4ff;
  --green: #20a46a;
  --green-soft: #ebf8f1;
  --purple: #7a57e6;
  --purple-soft: #f1edff;
  --red: #c2413a;
  --red-soft: #fff0ef;
  --shadow: 0 12px 30px rgba(20, 27, 42, 0.08);
  --soft-shadow: 0 8px 20px rgba(20, 27, 42, 0.06);
  --bottom-tab-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #edf1f7;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #edf1f7;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
[role="button"],
.clickable,
.material-action,
.recommend-row,
.home-question-card,
.role-card,
.issue-type-card,
.map-bubble,
.bubble-chip,
.knowledge-card,
.partner-card,
.bottom-tabs button,
.nav-tab {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 122, 0, 0.15);
}

button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.25;
}

h2 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.22;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.hidden {
  display: none !important;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 14px calc(var(--bottom-tab-height) + env(safe-area-inset-bottom) + 12px);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 118px, rgba(255, 177, 61, 0.22), transparent 120px),
    linear-gradient(180deg, #fffaf5 0, #f7f8fb 340px, #f7f8fb 100%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px 0;
  background: rgba(255, 250, 245, 0.96);
  backdrop-filter: blur(14px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffbd35, #ff770c 60%, #ff961f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(255, 122, 26, 0.25);
}

.brand-copy {
  min-width: 0;
}

.brand-copy p {
  margin: 0;
  color: #5f6573;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-badge {
  min-height: 34px;
  border: 1px solid #ffd1ad;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff7ef;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tab-view {
  display: none;
  padding-bottom: calc(var(--bottom-tab-height) + env(safe-area-inset-bottom) + 32px);
}

.tab-view.active {
  display: block;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: end;
  min-height: 142px;
  padding: 6px 0 2px;
}

.home-hero-copy h2 {
  margin-bottom: 5px;
  font-size: 27px;
}

.home-hero-copy h2 span {
  color: var(--orange-dark);
}

.home-hero-copy p:not(.eyebrow) {
  margin: 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.55;
  max-width: 250px;
}

.hero-portrait {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 126px;
  overflow: hidden;
}

.hero-portrait img,
.action-hero img,
.footprint-hero img,
.coach-nudge img,
.profile-card img,
.gate-card img,
.continue-cta img {
  object-fit: cover;
  object-position: 50% 28%;
}

.hero-portrait img {
  width: 112px;
  height: 126px;
  border-radius: 8px 8px 0 0;
  filter: drop-shadow(0 14px 18px rgba(255, 122, 26, 0.16));
}

.content-card,
.ask-card,
.chat-panel,
.result-panel,
.profile-card,
.settings-list article,
.continue-cta,
.xiaodie-tip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.ask-card,
.content-card {
  margin-top: 14px;
  padding: 15px;
}

.ask-card-head,
.section-heading,
.dialog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ask-card-head p,
.section-title-icon p,
.page-title-block p,
.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.product-more {
  margin-top: 8px;
}

.product-more summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--orange-dark);
  font-weight: 900;
}

.mini-glow-button {
  min-height: 38px;
  border: 1px solid #ffd1ad;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff7ef;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.62;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
}

input {
  min-height: 46px;
  padding: 0 12px;
}

textarea:focus,
input:focus {
  outline: 3px solid rgba(255, 122, 26, 0.18);
  border-color: var(--orange);
}

.ask-card textarea {
  margin-top: 12px;
  min-height: 66px;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 10px 0 14px;
}

.ask-tools,
.material-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.ask-tools button,
.material-tools button,
.resource-pill,
.knowledge-card,
.partner-card,
.issue-type-card,
.role-card,
.home-question-card,
.quick-actions button,
.action-shortcuts button,
.text-button,
.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.back-button {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.ask-tools button,
.material-tools button {
  min-height: 38px;
  padding: 4px 5px;
  color: var(--muted);
  font-size: 12px;
}

.material-tools button {
  border-color: #ffd9bb;
  background: #fffaf6;
  color: var(--orange-dark);
}

.ask-tools button,
.material-tools button {
  border-color: #ffd9bb;
  background: #fffaf6;
  color: var(--orange-dark);
}

.ask-tools button small,
.material-tools button small {
  display: block;
  margin-top: 1px;
  color: #b55a08;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
}

.input-nudge {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  padding: 12px;
  background: #fffaf6;
  color: #4a5568;
}

.input-nudge strong {
  color: var(--orange-dark);
  font-size: 14px;
}

.input-nudge p {
  margin: 0;
  line-height: 1.55;
  font-size: 13px;
}

.input-nudge div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.input-nudge button {
  min-height: 38px;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  background: #fff;
  color: var(--orange-dark);
  font-weight: 850;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 46px;
  padding: 0 14px;
}

.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 12px 20px rgba(255, 122, 26, 0.22);
}

.secondary-button {
  color: var(--orange-dark);
  background: #fff7ef;
  border-color: #ffd1ad;
}

.danger-button {
  margin-top: 10px;
  color: var(--red);
  background: var(--red-soft);
  border-color: #ffd0cd;
}

.full-button {
  width: 100%;
}

.section-heading h3,
.section-heading span {
  margin: 0;
}

.section-heading span,
.text-button {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
}

.text-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
}

.home-question-list,
.role-stage-grid,
.issue-type-grid,
.record-list,
.knowledge-base-list,
.partner-resource-list,
.result-cards,
.settings-list {
  display: grid;
  gap: 10px;
}

.home-question-card {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.question-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9a27, #ff6f0f);
  color: #fff;
  font-weight: 900;
}

.home-question-card strong,
.home-question-card span,
.role-card strong,
.role-card span,
.issue-type-card strong,
.issue-type-card span {
  display: block;
}

.home-question-card strong,
.role-card strong,
.issue-type-card strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.home-question-card span,
.role-card span,
.issue-type-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-title-icon {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.section-title-icon > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.home-growth-map,
.coach-growth-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.growth-step {
  flex: 0 0 84px;
  text-align: center;
}

.growth-step .step-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.growth-step strong {
  display: block;
  font-size: 13px;
}

.growth-step span {
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.4;
}

.page-title-block {
  padding: 16px 0 4px;
}

.page-title-block h2 {
  font-size: 24px;
}

.page-title-block p:not(.eyebrow) {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.role-stage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.role-card {
  min-height: 176px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 14px 8px;
  text-align: center;
}

.role-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.role-card:nth-child(2) .role-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.role-card:nth-child(3) .role-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.role-card .start-chip {
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.issue-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.issue-type-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.issue-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.coach-nudge,
.xiaodie-tip {
  margin-top: 14px;
}

.coach-nudge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: end;
  min-height: 86px;
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.coach-nudge img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.dialog-topbar {
  min-height: 58px;
  padding: 8px 0;
}

.dialog-topbar h2 {
  margin: 0;
  font-size: 22px;
}

.back-button,
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
}

.online-pill {
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.stage-step {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 48px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.stage-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef1f5;
  color: var(--subtle);
}

.stage-step.active,
.stage-step.done {
  color: var(--orange-dark);
}

.stage-step.active span,
.stage-step.done span {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
}

.stage-step.active span {
  animation: stagePulse 1.4s ease-in-out infinite;
}

@keyframes stagePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(255, 122, 26, 0); }
}

.chat-panel,
.result-panel {
  padding: 12px;
}

.chat-stream {
  display: grid;
  gap: 12px;
  min-height: 260px;
  max-height: 47vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.message {
  display: grid;
  gap: 6px;
}

.message.user {
  justify-items: end;
}

.message-label {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.message.user .message-label {
  text-align: right;
}

.message-bubble {
  max-width: 86%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #2f3747;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: var(--soft-shadow);
}

.message.user .message-bubble {
  border-color: transparent;
  background: #eaf2ff;
  color: #143a7a;
}

.message.system .message-bubble {
  max-width: 100%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 850;
}

.loading-card {
  margin-top: 10px;
  border-radius: 8px;
  padding: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 900;
}

.loading-card strong {
  display: block;
  margin-bottom: 8px;
}

.loading-hint {
  margin: -2px 0 9px;
  color: #8a5a26;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.loading-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 22px;
  color: #8a4b12;
  font-size: 13px;
  line-height: 1.45;
}

.loading-extra {
  margin: 9px 0 0;
  color: #6d3e10;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

.result-panel {
  margin-top: 12px;
}

.compact-bubbles {
  margin: 8px 0 10px;
}

.bubble-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bubble-pill {
  min-height: 32px;
  border: 1px solid #ffd1ad;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #fff7ef;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.bubble-pill.saved {
  border-color: #bde7d2;
  background: var(--green-soft);
  color: var(--green);
}

.answer-card,
.record-card,
.knowledge-card,
.partner-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.answer-card {
  padding: 12px;
}

.answer-card.current {
  border-color: #ffd1ad;
  background: #fffaf6;
}

.answer-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.answer-feedback {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid #f2e4d7;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.answer-feedback > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.answer-feedback button {
  min-height: 34px;
  border: 1px solid #ffd9bb;
  border-radius: 999px;
  background: #fffaf6;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 750;
}

.answer-feedback .feedback-note-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.answer-feedback textarea {
  width: 100%;
  min-height: 64px;
  margin-top: 8px;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.answer-feedback [data-feedback-note-submit] {
  margin-top: 8px;
  border-radius: 8px;
}

.collapsible-result {
  display: grid;
  gap: 10px;
}

.result-one-line {
  margin: 0;
  border-left: 4px solid var(--orange);
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7ef;
  color: #3f4856;
  line-height: 1.62;
  font-weight: 850;
}

.result-key-list,
.result-check-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.result-key-list {
  padding-left: 18px;
  color: #4a5568;
  line-height: 1.62;
}

.result-check-list label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #4a5568;
  line-height: 1.62;
}

.result-check-list span {
  width: 20px;
  height: 20px;
  border: 2px solid #ffd1ad;
  border-radius: 6px;
  background: #fffaf5;
}

.result-detail,
.result-raw {
  border-top: 1px solid var(--line);
  padding-top: 2px;
  overflow: hidden;
}

.result-detail summary,
.result-raw summary,
.developer-options summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--orange-dark);
  font-weight: 900;
}

.result-detail p,
.result-raw p {
  max-height: 0;
  margin: 0;
  opacity: 0;
  transition: max-height 300ms ease, opacity 300ms ease, padding 300ms ease;
}

.result-detail[open] p,
.result-raw[open] p {
  max-height: 58vh;
  padding-bottom: 4px;
  opacity: 1;
  overflow-y: auto;
}

.answer-slice {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}

.answer-slice:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.answer-slice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
}

.answer-slice p,
.answer-card details,
.record-card p,
.knowledge-card p,
.partner-card p,
.script-preview-card p {
  margin-bottom: 0;
  color: #4a5568;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.answer-card details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.answer-card summary {
  color: var(--orange-dark);
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.card-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 850;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quick-actions button {
  min-height: 52px;
  color: var(--blue);
  line-height: 1.35;
}

.composer {
  position: relative;
  z-index: 20;
  margin-top: 12px;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -10px 24px rgba(20, 27, 42, 0.08);
}

.composer textarea {
  min-height: 72px;
}

.composer-material-tools {
  margin: 8px 0 0;
}

.composer-actions {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  margin-top: 9px;
}

.action-hero,
.footprint-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: end;
  min-height: 166px;
  padding: 14px 0 4px;
}

.action-hero img,
.footprint-hero img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.action-hero h2,
.footprint-hero h2 {
  font-size: 25px;
}

.footprint-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.xiaodie-tip {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
}

.xiaodie-tip span {
  min-height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.xiaodie-tip p {
  margin: 0;
  color: #4a5568;
  line-height: 1.68;
}

.bubble-map {
  position: relative;
  height: 318px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 122, 26, 0.15), transparent 118px),
    linear-gradient(180deg, #fff 0, #fffaf7 100%);
}

.map-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 12px rgba(255, 122, 26, 0.12), 0 14px 28px rgba(255, 122, 26, 0.24);
}

.map-bubble {
  position: absolute;
  width: 118px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  align-content: center;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.map-bubble.viewed {
  background: var(--blue-soft);
}

.map-bubble.active {
  border-color: var(--orange);
  background: #fff2e8;
  transform: scale(1.04);
  z-index: 4;
}

.map-bubble.saved::after {
  content: "★";
  position: absolute;
  right: 8px;
  top: 5px;
  color: var(--orange);
  font-size: 13px;
}

.map-bubble.viewed:not(.saved)::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 5px;
  color: var(--blue);
  font-size: 13px;
}

.map-bubble strong {
  font-size: 15px;
  line-height: 1.25;
}

.map-bubble span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-bubble:nth-child(2) { left: 10px; top: 34px; border-color: #ffc78d; }
.map-bubble:nth-child(3) { right: 10px; top: 28px; border-color: #d5c8ff; }
.map-bubble:nth-child(4) { right: 2px; top: 130px; border-color: #b9d4ff; }
.map-bubble:nth-child(5) { right: 28px; bottom: 28px; border-color: #bce8d1; }
.map-bubble:nth-child(6) { left: 24px; bottom: 32px; border-color: #ffb8c2; }
.map-bubble:nth-child(7) { left: 2px; top: 134px; border-color: #ffd587; }

.bubble-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
}

.bubble-detail-card {
  margin-top: 12px;
  margin-bottom: calc(env(safe-area-inset-bottom) + 16px);
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  padding: 12px;
  background: #fffaf6;
  scroll-margin-bottom: calc(var(--bottom-tab-height) + env(safe-area-inset-bottom) + 20px);
}

.bubble-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-size: 16px;
}

.bubble-detail-card p {
  margin: 10px 0 0;
  color: #3f4856;
  line-height: 1.62;
}

.bubble-detail-card em {
  color: var(--muted);
  font-style: normal;
}

.bubble-detail-head span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
}

.bubble-detail-card p {
  margin: 8px 0 0;
  color: #4a5568;
  line-height: 1.7;
}

.bubble-detail-card em {
  font-style: normal;
}

.bubble-method {
  margin-top: 8px;
  border-top: 1px solid #ffd9bb;
  padding-top: 8px;
  color: #3f4856;
}

.bubble-method p {
  margin: 4px 0 0;
}

.bubble-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.bubble-detail-actions button {
  min-height: 44px;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  background: #fff;
  color: var(--orange-dark);
  font-weight: 900;
}

.judgment-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: judgment;
}

.judgment-list li {
  position: relative;
  padding-left: 38px;
  color: #3f4856;
  line-height: 1.68;
}

.judgment-list li::before {
  counter-increment: judgment;
  content: counter(judgment);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-weight: 900;
}

.micro-checklist {
  display: grid;
  gap: 10px;
}

.micro-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 7px 0;
  background: transparent;
  color: #3f4856;
  line-height: 1.62;
  text-align: left;
}

.micro-item span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #cfd6df;
  display: grid;
  place-items: center;
  background: #fff;
  color: #fff;
  font-size: 13px;
}

.micro-item.done span {
  border-color: var(--orange);
  background: var(--orange);
}

.micro-item.done strong {
  color: var(--orange-dark);
}

.collapse-summary {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  padding: 0 12px;
  background: #fff7ef;
  color: #3f4856;
  text-align: left;
}

.collapse-summary strong {
  color: var(--orange-dark);
  white-space: nowrap;
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 300ms ease;
}

.collapsible-body.is-open {
  max-height: 680px;
  opacity: 1;
}

.day-plan-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 10px;
}

.day-card {
  flex: 0 0 76px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  background: #fff;
  text-align: center;
}

.day-card.active {
  border-color: var(--orange);
  background: #fff7ef;
}

.day-card strong {
  color: var(--orange-dark);
  font-size: 13px;
}

.day-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.plan-progress {
  height: 7px;
  border-radius: 999px;
  background: #edf0f4;
  overflow: hidden;
}

.plan-progress span {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-2), var(--orange));
}

.plan-progress-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.action-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.action-shortcuts button {
  min-height: 58px;
  color: #2f3747;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.growth-tree-layout {
  display: grid;
  gap: 10px;
}

.growth-stage-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.growth-stage-summary > div {
  border-radius: 8px;
  padding: 10px;
  background: #fff7ef;
}

.growth-stage-summary span,
.official-footprints h4 {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.growth-stage-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--orange-dark);
  font-size: 18px;
}

.growth-encouragement {
  margin: 0 0 10px;
  border-left: 4px solid var(--orange);
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffaf6;
  color: #4a5568;
  line-height: 1.6;
}

.growth-tree-item {
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.growth-tree-item .tree-line {
  width: 2px;
  height: 100%;
  min-height: 44px;
  margin: 0 auto;
  background: #ffd1ad;
}

.growth-tree-item .tree-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 900;
}

.growth-tree-item.reached .tree-line {
  background: var(--orange);
}

.growth-tree-item.active {
  border-radius: 8px;
  padding: 6px;
  background: #fff7ef;
  animation: treeGlow 1.6s ease-in-out 1;
}

.growth-tree-item.active .tree-icon {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.12);
}

@keyframes treeGlow {
  0% { transform: scale(0.985); box-shadow: 0 0 0 rgba(255, 122, 26, 0); }
  45% { transform: scale(1.01); box-shadow: 0 12px 24px rgba(255, 122, 26, 0.16); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 122, 26, 0); }
}

.growth-tree-item strong {
  display: block;
  margin-bottom: 3px;
}

.growth-tree-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footprint-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.compact-tile {
  margin-top: 0;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
}

.record-actions {
  display: grid;
  gap: 6px;
}

.record-card strong,
.record-card small {
  display: block;
}

.record-card small {
  margin-top: 4px;
  color: var(--subtle);
}

.record-card button {
  min-height: 34px;
  border: 1px solid #ffd0cd;
  border-radius: 8px;
  padding: 0 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.record-card button[data-continue-bubble] {
  border-color: #ffd9bb;
  background: #fffaf6;
  color: var(--orange-dark);
}

.official-footprints {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.official-footprints h4 {
  margin: 0;
}

.knowledge-card,
.partner-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.knowledge-icon,
.partner-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.knowledge-card strong,
.partner-card strong {
  display: block;
}

.knowledge-card p,
.partner-card p {
  font-size: 13px;
}

.resource-detail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.review-text {
  color: var(--muted);
  line-height: 1.7;
}

.continue-cta {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 10px;
}

.continue-cta img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.continue-cta strong,
.continue-cta p {
  display: block;
  margin: 0;
}

.continue-cta p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.continue-cta .primary-button {
  grid-column: 1 / -1;
}

.profile-card {
  margin-top: 18px;
  padding: 18px;
  text-align: center;
}

.profile-card img {
  width: 118px;
  height: 118px;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.settings-list {
  margin: 14px 0;
}

.settings-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.settings-list strong {
  flex: 0 0 90px;
}

.settings-list span {
  color: var(--muted);
  line-height: 1.55;
  text-align: right;
}

.developer-options {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px 12px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.developer-options summary {
  cursor: pointer;
}

.compact-settings {
  margin: 0 0 10px;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(100%, 430px);
  height: calc(var(--bottom-tab-height) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 26px rgba(20, 27, 42, 0.08);
  transform: translateX(-50%);
  pointer-events: auto;
}

.bottom-tabs button {
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  background: transparent;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.bottom-tabs button span {
  font-size: 22px;
  line-height: 1;
}

.bottom-tabs button.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.home-question-card > *,
.role-card > *,
.issue-type-card > * {
  pointer-events: none;
}

.switch-start-button {
  min-height: 32px;
  border: 1px solid #ffd1ad;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff7ef;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 25, 35, 0.38);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(23, 25, 35, 0.34);
}

.confirm-card {
  width: min(100%, 360px);
  max-height: calc(100vh - 36px - env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid #ffd8bd;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 25, 35, 0.2);
}

.confirm-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.confirm-card p {
  color: var(--muted);
  line-height: 1.65;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.confirm-actions button {
  min-height: 44px;
}

.feedback-entry {
  cursor: pointer;
}

.feedback-entry:active {
  background: #fff7ef;
}

.danger-entry {
  border-color: #ffd1c9 !important;
  background: #fff8f6 !important;
}

.danger-entry strong {
  color: #c0392b;
}

.feedback-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.feedback-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.feedback-select,
.feedback-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.feedback-select {
  min-height: 42px;
  padding: 0 12px;
}

.feedback-textarea {
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.feedback-select:focus,
.feedback-textarea:focus {
  outline: 3px solid rgba(255, 122, 26, 0.16);
  border-color: var(--orange);
}

.feedback-char-count {
  color: var(--subtle);
  font-size: 12px;
  text-align: right;
}

.tester-role-card {
  width: min(100%, 380px);
}

.tester-role-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 12px;
}

.tester-role-grid button {
  min-height: 46px;
  border: 1px solid #ffd1ad;
  border-radius: 8px;
  background: #fffaf6;
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  padding: 0 14px;
}

.tester-role-grid button:active {
  transform: translateY(1px);
  background: #fff2e5;
}

.gate-card {
  width: min(100%, 360px);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 25, 35, 0.22);
}

.gate-card img {
  float: right;
  width: 88px;
  height: 88px;
  margin-left: 12px;
  border-radius: 50%;
}

.gate-card p {
  color: var(--muted);
  line-height: 1.65;
}

.gate-error {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 90;
  width: min(calc(100% - 32px), 398px);
  border-radius: 8px;
  padding: 12px 14px;
  background: #171923;
  color: #fff;
  line-height: 1.55;
  transform: translateX(-50%);
  box-shadow: 0 16px 34px rgba(23, 25, 35, 0.24);
  pointer-events: none;
}

/* Final V0.3 visual polish */
:root {
  --radius-card: 20px;
  --radius-card-sm: 16px;
  --radius-control: 14px;
  --shadow: 0 14px 34px rgba(20, 27, 42, 0.075);
  --soft-shadow: 0 8px 20px rgba(20, 27, 42, 0.055);
}

body {
  font-size: 15px;
}

h1,
h2,
h3,
.home-question-card strong,
.issue-type-card strong,
.role-card strong,
.knowledge-card strong,
.partner-card strong,
.record-card strong,
.stage-name-row strong {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

@supports (text-wrap: pretty) {
  h1,
  h2,
  h3,
  .home-question-card strong,
  .issue-type-card strong,
  .role-card strong,
  .knowledge-card strong,
  .partner-card strong,
  .record-card strong,
  .stage-name-row strong {
    text-wrap: pretty;
  }
}

h1 {
  font-size: 17px;
  font-weight: 800;
}

h2,
.home-hero-copy h2,
.action-hero h2,
.footprint-hero h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

h3,
.section-heading h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.32;
}

.content-card,
.ask-card,
.chat-panel,
.result-panel,
.profile-card,
.settings-list article,
.continue-cta,
.xiaodie-tip,
.developer-options,
.gate-card {
  border-color: rgba(232, 221, 213, 0.86);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.98);
}

.ask-card,
.content-card {
  margin-top: 16px;
  padding: 16px;
}

textarea,
input,
.composer,
.stage-rail,
.answer-card,
.record-card,
.knowledge-card,
.partner-card,
.day-card,
.bubble-detail-card,
.collapse-summary,
.role-card,
.issue-type-card,
.home-question-card,
.bottom-tabs button.active {
  border-radius: var(--radius-card-sm);
}

.ask-tools button,
.quick-actions button,
.action-shortcuts button,
.card-actions button,
.bubble-detail-actions button,
.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.back-button {
  border-radius: var(--radius-control);
  font-weight: 750;
}

.primary-button {
  min-height: 48px;
  font-size: 16px;
}

.secondary-button,
.danger-button {
  min-height: 46px;
}

.home-hero {
  min-height: 136px;
  padding-top: 4px;
}

.hero-portrait img {
  border-radius: 20px 20px 0 0;
}

.ask-card {
  border-color: #ffd9bb;
  box-shadow: 0 14px 34px rgba(255, 122, 26, 0.09);
}

.ask-card-head {
  align-items: flex-start;
}

.mini-glow-button {
  flex: 0 0 auto;
  max-width: 126px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.home-question-list {
  gap: 9px;
}

.home-question-card {
  min-height: 68px;
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  gap: 8px;
  padding: 10px 10px;
  box-shadow: var(--soft-shadow);
}

.question-rank {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  font-size: 13px;
}

.home-question-card strong {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-question-card span span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--subtle);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-question-card em {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff7ef;
  color: var(--orange-dark);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
}

.section-title-icon {
  grid-template-columns: 36px minmax(0, 1fr);
}

.section-title-icon > span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.role-stage-grid {
  gap: 9px;
}

.role-card {
  min-height: 164px;
  padding: 12px 8px;
}

.role-icon {
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.issue-type-grid {
  gap: 9px;
}

.issue-type-card {
  min-height: 86px;
  grid-template-columns: 44px minmax(0, 1fr) 14px;
  gap: 8px;
  padding: 11px 9px;
}

.issue-icon {
  width: 42px;
  height: 42px;
  font-size: 16px;
  background: #fff3e8;
  color: var(--orange-dark);
}

.issue-type-card strong {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.3;
}

.issue-type-card span span {
  font-size: 12px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-rail {
  border-color: #f0e3da;
}

.message-bubble {
  border-radius: 18px;
}

.message.user .message-bubble {
  background: #eaf2ff;
}

.quick-actions button,
.card-actions button {
  color: var(--orange-dark);
  border-color: #ffd9bb;
  background: #fffaf6;
}

.result-detail summary,
.result-raw summary {
  color: #b55a08;
  font-size: 13px;
}

.result-raw summary {
  color: var(--subtle);
}

.bubble-map {
  border-radius: var(--radius-card);
}

.map-bubble {
  width: 116px;
  min-height: 56px;
  padding: 8px 11px;
}

.map-bubble strong {
  font-size: 14px;
}

.map-bubble span {
  font-size: 11px;
}

.micro-item {
  min-height: 42px;
  padding: 8px 0;
}

.growth-tree-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 18px;
}

.growth-tree-card::before {
  content: "";
  position: absolute;
  right: 42px;
  top: 156px;
  width: 10px;
  height: 178px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 185, 93, 0.18), rgba(210, 133, 42, 0.28));
  transform: rotate(2deg);
  pointer-events: none;
}

.growth-tree-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 96px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 18%, rgba(255, 190, 92, 0.24) 0 4px, transparent 5px),
    radial-gradient(circle at 64% 28%, rgba(255, 190, 92, 0.22) 0 3px, transparent 4px),
    radial-gradient(circle at 34% 38%, rgba(255, 190, 92, 0.18) 0 3px, transparent 4px),
    radial-gradient(circle at 74% 52%, rgba(255, 190, 92, 0.18) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 52%, rgba(255, 190, 92, 0.1), transparent 72px);
  opacity: 0.9;
  pointer-events: none;
}

.growth-stage-summary,
.growth-encouragement,
.growth-tree-layout,
.official-footprints {
  position: relative;
  z-index: 1;
}

.growth-stage-summary > div {
  border: 1px solid #ffe1c8;
  border-radius: 16px;
}

.growth-stage-summary strong {
  font-size: 16px;
  line-height: 1.35;
}

.growth-tree-layout {
  gap: 8px;
  padding-right: 12px;
}

.growth-tree-item {
  position: relative;
  grid-template-columns: 22px 42px minmax(0, 1fr);
  gap: 9px;
  min-height: 72px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 7px 8px 7px 0;
  background: rgba(255, 255, 255, 0.68);
}

.growth-tree-item .tree-line {
  width: 2px;
  min-height: 58px;
  background: #f5d8bb;
}

.growth-tree-item .tree-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #ffe0c5;
  background: #fff8ef;
  font-size: 15px;
}

.stage-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.stage-name-row strong {
  font-size: 15px;
  line-height: 1.25;
}

.stage-name-row em {
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff2e8;
  color: var(--orange-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.current-stage-badge {
  display: none;
  border-radius: 999px;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.growth-tree-item.active {
  border-color: #ffd1ad;
  padding: 8px;
  background: rgba(255, 247, 239, 0.95);
}

.growth-tree-item.active .current-stage-badge {
  display: inline-flex;
}

.growth-tree-item.active .tree-icon {
  border-color: transparent;
}

.growth-tree-item p {
  font-size: 12.5px;
  line-height: 1.48;
}

.record-card,
.knowledge-card,
.partner-card {
  border-radius: 16px;
}

.settings-list article {
  align-items: flex-start;
}

.settings-list strong {
  font-weight: 750;
}

.settings-list span {
  font-size: 14px;
}

.bottom-tabs {
  border-radius: 22px 22px 0 0;
}

.bottom-tabs button {
  border-radius: 16px;
}

@media (min-width: 780px) {
  body {
    padding: 18px 0;
  }

  .phone-shell {
    min-height: calc(100vh - 36px);
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 24px 72px rgba(20, 27, 42, 0.14);
  }

  .bottom-tabs {
    bottom: 18px;
  }
}

@media (max-width: 374px) {
  .phone-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .hero-portrait img {
    width: 112px;
    height: 138px;
  }

  .role-stage-grid,
  .quick-actions,
  .action-shortcuts {
    grid-template-columns: 1fr;
  }
}

/* Final alignment for V0.3 external demo */
.app-header {
  min-height: 56px;
  gap: 8px;
  padding: 6px 0;
}

.brand-row {
  gap: 8px;
}

.brand-logo {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  font-size: 11px;
}

.brand-copy h1 {
  max-width: 100%;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy p {
  font-size: 11.5px;
}

.collab-badge {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.08);
}

.home-question-card {
  height: 84px;
  min-height: 84px;
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
}

.question-rank {
  width: 28px;
  height: 28px;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 122, 26, 0.18);
}

.home-question-card em {
  width: 24px;
  height: 24px;
  font-size: 20px;
  background: transparent;
  justify-self: end;
  align-self: center;
}

.home-question-card strong {
  font-size: 15px;
  line-height: 1.34;
}

.home-question-card span span {
  margin-top: 2px;
  font-size: 12px;
}

.growth-step {
  flex-basis: 92px;
}

.growth-step .step-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
  border: 1px solid #ffd8b9;
  background: #fff7ef;
  color: var(--orange-dark);
  font-size: 13px;
}

.growth-step strong {
  font-size: 13px;
  white-space: nowrap;
}

.role-icon,
.issue-icon,
.section-title-icon > span,
.knowledge-icon,
.partner-icon {
  flex-shrink: 0;
  line-height: 1;
}

.dialog-topbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.dialog-topbar h2 {
  min-width: 0;
  font-size: 20px;
  white-space: nowrap;
}

.dialog-status-pills {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.model-pill {
  min-height: 26px;
  border: 1px solid #d5e3ff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  background: #f4f8ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.model-select {
  width: auto;
  min-width: 168px;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid #ffd1ad;
  border-radius: 999px;
  padding: 0 30px 0 12px;
  background: #fff7ef;
  color: var(--orange-dark);
  font-weight: 900;
}

.coach-model-control {
  min-height: 28px;
  border: 1px solid #d5e3ff;
  border-radius: 999px;
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  background: #f4f8ff;
  color: var(--blue);
  white-space: nowrap;
}

.coach-model-control:focus-within {
  border-color: #8bb8ff;
  box-shadow: 0 0 0 2px rgba(35, 104, 216, 0.12);
}

.coach-model-control::after {
  content: "⌄";
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.coach-model-control span {
  font-size: 10px;
  font-weight: 900;
}

.coach-model-control select {
  width: auto;
  min-width: 132px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.model-setting span {
  display: flex;
  justify-content: flex-end;
}

.coach-entry-view .page-title-block {
  padding: 18px 2px 8px;
}

.coach-entry-view .page-title-block h2 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.18;
}

.coach-entry-view .role-stage-grid {
  gap: 10px;
}

.coach-entry-view .role-card {
  min-height: 184px;
  border-color: rgba(232, 221, 213, 0.9);
  border-radius: 22px;
  padding: 14px 8px 13px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  box-shadow: 0 12px 28px rgba(20, 27, 42, 0.065);
}

.coach-entry-view .role-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.coach-entry-view .role-card strong {
  min-height: 38px;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.coach-entry-view .role-card > span {
  min-height: 42px;
  font-size: 12px;
  line-height: 1.45;
}

.coach-entry-view .role-card .start-chip {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.coach-entry-ask {
  border-color: #ffd9bb;
  background: #fffaf6;
}

.coach-entry-ask textarea {
  min-height: 70px;
  margin: 8px 0 10px;
  border-radius: 16px;
  background: #fff;
}

.issue-type-card {
  grid-template-columns: 44px minmax(0, 1fr) 14px;
}

.issue-icon {
  border-radius: 14px;
  font-size: 12px;
}

.model-fallback-card {
  display: grid;
  gap: 10px;
  border-color: #ffd1ad;
  background: #fff7ef;
}

.model-fallback-card p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}

.model-fallback-card button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-weight: 900;
}

.growth-tree-card::before,
.growth-tree-card::after {
  display: none;
}

.growth-tree-card {
  min-height: 680px;
  padding-top: 18px;
}

.growth-stage-summary {
  max-width: 238px;
}

.growth-encouragement {
  max-width: 248px;
}

.growth-tree-illustration {
  position: absolute;
  right: -2px;
  top: 156px;
  width: 186px;
  height: 244px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.growth-tree-illustration svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.growth-tree-illustration path {
  fill: none;
  stroke: #e7ae5f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-tree-illustration .tree-trunk {
  stroke-width: 8;
}

.growth-tree-illustration .tree-ground {
  stroke-width: 4;
  opacity: 0.55;
}

.growth-tree-illustration .tree-leaves ellipse {
  fill: #f4c36f;
  opacity: 0.72;
}

.growth-tree-layout {
  max-width: 100%;
  padding-right: 0;
  margin-top: 12px;
}

.growth-tree-item {
  grid-template-columns: 18px 42px minmax(0, 1fr);
  max-width: 332px;
  min-height: 78px;
  background: rgba(255, 255, 255, 0.76);
}

.growth-tree-item .tree-line {
  width: 1px;
  min-height: 60px;
}

.growth-tree-item .tree-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 13px;
}

.growth-tree-item.active {
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.08);
}

.stage-name-row strong {
  font-size: 16px;
}

.stage-name-row em,
.current-stage-badge {
  white-space: nowrap;
}

@media (max-width: 410px) {
  .brand-copy h1 {
    font-size: 15px;
  }

  .brand-logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 10px;
  }

  .collab-badge {
    padding: 0 7px;
    font-size: 10.5px;
  }

  .growth-tree-illustration {
    right: -34px;
    width: 162px;
  }

  .growth-stage-summary,
  .growth-encouragement {
    max-width: 230px;
  }

  .coach-entry-view .role-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coach-entry-view .role-card {
    min-height: 178px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .coach-entry-view .role-card strong {
    font-size: 14px;
  }

  .coach-entry-view .role-card > span {
    font-size: 11.5px;
  }

  .coach-model-control span {
    display: none;
  }

  .coach-model-control select {
    width: auto;
    min-width: 118px;
  }
}

@media (max-width: 374px) {
  .coach-entry-view .role-stage-grid {
    grid-template-columns: 1fr;
  }

  .coach-entry-view .role-card {
    min-height: 132px;
    justify-items: start;
    text-align: left;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .hero-portrait {
    min-height: 112px;
  }

  .hero-portrait img {
    width: 92px;
    height: 112px;
  }

  .home-question-card {
    grid-template-columns: 32px minmax(0, 1fr) 22px;
    gap: 8px;
    padding-inline: 12px;
  }

  .bubble-map {
    height: 342px;
  }

  .map-center {
    width: 92px;
    height: 92px;
    font-size: 17px;
  }

  .map-bubble {
    width: 104px;
    min-height: 64px;
    padding: 8px 9px;
  }

  .map-bubble strong {
    font-size: 13px;
  }

  .map-bubble span {
    font-size: 10.5px;
  }

  .map-bubble:nth-child(2) { left: 4px; top: 28px; }
  .map-bubble:nth-child(3) { right: 4px; top: 28px; }
  .map-bubble:nth-child(4) { right: 0; top: 140px; }
  .map-bubble:nth-child(5) { right: 14px; bottom: 28px; }
  .map-bubble:nth-child(6) { left: 14px; bottom: 28px; }
  .map-bubble:nth-child(7) { left: 0; top: 140px; }

  .answer-feedback > div,
  .confirm-actions {
    grid-template-columns: 1fr;
  }
}
